guardian-framework 0.1.138 → 0.1.140
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.140", 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
|
".": {
|
|
@@ -11102,7 +11102,7 @@ function analyzeChanges(targetDir, manifest, templateFiles, context, options) {
|
|
|
11102
11102
|
if (!filePath.startsWith(".pi/"))
|
|
11103
11103
|
continue;
|
|
11104
11104
|
const fullPath = path9.join(targetDir, filePath);
|
|
11105
|
-
if (isUserOwnedPiPath(filePath)) {
|
|
11105
|
+
if (fs10.existsSync(fullPath) && isUserOwnedPiPath(filePath)) {
|
|
11106
11106
|
changes.push({
|
|
11107
11107
|
path: filePath,
|
|
11108
11108
|
action: "preserve",
|
|
@@ -11122,7 +11122,7 @@ function analyzeChanges(targetDir, manifest, templateFiles, context, options) {
|
|
|
11122
11122
|
changes.push({ path: filePath, action: "regenerate", reason: "Export file" });
|
|
11123
11123
|
continue;
|
|
11124
11124
|
}
|
|
11125
|
-
if (record.category === "user") {
|
|
11125
|
+
if (record.category === "user" && fs10.existsSync(fullPath)) {
|
|
11126
11126
|
changes.push({
|
|
11127
11127
|
path: filePath,
|
|
11128
11128
|
action: "preserve",
|
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.140", 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
|
".": {
|
|
@@ -10226,7 +10226,7 @@ function analyzeChanges(targetDir, manifest, templateFiles, context, options) {
|
|
|
10226
10226
|
if (!filePath.startsWith(".pi/"))
|
|
10227
10227
|
continue;
|
|
10228
10228
|
const fullPath = path5.join(targetDir, filePath);
|
|
10229
|
-
if (isUserOwnedPiPath(filePath)) {
|
|
10229
|
+
if (fs6.existsSync(fullPath) && isUserOwnedPiPath(filePath)) {
|
|
10230
10230
|
changes.push({
|
|
10231
10231
|
path: filePath,
|
|
10232
10232
|
action: "preserve",
|
|
@@ -10246,7 +10246,7 @@ function analyzeChanges(targetDir, manifest, templateFiles, context, options) {
|
|
|
10246
10246
|
changes.push({ path: filePath, action: "regenerate", reason: "Export file" });
|
|
10247
10247
|
continue;
|
|
10248
10248
|
}
|
|
10249
|
-
if (record.category === "user") {
|
|
10249
|
+
if (record.category === "user" && fs6.existsSync(fullPath)) {
|
|
10250
10250
|
changes.push({
|
|
10251
10251
|
path: filePath,
|
|
10252
10252
|
action: "preserve",
|
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");
|