linkshell-cli 0.3.23 → 0.3.24
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 +4 -0
- package/dist/cli/src/runtime/acp/acp-client.js +17 -20
- package/dist/cli/src/runtime/acp/acp-client.js.map +1 -1
- package/dist/cli/src/runtime/acp/codex-rpc-bridge.js +1 -1
- package/dist/cli/src/runtime/acp/codex-rpc-bridge.js.map +1 -1
- package/dist/cli/src/runtime/acp/json-rpc.d.ts +12 -4
- package/dist/cli/src/runtime/acp/json-rpc.js +22 -8
- package/dist/cli/src/runtime/acp/json-rpc.js.map +1 -1
- package/dist/cli/tsconfig.tsbuildinfo +1 -1
- package/dist/shared-protocol/src/index.d.ts +56 -84
- package/dist/shared-protocol/src/index.js +3 -11
- package/dist/shared-protocol/src/index.js.map +1 -1
- package/package.json +3 -3
- package/src/runtime/acp/acp-client.ts +20 -14
- package/src/runtime/acp/codex-rpc-bridge.ts +1 -0
- package/src/runtime/acp/json-rpc.ts +29 -10
|
@@ -333,8 +333,8 @@ export declare const agentReasoningEffortSchema: z.ZodEnum<{
|
|
|
333
333
|
xhigh: "xhigh";
|
|
334
334
|
}>;
|
|
335
335
|
export declare const agentServiceTierSchema: z.ZodEnum<{
|
|
336
|
-
standard: "standard";
|
|
337
336
|
fast: "fast";
|
|
337
|
+
standard: "standard";
|
|
338
338
|
}>;
|
|
339
339
|
export declare const agentPermissionModeSchema: z.ZodEnum<{
|
|
340
340
|
read_only: "read_only";
|
|
@@ -348,8 +348,8 @@ export declare const agentCollaborationModeSchema: z.ZodEnum<{
|
|
|
348
348
|
export declare const agentContentBlockSchema: z.ZodObject<{
|
|
349
349
|
type: z.ZodEnum<{
|
|
350
350
|
image: "image";
|
|
351
|
-
file: "file";
|
|
352
351
|
text: "text";
|
|
352
|
+
file: "file";
|
|
353
353
|
}>;
|
|
354
354
|
text: z.ZodOptional<z.ZodString>;
|
|
355
355
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -416,8 +416,8 @@ export declare const agentModelOptionSchema: z.ZodObject<{
|
|
|
416
416
|
xhigh: "xhigh";
|
|
417
417
|
}>>;
|
|
418
418
|
speedTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
419
|
-
standard: "standard";
|
|
420
419
|
fast: "fast";
|
|
420
|
+
standard: "standard";
|
|
421
421
|
}>>>;
|
|
422
422
|
supportsImages: z.ZodOptional<z.ZodBoolean>;
|
|
423
423
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -501,8 +501,8 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
|
|
|
501
501
|
xhigh: "xhigh";
|
|
502
502
|
}>>;
|
|
503
503
|
speedTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
504
|
-
standard: "standard";
|
|
505
504
|
fast: "fast";
|
|
505
|
+
standard: "standard";
|
|
506
506
|
}>>>;
|
|
507
507
|
supportsImages: z.ZodOptional<z.ZodBoolean>;
|
|
508
508
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -517,12 +517,12 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
|
|
|
517
517
|
xhigh: "xhigh";
|
|
518
518
|
}>>>;
|
|
519
519
|
speedTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
520
|
-
standard: "standard";
|
|
521
520
|
fast: "fast";
|
|
521
|
+
standard: "standard";
|
|
522
522
|
}>>>;
|
|
523
523
|
defaultServiceTier: z.ZodOptional<z.ZodEnum<{
|
|
524
|
-
standard: "standard";
|
|
525
524
|
fast: "fast";
|
|
525
|
+
standard: "standard";
|
|
526
526
|
}>>;
|
|
527
527
|
permissionModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
528
528
|
read_only: "read_only";
|
|
@@ -619,8 +619,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
619
619
|
xhigh: "xhigh";
|
|
620
620
|
}>>;
|
|
621
621
|
speedTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
622
|
-
standard: "standard";
|
|
623
622
|
fast: "fast";
|
|
623
|
+
standard: "standard";
|
|
624
624
|
}>>>;
|
|
625
625
|
supportsImages: z.ZodOptional<z.ZodBoolean>;
|
|
626
626
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -635,12 +635,12 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
635
635
|
xhigh: "xhigh";
|
|
636
636
|
}>>>;
|
|
637
637
|
speedTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
638
|
-
standard: "standard";
|
|
639
638
|
fast: "fast";
|
|
639
|
+
standard: "standard";
|
|
640
640
|
}>>>;
|
|
641
641
|
defaultServiceTier: z.ZodOptional<z.ZodEnum<{
|
|
642
|
-
standard: "standard";
|
|
643
642
|
fast: "fast";
|
|
643
|
+
standard: "standard";
|
|
644
644
|
}>>;
|
|
645
645
|
permissionModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
646
646
|
read_only: "read_only";
|
|
@@ -862,8 +862,8 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
|
|
|
862
862
|
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
863
863
|
type: z.ZodEnum<{
|
|
864
864
|
image: "image";
|
|
865
|
-
file: "file";
|
|
866
865
|
text: "text";
|
|
866
|
+
file: "file";
|
|
867
867
|
}>;
|
|
868
868
|
text: z.ZodOptional<z.ZodString>;
|
|
869
869
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -1007,8 +1007,8 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
|
|
|
1007
1007
|
xhigh: "xhigh";
|
|
1008
1008
|
}>>;
|
|
1009
1009
|
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
1010
|
-
standard: "standard";
|
|
1011
1010
|
fast: "fast";
|
|
1011
|
+
standard: "standard";
|
|
1012
1012
|
}>>;
|
|
1013
1013
|
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
1014
1014
|
read_only: "read_only";
|
|
@@ -1092,8 +1092,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
1092
1092
|
xhigh: "xhigh";
|
|
1093
1093
|
}>>;
|
|
1094
1094
|
speedTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1095
|
-
standard: "standard";
|
|
1096
1095
|
fast: "fast";
|
|
1096
|
+
standard: "standard";
|
|
1097
1097
|
}>>>;
|
|
1098
1098
|
supportsImages: z.ZodOptional<z.ZodBoolean>;
|
|
1099
1099
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1108,12 +1108,12 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
1108
1108
|
xhigh: "xhigh";
|
|
1109
1109
|
}>>>;
|
|
1110
1110
|
speedTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1111
|
-
standard: "standard";
|
|
1112
1111
|
fast: "fast";
|
|
1112
|
+
standard: "standard";
|
|
1113
1113
|
}>>>;
|
|
1114
1114
|
defaultServiceTier: z.ZodOptional<z.ZodEnum<{
|
|
1115
|
-
standard: "standard";
|
|
1116
1115
|
fast: "fast";
|
|
1116
|
+
standard: "standard";
|
|
1117
1117
|
}>>;
|
|
1118
1118
|
permissionModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1119
1119
|
read_only: "read_only";
|
|
@@ -1192,8 +1192,8 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
|
|
|
1192
1192
|
xhigh: "xhigh";
|
|
1193
1193
|
}>>;
|
|
1194
1194
|
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
1195
|
-
standard: "standard";
|
|
1196
1195
|
fast: "fast";
|
|
1196
|
+
standard: "standard";
|
|
1197
1197
|
}>>;
|
|
1198
1198
|
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
1199
1199
|
read_only: "read_only";
|
|
@@ -1227,8 +1227,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
1227
1227
|
xhigh: "xhigh";
|
|
1228
1228
|
}>>;
|
|
1229
1229
|
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
1230
|
-
standard: "standard";
|
|
1231
1230
|
fast: "fast";
|
|
1231
|
+
standard: "standard";
|
|
1232
1232
|
}>>;
|
|
1233
1233
|
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
1234
1234
|
read_only: "read_only";
|
|
@@ -1304,8 +1304,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
1304
1304
|
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1305
1305
|
type: z.ZodEnum<{
|
|
1306
1306
|
image: "image";
|
|
1307
|
-
file: "file";
|
|
1308
1307
|
text: "text";
|
|
1308
|
+
file: "file";
|
|
1309
1309
|
}>;
|
|
1310
1310
|
text: z.ZodOptional<z.ZodString>;
|
|
1311
1311
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -1465,8 +1465,8 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
|
|
|
1465
1465
|
xhigh: "xhigh";
|
|
1466
1466
|
}>>;
|
|
1467
1467
|
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
1468
|
-
standard: "standard";
|
|
1469
1468
|
fast: "fast";
|
|
1469
|
+
standard: "standard";
|
|
1470
1470
|
}>>;
|
|
1471
1471
|
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
1472
1472
|
read_only: "read_only";
|
|
@@ -1507,8 +1507,8 @@ export declare const agentV2PromptPayloadSchema: z.ZodObject<{
|
|
|
1507
1507
|
contentBlocks: z.ZodArray<z.ZodObject<{
|
|
1508
1508
|
type: z.ZodEnum<{
|
|
1509
1509
|
image: "image";
|
|
1510
|
-
file: "file";
|
|
1511
1510
|
text: "text";
|
|
1511
|
+
file: "file";
|
|
1512
1512
|
}>;
|
|
1513
1513
|
text: z.ZodOptional<z.ZodString>;
|
|
1514
1514
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -1526,8 +1526,8 @@ export declare const agentV2PromptPayloadSchema: z.ZodObject<{
|
|
|
1526
1526
|
xhigh: "xhigh";
|
|
1527
1527
|
}>>>;
|
|
1528
1528
|
serviceTier: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1529
|
-
standard: "standard";
|
|
1530
1529
|
fast: "fast";
|
|
1530
|
+
standard: "standard";
|
|
1531
1531
|
}>>>;
|
|
1532
1532
|
permissionMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1533
1533
|
read_only: "read_only";
|
|
@@ -1588,8 +1588,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
1588
1588
|
xhigh: "xhigh";
|
|
1589
1589
|
}>>;
|
|
1590
1590
|
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
1591
|
-
standard: "standard";
|
|
1592
1591
|
fast: "fast";
|
|
1592
|
+
standard: "standard";
|
|
1593
1593
|
}>>;
|
|
1594
1594
|
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
1595
1595
|
read_only: "read_only";
|
|
@@ -1666,8 +1666,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
1666
1666
|
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1667
1667
|
type: z.ZodEnum<{
|
|
1668
1668
|
image: "image";
|
|
1669
|
-
file: "file";
|
|
1670
1669
|
text: "text";
|
|
1670
|
+
file: "file";
|
|
1671
1671
|
}>;
|
|
1672
1672
|
text: z.ZodOptional<z.ZodString>;
|
|
1673
1673
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -1835,8 +1835,8 @@ export declare const agentV2HistoryPagePayloadSchema: z.ZodObject<{
|
|
|
1835
1835
|
xhigh: "xhigh";
|
|
1836
1836
|
}>>;
|
|
1837
1837
|
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
1838
|
-
standard: "standard";
|
|
1839
1838
|
fast: "fast";
|
|
1839
|
+
standard: "standard";
|
|
1840
1840
|
}>>;
|
|
1841
1841
|
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
1842
1842
|
read_only: "read_only";
|
|
@@ -1912,8 +1912,8 @@ export declare const agentV2HistoryPagePayloadSchema: z.ZodObject<{
|
|
|
1912
1912
|
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1913
1913
|
type: z.ZodEnum<{
|
|
1914
1914
|
image: "image";
|
|
1915
|
-
file: "file";
|
|
1916
1915
|
text: "text";
|
|
1916
|
+
file: "file";
|
|
1917
1917
|
}>;
|
|
1918
1918
|
text: z.ZodOptional<z.ZodString>;
|
|
1919
1919
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -2076,8 +2076,8 @@ export declare const agentV2DeltaPayloadSchema: z.ZodObject<{
|
|
|
2076
2076
|
xhigh: "xhigh";
|
|
2077
2077
|
}>>;
|
|
2078
2078
|
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
2079
|
-
standard: "standard";
|
|
2080
2079
|
fast: "fast";
|
|
2080
|
+
standard: "standard";
|
|
2081
2081
|
}>>;
|
|
2082
2082
|
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
2083
2083
|
read_only: "read_only";
|
|
@@ -2153,8 +2153,8 @@ export declare const agentV2DeltaPayloadSchema: z.ZodObject<{
|
|
|
2153
2153
|
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2154
2154
|
type: z.ZodEnum<{
|
|
2155
2155
|
image: "image";
|
|
2156
|
-
file: "file";
|
|
2157
2156
|
text: "text";
|
|
2157
|
+
file: "file";
|
|
2158
2158
|
}>;
|
|
2159
2159
|
text: z.ZodOptional<z.ZodString>;
|
|
2160
2160
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -2336,8 +2336,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
2336
2336
|
xhigh: "xhigh";
|
|
2337
2337
|
}>>;
|
|
2338
2338
|
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
2339
|
-
standard: "standard";
|
|
2340
2339
|
fast: "fast";
|
|
2340
|
+
standard: "standard";
|
|
2341
2341
|
}>>;
|
|
2342
2342
|
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
2343
2343
|
read_only: "read_only";
|
|
@@ -2413,8 +2413,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
2413
2413
|
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2414
2414
|
type: z.ZodEnum<{
|
|
2415
2415
|
image: "image";
|
|
2416
|
-
file: "file";
|
|
2417
2416
|
text: "text";
|
|
2417
|
+
file: "file";
|
|
2418
2418
|
}>;
|
|
2419
2419
|
text: z.ZodOptional<z.ZodString>;
|
|
2420
2420
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -2569,8 +2569,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
2569
2569
|
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2570
2570
|
type: z.ZodEnum<{
|
|
2571
2571
|
image: "image";
|
|
2572
|
-
file: "file";
|
|
2573
2572
|
text: "text";
|
|
2573
|
+
file: "file";
|
|
2574
2574
|
}>;
|
|
2575
2575
|
text: z.ZodOptional<z.ZodString>;
|
|
2576
2576
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -2752,8 +2752,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
2752
2752
|
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2753
2753
|
type: z.ZodEnum<{
|
|
2754
2754
|
image: "image";
|
|
2755
|
-
file: "file";
|
|
2756
2755
|
text: "text";
|
|
2756
|
+
file: "file";
|
|
2757
2757
|
}>;
|
|
2758
2758
|
text: z.ZodOptional<z.ZodString>;
|
|
2759
2759
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -2881,34 +2881,18 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
2881
2881
|
export declare const codexJsonRpcErrorSchema: z.ZodObject<{
|
|
2882
2882
|
code: z.ZodNumber;
|
|
2883
2883
|
message: z.ZodString;
|
|
2884
|
-
data: z.ZodOptional<z.
|
|
2885
|
-
[key: string]: unknown;
|
|
2886
|
-
} | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | unknown[] | {
|
|
2887
|
-
[key: string]: unknown;
|
|
2888
|
-
} | null, unknown>>>;
|
|
2884
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
2889
2885
|
}, z.core.$loose>;
|
|
2890
2886
|
export declare const agentCodexRpcPayloadSchema: z.ZodObject<{
|
|
2891
2887
|
jsonrpc: z.ZodOptional<z.ZodString>;
|
|
2892
2888
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
2893
2889
|
method: z.ZodOptional<z.ZodString>;
|
|
2894
|
-
params: z.ZodOptional<z.
|
|
2895
|
-
|
|
2896
|
-
} | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | unknown[] | {
|
|
2897
|
-
[key: string]: unknown;
|
|
2898
|
-
} | null, unknown>>>;
|
|
2899
|
-
result: z.ZodOptional<z.ZodType<string | number | boolean | unknown[] | {
|
|
2900
|
-
[key: string]: unknown;
|
|
2901
|
-
} | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | unknown[] | {
|
|
2902
|
-
[key: string]: unknown;
|
|
2903
|
-
} | null, unknown>>>;
|
|
2890
|
+
params: z.ZodOptional<z.ZodUnknown>;
|
|
2891
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
2904
2892
|
error: z.ZodOptional<z.ZodObject<{
|
|
2905
2893
|
code: z.ZodNumber;
|
|
2906
2894
|
message: z.ZodString;
|
|
2907
|
-
data: z.ZodOptional<z.
|
|
2908
|
-
[key: string]: unknown;
|
|
2909
|
-
} | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | unknown[] | {
|
|
2910
|
-
[key: string]: unknown;
|
|
2911
|
-
} | null, unknown>>>;
|
|
2895
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
2912
2896
|
}, z.core.$loose>>;
|
|
2913
2897
|
}, z.core.$loose>;
|
|
2914
2898
|
export declare const protocolMessageSchemas: {
|
|
@@ -3221,8 +3205,8 @@ export declare const protocolMessageSchemas: {
|
|
|
3221
3205
|
xhigh: "xhigh";
|
|
3222
3206
|
}>>;
|
|
3223
3207
|
speedTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3224
|
-
standard: "standard";
|
|
3225
3208
|
fast: "fast";
|
|
3209
|
+
standard: "standard";
|
|
3226
3210
|
}>>>;
|
|
3227
3211
|
supportsImages: z.ZodOptional<z.ZodBoolean>;
|
|
3228
3212
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -3237,12 +3221,12 @@ export declare const protocolMessageSchemas: {
|
|
|
3237
3221
|
xhigh: "xhigh";
|
|
3238
3222
|
}>>>;
|
|
3239
3223
|
speedTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3240
|
-
standard: "standard";
|
|
3241
3224
|
fast: "fast";
|
|
3225
|
+
standard: "standard";
|
|
3242
3226
|
}>>>;
|
|
3243
3227
|
defaultServiceTier: z.ZodOptional<z.ZodEnum<{
|
|
3244
|
-
standard: "standard";
|
|
3245
3228
|
fast: "fast";
|
|
3229
|
+
standard: "standard";
|
|
3246
3230
|
}>>;
|
|
3247
3231
|
permissionModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3248
3232
|
read_only: "read_only";
|
|
@@ -3321,8 +3305,8 @@ export declare const protocolMessageSchemas: {
|
|
|
3321
3305
|
xhigh: "xhigh";
|
|
3322
3306
|
}>>;
|
|
3323
3307
|
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
3324
|
-
standard: "standard";
|
|
3325
3308
|
fast: "fast";
|
|
3309
|
+
standard: "standard";
|
|
3326
3310
|
}>>;
|
|
3327
3311
|
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
3328
3312
|
read_only: "read_only";
|
|
@@ -3356,8 +3340,8 @@ export declare const protocolMessageSchemas: {
|
|
|
3356
3340
|
xhigh: "xhigh";
|
|
3357
3341
|
}>>;
|
|
3358
3342
|
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
3359
|
-
standard: "standard";
|
|
3360
3343
|
fast: "fast";
|
|
3344
|
+
standard: "standard";
|
|
3361
3345
|
}>>;
|
|
3362
3346
|
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
3363
3347
|
read_only: "read_only";
|
|
@@ -3433,8 +3417,8 @@ export declare const protocolMessageSchemas: {
|
|
|
3433
3417
|
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3434
3418
|
type: z.ZodEnum<{
|
|
3435
3419
|
image: "image";
|
|
3436
|
-
file: "file";
|
|
3437
3420
|
text: "text";
|
|
3421
|
+
file: "file";
|
|
3438
3422
|
}>;
|
|
3439
3423
|
text: z.ZodOptional<z.ZodString>;
|
|
3440
3424
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -3594,8 +3578,8 @@ export declare const protocolMessageSchemas: {
|
|
|
3594
3578
|
xhigh: "xhigh";
|
|
3595
3579
|
}>>;
|
|
3596
3580
|
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
3597
|
-
standard: "standard";
|
|
3598
3581
|
fast: "fast";
|
|
3582
|
+
standard: "standard";
|
|
3599
3583
|
}>>;
|
|
3600
3584
|
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
3601
3585
|
read_only: "read_only";
|
|
@@ -3636,8 +3620,8 @@ export declare const protocolMessageSchemas: {
|
|
|
3636
3620
|
contentBlocks: z.ZodArray<z.ZodObject<{
|
|
3637
3621
|
type: z.ZodEnum<{
|
|
3638
3622
|
image: "image";
|
|
3639
|
-
file: "file";
|
|
3640
3623
|
text: "text";
|
|
3624
|
+
file: "file";
|
|
3641
3625
|
}>;
|
|
3642
3626
|
text: z.ZodOptional<z.ZodString>;
|
|
3643
3627
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -3655,8 +3639,8 @@ export declare const protocolMessageSchemas: {
|
|
|
3655
3639
|
xhigh: "xhigh";
|
|
3656
3640
|
}>>>;
|
|
3657
3641
|
serviceTier: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3658
|
-
standard: "standard";
|
|
3659
3642
|
fast: "fast";
|
|
3643
|
+
standard: "standard";
|
|
3660
3644
|
}>>>;
|
|
3661
3645
|
permissionMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3662
3646
|
read_only: "read_only";
|
|
@@ -3745,8 +3729,8 @@ export declare const protocolMessageSchemas: {
|
|
|
3745
3729
|
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3746
3730
|
type: z.ZodEnum<{
|
|
3747
3731
|
image: "image";
|
|
3748
|
-
file: "file";
|
|
3749
3732
|
text: "text";
|
|
3733
|
+
file: "file";
|
|
3750
3734
|
}>;
|
|
3751
3735
|
text: z.ZodOptional<z.ZodString>;
|
|
3752
3736
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -3900,8 +3884,8 @@ export declare const protocolMessageSchemas: {
|
|
|
3900
3884
|
xhigh: "xhigh";
|
|
3901
3885
|
}>>;
|
|
3902
3886
|
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
3903
|
-
standard: "standard";
|
|
3904
3887
|
fast: "fast";
|
|
3888
|
+
standard: "standard";
|
|
3905
3889
|
}>>;
|
|
3906
3890
|
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
3907
3891
|
read_only: "read_only";
|
|
@@ -3978,8 +3962,8 @@ export declare const protocolMessageSchemas: {
|
|
|
3978
3962
|
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3979
3963
|
type: z.ZodEnum<{
|
|
3980
3964
|
image: "image";
|
|
3981
|
-
file: "file";
|
|
3982
3965
|
text: "text";
|
|
3966
|
+
file: "file";
|
|
3983
3967
|
}>;
|
|
3984
3968
|
text: z.ZodOptional<z.ZodString>;
|
|
3985
3969
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -4147,8 +4131,8 @@ export declare const protocolMessageSchemas: {
|
|
|
4147
4131
|
xhigh: "xhigh";
|
|
4148
4132
|
}>>;
|
|
4149
4133
|
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
4150
|
-
standard: "standard";
|
|
4151
4134
|
fast: "fast";
|
|
4135
|
+
standard: "standard";
|
|
4152
4136
|
}>>;
|
|
4153
4137
|
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
4154
4138
|
read_only: "read_only";
|
|
@@ -4224,8 +4208,8 @@ export declare const protocolMessageSchemas: {
|
|
|
4224
4208
|
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4225
4209
|
type: z.ZodEnum<{
|
|
4226
4210
|
image: "image";
|
|
4227
|
-
file: "file";
|
|
4228
4211
|
text: "text";
|
|
4212
|
+
file: "file";
|
|
4229
4213
|
}>;
|
|
4230
4214
|
text: z.ZodOptional<z.ZodString>;
|
|
4231
4215
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -4388,8 +4372,8 @@ export declare const protocolMessageSchemas: {
|
|
|
4388
4372
|
xhigh: "xhigh";
|
|
4389
4373
|
}>>;
|
|
4390
4374
|
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
4391
|
-
standard: "standard";
|
|
4392
4375
|
fast: "fast";
|
|
4376
|
+
standard: "standard";
|
|
4393
4377
|
}>>;
|
|
4394
4378
|
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
4395
4379
|
read_only: "read_only";
|
|
@@ -4465,8 +4449,8 @@ export declare const protocolMessageSchemas: {
|
|
|
4465
4449
|
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4466
4450
|
type: z.ZodEnum<{
|
|
4467
4451
|
image: "image";
|
|
4468
|
-
file: "file";
|
|
4469
4452
|
text: "text";
|
|
4453
|
+
file: "file";
|
|
4470
4454
|
}>;
|
|
4471
4455
|
text: z.ZodOptional<z.ZodString>;
|
|
4472
4456
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -4648,8 +4632,8 @@ export declare const protocolMessageSchemas: {
|
|
|
4648
4632
|
xhigh: "xhigh";
|
|
4649
4633
|
}>>;
|
|
4650
4634
|
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
4651
|
-
standard: "standard";
|
|
4652
4635
|
fast: "fast";
|
|
4636
|
+
standard: "standard";
|
|
4653
4637
|
}>>;
|
|
4654
4638
|
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
4655
4639
|
read_only: "read_only";
|
|
@@ -4725,8 +4709,8 @@ export declare const protocolMessageSchemas: {
|
|
|
4725
4709
|
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4726
4710
|
type: z.ZodEnum<{
|
|
4727
4711
|
image: "image";
|
|
4728
|
-
file: "file";
|
|
4729
4712
|
text: "text";
|
|
4713
|
+
file: "file";
|
|
4730
4714
|
}>;
|
|
4731
4715
|
text: z.ZodOptional<z.ZodString>;
|
|
4732
4716
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -4881,8 +4865,8 @@ export declare const protocolMessageSchemas: {
|
|
|
4881
4865
|
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4882
4866
|
type: z.ZodEnum<{
|
|
4883
4867
|
image: "image";
|
|
4884
|
-
file: "file";
|
|
4885
4868
|
text: "text";
|
|
4869
|
+
file: "file";
|
|
4886
4870
|
}>;
|
|
4887
4871
|
text: z.ZodOptional<z.ZodString>;
|
|
4888
4872
|
data: z.ZodOptional<z.ZodString>;
|
|
@@ -5011,24 +4995,12 @@ export declare const protocolMessageSchemas: {
|
|
|
5011
4995
|
jsonrpc: z.ZodOptional<z.ZodString>;
|
|
5012
4996
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
5013
4997
|
method: z.ZodOptional<z.ZodString>;
|
|
5014
|
-
params: z.ZodOptional<z.
|
|
5015
|
-
|
|
5016
|
-
} | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | unknown[] | {
|
|
5017
|
-
[key: string]: unknown;
|
|
5018
|
-
} | null, unknown>>>;
|
|
5019
|
-
result: z.ZodOptional<z.ZodType<string | number | boolean | unknown[] | {
|
|
5020
|
-
[key: string]: unknown;
|
|
5021
|
-
} | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | unknown[] | {
|
|
5022
|
-
[key: string]: unknown;
|
|
5023
|
-
} | null, unknown>>>;
|
|
4998
|
+
params: z.ZodOptional<z.ZodUnknown>;
|
|
4999
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
5024
5000
|
error: z.ZodOptional<z.ZodObject<{
|
|
5025
5001
|
code: z.ZodNumber;
|
|
5026
5002
|
message: z.ZodString;
|
|
5027
|
-
data: z.ZodOptional<z.
|
|
5028
|
-
[key: string]: unknown;
|
|
5029
|
-
} | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | unknown[] | {
|
|
5030
|
-
[key: string]: unknown;
|
|
5031
|
-
} | null, unknown>>>;
|
|
5003
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
5032
5004
|
}, z.core.$loose>>;
|
|
5033
5005
|
}, z.core.$loose>;
|
|
5034
5006
|
};
|
|
@@ -697,26 +697,18 @@ export const agentV2PermissionRequestPayloadSchema = agentPermissionSchema.exten
|
|
|
697
697
|
conversationId: z.string().min(1),
|
|
698
698
|
item: agentV2TimelineItemSchema.optional(),
|
|
699
699
|
});
|
|
700
|
-
const jsonValueSchema = z.lazy(() => z.union([
|
|
701
|
-
z.string(),
|
|
702
|
-
z.number().finite(),
|
|
703
|
-
z.boolean(),
|
|
704
|
-
z.null(),
|
|
705
|
-
z.array(jsonValueSchema),
|
|
706
|
-
z.record(z.string(), jsonValueSchema),
|
|
707
|
-
]));
|
|
708
700
|
export const codexJsonRpcErrorSchema = z.object({
|
|
709
701
|
code: z.number().int(),
|
|
710
702
|
message: z.string(),
|
|
711
|
-
data:
|
|
703
|
+
data: z.unknown().optional(),
|
|
712
704
|
}).passthrough();
|
|
713
705
|
export const agentCodexRpcPayloadSchema = z
|
|
714
706
|
.object({
|
|
715
707
|
jsonrpc: z.string().optional(),
|
|
716
708
|
id: z.union([z.string(), z.number().int()]).optional(),
|
|
717
709
|
method: z.string().min(1).optional(),
|
|
718
|
-
params:
|
|
719
|
-
result:
|
|
710
|
+
params: z.unknown().optional(),
|
|
711
|
+
result: z.unknown().optional(),
|
|
720
712
|
error: codexJsonRpcErrorSchema.optional(),
|
|
721
713
|
})
|
|
722
714
|
.passthrough()
|