linkshell-cli 0.2.68 → 0.2.69
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/cli/src/runtime/acp/acp-client.d.ts +2 -0
- package/dist/cli/src/runtime/acp/acp-client.js +7 -1
- package/dist/cli/src/runtime/acp/acp-client.js.map +1 -1
- package/dist/cli/src/runtime/acp/agent-session.js +2 -0
- package/dist/cli/src/runtime/acp/agent-session.js.map +1 -1
- package/dist/cli/tsconfig.tsbuildinfo +1 -1
- package/dist/shared-protocol/src/index.d.ts +97 -84
- package/dist/shared-protocol/src/index.js +10 -0
- package/dist/shared-protocol/src/index.js.map +1 -1
- package/package.json +2 -2
- package/src/runtime/acp/acp-client.ts +9 -1
- package/src/runtime/acp/agent-session.ts +4 -0
|
@@ -89,20 +89,20 @@ export declare const sessionConnectPayloadSchema: z.ZodObject<{
|
|
|
89
89
|
}, "strip", z.ZodTypeAny, {
|
|
90
90
|
role: "host" | "client";
|
|
91
91
|
clientName: string;
|
|
92
|
+
cwd?: string | undefined;
|
|
92
93
|
provider?: "claude" | "codex" | "custom" | undefined;
|
|
93
94
|
protocolVersion?: number | undefined;
|
|
94
95
|
hostname?: string | undefined;
|
|
95
96
|
platform?: string | undefined;
|
|
96
|
-
cwd?: string | undefined;
|
|
97
97
|
projectName?: string | undefined;
|
|
98
98
|
}, {
|
|
99
99
|
role: "host" | "client";
|
|
100
100
|
clientName: string;
|
|
101
|
+
cwd?: string | undefined;
|
|
101
102
|
provider?: "claude" | "codex" | "custom" | undefined;
|
|
102
103
|
protocolVersion?: number | undefined;
|
|
103
104
|
hostname?: string | undefined;
|
|
104
105
|
platform?: string | undefined;
|
|
105
|
-
cwd?: string | undefined;
|
|
106
106
|
projectName?: string | undefined;
|
|
107
107
|
}>;
|
|
108
108
|
export declare const terminalExitPayloadSchema: z.ZodObject<{
|
|
@@ -299,15 +299,15 @@ export declare const terminalInfoSchema: z.ZodObject<{
|
|
|
299
299
|
status: z.ZodEnum<["running", "exited"]>;
|
|
300
300
|
}, "strip", z.ZodTypeAny, {
|
|
301
301
|
status: "running" | "exited";
|
|
302
|
+
cwd: string;
|
|
302
303
|
terminalId: string;
|
|
303
304
|
provider: string;
|
|
304
|
-
cwd: string;
|
|
305
305
|
projectName: string;
|
|
306
306
|
}, {
|
|
307
307
|
status: "running" | "exited";
|
|
308
|
+
cwd: string;
|
|
308
309
|
terminalId: string;
|
|
309
310
|
provider: string;
|
|
310
|
-
cwd: string;
|
|
311
311
|
projectName: string;
|
|
312
312
|
}>;
|
|
313
313
|
export declare const terminalListPayloadSchema: z.ZodObject<{
|
|
@@ -319,31 +319,31 @@ export declare const terminalListPayloadSchema: z.ZodObject<{
|
|
|
319
319
|
status: z.ZodEnum<["running", "exited"]>;
|
|
320
320
|
}, "strip", z.ZodTypeAny, {
|
|
321
321
|
status: "running" | "exited";
|
|
322
|
+
cwd: string;
|
|
322
323
|
terminalId: string;
|
|
323
324
|
provider: string;
|
|
324
|
-
cwd: string;
|
|
325
325
|
projectName: string;
|
|
326
326
|
}, {
|
|
327
327
|
status: "running" | "exited";
|
|
328
|
+
cwd: string;
|
|
328
329
|
terminalId: string;
|
|
329
330
|
provider: string;
|
|
330
|
-
cwd: string;
|
|
331
331
|
projectName: string;
|
|
332
332
|
}>, "many">;
|
|
333
333
|
}, "strip", z.ZodTypeAny, {
|
|
334
334
|
terminals: {
|
|
335
335
|
status: "running" | "exited";
|
|
336
|
+
cwd: string;
|
|
336
337
|
terminalId: string;
|
|
337
338
|
provider: string;
|
|
338
|
-
cwd: string;
|
|
339
339
|
projectName: string;
|
|
340
340
|
}[];
|
|
341
341
|
}, {
|
|
342
342
|
terminals: {
|
|
343
343
|
status: "running" | "exited";
|
|
344
|
+
cwd: string;
|
|
344
345
|
terminalId: string;
|
|
345
346
|
provider: string;
|
|
346
|
-
cwd: string;
|
|
347
347
|
projectName: string;
|
|
348
348
|
}[];
|
|
349
349
|
}>;
|
|
@@ -353,13 +353,13 @@ export declare const terminalSpawnedPayloadSchema: z.ZodObject<{
|
|
|
353
353
|
projectName: z.ZodString;
|
|
354
354
|
provider: z.ZodOptional<z.ZodString>;
|
|
355
355
|
}, "strip", z.ZodTypeAny, {
|
|
356
|
-
terminalId: string;
|
|
357
356
|
cwd: string;
|
|
357
|
+
terminalId: string;
|
|
358
358
|
projectName: string;
|
|
359
359
|
provider?: string | undefined;
|
|
360
360
|
}, {
|
|
361
|
-
terminalId: string;
|
|
362
361
|
cwd: string;
|
|
362
|
+
terminalId: string;
|
|
363
363
|
projectName: string;
|
|
364
364
|
provider?: string | undefined;
|
|
365
365
|
}>;
|
|
@@ -414,20 +414,20 @@ export declare const terminalBrowseResultPayloadSchema: z.ZodObject<{
|
|
|
414
414
|
}>, "many">;
|
|
415
415
|
error: z.ZodOptional<z.ZodString>;
|
|
416
416
|
}, "strip", z.ZodTypeAny, {
|
|
417
|
-
path: string;
|
|
418
417
|
entries: {
|
|
419
418
|
name: string;
|
|
420
419
|
path: string;
|
|
421
420
|
isDirectory: boolean;
|
|
422
421
|
}[];
|
|
422
|
+
path: string;
|
|
423
423
|
error?: string | undefined;
|
|
424
424
|
}, {
|
|
425
|
-
path: string;
|
|
426
425
|
entries: {
|
|
427
426
|
name: string;
|
|
428
427
|
path: string;
|
|
429
428
|
isDirectory: boolean;
|
|
430
429
|
}[];
|
|
430
|
+
path: string;
|
|
431
431
|
error?: string | undefined;
|
|
432
432
|
}>;
|
|
433
433
|
export declare const terminalStatusPayloadSchema: z.ZodObject<{
|
|
@@ -444,45 +444,45 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
|
|
|
444
444
|
permissionRequest: z.ZodString;
|
|
445
445
|
timestamp: z.ZodNumber;
|
|
446
446
|
}, "strip", z.ZodTypeAny, {
|
|
447
|
-
timestamp: number;
|
|
448
447
|
toolName: string;
|
|
449
448
|
toolInput: string;
|
|
449
|
+
timestamp: number;
|
|
450
450
|
permissionRequest: string;
|
|
451
451
|
requestId: string;
|
|
452
452
|
}, {
|
|
453
|
-
timestamp: number;
|
|
454
453
|
toolName: string;
|
|
455
454
|
toolInput: string;
|
|
455
|
+
timestamp: number;
|
|
456
456
|
permissionRequest: string;
|
|
457
457
|
requestId: string;
|
|
458
458
|
}>>;
|
|
459
459
|
pendingPermissionCount: z.ZodOptional<z.ZodNumber>;
|
|
460
460
|
}, "strip", z.ZodTypeAny, {
|
|
461
461
|
phase: "error" | "idle" | "thinking" | "tool_use" | "outputting" | "waiting";
|
|
462
|
-
seq?: number | undefined;
|
|
463
462
|
toolName?: string | undefined;
|
|
464
463
|
toolInput?: string | undefined;
|
|
464
|
+
seq?: number | undefined;
|
|
465
465
|
permissionRequest?: string | undefined;
|
|
466
466
|
summary?: string | undefined;
|
|
467
467
|
topPermission?: {
|
|
468
|
-
timestamp: number;
|
|
469
468
|
toolName: string;
|
|
470
469
|
toolInput: string;
|
|
470
|
+
timestamp: number;
|
|
471
471
|
permissionRequest: string;
|
|
472
472
|
requestId: string;
|
|
473
473
|
} | undefined;
|
|
474
474
|
pendingPermissionCount?: number | undefined;
|
|
475
475
|
}, {
|
|
476
476
|
phase: "error" | "idle" | "thinking" | "tool_use" | "outputting" | "waiting";
|
|
477
|
-
seq?: number | undefined;
|
|
478
477
|
toolName?: string | undefined;
|
|
479
478
|
toolInput?: string | undefined;
|
|
479
|
+
seq?: number | undefined;
|
|
480
480
|
permissionRequest?: string | undefined;
|
|
481
481
|
summary?: string | undefined;
|
|
482
482
|
topPermission?: {
|
|
483
|
-
timestamp: number;
|
|
484
483
|
toolName: string;
|
|
485
484
|
toolInput: string;
|
|
485
|
+
timestamp: number;
|
|
486
486
|
permissionRequest: string;
|
|
487
487
|
requestId: string;
|
|
488
488
|
} | undefined;
|
|
@@ -527,16 +527,16 @@ export declare const tunnelRequestPayloadSchema: z.ZodObject<{
|
|
|
527
527
|
port: z.ZodNumber;
|
|
528
528
|
}, "strip", z.ZodTypeAny, {
|
|
529
529
|
port: number;
|
|
530
|
+
url: string;
|
|
530
531
|
requestId: string;
|
|
531
532
|
method: string;
|
|
532
|
-
url: string;
|
|
533
533
|
headers: Record<string, string>;
|
|
534
534
|
body: string | null;
|
|
535
535
|
}, {
|
|
536
536
|
port: number;
|
|
537
|
+
url: string;
|
|
537
538
|
requestId: string;
|
|
538
539
|
method: string;
|
|
539
|
-
url: string;
|
|
540
540
|
headers: Record<string, string>;
|
|
541
541
|
body: string | null;
|
|
542
542
|
}>;
|
|
@@ -603,20 +603,21 @@ export declare const terminalHistoryResponsePayloadSchema: z.ZodObject<{
|
|
|
603
603
|
shell?: string | undefined;
|
|
604
604
|
}>;
|
|
605
605
|
export declare const agentProviderSchema: z.ZodEnum<["codex", "claude", "custom"]>;
|
|
606
|
+
export declare const agentReasoningEffortSchema: z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>;
|
|
606
607
|
export declare const agentContentBlockSchema: z.ZodObject<{
|
|
607
608
|
type: z.ZodEnum<["text", "image"]>;
|
|
608
609
|
text: z.ZodOptional<z.ZodString>;
|
|
609
610
|
data: z.ZodOptional<z.ZodString>;
|
|
610
611
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
611
612
|
}, "strip", z.ZodTypeAny, {
|
|
612
|
-
type: "
|
|
613
|
-
data?: string | undefined;
|
|
613
|
+
type: "image" | "text";
|
|
614
614
|
text?: string | undefined;
|
|
615
|
+
data?: string | undefined;
|
|
615
616
|
mimeType?: string | undefined;
|
|
616
617
|
}, {
|
|
617
|
-
type: "
|
|
618
|
-
data?: string | undefined;
|
|
618
|
+
type: "image" | "text";
|
|
619
619
|
text?: string | undefined;
|
|
620
|
+
data?: string | undefined;
|
|
620
621
|
mimeType?: string | undefined;
|
|
621
622
|
}>;
|
|
622
623
|
export declare const agentMessageSchema: z.ZodObject<{
|
|
@@ -687,13 +688,13 @@ export declare const agentPermissionSchema: z.ZodObject<{
|
|
|
687
688
|
context?: string | undefined;
|
|
688
689
|
}, {
|
|
689
690
|
requestId: string;
|
|
691
|
+
toolName?: string | undefined;
|
|
692
|
+
toolInput?: string | undefined;
|
|
690
693
|
options?: {
|
|
691
694
|
id: string;
|
|
692
695
|
label: string;
|
|
693
696
|
kind?: "allow" | "deny" | "other" | undefined;
|
|
694
697
|
}[] | undefined;
|
|
695
|
-
toolName?: string | undefined;
|
|
696
|
-
toolInput?: string | undefined;
|
|
697
698
|
context?: string | undefined;
|
|
698
699
|
}>;
|
|
699
700
|
export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
@@ -739,12 +740,12 @@ export declare const agentSessionNewPayloadSchema: z.ZodObject<{
|
|
|
739
740
|
provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
|
|
740
741
|
mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
741
742
|
}, "strip", z.ZodTypeAny, {
|
|
742
|
-
provider?: "claude" | "codex" | "custom" | undefined;
|
|
743
743
|
cwd?: string | undefined;
|
|
744
|
+
provider?: "claude" | "codex" | "custom" | undefined;
|
|
744
745
|
mcpServers?: Record<string, unknown> | undefined;
|
|
745
746
|
}, {
|
|
746
|
-
provider?: "claude" | "codex" | "custom" | undefined;
|
|
747
747
|
cwd?: string | undefined;
|
|
748
|
+
provider?: "claude" | "codex" | "custom" | undefined;
|
|
748
749
|
mcpServers?: Record<string, unknown> | undefined;
|
|
749
750
|
}>;
|
|
750
751
|
export declare const agentSessionLoadPayloadSchema: z.ZodObject<{
|
|
@@ -767,34 +768,40 @@ export declare const agentPromptPayloadSchema: z.ZodObject<{
|
|
|
767
768
|
data: z.ZodOptional<z.ZodString>;
|
|
768
769
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
769
770
|
}, "strip", z.ZodTypeAny, {
|
|
770
|
-
type: "
|
|
771
|
-
data?: string | undefined;
|
|
771
|
+
type: "image" | "text";
|
|
772
772
|
text?: string | undefined;
|
|
773
|
+
data?: string | undefined;
|
|
773
774
|
mimeType?: string | undefined;
|
|
774
775
|
}, {
|
|
775
|
-
type: "
|
|
776
|
-
data?: string | undefined;
|
|
776
|
+
type: "image" | "text";
|
|
777
777
|
text?: string | undefined;
|
|
778
|
+
data?: string | undefined;
|
|
778
779
|
mimeType?: string | undefined;
|
|
779
780
|
}>, "many">;
|
|
781
|
+
model: z.ZodOptional<z.ZodString>;
|
|
782
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
780
783
|
}, "strip", z.ZodTypeAny, {
|
|
781
784
|
clientMessageId: string;
|
|
782
785
|
contentBlocks: {
|
|
783
|
-
type: "
|
|
784
|
-
data?: string | undefined;
|
|
786
|
+
type: "image" | "text";
|
|
785
787
|
text?: string | undefined;
|
|
788
|
+
data?: string | undefined;
|
|
786
789
|
mimeType?: string | undefined;
|
|
787
790
|
}[];
|
|
788
791
|
agentSessionId?: string | undefined;
|
|
792
|
+
model?: string | undefined;
|
|
793
|
+
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
789
794
|
}, {
|
|
790
795
|
clientMessageId: string;
|
|
791
796
|
contentBlocks: {
|
|
792
|
-
type: "
|
|
793
|
-
data?: string | undefined;
|
|
797
|
+
type: "image" | "text";
|
|
794
798
|
text?: string | undefined;
|
|
799
|
+
data?: string | undefined;
|
|
795
800
|
mimeType?: string | undefined;
|
|
796
801
|
}[];
|
|
797
802
|
agentSessionId?: string | undefined;
|
|
803
|
+
model?: string | undefined;
|
|
804
|
+
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
798
805
|
}>;
|
|
799
806
|
export declare const agentCancelPayloadSchema: z.ZodObject<{
|
|
800
807
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
@@ -851,12 +858,12 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
|
|
|
851
858
|
status: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
852
859
|
}, "strip", z.ZodTypeAny, {
|
|
853
860
|
status: "pending" | "completed" | "in_progress";
|
|
854
|
-
id: string;
|
|
855
861
|
text: string;
|
|
862
|
+
id: string;
|
|
856
863
|
}, {
|
|
857
864
|
status: "pending" | "completed" | "in_progress";
|
|
858
|
-
id: string;
|
|
859
865
|
text: string;
|
|
866
|
+
id: string;
|
|
860
867
|
}>, "many">>;
|
|
861
868
|
status: z.ZodOptional<z.ZodEnum<["idle", "running", "waiting_permission", "error"]>>;
|
|
862
869
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -873,8 +880,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
|
|
|
873
880
|
} | undefined;
|
|
874
881
|
plan?: {
|
|
875
882
|
status: "pending" | "completed" | "in_progress";
|
|
876
|
-
id: string;
|
|
877
883
|
text: string;
|
|
884
|
+
id: string;
|
|
878
885
|
}[] | undefined;
|
|
879
886
|
agentSessionId?: string | undefined;
|
|
880
887
|
delta?: string | undefined;
|
|
@@ -898,8 +905,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
|
|
|
898
905
|
} | undefined;
|
|
899
906
|
plan?: {
|
|
900
907
|
status: "pending" | "completed" | "in_progress";
|
|
901
|
-
id: string;
|
|
902
908
|
text: string;
|
|
909
|
+
id: string;
|
|
903
910
|
}[] | undefined;
|
|
904
911
|
agentSessionId?: string | undefined;
|
|
905
912
|
delta?: string | undefined;
|
|
@@ -944,13 +951,13 @@ export declare const agentPermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
944
951
|
context?: string | undefined;
|
|
945
952
|
}, {
|
|
946
953
|
requestId: string;
|
|
954
|
+
toolName?: string | undefined;
|
|
955
|
+
toolInput?: string | undefined;
|
|
947
956
|
options?: {
|
|
948
957
|
id: string;
|
|
949
958
|
label: string;
|
|
950
959
|
kind?: "allow" | "deny" | "other" | undefined;
|
|
951
960
|
}[] | undefined;
|
|
952
|
-
toolName?: string | undefined;
|
|
953
|
-
toolInput?: string | undefined;
|
|
954
961
|
agentSessionId?: string | undefined;
|
|
955
962
|
context?: string | undefined;
|
|
956
963
|
}>;
|
|
@@ -1077,13 +1084,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1077
1084
|
context?: string | undefined;
|
|
1078
1085
|
}, {
|
|
1079
1086
|
requestId: string;
|
|
1087
|
+
toolName?: string | undefined;
|
|
1088
|
+
toolInput?: string | undefined;
|
|
1080
1089
|
options?: {
|
|
1081
1090
|
id: string;
|
|
1082
1091
|
label: string;
|
|
1083
1092
|
kind?: "allow" | "deny" | "other" | undefined;
|
|
1084
1093
|
}[] | undefined;
|
|
1085
|
-
toolName?: string | undefined;
|
|
1086
|
-
toolInput?: string | undefined;
|
|
1087
1094
|
context?: string | undefined;
|
|
1088
1095
|
}>, "many">>;
|
|
1089
1096
|
status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
|
|
@@ -1163,13 +1170,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1163
1170
|
}[] | undefined;
|
|
1164
1171
|
pendingPermissions?: {
|
|
1165
1172
|
requestId: string;
|
|
1173
|
+
toolName?: string | undefined;
|
|
1174
|
+
toolInput?: string | undefined;
|
|
1166
1175
|
options?: {
|
|
1167
1176
|
id: string;
|
|
1168
1177
|
label: string;
|
|
1169
1178
|
kind?: "allow" | "deny" | "other" | undefined;
|
|
1170
1179
|
}[] | undefined;
|
|
1171
|
-
toolName?: string | undefined;
|
|
1172
|
-
toolInput?: string | undefined;
|
|
1173
1180
|
context?: string | undefined;
|
|
1174
1181
|
}[] | undefined;
|
|
1175
1182
|
}>;
|
|
@@ -1186,20 +1193,20 @@ export declare const protocolMessageSchemas: {
|
|
|
1186
1193
|
}, "strip", z.ZodTypeAny, {
|
|
1187
1194
|
role: "host" | "client";
|
|
1188
1195
|
clientName: string;
|
|
1196
|
+
cwd?: string | undefined;
|
|
1189
1197
|
provider?: "claude" | "codex" | "custom" | undefined;
|
|
1190
1198
|
protocolVersion?: number | undefined;
|
|
1191
1199
|
hostname?: string | undefined;
|
|
1192
1200
|
platform?: string | undefined;
|
|
1193
|
-
cwd?: string | undefined;
|
|
1194
1201
|
projectName?: string | undefined;
|
|
1195
1202
|
}, {
|
|
1196
1203
|
role: "host" | "client";
|
|
1197
1204
|
clientName: string;
|
|
1205
|
+
cwd?: string | undefined;
|
|
1198
1206
|
provider?: "claude" | "codex" | "custom" | undefined;
|
|
1199
1207
|
protocolVersion?: number | undefined;
|
|
1200
1208
|
hostname?: string | undefined;
|
|
1201
1209
|
platform?: string | undefined;
|
|
1202
|
-
cwd?: string | undefined;
|
|
1203
1210
|
projectName?: string | undefined;
|
|
1204
1211
|
}>;
|
|
1205
1212
|
readonly "session.ack": z.ZodObject<{
|
|
@@ -1450,13 +1457,13 @@ export declare const protocolMessageSchemas: {
|
|
|
1450
1457
|
projectName: z.ZodString;
|
|
1451
1458
|
provider: z.ZodOptional<z.ZodString>;
|
|
1452
1459
|
}, "strip", z.ZodTypeAny, {
|
|
1453
|
-
terminalId: string;
|
|
1454
1460
|
cwd: string;
|
|
1461
|
+
terminalId: string;
|
|
1455
1462
|
projectName: string;
|
|
1456
1463
|
provider?: string | undefined;
|
|
1457
1464
|
}, {
|
|
1458
|
-
terminalId: string;
|
|
1459
1465
|
cwd: string;
|
|
1466
|
+
terminalId: string;
|
|
1460
1467
|
projectName: string;
|
|
1461
1468
|
provider?: string | undefined;
|
|
1462
1469
|
}>;
|
|
@@ -1469,31 +1476,31 @@ export declare const protocolMessageSchemas: {
|
|
|
1469
1476
|
status: z.ZodEnum<["running", "exited"]>;
|
|
1470
1477
|
}, "strip", z.ZodTypeAny, {
|
|
1471
1478
|
status: "running" | "exited";
|
|
1479
|
+
cwd: string;
|
|
1472
1480
|
terminalId: string;
|
|
1473
1481
|
provider: string;
|
|
1474
|
-
cwd: string;
|
|
1475
1482
|
projectName: string;
|
|
1476
1483
|
}, {
|
|
1477
1484
|
status: "running" | "exited";
|
|
1485
|
+
cwd: string;
|
|
1478
1486
|
terminalId: string;
|
|
1479
1487
|
provider: string;
|
|
1480
|
-
cwd: string;
|
|
1481
1488
|
projectName: string;
|
|
1482
1489
|
}>, "many">;
|
|
1483
1490
|
}, "strip", z.ZodTypeAny, {
|
|
1484
1491
|
terminals: {
|
|
1485
1492
|
status: "running" | "exited";
|
|
1493
|
+
cwd: string;
|
|
1486
1494
|
terminalId: string;
|
|
1487
1495
|
provider: string;
|
|
1488
|
-
cwd: string;
|
|
1489
1496
|
projectName: string;
|
|
1490
1497
|
}[];
|
|
1491
1498
|
}, {
|
|
1492
1499
|
terminals: {
|
|
1493
1500
|
status: "running" | "exited";
|
|
1501
|
+
cwd: string;
|
|
1494
1502
|
terminalId: string;
|
|
1495
1503
|
provider: string;
|
|
1496
|
-
cwd: string;
|
|
1497
1504
|
projectName: string;
|
|
1498
1505
|
}[];
|
|
1499
1506
|
}>;
|
|
@@ -1521,20 +1528,20 @@ export declare const protocolMessageSchemas: {
|
|
|
1521
1528
|
}>, "many">;
|
|
1522
1529
|
error: z.ZodOptional<z.ZodString>;
|
|
1523
1530
|
}, "strip", z.ZodTypeAny, {
|
|
1524
|
-
path: string;
|
|
1525
1531
|
entries: {
|
|
1526
1532
|
name: string;
|
|
1527
1533
|
path: string;
|
|
1528
1534
|
isDirectory: boolean;
|
|
1529
1535
|
}[];
|
|
1536
|
+
path: string;
|
|
1530
1537
|
error?: string | undefined;
|
|
1531
1538
|
}, {
|
|
1532
|
-
path: string;
|
|
1533
1539
|
entries: {
|
|
1534
1540
|
name: string;
|
|
1535
1541
|
path: string;
|
|
1536
1542
|
isDirectory: boolean;
|
|
1537
1543
|
}[];
|
|
1544
|
+
path: string;
|
|
1538
1545
|
error?: string | undefined;
|
|
1539
1546
|
}>;
|
|
1540
1547
|
readonly "terminal.kill": z.ZodObject<{
|
|
@@ -1565,45 +1572,45 @@ export declare const protocolMessageSchemas: {
|
|
|
1565
1572
|
permissionRequest: z.ZodString;
|
|
1566
1573
|
timestamp: z.ZodNumber;
|
|
1567
1574
|
}, "strip", z.ZodTypeAny, {
|
|
1568
|
-
timestamp: number;
|
|
1569
1575
|
toolName: string;
|
|
1570
1576
|
toolInput: string;
|
|
1577
|
+
timestamp: number;
|
|
1571
1578
|
permissionRequest: string;
|
|
1572
1579
|
requestId: string;
|
|
1573
1580
|
}, {
|
|
1574
|
-
timestamp: number;
|
|
1575
1581
|
toolName: string;
|
|
1576
1582
|
toolInput: string;
|
|
1583
|
+
timestamp: number;
|
|
1577
1584
|
permissionRequest: string;
|
|
1578
1585
|
requestId: string;
|
|
1579
1586
|
}>>;
|
|
1580
1587
|
pendingPermissionCount: z.ZodOptional<z.ZodNumber>;
|
|
1581
1588
|
}, "strip", z.ZodTypeAny, {
|
|
1582
1589
|
phase: "error" | "idle" | "thinking" | "tool_use" | "outputting" | "waiting";
|
|
1583
|
-
seq?: number | undefined;
|
|
1584
1590
|
toolName?: string | undefined;
|
|
1585
1591
|
toolInput?: string | undefined;
|
|
1592
|
+
seq?: number | undefined;
|
|
1586
1593
|
permissionRequest?: string | undefined;
|
|
1587
1594
|
summary?: string | undefined;
|
|
1588
1595
|
topPermission?: {
|
|
1589
|
-
timestamp: number;
|
|
1590
1596
|
toolName: string;
|
|
1591
1597
|
toolInput: string;
|
|
1598
|
+
timestamp: number;
|
|
1592
1599
|
permissionRequest: string;
|
|
1593
1600
|
requestId: string;
|
|
1594
1601
|
} | undefined;
|
|
1595
1602
|
pendingPermissionCount?: number | undefined;
|
|
1596
1603
|
}, {
|
|
1597
1604
|
phase: "error" | "idle" | "thinking" | "tool_use" | "outputting" | "waiting";
|
|
1598
|
-
seq?: number | undefined;
|
|
1599
1605
|
toolName?: string | undefined;
|
|
1600
1606
|
toolInput?: string | undefined;
|
|
1607
|
+
seq?: number | undefined;
|
|
1601
1608
|
permissionRequest?: string | undefined;
|
|
1602
1609
|
summary?: string | undefined;
|
|
1603
1610
|
topPermission?: {
|
|
1604
|
-
timestamp: number;
|
|
1605
1611
|
toolName: string;
|
|
1606
1612
|
toolInput: string;
|
|
1613
|
+
timestamp: number;
|
|
1607
1614
|
permissionRequest: string;
|
|
1608
1615
|
requestId: string;
|
|
1609
1616
|
} | undefined;
|
|
@@ -1628,16 +1635,16 @@ export declare const protocolMessageSchemas: {
|
|
|
1628
1635
|
port: z.ZodNumber;
|
|
1629
1636
|
}, "strip", z.ZodTypeAny, {
|
|
1630
1637
|
port: number;
|
|
1638
|
+
url: string;
|
|
1631
1639
|
requestId: string;
|
|
1632
1640
|
method: string;
|
|
1633
|
-
url: string;
|
|
1634
1641
|
headers: Record<string, string>;
|
|
1635
1642
|
body: string | null;
|
|
1636
1643
|
}, {
|
|
1637
1644
|
port: number;
|
|
1645
|
+
url: string;
|
|
1638
1646
|
requestId: string;
|
|
1639
1647
|
method: string;
|
|
1640
|
-
url: string;
|
|
1641
1648
|
headers: Record<string, string>;
|
|
1642
1649
|
body: string | null;
|
|
1643
1650
|
}>;
|
|
@@ -1746,12 +1753,12 @@ export declare const protocolMessageSchemas: {
|
|
|
1746
1753
|
provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
|
|
1747
1754
|
mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1748
1755
|
}, "strip", z.ZodTypeAny, {
|
|
1749
|
-
provider?: "claude" | "codex" | "custom" | undefined;
|
|
1750
1756
|
cwd?: string | undefined;
|
|
1757
|
+
provider?: "claude" | "codex" | "custom" | undefined;
|
|
1751
1758
|
mcpServers?: Record<string, unknown> | undefined;
|
|
1752
1759
|
}, {
|
|
1753
|
-
provider?: "claude" | "codex" | "custom" | undefined;
|
|
1754
1760
|
cwd?: string | undefined;
|
|
1761
|
+
provider?: "claude" | "codex" | "custom" | undefined;
|
|
1755
1762
|
mcpServers?: Record<string, unknown> | undefined;
|
|
1756
1763
|
}>;
|
|
1757
1764
|
readonly "agent.session.load": z.ZodObject<{
|
|
@@ -1774,34 +1781,40 @@ export declare const protocolMessageSchemas: {
|
|
|
1774
1781
|
data: z.ZodOptional<z.ZodString>;
|
|
1775
1782
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1776
1783
|
}, "strip", z.ZodTypeAny, {
|
|
1777
|
-
type: "
|
|
1778
|
-
data?: string | undefined;
|
|
1784
|
+
type: "image" | "text";
|
|
1779
1785
|
text?: string | undefined;
|
|
1786
|
+
data?: string | undefined;
|
|
1780
1787
|
mimeType?: string | undefined;
|
|
1781
1788
|
}, {
|
|
1782
|
-
type: "
|
|
1783
|
-
data?: string | undefined;
|
|
1789
|
+
type: "image" | "text";
|
|
1784
1790
|
text?: string | undefined;
|
|
1791
|
+
data?: string | undefined;
|
|
1785
1792
|
mimeType?: string | undefined;
|
|
1786
1793
|
}>, "many">;
|
|
1794
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1795
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
1787
1796
|
}, "strip", z.ZodTypeAny, {
|
|
1788
1797
|
clientMessageId: string;
|
|
1789
1798
|
contentBlocks: {
|
|
1790
|
-
type: "
|
|
1791
|
-
data?: string | undefined;
|
|
1799
|
+
type: "image" | "text";
|
|
1792
1800
|
text?: string | undefined;
|
|
1801
|
+
data?: string | undefined;
|
|
1793
1802
|
mimeType?: string | undefined;
|
|
1794
1803
|
}[];
|
|
1795
1804
|
agentSessionId?: string | undefined;
|
|
1805
|
+
model?: string | undefined;
|
|
1806
|
+
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1796
1807
|
}, {
|
|
1797
1808
|
clientMessageId: string;
|
|
1798
1809
|
contentBlocks: {
|
|
1799
|
-
type: "
|
|
1800
|
-
data?: string | undefined;
|
|
1810
|
+
type: "image" | "text";
|
|
1801
1811
|
text?: string | undefined;
|
|
1812
|
+
data?: string | undefined;
|
|
1802
1813
|
mimeType?: string | undefined;
|
|
1803
1814
|
}[];
|
|
1804
1815
|
agentSessionId?: string | undefined;
|
|
1816
|
+
model?: string | undefined;
|
|
1817
|
+
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1805
1818
|
}>;
|
|
1806
1819
|
readonly "agent.cancel": z.ZodObject<{
|
|
1807
1820
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
@@ -1858,12 +1871,12 @@ export declare const protocolMessageSchemas: {
|
|
|
1858
1871
|
status: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
1859
1872
|
}, "strip", z.ZodTypeAny, {
|
|
1860
1873
|
status: "pending" | "completed" | "in_progress";
|
|
1861
|
-
id: string;
|
|
1862
1874
|
text: string;
|
|
1875
|
+
id: string;
|
|
1863
1876
|
}, {
|
|
1864
1877
|
status: "pending" | "completed" | "in_progress";
|
|
1865
|
-
id: string;
|
|
1866
1878
|
text: string;
|
|
1879
|
+
id: string;
|
|
1867
1880
|
}>, "many">>;
|
|
1868
1881
|
status: z.ZodOptional<z.ZodEnum<["idle", "running", "waiting_permission", "error"]>>;
|
|
1869
1882
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -1880,8 +1893,8 @@ export declare const protocolMessageSchemas: {
|
|
|
1880
1893
|
} | undefined;
|
|
1881
1894
|
plan?: {
|
|
1882
1895
|
status: "pending" | "completed" | "in_progress";
|
|
1883
|
-
id: string;
|
|
1884
1896
|
text: string;
|
|
1897
|
+
id: string;
|
|
1885
1898
|
}[] | undefined;
|
|
1886
1899
|
agentSessionId?: string | undefined;
|
|
1887
1900
|
delta?: string | undefined;
|
|
@@ -1905,8 +1918,8 @@ export declare const protocolMessageSchemas: {
|
|
|
1905
1918
|
} | undefined;
|
|
1906
1919
|
plan?: {
|
|
1907
1920
|
status: "pending" | "completed" | "in_progress";
|
|
1908
|
-
id: string;
|
|
1909
1921
|
text: string;
|
|
1922
|
+
id: string;
|
|
1910
1923
|
}[] | undefined;
|
|
1911
1924
|
agentSessionId?: string | undefined;
|
|
1912
1925
|
delta?: string | undefined;
|
|
@@ -1951,13 +1964,13 @@ export declare const protocolMessageSchemas: {
|
|
|
1951
1964
|
context?: string | undefined;
|
|
1952
1965
|
}, {
|
|
1953
1966
|
requestId: string;
|
|
1967
|
+
toolName?: string | undefined;
|
|
1968
|
+
toolInput?: string | undefined;
|
|
1954
1969
|
options?: {
|
|
1955
1970
|
id: string;
|
|
1956
1971
|
label: string;
|
|
1957
1972
|
kind?: "allow" | "deny" | "other" | undefined;
|
|
1958
1973
|
}[] | undefined;
|
|
1959
|
-
toolName?: string | undefined;
|
|
1960
|
-
toolInput?: string | undefined;
|
|
1961
1974
|
agentSessionId?: string | undefined;
|
|
1962
1975
|
context?: string | undefined;
|
|
1963
1976
|
}>;
|
|
@@ -2084,13 +2097,13 @@ export declare const protocolMessageSchemas: {
|
|
|
2084
2097
|
context?: string | undefined;
|
|
2085
2098
|
}, {
|
|
2086
2099
|
requestId: string;
|
|
2100
|
+
toolName?: string | undefined;
|
|
2101
|
+
toolInput?: string | undefined;
|
|
2087
2102
|
options?: {
|
|
2088
2103
|
id: string;
|
|
2089
2104
|
label: string;
|
|
2090
2105
|
kind?: "allow" | "deny" | "other" | undefined;
|
|
2091
2106
|
}[] | undefined;
|
|
2092
|
-
toolName?: string | undefined;
|
|
2093
|
-
toolInput?: string | undefined;
|
|
2094
2107
|
context?: string | undefined;
|
|
2095
2108
|
}>, "many">>;
|
|
2096
2109
|
status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
|
|
@@ -2170,13 +2183,13 @@ export declare const protocolMessageSchemas: {
|
|
|
2170
2183
|
}[] | undefined;
|
|
2171
2184
|
pendingPermissions?: {
|
|
2172
2185
|
requestId: string;
|
|
2186
|
+
toolName?: string | undefined;
|
|
2187
|
+
toolInput?: string | undefined;
|
|
2173
2188
|
options?: {
|
|
2174
2189
|
id: string;
|
|
2175
2190
|
label: string;
|
|
2176
2191
|
kind?: "allow" | "deny" | "other" | undefined;
|
|
2177
2192
|
}[] | undefined;
|
|
2178
|
-
toolName?: string | undefined;
|
|
2179
|
-
toolInput?: string | undefined;
|
|
2180
2193
|
context?: string | undefined;
|
|
2181
2194
|
}[] | undefined;
|
|
2182
2195
|
}>;
|