codebuff 1.0.327 → 1.0.329

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 (258) hide show
  1. package/dist/checkpoints/file-manager.js +136 -84
  2. package/dist/checkpoints/file-manager.js.map +1 -1
  3. package/dist/cli-handlers/checkpoint.js +4 -3
  4. package/dist/cli-handlers/checkpoint.js.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/client.js +5 -5
  8. package/dist/client.js.map +1 -1
  9. package/dist/common/actions.d.ts +120 -150
  10. package/dist/common/actions.d.ts.map +1 -1
  11. package/dist/common/analytics.d.ts +1 -1
  12. package/dist/common/browser-actions.d.ts +277 -277
  13. package/dist/common/constants.d.ts +5 -0
  14. package/dist/common/constants.d.ts.map +1 -1
  15. package/dist/common/constants.js +15 -1
  16. package/dist/common/constants.js.map +1 -1
  17. package/dist/common/json-config/default.d.ts +3 -0
  18. package/dist/common/json-config/default.d.ts.map +1 -0
  19. package/dist/common/json-config/default.js +12 -0
  20. package/dist/common/json-config/default.js.map +1 -0
  21. package/dist/common/types/agent-state.d.ts +5 -8
  22. package/dist/common/types/agent-state.d.ts.map +1 -1
  23. package/dist/common/types/agent-state.js +2 -4
  24. package/dist/common/types/agent-state.js.map +1 -1
  25. package/dist/common/types/message.d.ts +16 -16
  26. package/dist/common/util/string.d.ts +4 -4
  27. package/dist/common/util/string.d.ts.map +1 -1
  28. package/dist/common/util/string.js +18 -7
  29. package/dist/common/util/string.js.map +1 -1
  30. package/dist/common/websockets/websocket-schema.d.ts +282 -338
  31. package/dist/common/websockets/websocket-schema.d.ts.map +1 -1
  32. package/dist/index.js +6 -6
  33. package/dist/json-config/parser.d.ts +1 -1
  34. package/dist/json-config/parser.js +4 -3
  35. package/dist/json-config/parser.js.map +1 -1
  36. package/dist/project-files.js +6 -1
  37. package/dist/project-files.js.map +1 -1
  38. package/dist/terminal/base.d.ts +1 -0
  39. package/dist/terminal/base.js +16 -34
  40. package/dist/terminal/base.js.map +1 -1
  41. package/dist/tool-handlers.js +1 -1
  42. package/dist/tool-handlers.js.map +1 -1
  43. package/dist/utils/spinner.d.ts +2 -2
  44. package/dist/utils/spinner.js +4 -13
  45. package/dist/utils/spinner.js.map +1 -1
  46. package/dist/utils/tool-renderers.d.ts +5 -5
  47. package/dist/utils/tool-renderers.js +6 -3
  48. package/dist/utils/tool-renderers.js.map +1 -1
  49. package/dist/utils/xml-stream-parser.js +20 -5
  50. package/dist/utils/xml-stream-parser.js.map +1 -1
  51. package/package.json +1 -1
  52. package/dist/common/db/env.d.mts +0 -4
  53. package/dist/common/db/env.mjs +0 -26
  54. package/dist/common/db/env.mjs.map +0 -1
  55. package/dist/common/env.d.mts +0 -13
  56. package/dist/common/env.mjs +0 -43
  57. package/dist/common/env.mjs.map +0 -1
  58. package/dist/common/src/actions.d.ts +0 -2673
  59. package/dist/common/src/actions.d.ts.map +0 -1
  60. package/dist/common/src/actions.js +0 -167
  61. package/dist/common/src/actions.js.map +0 -1
  62. package/dist/common/src/analytics.d.ts +0 -6
  63. package/dist/common/src/analytics.d.ts.map +0 -1
  64. package/dist/common/src/analytics.js +0 -60
  65. package/dist/common/src/analytics.js.map +0 -1
  66. package/dist/common/src/api-keys/constants.d.ts +0 -9
  67. package/dist/common/src/api-keys/constants.d.ts.map +0 -1
  68. package/dist/common/src/api-keys/constants.js +0 -26
  69. package/dist/common/src/api-keys/constants.js.map +0 -1
  70. package/dist/common/src/api-keys/crypto.d.ts +0 -25
  71. package/dist/common/src/api-keys/crypto.d.ts.map +0 -1
  72. package/dist/common/src/api-keys/crypto.js +0 -186
  73. package/dist/common/src/api-keys/crypto.js.map +0 -1
  74. package/dist/common/src/browser-actions.d.ts +0 -4416
  75. package/dist/common/src/browser-actions.d.ts.map +0 -1
  76. package/dist/common/src/browser-actions.js +0 -343
  77. package/dist/common/src/browser-actions.js.map +0 -1
  78. package/dist/common/src/constants/analytics-events.d.ts +0 -28
  79. package/dist/common/src/constants/analytics-events.d.ts.map +0 -1
  80. package/dist/common/src/constants/analytics-events.js +0 -36
  81. package/dist/common/src/constants/analytics-events.js.map +0 -1
  82. package/dist/common/src/constants/grant-priorities.d.ts +0 -3
  83. package/dist/common/src/constants/grant-priorities.d.ts.map +0 -1
  84. package/dist/common/src/constants/grant-priorities.js +0 -11
  85. package/dist/common/src/constants/grant-priorities.js.map +0 -1
  86. package/dist/common/src/constants/tools.d.ts +0 -20
  87. package/dist/common/src/constants/tools.d.ts.map +0 -1
  88. package/dist/common/src/constants/tools.js +0 -47
  89. package/dist/common/src/constants/tools.js.map +0 -1
  90. package/dist/common/src/constants.d.ts +0 -152
  91. package/dist/common/src/constants.d.ts.map +0 -1
  92. package/dist/common/src/constants.js +0 -222
  93. package/dist/common/src/constants.js.map +0 -1
  94. package/dist/common/src/db/drizzle.config.d.ts +0 -3
  95. package/dist/common/src/db/drizzle.config.d.ts.map +0 -1
  96. package/dist/common/src/db/drizzle.config.js +0 -17
  97. package/dist/common/src/db/drizzle.config.js.map +0 -1
  98. package/dist/common/src/db/index.d.ts +0 -7
  99. package/dist/common/src/db/index.d.ts.map +0 -1
  100. package/dist/common/src/db/index.js +0 -35
  101. package/dist/common/src/db/index.js.map +0 -1
  102. package/dist/common/src/db/schema.d.ts +0 -2289
  103. package/dist/common/src/db/schema.d.ts.map +0 -1
  104. package/dist/common/src/db/schema.js +0 -296
  105. package/dist/common/src/db/schema.js.map +0 -1
  106. package/dist/common/src/db/transaction.d.ts +0 -13
  107. package/dist/common/src/db/transaction.d.ts.map +0 -1
  108. package/dist/common/src/db/transaction.js +0 -36
  109. package/dist/common/src/db/transaction.js.map +0 -1
  110. package/dist/common/src/json-config/__tests__/constants.test.d.ts +0 -2
  111. package/dist/common/src/json-config/__tests__/constants.test.d.ts.map +0 -1
  112. package/dist/common/src/json-config/__tests__/constants.test.js +0 -273
  113. package/dist/common/src/json-config/__tests__/constants.test.js.map +0 -1
  114. package/dist/common/src/json-config/__tests__/stringify-schema.test.d.ts +0 -2
  115. package/dist/common/src/json-config/__tests__/stringify-schema.test.d.ts.map +0 -1
  116. package/dist/common/src/json-config/__tests__/stringify-schema.test.js +0 -66
  117. package/dist/common/src/json-config/__tests__/stringify-schema.test.js.map +0 -1
  118. package/dist/common/src/json-config/constants.d.ts +0 -138
  119. package/dist/common/src/json-config/constants.d.ts.map +0 -1
  120. package/dist/common/src/json-config/constants.js +0 -78
  121. package/dist/common/src/json-config/constants.js.map +0 -1
  122. package/dist/common/src/json-config/stringify-schema.d.ts +0 -10
  123. package/dist/common/src/json-config/stringify-schema.d.ts.map +0 -1
  124. package/dist/common/src/json-config/stringify-schema.js +0 -131
  125. package/dist/common/src/json-config/stringify-schema.js.map +0 -1
  126. package/dist/common/src/project-file-tree.d.ts +0 -12
  127. package/dist/common/src/project-file-tree.d.ts.map +0 -1
  128. package/dist/common/src/project-file-tree.js +0 -212
  129. package/dist/common/src/project-file-tree.js.map +0 -1
  130. package/dist/common/src/types/agent-state.d.ts +0 -227
  131. package/dist/common/src/types/agent-state.d.ts.map +0 -1
  132. package/dist/common/src/types/agent-state.js +0 -34
  133. package/dist/common/src/types/agent-state.js.map +0 -1
  134. package/dist/common/src/types/grant.d.ts +0 -3
  135. package/dist/common/src/types/grant.d.ts.map +0 -1
  136. package/dist/common/src/types/grant.js +0 -11
  137. package/dist/common/src/types/grant.js.map +0 -1
  138. package/dist/common/src/types/message.d.ts +0 -320
  139. package/dist/common/src/types/message.d.ts.map +0 -1
  140. package/dist/common/src/types/message.js +0 -60
  141. package/dist/common/src/types/message.js.map +0 -1
  142. package/dist/common/src/types/organization.d.ts +0 -106
  143. package/dist/common/src/types/organization.d.ts.map +0 -1
  144. package/dist/common/src/types/organization.js +0 -3
  145. package/dist/common/src/types/organization.js.map +0 -1
  146. package/dist/common/src/types/referral.d.ts +0 -3
  147. package/dist/common/src/types/referral.d.ts.map +0 -1
  148. package/dist/common/src/types/referral.js +0 -5
  149. package/dist/common/src/types/referral.js.map +0 -1
  150. package/dist/common/src/types/tools.d.ts +0 -6
  151. package/dist/common/src/types/tools.d.ts.map +0 -1
  152. package/dist/common/src/types/tools.js +0 -3
  153. package/dist/common/src/types/tools.js.map +0 -1
  154. package/dist/common/src/types/usage.d.ts +0 -41
  155. package/dist/common/src/types/usage.d.ts.map +0 -1
  156. package/dist/common/src/types/usage.js +0 -16
  157. package/dist/common/src/types/usage.js.map +0 -1
  158. package/dist/common/src/util/__tests__/messages.test.d.ts +0 -2
  159. package/dist/common/src/util/__tests__/messages.test.d.ts.map +0 -1
  160. package/dist/common/src/util/__tests__/messages.test.js +0 -70
  161. package/dist/common/src/util/__tests__/messages.test.js.map +0 -1
  162. package/dist/common/src/util/__tests__/saxy.test.d.ts +0 -2
  163. package/dist/common/src/util/__tests__/saxy.test.d.ts.map +0 -1
  164. package/dist/common/src/util/__tests__/saxy.test.js +0 -906
  165. package/dist/common/src/util/__tests__/saxy.test.js.map +0 -1
  166. package/dist/common/src/util/__tests__/string.test.d.ts +0 -2
  167. package/dist/common/src/util/__tests__/string.test.d.ts.map +0 -1
  168. package/dist/common/src/util/__tests__/string.test.js +0 -82
  169. package/dist/common/src/util/__tests__/string.test.js.map +0 -1
  170. package/dist/common/src/util/array.d.ts +0 -7
  171. package/dist/common/src/util/array.d.ts.map +0 -1
  172. package/dist/common/src/util/array.js +0 -32
  173. package/dist/common/src/util/array.js.map +0 -1
  174. package/dist/common/src/util/changes.d.ts +0 -9
  175. package/dist/common/src/util/changes.d.ts.map +0 -1
  176. package/dist/common/src/util/changes.js +0 -87
  177. package/dist/common/src/util/changes.js.map +0 -1
  178. package/dist/common/src/util/credentials.d.ts +0 -26
  179. package/dist/common/src/util/credentials.d.ts.map +0 -1
  180. package/dist/common/src/util/credentials.js +0 -24
  181. package/dist/common/src/util/credentials.js.map +0 -1
  182. package/dist/common/src/util/currency.d.ts +0 -15
  183. package/dist/common/src/util/currency.d.ts.map +0 -1
  184. package/dist/common/src/util/currency.js +0 -23
  185. package/dist/common/src/util/currency.js.map +0 -1
  186. package/dist/common/src/util/dates.d.ts +0 -11
  187. package/dist/common/src/util/dates.d.ts.map +0 -1
  188. package/dist/common/src/util/dates.js +0 -22
  189. package/dist/common/src/util/dates.js.map +0 -1
  190. package/dist/common/src/util/file.d.ts +0 -163
  191. package/dist/common/src/util/file.d.ts.map +0 -1
  192. package/dist/common/src/util/file.js +0 -192
  193. package/dist/common/src/util/file.js.map +0 -1
  194. package/dist/common/src/util/git.d.ts +0 -7
  195. package/dist/common/src/util/git.d.ts.map +0 -1
  196. package/dist/common/src/util/git.js +0 -81
  197. package/dist/common/src/util/git.js.map +0 -1
  198. package/dist/common/src/util/logger.d.ts +0 -9
  199. package/dist/common/src/util/logger.d.ts.map +0 -1
  200. package/dist/common/src/util/logger.js +0 -52
  201. package/dist/common/src/util/logger.js.map +0 -1
  202. package/dist/common/src/util/lru-cache.d.ts +0 -31
  203. package/dist/common/src/util/lru-cache.d.ts.map +0 -1
  204. package/dist/common/src/util/lru-cache.js +0 -68
  205. package/dist/common/src/util/lru-cache.js.map +0 -1
  206. package/dist/common/src/util/messages.d.ts +0 -12
  207. package/dist/common/src/util/messages.d.ts.map +0 -1
  208. package/dist/common/src/util/messages.js +0 -81
  209. package/dist/common/src/util/messages.js.map +0 -1
  210. package/dist/common/src/util/min-heap.d.ts +0 -16
  211. package/dist/common/src/util/min-heap.d.ts.map +0 -1
  212. package/dist/common/src/util/min-heap.js +0 -73
  213. package/dist/common/src/util/min-heap.js.map +0 -1
  214. package/dist/common/src/util/object.d.ts +0 -19
  215. package/dist/common/src/util/object.d.ts.map +0 -1
  216. package/dist/common/src/util/object.js +0 -91
  217. package/dist/common/src/util/object.js.map +0 -1
  218. package/dist/common/src/util/patch.d.ts +0 -2
  219. package/dist/common/src/util/patch.d.ts.map +0 -1
  220. package/dist/common/src/util/patch.js +0 -215
  221. package/dist/common/src/util/patch.js.map +0 -1
  222. package/dist/common/src/util/promise.d.ts +0 -17
  223. package/dist/common/src/util/promise.d.ts.map +0 -1
  224. package/dist/common/src/util/promise.js +0 -51
  225. package/dist/common/src/util/promise.js.map +0 -1
  226. package/dist/common/src/util/random.d.ts +0 -2
  227. package/dist/common/src/util/random.d.ts.map +0 -1
  228. package/dist/common/src/util/random.js +0 -17
  229. package/dist/common/src/util/random.js.map +0 -1
  230. package/dist/common/src/util/referral.d.ts +0 -2
  231. package/dist/common/src/util/referral.d.ts.map +0 -1
  232. package/dist/common/src/util/referral.js +0 -6
  233. package/dist/common/src/util/referral.js.map +0 -1
  234. package/dist/common/src/util/saxy.d.ts +0 -179
  235. package/dist/common/src/util/saxy.d.ts.map +0 -1
  236. package/dist/common/src/util/saxy.js +0 -548
  237. package/dist/common/src/util/saxy.js.map +0 -1
  238. package/dist/common/src/util/string.d.ts +0 -80
  239. package/dist/common/src/util/string.d.ts.map +0 -1
  240. package/dist/common/src/util/string.js +0 -264
  241. package/dist/common/src/util/string.js.map +0 -1
  242. package/dist/common/src/util/stripe.d.ts +0 -4
  243. package/dist/common/src/util/stripe.d.ts.map +0 -1
  244. package/dist/common/src/util/stripe.js +0 -22
  245. package/dist/common/src/util/stripe.js.map +0 -1
  246. package/dist/common/src/util/sync-failure.d.ts +0 -2
  247. package/dist/common/src/util/sync-failure.d.ts.map +0 -1
  248. package/dist/common/src/util/sync-failure.js +0 -57
  249. package/dist/common/src/util/sync-failure.js.map +0 -1
  250. package/dist/common/src/websockets/websocket-client.d.ts +0 -43
  251. package/dist/common/src/websockets/websocket-client.d.ts.map +0 -1
  252. package/dist/common/src/websockets/websocket-client.js +0 -216
  253. package/dist/common/src/websockets/websocket-client.js.map +0 -1
  254. package/dist/common/src/websockets/websocket-schema.d.ts +0 -5159
  255. package/dist/common/src/websockets/websocket-schema.d.ts.map +0 -1
  256. package/dist/common/src/websockets/websocket-schema.js +0 -55
  257. package/dist/common/src/websockets/websocket-schema.js.map +0 -1
  258. package/dist/common/tsconfig.tsbuildinfo +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: "patch" | "file";
