codebuff 1.0.174 → 1.0.176

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 (57) hide show
  1. package/dist/checkpoint-file-manager.d.ts +17 -5
  2. package/dist/checkpoint-file-manager.js +115 -77
  3. package/dist/checkpoint-file-manager.js.map +1 -1
  4. package/dist/checkpoints.d.ts +3 -2
  5. package/dist/checkpoints.js +20 -32
  6. package/dist/checkpoints.js.map +1 -1
  7. package/dist/cli.d.ts +0 -1
  8. package/dist/cli.js +24 -49
  9. package/dist/cli.js.map +1 -1
  10. package/dist/client.d.ts +13 -12
  11. package/dist/client.js +8 -1
  12. package/dist/client.js.map +1 -1
  13. package/dist/common/actions.d.ts +182 -182
  14. package/dist/common/browser-actions.d.ts +44 -44
  15. package/dist/common/constants.d.ts +0 -1
  16. package/dist/common/constants.js +1 -44
  17. package/dist/common/constants.js.map +1 -1
  18. package/dist/common/logger.d.ts +1 -0
  19. package/dist/common/logger.js +7 -0
  20. package/dist/common/logger.js.map +1 -0
  21. package/dist/common/project-file-tree.d.ts +1 -0
  22. package/dist/common/project-file-tree.js +3 -1
  23. package/dist/common/project-file-tree.js.map +1 -1
  24. package/dist/common/types/agent-state.d.ts +26 -26
  25. package/dist/common/types/message.d.ts +14 -14
  26. package/dist/common/types/usage.d.ts +2 -2
  27. package/dist/common/util/constants.d.ts +1 -0
  28. package/dist/common/util/constants.js +7 -0
  29. package/dist/common/util/constants.js.map +1 -0
  30. package/dist/common/util/credentials.d.ts +2 -2
  31. package/dist/common/util/helpers.d.ts +1 -0
  32. package/dist/common/util/helpers.js +6 -0
  33. package/dist/common/util/helpers.js.map +1 -0
  34. package/dist/common/util/token-counter.d.ts +3 -0
  35. package/dist/common/util/token-counter.js +27 -0
  36. package/dist/common/util/token-counter.js.map +1 -0
  37. package/dist/common/websockets/websocket-schema.d.ts +364 -364
  38. package/dist/index.js +1 -1
  39. package/dist/tool-handlers.d.ts +2 -1
  40. package/dist/tool-handlers.js +3 -3
  41. package/dist/tool-handlers.js.map +1 -1
  42. package/dist/utils/terminal.js +4 -40
  43. package/dist/utils/terminal.js.map +1 -1
  44. package/dist/utils/tool-renderers.js +14 -2
  45. package/dist/utils/tool-renderers.js.map +1 -1
  46. package/dist/worker-script-project-context.js +4 -4
  47. package/dist/worker-script-project-context.js.map +1 -1
  48. package/package.json +1 -1
  49. package/dist/common/advanced-analyzer.d.ts +0 -19
  50. package/dist/common/advanced-analyzer.js +0 -140
  51. package/dist/common/advanced-analyzer.js.map +0 -1
  52. package/dist/common/message-image-handling.d.ts +0 -41
  53. package/dist/common/message-image-handling.js +0 -57
  54. package/dist/common/message-image-handling.js.map +0 -1
  55. package/dist/common/util/process-stream.d.ts +0 -8
  56. package/dist/common/util/process-stream.js +0 -102
  57. package/dist/common/util/process-stream.js.map +0 -1
@@ -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<{
@@ -32,12 +32,12 @@ export declare const ToolCallSchema: z.ZodObject<{
32
32
  id: z.ZodString;
33
33
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
34
34
  }, "strip", z.ZodTypeAny, {
35
- id: string;
36
35
  name: string;
36
+ id: string;
37
37
  input: Record<string, any>;
38
38
  }, {
39
- id: string;
40
39
  name: string;
40
+ id: string;
41
41
  input: Record<string, any>;
42
42
  }>;
43
43
  export type ToolCall = z.infer<typeof ToolCallSchema>;
@@ -84,16 +84,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
84
84
  }>>;
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  type: "tool_use";
87
- id: string;
88
87
  name: string;
88
+ id: string;
89
89
  input: Record<string, any>;
90
90
  cache_control?: {
91
91
  type: "ephemeral";
92
92
  } | undefined;
93
93
  }, {
94
94
  type: "tool_use";
95
- id: string;
96
95
  name: string;
96
+ id: string;
97
97
  input: Record<string, any>;
98
98
  cache_control?: {
99
99
  type: "ephemeral";
@@ -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";
@@ -167,7 +167,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
167
167
  } | undefined;
168
168
  }>]>, "many">]>;
169
169
  }, "strip", z.ZodTypeAny, {
170
- role: "user" | "assistant";
171
170
  content: string | ({
172
171
  type: "text";
173
172
  text: string;
@@ -176,15 +175,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
176
175
  } | undefined;
177
176
  } | {
178
177
  type: "tool_use";
179
- id: string;
180
178
  name: string;
179
+ id: string;
181
180
  input: Record<string, any>;
182
181
  cache_control?: {
183
182
  type: "ephemeral";
184
183
  } | undefined;
185
184
  } | {
186
- type: "tool_result";
187
185
  content: string;
186
+ type: "tool_result";
188
187
  tool_use_id: string;
189
188
  cache_control?: {
190
189
  type: "ephemeral";
@@ -200,8 +199,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
200
199
  type: "ephemeral";
201
200
  } | undefined;
202
201
  })[];
203
- }, {
204
202
  role: "user" | "assistant";
203
+ }, {
205
204
  content: string | ({
206
205
  type: "text";
207
206
  text: string;
@@ -210,15 +209,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
210
209
  } | undefined;
211
210
  } | {
212
211
  type: "tool_use";
213
- id: string;
214
212
  name: string;
213
+ id: string;
215
214
  input: Record<string, any>;
216
215
  cache_control?: {
217
216
  type: "ephemeral";
218
217
  } | undefined;
219
218
  } | {
220
- type: "tool_result";
221
219
  content: string;
220
+ type: "tool_result";
222
221
  tool_use_id: string;
223
222
  cache_control?: {
224
223
  type: "ephemeral";
@@ -234,6 +233,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
234
233
  type: "ephemeral";
235
234
  } | undefined;
236
235
  })[];
236
+ role: "user" | "assistant";
237
237
  }>, "many">;
238
238
  fileContext: z.ZodObject<{
239
239
  currentWorkingDirectory: z.ZodString;
@@ -247,13 +247,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
247
247
  diffCached: z.ZodString;
248
248
  lastCommitMessages: z.ZodString;
249
249
  }, "strip", z.ZodTypeAny, {
250
- diff: string;
251
250
  status: string;
251
+ diff: string;
252
252
  diffCached: string;
253
253
  lastCommitMessages: string;
254
254
  }, {
255
- diff: string;
256
255
  status: string;
256
+ diff: string;
257
257
  diffCached: string;
258
258
  lastCommitMessages: string;
259
259
  }>;
@@ -297,8 +297,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
297
297
  fileTokenScores: Record<string, Record<string, number>>;
298
298
  knowledgeFiles: Record<string, string>;
299
299
  gitChanges: {
300
- diff: string;
301
300
  status: string;
301
+ diff: string;
302
302
  diffCached: string;
303
303
  lastCommitMessages: string;
304
304
  };
@@ -323,8 +323,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
323
323
  fileTokenScores: Record<string, Record<string, number>>;
