codebuff 1.0.244 → 1.0.246

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 (158) hide show
  1. package/dist/code-map/tsconfig.tsbuildinfo +1 -1
  2. package/dist/common/actions.d.ts +86 -104
  3. package/dist/common/actions.js +0 -1
  4. package/dist/common/actions.js.map +1 -1
  5. package/dist/common/bigquery/client.js +29 -10
  6. package/dist/common/bigquery/client.js.map +1 -1
  7. package/dist/common/constants.d.ts +13 -32
  8. package/dist/common/constants.js +23 -72
  9. package/dist/common/constants.js.map +1 -1
  10. package/dist/common/env.mjs +1 -0
  11. package/dist/common/env.mjs.map +1 -1
  12. package/dist/common/types/usage.d.ts +4 -7
  13. package/dist/common/types/usage.js +0 -1
  14. package/dist/common/types/usage.js.map +1 -1
  15. package/dist/common/util/currency.d.ts +14 -0
  16. package/dist/common/util/currency.js +23 -0
  17. package/dist/common/util/currency.js.map +1 -0
  18. package/dist/common/websockets/websocket-schema.d.ts +172 -202
  19. package/package.json +4 -2
  20. package/dist/background-process-manager.d.ts +0 -50
  21. package/dist/background-process-manager.js +0 -359
  22. package/dist/background-process-manager.js.map +0 -1
  23. package/dist/browser-runner.d.ts +0 -35
  24. package/dist/browser-runner.js +0 -680
  25. package/dist/browser-runner.js.map +0 -1
  26. package/dist/chat-storage.d.ts +0 -2
  27. package/dist/chat-storage.js +0 -93
  28. package/dist/chat-storage.js.map +0 -1
  29. package/dist/checkpoints/checkpoint-manager.d.ts +0 -94
  30. package/dist/checkpoints/checkpoint-manager.js +0 -280
  31. package/dist/checkpoints/checkpoint-manager.js.map +0 -1
  32. package/dist/checkpoints/file-manager.d.ts +0 -72
  33. package/dist/checkpoints/file-manager.js +0 -311
  34. package/dist/checkpoints/file-manager.js.map +0 -1
  35. package/dist/cli-handlers/api-key.d.ts +0 -25
  36. package/dist/cli-handlers/api-key.js +0 -66
  37. package/dist/cli-handlers/api-key.js.map +0 -1
  38. package/dist/cli-handlers/checkpoint.d.ts +0 -18
  39. package/dist/cli-handlers/checkpoint.js +0 -195
  40. package/dist/cli-handlers/checkpoint.js.map +0 -1
  41. package/dist/cli-handlers/diff.d.ts +0 -2
  42. package/dist/cli-handlers/diff.js +0 -31
  43. package/dist/cli-handlers/diff.js.map +0 -1
  44. package/dist/cli-handlers/easter-egg.d.ts +0 -1
  45. package/dist/cli-handlers/easter-egg.js +0 -126
  46. package/dist/cli-handlers/easter-egg.js.map +0 -1
  47. package/dist/cli-handlers/inititalization-flow.d.ts +0 -1
  48. package/dist/cli-handlers/inititalization-flow.js +0 -24
  49. package/dist/cli-handlers/inititalization-flow.js.map +0 -1
  50. package/dist/cli.d.ts +0 -44
  51. package/dist/cli.js +0 -463
  52. package/dist/cli.js.map +0 -1
  53. package/dist/client.d.ts +0 -149
  54. package/dist/client.js +0 -820
  55. package/dist/client.js.map +0 -1
  56. package/dist/common/billing/auto-topup.d.ts +0 -8
  57. package/dist/common/billing/auto-topup.js +0 -192
  58. package/dist/common/billing/auto-topup.js.map +0 -1
  59. package/dist/common/billing/balance-calculator.d.ts +0 -57
  60. package/dist/common/billing/balance-calculator.js +0 -218
  61. package/dist/common/billing/balance-calculator.js.map +0 -1
  62. package/dist/common/billing/conversion.d.ts +0 -9
  63. package/dist/common/billing/conversion.js +0 -20
  64. package/dist/common/billing/conversion.js.map +0 -1
  65. package/dist/common/billing/credit-conversion.d.ts +0 -24
  66. package/dist/common/billing/credit-conversion.js +0 -48
  67. package/dist/common/billing/credit-conversion.js.map +0 -1
  68. package/dist/common/billing/grant-credits.d.ts +0 -43
  69. package/dist/common/billing/grant-credits.js +0 -266
  70. package/dist/common/billing/grant-credits.js.map +0 -1
  71. package/dist/common/billing/plans.d.ts +0 -13
  72. package/dist/common/billing/plans.js +0 -44
  73. package/dist/common/billing/plans.js.map +0 -1
  74. package/dist/common/json-config/__tests__/__snapshots__/stringify-schema.test.js.snap +0 -66
  75. package/dist/common/types/plan.d.ts +0 -24
  76. package/dist/common/types/plan.js +0 -3
  77. package/dist/common/types/plan.js.map +0 -1
  78. package/dist/common/util/server/referral.d.ts +0 -14
  79. package/dist/common/util/server/referral.js +0 -85
  80. package/dist/common/util/server/referral.js.map +0 -1
  81. package/dist/config.d.ts +0 -4
  82. package/dist/config.js +0 -12
  83. package/dist/config.js.map +0 -1
  84. package/dist/create-template-project.d.ts +0 -1
  85. package/dist/create-template-project.js +0 -107
  86. package/dist/create-template-project.js.map +0 -1
  87. package/dist/credentials.d.ts +0 -4
  88. package/dist/credentials.js +0 -38
  89. package/dist/credentials.js.map +0 -1
  90. package/dist/dev-process-manager.d.ts +0 -10
  91. package/dist/dev-process-manager.js +0 -54
  92. package/dist/dev-process-manager.js.map +0 -1
  93. package/dist/fingerprint.d.ts +0 -1
  94. package/dist/fingerprint.js +0 -48
  95. package/dist/fingerprint.js.map +0 -1
  96. package/dist/index.d.ts +0 -2
  97. package/dist/index.js +0 -117
  98. package/dist/index.js.map +0 -1
  99. package/dist/menu.d.ts +0 -3
  100. package/dist/menu.js +0 -126
  101. package/dist/menu.js.map +0 -1
  102. package/dist/project-files.d.ts +0 -114
  103. package/dist/project-files.js +0 -513
  104. package/dist/project-files.js.map +0 -1
  105. package/dist/startup-process-handler.d.ts +0 -2
  106. package/dist/startup-process-handler.js +0 -21
  107. package/dist/startup-process-handler.js.map +0 -1
  108. package/dist/tool-handlers.d.ts +0 -28
  109. package/dist/tool-handlers.js +0 -240
  110. package/dist/tool-handlers.js.map +0 -1
  111. package/dist/types.d.ts +0 -9
  112. package/dist/types.js +0 -3
  113. package/dist/types.js.map +0 -1
  114. package/dist/update-codebuff.d.ts +0 -1
  115. package/dist/update-codebuff.js +0 -160
  116. package/dist/update-codebuff.js.map +0 -1
  117. package/dist/utils/__tests__/background-process-manager.test.d.ts +0 -1
  118. package/dist/utils/__tests__/background-process-manager.test.js +0 -289
  119. package/dist/utils/__tests__/background-process-manager.test.js.map +0 -1
  120. package/dist/utils/__tests__/tool-renderers.test.d.ts +0 -1
  121. package/dist/utils/__tests__/tool-renderers.test.js +0 -51
  122. package/dist/utils/__tests__/tool-renderers.test.js.map +0 -1
  123. package/dist/utils/__tests__/xml-stream-parser.test.d.ts +0 -1
  124. package/dist/utils/__tests__/xml-stream-parser.test.js +0 -229
  125. package/dist/utils/__tests__/xml-stream-parser.test.js.map +0 -1
  126. package/dist/utils/analytics.d.ts +0 -6
  127. package/dist/utils/analytics.js +0 -53
  128. package/dist/utils/analytics.js.map +0 -1
  129. package/dist/utils/detect-shell.d.ts +0 -1
  130. package/dist/utils/detect-shell.js +0 -60
  131. package/dist/utils/detect-shell.js.map +0 -1
  132. package/dist/utils/logger.d.ts +0 -21
  133. package/dist/utils/logger.js +0 -80
  134. package/dist/utils/logger.js.map +0 -1
  135. package/dist/utils/spinner.d.ts +0 -11
  136. package/dist/utils/spinner.js +0 -87
  137. package/dist/utils/spinner.js.map +0 -1
  138. package/dist/utils/system-info.d.ts +0 -8
  139. package/dist/utils/system-info.js +0 -22
  140. package/dist/utils/system-info.js.map +0 -1
  141. package/dist/utils/terminal.d.ts +0 -38
  142. package/dist/utils/terminal.js +0 -460
  143. package/dist/utils/terminal.js.map +0 -1
  144. package/dist/utils/tool-renderers.d.ts +0 -16
  145. package/dist/utils/tool-renderers.js +0 -145
  146. package/dist/utils/tool-renderers.js.map +0 -1
  147. package/dist/utils/xml-stream-parser.d.ts +0 -9
  148. package/dist/utils/xml-stream-parser.js +0 -128
  149. package/dist/utils/xml-stream-parser.js.map +0 -1
  150. package/dist/web-scraper.d.ts +0 -3
  151. package/dist/web-scraper.js +0 -57
  152. package/dist/web-scraper.js.map +0 -1
  153. package/dist/workers/checkpoint-worker.d.ts +0 -1
  154. package/dist/workers/checkpoint-worker.js +0 -48
  155. package/dist/workers/checkpoint-worker.js.map +0 -1
  156. package/dist/workers/project-context.d.ts +0 -1
  157. package/dist/workers/project-context.js +0 -17
  158. package/dist/workers/project-context.js.map +0 -1
