agent-sanitizer 2.43.1 → 2.43.2
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/README.md +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -186,9 +186,13 @@ Failure is loud by design. Installed as Claude Code hooks the layers fail
|
|
|
186
186
|
**open**: a hook that could not run lets the action through rather than halting
|
|
187
187
|
your session on its own breakage — but it says so, in a warning the model and
|
|
188
188
|
the transcript both carry. Set `AGENT_SANITIZER_FAIL_OPEN=0` and the same
|
|
189
|
-
failures block instead:
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
failures block instead: blocked prompts, permission asks whose reason names the
|
|
190
|
+
cause, and tool output withheld over two channels. The node hook substitutes
|
|
191
|
+
`[output sanitizer unavailable — original output suppressed]`, which only
|
|
192
|
+
withholds a string-shaped response; the shell arm in `plugin/scripts/safe-launch.sh`
|
|
193
|
+
therefore also emits a top-level `decision`/`reason` pair, honored whatever
|
|
194
|
+
shape the response had, telling the model that any output still visible above
|
|
195
|
+
it is unsanitized. One carve-out to the
|
|
192
196
|
open default, with secrets enabled: a write-shaped call carrying `[REDACTED…]` placeholder text asks
|
|
193
197
|
instead of passing through when the hook itself is broken, since letting it
|
|
194
198
|
through would overwrite the real secret with the placeholder. Either way, a plugin that
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-sanitizer",
|
|
3
|
-
"version": "2.43.
|
|
3
|
+
"version": "2.43.2",
|
|
4
4
|
"description": "Defend an agent against hidden-content injection: strip payload-capable invisible Unicode and ANSI, splice out human-invisible HTML, and flag data-exfil URLs in untrusted text before any model sees it.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|