agent-sanitizer 2.32.2 → 2.33.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.
package/README.md CHANGED
@@ -15,9 +15,15 @@ npm install agent-sanitizer
15
15
 
16
16
  **As a Claude Code plugin:**
17
17
 
18
+ Enter one at a time:
18
19
  ```
19
20
  /plugin marketplace add AlexanderMattTurner/agent-sanitizer
21
+ ```
22
+
23
+ ```
20
24
  /plugin install agent-sanitizer@agent-sanitizer
25
+ ```
26
+ ```
21
27
  /agent-sanitizer:enable-auto-update
22
28
  ```
23
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-sanitizer",
3
- "version": "2.32.2",
3
+ "version": "2.33.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": {
@@ -18,26 +18,175 @@ export const UNICODE_VERSION = "17.0";
18
18
  // Stryker disable all
19
19
  /** @type {readonly number[]} Sorted ascending. */
20
20
  export const CF_CODEPOINTS = Object.freeze([
21
- 0xad, 0x600, 0x601, 0x602, 0x603, 0x604, 0x605, 0x61c, 0x6dd, 0x70f, 0x890,
22
- 0x891, 0x8e2, 0x180e, 0x200b, 0x200c, 0x200d, 0x200e, 0x200f, 0x202a, 0x202b,
23
- 0x202c, 0x202d, 0x202e, 0x2060, 0x2061, 0x2062, 0x2063, 0x2064, 0x2066,
24
- 0x2067, 0x2068, 0x2069, 0x206a, 0x206b, 0x206c, 0x206d, 0x206e, 0x206f,
25
- 0xfeff, 0xfff9, 0xfffa, 0xfffb, 0x110bd, 0x110cd, 0x13430, 0x13431, 0x13432,
26
- 0x13433, 0x13434, 0x13435, 0x13436, 0x13437, 0x13438, 0x13439, 0x1343a,
27
- 0x1343b, 0x1343c, 0x1343d, 0x1343e, 0x1343f, 0x1bca0, 0x1bca1, 0x1bca2,
28
- 0x1bca3, 0x1d173, 0x1d174, 0x1d175, 0x1d176, 0x1d177, 0x1d178, 0x1d179,
29
- 0x1d17a, 0xe0001, 0xe0020, 0xe0021, 0xe0022, 0xe0023, 0xe0024, 0xe0025,
30
- 0xe0026, 0xe0027, 0xe0028, 0xe0029, 0xe002a, 0xe002b, 0xe002c, 0xe002d,
31
- 0xe002e, 0xe002f, 0xe0030, 0xe0031, 0xe0032, 0xe0033, 0xe0034, 0xe0035,
32
- 0xe0036, 0xe0037, 0xe0038, 0xe0039, 0xe003a, 0xe003b, 0xe003c, 0xe003d,
33
- 0xe003e, 0xe003f, 0xe0040, 0xe0041, 0xe0042, 0xe0043, 0xe0044, 0xe0045,
34
- 0xe0046, 0xe0047, 0xe0048, 0xe0049, 0xe004a, 0xe004b, 0xe004c, 0xe004d,
35
- 0xe004e, 0xe004f, 0xe0050, 0xe0051, 0xe0052, 0xe0053, 0xe0054, 0xe0055,
36
- 0xe0056, 0xe0057, 0xe0058, 0xe0059, 0xe005a, 0xe005b, 0xe005c, 0xe005d,
37
- 0xe005e, 0xe005f, 0xe0060, 0xe0061, 0xe0062, 0xe0063, 0xe0064, 0xe0065,
38
- 0xe0066, 0xe0067, 0xe0068, 0xe0069, 0xe006a, 0xe006b, 0xe006c, 0xe006d,
39
- 0xe006e, 0xe006f, 0xe0070, 0xe0071, 0xe0072, 0xe0073, 0xe0074, 0xe0075,
40
- 0xe0076, 0xe0077, 0xe0078, 0xe0079, 0xe007a, 0xe007b, 0xe007c, 0xe007d,
41
- 0xe007e, 0xe007f,
21
+ 0xad,
22
+ 0x600,
23
+ 0x601,
24
+ 0x602,
25
+ 0x603,
26
+ 0x604,
27
+ 0x605,
28
+ 0x61c,
29
+ 0x6dd,
30
+ 0x70f,
31
+ 0x890,
32
+ 0x891,
33
+ 0x8e2,
34
+ 0x180e,
35
+ 0x200b,
36
+ 0x200c,
37
+ 0x200d,
38
+ 0x200e,
39
+ 0x200f,
40
+ 0x202a,
41
+ 0x202b,
42
+ 0x202c,
43
+ 0x202d,
44
+ 0x202e,
45
+ 0x2060,
46
+ 0x2061,
47
+ 0x2062,
48
+ 0x2063,
49
+ 0x2064,
50
+ 0x2066,
51
+ 0x2067,
52
+ 0x2068,
53
+ 0x2069,
54
+ 0x206a,
55
+ 0x206b,
56
+ 0x206c,
57
+ 0x206d,
58
+ 0x206e,
59
+ 0x206f,
60
+ 0xfeff,
61
+ 0xfff9,
62
+ 0xfffa,
63
+ 0xfffb,
64
+ 0x110bd,
65
+ 0x110cd,
66
+ 0x13430,
67
+ 0x13431,
68
+ 0x13432,
69
+ 0x13433,
70
+ 0x13434,
71
+ 0x13435,
72
+ 0x13436,
73
+ 0x13437,
74
+ 0x13438,
75
+ 0x13439,
76
+ 0x1343a,
77
+ 0x1343b,
78
+ 0x1343c,
79
+ 0x1343d,
80
+ 0x1343e,
81
+ 0x1343f,
82
+ 0x1bca0,
83
+ 0x1bca1,
84
+ 0x1bca2,
85
+ 0x1bca3,
86
+ 0x1d173,
87
+ 0x1d174,
88
+ 0x1d175,
89
+ 0x1d176,
90
+ 0x1d177,
91
+ 0x1d178,
92
+ 0x1d179,
93
+ 0x1d17a,
94
+ 0xe0001,
95
+ 0xe0020,
96
+ 0xe0021,
97
+ 0xe0022,
98
+ 0xe0023,
99
+ 0xe0024,
100
+ 0xe0025,
101
+ 0xe0026,
102
+ 0xe0027,
103
+ 0xe0028,
104
+ 0xe0029,
105
+ 0xe002a,
106
+ 0xe002b,
107
+ 0xe002c,
108
+ 0xe002d,
109
+ 0xe002e,
110
+ 0xe002f,
111
+ 0xe0030,
112
+ 0xe0031,
113
+ 0xe0032,
114
+ 0xe0033,
115
+ 0xe0034,
116
+ 0xe0035,
117
+ 0xe0036,
118
+ 0xe0037,
119
+ 0xe0038,
120
+ 0xe0039,
121
+ 0xe003a,
122
+ 0xe003b,
123
+ 0xe003c,
124
+ 0xe003d,
125
+ 0xe003e,
126
+ 0xe003f,
127
+ 0xe0040,
128
+ 0xe0041,
129
+ 0xe0042,
130
+ 0xe0043,
131
+ 0xe0044,
132
+ 0xe0045,
133
+ 0xe0046,
134
+ 0xe0047,
135
+ 0xe0048,
136
+ 0xe0049,
137
+ 0xe004a,
138
+ 0xe004b,
139
+ 0xe004c,
140
+ 0xe004d,
141
+ 0xe004e,
142
+ 0xe004f,
143
+ 0xe0050,
144
+ 0xe0051,
145
+ 0xe0052,
146
+ 0xe0053,
147
+ 0xe0054,
148
+ 0xe0055,
149
+ 0xe0056,
150
+ 0xe0057,
151
+ 0xe0058,
152
+ 0xe0059,
153
+ 0xe005a,
154
+ 0xe005b,
155
+ 0xe005c,
156
+ 0xe005d,
157
+ 0xe005e,
158
+ 0xe005f,
159
+ 0xe0060,
160
+ 0xe0061,
161
+ 0xe0062,
162
+ 0xe0063,
163
+ 0xe0064,
164
+ 0xe0065,
165
+ 0xe0066,
166
+ 0xe0067,
167
+ 0xe0068,
168
+ 0xe0069,
169
+ 0xe006a,
170
+ 0xe006b,
171
+ 0xe006c,
172
+ 0xe006d,
173
+ 0xe006e,
174
+ 0xe006f,
175
+ 0xe0070,
176
+ 0xe0071,
177
+ 0xe0072,
178
+ 0xe0073,
179
+ 0xe0074,
180
+ 0xe0075,
181
+ 0xe0076,
182
+ 0xe0077,
183
+ 0xe0078,
184
+ 0xe0079,
185
+ 0xe007a,
186
+ 0xe007b,
187
+ 0xe007c,
188
+ 0xe007d,
189
+ 0xe007e,
190
+ 0xe007f,
42
191
  ]);
43
192
  // Stryker restore all