codebuff 1.0.192 → 1.0.193
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/client.d.ts +1 -1
- package/dist/common/actions.d.ts +64 -64
- package/dist/common/types/agent-state.d.ts +4 -4
- package/dist/common/websockets/websocket-client.js +6 -1
- package/dist/common/websockets/websocket-client.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +192 -192
- package/dist/utils/terminal.js +0 -2
- package/dist/utils/terminal.js.map +1 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
package/dist/common/actions.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ export declare const FileChangeSchema: z.ZodObject<{
|
|
|
4
4
|
path: z.ZodString;
|
|
5
5
|
content: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
type: "patch" | "file";
|
|
8
7
|
path: string;
|
|
9
8
|
content: string;
|
|
9
|
+
type: "file" | "patch";
|
|
10
10
|
}, {
|
|
11
|
-
type: "patch" | "file";
|
|
12
11
|
path: string;
|
|
13
12
|
content: string;
|
|
13
|
+
type: "file" | "patch";
|
|
14
14
|
}>;
|
|
15
15
|
export type FileChange = z.infer<typeof FileChangeSchema>;
|
|
16
16
|
export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
@@ -18,13 +18,13 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
|
18
18
|
path: z.ZodString;
|
|
19
19
|
content: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
type: "patch" | "file";
|
|
22
21
|
path: string;
|
|
23
22
|
content: string;
|
|
23
|
+
type: "file" | "patch";
|
|
24
24
|
}, {
|
|
25
|
-
type: "patch" | "file";
|
|
26
25
|
path: string;
|
|
27
26
|
content: string;
|
|
27
|
+
type: "file" | "patch";
|
|
28
28
|
}>, "many">;
|
|
29
29
|
export type FileChanges = z.infer<typeof CHANGES>;
|
|
30
30
|
export declare const ToolCallSchema: z.ZodObject<{
|
|
@@ -110,15 +110,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
110
110
|
type: "ephemeral";
|
|
111
111
|
}>>;
|
|
112
112
|
}, "strip", z.ZodTypeAny, {
|
|
113
|
-
type: "tool_result";
|
|
114
113
|
content: string;
|
|
114
|
+
type: "tool_result";
|
|
115
115
|
tool_use_id: string;
|
|
116
116
|
cache_control?: {
|
|
117
117
|
type: "ephemeral";
|
|
118
118
|
} | undefined;
|
|
119
119
|
}, {
|
|
120
|
-
type: "tool_result";
|
|
121
120
|
content: string;
|
|
121
|
+
type: "tool_result";
|
|
122
122
|
tool_use_id: string;
|
|
123
123
|
cache_control?: {
|
|
124
124
|
type: "ephemeral";
|
|
@@ -182,8 +182,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
182
182
|
type: "ephemeral";
|
|
183
183
|
} | undefined;
|
|
184
184
|
} | {
|
|
185
|
-
type: "tool_result";
|
|
186
185
|
content: string;
|
|
186
|
+
type: "tool_result";
|
|
187
187
|
tool_use_id: string;
|
|
188
188
|
cache_control?: {
|
|
189
189
|
type: "ephemeral";
|
|
@@ -216,8 +216,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
216
216
|
type: "ephemeral";
|
|
217
217
|
} | undefined;
|
|
218
218
|
} | {
|
|
219
|
-
type: "tool_result";
|
|
220
219
|
content: string;
|
|
220
|
+
type: "tool_result";
|
|
221
221
|
tool_use_id: string;
|
|
222
222
|
cache_control?: {
|
|
223
223
|
type: "ephemeral";
|
|
@@ -349,13 +349,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
349
349
|
path: z.ZodString;
|
|
350
350
|
content: z.ZodString;
|
|
351
351
|
}, "strip", z.ZodTypeAny, {
|
|
352
|
-
type: "patch" | "file";
|
|
353
352
|
path: string;
|
|
354
353
|
content: string;
|
|
354
|
+
type: "file" | "patch";
|
|
355
355
|
}, {
|
|
356
|
-
type: "patch" | "file";
|
|
357
356
|
path: string;
|
|
358
357
|
content: string;
|
|
358
|
+
type: "file" | "patch";
|
|
359
359
|
}>, "many">;
|
|
360
360
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
361
361
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -378,8 +378,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
378
378
|
type: "ephemeral";
|
|
379
379
|
} | undefined;
|
|
380
380
|
} | {
|
|
381
|
-
type: "tool_result";
|
|
382
381
|
content: string;
|
|
382
|
+
type: "tool_result";
|
|
383
383
|
tool_use_id: string;
|
|
384
384
|
cache_control?: {
|
|
385
385
|
type: "ephemeral";
|
|
@@ -425,9 +425,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
425
425
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
426
426
|
};
|
|
427
427
|
changesAlreadyApplied: {
|
|
428
|
-
type: "patch" | "file";
|
|
429
428
|
path: string;
|
|
430
429
|
content: string;
|
|
430
|
+
type: "file" | "patch";
|
|
431
431
|
}[];
|
|
432
432
|
costMode: "max" | "lite" | "normal";
|
|
433
433
|
authToken?: string | undefined;
|
|
@@ -451,8 +451,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
451
451
|
type: "ephemeral";
|
|
452
452
|
} | undefined;
|
|
453
453
|
} | {
|
|
454
|
-
type: "tool_result";
|
|
455
454
|
content: string;
|
|
455
|
+
type: "tool_result";
|
|
456
456
|
tool_use_id: string;
|
|
457
457
|
cache_control?: {
|
|
458
458
|
type: "ephemeral";
|
|
@@ -498,9 +498,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
498
498
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
499
499
|
};
|
|
500
500
|
changesAlreadyApplied: {
|
|
501
|
-
type: "patch" | "file";
|
|
502
501
|
path: string;
|
|
503
502
|
content: string;
|
|
503
|
+
type: "file" | "patch";
|
|
504
504
|
}[];
|
|
505
505
|
authToken?: string | undefined;
|
|
506
506
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
@@ -686,15 +686,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
686
686
|
type: "ephemeral";
|
|
687
687
|
}>>;
|
|
688
688
|
}, "strip", z.ZodTypeAny, {
|
|
689
|
-
type: "tool_result";
|
|
690
689
|
content: string;
|
|
690
|
+
type: "tool_result";
|
|
691
691
|
tool_use_id: string;
|
|
692
692
|
cache_control?: {
|
|
693
693
|
type: "ephemeral";
|
|
694
694
|
} | undefined;
|
|
695
695
|
}, {
|
|
696
|
-
type: "tool_result";
|
|
697
696
|
content: string;
|
|
697
|
+
type: "tool_result";
|
|
698
698
|
tool_use_id: string;
|
|
699
699
|
cache_control?: {
|
|
700
700
|
type: "ephemeral";
|
|
@@ -758,8 +758,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
758
758
|
type: "ephemeral";
|
|
759
759
|
} | undefined;
|
|
760
760
|
} | {
|
|
761
|
-
type: "tool_result";
|
|
762
761
|
content: string;
|
|
762
|
+
type: "tool_result";
|
|
763
763
|
tool_use_id: string;
|
|
764
764
|
cache_control?: {
|
|
765
765
|
type: "ephemeral";
|
|
@@ -792,8 +792,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
792
792
|
type: "ephemeral";
|
|
793
793
|
} | undefined;
|
|
794
794
|
} | {
|
|
795
|
-
type: "tool_result";
|
|
796
795
|
content: string;
|
|
796
|
+
type: "tool_result";
|
|
797
797
|
tool_use_id: string;
|
|
798
798
|
cache_control?: {
|
|
799
799
|
type: "ephemeral";
|
|
@@ -856,8 +856,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
856
856
|
type: "ephemeral";
|
|
857
857
|
} | undefined;
|
|
858
858
|
} | {
|
|
859
|
-
type: "tool_result";
|
|
860
859
|
content: string;
|
|
860
|
+
type: "tool_result";
|
|
861
861
|
tool_use_id: string;
|
|
862
862
|
cache_control?: {
|
|
863
863
|
type: "ephemeral";
|
|
@@ -920,8 +920,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
920
920
|
type: "ephemeral";
|
|
921
921
|
} | undefined;
|
|
922
922
|
} | {
|
|
923
|
-
type: "tool_result";
|
|
924
923
|
content: string;
|
|
924
|
+
type: "tool_result";
|
|
925
925
|
tool_use_id: string;
|
|
926
926
|
cache_control?: {
|
|
927
927
|
type: "ephemeral";
|
|
@@ -1003,8 +1003,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1003
1003
|
type: "ephemeral";
|
|
1004
1004
|
} | undefined;
|
|
1005
1005
|
} | {
|
|
1006
|
-
type: "tool_result";
|
|
1007
1006
|
content: string;
|
|
1007
|
+
type: "tool_result";
|
|
1008
1008
|
tool_use_id: string;
|
|
1009
1009
|
cache_control?: {
|
|
1010
1010
|
type: "ephemeral";
|
|
@@ -1079,8 +1079,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1079
1079
|
type: "ephemeral";
|
|
1080
1080
|
} | undefined;
|
|
1081
1081
|
} | {
|
|
1082
|
-
type: "tool_result";
|
|
1083
1082
|
content: string;
|
|
1083
|
+
type: "tool_result";
|
|
1084
1084
|
tool_use_id: string;
|
|
1085
1085
|
cache_control?: {
|
|
1086
1086
|
type: "ephemeral";
|
|
@@ -1374,26 +1374,26 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1374
1374
|
path: z.ZodString;
|
|
1375
1375
|
content: z.ZodString;
|
|
1376
1376
|
}, "strip", z.ZodTypeAny, {
|
|
1377
|
-
type: "patch" | "file";
|
|
1378
1377
|
path: string;
|
|
1379
1378
|
content: string;
|
|
1379
|
+
type: "file" | "patch";
|
|
1380
1380
|
}, {
|
|
1381
|
-
type: "patch" | "file";
|
|
1382
1381
|
path: string;
|
|
1383
1382
|
content: string;
|
|
1383
|
+
type: "file" | "patch";
|
|
1384
1384
|
}>, "many">;
|
|
1385
1385
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1386
1386
|
type: z.ZodEnum<["patch", "file"]>;
|
|
1387
1387
|
path: z.ZodString;
|
|
1388
1388
|
content: z.ZodString;
|
|
1389
1389
|
}, "strip", z.ZodTypeAny, {
|
|
1390
|
-
type: "patch" | "file";
|
|
1391
1390
|
path: string;
|
|
1392
1391
|
content: string;
|
|
1392
|
+
type: "file" | "patch";
|
|
1393
1393
|
}, {
|
|
1394
|
-
type: "patch" | "file";
|
|
1395
1394
|
path: string;
|
|
1396
1395
|
content: string;
|
|
1396
|
+
type: "file" | "patch";
|
|
1397
1397
|
}>, "many">;
|
|
1398
1398
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
1399
1399
|
path: z.ZodString;
|
|
@@ -1417,15 +1417,15 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1417
1417
|
type: "response-complete";
|
|
1418
1418
|
userInputId: string;
|
|
1419
1419
|
changesAlreadyApplied: {
|
|
1420
|
-
type: "patch" | "file";
|
|
1421
1420
|
path: string;
|
|
1422
1421
|
content: string;
|
|
1422
|
+
type: "file" | "patch";
|
|
1423
1423
|
}[];
|
|
1424
1424
|
response: string;
|
|
1425
1425
|
changes: {
|
|
1426
|
-
type: "patch" | "file";
|
|
1427
1426
|
path: string;
|
|
1428
1427
|
content: string;
|
|
1428
|
+
type: "file" | "patch";
|
|
1429
1429
|
}[];
|
|
1430
1430
|
addedFileVersions: {
|
|
1431
1431
|
path: string;
|
|
@@ -1442,15 +1442,15 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1442
1442
|
type: "response-complete";
|
|
1443
1443
|
userInputId: string;
|
|
1444
1444
|
changesAlreadyApplied: {
|
|
1445
|
-
type: "patch" | "file";
|
|
1446
1445
|
path: string;
|
|
1447
1446
|
content: string;
|
|
1447
|
+
type: "file" | "patch";
|
|
1448
1448
|
}[];
|
|
1449
1449
|
response: string;
|
|
1450
1450
|
changes: {
|
|
1451
|
-
type: "patch" | "file";
|
|
1452
1451
|
path: string;
|
|
1453
1452
|
content: string;
|
|
1453
|
+
type: "file" | "patch";
|
|
1454
1454
|
}[];
|
|
1455
1455
|
addedFileVersions: {
|
|
1456
1456
|
path: string;
|
|
@@ -1656,15 +1656,15 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1656
1656
|
type: "ephemeral";
|
|
1657
1657
|
}>>;
|
|
1658
1658
|
}, "strip", z.ZodTypeAny, {
|
|
1659
|
-
type: "tool_result";
|
|
1660
1659
|
content: string;
|
|
1660
|
+
type: "tool_result";
|
|
1661
1661
|
tool_use_id: string;
|
|
1662
1662
|
cache_control?: {
|
|
1663
1663
|
type: "ephemeral";
|
|
1664
1664
|
} | undefined;
|
|
1665
1665
|
}, {
|
|
1666
|
-
type: "tool_result";
|
|
1667
1666
|
content: string;
|
|
1667
|
+
type: "tool_result";
|
|
1668
1668
|
tool_use_id: string;
|
|
1669
1669
|
cache_control?: {
|
|
1670
1670
|
type: "ephemeral";
|
|
@@ -1728,8 +1728,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1728
1728
|
type: "ephemeral";
|
|
1729
1729
|
} | undefined;
|
|
1730
1730
|
} | {
|
|
1731
|
-
type: "tool_result";
|
|
1732
1731
|
content: string;
|
|
1732
|
+
type: "tool_result";
|
|
1733
1733
|
tool_use_id: string;
|
|
1734
1734
|
cache_control?: {
|
|
1735
1735
|
type: "ephemeral";
|
|
@@ -1762,8 +1762,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1762
1762
|
type: "ephemeral";
|
|
1763
1763
|
} | undefined;
|
|
1764
1764
|
} | {
|
|
1765
|
-
type: "tool_result";
|
|
1766
1765
|
content: string;
|
|
1766
|
+
type: "tool_result";
|
|
1767
1767
|
tool_use_id: string;
|
|
1768
1768
|
cache_control?: {
|
|
1769
1769
|
type: "ephemeral";
|
|
@@ -1826,8 +1826,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1826
1826
|
type: "ephemeral";
|
|
1827
1827
|
} | undefined;
|
|
1828
1828
|
} | {
|
|
1829
|
-
type: "tool_result";
|
|
1830
1829
|
content: string;
|
|
1830
|
+
type: "tool_result";
|
|
1831
1831
|
tool_use_id: string;
|
|
1832
1832
|
cache_control?: {
|
|
1833
1833
|
type: "ephemeral";
|
|
@@ -1890,8 +1890,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1890
1890
|
type: "ephemeral";
|
|
1891
1891
|
} | undefined;
|
|
1892
1892
|
} | {
|
|
1893
|
-
type: "tool_result";
|
|
1894
1893
|
content: string;
|
|
1894
|
+
type: "tool_result";
|
|
1895
1895
|
tool_use_id: string;
|
|
1896
1896
|
cache_control?: {
|
|
1897
1897
|
type: "ephemeral";
|
|
@@ -1984,8 +1984,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1984
1984
|
type: "ephemeral";
|
|
1985
1985
|
} | undefined;
|
|
1986
1986
|
} | {
|
|
1987
|
-
type: "tool_result";
|
|
1988
1987
|
content: string;
|
|
1988
|
+
type: "tool_result";
|
|
1989
1989
|
tool_use_id: string;
|
|
1990
1990
|
cache_control?: {
|
|
1991
1991
|
type: "ephemeral";
|
|
@@ -2062,8 +2062,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
2062
2062
|
type: "ephemeral";
|
|
2063
2063
|
} | undefined;
|
|
2064
2064
|
} | {
|
|
2065
|
-
type: "tool_result";
|
|
2066
2065
|
content: string;
|
|
2066
|
+
type: "tool_result";
|
|
2067
2067
|
tool_use_id: string;
|
|
2068
2068
|
cache_control?: {
|
|
2069
2069
|
type: "ephemeral";
|
|
@@ -2115,26 +2115,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2115
2115
|
path: z.ZodString;
|
|
2116
2116
|
content: z.ZodString;
|
|
2117
2117
|
}, "strip", z.ZodTypeAny, {
|
|
2118
|
-
type: "patch" | "file";
|
|
2119
2118
|
path: string;
|
|
2120
2119
|
content: string;
|
|
2120
|
+
type: "file" | "patch";
|
|
2121
2121
|
}, {
|
|
2122
|
-
type: "patch" | "file";
|
|
2123
2122
|
path: string;
|
|
2124
2123
|
content: string;
|
|
2124
|
+
type: "file" | "patch";
|
|
2125
2125
|
}>, "many">;
|
|
2126
2126
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2127
2127
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2128
2128
|
path: z.ZodString;
|
|
2129
2129
|
content: z.ZodString;
|
|
2130
2130
|
}, "strip", z.ZodTypeAny, {
|
|
2131
|
-
type: "patch" | "file";
|
|
2132
2131
|
path: string;
|
|
2133
2132
|
content: string;
|
|
2133
|
+
type: "file" | "patch";
|
|
2134
2134
|
}, {
|
|
2135
|
-
type: "patch" | "file";
|
|
2136
2135
|
path: string;
|
|
2137
2136
|
content: string;
|
|
2137
|
+
type: "file" | "patch";
|
|
2138
2138
|
}>, "many">;
|
|
2139
2139
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2140
2140
|
path: z.ZodString;
|
|
@@ -2158,15 +2158,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2158
2158
|
type: "response-complete";
|
|
2159
2159
|
userInputId: string;
|
|
2160
2160
|
changesAlreadyApplied: {
|
|
2161
|
-
type: "patch" | "file";
|
|
2162
2161
|
path: string;
|
|
2163
2162
|
content: string;
|
|
2163
|
+
type: "file" | "patch";
|
|
2164
2164
|
}[];
|
|
2165
2165
|
response: string;
|
|
2166
2166
|
changes: {
|
|
2167
|
-
type: "patch" | "file";
|
|
2168
2167
|
path: string;
|
|
2169
2168
|
content: string;
|
|
2169
|
+
type: "file" | "patch";
|
|
2170
2170
|
}[];
|
|
2171
2171
|
addedFileVersions: {
|
|
2172
2172
|
path: string;
|
|
@@ -2183,15 +2183,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2183
2183
|
type: "response-complete";
|
|
2184
2184
|
userInputId: string;
|
|
2185
2185
|
changesAlreadyApplied: {
|
|
2186
|
-
type: "patch" | "file";
|
|
2187
2186
|
path: string;
|
|
2188
2187
|
content: string;
|
|
2188
|
+
type: "file" | "patch";
|
|
2189
2189
|
}[];
|
|
2190
2190
|
response: string;
|
|
2191
2191
|
changes: {
|
|
2192
|
-
type: "patch" | "file";
|
|
2193
2192
|
path: string;
|
|
2194
2193
|
content: string;
|
|
2194
|
+
type: "file" | "patch";
|
|
2195
2195
|
}[];
|
|
2196
2196
|
addedFileVersions: {
|
|
2197
2197
|
path: string;
|
|
@@ -2382,15 +2382,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2382
2382
|
type: "ephemeral";
|
|
2383
2383
|
}>>;
|
|
2384
2384
|
}, "strip", z.ZodTypeAny, {
|
|
2385
|
-
type: "tool_result";
|
|
2386
2385
|
content: string;
|
|
2386
|
+
type: "tool_result";
|
|
2387
2387
|
tool_use_id: string;
|
|
2388
2388
|
cache_control?: {
|
|
2389
2389
|
type: "ephemeral";
|
|
2390
2390
|
} | undefined;
|
|
2391
2391
|
}, {
|
|
2392
|
-
type: "tool_result";
|
|
2393
2392
|
content: string;
|
|
2393
|
+
type: "tool_result";
|
|
2394
2394
|
tool_use_id: string;
|
|
2395
2395
|
cache_control?: {
|
|
2396
2396
|
type: "ephemeral";
|
|
@@ -2454,8 +2454,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2454
2454
|
type: "ephemeral";
|
|
2455
2455
|
} | undefined;
|
|
2456
2456
|
} | {
|
|
2457
|
-
type: "tool_result";
|
|
2458
2457
|
content: string;
|
|
2458
|
+
type: "tool_result";
|
|
2459
2459
|
tool_use_id: string;
|
|
2460
2460
|
cache_control?: {
|
|
2461
2461
|
type: "ephemeral";
|
|
@@ -2488,8 +2488,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2488
2488
|
type: "ephemeral";
|
|
2489
2489
|
} | undefined;
|
|
2490
2490
|
} | {
|
|
2491
|
-
type: "tool_result";
|
|
2492
2491
|
content: string;
|
|
2492
|
+
type: "tool_result";
|
|
2493
2493
|
tool_use_id: string;
|
|
2494
2494
|
cache_control?: {
|
|
2495
2495
|
type: "ephemeral";
|
|
@@ -2552,8 +2552,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2552
2552
|
type: "ephemeral";
|
|
2553
2553
|
} | undefined;
|
|
2554
2554
|
} | {
|
|
2555
|
-
type: "tool_result";
|
|
2556
2555
|
content: string;
|
|
2556
|
+
type: "tool_result";
|
|
2557
2557
|
tool_use_id: string;
|
|
2558
2558
|
cache_control?: {
|
|
2559
2559
|
type: "ephemeral";
|
|
@@ -2616,8 +2616,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2616
2616
|
type: "ephemeral";
|
|
2617
2617
|
} | undefined;
|
|
2618
2618
|
} | {
|
|
2619
|
-
type: "tool_result";
|
|
2620
2619
|
content: string;
|
|
2620
|
+
type: "tool_result";
|
|
2621
2621
|
tool_use_id: string;
|
|
2622
2622
|
cache_control?: {
|
|
2623
2623
|
type: "ephemeral";
|
|
@@ -2710,8 +2710,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2710
2710
|
type: "ephemeral";
|
|
2711
2711
|
} | undefined;
|
|
2712
2712
|
} | {
|
|
2713
|
-
type: "tool_result";
|
|
2714
2713
|
content: string;
|
|
2714
|
+
type: "tool_result";
|
|
2715
2715
|
tool_use_id: string;
|
|
2716
2716
|
cache_control?: {
|
|
2717
2717
|
type: "ephemeral";
|
|
@@ -2788,8 +2788,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2788
2788
|
type: "ephemeral";
|
|
2789
2789
|
} | undefined;
|
|
2790
2790
|
} | {
|
|
2791
|
-
type: "tool_result";
|
|
2792
2791
|
content: string;
|
|
2792
|
+
type: "tool_result";
|
|
2793
2793
|
tool_use_id: string;
|
|
2794
2794
|
cache_control?: {
|
|
2795
2795
|
type: "ephemeral";
|
|
@@ -2852,26 +2852,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2852
2852
|
path: z.ZodString;
|
|
2853
2853
|
content: z.ZodString;
|
|
2854
2854
|
}, "strip", z.ZodTypeAny, {
|
|
2855
|
-
type: "patch" | "file";
|
|
2856
2855
|
path: string;
|
|
2857
2856
|
content: string;
|
|
2857
|
+
type: "file" | "patch";
|
|
2858
2858
|
}, {
|
|
2859
|
-
type: "patch" | "file";
|
|
2860
2859
|
path: string;
|
|
2861
2860
|
content: string;
|
|
2861
|
+
type: "file" | "patch";
|
|
2862
2862
|
}>, "many">;
|
|
2863
2863
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2864
2864
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2865
2865
|
path: z.ZodString;
|
|
2866
2866
|
content: z.ZodString;
|
|
2867
2867
|
}, "strip", z.ZodTypeAny, {
|
|
2868
|
-
type: "patch" | "file";
|
|
2869
2868
|
path: string;
|
|
2870
2869
|
content: string;
|
|
2870
|
+
type: "file" | "patch";
|
|
2871
2871
|
}, {
|
|
2872
|
-
type: "patch" | "file";
|
|
2873
2872
|
path: string;
|
|
2874
2873
|
content: string;
|
|
2874
|
+
type: "file" | "patch";
|
|
2875
2875
|
}>, "many">;
|
|
2876
2876
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2877
2877
|
path: z.ZodString;
|
|
@@ -2893,15 +2893,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2893
2893
|
input: Record<string, any>;
|
|
2894
2894
|
};
|
|
2895
2895
|
changesAlreadyApplied: {
|
|
2896
|
-
type: "patch" | "file";
|
|
2897
2896
|
path: string;
|
|
2898
2897
|
content: string;
|
|
2898
|
+
type: "file" | "patch";
|
|
2899
2899
|
}[];
|
|
2900
2900
|
response: string;
|
|
2901
2901
|
changes: {
|
|
2902
|
-
type: "patch" | "file";
|
|
2903
2902
|
path: string;
|
|
2904
2903
|
content: string;
|
|
2904
|
+
type: "file" | "patch";
|
|
2905
2905
|
}[];
|
|
2906
2906
|
addedFileVersions: {
|
|
2907
2907
|
path: string;
|
|
@@ -2917,15 +2917,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2917
2917
|
input: Record<string, any>;
|
|
2918
2918
|
};
|
|
2919
2919
|
changesAlreadyApplied: {
|
|
2920
|
-
type: "patch" | "file";
|
|
2921
2920
|
path: string;
|
|
2922
2921
|
content: string;
|
|
2922
|
+
type: "file" | "patch";
|
|
2923
2923
|
}[];
|
|
2924
2924
|
response: string;
|
|
2925
2925
|
changes: {
|
|
2926
|
-
type: "patch" | "file";
|
|
2927
2926
|
path: string;
|
|
2928
2927
|
content: string;
|
|
2928
|
+
type: "file" | "patch";
|
|
2929
2929
|
}[];
|
|
2930
2930
|
addedFileVersions: {
|
|
2931
2931
|
path: string;
|
|
@@ -3022,11 +3022,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
3022
3022
|
type: z.ZodLiteral<"action-error">;
|
|
3023
3023
|
message: z.ZodString;
|
|
3024
3024
|
}, "strip", z.ZodTypeAny, {
|
|
3025
|
-
type: "action-error";
|
|
3026
3025
|
message: string;
|
|
3027
|
-
}, {
|
|
3028
3026
|
type: "action-error";
|
|
3027
|
+
}, {
|
|
3029
3028
|
message: string;
|
|
3029
|
+
type: "action-error";
|
|
3030
3030
|
}>, z.ZodObject<{
|
|
3031
3031
|
type: z.ZodLiteral<"commit-message-response">;
|
|
3032
3032
|
commitMessage: z.ZodString;
|
|
@@ -6,12 +6,12 @@ export declare const ToolCallSchema: z.ZodObject<{
|
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
name: string;
|
|
9
|
-
parameters: Record<string, string>;
|
|
10
9
|
id: string;
|
|
10
|
+
parameters: Record<string, string>;
|
|
11
11
|
}, {
|
|
12
12
|
name: string;
|
|
13
|
-
parameters: Record<string, string>;
|
|
14
13
|
id: string;
|
|
14
|
+
parameters: Record<string, string>;
|
|
15
15
|
}>;
|
|
16
16
|
export type ToolCall = z.infer<typeof ToolCallSchema>;
|
|
17
17
|
export declare const ToolResultSchema: z.ZodObject<{
|
|
@@ -329,7 +329,6 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
329
329
|
role: "user" | "assistant";
|
|
330
330
|
}>, "many">;
|
|
331
331
|
}, "strip", z.ZodTypeAny, {
|
|
332
|
-
agentContext: string;
|
|
333
332
|
fileContext: {
|
|
334
333
|
currentWorkingDirectory: string;
|
|
335
334
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -357,6 +356,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
357
356
|
}[][];
|
|
358
357
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
359
358
|
};
|
|
359
|
+
agentContext: string;
|
|
360
360
|
messageHistory: {
|
|
361
361
|
content: string | ({
|
|
362
362
|
type: "text";
|
|
@@ -393,7 +393,6 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
393
393
|
role: "user" | "assistant";
|
|
394
394
|
}[];
|
|
395
395
|
}, {
|
|
396
|
-
agentContext: string;
|
|
397
396
|
fileContext: {
|
|
398
397
|
currentWorkingDirectory: string;
|
|
399
398
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -421,6 +420,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
421
420
|
}[][];
|
|
422
421
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
423
422
|
};
|
|
423
|
+
agentContext: string;
|
|
424
424
|
messageHistory: {
|
|
425
425
|
content: string | ({
|
|
426
426
|
type: "text";
|
|
@@ -174,7 +174,12 @@ class APIRealtimeClient {
|
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
catch (e) {
|
|
177
|
-
|
|
177
|
+
// Note (James): seems like swallowing the error is ok in client since we reconnect automatically.
|
|
178
|
+
// console.error(
|
|
179
|
+
// 'Error sending action:',
|
|
180
|
+
// action,
|
|
181
|
+
// typeof e === 'object' && e !== null && 'message' in e ? e.message : e
|
|
182
|
+
// )
|
|
178
183
|
}
|
|
179
184
|
}
|
|
180
185
|
subscribe(action, callback) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket-client.js","sourceRoot":"","sources":["../../src/websockets/websocket-client.ts"],"names":[],"mappings":";;;AA2BA,kCAaC;AAxCD,2BAA8B;AAS9B,4BAA4B;AAC5B,MAAM,eAAe,GAAG,KAAK,CAAA;AAE7B,MAAM,UAAU,GAAG,MAAM,CAAA;AAEzB,MAAM,iBAAiB,GAAG,KAAK,CAAA;AAa/B,SAAgB,WAAW,CAAC,KAAiB;IAC3C,QAAQ,KAA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