guardian-framework 0.1.1 → 0.1.2

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.1", 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.2", 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.1", 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.2", 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.1",
3
+ "version": "0.1.2",
4
4
  "description": "Token-optimized agentic framework scaffolder with pi-first architecture",
5
5
  "type": "module",
6
6
  "main": "dist/exports.js",
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-07-01T06:22:13Z",
2
+ "timestamp": "2026-07-01T06:41:46Z",
3
3
  "mode": "all",
4
4
  "stages_run": [],
5
5
  "summary": {
@@ -1,113 +0,0 @@
1
- /**
2
- * Guardian Framework — Pi Package Bootstrap
3
- *
4
- * Onboards users who install guardian-framework as a pi package.
5
- * Checks if the project is scaffolded and guides them through setup.
6
- */
7
-
8
- import { existsSync } from "node:fs";
9
- import { join } from "node:path";
10
- import { execSync } from "node:child_process";
11
-
12
- const PI_DIR = ".pi";
13
- const PACKAGE_VERSION = "0.1.0";
14
-
15
- export default function (pi: any) {
16
- pi.on("session_start", async (_event: any, ctx: any) => {
17
- const piDir = join(ctx.cwd, PI_DIR);
18
- const isScaffolded = existsSync(piDir);
19
-
20
- if (!isScaffolded) {
21
- ctx.ui.notify(
22
- "Guardian Framework: project not scaffolded. Run `guardian-framework init` or use /guardian-init to get started.",
23
- "info",
24
- );
25
- } else {
26
- ctx.ui.notify(
27
- `Guardian Framework v${PACKAGE_VERSION} loaded. ${isScaffolded ? "Project scaffolded." : ""}`,
28
- "info",
29
- );
30
- }
31
- });
32
-
33
- pi.registerCommand("guardian-init", {
34
- description:
35
- "Scaffold Guardian framework (.pi/ + exports for AI tools)",
36
- handler: async (_args: string, ctx: any) => {
37
- const piDir = join(ctx.cwd, PI_DIR);
38
- if (existsSync(piDir)) {
39
- ctx.ui.notify("Guardian already scaffolded in this project.", "warn");
40
- return;
41
- }
42
-
43
- ctx.ui.notify("Scaffolding Guardian framework...", "info");
44
- try {
45
- const result = execSync("npx guardian-framework init --nonInteractive --lang typescript", {
46
- cwd: ctx.cwd,
47
- encoding: "utf-8",
48
- timeout: 60000,
49
- stdio: ["pipe", "pipe", "pipe"],
50
- });
51
- ctx.ui.notify("Guardian scaffolded successfully!", "success");
52
- return result.trim();
53
- } catch (e: any) {
54
- ctx.ui.notify(
55
- `Scaffolding failed. Run 'npx guardian-framework init' manually.\nError: ${e.message?.slice(0, 200) || e}`,
56
- "error",
57
- );
58
- }
59
- },
60
- });
61
-
62
- pi.registerCommand("guardian-status", {
63
- description:
64
- "Check Guardian framework status — installed resources + scaffold state",
65
- handler: async (_args: string, ctx: any) => {
66
- const piDir = join(ctx.cwd, PI_DIR);
67
- const isScaffolded = existsSync(piDir);
68
-
69
- const lines = [
70
- "## Guardian Framework Status",
71
- "",
72
- `Version: ${PACKAGE_VERSION}`,
73
- `Project scaffolded: ${isScaffolded ? "Yes" : "No"}`,
74
- "",
75
- ];
76
-
77
- if (isScaffolded) {
78
- lines.push("### Resources Available");
79
- lines.push("");
80
- lines.push("- 19 TypeScript extensions (via package + .pi/extensions/)");
81
- lines.push("- 27 agent skill definitions");
82
- lines.push("- 10 validator skill definitions");
83
- lines.push("- 22 workflow prompt templates");
84
- lines.push("- 50+ validation shell scripts");
85
- lines.push("");
86
- lines.push("### Commands");
87
- lines.push("");
88
- lines.push("- /architect --epic <name> — Start epic from architecture");
89
- lines.push("- /pipeline <name> --items=... --steps=... — Multi-step workflow");
90
- lines.push("- /goal <text> — Persistent objective");
91
- lines.push("- /kanban create|list|status — Task board");
92
- lines.push("- /domain --explore <desc> — DDD exploration");
93
- lines.push("- /project create --lang ... — Source scaffolding");
94
- lines.push("- /validate — Run validators");
95
- lines.push("- /curator review — Skill lifecycle");
96
- lines.push("- /plan | /plan-apply — Queue edits for review");
97
- lines.push("- /snippet list|add|remove — Token expansion");
98
- } else {
99
- lines.push("### Getting Started");
100
- lines.push("");
101
- lines.push("Run one of:");
102
- lines.push("- `/guardian-init` — interactive scaffold");
103
- lines.push("- `npx guardian-framework init` — interactive CLI");
104
- lines.push("");
105
- lines.push("Or for detailed docs:");
106
- lines.push("- `npx guardian-framework --help`");
107
- lines.push("- https://github.com/arman-jalili/guardian-framework");
108
- }
109
-
110
- return lines.join("\n");
111
- },
112
- });
113
- }