324
324
  knowledgeFiles: Record<string, string>;
325
325
  gitChanges: {
326
- diff: string;
327
326
  status: string;
327
+ diff: string;
328
328
  diffCached: string;
329
329
  lastCommitMessages: string;
330
330
  };
@@ -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, {
@@ -366,8 +366,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
366
366
  fileTokenScores: Record<string, Record<string, number>>;
367
367
  knowledgeFiles: Record<string, string>;
368
368
  gitChanges: {
369
- diff: string;
370
369
  status: string;
370
+ diff: string;
371
371
  diffCached: string;
372
372
  lastCommitMessages: string;
373
373
  };
@@ -390,7 +390,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
390
390
  fingerprintId: string;
391
391
  userInputId: string;
392
392
  messages: {
393
- role: "user" | "assistant";
394
393
  content: string | ({
395
394
  type: "text";
396
395
  text: string;
@@ -399,15 +398,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
399
398
  } | undefined;
400
399
  } | {
401
400
  type: "tool_use";
402
- id: string;
403
401
  name: string;
402
+ id: string;
404
403
  input: Record<string, any>;
405
404
  cache_control?: {
406
405
  type: "ephemeral";
407
406
  } | undefined;
408
407
  } | {
409
- type: "tool_result";
410
408
  content: string;
409
+ type: "tool_result";
411
410
  tool_use_id: string;
412
411
  cache_control?: {
413
412
  type: "ephemeral";
@@ -423,13 +422,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
423
422
  type: "ephemeral";
424
423
  } | undefined;
425
424
  })[];
425
+ role: "user" | "assistant";
426
426
  }[];
427
427
  changesAlreadyApplied: {
428
- type: "patch" | "file";
429
428
  path: string;
430
429
  content: string;
430
+ type: "file" | "patch";
431
431
  }[];
432
- costMode: "lite" | "normal" | "max";
432
+ costMode: "max" | "lite" | "normal";
433
433
  authToken?: string | undefined;
434
434
  }, {
435
435
  type: "user-input";
@@ -439,8 +439,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
439
439
  fileTokenScores: Record<string, Record<string, number>>;
440
440
  knowledgeFiles: Record<string, string>;
441
441
  gitChanges: {
442
- diff: string;
443
442
  status: string;
443
+ diff: string;
444
444
  diffCached: string;
445
445
  lastCommitMessages: string;
446
446
  };
@@ -463,7 +463,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
463
463
  fingerprintId: string;
464
464
  userInputId: string;
465
465
  messages: {
466
- role: "user" | "assistant";
467
466
  content: string | ({
468
467
  type: "text";
469
468
  text: string;
@@ -472,15 +471,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
472
471
  } | undefined;
473
472
  } | {
474
473
  type: "tool_use";
475
- id: string;
476
474
  name: string;
475
+ id: string;
477
476
  input: Record<string, any>;
478
477
  cache_control?: {
479
478
  type: "ephemeral";
480
479
  } | undefined;
481
480
  } | {
482
- type: "tool_result";
483
481
  content: string;
482
+ type: "tool_result";
484
483
  tool_use_id: string;
485
484
  cache_control?: {
486
485
  type: "ephemeral";
@@ -496,14 +495,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
496
495
  type: "ephemeral";
497
496
  } | undefined;
498
497
  })[];
498
+ role: "user" | "assistant";
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
- costMode?: "lite" | "normal" | "max" | undefined;
506
+ costMode?: "max" | "lite" | "normal" | undefined;
507
507
  }>, z.ZodObject<{
508
508
  type: z.ZodLiteral<"prompt">;
509
509
  promptId: z.ZodString;
@@ -525,13 +525,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
525
525
  diffCached: z.ZodString;
526
526
  lastCommitMessages: z.ZodString;
527
527
  }, "strip", z.ZodTypeAny, {
528
- diff: string;
529
528
  status: string;
529
+ diff: string;
530
530
  diffCached: string;
531
531
  lastCommitMessages: string;
532
532
  }, {
533
- diff: string;
534
533
  status: string;
534
+ diff: string;
535
535
  diffCached: string;
536
536
  lastCommitMessages: string;
537
537
  }>;
@@ -575,8 +575,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
575
575
  fileTokenScores: Record<string, Record<string, number>>;
576
576
  knowledgeFiles: Record<string, string>;
577
577
  gitChanges: {
578
- diff: string;
579
578
  status: string;
579
+ diff: string;
580
580
  diffCached: string;
581
581
  lastCommitMessages: string;
582
582
  };
@@ -601,8 +601,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
601
601
  fileTokenScores: Record<string, Record<string, number>>;
602
602
  knowledgeFiles: Record<string, string>;
603
603
  gitChanges: {
604
- diff: string;
605
604
  status: string;
605
+ diff: string;
606
606
  diffCached: string;
607
607
  lastCommitMessages: string;
608
608
  };
@@ -660,16 +660,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
660
660
  }>>;
661
661
  }, "strip", z.ZodTypeAny, {
662
662
  type: "tool_use";
663
- id: string;
664
663
  name: string;
664
+ id: string;
665
665
  input: Record<string, any>;
666
666
  cache_control?: {
667
667
  type: "ephemeral";
668
668
  } | undefined;
669
669
  }, {
670
670
  type: "tool_use";
671
- id: string;
672
671
  name: string;
672
+ id: string;
673
673
  input: Record<string, any>;
674
674
  cache_control?: {
675
675
  type: "ephemeral";
@@ -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";
@@ -743,7 +743,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
743
743
  } | undefined;
744
744
  }>]>, "many">]>;
745
745
  }, "strip", z.ZodTypeAny, {
746
- role: "user" | "assistant";
747
746
  content: string | ({
748
747
  type: "text";
749
748
  text: string;
@@ -752,15 +751,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
752
751
  } | undefined;
753
752
  } | {
754
753
  type: "tool_use";
755
- id: string;
756
754
  name: string;
755
+ id: string;
757
756
  input: Record<string, any>;
758
757
  cache_control?: {
759
758
  type: "ephemeral";
760
759
  } | undefined;
761
760
  } | {
762
- type: "tool_result";
763
761
  content: string;
762
+ type: "tool_result";
764
763
  tool_use_id: string;
765
764
  cache_control?: {
766
765
  type: "ephemeral";
@@ -776,8 +775,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
776
775
  type: "ephemeral";
777
776
  } | undefined;
778
777
  })[];
779
- }, {
780
778
  role: "user" | "assistant";
779
+ }, {
781
780
  content: string | ({
782
781
  type: "text";
783
782
  text: string;
@@ -786,15 +785,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
786
785
  } | undefined;
787
786
  } | {
788
787
  type: "tool_use";
789
- id: string;
790
788
  name: string;
789
+ id: string;
791
790
  input: Record<string, any>;
792
791
  cache_control?: {
793
792
  type: "ephemeral";
794
793
  } | undefined;
795
794
  } | {
796
- type: "tool_result";
797
795
  content: string;
796
+ type: "tool_result";
798
797
  tool_use_id: string;
799
798
  cache_control?: {
800
799
  type: "ephemeral";
@@ -810,6 +809,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
810
809
  type: "ephemeral";
811
810
  } | undefined;
812
811
  })[];
812
+ role: "user" | "assistant";
813
813
  }>, "many">;
