@tai42/api-client 17.1.2 → 18.0.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/dist/client/backend-client.d.ts +1 -1
- package/dist/client/backup-client.d.ts +2 -2
- package/dist/client/channels-client.js +1 -1
- package/dist/client/channels-client.js.map +1 -1
- package/dist/client/config-client.d.ts +3 -3
- package/dist/client/connectors-client.d.ts +8 -8
- package/dist/client/conversations-client.d.ts +34 -4
- package/dist/client/conversations-client.d.ts.map +1 -1
- package/dist/client/hooks-client.d.ts +16 -1
- package/dist/client/hooks-client.d.ts.map +1 -1
- package/dist/client/index.d.ts +96 -45
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/manifest-client.d.ts +18 -18
- package/dist/client/profiles-client.d.ts +2 -2
- package/dist/client/schedules-client.d.ts +5 -0
- package/dist/client/schedules-client.d.ts.map +1 -1
- package/dist/client/schedules-client.js.map +1 -1
- package/dist/client/tool-extensions-client.d.ts +2 -2
- package/dist/client/tools-client.d.ts +9 -4
- package/dist/client/tools-client.d.ts.map +1 -1
- package/dist/client/tools-client.js +9 -4
- package/dist/client/tools-client.js.map +1 -1
- package/dist/generated/served-schemas.d.ts +67 -6
- package/dist/generated/served-schemas.d.ts.map +1 -1
- package/dist/generated/served-schemas.js +5 -5
- package/dist/generated/served-schemas.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas/backup.d.ts +2 -2
- package/dist/schemas/config.d.ts +5 -4
- package/dist/schemas/config.d.ts.map +1 -1
- package/dist/schemas/config.js +5 -4
- package/dist/schemas/config.js.map +1 -1
- package/dist/schemas/connectors.d.ts +8 -8
- package/dist/schemas/conversations.d.ts +34 -4
- package/dist/schemas/conversations.d.ts.map +1 -1
- package/dist/schemas/fleet.d.ts +6 -6
- package/dist/schemas/hooks.d.ts +16 -1
- package/dist/schemas/hooks.d.ts.map +1 -1
- package/dist/schemas/manifest-mcp.d.ts +2 -2
- package/dist/schemas/profiles.d.ts +2 -2
- package/dist/schemas/served.d.ts +66 -6
- package/dist/schemas/served.d.ts.map +1 -1
- package/dist/schemas/system-kinds.d.ts +3 -3
- package/dist/schemas/tools.d.ts +99 -0
- package/dist/schemas/tools.d.ts.map +1 -1
- package/dist/schemas/tools.js +41 -0
- package/dist/schemas/tools.js.map +1 -1
- package/dist/tool-runs.d.ts +50 -9
- package/dist/tool-runs.d.ts.map +1 -1
- package/dist/tool-runs.js +23 -7
- package/dist/tool-runs.js.map +1 -1
- package/package.json +1 -1
- package/src/client/channels-client.ts +1 -1
- package/src/client/schedules-client.ts +9 -0
- package/src/client/tools-client.ts +13 -4
- package/src/generated/served-schemas.ts +5 -5
- package/src/index.ts +7 -0
- package/src/schemas/config.ts +5 -4
- package/src/schemas/tools.ts +51 -0
- package/src/tool-runs.ts +29 -7
package/dist/schemas/served.d.ts
CHANGED
|
@@ -180,6 +180,11 @@ export type PresetBody = z.input<typeof presetBody>;
|
|
|
180
180
|
export declare const conversationRoute: z.ZodObject<{
|
|
181
181
|
callback_secret: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
182
182
|
callback_url: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
183
|
+
cancel_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
184
|
+
content: z.ZodOptional<z.ZodString>;
|
|
185
|
+
id: z.ZodOptional<z.ZodString>;
|
|
186
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
187
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
183
188
|
channel: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
184
189
|
door: z.ZodEnum<{
|
|
185
190
|
channel: "channel";
|
|
@@ -188,6 +193,11 @@ export declare const conversationRoute: z.ZodObject<{
|
|
|
188
193
|
error_reply_text: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
189
194
|
execution_key: z.ZodString;
|
|
190
195
|
execution_key_fingerprint: z.ZodString;
|
|
196
|
+
extras_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
197
|
+
content: z.ZodOptional<z.ZodString>;
|
|
198
|
+
id: z.ZodOptional<z.ZodString>;
|
|
199
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
200
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
191
201
|
initial_mode: z.ZodDefault<z.ZodEnum<{
|
|
192
202
|
agent: "agent";
|
|
193
203
|
manual: "manual";
|
|
@@ -205,17 +215,22 @@ export declare const conversationRoute: z.ZodObject<{
|
|
|
205
215
|
}>>;
|
|
206
216
|
settle_seconds: z.ZodDefault<z.ZodNumber>;
|
|
207
217
|
}, z.core.$strip>>;
|
|
208
|
-
|
|
218
|
+
reply_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
209
219
|
content: z.ZodOptional<z.ZodString>;
|
|
210
220
|
id: z.ZodOptional<z.ZodString>;
|
|
211
221
|
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
212
222
|
}, z.core.$strict>, z.ZodNull]>>;
|
|
213
|
-
|
|
223
|
+
resume_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
214
224
|
content: z.ZodOptional<z.ZodString>;
|
|
215
225
|
id: z.ZodOptional<z.ZodString>;
|
|
216
226
|
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
217
227
|
}, z.core.$strict>, z.ZodNull]>>;
|
|
218
228
|
route_name: z.ZodString;
|
|
229
|
+
start_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
230
|
+
content: z.ZodOptional<z.ZodString>;
|
|
231
|
+
id: z.ZodOptional<z.ZodString>;
|
|
232
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
233
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
219
234
|
target_kind: z.ZodEnum<{
|
|
220
235
|
tool: "tool";
|
|
221
236
|
agent: "agent";
|
|
@@ -226,6 +241,11 @@ export declare const conversationRoute: z.ZodObject<{
|
|
|
226
241
|
export type ConversationRoute = z.infer<typeof conversationRoute>;
|
|
227
242
|
export declare const conversationRouteCreate: z.ZodObject<{
|
|
228
243
|
callback_url: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
244
|
+
cancel_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
245
|
+
content: z.ZodOptional<z.ZodString>;
|
|
246
|
+
id: z.ZodOptional<z.ZodString>;
|
|
247
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
248
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
229
249
|
channel: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
230
250
|
door: z.ZodEnum<{
|
|
231
251
|
channel: "channel";
|
|
@@ -233,6 +253,11 @@ export declare const conversationRouteCreate: z.ZodObject<{
|
|
|
233
253
|
}>;
|
|
234
254
|
error_reply_text: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
235
255
|
execution_key: z.ZodString;
|
|
256
|
+
extras_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
257
|
+
content: z.ZodOptional<z.ZodString>;
|
|
258
|
+
id: z.ZodOptional<z.ZodString>;
|
|
259
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
260
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
236
261
|
initial_mode: z.ZodDefault<z.ZodEnum<{
|
|
237
262
|
agent: "agent";
|
|
238
263
|
manual: "manual";
|
|
@@ -250,17 +275,22 @@ export declare const conversationRouteCreate: z.ZodObject<{
|
|
|
250
275
|
}>>;
|
|
251
276
|
settle_seconds: z.ZodDefault<z.ZodNumber>;
|
|
252
277
|
}, z.core.$strip>>;
|
|
253
|
-
|
|
278
|
+
reply_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
254
279
|
content: z.ZodOptional<z.ZodString>;
|
|
255
280
|
id: z.ZodOptional<z.ZodString>;
|
|
256
281
|
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
257
282
|
}, z.core.$strict>, z.ZodNull]>>;
|
|
258
|
-
|
|
283
|
+
resume_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
259
284
|
content: z.ZodOptional<z.ZodString>;
|
|
260
285
|
id: z.ZodOptional<z.ZodString>;
|
|
261
286
|
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
262
287
|
}, z.core.$strict>, z.ZodNull]>>;
|
|
263
288
|
route_name: z.ZodString;
|
|
289
|
+
start_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
290
|
+
content: z.ZodOptional<z.ZodString>;
|
|
291
|
+
id: z.ZodOptional<z.ZodString>;
|
|
292
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
293
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
264
294
|
target_kind: z.ZodEnum<{
|
|
265
295
|
tool: "tool";
|
|
266
296
|
agent: "agent";
|
|
@@ -356,6 +386,11 @@ export declare const hookSubject: z.ZodObject<{
|
|
|
356
386
|
}, z.core.$strict>;
|
|
357
387
|
export type HookSubject = z.infer<typeof hookSubject>;
|
|
358
388
|
export declare const hookParams: z.ZodObject<{
|
|
389
|
+
cancel_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
390
|
+
content: z.ZodOptional<z.ZodString>;
|
|
391
|
+
id: z.ZodOptional<z.ZodString>;
|
|
392
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
393
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
359
394
|
condition: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
360
395
|
content: z.ZodOptional<z.ZodString>;
|
|
361
396
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -363,12 +398,22 @@ export declare const hookParams: z.ZodObject<{
|
|
|
363
398
|
}, z.core.$strict>, z.ZodNull]>>;
|
|
364
399
|
execution_key: z.ZodString;
|
|
365
400
|
execution_key_fingerprint: z.ZodString;
|
|
366
|
-
|
|
401
|
+
extras_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
367
402
|
content: z.ZodOptional<z.ZodString>;
|
|
368
403
|
id: z.ZodOptional<z.ZodString>;
|
|
369
404
|
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
370
405
|
}, z.core.$strict>, z.ZodNull]>>;
|
|
371
406
|
name: z.ZodString;
|
|
407
|
+
resume_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
408
|
+
content: z.ZodOptional<z.ZodString>;
|
|
409
|
+
id: z.ZodOptional<z.ZodString>;
|
|
410
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
411
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
412
|
+
start_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
413
|
+
content: z.ZodOptional<z.ZodString>;
|
|
414
|
+
id: z.ZodOptional<z.ZodString>;
|
|
415
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
416
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
372
417
|
state_binding: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
373
418
|
states: z.ZodArray<z.ZodObject<{
|
|
374
419
|
input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -431,18 +476,33 @@ export declare const hookParams: z.ZodObject<{
|
|
|
431
476
|
}, z.core.$strip>;
|
|
432
477
|
export type HookParams = z.infer<typeof hookParams>;
|
|
433
478
|
export declare const hookRegister: z.ZodObject<{
|
|
479
|
+
cancel_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
480
|
+
content: z.ZodOptional<z.ZodString>;
|
|
481
|
+
id: z.ZodOptional<z.ZodString>;
|
|
482
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
483
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
434
484
|
condition: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
435
485
|
content: z.ZodOptional<z.ZodString>;
|
|
436
486
|
id: z.ZodOptional<z.ZodString>;
|
|
437
487
|
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
438
488
|
}, z.core.$strict>, z.ZodNull]>>;
|
|
439
489
|
execution_key: z.ZodString;
|
|
440
|
-
|
|
490
|
+
extras_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
441
491
|
content: z.ZodOptional<z.ZodString>;
|
|
442
492
|
id: z.ZodOptional<z.ZodString>;
|
|
443
493
|
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
444
494
|
}, z.core.$strict>, z.ZodNull]>>;
|
|
445
495
|
name: z.ZodString;
|
|
496
|
+
resume_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
497
|
+
content: z.ZodOptional<z.ZodString>;
|
|
498
|
+
id: z.ZodOptional<z.ZodString>;
|
|
499
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
500
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
501
|
+
start_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
502
|
+
content: z.ZodOptional<z.ZodString>;
|
|
503
|
+
id: z.ZodOptional<z.ZodString>;
|
|
504
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
505
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
446
506
|
state_binding: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
447
507
|
states: z.ZodArray<z.ZodObject<{
|
|
448
508
|
input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"served.d.ts","sourceRoot":"","sources":["../../src/schemas/served.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAMzE,eAAO,MAAM,cAAc;;;;;;;;kBAA2B,CAAC;AACvD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC5D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;kBAAwB,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACtD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAwB,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACtD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAyB,CAAC;AACnD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,UAAU;;;;;;;;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AC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;kBAA6B,CAAC;AAC3D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAChE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAkC,CAAC;AACrE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;kBAA4B,CAAC;AACpD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACpD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;kBAAmC,CAAC;AAClE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAClE,eAAO,MAAM,oBAAoB;;;;;;;kBAAsC,CAAC;AACxE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACxE,eAAO,MAAM,UAAU;;;;;;;;iBAAyB,CAAC;AACjD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACpD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;iBAA2B,CAAC;AACjD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -44,10 +44,10 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
|
|
|
44
44
|
name: z.ZodString;
|
|
45
45
|
outcome: z.ZodEnum<{
|
|
46
46
|
failed: "failed";
|
|
47
|
+
applied: "applied";
|
|
47
48
|
resyncing: "resyncing";
|
|
48
49
|
recycling: "recycling";
|
|
49
50
|
stale: "stale";
|
|
50
|
-
applied: "applied";
|
|
51
51
|
missing: "missing";
|
|
52
52
|
departed: "departed";
|
|
53
53
|
timed_out: "timed_out";
|
|
@@ -66,10 +66,10 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
|
|
|
66
66
|
name: z.ZodString;
|
|
67
67
|
outcome: z.ZodEnum<{
|
|
68
68
|
failed: "failed";
|
|
69
|
+
applied: "applied";
|
|
69
70
|
resyncing: "resyncing";
|
|
70
71
|
recycling: "recycling";
|
|
71
72
|
stale: "stale";
|
|
72
|
-
applied: "applied";
|
|
73
73
|
missing: "missing";
|
|
74
74
|
departed: "departed";
|
|
75
75
|
timed_out: "timed_out";
|
|
@@ -104,10 +104,10 @@ export declare const mcpReloadResult: z.ZodObject<{
|
|
|
104
104
|
name: z.ZodString;
|
|
105
105
|
outcome: z.ZodEnum<{
|
|
106
106
|
failed: "failed";
|
|
107
|
+
applied: "applied";
|
|
107
108
|
resyncing: "resyncing";
|
|
108
109
|
recycling: "recycling";
|
|
109
110
|
stale: "stale";
|
|
110
|
-
applied: "applied";
|
|
111
111
|
missing: "missing";
|
|
112
112
|
departed: "departed";
|
|
113
113
|
timed_out: "timed_out";
|
package/dist/schemas/tools.d.ts
CHANGED
|
@@ -13,6 +13,105 @@ export declare const allToolSchemas: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
13
13
|
description: z.ZodNullable<z.ZodString>;
|
|
14
14
|
}, z.core.$strip>>;
|
|
15
15
|
export declare const runToolResult: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
16
|
+
/** The lifecycle status a parked interaction on a run's subject carries: a pending ask, an
|
|
17
|
+
* ask whose continuation is resuming, or a resolved run's waiting outcome (clean/failed). */
|
|
18
|
+
export declare const parkedStatus: z.ZodEnum<{
|
|
19
|
+
running: "running";
|
|
20
|
+
failed: "failed";
|
|
21
|
+
asking: "asking";
|
|
22
|
+
finished: "finished";
|
|
23
|
+
}>;
|
|
24
|
+
export type ParkedStatus = z.infer<typeof parkedStatus>;
|
|
25
|
+
/**
|
|
26
|
+
* One parked caller-ask entry a synchronous run-tool call returns when the tool asked its
|
|
27
|
+
* CALLER (`to="caller"`) and parked. The full contract entry carries more fields; the panel
|
|
28
|
+
* reads the display subset here and tolerates the rest. `question` is the prompt, `payload`
|
|
29
|
+
* the structured value the ask handed the caller, `asked_by` the run chain that raised it.
|
|
30
|
+
*/
|
|
31
|
+
export declare const parkedCallerAsk: z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
status: z.ZodEnum<{
|
|
34
|
+
running: "running";
|
|
35
|
+
failed: "failed";
|
|
36
|
+
asking: "asking";
|
|
37
|
+
finished: "finished";
|
|
38
|
+
}>;
|
|
39
|
+
to: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
40
|
+
user: "user";
|
|
41
|
+
caller: "caller";
|
|
42
|
+
}>>>;
|
|
43
|
+
question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
payload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
45
|
+
asked_by: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export type ParkedCallerAsk = z.infer<typeof parkedCallerAsk>;
|
|
48
|
+
/** A synchronous run whose tool parked CALLER asks returns this envelope in place of a result:
|
|
49
|
+
* the full caller-ask entries under `asks`. An empty `asks` means the run parked with no open
|
|
50
|
+
* caller ask (only user asks remain). */
|
|
51
|
+
export declare const callerAsksEnvelope: z.ZodObject<{
|
|
52
|
+
asks: z.ZodArray<z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
status: z.ZodEnum<{
|
|
55
|
+
running: "running";
|
|
56
|
+
failed: "failed";
|
|
57
|
+
asking: "asking";
|
|
58
|
+
finished: "finished";
|
|
59
|
+
}>;
|
|
60
|
+
to: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
61
|
+
user: "user";
|
|
62
|
+
caller: "caller";
|
|
63
|
+
}>>>;
|
|
64
|
+
question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
payload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
66
|
+
asked_by: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export type CallerAsksEnvelope = z.infer<typeof callerAsksEnvelope>;
|
|
70
|
+
/** The park receipt a synchronous run returns when its tool parked only USER asks: the
|
|
71
|
+
* suspension sentinel's ids, with no caller ask for the panel to act on. */
|
|
72
|
+
export declare const suspendedRunReceipt: z.ZodObject<{
|
|
73
|
+
interaction_id: z.ZodString;
|
|
74
|
+
interaction_ids: z.ZodArray<z.ZodString>;
|
|
75
|
+
caller_interaction_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export type SuspendedRunReceipt = z.infer<typeof suspendedRunReceipt>;
|
|
78
|
+
/** What one resume / take / cancel of a parked interaction did, as `resume_parked` /
|
|
79
|
+
* `cancel_parked` return it through run-tool. `kind` picks the payload: `result` (a final
|
|
80
|
+
* value in `result`), `asks` (new caller asks in `asks`), `parked` (only user asks remain),
|
|
81
|
+
* or `none` (nothing ran). `action` names the single non-cancel action taken. */
|
|
82
|
+
export declare const visitOutcome: z.ZodObject<{
|
|
83
|
+
action: z.ZodEnum<{
|
|
84
|
+
none: "none";
|
|
85
|
+
resumed: "resumed";
|
|
86
|
+
taken: "taken";
|
|
87
|
+
started: "started";
|
|
88
|
+
}>;
|
|
89
|
+
cancelled: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
90
|
+
kind: z.ZodEnum<{
|
|
91
|
+
result: "result";
|
|
92
|
+
none: "none";
|
|
93
|
+
asks: "asks";
|
|
94
|
+
parked: "parked";
|
|
95
|
+
}>;
|
|
96
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
97
|
+
asks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
98
|
+
id: z.ZodString;
|
|
99
|
+
status: z.ZodEnum<{
|
|
100
|
+
running: "running";
|
|
101
|
+
failed: "failed";
|
|
102
|
+
asking: "asking";
|
|
103
|
+
finished: "finished";
|
|
104
|
+
}>;
|
|
105
|
+
to: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
106
|
+
user: "user";
|
|
107
|
+
caller: "caller";
|
|
108
|
+
}>>>;
|
|
109
|
+
question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
payload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
111
|
+
asked_by: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
112
|
+
}, z.core.$strip>>>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
export type VisitOutcome = z.infer<typeof visitOutcome>;
|
|
16
115
|
/**
|
|
17
116
|
* The MEDIA content shape a direct tool run may return — fastmcp's serialized
|
|
18
117
|
* `Image`/`Audio` MediaBlock (`{ type, data: <base64>, mimeType }`). One recognised
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/schemas/tools.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,SAAS,yBAAsB,CAAC;AAE7C,eAAO,MAAM,UAAU;;;;iBAIrB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,eAAO,MAAM,cAAc;;;;kBAAmC,CAAC;AAE/D,eAAO,MAAM,aAAa,yEAAY,CAAC;AAEvC;;;;;;;;;;GAU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GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;;iFAGiF;AACjF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe;;;;;;;iBASxB,CAAC;AACL,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY;;;;;iBAKvB,CAAC;AACH,eAAO,MAAM,QAAQ;;;;;kBAAwB,CAAC;AAC9C,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
package/dist/schemas/tools.js
CHANGED
|
@@ -9,6 +9,47 @@ export const toolSchema = z.object({
|
|
|
9
9
|
});
|
|
10
10
|
export const allToolSchemas = z.record(z.string(), toolSchema);
|
|
11
11
|
export const runToolResult = jsonValue;
|
|
12
|
+
/** The lifecycle status a parked interaction on a run's subject carries: a pending ask, an
|
|
13
|
+
* ask whose continuation is resuming, or a resolved run's waiting outcome (clean/failed). */
|
|
14
|
+
export const parkedStatus = z.enum(['asking', 'running', 'finished', 'failed']);
|
|
15
|
+
/**
|
|
16
|
+
* One parked caller-ask entry a synchronous run-tool call returns when the tool asked its
|
|
17
|
+
* CALLER (`to="caller"`) and parked. The full contract entry carries more fields; the panel
|
|
18
|
+
* reads the display subset here and tolerates the rest. `question` is the prompt, `payload`
|
|
19
|
+
* the structured value the ask handed the caller, `asked_by` the run chain that raised it.
|
|
20
|
+
*/
|
|
21
|
+
export const parkedCallerAsk = z.object({
|
|
22
|
+
id: z.string(),
|
|
23
|
+
status: parkedStatus,
|
|
24
|
+
to: z.enum(['user', 'caller']).nullish(),
|
|
25
|
+
question: z.string().nullish(),
|
|
26
|
+
payload: z.record(z.string(), z.unknown()).nullish(),
|
|
27
|
+
asked_by: z.array(z.string()).nullish(),
|
|
28
|
+
});
|
|
29
|
+
/** A synchronous run whose tool parked CALLER asks returns this envelope in place of a result:
|
|
30
|
+
* the full caller-ask entries under `asks`. An empty `asks` means the run parked with no open
|
|
31
|
+
* caller ask (only user asks remain). */
|
|
32
|
+
export const callerAsksEnvelope = z.object({
|
|
33
|
+
asks: z.array(parkedCallerAsk),
|
|
34
|
+
});
|
|
35
|
+
/** The park receipt a synchronous run returns when its tool parked only USER asks: the
|
|
36
|
+
* suspension sentinel's ids, with no caller ask for the panel to act on. */
|
|
37
|
+
export const suspendedRunReceipt = z.object({
|
|
38
|
+
interaction_id: z.string(),
|
|
39
|
+
interaction_ids: z.array(z.string()),
|
|
40
|
+
caller_interaction_ids: z.array(z.string()).default([]),
|
|
41
|
+
});
|
|
42
|
+
/** What one resume / take / cancel of a parked interaction did, as `resume_parked` /
|
|
43
|
+
* `cancel_parked` return it through run-tool. `kind` picks the payload: `result` (a final
|
|
44
|
+
* value in `result`), `asks` (new caller asks in `asks`), `parked` (only user asks remain),
|
|
45
|
+
* or `none` (nothing ran). `action` names the single non-cancel action taken. */
|
|
46
|
+
export const visitOutcome = z.object({
|
|
47
|
+
action: z.enum(['resumed', 'taken', 'started', 'none']),
|
|
48
|
+
cancelled: z.array(z.string()).default([]),
|
|
49
|
+
kind: z.enum(['result', 'asks', 'parked', 'none']),
|
|
50
|
+
result: z.unknown().optional(),
|
|
51
|
+
asks: z.array(parkedCallerAsk).default([]),
|
|
52
|
+
});
|
|
12
53
|
/**
|
|
13
54
|
* The MEDIA content shape a direct tool run may return — fastmcp's serialized
|
|
14
55
|
* `Image`/`Audio` MediaBlock (`{ type, data: <base64>, mimeType }`). One recognised
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/schemas/tools.ts"],"names":[],"mappings":"AAAA,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EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC3C,CAAC,CAAC;AAGH;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC;KACD,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,CAAC,EAAE;IAC9D,OAAO,EAAE,iFAAiF;IAC1F,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC,CAAC;AAGL;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC3B,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC"}
|
package/dist/tool-runs.d.ts
CHANGED
|
@@ -9,38 +9,45 @@
|
|
|
9
9
|
*
|
|
10
10
|
* The background surface detaches a run from its HTTP request: submit returns a
|
|
11
11
|
* `run_id` immediately (202), then the caller POLLS the single-run GET until the
|
|
12
|
-
* status is terminal (`succeeded | failed | lost`). The list GET returns
|
|
13
|
-
* recent runs for one tool — id/status/timestamps only, never `result`/`error`.
|
|
12
|
+
* status is terminal (`succeeded | failed | lost | parked`). The list GET returns
|
|
13
|
+
* the recent runs for one tool — id/status/timestamps only, never `result`/`error`.
|
|
14
14
|
*/
|
|
15
15
|
import { z } from 'zod';
|
|
16
16
|
import type { ApiConfig } from './http';
|
|
17
|
+
import type { StateSubject } from './schemas/states';
|
|
17
18
|
/** A run's lifecycle state. `lost` = the server restarted mid-run; the result is
|
|
18
|
-
* unrecoverable. `
|
|
19
|
+
* unrecoverable. `parked` = the run's tool async-parked; its `result` is the park
|
|
20
|
+
* answer (see {@link toolRunParkAnswer}). `running` is the only non-terminal state. */
|
|
19
21
|
export declare const toolRunStatus: z.ZodEnum<{
|
|
20
22
|
running: "running";
|
|
21
|
-
succeeded: "succeeded";
|
|
22
23
|
failed: "failed";
|
|
24
|
+
parked: "parked";
|
|
25
|
+
succeeded: "succeeded";
|
|
23
26
|
lost: "lost";
|
|
24
27
|
}>;
|
|
25
28
|
/** `POST /api/tool-runs` → the handle for the detached run. */
|
|
26
29
|
export declare const toolRunSubmitResult: z.ZodObject<{
|
|
27
30
|
run_id: z.ZodString;
|
|
28
31
|
}, z.core.$strip>;
|
|
29
|
-
/** `GET /api/tool-runs/{run_id}` → the full record. `result` is arbitrary JSON
|
|
30
|
-
*
|
|
32
|
+
/** `GET /api/tool-runs/{run_id}` → the full record. `result` is arbitrary JSON: the
|
|
33
|
+
* tool's own value on `succeeded`, the park answer ({@link toolRunParkAnswer}) on
|
|
34
|
+
* `parked`. `error` is present only on `failed`. `resumed_interactions` is the parked
|
|
35
|
+
* interaction ids the run resumed or took while it executed (`[]` when it resumed none). */
|
|
31
36
|
export declare const toolRunRecord: z.ZodObject<{
|
|
32
37
|
run_id: z.ZodString;
|
|
33
38
|
tool_name: z.ZodString;
|
|
34
39
|
status: z.ZodEnum<{
|
|
35
40
|
running: "running";
|
|
36
|
-
succeeded: "succeeded";
|
|
37
41
|
failed: "failed";
|
|
42
|
+
parked: "parked";
|
|
43
|
+
succeeded: "succeeded";
|
|
38
44
|
lost: "lost";
|
|
39
45
|
}>;
|
|
40
46
|
started_at: z.ZodString;
|
|
41
47
|
finished_at: z.ZodOptional<z.ZodString>;
|
|
42
48
|
result: z.ZodOptional<z.ZodUnknown>;
|
|
43
49
|
error: z.ZodOptional<z.ZodString>;
|
|
50
|
+
resumed_interactions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
51
|
}, z.core.$strip>;
|
|
45
52
|
/** One entry of `GET /api/tool-runs?tool_name=...` — id/status/timestamps only,
|
|
46
53
|
* deliberately carrying NO `result`/`error` (the list is not secret-bearing). */
|
|
@@ -49,8 +56,9 @@ export declare const toolRunListItem: z.ZodObject<{
|
|
|
49
56
|
tool_name: z.ZodString;
|
|
50
57
|
status: z.ZodEnum<{
|
|
51
58
|
running: "running";
|
|
52
|
-
succeeded: "succeeded";
|
|
53
59
|
failed: "failed";
|
|
60
|
+
parked: "parked";
|
|
61
|
+
succeeded: "succeeded";
|
|
54
62
|
lost: "lost";
|
|
55
63
|
}>;
|
|
56
64
|
started_at: z.ZodString;
|
|
@@ -61,14 +69,44 @@ export declare const toolRunList: z.ZodArray<z.ZodObject<{
|
|
|
61
69
|
tool_name: z.ZodString;
|
|
62
70
|
status: z.ZodEnum<{
|
|
63
71
|
running: "running";
|
|
64
|
-
succeeded: "succeeded";
|
|
65
72
|
failed: "failed";
|
|
73
|
+
parked: "parked";
|
|
74
|
+
succeeded: "succeeded";
|
|
66
75
|
lost: "lost";
|
|
67
76
|
}>;
|
|
68
77
|
started_at: z.ZodString;
|
|
69
78
|
finished_at: z.ZodOptional<z.ZodString>;
|
|
70
79
|
}, z.core.$strip>>;
|
|
80
|
+
/**
|
|
81
|
+
* The `result` a `parked` record carries — the SAME park answer the synchronous run-tool
|
|
82
|
+
* door returns: either the caller-ask envelope `{asks: [...]}` (the tool asked its CALLER
|
|
83
|
+
* and parked) or the suspension receipt (the run parked only USER asks, ids only). A poller
|
|
84
|
+
* reads it to tell a caller-ask park from a user-only one, exactly as the sync door's caller does.
|
|
85
|
+
*/
|
|
86
|
+
export declare const toolRunParkAnswer: z.ZodUnion<readonly [z.ZodObject<{
|
|
87
|
+
asks: z.ZodArray<z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
status: z.ZodEnum<{
|
|
90
|
+
running: "running";
|
|
91
|
+
failed: "failed";
|
|
92
|
+
asking: "asking";
|
|
93
|
+
finished: "finished";
|
|
94
|
+
}>;
|
|
95
|
+
to: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
96
|
+
user: "user";
|
|
97
|
+
caller: "caller";
|
|
98
|
+
}>>>;
|
|
99
|
+
question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
payload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
101
|
+
asked_by: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
interaction_id: z.ZodString;
|
|
105
|
+
interaction_ids: z.ZodArray<z.ZodString>;
|
|
106
|
+
caller_interaction_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
107
|
+
}, z.core.$strip>]>;
|
|
71
108
|
export type ToolRunStatus = z.infer<typeof toolRunStatus>;
|
|
109
|
+
export type ToolRunParkAnswer = z.infer<typeof toolRunParkAnswer>;
|
|
72
110
|
export type ToolRunSubmitResult = z.infer<typeof toolRunSubmitResult>;
|
|
73
111
|
export type ToolRunRecord = z.infer<typeof toolRunRecord>;
|
|
74
112
|
export type ToolRunListItem = z.infer<typeof toolRunListItem>;
|
|
@@ -76,6 +114,9 @@ export type ToolRunListItem = z.infer<typeof toolRunListItem>;
|
|
|
76
114
|
export interface SubmitToolRunArgs {
|
|
77
115
|
readonly tool_name: string;
|
|
78
116
|
readonly arguments?: Record<string, unknown>;
|
|
117
|
+
/** The addressed subject an async park of the detached run indexes under. Omitted
|
|
118
|
+
* from the request body when unset. */
|
|
119
|
+
readonly subject?: StateSubject;
|
|
79
120
|
}
|
|
80
121
|
/** Submit a tool for detached background execution; resolves with its `run_id`. */
|
|
81
122
|
export declare function submitToolRun(config: ApiConfig, args: SubmitToolRunArgs, signal?: AbortSignal): Promise<ToolRunSubmitResult>;
|
package/dist/tool-runs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-runs.d.ts","sourceRoot":"","sources":["../src/tool-runs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-runs.d.ts","sourceRoot":"","sources":["../src/tool-runs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD;;uFAEuF;AACvF,eAAO,MAAM,aAAa;;;;;;EAA+D,CAAC;AAE1F,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB;;iBAE9B,CAAC;AAEH;;;4FAG4F;AAC5F,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;iBASxB,CAAC;AAEH;iFACiF;AACjF,eAAO,MAAM,eAAe;;;;;;;;;;;;iBAM1B,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;kBAA2B,CAAC;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;mBAAqD,CAAC;AAEpF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAClE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,sCAAsC;AACtC,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7C;2CACuC;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC;CACjC;AAED,mFAAmF;AACnF,wBAAgB,aAAa,CAC3B,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,iBAAiB,EACvB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,mBAAmB,CAAC,CAU9B;AAED,kEAAkE;AAClE,wBAAgB,UAAU,CACxB,MAAM,EAAE,SAAS,EACjB,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,aAAa,CAAC,CAIxB;AAED,mEAAmE;AACnE,wBAAgB,YAAY,CAC1B,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,eAAe,EAAE,CAAC,CAK5B;AAED,uEAAuE;AACvE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAElE"}
|
package/dist/tool-runs.js
CHANGED
|
@@ -9,20 +9,24 @@
|
|
|
9
9
|
*
|
|
10
10
|
* The background surface detaches a run from its HTTP request: submit returns a
|
|
11
11
|
* `run_id` immediately (202), then the caller POLLS the single-run GET until the
|
|
12
|
-
* status is terminal (`succeeded | failed | lost`). The list GET returns
|
|
13
|
-
* recent runs for one tool — id/status/timestamps only, never `result`/`error`.
|
|
12
|
+
* status is terminal (`succeeded | failed | lost | parked`). The list GET returns
|
|
13
|
+
* the recent runs for one tool — id/status/timestamps only, never `result`/`error`.
|
|
14
14
|
*/
|
|
15
15
|
import { z } from 'zod';
|
|
16
16
|
import { apiRequest, encodeSegment } from './http';
|
|
17
|
+
import { callerAsksEnvelope, suspendedRunReceipt } from './schemas/tools';
|
|
17
18
|
/** A run's lifecycle state. `lost` = the server restarted mid-run; the result is
|
|
18
|
-
* unrecoverable. `
|
|
19
|
-
|
|
19
|
+
* unrecoverable. `parked` = the run's tool async-parked; its `result` is the park
|
|
20
|
+
* answer (see {@link toolRunParkAnswer}). `running` is the only non-terminal state. */
|
|
21
|
+
export const toolRunStatus = z.enum(['running', 'succeeded', 'failed', 'lost', 'parked']);
|
|
20
22
|
/** `POST /api/tool-runs` → the handle for the detached run. */
|
|
21
23
|
export const toolRunSubmitResult = z.object({
|
|
22
24
|
run_id: z.string(),
|
|
23
25
|
});
|
|
24
|
-
/** `GET /api/tool-runs/{run_id}` → the full record. `result` is arbitrary JSON
|
|
25
|
-
*
|
|
26
|
+
/** `GET /api/tool-runs/{run_id}` → the full record. `result` is arbitrary JSON: the
|
|
27
|
+
* tool's own value on `succeeded`, the park answer ({@link toolRunParkAnswer}) on
|
|
28
|
+
* `parked`. `error` is present only on `failed`. `resumed_interactions` is the parked
|
|
29
|
+
* interaction ids the run resumed or took while it executed (`[]` when it resumed none). */
|
|
26
30
|
export const toolRunRecord = z.object({
|
|
27
31
|
run_id: z.string(),
|
|
28
32
|
tool_name: z.string(),
|
|
@@ -31,6 +35,7 @@ export const toolRunRecord = z.object({
|
|
|
31
35
|
finished_at: z.string().optional(),
|
|
32
36
|
result: z.unknown().optional(),
|
|
33
37
|
error: z.string().optional(),
|
|
38
|
+
resumed_interactions: z.array(z.string()).optional(),
|
|
34
39
|
});
|
|
35
40
|
/** One entry of `GET /api/tool-runs?tool_name=...` — id/status/timestamps only,
|
|
36
41
|
* deliberately carrying NO `result`/`error` (the list is not secret-bearing). */
|
|
@@ -42,11 +47,22 @@ export const toolRunListItem = z.object({
|
|
|
42
47
|
finished_at: z.string().optional(),
|
|
43
48
|
});
|
|
44
49
|
export const toolRunList = z.array(toolRunListItem);
|
|
50
|
+
/**
|
|
51
|
+
* The `result` a `parked` record carries — the SAME park answer the synchronous run-tool
|
|
52
|
+
* door returns: either the caller-ask envelope `{asks: [...]}` (the tool asked its CALLER
|
|
53
|
+
* and parked) or the suspension receipt (the run parked only USER asks, ids only). A poller
|
|
54
|
+
* reads it to tell a caller-ask park from a user-only one, exactly as the sync door's caller does.
|
|
55
|
+
*/
|
|
56
|
+
export const toolRunParkAnswer = z.union([callerAsksEnvelope, suspendedRunReceipt]);
|
|
45
57
|
/** Submit a tool for detached background execution; resolves with its `run_id`. */
|
|
46
58
|
export function submitToolRun(config, args, signal) {
|
|
47
59
|
return apiRequest(config, '/api/tool-runs', toolRunSubmitResult, {
|
|
48
60
|
method: 'POST',
|
|
49
|
-
body: {
|
|
61
|
+
body: {
|
|
62
|
+
tool_name: args.tool_name,
|
|
63
|
+
arguments: args.arguments ?? {},
|
|
64
|
+
...(args.subject !== undefined ? { subject: args.subject } : {}),
|
|
65
|
+
},
|
|
50
66
|
signal,
|
|
51
67
|
});
|
|
52
68
|
}
|
package/dist/tool-runs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-runs.js","sourceRoot":"","sources":["../src/tool-runs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEnD;
|
|
1
|
+
{"version":3,"file":"tool-runs.js","sourceRoot":"","sources":["../src/tool-run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AAuE;AACvE,MAAM,UAAU,mBAAmB,CAAC,MAAqB;IACvD,OAAO,MAAM,KAAK,SAAS,CAAC;AAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import type { Transport } from './transport';
|
|
|
5
5
|
export function channelsClient(t: Transport) {
|
|
6
6
|
const { req } = t;
|
|
7
7
|
return {
|
|
8
|
-
// The installed channel-plugin names (delivery media for
|
|
8
|
+
// The installed channel-plugin names (delivery media for ask questions).
|
|
9
9
|
listChannels: (signal?: AbortSignal) => req('/api/channels', s.channels, { signal }),
|
|
10
10
|
};
|
|
11
11
|
}
|
|
@@ -13,8 +13,17 @@ export function schedulesClient(t: Transport) {
|
|
|
13
13
|
tool_name: string;
|
|
14
14
|
tool_kwargs: Record<string, unknown>;
|
|
15
15
|
schedule_kwargs: Record<string, unknown>;
|
|
16
|
+
// The api-key user_id a contract-bearing recurring fire runs as; required with any door jq.
|
|
17
|
+
execution_key?: string | null;
|
|
16
18
|
// The optional door-layer state binding applied around every fire of this schedule.
|
|
17
19
|
state_binding?: s.StateBinding | null;
|
|
20
|
+
// The optional door-contract jqs a parkable-driving schedule carries: start_expr
|
|
21
|
+
// builds the fired tool's kwargs, cancel/resume act on parked interactions, extras
|
|
22
|
+
// builds the started run's extras.
|
|
23
|
+
start_expr?: s.TemplatedText | null;
|
|
24
|
+
cancel_expr?: s.TemplatedText | null;
|
|
25
|
+
resume_expr?: s.TemplatedText | null;
|
|
26
|
+
extras_expr?: s.TemplatedText | null;
|
|
18
27
|
}) => req('/api/schedules', s.jsonValue, { method: 'POST', body }),
|
|
19
28
|
deleteSchedule: (name: string) =>
|
|
20
29
|
req(`/api/schedules/${encodeSegment(name)}`, s.jsonValue, { method: 'DELETE' }),
|