agent-sanitizer 2.69.1 → 2.70.0

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 (2) hide show
  1. package/README.md +5 -0
  2. package/package.json +6 -2
package/README.md CHANGED
@@ -258,6 +258,11 @@ To wire them yourself instead, one entry dispatches every mode on `--hook=`:
258
258
 
259
259
  `InstructionsLoaded` needs Claude Code **2.1.69 or newer** — 2.1.68 does not emit the event, so the hook never fires however you wire it. Check with `claude --version`.
260
260
 
261
+ The hooks load `agent-control-plane-core`, a peer dependency
262
+ (`>=0.11.2 <1.0.0`): npm 7+ and pnpm install it for you, but on Yarn classic,
263
+ npm 6, `--legacy-peer-deps` or pnpm with `auto-install-peers=false`, add it to
264
+ your project yourself, or every hook reports it unavailable.
265
+
261
266
  `require.resolve("agent-sanitizer/claude-hooks")` gives the path without
262
267
  hardcoding a layout. Importing the module rather than spawning it is a no-op.
263
268
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-sanitizer",
3
- "version": "2.69.1",
3
+ "version": "2.70.0",
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": {
@@ -55,6 +55,7 @@
55
55
  "@unicode/unicode-17.0.0": "2.0.7",
56
56
  "acorn": "^8.18.0",
57
57
  "acorn-walk": "^8.3.5",
58
+ "agent-control-plane-core": "0.12.0",
58
59
  "agent-sanitizer": "link:.",
59
60
  "bun": "1.3.11",
60
61
  "c8": "11.0.0",
@@ -71,6 +72,7 @@
71
72
  "recheck": "4.5.0",
72
73
  "rehype-parse": "9.0.1",
73
74
  "remark-gfm": "4.0.1",
75
+ "semver": "7.8.6",
74
76
  "smol-toml": "^1.7.1",
75
77
  "typescript": "6.0.3",
76
78
  "typescript-eslint": "8.61.0",
@@ -227,7 +229,6 @@
227
229
  "SECURITY.md"
228
230
  ],
229
231
  "dependencies": {
230
- "agent-control-plane-core": "0.11.2",
231
232
  "css-tree": "^3.2.1",
232
233
  "hast-util-from-parse5": "8.0.3",
233
234
  "mdast-util-gfm": "3.1.0",
@@ -245,6 +246,9 @@
245
246
  "unist-util-visit": "5.1.0",
246
247
  "vfile": "6.0.3"
247
248
  },
249
+ "peerDependencies": {
250
+ "agent-control-plane-core": ">=0.11.2 <1.0.0"
251
+ },
248
252
  "scripts": {
249
253
  "test": "node scripts/coverage.mjs",
250
254
  "coverage": "node scripts/coverage.mjs",