@babylonjs-toolkit/agent 1.1.62 → 1.1.66
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 +36 -5
- package/bin/bt-agent.js +64 -4
- package/lib/claude-settings.js +77 -0
- package/lib/doctor.js +36 -0
- package/lib/install.js +59 -3
- package/lib/persona.js +21 -2
- package/lib/reference.js +400 -0
- package/package.json +1 -1
- package/persona.md +1 -1
- package/scripts/postinstall.js +6 -0
- package/skills/bt-design/references/3d-hero-scroll.md +2 -2
- package/skills/bt-execute/SKILL.md +6 -6
- package/skills/bt-execute/templates/dashboard/dashboard.html +137 -5
- package/skills/bt-execute/templates/dashboard/dashboard.template.js +5 -0
- package/skills/bt-execute/templates/dashboard/data-schema.md +13 -1
- package/skills/bt-gauntlet/SKILL.md +2 -2
- package/skills/bt-gauntlet/references/unity-pipeline.md +1 -1
- package/skills/bt-gauntlet/references/workspace.md +1 -1
- package/skills/bt-plan/SKILL.md +2 -2
- package/skills/bt-prototype/SKILL.md +1 -1
- package/skills/bt-recon/SKILL.md +2 -2
- package/skills/bt-spec/SKILL.md +2 -2
|
@@ -334,8 +334,8 @@
|
|
|
334
334
|
.figures { margin: 0; padding: 14px 18px; border-radius: var(--radius-small); background: var(--bg-sunken); border: 1px solid var(--line); display: grid; gap: 2px; align-self: start; }
|
|
335
335
|
.figures div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
|
|
336
336
|
.figures div:first-child { border-top: 0; }
|
|
337
|
-
.figures dt { color: var(--text-muted); font-size: 13px; }
|
|
338
|
-
.figures dd { margin: 0; font: 700 13.5px/1.5 var(--font-mono); text-align: right; }
|
|
337
|
+
.figures dt { flex: none; color: var(--text-muted); font-size: 13px; white-space: nowrap; }
|
|
338
|
+
.figures dd { min-width: 0; margin: 0; font: 700 13.5px/1.5 var(--font-mono); text-align: right; overflow-wrap: anywhere; }
|
|
339
339
|
|
|
340
340
|
/* ---------- Snapshots ---------- */
|
|
341
341
|
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-top: 18px; }
|
|
@@ -650,6 +650,19 @@
|
|
|
650
650
|
.aar-section h4 { font-size: 15.5px; }
|
|
651
651
|
.aar-section p { margin: 0 0 8px; color: var(--text-muted); font-size: 14px; }
|
|
652
652
|
.aar-section ul { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 14px; display: grid; gap: 4px; }
|
|
653
|
+
.testing { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--bg); display: grid; gap: 14px; }
|
|
654
|
+
.testing > h4 { margin: 0; font-size: 15.5px; }
|
|
655
|
+
.testing > p { margin: 0; color: var(--text-muted); font-size: 14px; }
|
|
656
|
+
.testing-part > summary { cursor: pointer; font: 700 11px/1.6 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
|
|
657
|
+
.testing-part[open] > summary { margin-bottom: 10px; }
|
|
658
|
+
.testing-cases { display: grid; gap: 16px; }
|
|
659
|
+
.case-head { margin-bottom: 6px; font-size: 13.5px; font-weight: 600; }
|
|
660
|
+
.case-head .task-link { margin-right: 6px; }
|
|
661
|
+
.cell-note { margin-top: 2px; color: var(--text-muted); font-size: 12.5px; }
|
|
662
|
+
.count { font: 700 12.5px/1.5 var(--font-mono); }
|
|
663
|
+
.count-pass { color: var(--done); }
|
|
664
|
+
.count-fail { color: var(--failed); }
|
|
665
|
+
.task-link { font: 700 12.5px/1.5 var(--font-mono); }
|
|
653
666
|
|
|
654
667
|
/* ---------- Updated notifications ---------- */
|
|
655
668
|
.updated-badge {
|
|
@@ -714,7 +727,7 @@
|
|
|
714
727
|
/* ---------- Containment: nothing is ever wider than its card ---------- */
|
|
715
728
|
/* A single-column grid's column defaults to the width of its longest unbreakable line (a long path,
|
|
716
729
|
a hash), which pushes every paragraph in it past the card's edge. Size those columns to the card. */
|
|
717
|
-
.tasks, .task-body, .task-details, .highlights, .figures, .live-steps, .update-notes,
|
|
730
|
+
.tasks, .task-body, .task-details, .highlights, .figures, .live-steps, .update-notes, .testing, .testing-cases,
|
|
718
731
|
.detail-block ul, .aar-section ul { grid-template-columns: minmax(0, 1fr); }
|
|
719
732
|
.highlights li { grid-template-columns: 22px minmax(0, 1fr); }
|
|
720
733
|
/* Long paths, identifiers and URLs wrap wherever they must instead of running off the edge. */
|
|
@@ -787,6 +800,8 @@
|
|
|
787
800
|
const STATUS_ICONS = { done: '✓', 'in-progress': '◐', built: '◆', verifying: '⟳', pending: '○', deferred: '⏭', failed: '✕' };
|
|
788
801
|
/** Longest test or acceptance result still shown as a single badge; anything longer is wrapping text. */
|
|
789
802
|
const VERDICT_BADGE_MAX_LENGTH = 16;
|
|
803
|
+
// The report's task-by-task testing table starts open for a short plan and folded for a long one.
|
|
804
|
+
const TESTING_TABLE_OPEN_ROWS = 12;
|
|
790
805
|
/** Where the Babylon Toolkit Desktop Agent, whose skills generate this dashboard, is published. */
|
|
791
806
|
const SKILLS_DOWNLOAD_URL = 'https://www.npmjs.com/package/@babylonjs-toolkit/agent';
|
|
792
807
|
/** Minutes without a live update before the Now banner warns that the run has gone quiet. */
|
|
@@ -988,6 +1003,7 @@
|
|
|
988
1003
|
</div>
|
|
989
1004
|
${renderFigures(allTasks, doneCount)}
|
|
990
1005
|
</div>
|
|
1006
|
+
${renderTesting(allTasks)}
|
|
991
1007
|
${renderAfterActionSections(afterAction.sections)}
|
|
992
1008
|
${updateNotes(afterAction.updates)}
|
|
993
1009
|
</article>
|
|
@@ -1005,11 +1021,16 @@
|
|
|
1005
1021
|
const phases = report.phases || [];
|
|
1006
1022
|
const retried = allTasks.filter((task) => Number(task.attempts) > 1).length;
|
|
1007
1023
|
const deferred = allTasks.filter((task) => task.status === 'deferred' || task.status === 'failed').length;
|
|
1008
|
-
|
|
1024
|
+
// Each task reports the whole suite it ran, so adding up the tasks counts the same tests many times over.
|
|
1025
|
+
// The final suites are the true count; without them, say how many tasks were tested.
|
|
1026
|
+
const suites = finalSuites();
|
|
1027
|
+
const testsFigure = suites.length
|
|
1028
|
+
? ['Tests passing', `${suites.reduce((total, suite) => total + (Number(suite.passed) || 0), 0)}${sumFailed(suites) ? ` · ${sumFailed(suites)} failed` : ''}`]
|
|
1029
|
+
: ['Tasks with tests', `${allTasks.filter(hasTests).length} / ${allTasks.length}`];
|
|
1009
1030
|
const rows = [
|
|
1010
1031
|
['Tasks verified', `${doneCount} / ${allTasks.length}`],
|
|
1011
1032
|
['Phases', `${phases.filter((phase) => phase.status === 'done').length} / ${phases.length}`],
|
|
1012
|
-
|
|
1033
|
+
testsFigure,
|
|
1013
1034
|
['Needed a second attempt', String(retried)],
|
|
1014
1035
|
['Deferred', String(deferred)],
|
|
1015
1036
|
['Active time', report.activeTime || '—'],
|
|
@@ -1203,6 +1224,104 @@
|
|
|
1203
1224
|
return blocks ? `<div class="task-details">${blocks}</div>` : '';
|
|
1204
1225
|
}
|
|
1205
1226
|
|
|
1227
|
+
/* ===================== Testing and verification ===================== */
|
|
1228
|
+
|
|
1229
|
+
/** The suites as they stand at the end of the plan — bt-execute writes them from one last full run of each. */
|
|
1230
|
+
function finalSuites() {
|
|
1231
|
+
const testing = report.afterAction && report.afterAction.testing;
|
|
1232
|
+
return testing && Array.isArray(testing.suites) ? testing.suites : [];
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
function sumFailed(suites) {
|
|
1236
|
+
return suites.reduce((total, suite) => total + (Number(suite.failed) || 0), 0);
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
function hasTests(task) {
|
|
1240
|
+
return Boolean(task.tests && (Number(task.tests.passed) || Number(task.tests.failed)));
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
function hasLiveCheck(task) {
|
|
1244
|
+
return task.verifyLevel === 'live' || Boolean(task.details && task.details.liveCheck);
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
function testCasesOf(task) {
|
|
1248
|
+
return (task.details && task.details.testCases) || [];
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
/**
|
|
1252
|
+
* The After Action Report's testing section. The final suites and how the plan was tested are written by
|
|
1253
|
+
* bt-execute; the task-by-task table and the test cases are read from the tasks, so they always agree with them.
|
|
1254
|
+
*/
|
|
1255
|
+
function renderTesting(allTasks) {
|
|
1256
|
+
const testing = (report.afterAction && report.afterAction.testing) || {};
|
|
1257
|
+
const suites = finalSuites();
|
|
1258
|
+
const checked = allTasks.filter((task) => task.verifier || hasTests(task) || testCasesOf(task).length || ['done', 'deferred', 'failed'].includes(task.status));
|
|
1259
|
+
const gaps = testing.gaps || [];
|
|
1260
|
+
if (!suites.length && !checked.length && !testing.summary && !gaps.length) return '';
|
|
1261
|
+
|
|
1262
|
+
const suiteTable = detailTable(['Suite', 'Passed', 'Failed', 'Added', 'Command'], [32, 11, 11, 11, 35],
|
|
1263
|
+
suites.map((suite) => [
|
|
1264
|
+
`${formatInline(suite.name || '')}${suite.note ? `<div class="cell-note">${formatInline(suite.note)}</div>` : ''}`,
|
|
1265
|
+
`<span class="count count-pass">${escapeHtml(suite.passed ?? '—')}</span>`,
|
|
1266
|
+
`<span class="count${Number(suite.failed) ? ' count-fail' : ''}">${escapeHtml(suite.failed ?? 0)}</span>`,
|
|
1267
|
+
escapeHtml(suite.added ?? '—'),
|
|
1268
|
+
suite.command ? `<code>${escapeHtml(suite.command)}</code>` : '',
|
|
1269
|
+
]));
|
|
1270
|
+
|
|
1271
|
+
const withTests = checked.filter(hasTests).length;
|
|
1272
|
+
const liveChecks = checked.filter(hasLiveCheck).length;
|
|
1273
|
+
const verified = checked.filter((task) => task.status === 'done').length;
|
|
1274
|
+
const taskTable = detailTable(['Task', 'Verifier', 'Tests', 'Test files', 'Cases', 'Live check'], [27, 12, 14, 31, 8, 8],
|
|
1275
|
+
checked.map((task) => {
|
|
1276
|
+
const cases = testCasesOf(task);
|
|
1277
|
+
// Results often record what was observed rather than a verdict, so count the cases and flag only stated failures.
|
|
1278
|
+
const casesFailed = cases.filter((testCase) => /^fail/i.test(String(testCase.result || '').trim())).length;
|
|
1279
|
+
const tests = task.tests || {};
|
|
1280
|
+
return [
|
|
1281
|
+
`<a class="task-link" href="#task-${escapeAttribute(task.id || '')}">${escapeHtml(task.id || '')}</a><div class="cell-note">${escapeHtml(task.title || '')}</div>`,
|
|
1282
|
+
`${taskVerdict(task)}${Number(task.attempts) > 1 ? `<div class="cell-note">${escapeHtml(task.attempts)} attempts</div>` : ''}`,
|
|
1283
|
+
hasTests(task)
|
|
1284
|
+
? `<span class="count count-pass">${escapeHtml(tests.passed ?? 0)} passed</span>${Number(tests.failed) ? `<div class="count count-fail">${escapeHtml(tests.failed)} failed</div>` : ''}`
|
|
1285
|
+
: `<span class="cell-note" title="${escapeAttribute(tests.note || '')}">${tests.note ? escapeHtml(tests.note) : '—'}</span>`,
|
|
1286
|
+
(tests.files || []).length ? tests.files.map((file) => `<code>${escapeHtml(file)}</code>`).join('<br>') : '—',
|
|
1287
|
+
cases.length ? `${cases.length}${casesFailed ? `<div class="count count-fail">${casesFailed} failed</div>` : ''}` : '—',
|
|
1288
|
+
hasLiveCheck(task) ? `<span title="${escapeAttribute((task.details && task.details.liveCheck) || 'Checked live')}">Yes</span>` : '—',
|
|
1289
|
+
];
|
|
1290
|
+
}));
|
|
1291
|
+
|
|
1292
|
+
const caseTasks = checked.filter((task) => testCasesOf(task).length);
|
|
1293
|
+
const caseCount = caseTasks.reduce((total, task) => total + testCasesOf(task).length, 0);
|
|
1294
|
+
const caseTables = caseTasks.map((task) => `
|
|
1295
|
+
<div class="detail-block">
|
|
1296
|
+
<div class="case-head"><a class="task-link" href="#task-${escapeAttribute(task.id || '')}">${escapeHtml(task.id || '')}</a> ${escapeHtml(task.title || '')}</div>
|
|
1297
|
+
${detailTable(['Case', 'Expected', 'Result'], [28, 36, 36],
|
|
1298
|
+
testCasesOf(task).map((testCase) => [formatInline(testCase.name || ''), formatInline(testCase.expected || ''), verdict(testCase.result)]))}
|
|
1299
|
+
</div>`).join('');
|
|
1300
|
+
|
|
1301
|
+
return `
|
|
1302
|
+
<div class="testing">
|
|
1303
|
+
<h4>Testing and verification</h4>
|
|
1304
|
+
${paragraphs(testing.summary)}
|
|
1305
|
+
${suiteTable ? `<div class="detail-block"><h4>Final test suites</h4>${suiteTable}</div>` : ''}
|
|
1306
|
+
${gaps.length ? `<div class="detail-block"><h4>Not covered</h4><ul>${gaps.map((gap) => `<li>${formatInline(gap)}</li>`).join('')}</ul></div>` : ''}
|
|
1307
|
+
${taskTable ? `<details class="testing-part" ${checked.length <= TESTING_TABLE_OPEN_ROWS ? 'open' : ''}>
|
|
1308
|
+
<summary>Task by task · ${verified} of ${allTasks.length} verified · ${withTests} with tests · ${liveChecks} checked live</summary>
|
|
1309
|
+
${taskTable}
|
|
1310
|
+
</details>` : ''}
|
|
1311
|
+
${caseTables ? `<details class="testing-part">
|
|
1312
|
+
<summary>Every test case · ${caseCount} across ${caseTasks.length} task${caseTasks.length === 1 ? '' : 's'}</summary>
|
|
1313
|
+
<div class="testing-cases">${caseTables}</div>
|
|
1314
|
+
</details>` : ''}
|
|
1315
|
+
</div>`;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
/** A task's verifier result as one badge, from its status; the verifier's full sentence is its tooltip. */
|
|
1319
|
+
function taskVerdict(task) {
|
|
1320
|
+
const tone = { done: 'pass', failed: 'fail' }[task.status] || 'other';
|
|
1321
|
+
const label = { done: 'PASS', failed: 'FAIL' }[task.status] || STATUS_LABELS[task.status] || task.status || '';
|
|
1322
|
+
return `<span class="verdict verdict-${tone}" title="${escapeAttribute(task.verifier || '')}">${escapeHtml(label)}</span>`;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1206
1325
|
/** Verbose After Action Report sections: Architecture, Problems and resolutions, Lessons learned … */
|
|
1207
1326
|
function renderAfterActionSections(sections) {
|
|
1208
1327
|
if (!(sections || []).length) return '';
|
|
@@ -1471,6 +1590,13 @@
|
|
|
1471
1590
|
afterAction.updates = asUpdates(afterAction.updates);
|
|
1472
1591
|
afterAction.snapshots = repairSnapshots(afterAction.snapshots);
|
|
1473
1592
|
['body', 'highlights', 'sections'].forEach((key) => { if (afterAction[key] !== undefined) afterAction[key] = asList(afterAction[key]); });
|
|
1593
|
+
if (afterAction.testing !== undefined) {
|
|
1594
|
+
if (afterAction.testing === null || typeof afterAction.testing !== 'object') afterAction.testing = null;
|
|
1595
|
+
else {
|
|
1596
|
+
afterAction.testing.suites = asList(afterAction.testing.suites).filter((suite) => suite && typeof suite === 'object');
|
|
1597
|
+
afterAction.testing.gaps = asTextList(afterAction.testing.gaps);
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1474
1600
|
}
|
|
1475
1601
|
data.phases.forEach((phase) => {
|
|
1476
1602
|
phase.updates = asUpdates(phase.updates);
|
|
@@ -1709,6 +1835,12 @@
|
|
|
1709
1835
|
lightboxCaption.textContent = trigger.dataset.caption || '';
|
|
1710
1836
|
lightbox.classList.add('is-open');
|
|
1711
1837
|
});
|
|
1838
|
+
// A link to a task opens its card, not just scrolls to the folded row.
|
|
1839
|
+
document.addEventListener('click', (event) => {
|
|
1840
|
+
const link = event.target.closest('a[href^="#task-"]');
|
|
1841
|
+
const target = link && document.getElementById(decodeURIComponent(link.getAttribute('href').slice(1)));
|
|
1842
|
+
if (target && target.tagName === 'DETAILS') target.open = true;
|
|
1843
|
+
});
|
|
1712
1844
|
const close = () => lightbox.classList.remove('is-open');
|
|
1713
1845
|
lightbox.addEventListener('click', close);
|
|
1714
1846
|
document.addEventListener('keydown', (event) => { if (event.key === 'Escape') close(); });
|
|
@@ -114,9 +114,21 @@ Top level:
|
|
|
114
114
|
| `highlights` | the results worth remembering |
|
|
115
115
|
| `comparison` | ONE before/after for the plan as a whole — "before" captured before T1 started, "after" at the end, from the same camera or viewport: `{ "title", "caption", "source", "before": { "src", "caption" }, "after": { "src", "caption" } }`; `null` when the plan has nothing to see |
|
|
116
116
|
| `snapshots` | optional: the plan's key progression, or the end-to-end proof |
|
|
117
|
+
| `testing` | how the plan was tested — every run, not only `--verbose` (below) |
|
|
117
118
|
| `sections` | `--verbose` only: `[{ "title", "body": [paragraphs], "items": [bullets] }]`, in this order where they apply — Architecture · Phase by phase · Problems and resolutions · Deviations from the plan · Known limitations · Lessons learned · Estimate vs actual · Recommended next steps |
|
|
118
119
|
| `updates` | see *Updated notifications* |
|
|
119
120
|
|
|
121
|
+
`afterAction.testing` — the page shows it as *Testing and verification*, beside a task-by-task table and
|
|
122
|
+
every test case that it reads from the tasks themselves:
|
|
123
|
+
|
|
124
|
+
| Field | Meaning |
|
|
125
|
+
|---|---|
|
|
126
|
+
| `summary` | paragraphs: how the plan was tested — unit tests, the verifier's re-runs, what was checked live and on what, the end-to-end check |
|
|
127
|
+
| `suites` | `[{ "name", "command", "passed", "failed", "added", "note" }]` — every suite the plan touched, from **one last full run of each at run end**, never added up from the tasks (each task reports the whole suite it ran, so a sum counts the same tests many times). `added` is how many tests this plan wrote; `note` explains any failure that pre-dates the plan |
|
|
128
|
+
| `gaps` | what is not covered by a test or a live check, one string per point |
|
|
129
|
+
|
|
130
|
+
The page's *Tests passing* figure is the sum of `suites`; without them it shows how many tasks have tests.
|
|
131
|
+
|
|
120
132
|
Each phase:
|
|
121
133
|
|
|
122
134
|
| Field | Meaning |
|
|
@@ -155,7 +167,7 @@ Each task:
|
|
|
155
167
|
|---|---|
|
|
156
168
|
| `approach` | paragraphs: how it was built, how the pieces fit, why this way and not the alternatives |
|
|
157
169
|
| `changes` | `[{ "file", "change": "what changed in it and why" }]` |
|
|
158
|
-
| `testCases` | `[{ "name", "expected", "result": "PASS
|
|
170
|
+
| `testCases` | `[{ "name", "expected", "result" }]` — `result` leads with `PASS` or `FAIL`, then what was observed: `"PASS — 0→74 km/h on held W"` |
|
|
159
171
|
| `acceptance` | `[{ "criterion", "result": "PASS" \| "FAIL", "evidence" }]` |
|
|
160
172
|
| `problems` | `[{ "attempt": "1", "failed", "cause", "fix" }]` |
|
|
161
173
|
| `liveCheck` | what was looked at, where, at what resolution, how it was judged |
|
|
@@ -67,11 +67,11 @@ Downgrading is not a neutral choice. A critic that is the same context which jus
|
|
|
67
67
|
|
|
68
68
|
## ⚠️ Required Reading Before Any Babylon Work
|
|
69
69
|
|
|
70
|
-
For any round involving Babylon, BabylonJS, or the Babylon Toolkit, first ensure you have already
|
|
70
|
+
For any round involving Babylon, BabylonJS, or the Babylon Toolkit, first ensure you have already read the Babylon Toolkit Agent Reference in the current remembered session/context:
|
|
71
71
|
|
|
72
72
|
https://raw.githubusercontent.com/babylontoolkit/agent/main/reference.md
|
|
73
73
|
|
|
74
|
-
If you have not read it in this session/context, or you no longer remember it due to context loss/compaction (which WILL be the case on `--resume` in a fresh session),
|
|
74
|
+
If you have not read it in this session/context, or you no longer remember it due to context loss/compaction (which WILL be the case on `--resume` in a fresh session), read it before writing any code. Treat it as the authority for conventions, API, and patterns; read its linked subpages only when relevant — and for a `unity` job the Unity Exporter subpage is **always** relevant, plus the Blender CLI subpage whenever model work is in scope. Do not re-read what you still remember. If a required document cannot be read, STOP and tell the user. Do not guess at the API. Builders spawned as subagents must be given (or told to read) the Agent Reference too — a subagent does not inherit your context.
|
|
75
75
|
|
|
76
76
|
## ⚠️ Babylon Toolkit Component Authority (supplied interactive assets)
|
|
77
77
|
|
|
@@ -38,7 +38,7 @@ scenes; geometry, UVs, PBR maps, LODs and skinning for models.
|
|
|
38
38
|
> container** (`selection != null`, components but no scene metadata). A model used in a level ships inside
|
|
39
39
|
> that level's export; there is nothing asset-specific to do for it. See § 6.B.
|
|
40
40
|
|
|
41
|
-
> **Required reading before round 1.**
|
|
41
|
+
> **Required reading before round 1.** Read the Agent Reference's
|
|
42
42
|
> [Unity Exporter Instructions](https://raw.githubusercontent.com/babylontoolkit/agent/main/references/unity-exporter-cli.md)
|
|
43
43
|
> and [Unity Authoring Recipes](https://raw.githubusercontent.com/babylontoolkit/agent/main/references/unity-authoring-recipes.md)
|
|
44
44
|
> in full — and, for any round that touches Blender, the
|
|
@@ -119,7 +119,7 @@ progress.md updated: attempt 3/5, stall -> approaching (same top gap twice)
|
|
|
119
119
|
|
|
120
120
|
1. Resolve the job: explicit name → that job; one job in `.agents/gauntlet/` → resume it; several → list them and
|
|
121
121
|
ask.
|
|
122
|
-
2.
|
|
122
|
+
2. Read the Babylon Toolkit Agent Reference if not already remembered in this session.
|
|
123
123
|
3. Read `.agents/gauntlet/<name>/loop-card.md` → `progress.md` → `pipeline.md` → `cameras.md` →
|
|
124
124
|
`components.md` (if present) → the last 1–2 `rounds/*.md`.
|
|
125
125
|
4. Read the pipeline reference for the job's `Kind` and **re-run its prerequisite gate**. This is not
|
package/skills/bt-plan/SKILL.md
CHANGED
|
@@ -23,9 +23,9 @@ Turn a feature spec into `.agents/specs/<slug>/documents/<slug>_plan.md`: an ord
|
|
|
23
23
|
|
|
24
24
|
- **TIME MATTERS** — on by default; `--no-time-limit` turns it off. Treat the arguments as ending with `TIME MATTERS`: the user is waiting on this run, so finish quickly — research only what the plan needs, keep subagents few and their questions narrow, and do not re-read what you already have. Begin every subagent prompt with `TIME MATTERS.` Print `⏱️ [bt-plan] TIME MATTERS` at the start (`--no-time-limit`: print `⏱️ [bt-plan] No time limit`, and do not add it). Speed never skips a required step, the Heavy Plan cold-context audit, or anything the plan needs to be complete.
|
|
25
25
|
- **Planning only — in every mode.** Research read-only; the only files you write are the plan and the dashboard (`dashboard.html` and its data files) in the feature folder, plus the one `.gitignore` line Step 4 names. Never implement a task, edit source, or run builds/tests — not even a trivial first task. Writing the plan is the last action; the user runs `bt-execute` separately.
|
|
26
|
-
- **Babylon work:** if you have not read the Babylon Toolkit Agent Reference in this session,
|
|
26
|
+
- **Babylon work:** if you have not read the Babylon Toolkit Agent Reference in this session, read it once: https://raw.githubusercontent.com/babylontoolkit/agent/main/reference.md — the authority for conventions and API; read sub-documents only when relevant, and again only if a context compaction made you forget it. If it cannot be read, stop and tell the user — do not guess at the API.
|
|
27
27
|
- **Say what you are doing.** Before any step that takes more than a few seconds print one short line — `🔎 [bt-plan] <what> …` — and one when it returns; one line per subagent going out and coming back. A silent run looks like a hang and gets cancelled.
|
|
28
|
-
- **Subagents:** running this skill is the user's request to use them where it says so. Use whatever subagent tool your host provides (its name varies by host — e.g. `Agent` or `Task`); if there is none, work inline and say so. Tell exploration subagents they need not
|
|
28
|
+
- **Subagents:** running this skill is the user's request to use them where it says so. Use whatever subagent tool your host provides (its name varies by host — e.g. `Agent` or `Task`); if there is none, work inline and say so. Tell exploration subagents they need not read the Agent Reference.
|
|
29
29
|
|
|
30
30
|
## Step 1. Analyze (required before writing)
|
|
31
31
|
|
|
@@ -53,7 +53,7 @@ Use the user's message after the skill name as the `arguments`.
|
|
|
53
53
|
|
|
54
54
|
## ⚠️ Required reading before any build
|
|
55
55
|
|
|
56
|
-
For any Babylon / BabylonJS / Babylon Toolkit work, ensure the **Agent Reference** is already read in this session/context (
|
|
56
|
+
For any Babylon / BabylonJS / Babylon Toolkit work, ensure the **Agent Reference** is already read in this session/context (read `https://raw.githubusercontent.com/babylontoolkit/agent/main/reference.md` first if not; and its `web-kie-servers.md` sub-document if using the KIE MCP servers, or its `web-higgsfield-cli.md` sub-document if using the Higgsfield CLI). If a required document cannot be read, STOP and tell the user. Do not re-read what you already remember.
|
|
57
57
|
|
|
58
58
|
If the project keeps a root **SPEC.md**, read it first and conform to its architecture/conventions; record the shipped prototypes per the project's working agreement when the batch lands.
|
|
59
59
|
|
package/skills/bt-recon/SKILL.md
CHANGED
|
@@ -30,7 +30,7 @@ Run reconnaissance on existing code nobody has documented — one subsystem or t
|
|
|
30
30
|
- **Read-only on the project.** Research only. The files you write are the recon doc, the guide, and screenshots under `.agents/recon/<slug>_recon/` — nothing else. No source edits, no builds, no installs, no tests, no shell commands beyond the read-only `git` commands above.
|
|
31
31
|
- **Evidence or it is unknown.** Every factual claim cites `path:line` (or `path:start-end`) and carries one confidence tag: `[code]` read in the source · `[live]` seen in the running app · `[history]` from git history · `[inferred]` deduced, with the reason in the same line. Anything you cannot establish goes in `## Unknowns` with what would settle it. Never fill a gap with a plausible guess — an inherited system is exactly where a confident wrong guess does the most damage.
|
|
32
32
|
- **Write the system, not the review process.** The recon describes what the code does and why. It never records how the recon was carried out (subagent counts, tool lists, audit logs).
|
|
33
|
-
- **Babylon work:** if the scope uses BabylonJS or the Babylon Toolkit and you have not read the Babylon Toolkit Agent Reference in this session,
|
|
33
|
+
- **Babylon work:** if the scope uses BabylonJS or the Babylon Toolkit and you have not read the Babylon Toolkit Agent Reference in this session, read it once: https://raw.githubusercontent.com/babylontoolkit/agent/main/reference.md — it is the authority for the API and conventions the code is built on, so it tells you what is toolkit behavior and what is project code. Read its sub-documents only when relevant. If it cannot be read, stop and tell the user.
|
|
34
34
|
- **Say what you are doing.** Before any step that takes more than a few seconds (a search sweep, a big read, each subagent, the live pass) print one short line — `🔎 [bt-recon] <what> …` — and one when it returns. A recon runs long; a silent run looks like a hang and gets cancelled.
|
|
35
35
|
- **Subagents:** running this skill is the user's request to use them where this skill says so. Use whatever subagent tool your host provides (its name varies by host — e.g. `Agent` or `Task`); if there is none, do the work inline, slice by slice, and say so.
|
|
36
36
|
|
|
@@ -59,7 +59,7 @@ If `.agents/recon/<recon_slug>_recon.md` already exists, ask whether to refresh
|
|
|
59
59
|
Split the scope map into cohesive **slices** — by module, feature or layer, roughly 3–8 thousand lines each, keeping files that call each other heavily in the same slice. `small` → read every file yourself, in full. Otherwise launch one read-only reader subagent per slice (all at once where your host allows), each with a brief, not homework:
|
|
60
60
|
|
|
61
61
|
- its file list, the scope-map summary, the brief and the anchors;
|
|
62
|
-
- relevant Agent Reference excerpts for Babylon code, with: *"Do not
|
|
62
|
+
- relevant Agent Reference excerpts for Babylon code, with: *"Do not read the Agent Reference — the parts you need are here, and this overrides any standing instruction to read it first. Read one sub-document (search it for the API, never the whole file) only if you hit an API this brief does not cover, and say which."*;
|
|
63
63
|
- verbatim: *"Read-only: you may read, search and report. Do not edit or create files, and do not run builds, tests or any command that writes. Read every file in your list in full — not excerpts. You may open files outside your list to resolve a call, but report only what concerns your slice."*;
|
|
64
64
|
- the extraction schema, verbatim:
|
|
65
65
|
|
package/skills/bt-spec/SKILL.md
CHANGED
|
@@ -24,9 +24,9 @@ Turn a short feature idea into a spec file that `bt-plan` can plan from. Follow
|
|
|
24
24
|
|
|
25
25
|
- **TIME MATTERS** — on by default; `--no-time-limit` turns it off. Treat the arguments as ending with `TIME MATTERS`: the user is waiting on this run, so finish quickly — research only what the spec needs, keep subagents few and their questions narrow, and do not re-read what you already have. Begin every subagent prompt with `TIME MATTERS.` Print `⏱️ [bt-spec] TIME MATTERS` at the start (`--no-time-limit`: print `⏱️ [bt-spec] No time limit`, and do not add it). Speed never skips a required step or lowers the quality of the spec.
|
|
26
26
|
- **Planning only.** Research read-only and write only the spec file into the new feature folder (plus `SPEC.md` from the scaffold, if the user says yes below, and a builder skill's intake file in the same `documents/` folder — Step 3). No source edits, no builds, no tests, no other shell commands.
|
|
27
|
-
- **Babylon work:** if you have not read the Babylon Toolkit Agent Reference in this session,
|
|
27
|
+
- **Babylon work:** if you have not read the Babylon Toolkit Agent Reference in this session, read it once: https://raw.githubusercontent.com/babylontoolkit/agent/main/reference.md — it is the authority for conventions and API; read its sub-documents only when relevant, and again only if a context compaction made you forget it. If it cannot be read, stop and tell the user — do not guess at the API.
|
|
28
28
|
- **Say what you are doing.** Before any step that takes more than a few seconds (a fetch, a big read, subagents) print one short line — `🔎 [bt-spec] <what> …` — and one line when it returns. A silent run looks like a hang and gets cancelled.
|
|
29
|
-
- **Subagents:** running this skill is the user's request to use them where this skill says so. Use whatever subagent tool your host provides (its name varies by host — e.g. `Agent` or `Task`); if there is none, do the work inline and say so. Tell research subagents they need not
|
|
29
|
+
- **Subagents:** running this skill is the user's request to use them where this skill says so. Use whatever subagent tool your host provides (its name varies by host — e.g. `Agent` or `Task`); if there is none, do the work inline and say so. Tell research subagents they need not read the Agent Reference.
|
|
30
30
|
|
|
31
31
|
## Step 1. Arguments, name, branch
|
|
32
32
|
|