@linkshell/gateway 0.2.45 → 0.2.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gateway/src/embedded.js +16 -1
- package/dist/gateway/src/embedded.js.map +1 -1
- package/dist/gateway/src/index.js +16 -1
- package/dist/gateway/src/index.js.map +1 -1
- package/dist/gateway/src/relay.js +41 -18
- package/dist/gateway/src/relay.js.map +1 -1
- package/dist/gateway/tsconfig.tsbuildinfo +1 -1
- package/dist/shared-protocol/src/index.d.ts +404 -282
- package/dist/shared-protocol/src/index.js +30 -2
- package/dist/shared-protocol/src/index.js.map +1 -1
- package/package.json +2 -2
- package/src/embedded.ts +26 -8
- package/src/index.ts +26 -8
- package/src/relay.ts +62 -25
|
@@ -4,6 +4,8 @@ export declare const deviceRoleSchema: z.ZodEnum<["host", "client"]>;
|
|
|
4
4
|
export type DeviceRole = z.infer<typeof deviceRoleSchema>;
|
|
5
5
|
export declare const sessionStateSchema: z.ZodEnum<["pending_pairing", "connecting", "active", "reconnecting", "idle", "terminated"]>;
|
|
6
6
|
export type SessionState = z.infer<typeof sessionStateSchema>;
|
|
7
|
+
export declare const terminalProviderSchema: z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>;
|
|
8
|
+
export type TerminalProvider = z.infer<typeof terminalProviderSchema>;
|
|
7
9
|
export declare const errorCodeSchema: z.ZodEnum<["session_not_found", "pairing_expired", "pairing_not_found", "control_conflict", "session_terminated", "ack_out_of_range", "invalid_message", "unauthorized"]>;
|
|
8
10
|
export type ErrorCode = z.infer<typeof errorCodeSchema>;
|
|
9
11
|
export declare const envelopeSchema: z.ZodObject<{
|
|
@@ -80,7 +82,7 @@ export declare const terminalResizePayloadSchema: z.ZodObject<{
|
|
|
80
82
|
export declare const sessionConnectPayloadSchema: z.ZodObject<{
|
|
81
83
|
role: z.ZodEnum<["host", "client"]>;
|
|
82
84
|
clientName: z.ZodString;
|
|
83
|
-
provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "custom"]>>;
|
|
85
|
+
provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
|
|
84
86
|
protocolVersion: z.ZodOptional<z.ZodNumber>;
|
|
85
87
|
machineId: z.ZodOptional<z.ZodString>;
|
|
86
88
|
hostname: z.ZodOptional<z.ZodString>;
|
|
@@ -90,7 +92,7 @@ export declare const sessionConnectPayloadSchema: z.ZodObject<{
|
|
|
90
92
|
}, "strip", z.ZodTypeAny, {
|
|
91
93
|
role: "host" | "client";
|
|
92
94
|
clientName: string;
|
|
93
|
-
provider?: "custom" | "claude" | "codex" | undefined;
|
|
95
|
+
provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
|
|
94
96
|
protocolVersion?: number | undefined;
|
|
95
97
|
machineId?: string | undefined;
|
|
96
98
|
hostname?: string | undefined;
|
|
@@ -100,7 +102,7 @@ export declare const sessionConnectPayloadSchema: z.ZodObject<{
|
|
|
100
102
|
}, {
|
|
101
103
|
role: "host" | "client";
|
|
102
104
|
clientName: string;
|
|
103
|
-
provider?: "custom" | "claude" | "codex" | undefined;
|
|
105
|
+
provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
|
|
104
106
|
protocolVersion?: number | undefined;
|
|
105
107
|
machineId?: string | undefined;
|
|
106
108
|
hostname?: string | undefined;
|
|
@@ -289,13 +291,13 @@ export declare const screenIcePayloadSchema: z.ZodObject<{
|
|
|
289
291
|
}>;
|
|
290
292
|
export declare const terminalSpawnPayloadSchema: z.ZodObject<{
|
|
291
293
|
cwd: z.ZodString;
|
|
292
|
-
provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "custom"]>>;
|
|
294
|
+
provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
|
|
293
295
|
}, "strip", z.ZodTypeAny, {
|
|
294
296
|
cwd: string;
|
|
295
|
-
provider?: "custom" | "claude" | "codex" | undefined;
|
|
297
|
+
provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
|
|
296
298
|
}, {
|
|
297
299
|
cwd: string;
|
|
298
|
-
provider?: "custom" | "claude" | "codex" | undefined;
|
|
300
|
+
provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
|
|
299
301
|
}>;
|
|
300
302
|
export declare const terminalInfoSchema: z.ZodObject<{
|
|
301
303
|
terminalId: z.ZodString;
|
|
@@ -385,23 +387,35 @@ export declare const terminalMkdirPayloadSchema: z.ZodObject<{
|
|
|
385
387
|
}>;
|
|
386
388
|
export declare const terminalBrowsePayloadSchema: z.ZodObject<{
|
|
387
389
|
path: z.ZodString;
|
|
390
|
+
includeFiles: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
391
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
388
392
|
}, "strip", z.ZodTypeAny, {
|
|
389
393
|
path: string;
|
|
394
|
+
includeFiles: boolean;
|
|
395
|
+
requestId?: string | undefined;
|
|
390
396
|
}, {
|
|
391
397
|
path: string;
|
|
398
|
+
requestId?: string | undefined;
|
|
399
|
+
includeFiles?: boolean | undefined;
|
|
392
400
|
}>;
|
|
393
401
|
export declare const terminalBrowseEntrySchema: z.ZodObject<{
|
|
394
402
|
name: z.ZodString;
|
|
395
403
|
path: z.ZodString;
|
|
396
404
|
isDirectory: z.ZodBoolean;
|
|
405
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
406
|
+
modifiedAt: z.ZodOptional<z.ZodString>;
|
|
397
407
|
}, "strip", z.ZodTypeAny, {
|
|
398
408
|
path: string;
|
|
399
409
|
name: string;
|
|
400
410
|
isDirectory: boolean;
|
|
411
|
+
size?: number | undefined;
|
|
412
|
+
modifiedAt?: string | undefined;
|
|
401
413
|
}, {
|
|
402
414
|
path: string;
|
|
403
415
|
name: string;
|
|
404
416
|
isDirectory: boolean;
|
|
417
|
+
size?: number | undefined;
|
|
418
|
+
modifiedAt?: string | undefined;
|
|
405
419
|
}>;
|
|
406
420
|
export declare const terminalBrowseResultPayloadSchema: z.ZodObject<{
|
|
407
421
|
path: z.ZodString;
|
|
@@ -409,23 +423,33 @@ export declare const terminalBrowseResultPayloadSchema: z.ZodObject<{
|
|
|
409
423
|
name: z.ZodString;
|
|
410
424
|
path: z.ZodString;
|
|
411
425
|
isDirectory: z.ZodBoolean;
|
|
426
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
427
|
+
modifiedAt: z.ZodOptional<z.ZodString>;
|
|
412
428
|
}, "strip", z.ZodTypeAny, {
|
|
413
429
|
path: string;
|
|
414
430
|
name: string;
|
|
415
431
|
isDirectory: boolean;
|
|
432
|
+
size?: number | undefined;
|
|
433
|
+
modifiedAt?: string | undefined;
|
|
416
434
|
}, {
|
|
417
435
|
path: string;
|
|
418
436
|
name: string;
|
|
419
437
|
isDirectory: boolean;
|
|
438
|
+
size?: number | undefined;
|
|
439
|
+
modifiedAt?: string | undefined;
|
|
420
440
|
}>, "many">;
|
|
421
441
|
error: z.ZodOptional<z.ZodString>;
|
|
442
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
422
443
|
}, "strip", z.ZodTypeAny, {
|
|
423
444
|
path: string;
|
|
424
445
|
entries: {
|
|
425
446
|
path: string;
|
|
426
447
|
name: string;
|
|
427
448
|
isDirectory: boolean;
|
|
449
|
+
size?: number | undefined;
|
|
450
|
+
modifiedAt?: string | undefined;
|
|
428
451
|
}[];
|
|
452
|
+
requestId?: string | undefined;
|
|
429
453
|
error?: string | undefined;
|
|
430
454
|
}, {
|
|
431
455
|
path: string;
|
|
@@ -433,8 +457,49 @@ export declare const terminalBrowseResultPayloadSchema: z.ZodObject<{
|
|
|
433
457
|
path: string;
|
|
434
458
|
name: string;
|
|
435
459
|
isDirectory: boolean;
|
|
460
|
+
size?: number | undefined;
|
|
461
|
+
modifiedAt?: string | undefined;
|
|
436
462
|
}[];
|
|
463
|
+
requestId?: string | undefined;
|
|
464
|
+
error?: string | undefined;
|
|
465
|
+
}>;
|
|
466
|
+
export declare const terminalFileReadPayloadSchema: z.ZodObject<{
|
|
467
|
+
path: z.ZodString;
|
|
468
|
+
maxBytes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
469
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
470
|
+
}, "strip", z.ZodTypeAny, {
|
|
471
|
+
path: string;
|
|
472
|
+
maxBytes: number;
|
|
473
|
+
requestId?: string | undefined;
|
|
474
|
+
}, {
|
|
475
|
+
path: string;
|
|
476
|
+
requestId?: string | undefined;
|
|
477
|
+
maxBytes?: number | undefined;
|
|
478
|
+
}>;
|
|
479
|
+
export declare const terminalFileReadResultPayloadSchema: z.ZodObject<{
|
|
480
|
+
path: z.ZodString;
|
|
481
|
+
content: z.ZodDefault<z.ZodString>;
|
|
482
|
+
encoding: z.ZodDefault<z.ZodLiteral<"utf8">>;
|
|
483
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
484
|
+
truncated: z.ZodDefault<z.ZodBoolean>;
|
|
485
|
+
error: z.ZodOptional<z.ZodString>;
|
|
486
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
487
|
+
}, "strip", z.ZodTypeAny, {
|
|
488
|
+
path: string;
|
|
489
|
+
encoding: "utf8";
|
|
490
|
+
content: string;
|
|
491
|
+
truncated: boolean;
|
|
492
|
+
requestId?: string | undefined;
|
|
493
|
+
error?: string | undefined;
|
|
494
|
+
size?: number | undefined;
|
|
495
|
+
}, {
|
|
496
|
+
path: string;
|
|
497
|
+
requestId?: string | undefined;
|
|
498
|
+
encoding?: "utf8" | undefined;
|
|
437
499
|
error?: string | undefined;
|
|
500
|
+
size?: number | undefined;
|
|
501
|
+
content?: string | undefined;
|
|
502
|
+
truncated?: boolean | undefined;
|
|
438
503
|
}>;
|
|
439
504
|
export declare const terminalStatusPayloadSchema: z.ZodObject<{
|
|
440
505
|
phase: z.ZodEnum<["thinking", "tool_use", "outputting", "waiting", "idle", "error"]>;
|
|
@@ -689,14 +754,14 @@ export declare const agentMessageSchema: z.ZodObject<{
|
|
|
689
754
|
isStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
690
755
|
}, "strip", z.ZodTypeAny, {
|
|
691
756
|
role: "user" | "assistant" | "system";
|
|
692
|
-
id: string;
|
|
693
757
|
content: string;
|
|
758
|
+
id: string;
|
|
694
759
|
createdAt: number;
|
|
695
760
|
isStreaming?: boolean | undefined;
|
|
696
761
|
}, {
|
|
697
762
|
role: "user" | "assistant" | "system";
|
|
698
|
-
id: string;
|
|
699
763
|
content: string;
|
|
764
|
+
id: string;
|
|
700
765
|
createdAt: number;
|
|
701
766
|
isStreaming?: boolean | undefined;
|
|
702
767
|
}>;
|
|
@@ -1334,14 +1399,14 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
|
|
|
1334
1399
|
isStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
1335
1400
|
}, "strip", z.ZodTypeAny, {
|
|
1336
1401
|
role: "user" | "assistant" | "system";
|
|
1337
|
-
id: string;
|
|
1338
1402
|
content: string;
|
|
1403
|
+
id: string;
|
|
1339
1404
|
createdAt: number;
|
|
1340
1405
|
isStreaming?: boolean | undefined;
|
|
1341
1406
|
}, {
|
|
1342
1407
|
role: "user" | "assistant" | "system";
|
|
1343
|
-
id: string;
|
|
1344
1408
|
content: string;
|
|
1409
|
+
id: string;
|
|
1345
1410
|
createdAt: number;
|
|
1346
1411
|
isStreaming?: boolean | undefined;
|
|
1347
1412
|
}>>;
|
|
@@ -1387,8 +1452,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
|
|
|
1387
1452
|
kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
|
|
1388
1453
|
message?: {
|
|
1389
1454
|
role: "user" | "assistant" | "system";
|
|
1390
|
-
id: string;
|
|
1391
1455
|
content: string;
|
|
1456
|
+
id: string;
|
|
1392
1457
|
createdAt: number;
|
|
1393
1458
|
isStreaming?: boolean | undefined;
|
|
1394
1459
|
} | undefined;
|
|
@@ -1413,8 +1478,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
|
|
|
1413
1478
|
kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
|
|
1414
1479
|
message?: {
|
|
1415
1480
|
role: "user" | "assistant" | "system";
|
|
1416
|
-
id: string;
|
|
1417
1481
|
content: string;
|
|
1482
|
+
id: string;
|
|
1418
1483
|
createdAt: number;
|
|
1419
1484
|
isStreaming?: boolean | undefined;
|
|
1420
1485
|
} | undefined;
|
|
@@ -1773,14 +1838,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1773
1838
|
isStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
1774
1839
|
}, "strip", z.ZodTypeAny, {
|
|
1775
1840
|
role: "user" | "assistant" | "system";
|
|
1776
|
-
id: string;
|
|
1777
1841
|
content: string;
|
|
1842
|
+
id: string;
|
|
1778
1843
|
createdAt: number;
|
|
1779
1844
|
isStreaming?: boolean | undefined;
|
|
1780
1845
|
}, {
|
|
1781
1846
|
role: "user" | "assistant" | "system";
|
|
1782
|
-
id: string;
|
|
1783
1847
|
content: string;
|
|
1848
|
+
id: string;
|
|
1784
1849
|
createdAt: number;
|
|
1785
1850
|
isStreaming?: boolean | undefined;
|
|
1786
1851
|
}>, "many">>;
|
|
@@ -1851,8 +1916,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1851
1916
|
status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
|
|
1852
1917
|
messages: {
|
|
1853
1918
|
role: "user" | "assistant" | "system";
|
|
1854
|
-
id: string;
|
|
1855
1919
|
content: string;
|
|
1920
|
+
id: string;
|
|
1856
1921
|
createdAt: number;
|
|
1857
1922
|
isStreaming?: boolean | undefined;
|
|
1858
1923
|
}[];
|
|
@@ -1987,8 +2052,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1987
2052
|
} | undefined;
|
|
1988
2053
|
messages?: {
|
|
1989
2054
|
role: "user" | "assistant" | "system";
|
|
1990
|
-
id: string;
|
|
1991
2055
|
content: string;
|
|
2056
|
+
id: string;
|
|
1992
2057
|
createdAt: number;
|
|
1993
2058
|
isStreaming?: boolean | undefined;
|
|
1994
2059
|
}[] | undefined;
|
|
@@ -2678,6 +2743,12 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
|
|
|
2678
2743
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
2679
2744
|
role?: "user" | "assistant" | "system" | undefined;
|
|
2680
2745
|
error?: string | undefined;
|
|
2746
|
+
content?: {
|
|
2747
|
+
type: "text" | "image";
|
|
2748
|
+
data?: string | undefined;
|
|
2749
|
+
text?: string | undefined;
|
|
2750
|
+
mimeType?: string | undefined;
|
|
2751
|
+
}[] | undefined;
|
|
2681
2752
|
text?: string | undefined;
|
|
2682
2753
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
2683
2754
|
plan?: {
|
|
@@ -2685,12 +2756,6 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
|
|
|
2685
2756
|
id: string;
|
|
2686
2757
|
text: string;
|
|
2687
2758
|
}[] | undefined;
|
|
2688
|
-
content?: {
|
|
2689
|
-
type: "text" | "image";
|
|
2690
|
-
data?: string | undefined;
|
|
2691
|
-
text?: string | undefined;
|
|
2692
|
-
mimeType?: string | undefined;
|
|
2693
|
-
}[] | undefined;
|
|
2694
2759
|
isStreaming?: boolean | undefined;
|
|
2695
2760
|
toolCall?: {
|
|
2696
2761
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -2778,6 +2843,12 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
|
|
|
2778
2843
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
2779
2844
|
role?: "user" | "assistant" | "system" | undefined;
|
|
2780
2845
|
error?: string | undefined;
|
|
2846
|
+
content?: {
|
|
2847
|
+
type: "text" | "image";
|
|
2848
|
+
data?: string | undefined;
|
|
2849
|
+
text?: string | undefined;
|
|
2850
|
+
mimeType?: string | undefined;
|
|
2851
|
+
}[] | undefined;
|
|
2781
2852
|
text?: string | undefined;
|
|
2782
2853
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
2783
2854
|
plan?: {
|
|
@@ -2785,12 +2856,6 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
|
|
|
2785
2856
|
id: string;
|
|
2786
2857
|
text: string;
|
|
2787
2858
|
}[] | undefined;
|
|
2788
|
-
content?: {
|
|
2789
|
-
type: "text" | "image";
|
|
2790
|
-
data?: string | undefined;
|
|
2791
|
-
text?: string | undefined;
|
|
2792
|
-
mimeType?: string | undefined;
|
|
2793
|
-
}[] | undefined;
|
|
2794
2859
|
isStreaming?: boolean | undefined;
|
|
2795
2860
|
toolCall?: {
|
|
2796
2861
|
name: string;
|
|
@@ -3602,6 +3667,12 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3602
3667
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
3603
3668
|
role?: "user" | "assistant" | "system" | undefined;
|
|
3604
3669
|
error?: string | undefined;
|
|
3670
|
+
content?: {
|
|
3671
|
+
type: "text" | "image";
|
|
3672
|
+
data?: string | undefined;
|
|
3673
|
+
text?: string | undefined;
|
|
3674
|
+
mimeType?: string | undefined;
|
|
3675
|
+
}[] | undefined;
|
|
3605
3676
|
text?: string | undefined;
|
|
3606
3677
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
3607
3678
|
plan?: {
|
|
@@ -3609,12 +3680,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3609
3680
|
id: string;
|
|
3610
3681
|
text: string;
|
|
3611
3682
|
}[] | undefined;
|
|
3612
|
-
content?: {
|
|
3613
|
-
type: "text" | "image";
|
|
3614
|
-
data?: string | undefined;
|
|
3615
|
-
text?: string | undefined;
|
|
3616
|
-
mimeType?: string | undefined;
|
|
3617
|
-
}[] | undefined;
|
|
3618
3683
|
isStreaming?: boolean | undefined;
|
|
3619
3684
|
toolCall?: {
|
|
3620
3685
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -3702,6 +3767,12 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3702
3767
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
3703
3768
|
role?: "user" | "assistant" | "system" | undefined;
|
|
3704
3769
|
error?: string | undefined;
|
|
3770
|
+
content?: {
|
|
3771
|
+
type: "text" | "image";
|
|
3772
|
+
data?: string | undefined;
|
|
3773
|
+
text?: string | undefined;
|
|
3774
|
+
mimeType?: string | undefined;
|
|
3775
|
+
}[] | undefined;
|
|
3705
3776
|
text?: string | undefined;
|
|
3706
3777
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
3707
3778
|
plan?: {
|
|
@@ -3709,12 +3780,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3709
3780
|
id: string;
|
|
3710
3781
|
text: string;
|
|
3711
3782
|
}[] | undefined;
|
|
3712
|
-
content?: {
|
|
3713
|
-
type: "text" | "image";
|
|
3714
|
-
data?: string | undefined;
|
|
3715
|
-
text?: string | undefined;
|
|
3716
|
-
mimeType?: string | undefined;
|
|
3717
|
-
}[] | undefined;
|
|
3718
3783
|
isStreaming?: boolean | undefined;
|
|
3719
3784
|
toolCall?: {
|
|
3720
3785
|
name: string;
|
|
@@ -3820,6 +3885,12 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3820
3885
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
3821
3886
|
role?: "user" | "assistant" | "system" | undefined;
|
|
3822
3887
|
error?: string | undefined;
|
|
3888
|
+
content?: {
|
|
3889
|
+
type: "text" | "image";
|
|
3890
|
+
data?: string | undefined;
|
|
3891
|
+
text?: string | undefined;
|
|
3892
|
+
mimeType?: string | undefined;
|
|
3893
|
+
}[] | undefined;
|
|
3823
3894
|
text?: string | undefined;
|
|
3824
3895
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
3825
3896
|
plan?: {
|
|
@@ -3827,12 +3898,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3827
3898
|
id: string;
|
|
3828
3899
|
text: string;
|
|
3829
3900
|
}[] | undefined;
|
|
3830
|
-
content?: {
|
|
3831
|
-
type: "text" | "image";
|
|
3832
|
-
data?: string | undefined;
|
|
3833
|
-
text?: string | undefined;
|
|
3834
|
-
mimeType?: string | undefined;
|
|
3835
|
-
}[] | undefined;
|
|
3836
3901
|
isStreaming?: boolean | undefined;
|
|
3837
3902
|
toolCall?: {
|
|
3838
3903
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -3938,6 +4003,12 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3938
4003
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
3939
4004
|
role?: "user" | "assistant" | "system" | undefined;
|
|
3940
4005
|
error?: string | undefined;
|
|
4006
|
+
content?: {
|
|
4007
|
+
type: "text" | "image";
|
|
4008
|
+
data?: string | undefined;
|
|
4009
|
+
text?: string | undefined;
|
|
4010
|
+
mimeType?: string | undefined;
|
|
4011
|
+
}[] | undefined;
|
|
3941
4012
|
text?: string | undefined;
|
|
3942
4013
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
3943
4014
|
plan?: {
|
|
@@ -3945,12 +4016,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3945
4016
|
id: string;
|
|
3946
4017
|
text: string;
|
|
3947
4018
|
}[] | undefined;
|
|
3948
|
-
content?: {
|
|
3949
|
-
type: "text" | "image";
|
|
3950
|
-
data?: string | undefined;
|
|
3951
|
-
text?: string | undefined;
|
|
3952
|
-
mimeType?: string | undefined;
|
|
3953
|
-
}[] | undefined;
|
|
3954
4019
|
isStreaming?: boolean | undefined;
|
|
3955
4020
|
toolCall?: {
|
|
3956
4021
|
name: string;
|
|
@@ -4615,6 +4680,12 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
4615
4680
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
4616
4681
|
role?: "user" | "assistant" | "system" | undefined;
|
|
4617
4682
|
error?: string | undefined;
|
|
4683
|
+
content?: {
|
|
4684
|
+
type: "text" | "image";
|
|
4685
|
+
data?: string | undefined;
|
|
4686
|
+
text?: string | undefined;
|
|
4687
|
+
mimeType?: string | undefined;
|
|
4688
|
+
}[] | undefined;
|
|
4618
4689
|
text?: string | undefined;
|
|
4619
4690
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
4620
4691
|
plan?: {
|
|
@@ -4622,12 +4693,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
4622
4693
|
id: string;
|
|
4623
4694
|
text: string;
|
|
4624
4695
|
}[] | undefined;
|
|
4625
|
-
content?: {
|
|
4626
|
-
type: "text" | "image";
|
|
4627
|
-
data?: string | undefined;
|
|
4628
|
-
text?: string | undefined;
|
|
4629
|
-
mimeType?: string | undefined;
|
|
4630
|
-
}[] | undefined;
|
|
4631
4696
|
isStreaming?: boolean | undefined;
|
|
4632
4697
|
toolCall?: {
|
|
4633
4698
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -4715,6 +4780,12 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
4715
4780
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
4716
4781
|
role?: "user" | "assistant" | "system" | undefined;
|
|
4717
4782
|
error?: string | undefined;
|
|
4783
|
+
content?: {
|
|
4784
|
+
type: "text" | "image";
|
|
4785
|
+
data?: string | undefined;
|
|
4786
|
+
text?: string | undefined;
|
|
4787
|
+
mimeType?: string | undefined;
|
|
4788
|
+
}[] | undefined;
|
|
4718
4789
|
text?: string | undefined;
|
|
4719
4790
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
4720
4791
|
plan?: {
|
|
@@ -4722,12 +4793,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
4722
4793
|
id: string;
|
|
4723
4794
|
text: string;
|
|
4724
4795
|
}[] | undefined;
|
|
4725
|
-
content?: {
|
|
4726
|
-
type: "text" | "image";
|
|
4727
|
-
data?: string | undefined;
|
|
4728
|
-
text?: string | undefined;
|
|
4729
|
-
mimeType?: string | undefined;
|
|
4730
|
-
}[] | undefined;
|
|
4731
4796
|
isStreaming?: boolean | undefined;
|
|
4732
4797
|
toolCall?: {
|
|
4733
4798
|
name: string;
|
|
@@ -4834,6 +4899,12 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
4834
4899
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
4835
4900
|
role?: "user" | "assistant" | "system" | undefined;
|
|
4836
4901
|
error?: string | undefined;
|
|
4902
|
+
content?: {
|
|
4903
|
+
type: "text" | "image";
|
|
4904
|
+
data?: string | undefined;
|
|
4905
|
+
text?: string | undefined;
|
|
4906
|
+
mimeType?: string | undefined;
|
|
4907
|
+
}[] | undefined;
|
|
4837
4908
|
text?: string | undefined;
|
|
4838
4909
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
4839
4910
|
plan?: {
|
|
@@ -4841,12 +4912,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
4841
4912
|
id: string;
|
|
4842
4913
|
text: string;
|
|
4843
4914
|
}[] | undefined;
|
|
4844
|
-
content?: {
|
|
4845
|
-
type: "text" | "image";
|
|
4846
|
-
data?: string | undefined;
|
|
4847
|
-
text?: string | undefined;
|
|
4848
|
-
mimeType?: string | undefined;
|
|
4849
|
-
}[] | undefined;
|
|
4850
4915
|
isStreaming?: boolean | undefined;
|
|
4851
4916
|
toolCall?: {
|
|
4852
4917
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -4956,6 +5021,12 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
4956
5021
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
4957
5022
|
role?: "user" | "assistant" | "system" | undefined;
|
|
4958
5023
|
error?: string | undefined;
|
|
5024
|
+
content?: {
|
|
5025
|
+
type: "text" | "image";
|
|
5026
|
+
data?: string | undefined;
|
|
5027
|
+
text?: string | undefined;
|
|
5028
|
+
mimeType?: string | undefined;
|
|
5029
|
+
}[] | undefined;
|
|
4959
5030
|
text?: string | undefined;
|
|
4960
5031
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
4961
5032
|
plan?: {
|
|
@@ -4963,12 +5034,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
4963
5034
|
id: string;
|
|
4964
5035
|
text: string;
|
|
4965
5036
|
}[] | undefined;
|
|
4966
|
-
content?: {
|
|
4967
|
-
type: "text" | "image";
|
|
4968
|
-
data?: string | undefined;
|
|
4969
|
-
text?: string | undefined;
|
|
4970
|
-
mimeType?: string | undefined;
|
|
4971
|
-
}[] | undefined;
|
|
4972
5037
|
isStreaming?: boolean | undefined;
|
|
4973
5038
|
toolCall?: {
|
|
4974
5039
|
name: string;
|
|
@@ -5432,6 +5497,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
5432
5497
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
5433
5498
|
role?: "user" | "assistant" | "system" | undefined;
|
|
5434
5499
|
error?: string | undefined;
|
|
5500
|
+
content?: {
|
|
5501
|
+
type: "text" | "image";
|
|
5502
|
+
data?: string | undefined;
|
|
5503
|
+
text?: string | undefined;
|
|
5504
|
+
mimeType?: string | undefined;
|
|
5505
|
+
}[] | undefined;
|
|
5435
5506
|
text?: string | undefined;
|
|
5436
5507
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
5437
5508
|
plan?: {
|
|
@@ -5439,12 +5510,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
5439
5510
|
id: string;
|
|
5440
5511
|
text: string;
|
|
5441
5512
|
}[] | undefined;
|
|
5442
|
-
content?: {
|
|
5443
|
-
type: "text" | "image";
|
|
5444
|
-
data?: string | undefined;
|
|
5445
|
-
text?: string | undefined;
|
|
5446
|
-
mimeType?: string | undefined;
|
|
5447
|
-
}[] | undefined;
|
|
5448
5513
|
isStreaming?: boolean | undefined;
|
|
5449
5514
|
toolCall?: {
|
|
5450
5515
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -5532,6 +5597,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
5532
5597
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
5533
5598
|
role?: "user" | "assistant" | "system" | undefined;
|
|
5534
5599
|
error?: string | undefined;
|
|
5600
|
+
content?: {
|
|
5601
|
+
type: "text" | "image";
|
|
5602
|
+
data?: string | undefined;
|
|
5603
|
+
text?: string | undefined;
|
|
5604
|
+
mimeType?: string | undefined;
|
|
5605
|
+
}[] | undefined;
|
|
5535
5606
|
text?: string | undefined;
|
|
5536
5607
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
5537
5608
|
plan?: {
|
|
@@ -5539,12 +5610,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
5539
5610
|
id: string;
|
|
5540
5611
|
text: string;
|
|
5541
5612
|
}[] | undefined;
|
|
5542
|
-
content?: {
|
|
5543
|
-
type: "text" | "image";
|
|
5544
|
-
data?: string | undefined;
|
|
5545
|
-
text?: string | undefined;
|
|
5546
|
-
mimeType?: string | undefined;
|
|
5547
|
-
}[] | undefined;
|
|
5548
5613
|
isStreaming?: boolean | undefined;
|
|
5549
5614
|
toolCall?: {
|
|
5550
5615
|
name: string;
|
|
@@ -5952,6 +6017,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
5952
6017
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
5953
6018
|
role?: "user" | "assistant" | "system" | undefined;
|
|
5954
6019
|
error?: string | undefined;
|
|
6020
|
+
content?: {
|
|
6021
|
+
type: "text" | "image";
|
|
6022
|
+
data?: string | undefined;
|
|
6023
|
+
text?: string | undefined;
|
|
6024
|
+
mimeType?: string | undefined;
|
|
6025
|
+
}[] | undefined;
|
|
5955
6026
|
text?: string | undefined;
|
|
5956
6027
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
5957
6028
|
plan?: {
|
|
@@ -5959,12 +6030,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
5959
6030
|
id: string;
|
|
5960
6031
|
text: string;
|
|
5961
6032
|
}[] | undefined;
|
|
5962
|
-
content?: {
|
|
5963
|
-
type: "text" | "image";
|
|
5964
|
-
data?: string | undefined;
|
|
5965
|
-
text?: string | undefined;
|
|
5966
|
-
mimeType?: string | undefined;
|
|
5967
|
-
}[] | undefined;
|
|
5968
6033
|
isStreaming?: boolean | undefined;
|
|
5969
6034
|
toolCall?: {
|
|
5970
6035
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -6048,6 +6113,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6048
6113
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
6049
6114
|
role?: "user" | "assistant" | "system" | undefined;
|
|
6050
6115
|
error?: string | undefined;
|
|
6116
|
+
content?: {
|
|
6117
|
+
type: "text" | "image";
|
|
6118
|
+
data?: string | undefined;
|
|
6119
|
+
text?: string | undefined;
|
|
6120
|
+
mimeType?: string | undefined;
|
|
6121
|
+
}[] | undefined;
|
|
6051
6122
|
text?: string | undefined;
|
|
6052
6123
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
6053
6124
|
plan?: {
|
|
@@ -6055,12 +6126,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6055
6126
|
id: string;
|
|
6056
6127
|
text: string;
|
|
6057
6128
|
}[] | undefined;
|
|
6058
|
-
content?: {
|
|
6059
|
-
type: "text" | "image";
|
|
6060
|
-
data?: string | undefined;
|
|
6061
|
-
text?: string | undefined;
|
|
6062
|
-
mimeType?: string | undefined;
|
|
6063
|
-
}[] | undefined;
|
|
6064
6129
|
isStreaming?: boolean | undefined;
|
|
6065
6130
|
toolCall?: {
|
|
6066
6131
|
name: string;
|
|
@@ -6166,6 +6231,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6166
6231
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
6167
6232
|
role?: "user" | "assistant" | "system" | undefined;
|
|
6168
6233
|
error?: string | undefined;
|
|
6234
|
+
content?: {
|
|
6235
|
+
type: "text" | "image";
|
|
6236
|
+
data?: string | undefined;
|
|
6237
|
+
text?: string | undefined;
|
|
6238
|
+
mimeType?: string | undefined;
|
|
6239
|
+
}[] | undefined;
|
|
6169
6240
|
text?: string | undefined;
|
|
6170
6241
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
6171
6242
|
plan?: {
|
|
@@ -6173,12 +6244,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6173
6244
|
id: string;
|
|
6174
6245
|
text: string;
|
|
6175
6246
|
}[] | undefined;
|
|
6176
|
-
content?: {
|
|
6177
|
-
type: "text" | "image";
|
|
6178
|
-
data?: string | undefined;
|
|
6179
|
-
text?: string | undefined;
|
|
6180
|
-
mimeType?: string | undefined;
|
|
6181
|
-
}[] | undefined;
|
|
6182
6247
|
isStreaming?: boolean | undefined;
|
|
6183
6248
|
toolCall?: {
|
|
6184
6249
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -6264,6 +6329,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6264
6329
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
6265
6330
|
role?: "user" | "assistant" | "system" | undefined;
|
|
6266
6331
|
error?: string | undefined;
|
|
6332
|
+
content?: {
|
|
6333
|
+
type: "text" | "image";
|
|
6334
|
+
data?: string | undefined;
|
|
6335
|
+
text?: string | undefined;
|
|
6336
|
+
mimeType?: string | undefined;
|
|
6337
|
+
}[] | undefined;
|
|
6267
6338
|
text?: string | undefined;
|
|
6268
6339
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
6269
6340
|
plan?: {
|
|
@@ -6271,12 +6342,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6271
6342
|
id: string;
|
|
6272
6343
|
text: string;
|
|
6273
6344
|
}[] | undefined;
|
|
6274
|
-
content?: {
|
|
6275
|
-
type: "text" | "image";
|
|
6276
|
-
data?: string | undefined;
|
|
6277
|
-
text?: string | undefined;
|
|
6278
|
-
mimeType?: string | undefined;
|
|
6279
|
-
}[] | undefined;
|
|
6280
6345
|
isStreaming?: boolean | undefined;
|
|
6281
6346
|
toolCall?: {
|
|
6282
6347
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -6382,6 +6447,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6382
6447
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
6383
6448
|
role?: "user" | "assistant" | "system" | undefined;
|
|
6384
6449
|
error?: string | undefined;
|
|
6450
|
+
content?: {
|
|
6451
|
+
type: "text" | "image";
|
|
6452
|
+
data?: string | undefined;
|
|
6453
|
+
text?: string | undefined;
|
|
6454
|
+
mimeType?: string | undefined;
|
|
6455
|
+
}[] | undefined;
|
|
6385
6456
|
text?: string | undefined;
|
|
6386
6457
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
6387
6458
|
plan?: {
|
|
@@ -6389,12 +6460,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6389
6460
|
id: string;
|
|
6390
6461
|
text: string;
|
|
6391
6462
|
}[] | undefined;
|
|
6392
|
-
content?: {
|
|
6393
|
-
type: "text" | "image";
|
|
6394
|
-
data?: string | undefined;
|
|
6395
|
-
text?: string | undefined;
|
|
6396
|
-
mimeType?: string | undefined;
|
|
6397
|
-
}[] | undefined;
|
|
6398
6463
|
isStreaming?: boolean | undefined;
|
|
6399
6464
|
toolCall?: {
|
|
6400
6465
|
name: string;
|
|
@@ -6480,6 +6545,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6480
6545
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
6481
6546
|
role?: "user" | "assistant" | "system" | undefined;
|
|
6482
6547
|
error?: string | undefined;
|
|
6548
|
+
content?: {
|
|
6549
|
+
type: "text" | "image";
|
|
6550
|
+
data?: string | undefined;
|
|
6551
|
+
text?: string | undefined;
|
|
6552
|
+
mimeType?: string | undefined;
|
|
6553
|
+
}[] | undefined;
|
|
6483
6554
|
text?: string | undefined;
|
|
6484
6555
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
6485
6556
|
plan?: {
|
|
@@ -6487,12 +6558,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6487
6558
|
id: string;
|
|
6488
6559
|
text: string;
|
|
6489
6560
|
}[] | undefined;
|
|
6490
|
-
content?: {
|
|
6491
|
-
type: "text" | "image";
|
|
6492
|
-
data?: string | undefined;
|
|
6493
|
-
text?: string | undefined;
|
|
6494
|
-
mimeType?: string | undefined;
|
|
6495
|
-
}[] | undefined;
|
|
6496
6561
|
isStreaming?: boolean | undefined;
|
|
6497
6562
|
toolCall?: {
|
|
6498
6563
|
name: string;
|
|
@@ -6927,6 +6992,12 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
6927
6992
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
6928
6993
|
role?: "user" | "assistant" | "system" | undefined;
|
|
6929
6994
|
error?: string | undefined;
|
|
6995
|
+
content?: {
|
|
6996
|
+
type: "text" | "image";
|
|
6997
|
+
data?: string | undefined;
|
|
6998
|
+
text?: string | undefined;
|
|
6999
|
+
mimeType?: string | undefined;
|
|
7000
|
+
}[] | undefined;
|
|
6930
7001
|
text?: string | undefined;
|
|
6931
7002
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
6932
7003
|
plan?: {
|
|
@@ -6934,12 +7005,6 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
6934
7005
|
id: string;
|
|
6935
7006
|
text: string;
|
|
6936
7007
|
}[] | undefined;
|
|
6937
|
-
content?: {
|
|
6938
|
-
type: "text" | "image";
|
|
6939
|
-
data?: string | undefined;
|
|
6940
|
-
text?: string | undefined;
|
|
6941
|
-
mimeType?: string | undefined;
|
|
6942
|
-
}[] | undefined;
|
|
6943
7008
|
isStreaming?: boolean | undefined;
|
|
6944
7009
|
toolCall?: {
|
|
6945
7010
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -7027,6 +7092,12 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
7027
7092
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
7028
7093
|
role?: "user" | "assistant" | "system" | undefined;
|
|
7029
7094
|
error?: string | undefined;
|
|
7095
|
+
content?: {
|
|
7096
|
+
type: "text" | "image";
|
|
7097
|
+
data?: string | undefined;
|
|
7098
|
+
text?: string | undefined;
|
|
7099
|
+
mimeType?: string | undefined;
|
|
7100
|
+
}[] | undefined;
|
|
7030
7101
|
text?: string | undefined;
|
|
7031
7102
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
7032
7103
|
plan?: {
|
|
@@ -7034,12 +7105,6 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
7034
7105
|
id: string;
|
|
7035
7106
|
text: string;
|
|
7036
7107
|
}[] | undefined;
|
|
7037
|
-
content?: {
|
|
7038
|
-
type: "text" | "image";
|
|
7039
|
-
data?: string | undefined;
|
|
7040
|
-
text?: string | undefined;
|
|
7041
|
-
mimeType?: string | undefined;
|
|
7042
|
-
}[] | undefined;
|
|
7043
7108
|
isStreaming?: boolean | undefined;
|
|
7044
7109
|
toolCall?: {
|
|
7045
7110
|
name: string;
|
|
@@ -7139,6 +7204,12 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
7139
7204
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
7140
7205
|
role?: "user" | "assistant" | "system" | undefined;
|
|
7141
7206
|
error?: string | undefined;
|
|
7207
|
+
content?: {
|
|
7208
|
+
type: "text" | "image";
|
|
7209
|
+
data?: string | undefined;
|
|
7210
|
+
text?: string | undefined;
|
|
7211
|
+
mimeType?: string | undefined;
|
|
7212
|
+
}[] | undefined;
|
|
7142
7213
|
text?: string | undefined;
|
|
7143
7214
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
7144
7215
|
plan?: {
|
|
@@ -7146,12 +7217,6 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
7146
7217
|
id: string;
|
|
7147
7218
|
text: string;
|
|
7148
7219
|
}[] | undefined;
|
|
7149
|
-
content?: {
|
|
7150
|
-
type: "text" | "image";
|
|
7151
|
-
data?: string | undefined;
|
|
7152
|
-
text?: string | undefined;
|
|
7153
|
-
mimeType?: string | undefined;
|
|
7154
|
-
}[] | undefined;
|
|
7155
7220
|
isStreaming?: boolean | undefined;
|
|
7156
7221
|
toolCall?: {
|
|
7157
7222
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -7251,6 +7316,12 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
7251
7316
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
7252
7317
|
role?: "user" | "assistant" | "system" | undefined;
|
|
7253
7318
|
error?: string | undefined;
|
|
7319
|
+
content?: {
|
|
7320
|
+
type: "text" | "image";
|
|
7321
|
+
data?: string | undefined;
|
|
7322
|
+
text?: string | undefined;
|
|
7323
|
+
mimeType?: string | undefined;
|
|
7324
|
+
}[] | undefined;
|
|
7254
7325
|
text?: string | undefined;
|
|
7255
7326
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
7256
7327
|
plan?: {
|
|
@@ -7258,12 +7329,6 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
7258
7329
|
id: string;
|
|
7259
7330
|
text: string;
|
|
7260
7331
|
}[] | undefined;
|
|
7261
|
-
content?: {
|
|
7262
|
-
type: "text" | "image";
|
|
7263
|
-
data?: string | undefined;
|
|
7264
|
-
text?: string | undefined;
|
|
7265
|
-
mimeType?: string | undefined;
|
|
7266
|
-
}[] | undefined;
|
|
7267
7332
|
isStreaming?: boolean | undefined;
|
|
7268
7333
|
toolCall?: {
|
|
7269
7334
|
name: string;
|
|
@@ -7349,7 +7414,7 @@ export declare const protocolMessageSchemas: {
|
|
|
7349
7414
|
readonly "session.connect": z.ZodObject<{
|
|
7350
7415
|
role: z.ZodEnum<["host", "client"]>;
|
|
7351
7416
|
clientName: z.ZodString;
|
|
7352
|
-
provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "custom"]>>;
|
|
7417
|
+
provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
|
|
7353
7418
|
protocolVersion: z.ZodOptional<z.ZodNumber>;
|
|
7354
7419
|
machineId: z.ZodOptional<z.ZodString>;
|
|
7355
7420
|
hostname: z.ZodOptional<z.ZodString>;
|
|
@@ -7359,7 +7424,7 @@ export declare const protocolMessageSchemas: {
|
|
|
7359
7424
|
}, "strip", z.ZodTypeAny, {
|
|
7360
7425
|
role: "host" | "client";
|
|
7361
7426
|
clientName: string;
|
|
7362
|
-
provider?: "custom" | "claude" | "codex" | undefined;
|
|
7427
|
+
provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
|
|
7363
7428
|
protocolVersion?: number | undefined;
|
|
7364
7429
|
machineId?: string | undefined;
|
|
7365
7430
|
hostname?: string | undefined;
|
|
@@ -7369,7 +7434,7 @@ export declare const protocolMessageSchemas: {
|
|
|
7369
7434
|
}, {
|
|
7370
7435
|
role: "host" | "client";
|
|
7371
7436
|
clientName: string;
|
|
7372
|
-
provider?: "custom" | "claude" | "codex" | undefined;
|
|
7437
|
+
provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
|
|
7373
7438
|
protocolVersion?: number | undefined;
|
|
7374
7439
|
machineId?: string | undefined;
|
|
7375
7440
|
hostname?: string | undefined;
|
|
@@ -7614,13 +7679,13 @@ export declare const protocolMessageSchemas: {
|
|
|
7614
7679
|
}>;
|
|
7615
7680
|
readonly "terminal.spawn": z.ZodObject<{
|
|
7616
7681
|
cwd: z.ZodString;
|
|
7617
|
-
provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "custom"]>>;
|
|
7682
|
+
provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
|
|
7618
7683
|
}, "strip", z.ZodTypeAny, {
|
|
7619
7684
|
cwd: string;
|
|
7620
|
-
provider?: "custom" | "claude" | "codex" | undefined;
|
|
7685
|
+
provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
|
|
7621
7686
|
}, {
|
|
7622
7687
|
cwd: string;
|
|
7623
|
-
provider?: "custom" | "claude" | "codex" | undefined;
|
|
7688
|
+
provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
|
|
7624
7689
|
}>;
|
|
7625
7690
|
readonly "terminal.spawned": z.ZodObject<{
|
|
7626
7691
|
terminalId: z.ZodString;
|
|
@@ -7677,10 +7742,16 @@ export declare const protocolMessageSchemas: {
|
|
|
7677
7742
|
}>;
|
|
7678
7743
|
readonly "terminal.browse": z.ZodObject<{
|
|
7679
7744
|
path: z.ZodString;
|
|
7745
|
+
includeFiles: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7746
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
7680
7747
|
}, "strip", z.ZodTypeAny, {
|
|
7681
7748
|
path: string;
|
|
7749
|
+
includeFiles: boolean;
|
|
7750
|
+
requestId?: string | undefined;
|
|
7682
7751
|
}, {
|
|
7683
7752
|
path: string;
|
|
7753
|
+
requestId?: string | undefined;
|
|
7754
|
+
includeFiles?: boolean | undefined;
|
|
7684
7755
|
}>;
|
|
7685
7756
|
readonly "terminal.browse.result": z.ZodObject<{
|
|
7686
7757
|
path: z.ZodString;
|
|
@@ -7688,23 +7759,33 @@ export declare const protocolMessageSchemas: {
|
|
|
7688
7759
|
name: z.ZodString;
|
|
7689
7760
|
path: z.ZodString;
|
|
7690
7761
|
isDirectory: z.ZodBoolean;
|
|
7762
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
7763
|
+
modifiedAt: z.ZodOptional<z.ZodString>;
|
|
7691
7764
|
}, "strip", z.ZodTypeAny, {
|
|
7692
7765
|
path: string;
|
|
7693
7766
|
name: string;
|
|
7694
7767
|
isDirectory: boolean;
|
|
7768
|
+
size?: number | undefined;
|
|
7769
|
+
modifiedAt?: string | undefined;
|
|
7695
7770
|
}, {
|
|
7696
7771
|
path: string;
|
|
7697
7772
|
name: string;
|
|
7698
7773
|
isDirectory: boolean;
|
|
7774
|
+
size?: number | undefined;
|
|
7775
|
+
modifiedAt?: string | undefined;
|
|
7699
7776
|
}>, "many">;
|
|
7700
7777
|
error: z.ZodOptional<z.ZodString>;
|
|
7778
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
7701
7779
|
}, "strip", z.ZodTypeAny, {
|
|
7702
7780
|
path: string;
|
|
7703
7781
|
entries: {
|
|
7704
7782
|
path: string;
|
|
7705
7783
|
name: string;
|
|
7706
7784
|
isDirectory: boolean;
|
|
7785
|
+
size?: number | undefined;
|
|
7786
|
+
modifiedAt?: string | undefined;
|
|
7707
7787
|
}[];
|
|
7788
|
+
requestId?: string | undefined;
|
|
7708
7789
|
error?: string | undefined;
|
|
7709
7790
|
}, {
|
|
7710
7791
|
path: string;
|
|
@@ -7712,9 +7793,50 @@ export declare const protocolMessageSchemas: {
|
|
|
7712
7793
|
path: string;
|
|
7713
7794
|
name: string;
|
|
7714
7795
|
isDirectory: boolean;
|
|
7796
|
+
size?: number | undefined;
|
|
7797
|
+
modifiedAt?: string | undefined;
|
|
7715
7798
|
}[];
|
|
7799
|
+
requestId?: string | undefined;
|
|
7716
7800
|
error?: string | undefined;
|
|
7717
7801
|
}>;
|
|
7802
|
+
readonly "terminal.file.read": z.ZodObject<{
|
|
7803
|
+
path: z.ZodString;
|
|
7804
|
+
maxBytes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7805
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
7806
|
+
}, "strip", z.ZodTypeAny, {
|
|
7807
|
+
path: string;
|
|
7808
|
+
maxBytes: number;
|
|
7809
|
+
requestId?: string | undefined;
|
|
7810
|
+
}, {
|
|
7811
|
+
path: string;
|
|
7812
|
+
requestId?: string | undefined;
|
|
7813
|
+
maxBytes?: number | undefined;
|
|
7814
|
+
}>;
|
|
7815
|
+
readonly "terminal.file.read.result": z.ZodObject<{
|
|
7816
|
+
path: z.ZodString;
|
|
7817
|
+
content: z.ZodDefault<z.ZodString>;
|
|
7818
|
+
encoding: z.ZodDefault<z.ZodLiteral<"utf8">>;
|
|
7819
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
7820
|
+
truncated: z.ZodDefault<z.ZodBoolean>;
|
|
7821
|
+
error: z.ZodOptional<z.ZodString>;
|
|
7822
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
7823
|
+
}, "strip", z.ZodTypeAny, {
|
|
7824
|
+
path: string;
|
|
7825
|
+
encoding: "utf8";
|
|
7826
|
+
content: string;
|
|
7827
|
+
truncated: boolean;
|
|
7828
|
+
requestId?: string | undefined;
|
|
7829
|
+
error?: string | undefined;
|
|
7830
|
+
size?: number | undefined;
|
|
7831
|
+
}, {
|
|
7832
|
+
path: string;
|
|
7833
|
+
requestId?: string | undefined;
|
|
7834
|
+
encoding?: "utf8" | undefined;
|
|
7835
|
+
error?: string | undefined;
|
|
7836
|
+
size?: number | undefined;
|
|
7837
|
+
content?: string | undefined;
|
|
7838
|
+
truncated?: boolean | undefined;
|
|
7839
|
+
}>;
|
|
7718
7840
|
readonly "terminal.kill": z.ZodObject<{
|
|
7719
7841
|
terminalId: z.ZodString;
|
|
7720
7842
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8292,14 +8414,14 @@ export declare const protocolMessageSchemas: {
|
|
|
8292
8414
|
isStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
8293
8415
|
}, "strip", z.ZodTypeAny, {
|
|
8294
8416
|
role: "user" | "assistant" | "system";
|
|
8295
|
-
id: string;
|
|
8296
8417
|
content: string;
|
|
8418
|
+
id: string;
|
|
8297
8419
|
createdAt: number;
|
|
8298
8420
|
isStreaming?: boolean | undefined;
|
|
8299
8421
|
}, {
|
|
8300
8422
|
role: "user" | "assistant" | "system";
|
|
8301
|
-
id: string;
|
|
8302
8423
|
content: string;
|
|
8424
|
+
id: string;
|
|
8303
8425
|
createdAt: number;
|
|
8304
8426
|
isStreaming?: boolean | undefined;
|
|
8305
8427
|
}>>;
|
|
@@ -8345,8 +8467,8 @@ export declare const protocolMessageSchemas: {
|
|
|
8345
8467
|
kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
|
|
8346
8468
|
message?: {
|
|
8347
8469
|
role: "user" | "assistant" | "system";
|
|
8348
|
-
id: string;
|
|
8349
8470
|
content: string;
|
|
8471
|
+
id: string;
|
|
8350
8472
|
createdAt: number;
|
|
8351
8473
|
isStreaming?: boolean | undefined;
|
|
8352
8474
|
} | undefined;
|
|
@@ -8371,8 +8493,8 @@ export declare const protocolMessageSchemas: {
|
|
|
8371
8493
|
kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
|
|
8372
8494
|
message?: {
|
|
8373
8495
|
role: "user" | "assistant" | "system";
|
|
8374
|
-
id: string;
|
|
8375
8496
|
content: string;
|
|
8497
|
+
id: string;
|
|
8376
8498
|
createdAt: number;
|
|
8377
8499
|
isStreaming?: boolean | undefined;
|
|
8378
8500
|
} | undefined;
|
|
@@ -8731,14 +8853,14 @@ export declare const protocolMessageSchemas: {
|
|
|
8731
8853
|
isStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
8732
8854
|
}, "strip", z.ZodTypeAny, {
|
|
8733
8855
|
role: "user" | "assistant" | "system";
|
|
8734
|
-
id: string;
|
|
8735
8856
|
content: string;
|
|
8857
|
+
id: string;
|
|
8736
8858
|
createdAt: number;
|
|
8737
8859
|
isStreaming?: boolean | undefined;
|
|
8738
8860
|
}, {
|
|
8739
8861
|
role: "user" | "assistant" | "system";
|
|
8740
|
-
id: string;
|
|
8741
8862
|
content: string;
|
|
8863
|
+
id: string;
|
|
8742
8864
|
createdAt: number;
|
|
8743
8865
|
isStreaming?: boolean | undefined;
|
|
8744
8866
|
}>, "many">>;
|
|
@@ -8809,8 +8931,8 @@ export declare const protocolMessageSchemas: {
|
|
|
8809
8931
|
status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
|
|
8810
8932
|
messages: {
|
|
8811
8933
|
role: "user" | "assistant" | "system";
|
|
8812
|
-
id: string;
|
|
8813
8934
|
content: string;
|
|
8935
|
+
id: string;
|
|
8814
8936
|
createdAt: number;
|
|
8815
8937
|
isStreaming?: boolean | undefined;
|
|
8816
8938
|
}[];
|
|
@@ -8945,8 +9067,8 @@ export declare const protocolMessageSchemas: {
|
|
|
8945
9067
|
} | undefined;
|
|
8946
9068
|
messages?: {
|
|
8947
9069
|
role: "user" | "assistant" | "system";
|
|
8948
|
-
id: string;
|
|
8949
9070
|
content: string;
|
|
9071
|
+
id: string;
|
|
8950
9072
|
createdAt: number;
|
|
8951
9073
|
isStreaming?: boolean | undefined;
|
|
8952
9074
|
}[] | undefined;
|
|
@@ -9655,6 +9777,12 @@ export declare const protocolMessageSchemas: {
|
|
|
9655
9777
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
9656
9778
|
role?: "user" | "assistant" | "system" | undefined;
|
|
9657
9779
|
error?: string | undefined;
|
|
9780
|
+
content?: {
|
|
9781
|
+
type: "text" | "image";
|
|
9782
|
+
data?: string | undefined;
|
|
9783
|
+
text?: string | undefined;
|
|
9784
|
+
mimeType?: string | undefined;
|
|
9785
|
+
}[] | undefined;
|
|
9658
9786
|
text?: string | undefined;
|
|
9659
9787
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
9660
9788
|
plan?: {
|
|
@@ -9662,12 +9790,6 @@ export declare const protocolMessageSchemas: {
|
|
|
9662
9790
|
id: string;
|
|
9663
9791
|
text: string;
|
|
9664
9792
|
}[] | undefined;
|
|
9665
|
-
content?: {
|
|
9666
|
-
type: "text" | "image";
|
|
9667
|
-
data?: string | undefined;
|
|
9668
|
-
text?: string | undefined;
|
|
9669
|
-
mimeType?: string | undefined;
|
|
9670
|
-
}[] | undefined;
|
|
9671
9793
|
isStreaming?: boolean | undefined;
|
|
9672
9794
|
toolCall?: {
|
|
9673
9795
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -9755,6 +9877,12 @@ export declare const protocolMessageSchemas: {
|
|
|
9755
9877
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
9756
9878
|
role?: "user" | "assistant" | "system" | undefined;
|
|
9757
9879
|
error?: string | undefined;
|
|
9880
|
+
content?: {
|
|
9881
|
+
type: "text" | "image";
|
|
9882
|
+
data?: string | undefined;
|
|
9883
|
+
text?: string | undefined;
|
|
9884
|
+
mimeType?: string | undefined;
|
|
9885
|
+
}[] | undefined;
|
|
9758
9886
|
text?: string | undefined;
|
|
9759
9887
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
9760
9888
|
plan?: {
|
|
@@ -9762,12 +9890,6 @@ export declare const protocolMessageSchemas: {
|
|
|
9762
9890
|
id: string;
|
|
9763
9891
|
text: string;
|
|
9764
9892
|
}[] | undefined;
|
|
9765
|
-
content?: {
|
|
9766
|
-
type: "text" | "image";
|
|
9767
|
-
data?: string | undefined;
|
|
9768
|
-
text?: string | undefined;
|
|
9769
|
-
mimeType?: string | undefined;
|
|
9770
|
-
}[] | undefined;
|
|
9771
9893
|
isStreaming?: boolean | undefined;
|
|
9772
9894
|
toolCall?: {
|
|
9773
9895
|
name: string;
|
|
@@ -9873,6 +9995,12 @@ export declare const protocolMessageSchemas: {
|
|
|
9873
9995
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
9874
9996
|
role?: "user" | "assistant" | "system" | undefined;
|
|
9875
9997
|
error?: string | undefined;
|
|
9998
|
+
content?: {
|
|
9999
|
+
type: "text" | "image";
|
|
10000
|
+
data?: string | undefined;
|
|
10001
|
+
text?: string | undefined;
|
|
10002
|
+
mimeType?: string | undefined;
|
|
10003
|
+
}[] | undefined;
|
|
9876
10004
|
text?: string | undefined;
|
|
9877
10005
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
9878
10006
|
plan?: {
|
|
@@ -9880,12 +10008,6 @@ export declare const protocolMessageSchemas: {
|
|
|
9880
10008
|
id: string;
|
|
9881
10009
|
text: string;
|
|
9882
10010
|
}[] | undefined;
|
|
9883
|
-
content?: {
|
|
9884
|
-
type: "text" | "image";
|
|
9885
|
-
data?: string | undefined;
|
|
9886
|
-
text?: string | undefined;
|
|
9887
|
-
mimeType?: string | undefined;
|
|
9888
|
-
}[] | undefined;
|
|
9889
10011
|
isStreaming?: boolean | undefined;
|
|
9890
10012
|
toolCall?: {
|
|
9891
10013
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -9991,6 +10113,12 @@ export declare const protocolMessageSchemas: {
|
|
|
9991
10113
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
9992
10114
|
role?: "user" | "assistant" | "system" | undefined;
|
|
9993
10115
|
error?: string | undefined;
|
|
10116
|
+
content?: {
|
|
10117
|
+
type: "text" | "image";
|
|
10118
|
+
data?: string | undefined;
|
|
10119
|
+
text?: string | undefined;
|
|
10120
|
+
mimeType?: string | undefined;
|
|
10121
|
+
}[] | undefined;
|
|
9994
10122
|
text?: string | undefined;
|
|
9995
10123
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
9996
10124
|
plan?: {
|
|
@@ -9998,12 +10126,6 @@ export declare const protocolMessageSchemas: {
|
|
|
9998
10126
|
id: string;
|
|
9999
10127
|
text: string;
|
|
10000
10128
|
}[] | undefined;
|
|
10001
|
-
content?: {
|
|
10002
|
-
type: "text" | "image";
|
|
10003
|
-
data?: string | undefined;
|
|
10004
|
-
text?: string | undefined;
|
|
10005
|
-
mimeType?: string | undefined;
|
|
10006
|
-
}[] | undefined;
|
|
10007
10129
|
isStreaming?: boolean | undefined;
|
|
10008
10130
|
toolCall?: {
|
|
10009
10131
|
name: string;
|
|
@@ -10620,6 +10742,12 @@ export declare const protocolMessageSchemas: {
|
|
|
10620
10742
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
10621
10743
|
role?: "user" | "assistant" | "system" | undefined;
|
|
10622
10744
|
error?: string | undefined;
|
|
10745
|
+
content?: {
|
|
10746
|
+
type: "text" | "image";
|
|
10747
|
+
data?: string | undefined;
|
|
10748
|
+
text?: string | undefined;
|
|
10749
|
+
mimeType?: string | undefined;
|
|
10750
|
+
}[] | undefined;
|
|
10623
10751
|
text?: string | undefined;
|
|
10624
10752
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
10625
10753
|
plan?: {
|
|
@@ -10627,12 +10755,6 @@ export declare const protocolMessageSchemas: {
|
|
|
10627
10755
|
id: string;
|
|
10628
10756
|
text: string;
|
|
10629
10757
|
}[] | undefined;
|
|
10630
|
-
content?: {
|
|
10631
|
-
type: "text" | "image";
|
|
10632
|
-
data?: string | undefined;
|
|
10633
|
-
text?: string | undefined;
|
|
10634
|
-
mimeType?: string | undefined;
|
|
10635
|
-
}[] | undefined;
|
|
10636
10758
|
isStreaming?: boolean | undefined;
|
|
10637
10759
|
toolCall?: {
|
|
10638
10760
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -10720,6 +10842,12 @@ export declare const protocolMessageSchemas: {
|
|
|
10720
10842
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
10721
10843
|
role?: "user" | "assistant" | "system" | undefined;
|
|
10722
10844
|
error?: string | undefined;
|
|
10845
|
+
content?: {
|
|
10846
|
+
type: "text" | "image";
|
|
10847
|
+
data?: string | undefined;
|
|
10848
|
+
text?: string | undefined;
|
|
10849
|
+
mimeType?: string | undefined;
|
|
10850
|
+
}[] | undefined;
|
|
10723
10851
|
text?: string | undefined;
|
|
10724
10852
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
10725
10853
|
plan?: {
|
|
@@ -10727,12 +10855,6 @@ export declare const protocolMessageSchemas: {
|
|
|
10727
10855
|
id: string;
|
|
10728
10856
|
text: string;
|
|
10729
10857
|
}[] | undefined;
|
|
10730
|
-
content?: {
|
|
10731
|
-
type: "text" | "image";
|
|
10732
|
-
data?: string | undefined;
|
|
10733
|
-
text?: string | undefined;
|
|
10734
|
-
mimeType?: string | undefined;
|
|
10735
|
-
}[] | undefined;
|
|
10736
10858
|
isStreaming?: boolean | undefined;
|
|
10737
10859
|
toolCall?: {
|
|
10738
10860
|
name: string;
|
|
@@ -10832,6 +10954,12 @@ export declare const protocolMessageSchemas: {
|
|
|
10832
10954
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
10833
10955
|
role?: "user" | "assistant" | "system" | undefined;
|
|
10834
10956
|
error?: string | undefined;
|
|
10957
|
+
content?: {
|
|
10958
|
+
type: "text" | "image";
|
|
10959
|
+
data?: string | undefined;
|
|
10960
|
+
text?: string | undefined;
|
|
10961
|
+
mimeType?: string | undefined;
|
|
10962
|
+
}[] | undefined;
|
|
10835
10963
|
text?: string | undefined;
|
|
10836
10964
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
10837
10965
|
plan?: {
|
|
@@ -10839,12 +10967,6 @@ export declare const protocolMessageSchemas: {
|
|
|
10839
10967
|
id: string;
|
|
10840
10968
|
text: string;
|
|
10841
10969
|
}[] | undefined;
|
|
10842
|
-
content?: {
|
|
10843
|
-
type: "text" | "image";
|
|
10844
|
-
data?: string | undefined;
|
|
10845
|
-
text?: string | undefined;
|
|
10846
|
-
mimeType?: string | undefined;
|
|
10847
|
-
}[] | undefined;
|
|
10848
10970
|
isStreaming?: boolean | undefined;
|
|
10849
10971
|
toolCall?: {
|
|
10850
10972
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -10944,6 +11066,12 @@ export declare const protocolMessageSchemas: {
|
|
|
10944
11066
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
10945
11067
|
role?: "user" | "assistant" | "system" | undefined;
|
|
10946
11068
|
error?: string | undefined;
|
|
11069
|
+
content?: {
|
|
11070
|
+
type: "text" | "image";
|
|
11071
|
+
data?: string | undefined;
|
|
11072
|
+
text?: string | undefined;
|
|
11073
|
+
mimeType?: string | undefined;
|
|
11074
|
+
}[] | undefined;
|
|
10947
11075
|
text?: string | undefined;
|
|
10948
11076
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
10949
11077
|
plan?: {
|
|
@@ -10951,12 +11079,6 @@ export declare const protocolMessageSchemas: {
|
|
|
10951
11079
|
id: string;
|
|
10952
11080
|
text: string;
|
|
10953
11081
|
}[] | undefined;
|
|
10954
|
-
content?: {
|
|
10955
|
-
type: "text" | "image";
|
|
10956
|
-
data?: string | undefined;
|
|
10957
|
-
text?: string | undefined;
|
|
10958
|
-
mimeType?: string | undefined;
|
|
10959
|
-
}[] | undefined;
|
|
10960
11082
|
isStreaming?: boolean | undefined;
|
|
10961
11083
|
toolCall?: {
|
|
10962
11084
|
name: string;
|
|
@@ -11440,6 +11562,12 @@ export declare const protocolMessageSchemas: {
|
|
|
11440
11562
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
11441
11563
|
role?: "user" | "assistant" | "system" | undefined;
|
|
11442
11564
|
error?: string | undefined;
|
|
11565
|
+
content?: {
|
|
11566
|
+
type: "text" | "image";
|
|
11567
|
+
data?: string | undefined;
|
|
11568
|
+
text?: string | undefined;
|
|
11569
|
+
mimeType?: string | undefined;
|
|
11570
|
+
}[] | undefined;
|
|
11443
11571
|
text?: string | undefined;
|
|
11444
11572
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
11445
11573
|
plan?: {
|
|
@@ -11447,12 +11575,6 @@ export declare const protocolMessageSchemas: {
|
|
|
11447
11575
|
id: string;
|
|
11448
11576
|
text: string;
|
|
11449
11577
|
}[] | undefined;
|
|
11450
|
-
content?: {
|
|
11451
|
-
type: "text" | "image";
|
|
11452
|
-
data?: string | undefined;
|
|
11453
|
-
text?: string | undefined;
|
|
11454
|
-
mimeType?: string | undefined;
|
|
11455
|
-
}[] | undefined;
|
|
11456
11578
|
isStreaming?: boolean | undefined;
|
|
11457
11579
|
toolCall?: {
|
|
11458
11580
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -11540,6 +11662,12 @@ export declare const protocolMessageSchemas: {
|
|
|
11540
11662
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
11541
11663
|
role?: "user" | "assistant" | "system" | undefined;
|
|
11542
11664
|
error?: string | undefined;
|
|
11665
|
+
content?: {
|
|
11666
|
+
type: "text" | "image";
|
|
11667
|
+
data?: string | undefined;
|
|
11668
|
+
text?: string | undefined;
|
|
11669
|
+
mimeType?: string | undefined;
|
|
11670
|
+
}[] | undefined;
|
|
11543
11671
|
text?: string | undefined;
|
|
11544
11672
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
11545
11673
|
plan?: {
|
|
@@ -11547,12 +11675,6 @@ export declare const protocolMessageSchemas: {
|
|
|
11547
11675
|
id: string;
|
|
11548
11676
|
text: string;
|
|
11549
11677
|
}[] | undefined;
|
|
11550
|
-
content?: {
|
|
11551
|
-
type: "text" | "image";
|
|
11552
|
-
data?: string | undefined;
|
|
11553
|
-
text?: string | undefined;
|
|
11554
|
-
mimeType?: string | undefined;
|
|
11555
|
-
}[] | undefined;
|
|
11556
11678
|
isStreaming?: boolean | undefined;
|
|
11557
11679
|
toolCall?: {
|
|
11558
11680
|
name: string;
|
|
@@ -11659,6 +11781,12 @@ export declare const protocolMessageSchemas: {
|
|
|
11659
11781
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
11660
11782
|
role?: "user" | "assistant" | "system" | undefined;
|
|
11661
11783
|
error?: string | undefined;
|
|
11784
|
+
content?: {
|
|
11785
|
+
type: "text" | "image";
|
|
11786
|
+
data?: string | undefined;
|
|
11787
|
+
text?: string | undefined;
|
|
11788
|
+
mimeType?: string | undefined;
|
|
11789
|
+
}[] | undefined;
|
|
11662
11790
|
text?: string | undefined;
|
|
11663
11791
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
11664
11792
|
plan?: {
|
|
@@ -11666,12 +11794,6 @@ export declare const protocolMessageSchemas: {
|
|
|
11666
11794
|
id: string;
|
|
11667
11795
|
text: string;
|
|
11668
11796
|
}[] | undefined;
|
|
11669
|
-
content?: {
|
|
11670
|
-
type: "text" | "image";
|
|
11671
|
-
data?: string | undefined;
|
|
11672
|
-
text?: string | undefined;
|
|
11673
|
-
mimeType?: string | undefined;
|
|
11674
|
-
}[] | undefined;
|
|
11675
11797
|
isStreaming?: boolean | undefined;
|
|
11676
11798
|
toolCall?: {
|
|
11677
11799
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -11781,6 +11903,12 @@ export declare const protocolMessageSchemas: {
|
|
|
11781
11903
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
11782
11904
|
role?: "user" | "assistant" | "system" | undefined;
|
|
11783
11905
|
error?: string | undefined;
|
|
11906
|
+
content?: {
|
|
11907
|
+
type: "text" | "image";
|
|
11908
|
+
data?: string | undefined;
|
|
11909
|
+
text?: string | undefined;
|
|
11910
|
+
mimeType?: string | undefined;
|
|
11911
|
+
}[] | undefined;
|
|
11784
11912
|
text?: string | undefined;
|
|
11785
11913
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
11786
11914
|
plan?: {
|
|
@@ -11788,12 +11916,6 @@ export declare const protocolMessageSchemas: {
|
|
|
11788
11916
|
id: string;
|
|
11789
11917
|
text: string;
|
|
11790
11918
|
}[] | undefined;
|
|
11791
|
-
content?: {
|
|
11792
|
-
type: "text" | "image";
|
|
11793
|
-
data?: string | undefined;
|
|
11794
|
-
text?: string | undefined;
|
|
11795
|
-
mimeType?: string | undefined;
|
|
11796
|
-
}[] | undefined;
|
|
11797
11919
|
isStreaming?: boolean | undefined;
|
|
11798
11920
|
toolCall?: {
|
|
11799
11921
|
name: string;
|
|
@@ -12257,6 +12379,12 @@ export declare const protocolMessageSchemas: {
|
|
|
12257
12379
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
12258
12380
|
role?: "user" | "assistant" | "system" | undefined;
|
|
12259
12381
|
error?: string | undefined;
|
|
12382
|
+
content?: {
|
|
12383
|
+
type: "text" | "image";
|
|
12384
|
+
data?: string | undefined;
|
|
12385
|
+
text?: string | undefined;
|
|
12386
|
+
mimeType?: string | undefined;
|
|
12387
|
+
}[] | undefined;
|
|
12260
12388
|
text?: string | undefined;
|
|
12261
12389
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
12262
12390
|
plan?: {
|
|
@@ -12264,12 +12392,6 @@ export declare const protocolMessageSchemas: {
|
|
|
12264
12392
|
id: string;
|
|
12265
12393
|
text: string;
|
|
12266
12394
|
}[] | undefined;
|
|
12267
|
-
content?: {
|
|
12268
|
-
type: "text" | "image";
|
|
12269
|
-
data?: string | undefined;
|
|
12270
|
-
text?: string | undefined;
|
|
12271
|
-
mimeType?: string | undefined;
|
|
12272
|
-
}[] | undefined;
|
|
12273
12395
|
isStreaming?: boolean | undefined;
|
|
12274
12396
|
toolCall?: {
|
|
12275
12397
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -12357,6 +12479,12 @@ export declare const protocolMessageSchemas: {
|
|
|
12357
12479
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
12358
12480
|
role?: "user" | "assistant" | "system" | undefined;
|
|
12359
12481
|
error?: string | undefined;
|
|
12482
|
+
content?: {
|
|
12483
|
+
type: "text" | "image";
|
|
12484
|
+
data?: string | undefined;
|
|
12485
|
+
text?: string | undefined;
|
|
12486
|
+
mimeType?: string | undefined;
|
|
12487
|
+
}[] | undefined;
|
|
12360
12488
|
text?: string | undefined;
|
|
12361
12489
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
12362
12490
|
plan?: {
|
|
@@ -12364,12 +12492,6 @@ export declare const protocolMessageSchemas: {
|
|
|
12364
12492
|
id: string;
|
|
12365
12493
|
text: string;
|
|
12366
12494
|
}[] | undefined;
|
|
12367
|
-
content?: {
|
|
12368
|
-
type: "text" | "image";
|
|
12369
|
-
data?: string | undefined;
|
|
12370
|
-
text?: string | undefined;
|
|
12371
|
-
mimeType?: string | undefined;
|
|
12372
|
-
}[] | undefined;
|
|
12373
12495
|
isStreaming?: boolean | undefined;
|
|
12374
12496
|
toolCall?: {
|
|
12375
12497
|
name: string;
|
|
@@ -12777,6 +12899,12 @@ export declare const protocolMessageSchemas: {
|
|
|
12777
12899
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
12778
12900
|
role?: "user" | "assistant" | "system" | undefined;
|
|
12779
12901
|
error?: string | undefined;
|
|
12902
|
+
content?: {
|
|
12903
|
+
type: "text" | "image";
|
|
12904
|
+
data?: string | undefined;
|
|
12905
|
+
text?: string | undefined;
|
|
12906
|
+
mimeType?: string | undefined;
|
|
12907
|
+
}[] | undefined;
|
|
12780
12908
|
text?: string | undefined;
|
|
12781
12909
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
12782
12910
|
plan?: {
|
|
@@ -12784,12 +12912,6 @@ export declare const protocolMessageSchemas: {
|
|
|
12784
12912
|
id: string;
|
|
12785
12913
|
text: string;
|
|
12786
12914
|
}[] | undefined;
|
|
12787
|
-
content?: {
|
|
12788
|
-
type: "text" | "image";
|
|
12789
|
-
data?: string | undefined;
|
|
12790
|
-
text?: string | undefined;
|
|
12791
|
-
mimeType?: string | undefined;
|
|
12792
|
-
}[] | undefined;
|
|
12793
12915
|
isStreaming?: boolean | undefined;
|
|
12794
12916
|
toolCall?: {
|
|
12795
12917
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -12873,6 +12995,12 @@ export declare const protocolMessageSchemas: {
|
|
|
12873
12995
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
12874
12996
|
role?: "user" | "assistant" | "system" | undefined;
|
|
12875
12997
|
error?: string | undefined;
|
|
12998
|
+
content?: {
|
|
12999
|
+
type: "text" | "image";
|
|
13000
|
+
data?: string | undefined;
|
|
13001
|
+
text?: string | undefined;
|
|
13002
|
+
mimeType?: string | undefined;
|
|
13003
|
+
}[] | undefined;
|
|
12876
13004
|
text?: string | undefined;
|
|
12877
13005
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
12878
13006
|
plan?: {
|
|
@@ -12880,12 +13008,6 @@ export declare const protocolMessageSchemas: {
|
|
|
12880
13008
|
id: string;
|
|
12881
13009
|
text: string;
|
|
12882
13010
|
}[] | undefined;
|
|
12883
|
-
content?: {
|
|
12884
|
-
type: "text" | "image";
|
|
12885
|
-
data?: string | undefined;
|
|
12886
|
-
text?: string | undefined;
|
|
12887
|
-
mimeType?: string | undefined;
|
|
12888
|
-
}[] | undefined;
|
|
12889
13011
|
isStreaming?: boolean | undefined;
|
|
12890
13012
|
toolCall?: {
|
|
12891
13013
|
name: string;
|
|
@@ -12991,6 +13113,12 @@ export declare const protocolMessageSchemas: {
|
|
|
12991
13113
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
12992
13114
|
role?: "user" | "assistant" | "system" | undefined;
|
|
12993
13115
|
error?: string | undefined;
|
|
13116
|
+
content?: {
|
|
13117
|
+
type: "text" | "image";
|
|
13118
|
+
data?: string | undefined;
|
|
13119
|
+
text?: string | undefined;
|
|
13120
|
+
mimeType?: string | undefined;
|
|
13121
|
+
}[] | undefined;
|
|
12994
13122
|
text?: string | undefined;
|
|
12995
13123
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
12996
13124
|
plan?: {
|
|
@@ -12998,12 +13126,6 @@ export declare const protocolMessageSchemas: {
|
|
|
12998
13126
|
id: string;
|
|
12999
13127
|
text: string;
|
|
13000
13128
|
}[] | undefined;
|
|
13001
|
-
content?: {
|
|
13002
|
-
type: "text" | "image";
|
|
13003
|
-
data?: string | undefined;
|
|
13004
|
-
text?: string | undefined;
|
|
13005
|
-
mimeType?: string | undefined;
|
|
13006
|
-
}[] | undefined;
|
|
13007
13129
|
isStreaming?: boolean | undefined;
|
|
13008
13130
|
toolCall?: {
|
|
13009
13131
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -13089,6 +13211,12 @@ export declare const protocolMessageSchemas: {
|
|
|
13089
13211
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
13090
13212
|
role?: "user" | "assistant" | "system" | undefined;
|
|
13091
13213
|
error?: string | undefined;
|
|
13214
|
+
content?: {
|
|
13215
|
+
type: "text" | "image";
|
|
13216
|
+
data?: string | undefined;
|
|
13217
|
+
text?: string | undefined;
|
|
13218
|
+
mimeType?: string | undefined;
|
|
13219
|
+
}[] | undefined;
|
|
13092
13220
|
text?: string | undefined;
|
|
13093
13221
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
13094
13222
|
plan?: {
|
|
@@ -13096,12 +13224,6 @@ export declare const protocolMessageSchemas: {
|
|
|
13096
13224
|
id: string;
|
|
13097
13225
|
text: string;
|
|
13098
13226
|
}[] | undefined;
|
|
13099
|
-
content?: {
|
|
13100
|
-
type: "text" | "image";
|
|
13101
|
-
data?: string | undefined;
|
|
13102
|
-
text?: string | undefined;
|
|
13103
|
-
mimeType?: string | undefined;
|
|
13104
|
-
}[] | undefined;
|
|
13105
13227
|
isStreaming?: boolean | undefined;
|
|
13106
13228
|
toolCall?: {
|
|
13107
13229
|
status: "running" | "pending" | "completed" | "failed";
|
|
@@ -13207,6 +13329,12 @@ export declare const protocolMessageSchemas: {
|
|
|
13207
13329
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
13208
13330
|
role?: "user" | "assistant" | "system" | undefined;
|
|
13209
13331
|
error?: string | undefined;
|
|
13332
|
+
content?: {
|
|
13333
|
+
type: "text" | "image";
|
|
13334
|
+
data?: string | undefined;
|
|
13335
|
+
text?: string | undefined;
|
|
13336
|
+
mimeType?: string | undefined;
|
|
13337
|
+
}[] | undefined;
|
|
13210
13338
|
text?: string | undefined;
|
|
13211
13339
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
13212
13340
|
plan?: {
|
|
@@ -13214,12 +13342,6 @@ export declare const protocolMessageSchemas: {
|
|
|
13214
13342
|
id: string;
|
|
13215
13343
|
text: string;
|
|
13216
13344
|
}[] | undefined;
|
|
13217
|
-
content?: {
|
|
13218
|
-
type: "text" | "image";
|
|
13219
|
-
data?: string | undefined;
|
|
13220
|
-
text?: string | undefined;
|
|
13221
|
-
mimeType?: string | undefined;
|
|
13222
|
-
}[] | undefined;
|
|
13223
13345
|
isStreaming?: boolean | undefined;
|
|
13224
13346
|
toolCall?: {
|
|
13225
13347
|
name: string;
|
|
@@ -13305,6 +13427,12 @@ export declare const protocolMessageSchemas: {
|
|
|
13305
13427
|
status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
|
|
13306
13428
|
role?: "user" | "assistant" | "system" | undefined;
|
|
13307
13429
|
error?: string | undefined;
|
|
13430
|
+
content?: {
|
|
13431
|
+
type: "text" | "image";
|
|
13432
|
+
data?: string | undefined;
|
|
13433
|
+
text?: string | undefined;
|
|
13434
|
+
mimeType?: string | undefined;
|
|
13435
|
+
}[] | undefined;
|
|
13308
13436
|
text?: string | undefined;
|
|
13309
13437
|
kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
|
|
13310
13438
|
plan?: {
|
|
@@ -13312,12 +13440,6 @@ export declare const protocolMessageSchemas: {
|
|
|
13312
13440
|
id: string;
|
|
13313
13441
|
text: string;
|
|
13314
13442
|
}[] | undefined;
|
|
13315
|
-
content?: {
|
|
13316
|
-
type: "text" | "image";
|
|
13317
|
-
data?: string | undefined;
|
|
13318
|
-
text?: string | undefined;
|
|
13319
|
-
mimeType?: string | undefined;
|
|
13320
|
-
}[] | undefined;
|
|
13321
13443
|
isStreaming?: boolean | undefined;
|
|
13322
13444
|
toolCall?: {
|
|
13323
13445
|
name: string;
|