814
814
  }, "strip", z.ZodTypeAny, {
815
815
  agentContext: string;
@@ -819,8 +819,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
819
819
  fileTokenScores: Record<string, Record<string, number>>;
820
820
  knowledgeFiles: Record<string, string>;
821
821
  gitChanges: {
822
- diff: string;
823
822
  status: string;
823
+ diff: string;
824
824
  diffCached: string;
825
825
  lastCommitMessages: string;
826
826
  };
@@ -841,7 +841,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
841
841
  userKnowledgeFiles?: Record<string, string> | undefined;
842
842
  };
843
843
  messageHistory: {
844
- role: "user" | "assistant";
845
844
  content: string | ({
846
845
  type: "text";
847
846
  text: string;
@@ -850,15 +849,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
850
849
  } | undefined;
851
850
  } | {
852
851
  type: "tool_use";
853
- id: string;
854
852
  name: string;
853
+ id: string;
855
854
  input: Record<string, any>;
856
855
  cache_control?: {
857
856
  type: "ephemeral";
858
857
  } | undefined;
859
858
  } | {
860
- type: "tool_result";
861
859
  content: string;
860
+ type: "tool_result";
862
861
  tool_use_id: string;
863
862
  cache_control?: {
864
863
  type: "ephemeral";
@@ -874,6 +873,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
874
873
  type: "ephemeral";
875
874
  } | undefined;
876
875
  })[];
876
+ role: "user" | "assistant";
877
877
  }[];
878
878
  }, {
879
879
  agentContext: string;
@@ -883,8 +883,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
883
883
  fileTokenScores: Record<string, Record<string, number>>;
884
884
  knowledgeFiles: Record<string, string>;
885
885
  gitChanges: {
886
- diff: string;
887
886
  status: string;
887
+ diff: string;
888
888
  diffCached: string;
889
889
  lastCommitMessages: string;
890
890
  };
@@ -905,7 +905,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
905
905
  userKnowledgeFiles?: Record<string, string> | undefined;
906
906
  };
907
907
  messageHistory: {
908
- role: "user" | "assistant";
909
908
  content: string | ({
910
909
  type: "text";
911
910
  text: string;
@@ -914,15 +913,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
914
913
  } | undefined;
915
914
  } | {
916
915
  type: "tool_use";
917
- id: string;
918
916
  name: string;
917
+ id: string;
919
918
  input: Record<string, any>;
920
919
  cache_control?: {
921
920
  type: "ephemeral";
922
921
  } | undefined;
923
922
  } | {
924
- type: "tool_result";
925
923
  content: string;
924
+ type: "tool_result";
926
925
  tool_use_id: string;
927
926
  cache_control?: {
928
927
  type: "ephemeral";
@@ -938,6 +937,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
938
937
  type: "ephemeral";
939
938
  } | undefined;
940
939
  })[];
940
+ role: "user" | "assistant";
941
941
  }[];
942
942
  }>;
943
943
  toolResults: z.ZodArray<z.ZodObject<{
@@ -945,18 +945,18 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
945
945
  result: z.ZodString;
946
946
  id: z.ZodString;
947
947
  }, "strip", z.ZodTypeAny, {
948
- id: string;
949
948
  name: string;
949
+ id: string;
950
950
  result: string;
951
951
  }, {
952
- id: string;
953
952
  name: string;
953
+ id: string;
954
954
  result: string;
955
955
  }>, "many">;
956
956
  }, "strip", z.ZodTypeAny, {
957
957
  type: "prompt";
958
958
  fingerprintId: string;
959
- costMode: "lite" | "normal" | "max";
959
+ costMode: "max" | "lite" | "normal";
960
960
  promptId: string;
961
961
  agentState: {
962
962
  agentContext: string;
@@ -966,8 +966,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
966
966
  fileTokenScores: Record<string, Record<string, number>>;
967
967
  knowledgeFiles: Record<string, string>;
968
968
  gitChanges: {
969
- diff: string;
970
969
  status: string;
970
+ diff: string;
971
971
  diffCached: string;
972
972
  lastCommitMessages: string;
973
973
  };
@@ -988,7 +988,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
988
988
  userKnowledgeFiles?: Record<string, string> | undefined;
989
989
  };
990
990
  messageHistory: {
991
- role: "user" | "assistant";
992
991
  content: string | ({
993
992
  type: "text";
994
993
  text: string;
@@ -997,15 +996,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
997
996
  } | undefined;
998
997
  } | {
999
998
  type: "tool_use";
1000
- id: string;
1001
999
  name: string;
1000
+ id: string;
1002
1001
  input: Record<string, any>;
1003
1002
  cache_control?: {
1004
1003
  type: "ephemeral";
1005
1004
  } | undefined;
1006
1005
  } | {
1007
- type: "tool_result";
1008
1006
  content: string;
1007
+ type: "tool_result";
1009
1008
  tool_use_id: string;
1010
1009
  cache_control?: {
1011
1010
  type: "ephemeral";
@@ -1021,11 +1020,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1021
1020
  type: "ephemeral";
1022
1021
  } | undefined;
1023
1022
  })[];
1023
+ role: "user" | "assistant";
1024
1024
  }[];
1025
1025
  };
1026
1026
  toolResults: {
1027
- id: string;
1028
1027
  name: string;
1028
+ id: string;
1029
1029
  result: string;
1030
1030
  }[];
1031
1031
  authToken?: string | undefined;
@@ -1042,8 +1042,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1042
1042
  fileTokenScores: Record<string, Record<string, number>>;
1043
1043
  knowledgeFiles: Record<string, string>;
1044
1044
  gitChanges: {
1045
- diff: string;
1046
1045
  status: string;
1046
+ diff: string;
1047
1047
  diffCached: string;
1048
1048
  lastCommitMessages: string;
1049
1049
  };
@@ -1064,7 +1064,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1064
1064
  userKnowledgeFiles?: Record<string, string> | undefined;
1065
1065
  };
1066
1066
  messageHistory: {
1067
- role: "user" | "assistant";
1068
1067
  content: string | ({
1069
1068
  type: "text";
1070
1069
  text: string;
@@ -1073,15 +1072,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1073
1072
  } | undefined;
1074
1073
  } | {
1075
1074
  type: "tool_use";
1076
- id: string;
1077
1075
  name: string;
1076
+ id: string;
1078
1077
  input: Record<string, any>;
1079
1078
  cache_control?: {
1080
1079
  type: "ephemeral";
1081
1080
  } | undefined;
1082
1081
  } | {
1083
- type: "tool_result";
1084
1082
  content: string;
1083
+ type: "tool_result";
1085
1084
  tool_use_id: string;
1086
1085
  cache_control?: {
1087
1086
  type: "ephemeral";
@@ -1097,15 +1096,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1097
1096
  type: "ephemeral";
1098
1097
  } | undefined;
1099
1098
  })[];
1099
+ role: "user" | "assistant";
1100
1100
  }[];
1101
1101
  };
1102
1102
  toolResults: {
1103
- id: string;
1104
1103
  name: string;
1104
+ id: string;
1105
1105
  result: string;
1106
1106
  }[];
1107
1107
  authToken?: string | undefined;
1108
- costMode?: "lite" | "normal" | "max" | undefined;
1108
+ costMode?: "max" | "lite" | "normal" | undefined;
1109
1109
  prompt?: string | undefined;
1110
1110
  }>, z.ZodObject<{
1111
1111
  type: z.ZodLiteral<"read-files-response">;
@@ -1135,13 +1135,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1135
1135
  diffCached: z.ZodString;
1136
1136
  lastCommitMessages: z.ZodString;
1137
1137
  }, "strip", z.ZodTypeAny, {
1138
- diff: string;
1139
1138
  status: string;
1139
+ diff: string;
1140
1140
  diffCached: string;
1141
1141
  lastCommitMessages: string;
1142
1142
  }, {
1143
- diff: string;
1144
1143
  status: string;
1144
+ diff: string;
1145
1145
  diffCached: string;
1146
1146
  lastCommitMessages: string;
1147
1147
  }>;
