@bookedsolid/rea 0.27.0 → 0.28.1
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/data/claims/helix-022.json +51 -0
- package/data/claims/helix-023.json +44 -0
- package/data/claims/helix-024.json +72 -0
- package/data/claims/helix-028.json +23 -0
- package/data/claims/helix-031.json +27 -0
- package/dist/cli/index.js +6 -0
- package/dist/cli/preflight.d.ts +12 -0
- package/dist/cli/preflight.js +65 -4
- package/dist/cli/review.d.ts +55 -1
- package/dist/cli/review.js +167 -5
- package/dist/cli/status.d.ts +6 -0
- package/dist/cli/status.js +7 -0
- package/dist/cli/verify-claim.d.ts +149 -0
- package/dist/cli/verify-claim.js +386 -0
- package/dist/gateway/downstream-pool.d.ts +17 -0
- package/dist/gateway/downstream-pool.js +1 -0
- package/dist/gateway/downstream.d.ts +25 -0
- package/dist/gateway/downstream.js +40 -0
- package/dist/gateway/live-state.d.ts +12 -0
- package/dist/gateway/live-state.js +1 -0
- package/dist/hooks/bash-scanner/walker.js +196 -0
- package/dist/hooks/push-gate/findings.d.ts +27 -0
- package/dist/hooks/push-gate/findings.js +87 -0
- package/dist/hooks/push-gate/index.js +58 -4
- package/dist/hooks/push-gate/policy.d.ts +15 -0
- package/dist/hooks/push-gate/policy.js +82 -0
- package/dist/policy/loader.d.ts +20 -0
- package/dist/policy/loader.js +12 -0
- package/dist/policy/types.d.ts +31 -0
- package/hooks/blocked-paths-bash-gate.sh +12 -0
- package/hooks/protected-paths-bash-gate.sh +21 -0
- package/package.json +2 -1
|
@@ -105,6 +105,18 @@ if [ "$sandbox_status" -ne 0 ] || [ "$sandbox_check" != "ok" ]; then
|
|
|
105
105
|
exit 2
|
|
106
106
|
fi
|
|
107
107
|
|
|
108
|
+
# 0.28.0 helix-027 (bash total-lockout postmortem) — version-probe per
|
|
109
|
+
# shim. See protected-paths-bash-gate.sh for the full rationale; this
|
|
110
|
+
# shim mirrors the behavior to detect a stale CLI before payload reach.
|
|
111
|
+
probe_out=$("${REA_ARGV[@]}" hook scan-bash --help 2>&1)
|
|
112
|
+
probe_status=$?
|
|
113
|
+
if [ "$probe_status" -ne 0 ] || ! printf '%s' "$probe_out" | grep -q -e 'scan-bash' -e '--mode'; then
|
|
114
|
+
printf 'rea: this shim requires the `rea hook scan-bash` subcommand (introduced in 0.23.0).\n' >&2
|
|
115
|
+
printf 'The resolved CLI at %s does not implement it.\n' "$RESOLVED_CLI_PATH" >&2
|
|
116
|
+
printf 'Run `pnpm install` (or `npm install`) to sync the CLI to the version this shim expects.\n' >&2
|
|
117
|
+
exit 2
|
|
118
|
+
fi
|
|
119
|
+
|
|
108
120
|
payload=$(cat)
|
|
109
121
|
if [ -z "$payload" ]; then
|
|
110
122
|
exit 0
|
|
@@ -183,6 +183,27 @@ if [ "$sandbox_status" -ne 0 ] || [ "$sandbox_check" != "ok" ]; then
|
|
|
183
183
|
exit 2
|
|
184
184
|
fi
|
|
185
185
|
|
|
186
|
+
# 0.28.0 helix-027 (bash total-lockout postmortem) — version-probe per
|
|
187
|
+
# shim. The 0.23.0+ scan-bash subcommand is required; if the resolved
|
|
188
|
+
# CLI is older than 0.23.0 it will refuse with "unknown command" and the
|
|
189
|
+
# shim's exit-code dispatch lands on the catch-all "exit 2" branch
|
|
190
|
+
# WITHOUT explaining why. That was the symptom that locked Jake's
|
|
191
|
+
# helix workspace out of every Bash tool until he ran `pnpm install`.
|
|
192
|
+
#
|
|
193
|
+
# The probe runs `rea hook scan-bash --help` once per shim invocation
|
|
194
|
+
# (~30 LOC) and refuses with an actionable message if the subcommand
|
|
195
|
+
# does not exist. Probe failure is fail-closed (exit 2) — same posture
|
|
196
|
+
# the rest of the shim takes — but the message tells the operator
|
|
197
|
+
# exactly what to do (`pnpm install`).
|
|
198
|
+
probe_out=$("${REA_ARGV[@]}" hook scan-bash --help 2>&1)
|
|
199
|
+
probe_status=$?
|
|
200
|
+
if [ "$probe_status" -ne 0 ] || ! printf '%s' "$probe_out" | grep -q -e 'scan-bash' -e '--mode'; then
|
|
201
|
+
printf 'rea: this shim requires the `rea hook scan-bash` subcommand (introduced in 0.23.0).\n' >&2
|
|
202
|
+
printf 'The resolved CLI at %s does not implement it.\n' "$RESOLVED_CLI_PATH" >&2
|
|
203
|
+
printf 'Run `pnpm install` (or `npm install`) to sync the CLI to the version this shim expects.\n' >&2
|
|
204
|
+
exit 2
|
|
205
|
+
fi
|
|
206
|
+
|
|
186
207
|
# Capture stdin once and forward it to the CLI.
|
|
187
208
|
payload=$(cat)
|
|
188
209
|
if [ -z "$payload" ]; then
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bookedsolid/rea",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.1",
|
|
4
4
|
"description": "Agentic governance layer for Claude Code — policy enforcement, hook-based safety gates, audit logging, and Codex-integrated adversarial review for AI-assisted projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Booked Solid Technology <oss@bookedsolid.tech> (https://bookedsolid.tech)",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"profiles/",
|
|
47
47
|
"templates/",
|
|
48
48
|
"scripts/",
|
|
49
|
+
"data/",
|
|
49
50
|
".husky/",
|
|
50
51
|
"LICENSE",
|
|
51
52
|
"README.md",
|