@@ -4,12 +4,12 @@ export declare const FileChangeSchema: z.ZodObject<{
4
4
  path: z.ZodString;
5
5
  content: z.ZodString;
6
6
  }, "strip", z.ZodTypeAny, {
7
- type: "patch" | "file";
8
7
  path: string;
8
+ type: "file" | "patch";
9
9
  content: string;
10
10
  }, {
11
- type: "patch" | "file";
12
11
  path: string;
12
+ type: "file" | "patch";
13
13
  content: string;
14
14
  }>;
15
15
  export type FileChange = z.infer<typeof FileChangeSchema>;
@@ -18,12 +18,12 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
18
18
  path: z.ZodString;
19
19
  content: z.ZodString;
20
20
  }, "strip", z.ZodTypeAny, {
21
- type: "patch" | "file";
22
21
  path: string;
22
+ type: "file" | "patch";
23
23
  content: string;
24
24
  }, {
25
- type: "patch" | "file";
26
25
  path: string;
26
+ type: "file" | "patch";
27
27
  content: string;
28
28
  }>, "many">;
29
29
  export type FileChanges = z.infer<typeof CHANGES>;
@@ -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
199
  type: "tool_use";
201
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
207
  type: "tool_use";
209
208
  name: string;
209
+ id: string;
210
210
  input: Record<string, any>;
