codecane 1.0.172 → 1.0.173

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.
@@ -4,12 +4,12 @@ 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";
7
8
  path: string;
8
- type: "file" | "patch";
9
9
  content: string;
10
10
  }, {
11
+ type: "patch" | "file";
11
12
  path: string;
12
- type: "file" | "patch";
13
13
  content: string;
14
14
  }>;
15
15
  export type FileChange = z.infer<typeof FileChangeSchema>;
@@ -18,12 +18,12 @@ 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";
21
22
  path: string;
22
- type: "file" | "patch";
23
23
  content: string;
24
24
  }, {
25
+ type: "patch" | "file";
25
26
  path: string;
26
- type: "file" | "patch";
27
27
  content: string;
28
28
  }>, "many">;
29
29
  export type FileChanges = z.infer<typeof CHANGES>;
@@ -59,14 +59,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
59
59
  type: "ephemeral";
60
60
  }>>;
61
61
  }, "strip", z.ZodTypeAny, {
62
- text: string;
63
62
  type: "text";
63
+ text: string;
64
64
  cache_control?: {
65
65
  type: "ephemeral";
66
66
  } | undefined;
67
67
  }, {
68
- text: string;
69
68
  type: "text";
69
+ text: string;
70
70
  cache_control?: {
71
71
  type: "ephemeral";
72
72
  } | undefined;
@@ -130,13 +130,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
130
130
  media_type: z.ZodLiteral<"image/jpeg">;
131
131
  data: z.ZodString;
132
132
  }, "strip", z.ZodTypeAny, {
133
- data: string;
134
133
  type: "base64";
135
134
  media_type: "image/jpeg";
136
- }, {
137
135
  data: string;
136
+ }, {
138
137
  type: "base64";
139
138
  media_type: "image/jpeg";
139
+ data: string;
140
140
  }>;
141
141
  cache_control: z.ZodOptional<z.ZodObject<{
142
142
  type: z.ZodLiteral<"ephemeral">;
@@ -148,9 +148,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
148
148
  }, "strip", z.ZodTypeAny, {
149
149
  type: "image";
150
150
  source: {
151
- data: string;
152
151
  type: "base64";
153
152
  media_type: "image/jpeg";
153
+ data: string;
154
154
  };
155
155
  cache_control?: {
156
156
  type: "ephemeral";
@@ -158,9 +158,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
158
158
  }, {
159
159
  type: "image";
160
160
  source: {
161
- data: string;
162
161
  type: "base64";
163
162
  media_type: "image/jpeg";
163
+ data: string;
164
164
  };
165
165
  cache_control?: {
166
166
  type: "ephemeral";
@@ -168,8 +168,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
168
168
  }>]>, "many">]>;