9
9
  content: string;
10
10
  }, {
11
- type: "patch" | "file";
12
11
  path: string;
12
+ type: "patch" | "file";
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: "patch" | "file";
23
23
  content: string;
24
24
  }, {
25
- type: "patch" | "file";
26
25
  path: string;
26
+ type: "patch" | "file";
27
27
  content: string;
28
28
  }>, "many">;
29
29
  export type FileChanges = z.infer<typeof CHANGES>;
@@ -169,8 +169,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
169
169
  }, {
170
170
  timeToLive?: "agentStep" | "userPrompt" | undefined;
171
171
  }>>, "many">;
172
- consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
173
- agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
172
+ agentStepsRemaining: z.ZodNumber;
174
173
  }, "strip", z.ZodTypeAny, {
175
174
  agentContext: string;
176
175
  fileContext: {
@@ -204,8 +203,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
204
203
  messageHistory: (import("ai").CoreMessage & {
205
204
  timeToLive?: "agentStep" | "userPrompt" | undefined;
206
205
  })[];
207
- consecutiveAssistantMessages?: number | undefined;
208
- agentStepsRemaining?: number | undefined;
206
+ agentStepsRemaining: number;
209
207
  }, {
210
208
  agentContext: string;
211
209
  fileContext: {
@@ -239,8 +237,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
239
237
  messageHistory: (import("ai").CoreMessage & {
240
238
  timeToLive?: "agentStep" | "userPrompt" | undefined;
241
239
  })[];
242
- consecutiveAssistantMessages?: number | undefined;
243
- agentStepsRemaining?: number | undefined;
240
+ agentStepsRemaining: number;
244
241
  }>;
245
242
  toolResults: z.ZodArray<z.ZodObject<{
246
243
  name: z.ZodString;
@@ -262,7 +259,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
262
259
  type: "prompt";
263
260
  promptId: string;
264
261
  fingerprintId: string;
265
- costMode: "lite" | "normal" | "max" | "experimental" | "ask";
262
+ costMode: "max" | "lite" | "normal" | "experimental" | "ask";
266
263
  agentState: {
267
264
  agentContext: string;
268
265
  fileContext: {
@@ -296,18 +293,17 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
296
293
  messageHistory: (import("ai").CoreMessage & {
297
294
  timeToLive?: "agentStep" | "userPrompt" | undefined;
298
295
  })[];
299
- consecutiveAssistantMessages?: number | undefined;
300
- agentStepsRemaining?: number | undefined;
296
+ agentStepsRemaining: number;
301
297
  };
302
298
  toolResults: {
303
299
  name: string;
304
300
  id: string;
305
301
  result: string;
306
302
  }[];
307
- model?: string | undefined;
303
+ cwd?: string | undefined;
308
304
  prompt?: string | undefined;
309
305
  authToken?: string | undefined;
310
- cwd?: string | undefined;
306
+ model?: string | undefined;
311
307
  repoUrl?: string | undefined;
312
308
  }, {
313
309
  type: "prompt";
@@ -346,19 +342,18 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
346
342
  messageHistory: (import("ai").CoreMessage & {
347
343
  timeToLive?: "agentStep" | "userPrompt" | undefined;
348
344
  })[];
349
- consecutiveAssistantMessages?: number | undefined;
350
- agentStepsRemaining?: number | undefined;
345
+ agentStepsRemaining: number;
351
346
  };
352
347
  toolResults: {
353
348
  name: string;
354
349
  id: string;
355
350
  result: string;
356
351
  }[];
357
- model?: string | undefined;
352
+ cwd?: string | undefined;
358
353
  prompt?: string | undefined;
359
354
  authToken?: string | undefined;
360
- costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
361
- cwd?: string | undefined;
355
+ costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
356
+ model?: string | undefined;
362
357
  repoUrl?: string | undefined;
363
358
  }>, z.ZodObject<{
364
359
  type: z.ZodLiteral<"manager-prompt">;
@@ -485,8 +480,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
485
480
  }, {
486
481
  timeToLive?: "agentStep" | "userPrompt" | undefined;
487
482
  }>>, "many">;
488
- consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
489
- agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
483
+ agentStepsRemaining: z.ZodNumber;
490
484
  }, "strip", z.ZodTypeAny, {
491
485
  agentContext: string;
492
486
  fileContext: {
@@ -520,8 +514,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
520
514
  messageHistory: (import("ai").CoreMessage & {
521
515
  timeToLive?: "agentStep" | "userPrompt" | undefined;
522
516
  })[];
523
- consecutiveAssistantMessages?: number | undefined;
524
- agentStepsRemaining?: number | undefined;
517
+ agentStepsRemaining: number;
525
518
  }, {
526
519
  agentContext: string;
527
520
  fileContext: {
@@ -555,8 +548,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
555
548
  messageHistory: (import("ai").CoreMessage & {
556
549
  timeToLive?: "agentStep" | "userPrompt" | undefined;
557
550
  })[];
558
- consecutiveAssistantMessages?: number | undefined;
559
- agentStepsRemaining?: number | undefined;
551
+ agentStepsRemaining: number;
560
552
  }>;
561
553
  toolResults: z.ZodArray<z.ZodObject<{
562
554
  name: z.ZodString;
@@ -581,7 +573,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
581
573
  type: "manager-prompt";
582
574
  promptId: string;
583
575
  fingerprintId: string;
584
- costMode: "lite" | "normal" | "max" | "experimental" | "ask";
576
+ costMode: "max" | "lite" | "normal" | "experimental" | "ask";
585
577
  agentState: {
586
578
  agentContext: string;
587
579
  fileContext: {
@@ -615,18 +607,17 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
615
607
  messageHistory: (import("ai").CoreMessage & {
616
608
  timeToLive?: "agentStep" | "userPrompt" | undefined;
617
609
  })[];
618
- consecutiveAssistantMessages?: number | undefined;
619
- agentStepsRemaining?: number | undefined;
610
+ agentStepsRemaining: number;
620
611
  };
621
612
  toolResults: {
622
613
  name: string;
623
614
  id: string;
624
615
  result: string;
625
616
  }[];
626
- model?: string | undefined;
617
+ cwd?: string | undefined;
627
618
  prompt?: string | undefined;
628
619
  authToken?: string | undefined;
629
- cwd?: string | undefined;
620
+ model?: string | undefined;
630
621
  repoName?: string | undefined;
631
622
  }, {
632
623
  type: "manager-prompt";
@@ -665,19 +656,18 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
665
656
  messageHistory: (import("ai").CoreMessage & {
666
657
  timeToLive?: "agentStep" | "userPrompt" | undefined;
667
658
  })[];
668
- consecutiveAssistantMessages?: number | undefined;
669
- agentStepsRemaining?: number | undefined;
659
+ agentStepsRemaining: number;
670
660
  };
671
661
  toolResults: {
672
662
  name: string;
673
663
  id: string;
674
664
  result: string;
675
665
  }[];
676
- model?: string | undefined;
666
+ cwd?: string | undefined;
677
667
  prompt?: string | undefined;
678
668
  authToken?: string | undefined;
679
- costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
680
- cwd?: string | undefined;
669
+ costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
670
+ model?: string | undefined;
681
671
  repoName?: string | undefined;
682
672
  }>, z.ZodObject<{
683
673
  type: z.ZodLiteral<"read-files-response">;
@@ -810,7 +800,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
810
800
  repoUrl: z.ZodOptional<z.ZodString>;
811
801
  }, "strip", z.ZodTypeAny, {
812
802
  type: "init";
813
- fingerprintId: string;
814
803
  fileContext: {
815
804
  currentWorkingDirectory: string;
816
805
  fileTree: import("./util/file").FileTreeNode[];
@@ -839,11 +828,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
839
828
  content: string;
840
829
  }[][] | undefined;
841
830
  };
831
+ fingerprintId: string;
842
832
  authToken?: string | undefined;
843
833
  repoUrl?: string | undefined;
844
834
  }, {
845
835
  type: "init";
846
- fingerprintId: string;
847
836
  fileContext: {
848
837
  currentWorkingDirectory: string;
849
838
  fileTree: import("./util/file").FileTreeNode[];
@@ -872,6 +861,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
872
861
  content: string;
873
862
  }[][] | undefined;
874
863
  };
864
+ fingerprintId: string;
875
865
  authToken?: string | undefined;
876
866
  repoUrl?: string | undefined;
877
867
  }>, z.ZodObject<{
@@ -899,17 +889,17 @@ export declare const UsageReponseSchema: z.ZodObject<{
899
889
  next_quota_reset: z.ZodNullable<z.ZodDate>;
900
890
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
901
891
  }, "strip", z.ZodTypeAny, {
902
- next_quota_reset: Date | null;
903
892
  type: "usage-response";
904
893
  usage: number;
905
894
  remainingBalance: number;
895
+ next_quota_reset: Date | null;
906
896
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
907
897
  autoTopupAdded?: number | undefined;
908
898
  }, {
909
- next_quota_reset: Date | null;
910
899
  type: "usage-response";
911
900
  usage: number;
912
901
  remainingBalance: number;
902
+ next_quota_reset: Date | null;
913
903
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
914
904
  autoTopupAdded?: number | undefined;
915
905
  }>;
@@ -924,17 +914,17 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
924
914
  next_quota_reset: z.ZodNullable<z.ZodDate>;
925
915
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
926
916
  }, "type">>, "strip", z.ZodTypeAny, {
927
- next_quota_reset: Date | null;
928
917
  type: "init-response";
929
918
  usage: number;
930
919
  remainingBalance: number;
920
+ next_quota_reset: Date | null;
931
921
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
932
922
  autoTopupAdded?: number | undefined;
933
923
  }, {
934
- next_quota_reset: Date | null;
935
924
  type: "init-response";
936
925
  usage: number;
937
926
  remainingBalance: number;
927
+ next_quota_reset: Date | null;
938
928
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
939
929
  autoTopupAdded?: number | undefined;
940
930
  }>;
@@ -948,12 +938,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
948
938
  path: z.ZodString;
949
939
  content: z.ZodString;
950
940
  }, "strip", z.ZodTypeAny, {
951
- type: "patch" | "file";
952
941
  path: string;
942
+ type: "patch" | "file";
953
943
  content: string;
954
944
  }, {
955
- type: "patch" | "file";
956
945
  path: string;
946
+ type: "patch" | "file";
957
947
  content: string;
958
948
  }>, "many">;
