@guilz-dev/belay 0.9.2 → 0.9.3

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.
Files changed (55) hide show
  1. package/README.md +1 -1
  2. package/dist/adapters/codex/runtime-entry.d.ts +3 -0
  3. package/dist/adapters/codex/runtime-entry.js +27 -4
  4. package/dist/adapters/cursor/cwd-resolution.d.ts +10 -0
  5. package/dist/adapters/cursor/cwd-resolution.js +58 -0
  6. package/dist/adapters/cursor/hooks.d.ts +1 -0
  7. package/dist/adapters/cursor/hooks.js +21 -0
  8. package/dist/adapters/cursor/runtime-entry.d.ts +1 -0
  9. package/dist/adapters/cursor/runtime-entry.js +107 -6
  10. package/dist/adapters/shared/gate-runtime.js +26 -3
  11. package/dist/adapters/shared/repo-root.js +20 -1
  12. package/dist/bundle/claude-runtime.mjs +855 -338
  13. package/dist/bundle/codex-runtime.mjs +877 -342
  14. package/dist/bundle/cursor-runtime.mjs +3886 -3141
  15. package/dist/cli.js +33 -3
  16. package/dist/commands/doctor.js +24 -1
  17. package/dist/commands/health-snapshot.d.ts +3 -0
  18. package/dist/commands/health-snapshot.js +56 -0
  19. package/dist/commands/report.js +14 -0
  20. package/dist/commands/status.js +15 -0
  21. package/dist/commands/where.d.ts +4 -0
  22. package/dist/commands/where.js +52 -0
  23. package/dist/core/approval-repo-lookup.d.ts +16 -0
  24. package/dist/core/approval-repo-lookup.js +48 -0
  25. package/dist/core/audit-io.d.ts +1 -1
  26. package/dist/core/audit-io.js +1 -1
  27. package/dist/core/audit-query.d.ts +1 -0
  28. package/dist/core/audit-query.js +7 -0
  29. package/dist/core/audit-serialize.d.ts +3 -0
  30. package/dist/core/audit-serialize.js +39 -3
  31. package/dist/core/audit-summary.d.ts +9 -0
  32. package/dist/core/audit-summary.js +58 -1
  33. package/dist/core/audit-types.d.ts +4 -0
  34. package/dist/core/effect-ir/shell-lower.js +93 -40
  35. package/dist/core/replay-scrub.d.ts +1 -0
  36. package/dist/core/replay-scrub.js +22 -3
  37. package/dist/core/shell-tokenizer.d.ts +28 -0
  38. package/dist/core/shell-tokenizer.js +111 -29
  39. package/dist/core/verdict/docker-compose-run.d.ts +18 -0
  40. package/dist/core/verdict/docker-compose-run.js +136 -0
  41. package/dist/core/verdict/launcher-resolve.js +28 -28
  42. package/dist/core/verdict/parser.d.ts +3 -0
  43. package/dist/core/verdict/parser.js +23 -40
  44. package/dist/core/verdict/recursive-invocation.d.ts +20 -0
  45. package/dist/core/verdict/recursive-invocation.js +224 -0
  46. package/dist/defaults.js +7 -0
  47. package/dist/installer/scope-config.d.ts +2 -2
  48. package/dist/installer.d.ts +10 -1
  49. package/dist/installer.js +43 -2
  50. package/dist/types.d.ts +34 -1
  51. package/dist/version.d.ts +1 -1
  52. package/dist/version.js +1 -1
  53. package/package.json +5 -2
  54. package/skills/belay/SKILL.md +5 -0
  55. package/skills/belay/belay-report.md +4 -1
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by scripts/sync-version.mjs — do not edit.
2
- export const PACKAGE_VERSION = '0.9.2';
2
+ export const PACKAGE_VERSION = '0.9.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guilz-dev/belay",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "Belay-style approval and audit gating for agent runtimes.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -57,10 +57,13 @@
57
57
  "typecheck": "tsc --noEmit",
58
58
  "test": "pnpm build && vitest run",
59
59
  "test:structural": "pnpm build && vitest run src/__tests__/verdict/structural-suite.test.ts",
60
- "test:docker": "pnpm build && vitest run src/__tests__/capability/boundary-container-isolation.test.ts src/__tests__/capability/boundary-driver-container.test.ts",
60
+ "test:docker": "pnpm build && vitest run --config vitest.live.config.ts src/__tests__/capability/boundary-container-isolation.test.ts src/__tests__/capability/boundary-container-workspace-mount.test.ts src/__tests__/capability/boundary-driver-container.test.ts src/__tests__/contained-execution-docker.integration.test.ts",
61
+ "test:llm": "pnpm build && vitest run --config vitest.live.config.ts src/__tests__/verdict/llm/judge-accuracy.test.ts",
61
62
  "test:stable": "pnpm build && vitest run && vitest run && vitest run",
62
63
  "corpus": "pnpm build && node scripts/corpus.mjs",
63
64
  "probe:adversarial": "pnpm build && node scripts/adversarial-probe.mjs",
65
+ "probe:cursor-shell-rewrite": "node scripts/cursor-shell-rewrite-probe.mjs",
66
+ "probe:native-seatbelt-boundary": "node scripts/native-seatbelt-boundary-probe.mjs --live",
64
67
  "probe:coverage": "pnpm build && node scripts/coverage-probe.mjs",
65
68
  "probe:coverage:repeat": "pnpm build && node scripts/coverage-probe.mjs --repeat 3",
66
69
  "corpus:ratchet": "pnpm build && node scripts/corpus-ratchet.mjs"
@@ -54,6 +54,11 @@ To restore the legacy two-step UX (approve, then always retry manually), set
54
54
  For why it was blocked, use `/belay why <command>` or `belay explain --command "<command>"`.
55
55
  For the latest pending ask, use `/belay explain` or `belay explain`.
56
56
 
57
+ If `belay status` or `belay report` shows `Host denied after Belay allow`, the denial came from
58
+ the editor/agent host after Belay returned allow. There is no Belay approval ID to approve. Keep
59
+ host protection in Belay audit mode and approve only the exact host prompt when execution is
60
+ intended.
61
+
57
62
  **Do not use command allowlists** (`overrides.allow`) or legacy standing-allow records
58
63
  (shell, tool, or subagent) to fix blocks; none of them change runtime authorization.
59
64
  Improve EffectPlan semantics, approve once with `/belay-approve`, or use an exact
@@ -1,7 +1,10 @@
1
- Show audit visibility: ask/flag/allow counts, silent-pass rate, and recent asks.
1
+ Show audit visibility: ask/flag/allow counts, silent-pass rate, recent asks, and host
2
+ `permission_denied` failures correlated to a preceding Belay allow.
2
3
 
3
4
  ```bash
4
5
  belay report
5
6
  ```
6
7
 
7
8
  For full install health plus audit summary, use `belay status`.
9
+
10
+ `Host denied after Belay allow` is host-policy telemetry, not a pending Belay approval.