zapagent 1.14.27 → 1.14.28
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.
|
@@ -1,144 +1,180 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"name": "
|
|
4
|
-
"version": "
|
|
3
|
+
"name": "escape-string-regexp",
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"path": "node_modules/
|
|
6
|
+
"path": "node_modules/escape-string-regexp",
|
|
7
7
|
"notices": [
|
|
8
8
|
{
|
|
9
|
-
"path": "node_modules/
|
|
10
|
-
"sha256": "
|
|
9
|
+
"path": "node_modules/escape-string-regexp/license",
|
|
10
|
+
"sha256": "48da2f39e100d4085767e94966b43f4fa95ff6a0698fba57ed460914e35f94a0"
|
|
11
11
|
}
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
"name": "
|
|
15
|
+
"name": "cli-cursor",
|
|
16
16
|
"version": "4.0.0",
|
|
17
17
|
"license": "MIT",
|
|
18
|
-
"path": "node_modules/
|
|
18
|
+
"path": "node_modules/cli-cursor",
|
|
19
19
|
"notices": [
|
|
20
20
|
{
|
|
21
|
-
"path": "node_modules/
|
|
21
|
+
"path": "node_modules/cli-cursor/license",
|
|
22
22
|
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
23
23
|
}
|
|
24
24
|
]
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"name": "
|
|
28
|
-
"version": "8.
|
|
27
|
+
"name": "ws",
|
|
28
|
+
"version": "8.21.0",
|
|
29
29
|
"license": "MIT",
|
|
30
|
-
"path": "node_modules/
|
|
30
|
+
"path": "node_modules/ws",
|
|
31
31
|
"notices": [
|
|
32
32
|
{
|
|
33
|
-
"path": "node_modules/
|
|
34
|
-
"sha256": "
|
|
33
|
+
"path": "node_modules/ws/LICENSE",
|
|
34
|
+
"sha256": "2b29dcfe0d6471f7e8c92c5fb38c9f93edee10330937055440192f1832b1ecef"
|
|
35
35
|
}
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
"name": "
|
|
40
|
-
"version": "
|
|
39
|
+
"name": "slice-ansi",
|
|
40
|
+
"version": "9.0.0",
|
|
41
41
|
"license": "MIT",
|
|
42
|
-
"path": "node_modules/
|
|
42
|
+
"path": "node_modules/slice-ansi",
|
|
43
43
|
"notices": [
|
|
44
44
|
{
|
|
45
|
-
"path": "node_modules/
|
|
46
|
-
"sha256": "
|
|
45
|
+
"path": "node_modules/slice-ansi/license",
|
|
46
|
+
"sha256": "c91d87c3bca16ab6d96d82da08edc54377d14b679547a331eecc4adef3c353c8"
|
|
47
47
|
}
|
|
48
48
|
]
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
"name": "
|
|
52
|
-
"version": "
|
|
51
|
+
"name": "get-east-asian-width",
|
|
52
|
+
"version": "1.6.0",
|
|
53
53
|
"license": "MIT",
|
|
54
|
-
"path": "node_modules/
|
|
54
|
+
"path": "node_modules/get-east-asian-width",
|
|
55
55
|
"notices": [
|
|
56
56
|
{
|
|
57
|
-
"path": "node_modules/
|
|
58
|
-
"sha256": "
|
|
57
|
+
"path": "node_modules/get-east-asian-width/license",
|
|
58
|
+
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
59
59
|
}
|
|
60
60
|
]
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
"name": "
|
|
64
|
-
"version": "
|
|
63
|
+
"name": "environment",
|
|
64
|
+
"version": "1.1.0",
|
|
65
65
|
"license": "MIT",
|
|
66
|
-
"path": "node_modules/
|
|
66
|
+
"path": "node_modules/environment",
|
|
67
67
|
"notices": [
|
|
68
68
|
{
|
|
69
|
-
"path": "node_modules/
|
|
70
|
-
"sha256": "
|
|
69
|
+
"path": "node_modules/environment/license",
|
|
70
|
+
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
71
71
|
}
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
"name": "
|
|
76
|
-
"version": "2.
|
|
75
|
+
"name": "ansi-regex",
|
|
76
|
+
"version": "6.2.2",
|
|
77
77
|
"license": "MIT",
|
|
78
|
-
"path": "node_modules/
|
|
78
|
+
"path": "node_modules/ansi-regex",
|
|
79
79
|
"notices": [
|
|
80
80
|
{
|
|
81
|
-
"path": "node_modules/
|
|
81
|
+
"path": "node_modules/ansi-regex/license",
|
|
82
82
|
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
83
83
|
}
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
|
-
"name": "
|
|
88
|
-
"version": "
|
|
87
|
+
"name": "is-fullwidth-code-point",
|
|
88
|
+
"version": "5.1.0",
|
|
89
89
|
"license": "MIT",
|
|
90
|
-
"path": "node_modules/
|
|
90
|
+
"path": "node_modules/is-fullwidth-code-point",
|
|
91
91
|
"notices": [
|
|
92
92
|
{
|
|
93
|
-
"path": "node_modules/
|
|
93
|
+
"path": "node_modules/is-fullwidth-code-point/license",
|
|
94
94
|
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
95
95
|
}
|
|
96
96
|
]
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
|
-
"name": "
|
|
100
|
-
"version": "2.
|
|
99
|
+
"name": "ansi-styles",
|
|
100
|
+
"version": "6.2.3",
|
|
101
101
|
"license": "MIT",
|
|
102
|
-
"path": "node_modules/
|
|
102
|
+
"path": "node_modules/ansi-styles",
|
|
103
103
|
"notices": [
|
|
104
104
|
{
|
|
105
|
-
"path": "node_modules/
|
|
106
|
-
"sha256": "
|
|
105
|
+
"path": "node_modules/ansi-styles/license",
|
|
106
|
+
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
107
107
|
}
|
|
108
108
|
]
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
"name": "
|
|
112
|
-
"version": "1.
|
|
111
|
+
"name": "onetime",
|
|
112
|
+
"version": "5.1.2",
|
|
113
113
|
"license": "MIT",
|
|
114
|
-
"path": "node_modules/
|
|
114
|
+
"path": "node_modules/onetime",
|
|
115
115
|
"notices": [
|
|
116
116
|
{
|
|
117
|
-
"path": "node_modules/
|
|
117
|
+
"path": "node_modules/onetime/license",
|
|
118
118
|
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
119
119
|
}
|
|
120
120
|
]
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
|
-
"name": "
|
|
124
|
-
"version": "0.
|
|
123
|
+
"name": "terminal-size",
|
|
124
|
+
"version": "4.0.1",
|
|
125
125
|
"license": "MIT",
|
|
126
|
-
"path": "node_modules/
|
|
126
|
+
"path": "node_modules/terminal-size",
|
|
127
127
|
"notices": [
|
|
128
128
|
{
|
|
129
|
-
"path": "node_modules/
|
|
130
|
-
"sha256": "
|
|
129
|
+
"path": "node_modules/terminal-size/license",
|
|
130
|
+
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
131
131
|
}
|
|
132
132
|
]
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
"name": "
|
|
136
|
-
"version": "
|
|
135
|
+
"name": "es-toolkit",
|
|
136
|
+
"version": "1.49.0",
|
|
137
137
|
"license": "MIT",
|
|
138
|
-
"path": "node_modules/
|
|
138
|
+
"path": "node_modules/es-toolkit",
|
|
139
139
|
"notices": [
|
|
140
140
|
{
|
|
141
|
-
"path": "node_modules/
|
|
141
|
+
"path": "node_modules/es-toolkit/LICENSE",
|
|
142
|
+
"sha256": "51f3674294d988d89dbebd31273baaeb3c697a15482d9699b14d1fded2e132a7"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "code-excerpt",
|
|
148
|
+
"version": "4.0.0",
|
|
149
|
+
"license": "MIT",
|
|
150
|
+
"path": "node_modules/code-excerpt",
|
|
151
|
+
"notices": [
|
|
152
|
+
{
|
|
153
|
+
"path": "node_modules/code-excerpt/license",
|
|
154
|
+
"sha256": "b53ca5a0db1b07785cbd9627341b6bd731ef6104bc3b74d44c15c5e7a8990f20"
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "ink",
|
|
160
|
+
"version": "7.1.1",
|
|
161
|
+
"license": "MIT",
|
|
162
|
+
"path": "node_modules/ink",
|
|
163
|
+
"notices": [
|
|
164
|
+
{
|
|
165
|
+
"path": "node_modules/ink/license",
|
|
166
|
+
"sha256": "de84e62e27d9a970b50446d0af1f713c1439a4180faa098adfa5da94f5158a55"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "restore-cursor",
|
|
172
|
+
"version": "4.0.0",
|
|
173
|
+
"license": "MIT",
|
|
174
|
+
"path": "node_modules/restore-cursor",
|
|
175
|
+
"notices": [
|
|
176
|
+
{
|
|
177
|
+
"path": "node_modules/restore-cursor/license",
|
|
142
178
|
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
143
179
|
}
|
|
144
180
|
]
|
|
@@ -156,73 +192,73 @@
|
|
|
156
192
|
]
|
|
157
193
|
},
|
|
158
194
|
{
|
|
159
|
-
"name": "
|
|
160
|
-
"version": "
|
|
195
|
+
"name": "ink-spinner",
|
|
196
|
+
"version": "5.0.0",
|
|
161
197
|
"license": "MIT",
|
|
162
|
-
"path": "node_modules/
|
|
198
|
+
"path": "node_modules/ink-spinner",
|
|
163
199
|
"notices": [
|
|
164
200
|
{
|
|
165
|
-
"path": "node_modules/
|
|
166
|
-
"sha256": "
|
|
201
|
+
"path": "node_modules/ink-spinner/license",
|
|
202
|
+
"sha256": "198d506def2360aa9781fad04cc15125a096f4983a44479b366e657c9b1d3138"
|
|
167
203
|
}
|
|
168
204
|
]
|
|
169
205
|
},
|
|
170
206
|
{
|
|
171
|
-
"name": "
|
|
172
|
-
"version": "2.
|
|
207
|
+
"name": "string-width",
|
|
208
|
+
"version": "8.2.1",
|
|
173
209
|
"license": "MIT",
|
|
174
|
-
"path": "node_modules/
|
|
210
|
+
"path": "node_modules/string-width",
|
|
175
211
|
"notices": [
|
|
176
212
|
{
|
|
177
|
-
"path": "node_modules/
|
|
178
|
-
"sha256": "
|
|
213
|
+
"path": "node_modules/string-width/license",
|
|
214
|
+
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
179
215
|
}
|
|
180
216
|
]
|
|
181
217
|
},
|
|
182
218
|
{
|
|
183
|
-
"name": "
|
|
184
|
-
"version": "
|
|
219
|
+
"name": "react",
|
|
220
|
+
"version": "19.3.0",
|
|
185
221
|
"license": "MIT",
|
|
186
|
-
"path": "node_modules/
|
|
222
|
+
"path": "node_modules/react",
|
|
187
223
|
"notices": [
|
|
188
224
|
{
|
|
189
|
-
"path": "node_modules/
|
|
190
|
-
"sha256": "
|
|
225
|
+
"path": "node_modules/react/LICENSE",
|
|
226
|
+
"sha256": "da6d3703ed11cbe42bd212c725957c98da23cbff1998c05fa4b3d976d1a58e93"
|
|
191
227
|
}
|
|
192
228
|
]
|
|
193
229
|
},
|
|
194
230
|
{
|
|
195
|
-
"name": "
|
|
196
|
-
"version": "
|
|
231
|
+
"name": "strip-ansi",
|
|
232
|
+
"version": "7.2.0",
|
|
197
233
|
"license": "MIT",
|
|
198
|
-
"path": "node_modules/
|
|
234
|
+
"path": "node_modules/strip-ansi",
|
|
199
235
|
"notices": [
|
|
200
236
|
{
|
|
201
|
-
"path": "node_modules/
|
|
237
|
+
"path": "node_modules/strip-ansi/license",
|
|
202
238
|
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
203
239
|
}
|
|
204
240
|
]
|
|
205
241
|
},
|
|
206
242
|
{
|
|
207
|
-
"name": "
|
|
208
|
-
"version": "
|
|
243
|
+
"name": "react-reconciler",
|
|
244
|
+
"version": "0.33.0",
|
|
209
245
|
"license": "MIT",
|
|
210
|
-
"path": "node_modules/
|
|
246
|
+
"path": "node_modules/react-reconciler",
|
|
211
247
|
"notices": [
|
|
212
248
|
{
|
|
213
|
-
"path": "node_modules/
|
|
214
|
-
"sha256": "
|
|
249
|
+
"path": "node_modules/react-reconciler/LICENSE",
|
|
250
|
+
"sha256": "da6d3703ed11cbe42bd212c725957c98da23cbff1998c05fa4b3d976d1a58e93"
|
|
215
251
|
}
|
|
216
252
|
]
|
|
217
253
|
},
|
|
218
254
|
{
|
|
219
|
-
"name": "
|
|
220
|
-
"version": "
|
|
255
|
+
"name": "cli-boxes",
|
|
256
|
+
"version": "4.0.1",
|
|
221
257
|
"license": "MIT",
|
|
222
|
-
"path": "node_modules/
|
|
258
|
+
"path": "node_modules/cli-boxes",
|
|
223
259
|
"notices": [
|
|
224
260
|
{
|
|
225
|
-
"path": "node_modules/
|
|
261
|
+
"path": "node_modules/cli-boxes/license",
|
|
226
262
|
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
227
263
|
}
|
|
228
264
|
]
|
|
@@ -240,41 +276,29 @@
|
|
|
240
276
|
]
|
|
241
277
|
},
|
|
242
278
|
{
|
|
243
|
-
"name": "
|
|
244
|
-
"version": "
|
|
279
|
+
"name": "@alcalzone/ansi-tokenize",
|
|
280
|
+
"version": "0.3.0",
|
|
245
281
|
"license": "MIT",
|
|
246
|
-
"path": "node_modules/
|
|
282
|
+
"path": "node_modules/@alcalzone/ansi-tokenize",
|
|
247
283
|
"notices": [
|
|
248
284
|
{
|
|
249
|
-
"path": "node_modules/
|
|
250
|
-
"sha256": "
|
|
285
|
+
"path": "node_modules/@alcalzone/ansi-tokenize/LICENSE",
|
|
286
|
+
"sha256": "c60f722e431aa92d949775157b269851c9d0e2a1bc18f77dcbf0d95363734443"
|
|
251
287
|
}
|
|
252
288
|
]
|
|
253
289
|
},
|
|
254
290
|
{
|
|
255
|
-
"name": "
|
|
256
|
-
"version": "
|
|
291
|
+
"name": "indent-string",
|
|
292
|
+
"version": "5.0.0",
|
|
257
293
|
"license": "MIT",
|
|
258
|
-
"path": "node_modules/
|
|
294
|
+
"path": "node_modules/indent-string",
|
|
259
295
|
"notices": [
|
|
260
296
|
{
|
|
261
|
-
"path": "node_modules/
|
|
297
|
+
"path": "node_modules/indent-string/license",
|
|
262
298
|
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
263
299
|
}
|
|
264
300
|
]
|
|
265
301
|
},
|
|
266
|
-
{
|
|
267
|
-
"name": "signal-exit",
|
|
268
|
-
"version": "3.0.7",
|
|
269
|
-
"license": "ISC",
|
|
270
|
-
"path": "node_modules/signal-exit",
|
|
271
|
-
"notices": [
|
|
272
|
-
{
|
|
273
|
-
"path": "node_modules/signal-exit/LICENSE.txt",
|
|
274
|
-
"sha256": "e05b1eaf5b5f99b7ad75cd1f38858ff9a311780b97715ead67936d60bf96aa7e"
|
|
275
|
-
}
|
|
276
|
-
]
|
|
277
|
-
},
|
|
278
302
|
{
|
|
279
303
|
"name": "type-fest",
|
|
280
304
|
"version": "5.7.0",
|
|
@@ -291,6 +315,18 @@
|
|
|
291
315
|
}
|
|
292
316
|
]
|
|
293
317
|
},
|
|
318
|
+
{
|
|
319
|
+
"name": "wrap-ansi",
|
|
320
|
+
"version": "10.0.0",
|
|
321
|
+
"license": "MIT",
|
|
322
|
+
"path": "node_modules/wrap-ansi",
|
|
323
|
+
"notices": [
|
|
324
|
+
{
|
|
325
|
+
"path": "node_modules/wrap-ansi/license",
|
|
326
|
+
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
327
|
+
}
|
|
328
|
+
]
|
|
329
|
+
},
|
|
294
330
|
{
|
|
295
331
|
"name": "ink-text-input",
|
|
296
332
|
"version": "6.0.0",
|
|
@@ -320,169 +356,145 @@
|
|
|
320
356
|
]
|
|
321
357
|
},
|
|
322
358
|
{
|
|
323
|
-
"name": "
|
|
324
|
-
"version": "
|
|
325
|
-
"license": "MIT",
|
|
326
|
-
"path": "node_modules/code-excerpt",
|
|
327
|
-
"notices": [
|
|
328
|
-
{
|
|
329
|
-
"path": "node_modules/code-excerpt/license",
|
|
330
|
-
"sha256": "b53ca5a0db1b07785cbd9627341b6bd731ef6104bc3b74d44c15c5e7a8990f20"
|
|
331
|
-
}
|
|
332
|
-
]
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"name": "onetime",
|
|
336
|
-
"version": "5.1.2",
|
|
359
|
+
"name": "chalk",
|
|
360
|
+
"version": "5.6.2",
|
|
337
361
|
"license": "MIT",
|
|
338
|
-
"path": "node_modules/
|
|
362
|
+
"path": "node_modules/chalk",
|
|
339
363
|
"notices": [
|
|
340
364
|
{
|
|
341
|
-
"path": "node_modules/
|
|
365
|
+
"path": "node_modules/chalk/license",
|
|
342
366
|
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
343
367
|
}
|
|
344
368
|
]
|
|
345
369
|
},
|
|
346
370
|
{
|
|
347
|
-
"name": "
|
|
348
|
-
"version": "
|
|
349
|
-
"license": "MIT",
|
|
350
|
-
"path": "node_modules/ws",
|
|
351
|
-
"notices": [
|
|
352
|
-
{
|
|
353
|
-
"path": "node_modules/ws/LICENSE",
|
|
354
|
-
"sha256": "2b29dcfe0d6471f7e8c92c5fb38c9f93edee10330937055440192f1832b1ecef"
|
|
355
|
-
}
|
|
356
|
-
]
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"name": "es-toolkit",
|
|
360
|
-
"version": "1.49.0",
|
|
371
|
+
"name": "tagged-tag",
|
|
372
|
+
"version": "1.0.0",
|
|
361
373
|
"license": "MIT",
|
|
362
|
-
"path": "node_modules/
|
|
374
|
+
"path": "node_modules/tagged-tag",
|
|
363
375
|
"notices": [
|
|
364
376
|
{
|
|
365
|
-
"path": "node_modules/
|
|
366
|
-
"sha256": "
|
|
377
|
+
"path": "node_modules/tagged-tag/license",
|
|
378
|
+
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
367
379
|
}
|
|
368
380
|
]
|
|
369
381
|
},
|
|
370
382
|
{
|
|
371
|
-
"name": "
|
|
372
|
-
"version": "
|
|
383
|
+
"name": "yoga-layout",
|
|
384
|
+
"version": "3.2.1",
|
|
373
385
|
"license": "MIT",
|
|
374
|
-
"path": "node_modules/
|
|
386
|
+
"path": "node_modules/yoga-layout",
|
|
375
387
|
"notices": [
|
|
376
388
|
{
|
|
377
|
-
"path": "node_modules/
|
|
378
|
-
"sha256": "
|
|
389
|
+
"path": "node_modules/yoga-layout/LICENSE",
|
|
390
|
+
"sha256": "52412d7bc7ce4157ea628bbaacb8829e0a9cb3c58f57f99176126bc8cf2bfc85"
|
|
379
391
|
}
|
|
380
392
|
]
|
|
381
393
|
},
|
|
382
394
|
{
|
|
383
|
-
"name": "
|
|
384
|
-
"version": "2.0.
|
|
395
|
+
"name": "stack-utils",
|
|
396
|
+
"version": "2.0.6",
|
|
385
397
|
"license": "MIT",
|
|
386
|
-
"path": "node_modules/
|
|
398
|
+
"path": "node_modules/stack-utils",
|
|
387
399
|
"notices": [
|
|
388
400
|
{
|
|
389
|
-
"path": "node_modules/
|
|
390
|
-
"sha256": "
|
|
401
|
+
"path": "node_modules/stack-utils/LICENSE.md",
|
|
402
|
+
"sha256": "9be2ec8089dfa4059a78e4e3e0443c416b2d63dedffb246c7473d0f3d763c6c4"
|
|
391
403
|
}
|
|
392
404
|
]
|
|
393
405
|
},
|
|
394
406
|
{
|
|
395
|
-
"name": "
|
|
396
|
-
"version": "
|
|
407
|
+
"name": "scheduler",
|
|
408
|
+
"version": "0.27.0",
|
|
397
409
|
"license": "MIT",
|
|
398
|
-
"path": "node_modules/
|
|
410
|
+
"path": "node_modules/scheduler",
|
|
399
411
|
"notices": [
|
|
400
412
|
{
|
|
401
|
-
"path": "node_modules/
|
|
402
|
-
"sha256": "
|
|
413
|
+
"path": "node_modules/scheduler/LICENSE",
|
|
414
|
+
"sha256": "da6d3703ed11cbe42bd212c725957c98da23cbff1998c05fa4b3d976d1a58e93"
|
|
403
415
|
}
|
|
404
416
|
]
|
|
405
417
|
},
|
|
406
418
|
{
|
|
407
|
-
"name": "cli-
|
|
408
|
-
"version": "
|
|
419
|
+
"name": "cli-truncate",
|
|
420
|
+
"version": "6.1.0",
|
|
409
421
|
"license": "MIT",
|
|
410
|
-
"path": "node_modules/cli-
|
|
422
|
+
"path": "node_modules/cli-truncate",
|
|
411
423
|
"notices": [
|
|
412
424
|
{
|
|
413
|
-
"path": "node_modules/cli-
|
|
425
|
+
"path": "node_modules/cli-truncate/license",
|
|
414
426
|
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
415
427
|
}
|
|
416
428
|
]
|
|
417
429
|
},
|
|
418
430
|
{
|
|
419
|
-
"name": "
|
|
420
|
-
"version": "1.0
|
|
431
|
+
"name": "mimic-fn",
|
|
432
|
+
"version": "2.1.0",
|
|
421
433
|
"license": "MIT",
|
|
422
|
-
"path": "node_modules/
|
|
434
|
+
"path": "node_modules/mimic-fn",
|
|
423
435
|
"notices": [
|
|
424
436
|
{
|
|
425
|
-
"path": "node_modules/
|
|
426
|
-
"sha256": "
|
|
437
|
+
"path": "node_modules/mimic-fn/license",
|
|
438
|
+
"sha256": "48da2f39e100d4085767e94966b43f4fa95ff6a0698fba57ed460914e35f94a0"
|
|
427
439
|
}
|
|
428
440
|
]
|
|
429
441
|
},
|
|
430
442
|
{
|
|
431
|
-
"name": "
|
|
432
|
-
"version": "
|
|
433
|
-
"license": "
|
|
434
|
-
"path": "node_modules/
|
|
443
|
+
"name": "signal-exit",
|
|
444
|
+
"version": "3.0.7",
|
|
445
|
+
"license": "ISC",
|
|
446
|
+
"path": "node_modules/signal-exit",
|
|
435
447
|
"notices": [
|
|
436
448
|
{
|
|
437
|
-
"path": "node_modules/
|
|
438
|
-
"sha256": "
|
|
449
|
+
"path": "node_modules/signal-exit/LICENSE.txt",
|
|
450
|
+
"sha256": "e05b1eaf5b5f99b7ad75cd1f38858ff9a311780b97715ead67936d60bf96aa7e"
|
|
439
451
|
}
|
|
440
452
|
]
|
|
441
453
|
},
|
|
442
454
|
{
|
|
443
|
-
"name": "
|
|
444
|
-
"version": "0.
|
|
455
|
+
"name": "auto-bind",
|
|
456
|
+
"version": "5.0.1",
|
|
445
457
|
"license": "MIT",
|
|
446
|
-
"path": "node_modules
|
|
458
|
+
"path": "node_modules/auto-bind",
|
|
447
459
|
"notices": [
|
|
448
460
|
{
|
|
449
|
-
"path": "node_modules
|
|
450
|
-
"sha256": "
|
|
461
|
+
"path": "node_modules/auto-bind/license",
|
|
462
|
+
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
451
463
|
}
|
|
452
464
|
]
|
|
453
465
|
},
|
|
454
466
|
{
|
|
455
|
-
"name": "
|
|
456
|
-
"version": "
|
|
467
|
+
"name": "patch-console",
|
|
468
|
+
"version": "2.0.0",
|
|
457
469
|
"license": "MIT",
|
|
458
|
-
"path": "node_modules/
|
|
470
|
+
"path": "node_modules/patch-console",
|
|
459
471
|
"notices": [
|
|
460
472
|
{
|
|
461
|
-
"path": "node_modules/
|
|
462
|
-
"sha256": "
|
|
473
|
+
"path": "node_modules/patch-console/license",
|
|
474
|
+
"sha256": "67726f6c8adeaf7d7e1a3af90fc88c76f7b9747552e5187a8ba62bf781297b49"
|
|
463
475
|
}
|
|
464
476
|
]
|
|
465
477
|
},
|
|
466
478
|
{
|
|
467
|
-
"name": "
|
|
468
|
-
"version": "
|
|
479
|
+
"name": "is-in-ci",
|
|
480
|
+
"version": "2.0.0",
|
|
469
481
|
"license": "MIT",
|
|
470
|
-
"path": "node_modules/
|
|
482
|
+
"path": "node_modules/is-in-ci",
|
|
471
483
|
"notices": [
|
|
472
484
|
{
|
|
473
|
-
"path": "node_modules/
|
|
485
|
+
"path": "node_modules/is-in-ci/license",
|
|
474
486
|
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
475
487
|
}
|
|
476
488
|
]
|
|
477
489
|
},
|
|
478
490
|
{
|
|
479
|
-
"name": "
|
|
480
|
-
"version": "
|
|
491
|
+
"name": "cli-spinners",
|
|
492
|
+
"version": "2.9.2",
|
|
481
493
|
"license": "MIT",
|
|
482
|
-
"path": "node_modules/
|
|
494
|
+
"path": "node_modules/cli-spinners",
|
|
483
495
|
"notices": [
|
|
484
496
|
{
|
|
485
|
-
"path": "node_modules/
|
|
497
|
+
"path": "node_modules/cli-spinners/license",
|
|
486
498
|
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
487
499
|
}
|
|
488
500
|
]
|
|
@@ -498,17 +510,5 @@
|
|
|
498
510
|
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
499
511
|
}
|
|
500
512
|
]
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
"name": "ansi-styles",
|
|
504
|
-
"version": "6.2.3",
|
|
505
|
-
"license": "MIT",
|
|
506
|
-
"path": "node_modules/ansi-styles",
|
|
507
|
-
"notices": [
|
|
508
|
-
{
|
|
509
|
-
"path": "node_modules/ansi-styles/license",
|
|
510
|
-
"sha256": "5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3"
|
|
511
|
-
}
|
|
512
|
-
]
|
|
513
513
|
}
|
|
514
514
|
]
|
package/package.json
CHANGED
package/zapsdk/agent/loop.ts
CHANGED
|
@@ -516,6 +516,7 @@ export class LoopAgent {
|
|
|
516
516
|
private storageSessionId: string;
|
|
517
517
|
private storageProjectCwd: string;
|
|
518
518
|
private sessionId: string;
|
|
519
|
+
private readonly providerSessionId: string;
|
|
519
520
|
private onRunStart?: LoopAgentOptions["onRunStart"];
|
|
520
521
|
private onRunEnd?: (ctx: { turnStartIndex: number; sessionId: string }) => Promise<void>;
|
|
521
522
|
// onRetry surfaces a system log via the observation event bus so the
|
|
@@ -601,6 +602,7 @@ export class LoopAgent {
|
|
|
601
602
|
this.storageSessionId = options.storageSessionId ?? randomUUID();
|
|
602
603
|
this.storageProjectCwd = options.storageProjectCwd ?? process.cwd();
|
|
603
604
|
this.sessionId = options.sessionId ?? "default";
|
|
605
|
+
this.providerSessionId = options.sessionId ?? this.storageSessionId;
|
|
604
606
|
this.onRunStart = options.onRunStart;
|
|
605
607
|
this.onRunEnd = options.onRunEnd;
|
|
606
608
|
this.contextWindow = nonNegativeInteger(options.contextWindow);
|
|
@@ -2270,7 +2272,7 @@ export class LoopAgent {
|
|
|
2270
2272
|
private providerCallOptions(step: number, maxOutputTokens: number | undefined, signal?: AbortSignal): LLMCallOptions {
|
|
2271
2273
|
const requestId = nextContentId("request");
|
|
2272
2274
|
let observedAttempt: number | undefined;
|
|
2273
|
-
const options: LLMCallOptions = { maxOutputTokens, signal,
|
|
2275
|
+
const options: LLMCallOptions = { maxOutputTokens, signal, sessionId: this.providerSessionId,
|
|
2274
2276
|
deadline: signal ? this.providerDeadlines.get(signal) : undefined, onRequestEvent: request => {
|
|
2275
2277
|
if (request.cacheShape && observedAttempt !== request.attempt) {
|
|
2276
2278
|
observedAttempt = request.attempt;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
1
2
|
import type { LLMProvider } from "../core/llm.js";
|
|
2
3
|
import type { Message, TokenUsage } from "../core/types.js";
|
|
3
4
|
import {
|
|
@@ -52,7 +53,8 @@ export class SingleCallAgent {
|
|
|
52
53
|
|
|
53
54
|
// First LLM call
|
|
54
55
|
const tools = this.registry.definitions();
|
|
55
|
-
const
|
|
56
|
+
const options = { sessionId: this.sessionId ?? randomUUID() };
|
|
57
|
+
const response = await this.provider.call(messages, tools, options);
|
|
56
58
|
accumulateTokenUsage(totalUsage, response.usage);
|
|
57
59
|
|
|
58
60
|
// If no tool calls, return directly
|
|
@@ -82,7 +84,7 @@ export class SingleCallAgent {
|
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
// Second LLM call with tool results
|
|
85
|
-
const finalResponse = await this.provider.call(messages, tools);
|
|
87
|
+
const finalResponse = await this.provider.call(messages, tools, options);
|
|
86
88
|
accumulateTokenUsage(totalUsage, finalResponse.usage);
|
|
87
89
|
|
|
88
90
|
return { text: finalResponse.text, toolResults, totalUsage };
|
package/zapsdk/core/llm.ts
CHANGED
|
@@ -68,6 +68,8 @@ export interface LLMCallOptions {
|
|
|
68
68
|
onRequestEvent?: (event: ProviderRequestEvent) => void;
|
|
69
69
|
/** RetryProvider supplies this metadata to each adapter attempt. */
|
|
70
70
|
requestAttempt?: { attempt: number; maxAttempts: number };
|
|
71
|
+
/** Conversation identity for providers with session-scoped prompt cache routing. */
|
|
72
|
+
sessionId?: string;
|
|
71
73
|
/** Host-local logical request identity, shared by retry attempts. */
|
|
72
74
|
requestId?: string;
|
|
73
75
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
1
2
|
import OpenAI from "openai";
|
|
2
3
|
import type { Response as APIResponse, ResponseInputItem, ResponseCreateParams } from "openai/resources/responses/responses";
|
|
3
4
|
import type { LLMProvider, LLMCallOptions } from "../llm.js";
|
|
@@ -41,7 +42,7 @@ export class OpenAIResponsesProvider implements LLMProvider {
|
|
|
41
42
|
setVisionSupported(supported: boolean): void { this.formatter.setVisionSupported(supported); }
|
|
42
43
|
getImageTokenContext(options?: LLMCallOptions) { return this.formatter.getImageTokenContext(options); }
|
|
43
44
|
|
|
44
|
-
private async requestClient(request: ProviderRequest): Promise<OpenAI> {
|
|
45
|
+
private async requestClient(request: ProviderRequest, sessionAffinity?: string): Promise<OpenAI> {
|
|
45
46
|
const codex = this.options.codex;
|
|
46
47
|
if (!codex) return this.client;
|
|
47
48
|
const credentials = await request.wait(codex.getCredentials(request.signal));
|
|
@@ -49,6 +50,7 @@ export class OpenAIResponsesProvider implements LLMProvider {
|
|
|
49
50
|
// OAuth tokens are never sent to a user-configurable endpoint/client.
|
|
50
51
|
return new OpenAI({ baseURL: CODEX_RESPONSES_BASE_URL, apiKey: credentials.accessToken, maxRetries: 0,
|
|
51
52
|
fetch: codex.fetch, defaultHeaders: { originator: "zap",
|
|
53
|
+
...(sessionAffinity ? { "session-id": sessionAffinity } : {}),
|
|
52
54
|
...(credentials.accountId ? { "ChatGPT-Account-ID": credentials.accountId } : {}) } });
|
|
53
55
|
}
|
|
54
56
|
|
|
@@ -121,7 +123,7 @@ export class OpenAIResponsesProvider implements LLMProvider {
|
|
|
121
123
|
model: opts?.model ?? this.options.model,
|
|
122
124
|
max_output_tokens: opts?.maxOutputTokens ?? this.options.maxTokens ?? 4096,
|
|
123
125
|
...extra,
|
|
124
|
-
input:
|
|
126
|
+
input: [],
|
|
125
127
|
tools: tools?.length ? [...tools].sort((a, b) => a.name.localeCompare(b.name)).map(tool => ({
|
|
126
128
|
type: "function", name: tool.name, description: tool.description, strict: false,
|
|
127
129
|
parameters: canonicalizeJsonSchema(tool.rawSchema ?? zodToJsonSchema(tool.parameters)),
|
|
@@ -142,13 +144,19 @@ export class OpenAIResponsesProvider implements LLMProvider {
|
|
|
142
144
|
else delete body.reasoning;
|
|
143
145
|
let leadingSystemEnd = 0;
|
|
144
146
|
while (messages[leadingSystemEnd]?.role === "system") leadingSystemEnd++;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
+
// GPT-6.2 renders top-level instructions after the cacheable input.
|
|
148
|
+
const instructions = messages.slice(0, leadingSystemEnd).map(message => stripBoundary(message.content)).join("\n\n");
|
|
149
|
+
const input = this.serializeMessages(messages.slice(leadingSystemEnd));
|
|
150
|
+
if (instructions) input.unshift({ role: "developer", content: instructions });
|
|
151
|
+
body.input = input;
|
|
152
|
+
body.instructions = "";
|
|
147
153
|
// Codex requires SSE and rejects generation controls accepted by the API.
|
|
148
154
|
delete body.max_output_tokens;
|
|
149
155
|
delete body.temperature;
|
|
150
156
|
delete body.top_p;
|
|
151
157
|
body.stream = true;
|
|
158
|
+
} else {
|
|
159
|
+
body.input = this.serializeMessages(messages);
|
|
152
160
|
}
|
|
153
161
|
return body;
|
|
154
162
|
}
|
|
@@ -183,12 +191,18 @@ export class OpenAIResponsesProvider implements LLMProvider {
|
|
|
183
191
|
}
|
|
184
192
|
const usage = response.usage;
|
|
185
193
|
const cached = usage?.input_tokens_details?.cached_tokens;
|
|
194
|
+
const written = usage?.input_tokens_details?.cache_write_tokens;
|
|
186
195
|
return {
|
|
187
196
|
type: toolCalls.length ? "tool_call" : "text", text,
|
|
188
197
|
toolCalls: toolCalls.length ? toolCalls : undefined,
|
|
189
198
|
finishReason: truncated ? "length" : toolCalls.length ? "tool_calls" : "stop",
|
|
190
|
-
usage: {
|
|
191
|
-
|
|
199
|
+
usage: {
|
|
200
|
+
inputTokens: Math.max(0, (usage?.input_tokens ?? 0) - (cached ?? 0) - (written ?? 0)),
|
|
201
|
+
outputTokens: usage?.output_tokens ?? 0,
|
|
202
|
+
providerUsageReported: !!usage,
|
|
203
|
+
...(cached !== undefined ? { cacheReadInputTokens: cached } : {}),
|
|
204
|
+
...(written !== undefined ? { cacheCreationInputTokens: written } : {}),
|
|
205
|
+
},
|
|
192
206
|
raw: layout.length ? { openaiResponses: { items: layout } } : undefined,
|
|
193
207
|
};
|
|
194
208
|
}
|
|
@@ -237,8 +251,12 @@ export class OpenAIResponsesProvider implements LLMProvider {
|
|
|
237
251
|
|
|
238
252
|
private async *streamResponse(messages: Message[], tools: ToolDefinition[] | undefined, opts: LLMCallOptions | undefined, request: ProviderRequest): AsyncIterable<LLMChunk> {
|
|
239
253
|
const body = this.body(messages, tools, opts, true);
|
|
254
|
+
// Derive both routing fields from the same header-safe conversation identity.
|
|
255
|
+
const sessionAffinity = this.options.codex && opts?.sessionId
|
|
256
|
+
? createHash("sha256").update(opts.sessionId).digest("hex") : undefined;
|
|
257
|
+
if (sessionAffinity && body.prompt_cache_key === undefined) body.prompt_cache_key = sessionAffinity;
|
|
240
258
|
request.measureBody(body, this.options.maxRequestBytes, `responses:${this.options.codex ? CODEX_RESPONSES_BASE_URL : this.options.baseURL ?? this.options.client?.baseURL ?? "default"}`);
|
|
241
|
-
const client = await this.requestClient(request);
|
|
259
|
+
const client = await this.requestClient(request, sessionAffinity);
|
|
242
260
|
const stream = await request.wait(client.responses.create({ ...body, stream: true }, { signal: request.signal, maxRetries: 0 }));
|
|
243
261
|
request.responseReceived();
|
|
244
262
|
let emittedText = "";
|