agent-sanitizer 2.32.3 → 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/package.json +1 -1
- package/src/cf-charset.mjs +170 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-sanitizer",
|
|
3
|
-
"version": "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": {
|
package/src/cf-charset.mjs
CHANGED
|
@@ -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,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|