codebuff 1.0.289 → 1.0.290
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-handlers/checkpoint.d.ts +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/common/__tests__/project-file-tree.test.d.ts +1 -0
- package/dist/common/__tests__/project-file-tree.test.js +251 -0
- package/dist/common/__tests__/project-file-tree.test.js.map +1 -0
- package/dist/common/actions.d.ts +60 -60
- package/dist/common/json-config/__tests__/__snapshots__/stringify-schema.test.js.snap +119 -0
- package/dist/common/types/agent-state.d.ts +8 -8
- package/dist/common/types/message.d.ts +6 -6
- package/dist/common/types/usage.d.ts +2 -2
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/process-stream.d.ts +7 -0
- package/dist/common/util/process-stream.js +162 -0
- package/dist/common/util/process-stream.js.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +112 -112
- package/dist/index.js +3 -3
- package/dist/readline.d.ts +22 -0
- package/dist/readline.js +180 -0
- package/dist/readline.js.map +1 -0
- package/dist/tool-handlers.js +3 -3
- package/dist/tool-handlers.js.map +1 -1
- package/dist/utils/__tests__/__snapshots__/background-process-manager.test.js.snap +137 -0
- package/dist/utils/__tests__/file-paths.test.d.ts +1 -0
- package/dist/utils/__tests__/file-paths.test.js +37 -0
- package/dist/utils/__tests__/file-paths.test.js.map +1 -0
- package/dist/utils/__tests__/path.test.d.ts +1 -0
- package/dist/utils/__tests__/path.test.js +37 -0
- package/dist/utils/__tests__/path.test.js.map +1 -0
- package/dist/utils/file-paths.d.ts +9 -0
- package/dist/utils/file-paths.js +24 -0
- package/dist/utils/file-paths.js.map +1 -0
- package/dist/utils/path.d.ts +9 -0
- package/dist/utils/path.js +27 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/utils/spinner.js +1 -1
- package/package.json +1 -1
- package/dist/slash-commands.d.ts +0 -7
- package/dist/slash-commands.js +0 -21
- package/dist/slash-commands.js.map +0 -1
package/dist/common/actions.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ export declare const FileChangeSchema: z.ZodObject<{
|
|
|
5
5
|
content: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
content: string;
|
|
8
|
-
path: string;
|
|
9
8
|
type: "patch" | "file";
|
|
9
|
+
path: string;
|
|
10
10
|
}, {
|
|
11
11
|
content: string;
|
|
12
|
-
path: string;
|
|
13
12
|
type: "patch" | "file";
|
|
13
|
+
path: string;
|
|
14
14
|
}>;
|
|
15
15
|
export type FileChange = z.infer<typeof FileChangeSchema>;
|
|
16
16
|
export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
@@ -19,12 +19,12 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
|
19
19
|
content: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
21
|
content: string;
|
|
22
|
-
path: string;
|
|
23
22
|
type: "patch" | "file";
|
|
23
|
+
path: string;
|
|
24
24
|
}, {
|
|
25
25
|
content: string;
|
|
26
|
-
path: string;
|
|
27
26
|
type: "patch" | "file";
|
|
27
|
+
path: string;
|
|
28
28
|
}>, "many">;
|
|
29
29
|
export type FileChanges = z.infer<typeof CHANGES>;
|
|
30
30
|
export declare const ToolCallSchema: z.ZodObject<{
|
|
@@ -246,13 +246,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
246
246
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
247
247
|
data: z.ZodString;
|
|
248
248
|
}, "strip", z.ZodTypeAny, {
|
|
249
|
-
data: string;
|
|
250
249
|
type: "base64";
|
|
251
250
|
media_type: "image/jpeg";
|
|
252
|
-
}, {
|
|
253
251
|
data: string;
|
|
252
|
+
}, {
|
|
254
253
|
type: "base64";
|
|
255
254
|
media_type: "image/jpeg";
|
|
255
|
+
data: string;
|
|
256
256
|
}>;
|
|
257
257
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
258
258
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -264,9 +264,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
264
264
|
}, "strip", z.ZodTypeAny, {
|
|
265
265
|
type: "image";
|
|
266
266
|
source: {
|
|
267
|
-
data: string;
|
|
268
267
|
type: "base64";
|
|
269
268
|
media_type: "image/jpeg";
|
|
269
|
+
data: string;
|
|
270
270
|
};
|
|
271
271
|
cache_control?: {
|
|
272
272
|
type: "ephemeral";
|
|
@@ -274,9 +274,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
274
274
|
}, {
|
|
275
275
|
type: "image";
|
|
276
276
|
source: {
|
|
277
|
-
data: string;
|
|
278
277
|
type: "base64";
|
|
279
278
|
media_type: "image/jpeg";
|
|
279
|
+
data: string;
|
|
280
280
|
};
|
|
281
281
|
cache_control?: {
|
|
282
282
|
type: "ephemeral";
|
|
@@ -307,9 +307,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
307
307
|
} | {
|
|
308
308
|
type: "image";
|
|
309
309
|
source: {
|
|
310
|
-
data: string;
|
|
311
310
|
type: "base64";
|
|
312
311
|
media_type: "image/jpeg";
|
|
312
|
+
data: string;
|
|
313
313
|
};
|
|
314
314
|
cache_control?: {
|
|
315
315
|
type: "ephemeral";
|
|
@@ -341,9 +341,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
341
341
|
} | {
|
|
342
342
|
type: "image";
|
|
343
343
|
source: {
|
|
344
|
-
data: string;
|
|
345
344
|
type: "base64";
|
|
346
345
|
media_type: "image/jpeg";
|
|
346
|
+
data: string;
|
|
347
347
|
};
|
|
348
348
|
cache_control?: {
|
|
349
349
|
type: "ephemeral";
|
|
@@ -407,9 +407,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
407
407
|
} | {
|
|
408
408
|
type: "image";
|
|
409
409
|
source: {
|
|
410
|
-
data: string;
|
|
411
410
|
type: "base64";
|
|
412
411
|
media_type: "image/jpeg";
|
|
412
|
+
data: string;
|
|
413
413
|
};
|
|
414
414
|
cache_control?: {
|
|
415
415
|
type: "ephemeral";
|
|
@@ -473,9 +473,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
473
473
|
} | {
|
|
474
474
|
type: "image";
|
|
475
475
|
source: {
|
|
476
|
-
data: string;
|
|
477
476
|
type: "base64";
|
|
478
477
|
media_type: "image/jpeg";
|
|
478
|
+
data: string;
|
|
479
479
|
};
|
|
480
480
|
cache_control?: {
|
|
481
481
|
type: "ephemeral";
|
|
@@ -560,9 +560,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
560
560
|
} | {
|
|
561
561
|
type: "image";
|
|
562
562
|
source: {
|
|
563
|
-
data: string;
|
|
564
563
|
type: "base64";
|
|
565
564
|
media_type: "image/jpeg";
|
|
565
|
+
data: string;
|
|
566
566
|
};
|
|
567
567
|
cache_control?: {
|
|
568
568
|
type: "ephemeral";
|
|
@@ -640,9 +640,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
640
640
|
} | {
|
|
641
641
|
type: "image";
|
|
642
642
|
source: {
|
|
643
|
-
data: string;
|
|
644
643
|
type: "base64";
|
|
645
644
|
media_type: "image/jpeg";
|
|
645
|
+
data: string;
|
|
646
646
|
};
|
|
647
647
|
cache_control?: {
|
|
648
648
|
type: "ephemeral";
|
|
@@ -929,12 +929,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
929
929
|
content: z.ZodString;
|
|
930
930
|
}, "strip", z.ZodTypeAny, {
|
|
931
931
|
content: string;
|
|
932
|
-
path: string;
|
|
933
932
|
type: "patch" | "file";
|
|
933
|
+
path: string;
|
|
934
934
|
}, {
|
|
935
935
|
content: string;
|
|
936
|
-
path: string;
|
|
937
936
|
type: "patch" | "file";
|
|
937
|
+
path: string;
|
|
938
938
|
}>, "many">;
|
|
939
939
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
940
940
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -942,12 +942,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
942
942
|
content: z.ZodString;
|
|
943
943
|
}, "strip", z.ZodTypeAny, {
|
|
944
944
|
content: string;
|
|
945
|
-
path: string;
|
|
946
945
|
type: "patch" | "file";
|
|
946
|
+
path: string;
|
|
947
947
|
}, {
|
|
948
948
|
content: string;
|
|
949
|
-
path: string;
|
|
950
949
|
type: "patch" | "file";
|
|
950
|
+
path: string;
|
|
951
951
|
}>, "many">;
|
|
952
952
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
953
953
|
path: z.ZodString;
|
|
@@ -972,13 +972,13 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
972
972
|
response: string;
|
|
973
973
|
changes: {
|
|
974
974
|
content: string;
|
|
975
|
-
path: string;
|
|
976
975
|
type: "patch" | "file";
|
|
976
|
+
path: string;
|
|
977
977
|
}[];
|
|
978
978
|
changesAlreadyApplied: {
|
|
979
979
|
content: string;
|
|
980
|
-
path: string;
|
|
981
980
|
type: "patch" | "file";
|
|
981
|
+
path: string;
|
|
982
982
|
}[];
|
|
983
983
|
addedFileVersions: {
|
|
984
984
|
content: string;
|
|
@@ -996,13 +996,13 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
996
996
|
response: string;
|
|
997
997
|
changes: {
|
|
998
998
|
content: string;
|
|
999
|
-
path: string;
|
|
1000
999
|
type: "patch" | "file";
|
|
1000
|
+
path: string;
|
|
1001
1001
|
}[];
|
|
1002
1002
|
changesAlreadyApplied: {
|
|
1003
1003
|
content: string;
|
|
1004
|
-
path: string;
|
|
1005
1004
|
type: "patch" | "file";
|
|
1005
|
+
path: string;
|
|
1006
1006
|
}[];
|
|
1007
1007
|
addedFileVersions: {
|
|
1008
1008
|
content: string;
|
|
@@ -1230,13 +1230,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1230
1230
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
1231
1231
|
data: z.ZodString;
|
|
1232
1232
|
}, "strip", z.ZodTypeAny, {
|
|
1233
|
-
data: string;
|
|
1234
1233
|
type: "base64";
|
|
1235
1234
|
media_type: "image/jpeg";
|
|
1236
|
-
}, {
|
|
1237
1235
|
data: string;
|
|
1236
|
+
}, {
|
|
1238
1237
|
type: "base64";
|
|
1239
1238
|
media_type: "image/jpeg";
|
|
1239
|
+
data: string;
|
|
1240
1240
|
}>;
|
|
1241
1241
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1242
1242
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -1248,9 +1248,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1248
1248
|
}, "strip", z.ZodTypeAny, {
|
|
1249
1249
|
type: "image";
|
|
1250
1250
|
source: {
|
|
1251
|
-
data: string;
|
|
1252
1251
|
type: "base64";
|
|
1253
1252
|
media_type: "image/jpeg";
|
|
1253
|
+
data: string;
|
|
1254
1254
|
};
|
|
1255
1255
|
cache_control?: {
|
|
1256
1256
|
type: "ephemeral";
|
|
@@ -1258,9 +1258,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1258
1258
|
}, {
|
|
1259
1259
|
type: "image";
|
|
1260
1260
|
source: {
|
|
1261
|
-
data: string;
|
|
1262
1261
|
type: "base64";
|
|
1263
1262
|
media_type: "image/jpeg";
|
|
1263
|
+
data: string;
|
|
1264
1264
|
};
|
|
1265
1265
|
cache_control?: {
|
|
1266
1266
|
type: "ephemeral";
|
|
@@ -1291,9 +1291,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1291
1291
|
} | {
|
|
1292
1292
|
type: "image";
|
|
1293
1293
|
source: {
|
|
1294
|
-
data: string;
|
|
1295
1294
|
type: "base64";
|
|
1296
1295
|
media_type: "image/jpeg";
|
|
1296
|
+
data: string;
|
|
1297
1297
|
};
|
|
1298
1298
|
cache_control?: {
|
|
1299
1299
|
type: "ephemeral";
|
|
@@ -1325,9 +1325,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1325
1325
|
} | {
|
|
1326
1326
|
type: "image";
|
|
1327
1327
|
source: {
|
|
1328
|
-
data: string;
|
|
1329
1328
|
type: "base64";
|
|
1330
1329
|
media_type: "image/jpeg";
|
|
1330
|
+
data: string;
|
|
1331
1331
|
};
|
|
1332
1332
|
cache_control?: {
|
|
1333
1333
|
type: "ephemeral";
|
|
@@ -1391,9 +1391,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1391
1391
|
} | {
|
|
1392
1392
|
type: "image";
|
|
1393
1393
|
source: {
|
|
1394
|
-
data: string;
|
|
1395
1394
|
type: "base64";
|
|
1396
1395
|
media_type: "image/jpeg";
|
|
1396
|
+
data: string;
|
|
1397
1397
|
};
|
|
1398
1398
|
cache_control?: {
|
|
1399
1399
|
type: "ephemeral";
|
|
@@ -1457,9 +1457,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1457
1457
|
} | {
|
|
1458
1458
|
type: "image";
|
|
1459
1459
|
source: {
|
|
1460
|
-
data: string;
|
|
1461
1460
|
type: "base64";
|
|
1462
1461
|
media_type: "image/jpeg";
|
|
1462
|
+
data: string;
|
|
1463
1463
|
};
|
|
1464
1464
|
cache_control?: {
|
|
1465
1465
|
type: "ephemeral";
|
|
@@ -1553,9 +1553,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1553
1553
|
} | {
|
|
1554
1554
|
type: "image";
|
|
1555
1555
|
source: {
|
|
1556
|
-
data: string;
|
|
1557
1556
|
type: "base64";
|
|
1558
1557
|
media_type: "image/jpeg";
|
|
1558
|
+
data: string;
|
|
1559
1559
|
};
|
|
1560
1560
|
cache_control?: {
|
|
1561
1561
|
type: "ephemeral";
|
|
@@ -1633,9 +1633,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1633
1633
|
} | {
|
|
1634
1634
|
type: "image";
|
|
1635
1635
|
source: {
|
|
1636
|
-
data: string;
|
|
1637
1636
|
type: "base64";
|
|
1638
1637
|
media_type: "image/jpeg";
|
|
1638
|
+
data: string;
|
|
1639
1639
|
};
|
|
1640
1640
|
cache_control?: {
|
|
1641
1641
|
type: "ephemeral";
|
|
@@ -1679,12 +1679,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1679
1679
|
content: z.ZodString;
|
|
1680
1680
|
}, "strip", z.ZodTypeAny, {
|
|
1681
1681
|
content: string;
|
|
1682
|
-
path: string;
|
|
1683
1682
|
type: "patch" | "file";
|
|
1683
|
+
path: string;
|
|
1684
1684
|
}, {
|
|
1685
1685
|
content: string;
|
|
1686
|
-
path: string;
|
|
1687
1686
|
type: "patch" | "file";
|
|
1687
|
+
path: string;
|
|
1688
1688
|
}>, "many">;
|
|
1689
1689
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1690
1690
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -1692,12 +1692,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1692
1692
|
content: z.ZodString;
|
|
1693
1693
|
}, "strip", z.ZodTypeAny, {
|
|
1694
1694
|
content: string;
|
|
1695
|
-
path: string;
|
|
1696
1695
|
type: "patch" | "file";
|
|
1696
|
+
path: string;
|
|
1697
1697
|
}, {
|
|
1698
1698
|
content: string;
|
|
1699
|
-
path: string;
|
|
1700
1699
|
type: "patch" | "file";
|
|
1700
|
+
path: string;
|
|
1701
1701
|
}>, "many">;
|
|
1702
1702
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
1703
1703
|
path: z.ZodString;
|
|
@@ -1722,13 +1722,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1722
1722
|
response: string;
|
|
1723
1723
|
changes: {
|
|
1724
1724
|
content: string;
|
|
1725
|
-
path: string;
|
|
1726
1725
|
type: "patch" | "file";
|
|
1726
|
+
path: string;
|
|
1727
1727
|
}[];
|
|
1728
1728
|
changesAlreadyApplied: {
|
|
1729
1729
|
content: string;
|
|
1730
|
-
path: string;
|
|
1731
1730
|
type: "patch" | "file";
|
|
1731
|
+
path: string;
|
|
1732
1732
|
}[];
|
|
1733
1733
|
addedFileVersions: {
|
|
1734
1734
|
content: string;
|
|
@@ -1746,13 +1746,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1746
1746
|
response: string;
|
|
1747
1747
|
changes: {
|
|
1748
1748
|
content: string;
|
|
1749
|
-
path: string;
|
|
1750
1749
|
type: "patch" | "file";
|
|
1750
|
+
path: string;
|
|
1751
1751
|
}[];
|
|
1752
1752
|
changesAlreadyApplied: {
|
|
1753
1753
|
content: string;
|
|
1754
|
-
path: string;
|
|
1755
1754
|
type: "patch" | "file";
|
|
1755
|
+
path: string;
|
|
1756
1756
|
}[];
|
|
1757
1757
|
addedFileVersions: {
|
|
1758
1758
|
content: string;
|
|
@@ -1965,13 +1965,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1965
1965
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
1966
1966
|
data: z.ZodString;
|
|
1967
1967
|
}, "strip", z.ZodTypeAny, {
|
|
1968
|
-
data: string;
|
|
1969
1968
|
type: "base64";
|
|
1970
1969
|
media_type: "image/jpeg";
|
|
1971
|
-
}, {
|
|
1972
1970
|
data: string;
|
|
1971
|
+
}, {
|
|
1973
1972
|
type: "base64";
|
|
1974
1973
|
media_type: "image/jpeg";
|
|
1974
|
+
data: string;
|
|
1975
1975
|
}>;
|
|
1976
1976
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1977
1977
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -1983,9 +1983,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1983
1983
|
}, "strip", z.ZodTypeAny, {
|
|
1984
1984
|
type: "image";
|
|
1985
1985
|
source: {
|
|
1986
|
-
data: string;
|
|
1987
1986
|
type: "base64";
|
|
1988
1987
|
media_type: "image/jpeg";
|
|
1988
|
+
data: string;
|
|
1989
1989
|
};
|
|
1990
1990
|
cache_control?: {
|
|
1991
1991
|
type: "ephemeral";
|
|
@@ -1993,9 +1993,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1993
1993
|
}, {
|
|
1994
1994
|
type: "image";
|
|
1995
1995
|
source: {
|
|
1996
|
-
data: string;
|
|
1997
1996
|
type: "base64";
|
|
1998
1997
|
media_type: "image/jpeg";
|
|
1998
|
+
data: string;
|
|
1999
1999
|
};
|
|
2000
2000
|
cache_control?: {
|
|
2001
2001
|
type: "ephemeral";
|
|
@@ -2026,9 +2026,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2026
2026
|
} | {
|
|
2027
2027
|
type: "image";
|
|
2028
2028
|
source: {
|
|
2029
|
-
data: string;
|
|
2030
2029
|
type: "base64";
|
|
2031
2030
|
media_type: "image/jpeg";
|
|
2031
|
+
data: string;
|
|
2032
2032
|
};
|
|
2033
2033
|
cache_control?: {
|
|
2034
2034
|
type: "ephemeral";
|
|
@@ -2060,9 +2060,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2060
2060
|
} | {
|
|
2061
2061
|
type: "image";
|
|
2062
2062
|
source: {
|
|
2063
|
-
data: string;
|
|
2064
2063
|
type: "base64";
|
|
2065
2064
|
media_type: "image/jpeg";
|
|
2065
|
+
data: string;
|
|
2066
2066
|
};
|
|
2067
2067
|
cache_control?: {
|
|
2068
2068
|
type: "ephemeral";
|
|
@@ -2126,9 +2126,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2126
2126
|
} | {
|
|
2127
2127
|
type: "image";
|
|
2128
2128
|
source: {
|
|
2129
|
-
data: string;
|
|
2130
2129
|
type: "base64";
|
|
2131
2130
|
media_type: "image/jpeg";
|
|
2131
|
+
data: string;
|
|
2132
2132
|
};
|
|
2133
2133
|
cache_control?: {
|
|
2134
2134
|
type: "ephemeral";
|
|
@@ -2192,9 +2192,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2192
2192
|
} | {
|
|
2193
2193
|
type: "image";
|
|
2194
2194
|
source: {
|
|
2195
|
-
data: string;
|
|
2196
2195
|
type: "base64";
|
|
2197
2196
|
media_type: "image/jpeg";
|
|
2197
|
+
data: string;
|
|
2198
2198
|
};
|
|
2199
2199
|
cache_control?: {
|
|
2200
2200
|
type: "ephemeral";
|
|
@@ -2288,9 +2288,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2288
2288
|
} | {
|
|
2289
2289
|
type: "image";
|
|
2290
2290
|
source: {
|
|
2291
|
-
data: string;
|
|
2292
2291
|
type: "base64";
|
|
2293
2292
|
media_type: "image/jpeg";
|
|
2293
|
+
data: string;
|
|
2294
2294
|
};
|
|
2295
2295
|
cache_control?: {
|
|
2296
2296
|
type: "ephemeral";
|
|
@@ -2368,9 +2368,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2368
2368
|
} | {
|
|
2369
2369
|
type: "image";
|
|
2370
2370
|
source: {
|
|
2371
|
-
data: string;
|
|
2372
2371
|
type: "base64";
|
|
2373
2372
|
media_type: "image/jpeg";
|
|
2373
|
+
data: string;
|
|
2374
2374
|
};
|
|
2375
2375
|
cache_control?: {
|
|
2376
2376
|
type: "ephemeral";
|
|
@@ -2425,12 +2425,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2425
2425
|
content: z.ZodString;
|
|
2426
2426
|
}, "strip", z.ZodTypeAny, {
|
|
2427
2427
|
content: string;
|
|
2428
|
-
path: string;
|
|
2429
2428
|
type: "patch" | "file";
|
|
2429
|
+
path: string;
|
|
2430
2430
|
}, {
|
|
2431
2431
|
content: string;
|
|
2432
|
-
path: string;
|
|
2433
2432
|
type: "patch" | "file";
|
|
2433
|
+
path: string;
|
|
2434
2434
|
}>, "many">;
|
|
2435
2435
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2436
2436
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -2438,12 +2438,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2438
2438
|
content: z.ZodString;
|
|
2439
2439
|
}, "strip", z.ZodTypeAny, {
|
|
2440
2440
|
content: string;
|
|
2441
|
-
path: string;
|
|
2442
2441
|
type: "patch" | "file";
|
|
2442
|
+
path: string;
|
|
2443
2443
|
}, {
|
|
2444
2444
|
content: string;
|
|
2445
|
-
path: string;
|
|
2446
2445
|
type: "patch" | "file";
|
|
2446
|
+
path: string;
|
|
2447
2447
|
}>, "many">;
|
|
2448
2448
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2449
2449
|
path: z.ZodString;
|
|
@@ -2457,23 +2457,23 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2457
2457
|
}>, "many">;
|
|
2458
2458
|
resetFileVersions: z.ZodBoolean;
|
|
2459
2459
|
}, "strip", z.ZodTypeAny, {
|
|
2460
|
+
type: "tool-call";
|
|
2460
2461
|
data: {
|
|
2461
2462
|
name: string;
|
|
2462
2463
|
id: string;
|
|
2463
2464
|
input: Record<string, any>;
|
|
2464
2465
|
};
|
|
2465
|
-
type: "tool-call";
|
|
2466
2466
|
userInputId: string;
|
|
2467
2467
|
response: string;
|
|
2468
2468
|
changes: {
|
|
2469
2469
|
content: string;
|
|
2470
|
-
path: string;
|
|
2471
2470
|
type: "patch" | "file";
|
|
2471
|
+
path: string;
|
|
2472
2472
|
}[];
|
|
2473
2473
|
changesAlreadyApplied: {
|
|
2474
2474
|
content: string;
|
|
2475
|
-
path: string;
|
|
2476
2475
|
type: "patch" | "file";
|
|
2476
|
+
path: string;
|
|
2477
2477
|
}[];
|
|
2478
2478
|
addedFileVersions: {
|
|
2479
2479
|
content: string;
|
|
@@ -2481,23 +2481,23 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2481
2481
|
}[];
|
|
2482
2482
|
resetFileVersions: boolean;
|
|
2483
2483
|
}, {
|
|
2484
|
+
type: "tool-call";
|
|
2484
2485
|
data: {
|
|
2485
2486
|
name: string;
|
|
2486
2487
|
id: string;
|
|
2487
2488
|
input: Record<string, any>;
|
|
2488
2489
|
};
|
|
2489
|
-
type: "tool-call";
|
|
2490
2490
|
userInputId: string;
|
|
2491
2491
|
response: string;
|
|
2492
2492
|
changes: {
|
|
2493
2493
|
content: string;
|
|
2494
|
-
path: string;
|
|
2495
2494
|
type: "patch" | "file";
|
|
2495
|
+
path: string;
|
|
2496
2496
|
}[];
|
|
2497
2497
|
changesAlreadyApplied: {
|
|
2498
2498
|
content: string;
|
|
2499
|
-
path: string;
|
|
2500
2499
|
type: "patch" | "file";
|
|
2500
|
+
path: string;
|
|
2501
2501
|
}[];
|
|
2502
2502
|
addedFileVersions: {
|
|
2503
2503
|
content: string;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// Bun Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`stringifySchema should correctly stringify StartupProcessSchema 1`] = `
|
|
4
|
+
"// Defines a single startup process.
|
|
5
|
+
{
|
|
6
|
+
// A user-friendly name for the process. Should be one word and unique.
|
|
7
|
+
"name": string,
|
|
8
|
+
|
|
9
|
+
// The actual shell command to execute.
|
|
10
|
+
"command": string,
|
|
11
|
+
|
|
12
|
+
// (optional): The working directory from which to run the command.
|
|
13
|
+
"cwd": string | undefined,
|
|
14
|
+
|
|
15
|
+
// (optional): Whether this process should be run, default: true
|
|
16
|
+
"enabled": boolean | undefined,
|
|
17
|
+
|
|
18
|
+
// (optional): Path to write the process's stdout. If not specified, stderr is not stored.
|
|
19
|
+
"stdoutFile": string | undefined,
|
|
20
|
+
|
|
21
|
+
// (optional): Path to write the process's stderr. If not specified, stderr will be put into the stdoutFile.
|
|
22
|
+
"stderrFile": string | undefined
|
|
23
|
+
}"
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
exports[`stringifySchema should correctly stringify CodebuffConfigSchema 1`] = `
|
|
27
|
+
"// Defines the overall Codebuff configuration file (e.g., codebuff.json). This schema defines the top-level structure of the configuration.
|
|
28
|
+
{
|
|
29
|
+
// (optional): Does nothing. Put any thing you want here!
|
|
30
|
+
"description": any | undefined,
|
|
31
|
+
|
|
32
|
+
// (optional): An array of startup processes.
|
|
33
|
+
"startupProcesses": [
|
|
34
|
+
|
|
35
|
+
// Defines a single startup process.
|
|
36
|
+
{
|
|
37
|
+
// A user-friendly name for the process. Should be one word and unique.
|
|
38
|
+
"name": string,
|
|
39
|
+
|
|
40
|
+
// The actual shell command to execute.
|
|
41
|
+
"command": string,
|
|
42
|
+
|
|
43
|
+
// (optional): The working directory from which to run the command.
|
|
44
|
+
"cwd": string | undefined,
|
|
45
|
+
|
|
46
|
+
// (optional): Whether this process should be run, default: true
|
|
47
|
+
"enabled": boolean | undefined,
|
|
48
|
+
|
|
49
|
+
// (optional): Path to write the process's stdout. If not specified, stderr is not stored.
|
|
50
|
+
"stdoutFile": string | undefined,
|
|
51
|
+
|
|
52
|
+
// (optional): Path to write the process's stderr. If not specified, stderr will be put into the stdoutFile.
|
|
53
|
+
"stderrFile": string | undefined
|
|
54
|
+
}
|
|
55
|
+
] | undefined
|
|
56
|
+
}"
|
|
57
|
+
`;
|
|
58
|
+
|
|
59
|
+
exports[`stringifySchema should handle a more complex schema 1`] = `
|
|
60
|
+
"// A complex test schema
|
|
61
|
+
{
|
|
62
|
+
// Unique identifier
|
|
63
|
+
"id": string,
|
|
64
|
+
|
|
65
|
+
// A positive integer count
|
|
66
|
+
"count": number,
|
|
67
|
+
|
|
68
|
+
// Activity status
|
|
69
|
+
"isActive": boolean,
|
|
70
|
+
|
|
71
|
+
// (optional): Optional list of tags
|
|
72
|
+
"tags": [
|
|
73
|
+
|
|
74
|
+
string
|
|
75
|
+
] | undefined,
|
|
76
|
+
|
|
77
|
+
// A nested object structure
|
|
78
|
+
"nested": {
|
|
79
|
+
"value": string,
|
|
80
|
+
|
|
81
|
+
// Nested configuration
|
|
82
|
+
"config": {
|
|
83
|
+
// (optional): Number of retries, default: 3
|
|
84
|
+
"retries": number
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}"
|
|
88
|
+
`;
|
|
89
|
+
|
|
90
|
+
exports[`stringifySchema should handle an empty object schema 1`] = `
|
|
91
|
+
"// An empty schema
|
|
92
|
+
{
|
|
93
|
+
}"
|
|
94
|
+
`;
|
|
95
|
+
|
|
96
|
+
exports[`stringifySchema should handle schema with only optional fields 1`] = `
|
|
97
|
+
"// Schema with only optional fields
|
|
98
|
+
{
|
|
99
|
+
// (optional): Optional field 1
|
|
100
|
+
"field1": string | undefined,
|
|
101
|
+
|
|
102
|
+
// (optional): Optional field 2
|
|
103
|
+
"field2": number | undefined
|
|
104
|
+
}"
|
|
105
|
+
`;
|
|
106
|
+
|
|
107
|
+
exports[`stringifySchema should handle schema with default values 1`] = `
|
|
108
|
+
"// Schema demonstrating default values
|
|
109
|
+
{
|
|
110
|
+
// (optional): Name with default, default: "anonymous"
|
|
111
|
+
"name": string,
|
|
112
|
+
|
|
113
|
+
// (optional): Level with default, default: 1
|
|
114
|
+
"level": number,
|
|
115
|
+
|
|
116
|
+
// (optional): Enabled with default, default: false
|
|
117
|
+
"enabled": boolean
|
|
118
|
+
}"
|
|
119
|
+
`;
|