codebuff 1.0.152 → 1.0.154

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 (60) hide show
  1. package/dist/browser-runner.js +11 -26
  2. package/dist/browser-runner.js.map +1 -1
  3. package/dist/chat-storage.js +7 -17
  4. package/dist/chat-storage.js.map +1 -1
  5. package/dist/cli.js +7 -17
  6. package/dist/cli.js.map +1 -1
  7. package/dist/client.d.ts +4 -4
  8. package/dist/client.js +16 -25
  9. package/dist/client.js.map +1 -1
  10. package/dist/code-map/languages.js +7 -17
  11. package/dist/code-map/languages.js.map +1 -1
  12. package/dist/code-map/parse.js +7 -17
  13. package/dist/code-map/parse.js.map +1 -1
  14. package/dist/code-map/tsconfig.tsbuildinfo +1 -1
  15. package/dist/common/actions.d.ts +136 -136
  16. package/dist/common/advanced-analyzer.d.ts +19 -0
  17. package/dist/common/advanced-analyzer.js +140 -0
  18. package/dist/common/advanced-analyzer.js.map +1 -0
  19. package/dist/common/browser-actions.d.ts +50 -50
  20. package/dist/common/message-image-handling.d.ts +41 -0
  21. package/dist/common/message-image-handling.js +57 -0
  22. package/dist/common/message-image-handling.js.map +1 -0
  23. package/dist/common/types/usage.d.ts +2 -2
  24. package/dist/common/util/credentials.d.ts +4 -4
  25. package/dist/common/util/lru-cache.d.ts +9 -0
  26. package/dist/common/util/lru-cache.js +42 -0
  27. package/dist/common/util/lru-cache.js.map +1 -0
  28. package/dist/common/util/string.d.ts +5 -0
  29. package/dist/common/util/string.js +15 -1
  30. package/dist/common/util/string.js.map +1 -1
  31. package/dist/common/websockets/websocket-schema.d.ts +272 -272
  32. package/dist/create-template-project.js +7 -17
  33. package/dist/create-template-project.js.map +1 -1
  34. package/dist/index.js +1 -1
  35. package/dist/menu.js +7 -17
  36. package/dist/menu.js.map +1 -1
  37. package/dist/project-files.js +7 -17
  38. package/dist/project-files.js.map +1 -1
  39. package/dist/tool-handlers.js +7 -17
  40. package/dist/tool-handlers.js.map +1 -1
  41. package/dist/utils/terminal.js +7 -17
  42. package/dist/utils/terminal.js.map +1 -1
  43. package/dist/web-scraper.js +3 -1
  44. package/dist/web-scraper.js.map +1 -1
  45. package/package.json +1 -1
  46. package/dist/common/logger.d.ts +0 -1
  47. package/dist/common/logger.js +0 -7
  48. package/dist/common/logger.js.map +0 -1
  49. package/dist/common/util/constants.d.ts +0 -1
  50. package/dist/common/util/constants.js +0 -7
  51. package/dist/common/util/constants.js.map +0 -1
  52. package/dist/common/util/helpers.d.ts +0 -1
  53. package/dist/common/util/helpers.js +0 -6
  54. package/dist/common/util/helpers.js.map +0 -1
  55. package/dist/common/util/messages.d.ts +0 -1
  56. package/dist/common/util/messages.js +0 -7
  57. package/dist/common/util/messages.js.map +0 -1
  58. package/dist/common/util/token-counter.d.ts +0 -3
  59. package/dist/common/util/token-counter.js +0 -27
  60. package/dist/common/util/token-counter.js.map +0 -1
@@ -35,16 +35,16 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
35
35
  }>>;
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  type: "tool_use";
38
- name: string;
39
38
  id: string;
39
+ name: string;
40
40
  input: Record<string, any>;
41
41
  cache_control?: {
42
42
  type: "ephemeral";
43
43
  } | undefined;
