codebuff 1.0.163 → 1.0.164

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.
@@ -61,15 +61,15 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
61
61
  type: "ephemeral";
62
62
  }>>;
63
63
  }, "strip", z.ZodTypeAny, {
64
- content: string;
65
64
  type: "tool_result";
65
+ content: string;
66
66
  tool_use_id: string;
67
67
  cache_control?: {
68
68
  type: "ephemeral";
69
69
  } | undefined;
70
70
  }, {
71
- content: string;
72
71
  type: "tool_result";
72
+ content: string;
73
73
  tool_use_id: string;
74
74
  cache_control?: {
75
75
  type: "ephemeral";
@@ -181,15 +181,15 @@ declare const MessageSchema: z.ZodObject<{
181
181
  type: "ephemeral";
182
182
  }>>;
183
183
  }, "strip", z.ZodTypeAny, {
184
- content: string;
185
184
  type: "tool_result";
185
+ content: string;
186
186
  tool_use_id: string;
187
187
  cache_control?: {
188
188
  type: "ephemeral";
189
189
  } | undefined;
190
190
  }, {
191
- content: string;
192
191
  type: "tool_result";
192
+ content: string;
193
193
  tool_use_id: string;
194
194
  cache_control?: {
195
195
  type: "ephemeral";
@@ -253,8 +253,8 @@ declare const MessageSchema: z.ZodObject<{
253
253
  type: "ephemeral";
254
254
  } | undefined;
255
255
  } | {
256
- content: string;
257
256
  type: "tool_result";
257
+ content: string;
258
258
  tool_use_id: string;
259
259
  cache_control?: {
260
260
  type: "ephemeral";
@@ -287,8 +287,8 @@ declare const MessageSchema: z.ZodObject<{
287
287
  type: "ephemeral";
288
288
  } | undefined;
289
289
  } | {
290
- content: string;
291
290
  type: "tool_result";
291
+ content: string;
292
292
  tool_use_id: string;
293
293
  cache_control?: {
294
294
  type: "ephemeral";
@@ -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
- content: string;
317
- type: "file" | "patch";
316
+ type: "patch" | "file";
318
317
  filePath: string;
319
- }, {
320
318
  content: string;
321
- type: "file" | "patch";
319
+ }, {
320
+ type: "patch" | "file";
322
321
  filePath: string;
322
+ content: 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
- content: string;
331
- type: "file" | "patch";
330
+ type: "patch" | "file";
332
331
  filePath: string;
333
- }, {
334
332
  content: string;
335
- type: "file" | "patch";
333
+ }, {
334
+ type: "patch" | "file";
336
335
  filePath: string;
336
+ content: string;
337
337
  }>, "many">;
338
338
  export type FileChanges = z.infer<typeof CHANGES>;
339
339
  export declare const ToolCallSchema: z.ZodObject<{
@@ -350,6 +350,159 @@ export declare const ToolCallSchema: z.ZodObject<{
350
350
  input: Record<string, any>;
351
351
  }>;
352
352
  export type ToolCall = z.infer<typeof ToolCallSchema>;
353
+ export declare const UsageReponseSchema: z.ZodObject<{
354
+ type: z.ZodLiteral<"usage-response">;
355
+ usage: z.ZodNumber;
356
+ limit: z.ZodNumber;
357
+ referralLink: z.ZodOptional<z.ZodString>;
358
+ subscription_active: z.ZodBoolean;
359
+ next_quota_reset: z.ZodDate;
360
+ session_credits_used: z.ZodNumber;
361
+ }, "strip", z.ZodTypeAny, {
362
+ type: "usage-response";
363
+ usage: number;
364
+ limit: number;
365
+ subscription_active: boolean;
366
+ next_quota_reset: Date;
367
+ session_credits_used: number;
368
+ referralLink?: string | undefined;
369
+ }, {
370
+ type: "usage-response";
371
+ usage: number;
372
+ limit: number;
373
+ subscription_active: boolean;
374
+ next_quota_reset: Date;
375
+ session_credits_used: number;
376
+ referralLink?: string | undefined;
377
+ }>;
378
+ export type UsageResponse = z.infer<typeof UsageReponseSchema>;
379
+ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
380
+ type: z.ZodLiteral<"init-response">;
381
+ }, Omit<{
382
+ type: z.ZodLiteral<"usage-response">;
383
+ usage: z.ZodNumber;
384
+ limit: z.ZodNumber;
385
+ referralLink: z.ZodOptional<z.ZodString>;
386
+ subscription_active: z.ZodBoolean;
387
+ next_quota_reset: z.ZodDate;
388
+ session_credits_used: z.ZodNumber;
389
+ }, "type">>, "strip", z.ZodTypeAny, {
390
+ type: "init-response";
391
+ usage: number;
392
+ limit: number;
393
+ subscription_active: boolean;
394
+ next_quota_reset: Date;
395
+ session_credits_used: number;
396
+ referralLink?: string | undefined;
397
+ }, {
398
+ type: "init-response";
399
+ usage: number;
400
+ limit: number;
401
+ subscription_active: boolean;
402
+ next_quota_reset: Date;
403
+ session_credits_used: number;
404
+ referralLink?: string | undefined;
405
+ }>;
406
+ export type InitResponse = z.infer<typeof InitResponseSchema>;
407
+ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShape<{
408
+ type: z.ZodLiteral<"response-complete">;
409
+ userInputId: z.ZodString;
410
+ response: z.ZodString;
411
+ changes: z.ZodArray<z.ZodObject<{
412
+ type: z.ZodEnum<["patch", "file"]>;
413
+ filePath: z.ZodString;
414
+ content: z.ZodString;
415
+ }, "strip", z.ZodTypeAny, {
416
+ type: "patch" | "file";
417
+ filePath: string;
418
+ content: string;
419
+ }, {
420
+ type: "patch" | "file";
421
+ filePath: string;
422
+ content: string;
423
+ }>, "many">;
424
+ changesAlreadyApplied: z.ZodArray<z.ZodObject<{
425
+ type: z.ZodEnum<["patch", "file"]>;
426
+ filePath: z.ZodString;
427
+ content: z.ZodString;
428
+ }, "strip", z.ZodTypeAny, {
429
+ type: "patch" | "file";
430
+ filePath: string;
431
+ content: string;
432
+ }, {
433
+ type: "patch" | "file";
434
+ filePath: string;
435
+ content: string;
436
+ }>, "many">;
437
+ addedFileVersions: z.ZodArray<z.ZodObject<{
438
+ path: z.ZodString;
439
+ content: z.ZodString;
440
+ }, "strip", z.ZodTypeAny, {
441
+ path: string;
442
+ content: string;
443
+ }, {
444
+ path: string;
445
+ content: string;
446
+ }>, "many">;
447
+ resetFileVersions: z.ZodBoolean;
448
+ }, {
449
+ usage: z.ZodOptional<z.ZodNumber>;
450
+ limit: z.ZodOptional<z.ZodNumber>;
451
+ referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
452
+ subscription_active: z.ZodOptional<z.ZodBoolean>;
453
+ next_quota_reset: z.ZodOptional<z.ZodDate>;
454
+ session_credits_used: z.ZodOptional<z.ZodNumber>;
455
+ }>, "strip", z.ZodTypeAny, {
456
+ type: "response-complete";
457
+ userInputId: string;
458
+ response: string;
459
+ changes: {
460
+ type: "patch" | "file";
461
+ filePath: string;
462
+ content: string;
463
+ }[];
464
+ changesAlreadyApplied: {
465
+ type: "patch" | "file";
466
+ filePath: string;
467
+ content: string;
468
+ }[];
469
+ addedFileVersions: {
470
+ path: string;
471
+ content: string;
472
+ }[];
473
+ resetFileVersions: boolean;
474
+ usage?: number | undefined;
475
+ limit?: number | undefined;
476
+ referralLink?: string | undefined;
477
+ subscription_active?: boolean | undefined;
478
+ next_quota_reset?: Date | undefined;
479
+ session_credits_used?: number | undefined;
480
+ }, {
481
+ type: "response-complete";
482
+ userInputId: string;
483
+ response: string;
484
+ changes: {
485
+ type: "patch" | "file";
486
+ filePath: string;
487
+ content: string;
488
+ }[];
489
+ changesAlreadyApplied: {
490
+ type: "patch" | "file";
491
+ filePath: string;
492
+ content: string;
493
+ }[];
494
+ addedFileVersions: {
495
+ path: string;
496
+ content: string;
497
+ }[];
498
+ resetFileVersions: boolean;
499
+ usage?: number | undefined;
500
+ limit?: number | undefined;
501
+ referralLink?: string | undefined;
502
+ subscription_active?: boolean | undefined;
503
+ next_quota_reset?: Date | undefined;
504
+ session_credits_used?: number | undefined;
505
+ }>;
353
506
  export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
354
507
  type: z.ZodLiteral<"user-input">;
355
508
  fingerprintId: z.ZodString;
@@ -419,15 +572,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
419
572
  type: "ephemeral";
420
573
  }>>;
421
574
  }, "strip", z.ZodTypeAny, {
422
- content: string;
423
575
  type: "tool_result";
576
+ content: string;
424
577
  tool_use_id: string;
425
578
  cache_control?: {
426
579
  type: "ephemeral";
427
580
  } | undefined;
428
581
  }, {
429
- content: string;
430
582
  type: "tool_result";
583
+ content: string;
431
584
  tool_use_id: string;
432
585
  cache_control?: {
433
586
  type: "ephemeral";
@@ -491,8 +644,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
491
644
  type: "ephemeral";
492
645
  } | undefined;
493
646
  } | {
494
- content: string;
495
647
  type: "tool_result";
648
+ content: string;
496
649
  tool_use_id: string;
497
650
  cache_control?: {
498
651
  type: "ephemeral";
@@ -525,8 +678,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
525
678
  type: "ephemeral";
526
679
  } | undefined;
527
680
  } | {
528
- content: string;
529
681
  type: "tool_result";
682
+ content: string;
530
683
  tool_use_id: string;
531
684
  cache_control?: {
532
685
  type: "ephemeral";
@@ -658,19 +811,24 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
658
811
  filePath: z.ZodString;
659
812
  content: z.ZodString;
660
813
  }, "strip", z.ZodTypeAny, {
661
- content: string;
662
- type: "file" | "patch";
814
+ type: "patch" | "file";
663
815
  filePath: string;
664
- }, {
665
816
  content: string;
666
- type: "file" | "patch";
817
+ }, {
818
+ type: "patch" | "file";
667
819
  filePath: string;
820
+ content: string;
668
821
  }>, "many">;
669
822
  costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
670
823
  }, "strip", z.ZodTypeAny, {
671
824
  type: "user-input";
672
- fingerprintId: string;
673
825
  userInputId: string;
826
+ changesAlreadyApplied: {
827
+ type: "patch" | "file";
828
+ filePath: string;
829
+ content: string;
830
+ }[];
831
+ fingerprintId: string;
674
832
  messages: {
675
833
  content: string | ({
676
834
  type: "text";
@@ -687,8 +845,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
687
845
  type: "ephemeral";
688
846
  } | undefined;
689
847
  } | {
690
- content: string;
691
848
  type: "tool_result";
849
+ content: string;
692
850
  tool_use_id: string;
693
851
  cache_control?: {
694
852
  type: "ephemeral";
@@ -733,17 +891,17 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
733
891
  }[][];
734
892
  userKnowledgeFiles?: Record<string, string> | undefined;
735
893
  };
736
- changesAlreadyApplied: {
737
- content: string;
738
- type: "file" | "patch";
739
- filePath: string;
740
- }[];
741
894
  costMode: "max" | "lite" | "normal";
742
895
  authToken?: string | undefined;
743
896
  }, {
744
897
  type: "user-input";
745
- fingerprintId: string;
746
898
  userInputId: string;
899
+ changesAlreadyApplied: {
900
+ type: "patch" | "file";
901
+ filePath: string;
902
+ content: string;
903
+ }[];
904
+ fingerprintId: string;
747
905
  messages: {
748
906
  content: string | ({
749
907
  type: "text";
@@ -760,8 +918,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
760
918
  type: "ephemeral";
761
919
  } | undefined;
762
920
  } | {
763
- content: string;
764
921
  type: "tool_result";
922
+ content: string;
765
923
  tool_use_id: string;
766
924
  cache_control?: {
767
925
  type: "ephemeral";
@@ -806,11 +964,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
806
964
  }[][];
807
965
  userKnowledgeFiles?: Record<string, string> | undefined;
808
966
  };
809
- changesAlreadyApplied: {
810
- content: string;
811
- type: "file" | "patch";
812
- filePath: string;
813
- }[];
814
967
  authToken?: string | undefined;
815
968
  costMode?: "max" | "lite" | "normal" | undefined;
816
969
  }>, z.ZodObject<{
@@ -1009,48 +1162,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1009
1162
  type: "usage";
1010
1163
  fingerprintId: string;
1011
1164
  authToken?: string | undefined;
1012
- }>, z.ZodObject<{
1013
- type: z.ZodLiteral<"login-code-request">;
1014
- fingerprintId: z.ZodString;
1015
- referralCode: z.ZodOptional<z.ZodString>;
1016
- }, "strip", z.ZodTypeAny, {
1017
- type: "login-code-request";
1018
- fingerprintId: string;
1019
- referralCode?: string | undefined;
1020
- }, {
1021
- type: "login-code-request";
1022
- fingerprintId: string;
1023
- referralCode?: string | undefined;
1024
- }>, z.ZodObject<{
1025
- type: z.ZodLiteral<"login-status-request">;
1026
- fingerprintId: z.ZodString;
1027
- fingerprintHash: z.ZodString;
1028
- }, "strip", z.ZodTypeAny, {
1029
- type: "login-status-request";
1030
- fingerprintId: string;
1031
- fingerprintHash: string;
1032
- }, {
1033
- type: "login-status-request";
1034
- fingerprintId: string;
1035
- fingerprintHash: string;
1036
- }>, z.ZodObject<{
1037
- type: z.ZodLiteral<"clear-auth-token">;
1038
- authToken: z.ZodString;
1039
- fingerprintId: z.ZodString;
1040
- userId: z.ZodString;
1041
- fingerprintHash: z.ZodString;
1042
- }, "strip", z.ZodTypeAny, {
1043
- type: "clear-auth-token";
1044
- authToken: string;
1045
- fingerprintId: string;
1046
- fingerprintHash: string;
1047
- userId: string;
1048
- }, {
1049
- type: "clear-auth-token";
1050
- authToken: string;
1051
- fingerprintId: string;
1052
- fingerprintHash: string;
1053
- userId: string;
1054
1165
  }>, z.ZodObject<{
1055
1166
  type: z.ZodLiteral<"generate-commit-message">;
1056
1167
  fingerprintId: z.ZodString;
@@ -1068,159 +1179,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1068
1179
  authToken?: string | undefined;
1069
1180
  }>]>;
1070
1181
  export type ClientAction = z.infer<typeof CLIENT_ACTION_SCHEMA>;
1071
- export declare const UsageReponseSchema: z.ZodObject<{
1072
- type: z.ZodLiteral<"usage-response">;
1073
- usage: z.ZodNumber;
1074
- limit: z.ZodNumber;
1075
- referralLink: z.ZodOptional<z.ZodString>;
1076
- subscription_active: z.ZodBoolean;
1077
- next_quota_reset: z.ZodDate;
1078
- session_credits_used: z.ZodNumber;
1079
- }, "strip", z.ZodTypeAny, {
1080
- type: "usage-response";
1081
- usage: number;
1082
- limit: number;
1083
- subscription_active: boolean;
1084
- next_quota_reset: Date;
1085
- session_credits_used: number;
1086
- referralLink?: string | undefined;
1087
- }, {
1088
- type: "usage-response";
1089
- usage: number;
1090
- limit: number;
1091
- subscription_active: boolean;
1092
- next_quota_reset: Date;
1093
- session_credits_used: number;
1094
- referralLink?: string | undefined;
1095
- }>;
1096
- export type UsageResponse = z.infer<typeof UsageReponseSchema>;
1097
- export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
1098
- type: z.ZodLiteral<"init-response">;
1099
- }, Omit<{
1100
- type: z.ZodLiteral<"usage-response">;
1101
- usage: z.ZodNumber;
1102
- limit: z.ZodNumber;
1103
- referralLink: z.ZodOptional<z.ZodString>;
1104
- subscription_active: z.ZodBoolean;
1105
- next_quota_reset: z.ZodDate;
1106
- session_credits_used: z.ZodNumber;
1107
- }, "type">>, "strip", z.ZodTypeAny, {
1108
- type: "init-response";
1109
- usage: number;
1110
- limit: number;
1111
- subscription_active: boolean;
1112
- next_quota_reset: Date;
1113
- session_credits_used: number;
1114
- referralLink?: string | undefined;
1115
- }, {
1116
- type: "init-response";
1117
- usage: number;
1118
- limit: number;
1119
- subscription_active: boolean;
1120
- next_quota_reset: Date;
1121
- session_credits_used: number;
1122
- referralLink?: string | undefined;
1123
- }>;
1124
- export type InitResponse = z.infer<typeof InitResponseSchema>;
1125
- export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShape<{
1126
- type: z.ZodLiteral<"response-complete">;
1127
- userInputId: z.ZodString;
1128
- response: z.ZodString;
1129
- changes: z.ZodArray<z.ZodObject<{
1130
- type: z.ZodEnum<["patch", "file"]>;
1131
- filePath: z.ZodString;
1132
- content: z.ZodString;
1133
- }, "strip", z.ZodTypeAny, {
1134
- content: string;
1135
- type: "file" | "patch";
1136
- filePath: string;
1137
- }, {
1138
- content: string;
1139
- type: "file" | "patch";
1140
- filePath: string;
1141
- }>, "many">;
1142
- changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1143
- type: z.ZodEnum<["patch", "file"]>;
1144
- filePath: z.ZodString;
1145
- content: z.ZodString;
1146
- }, "strip", z.ZodTypeAny, {
1147
- content: string;
1148
- type: "file" | "patch";
1149
- filePath: string;
1150
- }, {
1151
- content: string;
1152
- type: "file" | "patch";
1153
- filePath: string;
1154
- }>, "many">;
1155
- addedFileVersions: z.ZodArray<z.ZodObject<{
1156
- path: z.ZodString;
1157
- content: z.ZodString;
1158
- }, "strip", z.ZodTypeAny, {
1159
- path: string;
1160
- content: string;
1161
- }, {
1162
- path: string;
1163
- content: string;
1164
- }>, "many">;
1165
- resetFileVersions: z.ZodBoolean;
1166
- }, {
1167
- usage: z.ZodOptional<z.ZodNumber>;
1168
- limit: z.ZodOptional<z.ZodNumber>;
1169
- referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1170
- subscription_active: z.ZodOptional<z.ZodBoolean>;
1171
- next_quota_reset: z.ZodOptional<z.ZodDate>;
1172
- session_credits_used: z.ZodOptional<z.ZodNumber>;
1173
- }>, "strip", z.ZodTypeAny, {
1174
- type: "response-complete";
1175
- userInputId: string;
1176
- changesAlreadyApplied: {
1177
- content: string;
1178
- type: "file" | "patch";
1179
- filePath: string;
1180
- }[];
1181
- response: string;
1182
- changes: {
1183
- content: string;
1184
- type: "file" | "patch";
1185
- filePath: string;
1186
- }[];
1187
- addedFileVersions: {
1188
- path: string;
1189
- content: string;
1190
- }[];
1191
- resetFileVersions: boolean;
1192
- usage?: number | undefined;
1193
- limit?: number | undefined;
1194
- referralLink?: string | undefined;
1195
- subscription_active?: boolean | undefined;
1196
- next_quota_reset?: Date | undefined;
1197
- session_credits_used?: number | undefined;
1198
- }, {
1199
- type: "response-complete";
1200
- userInputId: string;
1201
- changesAlreadyApplied: {
1202
- content: string;
1203
- type: "file" | "patch";
1204
- filePath: string;
1205
- }[];
1206
- response: string;
1207
- changes: {
1208
- content: string;
1209
- type: "file" | "patch";
1210
- filePath: string;
1211
- }[];
1212
- addedFileVersions: {
1213
- path: string;
1214
- content: string;
1215
- }[];
1216
- resetFileVersions: boolean;
1217
- usage?: number | undefined;
1218
- limit?: number | undefined;
1219
- referralLink?: string | undefined;
1220
- subscription_active?: boolean | undefined;
1221
- next_quota_reset?: Date | undefined;
1222
- session_credits_used?: number | undefined;
1223
- }>;
1224
1182
  export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1225
1183
  type: z.ZodLiteral<"read-files-response">;
1226
1184
  files: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
@@ -1251,26 +1209,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1251
1209
  filePath: z.ZodString;
1252
1210
  content: z.ZodString;
1253
1211
  }, "strip", z.ZodTypeAny, {
1254
- content: string;
1255
- type: "file" | "patch";
1212
+ type: "patch" | "file";
1256
1213
  filePath: string;
1257
- }, {
1258
1214
  content: string;
1259
- type: "file" | "patch";
1215
+ }, {
1216
+ type: "patch" | "file";
1260
1217
  filePath: string;
1218
+ content: string;
1261
1219
  }>, "many">;
