codebuff 1.0.225 → 1.0.226

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 (65) hide show
  1. package/dist/background-process-manager.d.ts +10 -3
  2. package/dist/background-process-manager.js +110 -0
  3. package/dist/background-process-manager.js.map +1 -1
  4. package/dist/cli.js +8 -19
  5. package/dist/cli.js.map +1 -1
  6. package/dist/client.d.ts +5 -5
  7. package/dist/client.js +9 -1
  8. package/dist/client.js.map +1 -1
  9. package/dist/code-map/tsconfig.tsbuildinfo +1 -1
  10. package/dist/common/actions.d.ts +134 -134
  11. package/dist/common/billing/balance-calculator.d.ts +0 -1
  12. package/dist/common/billing/balance-calculator.js +18 -11
  13. package/dist/common/billing/balance-calculator.js.map +1 -1
  14. package/dist/common/logger.d.ts +1 -0
  15. package/dist/common/logger.js +7 -0
  16. package/dist/common/logger.js.map +1 -0
  17. package/dist/common/types/usage.d.ts +2 -2
  18. package/dist/common/util/constants.d.ts +1 -0
  19. package/dist/common/util/constants.js +7 -0
  20. package/dist/common/util/constants.js.map +1 -0
  21. package/dist/common/util/helpers.d.ts +1 -0
  22. package/dist/common/util/helpers.js +6 -0
  23. package/dist/common/util/helpers.js.map +1 -0
  24. package/dist/common/util/token-counter.d.ts +3 -0
  25. package/dist/common/util/token-counter.js +27 -0
  26. package/dist/common/util/token-counter.js.map +1 -0
  27. package/dist/common/websockets/websocket-schema.d.ts +258 -258
  28. package/dist/index.js +5 -2
  29. package/dist/index.js.map +1 -1
  30. package/dist/json-config/dev-process-manager.js +10 -3
  31. package/dist/json-config/dev-process-manager.js.map +1 -1
  32. package/dist/project-files.js +1 -1
  33. package/dist/project-files.js.map +1 -1
  34. package/dist/utils/terminal.js +2 -2
  35. package/dist/utils/terminal.js.map +1 -1
  36. package/dist/utils/tool-renderers.js +18 -18
  37. package/dist/utils/tool-renderers.js.map +1 -1
  38. package/package.json +1 -1
  39. package/dist/common/advanced-analyzer.d.ts +0 -19
  40. package/dist/common/advanced-analyzer.js +0 -140
  41. package/dist/common/advanced-analyzer.js.map +0 -1
  42. package/dist/common/billing/check-auto-topup.d.ts +0 -12
  43. package/dist/common/billing/check-auto-topup.js +0 -50
  44. package/dist/common/billing/check-auto-topup.js.map +0 -1
  45. package/dist/common/billing/credit-check.d.ts +0 -8
  46. package/dist/common/billing/credit-check.js +0 -45
  47. package/dist/common/billing/credit-check.js.map +0 -1
  48. package/dist/common/billing/rollover-logic.d.ts +0 -13
  49. package/dist/common/billing/rollover-logic.js +0 -174
  50. package/dist/common/billing/rollover-logic.js.map +0 -1
  51. package/dist/common/billing/stripe-api.d.ts +0 -31
  52. package/dist/common/billing/stripe-api.js +0 -104
  53. package/dist/common/billing/stripe-api.js.map +0 -1
  54. package/dist/common/message-image-handling.d.ts +0 -41
  55. package/dist/common/message-image-handling.js +0 -57
  56. package/dist/common/message-image-handling.js.map +0 -1
  57. package/dist/common/types/billing.d.ts +0 -16
  58. package/dist/common/types/billing.js +0 -3
  59. package/dist/common/types/billing.js.map +0 -1
  60. package/dist/common/util/process-stream.d.ts +0 -8
  61. package/dist/common/util/process-stream.js +0 -102
  62. package/dist/common/util/process-stream.js.map +0 -1
  63. package/dist/common/util/referral-credits.d.ts +0 -1
  64. package/dist/common/util/referral-credits.js +0 -48
  65. package/dist/common/util/referral-credits.js.map +0 -1
@@ -32,12 +32,12 @@ export declare const ToolCallSchema: z.ZodObject<{
32
32
  id: z.ZodString;
33
33
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
34
34
  }, "strip", z.ZodTypeAny, {
35
- id: string;
36
35
  name: string;
36
+ id: string;
37
37
  input: Record<string, any>;
38
38
  }, {
39
- id: string;
40
39
  name: string;
40
+ id: string;
41
41
  input: Record<string, any>;
42
42
  }>;
43
43
  export type ToolCall = z.infer<typeof ToolCallSchema>;
@@ -196,17 +196,17 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
196
196
  type: "ephemeral";
197
197
  }>>;