959
949
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -961,12 +951,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
961
951
  path: z.ZodString;
962
952
  content: z.ZodString;
963
953
  }, "strip", z.ZodTypeAny, {
964
- type: "patch" | "file";
965
954
  path: string;
955
+ type: "patch" | "file";
966
956
  content: string;
967
957
  }, {
968
- type: "patch" | "file";
969
958
  path: string;
959
+ type: "patch" | "file";
970
960
  content: string;
971
961
  }>, "many">;
972
962
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -981,23 +971,23 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
981
971
  }>, "many">;
982
972
  resetFileVersions: z.ZodBoolean;
983
973
  }, {
984
- next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
985
974
  usage: z.ZodOptional<z.ZodNumber>;
986
975
  remainingBalance: z.ZodOptional<z.ZodNumber>;
987
976
  balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
977
+ next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
988
978
  autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
989
979
  }>, "strip", z.ZodTypeAny, {
990
980
  type: "response-complete";
991
- response: string;
992
981
  userInputId: string;
982
+ response: string;
993
983
  changes: {
994
- type: "patch" | "file";
995
984
  path: string;
985
+ type: "patch" | "file";
996
986
  content: string;
997
987
  }[];
998
988
  changesAlreadyApplied: {
999
- type: "patch" | "file";
1000
989
  path: string;
990
+ type: "patch" | "file";
1001
991
  content: string;
1002
992
  }[];
1003
993
  addedFileVersions: {
@@ -1005,23 +995,23 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1005
995
  content: string;
1006
996
  }[];
1007
997
  resetFileVersions: boolean;
1008
- next_quota_reset?: Date | null | undefined;
1009
998
  usage?: number | undefined;
1010
999
  remainingBalance?: number | undefined;
1011
1000
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
1001
+ next_quota_reset?: Date | null | undefined;
1012
1002
  autoTopupAdded?: number | undefined;
1013
1003
  }, {
1014
1004
  type: "response-complete";
1015
- response: string;
1016
1005
  userInputId: string;
1006
+ response: string;
1017
1007
  changes: {
1018
- type: "patch" | "file";
1019
1008
  path: string;
1009
+ type: "patch" | "file";
1020
1010
  content: string;
1021
1011
  }[];
1022
1012
  changesAlreadyApplied: {
1023
- type: "patch" | "file";
1024
1013
  path: string;
1014
+ type: "patch" | "file";
1025
1015
  content: string;
1026
1016
  }[];
1027
1017
  addedFileVersions: {
@@ -1029,10 +1019,10 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1029
1019
  content: string;
1030
1020
  }[];
1031
1021
  resetFileVersions: boolean;
1032
- next_quota_reset?: Date | null | undefined;
1033
1022
  usage?: number | undefined;
1034
1023
  remainingBalance?: number | undefined;
1035
1024
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
1025
+ next_quota_reset?: Date | null | undefined;
1036
1026
  autoTopupAdded?: number | undefined;
1037
1027
  }>;
