codebuff 1.0.269 → 1.0.272

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.
Files changed (56) hide show
  1. package/dist/cli.d.ts +1 -6
  2. package/dist/cli.js +7 -60
  3. package/dist/cli.js.map +1 -1
  4. package/dist/client.d.ts +2 -3
  5. package/dist/client.js +0 -3
  6. package/dist/client.js.map +1 -1
  7. package/dist/code-map/languages.d.ts +2 -1
  8. package/dist/code-map/languages.d.ts.map +1 -1
  9. package/dist/code-map/languages.js +1 -2
  10. package/dist/code-map/languages.js.map +1 -1
  11. package/dist/code-map/parse.d.ts +4 -14
  12. package/dist/code-map/parse.d.ts.map +1 -1
  13. package/dist/code-map/parse.js +38 -91
  14. package/dist/code-map/parse.js.map +1 -1
  15. package/dist/code-map/tree-sitter-queries/tree-sitter-c-tags.scm +1 -6
  16. package/dist/code-map/tree-sitter-queries/tree-sitter-c_sharp-tags.scm +1 -11
  17. package/dist/code-map/tree-sitter-queries/tree-sitter-cpp-tags.scm +1 -13
  18. package/dist/code-map/tree-sitter-queries/tree-sitter-javascript-tags.scm +0 -1
  19. package/dist/code-map/tree-sitter-queries/tree-sitter-php-tags.scm +8 -5
  20. package/dist/code-map/tree-sitter-queries/tree-sitter-python-tags.scm +2 -5
  21. package/dist/code-map/tree-sitter-queries/tree-sitter-typescript-tags.scm +0 -7
  22. package/dist/code-map/tsconfig.tsbuildinfo +1 -1
  23. package/dist/common/actions.d.ts +62 -88
  24. package/dist/common/browser-actions.d.ts +46 -46
  25. package/dist/common/json-config/constants.d.ts +6 -6
  26. package/dist/common/types/agent-state.d.ts +8 -13
  27. package/dist/common/types/message.d.ts +22 -22
  28. package/dist/common/util/credentials.d.ts +2 -2
  29. package/dist/common/util/file.d.ts +0 -3
  30. package/dist/common/util/file.js +0 -3
  31. package/dist/common/util/file.js.map +1 -1
  32. package/dist/common/websockets/websocket-schema.d.ts +112 -162
  33. package/dist/display.d.ts +0 -2
  34. package/dist/display.js +0 -8
  35. package/dist/display.js.map +1 -1
  36. package/dist/index.js +35 -7
  37. package/dist/index.js.map +1 -1
  38. package/dist/menu.js +106 -35
  39. package/dist/menu.js.map +1 -1
  40. package/dist/project-files.d.ts +0 -2
  41. package/dist/project-files.js +2 -3
  42. package/dist/project-files.js.map +1 -1
  43. package/dist/utils/__tests__/tool-renderers.test.js +1 -27
  44. package/dist/utils/__tests__/tool-renderers.test.js.map +1 -1
  45. package/dist/utils/spinner.d.ts +0 -1
  46. package/dist/utils/spinner.js +1 -8
  47. package/dist/utils/spinner.js.map +1 -1
  48. package/dist/utils/terminal.d.ts +2 -2
  49. package/dist/utils/terminal.js +34 -46
  50. package/dist/utils/terminal.js.map +1 -1
  51. package/dist/utils/tool-renderers.js +5 -22
  52. package/dist/utils/tool-renderers.js.map +1 -1
  53. package/dist/workers/project-context.js +0 -3
  54. package/dist/workers/project-context.js.map +1 -1
  55. package/package.json +1 -2
  56. package/dist/common/json-config/__tests__/__snapshots__/stringify-schema.test.js.snap +0 -119
@@ -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
- content: string;
9
8
  type: "file" | "patch";
9
+ content: string;
10
10
  }, {
11
11
  path: string;
12
- content: string;
13
12
  type: "file" | "patch";
13
+ content: 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
  path: string;
22
- content: string;
23
22
  type: "file" | "patch";
23
+ content: string;
24
24
  }, {
25
25
  path: string;
26
- content: string;
27
26
  type: "file" | "patch";
27
+ content: string;
28
28
  }>, "many">;
29
29
  export type FileChanges = z.infer<typeof CHANGES>;
