guardian-framework 0.1.116 → 0.1.118
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.118", 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.118", 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
|
@@ -606,6 +606,30 @@ export default function (pi: ExtensionAPI) {
|
|
|
606
606
|
addCheck("Modeling depth rules (ADR-008) - skipped", true, "no session raw.json");
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
+
// 3b. Completeness advisory: flag empty core sections + which protocol
|
|
610
|
+
// pass fills them (empty by construction must not look like success).
|
|
611
|
+
const rawPath = path.join(ctx.cwd, ".pi", "domain", "exploration", sessionId + ".raw.json");
|
|
612
|
+
if (fs.existsSync(rawPath)) {
|
|
613
|
+
try {
|
|
614
|
+
const raw = JSON.parse(fs.readFileSync(rawPath, "utf-8")) as Record<string, unknown>;
|
|
615
|
+
const sections: Array<[string, string, string]> = [
|
|
616
|
+
["boundedContexts", "bounded contexts", "strategic pass (step 1)"],
|
|
617
|
+
["functionalRequirements", "functional requirements", "requirements pass (step 1b)"],
|
|
618
|
+
["nonFunctionalRequirements", "non-functional requirements", "requirements pass (step 1b)"],
|
|
619
|
+
["entities", "entities", "per-context pass (step 2)"],
|
|
620
|
+
["domainEvents", "domain events", "per-context pass (step 2)"],
|
|
621
|
+
["ubiquitousLanguage", "ubiquitous-language terms", "per-context pass (step 2)"],
|
|
622
|
+
];
|
|
623
|
+
const empty = sections.filter(([key]) => !Array.isArray(raw[key]) || (raw[key] as unknown[]).length === 0);
|
|
624
|
+
if (empty.length > 0) {
|
|
625
|
+
const hint = empty
|
|
626
|
+
.map(([, label, pass]) => `${label} (${pass})`)
|
|
627
|
+
.join("; ");
|
|
628
|
+
checks.push(" NOTE empty sections — run the matching pass: " + hint);
|
|
629
|
+
}
|
|
630
|
+
} catch { /* ignore */ }
|
|
631
|
+
}
|
|
632
|
+
|
|
609
633
|
// 4. Source code drift
|
|
610
634
|
const scriptPath = path.join(ctx.cwd, ".pi", "scripts", "validate-ubiquitous-language.sh");
|
|
611
635
|
if (fs.existsSync(scriptPath)) {
|
|
@@ -822,6 +846,19 @@ export default function (pi: ExtensionAPI) {
|
|
|
822
846
|
"then call domain_save_result with { sessionId, responseJson: <that JSON> }. It merges;",
|
|
823
847
|
"the file is saved for you. Do NOT also edit exploration.md by hand.",
|
|
824
848
|
"",
|
|
849
|
+
"1b. REQUIREMENTS PASS (next message): reply with ONLY this JSON, then call domain_save_result",
|
|
850
|
+
"again (merge is by id — existing entries are untouched):",
|
|
851
|
+
'```json',
|
|
852
|
+
'{',
|
|
853
|
+
' "functionalRequirements": [',
|
|
854
|
+
' { "id": "FR-001", "requirement": "The system shall...", "priority": "critical|high|medium|low", "boundedContext": "ContextName" }',
|
|
855
|
+
' ],',
|
|
856
|
+
' "nonFunctionalRequirements": [',
|
|
857
|
+
' { "id": "NFR-001", "requirement": "The system shall...", "category": "performance|security|scalability|availability|maintainability", "target": "measurable target" }',
|
|
858
|
+
' ]',
|
|
859
|
+
'}',
|
|
860
|
+
'```',
|
|
861
|
+
"",
|
|
825
862
|
"2. PER-CONTEXT PASS (repeat for EACH core/tactical bounded context, one context per message):",
|
|
826
863
|
"reply with ONLY this JSON for one context, then call domain_save_result again:",
|
|
827
864
|
'```json',
|