1038
1028
  export declare const MessageCostResponseSchema: z.ZodObject<{
@@ -1041,12 +1031,12 @@ export declare const MessageCostResponseSchema: z.ZodObject<{
1041
1031
  credits: z.ZodNumber;
1042
1032
  }, "strip", z.ZodTypeAny, {
1043
1033
  type: "message-cost-response";
1044
- credits: number;
1045
1034
  promptId: string;
1035
+ credits: number;
1046
1036
  }, {
1047
1037
  type: "message-cost-response";
1048
- credits: number;
1049
1038
  promptId: string;
1039
+ credits: number;
1050
1040
  }>;
1051
1041
  export type MessageCostResponse = z.infer<typeof MessageCostResponseSchema>;
1052
1042
  export declare const PromptResponseSchema: z.ZodObject<{
@@ -1173,8 +1163,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
1173
1163
  }, {
1174
1164
  timeToLive?: "agentStep" | "userPrompt" | undefined;
1175
1165
  }>>, "many">;
1176
- consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
1177
- agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
1166
+ agentStepsRemaining: z.ZodNumber;
1178
1167
  }, "strip", z.ZodTypeAny, {
1179
1168
  agentContext: string;
1180
1169
  fileContext: {
@@ -1208,8 +1197,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
1208
1197
  messageHistory: (import("ai").CoreMessage & {
1209
1198
  timeToLive?: "agentStep" | "userPrompt" | undefined;
1210
1199
  })[];
1211
- consecutiveAssistantMessages?: number | undefined;
1212
- agentStepsRemaining?: number | undefined;
1200
+ agentStepsRemaining: number;
1213
1201
  }, {
1214
1202
  agentContext: string;
1215
1203
  fileContext: {
@@ -1243,8 +1231,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
1243
1231
  messageHistory: (import("ai").CoreMessage & {
1244
1232
  timeToLive?: "agentStep" | "userPrompt" | undefined;
1245
1233
  })[];
1246
- consecutiveAssistantMessages?: number | undefined;
1247
- agentStepsRemaining?: number | undefined;
1234
+ agentStepsRemaining: number;
1248
1235
  }>;
1249
1236
  toolCalls: z.ZodArray<z.ZodObject<{
1250
1237
  name: z.ZodString;
@@ -1252,12 +1239,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
1252
1239
  id: z.ZodString;
1253
1240
  }, "strip", z.ZodTypeAny, {
1254
1241
  name: string;
1255
- id: string;
1256
1242
  parameters: Record<string, string>;
1243
+ id: string;
1257
1244
  }, {
1258
1245
  name: string;
1259
- id: string;
1260
1246
  parameters: Record<string, string>;
1247
+ id: string;
1261
1248
  }>, "many">;
1262
1249
  toolResults: z.ZodArray<z.ZodObject<{
1263
1250
  name: z.ZodString;
@@ -1308,8 +1295,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
1308
1295
  messageHistory: (import("ai").CoreMessage & {
1309
1296
  timeToLive?: "agentStep" | "userPrompt" | undefined;
1310
1297
  })[];
1311
- consecutiveAssistantMessages?: number | undefined;
1312
- agentStepsRemaining?: number | undefined;
1298
+ agentStepsRemaining: number;
1313
1299
  };
1314
1300
  toolResults: {
1315
1301
  name: string;
@@ -1318,8 +1304,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1318
1304
  }[];
1319
1305
  toolCalls: {
1320
1306
  name: string;
1321
- id: string;
1322
1307
  parameters: Record<string, string>;
1308
+ id: string;
1323
1309
  }[];
1324
1310
  }, {
1325
1311
  type: "prompt-response";
@@ -1357,8 +1343,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
1357
1343
  messageHistory: (import("ai").CoreMessage & {
1358
1344
  timeToLive?: "agentStep" | "userPrompt" | undefined;
1359
1345
  })[];
1360
- consecutiveAssistantMessages?: number | undefined;
1361
- agentStepsRemaining?: number | undefined;
1346
+ agentStepsRemaining: number;
1362
1347
  };
1363
1348
  toolResults: {
1364
1349
  name: string;
@@ -1367,8 +1352,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1367
1352
  }[];
1368
1353
  toolCalls: {
1369
1354
  name: string;
1370
- id: string;
1371
1355
  parameters: Record<string, string>;
1356
+ id: string;
1372
1357
  }[];
1373
1358
  }>;
