guardian-framework 0.1.138 → 0.1.139
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.js
CHANGED
|
@@ -3206,7 +3206,7 @@ __export(exports_package, {
|
|
|
3206
3206
|
bin: () => bin,
|
|
3207
3207
|
author: () => author
|
|
3208
3208
|
});
|
|
3209
|
-
var name = "guardian-framework", version = "0.1.
|
|
3209
|
+
var name = "guardian-framework", version = "0.1.139", description = "Token-optimized agentic framework scaffolder with pi-first architecture", type = "module", main = "dist/exports.js", exports, types = "dist/exports.d.ts", bin, files, engines, scripts, publishConfig, pi, repository, homepage = "https://github.com/arman-jalili/guardian-framework#readme", bugs, dependencies, devDependencies, keywords, author = "Arman Wolkensteiner-Jalili", license = "MIT", package_default;
|
|
3210
3210
|
var init_package = __esm(() => {
|
|
3211
3211
|
exports = {
|
|
3212
3212
|
".": {
|
package/dist/exports.js
CHANGED
|
@@ -1991,7 +1991,7 @@ __export(exports_package, {
|
|
|
1991
1991
|
bin: () => bin,
|
|
1992
1992
|
author: () => author
|
|
1993
1993
|
});
|
|
1994
|
-
var name = "guardian-framework", version = "0.1.
|
|
1994
|
+
var name = "guardian-framework", version = "0.1.139", description = "Token-optimized agentic framework scaffolder with pi-first architecture", type = "module", main = "dist/exports.js", exports, types = "dist/exports.d.ts", bin, files, engines, scripts, publishConfig, pi, repository, homepage = "https://github.com/arman-jalili/guardian-framework#readme", bugs, dependencies, devDependencies, keywords, author = "Arman Wolkensteiner-Jalili", license = "MIT", package_default;
|
|
1995
1995
|
var init_package = __esm(() => {
|
|
1996
1996
|
exports = {
|
|
1997
1997
|
".": {
|
package/package.json
CHANGED
|
@@ -400,6 +400,8 @@ function buildExploreProtocolMessage(sessionId: string, businessContext: string)
|
|
|
400
400
|
" deliberation, no summaries — those burn your output budget and truncate the JSON.",
|
|
401
401
|
" Emit ONLY the small JSON step for the current phase and stop.",
|
|
402
402
|
"- After the last context, run /domain --validate " + sessionId + " and report the checks.",
|
|
403
|
+
"- THEN STOP. Exploration is the only task: do NOT run /domain --architect-scaffold or",
|
|
404
|
+
" /domain --enrich — the user triggers scaffold/enrich explicitly after reviewing the model.",
|
|
403
405
|
].join("\n");
|
|
404
406
|
}
|
|
405
407
|
function buildPhaseNudge(kind: PhaseKind, raw: Record<string, unknown>, sessionId: string, contextName?: string): string {
|
|
@@ -844,7 +846,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
844
846
|
const decision = nextPhaseDecision(parsedJson);
|
|
845
847
|
const savedNote = "Domain exploration saved for " + sessionId + ".";
|
|
846
848
|
if (decision.kind === "done") {
|
|
847
|
-
return { content: [{ type: "text" as const, text: savedNote + " Exploration content complete — run /domain --validate " + sessionId }] };
|
|
849
|
+
return { content: [{ type: "text" as const, text: savedNote + " Exploration content complete — run /domain --validate " + sessionId + ", then STOP and report to the user. Do NOT run /domain --architect-scaffold or /domain --enrich; the user triggers those explicitly." }] };
|
|
848
850
|
}
|
|
849
851
|
const label = decision.kind === "context" ? "context " + (decision.contextName ?? "") : decision.kind;
|
|
850
852
|
const nextMsg = buildPhaseNudge(decision.kind, parsedJson, sessionId, decision.contextName);
|
|
@@ -976,7 +978,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
976
978
|
const header = allPassed
|
|
977
979
|
? "Domain Validation - All Checks Passed"
|
|
978
980
|
: "Domain Validation - Some Checks Failed";
|
|
979
|
-
return toolResult(header + "\n" + checks.join("\n"));
|
|
981
|
+
return toolResult(header + "\n" + checks.join("\n") + "\n\nExploration is complete. Stop here — do not run /domain --architect-scaffold or /domain --enrich unless the user asks.");
|
|
980
982
|
},
|
|
981
983
|
});
|
|
982
984
|
|
|
@@ -1471,9 +1473,9 @@ export default function (pi: ExtensionAPI) {
|
|
|
1471
1473
|
resultLines.push("", "### Next Steps");
|
|
1472
1474
|
resultLines.push("1. Review ADR-001 in .pi/architecture/decisions/");
|
|
1473
1475
|
resultLines.push("2. Review the system diagram in .pi/architecture/diagrams/");
|
|
1474
|
-
resultLines.push("3. Use /epic-plan --overview or /architect to plan implementation");
|
|
1476
|
+
resultLines.push("3. Use /epic-plan --overview or /architect to plan implementation (when the user asks)");
|
|
1475
1477
|
resultLines.push("");
|
|
1476
|
-
resultLines.push("
|
|
1478
|
+
resultLines.push("When the user asks to enrich stubs with full DDD content: /domain --enrich " + sessionId);
|
|
1477
1479
|
|
|
1478
1480
|
ctx.ui.notify("Architecture scaffold complete", "success");
|
|
1479
1481
|
return resultLines.join("\n");
|