guardian-framework 0.1.90 → 0.1.92

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.90", 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.92", 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.90", 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.92", 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.90",
3
+ "version": "0.1.92",
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-17T05:58:35Z",
2
+ "timestamp": "2026-07-17T06:31:11Z",
3
3
  "mode": "all",
4
4
  "stages_run": [],
5
5
  "summary": {
@@ -8,7 +8,7 @@
8
8
  "failed": 1,
9
9
  "skipped": 12
10
10
  },
11
- "duration_seconds": 1,
11
+ "duration_seconds": 0,
12
12
  "results": [
13
13
  {
14
14
  "name": "check_mr_traceability.sh",
@@ -95,7 +95,7 @@ fi
95
95
  echo ""
96
96
  echo "--- Security Audit ---"
97
97
  if command -v pip-audit &>/dev/null && [ -f "pyproject.toml" ]; then
98
- AUDIT_OUT=$(pip-audit 2>&1 || true)
98
+ AUDIT_OUT=$(pip-audit 2>/dev/null || true)
99
99
  if echo "$AUDIT_OUT" | grep -q "no known vulnerabilities"; then
100
100
  pass "No known vulnerabilities"
101
101
  elif echo "$AUDIT_OUT" | grep -q "Dependency not found on PyPI"; then
@@ -44,7 +44,7 @@ fi
44
44
  echo ""
45
45
  echo "--- Dependency Audit ---"
46
46
  if command -v pip-audit &>/dev/null && [ -f "pyproject.toml" ]; then
47
- AUDIT_OUT=$(pip-audit 2>&1 || true)
47
+ AUDIT_OUT=$(pip-audit 2>/dev/null || true)
48
48
  if echo "$AUDIT_OUT" | grep -q "no known vulnerabilities"; then
49
49
  pass "No known vulnerabilities"
50
50
  elif echo "$AUDIT_OUT" | grep -q "Dependency not found on PyPI"; then
@@ -108,7 +108,7 @@ fi
108
108
  echo ""
109
109
  echo "--- Security Audit ---"
110
110
  if command -v cargo &>/dev/null && cargo audit --version &>/dev/null; then
111
- AUDIT_OUT=$(cargo audit 2>&1 || true)
111
+ AUDIT_OUT=$(cargo audit 2>/dev/null || true)
112
112
  if echo "$AUDIT_OUT" | grep -q "No advisabilities found\|No known vulnerabilities\|info"; then
113
113
  pass "No known vulnerabilities"
114
114
  else
@@ -73,7 +73,7 @@ fi
73
73
  echo ""
74
74
  echo "--- Dependency Audit ---"
75
75
  if command -v cargo &>/dev/null && cargo audit --version &>/dev/null; then
76
- AUDIT_OUT=$(cargo audit 2>&1 || true)
76
+ AUDIT_OUT=$(cargo audit 2>/dev/null || true)
77
77
  if echo "$AUDIT_OUT" | grep -qE "No advisabilities found|No known vulnerabilities"; then
78
78
  pass "No known vulnerabilities (cargo audit)"
79
79
  else
@@ -192,13 +192,16 @@ fi
192
192
  echo ""
193
193
  echo "--- Security Audit ---"
194
194
  if [ "$PKG_MGR" = "bun" ] && command -v bun &>/dev/null; then
195
- AUDIT_OUT=$(bun audit 2>/dev/null || true)
196
- CRITICAL_COUNT=$(echo "$AUDIT_OUT" | grep -ci "critical" 2>/dev/null || echo "0")
197
- HIGH_COUNT=$(echo "$AUDIT_OUT" | grep -ci "high" 2>/dev/null || echo "0")
198
- if [ "$CRITICAL_COUNT" -gt 0 ] || [ "$HIGH_COUNT" -gt 0 ]; then
195
+ CRITICAL_COUNT=$(bun audit 2>/dev/null | grep -ci "critical" 2>/dev/null || echo "0")
196
+ HIGH_COUNT=$(bun audit 2>/dev/null | grep -ci "high" 2>/dev/null || echo "0")
197
+ # Strip non-numeric characters (some bun versions output progress bars to stdout)
198
+ CRITICAL_COUNT=${CRITICAL_COUNT//[!0-9]}
199
+ HIGH_COUNT=${HIGH_COUNT//[!0-9]}
200
+ if [ "${CRITICAL_COUNT:-0}" -gt 0 ] || [ "${HIGH_COUNT:-0}" -gt 0 ]; then
199
201
  fail "Security audit found critical/high vulnerabilities"
200
202
  else
201
- MODERATE_COUNT=$(echo "$AUDIT_OUT" | grep -ci "moderate" 2>/dev/null || echo "0")
203
+ MODERATE_COUNT=$(bun audit 2>/dev/null | grep -ci "moderate" 2>/dev/null || echo "0")
204
+ MODERATE_COUNT=${MODERATE_COUNT//[!0-9]}
202
205
  if [ "$MODERATE_COUNT" -gt 0 ]; then
203
206
  warn "Security audit found moderate vulnerabilities (review recommended)"
204
207
  else
@@ -65,7 +65,7 @@ fi
65
65
  echo ""
66
66
  echo "--- Dependency Audit ---"
67
67
  if [ "$PKG_MGR" = "bun" ] && command -v bun &>/dev/null; then
68
- AUDIT_OUT=$(bun audit 2>&1 || true)
68
+ AUDIT_OUT=$(bun audit 2>/dev/null || true)
69
69
  CRITICAL=$(echo "$AUDIT_OUT" | grep -ci "critical" 2>/dev/null || echo "0")
70
70
  HIGH=$(echo "$AUDIT_OUT" | grep -ci "high" 2>/dev/null || echo "0")
71
71
  if [ "$CRITICAL" -gt 0 ] || [ "$HIGH" -gt 0 ]; then
@@ -74,7 +74,7 @@ if [ "$PKG_MGR" = "bun" ] && command -v bun &>/dev/null; then
74
74
  pass "No critical/high vulnerabilities in dependencies"
75
75
  fi
76
76
  elif command -v npm &>/dev/null; then
77
- AUDIT_OUT=$(npm audit 2>&1 || true)
77
+ AUDIT_OUT=$(npm audit 2>/dev/null || true)
78
78
  if echo "$AUDIT_OUT" | grep -q "found 0 vulnerabilities" 2>/dev/null; then
79
79
  pass "No vulnerabilities in dependencies"
80
80
  else