substrate-ai 0.21.13 → 0.21.15
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/{acceptance-judge-CKNJdq03.js → acceptance-judge-D5Iba2D_.js} +1 -1
- package/dist/{acceptance-judge-eIZZha1C.js → acceptance-judge-lAv5EvYA.js} +40 -3
- package/dist/cli/index.js +511 -156
- package/dist/{health-DAOWdkka.js → health-CvsH53bv.js} +2 -2
- package/dist/{health-DBBrM_te.js → health-kr5GC1SN.js} +2 -2
- package/dist/{interactive-prompt-CV9rLUNT.js → interactive-prompt-B5KE69I6.js} +2 -2
- package/dist/{manifest-read-Bq2_Ojbv.js → manifest-read-CcK_LIaI.js} +204 -2
- package/dist/modules/interactive-prompt/index.js +2 -2
- package/dist/{run-B31go5Ud.js → run-DR_D61vF.js} +5 -5
- package/dist/{run-CGuoRwXB.js → run-UilZoIOh.js} +5 -5
- package/package.json +1 -1
- package/packs/bmad/manifest.yaml +4 -0
- package/packs/bmad/prompts/acceptance-derive.md +63 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./logger-KeHncl-f.js";
|
|
2
|
-
import { runAcceptanceJudge, validateEvidenceGrounding, validateVerdictCoverage } from "./acceptance-judge-
|
|
2
|
+
import { runAcceptanceJudge, validateEvidenceGrounding, validateVerdictCoverage } from "./acceptance-judge-lAv5EvYA.js";
|
|
3
3
|
|
|
4
4
|
export { runAcceptanceJudge };
|
|
@@ -442,6 +442,42 @@ const AcceptanceJudgeResultSchema = z.object({
|
|
|
442
442
|
verdicts: z.array(AcceptanceJudgeVerdictSchema).default([]),
|
|
443
443
|
error: z.string().optional()
|
|
444
444
|
});
|
|
445
|
+
/**
|
|
446
|
+
* A journey candidate the derive agent identified in the PRD. Mirrors the
|
|
447
|
+
* candidate-file journey shape (packages/sdlc acceptance/candidate.ts):
|
|
448
|
+
* epic never required (a PRD doesn't know epics — supplied at ratify);
|
|
449
|
+
* end_states may be empty (needs-elaboration is surfaced, not dropped);
|
|
450
|
+
* criticality carries a one-line rationale for ratify review.
|
|
451
|
+
*/
|
|
452
|
+
const AcceptanceDeriveJourneySchema = z.object({
|
|
453
|
+
id: z.string().min(1),
|
|
454
|
+
title: z.string().min(1),
|
|
455
|
+
criticality: z.preprocess((val) => typeof val === "string" ? val.toLowerCase() : val, z.enum(["critical", "standard"])),
|
|
456
|
+
criticality_rationale: z.string().optional(),
|
|
457
|
+
surfaces: z.array(z.enum([
|
|
458
|
+
"email",
|
|
459
|
+
"cli",
|
|
460
|
+
"file",
|
|
461
|
+
"web"
|
|
462
|
+
])).min(1),
|
|
463
|
+
end_states: z.array(z.object({
|
|
464
|
+
id: z.string().min(1),
|
|
465
|
+
given: z.string().min(1),
|
|
466
|
+
walk: z.string().min(1),
|
|
467
|
+
then: z.string().min(1)
|
|
468
|
+
})).default([])
|
|
469
|
+
});
|
|
470
|
+
/**
|
|
471
|
+
* Output contract of the acceptance-derive sub-agent. The PRD it reads is
|
|
472
|
+
* UNTRUSTED input — schema-forcing the output (and validating journey shape)
|
|
473
|
+
* is one of the two structural defenses; the prompt's data-not-instructions
|
|
474
|
+
* posture is the other.
|
|
475
|
+
*/
|
|
476
|
+
const AcceptanceDeriveResultSchema = z.object({
|
|
477
|
+
result: z.preprocess((val) => val === "failure" ? "failed" : val, z.enum(["success", "failed"])),
|
|
478
|
+
journeys: z.array(AcceptanceDeriveJourneySchema).default([]),
|
|
479
|
+
error: z.string().optional()
|
|
480
|
+
});
|
|
445
481
|
|
|
446
482
|
//#endregion
|
|
447
483
|
//#region src/modules/compiled-workflows/token-ceiling.ts
|
|
@@ -456,7 +492,8 @@ const TOKEN_CEILING_DEFAULTS = {
|
|
|
456
492
|
"test-plan": 1e5,
|
|
457
493
|
"test-expansion": 2e5,
|
|
458
494
|
"probe-author": 5e4,
|
|
459
|
-
"acceptance-judge": 1e5
|
|
495
|
+
"acceptance-judge": 1e5,
|
|
496
|
+
"acceptance-derive": 2e5
|
|
460
497
|
};
|
|
461
498
|
/**
|
|
462
499
|
* Resolve the effective token ceiling for a workflow type.
|
|
@@ -698,5 +735,5 @@ async function runAcceptanceJudge(deps, params) {
|
|
|
698
735
|
}
|
|
699
736
|
|
|
700
737
|
//#endregion
|
|
701
|
-
export { CodeReviewResultSchema, CreateStoryResultSchema, DevStoryResultSchema, ProbeAuthorResultSchema, TestExpansionResultSchema, TestPlanResultSchema, assemblePrompt, countTokens, getTokenCeiling, runAcceptanceJudge, truncateToTokens, validateEvidenceGrounding, validateVerdictCoverage };
|
|
702
|
-
//# sourceMappingURL=acceptance-judge-
|
|
738
|
+
export { AcceptanceDeriveResultSchema, CodeReviewResultSchema, CreateStoryResultSchema, DevStoryResultSchema, ProbeAuthorResultSchema, TestExpansionResultSchema, TestPlanResultSchema, assemblePrompt, countTokens, getTokenCeiling, runAcceptanceJudge, truncateToTokens, validateEvidenceGrounding, validateVerdictCoverage };
|
|
739
|
+
//# sourceMappingURL=acceptance-judge-lAv5EvYA.js.map
|