211
211
  cache_control?: {
212
212
  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
290
  type: "tool_use";
292
291
  name: string;
292
+ id: string;
293
293
  input: Record<string, any>;
294
294
  cache_control?: {
295
295
  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
324
  type: "tool_use";
326
325
  name: string;
326
+ id: string;
327
327
  input: Record<string, any>;
328
328
  cache_control?: {
329
329
  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
389
  type: "tool_use";
391
390
  name: string;
391
+ id: string;
392
392
  input: Record<string, any>;
393
393
  cache_control?: {
394
394
  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
454
  type: "tool_use";
456
455
  name: string;
456
+ id: string;
457
457
  input: Record<string, any>;
458
458
  cache_control?: {
459
459
  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
539
  type: "tool_use";
541
540
  name: string;
541
+ id: string;
542
542
  input: Record<string, any>;
543
543
  cache_control?: {
544
544
  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
617
  type: "tool_use";
619
618
  name: string;
619
+ id: string;
620
620
  input: Record<string, any>;
621
621
  cache_control?: {
622
622
  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]>>;
@@ -779,7 +779,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
779
779
  }>;
780
780
  }, "strip", z.ZodTypeAny, {
781
781
  type: "init";
782
- fingerprintId: string;
783
782
  fileContext: {
784
783
  currentWorkingDirectory: string;
785
784
  fileTree: import("./util/file").FileTreeNode[];
@@ -807,10 +806,10 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
807
806
  content: string;
808
807
  }[][] | undefined;
809
808
  };
809
+ fingerprintId: string;
810
810
  authToken?: string | undefined;
811
811
  }, {
812
812
  type: "init";
813
- fingerprintId: string;
814
813
  fileContext: {
815
814
  currentWorkingDirectory: string;
816
815
  fileTree: import("./util/file").FileTreeNode[];
@@ -838,6 +837,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
838
837
  content: string;
839
838
  }[][] | undefined;
840
839
  };
840
+ fingerprintId: string;
841
841
  authToken?: string | undefined;
842
842
  }>, z.ZodObject<{
843
843
  type: z.ZodLiteral<"generate-commit-message">;
@@ -862,14 +862,12 @@ export declare const UsageReponseSchema: z.ZodObject<{
862
862
  remainingBalance: z.ZodNumber;
863
863
  balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("./types/grant").GrantType, ...import("./types/grant").GrantType[]]>, z.ZodNumber>>;
864
864
  next_quota_reset: z.ZodNullable<z.ZodDate>;
865
- nextMonthlyGrant: z.ZodNumber;
866
865
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
867
866
  }, "strip", z.ZodTypeAny, {
868
867
  type: "usage-response";
869
868
  usage: number;
870
869
  remainingBalance: number;
871
870
  next_quota_reset: Date | null;
872
- nextMonthlyGrant: number;
873
871
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
874
872
  autoTopupAdded?: number | undefined;
875
873
  }, {
@@ -877,7 +875,6 @@ export declare const UsageReponseSchema: z.ZodObject<{
877
875
  usage: number;
878
876
  remainingBalance: number;
879
877
  next_quota_reset: Date | null;
880
- nextMonthlyGrant: number;
881
878
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
882
879
  autoTopupAdded?: number | undefined;
883
880
  }>;
@@ -890,14 +887,12 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
890
887
  remainingBalance: z.ZodNumber;
891
888
  balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("./types/grant").GrantType, ...import("./types/grant").GrantType[]]>, z.ZodNumber>>;
892
889
  next_quota_reset: z.ZodNullable<z.ZodDate>;
893
- nextMonthlyGrant: z.ZodNumber;
894
890
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
895
891
  }, "type">>, "strip", z.ZodTypeAny, {
896
892
  type: "init-response";
897
893
  usage: number;
898
894
  remainingBalance: number;
899
895
  next_quota_reset: Date | null;
900
- nextMonthlyGrant: number;
901
896
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
902
897
  autoTopupAdded?: number | undefined;
903
898
  }, {
@@ -905,7 +900,6 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
905
900
  usage: number;
906
901
  remainingBalance: number;
907
902
  next_quota_reset: Date | null;
908
- nextMonthlyGrant: number;
909
903
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
910
904
  autoTopupAdded?: number | undefined;
911
905
  }>;
@@ -919,12 +913,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
919
913
  path: z.ZodString;
920
914
  content: z.ZodString;
921
915
  }, "strip", z.ZodTypeAny, {
922
- type: "patch" | "file";
923
916
  path: string;
917
+ type: "file" | "patch";
924
918
  content: string;
925
919
  }, {
926
- type: "patch" | "file";
927
920
  path: string;
921
+ type: "file" | "patch";
928
922
  content: string;
929
923
  }>, "many">;