44
44
  }, {
45
45
  type: "tool_use";
46
- name: string;
47
46
  id: string;
47
+ name: string;
48
48
  input: Record<string, any>;
49
49
  cache_control?: {
50
50
  type: "ephemeral";
@@ -82,12 +82,12 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
82
82
  data: z.ZodString;
83
83
  }, "strip", z.ZodTypeAny, {
84
84
  type: "base64";
85
- media_type: "image/jpeg";
86
85
  data: string;
86
+ media_type: "image/jpeg";
87
87
  }, {
88
88
  type: "base64";
89
- media_type: "image/jpeg";
90
89
  data: string;
90
+ media_type: "image/jpeg";
91
91
  }>;
92
92
  cache_control: z.ZodOptional<z.ZodObject<{
93
93
  type: z.ZodLiteral<"ephemeral">;
@@ -100,8 +100,8 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
100
100
  type: "image";
101
101
  source: {
102
102
  type: "base64";
103
- media_type: "image/jpeg";
104
103
  data: string;
104
+ media_type: "image/jpeg";
105
105
  };
106
106
  cache_control?: {
107
107
  type: "ephemeral";
@@ -110,8 +110,8 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
110
110
  type: "image";
111
111
  source: {
112
112
  type: "base64";
113
- media_type: "image/jpeg";
114
113
  data: string;
114
+ media_type: "image/jpeg";
115
115
  };
116
116
  cache_control?: {
117
117
  type: "ephemeral";
@@ -155,16 +155,16 @@ declare const MessageSchema: z.ZodObject<{
155
155
  }>>;
156
156
  }, "strip", z.ZodTypeAny, {
157
157
  type: "tool_use";
158
- name: string;
159
158
  id: string;
159
+ name: string;
160
160
  input: Record<string, any>;
161
161
  cache_control?: {
162
162
  type: "ephemeral";
163
163
  } | undefined;
164
164
  }, {
165
165
  type: "tool_use";
166
- name: string;
167
166
  id: string;
167
+ name: string;
168
168
  input: Record<string, any>;
169
169
  cache_control?: {
170
170
  type: "ephemeral";
@@ -202,12 +202,12 @@ declare const MessageSchema: z.ZodObject<{
202
202
  data: z.ZodString;
203
203
  }, "strip", z.ZodTypeAny, {
204
204
  type: "base64";
205
- media_type: "image/jpeg";
206
205
  data: string;
206
+ media_type: "image/jpeg";
207
207
  }, {
208
208
  type: "base64";
209
- media_type: "image/jpeg";
210
209
  data: string;
210
+ media_type: "image/jpeg";
211
211
  }>;
212
212
  cache_control: z.ZodOptional<z.ZodObject<{
213
213
  type: z.ZodLiteral<"ephemeral">;
@@ -220,8 +220,8 @@ declare const MessageSchema: z.ZodObject<{
220
220
  type: "image";
221
221
  source: {
222
222
  type: "base64";
223
- media_type: "image/jpeg";
224
223
  data: string;
224
+ media_type: "image/jpeg";
225
225
  };
226
226
  cache_control?: {
227
227
  type: "ephemeral";
@@ -230,14 +230,15 @@ declare const MessageSchema: z.ZodObject<{
230
230
  type: "image";
231
231
  source: {
232
232
  type: "base64";
233
- media_type: "image/jpeg";
234
233
  data: string;
234
+ media_type: "image/jpeg";
235
235
  };
236
236
  cache_control?: {
237
237
  type: "ephemeral";
238
238
  } | undefined;
239
239
  }>]>, "many">]>;
240
240
  }, "strip", z.ZodTypeAny, {
241
+ role: "user" | "assistant";
241
242
  content: string | ({
242
243
  type: "text";
243
244
  text: string;
@@ -246,8 +247,8 @@ declare const MessageSchema: z.ZodObject<{
246
247
  } | undefined;
247
248
  } | {
248
249
  type: "tool_use";
249
- name: string;
250
250
  id: string;
251
+ name: string;
251
252
  input: Record<string, any>;
252
253
  cache_control?: {
253
254
  type: "ephemeral";
@@ -263,15 +264,15 @@ declare const MessageSchema: z.ZodObject<{
263
264
  type: "image";
264
265
  source: {
265
266
  type: "base64";
266
- media_type: "image/jpeg";
267
267
  data: string;
268
+ media_type: "image/jpeg";
268
269
  };
269
270
  cache_control?: {
270
271
  type: "ephemeral";
271
272
  } | undefined;
272
273
  })[];
273
- role: "user" | "assistant";
274
274
  }, {
275
+ role: "user" | "assistant";
275
276
  content: string | ({
276
277
  type: "text";
277
278
  text: string;
@@ -280,8 +281,8 @@ declare const MessageSchema: z.ZodObject<{
280
281
  } | undefined;
281
282
  } | {
282
283
  type: "tool_use";
283
- name: string;
284
284
  id: string;
285
+ name: string;
285
286
  input: Record<string, any>;
286
287
  cache_control?: {
287
288
  type: "ephemeral";
@@ -297,14 +298,13 @@ declare const MessageSchema: z.ZodObject<{
297
298
  type: "image";
298
299
  source: {
299
300
  type: "base64";
300
- media_type: "image/jpeg";
301
301
  data: string;
302
+ media_type: "image/jpeg";
302
303
  };
303
304
  cache_control?: {
304
305
  type: "ephemeral";
305
306
  } | undefined;
306
307
  })[];
307
- role: "user" | "assistant";
308
308
  }>;
309
309
  export type Message = z.infer<typeof MessageSchema>;
310
310
  export type MessageContentObject = z.infer<typeof MessageContentObjectSchema>;
@@ -313,13 +313,13 @@ export declare const FileChangeSchema: z.ZodObject<{
313
313
  filePath: z.ZodString;
314
314
  content: z.ZodString;
315
315
  }, "strip", z.ZodTypeAny, {
316
- type: "patch" | "file";
317
- filePath: string;
316
+ type: "file" | "patch";
318
317
  content: string;
319
- }, {
320
- type: "patch" | "file";
321
318
  filePath: string;
319
+ }, {
320
+ type: "file" | "patch";
322
321
  content: string;
322
+ filePath: string;
323
323
  }>;
324
324
  export type FileChange = z.infer<typeof FileChangeSchema>;
325
325
  export declare const CHANGES: z.ZodArray<z.ZodObject<{
@@ -327,13 +327,13 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
327
327
  filePath: z.ZodString;
328
328
  content: z.ZodString;
329
329
  }, "strip", z.ZodTypeAny, {
330
- type: "patch" | "file";
331
- filePath: string;
330
+ type: "file" | "patch";
332
331
  content: string;
333
- }, {
334
- type: "patch" | "file";
335
332
  filePath: string;
333
+ }, {
334
+ type: "file" | "patch";
336
335
  content: string;
336
+ filePath: string;
337
337
  }>, "many">;
338
338
  export type FileChanges = z.infer<typeof CHANGES>;
339
339
  export declare const ToolCallSchema: z.ZodObject<{
@@ -341,12 +341,12 @@ export declare const ToolCallSchema: z.ZodObject<{
341
341
  id: z.ZodString;
342
342
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
343
343
  }, "strip", z.ZodTypeAny, {
344
- name: string;
345
344
  id: string;
345
+ name: string;
346
346
  input: Record<string, any>;
347
347
  }, {
348
- name: string;
349
348
  id: string;
349
+ name: string;
350
350
  input: Record<string, any>;
351
351
  }>;
352
352
  export type ToolCall = z.infer<typeof ToolCallSchema>;
@@ -393,16 +393,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
393
393
  }>>;
394
394
  }, "strip", z.ZodTypeAny, {
395
395
  type: "tool_use";
396
- name: string;
397
396
  id: string;
397
+ name: string;
398
398
  input: Record<string, any>;
399
399
  cache_control?: {
400
400
  type: "ephemeral";
401
401
  } | undefined;
402
402
  }, {
403
403
  type: "tool_use";
404
- name: string;
405
404
  id: string;
405
+ name: string;
406
406
  input: Record<string, any>;
407
407
  cache_control?: {
408
408
  type: "ephemeral";
@@ -440,12 +440,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
440
440
  data: z.ZodString;
441
441
  }, "strip", z.ZodTypeAny, {
442
442
  type: "base64";
443
- media_type: "image/jpeg";
444
443
  data: string;
444
+ media_type: "image/jpeg";
445
445
  }, {
446
446
  type: "base64";
447
- media_type: "image/jpeg";
448
447
  data: string;
448
+ media_type: "image/jpeg";
449
449
  }>;
450
450
  cache_control: z.ZodOptional<z.ZodObject<{
451
451
  type: z.ZodLiteral<"ephemeral">;
@@ -458,8 +458,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
458
458
  type: "image";
459
459
  source: {
460
460
  type: "base64";
461
- media_type: "image/jpeg";
462
461
  data: string;
462
+ media_type: "image/jpeg";
463
463
  };
464
464
  cache_control?: {
465
465
  type: "ephemeral";
@@ -468,14 +468,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
468
468
  type: "image";
469
469
  source: {
470
470
  type: "base64";
471
- media_type: "image/jpeg";
472
471
  data: string;
472
+ media_type: "image/jpeg";
473
473
  };
474
474
  cache_control?: {
475
475
  type: "ephemeral";
476
476
  } | undefined;
477
477
  }>]>, "many">]>;
478
478
  }, "strip", z.ZodTypeAny, {
479
+ role: "user" | "assistant";
479
480
  content: string | ({
480
481
  type: "text";
481
482
  text: string;
@@ -484,8 +485,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
484
485
  } | undefined;
485
486
  } | {
486
487
  type: "tool_use";
487
- name: string;
488
488
  id: string;
489
+ name: string;
489
490
  input: Record<string, any>;
490
491
  cache_control?: {
491
492
  type: "ephemeral";
@@ -501,15 +502,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
501
502
  type: "image";
502
503
  source: {
503
504
  type: "base64";
504
- media_type: "image/jpeg";
505
505
  data: string;
506
+ media_type: "image/jpeg";
506
507
  };
507
508
  cache_control?: {
508
509
  type: "ephemeral";
509
510
  } | undefined;
510
511
  })[];
511
- role: "user" | "assistant";
512
512
  }, {
513
+ role: "user" | "assistant";
513
514
  content: string | ({
514
515
  type: "text";
515
516
  text: string;
@@ -518,8 +519,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
518
519
  } | undefined;
519
520
  } | {
520
521
  type: "tool_use";
521
- name: string;
522
522
  id: string;
523
+ name: string;
523
524
  input: Record<string, any>;
524
525
  cache_control?: {
525
526
  type: "ephemeral";
@@ -535,14 +536,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
535
536
  type: "image";
536
537
  source: {
537
538
  type: "base64";
538
- media_type: "image/jpeg";
539
539
  data: string;
540
+ media_type: "image/jpeg";
540
541
  };
541
542
  cache_control?: {
542
543
  type: "ephemeral";
543
544
  } | undefined;
544
545
  })[];
545
- role: "user" | "assistant";
546
546
  }>, "many">;
547
547
  fileContext: z.ZodObject<{
548
548
  currentWorkingDirectory: z.ZodString;
@@ -556,13 +556,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
556
556
  diffCached: z.ZodString;
557
557
  lastCommitMessages: z.ZodString;
558
558
  }, "strip", z.ZodTypeAny, {
559
- diff: string;
560
559
  status: string;
560
+ diff: string;
561
561
  diffCached: string;
562
562
  lastCommitMessages: string;
563
563
  }, {
564
- diff: string;
565
564
  status: string;
565
+ diff: string;
566
566
  diffCached: string;
567
567
  lastCommitMessages: string;
568
568
  }>;
@@ -606,8 +606,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
606
606
  fileTokenScores: Record<string, Record<string, number>>;
607
607
  knowledgeFiles: Record<string, string>;
608
608
  gitChanges: {
609
- diff: string;
610
609
  status: string;
610
+ diff: string;
611
611
  diffCached: string;
612
612
  lastCommitMessages: string;
613
613
  };
@@ -632,8 +632,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
632
632
  fileTokenScores: Record<string, Record<string, number>>;
633
633
  knowledgeFiles: Record<string, string>;
634
634
  gitChanges: {
635
- diff: string;
636
635
  status: string;
636
+ diff: string;
637
637
  diffCached: string;
638
638
  lastCommitMessages: string;
639
639
  };
@@ -658,13 +658,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
658
658
  filePath: z.ZodString;
659
659
  content: z.ZodString;
660
660
  }, "strip", z.ZodTypeAny, {
661
- type: "patch" | "file";
662
- filePath: string;
661
+ type: "file" | "patch";
663
662
  content: string;
664
- }, {
665
- type: "patch" | "file";
666
663
  filePath: string;
664
+ }, {
665
+ type: "file" | "patch";
667
666
  content: string;
667
+ filePath: string;
668
668
  }>, "many">;
669
669
  costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
670
670
  }, "strip", z.ZodTypeAny, {
@@ -672,6 +672,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
672
672
  fingerprintId: string;
673
673
  userInputId: string;
674
674
  messages: {
675
+ role: "user" | "assistant";
675
676
  content: string | ({
676
677
  type: "text";
677
678
  text: string;
@@ -680,8 +681,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
680
681
  } | undefined;
681
682
  } | {
682
683
  type: "tool_use";
683
- name: string;
684
684
  id: string;
685
+ name: string;
685
686
  input: Record<string, any>;
686
687
  cache_control?: {
687
688
  type: "ephemeral";
@@ -697,14 +698,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
697
698
  type: "image";
698
699
  source: {
699
700
  type: "base64";
700
- media_type: "image/jpeg";
701
701
  data: string;
702
+ media_type: "image/jpeg";
702
703
  };
703
704
  cache_control?: {
704
705
  type: "ephemeral";
705
706
  } | undefined;
706
707
  })[];
707
- role: "user" | "assistant";
708
708
  }[];
709
709
  fileContext: {
710
710
  currentWorkingDirectory: string;
@@ -712,8 +712,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
712
712
  fileTokenScores: Record<string, Record<string, number>>;
713
713
  knowledgeFiles: Record<string, string>;
714
714
  gitChanges: {
715
- diff: string;
716
715
  status: string;
716
+ diff: string;
717
717
  diffCached: string;
718
718
  lastCommitMessages: string;
719
719
  };
@@ -734,17 +734,18 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
734
734
  userKnowledgeFiles?: Record<string, string> | undefined;
735
735
  };
736
736
  changesAlreadyApplied: {
737
- type: "patch" | "file";
738
- filePath: string;
737
+ type: "file" | "patch";
739
738
  content: string;
739
+ filePath: string;
740
740
  }[];
741
- costMode: "lite" | "normal" | "max";
741
+ costMode: "max" | "lite" | "normal";
742
742
  authToken?: string | undefined;
743
743
  }, {
744
744
  type: "user-input";
745
745
  fingerprintId: string;
746
746
  userInputId: string;
747
747
  messages: {
748
+ role: "user" | "assistant";
748
749
  content: string | ({
749
750
  type: "text";
750
751
  text: string;
@@ -753,8 +754,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
753
754
  } | undefined;
754
755
  } | {
755
756
  type: "tool_use";
756
- name: string;
757
757
  id: string;
758
+ name: string;
758
759
  input: Record<string, any>;
759
760
  cache_control?: {
760
761
  type: "ephemeral";
@@ -770,14 +771,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
770
771
  type: "image";
771
772
  source: {
772
773
  type: "base64";
773
- media_type: "image/jpeg";
774
774
  data: string;
775
+ media_type: "image/jpeg";
775
776
  };
776
777
  cache_control?: {
777
778
  type: "ephemeral";
778
779
  } | undefined;
779
780
  })[];
780
- role: "user" | "assistant";
781
781
  }[];
782
782
  fileContext: {
783
783
  currentWorkingDirectory: string;
@@ -785,8 +785,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
785
785
  fileTokenScores: Record<string, Record<string, number>>;
786
786
  knowledgeFiles: Record<string, string>;
787
787
  gitChanges: {
788
- diff: string;
789
788
  status: string;
789
+ diff: string;
790
790
  diffCached: string;
791
791
  lastCommitMessages: string;
792
792
  };
@@ -807,12 +807,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
807
807
  userKnowledgeFiles?: Record<string, string> | undefined;
808
808
  };
809
809
  changesAlreadyApplied: {
810
- type: "patch" | "file";
811
- filePath: string;
810
+ type: "file" | "patch";
812
811
  content: string;
812
+ filePath: string;
813
813
  }[];
814
814
  authToken?: string | undefined;
815
- costMode?: "lite" | "normal" | "max" | undefined;
815
+ costMode?: "max" | "lite" | "normal" | undefined;
816
816
  }>, z.ZodObject<{
817
817
  type: z.ZodLiteral<"read-files-response">;
818
818
  files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
@@ -838,13 +838,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
838
838
  diffCached: z.ZodString;
839
839
  lastCommitMessages: z.ZodString;
840
840
  }, "strip", z.ZodTypeAny, {
841
- diff: string;
842
841
  status: string;
842
+ diff: string;
843
843
  diffCached: string;
844
844
  lastCommitMessages: string;
845
845
  }, {
846
- diff: string;
847
846
  status: string;
847
+ diff: string;
848
848
  diffCached: string;
849
849
  lastCommitMessages: string;
850
850
  }>;
@@ -888,8 +888,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
888
888
  fileTokenScores: Record<string, Record<string, number>>;
889
889
  knowledgeFiles: Record<string, string>;
890
890
  gitChanges: {
891
- diff: string;
892
891
  status: string;
892
+ diff: string;
893
893
  diffCached: string;
894
894
  lastCommitMessages: string;
895
895
  };
@@ -914,8 +914,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
914
914
  fileTokenScores: Record<string, Record<string, number>>;
915
915
  knowledgeFiles: Record<string, string>;
916
916
  gitChanges: {
917
- diff: string;
918
917
  status: string;
918
+ diff: string;
919
919
  diffCached: string;
920
920
  lastCommitMessages: string;
921
921
  };
@@ -944,8 +944,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
944
944
  fileTokenScores: Record<string, Record<string, number>>;
945
945
  knowledgeFiles: Record<string, string>;
946
946
  gitChanges: {
947
- diff: string;
948
947
  status: string;
948
+ diff: string;
949
949
  diffCached: string;
950
950
  lastCommitMessages: string;
951
951
  };
@@ -975,8 +975,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
975
975
  fileTokenScores: Record<string, Record<string, number>>;
976
976
  knowledgeFiles: Record<string, string>;
977
977
  gitChanges: {
978
- diff: string;
979
978
  status: string;
979
+ diff: string;
980
980
  diffCached: string;
981
981
  lastCommitMessages: string;
982
982
  };
@@ -1041,14 +1041,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1041
1041
  fingerprintHash: z.ZodString;
1042
1042
  }, "strip", z.ZodTypeAny, {
1043
1043
  type: "clear-auth-token";
1044
- fingerprintId: string;
1045
1044
  authToken: string;
1045
+ fingerprintId: string;
1046
1046
  fingerprintHash: string;
1047
1047
  userId: string;
1048
1048
  }, {
1049
1049
  type: "clear-auth-token";
1050
- fingerprintId: string;
1051
1050
  authToken: string;
1051
+ fingerprintId: string;
1052
1052
  fingerprintHash: string;
1053
1053
  userId: string;
1054
1054
  }>, z.ZodObject<{
@@ -1131,26 +1131,26 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1131
1131
  filePath: z.ZodString;
1132
1132
  content: z.ZodString;
1133
1133
  }, "strip", z.ZodTypeAny, {
1134
- type: "patch" | "file";
1135
- filePath: string;
1134
+ type: "file" | "patch";
1136
1135
  content: string;
1137
- }, {
1138
- type: "patch" | "file";
1139
1136
  filePath: string;
1137
+ }, {
1138
+ type: "file" | "patch";
1140
1139
  content: string;
1140
+ filePath: string;
1141
1141
  }>, "many">;
1142
1142
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1143
1143
  type: z.ZodEnum<["patch", "file"]>;
1144
1144
  filePath: z.ZodString;
1145
1145
  content: z.ZodString;
1146
1146
  }, "strip", z.ZodTypeAny, {
1147
- type: "patch" | "file";
1148
- filePath: string;
1147
+ type: "file" | "patch";
1149
1148
  content: string;
1150
- }, {
1151
- type: "patch" | "file";
1152
1149
  filePath: string;
1150
+ }, {
1151
+ type: "file" | "patch";
1153
1152
  content: string;
1153
+ filePath: string;
1154
1154
  }>, "many">;
1155
1155
  addedFileVersions: z.ZodArray<z.ZodObject<{
1156
1156
  path: z.ZodString;
@@ -1174,15 +1174,15 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1174
1174
  type: "response-complete";
1175
1175
  userInputId: string;
1176
1176
  changesAlreadyApplied: {
1177
- type: "patch" | "file";
1178
- filePath: string;
1177
+ type: "file" | "patch";
1179
1178
  content: string;
1179
+ filePath: string;
1180
1180
  }[];
1181
1181
  response: string;
1182
1182
  changes: {
1183
- type: "patch" | "file";
1184
- filePath: string;
1183
+ type: "file" | "patch";
1185
1184
  content: string;
1185
+ filePath: string;
1186
1186
  }[];
1187
1187
  addedFileVersions: {
1188
1188
  path: string;
@@ -1199,15 +1199,15 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1199
1199
  type: "response-complete";
1200
1200
  userInputId: string;
1201
1201
  changesAlreadyApplied: {
1202
- type: "patch" | "file";
1203
- filePath: string;
1202
+ type: "file" | "patch";
1204
1203
  content: string;
1204
+ filePath: string;
1205
1205
  }[];
1206
1206
  response: string;
1207
1207
  changes: {
1208
- type: "patch" | "file";
1209
- filePath: string;
1208
+ type: "file" | "patch";
1210
1209
  content: string;
1210
+ filePath: string;
1211
1211
  }[];
1212
1212
  addedFileVersions: {
1213
1213
  path: string;
@@ -1251,26 +1251,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1251
1251
  filePath: z.ZodString;
1252
1252
  content: z.ZodString;
1253
1253
  }, "strip", z.ZodTypeAny, {
1254
- type: "patch" | "file";
1255
- filePath: string;
1254
+ type: "file" | "patch";
1256
1255
  content: string;
1257
- }, {
1258
- type: "patch" | "file";
1259
1256
  filePath: string;
1257
+ }, {
1258
+ type: "file" | "patch";
1260
1259
  content: string;
1260
+ filePath: string;
1261
1261
  }>, "many">;
1262
1262
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1263
1263
  type: z.ZodEnum<["patch", "file"]>;
1264
1264
  filePath: z.ZodString;
1265
1265
  content: z.ZodString;
1266
1266
  }, "strip", z.ZodTypeAny, {
1267
- type: "patch" | "file";
1268
- filePath: string;
1267
+ type: "file" | "patch";
1269
1268
  content: string;
1270
- }, {
1271
- type: "patch" | "file";
1272
1269
  filePath: string;
1270
+ }, {
1271
+ type: "file" | "patch";
1273
1272
  content: string;
1273
+ filePath: string;
1274
1274
  }>, "many">;
1275
1275
  addedFileVersions: z.ZodArray<z.ZodObject<{
1276
1276
  path: z.ZodString;
@@ -1294,15 +1294,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1294
1294
  type: "response-complete";
1295
1295
  userInputId: string;
1296
1296
  changesAlreadyApplied: {
1297
- type: "patch" | "file";
1298
- filePath: string;
1297
+ type: "file" | "patch";
1299
1298
  content: string;
1299
+ filePath: string;
1300
1300
  }[];
1301
1301
  response: string;
1302
1302
  changes: {
1303
- type: "patch" | "file";
1304
- filePath: string;
1303
+ type: "file" | "patch";
1305
1304
  content: string;
1305
+ filePath: string;
1306
1306
  }[];
1307
1307
  addedFileVersions: {
1308
1308
  path: string;
@@ -1319,15 +1319,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1319
1319
  type: "response-complete";
1320
1320
  userInputId: string;
1321
1321
  changesAlreadyApplied: {
1322
- type: "patch" | "file";
1323
- filePath: string;
1322
+ type: "file" | "patch";
1324
1323
  content: string;
1324
+ filePath: string;
1325
1325
  }[];
1326
1326
  response: string;
1327
1327
  changes: {
1328
- type: "patch" | "file";
1329
- filePath: string;
1328
+ type: "file" | "patch";
1330
1329
  content: string;
1330
+ filePath: string;
1331
1331
  }[];
1332
1332
  addedFileVersions: {
1333
1333
  path: string;
@@ -1358,12 +1358,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1358
1358
  id: z.ZodString;
1359
1359
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
1360
1360
  }, "strip", z.ZodTypeAny, {
1361
- name: string;
1362
1361
  id: string;
1362
+ name: string;
1363
1363
  input: Record<string, any>;
1364
1364
  }, {
1365
- name: string;
1366
1365
  id: string;
1366
+ name: string;
1367
1367
  input: Record<string, any>;
1368
1368
  }>;
1369
1369
  changes: z.ZodArray<z.ZodObject<{
@@ -1371,26 +1371,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1371
1371
  filePath: z.ZodString;
1372
1372
  content: z.ZodString;
1373
1373
  }, "strip", z.ZodTypeAny, {
1374
- type: "patch" | "file";
1375
- filePath: string;
1374
+ type: "file" | "patch";
1376
1375
  content: string;
1377
- }, {
1378
- type: "patch" | "file";
1379
1376
  filePath: string;
1377
+ }, {
1378
+ type: "file" | "patch";
1380
1379
  content: string;
1380
+ filePath: string;
1381
1381
  }>, "many">;
1382
1382
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1383
1383
  type: z.ZodEnum<["patch", "file"]>;
1384
1384
  filePath: z.ZodString;
1385
1385
  content: z.ZodString;
1386
1386
  }, "strip", z.ZodTypeAny, {
1387
- type: "patch" | "file";
1388
- filePath: string;
1387
+ type: "file" | "patch";
1389
1388
  content: string;
1390
- }, {
1391
- type: "patch" | "file";
1392
1389
  filePath: string;
1390
+ }, {
1391
+ type: "file" | "patch";
1393
1392
  content: string;
1393
+ filePath: string;
1394
1394
  }>, "many">;
1395
1395
  addedFileVersions: z.ZodArray<z.ZodObject<{
1396
1396
  path: z.ZodString;
@@ -1405,22 +1405,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1405
1405
  resetFileVersions: z.ZodBoolean;
1406
1406
  }, "strip", z.ZodTypeAny, {
1407
1407
  type: "tool-call";
1408
- userInputId: string;
1409
1408
  data: {
1410
- name: string;
1411
1409
  id: string;
1410
+ name: string;
1412
1411
  input: Record<string, any>;
1413
1412
  };
1413
+ userInputId: string;
1414
1414
  changesAlreadyApplied: {
1415
- type: "patch" | "file";
1416
- filePath: string;
1415
+ type: "file" | "patch";
1417
1416
  content: string;
1417
+ filePath: string;
1418
1418
  }[];
1419
1419
  response: string;
1420
1420
  changes: {
1421
- type: "patch" | "file";
1422
- filePath: string;
1421
+ type: "file" | "patch";
1423
1422
  content: string;
1423
+ filePath: string;
1424
1424
  }[];
1425
1425
  addedFileVersions: {
1426
1426
  path: string;
@@ -1429,22 +1429,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1429
1429
  resetFileVersions: boolean;
1430
1430
  }, {
1431
1431
  type: "tool-call";
1432
- userInputId: string;
1433
1432
  data: {
1434
- name: string;
1435
1433
  id: string;
1434
+ name: string;
1436
1435
  input: Record<string, any>;
1437
1436
  };
1437
+ userInputId: string;
1438
1438
  changesAlreadyApplied: {
1439
- type: "patch" | "file";
1440
- filePath: string;
1439
+ type: "file" | "patch";
1441
1440
  content: string;
1441
+ filePath: string;
1442
1442
  }[];
1443
1443
  response: string;
1444
1444
  changes: {
1445
- type: "patch" | "file";
1446
- filePath: string;
1445
+ type: "file" | "patch";
1447
1446
  content: string;
1447
+ filePath: string;
1448
1448
  }[];
1449
1449
  addedFileVersions: {
1450
1450
  path: string;
@@ -1511,18 +1511,18 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1511
1511
  fingerprintId: z.ZodString;
1512
1512
  fingerprintHash: z.ZodString;
1513
1513
  }, "strip", z.ZodTypeAny, {
1514
- name: string | null;
1515
1514
  id: string;
1516
- fingerprintId: string;
1517
- authToken: string;
1515
+ name: string | null;
1518
1516
  email: string;
1517
+ authToken: string;
1518
+ fingerprintId: string;
1519
1519
  fingerprintHash: string;
1520
1520
  }, {
1521
- name: string | null;
1522
1521
  id: string;
1523
- fingerprintId: string;
1524
- authToken: string;
1522
+ name: string | null;
1525
1523
  email: string;
1524
+ authToken: string;
1525
+ fingerprintId: string;
1526
1526
  fingerprintHash: string;
1527
1527
  }>>;
1528
1528
  message: z.ZodString;
@@ -1530,22 +1530,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1530
1530
  type: "auth-result";
1531
1531
  message: string;
1532
1532
  user?: {
1533
- name: string | null;
1534
1533
  id: string;
1535
- fingerprintId: string;
1536
- authToken: string;
1534
+ name: string | null;
1537
1535
  email: string;
1536
+ authToken: string;
1537
+ fingerprintId: string;
1538
1538
  fingerprintHash: string;
1539
1539
  } | undefined;
1540
1540
  }, {
1541
1541
  type: "auth-result";
1542
1542
  message: string;
1543
1543
  user?: {
1544
- name: string | null;
1545
1544
  id: string;
1546
- fingerprintId: string;
1547
- authToken: string;
1545
+ name: string | null;
1548
1546
  email: string;
1547
+ authToken: string;
1548
+ fingerprintId: string;
1549
1549
  fingerprintHash: string;
1550
1550
  } | undefined;
1551
1551
  }>, z.ZodObject<{