1374
1359
  export type PromptResponse = z.infer<typeof PromptResponseSchema>;
@@ -1496,8 +1481,7 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
1496
1481
  }, {
1497
1482
  timeToLive?: "agentStep" | "userPrompt" | undefined;
1498
1483
  }>>, "many">;
1499
- consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
1500
- agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
1484
+ agentStepsRemaining: z.ZodNumber;
1501
1485
  }, "strip", z.ZodTypeAny, {
1502
1486
  agentContext: string;
1503
1487
  fileContext: {
@@ -1531,8 +1515,7 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
1531
1515
  messageHistory: (import("ai").CoreMessage & {
1532
1516
  timeToLive?: "agentStep" | "userPrompt" | undefined;
1533
1517
  })[];
1534
- consecutiveAssistantMessages?: number | undefined;
1535
- agentStepsRemaining?: number | undefined;
1518
+ agentStepsRemaining: number;
1536
1519
  }, {
1537
1520
  agentContext: string;
1538
1521
  fileContext: {
@@ -1566,8 +1549,7 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
1566
1549
  messageHistory: (import("ai").CoreMessage & {
1567
1550
  timeToLive?: "agentStep" | "userPrompt" | undefined;
1568
1551
  })[];
1569
- consecutiveAssistantMessages?: number | undefined;
1570
- agentStepsRemaining?: number | undefined;
1552
+ agentStepsRemaining: number;
1571
1553
  }>;
1572
1554
  toolCalls: z.ZodArray<z.ZodObject<{
1573
1555
  name: z.ZodString;
@@ -1575,12 +1557,12 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
1575
1557
  id: z.ZodString;
1576
1558
  }, "strip", z.ZodTypeAny, {
1577
1559
  name: string;
1578
- id: string;
1579
1560
  parameters: Record<string, string>;
1561
+ id: string;
1580
1562
  }, {
1581
1563
  name: string;
1582
- id: string;
1583
1564
  parameters: Record<string, string>;
1565
+ id: string;
1584
1566
  }>, "many">;
1585
1567
  toolResults: z.ZodArray<z.ZodObject<{
1586
1568
  name: z.ZodString;
@@ -1631,8 +1613,7 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
1631
1613
  messageHistory: (import("ai").CoreMessage & {
1632
1614
  timeToLive?: "agentStep" | "userPrompt" | undefined;
1633
1615
  })[];
1634
- consecutiveAssistantMessages?: number | undefined;
1635
- agentStepsRemaining?: number | undefined;
1616
+ agentStepsRemaining: number;
1636
1617
  };
1637
1618
  toolResults: {
1638
1619
  name: string;
@@ -1641,8 +1622,8 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
1641
1622
  }[];
1642
1623
  toolCalls: {
1643
1624
  name: string;
1644
- id: string;
1645
1625
  parameters: Record<string, string>;
1626
+ id: string;
1646
1627
  }[];
1647
1628
  }, {
1648
1629
  type: "manager-prompt-response";
@@ -1680,8 +1661,7 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
1680
1661
  messageHistory: (import("ai").CoreMessage & {
1681
1662
  timeToLive?: "agentStep" | "userPrompt" | undefined;
1682
1663
  })[];
1683
- consecutiveAssistantMessages?: number | undefined;
1684
- agentStepsRemaining?: number | undefined;
1664
+ agentStepsRemaining: number;
1685
1665
  };
1686
1666
  toolResults: {
1687
1667
  name: string;
@@ -1690,8 +1670,8 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
1690
1670
  }[];
1691
1671
  toolCalls: {
1692
1672
  name: string;
1693
- id: string;
1694
1673
  parameters: Record<string, string>;
1674
+ id: string;
1695
1675
  }[];
1696
1676
  }>;