@@ -1185,8 +1185,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1185
1185
  fileTokenScores: Record<string, Record<string, number>>;
1186
1186
  knowledgeFiles: Record<string, string>;
1187
1187
  gitChanges: {
1188
- diff: string;
1189
1188
  status: string;
1189
+ diff: string;
1190
1190
  diffCached: string;
1191
1191
  lastCommitMessages: string;
1192
1192
  };
@@ -1211,8 +1211,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1211
1211
  fileTokenScores: Record<string, Record<string, number>>;
1212
1212
  knowledgeFiles: Record<string, string>;
1213
1213
  gitChanges: {
1214
- diff: string;
1215
1214
  status: string;
1215
+ diff: string;
1216
1216
  diffCached: string;
1217
1217
  lastCommitMessages: string;
1218
1218
  };
@@ -1240,8 +1240,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1240
1240
  fileTokenScores: Record<string, Record<string, number>>;
1241
1241
  knowledgeFiles: Record<string, string>;
1242
1242
  gitChanges: {
1243
- diff: string;
1244
1243
  status: string;
1244
+ diff: string;
1245
1245
  diffCached: string;
1246
1246
  lastCommitMessages: string;
1247
1247
  };
@@ -1271,8 +1271,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1271
1271
  fileTokenScores: Record<string, Record<string, number>>;
1272
1272
  knowledgeFiles: Record<string, string>;
1273
1273
  gitChanges: {
1274
- diff: string;
1275
1274
  status: string;
1275
+ diff: string;
1276
1276
  diffCached: string;
1277
1277
  lastCommitMessages: string;
1278
1278
  };
@@ -1386,26 +1386,26 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1386
1386
  path: z.ZodString;
1387
1387
  content: z.ZodString;
1388
1388
  }, "strip", z.ZodTypeAny, {
1389
- type: "patch" | "file";
1390
1389
  path: string;
1391
1390
  content: string;
1391
+ type: "file" | "patch";
1392
1392
  }, {
1393
- type: "patch" | "file";
1394
1393
  path: string;
1395
1394
  content: string;
1395
+ type: "file" | "patch";
1396
1396
  }>, "many">;
1397
1397
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1398
1398
  type: z.ZodEnum<["patch", "file"]>;
1399
1399
  path: z.ZodString;
1400
1400
  content: z.ZodString;
1401
1401
  }, "strip", z.ZodTypeAny, {
1402
- type: "patch" | "file";
1403
1402
  path: string;
1404
1403
  content: string;
1404
+ type: "file" | "patch";
1405
1405
  }, {
1406
- type: "patch" | "file";
1407
1406
  path: string;
1408
1407
  content: string;
1408
+ type: "file" | "patch";
1409
1409
  }>, "many">;
1410
1410
  addedFileVersions: z.ZodArray<z.ZodObject<{
1411
1411
  path: z.ZodString;
@@ -1429,15 +1429,15 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1429
1429
  type: "response-complete";
1430
1430
  userInputId: string;
1431
1431
  changesAlreadyApplied: {
1432
- type: "patch" | "file";
1433
1432
  path: string;
1434
1433
  content: string;
1434
+ type: "file" | "patch";
1435
1435
  }[];
1436
1436
  response: string;
1437
1437
  changes: {
1438
- type: "patch" | "file";
1439
1438
  path: string;
1440
1439
  content: string;
1440
+ type: "file" | "patch";
1441
1441
  }[];
1442
1442
  addedFileVersions: {
1443
1443
  path: string;
@@ -1454,15 +1454,15 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1454
1454
  type: "response-complete";
1455
1455
  userInputId: string;
1456
1456
  changesAlreadyApplied: {
1457
- type: "patch" | "file";
1458
1457
  path: string;
1459
1458
  content: string;
1459
+ type: "file" | "patch";
1460
1460
  }[];
1461
1461
  response: string;
1462
1462
  changes: {
1463
- type: "patch" | "file";
1464
1463
  path: string;
1465
1464
  content: string;
1465
+ type: "file" | "patch";
1466
1466
  }[];
1467
1467
  addedFileVersions: {
1468
1468
  path: string;
@@ -1493,13 +1493,13 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1493
1493
  diffCached: z.ZodString;
1494
1494
  lastCommitMessages: z.ZodString;
1495
1495
  }, "strip", z.ZodTypeAny, {
1496
- diff: string;
1497
1496
  status: string;
1497
+ diff: string;
1498
1498
  diffCached: string;
1499
1499
  lastCommitMessages: string;
1500
1500
  }, {
1501
- diff: string;
1502
1501
  status: string;
1502
+ diff: string;
1503
1503
  diffCached: string;
1504
1504
  lastCommitMessages: string;
1505
1505
  }>;
@@ -1543,8 +1543,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1543
1543
  fileTokenScores: Record<string, Record<string, number>>;
1544
1544
  knowledgeFiles: Record<string, string>;
1545
1545
  gitChanges: {
1546
- diff: string;
1547
1546
  status: string;
1547
+ diff: string;
1548
1548
  diffCached: string;
1549
1549
  lastCommitMessages: string;
1550
1550
  };
@@ -1569,8 +1569,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1569
1569
  fileTokenScores: Record<string, Record<string, number>>;
1570
1570
  knowledgeFiles: Record<string, string>;
1571
1571
  gitChanges: {
1572
- diff: string;
1573
1572
  status: string;
1573
+ diff: string;
1574
1574
  diffCached: string;
1575
1575
  lastCommitMessages: string;
1576
1576
  };
@@ -1628,16 +1628,16 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1628
1628
  }>>;
1629
1629
  }, "strip", z.ZodTypeAny, {
1630
1630
  type: "tool_use";
1631
- id: string;
1632
1631
  name: string;
1632
+ id: string;
1633
1633
  input: Record<string, any>;
1634
1634
  cache_control?: {
1635
1635
  type: "ephemeral";
1636
1636
  } | undefined;
1637
1637
  }, {
1638
1638
  type: "tool_use";
1639
- id: string;
1640
1639
  name: string;
1640
+ id: string;
1641
1641
  input: Record<string, any>;
1642
1642
  cache_control?: {
1643
1643
  type: "ephemeral";
@@ -1654,15 +1654,15 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1654
1654
  type: "ephemeral";
1655
1655
  }>>;
1656
1656
  }, "strip", z.ZodTypeAny, {
1657
- type: "tool_result";
1658
1657
  content: string;
1658
+ type: "tool_result";
1659
1659
  tool_use_id: string;
1660
1660
  cache_control?: {
1661
1661
  type: "ephemeral";
1662
1662
  } | undefined;
1663
1663
  }, {
1664
- type: "tool_result";
1665
1664
  content: string;
1665
+ type: "tool_result";
1666
1666
  tool_use_id: string;
1667
1667
  cache_control?: {
1668
1668
  type: "ephemeral";
@@ -1711,7 +1711,6 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1711
1711
  } | undefined;
1712
1712
  }>]>, "many">]>;