930
924
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -932,12 +926,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
932
926
  path: z.ZodString;
933
927
  content: z.ZodString;
934
928
  }, "strip", z.ZodTypeAny, {
935
- type: "patch" | "file";
936
929
  path: string;
930
+ type: "file" | "patch";
937
931
  content: string;
938
932
  }, {
939
- type: "patch" | "file";
940
933
  path: string;
934
+ type: "file" | "patch";
941
935
  content: string;
942
936
  }>, "many">;
943
937
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -956,20 +950,19 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
956
950
  remainingBalance: z.ZodOptional<z.ZodNumber>;
957
951
  balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("./types/grant").GrantType, ...import("./types/grant").GrantType[]]>, z.ZodNumber>>>;
958
952
  next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
959
- nextMonthlyGrant: z.ZodOptional<z.ZodNumber>;
960
953
  autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
961
954
  }>, "strip", z.ZodTypeAny, {
962
955
  type: "response-complete";
963
956
  userInputId: string;
964
957
  response: string;
965
958
  changes: {
966
- type: "patch" | "file";
967
959
  path: string;
960
+ type: "file" | "patch";
968
961
  content: string;
969
962
  }[];
970
963
  changesAlreadyApplied: {
971
- type: "patch" | "file";
972
964
  path: string;
965
+ type: "file" | "patch";
973
966
  content: string;
974
967
  }[];
975
968
  addedFileVersions: {
@@ -981,20 +974,19 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
981
974
  remainingBalance?: number | undefined;
982
975
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
983
976
  next_quota_reset?: Date | null | undefined;
984
- nextMonthlyGrant?: number | undefined;
985
977
  autoTopupAdded?: number | undefined;
986
978
  }, {
987
979
  type: "response-complete";
988
980
  userInputId: string;
989
981
  response: string;
990
982
  changes: {
991
- type: "patch" | "file";
992
983
  path: string;
984
+ type: "file" | "patch";
993
985
  content: string;
994
986
  }[];
995
987
  changesAlreadyApplied: {
996
- type: "patch" | "file";
997
988
  path: string;
989
+ type: "file" | "patch";
998
990
  content: string;
999
991
  }[];
1000
992
  addedFileVersions: {
@@ -1006,7 +998,6 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1006
998
  remainingBalance?: number | undefined;
1007
999
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
1008
1000
  next_quota_reset?: Date | null | undefined;
1009
- nextMonthlyGrant?: number | undefined;
1010
1001
  autoTopupAdded?: number | undefined;
1011
1002
  }>;
1012
1003
  export declare const MessageCostResponseSchema: z.ZodObject<{
@@ -1174,17 +1165,17 @@ export declare const PromptResponseSchema: z.ZodObject<{
1174
1165
  type: "ephemeral";
1175
1166
  }>>;
1176
1167
  }, "strip", z.ZodTypeAny, {
1177
- id: string;
1178
1168
  type: "tool_use";
1179
1169
  name: string;
1170
+ id: string;
1180
1171
  input: Record<string, any>;
1181
1172
  cache_control?: {
1182
1173
  type: "ephemeral";
1183
1174
  } | undefined;
1184
1175
  }, {
1185
- id: string;
1186
1176
  type: "tool_use";
1187
1177
  name: string;
1178
+ id: string;
1188
1179
  input: Record<string, any>;
1189
1180
  cache_control?: {
1190
1181
  type: "ephemeral";
@@ -1265,9 +1256,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1265
1256
  type: "ephemeral";
1266
1257
  } | undefined;
1267
1258
  } | {
1268
- id: string;
1269
1259
  type: "tool_use";
1270
1260
  name: string;
1261
+ id: string;
1271
1262
  input: Record<string, any>;
1272
1263
  cache_control?: {
1273
1264
  type: "ephemeral";
@@ -1299,9 +1290,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1299
1290
  type: "ephemeral";
1300
1291
  } | undefined;
1301
1292
  } | {
1302
- id: string;
1303
1293
  type: "tool_use";
1304
1294
  name: string;
1295
+ id: string;
1305
1296
  input: Record<string, any>;
1306
1297
  cache_control?: {
1307
1298
  type: "ephemeral";
@@ -1364,9 +1355,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1364
1355
  type: "ephemeral";
1365
1356
  } | undefined;
1366
1357
  } | {
1367
- id: string;
1368
1358
  type: "tool_use";
1369
1359
  name: string;
1360
+ id: string;
1370
1361
  input: Record<string, any>;
1371
1362
  cache_control?: {
1372
1363
  type: "ephemeral";
@@ -1429,9 +1420,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1429
1420
  type: "ephemeral";
1430
1421
  } | undefined;
1431
1422
  } | {
1432
- id: string;
1433
1423
  type: "tool_use";
1434
1424
  name: string;
1425
+ id: string;
1435
1426
  input: Record<string, any>;
1436
1427
  cache_control?: {
1437
1428
  type: "ephemeral";
@@ -1463,12 +1454,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
1463
1454
  parameters: z.ZodRecord<z.ZodString, z.ZodString>;
1464
1455
  id: z.ZodString;
1465
1456
  }, "strip", z.ZodTypeAny, {
1466
- id: string;
1467
1457
  name: string;
1458
+ id: string;
1468
1459
  parameters: Record<string, string>;
1469
1460
  }, {
1470
- id: string;
1471
1461
  name: string;
1462
+ id: string;
1472
1463
  parameters: Record<string, string>;
1473
1464
  }>, "many">;
1474
1465
  toolResults: z.ZodArray<z.ZodObject<{
@@ -1476,12 +1467,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
1476
1467
  result: z.ZodString;
1477
1468
  id: z.ZodString;
1478
1469
  }, "strip", z.ZodTypeAny, {
1479
- id: string;
1480
1470
  name: string;
1471
+ id: string;
1481
1472
  result: string;
1482
1473
  }, {
1483
- id: string;
1484
1474
  name: string;
1475
+ id: string;
1485
1476
  result: string;
1486
1477
  }>, "many">;
1487
1478
  }, "strip", z.ZodTypeAny, {
@@ -1524,9 +1515,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1524
1515
  type: "ephemeral";
1525
1516
  } | undefined;
1526
1517
  } | {
1527
- id: string;
1528
1518
  type: "tool_use";
1529
1519
  name: string;
1520
+ id: string;
1530
1521
  input: Record<string, any>;
1531
1522
  cache_control?: {
1532
1523
  type: "ephemeral";
@@ -1554,13 +1545,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
1554
1545
  consecutiveAssistantMessages?: number | undefined;
1555
1546
  };
1556
1547
  toolResults: {
1557
- id: string;
1558
1548
  name: string;
1549
+ id: string;
1559
1550
  result: string;
1560
1551
  }[];
1561
1552
  toolCalls: {
1562
- id: string;
1563
1553
  name: string;
1554
+ id: string;
1564
1555
  parameters: Record<string, string>;
1565
1556
  }[];
1566
1557
  }, {
@@ -1603,9 +1594,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
1603
1594
  type: "ephemeral";
1604
1595
  } | undefined;
1605
1596
  } | {
1606
- id: string;
1607
1597
  type: "tool_use";
1608
1598
  name: string;
1599
+ id: string;
1609
1600
  input: Record<string, any>;
1610
1601
  cache_control?: {
1611
1602
  type: "ephemeral";
@@ -1633,13 +1624,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
1633
1624
  consecutiveAssistantMessages?: number | undefined;
1634
1625
  };
1635
1626
  toolResults: {
1636
- id: string;
1637
1627
  name: string;
1628
+ id: string;
1638
1629
  result: string;
1639
1630
  }[];
1640
1631
  toolCalls: {
1641
- id: string;
1642
1632
  name: string;
1633
+ id: string;
1643
1634
  parameters: Record<string, string>;
1644
1635
  }[];
1645
1636
  }>;
