guardian-framework 0.1.18 → 0.1.20

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
@@ -1335,7 +1335,7 @@ __export(exports_package, {
1335
1335
  bin: () => bin,
1336
1336
  author: () => author
1337
1337
  });
1338
- var name = "guardian-framework", version = "0.1.18", 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;
1338
+ var name = "guardian-framework", version = "0.1.20", 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;
1339
1339
  var init_package = __esm(() => {
1340
1340
  exports = {
1341
1341
  ".": {
package/dist/exports.js CHANGED
@@ -995,7 +995,7 @@ __export(exports_package, {
995
995
  bin: () => bin,
996
996
  author: () => author
997
997
  });
998
- var name = "guardian-framework", version = "0.1.18", 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;
998
+ var name = "guardian-framework", version = "0.1.20", 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;
999
999
  var init_package = __esm(() => {
1000
1000
  exports = {
1001
1001
  ".": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guardian-framework",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "Token-optimized agentic framework scaffolder with pi-first architecture",
5
5
  "type": "module",
6
6
  "main": "dist/exports.js",
@@ -7,7 +7,6 @@ export function generateIssueMarkdown(
7
7
  slice: ArchitectureSlice,
8
8
  issueIndex: number,
9
9
  totalIssues: number,
10
- codegenSkill?: string,
11
10
  ): string {
12
11
  const moduleId = slice.module.replace(/^module-/, "");
13
12
  const componentName = component.name.toLowerCase().replace(/\s+/g, "-");
@@ -65,10 +64,12 @@ ${component.dependencies.map((d) => ` - "${d}"`).join("\n")}
65
64
 
66
65
  implementation_notes: |
67
66
  ${component.description || "Implement this component according to the architecture module."}
68
- ${codegenSkill ? `Follow: .pi/skills/agents/${codegenSkill}.md` : ""}
69
67
 
70
68
  file_changes:
71
- - "create: src/${moduleId}/${componentName}/"
69
+ - "modify: src/${moduleId}/domain/"
70
+ - "modify: src/${moduleId}/application/"
71
+ - "modify: src/${moduleId}/infrastructure/"
72
+ - "modify: src/${moduleId}/interfaces/"
72
73
  - "create: tests/unit/${moduleId}/${componentName}/"
73
74
  - "create: tests/integration/${moduleId}/${componentName}/"
74
75
  ---
@@ -777,7 +777,10 @@ ${component.dependencies.map((d) => ` - "${d}"`).join("\n")}
777
777
  ${codegenSkill ? `Follow: .pi/skills/agents/${codegenSkill}.md` : ""}
778
778
 
779
779
  file_changes:
780
- - "create: src/${moduleId}/${componentName}/"
780
+ - "modify: src/${moduleId}/domain/"
781
+ - "modify: src/${moduleId}/application/"
782
+ - "modify: src/${moduleId}/infrastructure/"
783
+ - "modify: src/${moduleId}/interfaces/"
781
784
  - "create: tests/unit/${moduleId}/${componentName}/"
782
785
  - "create: tests/integration/${moduleId}/${componentName}/"
783
786
  ---
@@ -1656,6 +1659,51 @@ export default function (pi: ExtensionAPI) {
1656
1659
  results.push(`✅ ${mod.name} — already completed, skipped`);
1657
1660
  continue;
1658
1661
  }
1662
+
1663
+ // Check if issues already exist for this module (session restart)
1664
+ const issuesDir = join(ctx.cwd, ".pi/issues");
1665
+ const freezePath = join(issuesDir, "issue-contract-freeze.md");
1666
+ if (existsSync(freezePath)) {
1667
+ // Issues exist — reconstruct pipeline without re-creating
1668
+ const existingIssues: string[] = [];
1669
+ if (existsSync(issuesDir)) {
1670
+ const files = readdirSync(issuesDir);
1671
+ for (const f of files) {
1672
+ if (f.endsWith(".md") && !f.startsWith(".")) {
1673
+ existingIssues.push(f.replace(/\.md$/, ""));
1674
+ }
1675
+ }
1676
+ }
1677
+ const pipelineFile = join(ctx.cwd, ".pi/.guardian-pipeline-state.json");
1678
+ if (!existsSync(pipelineFile) && existingIssues.length > 0) {
1679
+ const pipelineId = `PL-${String(Math.floor(Math.random() * 10000)).padStart(4, "0")}`;
1680
+ const pipelineState = {
1681
+ id: pipelineId,
1682
+ name: mod.name,
1683
+ items: existingIssues,
1684
+ steps: [
1685
+ { name: "implement", prompt: ".pi/prompts/issue-implementation-series.md", acceptance: { type: "validator", validators: ["ci"] } },
1686
+ { name: "validate", acceptance: { type: "validator", validators: ["ci", "tests", "security"] } },
1687
+ { name: "create-mr", prompt: ".pi/prompts/issue-closeout.md", acceptance: { type: "none" } },
1688
+ { name: "merge", prompt: ".pi/prompts/issue-merge.md", acceptance: { type: "validator", validators: ["ci", "canonical"] } },
1689
+ ],
1690
+ currentItemIndex: 0,
1691
+ currentStepIndex: 0,
1692
+ status: "running",
1693
+ retryCount: 0,
1694
+ results: [],
1695
+ mergeOnValid: true,
1696
+ createdAt: new Date().toISOString(),
1697
+ updatedAt: new Date().toISOString(),
1698
+ };
1699
+ const pipelineDir = dirname(pipelineFile);
1700
+ if (!existsSync(pipelineDir)) mkdirSync(pipelineDir, { recursive: true });
1701
+ writeFileSync(pipelineFile, JSON.stringify(pipelineState, null, 2));
1702
+ }
1703
+ results.push(`📋 ${mod.name} — ${existingIssues.length} issues found (pipeline resumed)`);
1704
+ continue;
1705
+ }
1706
+
1659
1707
  // Check if module has planned components BEFORE calling startEpic
1660
1708
  // (startEpic silently falls back to wrong module if no planned components)
1661
1709
  const matchedFile = findModuleByName(ctx.cwd, mod.name);
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-07-03T07:00:44Z",
2
+ "timestamp": "2026-07-03T07:12:27Z",
3
3
  "mode": "all",
4
4
  "stages_run": [],
5
5
  "summary": {