You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/__tests__/__snapshots__/server.tools.test.ts.snap
+121Lines changed: 121 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -192,6 +192,127 @@ exports[`logWarningsErrors should log warnings and errors, with warnings only 1`
192
192
]
193
193
`;
194
194
195
+
exports[`makeProxyCreators should attempt to invoke a creator then throw an error on child response, ok false with error: handler 1`] =`[Error: Error message]`;
196
+
197
+
exports[`makeProxyCreators should attempt to invoke a creator then throw an error on child response, ok false with error: send 1`] =`
198
+
[
199
+
[
200
+
undefined,
201
+
{
202
+
"args": {
203
+
"loremIpsum": 7,
204
+
},
205
+
"id": "id-1",
206
+
"t": "invoke",
207
+
"toolId": "loremIpsum",
208
+
},
209
+
],
210
+
]
211
+
`;
212
+
213
+
exports[`makeProxyCreators should attempt to invoke a creator then throw an error on child response, ok false with full error: handler 1`] =`[Error: Error message]`;
214
+
215
+
exports[`makeProxyCreators should attempt to invoke a creator then throw an error on child response, ok false with full error: send 1`] =`
216
+
[
217
+
[
218
+
undefined,
219
+
{
220
+
"args": {
221
+
"loremIpsum": 7,
222
+
},
223
+
"id": "id-1",
224
+
"t": "invoke",
225
+
"toolId": "loremIpsum",
226
+
},
227
+
],
228
+
]
229
+
`;
230
+
231
+
exports[`makeProxyCreators should attempt to invoke a creator then throw an error on child response, ok false: handler 1`] =`[Error: Tool invocation failed]`;
232
+
233
+
exports[`makeProxyCreators should attempt to invoke a creator then throw an error on child response, ok false: send 1`] =`
234
+
[
235
+
[
236
+
undefined,
237
+
{
238
+
"args": {
239
+
"loremIpsum": 7,
240
+
},
241
+
"id": "id-1",
242
+
"t": "invoke",
243
+
"toolId": "loremIpsum",
244
+
},
245
+
],
246
+
]
247
+
`;
248
+
249
+
exports[`makeProxyCreators should attempt to return proxy creators, a function wrapper per tool, basic 1`] =`
250
+
{
251
+
"debug": [],
252
+
"output": [
253
+
[
254
+
"Lorem Ipsum",
255
+
{
256
+
"description": "Lorem ipsum dolor sit amet",
257
+
"inputSchema": "isZod = true",
258
+
},
259
+
[Function],
260
+
],
261
+
],
262
+
}
263
+
`;
264
+
265
+
exports[`makeProxyCreators should attempt to return proxy creators, a function wrapper per tool, no tools 1`] =`
266
+
{
267
+
"debug": [],
268
+
"output": [],
269
+
}
270
+
`;
271
+
272
+
exports[`makeProxyCreators should attempt to return proxy creators, a function wrapper per tool, null JSON input schema 1`] =`
273
+
{
274
+
"debug": [
275
+
[
276
+
"Tool "LoremIpsum" from unknown source failed strict JSON to Zod reconstruction.",
277
+
"Using fallback best-effort schema. Review the tool's inputSchema and ensure it is a valid JSON or Zod schema.",
278
+
"[ZOD_SCHEMA: defined: true]",
279
+
],
280
+
],
281
+
"output": [
282
+
[
283
+
"Lorem Ipsum",
284
+
{
285
+
"description": "Lorem ipsum dolor sit amet",
286
+
"inputSchema": "isZod = true",
287
+
},
288
+
[Function],
289
+
],
290
+
],
291
+
}
292
+
`;
293
+
294
+
exports[`makeProxyCreators should attempt to return proxy creators, a function wrapper per tool, undefined JSON input schema 1`] =`
295
+
{
296
+
"debug": [
297
+
[
298
+
"Tool "LoremIpsum" from unknown source failed strict JSON to Zod reconstruction.",
299
+
"Using fallback best-effort schema. Review the tool's inputSchema and ensure it is a valid JSON or Zod schema.",
300
+
"[ZOD_SCHEMA: defined: true]",
301
+
],
302
+
],
303
+
"output": [
304
+
[
305
+
"Lorem Ipsum",
306
+
{
307
+
"description": "Lorem ipsum dolor sit amet",
308
+
"inputSchema": "isZod = true",
309
+
},
310
+
[Function],
311
+
],
312
+
],
313
+
}
314
+
`;
315
+
195
316
exports[`spawnToolsHost attempt to spawn the Tools Host, with no pluginIsolation, node 24: spawn 1`] =`
0 commit comments