substrate-ai 0.2.20 → 0.2.21
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/dist/cli/index.js +343 -123
- package/dist/{experimenter-prkFLFPw.js → experimenter-bc40oi8p.js} +2 -2
- package/dist/{operational-Dq4IfJzE.js → operational-CnMlvWqc.js} +47 -2
- package/dist/{run-CcWb6Kb-.js → run-BLIgARum.js} +776 -167
- package/dist/run-gmS6DsGT.js +7 -0
- package/package.json +1 -1
- package/packs/bmad/prompts/analysis-step-1-vision.md +4 -1
- package/packs/bmad/prompts/test-expansion.md +65 -0
- package/packs/bmad/prompts/test-plan.md +41 -0
- package/dist/run-C5zfaWYN.js +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./logger-D2fS2ccL.js";
|
|
2
2
|
import { createDecision } from "./decisions-Dq4cAA2L.js";
|
|
3
|
-
import { EXPERIMENT_RESULT, getRunMetrics, getStoryMetricsForRun } from "./operational-
|
|
3
|
+
import { EXPERIMENT_RESULT, getRunMetrics, getStoryMetricsForRun } from "./operational-CnMlvWqc.js";
|
|
4
4
|
import { spawnGit } from "./git-utils-CtmrZrHS.js";
|
|
5
5
|
import { spawn } from "node:child_process";
|
|
6
6
|
import { join } from "node:path";
|
|
@@ -500,4 +500,4 @@ function createExperimenter(config, deps) {
|
|
|
500
500
|
|
|
501
501
|
//#endregion
|
|
502
502
|
export { createExperimenter };
|
|
503
|
-
//# sourceMappingURL=experimenter-
|
|
503
|
+
//# sourceMappingURL=experimenter-bc40oi8p.js.map
|
|
@@ -294,7 +294,52 @@ const ESCALATION_DIAGNOSIS = "escalation-diagnosis";
|
|
|
294
294
|
* ```
|
|
295
295
|
*/
|
|
296
296
|
const STORY_OUTCOME = "story-outcome";
|
|
297
|
+
/**
|
|
298
|
+
* Category for post-implementation test expansion findings generated per-story.
|
|
299
|
+
*
|
|
300
|
+
* Key schema: "{storyKey}:{runId}"
|
|
301
|
+
*
|
|
302
|
+
* Value shape:
|
|
303
|
+
* ```json
|
|
304
|
+
* {
|
|
305
|
+
* "expansion_priority": "medium", // "low" | "medium" | "high"
|
|
306
|
+
* "coverage_gaps": [
|
|
307
|
+
* {
|
|
308
|
+
* "ac_ref": "AC1",
|
|
309
|
+
* "description": "Happy path not exercised at module boundary",
|
|
310
|
+
* "gap_type": "missing-integration" // "missing-e2e" | "missing-integration" | "unit-only"
|
|
311
|
+
* }
|
|
312
|
+
* ],
|
|
313
|
+
* "suggested_tests": [
|
|
314
|
+
* {
|
|
315
|
+
* "test_name": "runFoo integration happy path",
|
|
316
|
+
* "test_type": "integration", // "e2e" | "integration" | "unit"
|
|
317
|
+
* "description": "Test runFoo with real DB instance",
|
|
318
|
+
* "target_ac": "AC1" // optional
|
|
319
|
+
* }
|
|
320
|
+
* ],
|
|
321
|
+
* "notes": "Optional free-text notes", // optional
|
|
322
|
+
* "error": "Error message if fallback" // optional — present only on graceful fallback
|
|
323
|
+
* }
|
|
324
|
+
* ```
|
|
325
|
+
*/
|
|
326
|
+
const TEST_EXPANSION_FINDING = "test-expansion-finding";
|
|
327
|
+
/**
|
|
328
|
+
* Category for pre-implementation test plans generated per-story.
|
|
329
|
+
*
|
|
330
|
+
* Key schema: "{storyKey}"
|
|
331
|
+
*
|
|
332
|
+
* Value shape:
|
|
333
|
+
* ```json
|
|
334
|
+
* {
|
|
335
|
+
* "test_files": ["src/modules/foo/__tests__/foo.test.ts"],
|
|
336
|
+
* "test_categories": ["unit", "integration"],
|
|
337
|
+
* "coverage_notes": "AC1 covered by foo.test.ts"
|
|
338
|
+
* }
|
|
339
|
+
* ```
|
|
340
|
+
*/
|
|
341
|
+
const TEST_PLAN = "test-plan";
|
|
297
342
|
|
|
298
343
|
//#endregion
|
|
299
|
-
export { ESCALATION_DIAGNOSIS, EXPERIMENT_RESULT, OPERATIONAL_FINDING, STORY_METRICS, STORY_OUTCOME, aggregateTokenUsageForRun, aggregateTokenUsageForStory, compareRunMetrics, getBaselineRunMetrics, getRunMetrics, getStoryMetricsForRun, incrementRunRestarts, listRunMetrics, tagRunAsBaseline, writeRunMetrics, writeStoryMetrics };
|
|
300
|
-
//# sourceMappingURL=operational-
|
|
344
|
+
export { ESCALATION_DIAGNOSIS, EXPERIMENT_RESULT, OPERATIONAL_FINDING, STORY_METRICS, STORY_OUTCOME, TEST_EXPANSION_FINDING, TEST_PLAN, aggregateTokenUsageForRun, aggregateTokenUsageForStory, compareRunMetrics, getBaselineRunMetrics, getRunMetrics, getStoryMetricsForRun, incrementRunRestarts, listRunMetrics, tagRunAsBaseline, writeRunMetrics, writeStoryMetrics };
|
|
345
|
+
//# sourceMappingURL=operational-CnMlvWqc.js.map
|