1262
1220
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1263
1221
  type: z.ZodEnum<["patch", "file"]>;
1264
1222
  filePath: z.ZodString;
1265
1223
  content: z.ZodString;
1266
1224
  }, "strip", z.ZodTypeAny, {
1267
- content: string;
1268
- type: "file" | "patch";
1225
+ type: "patch" | "file";
1269
1226
  filePath: string;
1270
- }, {
1271
1227
  content: string;
1272
- type: "file" | "patch";
1228
+ }, {
1229
+ type: "patch" | "file";
1273
1230
  filePath: string;
1231
+ content: string;
1274
1232
  }>, "many">;
1275
1233
  addedFileVersions: z.ZodArray<z.ZodObject<{
1276
1234
  path: z.ZodString;
@@ -1293,16 +1251,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1293
1251
  }>, "strip", z.ZodTypeAny, {
1294
1252
  type: "response-complete";
1295
1253
  userInputId: string;
1296
- changesAlreadyApplied: {
1297
- content: string;
1298
- type: "file" | "patch";
1299
- filePath: string;
1300
- }[];
1301
1254
  response: string;
1302
1255
  changes: {
1256
+ type: "patch" | "file";
1257
+ filePath: string;
1303
1258
  content: string;
1304
- type: "file" | "patch";
1259
+ }[];
1260
+ changesAlreadyApplied: {
1261
+ type: "patch" | "file";
1305
1262
  filePath: string;
1263
+ content: string;
1306
1264
  }[];
1307
1265
  addedFileVersions: {
1308
1266
  path: string;
@@ -1318,16 +1276,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1318
1276
  }, {
1319
1277
  type: "response-complete";
1320
1278
  userInputId: string;
1321
- changesAlreadyApplied: {
1322
- content: string;
1323
- type: "file" | "patch";
1324
- filePath: string;
1325
- }[];
1326
1279
  response: string;
1327
1280
  changes: {
1281
+ type: "patch" | "file";
1282
+ filePath: string;
1328
1283
  content: string;
1329
- type: "file" | "patch";
1284
+ }[];
1285
+ changesAlreadyApplied: {
1286
+ type: "patch" | "file";
1330
1287
  filePath: string;
1288
+ content: string;
1331
1289
  }[];
1332
1290
  addedFileVersions: {
1333
1291
  path: string;
@@ -1371,26 +1329,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1371
1329
  filePath: z.ZodString;
1372
1330
  content: z.ZodString;
1373
1331
  }, "strip", z.ZodTypeAny, {
1374
- content: string;
1375
- type: "file" | "patch";
1332
+ type: "patch" | "file";
1376
1333
  filePath: string;
1377
- }, {
1378
1334
  content: string;
1379
- type: "file" | "patch";
1335
+ }, {
1336
+ type: "patch" | "file";
1380
1337
  filePath: string;
1338
+ content: string;
1381
1339
  }>, "many">;
1382
1340
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1383
1341
  type: z.ZodEnum<["patch", "file"]>;
1384
1342
  filePath: z.ZodString;
1385
1343
  content: z.ZodString;
1386
1344
  }, "strip", z.ZodTypeAny, {
1387
- content: string;
1388
- type: "file" | "patch";
1345
+ type: "patch" | "file";
1389
1346
  filePath: string;
1390
- }, {
1391
1347
  content: string;
1392
- type: "file" | "patch";
1348
+ }, {
1349
+ type: "patch" | "file";
1393
1350
  filePath: string;
1351
+ content: string;
1394
1352
  }>, "many">;
1395
1353
  addedFileVersions: z.ZodArray<z.ZodObject<{
1396
1354
  path: z.ZodString;
@@ -1406,51 +1364,51 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1406
1364
  }, "strip", z.ZodTypeAny, {
1407
1365
  type: "tool-call";
1408
1366
  userInputId: string;
1409
- data: {
1410
- name: string;
1411
- id: string;
1412
- input: Record<string, any>;
1413
- };
1414
- changesAlreadyApplied: {
1415
- content: string;
1416
- type: "file" | "patch";
1417
- filePath: string;
1418
- }[];
1419
1367
  response: string;
1420
1368
  changes: {
1369
+ type: "patch" | "file";
1370
+ filePath: string;
1421
1371
  content: string;
1422
- type: "file" | "patch";
1372
+ }[];
1373
+ changesAlreadyApplied: {
1374
+ type: "patch" | "file";
1423
1375
  filePath: string;
1376
+ content: string;
1424
1377
  }[];
1425
1378
  addedFileVersions: {
1426
1379
  path: string;
1427
1380
  content: string;
1428
1381
  }[];
1429
1382
  resetFileVersions: boolean;
1430
- }, {
1431
- type: "tool-call";
1432
- userInputId: string;
1433
1383
  data: {
1434
1384
  name: string;
1435
1385
  id: string;
1436
1386
  input: Record<string, any>;
1437
1387
  };
1438
- changesAlreadyApplied: {
1439
- content: string;
1440
- type: "file" | "patch";
1441
- filePath: string;
1442
- }[];
1388
+ }, {
1389
+ type: "tool-call";
1390
+ userInputId: string;
1443
1391
  response: string;
1444
1392
  changes: {
1393
+ type: "patch" | "file";
1394
+ filePath: string;
1445
1395
  content: string;
1446
- type: "file" | "patch";
1396
+ }[];
1397
+ changesAlreadyApplied: {
1398
+ type: "patch" | "file";
1447
1399
  filePath: string;
1400
+ content: string;
1448
1401
  }[];
1449
1402
  addedFileVersions: {
1450
1403
  path: string;
1451
1404
  content: string;
1452
1405
  }[];
1453
1406
  resetFileVersions: boolean;
1407
+ data: {
1408
+ name: string;
1409
+ id: string;
1410
+ input: Record<string, any>;
1411
+ };
1454
1412
  }>, z.ZodObject<{
1455
1413
  type: z.ZodLiteral<"terminal-command-result">;
1456
1414
  userInputId: z.ZodString;
@@ -1501,68 +1459,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1501
1459
  next_quota_reset: Date;
1502
1460
  session_credits_used: number;
1503
1461
  referralLink?: string | undefined;
1504
- }>, z.ZodObject<{
1505
- type: z.ZodLiteral<"auth-result">;
1506
- user: z.ZodOptional<z.ZodObject<{
1507
- id: z.ZodString;
1508
- email: z.ZodString;
1509
- name: z.ZodNullable<z.ZodString>;
1510
- authToken: z.ZodString;
1511
- fingerprintId: z.ZodString;
1512
- fingerprintHash: z.ZodString;
1513
- }, "strip", z.ZodTypeAny, {
1514
- email: string;
1515
- name: string | null;
1516
- id: string;
1517
- authToken: string;
1518
- fingerprintId: string;
1519
- fingerprintHash: string;
1520
- }, {
1521
- email: string;
1522
- name: string | null;
1523
- id: string;
1524
- authToken: string;
1525
- fingerprintId: string;
1526
- fingerprintHash: string;
1527
- }>>;
1528
- message: z.ZodString;
1529
- }, "strip", z.ZodTypeAny, {
1530
- message: string;
1531
- type: "auth-result";
1532
- user?: {
1533
- email: string;
1534
- name: string | null;
1535
- id: string;
1536
- authToken: string;
1537
- fingerprintId: string;
1538
- fingerprintHash: string;
1539
- } | undefined;
1540
- }, {
1541
- message: string;
1542
- type: "auth-result";
1543
- user?: {
1544
- email: string;
1545
- name: string | null;
1546
- id: string;
1547
- authToken: string;
1548
- fingerprintId: string;
1549
- fingerprintHash: string;
1550
- } | undefined;
1551
- }>, z.ZodObject<{
1552
- type: z.ZodLiteral<"login-code-response">;
1553
- fingerprintId: z.ZodString;
1554
- fingerprintHash: z.ZodString;
1555
- loginUrl: z.ZodString;
1556
- }, "strip", z.ZodTypeAny, {
1557
- type: "login-code-response";
1558
- fingerprintId: string;
1559
- fingerprintHash: string;
1560
- loginUrl: string;
1561
- }, {
1562
- type: "login-code-response";
1563
- fingerprintId: string;
1564
- fingerprintHash: string;
1565
- loginUrl: string;
1566
1462
  }>, z.ZodObject<{
1567
1463
  type: z.ZodLiteral<"usage-response">;
1568
1464
  usage: z.ZodNumber;
@@ -1591,11 +1487,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1591
1487
  type: z.ZodLiteral<"action-error">;
1592
1488
  message: z.ZodString;
1593
1489
  }, "strip", z.ZodTypeAny, {
1594
- message: string;
1595
1490
  type: "action-error";
1596
- }, {
1597
1491
  message: string;
1492
+ }, {
1598
1493
  type: "action-error";
1494
+ message: string;
1599
1495
  }>, z.ZodObject<{
1600
1496
  type: z.ZodLiteral<"commit-message-response">;
1601
1497
  commitMessage: z.ZodString;