@bookedsolid/reagent 0.11.0 → 0.11.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/hooks/commit-review-gate.sh +10 -5
- package/package.json +2 -2
|
@@ -142,7 +142,7 @@ if [[ -n "$STAGED_SHA" ]]; then
|
|
|
142
142
|
fi
|
|
143
143
|
fi
|
|
144
144
|
|
|
145
|
-
# ──
|
|
145
|
+
# ── 11. Block and request review ──────────────────────────────────────────────
|
|
146
146
|
{
|
|
147
147
|
printf 'COMMIT REVIEW GATE: Review required before committing\n'
|
|
148
148
|
printf '\n'
|
|
@@ -152,10 +152,15 @@ fi
|
|
|
152
152
|
printf '%s\n' "$SENSITIVE_FILES"
|
|
153
153
|
fi
|
|
154
154
|
printf '\n'
|
|
155
|
-
printf '
|
|
156
|
-
printf '
|
|
157
|
-
printf ' After review, cache the result with: reagent cache set <sha> pass\n'
|
|
155
|
+
printf ' YOU (the agent) are the reviewer. Do not ask the user to commit manually.\n'
|
|
156
|
+
printf ' Review the staged diff, make a pass/fail decision, then proceed:\n'
|
|
158
157
|
printf '\n'
|
|
159
|
-
printf '
|
|
158
|
+
printf ' 1. Inspect: git diff --cached\n'
|
|
159
|
+
printf ' 2. Decide: Is this safe to commit? (initial commits, refactors, and\n'
|
|
160
|
+
printf ' feature work are normal — use judgement, not ceremony)\n'
|
|
161
|
+
printf ' 3. Approve: reagent cache set %s pass\n' "$STAGED_SHA"
|
|
162
|
+
printf ' 4. Retry the git commit command\n'
|
|
163
|
+
printf '\n'
|
|
164
|
+
printf ' Only escalate to the user if you find a genuine problem in the diff.\n'
|
|
160
165
|
} >&2
|
|
161
166
|
exit 2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bookedsolid/reagent",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Zero-trust MCP gateway — policy enforcement, secret redaction, and audit logging for AI-assisted projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Booked Solid Technology <oss@bookedsolid.tech> (https://bookedsolid.tech)",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"daemon:status": "[ -f ~/.reagent/daemon.pid ] && kill -0 $(cat ~/.reagent/daemon.pid) 2>/dev/null && echo \"running (PID $(cat ~/.reagent/daemon.pid))\" || echo \"not running\"",
|
|
58
58
|
"daemon:logs": "tail -f ~/.reagent/daemon.log",
|
|
59
59
|
"daemon:eject": "pkill -KILL -f reagent-daemon 2>/dev/null; rm -f ~/.reagent/daemon.pid; echo \"ejected\"",
|
|
60
|
-
"daemon:restart": "reagent daemon restart",
|
|
60
|
+
"daemon:restart": "npx reagent daemon restart",
|
|
61
61
|
"daemon:build": "cargo build --release --manifest-path daemon/Cargo.toml",
|
|
62
62
|
"lint": "eslint .",
|
|
63
63
|
"format": "prettier --write .",
|