169
169
  }, "strip", z.ZodTypeAny, {
170
170
  content: string | ({
171
- text: string;
172
171
  type: "text";
172
+ text: string;
173
173
  cache_control?: {
174
174
  type: "ephemeral";
175
175
  } | undefined;
@@ -191,9 +191,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
191
191
  } | {
192
192
  type: "image";
193
193
  source: {
194
- data: string;
195
194
  type: "base64";
196
195
  media_type: "image/jpeg";
196
+ data: string;
197
197
  };
198
198
  cache_control?: {
199
199
  type: "ephemeral";
@@ -202,8 +202,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
202
202
  role: "user" | "assistant";
203
203
  }, {
204
204
  content: string | ({
205
- text: string;
206
205
  type: "text";
206
+ text: string;
207
207
  cache_control?: {
208
208
  type: "ephemeral";
209
209
  } | undefined;
@@ -225,9 +225,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
225
225
  } | {
226
226
  type: "image";
227
227
  source: {
228
- data: string;
229
228
  type: "base64";
230
229
  media_type: "image/jpeg";
230
+ data: string;
231
231
  };
232
232
  cache_control?: {
233
233
  type: "ephemeral";
@@ -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
- status: string;
251
250
  diff: string;
251
+ status: string;
252
252
  diffCached: string;
253
253
  lastCommitMessages: string;
254
254
  }, {
255
- status: string;
256
255
  diff: string;
256
+ status: 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
- status: string;
301
300
  diff: string;
301
+ status: 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
- status: string;
327
326
  diff: string;
327
+ status: string;
328
328
  diffCached: string;
329
329
  lastCommitMessages: string;
330
330
  };
@@ -349,50 +349,23 @@ 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";
352
353
  path: string;
353
- type: "file" | "patch";
354
354
  content: string;
355
355
  }, {
356
+ type: "patch" | "file";
356
357
  path: string;
357
- type: "file" | "patch";
358
358
  content: string;
359
359
  }>, "many">;
360
360
  costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
361
361
  }, "strip", z.ZodTypeAny, {
362
362
  type: "user-input";
363
- fileContext: {
364
- currentWorkingDirectory: string;
365
- fileTree: import("./util/file").FileTreeNode[];
366
- fileTokenScores: Record<string, Record<string, number>>;
367
- knowledgeFiles: Record<string, string>;
368
- gitChanges: {
369
- status: string;
370
- diff: string;
371
- diffCached: string;
372
- lastCommitMessages: string;
373
- };
374
- changesSinceLastChat: Record<string, string>;
375
- shellConfigFiles: Record<string, string>;
376
- systemInfo: {
377
- platform: string;
378
- shell: string;
379
- nodeVersion: string;
380
- arch: string;
381
- homedir: string;
382
- cpus: number;
383
- };
384
- fileVersions: {
385
- path: string;
386
- content: string;
387
- }[][];
388
- userKnowledgeFiles?: Record<string, string> | undefined;
389
- };
390
363
  fingerprintId: string;
391
364
  userInputId: string;
392
365
  messages: {
393
366
  content: string | ({
394
- text: string;
395
367
  type: "text";
368
+ text: string;
396
369
  cache_control?: {
397
370
  type: "ephemeral";
398
371
  } | undefined;
@@ -414,9 +387,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
414
387
  } | {
415
388
  type: "image";
416
389
  source: {
417
- data: string;
418
390
  type: "base64";
419
391
  media_type: "image/jpeg";
392
+ data: string;
420
393
  };
421
394
  cache_control?: {
422
395
  type: "ephemeral";
@@ -424,23 +397,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
424
397
  })[];
425
398
  role: "user" | "assistant";
426
399
  }[];
427
- changesAlreadyApplied: {
428
- path: string;
429
- type: "file" | "patch";
430
- content: string;
431
- }[];
432
- costMode: "max" | "lite" | "normal";
433
- authToken?: string | undefined;
434
- }, {
435
- type: "user-input";
436
400
  fileContext: {
437
401
  currentWorkingDirectory: string;
438
402
  fileTree: import("./util/file").FileTreeNode[];
439
403
  fileTokenScores: Record<string, Record<string, number>>;
440
404
  knowledgeFiles: Record<string, string>;
441
405
  gitChanges: {
442
- status: string;
443
406
  diff: string;
407
+ status: string;
444
408
  diffCached: string;
445
409
  lastCommitMessages: string;
446
410
  };
@@ -460,12 +424,21 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
460
424
  }[][];
461
425
  userKnowledgeFiles?: Record<string, string> | undefined;
462
426
  };
427
+ changesAlreadyApplied: {
428
+ type: "patch" | "file";
429
+ path: string;
430
+ content: string;
431
+ }[];
432
+ costMode: "lite" | "normal" | "max";
433
+ authToken?: string | undefined;
434
+ }, {
435
+ type: "user-input";
463
436
  fingerprintId: string;
464
437
  userInputId: string;
465
438
  messages: {
466
439
  content: string | ({
467
- text: string;
468
440
  type: "text";
441
+ text: string;
469
442
  cache_control?: {
470
443
  type: "ephemeral";
471
444
  } | undefined;
@@ -487,9 +460,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
487
460
  } | {
488
461
  type: "image";
489
462
  source: {
490
- data: string;
491
463
  type: "base64";
492
464
  media_type: "image/jpeg";
465
+ data: string;
493
466
  };
494
467
  cache_control?: {
495
468
  type: "ephemeral";
@@ -497,13 +470,40 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
497
470
  })[];
498
471
  role: "user" | "assistant";
499
472
  }[];
473
+ fileContext: {
474
+ currentWorkingDirectory: string;
475
+ fileTree: import("./util/file").FileTreeNode[];
476
+ fileTokenScores: Record<string, Record<string, number>>;
477
+ knowledgeFiles: Record<string, string>;
478
+ gitChanges: {
479
+ diff: string;
480
+ status: string;
481
+ diffCached: string;
482
+ lastCommitMessages: string;
483
+ };
484
+ changesSinceLastChat: Record<string, string>;
485
+ shellConfigFiles: Record<string, string>;
486
+ systemInfo: {
487
+ platform: string;
488
+ shell: string;
489
+ nodeVersion: string;
490
+ arch: string;
491
+ homedir: string;
492
+ cpus: number;
493
+ };
494
+ fileVersions: {
495
+ path: string;
496
+ content: string;
497
+ }[][];
498
+ userKnowledgeFiles?: Record<string, string> | undefined;
499
+ };
500
500
  changesAlreadyApplied: {
501
+ type: "patch" | "file";
501
502
  path: string;
502
- type: "file" | "patch";
503
503
  content: string;
504
504
  }[];
505
505
  authToken?: string | undefined;
506
- costMode?: "max" | "lite" | "normal" | undefined;
506
+ costMode?: "lite" | "normal" | "max" | 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
- status: string;
529
528
  diff: string;
529
+ status: string;
530
530
  diffCached: string;
531
531
  lastCommitMessages: string;
532
532
  }, {
533
- status: string;
534
533
  diff: string;
534
+ status: 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
- status: string;
579
578
  diff: string;
579
+ status: 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
- status: string;
605
604
  diff: string;
605
+ status: string;
606
606
  diffCached: string;
607
607
  lastCommitMessages: string;
608
608
  };
@@ -635,14 +635,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
635
635
  type: "ephemeral";
636
636
  }>>;
637
637
  }, "strip", z.ZodTypeAny, {
638
- text: string;
639
638
  type: "text";
639
+ text: string;
640
640
  cache_control?: {
641
641
  type: "ephemeral";
642
642
  } | undefined;
643
643
  }, {
644
- text: string;
645
644
  type: "text";
645
+ text: string;
646
646
  cache_control?: {
647
647
  type: "ephemeral";
648
648
  } | undefined;
@@ -706,13 +706,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
706
706
  media_type: z.ZodLiteral<"image/jpeg">;
707
707
  data: z.ZodString;
708
708
  }, "strip", z.ZodTypeAny, {
709
- data: string;
710
709
  type: "base64";
711
710
  media_type: "image/jpeg";
712
- }, {
713
711
  data: string;
712
+ }, {
714
713
  type: "base64";
715
714
  media_type: "image/jpeg";
715
+ data: string;
716
716
  }>;
717
717
  cache_control: z.ZodOptional<z.ZodObject<{
718
718
  type: z.ZodLiteral<"ephemeral">;
@@ -724,9 +724,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
724
724
  }, "strip", z.ZodTypeAny, {
725
725
  type: "image";
726
726
  source: {
727
- data: string;
728
727
  type: "base64";
729
728
  media_type: "image/jpeg";
729
+ data: string;
730
730
  };
731
731
  cache_control?: {
732
732
  type: "ephemeral";
@@ -734,9 +734,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
734
734
  }, {
735
735
  type: "image";
736
736
  source: {
737
- data: string;
738
737
  type: "base64";
739
738
  media_type: "image/jpeg";
739
+ data: string;
740
740
  };
741
741
  cache_control?: {
742
742
  type: "ephemeral";
@@ -744,8 +744,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
744
744
  }>]>, "many">]>;
745
745
  }, "strip", z.ZodTypeAny, {
746
746
  content: string | ({
747
- text: string;
748
747
  type: "text";
748
+ text: string;
749
749
  cache_control?: {
750
750
  type: "ephemeral";
751
751
  } | undefined;
@@ -767,9 +767,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
767
767
  } | {
768
768
  type: "image";
769
769
  source: {
770
- data: string;
771
770
  type: "base64";
772
771
  media_type: "image/jpeg";
772
+ data: string;
773
773
  };
774
774
  cache_control?: {
775
775
  type: "ephemeral";
@@ -778,8 +778,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
778
778
  role: "user" | "assistant";
779
779
  }, {
780
780
  content: string | ({
781
- text: string;
782
781
  type: "text";
782
+ text: string;
783
783
  cache_control?: {
784
784
  type: "ephemeral";
785
785
  } | undefined;
@@ -801,9 +801,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
801
801
  } | {
802
802
  type: "image";
803
803
  source: {
804
- data: string;
805
804
  type: "base64";
806
805
  media_type: "image/jpeg";
806
+ data: string;
807
807
  };
808
808
  cache_control?: {
809
809
  type: "ephemeral";
@@ -812,15 +812,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
812
812
  role: "user" | "assistant";
813
813
  }>, "many">;
814
814
  }, "strip", z.ZodTypeAny, {
815
- agentContext: string;
816
815
  fileContext: {
817
816
  currentWorkingDirectory: string;
818
817
  fileTree: import("./util/file").FileTreeNode[];
819
818
  fileTokenScores: Record<string, Record<string, number>>;
820
819
  knowledgeFiles: Record<string, string>;
821
820
  gitChanges: {
822
- status: string;
823
821
  diff: string;
822
+ status: string;
824
823
  diffCached: string;
825
824
  lastCommitMessages: string;
826
825
  };
@@ -840,10 +839,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
840
839
  }[][];
841
840
  userKnowledgeFiles?: Record<string, string> | undefined;
842
841
  };
842
+ agentContext: string;
843
843
  messageHistory: {
844
844
  content: string | ({
845
- text: string;
846
845
  type: "text";
846
+ text: string;
847
847
  cache_control?: {
848
848
  type: "ephemeral";
849
849
  } | undefined;
@@ -865,9 +865,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
865
865
  } | {
866
866
  type: "image";
867
867
  source: {
868
- data: string;
869
868
  type: "base64";
870
869
  media_type: "image/jpeg";
870
+ data: string;
871
871
  };
872
872
  cache_control?: {
873
873
  type: "ephemeral";
@@ -876,15 +876,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
876
876
  role: "user" | "assistant";
877
877
  }[];
878
878
  }, {
879
- agentContext: string;
880
879
  fileContext: {
881
880
  currentWorkingDirectory: string;
882
881
  fileTree: import("./util/file").FileTreeNode[];
883
882
  fileTokenScores: Record<string, Record<string, number>>;
884
883
  knowledgeFiles: Record<string, string>;
885
884
  gitChanges: {
886
- status: string;
887
885
  diff: string;
886
+ status: string;
888
887
  diffCached: string;
889
888
  lastCommitMessages: string;
890
889
  };
@@ -904,10 +903,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
904
903
  }[][];
905
904
  userKnowledgeFiles?: Record<string, string> | undefined;
906
905
  };
906
+ agentContext: string;
907
907
  messageHistory: {
908
908
  content: string | ({
909
- text: string;
910
909
  type: "text";
910
+ text: string;
911
911
  cache_control?: {
912
912
  type: "ephemeral";
913
913
  } | undefined;
@@ -929,9 +929,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
929
929
  } | {
930
930
  type: "image";
931
931
  source: {
932
- data: string;
933
932
  type: "base64";
934
933
  media_type: "image/jpeg";
934
+ data: string;
935
935
  };
936
936
  cache_control?: {
937
937
  type: "ephemeral";
@@ -956,18 +956,17 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
956
956
  }, "strip", z.ZodTypeAny, {
957
957
  type: "prompt";
958
958
  fingerprintId: string;
959
- costMode: "max" | "lite" | "normal";
959
+ costMode: "lite" | "normal" | "max";
960
960
  promptId: string;
961
961
  agentState: {
962
- agentContext: string;
963
962
  fileContext: {
964
963
  currentWorkingDirectory: string;
965
964
  fileTree: import("./util/file").FileTreeNode[];
966
965
  fileTokenScores: Record<string, Record<string, number>>;
967
966
  knowledgeFiles: Record<string, string>;
968
967
  gitChanges: {
969
- status: string;
970
968
  diff: string;
969
+ status: string;
971
970
  diffCached: string;
972
971
  lastCommitMessages: string;
973
972
  };
@@ -987,10 +986,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
987
986
  }[][];
988
987
  userKnowledgeFiles?: Record<string, string> | undefined;
989
988
  };
989
+ agentContext: string;
990
990
  messageHistory: {
991
991
  content: string | ({
992
- text: string;
993
992
  type: "text";
993
+ text: string;
994
994
  cache_control?: {
995
995
  type: "ephemeral";
996
996
  } | undefined;
@@ -1012,9 +1012,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1012
1012
  } | {
1013
1013
  type: "image";
1014
1014
  source: {
1015
- data: string;
1016
1015
  type: "base64";
1017
1016
  media_type: "image/jpeg";
1017
+ data: string;
1018
1018
  };
1019
1019
  cache_control?: {
1020
1020
  type: "ephemeral";
@@ -1035,15 +1035,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1035
1035
  fingerprintId: string;
1036
1036
  promptId: string;
1037
1037
  agentState: {
1038
- agentContext: string;
1039
1038
  fileContext: {
1040
1039
  currentWorkingDirectory: string;
1041
1040
  fileTree: import("./util/file").FileTreeNode[];
1042
1041
  fileTokenScores: Record<string, Record<string, number>>;
1043
1042
  knowledgeFiles: Record<string, string>;
1044
1043
  gitChanges: {
1045
- status: string;
1046
1044
  diff: string;
1045
+ status: string;
1047
1046
  diffCached: string;
1048
1047
  lastCommitMessages: string;
1049
1048
  };
@@ -1063,10 +1062,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1063
1062
  }[][];
1064
1063
  userKnowledgeFiles?: Record<string, string> | undefined;
1065
1064
  };
1065
+ agentContext: string;
1066
1066
  messageHistory: {
1067
1067
  content: string | ({
1068
- text: string;
1069
1068
  type: "text";
1069
+ text: string;
1070
1070
  cache_control?: {
1071
1071
  type: "ephemeral";
1072
1072
  } | undefined;
@@ -1088,9 +1088,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1088
1088
  } | {
1089
1089
  type: "image";
1090
1090
  source: {
1091
- data: string;
1092
1091
  type: "base64";
1093
1092
  media_type: "image/jpeg";
1093
+ data: string;
1094
1094
  };
1095
1095
  cache_control?: {
1096
1096
  type: "ephemeral";
@@ -1105,7 +1105,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1105
1105
  result: string;
1106
1106
  }[];
1107
1107
  authToken?: string | undefined;
1108
- costMode?: "max" | "lite" | "normal" | undefined;
1108
+ costMode?: "lite" | "normal" | "max" | 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
- status: string;
1139
1138
  diff: string;
1139
+ status: string;
1140
1140
  diffCached: string;
1141
1141
  lastCommitMessages: string;
1142
1142
  }, {
1143
- status: string;
1144
1143
  diff: string;
1144
+ status: 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
- status: string;
1189
1188
  diff: string;
1189
+ status: 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
- status: string;
1215
1214
  diff: string;
1215
+ status: string;
1216
1216
  diffCached: string;
1217
1217
  lastCommitMessages: string;
1218
1218
  };
@@ -1234,14 +1234,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1234
1234
  }>;
1235
1235
  }, "strip", z.ZodTypeAny, {
1236
1236
  type: "init";
1237
+ fingerprintId: string;
1237
1238
  fileContext: {
1238
1239
  currentWorkingDirectory: string;
1239
1240
  fileTree: import("./util/file").FileTreeNode[];
1240
1241
  fileTokenScores: Record<string, Record<string, number>>;
1241
1242
  knowledgeFiles: Record<string, string>;
1242
1243
  gitChanges: {
1243
- status: string;
1244
1244
  diff: string;
1245
+ status: string;
1245
1246
  diffCached: string;
1246
1247
  lastCommitMessages: string;
1247
1248
  };
@@ -1261,18 +1262,18 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1261
1262
  }[][];
1262
1263
  userKnowledgeFiles?: Record<string, string> | undefined;
1263
1264
  };
1264
- fingerprintId: string;
1265
1265
  authToken?: string | undefined;
1266
1266
  }, {
1267
1267
  type: "init";
1268
+ fingerprintId: string;
1268
1269
  fileContext: {
1269
1270
  currentWorkingDirectory: string;
1270
1271
  fileTree: import("./util/file").FileTreeNode[];
1271
1272
  fileTokenScores: Record<string, Record<string, number>>;
1272
1273
  knowledgeFiles: Record<string, string>;
1273
1274
  gitChanges: {
1274
- status: string;
1275
1275
  diff: string;
1276
+ status: string;
1276
1277
  diffCached: string;
1277
1278
  lastCommitMessages: string;
1278
1279
  };
@@ -1292,7 +1293,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1292
1293
  }[][];
1293
1294
  userKnowledgeFiles?: Record<string, string> | undefined;
1294
1295
  };
1295
- fingerprintId: string;
1296
1296
  authToken?: string | undefined;
1297
1297
  }>, z.ZodObject<{
1298
1298
  type: z.ZodLiteral<"usage">;
@@ -1386,12 +1386,12 @@ 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";
1389
1390
  path: string;
1390
- type: "file" | "patch";
1391
1391
  content: string;
1392
1392
  }, {
1393
+ type: "patch" | "file";
1393
1394
  path: string;
1394
- type: "file" | "patch";
1395
1395
  content: string;
1396
1396
  }>, "many">;
1397
1397
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -1399,12 +1399,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1399
1399
  path: z.ZodString;
1400
1400
  content: z.ZodString;
1401
1401
  }, "strip", z.ZodTypeAny, {
1402
+ type: "patch" | "file";
1402
1403
  path: string;
1403
- type: "file" | "patch";
1404
1404
  content: string;
1405
1405
  }, {
1406
+ type: "patch" | "file";
1406
1407
  path: string;
1407
- type: "file" | "patch";
1408
1408
  content: string;
1409
1409
  }>, "many">;
1410
1410
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -1429,14 +1429,14 @@ 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";
1432
1433
  path: string;
1433
- type: "file" | "patch";
1434
1434
  content: string;
1435
1435
  }[];
1436
1436
  response: string;
1437
1437
  changes: {
1438
+ type: "patch" | "file";
1438
1439
  path: string;
1439
- type: "file" | "patch";
1440
1440
  content: string;
1441
1441
  }[];
1442
1442
  addedFileVersions: {
@@ -1454,14 +1454,14 @@ 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";
1457
1458
  path: string;
1458
- type: "file" | "patch";
1459
1459
  content: string;
1460
1460
  }[];
1461
1461
  response: string;
1462
1462
  changes: {
1463
+ type: "patch" | "file";
1463
1464
  path: string;
1464
- type: "file" | "patch";
1465
1465
  content: string;
1466
1466
  }[];
1467
1467
  addedFileVersions: {
@@ -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
- status: string;
1497
1496
  diff: string;
1497
+ status: string;
1498
1498
  diffCached: string;
1499
1499
  lastCommitMessages: string;
1500
1500
  }, {
1501
- status: string;
1502
1501
  diff: string;
1502
+ status: 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
- status: string;
1547
1546
  diff: string;
1547
+ status: 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
- status: string;
1573
1572
  diff: string;
1573
+ status: string;
1574
1574
  diffCached: string;
1575
1575
  lastCommitMessages: string;
1576
1576
  };
@@ -1603,14 +1603,14 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1603
1603
  type: "ephemeral";
1604
1604
  }>>;
1605
1605
  }, "strip", z.ZodTypeAny, {
1606
- text: string;
1607
1606
  type: "text";
1607
+ text: string;
1608
1608
  cache_control?: {
1609
1609
  type: "ephemeral";
1610
1610
  } | undefined;
1611
1611
  }, {
1612
- text: string;
1613
1612
  type: "text";
1613
+ text: string;
1614
1614
  cache_control?: {
1615
1615
  type: "ephemeral";
1616
1616
  } | undefined;
@@ -1674,13 +1674,13 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1674
1674
  media_type: z.ZodLiteral<"image/jpeg">;
1675
1675
  data: z.ZodString;
1676
1676
  }, "strip", z.ZodTypeAny, {
1677
- data: string;
1678
1677
  type: "base64";
1679
1678
  media_type: "image/jpeg";
1680
- }, {
1681
1679
  data: string;
1680
+ }, {
1682
1681
  type: "base64";
1683
1682
  media_type: "image/jpeg";
1683
+ data: string;
1684
1684
  }>;
1685
1685
  cache_control: z.ZodOptional<z.ZodObject<{
1686
1686
  type: z.ZodLiteral<"ephemeral">;
@@ -1692,9 +1692,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1692
1692
  }, "strip", z.ZodTypeAny, {
1693
1693
  type: "image";
1694
1694
  source: {
1695
- data: string;
1696
1695
  type: "base64";
1697
1696
  media_type: "image/jpeg";
1697
+ data: string;
1698
1698
  };
1699
1699
  cache_control?: {
1700
1700
  type: "ephemeral";
@@ -1702,9 +1702,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1702
1702
  }, {
1703
1703
  type: "image";
1704
1704
  source: {
1705
- data: string;
1706
1705
  type: "base64";
1707
1706
  media_type: "image/jpeg";
1707
+ data: string;
1708
1708
  };
1709
1709
  cache_control?: {
1710
1710
  type: "ephemeral";
@@ -1712,8 +1712,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1712
1712
  }>]>, "many">]>;
1713
1713
  }, "strip", z.ZodTypeAny, {
1714
1714
  content: string | ({
1715
- text: string;
1716
1715
  type: "text";
1716
+ text: string;
1717
1717
  cache_control?: {
1718
1718
  type: "ephemeral";
1719
1719
  } | undefined;
@@ -1735,9 +1735,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1735
1735
  } | {
1736
1736
  type: "image";
1737
1737
  source: {
1738
- data: string;
1739
1738
  type: "base64";
1740
1739
  media_type: "image/jpeg";
1740
+ data: string;
1741
1741
  };
1742
1742
  cache_control?: {
1743
1743
  type: "ephemeral";
@@ -1746,8 +1746,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1746
1746
  role: "user" | "assistant";
1747
1747
  }, {
1748
1748
  content: string | ({
1749
- text: string;
1750
1749
  type: "text";
1750
+ text: string;
1751
1751
  cache_control?: {
1752
1752
  type: "ephemeral";
1753
1753
  } | undefined;
@@ -1769,9 +1769,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1769
1769
  } | {
1770
1770
  type: "image";
1771
1771
  source: {
1772
- data: string;
1773
1772
  type: "base64";
1774
1773
  media_type: "image/jpeg";
1774
+ data: string;
1775
1775
  };
1776
1776
  cache_control?: {
1777
1777
  type: "ephemeral";
@@ -1780,15 +1780,14 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1780
1780
  role: "user" | "assistant";
1781
1781
  }>, "many">;
1782
1782
  }, "strip", z.ZodTypeAny, {
1783
- agentContext: string;
1784
1783
  fileContext: {
1785
1784
  currentWorkingDirectory: string;
1786
1785
  fileTree: import("./util/file").FileTreeNode[];
1787
1786
  fileTokenScores: Record<string, Record<string, number>>;
1788
1787
  knowledgeFiles: Record<string, string>;
1789
1788
  gitChanges: {
1790
- status: string;
1791
1789
  diff: string;
1790
+ status: string;
1792
1791
  diffCached: string;
1793
1792
  lastCommitMessages: string;
1794
1793
  };
@@ -1808,10 +1807,11 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1808
1807
  }[][];
1809
1808
  userKnowledgeFiles?: Record<string, string> | undefined;
1810
1809
  };
1810
+ agentContext: string;
1811
1811
  messageHistory: {
1812
1812
  content: string | ({
1813
- text: string;
1814
1813
  type: "text";
1814
+ text: string;
1815
1815
  cache_control?: {
1816
1816
  type: "ephemeral";
1817
1817
  } | undefined;
@@ -1833,9 +1833,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1833
1833
  } | {
1834
1834
  type: "image";
1835
1835
  source: {
1836
- data: string;
1837
1836
  type: "base64";
1838
1837
  media_type: "image/jpeg";
1838
+ data: string;
1839
1839
  };
1840
1840
  cache_control?: {
1841
1841
  type: "ephemeral";
@@ -1844,15 +1844,14 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1844
1844
  role: "user" | "assistant";
1845
1845
  }[];
1846
1846
  }, {
1847
- agentContext: string;
1848
1847
  fileContext: {
1849
1848
  currentWorkingDirectory: string;
1850
1849
  fileTree: import("./util/file").FileTreeNode[];
1851
1850
  fileTokenScores: Record<string, Record<string, number>>;
1852
1851
  knowledgeFiles: Record<string, string>;
1853
1852
  gitChanges: {
1854
- status: string;
1855
1853
  diff: string;
1854
+ status: string;
1856
1855
  diffCached: string;
1857
1856
  lastCommitMessages: string;
1858
1857
  };
@@ -1872,10 +1871,11 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1872
1871
  }[][];
1873
1872
  userKnowledgeFiles?: Record<string, string> | undefined;
1874
1873
  };
1874
+ agentContext: string;
1875
1875
  messageHistory: {
1876
1876
  content: string | ({
1877
- text: string;
1878
1877
  type: "text";
1878
+ text: string;
1879
1879
  cache_control?: {
1880
1880
  type: "ephemeral";
1881
1881
  } | undefined;
@@ -1897,9 +1897,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1897
1897
  } | {
1898
1898
  type: "image";
1899
1899
  source: {
1900
- data: string;
1901
1900
  type: "base64";
1902
1901
  media_type: "image/jpeg";
1902
+ data: string;
1903
1903
  };
1904
1904
  cache_control?: {
1905
1905
  type: "ephemeral";
@@ -1945,15 +1945,14 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1945
1945
  type: "prompt-response";
1946
1946
  promptId: string;
1947
1947
  agentState: {
1948
- agentContext: string;
1949
1948
  fileContext: {
1950
1949
  currentWorkingDirectory: string;
1951
1950
  fileTree: import("./util/file").FileTreeNode[];
1952
1951
  fileTokenScores: Record<string, Record<string, number>>;
1953
1952
  knowledgeFiles: Record<string, string>;
1954
1953
  gitChanges: {
1955
- status: string;
1956
1954
  diff: string;
1955
+ status: string;
1957
1956
  diffCached: string;
1958
1957
  lastCommitMessages: string;
1959
1958
  };
@@ -1973,10 +1972,11 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1973
1972
  }[][];
1974
1973
  userKnowledgeFiles?: Record<string, string> | undefined;
1975
1974
  };
1975
+ agentContext: string;
1976
1976
  messageHistory: {
1977
1977
  content: string | ({
1978
- text: string;
1979
1978
  type: "text";
1979
+ text: string;
1980
1980
  cache_control?: {
1981
1981
  type: "ephemeral";
1982
1982
  } | undefined;
@@ -1998,9 +1998,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
1998
1998
  } | {
1999
1999
  type: "image";
2000
2000
  source: {
2001
- data: string;
2002
2001
  type: "base64";
2003
2002
  media_type: "image/jpeg";
2003
+ data: string;
2004
2004
  };
2005
2005
  cache_control?: {
2006
2006
  type: "ephemeral";
@@ -2029,15 +2029,14 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
2029
2029
  type: "prompt-response";
2030
2030
  promptId: string;
2031
2031
  agentState: {
2032
- agentContext: string;
2033
2032
  fileContext: {
2034
2033
  currentWorkingDirectory: string;
2035
2034
  fileTree: import("./util/file").FileTreeNode[];
2036
2035
  fileTokenScores: Record<string, Record<string, number>>;
2037
2036
  knowledgeFiles: Record<string, string>;
2038
2037
  gitChanges: {
2039
- status: string;
2040
2038
  diff: string;
2039
+ status: string;
2041
2040
  diffCached: string;
2042
2041
  lastCommitMessages: string;
2043
2042
  };
@@ -2057,10 +2056,11 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
2057
2056
  }[][];
2058
2057
  userKnowledgeFiles?: Record<string, string> | undefined;
2059
2058
  };
2059
+ agentContext: string;
2060
2060
  messageHistory: {
2061
2061
  content: string | ({
2062
- text: string;
2063
2062
  type: "text";
2063
+ text: string;
2064
2064
  cache_control?: {
2065
2065
  type: "ephemeral";
2066
2066
  } | undefined;
@@ -2082,9 +2082,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
2082
2082
  } | {
2083
2083
  type: "image";
2084
2084
  source: {
2085
- data: string;
2086
2085
  type: "base64";
2087
2086
  media_type: "image/jpeg";
2087
+ data: string;
2088
2088
  };
2089
2089
  cache_control?: {
2090
2090
  type: "ephemeral";
@@ -2132,12 +2132,12 @@ 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";
2135
2136
  path: string;
2136
- type: "file" | "patch";
2137
2137
  content: string;
2138
2138
  }, {
2139
+ type: "patch" | "file";
2139
2140
  path: string;
2140
- type: "file" | "patch";
2141
2141
  content: string;
2142
2142
  }>, "many">;
2143
2143
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -2145,12 +2145,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2145
2145
  path: z.ZodString;
2146
2146
  content: z.ZodString;
2147
2147
  }, "strip", z.ZodTypeAny, {
2148
+ type: "patch" | "file";
2148
2149
  path: string;
2149
- type: "file" | "patch";
2150
2150
  content: string;
2151
2151
  }, {
2152
+ type: "patch" | "file";
2152
2153
  path: string;
2153
- type: "file" | "patch";
2154
2154
  content: string;
2155
2155
  }>, "many">;
2156
2156
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -2175,14 +2175,14 @@ 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";
2178
2179
  path: string;
2179
- type: "file" | "patch";
2180
2180
  content: string;
2181
2181
  }[];
2182
2182
  response: string;
2183
2183
  changes: {
2184
+ type: "patch" | "file";
2184
2185
  path: string;
2185
- type: "file" | "patch";
2186
2186
  content: string;
2187
2187
  }[];
2188
2188
  addedFileVersions: {
@@ -2200,14 +2200,14 @@ 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";
2203
2204
  path: string;
2204
- type: "file" | "patch";
2205
2205
  content: string;
2206
2206
  }[];
2207
2207
  response: string;
2208
2208
  changes: {
2209
+ type: "patch" | "file";
2209
2210
  path: string;
2210
- type: "file" | "patch";
2211
2211
  content: string;
2212
2212
  }[];
2213
2213
  addedFileVersions: {
@@ -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
- status: string;
2242
2241
  diff: string;
2242
+ status: string;
2243
2243
  diffCached: string;
2244
2244
  lastCommitMessages: string;
2245
2245
  }, {
2246
- status: string;
2247
2246
  diff: string;
2247
+ status: 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
- status: string;
2292
2291
  diff: string;
2292
+ status: 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
- status: string;
2318
2317
  diff: string;
2318
+ status: string;
2319
2319
  diffCached: string;
2320
2320
  lastCommitMessages: string;
2321
2321
  };
@@ -2348,14 +2348,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2348
2348
  type: "ephemeral";
2349
2349
  }>>;
2350
2350
  }, "strip", z.ZodTypeAny, {
2351
- text: string;
2352
2351
  type: "text";
2352
+ text: string;
2353
2353
  cache_control?: {
2354
2354
  type: "ephemeral";
2355
2355
  } | undefined;
2356
2356
  }, {
2357
- text: string;
2358
2357
  type: "text";
2358
+ text: string;
2359
2359
  cache_control?: {
2360
2360
  type: "ephemeral";
2361
2361
  } | undefined;
@@ -2419,13 +2419,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2419
2419
  media_type: z.ZodLiteral<"image/jpeg">;
2420
2420
  data: z.ZodString;
2421
2421
  }, "strip", z.ZodTypeAny, {
2422
- data: string;
2423
2422
  type: "base64";
2424
2423
  media_type: "image/jpeg";
2425
- }, {
2426
2424
  data: string;
2425
+ }, {
2427
2426
  type: "base64";
2428
2427
  media_type: "image/jpeg";
2428
+ data: string;
2429
2429
  }>;
2430
2430
  cache_control: z.ZodOptional<z.ZodObject<{
2431
2431
  type: z.ZodLiteral<"ephemeral">;
@@ -2437,9 +2437,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2437
2437
  }, "strip", z.ZodTypeAny, {
2438
2438
  type: "image";
2439
2439
  source: {
2440
- data: string;
2441
2440
  type: "base64";
2442
2441
  media_type: "image/jpeg";
2442
+ data: string;
2443
2443
  };
2444
2444
  cache_control?: {
2445
2445
  type: "ephemeral";
@@ -2447,9 +2447,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2447
2447
  }, {
2448
2448
  type: "image";
2449
2449
  source: {
2450
- data: string;
2451
2450
  type: "base64";
2452
2451
  media_type: "image/jpeg";
2452
+ data: string;
2453
2453
  };
2454
2454
  cache_control?: {
2455
2455
  type: "ephemeral";
@@ -2457,8 +2457,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2457
2457
  }>]>, "many">]>;
2458
2458
  }, "strip", z.ZodTypeAny, {
2459
2459
  content: string | ({
2460
- text: string;
2461
2460
  type: "text";
2461
+ text: string;
2462
2462
  cache_control?: {
2463
2463
  type: "ephemeral";
2464
2464
  } | undefined;
@@ -2480,9 +2480,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2480
2480
  } | {
2481
2481
  type: "image";
2482
2482
  source: {
2483
- data: string;
2484
2483
  type: "base64";
2485
2484
  media_type: "image/jpeg";
2485
+ data: string;
2486
2486
  };
2487
2487
  cache_control?: {
2488
2488
  type: "ephemeral";
@@ -2491,8 +2491,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2491
2491
  role: "user" | "assistant";
2492
2492
  }, {
2493
2493
  content: string | ({
2494
- text: string;
2495
2494
  type: "text";
2495
+ text: string;
2496
2496
  cache_control?: {
2497
2497
  type: "ephemeral";
2498
2498
  } | undefined;
@@ -2514,9 +2514,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2514
2514
  } | {
2515
2515
  type: "image";
2516
2516
  source: {
2517
- data: string;
2518
2517
  type: "base64";
2519
2518
  media_type: "image/jpeg";
2519
+ data: string;
2520
2520
  };
2521
2521
  cache_control?: {
2522
2522
  type: "ephemeral";
@@ -2525,15 +2525,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2525
2525
  role: "user" | "assistant";
2526
2526
  }>, "many">;
2527
2527
  }, "strip", z.ZodTypeAny, {
2528
- agentContext: string;
2529
2528
  fileContext: {
2530
2529
  currentWorkingDirectory: string;
2531
2530
  fileTree: import("./util/file").FileTreeNode[];
2532
2531
  fileTokenScores: Record<string, Record<string, number>>;
2533
2532
  knowledgeFiles: Record<string, string>;
2534
2533
  gitChanges: {
2535
- status: string;
2536
2534
  diff: string;
2535
+ status: string;
2537
2536
  diffCached: string;
2538
2537
  lastCommitMessages: string;
2539
2538
  };
@@ -2553,10 +2552,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2553
2552
  }[][];
2554
2553
  userKnowledgeFiles?: Record<string, string> | undefined;
2555
2554
  };
2555
+ agentContext: string;
2556
2556
  messageHistory: {
2557
2557
  content: string | ({
2558
- text: string;
2559
2558
  type: "text";
2559
+ text: string;
2560
2560
  cache_control?: {
2561
2561
  type: "ephemeral";
2562
2562
  } | undefined;
@@ -2578,9 +2578,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2578
2578
  } | {
2579
2579
  type: "image";
2580
2580
  source: {
2581
- data: string;
2582
2581
  type: "base64";
2583
2582
  media_type: "image/jpeg";
2583
+ data: string;
2584
2584
  };
2585
2585
  cache_control?: {
2586
2586
  type: "ephemeral";
@@ -2589,15 +2589,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2589
2589
  role: "user" | "assistant";
2590
2590
  }[];
2591
2591
  }, {
2592
- agentContext: string;
2593
2592
  fileContext: {
2594
2593
  currentWorkingDirectory: string;
2595
2594
  fileTree: import("./util/file").FileTreeNode[];
2596
2595
  fileTokenScores: Record<string, Record<string, number>>;
2597
2596
  knowledgeFiles: Record<string, string>;
2598
2597
  gitChanges: {
2599
- status: string;
2600
2598
  diff: string;
2599
+ status: string;
2601
2600
  diffCached: string;
2602
2601
  lastCommitMessages: string;
2603
2602
  };
@@ -2617,10 +2616,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2617
2616
  }[][];
2618
2617
  userKnowledgeFiles?: Record<string, string> | undefined;
2619
2618
  };
2619
+ agentContext: string;
2620
2620
  messageHistory: {
2621
2621
  content: string | ({
2622
- text: string;
2623
2622
  type: "text";
2623
+ text: string;
2624
2624
  cache_control?: {
2625
2625
  type: "ephemeral";
2626
2626
  } | undefined;
@@ -2642,9 +2642,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2642
2642
  } | {
2643
2643
  type: "image";
2644
2644
  source: {
2645
- data: string;
2646
2645
  type: "base64";
2647
2646
  media_type: "image/jpeg";
2647
+ data: string;
2648
2648
  };
2649
2649
  cache_control?: {
2650
2650
  type: "ephemeral";
@@ -2690,15 +2690,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2690
2690
  type: "prompt-response";
2691
2691
  promptId: string;
2692
2692
  agentState: {
2693
- agentContext: string;
2694
2693
  fileContext: {
2695
2694
  currentWorkingDirectory: string;
2696
2695
  fileTree: import("./util/file").FileTreeNode[];
2697
2696
  fileTokenScores: Record<string, Record<string, number>>;
2698
2697
  knowledgeFiles: Record<string, string>;
2699
2698
  gitChanges: {
2700
- status: string;
2701
2699
  diff: string;
2700
+ status: string;
2702
2701
  diffCached: string;
2703
2702
  lastCommitMessages: string;
2704
2703
  };
@@ -2718,10 +2717,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2718
2717
  }[][];
2719
2718
  userKnowledgeFiles?: Record<string, string> | undefined;
2720
2719
  };
2720
+ agentContext: string;
2721
2721
  messageHistory: {
2722
2722
  content: string | ({
2723
- text: string;
2724
2723
  type: "text";
2724
+ text: string;
2725
2725
  cache_control?: {
2726
2726
  type: "ephemeral";
2727
2727
  } | undefined;
@@ -2743,9 +2743,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2743
2743
  } | {
2744
2744
  type: "image";
2745
2745
  source: {
2746
- data: string;
2747
2746
  type: "base64";
2748
2747
  media_type: "image/jpeg";
2748
+ data: string;
2749
2749
  };
2750
2750
  cache_control?: {
2751
2751
  type: "ephemeral";
@@ -2774,15 +2774,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2774
2774
  type: "prompt-response";
2775
2775
  promptId: string;
2776
2776
  agentState: {
2777
- agentContext: string;
2778
2777
  fileContext: {
2779
2778
  currentWorkingDirectory: string;
2780
2779
  fileTree: import("./util/file").FileTreeNode[];
2781
2780
  fileTokenScores: Record<string, Record<string, number>>;
2782
2781
  knowledgeFiles: Record<string, string>;
2783
2782
  gitChanges: {
2784
- status: string;
2785
2783
  diff: string;
2784
+ status: string;
2786
2785
  diffCached: string;
2787
2786
  lastCommitMessages: string;
2788
2787
  };
@@ -2802,10 +2801,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2802
2801
  }[][];
2803
2802
  userKnowledgeFiles?: Record<string, string> | undefined;
2804
2803
  };
2804
+ agentContext: string;
2805
2805
  messageHistory: {
2806
2806
  content: string | ({
2807
- text: string;
2808
2807
  type: "text";
2808
+ text: string;
2809
2809
  cache_control?: {
2810
2810
  type: "ephemeral";
2811
2811
  } | undefined;
@@ -2827,9 +2827,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2827
2827
  } | {
2828
2828
  type: "image";
2829
2829
  source: {
2830
- data: string;
2831
2830
  type: "base64";
2832
2831
  media_type: "image/jpeg";
2832
+ data: string;
2833
2833
  };
2834
2834
  cache_control?: {
2835
2835
  type: "ephemeral";
@@ -2888,12 +2888,12 @@ 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";
2891
2892
  path: string;
2892
- type: "file" | "patch";
2893
2893
  content: string;
2894
2894
  }, {
2895
+ type: "patch" | "file";
2895
2896
  path: string;
2896
- type: "file" | "patch";
2897
2897
  content: string;
2898
2898
  }>, "many">;
2899
2899
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -2901,12 +2901,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2901
2901
  path: z.ZodString;
2902
2902
  content: z.ZodString;
2903
2903
  }, "strip", z.ZodTypeAny, {
2904
+ type: "patch" | "file";
2904
2905
  path: string;
2905
- type: "file" | "patch";
2906
2906
  content: string;
2907
2907
  }, {
2908
+ type: "patch" | "file";
2908
2909
  path: string;
2909
- type: "file" | "patch";
2910
2910
  content: string;
2911
2911
  }>, "many">;
2912
2912
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -2921,22 +2921,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2921
2921
  }>, "many">;
2922
2922
  resetFileVersions: z.ZodBoolean;
2923
2923
  }, "strip", z.ZodTypeAny, {
2924
+ type: "tool-call";
2925
+ userInputId: string;
2924
2926
  data: {
2925
2927
  name: string;
2926
2928
  id: string;
2927
2929
  input: Record<string, any>;
2928
2930
  };
2929
- type: "tool-call";
2930
- userInputId: string;
2931
2931
  changesAlreadyApplied: {
2932
+ type: "patch" | "file";
2932
2933
  path: string;
2933
- type: "file" | "patch";
2934
2934
  content: string;
2935
2935
  }[];
2936
2936
  response: string;
2937
2937
  changes: {
2938
+ type: "patch" | "file";
2938
2939
  path: string;
2939
- type: "file" | "patch";
2940
2940
  content: string;
2941
2941
  }[];
2942
2942
  addedFileVersions: {
@@ -2945,22 +2945,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2945
2945
  }[];
2946
2946
  resetFileVersions: boolean;
2947
2947
  }, {
2948
+ type: "tool-call";
2949
+ userInputId: string;
2948
2950
  data: {
2949
2951
  name: string;
2950
2952
  id: string;
2951
2953
  input: Record<string, any>;
2952
2954
  };
2953
- type: "tool-call";
2954
- userInputId: string;
2955
2955
  changesAlreadyApplied: {
2956
+ type: "patch" | "file";
2956
2957
  path: string;
2957
- type: "file" | "patch";
2958
2958
  content: string;
2959
2959
  }[];
2960
2960
  response: string;
2961
2961
  changes: {
2962
+ type: "patch" | "file";
2962
2963
  path: string;
2963
- type: "file" | "patch";
2964
2964
  content: string;
2965
2965
  }[];
2966
2966
  addedFileVersions: {
@@ -2974,12 +2974,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2974
2974
  result: z.ZodString;
2975
2975
  }, "strip", z.ZodTypeAny, {
2976
2976
  type: "terminal-command-result";
2977
- result: string;
2978
2977
  userInputId: string;
2978
+ result: string;
2979
2979
  }, {
2980
2980
  type: "terminal-command-result";
2981
- result: string;
2982
2981
  userInputId: string;
2982
+ result: string;
2983
2983
  }>, z.ZodObject<{
2984
2984
  type: z.ZodLiteral<"npm-version-status">;
2985
2985
  isUpToDate: z.ZodBoolean;
@@ -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
- message: string;
3050
3049
  type: "action-error";
3051
- }, {
3052
3050
  message: string;
3051
+ }, {
3053
3052
  type: "action-error";
3053
+ message: string;
3054
3054
  }>, z.ZodObject<{
3055
3055
  type: z.ZodLiteral<"commit-message-response">;
3056
3056
  commitMessage: z.ZodString;