@@ -1665,12 +1656,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1665
1656
  path: z.ZodString;
1666
1657
  content: z.ZodString;
1667
1658
  }, "strip", z.ZodTypeAny, {
1668
- type: "patch" | "file";
1669
1659
  path: string;
1660
+ type: "file" | "patch";
1670
1661
  content: string;
1671
1662
  }, {
1672
- type: "patch" | "file";
1673
1663
  path: string;
1664
+ type: "file" | "patch";
1674
1665
  content: string;
1675
1666
  }>, "many">;
1676
1667
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -1678,12 +1669,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1678
1669
  path: z.ZodString;
1679
1670
  content: z.ZodString;
1680
1671
  }, "strip", z.ZodTypeAny, {
1681
- type: "patch" | "file";
1682
1672
  path: string;
1673
+ type: "file" | "patch";
1683
1674
  content: string;
1684
1675
  }, {
1685
- type: "patch" | "file";
1686
1676
  path: string;
1677
+ type: "file" | "patch";
1687
1678
  content: string;
1688
1679
  }>, "many">;
1689
1680
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -1702,20 +1693,19 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1702
1693
  remainingBalance: z.ZodOptional<z.ZodNumber>;
1703
1694
  balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("./types/grant").GrantType, ...import("./types/grant").GrantType[]]>, z.ZodNumber>>>;