1713
1713
  }, "strip", z.ZodTypeAny, {
1714
- role: "user" | "assistant";
1715
1714
  content: string | ({
1716
1715
  type: "text";
1717
1716
  text: string;
@@ -1720,15 +1719,15 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1720
1719
  } | undefined;
1721
1720
  } | {
1722
1721
  type: "tool_use";
1723
- id: string;
1724
1722
  name: string;
1723
+ id: string;
1725
1724
  input: Record<string, any>;
1726
1725
  cache_control?: {
1727
1726
  type: "ephemeral";
1728
1727
  } | undefined;
1729
1728
  } | {
1730
- type: "tool_result";
1731
1729
  content: string;
1730
+ type: "tool_result";
1732
1731
  tool_use_id: string;
1733
1732
  cache_control?: {
1734
1733
  type: "ephemeral";
@@ -1744,8 +1743,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1744
1743
  type: "ephemeral";
1745
1744
  } | undefined;
1746
1745
  })[];
1747
- }, {
1748
1746
  role: "user" | "assistant";
1747
+ }, {
1749
1748
  content: string | ({
1750
1749
  type: "text";
1751
1750
  text: string;
@@ -1754,15 +1753,15 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1754
1753
  } | undefined;
1755
1754
  } | {
1756
1755
  type: "tool_use";
1757
- id: string;
1758
1756
  name: string;
1757
+ id: string;
1759
1758
  input: Record<string, any>;
1760
1759
  cache_control?: {
1761
1760
  type: "ephemeral";
1762
1761
  } | undefined;
1763
1762
  } | {
1764
- type: "tool_result";
1765
1763
  content: string;
1764
+ type: "tool_result";
1766
1765
  tool_use_id: string;
1767
1766
  cache_control?: {
1768
1767
  type: "ephemeral";
@@ -1778,6 +1777,7 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1778
1777
  type: "ephemeral";
1779
1778
  } | undefined;
1780
1779
  })[];
1780
+ role: "user" | "assistant";
1781
1781
  }>, "many">;
1782
1782
  }, "strip", z.ZodTypeAny, {
1783
1783
  agentContext: string;
@@ -1787,8 +1787,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1787
1787
  fileTokenScores: Record<string, Record<string, number>>;
1788
1788
  knowledgeFiles: Record<string, string>;
1789
1789
  gitChanges: {
1790
- diff: string;
1791
1790
  status: string;
1791
+ diff: string;
1792
1792
  diffCached: string;
1793
1793
  lastCommitMessages: string;
1794
1794
  };
@@ -1809,7 +1809,6 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1809
1809
  userKnowledgeFiles?: Record<string, string> | undefined;
1810
1810
  };
1811
1811
  messageHistory: {
1812
- role: "user" | "assistant";
1813
1812
  content: string | ({
1814
1813
  type: "text";
1815
1814
  text: string;
@@ -1818,15 +1817,15 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1818
1817
  } | undefined;
1819
1818
  } | {
1820
1819
  type: "tool_use";
1821
- id: string;
1822
1820
  name: string;
1821
+ id: string;
1823
1822
  input: Record<string, any>;
1824
1823
  cache_control?: {
1825
1824
  type: "ephemeral";
1826
1825
  } | undefined;
1827
1826
  } | {
1828
- type: "tool_result";
1829
1827
  content: string;
1828
+ type: "tool_result";
1830
1829
  tool_use_id: string;
1831
1830
  cache_control?: {
1832
1831
  type: "ephemeral";
@@ -1842,6 +1841,7 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1842
1841
  type: "ephemeral";
1843
1842
  } | undefined;
1844
1843
  })[];
1844
+ role: "user" | "assistant";
1845
1845
  }[];
1846
1846
  }, {
1847
1847
  agentContext: string;
@@ -1851,8 +1851,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1851
1851
  fileTokenScores: Record<string, Record<string, number>>;
1852
1852
  knowledgeFiles: Record<string, string>;
1853
1853
  gitChanges: {
1854
- diff: string;
1855
1854
  status: string;
1855
+ diff: string;
1856
1856
  diffCached: string;
1857
1857
  lastCommitMessages: string;
1858
1858
  };
@@ -1873,7 +1873,6 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1873
1873
  userKnowledgeFiles?: Record<string, string> | undefined;
1874
1874
  };
1875
1875
  messageHistory: {
1876
- role: "user" | "assistant";
1877
1876
  content: string | ({
1878
1877
  type: "text";
1879
1878
  text: string;
@@ -1882,15 +1881,15 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1882
1881
  } | undefined;
1883
1882
  } | {
1884
1883
  type: "tool_use";
1885
- id: string;
1886
1884
  name: string;
1885
+ id: string;
1887
1886
  input: Record<string, any>;
1888
1887
  cache_control?: {
1889
1888
  type: "ephemeral";
1890
1889
  } | undefined;
1891
1890
  } | {
1892
- type: "tool_result";
1893
1891
  content: string;
1892
+ type: "tool_result";
1894
1893
  tool_use_id: string;
1895
1894
  cache_control?: {
1896
1895
  type: "ephemeral";
@@ -1906,6 +1905,7 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1906
1905
  type: "ephemeral";
1907
1906
  } | undefined;
1908
1907
  })[];
1908
+ role: "user" | "assistant";
1909
1909
  }[];
1910
1910
  }>;
1911
1911
  toolCalls: z.ZodArray<z.ZodObject<{
@@ -1913,12 +1913,12 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1913
1913
  parameters: z.ZodRecord<z.ZodString, z.ZodString>;
1914
1914
  id: z.ZodString;
1915
1915
  }, "strip", z.ZodTypeAny, {
1916
- id: string;
1917
1916
  name: string;
1917
+ id: string;
1918
1918
  parameters: Record<string, string>;
1919
1919
  }, {
1920
- id: string;
1921
1920
  name: string;
1921
+ id: string;
1922
1922
  parameters: Record<string, string>;
1923
1923
  }>, "many">;
1924
1924
  toolResults: z.ZodArray<z.ZodObject<{
@@ -1926,12 +1926,12 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1926
1926
  result: z.ZodString;
1927
1927
  id: z.ZodString;
1928
1928
  }, "strip", z.ZodTypeAny, {
1929
- id: string;
1930
1929
  name: string;
1930
+ id: string;
1931
1931
  result: string;
1932
1932
  }, {
1933
- id: string;
1934
1933
  name: string;
1934
+ id: string;
1935
1935
  result: string;
1936
1936
  }>, "many">;
1937
1937
  }, {
@@ -1952,8 +1952,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1952
1952
  fileTokenScores: Record<string, Record<string, number>>;
1953
1953
  knowledgeFiles: Record<string, string>;
1954
1954
  gitChanges: {
1955
- diff: string;
1956
1955
  status: string;
1956
+ diff: string;
1957
1957
  diffCached: string;
1958
1958
  lastCommitMessages: string;
1959
1959
  };
@@ -1974,7 +1974,6 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1974
1974
  userKnowledgeFiles?: Record<string, string> | undefined;
1975
1975
  };
1976
1976
  messageHistory: {
1977
- role: "user" | "assistant";
1978
1977
  content: string | ({
1979
1978
  type: "text";
1980
1979
  text: string;
@@ -1983,15 +1982,15 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1983
1982
  } | undefined;
1984
1983
  } | {
1985
1984
  type: "tool_use";
1986
- id: string;
1987
1985
  name: string;
1986
+ id: string;
1988
1987
  input: Record<string, any>;
1989
1988
  cache_control?: {
1990
1989
  type: "ephemeral";
1991
1990
  } | undefined;
1992
1991
  } | {
1993
- type: "tool_result";
1994
1992
  content: string;
1993
+ type: "tool_result";
1995
1994
  tool_use_id: string;
1996
1995
  cache_control?: {
1997
1996
  type: "ephemeral";
@@ -2007,16 +2006,17 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
2007
2006
  type: "ephemeral";
2008
2007
  } | undefined;
2009
2008
  })[];
