codebuff 1.0.227 → 1.0.229

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 (92) hide show
  1. package/dist/background-process-manager.d.ts +4 -2
  2. package/dist/background-process-manager.js +75 -56
  3. package/dist/background-process-manager.js.map +1 -1
  4. package/dist/cli.d.ts +3 -1
  5. package/dist/cli.js +15 -2
  6. package/dist/cli.js.map +1 -1
  7. package/dist/client.d.ts +7 -5
  8. package/dist/client.js +49 -29
  9. package/dist/client.js.map +1 -1
  10. package/dist/code-map/tsconfig.tsbuildinfo +1 -1
  11. package/dist/common/actions.d.ts +114 -108
  12. package/dist/common/actions.js +5 -1
  13. package/dist/common/actions.js.map +1 -1
  14. package/dist/common/bigquery/client.d.ts +15 -0
  15. package/dist/common/bigquery/client.js +245 -0
  16. package/dist/common/bigquery/client.js.map +1 -0
  17. package/dist/common/bigquery/schema.d.ts +54 -0
  18. package/dist/common/bigquery/schema.js +24 -0
  19. package/dist/common/bigquery/schema.js.map +1 -0
  20. package/dist/common/billing/balance-calculator.d.ts +3 -0
  21. package/dist/common/billing/balance-calculator.js +6 -2
  22. package/dist/common/billing/balance-calculator.js.map +1 -1
  23. package/dist/common/billing/grant-credits.d.ts +16 -1
  24. package/dist/common/billing/grant-credits.js +67 -2
  25. package/dist/common/billing/grant-credits.js.map +1 -1
  26. package/dist/common/constants/tools.d.ts +1 -0
  27. package/dist/common/constants/tools.js +21 -1
  28. package/dist/common/constants/tools.js.map +1 -1
  29. package/dist/common/constants.d.ts +2 -1
  30. package/dist/common/constants.js +2 -5
  31. package/dist/common/constants.js.map +1 -1
  32. package/dist/common/db/transaction.d.ts +12 -0
  33. package/dist/common/db/transaction.js +36 -0
  34. package/dist/common/db/transaction.js.map +1 -0
  35. package/dist/common/json-config/__tests__/stringify-schema.test.d.ts +1 -0
  36. package/dist/common/json-config/__tests__/stringify-schema.test.js +66 -0
  37. package/dist/common/json-config/__tests__/stringify-schema.test.js.map +1 -0
  38. package/dist/common/json-config/constants.d.ts +77 -0
  39. package/dist/common/json-config/constants.js +42 -0
  40. package/dist/common/json-config/constants.js.map +1 -0
  41. package/dist/common/json-config/stringify-schema.d.ts +10 -0
  42. package/dist/common/json-config/stringify-schema.js +87 -0
  43. package/dist/common/json-config/stringify-schema.js.map +1 -0
  44. package/dist/common/types/usage.d.ts +4 -4
  45. package/dist/common/util/__tests__/string.test.js +2 -3
  46. package/dist/common/util/__tests__/string.test.js.map +1 -1
  47. package/dist/common/util/string.d.ts +3 -2
  48. package/dist/common/util/string.js +14 -4
  49. package/dist/common/util/string.js.map +1 -1
  50. package/dist/common/websockets/websocket-client.d.ts +2 -1
  51. package/dist/common/websockets/websocket-client.js +12 -0
  52. package/dist/common/websockets/websocket-client.js.map +1 -1
  53. package/dist/common/websockets/websocket-schema.d.ts +222 -202
  54. package/dist/{json-config/dev-process-manager.d.ts → dev-process-manager.d.ts} +1 -1
  55. package/dist/{json-config/dev-process-manager.js → dev-process-manager.js} +15 -5
  56. package/dist/dev-process-manager.js.map +1 -0
  57. package/dist/index.js +10 -6
  58. package/dist/index.js.map +1 -1
  59. package/dist/utils/__tests__/response-example-4-files.txt +621 -0
  60. package/dist/utils/__tests__/tool-renderers.test.js +16 -8
  61. package/dist/utils/__tests__/tool-renderers.test.js.map +1 -1
  62. package/dist/utils/__tests__/xml-stream-parser.test.js +23 -11
  63. package/dist/utils/__tests__/xml-stream-parser.test.js.map +1 -1
  64. package/dist/utils/terminal.d.ts +10 -3
  65. package/dist/utils/terminal.js +53 -14
  66. package/dist/utils/terminal.js.map +1 -1
  67. package/package.json +2 -2
  68. package/dist/common/billing/quota-manager.d.ts +0 -29
  69. package/dist/common/billing/quota-manager.js +0 -251
  70. package/dist/common/billing/quota-manager.js.map +0 -1
  71. package/dist/common/logger.d.ts +0 -1
  72. package/dist/common/logger.js +0 -7
  73. package/dist/common/logger.js.map +0 -1
  74. package/dist/common/util/constants.d.ts +0 -1
  75. package/dist/common/util/constants.js +0 -7
  76. package/dist/common/util/constants.js.map +0 -1
  77. package/dist/common/util/helpers.d.ts +0 -1
  78. package/dist/common/util/helpers.js +0 -6
  79. package/dist/common/util/helpers.js.map +0 -1
  80. package/dist/common/util/token-counter.d.ts +0 -3
  81. package/dist/common/util/token-counter.js +0 -27
  82. package/dist/common/util/token-counter.js.map +0 -1
  83. package/dist/common/util/tools.d.ts +0 -2
  84. package/dist/common/util/tools.js +0 -13
  85. package/dist/common/util/tools.js.map +0 -1
  86. package/dist/json-config/constants.d.ts +0 -43
  87. package/dist/json-config/constants.js +0 -13
  88. package/dist/json-config/constants.js.map +0 -1
  89. package/dist/json-config/dev-process-manager.js.map +0 -1
  90. /package/dist/{json-config → common/json-config}/parser.d.ts +0 -0
  91. /package/dist/{json-config → common/json-config}/parser.js +0 -0
  92. /package/dist/{json-config → common/json-config}/parser.js.map +0 -0