1704
1695
  next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1705
- nextMonthlyGrant: z.ZodOptional<z.ZodNumber>;
1706
1696
  autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1707
1697
  }>, "strip", z.ZodTypeAny, {
1708
1698
  type: "response-complete";
1709
1699
  userInputId: string;
1710
1700
  response: string;
1711
1701
  changes: {
1712
- type: "patch" | "file";
1713
1702
  path: string;
1703
+ type: "file" | "patch";
1714
1704
  content: string;
1715
1705
  }[];
1716
1706
  changesAlreadyApplied: {
1717
- type: "patch" | "file";
1718
1707
  path: string;
1708
+ type: "file" | "patch";
1719
1709
  content: string;
1720
1710
  }[];
1721
1711
  addedFileVersions: {
@@ -1727,20 +1717,19 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1727
1717
  remainingBalance?: number | undefined;
1728
1718
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
1729
1719
  next_quota_reset?: Date | null | undefined;
1730
- nextMonthlyGrant?: number | undefined;
1731
1720
  autoTopupAdded?: number | undefined;
1732
1721
  }, {
1733
1722
  type: "response-complete";
1734
1723
  userInputId: string;
1735
1724
  response: string;
1736
1725
  changes: {
1737
- type: "patch" | "file";
1738
1726
  path: string;
1727
+ type: "file" | "patch";
1739
1728
  content: string;
1740
1729
  }[];
1741
1730
  changesAlreadyApplied: {
1742
- type: "patch" | "file";
1743
1731
  path: string;
1732
+ type: "file" | "patch";
1744
1733
  content: string;
1745
1734
  }[];
1746
1735
  addedFileVersions: {
@@ -1752,7 +1741,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1752
1741
  remainingBalance?: number | undefined;
1753
1742
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
1754
1743
  next_quota_reset?: Date | null | undefined;
1755
- nextMonthlyGrant?: number | undefined;
1756
1744
  autoTopupAdded?: number | undefined;
1757
1745
  }>, z.ZodObject<{
1758
1746
  type: z.ZodLiteral<"prompt-response">;
@@ -1905,17 +1893,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1905
1893
  type: "ephemeral";
1906
1894
  }>>;
1907
1895
  }, "strip", z.ZodTypeAny, {
1908
- id: string;
1909
1896
  type: "tool_use";
1910
1897
  name: string;
1898
+ id: string;
1911
1899
  input: Record<string, any>;
1912
1900
  cache_control?: {
1913
1901
  type: "ephemeral";
1914
1902
  } | undefined;
1915
1903
  }, {
1916
- id: string;
1917
1904
  type: "tool_use";
1918
1905
  name: string;
1906
+ id: string;
1919
1907
  input: Record<string, any>;
1920
1908
  cache_control?: {
1921
1909
  type: "ephemeral";
@@ -1996,9 +1984,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1996
1984
  type: "ephemeral";
1997
1985
  } | undefined;
1998
1986
  } | {
1999
- id: string;
2000
1987
  type: "tool_use";
2001
1988
  name: string;
1989
+ id: string;
2002
1990
  input: Record<string, any>;
2003
1991
  cache_control?: {
2004
1992
  type: "ephemeral";
@@ -2030,9 +2018,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2030
2018
  type: "ephemeral";
2031
2019
  } | undefined;
2032
2020
  } | {
2033
- id: string;
2034
2021
  type: "tool_use";
2035
2022
  name: string;
2023
+ id: string;
2036
2024
  input: Record<string, any>;
2037
2025
  cache_control?: {
2038
2026
  type: "ephemeral";
@@ -2095,9 +2083,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2095
2083
  type: "ephemeral";
2096
2084
  } | undefined;
2097
2085
  } | {
2098
- id: string;
2099
2086
  type: "tool_use";
2100
2087
  name: string;
2088
+ id: string;
2101
2089
  input: Record<string, any>;
2102
2090
  cache_control?: {
2103
2091
  type: "ephemeral";
@@ -2160,9 +2148,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2160
2148
  type: "ephemeral";
2161
2149
  } | undefined;
2162
2150
  } | {
2163
- id: string;
2164
2151
  type: "tool_use";
2165
2152
  name: string;
2153
+ id: string;
2166
2154
  input: Record<string, any>;
2167
2155
  cache_control?: {
2168
2156
  type: "ephemeral";
@@ -2194,12 +2182,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2194
2182
  parameters: z.ZodRecord<z.ZodString, z.ZodString>;
2195
2183
  id: z.ZodString;
2196
2184
  }, "strip", z.ZodTypeAny, {
2197
- id: string;
2198
2185
  name: string;
2186
+ id: string;
2199
2187
  parameters: Record<string, string>;
2200
2188
  }, {
2201
- id: string;
2202
2189
  name: string;
2190
+ id: string;
2203
2191
  parameters: Record<string, string>;
2204
2192
  }>, "many">;
2205
2193
  toolResults: z.ZodArray<z.ZodObject<{
@@ -2207,12 +2195,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2207
2195
  result: z.ZodString;
2208
2196
  id: z.ZodString;
2209
2197
  }, "strip", z.ZodTypeAny, {
2210
- id: string;
2211
2198
  name: string;
2199
+ id: string;
2212
2200
  result: string;
2213
2201
  }, {
2214
- id: string;
2215
2202
  name: string;
2203
+ id: string;
2216
2204
  result: string;
2217
2205
  }>, "many">;
2218
2206
  }, "strip", z.ZodTypeAny, {
@@ -2255,9 +2243,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2255
2243
  type: "ephemeral";
2256
2244
  } | undefined;
2257
2245
  } | {
2258
- id: string;
2259
2246
  type: "tool_use";
2260
2247
  name: string;
2248
+ id: string;
2261
2249
  input: Record<string, any>;
2262
2250
  cache_control?: {
2263
2251
  type: "ephemeral";
@@ -2285,13 +2273,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2285
2273
  consecutiveAssistantMessages?: number | undefined;
2286
2274
  };
2287
2275
  toolResults: {
2288
- id: string;
2289
2276
  name: string;
2277
+ id: string;
2290
2278
  result: string;
2291
2279
  }[];
2292
2280
  toolCalls: {
2293
- id: string;
2294
2281
  name: string;
2282
+ id: string;
2295
2283
  parameters: Record<string, string>;
2296
2284
  }[];
2297
2285
  }, {
@@ -2334,9 +2322,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2334
2322
  type: "ephemeral";
2335
2323
  } | undefined;
