linkshell-cli 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/README.md +47 -132
- package/dist/cli/src/auth.js +1 -1
- package/dist/cli/src/auth.js.map +1 -1
- package/dist/cli/src/commands/doctor.d.ts +1 -1
- package/dist/cli/src/commands/doctor.js +76 -36
- package/dist/cli/src/commands/doctor.js.map +1 -1
- package/dist/cli/src/commands/host.d.ts +14 -0
- package/dist/cli/src/commands/host.js +94 -15
- package/dist/cli/src/commands/host.js.map +1 -1
- package/dist/cli/src/commands/logout.d.ts +1 -1
- package/dist/cli/src/commands/logout.js +10 -2
- package/dist/cli/src/commands/logout.js.map +1 -1
- package/dist/cli/src/commands/upgrade.js +11 -0
- package/dist/cli/src/commands/upgrade.js.map +1 -1
- package/dist/cli/src/config.js +1 -1
- package/dist/cli/src/config.js.map +1 -1
- package/dist/cli/src/index.js +94 -114
- package/dist/cli/src/index.js.map +1 -1
- package/dist/cli/tsconfig.tsbuildinfo +1 -1
- package/dist/host/src/carry.d.ts +15 -0
- package/dist/host/src/carry.js +83 -0
- package/dist/host/src/carry.js.map +1 -0
- package/dist/host/src/drivers/acp/driver.d.ts +13 -3
- package/dist/host/src/drivers/acp/driver.js +43 -8
- package/dist/host/src/drivers/acp/driver.js.map +1 -1
- package/dist/host/src/drivers/acp/mapper.d.ts +5 -1
- package/dist/host/src/drivers/acp/mapper.js +53 -5
- package/dist/host/src/drivers/acp/mapper.js.map +1 -1
- package/dist/host/src/drivers/claude/driver.d.ts +53 -8
- package/dist/host/src/drivers/claude/driver.js +357 -40
- package/dist/host/src/drivers/claude/driver.js.map +1 -1
- package/dist/host/src/drivers/claude/holders.d.ts +9 -0
- package/dist/host/src/drivers/claude/holders.js +61 -0
- package/dist/host/src/drivers/claude/holders.js.map +1 -0
- package/dist/host/src/drivers/claude/transcript.d.ts +100 -62
- package/dist/host/src/drivers/claude/transcript.js +246 -26
- package/dist/host/src/drivers/claude/transcript.js.map +1 -1
- package/dist/host/src/drivers/codex/commands.d.ts +27 -0
- package/dist/host/src/drivers/codex/commands.js +23 -0
- package/dist/host/src/drivers/codex/commands.js.map +1 -0
- package/dist/host/src/drivers/codex/driver.d.ts +15 -1
- package/dist/host/src/drivers/codex/driver.js +110 -1
- package/dist/host/src/drivers/codex/driver.js.map +1 -1
- package/dist/host/src/drivers/codex/mapper.d.ts +4 -0
- package/dist/host/src/drivers/codex/mapper.js +29 -5
- package/dist/host/src/drivers/codex/mapper.js.map +1 -1
- package/dist/host/src/drivers/types.d.ts +34 -3
- package/dist/host/src/fs.d.ts +26 -4
- package/dist/host/src/fs.js +71 -17
- package/dist/host/src/fs.js.map +1 -1
- package/dist/host/src/gateway.d.ts +3 -0
- package/dist/host/src/gateway.js +9 -0
- package/dist/host/src/gateway.js.map +1 -1
- package/dist/host/src/host.d.ts +7 -3
- package/dist/host/src/host.js +42 -18
- package/dist/host/src/host.js.map +1 -1
- package/dist/host/src/hub.d.ts +91 -15
- package/dist/host/src/hub.js +556 -33
- package/dist/host/src/hub.js.map +1 -1
- package/dist/host/src/rpc/server.d.ts +4 -2
- package/dist/host/src/rpc/server.js +51 -6
- package/dist/host/src/rpc/server.js.map +1 -1
- package/dist/host/src/screen.d.ts +11 -0
- package/dist/host/src/screen.js +57 -3
- package/dist/host/src/screen.js.map +1 -1
- package/dist/host/src/slim.d.ts +17 -0
- package/dist/host/src/slim.js +66 -0
- package/dist/host/src/slim.js.map +1 -0
- package/dist/host/src/store.d.ts +75 -3
- package/dist/host/src/store.js +216 -16
- package/dist/host/src/store.js.map +1 -1
- package/dist/host/src/terminals.d.ts +4 -4
- package/dist/host/src/worktrees.d.ts +36 -0
- package/dist/host/src/worktrees.js +96 -0
- package/dist/host/src/worktrees.js.map +1 -0
- package/dist/wire/src/model.d.ts +301 -153
- package/dist/wire/src/model.js +55 -0
- package/dist/wire/src/model.js.map +1 -1
- package/dist/wire/src/relay-client.d.ts +2 -0
- package/dist/wire/src/relay-client.js +12 -0
- package/dist/wire/src/relay-client.js.map +1 -1
- package/dist/wire/src/rpc.d.ts +6740 -1022
- package/dist/wire/src/rpc.js +130 -7
- package/dist/wire/src/rpc.js.map +1 -1
- package/dist/wire/src/updates.d.ts +498 -498
- package/package.json +5 -5
- package/src/auth.ts +1 -1
- package/src/commands/doctor.ts +76 -34
- package/src/commands/host.ts +98 -14
- package/src/commands/logout.ts +10 -2
- package/src/commands/upgrade.ts +11 -0
- package/src/config.ts +1 -1
- package/src/index.ts +93 -131
|
@@ -33,12 +33,12 @@ export declare const contentBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
33
33
|
type: "resource_link";
|
|
34
34
|
name: string;
|
|
35
35
|
uri: string;
|
|
36
|
-
kind?: "
|
|
36
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
type: "resource_link";
|
|
39
39
|
name: string;
|
|
40
40
|
uri: string;
|
|
41
|
-
kind?: "
|
|
41
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
42
42
|
}>]>;
|
|
43
43
|
export type ContentBlock = z.infer<typeof contentBlockSchema>;
|
|
44
44
|
export declare const toolCallStatusSchema: z.ZodEnum<["pending", "in_progress", "completed", "failed"]>;
|
|
@@ -79,12 +79,12 @@ export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
79
79
|
type: "resource_link";
|
|
80
80
|
name: string;
|
|
81
81
|
uri: string;
|
|
82
|
-
kind?: "
|
|
82
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
83
83
|
}, {
|
|
84
84
|
type: "resource_link";
|
|
85
85
|
name: string;
|
|
86
86
|
uri: string;
|
|
87
|
-
kind?: "
|
|
87
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
88
88
|
}>]>;
|
|
89
89
|
}, "strip", z.ZodTypeAny, {
|
|
90
90
|
type: "content";
|
|
@@ -100,7 +100,7 @@ export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
100
100
|
type: "resource_link";
|
|
101
101
|
name: string;
|
|
102
102
|
uri: string;
|
|
103
|
-
kind?: "
|
|
103
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
104
104
|
};
|
|
105
105
|
}, {
|
|
106
106
|
type: "content";
|
|
@@ -116,7 +116,7 @@ export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
116
116
|
type: "resource_link";
|
|
117
117
|
name: string;
|
|
118
118
|
uri: string;
|
|
119
|
-
kind?: "
|
|
119
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
120
120
|
};
|
|
121
121
|
}>, z.ZodObject<{
|
|
122
122
|
type: z.ZodLiteral<"diff">;
|
|
@@ -143,13 +143,13 @@ export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
143
143
|
path: string;
|
|
144
144
|
type: "patch";
|
|
145
145
|
diff: string;
|
|
146
|
-
change: "
|
|
146
|
+
change: "delete" | "add" | "update";
|
|
147
147
|
movePath?: string | undefined;
|
|
148
148
|
}, {
|
|
149
149
|
path: string;
|
|
150
150
|
type: "patch";
|
|
151
151
|
diff: string;
|
|
152
|
-
change: "
|
|
152
|
+
change: "delete" | "add" | "update";
|
|
153
153
|
movePath?: string | undefined;
|
|
154
154
|
}>, z.ZodObject<{
|
|
155
155
|
type: z.ZodLiteral<"terminal">;
|
|
@@ -200,16 +200,16 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
200
200
|
model: z.ZodOptional<z.ZodString>;
|
|
201
201
|
}, "strip", z.ZodTypeAny, {
|
|
202
202
|
type: "subagent";
|
|
203
|
-
action: "message" | "spawn" | "
|
|
204
|
-
model?: string | undefined;
|
|
203
|
+
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
205
204
|
task?: string | undefined;
|
|
206
205
|
agentType?: string | undefined;
|
|
206
|
+
model?: string | undefined;
|
|
207
207
|
}, {
|
|
208
208
|
type: "subagent";
|
|
209
|
-
model?: string | undefined;
|
|
210
|
-
action?: "message" | "spawn" | "resume" | "stop" | "wait" | "list" | undefined;
|
|
211
209
|
task?: string | undefined;
|
|
212
210
|
agentType?: string | undefined;
|
|
211
|
+
model?: string | undefined;
|
|
212
|
+
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
213
213
|
}>, z.ZodObject<{
|
|
214
214
|
type: z.ZodLiteral<"skill">;
|
|
215
215
|
name: z.ZodString;
|
|
@@ -251,10 +251,10 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
251
251
|
phase: z.ZodEnum<["started", "finished"]>;
|
|
252
252
|
}, "strip", z.ZodTypeAny, {
|
|
253
253
|
type: "review";
|
|
254
|
-
phase: "
|
|
254
|
+
phase: "started" | "finished";
|
|
255
255
|
}, {
|
|
256
256
|
type: "review";
|
|
257
|
-
phase: "
|
|
257
|
+
phase: "started" | "finished";
|
|
258
258
|
}>]>;
|
|
259
259
|
export type ToolDetail = z.infer<typeof toolDetailSchema>;
|
|
260
260
|
export declare const planEntrySchema: z.ZodObject<{
|
|
@@ -262,13 +262,13 @@ export declare const planEntrySchema: z.ZodObject<{
|
|
|
262
262
|
priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
|
|
263
263
|
status: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
264
264
|
}, "strip", z.ZodTypeAny, {
|
|
265
|
-
status: "pending" | "
|
|
265
|
+
status: "pending" | "in_progress" | "completed";
|
|
266
266
|
content: string;
|
|
267
|
-
priority: "
|
|
267
|
+
priority: "high" | "medium" | "low";
|
|
268
268
|
}, {
|
|
269
|
-
status: "pending" | "
|
|
269
|
+
status: "pending" | "in_progress" | "completed";
|
|
270
270
|
content: string;
|
|
271
|
-
priority?: "
|
|
271
|
+
priority?: "high" | "medium" | "low" | undefined;
|
|
272
272
|
}>;
|
|
273
273
|
export type PlanEntry = z.infer<typeof planEntrySchema>;
|
|
274
274
|
export declare const stopReasonSchema: z.ZodEnum<["end_turn", "cancelled", "error", "max_tokens", "refusal"]>;
|
|
@@ -300,7 +300,7 @@ export declare const sessionConfigOptionSchema: z.ZodObject<{
|
|
|
300
300
|
}[];
|
|
301
301
|
id: string;
|
|
302
302
|
name: string;
|
|
303
|
-
category: "
|
|
303
|
+
category: "other" | "model" | "mode" | "effort";
|
|
304
304
|
current: string;
|
|
305
305
|
}, {
|
|
306
306
|
values: {
|
|
@@ -311,7 +311,7 @@ export declare const sessionConfigOptionSchema: z.ZodObject<{
|
|
|
311
311
|
id: string;
|
|
312
312
|
name: string;
|
|
313
313
|
current: string;
|
|
314
|
-
category?: "
|
|
314
|
+
category?: "other" | "model" | "mode" | "effort" | undefined;
|
|
315
315
|
}>;
|
|
316
316
|
export type SessionConfigOption = z.infer<typeof sessionConfigOptionSchema>;
|
|
317
317
|
export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate", [z.ZodObject<{
|
|
@@ -351,14 +351,15 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
351
351
|
type: "resource_link";
|
|
352
352
|
name: string;
|
|
353
353
|
uri: string;
|
|
354
|
-
kind?: "
|
|
354
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
355
355
|
}, {
|
|
356
356
|
type: "resource_link";
|
|
357
357
|
name: string;
|
|
358
358
|
uri: string;
|
|
359
|
-
kind?: "
|
|
359
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
360
360
|
}>]>;
|
|
361
361
|
}, "strip", z.ZodTypeAny, {
|
|
362
|
+
sessionUpdate: "user_message_chunk";
|
|
362
363
|
content: {
|
|
363
364
|
type: "text";
|
|
364
365
|
text: string;
|
|
@@ -371,11 +372,11 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
371
372
|
type: "resource_link";
|
|
372
373
|
name: string;
|
|
373
374
|
uri: string;
|
|
374
|
-
kind?: "
|
|
375
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
375
376
|
};
|
|
376
|
-
sessionUpdate: "user_message_chunk";
|
|
377
377
|
messageId?: string | undefined;
|
|
378
378
|
}, {
|
|
379
|
+
sessionUpdate: "user_message_chunk";
|
|
379
380
|
content: {
|
|
380
381
|
type: "text";
|
|
381
382
|
text: string;
|
|
@@ -388,9 +389,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
388
389
|
type: "resource_link";
|
|
389
390
|
name: string;
|
|
390
391
|
uri: string;
|
|
391
|
-
kind?: "
|
|
392
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
392
393
|
};
|
|
393
|
-
sessionUpdate: "user_message_chunk";
|
|
394
394
|
messageId?: string | undefined;
|
|
395
395
|
}>, z.ZodObject<{
|
|
396
396
|
sessionUpdate: z.ZodLiteral<"agent_message_chunk">;
|
|
@@ -430,14 +430,16 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
430
430
|
type: "resource_link";
|
|
431
431
|
name: string;
|
|
432
432
|
uri: string;
|
|
433
|
-
kind?: "
|
|
433
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
434
434
|
}, {
|
|
435
435
|
type: "resource_link";
|
|
436
436
|
name: string;
|
|
437
437
|
uri: string;
|
|
438
|
-
kind?: "
|
|
438
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
439
439
|
}>]>;
|
|
440
440
|
}, "strip", z.ZodTypeAny, {
|
|
441
|
+
sessionUpdate: "agent_message_chunk";
|
|
442
|
+
messageId: string;
|
|
441
443
|
content: {
|
|
442
444
|
type: "text";
|
|
443
445
|
text: string;
|
|
@@ -450,12 +452,12 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
450
452
|
type: "resource_link";
|
|
451
453
|
name: string;
|
|
452
454
|
uri: string;
|
|
453
|
-
kind?: "
|
|
455
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
454
456
|
};
|
|
455
|
-
messageId: string;
|
|
456
|
-
sessionUpdate: "agent_message_chunk";
|
|
457
457
|
parentToolCallId?: string | undefined;
|
|
458
458
|
}, {
|
|
459
|
+
sessionUpdate: "agent_message_chunk";
|
|
460
|
+
messageId: string;
|
|
459
461
|
content: {
|
|
460
462
|
type: "text";
|
|
461
463
|
text: string;
|
|
@@ -468,10 +470,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
468
470
|
type: "resource_link";
|
|
469
471
|
name: string;
|
|
470
472
|
uri: string;
|
|
471
|
-
kind?: "
|
|
473
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
472
474
|
};
|
|
473
|
-
messageId: string;
|
|
474
|
-
sessionUpdate: "agent_message_chunk";
|
|
475
475
|
parentToolCallId?: string | undefined;
|
|
476
476
|
}>, z.ZodObject<{
|
|
477
477
|
sessionUpdate: z.ZodLiteral<"agent_thought_chunk">;
|
|
@@ -511,14 +511,16 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
511
511
|
type: "resource_link";
|
|
512
512
|
name: string;
|
|
513
513
|
uri: string;
|
|
514
|
-
kind?: "
|
|
514
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
515
515
|
}, {
|
|
516
516
|
type: "resource_link";
|
|
517
517
|
name: string;
|
|
518
518
|
uri: string;
|
|
519
|
-
kind?: "
|
|
519
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
520
520
|
}>]>;
|
|
521
521
|
}, "strip", z.ZodTypeAny, {
|
|
522
|
+
sessionUpdate: "agent_thought_chunk";
|
|
523
|
+
messageId: string;
|
|
522
524
|
content: {
|
|
523
525
|
type: "text";
|
|
524
526
|
text: string;
|
|
@@ -531,12 +533,12 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
531
533
|
type: "resource_link";
|
|
532
534
|
name: string;
|
|
533
535
|
uri: string;
|
|
534
|
-
kind?: "
|
|
536
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
535
537
|
};
|
|
536
|
-
messageId: string;
|
|
537
|
-
sessionUpdate: "agent_thought_chunk";
|
|
538
538
|
parentToolCallId?: string | undefined;
|
|
539
539
|
}, {
|
|
540
|
+
sessionUpdate: "agent_thought_chunk";
|
|
541
|
+
messageId: string;
|
|
540
542
|
content: {
|
|
541
543
|
type: "text";
|
|
542
544
|
text: string;
|
|
@@ -549,10 +551,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
549
551
|
type: "resource_link";
|
|
550
552
|
name: string;
|
|
551
553
|
uri: string;
|
|
552
|
-
kind?: "
|
|
554
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
553
555
|
};
|
|
554
|
-
messageId: string;
|
|
555
|
-
sessionUpdate: "agent_thought_chunk";
|
|
556
556
|
parentToolCallId?: string | undefined;
|
|
557
557
|
}>, z.ZodObject<{
|
|
558
558
|
sessionUpdate: z.ZodLiteral<"tool_call">;
|
|
@@ -599,12 +599,12 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
599
599
|
type: "resource_link";
|
|
600
600
|
name: string;
|
|
601
601
|
uri: string;
|
|
602
|
-
kind?: "
|
|
602
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
603
603
|
}, {
|
|
604
604
|
type: "resource_link";
|
|
605
605
|
name: string;
|
|
606
606
|
uri: string;
|
|
607
|
-
kind?: "
|
|
607
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
608
608
|
}>]>;
|
|
609
609
|
}, "strip", z.ZodTypeAny, {
|
|
610
610
|
type: "content";
|
|
@@ -620,7 +620,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
620
620
|
type: "resource_link";
|
|
621
621
|
name: string;
|
|
622
622
|
uri: string;
|
|
623
|
-
kind?: "
|
|
623
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
624
624
|
};
|
|
625
625
|
}, {
|
|
626
626
|
type: "content";
|
|
@@ -636,7 +636,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
636
636
|
type: "resource_link";
|
|
637
637
|
name: string;
|
|
638
638
|
uri: string;
|
|
639
|
-
kind?: "
|
|
639
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
640
640
|
};
|
|
641
641
|
}>, z.ZodObject<{
|
|
642
642
|
type: z.ZodLiteral<"diff">;
|
|
@@ -663,13 +663,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
663
663
|
path: string;
|
|
664
664
|
type: "patch";
|
|
665
665
|
diff: string;
|
|
666
|
-
change: "
|
|
666
|
+
change: "delete" | "add" | "update";
|
|
667
667
|
movePath?: string | undefined;
|
|
668
668
|
}, {
|
|
669
669
|
path: string;
|
|
670
670
|
type: "patch";
|
|
671
671
|
diff: string;
|
|
672
|
-
change: "
|
|
672
|
+
change: "delete" | "add" | "update";
|
|
673
673
|
movePath?: string | undefined;
|
|
674
674
|
}>, z.ZodObject<{
|
|
675
675
|
type: z.ZodLiteral<"terminal">;
|
|
@@ -713,16 +713,16 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
713
713
|
model: z.ZodOptional<z.ZodString>;
|
|
714
714
|
}, "strip", z.ZodTypeAny, {
|
|
715
715
|
type: "subagent";
|
|
716
|
-
action: "message" | "spawn" | "
|
|
717
|
-
model?: string | undefined;
|
|
716
|
+
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
718
717
|
task?: string | undefined;
|
|
719
718
|
agentType?: string | undefined;
|
|
719
|
+
model?: string | undefined;
|
|
720
720
|
}, {
|
|
721
721
|
type: "subagent";
|
|
722
|
-
model?: string | undefined;
|
|
723
|
-
action?: "message" | "spawn" | "resume" | "stop" | "wait" | "list" | undefined;
|
|
724
722
|
task?: string | undefined;
|
|
725
723
|
agentType?: string | undefined;
|
|
724
|
+
model?: string | undefined;
|
|
725
|
+
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
726
726
|
}>, z.ZodObject<{
|
|
727
727
|
type: z.ZodLiteral<"skill">;
|
|
728
728
|
name: z.ZodString;
|
|
@@ -764,17 +764,43 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
764
764
|
phase: z.ZodEnum<["started", "finished"]>;
|
|
765
765
|
}, "strip", z.ZodTypeAny, {
|
|
766
766
|
type: "review";
|
|
767
|
-
phase: "
|
|
767
|
+
phase: "started" | "finished";
|
|
768
768
|
}, {
|
|
769
769
|
type: "review";
|
|
770
|
-
phase: "
|
|
770
|
+
phase: "started" | "finished";
|
|
771
771
|
}>]>>;
|
|
772
772
|
}, "strip", z.ZodTypeAny, {
|
|
773
|
-
status: "
|
|
774
|
-
kind: "
|
|
773
|
+
status: "failed" | "pending" | "in_progress" | "completed";
|
|
774
|
+
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
775
775
|
title: string;
|
|
776
776
|
toolCallId: string;
|
|
777
777
|
sessionUpdate: "tool_call";
|
|
778
|
+
detail?: {
|
|
779
|
+
type: "mcp";
|
|
780
|
+
tool: string;
|
|
781
|
+
server: string;
|
|
782
|
+
} | {
|
|
783
|
+
type: "subagent";
|
|
784
|
+
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
785
|
+
task?: string | undefined;
|
|
786
|
+
agentType?: string | undefined;
|
|
787
|
+
model?: string | undefined;
|
|
788
|
+
} | {
|
|
789
|
+
type: "skill";
|
|
790
|
+
name: string;
|
|
791
|
+
description?: string | undefined;
|
|
792
|
+
} | {
|
|
793
|
+
type: "web_search";
|
|
794
|
+
query?: string | undefined;
|
|
795
|
+
} | {
|
|
796
|
+
type: "image_generation";
|
|
797
|
+
prompt?: string | undefined;
|
|
798
|
+
} | {
|
|
799
|
+
type: "compaction";
|
|
800
|
+
} | {
|
|
801
|
+
type: "review";
|
|
802
|
+
phase: "started" | "finished";
|
|
803
|
+
} | undefined;
|
|
778
804
|
content?: ({
|
|
779
805
|
type: "content";
|
|
780
806
|
content: {
|
|
@@ -789,7 +815,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
789
815
|
type: "resource_link";
|
|
790
816
|
name: string;
|
|
791
817
|
uri: string;
|
|
792
|
-
kind?: "
|
|
818
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
793
819
|
};
|
|
794
820
|
} | {
|
|
795
821
|
path: string;
|
|
@@ -800,22 +826,34 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
800
826
|
path: string;
|
|
801
827
|
type: "patch";
|
|
802
828
|
diff: string;
|
|
803
|
-
change: "
|
|
829
|
+
change: "delete" | "add" | "update";
|
|
804
830
|
movePath?: string | undefined;
|
|
805
831
|
} | {
|
|
806
832
|
type: "terminal";
|
|
807
833
|
terminalId: string;
|
|
808
834
|
})[] | undefined;
|
|
835
|
+
parentToolCallId?: string | undefined;
|
|
836
|
+
rawInput?: unknown;
|
|
837
|
+
locations?: {
|
|
838
|
+
path: string;
|
|
839
|
+
line?: number | undefined;
|
|
840
|
+
}[] | undefined;
|
|
841
|
+
}, {
|
|
842
|
+
status: "failed" | "pending" | "in_progress" | "completed";
|
|
843
|
+
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
844
|
+
title: string;
|
|
845
|
+
toolCallId: string;
|
|
846
|
+
sessionUpdate: "tool_call";
|
|
809
847
|
detail?: {
|
|
810
848
|
type: "mcp";
|
|
811
849
|
tool: string;
|
|
812
850
|
server: string;
|
|
813
851
|
} | {
|
|
814
852
|
type: "subagent";
|
|
815
|
-
action: "message" | "spawn" | "resume" | "stop" | "wait" | "list";
|
|
816
|
-
model?: string | undefined;
|
|
817
853
|
task?: string | undefined;
|
|
818
854
|
agentType?: string | undefined;
|
|
855
|
+
model?: string | undefined;
|
|
856
|
+
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
819
857
|
} | {
|
|
820
858
|
type: "skill";
|
|
821
859
|
name: string;
|
|
@@ -830,20 +868,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
830
868
|
type: "compaction";
|
|
831
869
|
} | {
|
|
832
870
|
type: "review";
|
|
833
|
-
phase: "
|
|
871
|
+
phase: "started" | "finished";
|
|
834
872
|
} | undefined;
|
|
835
|
-
rawInput?: unknown;
|
|
836
|
-
parentToolCallId?: string | undefined;
|
|
837
|
-
locations?: {
|
|
838
|
-
path: string;
|
|
839
|
-
line?: number | undefined;
|
|
840
|
-
}[] | undefined;
|
|
841
|
-
}, {
|
|
842
|
-
status: "pending" | "completed" | "failed" | "in_progress";
|
|
843
|
-
kind: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch";
|
|
844
|
-
title: string;
|
|
845
|
-
toolCallId: string;
|
|
846
|
-
sessionUpdate: "tool_call";
|
|
847
873
|
content?: ({
|
|
848
874
|
type: "content";
|
|
849
875
|
content: {
|
|
@@ -858,7 +884,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
858
884
|
type: "resource_link";
|
|
859
885
|
name: string;
|
|
860
886
|
uri: string;
|
|
861
|
-
kind?: "
|
|
887
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
862
888
|
};
|
|
863
889
|
} | {
|
|
864
890
|
path: string;
|
|
@@ -869,40 +895,14 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
869
895
|
path: string;
|
|
870
896
|
type: "patch";
|
|
871
897
|
diff: string;
|
|
872
|
-
change: "
|
|
898
|
+
change: "delete" | "add" | "update";
|
|
873
899
|
movePath?: string | undefined;
|
|
874
900
|
} | {
|
|
875
901
|
type: "terminal";
|
|
876
902
|
terminalId: string;
|
|
877
903
|
})[] | undefined;
|
|
878
|
-
detail?: {
|
|
879
|
-
type: "mcp";
|
|
880
|
-
tool: string;
|
|
881
|
-
server: string;
|
|
882
|
-
} | {
|
|
883
|
-
type: "subagent";
|
|
884
|
-
model?: string | undefined;
|
|
885
|
-
action?: "message" | "spawn" | "resume" | "stop" | "wait" | "list" | undefined;
|
|
886
|
-
task?: string | undefined;
|
|
887
|
-
agentType?: string | undefined;
|
|
888
|
-
} | {
|
|
889
|
-
type: "skill";
|
|
890
|
-
name: string;
|
|
891
|
-
description?: string | undefined;
|
|
892
|
-
} | {
|
|
893
|
-
type: "web_search";
|
|
894
|
-
query?: string | undefined;
|
|
895
|
-
} | {
|
|
896
|
-
type: "image_generation";
|
|
897
|
-
prompt?: string | undefined;
|
|
898
|
-
} | {
|
|
899
|
-
type: "compaction";
|
|
900
|
-
} | {
|
|
901
|
-
type: "review";
|
|
902
|
-
phase: "finished" | "started";
|
|
903
|
-
} | undefined;
|
|
904
|
-
rawInput?: unknown;
|
|
905
904
|
parentToolCallId?: string | undefined;
|
|
905
|
+
rawInput?: unknown;
|
|
906
906
|
locations?: {
|
|
907
907
|
path: string;
|
|
908
908
|
line?: number | undefined;
|
|
@@ -935,16 +935,16 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
935
935
|
model: z.ZodOptional<z.ZodString>;
|
|
936
936
|
}, "strip", z.ZodTypeAny, {
|
|
937
937
|
type: "subagent";
|
|
938
|
-
action: "message" | "spawn" | "
|
|
939
|
-
model?: string | undefined;
|
|
938
|
+
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
940
939
|
task?: string | undefined;
|
|
941
940
|
agentType?: string | undefined;
|
|
941
|
+
model?: string | undefined;
|
|
942
942
|
}, {
|
|
943
943
|
type: "subagent";
|
|
944
|
-
model?: string | undefined;
|
|
945
|
-
action?: "message" | "spawn" | "resume" | "stop" | "wait" | "list" | undefined;
|
|
946
944
|
task?: string | undefined;
|
|
947
945
|
agentType?: string | undefined;
|
|
946
|
+
model?: string | undefined;
|
|
947
|
+
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
948
948
|
}>, z.ZodObject<{
|
|
949
949
|
type: z.ZodLiteral<"skill">;
|
|
950
950
|
name: z.ZodString;
|
|
@@ -986,10 +986,10 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
986
986
|
phase: z.ZodEnum<["started", "finished"]>;
|
|
987
987
|
}, "strip", z.ZodTypeAny, {
|
|
988
988
|
type: "review";
|
|
989
|
-
phase: "
|
|
989
|
+
phase: "started" | "finished";
|
|
990
990
|
}, {
|
|
991
991
|
type: "review";
|
|
992
|
-
phase: "
|
|
992
|
+
phase: "started" | "finished";
|
|
993
993
|
}>]>>;
|
|
994
994
|
/** Replaces the tool call's content when present. */
|
|
995
995
|
content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -1028,12 +1028,12 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1028
1028
|
type: "resource_link";
|
|
1029
1029
|
name: string;
|
|
1030
1030
|
uri: string;
|
|
1031
|
-
kind?: "
|
|
1031
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1032
1032
|
}, {
|
|
1033
1033
|
type: "resource_link";
|
|
1034
1034
|
name: string;
|
|
1035
1035
|
uri: string;
|
|
1036
|
-
kind?: "
|
|
1036
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1037
1037
|
}>]>;
|
|
1038
1038
|
}, "strip", z.ZodTypeAny, {
|
|
1039
1039
|
type: "content";
|
|
@@ -1049,7 +1049,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1049
1049
|
type: "resource_link";
|
|
1050
1050
|
name: string;
|
|
1051
1051
|
uri: string;
|
|
1052
|
-
kind?: "
|
|
1052
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1053
1053
|
};
|
|
1054
1054
|
}, {
|
|
1055
1055
|
type: "content";
|
|
@@ -1065,7 +1065,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1065
1065
|
type: "resource_link";
|
|
1066
1066
|
name: string;
|
|
1067
1067
|
uri: string;
|
|
1068
|
-
kind?: "
|
|
1068
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1069
1069
|
};
|
|
1070
1070
|
}>, z.ZodObject<{
|
|
1071
1071
|
type: z.ZodLiteral<"diff">;
|
|
@@ -1092,13 +1092,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1092
1092
|
path: string;
|
|
1093
1093
|
type: "patch";
|
|
1094
1094
|
diff: string;
|
|
1095
|
-
change: "
|
|
1095
|
+
change: "delete" | "add" | "update";
|
|
1096
1096
|
movePath?: string | undefined;
|
|
1097
1097
|
}, {
|
|
1098
1098
|
path: string;
|
|
1099
1099
|
type: "patch";
|
|
1100
1100
|
diff: string;
|
|
1101
|
-
change: "
|
|
1101
|
+
change: "delete" | "add" | "update";
|
|
1102
1102
|
movePath?: string | undefined;
|
|
1103
1103
|
}>, z.ZodObject<{
|
|
1104
1104
|
type: z.ZodLiteral<"terminal">;
|
|
@@ -1116,7 +1116,34 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1116
1116
|
}, "strip", z.ZodTypeAny, {
|
|
1117
1117
|
toolCallId: string;
|
|
1118
1118
|
sessionUpdate: "tool_call_update";
|
|
1119
|
-
status?: "
|
|
1119
|
+
status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
|
|
1120
|
+
title?: string | undefined;
|
|
1121
|
+
detail?: {
|
|
1122
|
+
type: "mcp";
|
|
1123
|
+
tool: string;
|
|
1124
|
+
server: string;
|
|
1125
|
+
} | {
|
|
1126
|
+
type: "subagent";
|
|
1127
|
+
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
1128
|
+
task?: string | undefined;
|
|
1129
|
+
agentType?: string | undefined;
|
|
1130
|
+
model?: string | undefined;
|
|
1131
|
+
} | {
|
|
1132
|
+
type: "skill";
|
|
1133
|
+
name: string;
|
|
1134
|
+
description?: string | undefined;
|
|
1135
|
+
} | {
|
|
1136
|
+
type: "web_search";
|
|
1137
|
+
query?: string | undefined;
|
|
1138
|
+
} | {
|
|
1139
|
+
type: "image_generation";
|
|
1140
|
+
prompt?: string | undefined;
|
|
1141
|
+
} | {
|
|
1142
|
+
type: "compaction";
|
|
1143
|
+
} | {
|
|
1144
|
+
type: "review";
|
|
1145
|
+
phase: "started" | "finished";
|
|
1146
|
+
} | undefined;
|
|
1120
1147
|
content?: ({
|
|
1121
1148
|
type: "content";
|
|
1122
1149
|
content: {
|
|
@@ -1131,7 +1158,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1131
1158
|
type: "resource_link";
|
|
1132
1159
|
name: string;
|
|
1133
1160
|
uri: string;
|
|
1134
|
-
kind?: "
|
|
1161
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1135
1162
|
};
|
|
1136
1163
|
} | {
|
|
1137
1164
|
path: string;
|
|
@@ -1142,12 +1169,19 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1142
1169
|
path: string;
|
|
1143
1170
|
type: "patch";
|
|
1144
1171
|
diff: string;
|
|
1145
|
-
change: "
|
|
1172
|
+
change: "delete" | "add" | "update";
|
|
1146
1173
|
movePath?: string | undefined;
|
|
1147
1174
|
} | {
|
|
1148
1175
|
type: "terminal";
|
|
1149
1176
|
terminalId: string;
|
|
1150
1177
|
})[] | undefined;
|
|
1178
|
+
parentToolCallId?: string | undefined;
|
|
1179
|
+
appendOutput?: string | undefined;
|
|
1180
|
+
rawOutput?: unknown;
|
|
1181
|
+
}, {
|
|
1182
|
+
toolCallId: string;
|
|
1183
|
+
sessionUpdate: "tool_call_update";
|
|
1184
|
+
status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
|
|
1151
1185
|
title?: string | undefined;
|
|
1152
1186
|
detail?: {
|
|
1153
1187
|
type: "mcp";
|
|
@@ -1155,10 +1189,10 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1155
1189
|
server: string;
|
|
1156
1190
|
} | {
|
|
1157
1191
|
type: "subagent";
|
|
1158
|
-
action: "message" | "spawn" | "resume" | "stop" | "wait" | "list";
|
|
1159
|
-
model?: string | undefined;
|
|
1160
1192
|
task?: string | undefined;
|
|
1161
1193
|
agentType?: string | undefined;
|
|
1194
|
+
model?: string | undefined;
|
|
1195
|
+
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
1162
1196
|
} | {
|
|
1163
1197
|
type: "skill";
|
|
1164
1198
|
name: string;
|
|
@@ -1173,15 +1207,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1173
1207
|
type: "compaction";
|
|
1174
1208
|
} | {
|
|
1175
1209
|
type: "review";
|
|
1176
|
-
phase: "
|
|
1210
|
+
phase: "started" | "finished";
|
|
1177
1211
|
} | undefined;
|
|
1178
|
-
rawOutput?: unknown;
|
|
1179
|
-
parentToolCallId?: string | undefined;
|
|
1180
|
-
appendOutput?: string | undefined;
|
|
1181
|
-
}, {
|
|
1182
|
-
toolCallId: string;
|
|
1183
|
-
sessionUpdate: "tool_call_update";
|
|
1184
|
-
status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
|
|
1185
1212
|
content?: ({
|
|
1186
1213
|
type: "content";
|
|
1187
1214
|
content: {
|
|
@@ -1196,7 +1223,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1196
1223
|
type: "resource_link";
|
|
1197
1224
|
name: string;
|
|
1198
1225
|
uri: string;
|
|
1199
|
-
kind?: "
|
|
1226
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1200
1227
|
};
|
|
1201
1228
|
} | {
|
|
1202
1229
|
path: string;
|
|
@@ -1207,42 +1234,15 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1207
1234
|
path: string;
|
|
1208
1235
|
type: "patch";
|
|
1209
1236
|
diff: string;
|
|
1210
|
-
change: "
|
|
1237
|
+
change: "delete" | "add" | "update";
|
|
1211
1238
|
movePath?: string | undefined;
|
|
1212
1239
|
} | {
|
|
1213
1240
|
type: "terminal";
|
|
1214
1241
|
terminalId: string;
|
|
1215
1242
|
})[] | undefined;
|
|
1216
|
-
title?: string | undefined;
|
|
1217
|
-
detail?: {
|
|
1218
|
-
type: "mcp";
|
|
1219
|
-
tool: string;
|
|
1220
|
-
server: string;
|
|
1221
|
-
} | {
|
|
1222
|
-
type: "subagent";
|
|
1223
|
-
model?: string | undefined;
|
|
1224
|
-
action?: "message" | "spawn" | "resume" | "stop" | "wait" | "list" | undefined;
|
|
1225
|
-
task?: string | undefined;
|
|
1226
|
-
agentType?: string | undefined;
|
|
1227
|
-
} | {
|
|
1228
|
-
type: "skill";
|
|
1229
|
-
name: string;
|
|
1230
|
-
description?: string | undefined;
|
|
1231
|
-
} | {
|
|
1232
|
-
type: "web_search";
|
|
1233
|
-
query?: string | undefined;
|
|
1234
|
-
} | {
|
|
1235
|
-
type: "image_generation";
|
|
1236
|
-
prompt?: string | undefined;
|
|
1237
|
-
} | {
|
|
1238
|
-
type: "compaction";
|
|
1239
|
-
} | {
|
|
1240
|
-
type: "review";
|
|
1241
|
-
phase: "finished" | "started";
|
|
1242
|
-
} | undefined;
|
|
1243
|
-
rawOutput?: unknown;
|
|
1244
1243
|
parentToolCallId?: string | undefined;
|
|
1245
1244
|
appendOutput?: string | undefined;
|
|
1245
|
+
rawOutput?: unknown;
|
|
1246
1246
|
}>, z.ZodObject<{
|
|
1247
1247
|
sessionUpdate: z.ZodLiteral<"plan">;
|
|
1248
1248
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -1250,26 +1250,26 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1250
1250
|
priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
|
|
1251
1251
|
status: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
1252
1252
|
}, "strip", z.ZodTypeAny, {
|
|
1253
|
-
status: "pending" | "
|
|
1253
|
+
status: "pending" | "in_progress" | "completed";
|
|
1254
1254
|
content: string;
|
|
1255
|
-
priority: "
|
|
1255
|
+
priority: "high" | "medium" | "low";
|
|
1256
1256
|
}, {
|
|
1257
|
-
status: "pending" | "
|
|
1257
|
+
status: "pending" | "in_progress" | "completed";
|
|
1258
1258
|
content: string;
|
|
1259
|
-
priority?: "
|
|
1259
|
+
priority?: "high" | "medium" | "low" | undefined;
|
|
1260
1260
|
}>, "many">;
|
|
1261
1261
|
}, "strip", z.ZodTypeAny, {
|
|
1262
1262
|
entries: {
|
|
1263
|
-
status: "pending" | "
|
|
1263
|
+
status: "pending" | "in_progress" | "completed";
|
|
1264
1264
|
content: string;
|
|
1265
|
-
priority: "
|
|
1265
|
+
priority: "high" | "medium" | "low";
|
|
1266
1266
|
}[];
|
|
1267
1267
|
sessionUpdate: "plan";
|
|
1268
1268
|
}, {
|
|
1269
1269
|
entries: {
|
|
1270
|
-
status: "pending" | "
|
|
1270
|
+
status: "pending" | "in_progress" | "completed";
|
|
1271
1271
|
content: string;
|
|
1272
|
-
priority?: "
|
|
1272
|
+
priority?: "high" | "medium" | "low" | undefined;
|
|
1273
1273
|
}[];
|
|
1274
1274
|
sessionUpdate: "plan";
|
|
1275
1275
|
}>, z.ZodObject<{
|
|
@@ -1328,26 +1328,26 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1328
1328
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
1329
1329
|
}, "strip", z.ZodTypeAny, {
|
|
1330
1330
|
sessionUpdate: "usage_update";
|
|
1331
|
-
contextWindow?: number | undefined;
|
|
1332
1331
|
usedTokens?: number | undefined;
|
|
1332
|
+
contextWindow?: number | undefined;
|
|
1333
1333
|
}, {
|
|
1334
1334
|
sessionUpdate: "usage_update";
|
|
1335
|
-
contextWindow?: number | undefined;
|
|
1336
1335
|
usedTokens?: number | undefined;
|
|
1336
|
+
contextWindow?: number | undefined;
|
|
1337
1337
|
}>, z.ZodObject<{
|
|
1338
1338
|
sessionUpdate: z.ZodLiteral<"ls_message_done">;
|
|
1339
1339
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
1340
1340
|
messageId: z.ZodString;
|
|
1341
1341
|
role: z.ZodEnum<["agent", "thought", "user"]>;
|
|
1342
1342
|
}, "strip", z.ZodTypeAny, {
|
|
1343
|
-
role: "user" | "agent" | "thought";
|
|
1344
|
-
messageId: string;
|
|
1345
1343
|
sessionUpdate: "ls_message_done";
|
|
1344
|
+
messageId: string;
|
|
1345
|
+
role: "agent" | "thought" | "user";
|
|
1346
1346
|
parentToolCallId?: string | undefined;
|
|
1347
1347
|
}, {
|
|
1348
|
-
role: "user" | "agent" | "thought";
|
|
1349
|
-
messageId: string;
|
|
1350
1348
|
sessionUpdate: "ls_message_done";
|
|
1349
|
+
messageId: string;
|
|
1350
|
+
role: "agent" | "thought" | "user";
|
|
1351
1351
|
parentToolCallId?: string | undefined;
|
|
1352
1352
|
}>, z.ZodObject<{
|
|
1353
1353
|
sessionUpdate: z.ZodLiteral<"ls_config">;
|
|
@@ -1378,7 +1378,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1378
1378
|
}[];
|
|
1379
1379
|
id: string;
|
|
1380
1380
|
name: string;
|
|
1381
|
-
category: "
|
|
1381
|
+
category: "other" | "model" | "mode" | "effort";
|
|
1382
1382
|
current: string;
|
|
1383
1383
|
}, {
|
|
1384
1384
|
values: {
|
|
@@ -1389,7 +1389,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1389
1389
|
id: string;
|
|
1390
1390
|
name: string;
|
|
1391
1391
|
current: string;
|
|
1392
|
-
category?: "
|
|
1392
|
+
category?: "other" | "model" | "mode" | "effort" | undefined;
|
|
1393
1393
|
}>, "many">;
|
|
1394
1394
|
}, "strip", z.ZodTypeAny, {
|
|
1395
1395
|
options: {
|
|
@@ -1400,7 +1400,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1400
1400
|
}[];
|
|
1401
1401
|
id: string;
|
|
1402
1402
|
name: string;
|
|
1403
|
-
category: "
|
|
1403
|
+
category: "other" | "model" | "mode" | "effort";
|
|
1404
1404
|
current: string;
|
|
1405
1405
|
}[];
|
|
1406
1406
|
sessionUpdate: "ls_config";
|
|
@@ -1414,7 +1414,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1414
1414
|
id: string;
|
|
1415
1415
|
name: string;
|
|
1416
1416
|
current: string;
|
|
1417
|
-
category?: "
|
|
1417
|
+
category?: "other" | "model" | "mode" | "effort" | undefined;
|
|
1418
1418
|
}[];
|
|
1419
1419
|
sessionUpdate: "ls_config";
|
|
1420
1420
|
}>, z.ZodObject<{
|
|
@@ -1442,15 +1442,15 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1442
1442
|
}, "strip", z.ZodTypeAny, {
|
|
1443
1443
|
state: "started" | "ended";
|
|
1444
1444
|
sessionUpdate: "ls_turn";
|
|
1445
|
-
turnId?: string | undefined;
|
|
1446
1445
|
parentToolCallId?: string | undefined;
|
|
1447
|
-
|
|
1446
|
+
turnId?: string | undefined;
|
|
1447
|
+
stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
|
|
1448
1448
|
}, {
|
|
1449
1449
|
state: "started" | "ended";
|
|
1450
1450
|
sessionUpdate: "ls_turn";
|
|
1451
|
-
turnId?: string | undefined;
|
|
1452
1451
|
parentToolCallId?: string | undefined;
|
|
1453
|
-
|
|
1452
|
+
turnId?: string | undefined;
|
|
1453
|
+
stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
|
|
1454
1454
|
}>, z.ZodObject<{
|
|
1455
1455
|
sessionUpdate: z.ZodLiteral<"ls_permission">;
|
|
1456
1456
|
requestId: z.ZodString;
|
|
@@ -1462,36 +1462,36 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1462
1462
|
name: z.ZodString;
|
|
1463
1463
|
kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
|
|
1464
1464
|
}, "strip", z.ZodTypeAny, {
|
|
1465
|
+
optionId: string;
|
|
1465
1466
|
name: string;
|
|
1466
1467
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1467
|
-
optionId: string;
|
|
1468
1468
|
}, {
|
|
1469
|
+
optionId: string;
|
|
1469
1470
|
name: string;
|
|
1470
1471
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1471
|
-
optionId: string;
|
|
1472
1472
|
}>, "many">;
|
|
1473
1473
|
}, "strip", z.ZodTypeAny, {
|
|
1474
1474
|
options: {
|
|
1475
|
+
optionId: string;
|
|
1475
1476
|
name: string;
|
|
1476
1477
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1477
|
-
optionId: string;
|
|
1478
1478
|
}[];
|
|
1479
|
-
requestId: string;
|
|
1480
1479
|
title: string;
|
|
1480
|
+
requestId: string;
|
|
1481
1481
|
sessionUpdate: "ls_permission";
|
|
1482
|
-
detail?: string | undefined;
|
|
1483
1482
|
toolCallId?: string | undefined;
|
|
1483
|
+
detail?: string | undefined;
|
|
1484
1484
|
}, {
|
|
1485
1485
|
options: {
|
|
1486
|
+
optionId: string;
|
|
1486
1487
|
name: string;
|
|
1487
1488
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1488
|
-
optionId: string;
|
|
1489
1489
|
}[];
|
|
1490
|
-
requestId: string;
|
|
1491
1490
|
title: string;
|
|
1491
|
+
requestId: string;
|
|
1492
1492
|
sessionUpdate: "ls_permission";
|
|
1493
|
-
detail?: string | undefined;
|
|
1494
1493
|
toolCallId?: string | undefined;
|
|
1494
|
+
detail?: string | undefined;
|
|
1495
1495
|
}>, z.ZodObject<{
|
|
1496
1496
|
sessionUpdate: z.ZodLiteral<"ls_permission_resolved">;
|
|
1497
1497
|
requestId: z.ZodString;
|
|
@@ -1509,21 +1509,21 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
|
|
|
1509
1509
|
driver: z.ZodEnum<["desktop", "remote", "none"]>;
|
|
1510
1510
|
deviceId: z.ZodOptional<z.ZodString>;
|
|
1511
1511
|
}, "strip", z.ZodTypeAny, {
|
|
1512
|
+
driver: "remote" | "desktop" | "none";
|
|
1512
1513
|
sessionUpdate: "ls_driver";
|
|
1513
|
-
driver: "none" | "desktop" | "remote";
|
|
1514
1514
|
deviceId?: string | undefined;
|
|
1515
1515
|
}, {
|
|
1516
|
+
driver: "remote" | "desktop" | "none";
|
|
1516
1517
|
sessionUpdate: "ls_driver";
|
|
1517
|
-
driver: "none" | "desktop" | "remote";
|
|
1518
1518
|
deviceId?: string | undefined;
|
|
1519
1519
|
}>, z.ZodObject<{
|
|
1520
1520
|
sessionUpdate: z.ZodLiteral<"ls_status">;
|
|
1521
1521
|
state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
|
|
1522
1522
|
}, "strip", z.ZodTypeAny, {
|
|
1523
|
-
state: "idle" | "
|
|
1523
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
1524
1524
|
sessionUpdate: "ls_status";
|
|
1525
1525
|
}, {
|
|
1526
|
-
state: "idle" | "
|
|
1526
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
1527
1527
|
sessionUpdate: "ls_status";
|
|
1528
1528
|
}>, z.ZodObject<{
|
|
1529
1529
|
sessionUpdate: z.ZodLiteral<"ls_error">;
|
|
@@ -1585,14 +1585,15 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
1585
1585
|
type: "resource_link";
|
|
1586
1586
|
name: string;
|
|
1587
1587
|
uri: string;
|
|
1588
|
-
kind?: "
|
|
1588
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1589
1589
|
}, {
|
|
1590
1590
|
type: "resource_link";
|
|
1591
1591
|
name: string;
|
|
1592
1592
|
uri: string;
|
|
1593
|
-
kind?: "
|
|
1593
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1594
1594
|
}>]>;
|
|
1595
1595
|
}, "strip", z.ZodTypeAny, {
|
|
1596
|
+
sessionUpdate: "user_message_chunk";
|
|
1596
1597
|
content: {
|
|
1597
1598
|
type: "text";
|
|
1598
1599
|
text: string;
|
|
@@ -1605,11 +1606,11 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
1605
1606
|
type: "resource_link";
|
|
1606
1607
|
name: string;
|
|
1607
1608
|
uri: string;
|
|
1608
|
-
kind?: "
|
|
1609
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1609
1610
|
};
|
|
1610
|
-
sessionUpdate: "user_message_chunk";
|
|
1611
1611
|
messageId?: string | undefined;
|
|
1612
1612
|
}, {
|
|
1613
|
+
sessionUpdate: "user_message_chunk";
|
|
1613
1614
|
content: {
|
|
1614
1615
|
type: "text";
|
|
1615
1616
|
text: string;
|
|
@@ -1622,9 +1623,8 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
1622
1623
|
type: "resource_link";
|
|
1623
1624
|
name: string;
|
|
1624
1625
|
uri: string;
|
|
1625
|
-
kind?: "
|
|
1626
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1626
1627
|
};
|
|
1627
|
-
sessionUpdate: "user_message_chunk";
|
|
1628
1628
|
messageId?: string | undefined;
|
|
1629
1629
|
}>, z.ZodObject<{
|
|
1630
1630
|
sessionUpdate: z.ZodLiteral<"agent_message_chunk">;
|
|
@@ -1664,14 +1664,16 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
1664
1664
|
type: "resource_link";
|
|
1665
1665
|
name: string;
|
|
1666
1666
|
uri: string;
|
|
1667
|
-
kind?: "
|
|
1667
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1668
1668
|
}, {
|
|
1669
1669
|
type: "resource_link";
|
|
1670
1670
|
name: string;
|
|
1671
1671
|
uri: string;
|
|
1672
|
-
kind?: "
|
|
1672
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1673
1673
|
}>]>;
|
|
1674
1674
|
}, "strip", z.ZodTypeAny, {
|
|
1675
|
+
sessionUpdate: "agent_message_chunk";
|
|
1676
|
+
messageId: string;
|
|
1675
1677
|
content: {
|
|
1676
1678
|
type: "text";
|
|
1677
1679
|
text: string;
|
|
@@ -1684,12 +1686,12 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
1684
1686
|
type: "resource_link";
|
|
1685
1687
|
name: string;
|
|
1686
1688
|
uri: string;
|
|
1687
|
-
kind?: "
|
|
1689
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1688
1690
|
};
|
|
1689
|
-
messageId: string;
|
|
1690
|
-
sessionUpdate: "agent_message_chunk";
|
|
1691
1691
|
parentToolCallId?: string | undefined;
|
|
1692
1692
|
}, {
|
|
1693
|
+
sessionUpdate: "agent_message_chunk";
|
|
1694
|
+
messageId: string;
|
|
1693
1695
|
content: {
|
|
1694
1696
|
type: "text";
|
|
1695
1697
|
text: string;
|
|
@@ -1702,10 +1704,8 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
1702
1704
|
type: "resource_link";
|
|
1703
1705
|
name: string;
|
|
1704
1706
|
uri: string;
|
|
1705
|
-
kind?: "
|
|
1707
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1706
1708
|
};
|
|
1707
|
-
messageId: string;
|
|
1708
|
-
sessionUpdate: "agent_message_chunk";
|
|
1709
1709
|
parentToolCallId?: string | undefined;
|
|
1710
1710
|
}>, z.ZodObject<{
|
|
1711
1711
|
sessionUpdate: z.ZodLiteral<"agent_thought_chunk">;
|
|
@@ -1745,14 +1745,16 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
1745
1745
|
type: "resource_link";
|
|
1746
1746
|
name: string;
|
|
1747
1747
|
uri: string;
|
|
1748
|
-
kind?: "
|
|
1748
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1749
1749
|
}, {
|
|
1750
1750
|
type: "resource_link";
|
|
1751
1751
|
name: string;
|
|
1752
1752
|
uri: string;
|
|
1753
|
-
kind?: "
|
|
1753
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1754
1754
|
}>]>;
|
|
1755
1755
|
}, "strip", z.ZodTypeAny, {
|
|
1756
|
+
sessionUpdate: "agent_thought_chunk";
|
|
1757
|
+
messageId: string;
|
|
1756
1758
|
content: {
|
|
1757
1759
|
type: "text";
|
|
1758
1760
|
text: string;
|
|
@@ -1765,12 +1767,12 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
1765
1767
|
type: "resource_link";
|
|
1766
1768
|
name: string;
|
|
1767
1769
|
uri: string;
|
|
1768
|
-
kind?: "
|
|
1770
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1769
1771
|
};
|
|
1770
|
-
messageId: string;
|
|
1771
|
-
sessionUpdate: "agent_thought_chunk";
|
|
1772
1772
|
parentToolCallId?: string | undefined;
|
|
1773
1773
|
}, {
|
|
1774
|
+
sessionUpdate: "agent_thought_chunk";
|
|
1775
|
+
messageId: string;
|
|
1774
1776
|
content: {
|
|
1775
1777
|
type: "text";
|
|
1776
1778
|
text: string;
|
|
@@ -1783,10 +1785,8 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
1783
1785
|
type: "resource_link";
|
|
1784
1786
|
name: string;
|
|
1785
1787
|
uri: string;
|
|
1786
|
-
kind?: "
|
|
1788
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1787
1789
|
};
|
|
1788
|
-
messageId: string;
|
|
1789
|
-
sessionUpdate: "agent_thought_chunk";
|
|
1790
1790
|
parentToolCallId?: string | undefined;
|
|
1791
1791
|
}>, z.ZodObject<{
|
|
1792
1792
|
sessionUpdate: z.ZodLiteral<"tool_call">;
|
|
@@ -1833,12 +1833,12 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
1833
1833
|
type: "resource_link";
|
|
1834
1834
|
name: string;
|
|
1835
1835
|
uri: string;
|
|
1836
|
-
kind?: "
|
|
1836
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1837
1837
|
}, {
|
|
1838
1838
|
type: "resource_link";
|
|
1839
1839
|
name: string;
|
|
1840
1840
|
uri: string;
|
|
1841
|
-
kind?: "
|
|
1841
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1842
1842
|
}>]>;
|
|
1843
1843
|
}, "strip", z.ZodTypeAny, {
|
|
1844
1844
|
type: "content";
|
|
@@ -1854,7 +1854,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
1854
1854
|
type: "resource_link";
|
|
1855
1855
|
name: string;
|
|
1856
1856
|
uri: string;
|
|
1857
|
-
kind?: "
|
|
1857
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1858
1858
|
};
|
|
1859
1859
|
}, {
|
|
1860
1860
|
type: "content";
|
|
@@ -1870,7 +1870,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
1870
1870
|
type: "resource_link";
|
|
1871
1871
|
name: string;
|
|
1872
1872
|
uri: string;
|
|
1873
|
-
kind?: "
|
|
1873
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1874
1874
|
};
|
|
1875
1875
|
}>, z.ZodObject<{
|
|
1876
1876
|
type: z.ZodLiteral<"diff">;
|
|
@@ -1897,13 +1897,13 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
1897
1897
|
path: string;
|
|
1898
1898
|
type: "patch";
|
|
1899
1899
|
diff: string;
|
|
1900
|
-
change: "
|
|
1900
|
+
change: "delete" | "add" | "update";
|
|
1901
1901
|
movePath?: string | undefined;
|
|
1902
1902
|
}, {
|
|
1903
1903
|
path: string;
|
|
1904
1904
|
type: "patch";
|
|
1905
1905
|
diff: string;
|
|
1906
|
-
change: "
|
|
1906
|
+
change: "delete" | "add" | "update";
|
|
1907
1907
|
movePath?: string | undefined;
|
|
1908
1908
|
}>, z.ZodObject<{
|
|
1909
1909
|
type: z.ZodLiteral<"terminal">;
|
|
@@ -1947,16 +1947,16 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
1947
1947
|
model: z.ZodOptional<z.ZodString>;
|
|
1948
1948
|
}, "strip", z.ZodTypeAny, {
|
|
1949
1949
|
type: "subagent";
|
|
1950
|
-
action: "message" | "spawn" | "
|
|
1951
|
-
model?: string | undefined;
|
|
1950
|
+
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
1952
1951
|
task?: string | undefined;
|
|
1953
1952
|
agentType?: string | undefined;
|
|
1953
|
+
model?: string | undefined;
|
|
1954
1954
|
}, {
|
|
1955
1955
|
type: "subagent";
|
|
1956
|
-
model?: string | undefined;
|
|
1957
|
-
action?: "message" | "spawn" | "resume" | "stop" | "wait" | "list" | undefined;
|
|
1958
1956
|
task?: string | undefined;
|
|
1959
1957
|
agentType?: string | undefined;
|
|
1958
|
+
model?: string | undefined;
|
|
1959
|
+
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
1960
1960
|
}>, z.ZodObject<{
|
|
1961
1961
|
type: z.ZodLiteral<"skill">;
|
|
1962
1962
|
name: z.ZodString;
|
|
@@ -1998,17 +1998,43 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
1998
1998
|
phase: z.ZodEnum<["started", "finished"]>;
|
|
1999
1999
|
}, "strip", z.ZodTypeAny, {
|
|
2000
2000
|
type: "review";
|
|
2001
|
-
phase: "
|
|
2001
|
+
phase: "started" | "finished";
|
|
2002
2002
|
}, {
|
|
2003
2003
|
type: "review";
|
|
2004
|
-
phase: "
|
|
2004
|
+
phase: "started" | "finished";
|
|
2005
2005
|
}>]>>;
|
|
2006
2006
|
}, "strip", z.ZodTypeAny, {
|
|
2007
|
-
status: "
|
|
2008
|
-
kind: "
|
|
2007
|
+
status: "failed" | "pending" | "in_progress" | "completed";
|
|
2008
|
+
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
2009
2009
|
title: string;
|
|
2010
2010
|
toolCallId: string;
|
|
2011
2011
|
sessionUpdate: "tool_call";
|
|
2012
|
+
detail?: {
|
|
2013
|
+
type: "mcp";
|
|
2014
|
+
tool: string;
|
|
2015
|
+
server: string;
|
|
2016
|
+
} | {
|
|
2017
|
+
type: "subagent";
|
|
2018
|
+
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
2019
|
+
task?: string | undefined;
|
|
2020
|
+
agentType?: string | undefined;
|
|
2021
|
+
model?: string | undefined;
|
|
2022
|
+
} | {
|
|
2023
|
+
type: "skill";
|
|
2024
|
+
name: string;
|
|
2025
|
+
description?: string | undefined;
|
|
2026
|
+
} | {
|
|
2027
|
+
type: "web_search";
|
|
2028
|
+
query?: string | undefined;
|
|
2029
|
+
} | {
|
|
2030
|
+
type: "image_generation";
|
|
2031
|
+
prompt?: string | undefined;
|
|
2032
|
+
} | {
|
|
2033
|
+
type: "compaction";
|
|
2034
|
+
} | {
|
|
2035
|
+
type: "review";
|
|
2036
|
+
phase: "started" | "finished";
|
|
2037
|
+
} | undefined;
|
|
2012
2038
|
content?: ({
|
|
2013
2039
|
type: "content";
|
|
2014
2040
|
content: {
|
|
@@ -2023,7 +2049,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2023
2049
|
type: "resource_link";
|
|
2024
2050
|
name: string;
|
|
2025
2051
|
uri: string;
|
|
2026
|
-
kind?: "
|
|
2052
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
2027
2053
|
};
|
|
2028
2054
|
} | {
|
|
2029
2055
|
path: string;
|
|
@@ -2034,22 +2060,34 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2034
2060
|
path: string;
|
|
2035
2061
|
type: "patch";
|
|
2036
2062
|
diff: string;
|
|
2037
|
-
change: "
|
|
2063
|
+
change: "delete" | "add" | "update";
|
|
2038
2064
|
movePath?: string | undefined;
|
|
2039
2065
|
} | {
|
|
2040
2066
|
type: "terminal";
|
|
2041
2067
|
terminalId: string;
|
|
2042
2068
|
})[] | undefined;
|
|
2069
|
+
parentToolCallId?: string | undefined;
|
|
2070
|
+
rawInput?: unknown;
|
|
2071
|
+
locations?: {
|
|
2072
|
+
path: string;
|
|
2073
|
+
line?: number | undefined;
|
|
2074
|
+
}[] | undefined;
|
|
2075
|
+
}, {
|
|
2076
|
+
status: "failed" | "pending" | "in_progress" | "completed";
|
|
2077
|
+
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
2078
|
+
title: string;
|
|
2079
|
+
toolCallId: string;
|
|
2080
|
+
sessionUpdate: "tool_call";
|
|
2043
2081
|
detail?: {
|
|
2044
2082
|
type: "mcp";
|
|
2045
2083
|
tool: string;
|
|
2046
2084
|
server: string;
|
|
2047
2085
|
} | {
|
|
2048
2086
|
type: "subagent";
|
|
2049
|
-
action: "message" | "spawn" | "resume" | "stop" | "wait" | "list";
|
|
2050
|
-
model?: string | undefined;
|
|
2051
2087
|
task?: string | undefined;
|
|
2052
2088
|
agentType?: string | undefined;
|
|
2089
|
+
model?: string | undefined;
|
|
2090
|
+
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
2053
2091
|
} | {
|
|
2054
2092
|
type: "skill";
|
|
2055
2093
|
name: string;
|
|
@@ -2064,20 +2102,8 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2064
2102
|
type: "compaction";
|
|
2065
2103
|
} | {
|
|
2066
2104
|
type: "review";
|
|
2067
|
-
phase: "
|
|
2105
|
+
phase: "started" | "finished";
|
|
2068
2106
|
} | undefined;
|
|
2069
|
-
rawInput?: unknown;
|
|
2070
|
-
parentToolCallId?: string | undefined;
|
|
2071
|
-
locations?: {
|
|
2072
|
-
path: string;
|
|
2073
|
-
line?: number | undefined;
|
|
2074
|
-
}[] | undefined;
|
|
2075
|
-
}, {
|
|
2076
|
-
status: "pending" | "completed" | "failed" | "in_progress";
|
|
2077
|
-
kind: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch";
|
|
2078
|
-
title: string;
|
|
2079
|
-
toolCallId: string;
|
|
2080
|
-
sessionUpdate: "tool_call";
|
|
2081
2107
|
content?: ({
|
|
2082
2108
|
type: "content";
|
|
2083
2109
|
content: {
|
|
@@ -2092,7 +2118,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2092
2118
|
type: "resource_link";
|
|
2093
2119
|
name: string;
|
|
2094
2120
|
uri: string;
|
|
2095
|
-
kind?: "
|
|
2121
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
2096
2122
|
};
|
|
2097
2123
|
} | {
|
|
2098
2124
|
path: string;
|
|
@@ -2103,40 +2129,14 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2103
2129
|
path: string;
|
|
2104
2130
|
type: "patch";
|
|
2105
2131
|
diff: string;
|
|
2106
|
-
change: "
|
|
2132
|
+
change: "delete" | "add" | "update";
|
|
2107
2133
|
movePath?: string | undefined;
|
|
2108
2134
|
} | {
|
|
2109
2135
|
type: "terminal";
|
|
2110
2136
|
terminalId: string;
|
|
2111
2137
|
})[] | undefined;
|
|
2112
|
-
detail?: {
|
|
2113
|
-
type: "mcp";
|
|
2114
|
-
tool: string;
|
|
2115
|
-
server: string;
|
|
2116
|
-
} | {
|
|
2117
|
-
type: "subagent";
|
|
2118
|
-
model?: string | undefined;
|
|
2119
|
-
action?: "message" | "spawn" | "resume" | "stop" | "wait" | "list" | undefined;
|
|
2120
|
-
task?: string | undefined;
|
|
2121
|
-
agentType?: string | undefined;
|
|
2122
|
-
} | {
|
|
2123
|
-
type: "skill";
|
|
2124
|
-
name: string;
|
|
2125
|
-
description?: string | undefined;
|
|
2126
|
-
} | {
|
|
2127
|
-
type: "web_search";
|
|
2128
|
-
query?: string | undefined;
|
|
2129
|
-
} | {
|
|
2130
|
-
type: "image_generation";
|
|
2131
|
-
prompt?: string | undefined;
|
|
2132
|
-
} | {
|
|
2133
|
-
type: "compaction";
|
|
2134
|
-
} | {
|
|
2135
|
-
type: "review";
|
|
2136
|
-
phase: "finished" | "started";
|
|
2137
|
-
} | undefined;
|
|
2138
|
-
rawInput?: unknown;
|
|
2139
2138
|
parentToolCallId?: string | undefined;
|
|
2139
|
+
rawInput?: unknown;
|
|
2140
2140
|
locations?: {
|
|
2141
2141
|
path: string;
|
|
2142
2142
|
line?: number | undefined;
|
|
@@ -2169,16 +2169,16 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2169
2169
|
model: z.ZodOptional<z.ZodString>;
|
|
2170
2170
|
}, "strip", z.ZodTypeAny, {
|
|
2171
2171
|
type: "subagent";
|
|
2172
|
-
action: "message" | "spawn" | "
|
|
2173
|
-
model?: string | undefined;
|
|
2172
|
+
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
2174
2173
|
task?: string | undefined;
|
|
2175
2174
|
agentType?: string | undefined;
|
|
2175
|
+
model?: string | undefined;
|
|
2176
2176
|
}, {
|
|
2177
2177
|
type: "subagent";
|
|
2178
|
-
model?: string | undefined;
|
|
2179
|
-
action?: "message" | "spawn" | "resume" | "stop" | "wait" | "list" | undefined;
|
|
2180
2178
|
task?: string | undefined;
|
|
2181
2179
|
agentType?: string | undefined;
|
|
2180
|
+
model?: string | undefined;
|
|
2181
|
+
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
2182
2182
|
}>, z.ZodObject<{
|
|
2183
2183
|
type: z.ZodLiteral<"skill">;
|
|
2184
2184
|
name: z.ZodString;
|
|
@@ -2220,10 +2220,10 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2220
2220
|
phase: z.ZodEnum<["started", "finished"]>;
|
|
2221
2221
|
}, "strip", z.ZodTypeAny, {
|
|
2222
2222
|
type: "review";
|
|
2223
|
-
phase: "
|
|
2223
|
+
phase: "started" | "finished";
|
|
2224
2224
|
}, {
|
|
2225
2225
|
type: "review";
|
|
2226
|
-
phase: "
|
|
2226
|
+
phase: "started" | "finished";
|
|
2227
2227
|
}>]>>;
|
|
2228
2228
|
/** Replaces the tool call's content when present. */
|
|
2229
2229
|
content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -2262,12 +2262,12 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2262
2262
|
type: "resource_link";
|
|
2263
2263
|
name: string;
|
|
2264
2264
|
uri: string;
|
|
2265
|
-
kind?: "
|
|
2265
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
2266
2266
|
}, {
|
|
2267
2267
|
type: "resource_link";
|
|
2268
2268
|
name: string;
|
|
2269
2269
|
uri: string;
|
|
2270
|
-
kind?: "
|
|
2270
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
2271
2271
|
}>]>;
|
|
2272
2272
|
}, "strip", z.ZodTypeAny, {
|
|
2273
2273
|
type: "content";
|
|
@@ -2283,7 +2283,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2283
2283
|
type: "resource_link";
|
|
2284
2284
|
name: string;
|
|
2285
2285
|
uri: string;
|
|
2286
|
-
kind?: "
|
|
2286
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
2287
2287
|
};
|
|
2288
2288
|
}, {
|
|
2289
2289
|
type: "content";
|
|
@@ -2299,7 +2299,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2299
2299
|
type: "resource_link";
|
|
2300
2300
|
name: string;
|
|
2301
2301
|
uri: string;
|
|
2302
|
-
kind?: "
|
|
2302
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
2303
2303
|
};
|
|
2304
2304
|
}>, z.ZodObject<{
|
|
2305
2305
|
type: z.ZodLiteral<"diff">;
|
|
@@ -2326,13 +2326,13 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2326
2326
|
path: string;
|
|
2327
2327
|
type: "patch";
|
|
2328
2328
|
diff: string;
|
|
2329
|
-
change: "
|
|
2329
|
+
change: "delete" | "add" | "update";
|
|
2330
2330
|
movePath?: string | undefined;
|
|
2331
2331
|
}, {
|
|
2332
2332
|
path: string;
|
|
2333
2333
|
type: "patch";
|
|
2334
2334
|
diff: string;
|
|
2335
|
-
change: "
|
|
2335
|
+
change: "delete" | "add" | "update";
|
|
2336
2336
|
movePath?: string | undefined;
|
|
2337
2337
|
}>, z.ZodObject<{
|
|
2338
2338
|
type: z.ZodLiteral<"terminal">;
|
|
@@ -2350,7 +2350,34 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2350
2350
|
}, "strip", z.ZodTypeAny, {
|
|
2351
2351
|
toolCallId: string;
|
|
2352
2352
|
sessionUpdate: "tool_call_update";
|
|
2353
|
-
status?: "
|
|
2353
|
+
status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
|
|
2354
|
+
title?: string | undefined;
|
|
2355
|
+
detail?: {
|
|
2356
|
+
type: "mcp";
|
|
2357
|
+
tool: string;
|
|
2358
|
+
server: string;
|
|
2359
|
+
} | {
|
|
2360
|
+
type: "subagent";
|
|
2361
|
+
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
2362
|
+
task?: string | undefined;
|
|
2363
|
+
agentType?: string | undefined;
|
|
2364
|
+
model?: string | undefined;
|
|
2365
|
+
} | {
|
|
2366
|
+
type: "skill";
|
|
2367
|
+
name: string;
|
|
2368
|
+
description?: string | undefined;
|
|
2369
|
+
} | {
|
|
2370
|
+
type: "web_search";
|
|
2371
|
+
query?: string | undefined;
|
|
2372
|
+
} | {
|
|
2373
|
+
type: "image_generation";
|
|
2374
|
+
prompt?: string | undefined;
|
|
2375
|
+
} | {
|
|
2376
|
+
type: "compaction";
|
|
2377
|
+
} | {
|
|
2378
|
+
type: "review";
|
|
2379
|
+
phase: "started" | "finished";
|
|
2380
|
+
} | undefined;
|
|
2354
2381
|
content?: ({
|
|
2355
2382
|
type: "content";
|
|
2356
2383
|
content: {
|
|
@@ -2365,7 +2392,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2365
2392
|
type: "resource_link";
|
|
2366
2393
|
name: string;
|
|
2367
2394
|
uri: string;
|
|
2368
|
-
kind?: "
|
|
2395
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
2369
2396
|
};
|
|
2370
2397
|
} | {
|
|
2371
2398
|
path: string;
|
|
@@ -2376,12 +2403,19 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2376
2403
|
path: string;
|
|
2377
2404
|
type: "patch";
|
|
2378
2405
|
diff: string;
|
|
2379
|
-
change: "
|
|
2406
|
+
change: "delete" | "add" | "update";
|
|
2380
2407
|
movePath?: string | undefined;
|
|
2381
2408
|
} | {
|
|
2382
2409
|
type: "terminal";
|
|
2383
2410
|
terminalId: string;
|
|
2384
2411
|
})[] | undefined;
|
|
2412
|
+
parentToolCallId?: string | undefined;
|
|
2413
|
+
appendOutput?: string | undefined;
|
|
2414
|
+
rawOutput?: unknown;
|
|
2415
|
+
}, {
|
|
2416
|
+
toolCallId: string;
|
|
2417
|
+
sessionUpdate: "tool_call_update";
|
|
2418
|
+
status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
|
|
2385
2419
|
title?: string | undefined;
|
|
2386
2420
|
detail?: {
|
|
2387
2421
|
type: "mcp";
|
|
@@ -2389,10 +2423,10 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2389
2423
|
server: string;
|
|
2390
2424
|
} | {
|
|
2391
2425
|
type: "subagent";
|
|
2392
|
-
action: "message" | "spawn" | "resume" | "stop" | "wait" | "list";
|
|
2393
|
-
model?: string | undefined;
|
|
2394
2426
|
task?: string | undefined;
|
|
2395
2427
|
agentType?: string | undefined;
|
|
2428
|
+
model?: string | undefined;
|
|
2429
|
+
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
2396
2430
|
} | {
|
|
2397
2431
|
type: "skill";
|
|
2398
2432
|
name: string;
|
|
@@ -2407,15 +2441,8 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2407
2441
|
type: "compaction";
|
|
2408
2442
|
} | {
|
|
2409
2443
|
type: "review";
|
|
2410
|
-
phase: "
|
|
2444
|
+
phase: "started" | "finished";
|
|
2411
2445
|
} | undefined;
|
|
2412
|
-
rawOutput?: unknown;
|
|
2413
|
-
parentToolCallId?: string | undefined;
|
|
2414
|
-
appendOutput?: string | undefined;
|
|
2415
|
-
}, {
|
|
2416
|
-
toolCallId: string;
|
|
2417
|
-
sessionUpdate: "tool_call_update";
|
|
2418
|
-
status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
|
|
2419
2446
|
content?: ({
|
|
2420
2447
|
type: "content";
|
|
2421
2448
|
content: {
|
|
@@ -2430,7 +2457,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2430
2457
|
type: "resource_link";
|
|
2431
2458
|
name: string;
|
|
2432
2459
|
uri: string;
|
|
2433
|
-
kind?: "
|
|
2460
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
2434
2461
|
};
|
|
2435
2462
|
} | {
|
|
2436
2463
|
path: string;
|
|
@@ -2441,42 +2468,15 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2441
2468
|
path: string;
|
|
2442
2469
|
type: "patch";
|
|
2443
2470
|
diff: string;
|
|
2444
|
-
change: "
|
|
2471
|
+
change: "delete" | "add" | "update";
|
|
2445
2472
|
movePath?: string | undefined;
|
|
2446
2473
|
} | {
|
|
2447
2474
|
type: "terminal";
|
|
2448
2475
|
terminalId: string;
|
|
2449
2476
|
})[] | undefined;
|
|
2450
|
-
title?: string | undefined;
|
|
2451
|
-
detail?: {
|
|
2452
|
-
type: "mcp";
|
|
2453
|
-
tool: string;
|
|
2454
|
-
server: string;
|
|
2455
|
-
} | {
|
|
2456
|
-
type: "subagent";
|
|
2457
|
-
model?: string | undefined;
|
|
2458
|
-
action?: "message" | "spawn" | "resume" | "stop" | "wait" | "list" | undefined;
|
|
2459
|
-
task?: string | undefined;
|
|
2460
|
-
agentType?: string | undefined;
|
|
2461
|
-
} | {
|
|
2462
|
-
type: "skill";
|
|
2463
|
-
name: string;
|
|
2464
|
-
description?: string | undefined;
|
|
2465
|
-
} | {
|
|
2466
|
-
type: "web_search";
|
|
2467
|
-
query?: string | undefined;
|
|
2468
|
-
} | {
|
|
2469
|
-
type: "image_generation";
|
|
2470
|
-
prompt?: string | undefined;
|
|
2471
|
-
} | {
|
|
2472
|
-
type: "compaction";
|
|
2473
|
-
} | {
|
|
2474
|
-
type: "review";
|
|
2475
|
-
phase: "finished" | "started";
|
|
2476
|
-
} | undefined;
|
|
2477
|
-
rawOutput?: unknown;
|
|
2478
2477
|
parentToolCallId?: string | undefined;
|
|
2479
2478
|
appendOutput?: string | undefined;
|
|
2479
|
+
rawOutput?: unknown;
|
|
2480
2480
|
}>, z.ZodObject<{
|
|
2481
2481
|
sessionUpdate: z.ZodLiteral<"plan">;
|
|
2482
2482
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -2484,26 +2484,26 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2484
2484
|
priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
|
|
2485
2485
|
status: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
2486
2486
|
}, "strip", z.ZodTypeAny, {
|
|
2487
|
-
status: "pending" | "
|
|
2487
|
+
status: "pending" | "in_progress" | "completed";
|
|
2488
2488
|
content: string;
|
|
2489
|
-
priority: "
|
|
2489
|
+
priority: "high" | "medium" | "low";
|
|
2490
2490
|
}, {
|
|
2491
|
-
status: "pending" | "
|
|
2491
|
+
status: "pending" | "in_progress" | "completed";
|
|
2492
2492
|
content: string;
|
|
2493
|
-
priority?: "
|
|
2493
|
+
priority?: "high" | "medium" | "low" | undefined;
|
|
2494
2494
|
}>, "many">;
|
|
2495
2495
|
}, "strip", z.ZodTypeAny, {
|
|
2496
2496
|
entries: {
|
|
2497
|
-
status: "pending" | "
|
|
2497
|
+
status: "pending" | "in_progress" | "completed";
|
|
2498
2498
|
content: string;
|
|
2499
|
-
priority: "
|
|
2499
|
+
priority: "high" | "medium" | "low";
|
|
2500
2500
|
}[];
|
|
2501
2501
|
sessionUpdate: "plan";
|
|
2502
2502
|
}, {
|
|
2503
2503
|
entries: {
|
|
2504
|
-
status: "pending" | "
|
|
2504
|
+
status: "pending" | "in_progress" | "completed";
|
|
2505
2505
|
content: string;
|
|
2506
|
-
priority?: "
|
|
2506
|
+
priority?: "high" | "medium" | "low" | undefined;
|
|
2507
2507
|
}[];
|
|
2508
2508
|
sessionUpdate: "plan";
|
|
2509
2509
|
}>, z.ZodObject<{
|
|
@@ -2562,26 +2562,26 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2562
2562
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
2563
2563
|
}, "strip", z.ZodTypeAny, {
|
|
2564
2564
|
sessionUpdate: "usage_update";
|
|
2565
|
-
contextWindow?: number | undefined;
|
|
2566
2565
|
usedTokens?: number | undefined;
|
|
2566
|
+
contextWindow?: number | undefined;
|
|
2567
2567
|
}, {
|
|
2568
2568
|
sessionUpdate: "usage_update";
|
|
2569
|
-
contextWindow?: number | undefined;
|
|
2570
2569
|
usedTokens?: number | undefined;
|
|
2570
|
+
contextWindow?: number | undefined;
|
|
2571
2571
|
}>, z.ZodObject<{
|
|
2572
2572
|
sessionUpdate: z.ZodLiteral<"ls_message_done">;
|
|
2573
2573
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
2574
2574
|
messageId: z.ZodString;
|
|
2575
2575
|
role: z.ZodEnum<["agent", "thought", "user"]>;
|
|
2576
2576
|
}, "strip", z.ZodTypeAny, {
|
|
2577
|
-
role: "user" | "agent" | "thought";
|
|
2578
|
-
messageId: string;
|
|
2579
2577
|
sessionUpdate: "ls_message_done";
|
|
2578
|
+
messageId: string;
|
|
2579
|
+
role: "agent" | "thought" | "user";
|
|
2580
2580
|
parentToolCallId?: string | undefined;
|
|
2581
2581
|
}, {
|
|
2582
|
-
role: "user" | "agent" | "thought";
|
|
2583
|
-
messageId: string;
|
|
2584
2582
|
sessionUpdate: "ls_message_done";
|
|
2583
|
+
messageId: string;
|
|
2584
|
+
role: "agent" | "thought" | "user";
|
|
2585
2585
|
parentToolCallId?: string | undefined;
|
|
2586
2586
|
}>, z.ZodObject<{
|
|
2587
2587
|
sessionUpdate: z.ZodLiteral<"ls_config">;
|
|
@@ -2612,7 +2612,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2612
2612
|
}[];
|
|
2613
2613
|
id: string;
|
|
2614
2614
|
name: string;
|
|
2615
|
-
category: "
|
|
2615
|
+
category: "other" | "model" | "mode" | "effort";
|
|
2616
2616
|
current: string;
|
|
2617
2617
|
}, {
|
|
2618
2618
|
values: {
|
|
@@ -2623,7 +2623,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2623
2623
|
id: string;
|
|
2624
2624
|
name: string;
|
|
2625
2625
|
current: string;
|
|
2626
|
-
category?: "
|
|
2626
|
+
category?: "other" | "model" | "mode" | "effort" | undefined;
|
|
2627
2627
|
}>, "many">;
|
|
2628
2628
|
}, "strip", z.ZodTypeAny, {
|
|
2629
2629
|
options: {
|
|
@@ -2634,7 +2634,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2634
2634
|
}[];
|
|
2635
2635
|
id: string;
|
|
2636
2636
|
name: string;
|
|
2637
|
-
category: "
|
|
2637
|
+
category: "other" | "model" | "mode" | "effort";
|
|
2638
2638
|
current: string;
|
|
2639
2639
|
}[];
|
|
2640
2640
|
sessionUpdate: "ls_config";
|
|
@@ -2648,7 +2648,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2648
2648
|
id: string;
|
|
2649
2649
|
name: string;
|
|
2650
2650
|
current: string;
|
|
2651
|
-
category?: "
|
|
2651
|
+
category?: "other" | "model" | "mode" | "effort" | undefined;
|
|
2652
2652
|
}[];
|
|
2653
2653
|
sessionUpdate: "ls_config";
|
|
2654
2654
|
}>, z.ZodObject<{
|
|
@@ -2676,15 +2676,15 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2676
2676
|
}, "strip", z.ZodTypeAny, {
|
|
2677
2677
|
state: "started" | "ended";
|
|
2678
2678
|
sessionUpdate: "ls_turn";
|
|
2679
|
-
turnId?: string | undefined;
|
|
2680
2679
|
parentToolCallId?: string | undefined;
|
|
2681
|
-
|
|
2680
|
+
turnId?: string | undefined;
|
|
2681
|
+
stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
|
|
2682
2682
|
}, {
|
|
2683
2683
|
state: "started" | "ended";
|
|
2684
2684
|
sessionUpdate: "ls_turn";
|
|
2685
|
-
turnId?: string | undefined;
|
|
2686
2685
|
parentToolCallId?: string | undefined;
|
|
2687
|
-
|
|
2686
|
+
turnId?: string | undefined;
|
|
2687
|
+
stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
|
|
2688
2688
|
}>, z.ZodObject<{
|
|
2689
2689
|
sessionUpdate: z.ZodLiteral<"ls_permission">;
|
|
2690
2690
|
requestId: z.ZodString;
|
|
@@ -2696,36 +2696,36 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2696
2696
|
name: z.ZodString;
|
|
2697
2697
|
kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
|
|
2698
2698
|
}, "strip", z.ZodTypeAny, {
|
|
2699
|
+
optionId: string;
|
|
2699
2700
|
name: string;
|
|
2700
2701
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
2701
|
-
optionId: string;
|
|
2702
2702
|
}, {
|
|
2703
|
+
optionId: string;
|
|
2703
2704
|
name: string;
|
|
2704
2705
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
2705
|
-
optionId: string;
|
|
2706
2706
|
}>, "many">;
|
|
2707
2707
|
}, "strip", z.ZodTypeAny, {
|
|
2708
2708
|
options: {
|
|
2709
|
+
optionId: string;
|
|
2709
2710
|
name: string;
|
|
2710
2711
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
2711
|
-
optionId: string;
|
|
2712
2712
|
}[];
|
|
2713
|
-
requestId: string;
|
|
2714
2713
|
title: string;
|
|
2714
|
+
requestId: string;
|
|
2715
2715
|
sessionUpdate: "ls_permission";
|
|
2716
|
-
detail?: string | undefined;
|
|
2717
2716
|
toolCallId?: string | undefined;
|
|
2717
|
+
detail?: string | undefined;
|
|
2718
2718
|
}, {
|
|
2719
2719
|
options: {
|
|
2720
|
+
optionId: string;
|
|
2720
2721
|
name: string;
|
|
2721
2722
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
2722
|
-
optionId: string;
|
|
2723
2723
|
}[];
|
|
2724
|
-
requestId: string;
|
|
2725
2724
|
title: string;
|
|
2725
|
+
requestId: string;
|
|
2726
2726
|
sessionUpdate: "ls_permission";
|
|
2727
|
-
detail?: string | undefined;
|
|
2728
2727
|
toolCallId?: string | undefined;
|
|
2728
|
+
detail?: string | undefined;
|
|
2729
2729
|
}>, z.ZodObject<{
|
|
2730
2730
|
sessionUpdate: z.ZodLiteral<"ls_permission_resolved">;
|
|
2731
2731
|
requestId: z.ZodString;
|
|
@@ -2743,21 +2743,21 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2743
2743
|
driver: z.ZodEnum<["desktop", "remote", "none"]>;
|
|
2744
2744
|
deviceId: z.ZodOptional<z.ZodString>;
|
|
2745
2745
|
}, "strip", z.ZodTypeAny, {
|
|
2746
|
+
driver: "remote" | "desktop" | "none";
|
|
2746
2747
|
sessionUpdate: "ls_driver";
|
|
2747
|
-
driver: "none" | "desktop" | "remote";
|
|
2748
2748
|
deviceId?: string | undefined;
|
|
2749
2749
|
}, {
|
|
2750
|
+
driver: "remote" | "desktop" | "none";
|
|
2750
2751
|
sessionUpdate: "ls_driver";
|
|
2751
|
-
driver: "none" | "desktop" | "remote";
|
|
2752
2752
|
deviceId?: string | undefined;
|
|
2753
2753
|
}>, z.ZodObject<{
|
|
2754
2754
|
sessionUpdate: z.ZodLiteral<"ls_status">;
|
|
2755
2755
|
state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
|
|
2756
2756
|
}, "strip", z.ZodTypeAny, {
|
|
2757
|
-
state: "idle" | "
|
|
2757
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
2758
2758
|
sessionUpdate: "ls_status";
|
|
2759
2759
|
}, {
|
|
2760
|
-
state: "idle" | "
|
|
2760
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
2761
2761
|
sessionUpdate: "ls_status";
|
|
2762
2762
|
}>, z.ZodObject<{
|
|
2763
2763
|
sessionUpdate: z.ZodLiteral<"ls_error">;
|
|
@@ -2780,6 +2780,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2780
2780
|
seq: number;
|
|
2781
2781
|
ts: number;
|
|
2782
2782
|
update: {
|
|
2783
|
+
sessionUpdate: "user_message_chunk";
|
|
2783
2784
|
content: {
|
|
2784
2785
|
type: "text";
|
|
2785
2786
|
text: string;
|
|
@@ -2792,11 +2793,12 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2792
2793
|
type: "resource_link";
|
|
2793
2794
|
name: string;
|
|
2794
2795
|
uri: string;
|
|
2795
|
-
kind?: "
|
|
2796
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
2796
2797
|
};
|
|
2797
|
-
sessionUpdate: "user_message_chunk";
|
|
2798
2798
|
messageId?: string | undefined;
|
|
2799
2799
|
} | {
|
|
2800
|
+
sessionUpdate: "agent_message_chunk";
|
|
2801
|
+
messageId: string;
|
|
2800
2802
|
content: {
|
|
2801
2803
|
type: "text";
|
|
2802
2804
|
text: string;
|
|
@@ -2809,12 +2811,12 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2809
2811
|
type: "resource_link";
|
|
2810
2812
|
name: string;
|
|
2811
2813
|
uri: string;
|
|
2812
|
-
kind?: "
|
|
2814
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
2813
2815
|
};
|
|
2814
|
-
messageId: string;
|
|
2815
|
-
sessionUpdate: "agent_message_chunk";
|
|
2816
2816
|
parentToolCallId?: string | undefined;
|
|
2817
2817
|
} | {
|
|
2818
|
+
sessionUpdate: "agent_thought_chunk";
|
|
2819
|
+
messageId: string;
|
|
2818
2820
|
content: {
|
|
2819
2821
|
type: "text";
|
|
2820
2822
|
text: string;
|
|
@@ -2827,17 +2829,41 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2827
2829
|
type: "resource_link";
|
|
2828
2830
|
name: string;
|
|
2829
2831
|
uri: string;
|
|
2830
|
-
kind?: "
|
|
2832
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
2831
2833
|
};
|
|
2832
|
-
messageId: string;
|
|
2833
|
-
sessionUpdate: "agent_thought_chunk";
|
|
2834
2834
|
parentToolCallId?: string | undefined;
|
|
2835
2835
|
} | {
|
|
2836
|
-
status: "
|
|
2837
|
-
kind: "
|
|
2836
|
+
status: "failed" | "pending" | "in_progress" | "completed";
|
|
2837
|
+
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
2838
2838
|
title: string;
|
|
2839
2839
|
toolCallId: string;
|
|
2840
2840
|
sessionUpdate: "tool_call";
|
|
2841
|
+
detail?: {
|
|
2842
|
+
type: "mcp";
|
|
2843
|
+
tool: string;
|
|
2844
|
+
server: string;
|
|
2845
|
+
} | {
|
|
2846
|
+
type: "subagent";
|
|
2847
|
+
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
2848
|
+
task?: string | undefined;
|
|
2849
|
+
agentType?: string | undefined;
|
|
2850
|
+
model?: string | undefined;
|
|
2851
|
+
} | {
|
|
2852
|
+
type: "skill";
|
|
2853
|
+
name: string;
|
|
2854
|
+
description?: string | undefined;
|
|
2855
|
+
} | {
|
|
2856
|
+
type: "web_search";
|
|
2857
|
+
query?: string | undefined;
|
|
2858
|
+
} | {
|
|
2859
|
+
type: "image_generation";
|
|
2860
|
+
prompt?: string | undefined;
|
|
2861
|
+
} | {
|
|
2862
|
+
type: "compaction";
|
|
2863
|
+
} | {
|
|
2864
|
+
type: "review";
|
|
2865
|
+
phase: "started" | "finished";
|
|
2866
|
+
} | undefined;
|
|
2841
2867
|
content?: ({
|
|
2842
2868
|
type: "content";
|
|
2843
2869
|
content: {
|
|
@@ -2852,7 +2878,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2852
2878
|
type: "resource_link";
|
|
2853
2879
|
name: string;
|
|
2854
2880
|
uri: string;
|
|
2855
|
-
kind?: "
|
|
2881
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
2856
2882
|
};
|
|
2857
2883
|
} | {
|
|
2858
2884
|
path: string;
|
|
@@ -2863,22 +2889,33 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2863
2889
|
path: string;
|
|
2864
2890
|
type: "patch";
|
|
2865
2891
|
diff: string;
|
|
2866
|
-
change: "
|
|
2892
|
+
change: "delete" | "add" | "update";
|
|
2867
2893
|
movePath?: string | undefined;
|
|
2868
2894
|
} | {
|
|
2869
2895
|
type: "terminal";
|
|
2870
2896
|
terminalId: string;
|
|
2871
2897
|
})[] | undefined;
|
|
2898
|
+
parentToolCallId?: string | undefined;
|
|
2899
|
+
rawInput?: unknown;
|
|
2900
|
+
locations?: {
|
|
2901
|
+
path: string;
|
|
2902
|
+
line?: number | undefined;
|
|
2903
|
+
}[] | undefined;
|
|
2904
|
+
} | {
|
|
2905
|
+
toolCallId: string;
|
|
2906
|
+
sessionUpdate: "tool_call_update";
|
|
2907
|
+
status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
|
|
2908
|
+
title?: string | undefined;
|
|
2872
2909
|
detail?: {
|
|
2873
2910
|
type: "mcp";
|
|
2874
2911
|
tool: string;
|
|
2875
2912
|
server: string;
|
|
2876
2913
|
} | {
|
|
2877
2914
|
type: "subagent";
|
|
2878
|
-
action: "message" | "spawn" | "
|
|
2879
|
-
model?: string | undefined;
|
|
2915
|
+
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
2880
2916
|
task?: string | undefined;
|
|
2881
2917
|
agentType?: string | undefined;
|
|
2918
|
+
model?: string | undefined;
|
|
2882
2919
|
} | {
|
|
2883
2920
|
type: "skill";
|
|
2884
2921
|
name: string;
|
|
@@ -2893,18 +2930,8 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2893
2930
|
type: "compaction";
|
|
2894
2931
|
} | {
|
|
2895
2932
|
type: "review";
|
|
2896
|
-
phase: "
|
|
2933
|
+
phase: "started" | "finished";
|
|
2897
2934
|
} | undefined;
|
|
2898
|
-
rawInput?: unknown;
|
|
2899
|
-
parentToolCallId?: string | undefined;
|
|
2900
|
-
locations?: {
|
|
2901
|
-
path: string;
|
|
2902
|
-
line?: number | undefined;
|
|
2903
|
-
}[] | undefined;
|
|
2904
|
-
} | {
|
|
2905
|
-
toolCallId: string;
|
|
2906
|
-
sessionUpdate: "tool_call_update";
|
|
2907
|
-
status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
|
|
2908
2935
|
content?: ({
|
|
2909
2936
|
type: "content";
|
|
2910
2937
|
content: {
|
|
@@ -2919,7 +2946,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2919
2946
|
type: "resource_link";
|
|
2920
2947
|
name: string;
|
|
2921
2948
|
uri: string;
|
|
2922
|
-
kind?: "
|
|
2949
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
2923
2950
|
};
|
|
2924
2951
|
} | {
|
|
2925
2952
|
path: string;
|
|
@@ -2930,47 +2957,20 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2930
2957
|
path: string;
|
|
2931
2958
|
type: "patch";
|
|
2932
2959
|
diff: string;
|
|
2933
|
-
change: "
|
|
2960
|
+
change: "delete" | "add" | "update";
|
|
2934
2961
|
movePath?: string | undefined;
|
|
2935
2962
|
} | {
|
|
2936
2963
|
type: "terminal";
|
|
2937
2964
|
terminalId: string;
|
|
2938
2965
|
})[] | undefined;
|
|
2939
|
-
title?: string | undefined;
|
|
2940
|
-
detail?: {
|
|
2941
|
-
type: "mcp";
|
|
2942
|
-
tool: string;
|
|
2943
|
-
server: string;
|
|
2944
|
-
} | {
|
|
2945
|
-
type: "subagent";
|
|
2946
|
-
action: "message" | "spawn" | "resume" | "stop" | "wait" | "list";
|
|
2947
|
-
model?: string | undefined;
|
|
2948
|
-
task?: string | undefined;
|
|
2949
|
-
agentType?: string | undefined;
|
|
2950
|
-
} | {
|
|
2951
|
-
type: "skill";
|
|
2952
|
-
name: string;
|
|
2953
|
-
description?: string | undefined;
|
|
2954
|
-
} | {
|
|
2955
|
-
type: "web_search";
|
|
2956
|
-
query?: string | undefined;
|
|
2957
|
-
} | {
|
|
2958
|
-
type: "image_generation";
|
|
2959
|
-
prompt?: string | undefined;
|
|
2960
|
-
} | {
|
|
2961
|
-
type: "compaction";
|
|
2962
|
-
} | {
|
|
2963
|
-
type: "review";
|
|
2964
|
-
phase: "finished" | "started";
|
|
2965
|
-
} | undefined;
|
|
2966
|
-
rawOutput?: unknown;
|
|
2967
2966
|
parentToolCallId?: string | undefined;
|
|
2968
2967
|
appendOutput?: string | undefined;
|
|
2968
|
+
rawOutput?: unknown;
|
|
2969
2969
|
} | {
|
|
2970
2970
|
entries: {
|
|
2971
|
-
status: "pending" | "
|
|
2971
|
+
status: "pending" | "in_progress" | "completed";
|
|
2972
2972
|
content: string;
|
|
2973
|
-
priority: "
|
|
2973
|
+
priority: "high" | "medium" | "low";
|
|
2974
2974
|
}[];
|
|
2975
2975
|
sessionUpdate: "plan";
|
|
2976
2976
|
} | {
|
|
@@ -2989,12 +2989,12 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2989
2989
|
model?: string | undefined;
|
|
2990
2990
|
} | {
|
|
2991
2991
|
sessionUpdate: "usage_update";
|
|
2992
|
-
contextWindow?: number | undefined;
|
|
2993
2992
|
usedTokens?: number | undefined;
|
|
2993
|
+
contextWindow?: number | undefined;
|
|
2994
2994
|
} | {
|
|
2995
|
-
role: "user" | "agent" | "thought";
|
|
2996
|
-
messageId: string;
|
|
2997
2995
|
sessionUpdate: "ls_message_done";
|
|
2996
|
+
messageId: string;
|
|
2997
|
+
role: "agent" | "thought" | "user";
|
|
2998
2998
|
parentToolCallId?: string | undefined;
|
|
2999
2999
|
} | {
|
|
3000
3000
|
options: {
|
|
@@ -3005,7 +3005,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3005
3005
|
}[];
|
|
3006
3006
|
id: string;
|
|
3007
3007
|
name: string;
|
|
3008
|
-
category: "
|
|
3008
|
+
category: "other" | "model" | "mode" | "effort";
|
|
3009
3009
|
current: string;
|
|
3010
3010
|
}[];
|
|
3011
3011
|
sessionUpdate: "ls_config";
|
|
@@ -3017,30 +3017,30 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3017
3017
|
} | {
|
|
3018
3018
|
state: "started" | "ended";
|
|
3019
3019
|
sessionUpdate: "ls_turn";
|
|
3020
|
-
turnId?: string | undefined;
|
|
3021
3020
|
parentToolCallId?: string | undefined;
|
|
3022
|
-
|
|
3021
|
+
turnId?: string | undefined;
|
|
3022
|
+
stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
|
|
3023
3023
|
} | {
|
|
3024
3024
|
options: {
|
|
3025
|
+
optionId: string;
|
|
3025
3026
|
name: string;
|
|
3026
3027
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
3027
|
-
optionId: string;
|
|
3028
3028
|
}[];
|
|
3029
|
-
requestId: string;
|
|
3030
3029
|
title: string;
|
|
3030
|
+
requestId: string;
|
|
3031
3031
|
sessionUpdate: "ls_permission";
|
|
3032
|
-
detail?: string | undefined;
|
|
3033
3032
|
toolCallId?: string | undefined;
|
|
3033
|
+
detail?: string | undefined;
|
|
3034
3034
|
} | {
|
|
3035
3035
|
requestId: string;
|
|
3036
3036
|
sessionUpdate: "ls_permission_resolved";
|
|
3037
3037
|
optionId?: string | undefined;
|
|
3038
3038
|
} | {
|
|
3039
|
+
driver: "remote" | "desktop" | "none";
|
|
3039
3040
|
sessionUpdate: "ls_driver";
|
|
3040
|
-
driver: "none" | "desktop" | "remote";
|
|
3041
3041
|
deviceId?: string | undefined;
|
|
3042
3042
|
} | {
|
|
3043
|
-
state: "idle" | "
|
|
3043
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
3044
3044
|
sessionUpdate: "ls_status";
|
|
3045
3045
|
} | {
|
|
3046
3046
|
code: string;
|
|
@@ -3053,6 +3053,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3053
3053
|
seq: number;
|
|
3054
3054
|
ts: number;
|
|
3055
3055
|
update: {
|
|
3056
|
+
sessionUpdate: "user_message_chunk";
|
|
3056
3057
|
content: {
|
|
3057
3058
|
type: "text";
|
|
3058
3059
|
text: string;
|
|
@@ -3065,11 +3066,12 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3065
3066
|
type: "resource_link";
|
|
3066
3067
|
name: string;
|
|
3067
3068
|
uri: string;
|
|
3068
|
-
kind?: "
|
|
3069
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
3069
3070
|
};
|
|
3070
|
-
sessionUpdate: "user_message_chunk";
|
|
3071
3071
|
messageId?: string | undefined;
|
|
3072
3072
|
} | {
|
|
3073
|
+
sessionUpdate: "agent_message_chunk";
|
|
3074
|
+
messageId: string;
|
|
3073
3075
|
content: {
|
|
3074
3076
|
type: "text";
|
|
3075
3077
|
text: string;
|
|
@@ -3082,12 +3084,12 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3082
3084
|
type: "resource_link";
|
|
3083
3085
|
name: string;
|
|
3084
3086
|
uri: string;
|
|
3085
|
-
kind?: "
|
|
3087
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
3086
3088
|
};
|
|
3087
|
-
messageId: string;
|
|
3088
|
-
sessionUpdate: "agent_message_chunk";
|
|
3089
3089
|
parentToolCallId?: string | undefined;
|
|
3090
3090
|
} | {
|
|
3091
|
+
sessionUpdate: "agent_thought_chunk";
|
|
3092
|
+
messageId: string;
|
|
3091
3093
|
content: {
|
|
3092
3094
|
type: "text";
|
|
3093
3095
|
text: string;
|
|
@@ -3100,17 +3102,41 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3100
3102
|
type: "resource_link";
|
|
3101
3103
|
name: string;
|
|
3102
3104
|
uri: string;
|
|
3103
|
-
kind?: "
|
|
3105
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
3104
3106
|
};
|
|
3105
|
-
messageId: string;
|
|
3106
|
-
sessionUpdate: "agent_thought_chunk";
|
|
3107
3107
|
parentToolCallId?: string | undefined;
|
|
3108
3108
|
} | {
|
|
3109
|
-
status: "
|
|
3110
|
-
kind: "
|
|
3109
|
+
status: "failed" | "pending" | "in_progress" | "completed";
|
|
3110
|
+
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
3111
3111
|
title: string;
|
|
3112
3112
|
toolCallId: string;
|
|
3113
3113
|
sessionUpdate: "tool_call";
|
|
3114
|
+
detail?: {
|
|
3115
|
+
type: "mcp";
|
|
3116
|
+
tool: string;
|
|
3117
|
+
server: string;
|
|
3118
|
+
} | {
|
|
3119
|
+
type: "subagent";
|
|
3120
|
+
task?: string | undefined;
|
|
3121
|
+
agentType?: string | undefined;
|
|
3122
|
+
model?: string | undefined;
|
|
3123
|
+
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
3124
|
+
} | {
|
|
3125
|
+
type: "skill";
|
|
3126
|
+
name: string;
|
|
3127
|
+
description?: string | undefined;
|
|
3128
|
+
} | {
|
|
3129
|
+
type: "web_search";
|
|
3130
|
+
query?: string | undefined;
|
|
3131
|
+
} | {
|
|
3132
|
+
type: "image_generation";
|
|
3133
|
+
prompt?: string | undefined;
|
|
3134
|
+
} | {
|
|
3135
|
+
type: "compaction";
|
|
3136
|
+
} | {
|
|
3137
|
+
type: "review";
|
|
3138
|
+
phase: "started" | "finished";
|
|
3139
|
+
} | undefined;
|
|
3114
3140
|
content?: ({
|
|
3115
3141
|
type: "content";
|
|
3116
3142
|
content: {
|
|
@@ -3125,7 +3151,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3125
3151
|
type: "resource_link";
|
|
3126
3152
|
name: string;
|
|
3127
3153
|
uri: string;
|
|
3128
|
-
kind?: "
|
|
3154
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
3129
3155
|
};
|
|
3130
3156
|
} | {
|
|
3131
3157
|
path: string;
|
|
@@ -3136,22 +3162,33 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3136
3162
|
path: string;
|
|
3137
3163
|
type: "patch";
|
|
3138
3164
|
diff: string;
|
|
3139
|
-
change: "
|
|
3165
|
+
change: "delete" | "add" | "update";
|
|
3140
3166
|
movePath?: string | undefined;
|
|
3141
3167
|
} | {
|
|
3142
3168
|
type: "terminal";
|
|
3143
3169
|
terminalId: string;
|
|
3144
3170
|
})[] | undefined;
|
|
3171
|
+
parentToolCallId?: string | undefined;
|
|
3172
|
+
rawInput?: unknown;
|
|
3173
|
+
locations?: {
|
|
3174
|
+
path: string;
|
|
3175
|
+
line?: number | undefined;
|
|
3176
|
+
}[] | undefined;
|
|
3177
|
+
} | {
|
|
3178
|
+
toolCallId: string;
|
|
3179
|
+
sessionUpdate: "tool_call_update";
|
|
3180
|
+
status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
|
|
3181
|
+
title?: string | undefined;
|
|
3145
3182
|
detail?: {
|
|
3146
3183
|
type: "mcp";
|
|
3147
3184
|
tool: string;
|
|
3148
3185
|
server: string;
|
|
3149
3186
|
} | {
|
|
3150
3187
|
type: "subagent";
|
|
3151
|
-
model?: string | undefined;
|
|
3152
|
-
action?: "message" | "spawn" | "resume" | "stop" | "wait" | "list" | undefined;
|
|
3153
3188
|
task?: string | undefined;
|
|
3154
3189
|
agentType?: string | undefined;
|
|
3190
|
+
model?: string | undefined;
|
|
3191
|
+
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
3155
3192
|
} | {
|
|
3156
3193
|
type: "skill";
|
|
3157
3194
|
name: string;
|
|
@@ -3166,18 +3203,8 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3166
3203
|
type: "compaction";
|
|
3167
3204
|
} | {
|
|
3168
3205
|
type: "review";
|
|
3169
|
-
phase: "
|
|
3206
|
+
phase: "started" | "finished";
|
|
3170
3207
|
} | undefined;
|
|
3171
|
-
rawInput?: unknown;
|
|
3172
|
-
parentToolCallId?: string | undefined;
|
|
3173
|
-
locations?: {
|
|
3174
|
-
path: string;
|
|
3175
|
-
line?: number | undefined;
|
|
3176
|
-
}[] | undefined;
|
|
3177
|
-
} | {
|
|
3178
|
-
toolCallId: string;
|
|
3179
|
-
sessionUpdate: "tool_call_update";
|
|
3180
|
-
status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
|
|
3181
3208
|
content?: ({
|
|
3182
3209
|
type: "content";
|
|
3183
3210
|
content: {
|
|
@@ -3192,7 +3219,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3192
3219
|
type: "resource_link";
|
|
3193
3220
|
name: string;
|
|
3194
3221
|
uri: string;
|
|
3195
|
-
kind?: "
|
|
3222
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
3196
3223
|
};
|
|
3197
3224
|
} | {
|
|
3198
3225
|
path: string;
|
|
@@ -3203,47 +3230,20 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3203
3230
|
path: string;
|
|
3204
3231
|
type: "patch";
|
|
3205
3232
|
diff: string;
|
|
3206
|
-
change: "
|
|
3233
|
+
change: "delete" | "add" | "update";
|
|
3207
3234
|
movePath?: string | undefined;
|
|
3208
3235
|
} | {
|
|
3209
3236
|
type: "terminal";
|
|
3210
3237
|
terminalId: string;
|
|
3211
3238
|
})[] | undefined;
|
|
3212
|
-
title?: string | undefined;
|
|
3213
|
-
detail?: {
|
|
3214
|
-
type: "mcp";
|
|
3215
|
-
tool: string;
|
|
3216
|
-
server: string;
|
|
3217
|
-
} | {
|
|
3218
|
-
type: "subagent";
|
|
3219
|
-
model?: string | undefined;
|
|
3220
|
-
action?: "message" | "spawn" | "resume" | "stop" | "wait" | "list" | undefined;
|
|
3221
|
-
task?: string | undefined;
|
|
3222
|
-
agentType?: string | undefined;
|
|
3223
|
-
} | {
|
|
3224
|
-
type: "skill";
|
|
3225
|
-
name: string;
|
|
3226
|
-
description?: string | undefined;
|
|
3227
|
-
} | {
|
|
3228
|
-
type: "web_search";
|
|
3229
|
-
query?: string | undefined;
|
|
3230
|
-
} | {
|
|
3231
|
-
type: "image_generation";
|
|
3232
|
-
prompt?: string | undefined;
|
|
3233
|
-
} | {
|
|
3234
|
-
type: "compaction";
|
|
3235
|
-
} | {
|
|
3236
|
-
type: "review";
|
|
3237
|
-
phase: "finished" | "started";
|
|
3238
|
-
} | undefined;
|
|
3239
|
-
rawOutput?: unknown;
|
|
3240
3239
|
parentToolCallId?: string | undefined;
|
|
3241
3240
|
appendOutput?: string | undefined;
|
|
3241
|
+
rawOutput?: unknown;
|
|
3242
3242
|
} | {
|
|
3243
3243
|
entries: {
|
|
3244
|
-
status: "pending" | "
|
|
3244
|
+
status: "pending" | "in_progress" | "completed";
|
|
3245
3245
|
content: string;
|
|
3246
|
-
priority?: "
|
|
3246
|
+
priority?: "high" | "medium" | "low" | undefined;
|
|
3247
3247
|
}[];
|
|
3248
3248
|
sessionUpdate: "plan";
|
|
3249
3249
|
} | {
|
|
@@ -3262,12 +3262,12 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3262
3262
|
model?: string | undefined;
|
|
3263
3263
|
} | {
|
|
3264
3264
|
sessionUpdate: "usage_update";
|
|
3265
|
-
contextWindow?: number | undefined;
|
|
3266
3265
|
usedTokens?: number | undefined;
|
|
3266
|
+
contextWindow?: number | undefined;
|
|
3267
3267
|
} | {
|
|
3268
|
-
role: "user" | "agent" | "thought";
|
|
3269
|
-
messageId: string;
|
|
3270
3268
|
sessionUpdate: "ls_message_done";
|
|
3269
|
+
messageId: string;
|
|
3270
|
+
role: "agent" | "thought" | "user";
|
|
3271
3271
|
parentToolCallId?: string | undefined;
|
|
3272
3272
|
} | {
|
|
3273
3273
|
options: {
|
|
@@ -3279,7 +3279,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3279
3279
|
id: string;
|
|
3280
3280
|
name: string;
|
|
3281
3281
|
current: string;
|
|
3282
|
-
category?: "
|
|
3282
|
+
category?: "other" | "model" | "mode" | "effort" | undefined;
|
|
3283
3283
|
}[];
|
|
3284
3284
|
sessionUpdate: "ls_config";
|
|
3285
3285
|
} | {
|
|
@@ -3290,30 +3290,30 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3290
3290
|
} | {
|
|
3291
3291
|
state: "started" | "ended";
|
|
3292
3292
|
sessionUpdate: "ls_turn";
|
|
3293
|
-
turnId?: string | undefined;
|
|
3294
3293
|
parentToolCallId?: string | undefined;
|
|
3295
|
-
|
|
3294
|
+
turnId?: string | undefined;
|
|
3295
|
+
stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
|
|
3296
3296
|
} | {
|
|
3297
3297
|
options: {
|
|
3298
|
+
optionId: string;
|
|
3298
3299
|
name: string;
|
|
3299
3300
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
3300
|
-
optionId: string;
|
|
3301
3301
|
}[];
|
|
3302
|
-
requestId: string;
|
|
3303
3302
|
title: string;
|
|
3303
|
+
requestId: string;
|
|
3304
3304
|
sessionUpdate: "ls_permission";
|
|
3305
|
-
detail?: string | undefined;
|
|
3306
3305
|
toolCallId?: string | undefined;
|
|
3306
|
+
detail?: string | undefined;
|
|
3307
3307
|
} | {
|
|
3308
3308
|
requestId: string;
|
|
3309
3309
|
sessionUpdate: "ls_permission_resolved";
|
|
3310
3310
|
optionId?: string | undefined;
|
|
3311
3311
|
} | {
|
|
3312
|
+
driver: "remote" | "desktop" | "none";
|
|
3312
3313
|
sessionUpdate: "ls_driver";
|
|
3313
|
-
driver: "none" | "desktop" | "remote";
|
|
3314
3314
|
deviceId?: string | undefined;
|
|
3315
3315
|
} | {
|
|
3316
|
-
state: "idle" | "
|
|
3316
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
3317
3317
|
sessionUpdate: "ls_status";
|
|
3318
3318
|
} | {
|
|
3319
3319
|
code: string;
|