From 71da0c9a81c9098778fae78d74ff3a4ff2d322cc Mon Sep 17 00:00:00 2001 From: teahubxyz Date: Thu, 22 Oct 2026 06:14:24 +0000 Subject: [PATCH] docs/v2: brief for splitting index.html into ES modules (no build step) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01K6897PWcUEwHiqZMcVnNF6 --- docs/v2/REFACTOR-PROMPT.md | 101 +++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 docs/v2/REFACTOR-PROMPT.md 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 `