2336
2324
  } | {
2337
- id: string;
2338
2325
  type: "tool_use";
2339
2326
  name: string;
2327
+ id: string;
2340
2328
  input: Record<string, any>;
2341
2329
  cache_control?: {
2342
2330
  type: "ephemeral";
@@ -2364,13 +2352,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2364
2352
  consecutiveAssistantMessages?: number | undefined;
2365
2353
  };
2366
2354
  toolResults: {
2367
- id: string;
2368
2355
  name: string;
2356
+ id: string;
2369
2357
  result: string;
2370
2358
  }[];
2371
2359
  toolCalls: {
2372
- id: string;
2373
2360
  name: string;
2361
+ id: string;
2374
2362
  parameters: Record<string, string>;
2375
2363
  }[];
2376
2364
  }>, z.ZodObject<{
@@ -2394,12 +2382,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2394
2382
  id: z.ZodString;
2395
2383
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
2396
2384
  }, "strip", z.ZodTypeAny, {
2397
- id: string;
2398
2385
  name: string;
2386
+ id: string;
2399
2387
  input: Record<string, any>;
2400
2388
  }, {
2401
- id: string;
2402
2389
  name: string;
2390
+ id: string;
2403
2391
  input: Record<string, any>;
2404
2392
  }>;
2405
2393
  changes: z.ZodArray<z.ZodObject<{
@@ -2407,12 +2395,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2407
2395
  path: z.ZodString;
2408
2396
  content: z.ZodString;
2409
2397
  }, "strip", z.ZodTypeAny, {
2410
- type: "patch" | "file";
2411
2398
  path: string;
2399
+ type: "file" | "patch";
2412
2400
  content: string;
2413
2401
  }, {
2414
- type: "patch" | "file";
2415
2402
  path: string;
2403
+ type: "file" | "patch";
2416
2404
  content: string;
2417
2405
  }>, "many">;
2418
2406
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -2420,12 +2408,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2420
2408
  path: z.ZodString;
2421
2409
  content: z.ZodString;
2422
2410
  }, "strip", z.ZodTypeAny, {
2423
- type: "patch" | "file";
2424
2411
  path: string;
2412
+ type: "file" | "patch";
2425
2413
  content: string;
2426
2414
  }, {
2427
- type: "patch" | "file";
2428
2415
  path: string;
2416
+ type: "file" | "patch";
2429
2417
  content: string;
2430
2418
  }>, "many">;
