@babylonjs-toolkit/agent 1.1.25 → 1.1.28

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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Babylon Toolkit Desktop Agent (1.1.25)
1
+ # Babylon Toolkit Desktop Agent (1.1.28)
2
2
 
3
3
  The desktop agent owns the entire pipeline end to end — frontend and UI design, gameplay code, shaders, generated art and audio, 3D models in headless Blender, whole game levels and prefabs in a terminal-driven Unity Editor, the interactive glTF export, the web build, the dev server, and visual QA by screenshotting both Unity and the running browser.
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs-toolkit/agent",
3
- "version": "1.1.25",
3
+ "version": "1.1.28",
4
4
  "description": "Installs the Babylon Toolkit Desktop Agent for Claude Code, Codex, GitHub Copilot, Gemini CLI and Antigravity.",
5
5
  "keywords": [
6
6
  "babylonjs",
@@ -57,7 +57,7 @@ Emit one visible status line when this path is taken: `⚡ [bt-plan] Quick Plan
57
57
  After writing `_specs/<feature-name>_plan.md`, **STOP**. Your final response must be a short summary of the plan plus the exact next-step hint below — and nothing else. Do not begin T1. Do not offer to "go ahead and start". If the user wants execution, they will invoke bt-execute themselves:
58
58
 
59
59
  ```
60
- Plan written to _specs/<feature-name>_plan.md
60
+ Plan written to _specs/<feature-name>_plan.md — <n> tasks, estimated <total range> of agent time
61
61
  Run a single task with `bt-execute _specs/<feature-name>_plan.md T1`, or every task with `bt-execute _specs/<feature-name>_plan.md ALL` (add `--strict` for an adversarial verifier on every task).
62
62
  ```
63
63
 
@@ -104,7 +104,7 @@ So a heavy plan is the **complete, shared memory** of the feature: every decisio
104
104
 
105
105
  **Write the code when the code IS the decision.** This skill never edits source files, but a heavy plan may (and should) put code *inside the plan*: full signatures, type definitions, data schemas, the tricky 20-line algorithm, a config block, a test skeleton. When the shape of the code is the decision, prose is a lossy encoding of it — write the code once here, and every task that needs it copies the same thing. Leave to prose only the mechanical glue ("wire `X` into `Y`'s constructor the same way `Z` is at `:88`").
106
106
 
107
- **Self-contained tasks, sized to real work.** A task should fit in one fresh context: one clear outcome, everything it needs either in its own block or cited by name from the Decisions and Design Reference. Split a task when it would not fit in one sitting — not merely because it touches several files. *Size the plan to the feature* (task budget, no ceremony tasks, phases, `Verify level`, no brittle pins) applies to heavy plans too: every task and phase costs a verification round at execution time. Heavy mode earns its cost on `large` features; for a `small` feature say in Codebase Analysis why it was requested anyway.
107
+ **Self-contained tasks, sized to real work.** A task should fit in one fresh context: one clear outcome, everything it needs either in its own block or cited by name from the Decisions and Design Reference. Split a task when it would not fit in one sitting — not merely because it touches several files. *Size the plan to the feature* (task budget, no ceremony tasks, phases, `Verify level`, no brittle pins) applies to heavy plans too: every task and phase costs a verification round at execution time. Heavy mode fits whenever execution runs in fresh contexts or on a cheaper model than planning — any feature size. The task budget still follows the spec's `size`.
108
108
 
109
109
  **Do the API homework once, here.** When a task uses a Babylon Toolkit component or BabylonJS API, show the exact call the way the Agent Reference (or its sub-document) shows it, in the Design Reference › *API usage* section — so every task across the run uses the same API the same way instead of each fresh context rediscovering it. Fetch the relevant sub-documents during Step 1 and copy the correct usage into the plan.
110
110
 
@@ -116,7 +116,7 @@ The analysis is the same eight points; ask for **plan-grade detail** when runnin
116
116
 
117
117
  ### Heavy plan document
118
118
 
119
- Emit `✍️ [bt-plan] Writing draft _specs/<feature-name>_plan.md …` before writing, and `💾 [bt-plan] Draft written — _specs/<feature-name>_plan.md (<n> tasks)` once the file is saved. The document has **five required sections, in this order**. A plan missing any of them is invalid; do not produce one.
119
+ Emit `✍️ [bt-plan] Writing draft _specs/<feature-name>_plan.md …` before writing, and `💾 [bt-plan] Draft written — _specs/<feature-name>_plan.md (<n> tasks)` once the file is saved. The document has **five required sections, in this order** (plus the `## Estimated execution time` section before the last). A plan missing any of them is invalid; do not produce one.
120
120
 
121
121
  **1. `## Codebase Analysis`** — exactly as in Step 2 (the Step 1 findings with `file:line` citations and the SPEC.md alignment note), plus the **test baseline** and, in Quick Plan mode, the **interview answers** that stand in for the spec.
122
122
 
@@ -182,7 +182,7 @@ Rules for heavy task blocks:
182
182
 
183
183
  The **SPEC.md write-back task** is required under the same conditions as in Step 2 and is still the LAST task. In a heavy plan, **write the SPEC.md content in the task** — the exact paragraphs to merge into each current-state section and the exact Decisions entries to append (your `## Decisions` entries, promoted to project scope) — using the heavy task block (Steps that name each SPEC.md section and the text to insert, a **Code** block holding the exact markdown, a **Verify** of `grep -n "<distinctive phrase>" SPEC.md` → one hit each), so the write-back records what was planned rather than what one fresh context remembers at the end.
184
184
 
185
- **5. `## How to execute this plan`** — the exact verbatim section from Step 2, unchanged.
185
+ **5. `## How to execute this plan`** — the exact verbatim section from Step 2, unchanged, preceded by the `## Estimated execution time` section from Step 2.
186
186
 
187
187
  ### Cold-context audit (required in Heavy Plan mode, before the plan is final)
188
188
 
@@ -196,7 +196,7 @@ If no subagent tool is available, emit `➡️ [bt-plan] no subagent tool — se
196
196
 
197
197
  Emit `🧾 [bt-plan] Audit found <n> gaps across <m> tasks` (or `… found NO GAPS`). Then **resolve every reported gap by editing the plan** — add the missing decision to `## Decisions`, the missing code/signature/name to `## Design Reference`, the missing instruction to the task — and emit `🔧 [bt-plan] Resolved <n>/<n> gaps`. If the audit found more than 10 gaps, run it **once more** on the revised plan (`🕵️ [bt-plan] Second audit pass …`); stop after the second pass regardless, and list any gap you chose not to resolve, with why, in the plan's Codebase Analysis. A gap the audit reports that you cannot resolve without the user is a question for the user — ask it now. Re-writing the plan file after the audit is the one case where this skill writes it more than once; it is still the only file this skill ever writes.
198
198
 
199
- Finish with `💾 [bt-plan] Plan finalized — _specs/<feature-name>_plan.md (<n> tasks, <k> decisions)`, then report the number of tasks and decisions, the two or three most consequential decisions (with their D-numbers), anything you were unable to resolve, and the same next-step hint as Quick Plan mode. Then **STOP** — heavy or not, this skill never begins T1.
199
+ Finish with `💾 [bt-plan] Plan finalized — _specs/<feature-name>_plan.md (<n> tasks, <k> decisions)`, then report the number of tasks and decisions, the estimated execution time, the two or three most consequential decisions (with their D-numbers), anything you were unable to resolve, and the same next-step hint as Quick Plan mode. Then **STOP** — heavy or not, this skill never begins T1.
200
200
 
201
201
  ---
202
202
 
@@ -337,6 +337,19 @@ If the feature is spec-impacting (`spec_impact: yes`, or your analysis found it
337
337
 
338
338
  Make this the LAST task so it captures the true final state. If the feature is genuinely not spec-impacting (`spec_impact: no`), omit this task, but state in the Codebase Analysis that no SPEC.md change is required.
339
339
 
340
+ ### Estimated execution time (required, all modes)
341
+
342
+ Directly **before** `## How to execute this plan`, write a `## Estimated execution time` section so the user knows up front whether this is hours or days of agent time. Estimate bt-execute's wall-clock time per phase, from what the phase actually does, using these calibration rates (Standard mode, one implementer + one independent verifier per phase):
343
+
344
+ | Phase contents | Per phase |
345
+ | --- | --- |
346
+ | Code + Node/unit tests only | 15–25 min |
347
+ | Adds a C#/native build, DLL rebuild or a full test chain | 30–45 min |
348
+ | Adds Unity authoring / bake / export, or browser read-backs and screenshots | 45–90 min |
349
+ | Visual / parity "fix until green" loop | 1–3 h |
350
+
351
+ Write a small table (`Phase | Tasks | What makes it slow | Estimate`), then one **Total** line as a range in hours (and days if over ~16 h), including a 20–40 % allowance for fix loops, e.g. `**Total: ~5–8 h of unattended agent time (Standard mode); ~2–3× that with --strict.**` Name the single biggest uncertainty in one line. This is an estimate, not a pin: bt-execute never verifies against it.
352
+
340
353
  Finally, include this exact `## How to execute this plan` section verbatim in the document so the plan is self-describing no matter how it is later run:
341
354
 
342
355
  ```markdown