@linkshell/gateway 0.6.2 → 0.6.4
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/gateway/tsconfig.tsbuildinfo +1 -1
- package/dist/wire/src/computer-preview.d.ts +35 -0
- package/dist/wire/src/computer-preview.js +51 -0
- package/dist/wire/src/computer-preview.js.map +1 -0
- package/dist/wire/src/goal.d.ts +66 -0
- package/dist/wire/src/goal.js +19 -0
- package/dist/wire/src/goal.js.map +1 -0
- package/dist/wire/src/index.d.ts +3 -0
- package/dist/wire/src/index.js +3 -0
- package/dist/wire/src/index.js.map +1 -1
- package/dist/wire/src/model.d.ts +300 -30
- package/dist/wire/src/model.js +37 -0
- package/dist/wire/src/model.js.map +1 -1
- package/dist/wire/src/relay.d.ts +4 -4
- package/dist/wire/src/rpc.d.ts +3932 -430
- package/dist/wire/src/rpc.js +41 -1
- package/dist/wire/src/rpc.js.map +1 -1
- package/dist/wire/src/updates.d.ts +1739 -120
- package/dist/wire/src/updates.js +16 -1
- package/dist/wire/src/updates.js.map +1 -1
- package/dist/wire/src/workflow.d.ts +187 -0
- package/dist/wire/src/workflow.js +35 -0
- package/dist/wire/src/workflow.js.map +1 -0
- package/package.json +2 -2
|
@@ -198,18 +198,205 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
198
198
|
/** The sub-agent's role or type, e.g. "Explore". */
|
|
199
199
|
agentType: z.ZodOptional<z.ZodString>;
|
|
200
200
|
model: z.ZodOptional<z.ZodString>;
|
|
201
|
+
/** Agent outcome when a tool's coarse completed/failed state is insufficient. */
|
|
202
|
+
state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
|
|
203
|
+
/** A Claude workflow is a background run containing its own agents. Counts are observed, not a predicted total. */
|
|
204
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
206
|
+
name: z.ZodOptional<z.ZodString>;
|
|
207
|
+
state: z.ZodOptional<z.ZodEnum<["running", "paused", "completed", "failed", "stopped"]>>;
|
|
208
|
+
started: z.ZodOptional<z.ZodNumber>;
|
|
209
|
+
completed: z.ZodOptional<z.ZodNumber>;
|
|
210
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
211
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
212
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
213
|
+
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
214
|
+
phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
215
|
+
id: z.ZodString;
|
|
216
|
+
title: z.ZodString;
|
|
217
|
+
order: z.ZodNumber;
|
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
id: string;
|
|
220
|
+
title: string;
|
|
221
|
+
order: number;
|
|
222
|
+
}, {
|
|
223
|
+
id: string;
|
|
224
|
+
title: string;
|
|
225
|
+
order: number;
|
|
226
|
+
}>, "many">>;
|
|
227
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
228
|
+
id: z.ZodString;
|
|
229
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
230
|
+
title: z.ZodString;
|
|
231
|
+
state: z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>;
|
|
232
|
+
phaseId: z.ZodOptional<z.ZodString>;
|
|
233
|
+
model: z.ZodOptional<z.ZodString>;
|
|
234
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
toolCalls: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
237
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
238
|
+
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
239
|
+
result: z.ZodOptional<z.ZodString>;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
id: string;
|
|
242
|
+
title: string;
|
|
243
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
244
|
+
toolCallId?: string | undefined;
|
|
245
|
+
phaseId?: string | undefined;
|
|
246
|
+
model?: string | undefined;
|
|
247
|
+
tokens?: number | undefined;
|
|
248
|
+
toolCalls?: number | undefined;
|
|
249
|
+
durationMs?: number | undefined;
|
|
250
|
+
startedAt?: number | undefined;
|
|
251
|
+
endedAt?: number | undefined;
|
|
252
|
+
result?: string | undefined;
|
|
253
|
+
}, {
|
|
254
|
+
id: string;
|
|
255
|
+
title: string;
|
|
256
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
257
|
+
toolCallId?: string | undefined;
|
|
258
|
+
phaseId?: string | undefined;
|
|
259
|
+
model?: string | undefined;
|
|
260
|
+
tokens?: number | undefined;
|
|
261
|
+
toolCalls?: number | undefined;
|
|
262
|
+
durationMs?: number | undefined;
|
|
263
|
+
startedAt?: number | undefined;
|
|
264
|
+
endedAt?: number | undefined;
|
|
265
|
+
result?: string | undefined;
|
|
266
|
+
}>, "many">>;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
completed?: number | undefined;
|
|
269
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
270
|
+
tokens?: number | undefined;
|
|
271
|
+
durationMs?: number | undefined;
|
|
272
|
+
startedAt?: number | undefined;
|
|
273
|
+
endedAt?: number | undefined;
|
|
274
|
+
runId?: string | undefined;
|
|
275
|
+
name?: string | undefined;
|
|
276
|
+
started?: number | undefined;
|
|
277
|
+
phases?: {
|
|
278
|
+
id: string;
|
|
279
|
+
title: string;
|
|
280
|
+
order: number;
|
|
281
|
+
}[] | undefined;
|
|
282
|
+
agents?: {
|
|
283
|
+
id: string;
|
|
284
|
+
title: string;
|
|
285
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
286
|
+
toolCallId?: string | undefined;
|
|
287
|
+
phaseId?: string | undefined;
|
|
288
|
+
model?: string | undefined;
|
|
289
|
+
tokens?: number | undefined;
|
|
290
|
+
toolCalls?: number | undefined;
|
|
291
|
+
durationMs?: number | undefined;
|
|
292
|
+
startedAt?: number | undefined;
|
|
293
|
+
endedAt?: number | undefined;
|
|
294
|
+
result?: string | undefined;
|
|
295
|
+
}[] | undefined;
|
|
296
|
+
}, {
|
|
297
|
+
completed?: number | undefined;
|
|
298
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
299
|
+
tokens?: number | undefined;
|
|
300
|
+
durationMs?: number | undefined;
|
|
301
|
+
startedAt?: number | undefined;
|
|
302
|
+
endedAt?: number | undefined;
|
|
303
|
+
runId?: string | undefined;
|
|
304
|
+
name?: string | undefined;
|
|
305
|
+
started?: number | undefined;
|
|
306
|
+
phases?: {
|
|
307
|
+
id: string;
|
|
308
|
+
title: string;
|
|
309
|
+
order: number;
|
|
310
|
+
}[] | undefined;
|
|
311
|
+
agents?: {
|
|
312
|
+
id: string;
|
|
313
|
+
title: string;
|
|
314
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
315
|
+
toolCallId?: string | undefined;
|
|
316
|
+
phaseId?: string | undefined;
|
|
317
|
+
model?: string | undefined;
|
|
318
|
+
tokens?: number | undefined;
|
|
319
|
+
toolCalls?: number | undefined;
|
|
320
|
+
durationMs?: number | undefined;
|
|
321
|
+
startedAt?: number | undefined;
|
|
322
|
+
endedAt?: number | undefined;
|
|
323
|
+
result?: string | undefined;
|
|
324
|
+
}[] | undefined;
|
|
325
|
+
}>>;
|
|
201
326
|
}, "strip", z.ZodTypeAny, {
|
|
202
327
|
type: "subagent";
|
|
203
|
-
action: "message" | "
|
|
328
|
+
action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
|
|
329
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
330
|
+
model?: string | undefined;
|
|
204
331
|
task?: string | undefined;
|
|
205
332
|
agentType?: string | undefined;
|
|
206
|
-
|
|
333
|
+
workflow?: {
|
|
334
|
+
completed?: number | undefined;
|
|
335
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
336
|
+
tokens?: number | undefined;
|
|
337
|
+
durationMs?: number | undefined;
|
|
338
|
+
startedAt?: number | undefined;
|
|
339
|
+
endedAt?: number | undefined;
|
|
340
|
+
runId?: string | undefined;
|
|
341
|
+
name?: string | undefined;
|
|
342
|
+
started?: number | undefined;
|
|
343
|
+
phases?: {
|
|
344
|
+
id: string;
|
|
345
|
+
title: string;
|
|
346
|
+
order: number;
|
|
347
|
+
}[] | undefined;
|
|
348
|
+
agents?: {
|
|
349
|
+
id: string;
|
|
350
|
+
title: string;
|
|
351
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
352
|
+
toolCallId?: string | undefined;
|
|
353
|
+
phaseId?: string | undefined;
|
|
354
|
+
model?: string | undefined;
|
|
355
|
+
tokens?: number | undefined;
|
|
356
|
+
toolCalls?: number | undefined;
|
|
357
|
+
durationMs?: number | undefined;
|
|
358
|
+
startedAt?: number | undefined;
|
|
359
|
+
endedAt?: number | undefined;
|
|
360
|
+
result?: string | undefined;
|
|
361
|
+
}[] | undefined;
|
|
362
|
+
} | undefined;
|
|
207
363
|
}, {
|
|
208
364
|
type: "subagent";
|
|
365
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
366
|
+
model?: string | undefined;
|
|
209
367
|
task?: string | undefined;
|
|
210
368
|
agentType?: string | undefined;
|
|
211
|
-
|
|
212
|
-
|
|
369
|
+
workflow?: {
|
|
370
|
+
completed?: number | undefined;
|
|
371
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
372
|
+
tokens?: number | undefined;
|
|
373
|
+
durationMs?: number | undefined;
|
|
374
|
+
startedAt?: number | undefined;
|
|
375
|
+
endedAt?: number | undefined;
|
|
376
|
+
runId?: string | undefined;
|
|
377
|
+
name?: string | undefined;
|
|
378
|
+
started?: number | undefined;
|
|
379
|
+
phases?: {
|
|
380
|
+
id: string;
|
|
381
|
+
title: string;
|
|
382
|
+
order: number;
|
|
383
|
+
}[] | undefined;
|
|
384
|
+
agents?: {
|
|
385
|
+
id: string;
|
|
386
|
+
title: string;
|
|
387
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
388
|
+
toolCallId?: string | undefined;
|
|
389
|
+
phaseId?: string | undefined;
|
|
390
|
+
model?: string | undefined;
|
|
391
|
+
tokens?: number | undefined;
|
|
392
|
+
toolCalls?: number | undefined;
|
|
393
|
+
durationMs?: number | undefined;
|
|
394
|
+
startedAt?: number | undefined;
|
|
395
|
+
endedAt?: number | undefined;
|
|
396
|
+
result?: string | undefined;
|
|
397
|
+
}[] | undefined;
|
|
398
|
+
} | undefined;
|
|
399
|
+
action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
|
|
213
400
|
}>, z.ZodObject<{
|
|
214
401
|
type: z.ZodLiteral<"skill">;
|
|
215
402
|
name: z.ZodString;
|
|
@@ -274,11 +461,11 @@ export declare const planEntrySchema: z.ZodObject<{
|
|
|
274
461
|
priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
|
|
275
462
|
status: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
276
463
|
}, "strip", z.ZodTypeAny, {
|
|
277
|
-
status: "
|
|
464
|
+
status: "completed" | "pending" | "in_progress";
|
|
278
465
|
content: string;
|
|
279
466
|
priority: "high" | "medium" | "low";
|
|
280
467
|
}, {
|
|
281
|
-
status: "
|
|
468
|
+
status: "completed" | "pending" | "in_progress";
|
|
282
469
|
content: string;
|
|
283
470
|
priority?: "high" | "medium" | "low" | undefined;
|
|
284
471
|
}>;
|
|
@@ -312,7 +499,7 @@ export declare const sessionConfigOptionSchema: z.ZodObject<{
|
|
|
312
499
|
}[];
|
|
313
500
|
id: string;
|
|
314
501
|
name: string;
|
|
315
|
-
category: "
|
|
502
|
+
category: "model" | "other" | "mode" | "effort";
|
|
316
503
|
current: string;
|
|
317
504
|
}, {
|
|
318
505
|
values: {
|
|
@@ -323,7 +510,7 @@ export declare const sessionConfigOptionSchema: z.ZodObject<{
|
|
|
323
510
|
id: string;
|
|
324
511
|
name: string;
|
|
325
512
|
current: string;
|
|
326
|
-
category?: "
|
|
513
|
+
category?: "model" | "other" | "mode" | "effort" | undefined;
|
|
327
514
|
}>;
|
|
328
515
|
export type SessionConfigOption = z.infer<typeof sessionConfigOptionSchema>;
|
|
329
516
|
export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate", [z.ZodObject<{
|
|
@@ -723,18 +910,205 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
723
910
|
/** The sub-agent's role or type, e.g. "Explore". */
|
|
724
911
|
agentType: z.ZodOptional<z.ZodString>;
|
|
725
912
|
model: z.ZodOptional<z.ZodString>;
|
|
913
|
+
/** Agent outcome when a tool's coarse completed/failed state is insufficient. */
|
|
914
|
+
state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
|
|
915
|
+
/** A Claude workflow is a background run containing its own agents. Counts are observed, not a predicted total. */
|
|
916
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
917
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
918
|
+
name: z.ZodOptional<z.ZodString>;
|
|
919
|
+
state: z.ZodOptional<z.ZodEnum<["running", "paused", "completed", "failed", "stopped"]>>;
|
|
920
|
+
started: z.ZodOptional<z.ZodNumber>;
|
|
921
|
+
completed: z.ZodOptional<z.ZodNumber>;
|
|
922
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
923
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
924
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
925
|
+
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
926
|
+
phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
927
|
+
id: z.ZodString;
|
|
928
|
+
title: z.ZodString;
|
|
929
|
+
order: z.ZodNumber;
|
|
930
|
+
}, "strip", z.ZodTypeAny, {
|
|
931
|
+
id: string;
|
|
932
|
+
title: string;
|
|
933
|
+
order: number;
|
|
934
|
+
}, {
|
|
935
|
+
id: string;
|
|
936
|
+
title: string;
|
|
937
|
+
order: number;
|
|
938
|
+
}>, "many">>;
|
|
939
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
940
|
+
id: z.ZodString;
|
|
941
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
942
|
+
title: z.ZodString;
|
|
943
|
+
state: z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>;
|
|
944
|
+
phaseId: z.ZodOptional<z.ZodString>;
|
|
945
|
+
model: z.ZodOptional<z.ZodString>;
|
|
946
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
947
|
+
toolCalls: z.ZodOptional<z.ZodNumber>;
|
|
948
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
949
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
950
|
+
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
951
|
+
result: z.ZodOptional<z.ZodString>;
|
|
952
|
+
}, "strip", z.ZodTypeAny, {
|
|
953
|
+
id: string;
|
|
954
|
+
title: string;
|
|
955
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
956
|
+
toolCallId?: string | undefined;
|
|
957
|
+
phaseId?: string | undefined;
|
|
958
|
+
model?: string | undefined;
|
|
959
|
+
tokens?: number | undefined;
|
|
960
|
+
toolCalls?: number | undefined;
|
|
961
|
+
durationMs?: number | undefined;
|
|
962
|
+
startedAt?: number | undefined;
|
|
963
|
+
endedAt?: number | undefined;
|
|
964
|
+
result?: string | undefined;
|
|
965
|
+
}, {
|
|
966
|
+
id: string;
|
|
967
|
+
title: string;
|
|
968
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
969
|
+
toolCallId?: string | undefined;
|
|
970
|
+
phaseId?: string | undefined;
|
|
971
|
+
model?: string | undefined;
|
|
972
|
+
tokens?: number | undefined;
|
|
973
|
+
toolCalls?: number | undefined;
|
|
974
|
+
durationMs?: number | undefined;
|
|
975
|
+
startedAt?: number | undefined;
|
|
976
|
+
endedAt?: number | undefined;
|
|
977
|
+
result?: string | undefined;
|
|
978
|
+
}>, "many">>;
|
|
979
|
+
}, "strip", z.ZodTypeAny, {
|
|
980
|
+
completed?: number | undefined;
|
|
981
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
982
|
+
tokens?: number | undefined;
|
|
983
|
+
durationMs?: number | undefined;
|
|
984
|
+
startedAt?: number | undefined;
|
|
985
|
+
endedAt?: number | undefined;
|
|
986
|
+
runId?: string | undefined;
|
|
987
|
+
name?: string | undefined;
|
|
988
|
+
started?: number | undefined;
|
|
989
|
+
phases?: {
|
|
990
|
+
id: string;
|
|
991
|
+
title: string;
|
|
992
|
+
order: number;
|
|
993
|
+
}[] | undefined;
|
|
994
|
+
agents?: {
|
|
995
|
+
id: string;
|
|
996
|
+
title: string;
|
|
997
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
998
|
+
toolCallId?: string | undefined;
|
|
999
|
+
phaseId?: string | undefined;
|
|
1000
|
+
model?: string | undefined;
|
|
1001
|
+
tokens?: number | undefined;
|
|
1002
|
+
toolCalls?: number | undefined;
|
|
1003
|
+
durationMs?: number | undefined;
|
|
1004
|
+
startedAt?: number | undefined;
|
|
1005
|
+
endedAt?: number | undefined;
|
|
1006
|
+
result?: string | undefined;
|
|
1007
|
+
}[] | undefined;
|
|
1008
|
+
}, {
|
|
1009
|
+
completed?: number | undefined;
|
|
1010
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
1011
|
+
tokens?: number | undefined;
|
|
1012
|
+
durationMs?: number | undefined;
|
|
1013
|
+
startedAt?: number | undefined;
|
|
1014
|
+
endedAt?: number | undefined;
|
|
1015
|
+
runId?: string | undefined;
|
|
1016
|
+
name?: string | undefined;
|
|
1017
|
+
started?: number | undefined;
|
|
1018
|
+
phases?: {
|
|
1019
|
+
id: string;
|
|
1020
|
+
title: string;
|
|
1021
|
+
order: number;
|
|
1022
|
+
}[] | undefined;
|
|
1023
|
+
agents?: {
|
|
1024
|
+
id: string;
|
|
1025
|
+
title: string;
|
|
1026
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
1027
|
+
toolCallId?: string | undefined;
|
|
1028
|
+
phaseId?: string | undefined;
|
|
1029
|
+
model?: string | undefined;
|
|
1030
|
+
tokens?: number | undefined;
|
|
1031
|
+
toolCalls?: number | undefined;
|
|
1032
|
+
durationMs?: number | undefined;
|
|
1033
|
+
startedAt?: number | undefined;
|
|
1034
|
+
endedAt?: number | undefined;
|
|
1035
|
+
result?: string | undefined;
|
|
1036
|
+
}[] | undefined;
|
|
1037
|
+
}>>;
|
|
726
1038
|
}, "strip", z.ZodTypeAny, {
|
|
727
1039
|
type: "subagent";
|
|
728
|
-
action: "message" | "
|
|
1040
|
+
action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
|
|
1041
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
1042
|
+
model?: string | undefined;
|
|
729
1043
|
task?: string | undefined;
|
|
730
1044
|
agentType?: string | undefined;
|
|
731
|
-
|
|
1045
|
+
workflow?: {
|
|
1046
|
+
completed?: number | undefined;
|
|
1047
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
1048
|
+
tokens?: number | undefined;
|
|
1049
|
+
durationMs?: number | undefined;
|
|
1050
|
+
startedAt?: number | undefined;
|
|
1051
|
+
endedAt?: number | undefined;
|
|
1052
|
+
runId?: string | undefined;
|
|
1053
|
+
name?: string | undefined;
|
|
1054
|
+
started?: number | undefined;
|
|
1055
|
+
phases?: {
|
|
1056
|
+
id: string;
|
|
1057
|
+
title: string;
|
|
1058
|
+
order: number;
|
|
1059
|
+
}[] | undefined;
|
|
1060
|
+
agents?: {
|
|
1061
|
+
id: string;
|
|
1062
|
+
title: string;
|
|
1063
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
1064
|
+
toolCallId?: string | undefined;
|
|
1065
|
+
phaseId?: string | undefined;
|
|
1066
|
+
model?: string | undefined;
|
|
1067
|
+
tokens?: number | undefined;
|
|
1068
|
+
toolCalls?: number | undefined;
|
|
1069
|
+
durationMs?: number | undefined;
|
|
1070
|
+
startedAt?: number | undefined;
|
|
1071
|
+
endedAt?: number | undefined;
|
|
1072
|
+
result?: string | undefined;
|
|
1073
|
+
}[] | undefined;
|
|
1074
|
+
} | undefined;
|
|
732
1075
|
}, {
|
|
733
1076
|
type: "subagent";
|
|
1077
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
1078
|
+
model?: string | undefined;
|
|
734
1079
|
task?: string | undefined;
|
|
735
1080
|
agentType?: string | undefined;
|
|
736
|
-
|
|
737
|
-
|
|
1081
|
+
workflow?: {
|
|
1082
|
+
completed?: number | undefined;
|
|
1083
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
1084
|
+
tokens?: number | undefined;
|
|
1085
|
+
durationMs?: number | undefined;
|
|
1086
|
+
startedAt?: number | undefined;
|
|
1087
|
+
endedAt?: number | undefined;
|
|
1088
|
+
runId?: string | undefined;
|
|
1089
|
+
name?: string | undefined;
|
|
1090
|
+
started?: number | undefined;
|
|
1091
|
+
phases?: {
|
|
1092
|
+
id: string;
|
|
1093
|
+
title: string;
|
|
1094
|
+
order: number;
|
|
1095
|
+
}[] | undefined;
|
|
1096
|
+
agents?: {
|
|
1097
|
+
id: string;
|
|
1098
|
+
title: string;
|
|
1099
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
1100
|
+
toolCallId?: string | undefined;
|
|
1101
|
+
phaseId?: string | undefined;
|
|
1102
|
+
model?: string | undefined;
|
|
1103
|
+
tokens?: number | undefined;
|
|
1104
|
+
toolCalls?: number | undefined;
|
|
1105
|
+
durationMs?: number | undefined;
|
|
1106
|
+
startedAt?: number | undefined;
|
|
1107
|
+
endedAt?: number | undefined;
|
|
1108
|
+
result?: string | undefined;
|
|
1109
|
+
}[] | undefined;
|
|
1110
|
+
} | undefined;
|
|
1111
|
+
action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
|
|
738
1112
|
}>, z.ZodObject<{
|
|
739
1113
|
type: z.ZodLiteral<"skill">;
|
|
740
1114
|
name: z.ZodString;
|
|
@@ -794,10 +1168,10 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
794
1168
|
more?: number | undefined;
|
|
795
1169
|
}>]>>;
|
|
796
1170
|
}, "strip", z.ZodTypeAny, {
|
|
797
|
-
status: "
|
|
798
|
-
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
799
|
-
title: string;
|
|
1171
|
+
status: "completed" | "failed" | "pending" | "in_progress";
|
|
800
1172
|
toolCallId: string;
|
|
1173
|
+
title: string;
|
|
1174
|
+
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
801
1175
|
sessionUpdate: "tool_call";
|
|
802
1176
|
detail?: {
|
|
803
1177
|
type: "mcp";
|
|
@@ -805,10 +1179,41 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
805
1179
|
server: string;
|
|
806
1180
|
} | {
|
|
807
1181
|
type: "subagent";
|
|
808
|
-
action: "message" | "
|
|
1182
|
+
action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
|
|
1183
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
1184
|
+
model?: string | undefined;
|
|
809
1185
|
task?: string | undefined;
|
|
810
1186
|
agentType?: string | undefined;
|
|
811
|
-
|
|
1187
|
+
workflow?: {
|
|
1188
|
+
completed?: number | undefined;
|
|
1189
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
1190
|
+
tokens?: number | undefined;
|
|
1191
|
+
durationMs?: number | undefined;
|
|
1192
|
+
startedAt?: number | undefined;
|
|
1193
|
+
endedAt?: number | undefined;
|
|
1194
|
+
runId?: string | undefined;
|
|
1195
|
+
name?: string | undefined;
|
|
1196
|
+
started?: number | undefined;
|
|
1197
|
+
phases?: {
|
|
1198
|
+
id: string;
|
|
1199
|
+
title: string;
|
|
1200
|
+
order: number;
|
|
1201
|
+
}[] | undefined;
|
|
1202
|
+
agents?: {
|
|
1203
|
+
id: string;
|
|
1204
|
+
title: string;
|
|
1205
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
1206
|
+
toolCallId?: string | undefined;
|
|
1207
|
+
phaseId?: string | undefined;
|
|
1208
|
+
model?: string | undefined;
|
|
1209
|
+
tokens?: number | undefined;
|
|
1210
|
+
toolCalls?: number | undefined;
|
|
1211
|
+
durationMs?: number | undefined;
|
|
1212
|
+
startedAt?: number | undefined;
|
|
1213
|
+
endedAt?: number | undefined;
|
|
1214
|
+
result?: string | undefined;
|
|
1215
|
+
}[] | undefined;
|
|
1216
|
+
} | undefined;
|
|
812
1217
|
} | {
|
|
813
1218
|
type: "skill";
|
|
814
1219
|
name: string;
|
|
@@ -829,6 +1234,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
829
1234
|
text: string;
|
|
830
1235
|
more?: number | undefined;
|
|
831
1236
|
} | undefined;
|
|
1237
|
+
parentToolCallId?: string | undefined;
|
|
832
1238
|
content?: ({
|
|
833
1239
|
type: "content";
|
|
834
1240
|
content: {
|
|
@@ -860,17 +1266,16 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
860
1266
|
type: "terminal";
|
|
861
1267
|
terminalId: string;
|
|
862
1268
|
})[] | undefined;
|
|
863
|
-
parentToolCallId?: string | undefined;
|
|
864
1269
|
rawInput?: unknown;
|
|
865
1270
|
locations?: {
|
|
866
1271
|
path: string;
|
|
867
1272
|
line?: number | undefined;
|
|
868
1273
|
}[] | undefined;
|
|
869
1274
|
}, {
|
|
870
|
-
status: "
|
|
871
|
-
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
872
|
-
title: string;
|
|
1275
|
+
status: "completed" | "failed" | "pending" | "in_progress";
|
|
873
1276
|
toolCallId: string;
|
|
1277
|
+
title: string;
|
|
1278
|
+
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
874
1279
|
sessionUpdate: "tool_call";
|
|
875
1280
|
detail?: {
|
|
876
1281
|
type: "mcp";
|
|
@@ -878,10 +1283,41 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
878
1283
|
server: string;
|
|
879
1284
|
} | {
|
|
880
1285
|
type: "subagent";
|
|
1286
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
1287
|
+
model?: string | undefined;
|
|
881
1288
|
task?: string | undefined;
|
|
882
1289
|
agentType?: string | undefined;
|
|
883
|
-
|
|
884
|
-
|
|
1290
|
+
workflow?: {
|
|
1291
|
+
completed?: number | undefined;
|
|
1292
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
1293
|
+
tokens?: number | undefined;
|
|
1294
|
+
durationMs?: number | undefined;
|
|
1295
|
+
startedAt?: number | undefined;
|
|
1296
|
+
endedAt?: number | undefined;
|
|
1297
|
+
runId?: string | undefined;
|
|
1298
|
+
name?: string | undefined;
|
|
1299
|
+
started?: number | undefined;
|
|
1300
|
+
phases?: {
|
|
1301
|
+
id: string;
|
|
1302
|
+
title: string;
|
|
1303
|
+
order: number;
|
|
1304
|
+
}[] | undefined;
|
|
1305
|
+
agents?: {
|
|
1306
|
+
id: string;
|
|
1307
|
+
title: string;
|
|
1308
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
1309
|
+
toolCallId?: string | undefined;
|
|
1310
|
+
phaseId?: string | undefined;
|
|
1311
|
+
model?: string | undefined;
|
|
1312
|
+
tokens?: number | undefined;
|
|
1313
|
+
toolCalls?: number | undefined;
|
|
1314
|
+
durationMs?: number | undefined;
|
|
1315
|
+
startedAt?: number | undefined;
|
|
1316
|
+
endedAt?: number | undefined;
|
|
1317
|
+
result?: string | undefined;
|
|
1318
|
+
}[] | undefined;
|
|
1319
|
+
} | undefined;
|
|
1320
|
+
action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
|
|
885
1321
|
} | {
|
|
886
1322
|
type: "skill";
|
|
887
1323
|
name: string;
|
|
@@ -902,6 +1338,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
902
1338
|
text: string;
|
|
903
1339
|
more?: number | undefined;
|
|
904
1340
|
} | undefined;
|
|
1341
|
+
parentToolCallId?: string | undefined;
|
|
905
1342
|
content?: ({
|
|
906
1343
|
type: "content";
|
|
907
1344
|
content: {
|
|
@@ -933,7 +1370,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
933
1370
|
type: "terminal";
|
|
934
1371
|
terminalId: string;
|
|
935
1372
|
})[] | undefined;
|
|
936
|
-
parentToolCallId?: string | undefined;
|
|
937
1373
|
rawInput?: unknown;
|
|
938
1374
|
locations?: {
|
|
939
1375
|
path: string;
|
|
@@ -965,18 +1401,205 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
965
1401
|
/** The sub-agent's role or type, e.g. "Explore". */
|
|
966
1402
|
agentType: z.ZodOptional<z.ZodString>;
|
|
967
1403
|
model: z.ZodOptional<z.ZodString>;
|
|
1404
|
+
/** Agent outcome when a tool's coarse completed/failed state is insufficient. */
|
|
1405
|
+
state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
|
|
1406
|
+
/** A Claude workflow is a background run containing its own agents. Counts are observed, not a predicted total. */
|
|
1407
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
1408
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1409
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1410
|
+
state: z.ZodOptional<z.ZodEnum<["running", "paused", "completed", "failed", "stopped"]>>;
|
|
1411
|
+
started: z.ZodOptional<z.ZodNumber>;
|
|
1412
|
+
completed: z.ZodOptional<z.ZodNumber>;
|
|
1413
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
1414
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1415
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1416
|
+
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
1417
|
+
phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1418
|
+
id: z.ZodString;
|
|
1419
|
+
title: z.ZodString;
|
|
1420
|
+
order: z.ZodNumber;
|
|
1421
|
+
}, "strip", z.ZodTypeAny, {
|
|
1422
|
+
id: string;
|
|
1423
|
+
title: string;
|
|
1424
|
+
order: number;
|
|
1425
|
+
}, {
|
|
1426
|
+
id: string;
|
|
1427
|
+
title: string;
|
|
1428
|
+
order: number;
|
|
1429
|
+
}>, "many">>;
|
|
1430
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1431
|
+
id: z.ZodString;
|
|
1432
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
1433
|
+
title: z.ZodString;
|
|
1434
|
+
state: z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>;
|
|
1435
|
+
phaseId: z.ZodOptional<z.ZodString>;
|
|
1436
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1437
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
1438
|
+
toolCalls: z.ZodOptional<z.ZodNumber>;
|
|
1439
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1440
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1441
|
+
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
1442
|
+
result: z.ZodOptional<z.ZodString>;
|
|
1443
|
+
}, "strip", z.ZodTypeAny, {
|
|
1444
|
+
id: string;
|
|
1445
|
+
title: string;
|
|
1446
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
1447
|
+
toolCallId?: string | undefined;
|
|
1448
|
+
phaseId?: string | undefined;
|
|
1449
|
+
model?: string | undefined;
|
|
1450
|
+
tokens?: number | undefined;
|
|
1451
|
+
toolCalls?: number | undefined;
|
|
1452
|
+
durationMs?: number | undefined;
|
|
1453
|
+
startedAt?: number | undefined;
|
|
1454
|
+
endedAt?: number | undefined;
|
|
1455
|
+
result?: string | undefined;
|
|
1456
|
+
}, {
|
|
1457
|
+
id: string;
|
|
1458
|
+
title: string;
|
|
1459
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
1460
|
+
toolCallId?: string | undefined;
|
|
1461
|
+
phaseId?: string | undefined;
|
|
1462
|
+
model?: string | undefined;
|
|
1463
|
+
tokens?: number | undefined;
|
|
1464
|
+
toolCalls?: number | undefined;
|
|
1465
|
+
durationMs?: number | undefined;
|
|
1466
|
+
startedAt?: number | undefined;
|
|
1467
|
+
endedAt?: number | undefined;
|
|
1468
|
+
result?: string | undefined;
|
|
1469
|
+
}>, "many">>;
|
|
1470
|
+
}, "strip", z.ZodTypeAny, {
|
|
1471
|
+
completed?: number | undefined;
|
|
1472
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
1473
|
+
tokens?: number | undefined;
|
|
1474
|
+
durationMs?: number | undefined;
|
|
1475
|
+
startedAt?: number | undefined;
|
|
1476
|
+
endedAt?: number | undefined;
|
|
1477
|
+
runId?: string | undefined;
|
|
1478
|
+
name?: string | undefined;
|
|
1479
|
+
started?: number | undefined;
|
|
1480
|
+
phases?: {
|
|
1481
|
+
id: string;
|
|
1482
|
+
title: string;
|
|
1483
|
+
order: number;
|
|
1484
|
+
}[] | undefined;
|
|
1485
|
+
agents?: {
|
|
1486
|
+
id: string;
|
|
1487
|
+
title: string;
|
|
1488
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
1489
|
+
toolCallId?: string | undefined;
|
|
1490
|
+
phaseId?: string | undefined;
|
|
1491
|
+
model?: string | undefined;
|
|
1492
|
+
tokens?: number | undefined;
|
|
1493
|
+
toolCalls?: number | undefined;
|
|
1494
|
+
durationMs?: number | undefined;
|
|
1495
|
+
startedAt?: number | undefined;
|
|
1496
|
+
endedAt?: number | undefined;
|
|
1497
|
+
result?: string | undefined;
|
|
1498
|
+
}[] | undefined;
|
|
1499
|
+
}, {
|
|
1500
|
+
completed?: number | undefined;
|
|
1501
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
1502
|
+
tokens?: number | undefined;
|
|
1503
|
+
durationMs?: number | undefined;
|
|
1504
|
+
startedAt?: number | undefined;
|
|
1505
|
+
endedAt?: number | undefined;
|
|
1506
|
+
runId?: string | undefined;
|
|
1507
|
+
name?: string | undefined;
|
|
1508
|
+
started?: number | undefined;
|
|
1509
|
+
phases?: {
|
|
1510
|
+
id: string;
|
|
1511
|
+
title: string;
|
|
1512
|
+
order: number;
|
|
1513
|
+
}[] | undefined;
|
|
1514
|
+
agents?: {
|
|
1515
|
+
id: string;
|
|
1516
|
+
title: string;
|
|
1517
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
1518
|
+
toolCallId?: string | undefined;
|
|
1519
|
+
phaseId?: string | undefined;
|
|
1520
|
+
model?: string | undefined;
|
|
1521
|
+
tokens?: number | undefined;
|
|
1522
|
+
toolCalls?: number | undefined;
|
|
1523
|
+
durationMs?: number | undefined;
|
|
1524
|
+
startedAt?: number | undefined;
|
|
1525
|
+
endedAt?: number | undefined;
|
|
1526
|
+
result?: string | undefined;
|
|
1527
|
+
}[] | undefined;
|
|
1528
|
+
}>>;
|
|
968
1529
|
}, "strip", z.ZodTypeAny, {
|
|
969
1530
|
type: "subagent";
|
|
970
|
-
action: "message" | "
|
|
1531
|
+
action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
|
|
1532
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
1533
|
+
model?: string | undefined;
|
|
971
1534
|
task?: string | undefined;
|
|
972
1535
|
agentType?: string | undefined;
|
|
973
|
-
|
|
1536
|
+
workflow?: {
|
|
1537
|
+
completed?: number | undefined;
|
|
1538
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
1539
|
+
tokens?: number | undefined;
|
|
1540
|
+
durationMs?: number | undefined;
|
|
1541
|
+
startedAt?: number | undefined;
|
|
1542
|
+
endedAt?: number | undefined;
|
|
1543
|
+
runId?: string | undefined;
|
|
1544
|
+
name?: string | undefined;
|
|
1545
|
+
started?: number | undefined;
|
|
1546
|
+
phases?: {
|
|
1547
|
+
id: string;
|
|
1548
|
+
title: string;
|
|
1549
|
+
order: number;
|
|
1550
|
+
}[] | undefined;
|
|
1551
|
+
agents?: {
|
|
1552
|
+
id: string;
|
|
1553
|
+
title: string;
|
|
1554
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
1555
|
+
toolCallId?: string | undefined;
|
|
1556
|
+
phaseId?: string | undefined;
|
|
1557
|
+
model?: string | undefined;
|
|
1558
|
+
tokens?: number | undefined;
|
|
1559
|
+
toolCalls?: number | undefined;
|
|
1560
|
+
durationMs?: number | undefined;
|
|
1561
|
+
startedAt?: number | undefined;
|
|
1562
|
+
endedAt?: number | undefined;
|
|
1563
|
+
result?: string | undefined;
|
|
1564
|
+
}[] | undefined;
|
|
1565
|
+
} | undefined;
|
|
974
1566
|
}, {
|
|
975
1567
|
type: "subagent";
|
|
1568
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
1569
|
+
model?: string | undefined;
|
|
976
1570
|
task?: string | undefined;
|
|
977
1571
|
agentType?: string | undefined;
|
|
978
|
-
|
|
979
|
-
|
|
1572
|
+
workflow?: {
|
|
1573
|
+
completed?: number | undefined;
|
|
1574
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
1575
|
+
tokens?: number | undefined;
|
|
1576
|
+
durationMs?: number | undefined;
|
|
1577
|
+
startedAt?: number | undefined;
|
|
1578
|
+
endedAt?: number | undefined;
|
|
1579
|
+
runId?: string | undefined;
|
|
1580
|
+
name?: string | undefined;
|
|
1581
|
+
started?: number | undefined;
|
|
1582
|
+
phases?: {
|
|
1583
|
+
id: string;
|
|
1584
|
+
title: string;
|
|
1585
|
+
order: number;
|
|
1586
|
+
}[] | undefined;
|
|
1587
|
+
agents?: {
|
|
1588
|
+
id: string;
|
|
1589
|
+
title: string;
|
|
1590
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
1591
|
+
toolCallId?: string | undefined;
|
|
1592
|
+
phaseId?: string | undefined;
|
|
1593
|
+
model?: string | undefined;
|
|
1594
|
+
tokens?: number | undefined;
|
|
1595
|
+
toolCalls?: number | undefined;
|
|
1596
|
+
durationMs?: number | undefined;
|
|
1597
|
+
startedAt?: number | undefined;
|
|
1598
|
+
endedAt?: number | undefined;
|
|
1599
|
+
result?: string | undefined;
|
|
1600
|
+
}[] | undefined;
|
|
1601
|
+
} | undefined;
|
|
1602
|
+
action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
|
|
980
1603
|
}>, z.ZodObject<{
|
|
981
1604
|
type: z.ZodLiteral<"skill">;
|
|
982
1605
|
name: z.ZodString;
|
|
@@ -1160,7 +1783,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1160
1783
|
}, "strip", z.ZodTypeAny, {
|
|
1161
1784
|
toolCallId: string;
|
|
1162
1785
|
sessionUpdate: "tool_call_update";
|
|
1163
|
-
status?: "
|
|
1786
|
+
status?: "completed" | "failed" | "pending" | "in_progress" | undefined;
|
|
1164
1787
|
title?: string | undefined;
|
|
1165
1788
|
detail?: {
|
|
1166
1789
|
type: "mcp";
|
|
@@ -1168,10 +1791,41 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1168
1791
|
server: string;
|
|
1169
1792
|
} | {
|
|
1170
1793
|
type: "subagent";
|
|
1171
|
-
action: "message" | "
|
|
1794
|
+
action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
|
|
1795
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
1796
|
+
model?: string | undefined;
|
|
1172
1797
|
task?: string | undefined;
|
|
1173
1798
|
agentType?: string | undefined;
|
|
1174
|
-
|
|
1799
|
+
workflow?: {
|
|
1800
|
+
completed?: number | undefined;
|
|
1801
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
1802
|
+
tokens?: number | undefined;
|
|
1803
|
+
durationMs?: number | undefined;
|
|
1804
|
+
startedAt?: number | undefined;
|
|
1805
|
+
endedAt?: number | undefined;
|
|
1806
|
+
runId?: string | undefined;
|
|
1807
|
+
name?: string | undefined;
|
|
1808
|
+
started?: number | undefined;
|
|
1809
|
+
phases?: {
|
|
1810
|
+
id: string;
|
|
1811
|
+
title: string;
|
|
1812
|
+
order: number;
|
|
1813
|
+
}[] | undefined;
|
|
1814
|
+
agents?: {
|
|
1815
|
+
id: string;
|
|
1816
|
+
title: string;
|
|
1817
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
1818
|
+
toolCallId?: string | undefined;
|
|
1819
|
+
phaseId?: string | undefined;
|
|
1820
|
+
model?: string | undefined;
|
|
1821
|
+
tokens?: number | undefined;
|
|
1822
|
+
toolCalls?: number | undefined;
|
|
1823
|
+
durationMs?: number | undefined;
|
|
1824
|
+
startedAt?: number | undefined;
|
|
1825
|
+
endedAt?: number | undefined;
|
|
1826
|
+
result?: string | undefined;
|
|
1827
|
+
}[] | undefined;
|
|
1828
|
+
} | undefined;
|
|
1175
1829
|
} | {
|
|
1176
1830
|
type: "skill";
|
|
1177
1831
|
name: string;
|
|
@@ -1192,6 +1846,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1192
1846
|
text: string;
|
|
1193
1847
|
more?: number | undefined;
|
|
1194
1848
|
} | undefined;
|
|
1849
|
+
parentToolCallId?: string | undefined;
|
|
1195
1850
|
content?: ({
|
|
1196
1851
|
type: "content";
|
|
1197
1852
|
content: {
|
|
@@ -1223,13 +1878,12 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1223
1878
|
type: "terminal";
|
|
1224
1879
|
terminalId: string;
|
|
1225
1880
|
})[] | undefined;
|
|
1226
|
-
parentToolCallId?: string | undefined;
|
|
1227
1881
|
appendOutput?: string | undefined;
|
|
1228
1882
|
rawOutput?: unknown;
|
|
1229
1883
|
}, {
|
|
1230
1884
|
toolCallId: string;
|
|
1231
1885
|
sessionUpdate: "tool_call_update";
|
|
1232
|
-
status?: "
|
|
1886
|
+
status?: "completed" | "failed" | "pending" | "in_progress" | undefined;
|
|
1233
1887
|
title?: string | undefined;
|
|
1234
1888
|
detail?: {
|
|
1235
1889
|
type: "mcp";
|
|
@@ -1237,10 +1891,41 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1237
1891
|
server: string;
|
|
1238
1892
|
} | {
|
|
1239
1893
|
type: "subagent";
|
|
1894
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
1895
|
+
model?: string | undefined;
|
|
1240
1896
|
task?: string | undefined;
|
|
1241
1897
|
agentType?: string | undefined;
|
|
1242
|
-
|
|
1243
|
-
|
|
1898
|
+
workflow?: {
|
|
1899
|
+
completed?: number | undefined;
|
|
1900
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
1901
|
+
tokens?: number | undefined;
|
|
1902
|
+
durationMs?: number | undefined;
|
|
1903
|
+
startedAt?: number | undefined;
|
|
1904
|
+
endedAt?: number | undefined;
|
|
1905
|
+
runId?: string | undefined;
|
|
1906
|
+
name?: string | undefined;
|
|
1907
|
+
started?: number | undefined;
|
|
1908
|
+
phases?: {
|
|
1909
|
+
id: string;
|
|
1910
|
+
title: string;
|
|
1911
|
+
order: number;
|
|
1912
|
+
}[] | undefined;
|
|
1913
|
+
agents?: {
|
|
1914
|
+
id: string;
|
|
1915
|
+
title: string;
|
|
1916
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
1917
|
+
toolCallId?: string | undefined;
|
|
1918
|
+
phaseId?: string | undefined;
|
|
1919
|
+
model?: string | undefined;
|
|
1920
|
+
tokens?: number | undefined;
|
|
1921
|
+
toolCalls?: number | undefined;
|
|
1922
|
+
durationMs?: number | undefined;
|
|
1923
|
+
startedAt?: number | undefined;
|
|
1924
|
+
endedAt?: number | undefined;
|
|
1925
|
+
result?: string | undefined;
|
|
1926
|
+
}[] | undefined;
|
|
1927
|
+
} | undefined;
|
|
1928
|
+
action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
|
|
1244
1929
|
} | {
|
|
1245
1930
|
type: "skill";
|
|
1246
1931
|
name: string;
|
|
@@ -1261,6 +1946,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1261
1946
|
text: string;
|
|
1262
1947
|
more?: number | undefined;
|
|
1263
1948
|
} | undefined;
|
|
1949
|
+
parentToolCallId?: string | undefined;
|
|
1264
1950
|
content?: ({
|
|
1265
1951
|
type: "content";
|
|
1266
1952
|
content: {
|
|
@@ -1292,7 +1978,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1292
1978
|
type: "terminal";
|
|
1293
1979
|
terminalId: string;
|
|
1294
1980
|
})[] | undefined;
|
|
1295
|
-
parentToolCallId?: string | undefined;
|
|
1296
1981
|
appendOutput?: string | undefined;
|
|
1297
1982
|
rawOutput?: unknown;
|
|
1298
1983
|
}>, z.ZodObject<{
|
|
@@ -1302,28 +1987,77 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1302
1987
|
priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
|
|
1303
1988
|
status: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
1304
1989
|
}, "strip", z.ZodTypeAny, {
|
|
1305
|
-
status: "
|
|
1990
|
+
status: "completed" | "pending" | "in_progress";
|
|
1306
1991
|
content: string;
|
|
1307
1992
|
priority: "high" | "medium" | "low";
|
|
1308
1993
|
}, {
|
|
1309
|
-
status: "
|
|
1994
|
+
status: "completed" | "pending" | "in_progress";
|
|
1310
1995
|
content: string;
|
|
1311
1996
|
priority?: "high" | "medium" | "low" | undefined;
|
|
1312
1997
|
}>, "many">;
|
|
1313
1998
|
}, "strip", z.ZodTypeAny, {
|
|
1314
1999
|
entries: {
|
|
1315
|
-
status: "
|
|
2000
|
+
status: "completed" | "pending" | "in_progress";
|
|
1316
2001
|
content: string;
|
|
1317
2002
|
priority: "high" | "medium" | "low";
|
|
1318
2003
|
}[];
|
|
1319
2004
|
sessionUpdate: "plan";
|
|
1320
2005
|
}, {
|
|
1321
2006
|
entries: {
|
|
1322
|
-
status: "
|
|
2007
|
+
status: "completed" | "pending" | "in_progress";
|
|
1323
2008
|
content: string;
|
|
1324
2009
|
priority?: "high" | "medium" | "low" | undefined;
|
|
1325
2010
|
}[];
|
|
1326
2011
|
sessionUpdate: "plan";
|
|
2012
|
+
}>, z.ZodObject<{
|
|
2013
|
+
sessionUpdate: z.ZodLiteral<"ls_goal">;
|
|
2014
|
+
goal: z.ZodNullable<z.ZodObject<{
|
|
2015
|
+
objective: z.ZodString;
|
|
2016
|
+
status: z.ZodEnum<["active", "paused", "blocked", "usageLimited", "budgetLimited", "complete"]>;
|
|
2017
|
+
tokenBudget: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2018
|
+
tokensUsed: z.ZodOptional<z.ZodNumber>;
|
|
2019
|
+
timeUsedSeconds: z.ZodOptional<z.ZodNumber>;
|
|
2020
|
+
iterations: z.ZodOptional<z.ZodNumber>;
|
|
2021
|
+
lastReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2022
|
+
}, "strip", z.ZodTypeAny, {
|
|
2023
|
+
status: "paused" | "active" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
2024
|
+
objective: string;
|
|
2025
|
+
tokenBudget?: number | null | undefined;
|
|
2026
|
+
tokensUsed?: number | undefined;
|
|
2027
|
+
timeUsedSeconds?: number | undefined;
|
|
2028
|
+
iterations?: number | undefined;
|
|
2029
|
+
lastReason?: string | null | undefined;
|
|
2030
|
+
}, {
|
|
2031
|
+
status: "paused" | "active" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
2032
|
+
objective: string;
|
|
2033
|
+
tokenBudget?: number | null | undefined;
|
|
2034
|
+
tokensUsed?: number | undefined;
|
|
2035
|
+
timeUsedSeconds?: number | undefined;
|
|
2036
|
+
iterations?: number | undefined;
|
|
2037
|
+
lastReason?: string | null | undefined;
|
|
2038
|
+
}>>;
|
|
2039
|
+
}, "strip", z.ZodTypeAny, {
|
|
2040
|
+
sessionUpdate: "ls_goal";
|
|
2041
|
+
goal: {
|
|
2042
|
+
status: "paused" | "active" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
2043
|
+
objective: string;
|
|
2044
|
+
tokenBudget?: number | null | undefined;
|
|
2045
|
+
tokensUsed?: number | undefined;
|
|
2046
|
+
timeUsedSeconds?: number | undefined;
|
|
2047
|
+
iterations?: number | undefined;
|
|
2048
|
+
lastReason?: string | null | undefined;
|
|
2049
|
+
} | null;
|
|
2050
|
+
}, {
|
|
2051
|
+
sessionUpdate: "ls_goal";
|
|
2052
|
+
goal: {
|
|
2053
|
+
status: "paused" | "active" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
2054
|
+
objective: string;
|
|
2055
|
+
tokenBudget?: number | null | undefined;
|
|
2056
|
+
tokensUsed?: number | undefined;
|
|
2057
|
+
timeUsedSeconds?: number | undefined;
|
|
2058
|
+
iterations?: number | undefined;
|
|
2059
|
+
lastReason?: string | null | undefined;
|
|
2060
|
+
} | null;
|
|
1327
2061
|
}>, z.ZodObject<{
|
|
1328
2062
|
sessionUpdate: z.ZodLiteral<"available_commands_update">;
|
|
1329
2063
|
availableCommands: z.ZodArray<z.ZodObject<{
|
|
@@ -1430,7 +2164,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1430
2164
|
}[];
|
|
1431
2165
|
id: string;
|
|
1432
2166
|
name: string;
|
|
1433
|
-
category: "
|
|
2167
|
+
category: "model" | "other" | "mode" | "effort";
|
|
1434
2168
|
current: string;
|
|
1435
2169
|
}, {
|
|
1436
2170
|
values: {
|
|
@@ -1441,7 +2175,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1441
2175
|
id: string;
|
|
1442
2176
|
name: string;
|
|
1443
2177
|
current: string;
|
|
1444
|
-
category?: "
|
|
2178
|
+
category?: "model" | "other" | "mode" | "effort" | undefined;
|
|
1445
2179
|
}>, "many">;
|
|
1446
2180
|
}, "strip", z.ZodTypeAny, {
|
|
1447
2181
|
options: {
|
|
@@ -1452,7 +2186,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1452
2186
|
}[];
|
|
1453
2187
|
id: string;
|
|
1454
2188
|
name: string;
|
|
1455
|
-
category: "
|
|
2189
|
+
category: "model" | "other" | "mode" | "effort";
|
|
1456
2190
|
current: string;
|
|
1457
2191
|
}[];
|
|
1458
2192
|
sessionUpdate: "ls_config";
|
|
@@ -1466,7 +2200,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1466
2200
|
id: string;
|
|
1467
2201
|
name: string;
|
|
1468
2202
|
current: string;
|
|
1469
|
-
category?: "
|
|
2203
|
+
category?: "model" | "other" | "mode" | "effort" | undefined;
|
|
1470
2204
|
}[];
|
|
1471
2205
|
sessionUpdate: "ls_config";
|
|
1472
2206
|
}>, z.ZodObject<{
|
|
@@ -1514,12 +2248,12 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1514
2248
|
name: z.ZodString;
|
|
1515
2249
|
kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
|
|
1516
2250
|
}, "strip", z.ZodTypeAny, {
|
|
1517
|
-
optionId: string;
|
|
1518
2251
|
name: string;
|
|
2252
|
+
optionId: string;
|
|
1519
2253
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1520
2254
|
}, {
|
|
1521
|
-
optionId: string;
|
|
1522
2255
|
name: string;
|
|
2256
|
+
optionId: string;
|
|
1523
2257
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1524
2258
|
}>, "many">;
|
|
1525
2259
|
/**
|
|
@@ -1577,8 +2311,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1577
2311
|
}>, "many">>;
|
|
1578
2312
|
}, "strip", z.ZodTypeAny, {
|
|
1579
2313
|
options: {
|
|
1580
|
-
optionId: string;
|
|
1581
2314
|
name: string;
|
|
2315
|
+
optionId: string;
|
|
1582
2316
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1583
2317
|
}[];
|
|
1584
2318
|
title: string;
|
|
@@ -1602,8 +2336,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1602
2336
|
}[] | undefined;
|
|
1603
2337
|
}, {
|
|
1604
2338
|
options: {
|
|
1605
|
-
optionId: string;
|
|
1606
2339
|
name: string;
|
|
2340
|
+
optionId: string;
|
|
1607
2341
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1608
2342
|
}[];
|
|
1609
2343
|
title: string;
|
|
@@ -1677,11 +2411,90 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1677
2411
|
sessionUpdate: z.ZodLiteral<"ls_status">;
|
|
1678
2412
|
state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
|
|
1679
2413
|
}, "strip", z.ZodTypeAny, {
|
|
1680
|
-
state: "
|
|
2414
|
+
state: "running" | "idle" | "waiting" | "error" | "offline";
|
|
1681
2415
|
sessionUpdate: "ls_status";
|
|
1682
2416
|
}, {
|
|
1683
|
-
state: "
|
|
2417
|
+
state: "running" | "idle" | "waiting" | "error" | "offline";
|
|
1684
2418
|
sessionUpdate: "ls_status";
|
|
2419
|
+
}>, z.ZodObject<{
|
|
2420
|
+
sessionUpdate: z.ZodLiteral<"ls_task">;
|
|
2421
|
+
task: z.ZodObject<{
|
|
2422
|
+
id: z.ZodString;
|
|
2423
|
+
kind: z.ZodEnum<["shell", "monitor"]>;
|
|
2424
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
2425
|
+
title: z.ZodString;
|
|
2426
|
+
command: z.ZodOptional<z.ZodString>;
|
|
2427
|
+
state: z.ZodEnum<["running", "completed", "failed", "stopped", "unknown"]>;
|
|
2428
|
+
startedAt: z.ZodNumber;
|
|
2429
|
+
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
2430
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
2431
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
2432
|
+
output: z.ZodOptional<z.ZodBoolean>;
|
|
2433
|
+
canStop: z.ZodOptional<z.ZodBoolean>;
|
|
2434
|
+
lastSeq: z.ZodOptional<z.ZodNumber>;
|
|
2435
|
+
}, "strip", z.ZodTypeAny, {
|
|
2436
|
+
id: string;
|
|
2437
|
+
title: string;
|
|
2438
|
+
state: "running" | "completed" | "failed" | "stopped" | "unknown";
|
|
2439
|
+
startedAt: number;
|
|
2440
|
+
kind: "shell" | "monitor";
|
|
2441
|
+
toolCallId?: string | undefined;
|
|
2442
|
+
endedAt?: number | undefined;
|
|
2443
|
+
lastSeq?: number | undefined;
|
|
2444
|
+
command?: string | undefined;
|
|
2445
|
+
summary?: string | undefined;
|
|
2446
|
+
exitCode?: number | undefined;
|
|
2447
|
+
output?: boolean | undefined;
|
|
2448
|
+
canStop?: boolean | undefined;
|
|
2449
|
+
}, {
|
|
2450
|
+
id: string;
|
|
2451
|
+
title: string;
|
|
2452
|
+
state: "running" | "completed" | "failed" | "stopped" | "unknown";
|
|
2453
|
+
startedAt: number;
|
|
2454
|
+
kind: "shell" | "monitor";
|
|
2455
|
+
toolCallId?: string | undefined;
|
|
2456
|
+
endedAt?: number | undefined;
|
|
2457
|
+
lastSeq?: number | undefined;
|
|
2458
|
+
command?: string | undefined;
|
|
2459
|
+
summary?: string | undefined;
|
|
2460
|
+
exitCode?: number | undefined;
|
|
2461
|
+
output?: boolean | undefined;
|
|
2462
|
+
canStop?: boolean | undefined;
|
|
2463
|
+
}>;
|
|
2464
|
+
}, "strip", z.ZodTypeAny, {
|
|
2465
|
+
task: {
|
|
2466
|
+
id: string;
|
|
2467
|
+
title: string;
|
|
2468
|
+
state: "running" | "completed" | "failed" | "stopped" | "unknown";
|
|
2469
|
+
startedAt: number;
|
|
2470
|
+
kind: "shell" | "monitor";
|
|
2471
|
+
toolCallId?: string | undefined;
|
|
2472
|
+
endedAt?: number | undefined;
|
|
2473
|
+
lastSeq?: number | undefined;
|
|
2474
|
+
command?: string | undefined;
|
|
2475
|
+
summary?: string | undefined;
|
|
2476
|
+
exitCode?: number | undefined;
|
|
2477
|
+
output?: boolean | undefined;
|
|
2478
|
+
canStop?: boolean | undefined;
|
|
2479
|
+
};
|
|
2480
|
+
sessionUpdate: "ls_task";
|
|
2481
|
+
}, {
|
|
2482
|
+
task: {
|
|
2483
|
+
id: string;
|
|
2484
|
+
title: string;
|
|
2485
|
+
state: "running" | "completed" | "failed" | "stopped" | "unknown";
|
|
2486
|
+
startedAt: number;
|
|
2487
|
+
kind: "shell" | "monitor";
|
|
2488
|
+
toolCallId?: string | undefined;
|
|
2489
|
+
endedAt?: number | undefined;
|
|
2490
|
+
lastSeq?: number | undefined;
|
|
2491
|
+
command?: string | undefined;
|
|
2492
|
+
summary?: string | undefined;
|
|
2493
|
+
exitCode?: number | undefined;
|
|
2494
|
+
output?: boolean | undefined;
|
|
2495
|
+
canStop?: boolean | undefined;
|
|
2496
|
+
};
|
|
2497
|
+
sessionUpdate: "ls_task";
|
|
1685
2498
|
}>, z.ZodObject<{
|
|
1686
2499
|
sessionUpdate: z.ZodLiteral<"ls_error">;
|
|
1687
2500
|
code: z.ZodString;
|
|
@@ -2102,18 +2915,205 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2102
2915
|
/** The sub-agent's role or type, e.g. "Explore". */
|
|
2103
2916
|
agentType: z.ZodOptional<z.ZodString>;
|
|
2104
2917
|
model: z.ZodOptional<z.ZodString>;
|
|
2918
|
+
/** Agent outcome when a tool's coarse completed/failed state is insufficient. */
|
|
2919
|
+
state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
|
|
2920
|
+
/** A Claude workflow is a background run containing its own agents. Counts are observed, not a predicted total. */
|
|
2921
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
2922
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
2923
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2924
|
+
state: z.ZodOptional<z.ZodEnum<["running", "paused", "completed", "failed", "stopped"]>>;
|
|
2925
|
+
started: z.ZodOptional<z.ZodNumber>;
|
|
2926
|
+
completed: z.ZodOptional<z.ZodNumber>;
|
|
2927
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
2928
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2929
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
2930
|
+
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
2931
|
+
phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2932
|
+
id: z.ZodString;
|
|
2933
|
+
title: z.ZodString;
|
|
2934
|
+
order: z.ZodNumber;
|
|
2935
|
+
}, "strip", z.ZodTypeAny, {
|
|
2936
|
+
id: string;
|
|
2937
|
+
title: string;
|
|
2938
|
+
order: number;
|
|
2939
|
+
}, {
|
|
2940
|
+
id: string;
|
|
2941
|
+
title: string;
|
|
2942
|
+
order: number;
|
|
2943
|
+
}>, "many">>;
|
|
2944
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2945
|
+
id: z.ZodString;
|
|
2946
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
2947
|
+
title: z.ZodString;
|
|
2948
|
+
state: z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>;
|
|
2949
|
+
phaseId: z.ZodOptional<z.ZodString>;
|
|
2950
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2951
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
2952
|
+
toolCalls: z.ZodOptional<z.ZodNumber>;
|
|
2953
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2954
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
2955
|
+
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
2956
|
+
result: z.ZodOptional<z.ZodString>;
|
|
2957
|
+
}, "strip", z.ZodTypeAny, {
|
|
2958
|
+
id: string;
|
|
2959
|
+
title: string;
|
|
2960
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
2961
|
+
toolCallId?: string | undefined;
|
|
2962
|
+
phaseId?: string | undefined;
|
|
2963
|
+
model?: string | undefined;
|
|
2964
|
+
tokens?: number | undefined;
|
|
2965
|
+
toolCalls?: number | undefined;
|
|
2966
|
+
durationMs?: number | undefined;
|
|
2967
|
+
startedAt?: number | undefined;
|
|
2968
|
+
endedAt?: number | undefined;
|
|
2969
|
+
result?: string | undefined;
|
|
2970
|
+
}, {
|
|
2971
|
+
id: string;
|
|
2972
|
+
title: string;
|
|
2973
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
2974
|
+
toolCallId?: string | undefined;
|
|
2975
|
+
phaseId?: string | undefined;
|
|
2976
|
+
model?: string | undefined;
|
|
2977
|
+
tokens?: number | undefined;
|
|
2978
|
+
toolCalls?: number | undefined;
|
|
2979
|
+
durationMs?: number | undefined;
|
|
2980
|
+
startedAt?: number | undefined;
|
|
2981
|
+
endedAt?: number | undefined;
|
|
2982
|
+
result?: string | undefined;
|
|
2983
|
+
}>, "many">>;
|
|
2984
|
+
}, "strip", z.ZodTypeAny, {
|
|
2985
|
+
completed?: number | undefined;
|
|
2986
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
2987
|
+
tokens?: number | undefined;
|
|
2988
|
+
durationMs?: number | undefined;
|
|
2989
|
+
startedAt?: number | undefined;
|
|
2990
|
+
endedAt?: number | undefined;
|
|
2991
|
+
runId?: string | undefined;
|
|
2992
|
+
name?: string | undefined;
|
|
2993
|
+
started?: number | undefined;
|
|
2994
|
+
phases?: {
|
|
2995
|
+
id: string;
|
|
2996
|
+
title: string;
|
|
2997
|
+
order: number;
|
|
2998
|
+
}[] | undefined;
|
|
2999
|
+
agents?: {
|
|
3000
|
+
id: string;
|
|
3001
|
+
title: string;
|
|
3002
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
3003
|
+
toolCallId?: string | undefined;
|
|
3004
|
+
phaseId?: string | undefined;
|
|
3005
|
+
model?: string | undefined;
|
|
3006
|
+
tokens?: number | undefined;
|
|
3007
|
+
toolCalls?: number | undefined;
|
|
3008
|
+
durationMs?: number | undefined;
|
|
3009
|
+
startedAt?: number | undefined;
|
|
3010
|
+
endedAt?: number | undefined;
|
|
3011
|
+
result?: string | undefined;
|
|
3012
|
+
}[] | undefined;
|
|
3013
|
+
}, {
|
|
3014
|
+
completed?: number | undefined;
|
|
3015
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
3016
|
+
tokens?: number | undefined;
|
|
3017
|
+
durationMs?: number | undefined;
|
|
3018
|
+
startedAt?: number | undefined;
|
|
3019
|
+
endedAt?: number | undefined;
|
|
3020
|
+
runId?: string | undefined;
|
|
3021
|
+
name?: string | undefined;
|
|
3022
|
+
started?: number | undefined;
|
|
3023
|
+
phases?: {
|
|
3024
|
+
id: string;
|
|
3025
|
+
title: string;
|
|
3026
|
+
order: number;
|
|
3027
|
+
}[] | undefined;
|
|
3028
|
+
agents?: {
|
|
3029
|
+
id: string;
|
|
3030
|
+
title: string;
|
|
3031
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
3032
|
+
toolCallId?: string | undefined;
|
|
3033
|
+
phaseId?: string | undefined;
|
|
3034
|
+
model?: string | undefined;
|
|
3035
|
+
tokens?: number | undefined;
|
|
3036
|
+
toolCalls?: number | undefined;
|
|
3037
|
+
durationMs?: number | undefined;
|
|
3038
|
+
startedAt?: number | undefined;
|
|
3039
|
+
endedAt?: number | undefined;
|
|
3040
|
+
result?: string | undefined;
|
|
3041
|
+
}[] | undefined;
|
|
3042
|
+
}>>;
|
|
2105
3043
|
}, "strip", z.ZodTypeAny, {
|
|
2106
3044
|
type: "subagent";
|
|
2107
|
-
action: "message" | "
|
|
3045
|
+
action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
|
|
3046
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
3047
|
+
model?: string | undefined;
|
|
2108
3048
|
task?: string | undefined;
|
|
2109
3049
|
agentType?: string | undefined;
|
|
2110
|
-
|
|
3050
|
+
workflow?: {
|
|
3051
|
+
completed?: number | undefined;
|
|
3052
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
3053
|
+
tokens?: number | undefined;
|
|
3054
|
+
durationMs?: number | undefined;
|
|
3055
|
+
startedAt?: number | undefined;
|
|
3056
|
+
endedAt?: number | undefined;
|
|
3057
|
+
runId?: string | undefined;
|
|
3058
|
+
name?: string | undefined;
|
|
3059
|
+
started?: number | undefined;
|
|
3060
|
+
phases?: {
|
|
3061
|
+
id: string;
|
|
3062
|
+
title: string;
|
|
3063
|
+
order: number;
|
|
3064
|
+
}[] | undefined;
|
|
3065
|
+
agents?: {
|
|
3066
|
+
id: string;
|
|
3067
|
+
title: string;
|
|
3068
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
3069
|
+
toolCallId?: string | undefined;
|
|
3070
|
+
phaseId?: string | undefined;
|
|
3071
|
+
model?: string | undefined;
|
|
3072
|
+
tokens?: number | undefined;
|
|
3073
|
+
toolCalls?: number | undefined;
|
|
3074
|
+
durationMs?: number | undefined;
|
|
3075
|
+
startedAt?: number | undefined;
|
|
3076
|
+
endedAt?: number | undefined;
|
|
3077
|
+
result?: string | undefined;
|
|
3078
|
+
}[] | undefined;
|
|
3079
|
+
} | undefined;
|
|
2111
3080
|
}, {
|
|
2112
3081
|
type: "subagent";
|
|
3082
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
3083
|
+
model?: string | undefined;
|
|
2113
3084
|
task?: string | undefined;
|
|
2114
3085
|
agentType?: string | undefined;
|
|
2115
|
-
|
|
2116
|
-
|
|
3086
|
+
workflow?: {
|
|
3087
|
+
completed?: number | undefined;
|
|
3088
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
3089
|
+
tokens?: number | undefined;
|
|
3090
|
+
durationMs?: number | undefined;
|
|
3091
|
+
startedAt?: number | undefined;
|
|
3092
|
+
endedAt?: number | undefined;
|
|
3093
|
+
runId?: string | undefined;
|
|
3094
|
+
name?: string | undefined;
|
|
3095
|
+
started?: number | undefined;
|
|
3096
|
+
phases?: {
|
|
3097
|
+
id: string;
|
|
3098
|
+
title: string;
|
|
3099
|
+
order: number;
|
|
3100
|
+
}[] | undefined;
|
|
3101
|
+
agents?: {
|
|
3102
|
+
id: string;
|
|
3103
|
+
title: string;
|
|
3104
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
3105
|
+
toolCallId?: string | undefined;
|
|
3106
|
+
phaseId?: string | undefined;
|
|
3107
|
+
model?: string | undefined;
|
|
3108
|
+
tokens?: number | undefined;
|
|
3109
|
+
toolCalls?: number | undefined;
|
|
3110
|
+
durationMs?: number | undefined;
|
|
3111
|
+
startedAt?: number | undefined;
|
|
3112
|
+
endedAt?: number | undefined;
|
|
3113
|
+
result?: string | undefined;
|
|
3114
|
+
}[] | undefined;
|
|
3115
|
+
} | undefined;
|
|
3116
|
+
action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
|
|
2117
3117
|
}>, z.ZodObject<{
|
|
2118
3118
|
type: z.ZodLiteral<"skill">;
|
|
2119
3119
|
name: z.ZodString;
|
|
@@ -2173,10 +3173,10 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2173
3173
|
more?: number | undefined;
|
|
2174
3174
|
}>]>>;
|
|
2175
3175
|
}, "strip", z.ZodTypeAny, {
|
|
2176
|
-
status: "
|
|
2177
|
-
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
2178
|
-
title: string;
|
|
3176
|
+
status: "completed" | "failed" | "pending" | "in_progress";
|
|
2179
3177
|
toolCallId: string;
|
|
3178
|
+
title: string;
|
|
3179
|
+
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
2180
3180
|
sessionUpdate: "tool_call";
|
|
2181
3181
|
detail?: {
|
|
2182
3182
|
type: "mcp";
|
|
@@ -2184,10 +3184,41 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2184
3184
|
server: string;
|
|
2185
3185
|
} | {
|
|
2186
3186
|
type: "subagent";
|
|
2187
|
-
action: "message" | "
|
|
3187
|
+
action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
|
|
3188
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
3189
|
+
model?: string | undefined;
|
|
2188
3190
|
task?: string | undefined;
|
|
2189
3191
|
agentType?: string | undefined;
|
|
2190
|
-
|
|
3192
|
+
workflow?: {
|
|
3193
|
+
completed?: number | undefined;
|
|
3194
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
3195
|
+
tokens?: number | undefined;
|
|
3196
|
+
durationMs?: number | undefined;
|
|
3197
|
+
startedAt?: number | undefined;
|
|
3198
|
+
endedAt?: number | undefined;
|
|
3199
|
+
runId?: string | undefined;
|
|
3200
|
+
name?: string | undefined;
|
|
3201
|
+
started?: number | undefined;
|
|
3202
|
+
phases?: {
|
|
3203
|
+
id: string;
|
|
3204
|
+
title: string;
|
|
3205
|
+
order: number;
|
|
3206
|
+
}[] | undefined;
|
|
3207
|
+
agents?: {
|
|
3208
|
+
id: string;
|
|
3209
|
+
title: string;
|
|
3210
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
3211
|
+
toolCallId?: string | undefined;
|
|
3212
|
+
phaseId?: string | undefined;
|
|
3213
|
+
model?: string | undefined;
|
|
3214
|
+
tokens?: number | undefined;
|
|
3215
|
+
toolCalls?: number | undefined;
|
|
3216
|
+
durationMs?: number | undefined;
|
|
3217
|
+
startedAt?: number | undefined;
|
|
3218
|
+
endedAt?: number | undefined;
|
|
3219
|
+
result?: string | undefined;
|
|
3220
|
+
}[] | undefined;
|
|
3221
|
+
} | undefined;
|
|
2191
3222
|
} | {
|
|
2192
3223
|
type: "skill";
|
|
2193
3224
|
name: string;
|
|
@@ -2208,6 +3239,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2208
3239
|
text: string;
|
|
2209
3240
|
more?: number | undefined;
|
|
2210
3241
|
} | undefined;
|
|
3242
|
+
parentToolCallId?: string | undefined;
|
|
2211
3243
|
content?: ({
|
|
2212
3244
|
type: "content";
|
|
2213
3245
|
content: {
|
|
@@ -2239,17 +3271,16 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2239
3271
|
type: "terminal";
|
|
2240
3272
|
terminalId: string;
|
|
2241
3273
|
})[] | undefined;
|
|
2242
|
-
parentToolCallId?: string | undefined;
|
|
2243
3274
|
rawInput?: unknown;
|
|
2244
3275
|
locations?: {
|
|
2245
3276
|
path: string;
|
|
2246
3277
|
line?: number | undefined;
|
|
2247
3278
|
}[] | undefined;
|
|
2248
3279
|
}, {
|
|
2249
|
-
status: "
|
|
2250
|
-
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
2251
|
-
title: string;
|
|
3280
|
+
status: "completed" | "failed" | "pending" | "in_progress";
|
|
2252
3281
|
toolCallId: string;
|
|
3282
|
+
title: string;
|
|
3283
|
+
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
2253
3284
|
sessionUpdate: "tool_call";
|
|
2254
3285
|
detail?: {
|
|
2255
3286
|
type: "mcp";
|
|
@@ -2257,10 +3288,41 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2257
3288
|
server: string;
|
|
2258
3289
|
} | {
|
|
2259
3290
|
type: "subagent";
|
|
3291
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
3292
|
+
model?: string | undefined;
|
|
2260
3293
|
task?: string | undefined;
|
|
2261
3294
|
agentType?: string | undefined;
|
|
2262
|
-
|
|
2263
|
-
|
|
3295
|
+
workflow?: {
|
|
3296
|
+
completed?: number | undefined;
|
|
3297
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
3298
|
+
tokens?: number | undefined;
|
|
3299
|
+
durationMs?: number | undefined;
|
|
3300
|
+
startedAt?: number | undefined;
|
|
3301
|
+
endedAt?: number | undefined;
|
|
3302
|
+
runId?: string | undefined;
|
|
3303
|
+
name?: string | undefined;
|
|
3304
|
+
started?: number | undefined;
|
|
3305
|
+
phases?: {
|
|
3306
|
+
id: string;
|
|
3307
|
+
title: string;
|
|
3308
|
+
order: number;
|
|
3309
|
+
}[] | undefined;
|
|
3310
|
+
agents?: {
|
|
3311
|
+
id: string;
|
|
3312
|
+
title: string;
|
|
3313
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
3314
|
+
toolCallId?: string | undefined;
|
|
3315
|
+
phaseId?: string | undefined;
|
|
3316
|
+
model?: string | undefined;
|
|
3317
|
+
tokens?: number | undefined;
|
|
3318
|
+
toolCalls?: number | undefined;
|
|
3319
|
+
durationMs?: number | undefined;
|
|
3320
|
+
startedAt?: number | undefined;
|
|
3321
|
+
endedAt?: number | undefined;
|
|
3322
|
+
result?: string | undefined;
|
|
3323
|
+
}[] | undefined;
|
|
3324
|
+
} | undefined;
|
|
3325
|
+
action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
|
|
2264
3326
|
} | {
|
|
2265
3327
|
type: "skill";
|
|
2266
3328
|
name: string;
|
|
@@ -2281,6 +3343,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2281
3343
|
text: string;
|
|
2282
3344
|
more?: number | undefined;
|
|
2283
3345
|
} | undefined;
|
|
3346
|
+
parentToolCallId?: string | undefined;
|
|
2284
3347
|
content?: ({
|
|
2285
3348
|
type: "content";
|
|
2286
3349
|
content: {
|
|
@@ -2312,7 +3375,6 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2312
3375
|
type: "terminal";
|
|
2313
3376
|
terminalId: string;
|
|
2314
3377
|
})[] | undefined;
|
|
2315
|
-
parentToolCallId?: string | undefined;
|
|
2316
3378
|
rawInput?: unknown;
|
|
2317
3379
|
locations?: {
|
|
2318
3380
|
path: string;
|
|
@@ -2344,18 +3406,205 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2344
3406
|
/** The sub-agent's role or type, e.g. "Explore". */
|
|
2345
3407
|
agentType: z.ZodOptional<z.ZodString>;
|
|
2346
3408
|
model: z.ZodOptional<z.ZodString>;
|
|
3409
|
+
/** Agent outcome when a tool's coarse completed/failed state is insufficient. */
|
|
3410
|
+
state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
|
|
3411
|
+
/** A Claude workflow is a background run containing its own agents. Counts are observed, not a predicted total. */
|
|
3412
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
3413
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
3414
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3415
|
+
state: z.ZodOptional<z.ZodEnum<["running", "paused", "completed", "failed", "stopped"]>>;
|
|
3416
|
+
started: z.ZodOptional<z.ZodNumber>;
|
|
3417
|
+
completed: z.ZodOptional<z.ZodNumber>;
|
|
3418
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
3419
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3420
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
3421
|
+
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
3422
|
+
phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3423
|
+
id: z.ZodString;
|
|
3424
|
+
title: z.ZodString;
|
|
3425
|
+
order: z.ZodNumber;
|
|
3426
|
+
}, "strip", z.ZodTypeAny, {
|
|
3427
|
+
id: string;
|
|
3428
|
+
title: string;
|
|
3429
|
+
order: number;
|
|
3430
|
+
}, {
|
|
3431
|
+
id: string;
|
|
3432
|
+
title: string;
|
|
3433
|
+
order: number;
|
|
3434
|
+
}>, "many">>;
|
|
3435
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3436
|
+
id: z.ZodString;
|
|
3437
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
3438
|
+
title: z.ZodString;
|
|
3439
|
+
state: z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>;
|
|
3440
|
+
phaseId: z.ZodOptional<z.ZodString>;
|
|
3441
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3442
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
3443
|
+
toolCalls: z.ZodOptional<z.ZodNumber>;
|
|
3444
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3445
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
3446
|
+
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
3447
|
+
result: z.ZodOptional<z.ZodString>;
|
|
3448
|
+
}, "strip", z.ZodTypeAny, {
|
|
3449
|
+
id: string;
|
|
3450
|
+
title: string;
|
|
3451
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
3452
|
+
toolCallId?: string | undefined;
|
|
3453
|
+
phaseId?: string | undefined;
|
|
3454
|
+
model?: string | undefined;
|
|
3455
|
+
tokens?: number | undefined;
|
|
3456
|
+
toolCalls?: number | undefined;
|
|
3457
|
+
durationMs?: number | undefined;
|
|
3458
|
+
startedAt?: number | undefined;
|
|
3459
|
+
endedAt?: number | undefined;
|
|
3460
|
+
result?: string | undefined;
|
|
3461
|
+
}, {
|
|
3462
|
+
id: string;
|
|
3463
|
+
title: string;
|
|
3464
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
3465
|
+
toolCallId?: string | undefined;
|
|
3466
|
+
phaseId?: string | undefined;
|
|
3467
|
+
model?: string | undefined;
|
|
3468
|
+
tokens?: number | undefined;
|
|
3469
|
+
toolCalls?: number | undefined;
|
|
3470
|
+
durationMs?: number | undefined;
|
|
3471
|
+
startedAt?: number | undefined;
|
|
3472
|
+
endedAt?: number | undefined;
|
|
3473
|
+
result?: string | undefined;
|
|
3474
|
+
}>, "many">>;
|
|
3475
|
+
}, "strip", z.ZodTypeAny, {
|
|
3476
|
+
completed?: number | undefined;
|
|
3477
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
3478
|
+
tokens?: number | undefined;
|
|
3479
|
+
durationMs?: number | undefined;
|
|
3480
|
+
startedAt?: number | undefined;
|
|
3481
|
+
endedAt?: number | undefined;
|
|
3482
|
+
runId?: string | undefined;
|
|
3483
|
+
name?: string | undefined;
|
|
3484
|
+
started?: number | undefined;
|
|
3485
|
+
phases?: {
|
|
3486
|
+
id: string;
|
|
3487
|
+
title: string;
|
|
3488
|
+
order: number;
|
|
3489
|
+
}[] | undefined;
|
|
3490
|
+
agents?: {
|
|
3491
|
+
id: string;
|
|
3492
|
+
title: string;
|
|
3493
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
3494
|
+
toolCallId?: string | undefined;
|
|
3495
|
+
phaseId?: string | undefined;
|
|
3496
|
+
model?: string | undefined;
|
|
3497
|
+
tokens?: number | undefined;
|
|
3498
|
+
toolCalls?: number | undefined;
|
|
3499
|
+
durationMs?: number | undefined;
|
|
3500
|
+
startedAt?: number | undefined;
|
|
3501
|
+
endedAt?: number | undefined;
|
|
3502
|
+
result?: string | undefined;
|
|
3503
|
+
}[] | undefined;
|
|
3504
|
+
}, {
|
|
3505
|
+
completed?: number | undefined;
|
|
3506
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
3507
|
+
tokens?: number | undefined;
|
|
3508
|
+
durationMs?: number | undefined;
|
|
3509
|
+
startedAt?: number | undefined;
|
|
3510
|
+
endedAt?: number | undefined;
|
|
3511
|
+
runId?: string | undefined;
|
|
3512
|
+
name?: string | undefined;
|
|
3513
|
+
started?: number | undefined;
|
|
3514
|
+
phases?: {
|
|
3515
|
+
id: string;
|
|
3516
|
+
title: string;
|
|
3517
|
+
order: number;
|
|
3518
|
+
}[] | undefined;
|
|
3519
|
+
agents?: {
|
|
3520
|
+
id: string;
|
|
3521
|
+
title: string;
|
|
3522
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
3523
|
+
toolCallId?: string | undefined;
|
|
3524
|
+
phaseId?: string | undefined;
|
|
3525
|
+
model?: string | undefined;
|
|
3526
|
+
tokens?: number | undefined;
|
|
3527
|
+
toolCalls?: number | undefined;
|
|
3528
|
+
durationMs?: number | undefined;
|
|
3529
|
+
startedAt?: number | undefined;
|
|
3530
|
+
endedAt?: number | undefined;
|
|
3531
|
+
result?: string | undefined;
|
|
3532
|
+
}[] | undefined;
|
|
3533
|
+
}>>;
|
|
2347
3534
|
}, "strip", z.ZodTypeAny, {
|
|
2348
3535
|
type: "subagent";
|
|
2349
|
-
action: "message" | "
|
|
3536
|
+
action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
|
|
3537
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
3538
|
+
model?: string | undefined;
|
|
2350
3539
|
task?: string | undefined;
|
|
2351
3540
|
agentType?: string | undefined;
|
|
2352
|
-
|
|
3541
|
+
workflow?: {
|
|
3542
|
+
completed?: number | undefined;
|
|
3543
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
3544
|
+
tokens?: number | undefined;
|
|
3545
|
+
durationMs?: number | undefined;
|
|
3546
|
+
startedAt?: number | undefined;
|
|
3547
|
+
endedAt?: number | undefined;
|
|
3548
|
+
runId?: string | undefined;
|
|
3549
|
+
name?: string | undefined;
|
|
3550
|
+
started?: number | undefined;
|
|
3551
|
+
phases?: {
|
|
3552
|
+
id: string;
|
|
3553
|
+
title: string;
|
|
3554
|
+
order: number;
|
|
3555
|
+
}[] | undefined;
|
|
3556
|
+
agents?: {
|
|
3557
|
+
id: string;
|
|
3558
|
+
title: string;
|
|
3559
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
3560
|
+
toolCallId?: string | undefined;
|
|
3561
|
+
phaseId?: string | undefined;
|
|
3562
|
+
model?: string | undefined;
|
|
3563
|
+
tokens?: number | undefined;
|
|
3564
|
+
toolCalls?: number | undefined;
|
|
3565
|
+
durationMs?: number | undefined;
|
|
3566
|
+
startedAt?: number | undefined;
|
|
3567
|
+
endedAt?: number | undefined;
|
|
3568
|
+
result?: string | undefined;
|
|
3569
|
+
}[] | undefined;
|
|
3570
|
+
} | undefined;
|
|
2353
3571
|
}, {
|
|
2354
3572
|
type: "subagent";
|
|
3573
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
3574
|
+
model?: string | undefined;
|
|
2355
3575
|
task?: string | undefined;
|
|
2356
3576
|
agentType?: string | undefined;
|
|
2357
|
-
|
|
2358
|
-
|
|
3577
|
+
workflow?: {
|
|
3578
|
+
completed?: number | undefined;
|
|
3579
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
3580
|
+
tokens?: number | undefined;
|
|
3581
|
+
durationMs?: number | undefined;
|
|
3582
|
+
startedAt?: number | undefined;
|
|
3583
|
+
endedAt?: number | undefined;
|
|
3584
|
+
runId?: string | undefined;
|
|
3585
|
+
name?: string | undefined;
|
|
3586
|
+
started?: number | undefined;
|
|
3587
|
+
phases?: {
|
|
3588
|
+
id: string;
|
|
3589
|
+
title: string;
|
|
3590
|
+
order: number;
|
|
3591
|
+
}[] | undefined;
|
|
3592
|
+
agents?: {
|
|
3593
|
+
id: string;
|
|
3594
|
+
title: string;
|
|
3595
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
3596
|
+
toolCallId?: string | undefined;
|
|
3597
|
+
phaseId?: string | undefined;
|
|
3598
|
+
model?: string | undefined;
|
|
3599
|
+
tokens?: number | undefined;
|
|
3600
|
+
toolCalls?: number | undefined;
|
|
3601
|
+
durationMs?: number | undefined;
|
|
3602
|
+
startedAt?: number | undefined;
|
|
3603
|
+
endedAt?: number | undefined;
|
|
3604
|
+
result?: string | undefined;
|
|
3605
|
+
}[] | undefined;
|
|
3606
|
+
} | undefined;
|
|
3607
|
+
action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
|
|
2359
3608
|
}>, z.ZodObject<{
|
|
2360
3609
|
type: z.ZodLiteral<"skill">;
|
|
2361
3610
|
name: z.ZodString;
|
|
@@ -2539,7 +3788,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2539
3788
|
}, "strip", z.ZodTypeAny, {
|
|
2540
3789
|
toolCallId: string;
|
|
2541
3790
|
sessionUpdate: "tool_call_update";
|
|
2542
|
-
status?: "
|
|
3791
|
+
status?: "completed" | "failed" | "pending" | "in_progress" | undefined;
|
|
2543
3792
|
title?: string | undefined;
|
|
2544
3793
|
detail?: {
|
|
2545
3794
|
type: "mcp";
|
|
@@ -2547,10 +3796,41 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2547
3796
|
server: string;
|
|
2548
3797
|
} | {
|
|
2549
3798
|
type: "subagent";
|
|
2550
|
-
action: "message" | "
|
|
3799
|
+
action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
|
|
3800
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
3801
|
+
model?: string | undefined;
|
|
2551
3802
|
task?: string | undefined;
|
|
2552
3803
|
agentType?: string | undefined;
|
|
2553
|
-
|
|
3804
|
+
workflow?: {
|
|
3805
|
+
completed?: number | undefined;
|
|
3806
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
3807
|
+
tokens?: number | undefined;
|
|
3808
|
+
durationMs?: number | undefined;
|
|
3809
|
+
startedAt?: number | undefined;
|
|
3810
|
+
endedAt?: number | undefined;
|
|
3811
|
+
runId?: string | undefined;
|
|
3812
|
+
name?: string | undefined;
|
|
3813
|
+
started?: number | undefined;
|
|
3814
|
+
phases?: {
|
|
3815
|
+
id: string;
|
|
3816
|
+
title: string;
|
|
3817
|
+
order: number;
|
|
3818
|
+
}[] | undefined;
|
|
3819
|
+
agents?: {
|
|
3820
|
+
id: string;
|
|
3821
|
+
title: string;
|
|
3822
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
3823
|
+
toolCallId?: string | undefined;
|
|
3824
|
+
phaseId?: string | undefined;
|
|
3825
|
+
model?: string | undefined;
|
|
3826
|
+
tokens?: number | undefined;
|
|
3827
|
+
toolCalls?: number | undefined;
|
|
3828
|
+
durationMs?: number | undefined;
|
|
3829
|
+
startedAt?: number | undefined;
|
|
3830
|
+
endedAt?: number | undefined;
|
|
3831
|
+
result?: string | undefined;
|
|
3832
|
+
}[] | undefined;
|
|
3833
|
+
} | undefined;
|
|
2554
3834
|
} | {
|
|
2555
3835
|
type: "skill";
|
|
2556
3836
|
name: string;
|
|
@@ -2571,6 +3851,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2571
3851
|
text: string;
|
|
2572
3852
|
more?: number | undefined;
|
|
2573
3853
|
} | undefined;
|
|
3854
|
+
parentToolCallId?: string | undefined;
|
|
2574
3855
|
content?: ({
|
|
2575
3856
|
type: "content";
|
|
2576
3857
|
content: {
|
|
@@ -2602,13 +3883,12 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2602
3883
|
type: "terminal";
|
|
2603
3884
|
terminalId: string;
|
|
2604
3885
|
})[] | undefined;
|
|
2605
|
-
parentToolCallId?: string | undefined;
|
|
2606
3886
|
appendOutput?: string | undefined;
|
|
2607
3887
|
rawOutput?: unknown;
|
|
2608
3888
|
}, {
|
|
2609
3889
|
toolCallId: string;
|
|
2610
3890
|
sessionUpdate: "tool_call_update";
|
|
2611
|
-
status?: "
|
|
3891
|
+
status?: "completed" | "failed" | "pending" | "in_progress" | undefined;
|
|
2612
3892
|
title?: string | undefined;
|
|
2613
3893
|
detail?: {
|
|
2614
3894
|
type: "mcp";
|
|
@@ -2616,10 +3896,41 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2616
3896
|
server: string;
|
|
2617
3897
|
} | {
|
|
2618
3898
|
type: "subagent";
|
|
3899
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
3900
|
+
model?: string | undefined;
|
|
2619
3901
|
task?: string | undefined;
|
|
2620
3902
|
agentType?: string | undefined;
|
|
2621
|
-
|
|
2622
|
-
|
|
3903
|
+
workflow?: {
|
|
3904
|
+
completed?: number | undefined;
|
|
3905
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
3906
|
+
tokens?: number | undefined;
|
|
3907
|
+
durationMs?: number | undefined;
|
|
3908
|
+
startedAt?: number | undefined;
|
|
3909
|
+
endedAt?: number | undefined;
|
|
3910
|
+
runId?: string | undefined;
|
|
3911
|
+
name?: string | undefined;
|
|
3912
|
+
started?: number | undefined;
|
|
3913
|
+
phases?: {
|
|
3914
|
+
id: string;
|
|
3915
|
+
title: string;
|
|
3916
|
+
order: number;
|
|
3917
|
+
}[] | undefined;
|
|
3918
|
+
agents?: {
|
|
3919
|
+
id: string;
|
|
3920
|
+
title: string;
|
|
3921
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
3922
|
+
toolCallId?: string | undefined;
|
|
3923
|
+
phaseId?: string | undefined;
|
|
3924
|
+
model?: string | undefined;
|
|
3925
|
+
tokens?: number | undefined;
|
|
3926
|
+
toolCalls?: number | undefined;
|
|
3927
|
+
durationMs?: number | undefined;
|
|
3928
|
+
startedAt?: number | undefined;
|
|
3929
|
+
endedAt?: number | undefined;
|
|
3930
|
+
result?: string | undefined;
|
|
3931
|
+
}[] | undefined;
|
|
3932
|
+
} | undefined;
|
|
3933
|
+
action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
|
|
2623
3934
|
} | {
|
|
2624
3935
|
type: "skill";
|
|
2625
3936
|
name: string;
|
|
@@ -2640,6 +3951,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2640
3951
|
text: string;
|
|
2641
3952
|
more?: number | undefined;
|
|
2642
3953
|
} | undefined;
|
|
3954
|
+
parentToolCallId?: string | undefined;
|
|
2643
3955
|
content?: ({
|
|
2644
3956
|
type: "content";
|
|
2645
3957
|
content: {
|
|
@@ -2671,7 +3983,6 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2671
3983
|
type: "terminal";
|
|
2672
3984
|
terminalId: string;
|
|
2673
3985
|
})[] | undefined;
|
|
2674
|
-
parentToolCallId?: string | undefined;
|
|
2675
3986
|
appendOutput?: string | undefined;
|
|
2676
3987
|
rawOutput?: unknown;
|
|
2677
3988
|
}>, z.ZodObject<{
|
|
@@ -2681,28 +3992,77 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2681
3992
|
priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
|
|
2682
3993
|
status: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
2683
3994
|
}, "strip", z.ZodTypeAny, {
|
|
2684
|
-
status: "
|
|
3995
|
+
status: "completed" | "pending" | "in_progress";
|
|
2685
3996
|
content: string;
|
|
2686
3997
|
priority: "high" | "medium" | "low";
|
|
2687
3998
|
}, {
|
|
2688
|
-
status: "
|
|
3999
|
+
status: "completed" | "pending" | "in_progress";
|
|
2689
4000
|
content: string;
|
|
2690
4001
|
priority?: "high" | "medium" | "low" | undefined;
|
|
2691
4002
|
}>, "many">;
|
|
2692
4003
|
}, "strip", z.ZodTypeAny, {
|
|
2693
4004
|
entries: {
|
|
2694
|
-
status: "
|
|
4005
|
+
status: "completed" | "pending" | "in_progress";
|
|
2695
4006
|
content: string;
|
|
2696
4007
|
priority: "high" | "medium" | "low";
|
|
2697
4008
|
}[];
|
|
2698
4009
|
sessionUpdate: "plan";
|
|
2699
4010
|
}, {
|
|
2700
4011
|
entries: {
|
|
2701
|
-
status: "
|
|
4012
|
+
status: "completed" | "pending" | "in_progress";
|
|
2702
4013
|
content: string;
|
|
2703
4014
|
priority?: "high" | "medium" | "low" | undefined;
|
|
2704
4015
|
}[];
|
|
2705
4016
|
sessionUpdate: "plan";
|
|
4017
|
+
}>, z.ZodObject<{
|
|
4018
|
+
sessionUpdate: z.ZodLiteral<"ls_goal">;
|
|
4019
|
+
goal: z.ZodNullable<z.ZodObject<{
|
|
4020
|
+
objective: z.ZodString;
|
|
4021
|
+
status: z.ZodEnum<["active", "paused", "blocked", "usageLimited", "budgetLimited", "complete"]>;
|
|
4022
|
+
tokenBudget: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4023
|
+
tokensUsed: z.ZodOptional<z.ZodNumber>;
|
|
4024
|
+
timeUsedSeconds: z.ZodOptional<z.ZodNumber>;
|
|
4025
|
+
iterations: z.ZodOptional<z.ZodNumber>;
|
|
4026
|
+
lastReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4027
|
+
}, "strip", z.ZodTypeAny, {
|
|
4028
|
+
status: "paused" | "active" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
4029
|
+
objective: string;
|
|
4030
|
+
tokenBudget?: number | null | undefined;
|
|
4031
|
+
tokensUsed?: number | undefined;
|
|
4032
|
+
timeUsedSeconds?: number | undefined;
|
|
4033
|
+
iterations?: number | undefined;
|
|
4034
|
+
lastReason?: string | null | undefined;
|
|
4035
|
+
}, {
|
|
4036
|
+
status: "paused" | "active" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
4037
|
+
objective: string;
|
|
4038
|
+
tokenBudget?: number | null | undefined;
|
|
4039
|
+
tokensUsed?: number | undefined;
|
|
4040
|
+
timeUsedSeconds?: number | undefined;
|
|
4041
|
+
iterations?: number | undefined;
|
|
4042
|
+
lastReason?: string | null | undefined;
|
|
4043
|
+
}>>;
|
|
4044
|
+
}, "strip", z.ZodTypeAny, {
|
|
4045
|
+
sessionUpdate: "ls_goal";
|
|
4046
|
+
goal: {
|
|
4047
|
+
status: "paused" | "active" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
4048
|
+
objective: string;
|
|
4049
|
+
tokenBudget?: number | null | undefined;
|
|
4050
|
+
tokensUsed?: number | undefined;
|
|
4051
|
+
timeUsedSeconds?: number | undefined;
|
|
4052
|
+
iterations?: number | undefined;
|
|
4053
|
+
lastReason?: string | null | undefined;
|
|
4054
|
+
} | null;
|
|
4055
|
+
}, {
|
|
4056
|
+
sessionUpdate: "ls_goal";
|
|
4057
|
+
goal: {
|
|
4058
|
+
status: "paused" | "active" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
4059
|
+
objective: string;
|
|
4060
|
+
tokenBudget?: number | null | undefined;
|
|
4061
|
+
tokensUsed?: number | undefined;
|
|
4062
|
+
timeUsedSeconds?: number | undefined;
|
|
4063
|
+
iterations?: number | undefined;
|
|
4064
|
+
lastReason?: string | null | undefined;
|
|
4065
|
+
} | null;
|
|
2706
4066
|
}>, z.ZodObject<{
|
|
2707
4067
|
sessionUpdate: z.ZodLiteral<"available_commands_update">;
|
|
2708
4068
|
availableCommands: z.ZodArray<z.ZodObject<{
|
|
@@ -2809,7 +4169,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2809
4169
|
}[];
|
|
2810
4170
|
id: string;
|
|
2811
4171
|
name: string;
|
|
2812
|
-
category: "
|
|
4172
|
+
category: "model" | "other" | "mode" | "effort";
|
|
2813
4173
|
current: string;
|
|
2814
4174
|
}, {
|
|
2815
4175
|
values: {
|
|
@@ -2820,7 +4180,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2820
4180
|
id: string;
|
|
2821
4181
|
name: string;
|
|
2822
4182
|
current: string;
|
|
2823
|
-
category?: "
|
|
4183
|
+
category?: "model" | "other" | "mode" | "effort" | undefined;
|
|
2824
4184
|
}>, "many">;
|
|
2825
4185
|
}, "strip", z.ZodTypeAny, {
|
|
2826
4186
|
options: {
|
|
@@ -2831,7 +4191,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2831
4191
|
}[];
|
|
2832
4192
|
id: string;
|
|
2833
4193
|
name: string;
|
|
2834
|
-
category: "
|
|
4194
|
+
category: "model" | "other" | "mode" | "effort";
|
|
2835
4195
|
current: string;
|
|
2836
4196
|
}[];
|
|
2837
4197
|
sessionUpdate: "ls_config";
|
|
@@ -2845,7 +4205,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2845
4205
|
id: string;
|
|
2846
4206
|
name: string;
|
|
2847
4207
|
current: string;
|
|
2848
|
-
category?: "
|
|
4208
|
+
category?: "model" | "other" | "mode" | "effort" | undefined;
|
|
2849
4209
|
}[];
|
|
2850
4210
|
sessionUpdate: "ls_config";
|
|
2851
4211
|
}>, z.ZodObject<{
|
|
@@ -2893,12 +4253,12 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2893
4253
|
name: z.ZodString;
|
|
2894
4254
|
kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
|
|
2895
4255
|
}, "strip", z.ZodTypeAny, {
|
|
2896
|
-
optionId: string;
|
|
2897
4256
|
name: string;
|
|
4257
|
+
optionId: string;
|
|
2898
4258
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
2899
4259
|
}, {
|
|
2900
|
-
optionId: string;
|
|
2901
4260
|
name: string;
|
|
4261
|
+
optionId: string;
|
|
2902
4262
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
2903
4263
|
}>, "many">;
|
|
2904
4264
|
/**
|
|
@@ -2956,8 +4316,8 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2956
4316
|
}>, "many">>;
|
|
2957
4317
|
}, "strip", z.ZodTypeAny, {
|
|
2958
4318
|
options: {
|
|
2959
|
-
optionId: string;
|
|
2960
4319
|
name: string;
|
|
4320
|
+
optionId: string;
|
|
2961
4321
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
2962
4322
|
}[];
|
|
2963
4323
|
title: string;
|
|
@@ -2981,8 +4341,8 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2981
4341
|
}[] | undefined;
|
|
2982
4342
|
}, {
|
|
2983
4343
|
options: {
|
|
2984
|
-
optionId: string;
|
|
2985
4344
|
name: string;
|
|
4345
|
+
optionId: string;
|
|
2986
4346
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
2987
4347
|
}[];
|
|
2988
4348
|
title: string;
|
|
@@ -3056,11 +4416,90 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3056
4416
|
sessionUpdate: z.ZodLiteral<"ls_status">;
|
|
3057
4417
|
state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
|
|
3058
4418
|
}, "strip", z.ZodTypeAny, {
|
|
3059
|
-
state: "
|
|
4419
|
+
state: "running" | "idle" | "waiting" | "error" | "offline";
|
|
3060
4420
|
sessionUpdate: "ls_status";
|
|
3061
4421
|
}, {
|
|
3062
|
-
state: "
|
|
4422
|
+
state: "running" | "idle" | "waiting" | "error" | "offline";
|
|
3063
4423
|
sessionUpdate: "ls_status";
|
|
4424
|
+
}>, z.ZodObject<{
|
|
4425
|
+
sessionUpdate: z.ZodLiteral<"ls_task">;
|
|
4426
|
+
task: z.ZodObject<{
|
|
4427
|
+
id: z.ZodString;
|
|
4428
|
+
kind: z.ZodEnum<["shell", "monitor"]>;
|
|
4429
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
4430
|
+
title: z.ZodString;
|
|
4431
|
+
command: z.ZodOptional<z.ZodString>;
|
|
4432
|
+
state: z.ZodEnum<["running", "completed", "failed", "stopped", "unknown"]>;
|
|
4433
|
+
startedAt: z.ZodNumber;
|
|
4434
|
+
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
4435
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
4436
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
4437
|
+
output: z.ZodOptional<z.ZodBoolean>;
|
|
4438
|
+
canStop: z.ZodOptional<z.ZodBoolean>;
|
|
4439
|
+
lastSeq: z.ZodOptional<z.ZodNumber>;
|
|
4440
|
+
}, "strip", z.ZodTypeAny, {
|
|
4441
|
+
id: string;
|
|
4442
|
+
title: string;
|
|
4443
|
+
state: "running" | "completed" | "failed" | "stopped" | "unknown";
|
|
4444
|
+
startedAt: number;
|
|
4445
|
+
kind: "shell" | "monitor";
|
|
4446
|
+
toolCallId?: string | undefined;
|
|
4447
|
+
endedAt?: number | undefined;
|
|
4448
|
+
lastSeq?: number | undefined;
|
|
4449
|
+
command?: string | undefined;
|
|
4450
|
+
summary?: string | undefined;
|
|
4451
|
+
exitCode?: number | undefined;
|
|
4452
|
+
output?: boolean | undefined;
|
|
4453
|
+
canStop?: boolean | undefined;
|
|
4454
|
+
}, {
|
|
4455
|
+
id: string;
|
|
4456
|
+
title: string;
|
|
4457
|
+
state: "running" | "completed" | "failed" | "stopped" | "unknown";
|
|
4458
|
+
startedAt: number;
|
|
4459
|
+
kind: "shell" | "monitor";
|
|
4460
|
+
toolCallId?: string | undefined;
|
|
4461
|
+
endedAt?: number | undefined;
|
|
4462
|
+
lastSeq?: number | undefined;
|
|
4463
|
+
command?: string | undefined;
|
|
4464
|
+
summary?: string | undefined;
|
|
4465
|
+
exitCode?: number | undefined;
|
|
4466
|
+
output?: boolean | undefined;
|
|
4467
|
+
canStop?: boolean | undefined;
|
|
4468
|
+
}>;
|
|
4469
|
+
}, "strip", z.ZodTypeAny, {
|
|
4470
|
+
task: {
|
|
4471
|
+
id: string;
|
|
4472
|
+
title: string;
|
|
4473
|
+
state: "running" | "completed" | "failed" | "stopped" | "unknown";
|
|
4474
|
+
startedAt: number;
|
|
4475
|
+
kind: "shell" | "monitor";
|
|
4476
|
+
toolCallId?: string | undefined;
|
|
4477
|
+
endedAt?: number | undefined;
|
|
4478
|
+
lastSeq?: number | undefined;
|
|
4479
|
+
command?: string | undefined;
|
|
4480
|
+
summary?: string | undefined;
|
|
4481
|
+
exitCode?: number | undefined;
|
|
4482
|
+
output?: boolean | undefined;
|
|
4483
|
+
canStop?: boolean | undefined;
|
|
4484
|
+
};
|
|
4485
|
+
sessionUpdate: "ls_task";
|
|
4486
|
+
}, {
|
|
4487
|
+
task: {
|
|
4488
|
+
id: string;
|
|
4489
|
+
title: string;
|
|
4490
|
+
state: "running" | "completed" | "failed" | "stopped" | "unknown";
|
|
4491
|
+
startedAt: number;
|
|
4492
|
+
kind: "shell" | "monitor";
|
|
4493
|
+
toolCallId?: string | undefined;
|
|
4494
|
+
endedAt?: number | undefined;
|
|
4495
|
+
lastSeq?: number | undefined;
|
|
4496
|
+
command?: string | undefined;
|
|
4497
|
+
summary?: string | undefined;
|
|
4498
|
+
exitCode?: number | undefined;
|
|
4499
|
+
output?: boolean | undefined;
|
|
4500
|
+
canStop?: boolean | undefined;
|
|
4501
|
+
};
|
|
4502
|
+
sessionUpdate: "ls_task";
|
|
3064
4503
|
}>, z.ZodObject<{
|
|
3065
4504
|
sessionUpdate: z.ZodLiteral<"ls_error">;
|
|
3066
4505
|
code: z.ZodString;
|
|
@@ -3132,10 +4571,10 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3132
4571
|
messageId: string;
|
|
3133
4572
|
parentToolCallId?: string | undefined;
|
|
3134
4573
|
} | {
|
|
3135
|
-
status: "
|
|
3136
|
-
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
3137
|
-
title: string;
|
|
4574
|
+
status: "completed" | "failed" | "pending" | "in_progress";
|
|
3138
4575
|
toolCallId: string;
|
|
4576
|
+
title: string;
|
|
4577
|
+
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
3139
4578
|
sessionUpdate: "tool_call";
|
|
3140
4579
|
detail?: {
|
|
3141
4580
|
type: "mcp";
|
|
@@ -3143,10 +4582,41 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3143
4582
|
server: string;
|
|
3144
4583
|
} | {
|
|
3145
4584
|
type: "subagent";
|
|
3146
|
-
action: "message" | "
|
|
4585
|
+
action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
|
|
4586
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
4587
|
+
model?: string | undefined;
|
|
3147
4588
|
task?: string | undefined;
|
|
3148
4589
|
agentType?: string | undefined;
|
|
3149
|
-
|
|
4590
|
+
workflow?: {
|
|
4591
|
+
completed?: number | undefined;
|
|
4592
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
4593
|
+
tokens?: number | undefined;
|
|
4594
|
+
durationMs?: number | undefined;
|
|
4595
|
+
startedAt?: number | undefined;
|
|
4596
|
+
endedAt?: number | undefined;
|
|
4597
|
+
runId?: string | undefined;
|
|
4598
|
+
name?: string | undefined;
|
|
4599
|
+
started?: number | undefined;
|
|
4600
|
+
phases?: {
|
|
4601
|
+
id: string;
|
|
4602
|
+
title: string;
|
|
4603
|
+
order: number;
|
|
4604
|
+
}[] | undefined;
|
|
4605
|
+
agents?: {
|
|
4606
|
+
id: string;
|
|
4607
|
+
title: string;
|
|
4608
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
4609
|
+
toolCallId?: string | undefined;
|
|
4610
|
+
phaseId?: string | undefined;
|
|
4611
|
+
model?: string | undefined;
|
|
4612
|
+
tokens?: number | undefined;
|
|
4613
|
+
toolCalls?: number | undefined;
|
|
4614
|
+
durationMs?: number | undefined;
|
|
4615
|
+
startedAt?: number | undefined;
|
|
4616
|
+
endedAt?: number | undefined;
|
|
4617
|
+
result?: string | undefined;
|
|
4618
|
+
}[] | undefined;
|
|
4619
|
+
} | undefined;
|
|
3150
4620
|
} | {
|
|
3151
4621
|
type: "skill";
|
|
3152
4622
|
name: string;
|
|
@@ -3167,6 +4637,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3167
4637
|
text: string;
|
|
3168
4638
|
more?: number | undefined;
|
|
3169
4639
|
} | undefined;
|
|
4640
|
+
parentToolCallId?: string | undefined;
|
|
3170
4641
|
content?: ({
|
|
3171
4642
|
type: "content";
|
|
3172
4643
|
content: {
|
|
@@ -3198,7 +4669,6 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3198
4669
|
type: "terminal";
|
|
3199
4670
|
terminalId: string;
|
|
3200
4671
|
})[] | undefined;
|
|
3201
|
-
parentToolCallId?: string | undefined;
|
|
3202
4672
|
rawInput?: unknown;
|
|
3203
4673
|
locations?: {
|
|
3204
4674
|
path: string;
|
|
@@ -3207,7 +4677,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3207
4677
|
} | {
|
|
3208
4678
|
toolCallId: string;
|
|
3209
4679
|
sessionUpdate: "tool_call_update";
|
|
3210
|
-
status?: "
|
|
4680
|
+
status?: "completed" | "failed" | "pending" | "in_progress" | undefined;
|
|
3211
4681
|
title?: string | undefined;
|
|
3212
4682
|
detail?: {
|
|
3213
4683
|
type: "mcp";
|
|
@@ -3215,10 +4685,41 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3215
4685
|
server: string;
|
|
3216
4686
|
} | {
|
|
3217
4687
|
type: "subagent";
|
|
3218
|
-
action: "message" | "
|
|
4688
|
+
action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
|
|
4689
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
4690
|
+
model?: string | undefined;
|
|
3219
4691
|
task?: string | undefined;
|
|
3220
4692
|
agentType?: string | undefined;
|
|
3221
|
-
|
|
4693
|
+
workflow?: {
|
|
4694
|
+
completed?: number | undefined;
|
|
4695
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
4696
|
+
tokens?: number | undefined;
|
|
4697
|
+
durationMs?: number | undefined;
|
|
4698
|
+
startedAt?: number | undefined;
|
|
4699
|
+
endedAt?: number | undefined;
|
|
4700
|
+
runId?: string | undefined;
|
|
4701
|
+
name?: string | undefined;
|
|
4702
|
+
started?: number | undefined;
|
|
4703
|
+
phases?: {
|
|
4704
|
+
id: string;
|
|
4705
|
+
title: string;
|
|
4706
|
+
order: number;
|
|
4707
|
+
}[] | undefined;
|
|
4708
|
+
agents?: {
|
|
4709
|
+
id: string;
|
|
4710
|
+
title: string;
|
|
4711
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
4712
|
+
toolCallId?: string | undefined;
|
|
4713
|
+
phaseId?: string | undefined;
|
|
4714
|
+
model?: string | undefined;
|
|
4715
|
+
tokens?: number | undefined;
|
|
4716
|
+
toolCalls?: number | undefined;
|
|
4717
|
+
durationMs?: number | undefined;
|
|
4718
|
+
startedAt?: number | undefined;
|
|
4719
|
+
endedAt?: number | undefined;
|
|
4720
|
+
result?: string | undefined;
|
|
4721
|
+
}[] | undefined;
|
|
4722
|
+
} | undefined;
|
|
3222
4723
|
} | {
|
|
3223
4724
|
type: "skill";
|
|
3224
4725
|
name: string;
|
|
@@ -3239,6 +4740,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3239
4740
|
text: string;
|
|
3240
4741
|
more?: number | undefined;
|
|
3241
4742
|
} | undefined;
|
|
4743
|
+
parentToolCallId?: string | undefined;
|
|
3242
4744
|
content?: ({
|
|
3243
4745
|
type: "content";
|
|
3244
4746
|
content: {
|
|
@@ -3270,16 +4772,26 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3270
4772
|
type: "terminal";
|
|
3271
4773
|
terminalId: string;
|
|
3272
4774
|
})[] | undefined;
|
|
3273
|
-
parentToolCallId?: string | undefined;
|
|
3274
4775
|
appendOutput?: string | undefined;
|
|
3275
4776
|
rawOutput?: unknown;
|
|
3276
4777
|
} | {
|
|
3277
4778
|
entries: {
|
|
3278
|
-
status: "
|
|
4779
|
+
status: "completed" | "pending" | "in_progress";
|
|
3279
4780
|
content: string;
|
|
3280
4781
|
priority: "high" | "medium" | "low";
|
|
3281
4782
|
}[];
|
|
3282
4783
|
sessionUpdate: "plan";
|
|
4784
|
+
} | {
|
|
4785
|
+
sessionUpdate: "ls_goal";
|
|
4786
|
+
goal: {
|
|
4787
|
+
status: "paused" | "active" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
4788
|
+
objective: string;
|
|
4789
|
+
tokenBudget?: number | null | undefined;
|
|
4790
|
+
tokensUsed?: number | undefined;
|
|
4791
|
+
timeUsedSeconds?: number | undefined;
|
|
4792
|
+
iterations?: number | undefined;
|
|
4793
|
+
lastReason?: string | null | undefined;
|
|
4794
|
+
} | null;
|
|
3283
4795
|
} | {
|
|
3284
4796
|
sessionUpdate: "available_commands_update";
|
|
3285
4797
|
availableCommands: {
|
|
@@ -3312,7 +4824,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3312
4824
|
}[];
|
|
3313
4825
|
id: string;
|
|
3314
4826
|
name: string;
|
|
3315
|
-
category: "
|
|
4827
|
+
category: "model" | "other" | "mode" | "effort";
|
|
3316
4828
|
current: string;
|
|
3317
4829
|
}[];
|
|
3318
4830
|
sessionUpdate: "ls_config";
|
|
@@ -3329,8 +4841,8 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3329
4841
|
stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
|
|
3330
4842
|
} | {
|
|
3331
4843
|
options: {
|
|
3332
|
-
optionId: string;
|
|
3333
4844
|
name: string;
|
|
4845
|
+
optionId: string;
|
|
3334
4846
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
3335
4847
|
}[];
|
|
3336
4848
|
title: string;
|
|
@@ -3366,8 +4878,25 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3366
4878
|
sessionUpdate: "ls_driver";
|
|
3367
4879
|
deviceId?: string | undefined;
|
|
3368
4880
|
} | {
|
|
3369
|
-
state: "
|
|
4881
|
+
state: "running" | "idle" | "waiting" | "error" | "offline";
|
|
3370
4882
|
sessionUpdate: "ls_status";
|
|
4883
|
+
} | {
|
|
4884
|
+
task: {
|
|
4885
|
+
id: string;
|
|
4886
|
+
title: string;
|
|
4887
|
+
state: "running" | "completed" | "failed" | "stopped" | "unknown";
|
|
4888
|
+
startedAt: number;
|
|
4889
|
+
kind: "shell" | "monitor";
|
|
4890
|
+
toolCallId?: string | undefined;
|
|
4891
|
+
endedAt?: number | undefined;
|
|
4892
|
+
lastSeq?: number | undefined;
|
|
4893
|
+
command?: string | undefined;
|
|
4894
|
+
summary?: string | undefined;
|
|
4895
|
+
exitCode?: number | undefined;
|
|
4896
|
+
output?: boolean | undefined;
|
|
4897
|
+
canStop?: boolean | undefined;
|
|
4898
|
+
};
|
|
4899
|
+
sessionUpdate: "ls_task";
|
|
3371
4900
|
} | {
|
|
3372
4901
|
code: string;
|
|
3373
4902
|
message: string;
|
|
@@ -3432,10 +4961,10 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3432
4961
|
messageId: string;
|
|
3433
4962
|
parentToolCallId?: string | undefined;
|
|
3434
4963
|
} | {
|
|
3435
|
-
status: "
|
|
3436
|
-
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
3437
|
-
title: string;
|
|
4964
|
+
status: "completed" | "failed" | "pending" | "in_progress";
|
|
3438
4965
|
toolCallId: string;
|
|
4966
|
+
title: string;
|
|
4967
|
+
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
3439
4968
|
sessionUpdate: "tool_call";
|
|
3440
4969
|
detail?: {
|
|
3441
4970
|
type: "mcp";
|
|
@@ -3443,10 +4972,41 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3443
4972
|
server: string;
|
|
3444
4973
|
} | {
|
|
3445
4974
|
type: "subagent";
|
|
4975
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
4976
|
+
model?: string | undefined;
|
|
3446
4977
|
task?: string | undefined;
|
|
3447
4978
|
agentType?: string | undefined;
|
|
3448
|
-
|
|
3449
|
-
|
|
4979
|
+
workflow?: {
|
|
4980
|
+
completed?: number | undefined;
|
|
4981
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
4982
|
+
tokens?: number | undefined;
|
|
4983
|
+
durationMs?: number | undefined;
|
|
4984
|
+
startedAt?: number | undefined;
|
|
4985
|
+
endedAt?: number | undefined;
|
|
4986
|
+
runId?: string | undefined;
|
|
4987
|
+
name?: string | undefined;
|
|
4988
|
+
started?: number | undefined;
|
|
4989
|
+
phases?: {
|
|
4990
|
+
id: string;
|
|
4991
|
+
title: string;
|
|
4992
|
+
order: number;
|
|
4993
|
+
}[] | undefined;
|
|
4994
|
+
agents?: {
|
|
4995
|
+
id: string;
|
|
4996
|
+
title: string;
|
|
4997
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
4998
|
+
toolCallId?: string | undefined;
|
|
4999
|
+
phaseId?: string | undefined;
|
|
5000
|
+
model?: string | undefined;
|
|
5001
|
+
tokens?: number | undefined;
|
|
5002
|
+
toolCalls?: number | undefined;
|
|
5003
|
+
durationMs?: number | undefined;
|
|
5004
|
+
startedAt?: number | undefined;
|
|
5005
|
+
endedAt?: number | undefined;
|
|
5006
|
+
result?: string | undefined;
|
|
5007
|
+
}[] | undefined;
|
|
5008
|
+
} | undefined;
|
|
5009
|
+
action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
|
|
3450
5010
|
} | {
|
|
3451
5011
|
type: "skill";
|
|
3452
5012
|
name: string;
|
|
@@ -3467,6 +5027,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3467
5027
|
text: string;
|
|
3468
5028
|
more?: number | undefined;
|
|
3469
5029
|
} | undefined;
|
|
5030
|
+
parentToolCallId?: string | undefined;
|
|
3470
5031
|
content?: ({
|
|
3471
5032
|
type: "content";
|
|
3472
5033
|
content: {
|
|
@@ -3498,7 +5059,6 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3498
5059
|
type: "terminal";
|
|
3499
5060
|
terminalId: string;
|
|
3500
5061
|
})[] | undefined;
|
|
3501
|
-
parentToolCallId?: string | undefined;
|
|
3502
5062
|
rawInput?: unknown;
|
|
3503
5063
|
locations?: {
|
|
3504
5064
|
path: string;
|
|
@@ -3507,7 +5067,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3507
5067
|
} | {
|
|
3508
5068
|
toolCallId: string;
|
|
3509
5069
|
sessionUpdate: "tool_call_update";
|
|
3510
|
-
status?: "
|
|
5070
|
+
status?: "completed" | "failed" | "pending" | "in_progress" | undefined;
|
|
3511
5071
|
title?: string | undefined;
|
|
3512
5072
|
detail?: {
|
|
3513
5073
|
type: "mcp";
|
|
@@ -3515,10 +5075,41 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3515
5075
|
server: string;
|
|
3516
5076
|
} | {
|
|
3517
5077
|
type: "subagent";
|
|
5078
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
|
|
5079
|
+
model?: string | undefined;
|
|
3518
5080
|
task?: string | undefined;
|
|
3519
5081
|
agentType?: string | undefined;
|
|
3520
|
-
|
|
3521
|
-
|
|
5082
|
+
workflow?: {
|
|
5083
|
+
completed?: number | undefined;
|
|
5084
|
+
state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
|
|
5085
|
+
tokens?: number | undefined;
|
|
5086
|
+
durationMs?: number | undefined;
|
|
5087
|
+
startedAt?: number | undefined;
|
|
5088
|
+
endedAt?: number | undefined;
|
|
5089
|
+
runId?: string | undefined;
|
|
5090
|
+
name?: string | undefined;
|
|
5091
|
+
started?: number | undefined;
|
|
5092
|
+
phases?: {
|
|
5093
|
+
id: string;
|
|
5094
|
+
title: string;
|
|
5095
|
+
order: number;
|
|
5096
|
+
}[] | undefined;
|
|
5097
|
+
agents?: {
|
|
5098
|
+
id: string;
|
|
5099
|
+
title: string;
|
|
5100
|
+
state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
|
|
5101
|
+
toolCallId?: string | undefined;
|
|
5102
|
+
phaseId?: string | undefined;
|
|
5103
|
+
model?: string | undefined;
|
|
5104
|
+
tokens?: number | undefined;
|
|
5105
|
+
toolCalls?: number | undefined;
|
|
5106
|
+
durationMs?: number | undefined;
|
|
5107
|
+
startedAt?: number | undefined;
|
|
5108
|
+
endedAt?: number | undefined;
|
|
5109
|
+
result?: string | undefined;
|
|
5110
|
+
}[] | undefined;
|
|
5111
|
+
} | undefined;
|
|
5112
|
+
action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
|
|
3522
5113
|
} | {
|
|
3523
5114
|
type: "skill";
|
|
3524
5115
|
name: string;
|
|
@@ -3539,6 +5130,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3539
5130
|
text: string;
|
|
3540
5131
|
more?: number | undefined;
|
|
3541
5132
|
} | undefined;
|
|
5133
|
+
parentToolCallId?: string | undefined;
|
|
3542
5134
|
content?: ({
|
|
3543
5135
|
type: "content";
|
|
3544
5136
|
content: {
|
|
@@ -3570,16 +5162,26 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3570
5162
|
type: "terminal";
|
|
3571
5163
|
terminalId: string;
|
|
3572
5164
|
})[] | undefined;
|
|
3573
|
-
parentToolCallId?: string | undefined;
|
|
3574
5165
|
appendOutput?: string | undefined;
|
|
3575
5166
|
rawOutput?: unknown;
|
|
3576
5167
|
} | {
|
|
3577
5168
|
entries: {
|
|
3578
|
-
status: "
|
|
5169
|
+
status: "completed" | "pending" | "in_progress";
|
|
3579
5170
|
content: string;
|
|
3580
5171
|
priority?: "high" | "medium" | "low" | undefined;
|
|
3581
5172
|
}[];
|
|
3582
5173
|
sessionUpdate: "plan";
|
|
5174
|
+
} | {
|
|
5175
|
+
sessionUpdate: "ls_goal";
|
|
5176
|
+
goal: {
|
|
5177
|
+
status: "paused" | "active" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
5178
|
+
objective: string;
|
|
5179
|
+
tokenBudget?: number | null | undefined;
|
|
5180
|
+
tokensUsed?: number | undefined;
|
|
5181
|
+
timeUsedSeconds?: number | undefined;
|
|
5182
|
+
iterations?: number | undefined;
|
|
5183
|
+
lastReason?: string | null | undefined;
|
|
5184
|
+
} | null;
|
|
3583
5185
|
} | {
|
|
3584
5186
|
sessionUpdate: "available_commands_update";
|
|
3585
5187
|
availableCommands: {
|
|
@@ -3613,7 +5215,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3613
5215
|
id: string;
|
|
3614
5216
|
name: string;
|
|
3615
5217
|
current: string;
|
|
3616
|
-
category?: "
|
|
5218
|
+
category?: "model" | "other" | "mode" | "effort" | undefined;
|
|
3617
5219
|
}[];
|
|
3618
5220
|
sessionUpdate: "ls_config";
|
|
3619
5221
|
} | {
|
|
@@ -3629,8 +5231,8 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3629
5231
|
stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
|
|
3630
5232
|
} | {
|
|
3631
5233
|
options: {
|
|
3632
|
-
optionId: string;
|
|
3633
5234
|
name: string;
|
|
5235
|
+
optionId: string;
|
|
3634
5236
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
3635
5237
|
}[];
|
|
3636
5238
|
title: string;
|
|
@@ -3666,8 +5268,25 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3666
5268
|
sessionUpdate: "ls_driver";
|
|
3667
5269
|
deviceId?: string | undefined;
|
|
3668
5270
|
} | {
|
|
3669
|
-
state: "
|
|
5271
|
+
state: "running" | "idle" | "waiting" | "error" | "offline";
|
|
3670
5272
|
sessionUpdate: "ls_status";
|
|
5273
|
+
} | {
|
|
5274
|
+
task: {
|
|
5275
|
+
id: string;
|
|
5276
|
+
title: string;
|
|
5277
|
+
state: "running" | "completed" | "failed" | "stopped" | "unknown";
|
|
5278
|
+
startedAt: number;
|
|
5279
|
+
kind: "shell" | "monitor";
|
|
5280
|
+
toolCallId?: string | undefined;
|
|
5281
|
+
endedAt?: number | undefined;
|
|
5282
|
+
lastSeq?: number | undefined;
|
|
5283
|
+
command?: string | undefined;
|
|
5284
|
+
summary?: string | undefined;
|
|
5285
|
+
exitCode?: number | undefined;
|
|
5286
|
+
output?: boolean | undefined;
|
|
5287
|
+
canStop?: boolean | undefined;
|
|
5288
|
+
};
|
|
5289
|
+
sessionUpdate: "ls_task";
|
|
3671
5290
|
} | {
|
|
3672
5291
|
code: string;
|
|
3673
5292
|
message: string;
|