diff --git a/docs/v2/REFACTOR-PROMPT.md b/docs/v2/REFACTOR-PROMPT.md new file mode 100644 index 0000000..c153794 --- /dev/null +++ b/docs/v2/REFACTOR-PROMPT.md @@ -0,0 +1,101 @@ +# Split gandora's index.html into ES modules — brief for a fresh agent + +You are refactoring **gandora/site** on teahub.xyz (Gitea; use the Teahub MCP tools: `tea_file_get`, `tea_file_edit`, `tea_file_change`, `tea_commit`, `tea_branch_create`, `tea_pull_create`; there is no git access from the container). The Mac **hb-5** is reachable through `boring_mac_exec` (120 s per call; long jobs with `nohup … &` then poll); a clone lives at `~/scratch/gsite` (`git pull -q` to refresh). Node is at `/opt/homebrew/bin/node`. + +Work on the **`dev` branch only.** Do not push to `main`. Open one PR at the end. + +## Goal + +`index.html` is a ~2,100-line single file holding the player, the DJ, rendering, covers, storage, the UI sheets and the usage ledger in one scope. Split it into ES modules **with no build step**: plain `