codebuff 1.0.260 → 1.0.262
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/client.js +2 -1
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +55 -52
- package/dist/common/actions.js +1 -0
- package/dist/common/actions.js.map +1 -1
- package/dist/common/bigquery/client.d.ts +15 -0
- package/dist/common/bigquery/client.js +265 -0
- package/dist/common/bigquery/client.js.map +1 -0
- package/dist/common/bigquery/schema.d.ts +55 -0
- package/dist/common/bigquery/schema.js +24 -0
- package/dist/common/bigquery/schema.js.map +1 -0
- package/dist/common/constants/tools.d.ts +1 -0
- package/dist/common/constants/tools.js +1 -0
- package/dist/common/constants/tools.js.map +1 -1
- package/dist/common/types/agent-state.d.ts +6 -6
- package/dist/common/types/message.d.ts +6 -6
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/websockets/websocket-schema.d.ts +98 -88
- package/dist/dev-process-manager.js +1 -0
- package/dist/dev-process-manager.js.map +1 -1
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/project-files.d.ts +2 -1
- package/dist/project-files.js +7 -7
- package/dist/project-files.js.map +1 -1
- package/dist/startup-process-handler.js +1 -1
- package/dist/startup-process-handler.js.map +1 -1
- package/dist/tool-handlers.d.ts +2 -1
- package/dist/tool-handlers.js +6 -4
- package/dist/tool-handlers.js.map +1 -1
- package/dist/update-codebuff.js +3 -2
- package/dist/update-codebuff.js.map +1 -1
- package/dist/utils/__tests__/tool-renderers.test.js +2 -2
- package/dist/utils/__tests__/tool-renderers.test.js.map +1 -1
- package/dist/utils/git.d.ts +1 -0
- package/dist/utils/git.js +17 -0
- package/dist/utils/git.js.map +1 -1
- package/dist/utils/terminal.d.ts +2 -2
- package/dist/utils/terminal.js +48 -36
- package/dist/utils/terminal.js.map +1 -1
- package/dist/utils/tool-renderers.js +16 -1
- package/dist/utils/tool-renderers.js.map +1 -1
- package/package.json +2 -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
|
path: string;
|
|
8
|
-
type: "file" | "patch";
|
|
9
8
|
content: string;
|
|
9
|
+
type: "file" | "patch";
|
|
10
10
|
}, {
|
|
11
11
|
path: string;
|
|
12
|
-
type: "file" | "patch";
|
|
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<{
|
|
@@ -19,12 +19,12 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
|
19
19
|
content: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
21
|
path: string;
|
|
22
|
-
type: "file" | "patch";
|
|
23
22
|
content: string;
|
|
23
|
+
type: "file" | "patch";
|
|
24
24
|
}, {
|
|
25
25
|
path: string;
|
|
26
|
-
type: "file" | "patch";
|
|
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<{
|
|
@@ -223,15 +223,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
223
223
|
type: "ephemeral";
|
|
224
224
|
}>>;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
type: "tool_result";
|
|
227
226
|
content: string;
|
|
227
|
+
type: "tool_result";
|
|
228
228
|
tool_use_id: string;
|
|
229
229
|
cache_control?: {
|
|
230
230
|
type: "ephemeral";
|
|
231
231
|
} | undefined;
|
|
232
232
|
}, {
|
|
233
|
-
type: "tool_result";
|
|
234
233
|
content: string;
|
|
234
|
+
type: "tool_result";
|
|
235
235
|
tool_use_id: string;
|
|
236
236
|
cache_control?: {
|
|
237
237
|
type: "ephemeral";
|
|
@@ -295,8 +295,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
295
295
|
type: "ephemeral";
|
|
296
296
|
} | undefined;
|
|
297
297
|
} | {
|
|
298
|
-
type: "tool_result";
|
|
299
298
|
content: string;
|
|
299
|
+
type: "tool_result";
|
|
300
300
|
tool_use_id: string;
|
|
301
301
|
cache_control?: {
|
|
302
302
|
type: "ephemeral";
|
|
@@ -329,8 +329,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
329
329
|
type: "ephemeral";
|
|
330
330
|
} | undefined;
|
|
331
331
|
} | {
|
|
332
|
-
type: "tool_result";
|
|
333
332
|
content: string;
|
|
333
|
+
type: "tool_result";
|
|
334
334
|
tool_use_id: string;
|
|
335
335
|
cache_control?: {
|
|
336
336
|
type: "ephemeral";
|
|
@@ -394,8 +394,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
394
394
|
type: "ephemeral";
|
|
395
395
|
} | undefined;
|
|
396
396
|
} | {
|
|
397
|
-
type: "tool_result";
|
|
398
397
|
content: string;
|
|
398
|
+
type: "tool_result";
|
|
399
399
|
tool_use_id: string;
|
|
400
400
|
cache_control?: {
|
|
401
401
|
type: "ephemeral";
|
|
@@ -459,8 +459,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
459
459
|
type: "ephemeral";
|
|
460
460
|
} | undefined;
|
|
461
461
|
} | {
|
|
462
|
-
type: "tool_result";
|
|
463
462
|
content: string;
|
|
463
|
+
type: "tool_result";
|
|
464
464
|
tool_use_id: string;
|
|
465
465
|
cache_control?: {
|
|
466
466
|
type: "ephemeral";
|
|
@@ -494,6 +494,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
494
494
|
result: string;
|
|
495
495
|
}>, "many">;
|
|
496
496
|
model: z.ZodOptional<z.ZodString>;
|
|
497
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
497
498
|
}, "strip", z.ZodTypeAny, {
|
|
498
499
|
type: "prompt";
|
|
499
500
|
promptId: string;
|
|
@@ -544,8 +545,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
544
545
|
type: "ephemeral";
|
|
545
546
|
} | undefined;
|
|
546
547
|
} | {
|
|
547
|
-
type: "tool_result";
|
|
548
548
|
content: string;
|
|
549
|
+
type: "tool_result";
|
|
549
550
|
tool_use_id: string;
|
|
550
551
|
cache_control?: {
|
|
551
552
|
type: "ephemeral";
|
|
@@ -573,6 +574,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
573
574
|
prompt?: string | undefined;
|
|
574
575
|
authToken?: string | undefined;
|
|
575
576
|
model?: string | undefined;
|
|
577
|
+
cwd?: string | undefined;
|
|
576
578
|
}, {
|
|
577
579
|
type: "prompt";
|
|
578
580
|
promptId: string;
|
|
@@ -622,8 +624,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
622
624
|
type: "ephemeral";
|
|
623
625
|
} | undefined;
|
|
624
626
|
} | {
|
|
625
|
-
type: "tool_result";
|
|
626
627
|
content: string;
|
|
628
|
+
type: "tool_result";
|
|
627
629
|
tool_use_id: string;
|
|
628
630
|
cache_control?: {
|
|
629
631
|
type: "ephemeral";
|
|
@@ -652,6 +654,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
652
654
|
authToken?: string | undefined;
|
|
653
655
|
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
654
656
|
model?: string | undefined;
|
|
657
|
+
cwd?: string | undefined;
|
|
655
658
|
}>, z.ZodObject<{
|
|
656
659
|
type: z.ZodLiteral<"read-files-response">;
|
|
657
660
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -914,12 +917,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
914
917
|
content: z.ZodString;
|
|
915
918
|
}, "strip", z.ZodTypeAny, {
|
|
916
919
|
path: string;
|
|
917
|
-
type: "file" | "patch";
|
|
918
920
|
content: string;
|
|
921
|
+
type: "file" | "patch";
|
|
919
922
|
}, {
|
|
920
923
|
path: string;
|
|
921
|
-
type: "file" | "patch";
|
|
922
924
|
content: string;
|
|
925
|
+
type: "file" | "patch";
|
|
923
926
|
}>, "many">;
|
|
924
927
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
925
928
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -927,12 +930,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
927
930
|
content: z.ZodString;
|
|
928
931
|
}, "strip", z.ZodTypeAny, {
|
|
929
932
|
path: string;
|
|
930
|
-
type: "file" | "patch";
|
|
931
933
|
content: string;
|
|
934
|
+
type: "file" | "patch";
|
|
932
935
|
}, {
|
|
933
936
|
path: string;
|
|
934
|
-
type: "file" | "patch";
|
|
935
937
|
content: string;
|
|
938
|
+
type: "file" | "patch";
|
|
936
939
|
}>, "many">;
|
|
937
940
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
938
941
|
path: z.ZodString;
|
|
@@ -957,13 +960,13 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
957
960
|
response: string;
|
|
958
961
|
changes: {
|
|
959
962
|
path: string;
|
|
960
|
-
type: "file" | "patch";
|
|
961
963
|
content: string;
|
|
964
|
+
type: "file" | "patch";
|
|
962
965
|
}[];
|
|
963
966
|
changesAlreadyApplied: {
|
|
964
967
|
path: string;
|
|
965
|
-
type: "file" | "patch";
|
|
966
968
|
content: string;
|
|
969
|
+
type: "file" | "patch";
|
|
967
970
|
}[];
|
|
968
971
|
addedFileVersions: {
|
|
969
972
|
path: string;
|
|
@@ -981,13 +984,13 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
981
984
|
response: string;
|
|
982
985
|
changes: {
|
|
983
986
|
path: string;
|
|
984
|
-
type: "file" | "patch";
|
|
985
987
|
content: string;
|
|
988
|
+
type: "file" | "patch";
|
|
986
989
|
}[];
|
|
987
990
|
changesAlreadyApplied: {
|
|
988
991
|
path: string;
|
|
989
|
-
type: "file" | "patch";
|
|
990
992
|
content: string;
|
|
993
|
+
type: "file" | "patch";
|
|
991
994
|
}[];
|
|
992
995
|
addedFileVersions: {
|
|
993
996
|
path: string;
|
|
@@ -1192,15 +1195,15 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1192
1195
|
type: "ephemeral";
|
|
1193
1196
|
}>>;
|
|
1194
1197
|
}, "strip", z.ZodTypeAny, {
|
|
1195
|
-
type: "tool_result";
|
|
1196
1198
|
content: string;
|
|
1199
|
+
type: "tool_result";
|
|
1197
1200
|
tool_use_id: string;
|
|
1198
1201
|
cache_control?: {
|
|
1199
1202
|
type: "ephemeral";
|
|
1200
1203
|
} | undefined;
|
|
1201
1204
|
}, {
|
|
1202
|
-
type: "tool_result";
|
|
1203
1205
|
content: string;
|
|
1206
|
+
type: "tool_result";
|
|
1204
1207
|
tool_use_id: string;
|
|
1205
1208
|
cache_control?: {
|
|
1206
1209
|
type: "ephemeral";
|
|
@@ -1264,8 +1267,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1264
1267
|
type: "ephemeral";
|
|
1265
1268
|
} | undefined;
|
|
1266
1269
|
} | {
|
|
1267
|
-
type: "tool_result";
|
|
1268
1270
|
content: string;
|
|
1271
|
+
type: "tool_result";
|
|
1269
1272
|
tool_use_id: string;
|
|
1270
1273
|
cache_control?: {
|
|
1271
1274
|
type: "ephemeral";
|
|
@@ -1298,8 +1301,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1298
1301
|
type: "ephemeral";
|
|
1299
1302
|
} | undefined;
|
|
1300
1303
|
} | {
|
|
1301
|
-
type: "tool_result";
|
|
1302
1304
|
content: string;
|
|
1305
|
+
type: "tool_result";
|
|
1303
1306
|
tool_use_id: string;
|
|
1304
1307
|
cache_control?: {
|
|
1305
1308
|
type: "ephemeral";
|
|
@@ -1363,8 +1366,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1363
1366
|
type: "ephemeral";
|
|
1364
1367
|
} | undefined;
|
|
1365
1368
|
} | {
|
|
1366
|
-
type: "tool_result";
|
|
1367
1369
|
content: string;
|
|
1370
|
+
type: "tool_result";
|
|
1368
1371
|
tool_use_id: string;
|
|
1369
1372
|
cache_control?: {
|
|
1370
1373
|
type: "ephemeral";
|
|
@@ -1428,8 +1431,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1428
1431
|
type: "ephemeral";
|
|
1429
1432
|
} | undefined;
|
|
1430
1433
|
} | {
|
|
1431
|
-
type: "tool_result";
|
|
1432
1434
|
content: string;
|
|
1435
|
+
type: "tool_result";
|
|
1433
1436
|
tool_use_id: string;
|
|
1434
1437
|
cache_control?: {
|
|
1435
1438
|
type: "ephemeral";
|
|
@@ -1523,8 +1526,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1523
1526
|
type: "ephemeral";
|
|
1524
1527
|
} | undefined;
|
|
1525
1528
|
} | {
|
|
1526
|
-
type: "tool_result";
|
|
1527
1529
|
content: string;
|
|
1530
|
+
type: "tool_result";
|
|
1528
1531
|
tool_use_id: string;
|
|
1529
1532
|
cache_control?: {
|
|
1530
1533
|
type: "ephemeral";
|
|
@@ -1602,8 +1605,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1602
1605
|
type: "ephemeral";
|
|
1603
1606
|
} | undefined;
|
|
1604
1607
|
} | {
|
|
1605
|
-
type: "tool_result";
|
|
1606
1608
|
content: string;
|
|
1609
|
+
type: "tool_result";
|
|
1607
1610
|
tool_use_id: string;
|
|
1608
1611
|
cache_control?: {
|
|
1609
1612
|
type: "ephemeral";
|
|
@@ -1657,12 +1660,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1657
1660
|
content: z.ZodString;
|
|
1658
1661
|
}, "strip", z.ZodTypeAny, {
|
|
1659
1662
|
path: string;
|
|
1660
|
-
type: "file" | "patch";
|
|
1661
1663
|
content: string;
|
|
1664
|
+
type: "file" | "patch";
|
|
1662
1665
|
}, {
|
|
1663
1666
|
path: string;
|
|
1664
|
-
type: "file" | "patch";
|
|
1665
1667
|
content: string;
|
|
1668
|
+
type: "file" | "patch";
|
|
1666
1669
|
}>, "many">;
|
|
1667
1670
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1668
1671
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -1670,12 +1673,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1670
1673
|
content: z.ZodString;
|
|
1671
1674
|
}, "strip", z.ZodTypeAny, {
|
|
1672
1675
|
path: string;
|
|
1673
|
-
type: "file" | "patch";
|
|
1674
1676
|
content: string;
|
|
1677
|
+
type: "file" | "patch";
|
|
1675
1678
|
}, {
|
|
1676
1679
|
path: string;
|
|
1677
|
-
type: "file" | "patch";
|
|
1678
1680
|
content: string;
|
|
1681
|
+
type: "file" | "patch";
|
|
1679
1682
|
}>, "many">;
|
|
1680
1683
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
1681
1684
|
path: z.ZodString;
|
|
@@ -1700,13 +1703,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1700
1703
|
response: string;
|
|
1701
1704
|
changes: {
|
|
1702
1705
|
path: string;
|
|
1703
|
-
type: "file" | "patch";
|
|
1704
1706
|
content: string;
|
|
1707
|
+
type: "file" | "patch";
|
|
1705
1708
|
}[];
|
|
1706
1709
|
changesAlreadyApplied: {
|
|
1707
1710
|
path: string;
|
|
1708
|
-
type: "file" | "patch";
|
|
1709
1711
|
content: string;
|
|
1712
|
+
type: "file" | "patch";
|
|
1710
1713
|
}[];
|
|
1711
1714
|
addedFileVersions: {
|
|
1712
1715
|
path: string;
|
|
@@ -1724,13 +1727,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1724
1727
|
response: string;
|
|
1725
1728
|
changes: {
|
|
1726
1729
|
path: string;
|
|
1727
|
-
type: "file" | "patch";
|
|
1728
1730
|
content: string;
|
|
1731
|
+
type: "file" | "patch";
|
|
1729
1732
|
}[];
|
|
1730
1733
|
changesAlreadyApplied: {
|
|
1731
1734
|
path: string;
|
|
1732
|
-
type: "file" | "patch";
|
|
1733
1735
|
content: string;
|
|
1736
|
+
type: "file" | "patch";
|
|
1734
1737
|
}[];
|
|
1735
1738
|
addedFileVersions: {
|
|
1736
1739
|
path: string;
|
|
@@ -1920,15 +1923,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1920
1923
|
type: "ephemeral";
|
|
1921
1924
|
}>>;
|
|
1922
1925
|
}, "strip", z.ZodTypeAny, {
|
|
1923
|
-
type: "tool_result";
|
|
1924
1926
|
content: string;
|
|
1927
|
+
type: "tool_result";
|
|
1925
1928
|
tool_use_id: string;
|
|
1926
1929
|
cache_control?: {
|
|
1927
1930
|
type: "ephemeral";
|
|
1928
1931
|
} | undefined;
|
|
1929
1932
|
}, {
|
|
1930
|
-
type: "tool_result";
|
|
1931
1933
|
content: string;
|
|
1934
|
+
type: "tool_result";
|
|
1932
1935
|
tool_use_id: string;
|
|
1933
1936
|
cache_control?: {
|
|
1934
1937
|
type: "ephemeral";
|
|
@@ -1992,8 +1995,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1992
1995
|
type: "ephemeral";
|
|
1993
1996
|
} | undefined;
|
|
1994
1997
|
} | {
|
|
1995
|
-
type: "tool_result";
|
|
1996
1998
|
content: string;
|
|
1999
|
+
type: "tool_result";
|
|
1997
2000
|
tool_use_id: string;
|
|
1998
2001
|
cache_control?: {
|
|
1999
2002
|
type: "ephemeral";
|
|
@@ -2026,8 +2029,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2026
2029
|
type: "ephemeral";
|
|
2027
2030
|
} | undefined;
|
|
2028
2031
|
} | {
|
|
2029
|
-
type: "tool_result";
|
|
2030
2032
|
content: string;
|
|
2033
|
+
type: "tool_result";
|
|
2031
2034
|
tool_use_id: string;
|
|
2032
2035
|
cache_control?: {
|
|
2033
2036
|
type: "ephemeral";
|
|
@@ -2091,8 +2094,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2091
2094
|
type: "ephemeral";
|
|
2092
2095
|
} | undefined;
|
|
2093
2096
|
} | {
|
|
2094
|
-
type: "tool_result";
|
|
2095
2097
|
content: string;
|
|
2098
|
+
type: "tool_result";
|
|
2096
2099
|
tool_use_id: string;
|
|
2097
2100
|
cache_control?: {
|
|
2098
2101
|
type: "ephemeral";
|
|
@@ -2156,8 +2159,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2156
2159
|
type: "ephemeral";
|
|
2157
2160
|
} | undefined;
|
|
2158
2161
|
} | {
|
|
2159
|
-
type: "tool_result";
|
|
2160
2162
|
content: string;
|
|
2163
|
+
type: "tool_result";
|
|
2161
2164
|
tool_use_id: string;
|
|
2162
2165
|
cache_control?: {
|
|
2163
2166
|
type: "ephemeral";
|
|
@@ -2251,8 +2254,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2251
2254
|
type: "ephemeral";
|
|
2252
2255
|
} | undefined;
|
|
2253
2256
|
} | {
|
|
2254
|
-
type: "tool_result";
|
|
2255
2257
|
content: string;
|
|
2258
|
+
type: "tool_result";
|
|
2256
2259
|
tool_use_id: string;
|
|
2257
2260
|
cache_control?: {
|
|
2258
2261
|
type: "ephemeral";
|
|
@@ -2330,8 +2333,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2330
2333
|
type: "ephemeral";
|
|
2331
2334
|
} | undefined;
|
|
2332
2335
|
} | {
|
|
2333
|
-
type: "tool_result";
|
|
2334
2336
|
content: string;
|
|
2337
|
+
type: "tool_result";
|
|
2335
2338
|
tool_use_id: string;
|
|
2336
2339
|
cache_control?: {
|
|
2337
2340
|
type: "ephemeral";
|
|
@@ -2396,12 +2399,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2396
2399
|
content: z.ZodString;
|
|
2397
2400
|
}, "strip", z.ZodTypeAny, {
|
|
2398
2401
|
path: string;
|
|
2399
|
-
type: "file" | "patch";
|
|
2400
2402
|
content: string;
|
|
2403
|
+
type: "file" | "patch";
|
|
2401
2404
|
}, {
|
|
2402
2405
|
path: string;
|
|
2403
|
-
type: "file" | "patch";
|
|
2404
2406
|
content: string;
|
|
2407
|
+
type: "file" | "patch";
|
|
2405
2408
|
}>, "many">;
|
|
2406
2409
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2407
2410
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -2409,12 +2412,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2409
2412
|
content: z.ZodString;
|
|
2410
2413
|
}, "strip", z.ZodTypeAny, {
|
|
2411
2414
|
path: string;
|
|
2412
|
-
type: "file" | "patch";
|
|
2413
2415
|
content: string;
|
|
2416
|
+
type: "file" | "patch";
|
|
2414
2417
|
}, {
|
|
2415
2418
|
path: string;
|
|
2416
|
-
type: "file" | "patch";
|
|
2417
2419
|
content: string;
|
|
2420
|
+
type: "file" | "patch";
|
|
2418
2421
|
}>, "many">;
|
|
2419
2422
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2420
2423
|
path: z.ZodString;
|
|
@@ -2438,13 +2441,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2438
2441
|
response: string;
|
|
2439
2442
|
changes: {
|
|
2440
2443
|
path: string;
|
|
2441
|
-
type: "file" | "patch";
|
|
2442
2444
|
content: string;
|
|
2445
|
+
type: "file" | "patch";
|
|
2443
2446
|
}[];
|
|
2444
2447
|
changesAlreadyApplied: {
|
|
2445
2448
|
path: string;
|
|
2446
|
-
type: "file" | "patch";
|
|
2447
2449
|
content: string;
|
|
2450
|
+
type: "file" | "patch";
|
|
2448
2451
|
}[];
|
|
2449
2452
|
addedFileVersions: {
|
|
2450
2453
|
path: string;
|
|
@@ -2462,13 +2465,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2462
2465
|
response: string;
|
|
2463
2466
|
changes: {
|
|
2464
2467
|
path: string;
|
|
2465
|
-
type: "file" | "patch";
|
|
2466
2468
|
content: string;
|
|
2469
|
+
type: "file" | "patch";
|
|
2467
2470
|
}[];
|
|
2468
2471
|
changesAlreadyApplied: {
|
|
2469
2472
|
path: string;
|
|
2470
|
-
type: "file" | "patch";
|
|
2471
2473
|
content: string;
|
|
2474
|
+
type: "file" | "patch";
|
|
2472
2475
|
}[];
|
|
2473
2476
|
addedFileVersions: {
|
|
2474
2477
|
path: string;
|
package/dist/common/actions.js
CHANGED
|
@@ -28,6 +28,7 @@ exports.CLIENT_ACTION_SCHEMA = zod_1.z.discriminatedUnion('type', [
|
|
|
28
28
|
agentState: agent_state_1.AgentStateSchema,
|
|
29
29
|
toolResults: zod_1.z.array(agent_state_1.ToolResultSchema),
|
|
30
30
|
model: zod_1.z.string().optional(),
|
|
31
|
+
cwd: zod_1.z.string().optional(),
|
|
31
32
|
}),
|
|
32
33
|
zod_1.z.object({
|
|
33
34
|
type: zod_1.z.literal('read-files-response'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,2CAAuC;AACvC,qDAI4B;AAC5B,yCAA+C;AAC/C,sCAAyE;AAE5D,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEW,QAAA,OAAO,GAAG,OAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC,CAAA;AAGnC,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC;CACrC,CAAC,CAAA;AAGW,QAAA,oBAAoB,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC/D,OAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;QACzB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;QACpB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,OA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AC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GetRelevantFilesTrace, Relabel, Trace } from './schema';
|
|
2
|
+
export declare function setupBigQuery(dataset?: string): Promise<void>;
|
|
3
|
+
export declare function insertTrace(trace: Trace, dataset?: string): Promise<boolean>;
|
|
4
|
+
export declare function insertRelabel(relabel: Relabel, dataset?: string): Promise<boolean>;
|
|
5
|
+
export declare function getRecentTraces(limit?: number, dataset?: string): Promise<Trace[]>;
|
|
6
|
+
export declare function getRecentRelabels(limit?: number, dataset?: string): Promise<Relabel[]>;
|
|
7
|
+
export declare function getTracesWithoutRelabels(model: string, limit?: number, userId?: string | undefined, dataset?: string): Promise<GetRelevantFilesTrace[]>;
|
|
8
|
+
export declare function getTracesWithRelabels(model: string, limit?: number, dataset?: string): Promise<{
|
|
9
|
+
trace: GetRelevantFilesTrace;
|
|
10
|
+
relabel: Relabel;
|
|
11
|
+
}[]>;
|
|
12
|
+
export declare function getTracesAndRelabelsForUser(userId: string, limit?: number, dataset?: string): Promise<{
|
|
13
|
+
trace: GetRelevantFilesTrace;
|
|
14
|
+
relabels: Relabel[];
|
|
15
|
+
}[]>;
|