castle-web-cli 0.4.131 → 0.4.132

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -889,7 +889,7 @@ export function buildTaskPrompt(opts) {
889
889
  ? `\n- Before you finish, write these lines to ${opts.handoffPath} -- they are the ONLY record of this task once the task itself is forgotten:\n - \`what: <what now exists, and where>\` -- an existence fact, not a report of activity: "a shop panel in ui/shop.js the bag button opens", never "updated the shop logic". This is what the plan shows as already built, so a later agent extends it instead of rebuilding it.\n - \`files: <the files you created or changed, comma-separated>\`\n - \`knobs: <the values worth tuning, comma-separated>\` -- names only, and only if there are real ones.\n - \`durable: <fact>\` -- the single thing worth remembering that is NOT covered by the three above (a preference the user expressed, a constraint you ran into, an approach that did not work). At most 200 characters. Leave it out only if nothing genuinely qualifies.`
890
890
  : "",
891
891
  ].join("");
892
- // Claude-only: collapsing the wrap-up (progress 90 + restart + notes) into
892
+ // Claude-only: collapsing the wrap-up (progress 90 + notes) into
893
893
  // one shell call reliably saves 1-2 serial ~7s turns there. Cursor's
894
894
  // composer sometimes reacts to the same rule with MORE calls, so it stays
895
895
  // on the plain instructions.
@@ -900,7 +900,7 @@ export function buildTaskPrompt(opts) {
900
900
  ? "the 90-progress write, the `castle-web save-version` for your paths, writing the notes file, and the handoff lines"
901
901
  : "the 90-progress write, the `castle-web save-version` for your paths, and writing the notes file";
902
902
  const wrapUp = opts.backend === "claude" || opts.backend === "smith"
903
- ? `\n- Wrap up in ONE tool call, not several: once your last file edit is done, combine ${wrapUpList} into a single shell command (\`;\`-separated so the notes land even if the restart hiccups). Then stop -- no extra turns after it.`
903
+ ? `\n- Wrap up in ONE tool call, not several: once your last file edit is done, combine ${wrapUpList} into a single shell command (\`;\`-separated so the notes land even if an earlier part hiccups). Then stop -- no extra turns after it.`
904
904
  : "";
905
905
  return `You are a background build agent for the Castle deck "${opts.deckLabel}" (current directory). A separate conversation agent dispatched you with one task. Follow the deck's CLAUDE.md / AGENTS.md conventions. Do not reload the served deck -- the person applies your changes when they are ready. \`npm run restart\` exists, but it is HIGHLY flow breaking: it reloads every panel they have open, including the one they are working in. Use it only when a change clearly requires restarting their whole experience.${quickReference}${layout}${deckSource}
906
906
 
@@ -131,5 +131,5 @@
131
131
  "main": "main.jsx",
132
132
  "autoUpdateWhenImported": true,
133
133
  "title": "physics-2d",
134
- "publishedVersion": "2026-08-21T22:23:23.744Z"
134
+ "publishedVersion": "2026-08-21T22:39:24.016Z"
135
135
  }
@@ -90,5 +90,6 @@ A curvy silhouette with an overlay accent (later shape covers earlier stroke):
90
90
  </svg>
91
91
  ```
92
92
 
93
- **After writing new sprites referenced by the scene, `npm run restart`** so the
94
- deck's file glob picks them up.
93
+ A newly written sprite is not in the deck's file glob until the panel reloads,
94
+ so an actor pointing at one renders the placeholder until then. That is fine --
95
+ the person reloads when they are ready; do not force it.
@@ -74,8 +74,11 @@ bottom }`; any ref can pick a frame of a multi-frame pxart with
74
74
  - Controls are tank-style: W/S (or up/down) walk forward/back along facing,
75
75
  A/D (or left/right) turn; a pointer/touch drag is a virtual stick where the
76
76
  drag angle blends walking and turning. Space jumps.
77
- - After any edit: `npm run restart`. After a coherent change: `npm run check`
78
- (lint + duplicate gate + single-file bundle) must pass.
77
+ - Do not reload. Data edits (scenes, drawings, models) appear in the open
78
+ editors on their own. Code edits wait for the person to apply them --
79
+ reloading a panel someone is working in loses their place.
80
+ - After a coherent change: `npm run check` (lint + duplicate gate +
81
+ single-file bundle) must pass.
79
82
 
80
83
  ## What lives where
81
84
 
@@ -71,5 +71,5 @@
71
71
  "autoUpdateWhenImported": true,
72
72
  "deckId": "JH0SclbPVP0y",
73
73
  "cardId": "eXfAaUdbSU5A",
74
- "publishedVersion": "2026-08-21T22:23:26.516Z"
74
+ "publishedVersion": "2026-08-21T22:39:26.451Z"
75
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "castle-web-cli",
3
- "version": "0.4.131",
3
+ "version": "0.4.132",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "castle-web": "./dist/index.js"