2431
2419
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -2442,20 +2430,20 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2442
2430
  }, "strip", z.ZodTypeAny, {
2443
2431
  type: "tool-call";
2444
2432
  data: {
2445
- id: string;
2446
2433
  name: string;
2434
+ id: string;
2447
2435
  input: Record<string, any>;
2448
2436
  };
2449
2437
  userInputId: string;
2450
2438
  response: string;
2451
2439
  changes: {
2452
- type: "patch" | "file";
2453
2440
  path: string;
2441
+ type: "file" | "patch";
2454
2442
  content: string;
2455
2443
  }[];
2456
2444
  changesAlreadyApplied: {
2457
- type: "patch" | "file";
2458
2445
  path: string;
2446
+ type: "file" | "patch";
2459
2447
  content: string;
2460
2448
  }[];
2461
2449
  addedFileVersions: {
@@ -2466,20 +2454,20 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2466
2454
  }, {
2467
2455
  type: "tool-call";
2468
2456
  data: {
2469
- id: string;
2470
2457
  name: string;
2458
+ id: string;
2471
2459
  input: Record<string, any>;
2472
2460
  };
2473
2461
  userInputId: string;
2474
2462
  response: string;
2475
2463
  changes: {
2476
- type: "patch" | "file";
2477
2464
  path: string;
2465
+ type: "file" | "patch";
2478
2466
  content: string;
2479
2467
  }[];
2480
2468
  changesAlreadyApplied: {
2481
- type: "patch" | "file";
2482
2469
  path: string;
2470
+ type: "file" | "patch";
2483
2471
  content: string;
2484
2472
  }[];
2485
2473
  addedFileVersions: {
@@ -2519,14 +2507,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2519
2507
  remainingBalance: z.ZodNumber;
2520
2508
  balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("./types/grant").GrantType, ...import("./types/grant").GrantType[]]>, z.ZodNumber>>;
2521
2509
  next_quota_reset: z.ZodNullable<z.ZodDate>;
2522
- nextMonthlyGrant: z.ZodNumber;
2523
2510
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
2524
2511
  }, "type">>, "strip", z.ZodTypeAny, {
2525
2512
  type: "init-response";
2526
2513
  usage: number;
2527
2514
  remainingBalance: number;
2528
2515
  next_quota_reset: Date | null;
2529
- nextMonthlyGrant: number;
2530
2516
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
2531
2517
  autoTopupAdded?: number | undefined;
2532
2518
  }, {
@@ -2534,7 +2520,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2534
2520
  usage: number;
2535
2521
  remainingBalance: number;
2536
2522
  next_quota_reset: Date | null;
2537
- nextMonthlyGrant: number;
2538
2523
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
2539
2524
  autoTopupAdded?: number | undefined;
2540
2525
  }>, z.ZodObject<{
@@ -2543,14 +2528,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2543
2528
  remainingBalance: z.ZodNumber;
2544
2529
  balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("./types/grant").GrantType, ...import("./types/grant").GrantType[]]>, z.ZodNumber>>;
2545
2530
  next_quota_reset: z.ZodNullable<z.ZodDate>;
2546
- nextMonthlyGrant: z.ZodNumber;
2547
2531
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
2548
2532
  }, "strip", z.ZodTypeAny, {
2549
2533
  type: "usage-response";
2550
2534
  usage: number;
2551
2535
  remainingBalance: number;
2552
2536
  next_quota_reset: Date | null;
2553
- nextMonthlyGrant: number;
2554
2537
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
2555
2538
  autoTopupAdded?: number | undefined;
2556
2539
  }, {
@@ -2558,7 +2541,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2558
2541
  usage: number;
2559
2542
  remainingBalance: number;
2560
2543
  next_quota_reset: Date | null;
2561
- nextMonthlyGrant: number;
2562
2544
  balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
2563
2545
  autoTopupAdded?: number | undefined;
2564
2546
  }>, z.ZodObject<{
@@ -2579,15 +2561,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2579
2561
  error: z.ZodOptional<z.ZodString>;
2580
2562
  remainingBalance: z.ZodOptional<z.ZodNumber>;
2581
2563
  }, "strip", z.ZodTypeAny, {
2582
- type: "action-error";
2583
2564
  message: string;
2584
- error?: string | undefined;
2565
+ type: "action-error";
2585
2566
  remainingBalance?: number | undefined;
2567
+ error?: string | undefined;
2586
2568
  }, {
2587
- type: "action-error";
2588
2569
  message: string;
2589
- error?: string | undefined;
2570
+ type: "action-error";
2590
2571
  remainingBalance?: number | undefined;
2572
+ error?: string | undefined;
2591
2573
  }>, z.ZodObject<{
2592
2574
  type: z.ZodLiteral<"commit-message-response">;
2593
2575
  commitMessage: z.ZodString;