chore: remove one-off migration codemods, demo recorder, and unused beep asset#1232
chore: remove one-off migration codemods, demo recorder, and unused beep asset#1232hieptl wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Mock-LLM E2E Tests42/42 passed Commit:
Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses) |
📸 Snapshot Test Report✅ All snapshots match the main branch baselines.
✅ Unchanged snapshots (73)
Generated by the Snapshot Tests workflow. This comment was created by an AI agent (OpenHands) on behalf of the repo maintainers. |
🔶 Mock-LLM Docker E2E Test Results37/42 passed · 5 skipped Commit:
Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses) |
Why
Description:
Four artifacts with zero references anywhere in the repo (verified against
package.jsonscripts, all 12 GitHub Actions workflows,.husky/hooks,docker/,vercel.json, docs, and the full tracked tree):scripts/migrate-grey-tokens.mjs+scripts/migrate-to-semantic-tokens.mjs— one-shot codemods written for the May 2026 design-token migration ("cool-grey palette, runtime theme switcher, and token-system cleanup", design: cool-grey palette, runtime theme switcher, and token-system cleanup #458). The migration has been applied; the tools' job is done. Git history preserves them if a future migration wants a template.scripts/record-demo.mjs— a Playwright-driven PR-demo-GIF recorder (added around Show full model name in conversation header #139). No package.json script, CI workflow, or doc invokes it.public/beep.wav— 3 KB audio file carried over from the original OpenHands frontend port (6f248b1e); no code references any audio playback of it.Because
package.json"files"ships the wholescripts/directory, this also slims the published npm tarball.Scope (delete 4 files, ~744 LOC + 3 KB):
scripts/migrate-grey-tokens.mjsscripts/migrate-to-semantic-tokens.mjsscripts/record-demo.mjspublic/beep.wavAcceptance Criteria:
npm run lintpasses.npm pack --dry-runno longer lists the three scripts in the tarball; all remainingscripts/entries are live (each referenced by package.json, CI, Docker, or Playwright configs).build/beep.wavmay linger locally —build/is gitignored and untracked; it regenerates without the file on the nextnpm run build.Out of scope / Notes:
scripts/runtime-services-info.mjs(Docker entrypoint + dev stack),scripts/vercel-install.sh(vercel.jsoninstallCommand),scripts/static-build.mjs/static-server.mjs/ingress.mjs(dev + Playwright),scripts/check-sdk-version-sync.mjs(CI), and alldev-*.mjs/ i18n scripts (package.json).record-demo.mjswas flagged borderline (possibly a hand-run dev utility); removal was explicitly approved. If someone still records demos with it, it is onegit revertaway.Summary
Removes three dead utility scripts (~744 LOC) and one unreferenced audio asset (3 KB). The two
migrate-*codemods served the completed design-token migration (#458);record-demo.mjsandbeep.wavare referenced by nothing. Sincepackage.json"files"shipsscripts/, the published npm tarball slims accordingly.Changes
scripts/migrate-grey-tokens.mjs(463 LOC),scripts/migrate-to-semantic-tokens.mjs(166 LOC) — one-shot codemods, migration long appliedscripts/record-demo.mjs(115 LOC) — demo recorder, zero referencespublic/beep.wav(3 KB) — zero references since the original portVerification
npm run lint✅npm pack --dry-run✅ — the three scripts no longer appear in the tarball; every remainingscripts/entry is verifiably live (package.json scripts, CI workflows, Docker entrypoint, Playwright configs, or imported by other scripts).github/workflows/,.husky/hooks,docker/,vercel.json, and the full tracked tree — zero hits beyond the scripts' own usage headersRisk
Minimal. Nothing imports or invokes these files. One nuance: a previously-built local
build/dir may still contain a stale copy ofbeep.wav—build/is gitignored/untracked and regenerates cleanly on the nextnpm run build, so published artifacts (which rebuild in CI) are unaffected. If anyone still hand-runsrecord-demo.mjs, it's a singlegit revertaway.Rollback
Revert this single commit; independent of all other units.
Issue Number
Resolves #1231
Type
🐳 Docker images for this PR
• GHCR package: https://github.com/OpenHands/agent-canvas/pkgs/container/agent-canvas
ghcr.io/openhands/agent-canvasghcr.io/openhands/agent-server:1.26.0-pythonopenhands-automation==1.0.0a620790be328b4ac0b98c84833bfe89b7626166a50Pull (multi-arch manifest)
# Multi-arch manifest — Docker automatically pulls the correct architecture docker pull ghcr.io/openhands/agent-canvas:sha-20790beRun
All tags pushed for this build
About Multi-Architecture Support
sha-20790be) is a multi-arch manifest supporting both amd64 and arm64sha-20790be-amd64) are also available if needed