guardian-framework 0.1.98 → 0.1.99

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
@@ -3197,7 +3197,7 @@ __export(exports_package, {
3197
3197
  bin: () => bin,
3198
3198
  author: () => author
3199
3199
  });
3200
- var name = "guardian-framework", version = "0.1.98", 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;
3200
+ var name = "guardian-framework", version = "0.1.99", 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;
3201
3201
  var init_package = __esm(() => {
3202
3202
  exports = {
3203
3203
  ".": {
package/dist/exports.js CHANGED
@@ -1982,7 +1982,7 @@ __export(exports_package, {
1982
1982
  bin: () => bin,
1983
1983
  author: () => author
1984
1984
  });
1985
- var name = "guardian-framework", version = "0.1.98", 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;
1985
+ var name = "guardian-framework", version = "0.1.99", 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;
1986
1986
  var init_package = __esm(() => {
1987
1987
  exports = {
1988
1988
  ".": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guardian-framework",
3
- "version": "0.1.98",
3
+ "version": "0.1.99",
4
4
  "description": "Token-optimized agentic framework scaffolder with pi-first architecture",
5
5
  "type": "module",
6
6
  "main": "dist/exports.js",
@@ -10,6 +10,7 @@
10
10
  */
11
11
 
12
12
  type ExtensionContext = {
13
+ cwd: string;
13
14
  ui: { notify(message: string, level?: string): void };
14
15
  shell: {
15
16
  execute(
@@ -179,10 +180,19 @@ export default function (pi: ExtensionAPI) {
179
180
 
180
181
  const scriptPath = VALIDATORS[validator];
181
182
  try {
182
- const result = await ctx.shell.execute(`bash ${scriptPath}`, { signal });
183
- results[validator] = { passed: result.exitCode === 0, output: result.stdout };
183
+ const { execFileSync } = require("node:child_process");
184
+ const cwd = ctx.cwd || process.cwd();
185
+ const result = execFileSync("bash", [scriptPath], {
186
+ cwd,
187
+ timeout: 120_000,
188
+ encoding: "utf-8",
189
+ stdio: ["ignore", "pipe", "pipe"],
190
+ });
191
+ results[validator] = { passed: true, output: (result || "").trim() };
184
192
  } catch (error) {
185
- results[validator] = { passed: false, output: `Error: ${error}` };
193
+ const err = error as { stdout?: string | Buffer; stderr?: string | Buffer };
194
+ const stdout = (err.stdout || "").toString().slice(0, 500);
195
+ results[validator] = { passed: false, output: stdout || String(error) };
186
196
  }
187
197
  }
188
198
 
@@ -647,7 +647,7 @@ class PipelineManager {
647
647
  const scriptPath = VALIDATOR_SCRIPTS[validator];
648
648
  if (!scriptPath) { errors.push(`Unknown validator: ${validator}`); continue; }
649
649
  try {
650
- execFileSync("bash", ["-c", scriptPath], { cwd: this.cwd, timeout: 120_000, encoding: "utf-8" });
650
+ execFileSync("bash", [scriptPath], { cwd: this.cwd, timeout: 120_000, encoding: "utf-8" });
651
651
  } catch (e: unknown) {
652
652
  const err = e as { stdout?: string };
653
653
  errors.push(`${validator}: ${(err.stdout || "").slice(0, 200)}`);
@@ -1344,7 +1344,7 @@ export default function (pi: ExtensionAPI) {
1344
1344
  continue;
1345
1345
  }
1346
1346
  try {
1347
- execFileSync("bash", ["-c", scriptPath], {
1347
+ execFileSync("bash", [scriptPath], {
1348
1348
  cwd: ctx.cwd,
1349
1349
  timeout: 120_000,
1350
1350
  encoding: "utf-8",
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-07-18T19:39:29Z",
2
+ "timestamp": "2026-07-19T05:50:01Z",
3
3
  "mode": "all",
4
4
  "stages_run": [],
5
5
  "summary": {