30
30
  export declare const ToolCallSchema: z.ZodObject<{
@@ -54,7 +54,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
54
54
  currentWorkingDirectory: z.ZodString;
55
55
  fileTree: z.ZodArray<z.ZodType<import("./util/file").FileTreeNode, z.ZodTypeDef, import("./util/file").FileTreeNode>, "many">;
56
56
  fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
57
- tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
58
57
  knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
59
58
  userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
60
59
  gitChanges: z.ZodObject<{
@@ -128,7 +127,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
128
127
  homedir: string;
129
128
  cpus: number;
130
129
  };
131
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
132
130
  userKnowledgeFiles?: Record<string, string> | undefined;
133
131
  fileVersions?: {
134
132
  path: string;
@@ -155,7 +153,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
155
153
  homedir: string;
156
154
  cpus: number;
157
155
  };
158
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
159
156
  userKnowledgeFiles?: Record<string, string> | undefined;
160
157
  fileVersions?: {
161
158
  path: string;
@@ -226,15 +223,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
226
223
  type: "ephemeral";
227
224
  }>>;
228
225
  }, "strip", z.ZodTypeAny, {
229
- content: string;
230
226
  type: "tool_result";
227
+ content: string;
231
228
  tool_use_id: string;
232
229
  cache_control?: {
233
230
  type: "ephemeral";
234
231
  } | undefined;
235
232
  }, {
236
- content: string;
237
233
  type: "tool_result";
234
+ content: string;
238
235
  tool_use_id: string;
239
236
  cache_control?: {
240
237
  type: "ephemeral";
@@ -298,8 +295,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
298
295
  type: "ephemeral";
299
296
  } | undefined;
300
297
  } | {
301
- content: string;
302
298
  type: "tool_result";
299
+ content: string;
303
300
  tool_use_id: string;
304
301
  cache_control?: {
305
302
  type: "ephemeral";
@@ -332,8 +329,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
332
329
  type: "ephemeral";
333
330
  } | undefined;
334
331
  } | {
335
- content: string;
336
332
  type: "tool_result";
333
+ content: string;
337
334
  tool_use_id: string;
338
335
  cache_control?: {
339
336
  type: "ephemeral";
@@ -375,7 +372,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
375
372
  homedir: string;
376
373
  cpus: number;
377
374
  };
378
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
379
375
  userKnowledgeFiles?: Record<string, string> | undefined;
380
376
  fileVersions?: {
381
377
  path: string;
@@ -398,8 +394,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
398
394
  type: "ephemeral";
399
395
  } | undefined;
400
396
  } | {
401
- content: string;
402
397
  type: "tool_result";
398
+ content: string;
403
399
  tool_use_id: string;
404
400
  cache_control?: {
405
401
  type: "ephemeral";
@@ -441,7 +437,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
441
437
  homedir: string;
442
438
  cpus: number;
443
439
  };
444
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
445
440
  userKnowledgeFiles?: Record<string, string> | undefined;
446
441
  fileVersions?: {
447
442
  path: string;
@@ -464,8 +459,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
464
459
  type: "ephemeral";
465
460
  } | undefined;
466
461
  } | {
467
- content: string;
468
462
  type: "tool_result";
463
+ content: string;
469
464
  tool_use_id: string;
470
465
  cache_control?: {
471
466
  type: "ephemeral";
@@ -504,7 +499,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
504
499
  type: "prompt";
505
500
  promptId: string;
506
501
  fingerprintId: string;
507
- costMode: "max" | "lite" | "normal" | "experimental";
502
+ costMode: "lite" | "normal" | "max" | "experimental";
508
503
  agentState: {
509
504
  agentContext: string;
510
505
  fileContext: {
@@ -528,7 +523,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
528
523
  homedir: string;
529
524
  cpus: number;
530
525
  };
531
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
532
526
  userKnowledgeFiles?: Record<string, string> | undefined;
533
527
  fileVersions?: {
534
528
  path: string;
@@ -551,8 +545,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
551
545
  type: "ephemeral";
552
546
  } | undefined;
553
547
  } | {
554
- content: string;
555
548
  type: "tool_result";
549
+ content: string;
556
550
  tool_use_id: string;
557
551
  cache_control?: {
558
552
  type: "ephemeral";
@@ -608,7 +602,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
608
602
  homedir: string;
609
603
  cpus: number;
610
604
  };
611
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
612
605
  userKnowledgeFiles?: Record<string, string> | undefined;
613
606
  fileVersions?: {
614
607
  path: string;
@@ -631,8 +624,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
631
624
  type: "ephemeral";
632
625
  } | undefined;
633
626
  } | {
634
- content: string;
635
627
  type: "tool_result";
628
+ content: string;
636
629
  tool_use_id: string;
637
630
  cache_control?: {
638
631
  type: "ephemeral";
@@ -659,7 +652,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
659
652
  }[];
660
653
  prompt?: string | undefined;
661
654
  authToken?: string | undefined;
662
- costMode?: "max" | "lite" | "normal" | "experimental" | undefined;
655
+ costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
663
656
  model?: string | undefined;
664
657
  cwd?: string | undefined;
665
658
  }>, z.ZodObject<{
@@ -682,7 +675,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
682
675
  currentWorkingDirectory: z.ZodString;
683
676
  fileTree: z.ZodArray<z.ZodType<import("./util/file").FileTreeNode, z.ZodTypeDef, import("./util/file").FileTreeNode>, "many">;
684
677
  fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
685
- tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
686
678
  knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
687
679
  userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
688
680
  gitChanges: z.ZodObject<{
@@ -756,7 +748,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
756
748
  homedir: string;
757
749
  cpus: number;
758
750
  };
759
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
760
751
  userKnowledgeFiles?: Record<string, string> | undefined;
761
752
  fileVersions?: {
762
753
  path: string;
@@ -783,7 +774,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
783
774
  homedir: string;
784
775
  cpus: number;
785
776
  };
786
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
787
777
  userKnowledgeFiles?: Record<string, string> | undefined;
788
778
  fileVersions?: {
789
779
  path: string;
@@ -813,7 +803,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
813
803
  homedir: string;
814
804
  cpus: number;
815
805
  };
816
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
817
806
  userKnowledgeFiles?: Record<string, string> | undefined;
818
807
  fileVersions?: {
819
808
  path: string;
@@ -845,7 +834,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
845
834
  homedir: string;
846
835
  cpus: number;
847
836
  };
848
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
849
837
  userKnowledgeFiles?: Record<string, string> | undefined;
850
838
  fileVersions?: {
851
839
  path: string;
@@ -929,12 +917,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
929
917
  content: z.ZodString;
930
918
  }, "strip", z.ZodTypeAny, {
931
919
  path: string;
932
- content: string;
933
920
  type: "file" | "patch";
921
+ content: string;
934
922
  }, {
935
923
  path: string;
936
- content: string;
937
924
  type: "file" | "patch";
925
+ content: string;
938
926
  }>, "many">;
939
927
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
940
928
  type: z.ZodEnum<["patch", "file"]>;
@@ -942,12 +930,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
942
930
  content: z.ZodString;
943
931
  }, "strip", z.ZodTypeAny, {
944
932
  path: string;
945
- content: string;
946
933
  type: "file" | "patch";
934
+ content: string;
947
935
  }, {
948
936
  path: string;
949
- content: string;
950
937
  type: "file" | "patch";
938
+ content: string;
951
939
  }>, "many">;
952
940
  addedFileVersions: z.ZodArray<z.ZodObject<{
953
941
  path: z.ZodString;
@@ -972,13 +960,13 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
972
960
  response: string;
973
961
  changes: {
974
962
  path: string;
975
- content: string;
976
963
  type: "file" | "patch";
964
+ content: string;
977
965
  }[];
978
966
  changesAlreadyApplied: {
979
967
  path: string;
980
- content: string;
981
968
  type: "file" | "patch";
969
+ content: string;
982
970
  }[];
983
971
  addedFileVersions: {
984
972
  path: string;
@@ -996,13 +984,13 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
996
984
  response: string;
997
985
  changes: {
998
986
  path: string;
999
- content: string;
1000
987
  type: "file" | "patch";
988
+ content: string;
1001
989
  }[];
1002
990
  changesAlreadyApplied: {
1003
991
  path: string;
1004
- content: string;
1005
992
  type: "file" | "patch";
993
+ content: string;
1006
994
  }[];
1007
995
  addedFileVersions: {
1008
996
  path: string;
@@ -1038,7 +1026,6 @@ export declare const PromptResponseSchema: z.ZodObject<{
1038
1026
  currentWorkingDirectory: z.ZodString;
1039
1027
  fileTree: z.ZodArray<z.ZodType<import("./util/file").FileTreeNode, z.ZodTypeDef, import("./util/file").FileTreeNode>, "many">;
1040
1028
  fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
1041
- tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
1042
1029
  knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
1043
1030
  userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1044
1031
  gitChanges: z.ZodObject<{
@@ -1112,7 +1099,6 @@ export declare const PromptResponseSchema: z.ZodObject<{
1112
1099
  homedir: string;
1113
1100
  cpus: number;
1114
1101
  };
1115
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
1116
1102
  userKnowledgeFiles?: Record<string, string> | undefined;
1117
1103
  fileVersions?: {
1118
1104
  path: string;
@@ -1139,7 +1125,6 @@ export declare const PromptResponseSchema: z.ZodObject<{
1139
1125
  homedir: string;
1140
1126
  cpus: number;
1141
1127
  };
1142
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
1143
1128
  userKnowledgeFiles?: Record<string, string> | undefined;
1144
1129
  fileVersions?: {
1145
1130
  path: string;
@@ -1210,15 +1195,15 @@ export declare const PromptResponseSchema: z.ZodObject<{
1210
1195
  type: "ephemeral";
1211
1196
  }>>;
1212
1197
  }, "strip", z.ZodTypeAny, {
1213
- content: string;
1214
1198
  type: "tool_result";
1199
+ content: string;
1215
1200
  tool_use_id: string;
1216
1201
  cache_control?: {
1217
1202
  type: "ephemeral";
1218
1203
  } | undefined;
1219
1204
  }, {
1220
- content: string;
1221
1205
  type: "tool_result";
1206
+ content: string;
1222
1207
  tool_use_id: string;
1223
1208
  cache_control?: {
1224
1209
  type: "ephemeral";
@@ -1282,8 +1267,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1282
1267
  type: "ephemeral";
1283
1268
  } | undefined;
1284
1269
  } | {
1285
- content: string;
1286
1270
  type: "tool_result";
1271
+ content: string;
1287
1272
  tool_use_id: string;
1288
1273
  cache_control?: {
1289
1274
  type: "ephemeral";
@@ -1316,8 +1301,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1316
1301
  type: "ephemeral";
1317
1302
  } | undefined;
1318
1303
  } | {
1319
- content: string;
1320
1304
  type: "tool_result";
1305
+ content: string;
1321
1306
  tool_use_id: string;
1322
1307
  cache_control?: {
1323
1308
  type: "ephemeral";
@@ -1359,7 +1344,6 @@ export declare const PromptResponseSchema: z.ZodObject<{
1359
1344
  homedir: string;
1360
1345
  cpus: number;
1361
1346
  };
1362
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
1363
1347
  userKnowledgeFiles?: Record<string, string> | undefined;
1364
1348
  fileVersions?: {
1365
1349
  path: string;
@@ -1382,8 +1366,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1382
1366
  type: "ephemeral";
1383
1367
  } | undefined;
1384
1368
  } | {
1385
- content: string;
1386
1369
  type: "tool_result";
1370
+ content: string;
1387
1371
  tool_use_id: string;
1388
1372
  cache_control?: {
1389
1373
  type: "ephemeral";
@@ -1425,7 +1409,6 @@ export declare const PromptResponseSchema: z.ZodObject<{
1425
1409
  homedir: string;
1426
1410
  cpus: number;
1427
1411
  };
1428
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
1429
1412
  userKnowledgeFiles?: Record<string, string> | undefined;
1430
1413
  fileVersions?: {
1431
1414
  path: string;
@@ -1448,8 +1431,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1448
1431
  type: "ephemeral";
1449
1432
  } | undefined;
1450
1433
  } | {
1451
- content: string;
1452
1434
  type: "tool_result";
1435
+ content: string;
1453
1436
  tool_use_id: string;
1454
1437
  cache_control?: {
1455
1438
  type: "ephemeral";
@@ -1475,12 +1458,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
1475
1458
  id: z.ZodString;
1476
1459
  }, "strip", z.ZodTypeAny, {
1477
1460
  name: string;
1478
- parameters: Record<string, string>;
1479
1461
  id: string;
1462
+ parameters: Record<string, string>;
1480
1463
  }, {
1481
1464
  name: string;
1482
- parameters: Record<string, string>;
1483
1465
  id: string;
1466
+ parameters: Record<string, string>;
1484
1467
  }>, "many">;
1485
1468
  toolResults: z.ZodArray<z.ZodObject<{
1486
1469
  name: z.ZodString;
@@ -1521,7 +1504,6 @@ export declare const PromptResponseSchema: z.ZodObject<{
1521
1504
  homedir: string;
1522
1505
  cpus: number;
1523
1506
  };
1524
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
1525
1507
  userKnowledgeFiles?: Record<string, string> | undefined;
1526
1508
  fileVersions?: {
1527
1509
  path: string;
@@ -1544,8 +1526,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1544
1526
  type: "ephemeral";
1545
1527
  } | undefined;
1546
1528
  } | {
1547
- content: string;
1548
1529
  type: "tool_result";
1530
+ content: string;
1549
1531
  tool_use_id: string;
1550
1532
  cache_control?: {
1551
1533
  type: "ephemeral";
@@ -1572,8 +1554,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1572
1554
  }[];
1573
1555
  toolCalls: {
1574
1556
  name: string;
1575
- parameters: Record<string, string>;
1576
1557
  id: string;
1558
+ parameters: Record<string, string>;
1577
1559
  }[];
1578
1560
  }, {
1579
1561
  type: "prompt-response";
@@ -1601,7 +1583,6 @@ export declare const PromptResponseSchema: z.ZodObject<{
1601
1583
  homedir: string;
1602
1584
  cpus: number;
1603
1585
  };
1604
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
1605
1586
  userKnowledgeFiles?: Record<string, string> | undefined;
1606
1587
  fileVersions?: {
1607
1588
  path: string;
@@ -1624,8 +1605,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1624
1605
  type: "ephemeral";
1625
1606
  } | undefined;
1626
1607
  } | {
1627
- content: string;
1628
1608
  type: "tool_result";
1609
+ content: string;
1629
1610
  tool_use_id: string;
1630
1611
  cache_control?: {
1631
1612
  type: "ephemeral";
@@ -1652,8 +1633,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1652
1633
  }[];
1653
1634
  toolCalls: {
1654
1635
  name: string;
1655
- parameters: Record<string, string>;
1656
1636
  id: string;
1637
+ parameters: Record<string, string>;
1657
1638
  }[];
1658
1639
  }>;
1659
1640
  export type PromptResponse = z.infer<typeof PromptResponseSchema>;
@@ -1679,12 +1660,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1679
1660
  content: z.ZodString;
1680
1661
  }, "strip", z.ZodTypeAny, {
1681
1662
  path: string;
1682
- content: string;
1683
1663
  type: "file" | "patch";
1664
+ content: string;
1684
1665
  }, {
1685
1666
  path: string;
1686
- content: string;
1687
1667
  type: "file" | "patch";
1668
+ content: string;
1688
1669
  }>, "many">;
1689
1670
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1690
1671
  type: z.ZodEnum<["patch", "file"]>;
@@ -1692,12 +1673,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1692
1673
  content: z.ZodString;
1693
1674
  }, "strip", z.ZodTypeAny, {
1694
1675
  path: string;
1695
- content: string;
1696
1676
  type: "file" | "patch";
1677
+ content: string;
1697
1678
  }, {
1698
1679
  path: string;
1699
- content: string;
1700
1680
  type: "file" | "patch";
1681
+ content: string;
1701
1682
  }>, "many">;
1702
1683
  addedFileVersions: z.ZodArray<z.ZodObject<{
1703
1684
  path: z.ZodString;
@@ -1722,13 +1703,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1722
1703
  response: string;
1723
1704
  changes: {
1724
1705
  path: string;
1725
- content: string;
1726
1706
  type: "file" | "patch";
1707
+ content: string;
1727
1708
  }[];
1728
1709
  changesAlreadyApplied: {
1729
1710
  path: string;
1730
- content: string;
1731
1711
  type: "file" | "patch";
1712
+ content: string;
1732
1713
  }[];
1733
1714
  addedFileVersions: {
1734
1715
  path: string;
@@ -1746,13 +1727,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1746
1727
  response: string;
1747
1728
  changes: {
1748
1729
  path: string;
1749
- content: string;
1750
1730
  type: "file" | "patch";
1731
+ content: string;
1751
1732
  }[];
1752
1733
  changesAlreadyApplied: {
1753
1734
  path: string;
1754
- content: string;
1755
1735
  type: "file" | "patch";
1736
+ content: string;
1756
1737
  }[];
1757
1738
  addedFileVersions: {
1758
1739
  path: string;
@@ -1773,7 +1754,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1773
1754
  currentWorkingDirectory: z.ZodString;
1774
1755
  fileTree: z.ZodArray<z.ZodType<import("./util/file").FileTreeNode, z.ZodTypeDef, import("./util/file").FileTreeNode>, "many">;
1775
1756
  fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
1776
- tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
1777
1757
  knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
1778
1758
  userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1779
1759
  gitChanges: z.ZodObject<{
@@ -1847,7 +1827,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1847
1827
  homedir: string;
1848
1828
  cpus: number;
1849
1829
  };
1850
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
1851
1830
  userKnowledgeFiles?: Record<string, string> | undefined;
1852
1831
  fileVersions?: {
1853
1832
  path: string;
@@ -1874,7 +1853,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1874
1853
  homedir: string;
1875
1854
  cpus: number;
1876
1855
  };
1877
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
1878
1856
  userKnowledgeFiles?: Record<string, string> | undefined;
1879
1857
  fileVersions?: {
1880
1858
  path: string;
@@ -1945,15 +1923,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1945
1923
  type: "ephemeral";
1946
1924
  }>>;
1947
1925
  }, "strip", z.ZodTypeAny, {
1948
- content: string;
1949
1926
  type: "tool_result";
1927
+ content: string;
1950
1928
  tool_use_id: string;
1951
1929
  cache_control?: {
1952
1930
  type: "ephemeral";
1953
1931
  } | undefined;
1954
1932
  }, {
1955
- content: string;
1956
1933
  type: "tool_result";
1934
+ content: string;
1957
1935
  tool_use_id: string;
1958
1936
  cache_control?: {
1959
1937
  type: "ephemeral";
@@ -2017,8 +1995,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2017
1995
  type: "ephemeral";
2018
1996
  } | undefined;
2019
1997
  } | {
2020
- content: string;
2021
1998
  type: "tool_result";
1999
+ content: string;
2022
2000
  tool_use_id: string;
2023
2001
  cache_control?: {
2024
2002
  type: "ephemeral";
@@ -2051,8 +2029,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2051
2029
  type: "ephemeral";
2052
2030
  } | undefined;
2053
2031
  } | {
2054
- content: string;
2055
2032
  type: "tool_result";
2033
+ content: string;
2056
2034
  tool_use_id: string;
2057
2035
  cache_control?: {
2058
2036
  type: "ephemeral";
@@ -2094,7 +2072,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2094
2072
  homedir: string;
2095
2073
  cpus: number;
2096
2074
  };
2097
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
2098
2075
  userKnowledgeFiles?: Record<string, string> | undefined;
2099
2076
  fileVersions?: {
2100
2077
  path: string;
@@ -2117,8 +2094,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2117
2094
  type: "ephemeral";
2118
2095
  } | undefined;
2119
2096
  } | {
2120
- content: string;
2121
2097
  type: "tool_result";
2098
+ content: string;
2122
2099
  tool_use_id: string;
2123
2100
  cache_control?: {
2124
2101
  type: "ephemeral";
@@ -2160,7 +2137,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2160
2137
  homedir: string;
2161
2138
  cpus: number;
2162
2139
  };
2163
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
2164
2140
  userKnowledgeFiles?: Record<string, string> | undefined;
2165
2141
  fileVersions?: {
2166
2142
  path: string;
@@ -2183,8 +2159,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2183
2159
  type: "ephemeral";
2184
2160
  } | undefined;
2185
2161
  } | {
2186
- content: string;
2187
2162
  type: "tool_result";
2163
+ content: string;
2188
2164
  tool_use_id: string;
2189
2165
  cache_control?: {
2190
2166
  type: "ephemeral";
@@ -2210,12 +2186,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2210
2186
  id: z.ZodString;
2211
2187
  }, "strip", z.ZodTypeAny, {
2212
2188
  name: string;
2213
- parameters: Record<string, string>;
2214
2189
  id: string;
2190
+ parameters: Record<string, string>;
2215
2191
  }, {
2216
2192
  name: string;
2217
- parameters: Record<string, string>;
2218
2193
  id: string;
2194
+ parameters: Record<string, string>;
2219
2195
  }>, "many">;
2220
2196
  toolResults: z.ZodArray<z.ZodObject<{
2221
2197
  name: z.ZodString;
@@ -2256,7 +2232,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2256
2232
  homedir: string;
2257
2233
  cpus: number;
2258
2234
  };
2259
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
2260
2235
  userKnowledgeFiles?: Record<string, string> | undefined;
2261
2236
  fileVersions?: {
2262
2237
  path: string;
@@ -2279,8 +2254,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2279
2254
  type: "ephemeral";
2280
2255
  } | undefined;
2281
2256
  } | {
2282
- content: string;
2283
2257
  type: "tool_result";
2258
+ content: string;
2284
2259
  tool_use_id: string;
2285
2260
  cache_control?: {
2286
2261
  type: "ephemeral";
@@ -2307,8 +2282,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2307
2282
  }[];
2308
2283
  toolCalls: {
2309
2284
  name: string;
2310
- parameters: Record<string, string>;
2311
2285
  id: string;
2286
+ parameters: Record<string, string>;
2312
2287
  }[];
2313
2288
  }, {
2314
2289
  type: "prompt-response";
@@ -2336,7 +2311,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2336
2311
  homedir: string;
2337
2312
  cpus: number;
2338
2313
  };
2339
- tokenCallers?: Record<string, Record<string, string[]>> | undefined;
2340
2314
  userKnowledgeFiles?: Record<string, string> | undefined;
2341
2315
  fileVersions?: {
2342
2316
  path: string;
@@ -2359,8 +2333,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2359
2333
  type: "ephemeral";
2360
2334
  } | undefined;
2361
2335
  } | {
2362
- content: string;
2363
2336
  type: "tool_result";
2337
+ content: string;
2364
2338
  tool_use_id: string;
2365
2339
  cache_control?: {
2366
2340
  type: "ephemeral";
@@ -2387,8 +2361,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2387
2361
  }[];
2388
2362
  toolCalls: {
2389
2363
  name: string;
2390
- parameters: Record<string, string>;
2391
2364
  id: string;
2365
+ parameters: Record<string, string>;
2392
2366
  }[];
2393
2367
  }>, z.ZodObject<{
2394
2368
  type: z.ZodLiteral<"read-files">;
@@ -2425,12 +2399,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2425
2399
  content: z.ZodString;
2426
2400
  }, "strip", z.ZodTypeAny, {
2427
2401
  path: string;
2428
- content: string;
2429
2402
  type: "file" | "patch";
2403
+ content: string;
2430
2404
  }, {
2431
2405
  path: string;
2432
- content: string;
2433
2406
  type: "file" | "patch";
2407
+ content: string;
2434
2408
  }>, "many">;
2435
2409
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2436
2410
  type: z.ZodEnum<["patch", "file"]>;
@@ -2438,12 +2412,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2438
2412
  content: z.ZodString;
2439
2413
  }, "strip", z.ZodTypeAny, {
2440
2414
  path: string;
2441
- content: string;
2442
2415
  type: "file" | "patch";
2416
+ content: string;
2443
2417
  }, {
2444
2418
  path: string;
2445
- content: string;
2446
2419
  type: "file" | "patch";
2420
+ content: string;
2447
2421
  }>, "many">;
2448
2422
  addedFileVersions: z.ZodArray<z.ZodObject<{
2449
2423
  path: z.ZodString;
@@ -2467,13 +2441,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2467
2441
  response: string;
2468
2442
  changes: {
2469
2443
  path: string;
2470
- content: string;
2471
2444
  type: "file" | "patch";
2445
+ content: string;
2472
2446
  }[];
2473
2447
  changesAlreadyApplied: {
2474
2448
  path: string;
2475
- content: string;
2476
2449
  type: "file" | "patch";
2450
+ content: string;
2477
2451
  }[];
2478
2452
  addedFileVersions: {
2479
2453
  path: string;
@@ -2491,13 +2465,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2491
2465
  response: string;
2492
2466
  changes: {
2493
2467
  path: string;
2494
- content: string;
2495
2468
  type: "file" | "patch";
2469
+ content: string;
2496
2470
  }[];
2497
2471
  changesAlreadyApplied: {
2498
2472
  path: string;
2499
- content: string;
2500
2473
  type: "file" | "patch";
2474
+ content: string;
2501
2475
  }[];
2502
2476
  addedFileVersions: {
2503
2477
  path: string;