2009
+ role: "user" | "assistant";
2010
2010
  }[];
2011
2011
  };
2012
2012
  toolResults: {
2013
- id: string;
2014
2013
  name: string;
2014
+ id: string;
2015
2015
  result: string;
2016
2016
  }[];
2017
2017
  toolCalls: {
2018
- id: string;
2019
2018
  name: string;
2019
+ id: string;
2020
2020
  parameters: Record<string, string>;
2021
2021
  }[];
2022
2022
  usage?: number | undefined;
@@ -2036,8 +2036,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
2036
2036
  fileTokenScores: Record<string, Record<string, number>>;
2037
2037
  knowledgeFiles: Record<string, string>;
2038
2038
  gitChanges: {
2039
- diff: string;
2040
2039
  status: string;
2040
+ diff: string;
2041
2041
  diffCached: string;
2042
2042
  lastCommitMessages: string;
2043
2043
  };
@@ -2058,7 +2058,6 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
2058
2058
  userKnowledgeFiles?: Record<string, string> | undefined;
2059
2059
  };
2060
2060
  messageHistory: {
2061
- role: "user" | "assistant";
2062
2061
  content: string | ({
2063
2062
  type: "text";
2064
2063
  text: string;
@@ -2067,15 +2066,15 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
2067
2066
  } | undefined;
2068
2067
  } | {
2069
2068
  type: "tool_use";
2070
- id: string;
2071
2069
  name: string;
2070
+ id: string;
2072
2071
  input: Record<string, any>;
2073
2072
  cache_control?: {
2074
2073
  type: "ephemeral";
2075
2074
  } | undefined;
2076
2075
  } | {
2077
- type: "tool_result";
2078
2076
  content: string;
2077
+ type: "tool_result";
2079
2078
  tool_use_id: string;
2080
2079
  cache_control?: {
2081
2080
  type: "ephemeral";
@@ -2091,16 +2090,17 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
2091
2090
  type: "ephemeral";
2092
2091
  } | undefined;
2093
2092
  })[];
2093
+ role: "user" | "assistant";
2094
2094
  }[];
2095
2095
  };
2096
2096
  toolResults: {
2097
- id: string;
2098
2097
  name: string;
2098
+ id: string;
2099
2099
  result: string;
2100
2100
  }[];
2101
2101
  toolCalls: {
2102
- id: string;
2103
2102
  name: string;
2103
+ id: string;
2104
2104
  parameters: Record<string, string>;
2105
2105
  }[];
2106
2106
  usage?: number | undefined;
@@ -2132,26 +2132,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2132
2132
  path: z.ZodString;
2133
2133
  content: z.ZodString;
2134
2134
  }, "strip", z.ZodTypeAny, {
2135
- type: "patch" | "file";
2136
2135
  path: string;
2137
2136
  content: string;
2137
+ type: "file" | "patch";
2138
2138
  }, {
2139
- type: "patch" | "file";
2140
2139
  path: string;
2141
2140
  content: string;
2141
+ type: "file" | "patch";
2142
2142
  }>, "many">;
2143
2143
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2144
2144
  type: z.ZodEnum<["patch", "file"]>;
2145
2145
  path: z.ZodString;
2146
2146
  content: z.ZodString;
2147
2147
  }, "strip", z.ZodTypeAny, {
2148
- type: "patch" | "file";
2149
2148
  path: string;
2150
2149
  content: string;
2150
+ type: "file" | "patch";
2151
2151
  }, {
2152
- type: "patch" | "file";
2153
2152
  path: string;
2154
2153
  content: string;
2154
+ type: "file" | "patch";
2155
2155
  }>, "many">;
2156
2156
  addedFileVersions: z.ZodArray<z.ZodObject<{
2157
2157
  path: z.ZodString;
@@ -2175,15 +2175,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2175
2175
  type: "response-complete";
2176
2176
  userInputId: string;
2177
2177
  changesAlreadyApplied: {
2178
- type: "patch" | "file";
2179
2178
  path: string;
2180
2179
  content: string;
2180
+ type: "file" | "patch";
2181
2181
  }[];
2182
2182
  response: string;
2183
2183
  changes: {
2184
- type: "patch" | "file";
2185
2184
  path: string;
2186
2185
  content: string;
2186
+ type: "file" | "patch";
2187
2187
  }[];
2188
2188
  addedFileVersions: {
2189
2189
  path: string;
@@ -2200,15 +2200,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2200
2200
  type: "response-complete";
2201
2201
  userInputId: string;
2202
2202
  changesAlreadyApplied: {
2203
- type: "patch" | "file";
2204
2203
  path: string;
2205
2204
  content: string;
2205
+ type: "file" | "patch";
2206
2206
  }[];
2207
2207
  response: string;
2208
2208
  changes: {
2209
- type: "patch" | "file";
2210
2209
  path: string;
2211
2210
  content: string;
2211
+ type: "file" | "patch";
2212
2212
  }[];
2213
2213
  addedFileVersions: {
2214
2214
  path: string;
@@ -2238,13 +2238,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2238
2238
  diffCached: z.ZodString;
2239
2239
  lastCommitMessages: z.ZodString;
2240
2240
  }, "strip", z.ZodTypeAny, {
2241
- diff: string;
2242
2241
  status: string;
2242
+ diff: string;
2243
2243
  diffCached: string;
2244
2244
  lastCommitMessages: string;
2245
2245
  }, {
2246
- diff: string;
2247
2246
  status: string;
2247
+ diff: string;
2248
2248
  diffCached: string;
2249
2249
  lastCommitMessages: string;
2250
2250
  }>;
@@ -2288,8 +2288,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2288
2288
  fileTokenScores: Record<string, Record<string, number>>;
2289
2289
  knowledgeFiles: Record<string, string>;
2290
2290
  gitChanges: {
2291
- diff: string;
2292
2291
  status: string;
2292
+ diff: string;
2293
2293
  diffCached: string;
2294
2294
  lastCommitMessages: string;
2295
2295
  };
@@ -2314,8 +2314,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2314
2314
  fileTokenScores: Record<string, Record<string, number>>;
2315
2315
  knowledgeFiles: Record<string, string>;
2316
2316
  gitChanges: {
2317
- diff: string;
2318
2317
  status: string;
2318
+ diff: string;
2319
2319
  diffCached: string;
2320
2320
  lastCommitMessages: string;
2321
2321
  };
@@ -2373,16 +2373,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2373
2373
  }>>;
2374
2374
  }, "strip", z.ZodTypeAny, {
2375
2375
  type: "tool_use";
2376
- id: string;
2377
2376
  name: string;
2377
+ id: string;
2378
2378
  input: Record<string, any>;
2379
2379
  cache_control?: {
2380
2380
  type: "ephemeral";
2381
2381
  } | undefined;
2382
2382
  }, {
2383
2383
  type: "tool_use";
2384
- id: string;
2385
2384
  name: string;
2385
+ id: string;
2386
2386
  input: Record<string, any>;
2387
2387
  cache_control?: {
2388
2388
  type: "ephemeral";
@@ -2399,15 +2399,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2399
2399
  type: "ephemeral";
2400
2400
  }>>;
2401
2401
  }, "strip", z.ZodTypeAny, {
2402
- type: "tool_result";
2403
2402
  content: string;
2403
+ type: "tool_result";
2404
2404
  tool_use_id: string;
2405
2405
  cache_control?: {
2406
2406
  type: "ephemeral";
2407
2407
  } | undefined;
2408
2408
  }, {
2409
- type: "tool_result";
2410
2409
  content: string;
2410
+ type: "tool_result";
2411
2411
  tool_use_id: string;
2412
2412
  cache_control?: {
2413
2413
  type: "ephemeral";
@@ -2456,7 +2456,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2456
2456
  } | undefined;
2457
2457
  }>]>, "many">]>;