1697
1677
  export type ManagerPromptResponse = z.infer<typeof ManagerPromptResponseSchema>;
@@ -1716,12 +1696,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1716
1696
  path: z.ZodString;
1717
1697
  content: z.ZodString;
1718
1698
  }, "strip", z.ZodTypeAny, {
1719
- type: "patch" | "file";
1720
1699
  path: string;
1700
+ type: "patch" | "file";
1721
1701
  content: string;
1722
1702
  }, {
1723
- type: "patch" | "file";
1724
1703
  path: string;
1704
+ type: "patch" | "file";
1725
1705
  content: string;
1726
1706
  }>, "many">;
1727
1707
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -1729,12 +1709,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1729
1709
  path: z.ZodString;
1730
1710
  content: z.ZodString;
1731
1711
  }, "strip", z.ZodTypeAny, {
1732
- type: "patch" | "file";
1733
1712
  path: string;
1713
+ type: "patch" | "file";
1734
1714
  content: string;
1735
1715
  }, {
1736
- type: "patch" | "file";
1737
1716
  path: string;
1717
+ type: "patch" | "file";
1738
1718
  content: string;
1739
1719
  }>, "many">;
1740
1720
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -1749,23 +1729,23 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1749
1729
  }>, "many">;
1750
1730
  resetFileVersions: z.ZodBoolean;
1751
1731
  }, {
1752
- next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1753
1732
  usage: z.ZodOptional<z.ZodNumber>;
1754
1733
  remainingBalance: z.ZodOptional<z.ZodNumber>;
1755
1734
  balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
1735
+ next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1756
1736
  autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1757
1737
  }>, "strip", z.ZodTypeAny, {
1758
1738
  type: "response-complete";
1759
- response: string;
1760
1739
  userInputId: string;
1740
+ response: string;
1761
1741
  changes: {
1762
- type: "patch" | "file";
1763
1742
  path: string;
1743
+ type: "patch" | "file";
1764
1744
  content: string;
1765
1745
  }[];
1766
1746
  changesAlreadyApplied: {
1767
- type: "patch" | "file";
1768
1747
  path: string;
1748
+ type: "patch" | "file";
1769
1749
  content: string;
1770
1750
  }[];
1771
1751
  addedFileVersions: {
@@ -1773,23 +1753,23 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1773
1753
  content: string;
1774
1754
  }[];
1775
1755
  resetFileVersions: boolean;
1776
- next_quota_reset?: Date | null | undefined;
1777
1756
  usage?: number | undefined;
1778
1757
  remainingBalance?: number | undefined;
1779
1758
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
1759
+ next_quota_reset?: Date | null | undefined;
1780
1760
  autoTopupAdded?: number | undefined;
1781
1761
  }, {
1782
1762
  type: "response-complete";
1783
- response: string;
1784
1763
  userInputId: string;
1764
+ response: string;
1785
1765
  changes: {
1786
- type: "patch" | "file";
1787
1766
  path: string;
1767
+ type: "patch" | "file";
1788
1768
  content: string;
1789
1769
  }[];
1790
1770
  changesAlreadyApplied: {
1791
- type: "patch" | "file";
1792
1771
  path: string;
1772
+ type: "patch" | "file";
1793
1773
  content: string;
1794
1774
  }[];
1795
1775
  addedFileVersions: {
@@ -1797,10 +1777,10 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1797
1777
  content: string;
1798
1778
  }[];
1799
1779
  resetFileVersions: boolean;
1800
- next_quota_reset?: Date | null | undefined;
1801
1780
  usage?: number | undefined;
1802
1781
  remainingBalance?: number | undefined;
1803
1782
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
1783
+ next_quota_reset?: Date | null | undefined;
1804
1784
  autoTopupAdded?: number | undefined;
1805
1785
  }>, z.ZodObject<{
1806
1786
  type: z.ZodLiteral<"prompt-response">;
@@ -1926,8 +1906,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1926
1906
  }, {
1927
1907
  timeToLive?: "agentStep" | "userPrompt" | undefined;
1928
1908
  }>>, "many">;