@@ -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
- name: string;
36
35
  id: string;
36
+ name: string;
37
37
  input: Record<string, any>;
38
38
  }, {
39
- name: string;
40
39
  id: string;
40
+ name: string;
41
41
  input: Record<string, any>;
42
42
  }>;
43
43
  export type ToolCall = z.infer<typeof ToolCallSchema>;
@@ -197,16 +197,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
197
197
  }>>;
198
198
  }, "strip", z.ZodTypeAny, {
199
199
  type: "tool_use";
200
- name: string;
201
200
  id: string;
201
+ name: string;
202
202
  input: Record<string, any>;
203
203
  cache_control?: {
204
204
  type: "ephemeral";
205
205
  } | undefined;
206
206
  }, {
207
207
  type: "tool_use";
208
- name: string;
209
208
  id: string;
209
+ name: string;
210
210
  input: Record<string, any>;
211
211
  cache_control?: {
212
212
  type: "ephemeral";
@@ -244,12 +244,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
244
244
  data: z.ZodString;
245
245
  }, "strip", z.ZodTypeAny, {
246
246
  type: "base64";
247
- media_type: "image/jpeg";
248
247
  data: string;
248
+ media_type: "image/jpeg";
249
249
  }, {
250
250
  type: "base64";
251
- media_type: "image/jpeg";
252
251
  data: string;
252
+ media_type: "image/jpeg";
253
253
  }>;
254
254
  cache_control: z.ZodOptional<z.ZodObject<{
255
255
  type: z.ZodLiteral<"ephemeral">;
@@ -262,8 +262,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
262
262
  type: "image";
263
263
  source: {
264
264
  type: "base64";
265
- media_type: "image/jpeg";
266
265
  data: string;
266
+ media_type: "image/jpeg";
267
267
  };
268
268
  cache_control?: {
269
269
  type: "ephemeral";
@@ -272,8 +272,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
272
272
  type: "image";
273
273
  source: {
274
274
  type: "base64";
275
- media_type: "image/jpeg";
276
275
  data: string;
276
+ media_type: "image/jpeg";
277
277
  };
278
278
  cache_control?: {
279
279
  type: "ephemeral";
@@ -288,8 +288,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
288
288
  } | undefined;
289
289
  } | {
290
290
  type: "tool_use";
291
- name: string;
292
291
  id: string;
292
+ name: string;
293
293
  input: Record<string, any>;
294
294
  cache_control?: {
295
295
  type: "ephemeral";
@@ -305,8 +305,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
305
305
  type: "image";
306
306
  source: {
307
307
  type: "base64";
308
- media_type: "image/jpeg";
309
308
  data: string;
309
+ media_type: "image/jpeg";
310
310
  };
311
311
  cache_control?: {
312
312
  type: "ephemeral";
@@ -322,8 +322,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
322
322
  } | undefined;
323
323
  } | {
324
324
  type: "tool_use";
325
- name: string;
326
325
  id: string;
326
+ name: string;
327
327
  input: Record<string, any>;
328
328
  cache_control?: {
329
329
  type: "ephemeral";
@@ -339,8 +339,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
339
339
  type: "image";
340
340
  source: {
341
341
  type: "base64";
342
- media_type: "image/jpeg";
343
342
  data: string;
343
+ media_type: "image/jpeg";
344
344
  };
345
345
  cache_control?: {
346
346
  type: "ephemeral";
@@ -387,8 +387,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
387
387
  } | undefined;
388
388
  } | {
389
389
  type: "tool_use";
390
- name: string;
391
390
  id: string;
391
+ name: string;
392
392
  input: Record<string, any>;
393
393
  cache_control?: {
394
394
  type: "ephemeral";
@@ -404,8 +404,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
404
404
  type: "image";
405
405
  source: {
406
406
  type: "base64";
407
- media_type: "image/jpeg";
408
407
  data: string;
408
+ media_type: "image/jpeg";
409
409
  };
410
410
  cache_control?: {
411
411
  type: "ephemeral";
@@ -452,8 +452,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
452
452
  } | undefined;
453
453
  } | {
454
454
  type: "tool_use";
455
- name: string;
456
455
  id: string;
456
+ name: string;
457
457
  input: Record<string, any>;
458
458
  cache_control?: {
459
459
  type: "ephemeral";
@@ -469,8 +469,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
469
469
  type: "image";
470
470
  source: {
471
471
  type: "base64";
472
- media_type: "image/jpeg";
473
472
  data: string;
473
+ media_type: "image/jpeg";
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
- name: string;
489
488
  id: string;
489
+ name: string;
490
490
  result: string;
491
491
  }, {
492
- name: string;
493
492
  id: string;
493
+ name: string;
494
494
  result: string;
495
495
  }>, "many">;
496
496
  model: z.ZodOptional<z.ZodString>;
@@ -537,8 +537,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
537
537
  } | undefined;
538
538
  } | {
539
539
  type: "tool_use";
540
- name: string;
541
540
  id: string;
541
+ name: string;
542
542
  input: Record<string, any>;
543
543
  cache_control?: {
544
544
  type: "ephemeral";
@@ -554,8 +554,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
554
554
  type: "image";
555
555
  source: {
556
556
  type: "base64";
557
- media_type: "image/jpeg";
558
557
  data: string;
558
+ media_type: "image/jpeg";
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
- name: string;
570
569
  id: string;
570
+ name: string;
571
571
  result: string;
572
572
  }[];
573
+ model?: string | undefined;
573
574
  prompt?: string | undefined;
574
575
  authToken?: string | undefined;
575
- model?: string | undefined;
576
576
  }, {
577
577
  type: "prompt";
578
578
  promptId: string;
@@ -615,8 +615,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
615
615
  } | undefined;
616
616
  } | {
617
617
  type: "tool_use";
618
- name: string;
619
618
  id: string;
619
+ name: string;
620
620
  input: Record<string, any>;
621
621
  cache_control?: {
622
622
  type: "ephemeral";
@@ -632,8 +632,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
632
632
  type: "image";
633
633
  source: {
634
634
  type: "base64";
635
- media_type: "image/jpeg";
636
635
  data: string;
636
+ media_type: "image/jpeg";
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
- name: string;
648
647
  id: string;
648
+ name: string;
649
649
  result: string;
650
650
  }[];
651
+ model?: string | undefined;
651
652
  prompt?: string | undefined;
652
653
  authToken?: string | undefined;
653
654
  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]>>;
@@ -866,17 +866,17 @@ export declare const UsageReponseSchema: z.ZodObject<{
866
866
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
867
867
  }, "strip", z.ZodTypeAny, {
868
868
  type: "usage-response";
869
+ next_quota_reset: Date | null;
869
870
  usage: number;
870
871
  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
876
  type: "usage-response";
877
+ next_quota_reset: Date | null;
877
878
  usage: number;
878
879
  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;
@@ -894,17 +894,17 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
894
894
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
895
895
  }, "type">>, "strip", z.ZodTypeAny, {
896
896
  type: "init-response";
897
+ next_quota_reset: Date | null;
897
898
  usage: number;
898
899
  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
904
  type: "init-response";
905
+ next_quota_reset: Date | null;
905
906
  usage: number;
906
907
  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>>;
955
956
  usage: z.ZodOptional<z.ZodNumber>;
956
957
  remainingBalance: z.ZodOptional<z.ZodNumber>;
957
958
  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
- userInputId: string;
964
963
  response: string;
964
+ userInputId: 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;
980
981
  usage?: number | undefined;
981
982
  remainingBalance?: number | undefined;
982
983
  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
- userInputId: string;
989
988
  response: string;
989
+ userInputId: 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;
1005
1006
  usage?: number | undefined;
1006
1007
  remainingBalance?: number | undefined;
1007
1008
  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
- promptId: string;
1019
1018
  credits: number;
1019
+ promptId: string;
1020
1020
  }, {
1021
1021
  type: "message-cost-response";
1022
- promptId: string;
1023
1022
  credits: number;
1023
+ promptId: string;
1024
1024
  }>;
1025
1025
  export type MessageCostResponse = z.infer<typeof MessageCostResponseSchema>;
1026
1026
  export declare const PromptResponseSchema: z.ZodObject<{
@@ -1175,16 +1175,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
1175
1175
  }>>;
1176
1176
  }, "strip", z.ZodTypeAny, {
1177
1177
  type: "tool_use";
1178
- name: string;
1179
1178
  id: string;
1179
+ name: string;
1180
1180
  input: Record<string, any>;
1181
1181
  cache_control?: {
1182
1182
  type: "ephemeral";
1183
1183
  } | undefined;
1184
1184
  }, {
1185
1185
  type: "tool_use";
1186
- name: string;
1187
1186
  id: string;
1187
+ name: string;
1188
1188
  input: Record<string, any>;
1189
1189
  cache_control?: {
1190
1190
  type: "ephemeral";
@@ -1222,12 +1222,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
1222
1222
  data: z.ZodString;
1223
1223
  }, "strip", z.ZodTypeAny, {
1224
1224
  type: "base64";
1225
- media_type: "image/jpeg";
1226
1225
  data: string;
1226
+ media_type: "image/jpeg";
1227
1227
  }, {
1228
1228
  type: "base64";
1229
- media_type: "image/jpeg";
1230
1229
  data: string;
1230
+ media_type: "image/jpeg";
1231
1231
  }>;
1232
1232
  cache_control: z.ZodOptional<z.ZodObject<{
1233
1233
  type: z.ZodLiteral<"ephemeral">;
@@ -1240,8 +1240,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1240
1240
  type: "image";
1241
1241
  source: {
1242
1242
  type: "base64";
1243
- media_type: "image/jpeg";
1244
1243
  data: string;
1244
+ media_type: "image/jpeg";
1245
1245
  };
1246
1246
  cache_control?: {
1247
1247
  type: "ephemeral";
@@ -1250,8 +1250,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1250
1250
  type: "image";
1251
1251
  source: {
1252
1252
  type: "base64";
1253
- media_type: "image/jpeg";
1254
1253
  data: string;
1254
+ media_type: "image/jpeg";
1255
1255
  };
1256
1256
  cache_control?: {
1257
1257
  type: "ephemeral";
@@ -1266,8 +1266,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1266
1266
  } | undefined;
1267
1267
  } | {
1268
1268
  type: "tool_use";
1269
- name: string;
1270
1269
  id: string;
1270
+ name: string;
1271
1271
  input: Record<string, any>;
1272
1272
  cache_control?: {
1273
1273
  type: "ephemeral";
@@ -1283,8 +1283,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1283
1283
  type: "image";
1284
1284
  source: {
1285
1285
  type: "base64";
1286
- media_type: "image/jpeg";
1287
1286
  data: string;
1287
+ media_type: "image/jpeg";
1288
1288
  };
1289
1289
  cache_control?: {
1290
1290
  type: "ephemeral";
@@ -1300,8 +1300,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1300
1300
  } | undefined;
1301
1301
  } | {
1302
1302
  type: "tool_use";
1303
- name: string;
1304
1303
  id: string;
1304
+ name: string;
1305
1305
  input: Record<string, any>;
1306
1306
  cache_control?: {
1307
1307
  type: "ephemeral";
@@ -1317,8 +1317,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1317
1317
  type: "image";
1318
1318
  source: {
1319
1319
  type: "base64";
1320
- media_type: "image/jpeg";
1321
1320
  data: string;
1321
+ media_type: "image/jpeg";
1322
1322
  };
1323
1323
  cache_control?: {
1324
1324
  type: "ephemeral";
@@ -1365,8 +1365,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1365
1365
  } | undefined;
1366
1366
  } | {
1367
1367
  type: "tool_use";
1368
- name: string;
1369
1368
  id: string;
1369
+ name: string;
1370
1370
  input: Record<string, any>;
1371
1371
  cache_control?: {
1372
1372
  type: "ephemeral";
@@ -1382,8 +1382,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1382
1382
  type: "image";
1383
1383
  source: {
1384
1384
  type: "base64";
1385
- media_type: "image/jpeg";
1386
1385
  data: string;
1386
+ media_type: "image/jpeg";
1387
1387
  };
1388
1388
  cache_control?: {
1389
1389
  type: "ephemeral";
@@ -1430,8 +1430,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1430
1430
  } | undefined;
1431
1431
  } | {
1432
1432
  type: "tool_use";
1433
- name: string;
1434
1433
  id: string;
1434
+ name: string;
1435
1435
  input: Record<string, any>;
1436
1436
  cache_control?: {
1437
1437
  type: "ephemeral";
@@ -1447,8 +1447,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1447
1447
  type: "image";
1448
1448
  source: {
1449
1449
  type: "base64";
1450
- media_type: "image/jpeg";
1451
1450
  data: string;
1451
+ media_type: "image/jpeg";
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
- name: string;
1467
1466
  id: string;
1467
+ name: string;
1468
1468
  parameters: Record<string, string>;
1469
1469
  }, {
1470
- name: string;
1471
1470
  id: string;
1471
+ name: 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
- name: string;
1480
1479
  id: string;
1480
+ name: string;
1481
1481
  result: string;
1482
1482
  }, {
1483
- name: string;
1484
1483
  id: string;
1484
+ name: string;
1485
1485
  result: string;
1486
1486
  }>, "many">;
1487
1487
  }, "strip", z.ZodTypeAny, {
@@ -1525,8 +1525,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1525
1525
  } | undefined;
1526
1526
  } | {
1527
1527
  type: "tool_use";
1528
- name: string;
1529
1528
  id: string;
1529
+ name: string;
1530
1530
  input: Record<string, any>;
1531
1531
  cache_control?: {
1532
1532
  type: "ephemeral";
@@ -1542,8 +1542,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1542
1542
  type: "image";
1543
1543
  source: {
1544
1544
  type: "base64";
1545
- media_type: "image/jpeg";
1546
1545
  data: string;
1546
+ media_type: "image/jpeg";
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
- name: string;
1558
1557
  id: string;
1558
+ name: string;
1559
1559
  result: string;
1560
1560
  }[];
1561
1561
  toolCalls: {
1562
- name: string;
1563
1562
  id: string;
1563
+ name: string;
1564
1564
  parameters: Record<string, string>;
1565
1565
  }[];
1566
1566
  }, {
@@ -1604,8 +1604,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1604
1604
  } | undefined;
1605
1605
  } | {
1606
1606
  type: "tool_use";
1607
- name: string;
1608
1607
  id: string;
1608
+ name: string;
1609
1609
  input: Record<string, any>;
1610
1610
  cache_control?: {
1611
1611
  type: "ephemeral";
@@ -1621,8 +1621,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1621
1621
  type: "image";
1622
1622
  source: {
1623
1623
  type: "base64";
1624
- media_type: "image/jpeg";
1625
1624
  data: string;
1625
+ media_type: "image/jpeg";
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
- name: string;
1637
1636
  id: string;
1637
+ name: string;
1638
1638
  result: string;
1639
1639
  }[];
1640
1640
  toolCalls: {
1641
- name: string;
1642
1641
  id: string;
1642
+ name: 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>>;
1701
1702
  usage: z.ZodOptional<z.ZodNumber>;
1702
1703
  remainingBalance: z.ZodOptional<z.ZodNumber>;
1703
1704
  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
- userInputId: string;
1710
1709
  response: string;
1710
+ userInputId: 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;
1726
1727
  usage?: number | undefined;
1727
1728
  remainingBalance?: number | undefined;
1728
1729
  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
- userInputId: string;
1735
1734
  response: string;
1735
+ userInputId: 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;
1751
1752
  usage?: number | undefined;
1752
1753
  remainingBalance?: number | undefined;
1753
1754
  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<{
@@ -1906,16 +1906,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1906
1906
  }>>;
1907
1907
  }, "strip", z.ZodTypeAny, {
1908
1908
  type: "tool_use";
1909
- name: string;
1910
1909
  id: string;
1910
+ name: string;
1911
1911
  input: Record<string, any>;
1912
1912
  cache_control?: {
1913
1913
  type: "ephemeral";
1914
1914
  } | undefined;
1915
1915
  }, {
1916
1916
  type: "tool_use";
1917
- name: string;
1918
1917
  id: string;
1918
+ name: string;
1919
1919
  input: Record<string, any>;
1920
1920
  cache_control?: {
1921
1921
  type: "ephemeral";
@@ -1953,12 +1953,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1953
1953
  data: z.ZodString;
1954
1954
  }, "strip", z.ZodTypeAny, {
1955
1955
  type: "base64";
1956
- media_type: "image/jpeg";
1957
1956
  data: string;
1957
+ media_type: "image/jpeg";
1958
1958
  }, {
1959
1959
  type: "base64";
1960
- media_type: "image/jpeg";
1961
1960
  data: string;
1961
+ media_type: "image/jpeg";
1962
1962
  }>;
1963
1963
  cache_control: z.ZodOptional<z.ZodObject<{
1964
1964
  type: z.ZodLiteral<"ephemeral">;
@@ -1971,8 +1971,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1971
1971
  type: "image";
1972
1972
  source: {
1973
1973
  type: "base64";
1974
- media_type: "image/jpeg";
1975
1974
  data: string;
1975
+ media_type: "image/jpeg";
1976
1976
  };
1977
1977
  cache_control?: {
1978
1978
  type: "ephemeral";
@@ -1981,8 +1981,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1981
1981
  type: "image";
1982
1982
  source: {
1983
1983
  type: "base64";
1984
- media_type: "image/jpeg";
1985
1984
  data: string;
1985
+ media_type: "image/jpeg";
1986
1986
  };
1987
1987
  cache_control?: {
1988
1988
  type: "ephemeral";
@@ -1997,8 +1997,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1997
1997
  } | undefined;
1998
1998
  } | {
1999
1999
  type: "tool_use";
2000
- name: string;
2001
2000
  id: string;
2001
+ name: string;
2002
2002
  input: Record<string, any>;
2003
2003
  cache_control?: {
2004
2004
  type: "ephemeral";
@@ -2014,8 +2014,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2014
2014
  type: "image";
2015
2015
  source: {
2016
2016
  type: "base64";
2017
- media_type: "image/jpeg";
2018
2017
  data: string;
2018
+ media_type: "image/jpeg";
2019
2019
  };
2020
2020
  cache_control?: {
2021
2021
  type: "ephemeral";
@@ -2031,8 +2031,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2031
2031
  } | undefined;
2032
2032
  } | {
2033
2033
  type: "tool_use";
2034
- name: string;
2035
2034
  id: string;
2035
+ name: string;
2036
2036
  input: Record<string, any>;
2037
2037
  cache_control?: {
2038
2038
  type: "ephemeral";
@@ -2048,8 +2048,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2048
2048
  type: "image";
2049
2049
  source: {
2050
2050
  type: "base64";
2051
- media_type: "image/jpeg";
2052
2051
  data: string;
2052
+ media_type: "image/jpeg";
2053
2053
  };
2054
2054
  cache_control?: {
2055
2055
  type: "ephemeral";
@@ -2096,8 +2096,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2096
2096
  } | undefined;
2097
2097
  } | {
2098
2098
  type: "tool_use";
2099
- name: string;
2100
2099
  id: string;
2100
+ name: string;
2101
2101
  input: Record<string, any>;
2102
2102
  cache_control?: {
2103
2103
  type: "ephemeral";
@@ -2113,8 +2113,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2113
2113
  type: "image";
2114
2114
  source: {
2115
2115
  type: "base64";
2116
- media_type: "image/jpeg";
2117
2116
  data: string;
2117
+ media_type: "image/jpeg";
2118
2118
  };
2119
2119
  cache_control?: {
2120
2120
  type: "ephemeral";
@@ -2161,8 +2161,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2161
2161
  } | undefined;
2162
2162
  } | {
2163
2163
  type: "tool_use";
2164
- name: string;
2165
2164
  id: string;
2165
+ name: string;
2166
2166
  input: Record<string, any>;
2167
2167
  cache_control?: {
2168
2168
  type: "ephemeral";
@@ -2178,8 +2178,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2178
2178
  type: "image";
2179
2179
  source: {
2180
2180
  type: "base64";
2181
- media_type: "image/jpeg";
2182
2181
  data: string;
2182
+ media_type: "image/jpeg";
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
- name: string;
2198
2197
  id: string;
2198
+ name: string;
2199
2199
  parameters: Record<string, string>;
2200
2200
  }, {
2201
- name: string;
2202
2201
  id: string;
2202
+ name: 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
- name: string;
2211
2210
  id: string;
2211
+ name: string;
2212
2212
  result: string;
2213
2213
  }, {
2214
- name: string;
2215
2214
  id: string;
2215
+ name: string;
2216
2216
  result: string;
2217
2217
  }>, "many">;
2218
2218
  }, "strip", z.ZodTypeAny, {
@@ -2256,8 +2256,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2256
2256
  } | undefined;
2257
2257
  } | {
2258
2258
  type: "tool_use";
2259
- name: string;
2260
2259
  id: string;
2260
+ name: string;
2261
2261
  input: Record<string, any>;
2262
2262
  cache_control?: {
2263
2263
  type: "ephemeral";
@@ -2273,8 +2273,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2273
2273
  type: "image";
2274
2274
  source: {
2275
2275
  type: "base64";
2276
- media_type: "image/jpeg";
2277
2276
  data: string;
2277
+ media_type: "image/jpeg";
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
- name: string;
2289
2288
  id: string;
2289
+ name: string;
2290
2290
  result: string;
2291
2291
  }[];
2292
2292
  toolCalls: {
2293
- name: string;
2294
2293
  id: string;
2294
+ name: string;
2295
2295
  parameters: Record<string, string>;
2296
2296
  }[];
2297
2297
  }, {
@@ -2335,8 +2335,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2335
2335
  } | undefined;
2336
2336
  } | {
2337
2337
  type: "tool_use";
2338
- name: string;
2339
2338
  id: string;
2339
+ name: string;
2340
2340
  input: Record<string, any>;
2341
2341
  cache_control?: {
2342
2342
  type: "ephemeral";
@@ -2352,8 +2352,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2352
2352
  type: "image";
2353
2353
  source: {
2354
2354
  type: "base64";
2355
- media_type: "image/jpeg";
2356
2355
  data: string;
2356
+ media_type: "image/jpeg";
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
- name: string;
2368
2367
  id: string;
2368
+ name: string;
2369
2369
  result: string;
2370
2370
  }[];
2371
2371
  toolCalls: {
2372
- name: string;
2373
2372
  id: string;
2373
+ name: 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
- name: string;
2398
2397
  id: string;
2398
+ name: string;
2399
2399
  input: Record<string, any>;
2400
2400
  }, {
2401
- name: string;
2402
2401
  id: string;
2402
+ name: string;
2403
2403
  input: Record<string, any>;
2404
2404
  }>;
2405
2405
  changes: z.ZodArray<z.ZodObject<{
@@ -2442,12 +2442,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2442
2442
  }, "strip", z.ZodTypeAny, {
2443
2443
  type: "tool-call";
2444
2444
  data: {
2445
- name: string;
2446
2445
  id: string;
2446
+ name: string;
2447
2447
  input: Record<string, any>;
2448
2448
  };
2449
- userInputId: string;
2450
2449
  response: string;
2450
+ userInputId: string;
2451
2451
  changes: {
2452
2452
  type: "patch" | "file";
2453
2453
  path: string;
@@ -2466,12 +2466,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2466
2466
  }, {
2467
2467
  type: "tool-call";
2468
2468
  data: {
2469
- name: string;
2470
2469
  id: string;
2470
+ name: string;
2471
2471
  input: Record<string, any>;
2472
2472
  };
2473
- userInputId: string;
2474
2473
  response: string;
2474
+ userInputId: string;
2475
2475
  changes: {
2476
2476
  type: "patch" | "file";
2477
2477
  path: string;
@@ -2523,17 +2523,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2523
2523
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
2524
2524
  }, "type">>, "strip", z.ZodTypeAny, {
2525
2525
  type: "init-response";
2526
+ next_quota_reset: Date | null;
2526
2527
  usage: number;
2527
2528
  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
2533
  type: "init-response";
2534
+ next_quota_reset: Date | null;
2534
2535
  usage: number;
2535
2536
  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;
@@ -2547,17 +2547,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2547
2547
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
2548
2548
  }, "strip", z.ZodTypeAny, {
2549
2549
  type: "usage-response";
2550
+ next_quota_reset: Date | null;
2550
2551
  usage: number;
2551
2552
  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
2557
  type: "usage-response";
2558
+ next_quota_reset: Date | null;
2558
2559
  usage: number;
2559
2560
  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
- promptId: string;
2571
2570
  credits: number;
2571
+ promptId: string;
2572
2572
  }, {
2573
2573
  type: "message-cost-response";
2574
- promptId: string;
2575
2574
  credits: number;
2575
+ promptId: string;
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
- remainingBalance?: number | undefined;
2585
2584
  error?: string | undefined;
2585
+ remainingBalance?: number | undefined;
2586
2586
  }, {
2587
2587
  type: "action-error";
2588
2588
  message: string;
2589
- remainingBalance?: number | undefined;
2590
2589
  error?: string | undefined;
2590
+ remainingBalance?: number | undefined;
2591
2591
  }>, z.ZodObject<{
2592
2592
  type: z.ZodLiteral<"commit-message-response">;
2593
2593
  commitMessage: z.ZodString;
@@ -2597,5 +2597,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2597
2597
  }, {
2598
2598
  type: "commit-message-response";
2599
2599
  commitMessage: string;
2600
+ }>, z.ZodObject<{
2601
+ type: z.ZodLiteral<"request-reconnect">;
2602
+ }, "strip", z.ZodTypeAny, {
2603
+ type: "request-reconnect";
2604
+ }, {
2605
+ type: "request-reconnect";
2600
2606
  }>]>;
2601
2607
  export type ServerAction = z.infer<typeof SERVER_ACTION_SCHEMA>;