2458
2458
  }, "strip", z.ZodTypeAny, {
2459
- role: "user" | "assistant";
2460
2459
  content: string | ({
2461
2460
  type: "text";
2462
2461
  text: string;
@@ -2465,15 +2464,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2465
2464
  } | undefined;
2466
2465
  } | {
2467
2466
  type: "tool_use";
2468
- id: string;
2469
2467
  name: string;
2468
+ id: string;
2470
2469
  input: Record<string, any>;
2471
2470
  cache_control?: {
2472
2471
  type: "ephemeral";
2473
2472
  } | undefined;
2474
2473
  } | {
2475
- type: "tool_result";
2476
2474
  content: string;
2475
+ type: "tool_result";
2477
2476
  tool_use_id: string;
2478
2477
  cache_control?: {
2479
2478
  type: "ephemeral";
@@ -2489,8 +2488,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2489
2488
  type: "ephemeral";
2490
2489
  } | undefined;
2491
2490
  })[];
2492
- }, {
2493
2491
  role: "user" | "assistant";
2492
+ }, {
2494
2493
  content: string | ({
2495
2494
  type: "text";
2496
2495
  text: string;
@@ -2499,15 +2498,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2499
2498
  } | undefined;
2500
2499
  } | {
2501
2500
  type: "tool_use";
2502
- id: string;
2503
2501
  name: string;
2502
+ id: string;
2504
2503
  input: Record<string, any>;
2505
2504
  cache_control?: {
2506
2505
  type: "ephemeral";
2507
2506
  } | undefined;
2508
2507
  } | {
2509
- type: "tool_result";
2510
2508
  content: string;
2509
+ type: "tool_result";
2511
2510
  tool_use_id: string;
2512
2511
  cache_control?: {
2513
2512
  type: "ephemeral";
@@ -2523,6 +2522,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2523
2522
  type: "ephemeral";
2524
2523
  } | undefined;
2525
2524
  })[];
2525
+ role: "user" | "assistant";
2526
2526
  }>, "many">;
2527
2527
  }, "strip", z.ZodTypeAny, {
2528
2528
  agentContext: string;
@@ -2532,8 +2532,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2532
2532
  fileTokenScores: Record<string, Record<string, number>>;
2533
2533
  knowledgeFiles: Record<string, string>;
2534
2534
  gitChanges: {
2535
- diff: string;
2536
2535
  status: string;
2536
+ diff: string;
2537
2537
  diffCached: string;
2538
2538
  lastCommitMessages: string;
2539
2539
  };
@@ -2554,7 +2554,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2554
2554
  userKnowledgeFiles?: Record<string, string> | undefined;
2555
2555
  };
2556
2556
  messageHistory: {
2557
- role: "user" | "assistant";
2558
2557
  content: string | ({
2559
2558
  type: "text";
2560
2559
  text: string;
@@ -2563,15 +2562,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2563
2562
  } | undefined;
2564
2563
  } | {
2565
2564
  type: "tool_use";
2566
- id: string;
2567
2565
  name: string;
2566
+ id: string;
2568
2567
  input: Record<string, any>;
2569
2568
  cache_control?: {
2570
2569
  type: "ephemeral";
2571
2570
  } | undefined;
2572
2571
  } | {
2573
- type: "tool_result";
2574
2572
  content: string;
2573
+ type: "tool_result";
2575
2574
  tool_use_id: string;
2576
2575
  cache_control?: {
2577
2576
  type: "ephemeral";
@@ -2587,6 +2586,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2587
2586
  type: "ephemeral";
2588
2587
  } | undefined;
2589
2588
  })[];
2589
+ role: "user" | "assistant";
2590
2590
  }[];
2591
2591
  }, {
2592
2592
  agentContext: string;
@@ -2596,8 +2596,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2596
2596
  fileTokenScores: Record<string, Record<string, number>>;
2597
2597
  knowledgeFiles: Record<string, string>;
2598
2598
  gitChanges: {
2599
- diff: string;
2600
2599
  status: string;
2600
+ diff: string;
2601
2601
  diffCached: string;
2602
2602
  lastCommitMessages: string;
2603
2603
  };
@@ -2618,7 +2618,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2618
2618
  userKnowledgeFiles?: Record<string, string> | undefined;
2619
2619
  };
2620
2620
  messageHistory: {
2621
- role: "user" | "assistant";
2622
2621
  content: string | ({
2623
2622
  type: "text";
2624
2623
  text: string;
@@ -2627,15 +2626,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2627
2626
  } | undefined;
2628
2627
  } | {
2629
2628
  type: "tool_use";
2630
- id: string;
2631
2629
  name: string;
2630
+ id: string;
2632
2631
  input: Record<string, any>;
2633
2632
  cache_control?: {
2634
2633
  type: "ephemeral";
2635
2634
  } | undefined;
2636
2635
  } | {
2637
- type: "tool_result";
2638
2636
  content: string;
2637
+ type: "tool_result";
2639
2638
  tool_use_id: string;
2640
2639
  cache_control?: {
2641
2640
  type: "ephemeral";
@@ -2651,6 +2650,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2651
2650
  type: "ephemeral";
2652
2651
  } | undefined;
2653
2652
  })[];
2653
+ role: "user" | "assistant";
2654
2654
  }[];
2655
2655
  }>;
2656
2656
  toolCalls: z.ZodArray<z.ZodObject<{
@@ -2658,12 +2658,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2658
2658
  parameters: z.ZodRecord<z.ZodString, z.ZodString>;
2659
2659
  id: z.ZodString;
2660
2660
  }, "strip", z.ZodTypeAny, {
2661
- id: string;
2662
2661
  name: string;
2662
+ id: string;
2663
2663
  parameters: Record<string, string>;
2664
2664
  }, {
2665
- id: string;
2666
2665
  name: string;
2666
+ id: string;
2667
2667
  parameters: Record<string, string>;
2668
2668
  }>, "many">;
2669
2669
  toolResults: z.ZodArray<z.ZodObject<{
@@ -2671,12 +2671,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2671
2671
  result: z.ZodString;
2672
2672
  id: z.ZodString;
2673
2673
  }, "strip", z.ZodTypeAny, {
2674
- id: string;
2675
2674
  name: string;
2675
+ id: string;
2676
2676
  result: string;
2677
2677
  }, {
2678
- id: string;
2679
2678
  name: string;
2679
+ id: string;
2680
2680
  result: string;
2681
2681
  }>, "many">;
2682
2682
  }, {
@@ -2697,8 +2697,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2697
2697
  fileTokenScores: Record<string, Record<string, number>>;
2698
2698
  knowledgeFiles: Record<string, string>;
2699
2699
  gitChanges: {
2700
- diff: string;
2701
2700
  status: string;
2701
+ diff: string;
2702
2702
  diffCached: string;
2703
2703
  lastCommitMessages: string;
2704
2704
  };
@@ -2719,7 +2719,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2719
2719
  userKnowledgeFiles?: Record<string, string> | undefined;
2720
2720
  };