1929
- consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
1930
- agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
1909
+ agentStepsRemaining: z.ZodNumber;
1931
1910
  }, "strip", z.ZodTypeAny, {
1932
1911
  agentContext: string;
1933
1912
  fileContext: {
@@ -1961,8 +1940,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1961
1940
  messageHistory: (import("ai").CoreMessage & {
1962
1941
  timeToLive?: "agentStep" | "userPrompt" | undefined;
1963
1942
  })[];
1964
- consecutiveAssistantMessages?: number | undefined;
1965
- agentStepsRemaining?: number | undefined;
1943
+ agentStepsRemaining: number;
1966
1944
  }, {
1967
1945
  agentContext: string;
1968
1946
  fileContext: {
@@ -1996,8 +1974,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1996
1974
  messageHistory: (import("ai").CoreMessage & {
1997
1975
  timeToLive?: "agentStep" | "userPrompt" | undefined;
1998
1976
  })[];
1999
- consecutiveAssistantMessages?: number | undefined;
2000
- agentStepsRemaining?: number | undefined;
1977
+ agentStepsRemaining: number;
2001
1978
  }>;
2002
1979
  toolCalls: z.ZodArray<z.ZodObject<{
2003
1980
  name: z.ZodString;
@@ -2005,12 +1982,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2005
1982
  id: z.ZodString;
2006
1983
  }, "strip", z.ZodTypeAny, {
2007
1984
  name: string;
2008
- id: string;
2009
1985
  parameters: Record<string, string>;
1986
+ id: string;
2010
1987
  }, {
2011
1988
  name: string;
2012
- id: string;
2013
1989
  parameters: Record<string, string>;
1990
+ id: string;
2014
1991
  }>, "many">;
2015
1992
  toolResults: z.ZodArray<z.ZodObject<{
2016
1993
  name: z.ZodString;
@@ -2061,8 +2038,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2061
2038
  messageHistory: (import("ai").CoreMessage & {
2062
2039
  timeToLive?: "agentStep" | "userPrompt" | undefined;
2063
2040
  })[];
2064
- consecutiveAssistantMessages?: number | undefined;
2065
- agentStepsRemaining?: number | undefined;
2041
+ agentStepsRemaining: number;
2066
2042
  };
2067
2043
  toolResults: {
2068
2044
  name: string;
@@ -2071,8 +2047,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2071
2047
  }[];
2072
2048
  toolCalls: {
2073
2049
  name: string;
2074
- id: string;
2075
2050
  parameters: Record<string, string>;
2051
+ id: string;
2076
2052
  }[];
2077
2053
  }, {
2078
2054
  type: "prompt-response";
@@ -2110,8 +2086,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2110
2086
  messageHistory: (import("ai").CoreMessage & {
2111
2087
  timeToLive?: "agentStep" | "userPrompt" | undefined;
2112
2088
  })[];
2113
- consecutiveAssistantMessages?: number | undefined;
2114
- agentStepsRemaining?: number | undefined;
2089
+ agentStepsRemaining: number;
2115
2090
  };
2116
2091
  toolResults: {
2117
2092
  name: string;
@@ -2120,8 +2095,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2120
2095
  }[];
2121
2096
  toolCalls: {
2122
2097
  name: string;
2123
- id: string;
2124
2098
  parameters: Record<string, string>;
2099
+ id: string;
2125
2100
  }[];
2126
2101
  }>, z.ZodObject<{
2127
2102
  type: z.ZodLiteral<"manager-prompt-response">;
@@ -2247,8 +2222,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2247
2222
  }, {
2248
2223
  timeToLive?: "agentStep" | "userPrompt" | undefined;
2249
2224
  }>>, "many">;
2250
- consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
2251
- agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
2225
+ agentStepsRemaining: z.ZodNumber;
2252
2226
  }, "strip", z.ZodTypeAny, {
2253
2227
  agentContext: string;
2254
2228
  fileContext: {
@@ -2282,8 +2256,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2282
2256
  messageHistory: (import("ai").CoreMessage & {
2283
2257
  timeToLive?: "agentStep" | "userPrompt" | undefined;
2284
2258
  })[];
2285
- consecutiveAssistantMessages?: number | undefined;
2286
- agentStepsRemaining?: number | undefined;
2259
+ agentStepsRemaining: number;
2287
2260
  }, {
2288
2261
  agentContext: string;
2289
2262
  fileContext: {
@@ -2317,8 +2290,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2317
2290
  messageHistory: (import("ai").CoreMessage & {
2318
2291
  timeToLive?: "agentStep" | "userPrompt" | undefined;
2319
2292
  })[];
2320
- consecutiveAssistantMessages?: number | undefined;
2321
- agentStepsRemaining?: number | undefined;
2293
+ agentStepsRemaining: number;
2322
2294
  }>;
2323
2295
  toolCalls: z.ZodArray<z.ZodObject<{
2324
2296
  name: z.ZodString;
@@ -2326,12 +2298,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2326
2298
  id: z.ZodString;
2327
2299
  }, "strip", z.ZodTypeAny, {
2328
2300
  name: string;
2329
- id: string;
2330
2301
  parameters: Record<string, string>;
2302
+ id: string;
2331
2303
  }, {
2332
2304
  name: string;
2333
- id: string;
2334
2305
  parameters: Record<string, string>;
2306
+ id: string;
2335
2307
  }>, "many">;
2336
2308
  toolResults: z.ZodArray<z.ZodObject<{
2337
2309
  name: z.ZodString;
@@ -2382,8 +2354,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2382
2354
  messageHistory: (import("ai").CoreMessage & {
2383
2355
  timeToLive?: "agentStep" | "userPrompt" | undefined;
2384
2356
  })[];
2385
- consecutiveAssistantMessages?: number | undefined;
2386
- agentStepsRemaining?: number | undefined;
2357
+ agentStepsRemaining: number;
2387
2358
  };
2388
2359
  toolResults: {
2389
2360
  name: string;
@@ -2392,8 +2363,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2392
2363
  }[];
2393
2364
  toolCalls: {
2394
2365
  name: string;
2395
- id: string;
2396
2366
  parameters: Record<string, string>;
2367
+ id: string;
2397
2368
  }[];
2398
2369
  }, {
2399
2370
  type: "manager-prompt-response";
@@ -2431,8 +2402,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2431
2402
  messageHistory: (import("ai").CoreMessage & {
2432
2403
  timeToLive?: "agentStep" | "userPrompt" | undefined;
2433
2404
  })[];
2434
- consecutiveAssistantMessages?: number | undefined;
2435
- agentStepsRemaining?: number | undefined;
2405
+ agentStepsRemaining: number;
2436
2406
  };
2437
2407
  toolResults: {
2438
2408
  name: string;
@@ -2441,8 +2411,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2441
2411
  }[];
2442
2412
  toolCalls: {
2443
2413
  name: string;
2444
- id: string;
2445
2414
  parameters: Record<string, string>;
2415
+ id: string;
2446
2416
  }[];
2447
2417
  }>, z.ZodObject<{
2448
2418
  type: z.ZodLiteral<"read-files">;
@@ -2478,12 +2448,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2478
2448
  path: z.ZodString;
2479
2449
  content: z.ZodString;
2480
2450
  }, "strip", z.ZodTypeAny, {
2481
- type: "patch" | "file";
2482
2451
  path: string;
2452
+ type: "patch" | "file";
2483
2453
  content: string;
2484
2454
  }, {
2485
- type: "patch" | "file";
2486
2455
  path: string;
2456
+ type: "patch" | "file";
2487
2457
  content: string;
2488
2458
  }>, "many">;
