guardian-framework 0.1.118 → 0.1.119
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
|
@@ -3202,7 +3202,7 @@ __export(exports_package, {
|
|
|
3202
3202
|
bin: () => bin,
|
|
3203
3203
|
author: () => author
|
|
3204
3204
|
});
|
|
3205
|
-
var name = "guardian-framework", version = "0.1.
|
|
3205
|
+
var name = "guardian-framework", version = "0.1.119", 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;
|
|
3206
3206
|
var init_package = __esm(() => {
|
|
3207
3207
|
exports = {
|
|
3208
3208
|
".": {
|
package/dist/exports.js
CHANGED
|
@@ -1987,7 +1987,7 @@ __export(exports_package, {
|
|
|
1987
1987
|
bin: () => bin,
|
|
1988
1988
|
author: () => author
|
|
1989
1989
|
});
|
|
1990
|
-
var name = "guardian-framework", version = "0.1.
|
|
1990
|
+
var name = "guardian-framework", version = "0.1.119", 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;
|
|
1991
1991
|
var init_package = __esm(() => {
|
|
1992
1992
|
exports = {
|
|
1993
1993
|
".": {
|
package/package.json
CHANGED
|
@@ -422,6 +422,19 @@ export default function (pi: ExtensionAPI) {
|
|
|
422
422
|
parsedJson = mergeRawJson(existing, parsedJson);
|
|
423
423
|
} catch { /* ignore unreadable prior state */ }
|
|
424
424
|
}
|
|
425
|
+
// Backfill business context from the explore stub if the agent never
|
|
426
|
+
// supplied it (front matter business_context survives across saves).
|
|
427
|
+
if (String(parsedJson.businessContext ?? "").trim() === "") {
|
|
428
|
+
const stubPath = path.join(ctx.cwd, ".pi", "domain", "exploration", sessionId + ".md");
|
|
429
|
+
if (fs.existsSync(stubPath)) {
|
|
430
|
+
try {
|
|
431
|
+
const stub = fs.readFileSync(stubPath, "utf-8");
|
|
432
|
+
const m = stub.match(/^business_context:\s*"((?:[^"\\]|\\.)*)"/m);
|
|
433
|
+
if (m) parsedJson.businessContext = m[1].replace(/\\"/g, '"');
|
|
434
|
+
} catch { /* ignore */ }
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
425
438
|
|
|
426
439
|
const now = new Date().toISOString().split("T")[0];
|
|
427
440
|
const explorationDir = path.join(ctx.cwd, ".pi", "domain", "exploration");
|
|
@@ -833,6 +846,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
833
846
|
"1. STRATEGIC PASS (this message): reply with ONLY this JSON, nothing else —",
|
|
834
847
|
'```json',
|
|
835
848
|
'{',
|
|
849
|
+
' "businessContext": "one-line summary of the domain",',
|
|
836
850
|
' "actors": [{ "name": "...", "description": "...", "interactions": "..." }],',
|
|
837
851
|
' "assumptions": [{ "assumption": "...", "impactIfWrong": "...", "mitigation": "..." }],',
|
|
838
852
|
' "boundedContexts": [',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-09-04T19:
|
|
2
|
+
"timestamp": "2026-09-04T19:42:16Z",
|
|
3
3
|
"mode": "all",
|
|
4
4
|
"stages_run": [],
|
|
5
5
|
"summary": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"failed": 1,
|
|
9
9
|
"skipped": 12
|
|
10
10
|
},
|
|
11
|
-
"duration_seconds":
|
|
11
|
+
"duration_seconds": 1,
|
|
12
12
|
"results": [
|
|
13
13
|
{
|
|
14
14
|
"name": "check_mr_traceability.sh",
|