guardian-framework 0.1.58 → 0.1.60

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
@@ -2224,7 +2224,7 @@ function calculateTokenStats(targetDir, manifest) {
2224
2224
  lastCalculatedAt: new Date().toISOString()
2225
2225
  };
2226
2226
  }
2227
- var _filename, _dirname, MANIFEST_FILE = "guardian-manifest.json", FRAMEWORK_VERSION = "0.1.58", SCHEMA_VERSION = "0.1";
2227
+ var _filename, _dirname, MANIFEST_FILE = "guardian-manifest.json", FRAMEWORK_VERSION = "0.1.60", SCHEMA_VERSION = "0.1";
2228
2228
  var init_manifest = __esm(() => {
2229
2229
  _filename = fileURLToPath(import.meta.url);
2230
2230
  _dirname = path3.dirname(_filename);
@@ -2303,7 +2303,7 @@ __export(exports_package, {
2303
2303
  bin: () => bin,
2304
2304
  author: () => author
2305
2305
  });
2306
- var name = "guardian-framework", version = "0.1.58", 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;
2306
+ var name = "guardian-framework", version = "0.1.60", 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;
2307
2307
  var init_package = __esm(() => {
2308
2308
  exports = {
2309
2309
  ".": {
@@ -10681,6 +10681,7 @@ var HASH_DIR = ".guardian", HASH_EXT = ".sha256";
10681
10681
  var init_integrity = () => {};
10682
10682
 
10683
10683
  // src/index.ts
10684
+ import { execFileSync } from "child_process";
10684
10685
  import { parseArgs } from "util";
10685
10686
 
10686
10687
  // src/commands/domain.ts
@@ -14208,7 +14209,27 @@ async function runVerify(targetDir = process.cwd()) {
14208
14209
 
14209
14210
  // src/index.ts
14210
14211
  init_manifest();
14211
- var VERSION = "0.1.58";
14212
+ var VERSION = "0.1.60";
14213
+ var PKG_NAME = "guardian-framework";
14214
+ var _newerVersion = null;
14215
+ function checkForUpdateSync() {
14216
+ try {
14217
+ const latest = execFileSync("npm", ["view", PKG_NAME, "version", "--no-workspaces", "--silent"], { timeout: 3000, encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] }).trim();
14218
+ if (latest && latest !== VERSION) {
14219
+ _newerVersion = latest;
14220
+ }
14221
+ } catch {}
14222
+ }
14223
+ function printUpdateNotice() {
14224
+ if (_newerVersion) {
14225
+ console.log(`
14226
+ \u256D\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E` + `
14227
+ \u2502 \u2728 Update available: v${VERSION} \u2192 v${_newerVersion.padEnd(8)} \u2502` + `
14228
+ \u2502 Run \`npm install -g ${PKG_NAME}@latest\` to update. \u2502` + `
14229
+ \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F
14230
+ `);
14231
+ }
14232
+ }
14212
14233
  async function runCli() {
14213
14234
  const args = parseArgs({
14214
14235
  allowPositionals: true,
@@ -14232,8 +14253,12 @@ async function runCli() {
14232
14253
  session: { type: "string" }
14233
14254
  }
14234
14255
  });
14256
+ if (!args.values.version && !args.values.help) {
14257
+ checkForUpdateSync();
14258
+ }
14235
14259
  if (args.values.version) {
14236
14260
  console.log(`guardian-framework v${VERSION}`);
14261
+ printUpdateNotice();
14237
14262
  return;
14238
14263
  }
14239
14264
  if (args.values.help) {
@@ -14398,6 +14423,7 @@ async function runCommand(command, args) {
14398
14423
  console.error(`Unknown command: ${command}`);
14399
14424
  console.log("Run 'guardian-framework --help' for usage");
14400
14425
  }
14426
+ printUpdateNotice();
14401
14427
  }
14402
14428
 
14403
14429
  // src/cli.ts
package/dist/exports.js CHANGED
@@ -1919,7 +1919,7 @@ function calculateTokenStats(targetDir, manifest) {
1919
1919
  lastCalculatedAt: new Date().toISOString()
1920
1920
  };
1921
1921
  }
1922
- var _filename, _dirname, MANIFEST_FILE = "guardian-manifest.json", FRAMEWORK_VERSION = "0.1.58", SCHEMA_VERSION = "0.1";
1922
+ var _filename, _dirname, MANIFEST_FILE = "guardian-manifest.json", FRAMEWORK_VERSION = "0.1.60", SCHEMA_VERSION = "0.1";
1923
1923
  var init_manifest = __esm(() => {
1924
1924
  _filename = fileURLToPath(import.meta.url);
1925
1925
  _dirname = path.dirname(_filename);
@@ -1963,7 +1963,7 @@ __export(exports_package, {
1963
1963
  bin: () => bin,
1964
1964
  author: () => author
1965
1965
  });
1966
- var name = "guardian-framework", version = "0.1.58", 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;
1966
+ var name = "guardian-framework", version = "0.1.60", 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;
1967
1967
  var init_package = __esm(() => {
1968
1968
  exports = {
1969
1969
  ".": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guardian-framework",
3
- "version": "0.1.58",
3
+ "version": "0.1.60",
4
4
  "description": "Token-optimized agentic framework scaffolder with pi-first architecture",
5
5
  "type": "module",
6
6
  "main": "dist/exports.js",
@@ -9,7 +9,7 @@ import {
9
9
  commandExists as adapterCommandExists,
10
10
  runScript as adapterRunScript,
11
11
  verifyForgeAccess,
12
- } from "../forge-adapter.ts";
12
+ } from "./forge-adapter.ts";
13
13
  // ── Constants ──
14
14
 
15
15
  export const EPIC_STATE_KEY = ".pi/.guardian-epic-state.json";
@@ -31,7 +31,7 @@ import {
31
31
  readRepository,
32
32
  getGitBaseUrl,
33
33
  runScript,
34
- } from "./forge-adapter.ts";
34
+ } from "./architect-lib/forge-adapter.ts";
35
35
 
36
36
  // ── Validator Scripts ──
37
37
 
@@ -70,16 +70,6 @@ function parseArgs(raw: string): string[] {
70
70
  return tokens;
71
71
  }
72
72
 
73
- function runScript(cwd: string, script: string): { exitCode: number; stdout: string } {
74
- try {
75
- const stdout = execSync(`bash -c "${script}"`, { cwd, timeout: 120_000, encoding: "utf-8" });
76
- return { exitCode: 0, stdout };
77
- } catch (e: unknown) {
78
- const err = e as { status?: number; stdout?: string; message?: string };
79
- return { exitCode: err.status ?? 1, stdout: err.stdout ?? err.message ?? "" };
80
- }
81
- }
82
-
83
73
  // ── Types ──
84
74
 
85
75
  type ExtensionContext = {
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-07-09T09:03:43Z",
2
+ "timestamp": "2026-07-09T10:09:53Z",
3
3
  "mode": "all",
4
4
  "stages_run": [],
5
5
  "summary": {