2489
2459
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -2491,12 +2461,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2491
2461
  path: z.ZodString;
2492
2462
  content: z.ZodString;
2493
2463
  }, "strip", z.ZodTypeAny, {
2494
- type: "patch" | "file";
2495
2464
  path: string;
2465
+ type: "patch" | "file";
2496
2466
  content: string;
2497
2467
  }, {
2498
- type: "patch" | "file";
2499
2468
  path: string;
2469
+ type: "patch" | "file";
2500
2470
  content: string;
2501
2471
  }>, "many">;
2502
2472
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -2511,22 +2481,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2511
2481
  }>, "many">;
2512
2482
  resetFileVersions: z.ZodBoolean;
2513
2483
  }, "strip", z.ZodTypeAny, {
2514
- data: {
2515
- name: string;
2516
- id: string;
2517
- input: Record<string, any>;
2518
- };
2519
2484
  type: "tool-call";
2520
- response: string;
2521
2485
  userInputId: string;
2486
+ response: string;
2522
2487
  changes: {
2523
- type: "patch" | "file";
2524
2488
  path: string;
2489
+ type: "patch" | "file";
2525
2490
  content: string;
2526
2491
  }[];
2527
2492
  changesAlreadyApplied: {
2528
- type: "patch" | "file";
2529
2493
  path: string;
2494
+ type: "patch" | "file";
2530
2495
  content: string;
2531
2496
  }[];
2532
2497
  addedFileVersions: {
@@ -2534,23 +2499,23 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2534
2499
  content: string;
2535
2500
  }[];
2536
2501
  resetFileVersions: boolean;
2537
- }, {
2538
2502
  data: {
2539
2503
  name: string;
2540
2504
  id: string;
2541
2505
  input: Record<string, any>;
2542
2506
  };
2507
+ }, {
2543
2508
  type: "tool-call";
2544
- response: string;
2545
2509
  userInputId: string;
2510
+ response: string;
2546
2511
  changes: {
2547
- type: "patch" | "file";
2548
2512
  path: string;
2513
+ type: "patch" | "file";
2549
2514
  content: string;
2550
2515
  }[];
2551
2516
  changesAlreadyApplied: {
2552
- type: "patch" | "file";
2553
2517
  path: string;
2518
+ type: "patch" | "file";
2554
2519
  content: string;
2555
2520
  }[];
2556
2521
  addedFileVersions: {
@@ -2558,6 +2523,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2558
2523
  content: string;
2559
2524
  }[];
2560
2525
  resetFileVersions: boolean;
2526
+ data: {
2527
+ name: string;
2528
+ id: string;
2529
+ input: Record<string, any>;
2530
+ };
2561
2531
  }>, z.ZodObject<{
2562
2532
  type: z.ZodLiteral<"terminal-command-result">;
2563
2533
  userInputId: z.ZodString;
@@ -2592,17 +2562,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2592
2562
  next_quota_reset: z.ZodNullable<z.ZodDate>;
2593
2563
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
2594
2564
  }, "type">>, "strip", z.ZodTypeAny, {
2595
- next_quota_reset: Date | null;
2596
2565
  type: "init-response";
2597
2566
  usage: number;
2598
2567
  remainingBalance: number;
2568
+ next_quota_reset: Date | null;
2599
2569
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
2600
2570
  autoTopupAdded?: number | undefined;
2601
2571
  }, {
2602
- next_quota_reset: Date | null;
2603
2572
  type: "init-response";
2604
2573
  usage: number;
2605
2574
  remainingBalance: number;
2575
+ next_quota_reset: Date | null;
2606
2576
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
2607
2577
  autoTopupAdded?: number | undefined;
2608
2578
  }>, z.ZodObject<{
@@ -2613,17 +2583,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2613
2583
  next_quota_reset: z.ZodNullable<z.ZodDate>;
2614
2584
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
2615
2585
  }, "strip", z.ZodTypeAny, {
2616
- next_quota_reset: Date | null;
2617
2586
  type: "usage-response";
2618
2587
  usage: number;
2619
2588
  remainingBalance: number;
2589
+ next_quota_reset: Date | null;
2620
2590
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
2621
2591
  autoTopupAdded?: number | undefined;
2622
2592
  }, {
2623
- next_quota_reset: Date | null;
2624
2593
  type: "usage-response";
2625
2594
  usage: number;
2626
2595
  remainingBalance: number;
2596
+ next_quota_reset: Date | null;
2627
2597
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
2628
2598
  autoTopupAdded?: number | undefined;
2629
2599
  }>, z.ZodObject<{
@@ -2632,25 +2602,25 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2632
2602
  credits: z.ZodNumber;
2633
2603
  }, "strip", z.ZodTypeAny, {
2634
2604
  type: "message-cost-response";
2635
- credits: number;
2636
2605
  promptId: string;
2606
+ credits: number;
2637
2607
  }, {
2638
2608
  type: "message-cost-response";
2639
- credits: number;
2640
2609
  promptId: string;
2610
+ credits: number;
2641
2611
  }>, z.ZodObject<{
2642
2612
  type: z.ZodLiteral<"action-error">;
2643
2613
  message: z.ZodString;
2644
2614
  error: z.ZodOptional<z.ZodString>;
2645
2615
  remainingBalance: z.ZodOptional<z.ZodNumber>;
2646
2616
  }, "strip", z.ZodTypeAny, {
2647
- type: "action-error";
2648
2617
  message: string;
2618
+ type: "action-error";
2649
2619
  remainingBalance?: number | undefined;
2650
2620
  error?: string | undefined;
2651
2621
  }, {
2652
- type: "action-error";
2653
2622
  message: string;
2623
+ type: "action-error";
2654
2624
  remainingBalance?: number | undefined;
2655
2625
  error?: string | undefined;
2656
2626
  }>, z.ZodObject<{