198
198
  }, "strip", z.ZodTypeAny, {
199
- id: string;
200
- name: string;
201
199
  type: "tool_use";
200
+ name: string;
201
+ id: string;
202
202
  input: Record<string, any>;
203
203
  cache_control?: {
204
204
  type: "ephemeral";
205
205
  } | undefined;
206
206
  }, {
207
- id: string;
208
- name: string;
209
207
  type: "tool_use";
208
+ name: string;
209
+ id: string;
210
210
  input: Record<string, any>;
211
211
  cache_control?: {
212
212
  type: "ephemeral";
@@ -243,13 +243,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
243
243
  media_type: z.ZodLiteral<"image/jpeg">;
244
244
  data: z.ZodString;
245
245
  }, "strip", z.ZodTypeAny, {
246
- data: string;
247
246
  type: "base64";
248
247
  media_type: "image/jpeg";
249
- }, {
250
248
  data: string;
249
+ }, {
251
250
  type: "base64";
252
251
  media_type: "image/jpeg";
252
+ data: string;
253
253
  }>;
254
254
  cache_control: z.ZodOptional<z.ZodObject<{
255
255
  type: z.ZodLiteral<"ephemeral">;
@@ -261,9 +261,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
261
261
  }, "strip", z.ZodTypeAny, {
262
262
  type: "image";
263
263
  source: {
264
- data: string;
265
264
  type: "base64";
266
265
  media_type: "image/jpeg";
266
+ data: string;
267
267
  };
268
268
  cache_control?: {
269
269
  type: "ephemeral";
@@ -271,9 +271,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
271
271
  }, {
272
272
  type: "image";
273
273
  source: {
274
- data: string;
275
274
  type: "base64";
276
275
  media_type: "image/jpeg";
276
+ data: string;
277
277
  };
278
278
  cache_control?: {
279
279
  type: "ephemeral";
@@ -287,9 +287,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
287
287
  type: "ephemeral";
288
288
  } | undefined;
289
289
  } | {
290
- id: string;
291
- name: string;
292
290
  type: "tool_use";
291
+ name: string;
292
+ id: string;
293
293
  input: Record<string, any>;
294
294
  cache_control?: {
295
295
  type: "ephemeral";
@@ -304,9 +304,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
304
304
  } | {
305
305
  type: "image";
306
306
  source: {
307
- data: string;
308
307
  type: "base64";
309
308
  media_type: "image/jpeg";
309
+ data: string;
310
310
  };
311
311
  cache_control?: {
312
312
  type: "ephemeral";
@@ -321,9 +321,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
321
321
  type: "ephemeral";
322
322
  } | undefined;
323
323
  } | {
324
- id: string;
325
- name: string;
326
324
  type: "tool_use";
325
+ name: string;
326
+ id: string;
327
327
  input: Record<string, any>;
328
328
  cache_control?: {
329
329
  type: "ephemeral";
@@ -338,9 +338,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
338
338
  } | {
339
339
  type: "image";
340
340
  source: {
341
- data: string;
342
341
  type: "base64";
343
342
  media_type: "image/jpeg";
343
+ data: string;
344
344
  };
345
345
  cache_control?: {
346
346
  type: "ephemeral";
@@ -386,9 +386,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
386
386
  type: "ephemeral";
387
387
  } | undefined;
388
388
  } | {
389
- id: string;
390
- name: string;
391
389
  type: "tool_use";
390
+ name: string;
391
+ id: string;
392
392
  input: Record<string, any>;
393
393
  cache_control?: {
394
394
  type: "ephemeral";
@@ -403,9 +403,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
403
403
  } | {
404
404
  type: "image";
405
405
  source: {
406
- data: string;
407
406
  type: "base64";
408
407
  media_type: "image/jpeg";
408
+ data: string;
409
409
  };
410
410
  cache_control?: {
411
411
  type: "ephemeral";
@@ -451,9 +451,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
451
451
  type: "ephemeral";
452
452
  } | undefined;
453
453
  } | {
454
- id: string;
455
- name: string;
456
454
  type: "tool_use";
455
+ name: string;
456
+ id: string;
457
457
  input: Record<string, any>;
458
458
  cache_control?: {
459
459
  type: "ephemeral";
@@ -468,9 +468,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
468
468
  } | {
469
469
  type: "image";
470
470
  source: {
471
- data: string;
472
471
  type: "base64";
473
472
  media_type: "image/jpeg";
473
+ data: string;
474
474
  };
475
475
  cache_control?: {
476
476
  type: "ephemeral";
@@ -485,12 +485,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
485
485
  result: z.ZodString;
486
486
  id: z.ZodString;
487
487
  }, "strip", z.ZodTypeAny, {
488
- id: string;
489
488
  name: string;
489
+ id: string;
490
490
  result: string;
491
491
  }, {
492
- id: string;
493
492
  name: string;
493
+ id: string;
494
494
  result: string;
495
495
  }>, "many">;
496
496
  model: z.ZodOptional<z.ZodString>;
@@ -536,9 +536,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
536
536
  type: "ephemeral";
537
537
  } | undefined;
538
538
  } | {
539
- id: string;
540
- name: string;
541
539
  type: "tool_use";
540
+ name: string;
541
+ id: string;
542
542
  input: Record<string, any>;
543
543
  cache_control?: {
544
544
  type: "ephemeral";
@@ -553,9 +553,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
553
553
  } | {
554
554
  type: "image";
555
555
  source: {
556
- data: string;
557
556
  type: "base64";
558
557
  media_type: "image/jpeg";
558
+ data: string;
559
559
  };
560
560
  cache_control?: {
561
561
  type: "ephemeral";
@@ -566,13 +566,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
566
566
  consecutiveAssistantMessages?: number | undefined;
567
567
  };
568
568
  toolResults: {
569
- id: string;
570
569
  name: string;
570
+ id: string;
571
571
  result: string;
572
572
  }[];
573
- model?: string | undefined;
574
573
  prompt?: string | undefined;
575
574
  authToken?: string | undefined;
575
+ model?: string | undefined;
576
576
  }, {
577
577
  type: "prompt";
578
578
  promptId: string;
@@ -614,9 +614,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
614
614
  type: "ephemeral";
615
615
  } | undefined;
616
616
  } | {
617
- id: string;
618
- name: string;
619
617
  type: "tool_use";
618
+ name: string;
619
+ id: string;
620
620
  input: Record<string, any>;
621
621
  cache_control?: {
622
622
  type: "ephemeral";
@@ -631,9 +631,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
631
631
  } | {
632
632
  type: "image";
633
633
  source: {
634
- data: string;
635
634
  type: "base64";
636
635
  media_type: "image/jpeg";
636
+ data: string;
637
637
  };
638
638
  cache_control?: {
639
639
  type: "ephemeral";
@@ -644,14 +644,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
644
644
  consecutiveAssistantMessages?: number | undefined;
645
645
  };
646
646
  toolResults: {
647
- id: string;
648
647
  name: string;
648
+ id: string;
649
649
  result: string;
650
650
  }[];
651
- model?: string | undefined;
652
651
  prompt?: string | undefined;
653
652
  authToken?: string | undefined;
654
653
  costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
654
+ model?: string | undefined;
655
655
  }>, z.ZodObject<{
656
656
  type: z.ZodLiteral<"read-files-response">;
657
657
  files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
@@ -865,18 +865,18 @@ export declare const UsageReponseSchema: z.ZodObject<{
865
865
  nextMonthlyGrant: z.ZodNumber;
866
866
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
867
867
  }, "strip", z.ZodTypeAny, {
868
- next_quota_reset: Date | null;
869
868
  type: "usage-response";
870
869
  usage: number;
871
870
  remainingBalance: number;
871
+ next_quota_reset: Date | null;
872
872
  nextMonthlyGrant: number;
873
873
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
874
874
  autoTopupAdded?: number | undefined;
875
875
  }, {
876
- next_quota_reset: Date | null;
877
876
  type: "usage-response";
878
877
  usage: number;
879
878
  remainingBalance: number;
879
+ next_quota_reset: Date | null;
880
880
  nextMonthlyGrant: number;
881
881
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
882
882
  autoTopupAdded?: number | undefined;
@@ -893,18 +893,18 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
893
893
  nextMonthlyGrant: z.ZodNumber;
894
894
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
895
895
  }, "type">>, "strip", z.ZodTypeAny, {
896
- next_quota_reset: Date | null;
897
896
  type: "init-response";
898
897
  usage: number;
899
898
  remainingBalance: number;
899
+ next_quota_reset: Date | null;
900
900
  nextMonthlyGrant: number;
901
901
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
902
902
  autoTopupAdded?: number | undefined;
903
903
  }, {
904
- next_quota_reset: Date | null;
905
904
  type: "init-response";
906
905
  usage: number;
907
906
  remainingBalance: number;
907
+ next_quota_reset: Date | null;
908
908
  nextMonthlyGrant: number;
909
909
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
910
910
  autoTopupAdded?: number | undefined;
@@ -952,16 +952,16 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
952
952
  }>, "many">;
953
953
  resetFileVersions: z.ZodBoolean;
954
954
  }, {
955
- next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
956
955
  usage: z.ZodOptional<z.ZodNumber>;
957
956
  remainingBalance: z.ZodOptional<z.ZodNumber>;
958
957
  balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("./types/grant").GrantType, ...import("./types/grant").GrantType[]]>, z.ZodNumber>>>;
958
+ next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
959
959
  nextMonthlyGrant: z.ZodOptional<z.ZodNumber>;
960
960
  autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
961
961
  }>, "strip", z.ZodTypeAny, {
962
962
  type: "response-complete";
963
- response: string;
964
963
  userInputId: string;
964
+ response: string;
965
965
  changes: {
966
966
  type: "patch" | "file";
967
967
  path: string;
@@ -977,16 +977,16 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
977
977
  content: string;
978
978
  }[];
979
979
  resetFileVersions: boolean;
980
- next_quota_reset?: Date | null | undefined;
981
980
  usage?: number | undefined;
982
981
  remainingBalance?: number | undefined;
983
982
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
983
+ next_quota_reset?: Date | null | undefined;
984
984
  nextMonthlyGrant?: number | undefined;
985
985
  autoTopupAdded?: number | undefined;
986
986
  }, {
987
987
  type: "response-complete";
988
- response: string;
989
988
  userInputId: string;
989
+ response: string;
990
990
  changes: {
991
991
  type: "patch" | "file";
992
992
  path: string;
@@ -1002,10 +1002,10 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1002
1002
  content: string;
1003
1003
  }[];
1004
1004
  resetFileVersions: boolean;
1005
- next_quota_reset?: Date | null | undefined;
1006
1005
  usage?: number | undefined;
1007
1006
  remainingBalance?: number | undefined;
1008
1007
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
1008
+ next_quota_reset?: Date | null | undefined;
1009
1009
  nextMonthlyGrant?: number | undefined;
1010
1010
  autoTopupAdded?: number | undefined;
1011
1011
  }>;
@@ -1015,12 +1015,12 @@ export declare const MessageCostResponseSchema: z.ZodObject<{
1015
1015
  credits: z.ZodNumber;
1016
1016
  }, "strip", z.ZodTypeAny, {
1017
1017
  type: "message-cost-response";
1018
- credits: number;
1019
1018
  promptId: string;
1019
+ credits: number;
1020
1020
  }, {
1021
1021
  type: "message-cost-response";
1022
- credits: number;
1023
1022
  promptId: string;
1023
+ credits: number;
1024
1024
  }>;
1025
1025
  export type MessageCostResponse = z.infer<typeof MessageCostResponseSchema>;
1026
1026
  export declare const PromptResponseSchema: z.ZodObject<{
@@ -1174,17 +1174,17 @@ export declare const PromptResponseSchema: z.ZodObject<{
1174
1174
  type: "ephemeral";
1175
1175
  }>>;
1176
1176
  }, "strip", z.ZodTypeAny, {
1177
- id: string;
1178
- name: string;
1179
1177
  type: "tool_use";
1178
+ name: string;
1179
+ id: string;
1180
1180
  input: Record<string, any>;
1181
1181
  cache_control?: {
1182
1182
  type: "ephemeral";
1183
1183
  } | undefined;
1184
1184
  }, {
1185
- id: string;
1186
- name: string;
1187
1185
  type: "tool_use";
1186
+ name: string;
1187
+ id: string;
1188
1188
  input: Record<string, any>;
1189
1189
  cache_control?: {
1190
1190
  type: "ephemeral";
@@ -1221,13 +1221,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
1221
1221
  media_type: z.ZodLiteral<"image/jpeg">;
1222
1222
  data: z.ZodString;
1223
1223
  }, "strip", z.ZodTypeAny, {
1224
- data: string;
1225
1224
  type: "base64";
1226
1225
  media_type: "image/jpeg";
1227
- }, {
1228
1226
  data: string;
1227
+ }, {
1229
1228
  type: "base64";
1230
1229
  media_type: "image/jpeg";
1230
+ data: string;
1231
1231
  }>;
1232
1232
  cache_control: z.ZodOptional<z.ZodObject<{
1233
1233
  type: z.ZodLiteral<"ephemeral">;
@@ -1239,9 +1239,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1239
1239
  }, "strip", z.ZodTypeAny, {
1240
1240
  type: "image";
1241
1241
  source: {
1242
- data: string;
1243
1242
  type: "base64";
1244
1243
  media_type: "image/jpeg";
1244
+ data: string;
1245
1245
  };
1246
1246
  cache_control?: {
1247
1247
  type: "ephemeral";
@@ -1249,9 +1249,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1249
1249
  }, {
1250
1250
  type: "image";
1251
1251
  source: {
1252
- data: string;
1253
1252
  type: "base64";
1254
1253
  media_type: "image/jpeg";
1254
+ data: string;
1255
1255
  };
1256
1256
  cache_control?: {
1257
1257
  type: "ephemeral";
@@ -1265,9 +1265,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1265
1265
  type: "ephemeral";
1266
1266
  } | undefined;
1267
1267
  } | {
1268
- id: string;
1269
- name: string;
1270
1268
  type: "tool_use";
1269
+ name: string;
1270
+ id: string;
1271
1271
  input: Record<string, any>;
1272
1272
  cache_control?: {
1273
1273
  type: "ephemeral";
@@ -1282,9 +1282,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1282
1282
  } | {
1283
1283
  type: "image";
1284
1284
  source: {
1285
- data: string;
1286
1285
  type: "base64";
1287
1286
  media_type: "image/jpeg";
1287
+ data: string;
1288
1288
  };
1289
1289
  cache_control?: {
1290
1290
  type: "ephemeral";
@@ -1299,9 +1299,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1299
1299
  type: "ephemeral";
1300
1300
  } | undefined;
1301
1301
  } | {
1302
- id: string;
1303
- name: string;
1304
1302
  type: "tool_use";
1303
+ name: string;
1304
+ id: string;
1305
1305
  input: Record<string, any>;
1306
1306
  cache_control?: {
1307
1307
  type: "ephemeral";
@@ -1316,9 +1316,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1316
1316
  } | {
1317
1317
  type: "image";
1318
1318
  source: {
1319
- data: string;
1320
1319
  type: "base64";
1321
1320
  media_type: "image/jpeg";
1321
+ data: string;
1322
1322
  };
1323
1323
  cache_control?: {
1324
1324
  type: "ephemeral";
@@ -1364,9 +1364,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1364
1364
  type: "ephemeral";
1365
1365
  } | undefined;
1366
1366
  } | {
1367
- id: string;
1368
- name: string;
1369
1367
  type: "tool_use";
1368
+ name: string;
1369
+ id: string;
1370
1370
  input: Record<string, any>;
1371
1371
  cache_control?: {
1372
1372
  type: "ephemeral";
@@ -1381,9 +1381,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1381
1381
  } | {
1382
1382
  type: "image";
1383
1383
  source: {
1384
- data: string;
1385
1384
  type: "base64";
1386
1385
  media_type: "image/jpeg";
1386
+ data: string;
1387
1387
  };
1388
1388
  cache_control?: {
1389
1389
  type: "ephemeral";
@@ -1429,9 +1429,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1429
1429
  type: "ephemeral";
1430
1430
  } | undefined;
1431
1431
  } | {
1432
- id: string;
1433
- name: string;
1434
1432
  type: "tool_use";
1433
+ name: string;
1434
+ id: string;
1435
1435
  input: Record<string, any>;
1436
1436
  cache_control?: {
1437
1437
  type: "ephemeral";
@@ -1446,9 +1446,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1446
1446
  } | {
1447
1447
  type: "image";
1448
1448
  source: {
1449
- data: string;
1450
1449
  type: "base64";
1451
1450
  media_type: "image/jpeg";
1451
+ data: string;
1452
1452
  };
1453
1453
  cache_control?: {
1454
1454
  type: "ephemeral";
@@ -1463,12 +1463,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
1463
1463
  parameters: z.ZodRecord<z.ZodString, z.ZodString>;
1464
1464
  id: z.ZodString;
1465
1465
  }, "strip", z.ZodTypeAny, {
1466
- id: string;
1467
1466
  name: string;
1467
+ id: string;
1468
1468
  parameters: Record<string, string>;
1469
1469
  }, {
1470
- id: string;
1471
1470
  name: string;
1471
+ id: string;
1472
1472
  parameters: Record<string, string>;
1473
1473
  }>, "many">;
1474
1474
  toolResults: z.ZodArray<z.ZodObject<{
@@ -1476,12 +1476,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
1476
1476
  result: z.ZodString;
1477
1477
  id: z.ZodString;
1478
1478
  }, "strip", z.ZodTypeAny, {
1479
- id: string;
1480
1479
  name: string;
1480
+ id: string;
1481
1481
  result: string;
1482
1482
  }, {
1483
- id: string;
1484
1483
  name: string;
1484
+ id: string;
1485
1485
  result: string;
1486
1486
  }>, "many">;
1487
1487
  }, "strip", z.ZodTypeAny, {
@@ -1524,9 +1524,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1524
1524
  type: "ephemeral";
1525
1525
  } | undefined;
1526
1526
  } | {
1527
- id: string;
1528
- name: string;
1529
1527
  type: "tool_use";
1528
+ name: string;
1529
+ id: string;
1530
1530
  input: Record<string, any>;
1531
1531
  cache_control?: {
1532
1532
  type: "ephemeral";
@@ -1541,9 +1541,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1541
1541
  } | {
1542
1542
  type: "image";
1543
1543
  source: {
1544
- data: string;
1545
1544
  type: "base64";
1546
1545
  media_type: "image/jpeg";
1546
+ data: string;
1547
1547
  };
1548
1548
  cache_control?: {
1549
1549
  type: "ephemeral";
@@ -1554,13 +1554,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
1554
1554
  consecutiveAssistantMessages?: number | undefined;
1555
1555
  };
1556
1556
  toolResults: {
1557
- id: string;
1558
1557
  name: string;
1558
+ id: string;
1559
1559
  result: string;
1560
1560
  }[];
1561
1561
  toolCalls: {
1562
- id: string;
1563
1562
  name: string;
1563
+ id: string;
1564
1564
  parameters: Record<string, string>;
1565
1565
  }[];
1566
1566
  }, {
@@ -1603,9 +1603,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1603
1603
  type: "ephemeral";
1604
1604
  } | undefined;
1605
1605
  } | {
1606
- id: string;
1607
- name: string;
1608
1606
  type: "tool_use";
1607
+ name: string;
1608
+ id: string;
1609
1609
  input: Record<string, any>;
1610
1610
  cache_control?: {
1611
1611
  type: "ephemeral";
@@ -1620,9 +1620,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1620
1620
  } | {
1621
1621
  type: "image";
1622
1622
  source: {
1623
- data: string;
1624
1623
  type: "base64";
1625
1624
  media_type: "image/jpeg";
1625
+ data: string;
1626
1626
  };
1627
1627
  cache_control?: {
1628
1628
  type: "ephemeral";
@@ -1633,13 +1633,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
1633
1633
  consecutiveAssistantMessages?: number | undefined;
1634
1634
  };
1635
1635
  toolResults: {
1636
- id: string;
1637
1636
  name: string;
1637
+ id: string;
1638
1638
  result: string;
1639
1639
  }[];
1640
1640
  toolCalls: {
1641
- id: string;
1642
1641
  name: string;
1642
+ id: string;
1643
1643
  parameters: Record<string, string>;
1644
1644
  }[];
1645
1645
  }>;
@@ -1698,16 +1698,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1698
1698
  }>, "many">;
1699
1699
  resetFileVersions: z.ZodBoolean;
1700
1700
  }, {
1701
- next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1702
1701
  usage: z.ZodOptional<z.ZodNumber>;
1703
1702
  remainingBalance: z.ZodOptional<z.ZodNumber>;
1704
1703
  balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("./types/grant").GrantType, ...import("./types/grant").GrantType[]]>, z.ZodNumber>>>;
1704
+ next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1705
1705
  nextMonthlyGrant: z.ZodOptional<z.ZodNumber>;
1706
1706
  autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1707
1707
  }>, "strip", z.ZodTypeAny, {
1708
1708
  type: "response-complete";
1709
- response: string;
1710
1709
  userInputId: string;
1710
+ response: string;
1711
1711
  changes: {
1712
1712
  type: "patch" | "file";
1713
1713
  path: string;
@@ -1723,16 +1723,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1723
1723
  content: string;
1724
1724
  }[];
1725
1725
  resetFileVersions: boolean;
1726
- next_quota_reset?: Date | null | undefined;
1727
1726
  usage?: number | undefined;
1728
1727
  remainingBalance?: number | undefined;
1729
1728
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
1729
+ next_quota_reset?: Date | null | undefined;
1730
1730
  nextMonthlyGrant?: number | undefined;
1731
1731
  autoTopupAdded?: number | undefined;
1732
1732
  }, {
1733
1733
  type: "response-complete";
1734
- response: string;
1735
1734
  userInputId: string;
1735
+ response: string;
1736
1736
  changes: {
1737
1737
  type: "patch" | "file";
1738
1738
  path: string;
@@ -1748,10 +1748,10 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1748
1748
  content: string;
1749
1749
  }[];
1750
1750
  resetFileVersions: boolean;
1751
- next_quota_reset?: Date | null | undefined;
1752
1751
  usage?: number | undefined;
1753
1752
  remainingBalance?: number | undefined;
1754
1753
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
1754
+ next_quota_reset?: Date | null | undefined;
1755
1755
  nextMonthlyGrant?: number | undefined;
1756
1756
  autoTopupAdded?: number | undefined;
1757
1757
  }>, z.ZodObject<{
@@ -1905,17 +1905,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1905
1905
  type: "ephemeral";
1906
1906
  }>>;
1907
1907
  }, "strip", z.ZodTypeAny, {
1908
- id: string;
1909
- name: string;
1910
1908
  type: "tool_use";
1909
+ name: string;
1910
+ id: string;
1911
1911
  input: Record<string, any>;
1912
1912
  cache_control?: {
1913
1913
  type: "ephemeral";
1914
1914
  } | undefined;
1915
1915
  }, {
1916
- id: string;
1917
- name: string;
1918
1916
  type: "tool_use";
1917
+ name: string;
1918
+ id: string;
1919
1919
  input: Record<string, any>;
1920
1920
  cache_control?: {
1921
1921
  type: "ephemeral";
@@ -1952,13 +1952,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1952
1952
  media_type: z.ZodLiteral<"image/jpeg">;
1953
1953
  data: z.ZodString;
1954
1954
  }, "strip", z.ZodTypeAny, {
1955
- data: string;
1956
1955
  type: "base64";
1957
1956
  media_type: "image/jpeg";
1958
- }, {
1959
1957
  data: string;
1958
+ }, {
1960
1959
  type: "base64";
1961
1960
  media_type: "image/jpeg";
1961
+ data: string;
1962
1962
  }>;
1963
1963
  cache_control: z.ZodOptional<z.ZodObject<{
1964
1964
  type: z.ZodLiteral<"ephemeral">;
@@ -1970,9 +1970,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1970
1970
  }, "strip", z.ZodTypeAny, {
1971
1971
  type: "image";
1972
1972
  source: {
1973
- data: string;
1974
1973
  type: "base64";
1975
1974
  media_type: "image/jpeg";
1975
+ data: string;
1976
1976
  };
1977
1977
  cache_control?: {
1978
1978
  type: "ephemeral";
@@ -1980,9 +1980,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1980
1980
  }, {
1981
1981
  type: "image";
1982
1982
  source: {
1983
- data: string;
1984
1983
  type: "base64";
1985
1984
  media_type: "image/jpeg";
1985
+ data: string;
1986
1986
  };
1987
1987
  cache_control?: {
1988
1988
  type: "ephemeral";
@@ -1996,9 +1996,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1996
1996
  type: "ephemeral";
1997
1997
  } | undefined;
1998
1998
  } | {
1999
- id: string;
2000
- name: string;
2001
1999
  type: "tool_use";
2000
+ name: string;
2001
+ id: string;
2002
2002
  input: Record<string, any>;
2003
2003
  cache_control?: {
2004
2004
  type: "ephemeral";
@@ -2013,9 +2013,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2013
2013
  } | {
2014
2014
  type: "image";
2015
2015
  source: {
2016
- data: string;
2017
2016
  type: "base64";
2018
2017
  media_type: "image/jpeg";
2018
+ data: string;
2019
2019
  };
2020
2020
  cache_control?: {
2021
2021
  type: "ephemeral";
@@ -2030,9 +2030,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2030
2030
  type: "ephemeral";
2031
2031
  } | undefined;
2032
2032
  } | {
2033
- id: string;
2034
- name: string;
2035
2033
  type: "tool_use";
2034
+ name: string;
2035
+ id: string;
2036
2036
  input: Record<string, any>;
2037
2037
  cache_control?: {
2038
2038
  type: "ephemeral";
@@ -2047,9 +2047,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2047
2047
  } | {
2048
2048
  type: "image";
2049
2049
  source: {
2050
- data: string;
2051
2050
  type: "base64";
2052
2051
  media_type: "image/jpeg";
2052
+ data: string;
2053
2053
  };
2054
2054
  cache_control?: {
2055
2055
  type: "ephemeral";
@@ -2095,9 +2095,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2095
2095
  type: "ephemeral";
2096
2096
  } | undefined;
2097
2097
  } | {
2098
- id: string;
2099
- name: string;
2100
2098
  type: "tool_use";
2099
+ name: string;
2100
+ id: string;
2101
2101
  input: Record<string, any>;
2102
2102
  cache_control?: {
2103
2103
  type: "ephemeral";
@@ -2112,9 +2112,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2112
2112
  } | {
2113
2113
  type: "image";
2114
2114
  source: {
2115
- data: string;
2116
2115
  type: "base64";
2117
2116
  media_type: "image/jpeg";
2117
+ data: string;
2118
2118
  };
2119
2119
  cache_control?: {
2120
2120
  type: "ephemeral";
@@ -2160,9 +2160,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2160
2160
  type: "ephemeral";
2161
2161
  } | undefined;
2162
2162
  } | {
2163
- id: string;
2164
- name: string;
2165
2163
  type: "tool_use";
2164
+ name: string;
2165
+ id: string;
2166
2166
  input: Record<string, any>;
2167
2167
  cache_control?: {
2168
2168
  type: "ephemeral";
@@ -2177,9 +2177,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2177
2177
  } | {
2178
2178
  type: "image";
2179
2179
  source: {
2180
- data: string;
2181
2180
  type: "base64";
2182
2181
  media_type: "image/jpeg";
2182
+ data: string;
2183
2183
  };
2184
2184
  cache_control?: {
2185
2185
  type: "ephemeral";
@@ -2194,12 +2194,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2194
2194
  parameters: z.ZodRecord<z.ZodString, z.ZodString>;
2195
2195
  id: z.ZodString;
2196
2196
  }, "strip", z.ZodTypeAny, {
2197
- id: string;
2198
2197
  name: string;
2198
+ id: string;
2199
2199
  parameters: Record<string, string>;
2200
2200
  }, {
2201
- id: string;
2202
2201
  name: string;
2202
+ id: string;
2203
2203
  parameters: Record<string, string>;
2204
2204
  }>, "many">;
2205
2205
  toolResults: z.ZodArray<z.ZodObject<{
@@ -2207,12 +2207,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2207
2207
  result: z.ZodString;
2208
2208
  id: z.ZodString;
2209
2209
  }, "strip", z.ZodTypeAny, {
2210
- id: string;
2211
2210
  name: string;
2211
+ id: string;
2212
2212
  result: string;
2213
2213
  }, {
2214
- id: string;
2215
2214
  name: string;
2215
+ id: string;
2216
2216
  result: string;
2217
2217
  }>, "many">;
2218
2218
  }, "strip", z.ZodTypeAny, {
@@ -2255,9 +2255,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2255
2255
  type: "ephemeral";
2256
2256
  } | undefined;
2257
2257
  } | {
2258
- id: string;
2259
- name: string;
2260
2258
  type: "tool_use";
2259
+ name: string;
2260
+ id: string;
2261
2261
  input: Record<string, any>;
2262
2262
  cache_control?: {
2263
2263
  type: "ephemeral";
@@ -2272,9 +2272,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2272
2272
  } | {
2273
2273
  type: "image";
2274
2274
  source: {
2275
- data: string;
2276
2275
  type: "base64";
2277
2276
  media_type: "image/jpeg";
2277
+ data: string;
2278
2278
  };
2279
2279
  cache_control?: {
2280
2280
  type: "ephemeral";
@@ -2285,13 +2285,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2285
2285
  consecutiveAssistantMessages?: number | undefined;
2286
2286
  };
2287
2287
  toolResults: {
2288
- id: string;
2289
2288
  name: string;
2289
+ id: string;
2290
2290
  result: string;
2291
2291
  }[];
2292
2292
  toolCalls: {
2293
- id: string;
2294
2293
  name: string;
2294
+ id: string;
2295
2295
  parameters: Record<string, string>;
2296
2296
  }[];
2297
2297
  }, {
@@ -2334,9 +2334,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2334
2334
  type: "ephemeral";
2335
2335
  } | undefined;
2336
2336
  } | {
2337
- id: string;
2338
- name: string;
2339
2337
  type: "tool_use";
2338
+ name: string;
2339
+ id: string;
2340
2340
  input: Record<string, any>;
2341
2341
  cache_control?: {
2342
2342
  type: "ephemeral";
@@ -2351,9 +2351,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2351
2351
  } | {
2352
2352
  type: "image";
2353
2353
  source: {
2354
- data: string;
2355
2354
  type: "base64";
2356
2355
  media_type: "image/jpeg";
2356
+ data: string;
2357
2357
  };
2358
2358
  cache_control?: {
2359
2359
  type: "ephemeral";
@@ -2364,13 +2364,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2364
2364
  consecutiveAssistantMessages?: number | undefined;
2365
2365
  };
2366
2366
  toolResults: {
2367
- id: string;
2368
2367
  name: string;
2368
+ id: string;
2369
2369
  result: string;
2370
2370
  }[];
2371
2371
  toolCalls: {
2372
- id: string;
2373
2372
  name: string;
2373
+ id: string;
2374
2374
  parameters: Record<string, string>;
2375
2375
  }[];
2376
2376
  }>, z.ZodObject<{
@@ -2394,12 +2394,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2394
2394
  id: z.ZodString;
2395
2395
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
2396
2396
  }, "strip", z.ZodTypeAny, {
2397
- id: string;
2398
2397
  name: string;
2398
+ id: string;
2399
2399
  input: Record<string, any>;
2400
2400
  }, {
2401
- id: string;
2402
2401
  name: string;
2402
+ id: string;
2403
2403
  input: Record<string, any>;
2404
2404
  }>;
2405
2405
  changes: z.ZodArray<z.ZodObject<{
@@ -2440,14 +2440,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2440
2440
  }>, "many">;
2441
2441
  resetFileVersions: z.ZodBoolean;
2442
2442
  }, "strip", z.ZodTypeAny, {
2443
+ type: "tool-call";
2443
2444
  data: {
2444
- id: string;
2445
2445
  name: string;
2446
+ id: string;
2446
2447
  input: Record<string, any>;
2447
2448
  };
2448
- type: "tool-call";
2449
- response: string;
2450
2449
  userInputId: string;
2450
+ response: string;
2451
2451
  changes: {
2452
2452
  type: "patch" | "file";
2453
2453
  path: string;
@@ -2464,14 +2464,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2464
2464
  }[];
2465
2465
  resetFileVersions: boolean;
2466
2466
  }, {
2467
+ type: "tool-call";
2467
2468
  data: {
2468
- id: string;
2469
2469
  name: string;
2470
+ id: string;
2470
2471
  input: Record<string, any>;
2471
2472
  };
2472
- type: "tool-call";
2473
- response: string;
2474
2473
  userInputId: string;
2474
+ response: string;
2475
2475
  changes: {
2476
2476
  type: "patch" | "file";
2477
2477
  path: string;
@@ -2522,18 +2522,18 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2522
2522
  nextMonthlyGrant: z.ZodNumber;
2523
2523
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
2524
2524
  }, "type">>, "strip", z.ZodTypeAny, {
2525
- next_quota_reset: Date | null;
2526
2525
  type: "init-response";
2527
2526
  usage: number;
2528
2527
  remainingBalance: number;
2528
+ next_quota_reset: Date | null;
2529
2529
  nextMonthlyGrant: number;
2530
2530
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
2531
2531
  autoTopupAdded?: number | undefined;
2532
2532
  }, {
2533
- next_quota_reset: Date | null;
2534
2533
  type: "init-response";
2535
2534
  usage: number;
2536
2535
  remainingBalance: number;
2536
+ next_quota_reset: Date | null;
2537
2537
  nextMonthlyGrant: number;
2538
2538
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
2539
2539
  autoTopupAdded?: number | undefined;
@@ -2546,18 +2546,18 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2546
2546
  nextMonthlyGrant: z.ZodNumber;
2547
2547
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
2548
2548
  }, "strip", z.ZodTypeAny, {
2549
- next_quota_reset: Date | null;
2550
2549
  type: "usage-response";
2551
2550
  usage: number;
2552
2551
  remainingBalance: number;
2552
+ next_quota_reset: Date | null;
2553
2553
  nextMonthlyGrant: number;
2554
2554
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
2555
2555
  autoTopupAdded?: number | undefined;
2556
2556
  }, {
2557
- next_quota_reset: Date | null;
2558
2557
  type: "usage-response";
2559
2558
  usage: number;
2560
2559
  remainingBalance: number;
2560
+ next_quota_reset: Date | null;
2561
2561
  nextMonthlyGrant: number;
2562
2562
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
2563
2563
  autoTopupAdded?: number | undefined;
@@ -2567,12 +2567,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2567
2567
  credits: z.ZodNumber;
2568
2568
  }, "strip", z.ZodTypeAny, {
2569
2569
  type: "message-cost-response";
2570
- credits: number;
2571
2570
  promptId: string;
2571
+ credits: number;
2572
2572
  }, {
2573
2573
  type: "message-cost-response";
2574
- credits: number;
2575
2574
  promptId: string;
2575
+ credits: number;
2576
2576
  }>, z.ZodObject<{
2577
2577
  type: z.ZodLiteral<"action-error">;
2578
2578
  message: z.ZodString;
@@ -2581,13 +2581,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2581
2581
  }, "strip", z.ZodTypeAny, {
2582
2582
  type: "action-error";
2583
2583
  message: string;
2584
- error?: string | undefined;
2585
2584
  remainingBalance?: number | undefined;
2585
+ error?: string | undefined;
2586
2586
  }, {
2587
2587
  type: "action-error";
2588
2588
  message: string;
2589
- error?: string | undefined;
2590
2589
  remainingBalance?: number | undefined;
2590
+ error?: string | undefined;
2591
2591
  }>, z.ZodObject<{
2592
2592
  type: z.ZodLiteral<"commit-message-response">;
2593
2593
  commitMessage: z.ZodString;