2721
2721
  messageHistory: {
2722
- role: "user" | "assistant";
2723
2722
  content: string | ({
2724
2723
  type: "text";
2725
2724
  text: string;
@@ -2728,15 +2727,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2728
2727
  } | undefined;
2729
2728
  } | {
2730
2729
  type: "tool_use";
2731
- id: string;
2732
2730
  name: string;
2731
+ id: string;
2733
2732
  input: Record<string, any>;
2734
2733
  cache_control?: {
2735
2734
  type: "ephemeral";
2736
2735
  } | undefined;
2737
2736
  } | {
2738
- type: "tool_result";
2739
2737
  content: string;
2738
+ type: "tool_result";
2740
2739
  tool_use_id: string;
2741
2740
  cache_control?: {
2742
2741
  type: "ephemeral";
@@ -2752,16 +2751,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2752
2751
  type: "ephemeral";
2753
2752
  } | undefined;
2754
2753
  })[];
2754
+ role: "user" | "assistant";
2755
2755
  }[];
2756
2756
  };
2757
2757
  toolResults: {
2758
- id: string;
2759
2758
  name: string;
2759
+ id: string;
2760
2760
  result: string;
2761
2761
  }[];
2762
2762
  toolCalls: {
2763
- id: string;
2764
2763
  name: string;
2764
+ id: string;
2765
2765
  parameters: Record<string, string>;
2766
2766
  }[];
2767
2767
  usage?: number | undefined;
@@ -2781,8 +2781,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2781
2781
  fileTokenScores: Record<string, Record<string, number>>;
2782
2782
  knowledgeFiles: Record<string, string>;
2783
2783
  gitChanges: {
2784
- diff: string;
2785
2784
  status: string;
2785
+ diff: string;
2786
2786
  diffCached: string;
2787
2787
  lastCommitMessages: string;
2788
2788
  };
@@ -2803,7 +2803,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2803
2803
  userKnowledgeFiles?: Record<string, string> | undefined;
2804
2804
  };
2805
2805
  messageHistory: {
2806
- role: "user" | "assistant";
2807
2806
  content: string | ({
2808
2807
  type: "text";
2809
2808
  text: string;
@@ -2812,15 +2811,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2812
2811
  } | undefined;
2813
2812
  } | {
2814
2813
  type: "tool_use";
2815
- id: string;
2816
2814
  name: string;
2815
+ id: string;
2817
2816
  input: Record<string, any>;
2818
2817
  cache_control?: {
2819
2818
  type: "ephemeral";
2820
2819
  } | undefined;
2821
2820
  } | {
2822
- type: "tool_result";
2823
2821
  content: string;
2822
+ type: "tool_result";
2824
2823
  tool_use_id: string;
2825
2824
  cache_control?: {
2826
2825
  type: "ephemeral";
@@ -2836,16 +2835,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2836
2835
  type: "ephemeral";
2837
2836
  } | undefined;
2838
2837
  })[];
2838
+ role: "user" | "assistant";
2839
2839
  }[];
2840
2840
  };
2841
2841
  toolResults: {
2842
- id: string;
2843
2842
  name: string;
2843
+ id: string;
2844
2844
  result: string;
2845
2845
  }[];
2846
2846
  toolCalls: {
2847
- id: string;
2848
2847
  name: string;
2848
+ id: string;
2849
2849
  parameters: Record<string, string>;
2850
2850
  }[];
2851
2851
  usage?: number | undefined;
@@ -2875,12 +2875,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2875
2875
  id: z.ZodString;
2876
2876
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
2877
2877
  }, "strip", z.ZodTypeAny, {
2878
- id: string;
2879
2878
  name: string;
2879
+ id: string;
2880
2880
  input: Record<string, any>;
2881
2881
  }, {
2882
- id: string;
2883
2882
  name: string;
2883
+ id: string;
2884
2884
  input: Record<string, any>;
2885
2885
  }>;
2886
2886
  changes: z.ZodArray<z.ZodObject<{
@@ -2888,26 +2888,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2888
2888
  path: z.ZodString;
2889
2889
  content: z.ZodString;
2890
2890
  }, "strip", z.ZodTypeAny, {
2891
- type: "patch" | "file";
2892
2891
  path: string;
2893
2892
  content: string;
2893
+ type: "file" | "patch";
2894
2894
  }, {
2895
- type: "patch" | "file";
2896
2895
  path: string;
2897
2896
  content: string;
2897
+ type: "file" | "patch";
2898
2898
  }>, "many">;
2899
2899
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2900
2900
  type: z.ZodEnum<["patch", "file"]>;
2901
2901
  path: z.ZodString;
2902
2902
  content: z.ZodString;
2903
2903
  }, "strip", z.ZodTypeAny, {
2904
- type: "patch" | "file";
2905
2904
  path: string;
2906
2905
  content: string;
2906
+ type: "file" | "patch";
2907
2907
  }, {
2908
- type: "patch" | "file";
2909
2908
  path: string;
2910
2909
  content: string;
2910
+ type: "file" | "patch";
2911
2911
  }>, "many">;
2912
2912
  addedFileVersions: z.ZodArray<z.ZodObject<{
2913
2913
  path: z.ZodString;
@@ -2923,21 +2923,21 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2923
2923
  }, "strip", z.ZodTypeAny, {
2924
2924
  type: "tool-call";
2925
2925
  data: {
2926
- id: string;
2927
2926
  name: string;
2927
+ id: string;
2928
2928
  input: Record<string, any>;
2929
2929
  };
2930
2930
  userInputId: string;
2931
2931
  changesAlreadyApplied: {
2932
- type: "patch" | "file";
2933
2932
  path: string;
2934
2933
  content: string;
2934
+ type: "file" | "patch";
2935
2935
  }[];
2936
2936
  response: string;
2937
2937
  changes: {
2938
- type: "patch" | "file";
2939
2938
  path: string;
2940
2939
  content: string;
2940
+ type: "file" | "patch";
2941
2941
  }[];
2942
2942
  addedFileVersions: {
2943
2943
  path: string;
@@ -2947,21 +2947,21 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2947
2947
  }, {
2948
2948
  type: "tool-call";
2949
2949
  data: {
2950
- id: string;
2951
2950
  name: string;
2951
+ id: string;
2952
2952
  input: Record<string, any>;
2953
2953
  };
2954
2954
  userInputId: string;
2955
2955
  changesAlreadyApplied: {
2956
- type: "patch" | "file";
2957
2956
  path: string;
2958
2957
  content: string;
2958
+ type: "file" | "patch";
2959
2959
  }[];
2960
2960
  response: string;
2961
2961
  changes: {
2962
- type: "patch" | "file";
2963
2962
  path: string;
2964
2963
  content: string;
2964
+ type: "file" | "patch";
2965
2965
  }[];
2966
2966
  addedFileVersions: {
2967
2967
  path: string;
@@ -3046,11 +3046,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
3046
3046
  type: z.ZodLiteral<"action-error">;
3047
3047
  message: z.ZodString;
3048
3048
  }, "strip", z.ZodTypeAny, {
3049
- type: "action-error";
3050
3049
  message: string;
3051
- }, {
3052
3050
  type: "action-error";
3051
+ }, {
3053
3052
  message: string;
3053
+ type: "action-error";
3054
3054
  }>, z.ZodObject<{
3055
3055
  type: z.ZodLiteral<"commit-message-response">;
3056
3056
  commitMessage: z.ZodString;