@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.
@@ -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.27.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",