@builder.io/ai-utils 0.59.0 → 0.60.0

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.
package/src/codegen.d.ts CHANGED
@@ -1,53 +1,56 @@
1
1
  import { z } from "zod";
2
+ import type { Options as PrettierOptions } from "prettier";
2
3
  import type { Attachment, ContentMessageItemToolResult } from "./messages";
3
4
  import type { BuilderContent } from "./completion";
4
- import type { Options as PrettierOptions } from "prettier";
5
- import type { UserContext } from "./mapping";
6
5
  import type { ForcedBackup, SetupDependency, GitDiagnostics } from "./projects";
7
6
  import type { Feature } from "./features";
8
7
  import type { CpuKind, BranchType } from "./projects";
9
- export type GitSnapshot = unknown;
10
- export type ImportType = "named" | "default";
8
+ export declare const GitSnapshotSchema: z.ZodString;
9
+ export type GitSnapshot = z.infer<typeof GitSnapshotSchema>;
10
+ export declare const ImportTypeSchema: z.ZodEnum<{
11
+ default: "default";
12
+ named: "named";
13
+ }>;
14
+ export type ImportType = z.infer<typeof ImportTypeSchema>;
11
15
  export interface ESMImport {
12
16
  importName: string;
13
17
  importPath: string;
14
18
  importType: ImportType;
15
19
  }
16
20
  export type ImportMetadata = ESMImport | string;
17
- export interface ProjectFile {
18
- filePath: string;
19
- content?: string;
20
- importance?: number;
21
- dropReason?: string;
22
- wasIncluded?: boolean;
23
- virtual?: boolean;
24
- }
25
- export interface CustomInstruction {
26
- id: string;
27
- name: string;
28
- content: string;
29
- type?: "always" | "agent-mode";
30
- filePath?: string;
31
- glob?: string;
32
- description?: string;
33
- allowedTools?: string[];
34
- hideUI?: boolean;
35
- isSkill?: boolean;
36
- disableModelInvocation?: boolean;
37
- userInvocable?: boolean;
38
- /**
39
- * Where this instruction was discovered. Drives precedence on name
40
- * collision: `project` > `user` > `plugin`. Set by the discovery loader,
41
- * not by the parsed file itself.
42
- */
43
- scope?: "project" | "user" | "plugin";
44
- /**
45
- * Name of the plugin that contributed this instruction, if any. Set by
46
- * the plugin loader (Phase 2); always `undefined` for project-level and
47
- * user-level standalone files (Phase 1).
48
- */
49
- pluginName?: string;
50
- }
21
+ export declare const ProjectFileSchema: z.ZodObject<{
22
+ filePath: z.ZodString;
23
+ content: z.ZodOptional<z.ZodString>;
24
+ importance: z.ZodOptional<z.ZodNumber>;
25
+ dropReason: z.ZodOptional<z.ZodString>;
26
+ wasIncluded: z.ZodOptional<z.ZodBoolean>;
27
+ virtual: z.ZodOptional<z.ZodBoolean>;
28
+ }, z.core.$strip>;
29
+ export type ProjectFile = z.infer<typeof ProjectFileSchema>;
30
+ export declare const CustomInstructionSchema: z.ZodObject<{
31
+ id: z.ZodString;
32
+ name: z.ZodString;
33
+ content: z.ZodString;
34
+ type: z.ZodOptional<z.ZodEnum<{
35
+ always: "always";
36
+ "agent-mode": "agent-mode";
37
+ }>>;
38
+ filePath: z.ZodOptional<z.ZodString>;
39
+ glob: z.ZodOptional<z.ZodString>;
40
+ description: z.ZodOptional<z.ZodString>;
41
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
42
+ hideUI: z.ZodOptional<z.ZodBoolean>;
43
+ isSkill: z.ZodOptional<z.ZodBoolean>;
44
+ disableModelInvocation: z.ZodOptional<z.ZodBoolean>;
45
+ userInvocable: z.ZodOptional<z.ZodBoolean>;
46
+ scope: z.ZodOptional<z.ZodEnum<{
47
+ user: "user";
48
+ project: "project";
49
+ plugin: "plugin";
50
+ }>>;
51
+ pluginName: z.ZodOptional<z.ZodString>;
52
+ }, z.core.$strip>;
53
+ export type CustomInstruction = z.infer<typeof CustomInstructionSchema>;
51
54
  /** Reasoning effort level for LLM completions. */
52
55
  export declare const ReasoningEffortSchema: z.ZodEnum<{
53
56
  none: "none";
@@ -60,12 +63,14 @@ export declare const ReasoningEffortSchema: z.ZodEnum<{
60
63
  max: "max";
61
64
  }>;
62
65
  export type ReasoningEffort = z.infer<typeof ReasoningEffortSchema>;
63
- export interface CustomAgentInfo {
64
- name: string;
65
- description?: string;
66
- }
66
+ export declare const CustomAgentInfoSchema: z.ZodObject<{
67
+ name: z.ZodString;
68
+ description: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strip>;
70
+ export type CustomAgentInfo = z.infer<typeof CustomAgentInfoSchema>;
67
71
  /** Per-agent model overrides. String = fixed model, string[] = round-robin. */
68
- export type AgentModelOverrides = Record<string, string | string[]>;
72
+ export declare const AgentModelOverridesSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
73
+ export type AgentModelOverrides = z.infer<typeof AgentModelOverridesSchema>;
69
74
  export type ReviewEffort = "medium" | "high" | "low";
70
75
  export interface CustomAgentDefinition {
71
76
  name: string;
@@ -132,260 +137,422 @@ export interface CustomAgentDefinition {
132
137
  */
133
138
  pluginName?: string;
134
139
  }
135
- export type CodeGenFramework = "react" | "html" | "mitosis" | "react-native" | "angular" | "vue" | "svelte" | "qwik" | "solid" | "marko" | "swiftui" | "jetpack-compose" | "flutter";
136
- export type CodeGenStyleLibrary = "tailwind" | "tailwind-precise" | "emotion" | "styled-components" | "styled-jsx" | "react-native" | undefined;
137
- export type CompletionStopReason = "max_tokens" | "stop_sequence" | "tool_use" | "end_turn" | "content_filter" | "error" | "aborted" | "pause_turn" | "refusal" | "compaction" | "model_context_window_exceeded" | null;
138
- export interface ReadToolInput {
139
- /**
140
- * Path of the file. Accepts a path relative to the project working directory,
141
- * an absolute path (e.g. `/Users/.../skill.md`), or a tilde path
142
- * (e.g. `~/.builder/skills/.../SKILL.md`). User-level Builder state under
143
- * `~/.builder/**` is allowed by default for plugin operations; other absolute
144
- * paths require an explicit ACL policy.
145
- */
146
- file_path: string;
147
- offset?: number | null;
148
- limit?: number | null;
149
- }
150
- export interface GlobSearchToolInput {
151
- pattern: string;
152
- }
153
- export interface GrepSearchToolInput {
154
- query: string;
155
- include_glob?: string | null;
156
- exclude_glob?: string | null;
157
- case_sensitive?: boolean | null;
158
- }
159
- export interface SkillToolInput {
160
- skill: string;
161
- /** Optional invocation arguments; forwarded with the skill body in the tool result. */
162
- args?: string | null;
163
- }
164
- export interface GetRuleToolInput {
165
- name: string;
166
- }
167
- export interface GetStyleInspirationToolInput {
168
- url: string;
169
- }
170
- export interface GetBuildOutputToolInput {
171
- }
172
- export interface DevServerControlInput {
173
- restart?: boolean | null;
174
- get_logs?: boolean | null;
175
- set_proxy_port?: number | null;
176
- set_dev_command?: string | null;
177
- set_and_run_setup_command?: string | null;
178
- set_env_variable?: [string, string] | null;
179
- }
180
- export interface DevServerLogsInput {
181
- }
182
- export interface DevServerRestartInput {
183
- }
184
- export interface BashToolInput {
185
- command?: string | null;
186
- timeout?: number | null;
187
- description?: string | null;
188
- restart?: boolean | null;
189
- }
190
- export interface PowerShellToolInput {
191
- command?: string | null;
192
- timeout?: number | null;
193
- description?: string | null;
194
- restart?: boolean | null;
195
- }
196
- export interface WebSearchToolInput {
197
- query: string;
198
- }
199
- export interface WriteFileInput {
200
- title: string;
201
- /**
202
- * Path of the file. Accepts a path relative to the project working directory,
203
- * an absolute path, or a tilde path (e.g. `~/.builder/...`). User-level Builder
204
- * state under `~/.builder/**` is allowed by default; other absolute paths
205
- * require an explicit ACL policy.
206
- */
207
- file_path: string;
208
- content: string;
209
- }
210
- export interface SearchReplaceInput {
211
- title: string;
212
- /**
213
- * Path of the file. Accepts a path relative to the project working directory,
214
- * an absolute path, or a tilde path (e.g. `~/.builder/...`). User-level Builder
215
- * state under `~/.builder/**` is allowed by default; other absolute paths
216
- * require an explicit ACL policy.
217
- */
218
- file_path: string;
219
- old_str: string;
220
- new_str: string;
221
- replace_all?: boolean;
222
- apply_with_error?: boolean;
223
- }
224
- export interface MultiSearchReplaceInput {
225
- title: string;
226
- /**
227
- * Path of the file. Accepts a path relative to the project working directory,
228
- * an absolute path, or a tilde path (e.g. `~/.builder/...`). User-level Builder
229
- * state under `~/.builder/**` is allowed by default; other absolute paths
230
- * require an explicit ACL policy.
231
- */
232
- file_path: string;
233
- edits: {
234
- old_str: string;
235
- new_str: string;
236
- replace_all?: boolean;
237
- }[];
238
- apply_with_error?: boolean | null;
239
- }
240
- export interface FindMediaToolInput {
241
- query: string;
242
- type: "image" | "video";
243
- orientation?: "landscape" | "portrait" | "square" | null;
244
- hex_color?: string | null;
245
- }
246
- export interface MediaToolInput {
247
- query: string;
248
- type: "image" | "video" | "gen-image";
249
- orientation?: "landscape" | "portrait" | "square" | null;
250
- hex_color?: string | null;
251
- /** Reference image URLs for AI image generation (only used with type: "gen-image") */
252
- input_image_urls?: string[] | null;
253
- }
254
- export interface MemoryToolInput {
255
- content: string;
256
- when: string;
257
- /** Glob pattern for file-based memory retrieval. Should be specific (e.g., "src/components/Button.tsx") rather than broad (e.g., "*.tsx"). */
258
- category: string;
259
- glob?: string;
260
- importance?: number;
261
- glob_auto_include?: boolean;
262
- }
263
- export interface SearchMemoriesToolInput {
264
- query: string;
265
- limit?: number;
266
- minSimilarity?: number;
267
- }
268
- export interface ScoreMemoriesToolInput {
269
- outcome: "worked" | "failed" | "partial" | "unknown";
270
- memory_scores: Record<string, "worked" | "failed" | "partial" | "unknown">;
271
- }
272
- export interface AskUserQuestion {
273
- question: string;
274
- header: string;
275
- options: {
276
- label: string;
277
- description: string;
278
- }[];
279
- multiSelect?: boolean;
280
- }
281
- export interface AskUserQuestionToolInput {
282
- questions: AskUserQuestion[];
283
- answers?: Record<string, string | string[]>;
284
- }
285
- export interface AgentToolInput {
286
- description: string;
287
- prompt: string;
288
- subagent_type?: string;
289
- resume?: string;
290
- origin_channel_id?: string;
291
- attachmentUrls?: string[];
292
- }
293
- export interface RevertToolInput {
294
- checkpoint_id: string;
295
- }
296
- export interface TodoReadToolInput {
297
- }
298
- export interface RunningAgentsToolInput {
299
- }
300
- export interface TodoWriteToolInput {
301
- mode: "replace" | "patch";
302
- todos: {
303
- content: string;
304
- status: "pending" | "in_progress" | "completed";
305
- id: string;
306
- }[];
307
- }
140
+ export declare const CodeGenFrameworkSchema: z.ZodEnum<{
141
+ html: "html";
142
+ react: "react";
143
+ mitosis: "mitosis";
144
+ "react-native": "react-native";
145
+ angular: "angular";
146
+ vue: "vue";
147
+ svelte: "svelte";
148
+ qwik: "qwik";
149
+ solid: "solid";
150
+ marko: "marko";
151
+ swiftui: "swiftui";
152
+ "jetpack-compose": "jetpack-compose";
153
+ flutter: "flutter";
154
+ }>;
155
+ export type CodeGenFramework = z.infer<typeof CodeGenFrameworkSchema>;
156
+ export declare const CodeGenStyleLibrarySchema: z.ZodEnum<{
157
+ "react-native": "react-native";
158
+ tailwind: "tailwind";
159
+ "tailwind-precise": "tailwind-precise";
160
+ emotion: "emotion";
161
+ "styled-components": "styled-components";
162
+ "styled-jsx": "styled-jsx";
163
+ }>;
164
+ export type CodeGenStyleLibrary = z.infer<typeof CodeGenStyleLibrarySchema>;
165
+ export declare const CompletionStopReasonSchema: z.ZodNullable<z.ZodEnum<{
166
+ error: "error";
167
+ tool_use: "tool_use";
168
+ aborted: "aborted";
169
+ max_tokens: "max_tokens";
170
+ stop_sequence: "stop_sequence";
171
+ end_turn: "end_turn";
172
+ content_filter: "content_filter";
173
+ pause_turn: "pause_turn";
174
+ refusal: "refusal";
175
+ compaction: "compaction";
176
+ model_context_window_exceeded: "model_context_window_exceeded";
177
+ }>>;
178
+ export type CompletionStopReason = z.infer<typeof CompletionStopReasonSchema>;
179
+ export declare const FILE_PATH_DESCRIPTION = "The path of the file. Accepts a path relative to the project working directory, an absolute path (`/Users/.../skill.md`), or a tilde path (`~/.builder/skills/.../SKILL.md`). User-level Builder state under `~/.builder/**` is allowed by default for plugin operations; other absolute paths require an explicit ACL policy.";
180
+ export declare const ReadToolInputSchema: z.ZodObject<{
181
+ file_path: z.ZodString;
182
+ offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
183
+ limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
184
+ }, z.core.$strip>;
185
+ export type ReadToolInput = z.infer<typeof ReadToolInputSchema>;
186
+ export declare const GlobSearchToolInputSchema: z.ZodObject<{
187
+ pattern: z.ZodString;
188
+ }, z.core.$strip>;
189
+ export type GlobSearchToolInput = z.infer<typeof GlobSearchToolInputSchema>;
190
+ export declare const GrepSearchToolInputSchema: z.ZodObject<{
191
+ query: z.ZodString;
192
+ include_glob: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
+ exclude_glob: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
+ case_sensitive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
195
+ }, z.core.$strip>;
196
+ export type GrepSearchToolInput = z.infer<typeof GrepSearchToolInputSchema>;
197
+ export declare const SkillToolInputSchema: z.ZodObject<{
198
+ skill: z.ZodString;
199
+ args: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
+ }, z.core.$strip>;
201
+ export type SkillToolInput = z.infer<typeof SkillToolInputSchema>;
202
+ export declare const GetRuleToolInputSchema: z.ZodObject<{
203
+ name: z.ZodString;
204
+ }, z.core.$strip>;
205
+ export type GetRuleToolInput = z.infer<typeof GetRuleToolInputSchema>;
206
+ export declare const GetStyleInspirationToolInputSchema: z.ZodObject<{
207
+ url: z.ZodString;
208
+ }, z.core.$strip>;
209
+ export type GetStyleInspirationToolInput = z.infer<typeof GetStyleInspirationToolInputSchema>;
210
+ export declare const GetBuildOutputToolInputSchema: z.ZodObject<{}, z.core.$strip>;
211
+ export type GetBuildOutputToolInput = z.infer<typeof GetBuildOutputToolInputSchema>;
212
+ export declare const DevServerControlInputSchema: z.ZodObject<{
213
+ restart: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
214
+ set_dev_command: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
+ set_proxy_port: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
216
+ get_logs: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
217
+ set_env_variable: z.ZodOptional<z.ZodNullable<z.ZodTuple<[z.ZodString, z.ZodString], null>>>;
218
+ set_and_run_setup_command: z.ZodOptional<z.ZodNullable<z.ZodString>>;
219
+ }, z.core.$strip>;
220
+ export type DevServerControlInput = z.infer<typeof DevServerControlInputSchema>;
221
+ export declare const DevServerLogsInputSchema: z.ZodObject<{}, z.core.$strip>;
222
+ export type DevServerLogsInput = z.infer<typeof DevServerLogsInputSchema>;
223
+ export declare const DevServerRestartInputSchema: z.ZodObject<{}, z.core.$strip>;
224
+ export type DevServerRestartInput = z.infer<typeof DevServerRestartInputSchema>;
225
+ export declare const BashToolInputSchema: z.ZodObject<{
226
+ description: z.ZodString;
227
+ command: z.ZodString;
228
+ timeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
229
+ }, z.core.$strip>;
230
+ export type BashToolInput = z.infer<typeof BashToolInputSchema>;
231
+ export declare const PowerShellToolInputSchema: z.ZodObject<{
232
+ command: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
+ timeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
234
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
235
+ }, z.core.$strip>;
236
+ export type PowerShellToolInput = z.infer<typeof PowerShellToolInputSchema>;
237
+ export declare const WebSearchToolInputSchema: z.ZodObject<{
238
+ query: z.ZodString;
239
+ }, z.core.$strip>;
240
+ export type WebSearchToolInput = z.infer<typeof WebSearchToolInputSchema>;
241
+ export declare const WriteFileInputSchema: z.ZodObject<{
242
+ title: z.ZodString;
243
+ file_path: z.ZodString;
244
+ content: z.ZodString;
245
+ }, z.core.$strip>;
246
+ export type WriteFileInput = z.infer<typeof WriteFileInputSchema>;
247
+ export declare const SearchReplaceInputSchema: z.ZodObject<{
248
+ title: z.ZodString;
249
+ file_path: z.ZodString;
250
+ old_str: z.ZodString;
251
+ new_str: z.ZodString;
252
+ replace_all: z.ZodOptional<z.ZodBoolean>;
253
+ apply_with_error: z.ZodOptional<z.ZodBoolean>;
254
+ }, z.core.$strip>;
255
+ export type SearchReplaceInput = z.infer<typeof SearchReplaceInputSchema>;
256
+ export declare const MultiSearchReplaceInputSchema: z.ZodObject<{
257
+ title: z.ZodString;
258
+ file_path: z.ZodString;
259
+ edits: z.ZodArray<z.ZodObject<{
260
+ old_str: z.ZodString;
261
+ new_str: z.ZodString;
262
+ replace_all: z.ZodOptional<z.ZodBoolean>;
263
+ }, z.core.$strip>>;
264
+ apply_with_error: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
265
+ }, z.core.$strip>;
266
+ export type MultiSearchReplaceInput = z.infer<typeof MultiSearchReplaceInputSchema>;
267
+ export declare const FindMediaToolInputSchema: z.ZodObject<{
268
+ query: z.ZodString;
269
+ type: z.ZodEnum<{
270
+ video: "video";
271
+ image: "image";
272
+ }>;
273
+ orientation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
274
+ landscape: "landscape";
275
+ portrait: "portrait";
276
+ square: "square";
277
+ }>>>;
278
+ hex_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
279
+ }, z.core.$strip>;
280
+ export type FindMediaToolInput = z.infer<typeof FindMediaToolInputSchema>;
281
+ export declare const MediaToolInputSchema: z.ZodObject<{
282
+ query: z.ZodString;
283
+ type: z.ZodEnum<{
284
+ video: "video";
285
+ image: "image";
286
+ "gen-image": "gen-image";
287
+ }>;
288
+ orientation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
289
+ landscape: "landscape";
290
+ portrait: "portrait";
291
+ square: "square";
292
+ }>>>;
293
+ hex_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
294
+ input_image_urls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
295
+ }, z.core.$strip>;
296
+ export type MediaToolInput = z.infer<typeof MediaToolInputSchema>;
297
+ export declare const MemoryToolInputSchema: z.ZodObject<{
298
+ content: z.ZodString;
299
+ when: z.ZodString;
300
+ category: z.ZodUnion<readonly [z.ZodLiteral<"architecture">, z.ZodLiteral<"data-and-sync">, z.ZodLiteral<"patterns-and-standards">, z.ZodLiteral<"coupling-and-duplication">, z.ZodLiteral<"ui-and-ux-contracts">, z.ZodLiteral<"concurrency-and-lifecycle">, z.ZodLiteral<"invariants">, z.ZodLiteral<"security-and-trust">, z.ZodLiteral<"gotchas">, z.ZodLiteral<"constraints-and-limits">, z.ZodLiteral<"rationale-and-history">]>;
301
+ glob: z.ZodOptional<z.ZodString>;
302
+ importance: z.ZodOptional<z.ZodNumber>;
303
+ glob_auto_include: z.ZodOptional<z.ZodBoolean>;
304
+ }, z.core.$strip>;
305
+ export type MemoryToolInput = z.infer<typeof MemoryToolInputSchema>;
306
+ export declare const SearchMemoriesToolInputSchema: z.ZodObject<{
307
+ query: z.ZodString;
308
+ limit: z.ZodOptional<z.ZodNumber>;
309
+ minSimilarity: z.ZodOptional<z.ZodNumber>;
310
+ }, z.core.$strip>;
311
+ export type SearchMemoriesToolInput = z.infer<typeof SearchMemoriesToolInputSchema>;
312
+ export declare const ScoreMemoriesToolInputSchema: z.ZodObject<{
313
+ outcome: z.ZodEnum<{
314
+ unknown: "unknown";
315
+ failed: "failed";
316
+ worked: "worked";
317
+ partial: "partial";
318
+ }>;
319
+ memory_scores: z.ZodRecord<z.ZodString, z.ZodEnum<{
320
+ unknown: "unknown";
321
+ failed: "failed";
322
+ worked: "worked";
323
+ partial: "partial";
324
+ }>>;
325
+ }, z.core.$strip>;
326
+ export type ScoreMemoriesToolInput = z.infer<typeof ScoreMemoriesToolInputSchema>;
327
+ /**
328
+ * Reusable `{ label, description }` option shape used by AskUserQuestion,
329
+ * ExitToolInput, ProposedConfig, ProposeConfigParams, etc.
330
+ */
331
+ export declare const LabelOptionSchema: z.ZodObject<{
332
+ label: z.ZodString;
333
+ description: z.ZodString;
334
+ }, z.core.$strip>;
335
+ export type LabelOption = z.infer<typeof LabelOptionSchema>;
336
+ export declare const AskUserQuestionOptionSchema: z.ZodObject<{
337
+ label: z.ZodString;
338
+ description: z.ZodString;
339
+ preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
340
+ }, z.core.$strict>;
341
+ export type AskUserQuestionOption = z.infer<typeof AskUserQuestionOptionSchema>;
342
+ export declare const AskUserQuestionSchema: z.ZodObject<{
343
+ question: z.ZodString;
344
+ header: z.ZodString;
345
+ options: z.ZodArray<z.ZodObject<{
346
+ label: z.ZodString;
347
+ description: z.ZodString;
348
+ preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
+ }, z.core.$strict>>;
350
+ multiSelect: z.ZodOptional<z.ZodBoolean>;
351
+ }, z.core.$strict>;
352
+ export type AskUserQuestion = z.infer<typeof AskUserQuestionSchema>;
353
+ export declare const AskUserQuestionToolInputSchema: z.ZodObject<{
354
+ questions: z.ZodArray<z.ZodObject<{
355
+ question: z.ZodString;
356
+ header: z.ZodString;
357
+ options: z.ZodArray<z.ZodObject<{
358
+ label: z.ZodString;
359
+ description: z.ZodString;
360
+ preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
361
+ }, z.core.$strict>>;
362
+ multiSelect: z.ZodOptional<z.ZodBoolean>;
363
+ }, z.core.$strict>>;
364
+ answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
365
+ }, z.core.$strict>;
366
+ export type AskUserQuestionToolInput = z.infer<typeof AskUserQuestionToolInputSchema>;
367
+ export declare const AgentToolInputSchema: z.ZodObject<{
368
+ description: z.ZodString;
369
+ prompt: z.ZodString;
370
+ subagent_type: z.ZodOptional<z.ZodString>;
371
+ resume: z.ZodOptional<z.ZodString>;
372
+ origin_channel_id: z.ZodOptional<z.ZodString>;
373
+ attachmentUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
374
+ }, z.core.$strip>;
375
+ export type AgentToolInput = z.infer<typeof AgentToolInputSchema>;
376
+ export declare const RevertToolInputSchema: z.ZodObject<{
377
+ checkpoint_id: z.ZodString;
378
+ }, z.core.$strip>;
379
+ export type RevertToolInput = z.infer<typeof RevertToolInputSchema>;
380
+ export declare const TodoReadToolInputSchema: z.ZodObject<{}, z.core.$strip>;
381
+ export type TodoReadToolInput = z.infer<typeof TodoReadToolInputSchema>;
382
+ export declare const RunningAgentsToolInputSchema: z.ZodObject<{}, z.core.$strip>;
383
+ export type RunningAgentsToolInput = z.infer<typeof RunningAgentsToolInputSchema>;
384
+ export declare const TodoWriteToolInputSchema: z.ZodObject<{
385
+ mode: z.ZodEnum<{
386
+ replace: "replace";
387
+ patch: "patch";
388
+ }>;
389
+ todos: z.ZodArray<z.ZodObject<{
390
+ content: z.ZodString;
391
+ status: z.ZodEnum<{
392
+ pending: "pending";
393
+ in_progress: "in_progress";
394
+ completed: "completed";
395
+ }>;
396
+ id: z.ZodString;
397
+ }, z.core.$strip>>;
398
+ }, z.core.$strip>;
399
+ export type TodoWriteToolInput = z.infer<typeof TodoWriteToolInputSchema>;
308
400
  export type TaskStatus = "pending" | "in_progress" | "completed";
309
- export interface TaskCreateToolInput {
310
- subject: string;
311
- description: string;
312
- metadata?: Record<string, unknown>;
313
- }
314
- export interface TaskUpdateToolInput {
315
- taskId: string;
316
- subject?: string;
317
- description?: string;
318
- status?: TaskStatus | "deleted";
319
- owner?: string;
320
- addBlocks?: string[];
321
- addBlockedBy?: string[];
322
- metadata?: Record<string, unknown>;
323
- }
324
- export interface TaskListToolInput {
325
- }
326
- export interface BuilderEditToolInput {
327
- filePath: string;
328
- old_str: string;
329
- new_str: string;
330
- }
331
- export interface GetScreenshotToolInput {
332
- href?: string;
333
- selector?: string;
334
- width?: number;
335
- height?: number;
336
- }
337
- export interface NavigatePreviewToolInput {
338
- href: string;
339
- }
340
- export interface WebFetchToolInput {
341
- url: string;
342
- prompt?: string;
343
- include_styles?: boolean;
344
- }
345
- export interface ExplorationMetadataToolInput {
346
- category?: "reusable_knowledge" | "one_off" | "bad_quality";
347
- gif_id?: string;
348
- timeline_id?: string;
349
- recording_id?: string;
350
- important_files: {
351
- file_path: string;
352
- relevance?: "high" | "medium" | "low";
353
- offset?: number;
354
- limit?: number;
355
- }[];
356
- }
357
- export interface EnterPlanModeToolInput {
358
- }
359
- export interface ExitPlanModeToolInput {
360
- plan: string;
361
- handled?: boolean;
362
- }
363
- export interface ReadMcpResourceToolInput {
364
- uri: string;
365
- serverName?: string;
366
- }
367
- export interface RecordFrameToolInput {
368
- title: string;
369
- frame: "last-image";
370
- category?: TimelineEventCategory;
371
- description?: string;
372
- }
373
- export type TestOutcome = "succeeded" | "couldnt_verify" | "failed" | "other";
374
- export interface ReportTestOutcomeToolInput {
375
- outcome: TestOutcome;
376
- summary: string;
377
- details?: string;
378
- test_case_id?: string;
379
- evidence_frame_count?: number;
380
- failure_category?: TestCaseFailureCategory;
381
- failure_detail?: string;
382
- console_errors?: string;
383
- network_failures?: string;
384
- steps_attempted?: string;
385
- urls_tested?: string[];
386
- }
387
- export type TestCaseFailureCategory = "env_issue" | "creds_missing" | "needs_user_input" | "server_not_ready" | "feature_not_reachable" | "timeout" | "assertion_failed" | "unexpected_error" | "not_applicable" | "escalated";
388
- export type TimelineEventCategory = "navigation" | "interaction" | "assertion" | "error" | "milestone" | "code-change" | "observation";
401
+ export declare const TaskCreateToolInputSchema: z.ZodObject<{
402
+ subject: z.ZodString;
403
+ description: z.ZodString;
404
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
405
+ }, z.core.$strip>;
406
+ export type TaskCreateToolInput = z.infer<typeof TaskCreateToolInputSchema>;
407
+ export declare const TaskUpdateToolInputSchema: z.ZodObject<{
408
+ taskId: z.ZodString;
409
+ subject: z.ZodOptional<z.ZodString>;
410
+ description: z.ZodOptional<z.ZodString>;
411
+ status: z.ZodOptional<z.ZodEnum<{
412
+ pending: "pending";
413
+ in_progress: "in_progress";
414
+ completed: "completed";
415
+ deleted: "deleted";
416
+ }>>;
417
+ owner: z.ZodOptional<z.ZodString>;
418
+ addBlocks: z.ZodOptional<z.ZodArray<z.ZodString>>;
419
+ addBlockedBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
420
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
421
+ }, z.core.$strip>;
422
+ export type TaskUpdateToolInput = z.infer<typeof TaskUpdateToolInputSchema>;
423
+ export declare const TaskListToolInputSchema: z.ZodObject<{}, z.core.$strip>;
424
+ export type TaskListToolInput = z.infer<typeof TaskListToolInputSchema>;
425
+ export declare const BuilderEditToolInputSchema: z.ZodObject<{
426
+ filePath: z.ZodString;
427
+ old_str: z.ZodString;
428
+ new_str: z.ZodString;
429
+ }, z.core.$strip>;
430
+ export type BuilderEditToolInput = z.infer<typeof BuilderEditToolInputSchema>;
431
+ export declare const GetScreenshotToolInputSchema: z.ZodObject<{
432
+ href: z.ZodOptional<z.ZodString>;
433
+ selector: z.ZodOptional<z.ZodString>;
434
+ width: z.ZodOptional<z.ZodNumber>;
435
+ height: z.ZodOptional<z.ZodNumber>;
436
+ }, z.core.$strip>;
437
+ export type GetScreenshotToolInput = z.infer<typeof GetScreenshotToolInputSchema>;
438
+ export declare const NavigatePreviewToolInputSchema: z.ZodObject<{
439
+ href: z.ZodString;
440
+ }, z.core.$strip>;
441
+ export type NavigatePreviewToolInput = z.infer<typeof NavigatePreviewToolInputSchema>;
442
+ export declare const WebFetchToolInputSchema: z.ZodObject<{
443
+ url: z.ZodString;
444
+ prompt: z.ZodOptional<z.ZodString>;
445
+ include_styles: z.ZodOptional<z.ZodBoolean>;
446
+ }, z.core.$strip>;
447
+ export type WebFetchToolInput = z.infer<typeof WebFetchToolInputSchema>;
448
+ export declare const ExplorationMetadataToolInputSchema: z.ZodObject<{
449
+ category: z.ZodOptional<z.ZodEnum<{
450
+ reusable_knowledge: "reusable_knowledge";
451
+ one_off: "one_off";
452
+ bad_quality: "bad_quality";
453
+ }>>;
454
+ gif_id: z.ZodOptional<z.ZodString>;
455
+ timeline_id: z.ZodOptional<z.ZodString>;
456
+ recording_id: z.ZodOptional<z.ZodString>;
457
+ important_files: z.ZodArray<z.ZodObject<{
458
+ file_path: z.ZodString;
459
+ relevance: z.ZodOptional<z.ZodEnum<{
460
+ low: "low";
461
+ medium: "medium";
462
+ high: "high";
463
+ }>>;
464
+ offset: z.ZodOptional<z.ZodNumber>;
465
+ limit: z.ZodOptional<z.ZodNumber>;
466
+ }, z.core.$strip>>;
467
+ }, z.core.$strip>;
468
+ export type ExplorationMetadataToolInput = z.infer<typeof ExplorationMetadataToolInputSchema>;
469
+ export declare const EnterPlanModeToolInputSchema: z.ZodObject<{}, z.core.$strip>;
470
+ export type EnterPlanModeToolInput = z.infer<typeof EnterPlanModeToolInputSchema>;
471
+ export declare const ExitPlanModeToolInputSchema: z.ZodObject<{
472
+ plan: z.ZodString;
473
+ handled: z.ZodOptional<z.ZodBoolean>;
474
+ }, z.core.$strip>;
475
+ export type ExitPlanModeToolInput = z.infer<typeof ExitPlanModeToolInputSchema>;
476
+ export declare const ReadMcpResourceToolInputSchema: z.ZodObject<{
477
+ uri: z.ZodString;
478
+ serverName: z.ZodOptional<z.ZodString>;
479
+ }, z.core.$strip>;
480
+ export type ReadMcpResourceToolInput = z.infer<typeof ReadMcpResourceToolInputSchema>;
481
+ export declare const TimelineEventCategorySchema: z.ZodEnum<{
482
+ error: "error";
483
+ navigation: "navigation";
484
+ interaction: "interaction";
485
+ assertion: "assertion";
486
+ milestone: "milestone";
487
+ "code-change": "code-change";
488
+ observation: "observation";
489
+ }>;
490
+ export type TimelineEventCategory = z.infer<typeof TimelineEventCategorySchema>;
491
+ export declare const TestOutcomeSchema: z.ZodEnum<{
492
+ other: "other";
493
+ failed: "failed";
494
+ succeeded: "succeeded";
495
+ couldnt_verify: "couldnt_verify";
496
+ }>;
497
+ export type TestOutcome = z.infer<typeof TestOutcomeSchema>;
498
+ export declare const TestCaseFailureCategorySchema: z.ZodEnum<{
499
+ timeout: "timeout";
500
+ env_issue: "env_issue";
501
+ creds_missing: "creds_missing";
502
+ needs_user_input: "needs_user_input";
503
+ server_not_ready: "server_not_ready";
504
+ feature_not_reachable: "feature_not_reachable";
505
+ assertion_failed: "assertion_failed";
506
+ unexpected_error: "unexpected_error";
507
+ not_applicable: "not_applicable";
508
+ escalated: "escalated";
509
+ }>;
510
+ export type TestCaseFailureCategory = z.infer<typeof TestCaseFailureCategorySchema>;
511
+ export declare const RecordFrameToolInputSchema: z.ZodObject<{
512
+ title: z.ZodString;
513
+ frame: z.ZodLiteral<"last-image">;
514
+ category: z.ZodOptional<z.ZodEnum<{
515
+ error: "error";
516
+ navigation: "navigation";
517
+ interaction: "interaction";
518
+ assertion: "assertion";
519
+ milestone: "milestone";
520
+ "code-change": "code-change";
521
+ observation: "observation";
522
+ }>>;
523
+ description: z.ZodOptional<z.ZodString>;
524
+ }, z.core.$strip>;
525
+ export type RecordFrameToolInput = z.infer<typeof RecordFrameToolInputSchema>;
526
+ export declare const ReportTestOutcomeToolInputSchema: z.ZodObject<{
527
+ outcome: z.ZodEnum<{
528
+ other: "other";
529
+ failed: "failed";
530
+ succeeded: "succeeded";
531
+ couldnt_verify: "couldnt_verify";
532
+ }>;
533
+ summary: z.ZodString;
534
+ details: z.ZodOptional<z.ZodString>;
535
+ test_case_id: z.ZodOptional<z.ZodString>;
536
+ evidence_frame_count: z.ZodOptional<z.ZodNumber>;
537
+ failure_category: z.ZodOptional<z.ZodEnum<{
538
+ timeout: "timeout";
539
+ env_issue: "env_issue";
540
+ creds_missing: "creds_missing";
541
+ needs_user_input: "needs_user_input";
542
+ server_not_ready: "server_not_ready";
543
+ feature_not_reachable: "feature_not_reachable";
544
+ assertion_failed: "assertion_failed";
545
+ unexpected_error: "unexpected_error";
546
+ not_applicable: "not_applicable";
547
+ escalated: "escalated";
548
+ }>>;
549
+ failure_detail: z.ZodOptional<z.ZodString>;
550
+ console_errors: z.ZodOptional<z.ZodString>;
551
+ network_failures: z.ZodOptional<z.ZodString>;
552
+ steps_attempted: z.ZodOptional<z.ZodString>;
553
+ urls_tested: z.ZodOptional<z.ZodArray<z.ZodString>>;
554
+ }, z.core.$strip>;
555
+ export type ReportTestOutcomeToolInput = z.infer<typeof ReportTestOutcomeToolInputSchema>;
389
556
  export interface TimelineEvent {
390
557
  id: number;
391
558
  timestamp: number;
@@ -461,489 +628,1360 @@ export interface TimelineSubmissionMetadata {
461
628
  /**
462
629
  * Configuration values proposed by the setup analyzer agent
463
630
  */
464
- export interface SetupAnalysisValues {
465
- projectOverview: {
466
- framework: string | null;
467
- packageManager: "npm" | "yarn" | "pnpm" | "bun" | null;
468
- isMonorepo: boolean;
469
- detectedLanguage: "typescript" | "javascript" | null;
470
- };
471
- rootDirectory: {
472
- path: string;
473
- reason: string;
474
- } | null;
475
- installCommand: {
476
- command: string;
477
- reason: string;
478
- } | null;
479
- runtimeDependencies: Array<{
480
- tool: string;
481
- version: string;
482
- source: string;
631
+ export declare const SetupAnalysisValuesSchema: z.ZodObject<{
632
+ projectOverview: z.ZodObject<{
633
+ framework: z.ZodNullable<z.ZodString>;
634
+ packageManager: z.ZodNullable<z.ZodEnum<{
635
+ npm: "npm";
636
+ yarn: "yarn";
637
+ pnpm: "pnpm";
638
+ bun: "bun";
639
+ }>>;
640
+ isMonorepo: z.ZodBoolean;
641
+ detectedLanguage: z.ZodNullable<z.ZodEnum<{
642
+ typescript: "typescript";
643
+ javascript: "javascript";
644
+ }>>;
645
+ }, z.core.$strip>;
646
+ rootDirectory: z.ZodNullable<z.ZodObject<{
647
+ path: z.ZodString;
648
+ reason: z.ZodString;
649
+ }, z.core.$strip>>;
650
+ installCommand: z.ZodNullable<z.ZodObject<{
651
+ command: z.ZodString;
652
+ reason: z.ZodString;
653
+ }, z.core.$strip>>;
654
+ runtimeDependencies: z.ZodArray<z.ZodObject<{
655
+ tool: z.ZodString;
656
+ version: z.ZodString;
657
+ source: z.ZodString;
658
+ }, z.core.$strip>>;
659
+ devServer: z.ZodNullable<z.ZodObject<{
660
+ command: z.ZodString;
661
+ url: z.ZodString;
662
+ port: z.ZodNumber;
663
+ reason: z.ZodString;
664
+ }, z.core.$strip>>;
665
+ environmentVariables: z.ZodArray<z.ZodObject<{
666
+ key: z.ZodString;
667
+ description: z.ZodString;
668
+ isRequired: z.ZodBoolean;
669
+ isSecret: z.ZodBoolean;
670
+ defaultValue: z.ZodNullable<z.ZodString>;
671
+ source: z.ZodString;
672
+ }, z.core.$strip>>;
673
+ validationScript: z.ZodNullable<z.ZodObject<{
674
+ command: z.ZodString;
675
+ reason: z.ZodString;
676
+ }, z.core.$strip>>;
677
+ npmrcContents: z.ZodNullable<z.ZodString>;
678
+ hasHotModuleReload: z.ZodNullable<z.ZodObject<{
679
+ value: z.ZodBoolean;
680
+ reason: z.ZodString;
681
+ }, z.core.$strip>>;
682
+ }, z.core.$strip>;
683
+ export type SetupAnalysisValues = z.infer<typeof SetupAnalysisValuesSchema>;
684
+ export declare const ProposeConfigToolInputSchema: z.ZodObject<{
685
+ config: z.ZodObject<{
686
+ projectOverview: z.ZodObject<{
687
+ framework: z.ZodNullable<z.ZodString>;
688
+ packageManager: z.ZodNullable<z.ZodEnum<{
689
+ npm: "npm";
690
+ yarn: "yarn";
691
+ pnpm: "pnpm";
692
+ bun: "bun";
693
+ }>>;
694
+ isMonorepo: z.ZodBoolean;
695
+ detectedLanguage: z.ZodNullable<z.ZodEnum<{
696
+ typescript: "typescript";
697
+ javascript: "javascript";
698
+ }>>;
699
+ }, z.core.$strip>;
700
+ rootDirectory: z.ZodNullable<z.ZodObject<{
701
+ path: z.ZodString;
702
+ reason: z.ZodString;
703
+ }, z.core.$strip>>;
704
+ installCommand: z.ZodNullable<z.ZodObject<{
705
+ command: z.ZodString;
706
+ reason: z.ZodString;
707
+ }, z.core.$strip>>;
708
+ runtimeDependencies: z.ZodArray<z.ZodObject<{
709
+ tool: z.ZodString;
710
+ version: z.ZodString;
711
+ source: z.ZodString;
712
+ }, z.core.$strip>>;
713
+ devServer: z.ZodNullable<z.ZodObject<{
714
+ command: z.ZodString;
715
+ url: z.ZodString;
716
+ port: z.ZodNumber;
717
+ reason: z.ZodString;
718
+ }, z.core.$strip>>;
719
+ environmentVariables: z.ZodArray<z.ZodObject<{
720
+ key: z.ZodString;
721
+ description: z.ZodString;
722
+ isRequired: z.ZodBoolean;
723
+ isSecret: z.ZodBoolean;
724
+ defaultValue: z.ZodNullable<z.ZodString>;
725
+ source: z.ZodString;
726
+ }, z.core.$strip>>;
727
+ validationScript: z.ZodNullable<z.ZodObject<{
728
+ command: z.ZodString;
729
+ reason: z.ZodString;
730
+ }, z.core.$strip>>;
731
+ npmrcContents: z.ZodNullable<z.ZodString>;
732
+ hasHotModuleReload: z.ZodNullable<z.ZodObject<{
733
+ value: z.ZodBoolean;
734
+ reason: z.ZodString;
735
+ }, z.core.$strip>>;
736
+ }, z.core.$strip>;
737
+ message: z.ZodOptional<z.ZodString>;
738
+ }, z.core.$strip>;
739
+ export type ProposeConfigToolInput = z.infer<typeof ProposeConfigToolInputSchema>;
740
+ export declare const SetupValueFieldSchema: z.ZodEnum<{
741
+ installCommand: "installCommand";
742
+ devServer: "devServer";
743
+ environmentVariables: "environmentVariables";
744
+ validationScript: "validationScript";
745
+ }>;
746
+ export type SetupValueField = z.infer<typeof SetupValueFieldSchema>;
747
+ export declare const UpdateSetupValueToolInputSchema: z.ZodObject<{
748
+ field: z.ZodEnum<{
749
+ installCommand: "installCommand";
750
+ devServer: "devServer";
751
+ environmentVariables: "environmentVariables";
752
+ validationScript: "validationScript";
483
753
  }>;
484
- devServer: {
485
- command: string;
486
- url: string;
487
- port: number;
488
- reason: string;
489
- } | null;
490
- environmentVariables: Array<{
491
- key: string;
492
- description: string;
493
- isRequired: boolean;
494
- isSecret: boolean;
495
- defaultValue: string | null;
496
- source: string;
754
+ value: z.ZodObject<{
755
+ command: z.ZodOptional<z.ZodString>;
756
+ url: z.ZodOptional<z.ZodString>;
757
+ port: z.ZodOptional<z.ZodNumber>;
758
+ environmentVariables: z.ZodOptional<z.ZodArray<z.ZodObject<{
759
+ key: z.ZodString;
760
+ description: z.ZodOptional<z.ZodString>;
761
+ isRequired: z.ZodOptional<z.ZodBoolean>;
762
+ isSecret: z.ZodOptional<z.ZodBoolean>;
763
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
764
+ }, z.core.$strip>>>;
765
+ }, z.core.$strip>;
766
+ reason: z.ZodString;
767
+ }, z.core.$strip>;
768
+ export type UpdateSetupValueToolInput = z.infer<typeof UpdateSetupValueToolInputSchema>;
769
+ export declare const ExitStateSchema: z.ZodEnum<{
770
+ verified: "verified";
771
+ "no-frontend": "no-frontend";
772
+ "empty-project": "empty-project";
773
+ "mobile-project": "mobile-project";
774
+ "user-question": "user-question";
775
+ "code-change-required": "code-change-required";
776
+ other: "other";
777
+ started: "started";
778
+ failed: "failed";
779
+ }>;
780
+ export type ExitState = z.infer<typeof ExitStateSchema>;
781
+ export declare const ExitToolInputSchema: z.ZodObject<{
782
+ state: z.ZodEnum<{
783
+ verified: "verified";
784
+ "no-frontend": "no-frontend";
785
+ "empty-project": "empty-project";
786
+ "mobile-project": "mobile-project";
787
+ "user-question": "user-question";
788
+ "code-change-required": "code-change-required";
789
+ other: "other";
790
+ started: "started";
791
+ failed: "failed";
497
792
  }>;
498
- validationScript: {
499
- command: string;
500
- reason: string;
501
- } | null;
502
- npmrcContents: string | null;
503
- hasHotModuleReload: {
504
- value: boolean;
505
- reason: string;
506
- } | null;
507
- }
508
- export interface ProposeConfigToolInput {
509
- config: SetupAnalysisValues;
510
- message?: string;
511
- }
512
- export type SetupValueField = "installCommand" | "devServer" | "validationScript" | "environmentVariables";
513
- export interface UpdateSetupValueToolInput {
514
- field: SetupValueField;
515
- value: {
516
- command?: string;
517
- url?: string;
518
- port?: number;
519
- environmentVariables?: Array<{
520
- key: string;
521
- description?: string;
522
- isRequired?: boolean;
523
- isSecret?: boolean;
524
- defaultValue?: string | null;
793
+ summary: z.ZodString;
794
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
795
+ question: z.ZodString;
796
+ context: z.ZodString;
797
+ header: z.ZodOptional<z.ZodString>;
798
+ type: z.ZodOptional<z.ZodEnum<{
799
+ text: "text";
800
+ select: "select";
801
+ "multi-select": "multi-select";
802
+ }>>;
803
+ placeholder: z.ZodOptional<z.ZodString>;
804
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
805
+ label: z.ZodString;
806
+ description: z.ZodString;
807
+ }, z.core.$strip>>>;
808
+ }, z.core.$strip>>>;
809
+ isMonorepo: z.ZodOptional<z.ZodBoolean>;
810
+ isMicrofrontend: z.ZodOptional<z.ZodBoolean>;
811
+ setupNeedsCredentials: z.ZodOptional<z.ZodBoolean>;
812
+ devServerNeedsCredentials: z.ZodOptional<z.ZodBoolean>;
813
+ needsVPN: z.ZodOptional<z.ZodBoolean>;
814
+ autoReload: z.ZodOptional<z.ZodBoolean>;
815
+ usesBuilderCms: z.ZodOptional<z.ZodBoolean>;
816
+ stack: z.ZodOptional<z.ZodArray<z.ZodString>>;
817
+ projectDescription: z.ZodOptional<z.ZodString>;
818
+ }, z.core.$strip>;
819
+ export type ExitToolInput = z.infer<typeof ExitToolInputSchema>;
820
+ export declare const EnvironmentVariableSchema: z.ZodObject<{
821
+ key: z.ZodString;
822
+ value: z.ZodString;
823
+ isSecret: z.ZodBoolean;
824
+ placeholder: z.ZodOptional<z.ZodBoolean>;
825
+ explanation: z.ZodOptional<z.ZodString>;
826
+ }, z.core.$strip>;
827
+ export type EnvironmentVariable = z.infer<typeof EnvironmentVariableSchema>;
828
+ export declare const ProposedConfigSchema: z.ZodObject<{
829
+ id: z.ZodString;
830
+ projectId: z.ZodString;
831
+ branchName: z.ZodString;
832
+ createdAt: z.ZodNumber;
833
+ updatedAt: z.ZodNumber;
834
+ ownerId: z.ZodString;
835
+ state: z.ZodEnum<{
836
+ verified: "verified";
837
+ "no-frontend": "no-frontend";
838
+ "empty-project": "empty-project";
839
+ "mobile-project": "mobile-project";
840
+ "user-question": "user-question";
841
+ "code-change-required": "code-change-required";
842
+ other: "other";
843
+ started: "started";
844
+ failed: "failed";
845
+ }>;
846
+ summary: z.ZodString;
847
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
848
+ question: z.ZodString;
849
+ context: z.ZodString;
850
+ whatYouTried: z.ZodOptional<z.ZodString>;
851
+ header: z.ZodOptional<z.ZodString>;
852
+ type: z.ZodOptional<z.ZodEnum<{
853
+ text: "text";
854
+ select: "select";
855
+ "multi-select": "multi-select";
856
+ }>>;
857
+ placeholder: z.ZodOptional<z.ZodString>;
858
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
859
+ label: z.ZodString;
860
+ description: z.ZodString;
861
+ }, z.core.$strip>>>;
862
+ }, z.core.$strip>>>;
863
+ configuration: z.ZodObject<{
864
+ setupCommand: z.ZodObject<{
865
+ value: z.ZodOptional<z.ZodString>;
866
+ verified: z.ZodBoolean;
867
+ elapsed: z.ZodOptional<z.ZodNumber>;
868
+ }, z.core.$strip>;
869
+ setupDependencies: z.ZodObject<{
870
+ value: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
871
+ key: z.ZodString;
872
+ type: z.ZodLiteral<"mise">;
873
+ tool: z.ZodString;
874
+ version: z.ZodOptional<z.ZodString>;
875
+ }, z.core.$strip>, z.ZodObject<{
876
+ key: z.ZodString;
877
+ type: z.ZodLiteral<"script">;
878
+ name: z.ZodString;
879
+ script: z.ZodString;
880
+ }, z.core.$strip>], "type">>>;
881
+ verified: z.ZodBoolean;
882
+ }, z.core.$strip>;
883
+ devCommand: z.ZodObject<{
884
+ value: z.ZodOptional<z.ZodString>;
885
+ verified: z.ZodBoolean;
886
+ elapsed: z.ZodOptional<z.ZodNumber>;
887
+ }, z.core.$strip>;
888
+ devServer: z.ZodObject<{
889
+ value: z.ZodOptional<z.ZodString>;
890
+ verified: z.ZodBoolean;
891
+ elapsed: z.ZodOptional<z.ZodNumber>;
892
+ }, z.core.$strip>;
893
+ validateCommand: z.ZodObject<{
894
+ value: z.ZodOptional<z.ZodString>;
895
+ verified: z.ZodBoolean;
896
+ elapsed: z.ZodOptional<z.ZodNumber>;
897
+ }, z.core.$strip>;
898
+ appOrigin: z.ZodObject<{
899
+ value: z.ZodOptional<z.ZodString>;
900
+ verified: z.ZodBoolean;
901
+ }, z.core.$strip>;
902
+ defaultOrigin: z.ZodObject<{
903
+ value: z.ZodOptional<z.ZodString>;
904
+ verified: z.ZodBoolean;
905
+ }, z.core.$strip>;
906
+ environmentVariables: z.ZodObject<{
907
+ value: z.ZodOptional<z.ZodArray<z.ZodObject<{
908
+ key: z.ZodString;
909
+ value: z.ZodString;
910
+ isSecret: z.ZodBoolean;
911
+ placeholder: z.ZodOptional<z.ZodBoolean>;
912
+ explanation: z.ZodOptional<z.ZodString>;
913
+ }, z.core.$strip>>>;
914
+ verified: z.ZodBoolean;
915
+ }, z.core.$strip>;
916
+ autoDetectDevServer: z.ZodObject<{
917
+ value: z.ZodOptional<z.ZodBoolean>;
918
+ verified: z.ZodBoolean;
919
+ }, z.core.$strip>;
920
+ autoDetectDevServerPatterns: z.ZodObject<{
921
+ value: z.ZodOptional<z.ZodArray<z.ZodString>>;
922
+ verified: z.ZodBoolean;
923
+ }, z.core.$strip>;
924
+ hasHotModuleReload: z.ZodObject<{
925
+ value: z.ZodOptional<z.ZodBoolean>;
926
+ reason: z.ZodOptional<z.ZodString>;
927
+ }, z.core.$strip>;
928
+ }, z.core.$strip>;
929
+ sessionId: z.ZodString;
930
+ orchestratorStates: z.ZodObject<{
931
+ setupState: z.ZodEnum<{
932
+ "not-installed": "not-installed";
933
+ installing: "installing";
934
+ installed: "installed";
935
+ "install-failed": "install-failed";
936
+ "install-aborted": "install-aborted";
525
937
  }>;
526
- };
527
- reason: string;
528
- }
529
- export type ExitState = "verified" | "no-frontend" | "empty-project" | "mobile-project" | "user-question" | "code-change-required" | "other" | "started" | "failed";
530
- export interface ExitToolInput {
531
- state: ExitState;
532
- summary: string;
533
- questions?: Array<{
534
- question: string;
535
- context: string;
536
- header?: string;
537
- /** Question type: "select" for single-choice, "multi-select" for multiple choices, "text" for free-form input. Defaults to "select" if options are present, "text" if not. */
538
- type?: "select" | "multi-select" | "text";
539
- /** Placeholder text for text-type questions (e.g., "Enter your API key", "https://localhost:3000") */
540
- placeholder?: string;
541
- options?: Array<{
542
- label: string;
543
- description: string;
938
+ devState: z.ZodEnum<{
939
+ failed: "failed";
940
+ running: "running";
941
+ stopped: "stopped";
942
+ starting: "starting";
943
+ unset: "unset";
544
944
  }>;
545
- }>;
546
- isMonorepo?: boolean;
547
- isMicrofrontend?: boolean;
548
- setupNeedsCredentials?: boolean;
549
- devServerNeedsCredentials?: boolean;
550
- needsVPN?: boolean;
551
- autoReload?: boolean;
552
- usesBuilderCms?: boolean;
553
- /** Technologies used by the connected application (e.g. ["React", "Next.js", "Postgres", "Drizzle"]) */
554
- stack?: string[];
555
- /** A human-readable description of what the project is about (not tech specs), used by fusion to route requests to the right project */
556
- projectDescription?: string;
557
- }
558
- /**
559
- * Configuration proposed by the configuration agent, stored in Firebase
560
- */
561
- export interface ProposedConfig {
562
- id: string;
563
- projectId: string;
564
- branchName: string;
565
- createdAt: number;
566
- updatedAt: number;
567
- ownerId: string;
568
- state: ExitState;
569
- summary: string;
570
- questions?: Array<{
571
- question: string;
572
- context: string;
573
- whatYouTried?: string;
574
- header?: string;
575
- /** Question type: "select" for single-choice, "multi-select" for multiple choices, "text" for free-form input */
576
- type?: "select" | "multi-select" | "text";
577
- /** Placeholder text for text-type questions */
578
- placeholder?: string;
579
- options?: Array<{
580
- label: string;
581
- description: string;
945
+ httpServerState: z.ZodEnum<{
946
+ stopped: "stopped";
947
+ "ok-2xx": "ok-2xx";
948
+ "error-4xx": "error-4xx";
949
+ "error-5xx": "error-5xx";
950
+ "error-fetch": "error-fetch";
951
+ connecting: "connecting";
582
952
  }>;
583
- }>;
584
- configuration: {
585
- setupCommand: {
586
- value: string | undefined;
587
- verified: boolean;
588
- elapsed?: number;
589
- };
590
- setupDependencies: {
591
- value: SetupDependency[] | undefined;
592
- verified: boolean;
593
- };
594
- devCommand: {
595
- value: string | undefined;
596
- verified: boolean;
597
- elapsed?: number;
598
- };
599
- devServer: {
600
- value: string | undefined;
601
- verified: boolean;
602
- elapsed?: number;
603
- };
604
- validateCommand: {
605
- value: string | undefined;
606
- verified: boolean;
607
- elapsed?: number;
608
- };
609
- appOrigin: {
610
- value: string | undefined;
611
- verified: boolean;
612
- };
613
- defaultOrigin: {
614
- value: string | undefined;
615
- verified: boolean;
616
- };
617
- environmentVariables: {
618
- value: EnvironmentVariable[] | undefined;
619
- verified: boolean;
620
- };
621
- autoDetectDevServer: {
622
- value: boolean | undefined;
623
- verified: boolean;
624
- };
625
- autoDetectDevServerPatterns: {
626
- value: string[] | undefined;
627
- verified: boolean;
628
- };
629
- hasHotModuleReload: {
630
- value: boolean | undefined;
631
- reason: string | undefined;
632
- };
633
- };
634
- sessionId: string;
635
- orchestratorStates: {
636
- setupState: SetupCommandState;
637
- devState: DevCommandState;
638
- httpServerState: HttpServerState;
639
- validateState: ValidateCommandState;
640
- };
641
- peakDiskUsage?: number;
642
- peakMemoryUsage?: number;
643
- screenshotUrl?: string;
644
- isMonorepo?: boolean;
645
- isMicrofrontend?: boolean;
646
- setupNeedsCredentials?: boolean;
647
- devServerNeedsCredentials?: boolean;
648
- projectDescription?: string;
649
- cost?: number;
650
- durationMs?: number;
651
- needsVPN?: boolean;
652
- autoReload?: boolean;
653
- usesBuilderCms?: boolean;
654
- stack?: string[];
655
- }
953
+ validateState: z.ZodEnum<{
954
+ success: "success";
955
+ running: "running";
956
+ stopped: "stopped";
957
+ unset: "unset";
958
+ failure: "failure";
959
+ }>;
960
+ }, z.core.$strip>;
961
+ peakDiskUsage: z.ZodOptional<z.ZodNumber>;
962
+ peakMemoryUsage: z.ZodOptional<z.ZodNumber>;
963
+ screenshotUrl: z.ZodOptional<z.ZodString>;
964
+ isMonorepo: z.ZodOptional<z.ZodBoolean>;
965
+ isMicrofrontend: z.ZodOptional<z.ZodBoolean>;
966
+ setupNeedsCredentials: z.ZodOptional<z.ZodBoolean>;
967
+ devServerNeedsCredentials: z.ZodOptional<z.ZodBoolean>;
968
+ projectDescription: z.ZodOptional<z.ZodString>;
969
+ cost: z.ZodOptional<z.ZodNumber>;
970
+ durationMs: z.ZodOptional<z.ZodNumber>;
971
+ needsVPN: z.ZodOptional<z.ZodBoolean>;
972
+ autoReload: z.ZodOptional<z.ZodBoolean>;
973
+ usesBuilderCms: z.ZodOptional<z.ZodBoolean>;
974
+ stack: z.ZodOptional<z.ZodArray<z.ZodString>>;
975
+ }, z.core.$strip>;
976
+ export type ProposedConfig = z.infer<typeof ProposedConfigSchema>;
656
977
  /**
657
978
  * Parameters for proposing a configuration to the backend
658
979
  */
659
- export interface ProposeConfigParams {
660
- projectId: string;
661
- branchName: string;
662
- state: ExitState;
663
- summary: string;
664
- questions?: Array<{
665
- question: string;
666
- context: string;
667
- whatYouTried?: string;
668
- header?: string;
669
- options?: Array<{
670
- label: string;
671
- description: string;
672
- }>;
673
- multiSelect?: boolean;
980
+ export declare const ProposeConfigParamsSchema: z.ZodObject<{
981
+ projectId: z.ZodString;
982
+ branchName: z.ZodString;
983
+ state: z.ZodEnum<{
984
+ verified: "verified";
985
+ "no-frontend": "no-frontend";
986
+ "empty-project": "empty-project";
987
+ "mobile-project": "mobile-project";
988
+ "user-question": "user-question";
989
+ "code-change-required": "code-change-required";
990
+ other: "other";
991
+ started: "started";
992
+ failed: "failed";
674
993
  }>;
675
- configuration: ProposedConfig["configuration"];
676
- sessionId: string;
677
- orchestratorStates: ProposedConfig["orchestratorStates"];
678
- peakDiskUsage?: number;
679
- peakMemoryUsage?: number;
680
- screenshotUrl?: string;
681
- isMonorepo?: boolean;
682
- isMicrofrontend?: boolean;
683
- setupNeedsCredentials?: boolean;
684
- devServerNeedsCredentials?: boolean;
685
- needsVPN?: boolean;
686
- projectDescription?: string;
687
- autoReload?: boolean;
688
- usesBuilderCms?: boolean;
689
- stack?: string[];
690
- }
691
- export interface VerifySetupCommandToolInput {
692
- command: string;
693
- dependencies?: Array<{
694
- tool: string;
695
- version?: string;
994
+ summary: z.ZodString;
995
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
996
+ question: z.ZodString;
997
+ context: z.ZodString;
998
+ whatYouTried: z.ZodOptional<z.ZodString>;
999
+ header: z.ZodOptional<z.ZodString>;
1000
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1001
+ label: z.ZodString;
1002
+ description: z.ZodString;
1003
+ }, z.core.$strip>>>;
1004
+ multiSelect: z.ZodOptional<z.ZodBoolean>;
1005
+ }, z.core.$strip>>>;
1006
+ configuration: z.ZodObject<{
1007
+ setupCommand: z.ZodObject<{
1008
+ value: z.ZodOptional<z.ZodString>;
1009
+ verified: z.ZodBoolean;
1010
+ elapsed: z.ZodOptional<z.ZodNumber>;
1011
+ }, z.core.$strip>;
1012
+ setupDependencies: z.ZodObject<{
1013
+ value: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1014
+ key: z.ZodString;
1015
+ type: z.ZodLiteral<"mise">;
1016
+ tool: z.ZodString;
1017
+ version: z.ZodOptional<z.ZodString>;
1018
+ }, z.core.$strip>, z.ZodObject<{
1019
+ key: z.ZodString;
1020
+ type: z.ZodLiteral<"script">;
1021
+ name: z.ZodString;
1022
+ script: z.ZodString;
1023
+ }, z.core.$strip>], "type">>>;
1024
+ verified: z.ZodBoolean;
1025
+ }, z.core.$strip>;
1026
+ devCommand: z.ZodObject<{
1027
+ value: z.ZodOptional<z.ZodString>;
1028
+ verified: z.ZodBoolean;
1029
+ elapsed: z.ZodOptional<z.ZodNumber>;
1030
+ }, z.core.$strip>;
1031
+ devServer: z.ZodObject<{
1032
+ value: z.ZodOptional<z.ZodString>;
1033
+ verified: z.ZodBoolean;
1034
+ elapsed: z.ZodOptional<z.ZodNumber>;
1035
+ }, z.core.$strip>;
1036
+ validateCommand: z.ZodObject<{
1037
+ value: z.ZodOptional<z.ZodString>;
1038
+ verified: z.ZodBoolean;
1039
+ elapsed: z.ZodOptional<z.ZodNumber>;
1040
+ }, z.core.$strip>;
1041
+ appOrigin: z.ZodObject<{
1042
+ value: z.ZodOptional<z.ZodString>;
1043
+ verified: z.ZodBoolean;
1044
+ }, z.core.$strip>;
1045
+ defaultOrigin: z.ZodObject<{
1046
+ value: z.ZodOptional<z.ZodString>;
1047
+ verified: z.ZodBoolean;
1048
+ }, z.core.$strip>;
1049
+ environmentVariables: z.ZodObject<{
1050
+ value: z.ZodOptional<z.ZodArray<z.ZodObject<{
1051
+ key: z.ZodString;
1052
+ value: z.ZodString;
1053
+ isSecret: z.ZodBoolean;
1054
+ placeholder: z.ZodOptional<z.ZodBoolean>;
1055
+ explanation: z.ZodOptional<z.ZodString>;
1056
+ }, z.core.$strip>>>;
1057
+ verified: z.ZodBoolean;
1058
+ }, z.core.$strip>;
1059
+ autoDetectDevServer: z.ZodObject<{
1060
+ value: z.ZodOptional<z.ZodBoolean>;
1061
+ verified: z.ZodBoolean;
1062
+ }, z.core.$strip>;
1063
+ autoDetectDevServerPatterns: z.ZodObject<{
1064
+ value: z.ZodOptional<z.ZodArray<z.ZodString>>;
1065
+ verified: z.ZodBoolean;
1066
+ }, z.core.$strip>;
1067
+ hasHotModuleReload: z.ZodObject<{
1068
+ value: z.ZodOptional<z.ZodBoolean>;
1069
+ reason: z.ZodOptional<z.ZodString>;
1070
+ }, z.core.$strip>;
1071
+ }, z.core.$strip>;
1072
+ sessionId: z.ZodString;
1073
+ orchestratorStates: z.ZodObject<{
1074
+ setupState: z.ZodEnum<{
1075
+ "not-installed": "not-installed";
1076
+ installing: "installing";
1077
+ installed: "installed";
1078
+ "install-failed": "install-failed";
1079
+ "install-aborted": "install-aborted";
1080
+ }>;
1081
+ devState: z.ZodEnum<{
1082
+ failed: "failed";
1083
+ running: "running";
1084
+ stopped: "stopped";
1085
+ starting: "starting";
1086
+ unset: "unset";
1087
+ }>;
1088
+ httpServerState: z.ZodEnum<{
1089
+ stopped: "stopped";
1090
+ "ok-2xx": "ok-2xx";
1091
+ "error-4xx": "error-4xx";
1092
+ "error-5xx": "error-5xx";
1093
+ "error-fetch": "error-fetch";
1094
+ connecting: "connecting";
1095
+ }>;
1096
+ validateState: z.ZodEnum<{
1097
+ success: "success";
1098
+ running: "running";
1099
+ stopped: "stopped";
1100
+ unset: "unset";
1101
+ failure: "failure";
1102
+ }>;
1103
+ }, z.core.$strip>;
1104
+ peakDiskUsage: z.ZodOptional<z.ZodNumber>;
1105
+ peakMemoryUsage: z.ZodOptional<z.ZodNumber>;
1106
+ screenshotUrl: z.ZodOptional<z.ZodString>;
1107
+ isMonorepo: z.ZodOptional<z.ZodBoolean>;
1108
+ isMicrofrontend: z.ZodOptional<z.ZodBoolean>;
1109
+ setupNeedsCredentials: z.ZodOptional<z.ZodBoolean>;
1110
+ devServerNeedsCredentials: z.ZodOptional<z.ZodBoolean>;
1111
+ needsVPN: z.ZodOptional<z.ZodBoolean>;
1112
+ projectDescription: z.ZodOptional<z.ZodString>;
1113
+ autoReload: z.ZodOptional<z.ZodBoolean>;
1114
+ usesBuilderCms: z.ZodOptional<z.ZodBoolean>;
1115
+ stack: z.ZodOptional<z.ZodArray<z.ZodString>>;
1116
+ }, z.core.$strip>;
1117
+ export type ProposeConfigParams = z.infer<typeof ProposeConfigParamsSchema>;
1118
+ export declare const VerifySetupCommandToolInputSchema: z.ZodObject<{
1119
+ command: z.ZodString;
1120
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
1121
+ tool: z.ZodString;
1122
+ version: z.ZodOptional<z.ZodString>;
1123
+ }, z.core.$strip>>>;
1124
+ }, z.core.$strip>;
1125
+ export type VerifySetupCommandToolInput = z.infer<typeof VerifySetupCommandToolInputSchema>;
1126
+ export declare const VerifyDevCommandToolInputSchema: z.ZodObject<{
1127
+ command: z.ZodString;
1128
+ }, z.core.$strip>;
1129
+ export type VerifyDevCommandToolInput = z.infer<typeof VerifyDevCommandToolInputSchema>;
1130
+ export declare const VerifyDevServerToolInputSchema: z.ZodObject<{
1131
+ autoDetect: z.ZodBoolean;
1132
+ autoDetectPattern: z.ZodOptional<z.ZodString>;
1133
+ hardcodedUrl: z.ZodOptional<z.ZodString>;
1134
+ appOrigin: z.ZodString;
1135
+ defaultOrigin: z.ZodOptional<z.ZodString>;
1136
+ }, z.core.$strip>;
1137
+ export type VerifyDevServerToolInput = z.infer<typeof VerifyDevServerToolInputSchema>;
1138
+ export declare const VerifyValidateCommandToolInputSchema: z.ZodObject<{
1139
+ command: z.ZodString;
1140
+ timeout: z.ZodOptional<z.ZodNumber>;
1141
+ }, z.core.$strip>;
1142
+ export type VerifyValidateCommandToolInput = z.infer<typeof VerifyValidateCommandToolInputSchema>;
1143
+ export declare const ProposeEnvVariableToolInputSchema: z.ZodObject<{
1144
+ key: z.ZodString;
1145
+ value: z.ZodString;
1146
+ secret: z.ZodOptional<z.ZodBoolean>;
1147
+ }, z.core.$strip>;
1148
+ export type ProposeEnvVariableToolInput = z.infer<typeof ProposeEnvVariableToolInputSchema>;
1149
+ export declare const SetEnvVariableToolInputSchema: z.ZodObject<{
1150
+ key: z.ZodString;
1151
+ value: z.ZodString;
1152
+ secret: z.ZodOptional<z.ZodBoolean>;
1153
+ placeholder: z.ZodOptional<z.ZodBoolean>;
1154
+ explanation: z.ZodOptional<z.ZodString>;
1155
+ }, z.core.$strip>;
1156
+ export type SetEnvVariableToolInput = z.infer<typeof SetEnvVariableToolInputSchema>;
1157
+ export declare const SetFileOverrideToolInputSchema: z.ZodObject<{
1158
+ path: z.ZodString;
1159
+ content: z.ZodOptional<z.ZodString>;
1160
+ base64: z.ZodOptional<z.ZodString>;
1161
+ }, z.core.$strip>;
1162
+ export type SetFileOverrideToolInput = z.infer<typeof SetFileOverrideToolInputSchema>;
1163
+ export declare const SendMessageToolInputSchema: z.ZodObject<{
1164
+ channel_id: z.ZodString;
1165
+ markdown: z.ZodString;
1166
+ status: z.ZodEnum<{
1167
+ question: "question";
1168
+ starting: "starting";
1169
+ "will-follow-up": "will-follow-up";
1170
+ "done:success": "done:success";
1171
+ "done:error": "done:error";
696
1172
  }>;
697
- }
698
- export interface VerifyDevCommandToolInput {
699
- command: string;
700
- }
701
- export interface VerifyDevServerToolInput {
702
- autoDetect: boolean;
703
- autoDetectPattern?: string;
704
- hardcodedUrl?: string;
705
- appOrigin: string;
706
- defaultOrigin?: string;
707
- }
708
- export interface VerifyValidateCommandToolInput {
709
- command: string;
710
- timeout?: number;
711
- }
712
- export interface ProposeEnvVariableToolInput {
713
- key: string;
714
- value: string;
715
- secret?: boolean;
716
- }
717
- export interface SetEnvVariableToolInput {
718
- key: string;
719
- value: string;
720
- secret?: boolean;
721
- placeholder?: boolean;
722
- explanation?: string;
723
- }
724
- export interface SetFileOverrideToolInput {
725
- /**
726
- * Path where the file should be written. Supports absolute paths
727
- * ("/app/.npmrc"), tilde ("~/.npmrc") and paths relative to the project
728
- * working directory ("./.npmrc"). Use this tool ONLY for configuration-only
729
- * files that should NOT be committed to the repo (e.g. `.npmrc` with auth
730
- * tokens, machine-local env files) — never to patch source code or fix
731
- * software issues.
732
- */
733
- path: string;
734
- /**
735
- * Plain text content to write to the file. Mutually exclusive with `base64`.
736
- */
737
- content?: string;
738
- /**
739
- * Base64-encoded binary content to write to the file. Mutually exclusive
740
- * with `content`. Use only when the file is genuinely binary.
741
- */
742
- base64?: string;
743
- }
744
- export interface SendMessageToolInput {
745
- channel_id: string;
746
- markdown: string;
747
- status: "starting" | "question" | "will-follow-up" | "done:success" | "done:error";
748
- loading_message?: string;
749
- /**
750
- * When true, send the response as a voice message using text-to-speech.
751
- * Only supported for Telegram channels.
752
- *
753
- * Only set to true when the user's original message was a voice/audio
754
- * message (look for "[Voice message transcription]" or "[Audio" markers),
755
- * the channel is Telegram, and the response is short and conversational
756
- * with no URLs, code, lists, or other content that doesn't translate to audio.
757
- * Default to false (text) for all text-originated messages.
758
- */
759
- voice_response?: boolean;
760
- /**
761
- * Builder.io user ID this message is from / should be attributed to. Only
762
- * allowed when channel_id is 'builder/branch/{project_id}/{branch_name}'.
763
- * When set, the message is delivered to the target branch as coming from
764
- * this user (role 'user') instead of from the agent. Use whenever the
765
- * message represents user feedback/intent that should be assigned to
766
- * someone — even if it was composed, summarized, or merged from multiple
767
- * people.
768
- */
769
- from_user_id?: string;
770
- }
771
- export interface SpawnBranchToolInput {
772
- project_id: string;
773
- message: string;
774
- builder_user_id?: string;
775
- hidden?: boolean;
776
- origin_channel_id?: string;
777
- session_mode?: "normal" | "planning" | "deep-research";
778
- model?: "auto" | "opus" | "sonnet" | "haiku";
779
- attachment_urls?: string[];
780
- git_base_branch?: string;
781
- auto_archive_on_idle?: boolean;
782
- }
783
- export interface CreateProjectToolInput {
784
- repo_url: string;
785
- name?: string;
786
- builder_user_id: string;
787
- origin_channel_id?: string;
788
- initial_message?: string;
789
- }
790
- export interface GetAvailableReposToolInput {
791
- }
792
- export interface ReadBranchToolInput {
793
- project_id: string;
794
- branch_name: string;
795
- }
796
- export interface ArchiveBranchToolInput {
797
- project_id: string;
798
- branch_name: string;
799
- builder_user_id: string;
800
- reason?: string;
801
- }
802
- export type ReviewSeverity = "high" | "medium" | "low";
1173
+ loading_message: z.ZodOptional<z.ZodString>;
1174
+ voice_response: z.ZodOptional<z.ZodBoolean>;
1175
+ from_user_id: z.ZodOptional<z.ZodString>;
1176
+ }, z.core.$strip>;
1177
+ export type SendMessageToolInput = z.infer<typeof SendMessageToolInputSchema>;
1178
+ export declare const SpawnBranchToolInputSchema: z.ZodObject<{
1179
+ project_id: z.ZodString;
1180
+ message: z.ZodString;
1181
+ builder_user_id: z.ZodOptional<z.ZodString>;
1182
+ hidden: z.ZodOptional<z.ZodBoolean>;
1183
+ origin_channel_id: z.ZodOptional<z.ZodString>;
1184
+ session_mode: z.ZodOptional<z.ZodEnum<{
1185
+ normal: "normal";
1186
+ planning: "planning";
1187
+ "deep-research": "deep-research";
1188
+ }>>;
1189
+ model: z.ZodOptional<z.ZodEnum<{
1190
+ auto: "auto";
1191
+ opus: "opus";
1192
+ sonnet: "sonnet";
1193
+ haiku: "haiku";
1194
+ }>>;
1195
+ attachment_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
1196
+ git_base_branch: z.ZodOptional<z.ZodString>;
1197
+ auto_archive_on_idle: z.ZodOptional<z.ZodBoolean>;
1198
+ }, z.core.$strip>;
1199
+ export type SpawnBranchToolInput = z.infer<typeof SpawnBranchToolInputSchema>;
1200
+ export declare const CreateProjectToolInputSchema: z.ZodObject<{
1201
+ repo_url: z.ZodString;
1202
+ name: z.ZodOptional<z.ZodString>;
1203
+ builder_user_id: z.ZodString;
1204
+ origin_channel_id: z.ZodOptional<z.ZodString>;
1205
+ initial_message: z.ZodOptional<z.ZodString>;
1206
+ }, z.core.$strip>;
1207
+ export type CreateProjectToolInput = z.infer<typeof CreateProjectToolInputSchema>;
1208
+ export declare const GetAvailableReposToolInputSchema: z.ZodObject<{}, z.core.$strip>;
1209
+ export type GetAvailableReposToolInput = z.infer<typeof GetAvailableReposToolInputSchema>;
1210
+ export declare const ReadBranchToolInputSchema: z.ZodObject<{
1211
+ project_id: z.ZodString;
1212
+ branch_name: z.ZodString;
1213
+ }, z.core.$strip>;
1214
+ export type ReadBranchToolInput = z.infer<typeof ReadBranchToolInputSchema>;
1215
+ export declare const ArchiveBranchToolInputSchema: z.ZodObject<{
1216
+ project_id: z.ZodString;
1217
+ branch_name: z.ZodString;
1218
+ builder_user_id: z.ZodString;
1219
+ reason: z.ZodOptional<z.ZodString>;
1220
+ }, z.core.$strip>;
1221
+ export type ArchiveBranchToolInput = z.infer<typeof ArchiveBranchToolInputSchema>;
1222
+ export declare const ReviewSeveritySchema: z.ZodEnum<{
1223
+ low: "low";
1224
+ medium: "medium";
1225
+ high: "high";
1226
+ }>;
1227
+ export type ReviewSeverity = z.infer<typeof ReviewSeveritySchema>;
803
1228
  /** Comment for PR review - used by SubmitPRReview */
804
- export interface PRReviewComment {
805
- file_path: string;
806
- line: number;
807
- start_line?: number;
808
- /**
809
- * Diff side. RIGHT (default) = NEW file (added/context). LEFT = OLD file
810
- * (removed/context). Use LEFT only when commenting on deleted code with
811
- * no semantically related new-side anchor.
812
- */
813
- side?: "LEFT" | "RIGHT";
814
- title: string;
815
- body: string;
816
- severity: ReviewSeverity;
817
- debugInfo?: string;
818
- gif_id?: string;
819
- }
820
- export type ReviewVerdict = "looks_good" | "has_findings" | "blocking";
1229
+ export declare const PRReviewCommentSchema: z.ZodObject<{
1230
+ file_path: z.ZodString;
1231
+ line: z.ZodNumber;
1232
+ start_line: z.ZodOptional<z.ZodNumber>;
1233
+ side: z.ZodOptional<z.ZodEnum<{
1234
+ LEFT: "LEFT";
1235
+ RIGHT: "RIGHT";
1236
+ }>>;
1237
+ title: z.ZodString;
1238
+ body: z.ZodString;
1239
+ severity: z.ZodEnum<{
1240
+ low: "low";
1241
+ medium: "medium";
1242
+ high: "high";
1243
+ }>;
1244
+ debugInfo: z.ZodOptional<z.ZodString>;
1245
+ gif_id: z.ZodOptional<z.ZodString>;
1246
+ }, z.core.$strip>;
1247
+ export type PRReviewComment = z.infer<typeof PRReviewCommentSchema>;
1248
+ export declare const ReviewVerdictSchema: z.ZodEnum<{
1249
+ looks_good: "looks_good";
1250
+ has_findings: "has_findings";
1251
+ blocking: "blocking";
1252
+ }>;
1253
+ export type ReviewVerdict = z.infer<typeof ReviewVerdictSchema>;
821
1254
  /** SubmitPRReview - Fast code review without recording */
822
- export interface SubmitPRReviewToolInput {
823
- summary: string;
824
- comments?: PRReviewComment[];
825
- risk_level?: ReviewSeverity;
826
- verdict?: ReviewVerdict;
827
- }
828
- export interface ResolveQACommentsToolInput {
829
- thread_node_ids: string[];
830
- }
831
- export interface ReportUIIssueToolInput {
832
- title: string;
833
- description: string;
834
- debugInfo?: string;
835
- }
836
- export interface ReportIssueToolInput {
837
- file_path: string;
838
- line: number;
839
- start_line?: number;
840
- title: string;
841
- severity: ReviewSeverity;
842
- body: string;
843
- }
844
- export interface CodeGenToolMap {
845
- Read: ReadToolInput;
846
- Write: WriteFileInput;
847
- Edit: SearchReplaceInput;
848
- ReadRule: GetRuleToolInput;
849
- Skill: SkillToolInput;
850
- GetStyleInspiration: GetStyleInspirationToolInput;
851
- GetScreenshot: GetScreenshotToolInput;
852
- NavigatePreview: NavigatePreviewToolInput;
853
- MultiEdit: MultiSearchReplaceInput;
854
- FindMedia: FindMediaToolInput;
855
- Media: MediaToolInput;
856
- AddMemory: MemoryToolInput;
857
- SearchMemories: SearchMemoriesToolInput;
858
- ScoreMemories: ScoreMemoriesToolInput;
859
- Bash: BashToolInput;
860
- PowerShell: PowerShellToolInput;
861
- WebSearch: WebSearchToolInput;
862
- AskUserQuestion: AskUserQuestionToolInput;
863
- Agent: AgentToolInput;
864
- Grep: GrepSearchToolInput;
865
- Glob: GlobSearchToolInput;
866
- DevServerControl: DevServerControlInput;
867
- DevServerLogs: DevServerLogsInput;
868
- DevServerRestart: DevServerRestartInput;
869
- Revert: RevertToolInput;
870
- TodoRead: TodoReadToolInput;
871
- TodoWrite: TodoWriteToolInput;
872
- TaskCreate: TaskCreateToolInput;
873
- TaskUpdate: TaskUpdateToolInput;
874
- TaskList: TaskListToolInput;
875
- BuilderEdit: BuilderEditToolInput;
876
- WebFetch: WebFetchToolInput;
877
- ExplorationMetadata: ExplorationMetadataToolInput;
878
- EnterPlanMode: EnterPlanModeToolInput;
879
- ExitPlanMode: ExitPlanModeToolInput;
880
- ReadMcpResource: ReadMcpResourceToolInput;
881
- RecordFrame: RecordFrameToolInput;
882
- SubmitPRReview: SubmitPRReviewToolInput;
883
- ProposeConfig: ProposeConfigToolInput;
884
- UpdateSetupValue: UpdateSetupValueToolInput;
885
- Exit: ExitToolInput;
886
- ResolveQAComments: ResolveQACommentsToolInput;
887
- GetLastBrowserTest: GetLastBrowserTestToolInput;
888
- ReportUIIssue: ReportUIIssueToolInput;
889
- ReportIssue: ReportIssueToolInput;
890
- ReportTestOutcome: ReportTestOutcomeToolInput;
891
- VerifySetupCommand: VerifySetupCommandToolInput;
892
- VerifyDevCommand: VerifyDevCommandToolInput;
893
- VerifyDevServer: VerifyDevServerToolInput;
894
- VerifyValidateCommand: VerifyValidateCommandToolInput;
895
- ProposeEnvVariable: ProposeEnvVariableToolInput;
896
- SetEnvVariable: SetEnvVariableToolInput;
897
- SetFileOverride: SetFileOverrideToolInput;
898
- SendMessage: SendMessageToolInput;
899
- SpawnBranch: SpawnBranchToolInput;
900
- CreateProject: CreateProjectToolInput;
901
- GetAvailableRepos: GetAvailableReposToolInput;
902
- ReadBranch: ReadBranchToolInput;
903
- ArchiveBranch: ArchiveBranchToolInput;
904
- RunningAgents: RunningAgentsToolInput;
905
- IDEDiagnostics: IDEDiagnosticsToolInput;
906
- EscalateToPlanner: EscalateToPlanner;
907
- PullPrototype: PullPrototypeToolInput;
908
- ConnectMCP: ConnectMCPToolInput;
909
- EnsurePR: EnsurePRToolInput;
910
- }
911
- export interface EnsurePRToolInput {
912
- project_id: string;
913
- branch_name: string;
914
- /** Builder.io user ID to attribute the PR to. Must be a member of the org. */
915
- builder_user_id?: string;
916
- /** Whether to create the PR as a draft. Defaults to false. */
917
- draft?: boolean;
918
- }
919
- export interface EscalateToPlanner {
920
- /** What's blocking execution */
921
- issue: string;
922
- /** What was tried before escalating */
923
- steps_attempted: string;
924
- /** Current browser URL */
925
- current_url: string;
926
- /** Which test case is blocked */
927
- test_case_id: string;
928
- }
929
- export interface GetLastBrowserTestToolInput {
930
- }
931
- export interface ConnectMCPToolInput {
932
- /** Human-readable name of the MCP service, e.g. "Jira", "Linear", "Sentry" */
933
- name: string;
934
- /** Remote MCP endpoint URL. When omitted, discovery is performed for the named service. */
935
- url?: string;
936
- }
937
- export type CodeGenTools = keyof CodeGenToolMap;
1255
+ export declare const SubmitPRReviewToolInputSchema: z.ZodObject<{
1256
+ summary: z.ZodString;
1257
+ comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1258
+ file_path: z.ZodString;
1259
+ line: z.ZodNumber;
1260
+ start_line: z.ZodOptional<z.ZodNumber>;
1261
+ side: z.ZodOptional<z.ZodEnum<{
1262
+ LEFT: "LEFT";
1263
+ RIGHT: "RIGHT";
1264
+ }>>;
1265
+ title: z.ZodString;
1266
+ body: z.ZodString;
1267
+ severity: z.ZodEnum<{
1268
+ low: "low";
1269
+ medium: "medium";
1270
+ high: "high";
1271
+ }>;
1272
+ debugInfo: z.ZodOptional<z.ZodString>;
1273
+ gif_id: z.ZodOptional<z.ZodString>;
1274
+ }, z.core.$strip>>>;
1275
+ risk_level: z.ZodOptional<z.ZodEnum<{
1276
+ low: "low";
1277
+ medium: "medium";
1278
+ high: "high";
1279
+ }>>;
1280
+ verdict: z.ZodOptional<z.ZodEnum<{
1281
+ looks_good: "looks_good";
1282
+ has_findings: "has_findings";
1283
+ blocking: "blocking";
1284
+ }>>;
1285
+ }, z.core.$strip>;
1286
+ export type SubmitPRReviewToolInput = z.infer<typeof SubmitPRReviewToolInputSchema>;
1287
+ export declare const ResolveQACommentsToolInputSchema: z.ZodObject<{
1288
+ thread_node_ids: z.ZodArray<z.ZodString>;
1289
+ }, z.core.$strip>;
1290
+ export type ResolveQACommentsToolInput = z.infer<typeof ResolveQACommentsToolInputSchema>;
1291
+ export declare const ReportUIIssueToolInputSchema: z.ZodObject<{
1292
+ title: z.ZodString;
1293
+ description: z.ZodString;
1294
+ debugInfo: z.ZodOptional<z.ZodString>;
1295
+ }, z.core.$strip>;
1296
+ export type ReportUIIssueToolInput = z.infer<typeof ReportUIIssueToolInputSchema>;
1297
+ export declare const ReportIssueToolInputSchema: z.ZodObject<{
1298
+ file_path: z.ZodString;
1299
+ line: z.ZodNumber;
1300
+ start_line: z.ZodOptional<z.ZodNumber>;
1301
+ title: z.ZodString;
1302
+ severity: z.ZodEnum<{
1303
+ low: "low";
1304
+ medium: "medium";
1305
+ high: "high";
1306
+ }>;
1307
+ body: z.ZodString;
1308
+ }, z.core.$strip>;
1309
+ export type ReportIssueToolInput = z.infer<typeof ReportIssueToolInputSchema>;
1310
+ export declare const EscalateToPlannerSchema: z.ZodObject<{
1311
+ issue: z.ZodString;
1312
+ steps_attempted: z.ZodString;
1313
+ current_url: z.ZodString;
1314
+ test_case_id: z.ZodString;
1315
+ }, z.core.$strip>;
1316
+ export type EscalateToPlanner = z.infer<typeof EscalateToPlannerSchema>;
1317
+ export declare const GetLastBrowserTestToolInputSchema: z.ZodObject<{}, z.core.$strip>;
1318
+ export type GetLastBrowserTestToolInput = z.infer<typeof GetLastBrowserTestToolInputSchema>;
1319
+ export declare const IDEDiagnosticsToolInputSchema: z.ZodObject<{
1320
+ file_path: z.ZodOptional<z.ZodString>;
1321
+ }, z.core.$strip>;
1322
+ export type IDEDiagnosticsToolInput = z.infer<typeof IDEDiagnosticsToolInputSchema>;
1323
+ export declare const PullPrototypeToolInputSchema: z.ZodObject<{
1324
+ url: z.ZodString;
1325
+ project_id: z.ZodOptional<z.ZodString>;
1326
+ branch_name: z.ZodOptional<z.ZodString>;
1327
+ }, z.core.$strip>;
1328
+ export type PullPrototypeToolInput = z.infer<typeof PullPrototypeToolInputSchema>;
1329
+ export declare const EnsurePRToolInputSchema: z.ZodObject<{
1330
+ project_id: z.ZodString;
1331
+ branch_name: z.ZodString;
1332
+ builder_user_id: z.ZodOptional<z.ZodString>;
1333
+ draft: z.ZodOptional<z.ZodBoolean>;
1334
+ }, z.core.$strip>;
1335
+ export type EnsurePRToolInput = z.infer<typeof EnsurePRToolInputSchema>;
1336
+ export declare const ConnectMCPToolInputSchema: z.ZodObject<{
1337
+ name: z.ZodString;
1338
+ url: z.ZodOptional<z.ZodString>;
1339
+ }, z.core.$strip>;
1340
+ export type ConnectMCPToolInput = z.infer<typeof ConnectMCPToolInputSchema>;
1341
+ export declare const CodeGenToolMapSchema: z.ZodObject<{
1342
+ Read: z.ZodObject<{
1343
+ file_path: z.ZodString;
1344
+ offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1345
+ limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1346
+ }, z.core.$strip>;
1347
+ Write: z.ZodObject<{
1348
+ title: z.ZodString;
1349
+ file_path: z.ZodString;
1350
+ content: z.ZodString;
1351
+ }, z.core.$strip>;
1352
+ Edit: z.ZodObject<{
1353
+ title: z.ZodString;
1354
+ file_path: z.ZodString;
1355
+ old_str: z.ZodString;
1356
+ new_str: z.ZodString;
1357
+ replace_all: z.ZodOptional<z.ZodBoolean>;
1358
+ apply_with_error: z.ZodOptional<z.ZodBoolean>;
1359
+ }, z.core.$strip>;
1360
+ ReadRule: z.ZodObject<{
1361
+ name: z.ZodString;
1362
+ }, z.core.$strip>;
1363
+ Skill: z.ZodObject<{
1364
+ skill: z.ZodString;
1365
+ args: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1366
+ }, z.core.$strip>;
1367
+ GetStyleInspiration: z.ZodObject<{
1368
+ url: z.ZodString;
1369
+ }, z.core.$strip>;
1370
+ GetScreenshot: z.ZodObject<{
1371
+ href: z.ZodOptional<z.ZodString>;
1372
+ selector: z.ZodOptional<z.ZodString>;
1373
+ width: z.ZodOptional<z.ZodNumber>;
1374
+ height: z.ZodOptional<z.ZodNumber>;
1375
+ }, z.core.$strip>;
1376
+ NavigatePreview: z.ZodObject<{
1377
+ href: z.ZodString;
1378
+ }, z.core.$strip>;
1379
+ MultiEdit: z.ZodObject<{
1380
+ title: z.ZodString;
1381
+ file_path: z.ZodString;
1382
+ edits: z.ZodArray<z.ZodObject<{
1383
+ old_str: z.ZodString;
1384
+ new_str: z.ZodString;
1385
+ replace_all: z.ZodOptional<z.ZodBoolean>;
1386
+ }, z.core.$strip>>;
1387
+ apply_with_error: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1388
+ }, z.core.$strip>;
1389
+ FindMedia: z.ZodObject<{
1390
+ query: z.ZodString;
1391
+ type: z.ZodEnum<{
1392
+ video: "video";
1393
+ image: "image";
1394
+ }>;
1395
+ orientation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1396
+ landscape: "landscape";
1397
+ portrait: "portrait";
1398
+ square: "square";
1399
+ }>>>;
1400
+ hex_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1401
+ }, z.core.$strip>;
1402
+ Media: z.ZodObject<{
1403
+ query: z.ZodString;
1404
+ type: z.ZodEnum<{
1405
+ video: "video";
1406
+ image: "image";
1407
+ "gen-image": "gen-image";
1408
+ }>;
1409
+ orientation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1410
+ landscape: "landscape";
1411
+ portrait: "portrait";
1412
+ square: "square";
1413
+ }>>>;
1414
+ hex_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1415
+ input_image_urls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1416
+ }, z.core.$strip>;
1417
+ AddMemory: z.ZodObject<{
1418
+ content: z.ZodString;
1419
+ when: z.ZodString;
1420
+ category: z.ZodUnion<readonly [z.ZodLiteral<"architecture">, z.ZodLiteral<"data-and-sync">, z.ZodLiteral<"patterns-and-standards">, z.ZodLiteral<"coupling-and-duplication">, z.ZodLiteral<"ui-and-ux-contracts">, z.ZodLiteral<"concurrency-and-lifecycle">, z.ZodLiteral<"invariants">, z.ZodLiteral<"security-and-trust">, z.ZodLiteral<"gotchas">, z.ZodLiteral<"constraints-and-limits">, z.ZodLiteral<"rationale-and-history">]>;
1421
+ glob: z.ZodOptional<z.ZodString>;
1422
+ importance: z.ZodOptional<z.ZodNumber>;
1423
+ glob_auto_include: z.ZodOptional<z.ZodBoolean>;
1424
+ }, z.core.$strip>;
1425
+ SearchMemories: z.ZodObject<{
1426
+ query: z.ZodString;
1427
+ limit: z.ZodOptional<z.ZodNumber>;
1428
+ minSimilarity: z.ZodOptional<z.ZodNumber>;
1429
+ }, z.core.$strip>;
1430
+ ScoreMemories: z.ZodObject<{
1431
+ outcome: z.ZodEnum<{
1432
+ unknown: "unknown";
1433
+ failed: "failed";
1434
+ worked: "worked";
1435
+ partial: "partial";
1436
+ }>;
1437
+ memory_scores: z.ZodRecord<z.ZodString, z.ZodEnum<{
1438
+ unknown: "unknown";
1439
+ failed: "failed";
1440
+ worked: "worked";
1441
+ partial: "partial";
1442
+ }>>;
1443
+ }, z.core.$strip>;
1444
+ Bash: z.ZodObject<{
1445
+ description: z.ZodString;
1446
+ command: z.ZodString;
1447
+ timeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1448
+ }, z.core.$strip>;
1449
+ PowerShell: z.ZodObject<{
1450
+ command: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1451
+ timeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1452
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1453
+ }, z.core.$strip>;
1454
+ WebSearch: z.ZodObject<{
1455
+ query: z.ZodString;
1456
+ }, z.core.$strip>;
1457
+ AskUserQuestion: z.ZodObject<{
1458
+ questions: z.ZodArray<z.ZodObject<{
1459
+ question: z.ZodString;
1460
+ header: z.ZodString;
1461
+ options: z.ZodArray<z.ZodObject<{
1462
+ label: z.ZodString;
1463
+ description: z.ZodString;
1464
+ preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1465
+ }, z.core.$strict>>;
1466
+ multiSelect: z.ZodOptional<z.ZodBoolean>;
1467
+ }, z.core.$strict>>;
1468
+ answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
1469
+ }, z.core.$strict>;
1470
+ Agent: z.ZodObject<{
1471
+ description: z.ZodString;
1472
+ prompt: z.ZodString;
1473
+ subagent_type: z.ZodOptional<z.ZodString>;
1474
+ resume: z.ZodOptional<z.ZodString>;
1475
+ origin_channel_id: z.ZodOptional<z.ZodString>;
1476
+ attachmentUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
1477
+ }, z.core.$strip>;
1478
+ Grep: z.ZodObject<{
1479
+ query: z.ZodString;
1480
+ include_glob: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1481
+ exclude_glob: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1482
+ case_sensitive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1483
+ }, z.core.$strip>;
1484
+ Glob: z.ZodObject<{
1485
+ pattern: z.ZodString;
1486
+ }, z.core.$strip>;
1487
+ DevServerControl: z.ZodObject<{
1488
+ restart: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1489
+ set_dev_command: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1490
+ set_proxy_port: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1491
+ get_logs: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1492
+ set_env_variable: z.ZodOptional<z.ZodNullable<z.ZodTuple<[z.ZodString, z.ZodString], null>>>;
1493
+ set_and_run_setup_command: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1494
+ }, z.core.$strip>;
1495
+ DevServerLogs: z.ZodObject<{}, z.core.$strip>;
1496
+ DevServerRestart: z.ZodObject<{}, z.core.$strip>;
1497
+ Revert: z.ZodObject<{
1498
+ checkpoint_id: z.ZodString;
1499
+ }, z.core.$strip>;
1500
+ TodoRead: z.ZodObject<{}, z.core.$strip>;
1501
+ TodoWrite: z.ZodObject<{
1502
+ mode: z.ZodEnum<{
1503
+ replace: "replace";
1504
+ patch: "patch";
1505
+ }>;
1506
+ todos: z.ZodArray<z.ZodObject<{
1507
+ content: z.ZodString;
1508
+ status: z.ZodEnum<{
1509
+ pending: "pending";
1510
+ in_progress: "in_progress";
1511
+ completed: "completed";
1512
+ }>;
1513
+ id: z.ZodString;
1514
+ }, z.core.$strip>>;
1515
+ }, z.core.$strip>;
1516
+ TaskCreate: z.ZodObject<{
1517
+ subject: z.ZodString;
1518
+ description: z.ZodString;
1519
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1520
+ }, z.core.$strip>;
1521
+ TaskUpdate: z.ZodObject<{
1522
+ taskId: z.ZodString;
1523
+ subject: z.ZodOptional<z.ZodString>;
1524
+ description: z.ZodOptional<z.ZodString>;
1525
+ status: z.ZodOptional<z.ZodEnum<{
1526
+ pending: "pending";
1527
+ in_progress: "in_progress";
1528
+ completed: "completed";
1529
+ deleted: "deleted";
1530
+ }>>;
1531
+ owner: z.ZodOptional<z.ZodString>;
1532
+ addBlocks: z.ZodOptional<z.ZodArray<z.ZodString>>;
1533
+ addBlockedBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
1534
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1535
+ }, z.core.$strip>;
1536
+ TaskList: z.ZodObject<{}, z.core.$strip>;
1537
+ BuilderEdit: z.ZodObject<{
1538
+ filePath: z.ZodString;
1539
+ old_str: z.ZodString;
1540
+ new_str: z.ZodString;
1541
+ }, z.core.$strip>;
1542
+ WebFetch: z.ZodObject<{
1543
+ url: z.ZodString;
1544
+ prompt: z.ZodOptional<z.ZodString>;
1545
+ include_styles: z.ZodOptional<z.ZodBoolean>;
1546
+ }, z.core.$strip>;
1547
+ ExplorationMetadata: z.ZodObject<{
1548
+ category: z.ZodOptional<z.ZodEnum<{
1549
+ reusable_knowledge: "reusable_knowledge";
1550
+ one_off: "one_off";
1551
+ bad_quality: "bad_quality";
1552
+ }>>;
1553
+ gif_id: z.ZodOptional<z.ZodString>;
1554
+ timeline_id: z.ZodOptional<z.ZodString>;
1555
+ recording_id: z.ZodOptional<z.ZodString>;
1556
+ important_files: z.ZodArray<z.ZodObject<{
1557
+ file_path: z.ZodString;
1558
+ relevance: z.ZodOptional<z.ZodEnum<{
1559
+ low: "low";
1560
+ medium: "medium";
1561
+ high: "high";
1562
+ }>>;
1563
+ offset: z.ZodOptional<z.ZodNumber>;
1564
+ limit: z.ZodOptional<z.ZodNumber>;
1565
+ }, z.core.$strip>>;
1566
+ }, z.core.$strip>;
1567
+ EnterPlanMode: z.ZodObject<{}, z.core.$strip>;
1568
+ ExitPlanMode: z.ZodObject<{
1569
+ plan: z.ZodString;
1570
+ handled: z.ZodOptional<z.ZodBoolean>;
1571
+ }, z.core.$strip>;
1572
+ ReadMcpResource: z.ZodObject<{
1573
+ uri: z.ZodString;
1574
+ serverName: z.ZodOptional<z.ZodString>;
1575
+ }, z.core.$strip>;
1576
+ RecordFrame: z.ZodObject<{
1577
+ title: z.ZodString;
1578
+ frame: z.ZodLiteral<"last-image">;
1579
+ category: z.ZodOptional<z.ZodEnum<{
1580
+ error: "error";
1581
+ navigation: "navigation";
1582
+ interaction: "interaction";
1583
+ assertion: "assertion";
1584
+ milestone: "milestone";
1585
+ "code-change": "code-change";
1586
+ observation: "observation";
1587
+ }>>;
1588
+ description: z.ZodOptional<z.ZodString>;
1589
+ }, z.core.$strip>;
1590
+ SubmitPRReview: z.ZodObject<{
1591
+ summary: z.ZodString;
1592
+ comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1593
+ file_path: z.ZodString;
1594
+ line: z.ZodNumber;
1595
+ start_line: z.ZodOptional<z.ZodNumber>;
1596
+ side: z.ZodOptional<z.ZodEnum<{
1597
+ LEFT: "LEFT";
1598
+ RIGHT: "RIGHT";
1599
+ }>>;
1600
+ title: z.ZodString;
1601
+ body: z.ZodString;
1602
+ severity: z.ZodEnum<{
1603
+ low: "low";
1604
+ medium: "medium";
1605
+ high: "high";
1606
+ }>;
1607
+ debugInfo: z.ZodOptional<z.ZodString>;
1608
+ gif_id: z.ZodOptional<z.ZodString>;
1609
+ }, z.core.$strip>>>;
1610
+ risk_level: z.ZodOptional<z.ZodEnum<{
1611
+ low: "low";
1612
+ medium: "medium";
1613
+ high: "high";
1614
+ }>>;
1615
+ verdict: z.ZodOptional<z.ZodEnum<{
1616
+ looks_good: "looks_good";
1617
+ has_findings: "has_findings";
1618
+ blocking: "blocking";
1619
+ }>>;
1620
+ }, z.core.$strip>;
1621
+ ProposeConfig: z.ZodObject<{
1622
+ config: z.ZodObject<{
1623
+ projectOverview: z.ZodObject<{
1624
+ framework: z.ZodNullable<z.ZodString>;
1625
+ packageManager: z.ZodNullable<z.ZodEnum<{
1626
+ npm: "npm";
1627
+ yarn: "yarn";
1628
+ pnpm: "pnpm";
1629
+ bun: "bun";
1630
+ }>>;
1631
+ isMonorepo: z.ZodBoolean;
1632
+ detectedLanguage: z.ZodNullable<z.ZodEnum<{
1633
+ typescript: "typescript";
1634
+ javascript: "javascript";
1635
+ }>>;
1636
+ }, z.core.$strip>;
1637
+ rootDirectory: z.ZodNullable<z.ZodObject<{
1638
+ path: z.ZodString;
1639
+ reason: z.ZodString;
1640
+ }, z.core.$strip>>;
1641
+ installCommand: z.ZodNullable<z.ZodObject<{
1642
+ command: z.ZodString;
1643
+ reason: z.ZodString;
1644
+ }, z.core.$strip>>;
1645
+ runtimeDependencies: z.ZodArray<z.ZodObject<{
1646
+ tool: z.ZodString;
1647
+ version: z.ZodString;
1648
+ source: z.ZodString;
1649
+ }, z.core.$strip>>;
1650
+ devServer: z.ZodNullable<z.ZodObject<{
1651
+ command: z.ZodString;
1652
+ url: z.ZodString;
1653
+ port: z.ZodNumber;
1654
+ reason: z.ZodString;
1655
+ }, z.core.$strip>>;
1656
+ environmentVariables: z.ZodArray<z.ZodObject<{
1657
+ key: z.ZodString;
1658
+ description: z.ZodString;
1659
+ isRequired: z.ZodBoolean;
1660
+ isSecret: z.ZodBoolean;
1661
+ defaultValue: z.ZodNullable<z.ZodString>;
1662
+ source: z.ZodString;
1663
+ }, z.core.$strip>>;
1664
+ validationScript: z.ZodNullable<z.ZodObject<{
1665
+ command: z.ZodString;
1666
+ reason: z.ZodString;
1667
+ }, z.core.$strip>>;
1668
+ npmrcContents: z.ZodNullable<z.ZodString>;
1669
+ hasHotModuleReload: z.ZodNullable<z.ZodObject<{
1670
+ value: z.ZodBoolean;
1671
+ reason: z.ZodString;
1672
+ }, z.core.$strip>>;
1673
+ }, z.core.$strip>;
1674
+ message: z.ZodOptional<z.ZodString>;
1675
+ }, z.core.$strip>;
1676
+ UpdateSetupValue: z.ZodObject<{
1677
+ field: z.ZodEnum<{
1678
+ installCommand: "installCommand";
1679
+ devServer: "devServer";
1680
+ environmentVariables: "environmentVariables";
1681
+ validationScript: "validationScript";
1682
+ }>;
1683
+ value: z.ZodObject<{
1684
+ command: z.ZodOptional<z.ZodString>;
1685
+ url: z.ZodOptional<z.ZodString>;
1686
+ port: z.ZodOptional<z.ZodNumber>;
1687
+ environmentVariables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1688
+ key: z.ZodString;
1689
+ description: z.ZodOptional<z.ZodString>;
1690
+ isRequired: z.ZodOptional<z.ZodBoolean>;
1691
+ isSecret: z.ZodOptional<z.ZodBoolean>;
1692
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1693
+ }, z.core.$strip>>>;
1694
+ }, z.core.$strip>;
1695
+ reason: z.ZodString;
1696
+ }, z.core.$strip>;
1697
+ Exit: z.ZodObject<{
1698
+ state: z.ZodEnum<{
1699
+ verified: "verified";
1700
+ "no-frontend": "no-frontend";
1701
+ "empty-project": "empty-project";
1702
+ "mobile-project": "mobile-project";
1703
+ "user-question": "user-question";
1704
+ "code-change-required": "code-change-required";
1705
+ other: "other";
1706
+ started: "started";
1707
+ failed: "failed";
1708
+ }>;
1709
+ summary: z.ZodString;
1710
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1711
+ question: z.ZodString;
1712
+ context: z.ZodString;
1713
+ header: z.ZodOptional<z.ZodString>;
1714
+ type: z.ZodOptional<z.ZodEnum<{
1715
+ text: "text";
1716
+ select: "select";
1717
+ "multi-select": "multi-select";
1718
+ }>>;
1719
+ placeholder: z.ZodOptional<z.ZodString>;
1720
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1721
+ label: z.ZodString;
1722
+ description: z.ZodString;
1723
+ }, z.core.$strip>>>;
1724
+ }, z.core.$strip>>>;
1725
+ isMonorepo: z.ZodOptional<z.ZodBoolean>;
1726
+ isMicrofrontend: z.ZodOptional<z.ZodBoolean>;
1727
+ setupNeedsCredentials: z.ZodOptional<z.ZodBoolean>;
1728
+ devServerNeedsCredentials: z.ZodOptional<z.ZodBoolean>;
1729
+ needsVPN: z.ZodOptional<z.ZodBoolean>;
1730
+ autoReload: z.ZodOptional<z.ZodBoolean>;
1731
+ usesBuilderCms: z.ZodOptional<z.ZodBoolean>;
1732
+ stack: z.ZodOptional<z.ZodArray<z.ZodString>>;
1733
+ projectDescription: z.ZodOptional<z.ZodString>;
1734
+ }, z.core.$strip>;
1735
+ ResolveQAComments: z.ZodObject<{
1736
+ thread_node_ids: z.ZodArray<z.ZodString>;
1737
+ }, z.core.$strip>;
1738
+ GetLastBrowserTest: z.ZodObject<{}, z.core.$strip>;
1739
+ ReportUIIssue: z.ZodObject<{
1740
+ title: z.ZodString;
1741
+ description: z.ZodString;
1742
+ debugInfo: z.ZodOptional<z.ZodString>;
1743
+ }, z.core.$strip>;
1744
+ ReportIssue: z.ZodObject<{
1745
+ file_path: z.ZodString;
1746
+ line: z.ZodNumber;
1747
+ start_line: z.ZodOptional<z.ZodNumber>;
1748
+ title: z.ZodString;
1749
+ severity: z.ZodEnum<{
1750
+ low: "low";
1751
+ medium: "medium";
1752
+ high: "high";
1753
+ }>;
1754
+ body: z.ZodString;
1755
+ }, z.core.$strip>;
1756
+ ReportTestOutcome: z.ZodObject<{
1757
+ outcome: z.ZodEnum<{
1758
+ other: "other";
1759
+ failed: "failed";
1760
+ succeeded: "succeeded";
1761
+ couldnt_verify: "couldnt_verify";
1762
+ }>;
1763
+ summary: z.ZodString;
1764
+ details: z.ZodOptional<z.ZodString>;
1765
+ test_case_id: z.ZodOptional<z.ZodString>;
1766
+ evidence_frame_count: z.ZodOptional<z.ZodNumber>;
1767
+ failure_category: z.ZodOptional<z.ZodEnum<{
1768
+ timeout: "timeout";
1769
+ env_issue: "env_issue";
1770
+ creds_missing: "creds_missing";
1771
+ needs_user_input: "needs_user_input";
1772
+ server_not_ready: "server_not_ready";
1773
+ feature_not_reachable: "feature_not_reachable";
1774
+ assertion_failed: "assertion_failed";
1775
+ unexpected_error: "unexpected_error";
1776
+ not_applicable: "not_applicable";
1777
+ escalated: "escalated";
1778
+ }>>;
1779
+ failure_detail: z.ZodOptional<z.ZodString>;
1780
+ console_errors: z.ZodOptional<z.ZodString>;
1781
+ network_failures: z.ZodOptional<z.ZodString>;
1782
+ steps_attempted: z.ZodOptional<z.ZodString>;
1783
+ urls_tested: z.ZodOptional<z.ZodArray<z.ZodString>>;
1784
+ }, z.core.$strip>;
1785
+ VerifySetupCommand: z.ZodObject<{
1786
+ command: z.ZodString;
1787
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
1788
+ tool: z.ZodString;
1789
+ version: z.ZodOptional<z.ZodString>;
1790
+ }, z.core.$strip>>>;
1791
+ }, z.core.$strip>;
1792
+ VerifyDevCommand: z.ZodObject<{
1793
+ command: z.ZodString;
1794
+ }, z.core.$strip>;
1795
+ VerifyDevServer: z.ZodObject<{
1796
+ autoDetect: z.ZodBoolean;
1797
+ autoDetectPattern: z.ZodOptional<z.ZodString>;
1798
+ hardcodedUrl: z.ZodOptional<z.ZodString>;
1799
+ appOrigin: z.ZodString;
1800
+ defaultOrigin: z.ZodOptional<z.ZodString>;
1801
+ }, z.core.$strip>;
1802
+ VerifyValidateCommand: z.ZodObject<{
1803
+ command: z.ZodString;
1804
+ timeout: z.ZodOptional<z.ZodNumber>;
1805
+ }, z.core.$strip>;
1806
+ ProposeEnvVariable: z.ZodObject<{
1807
+ key: z.ZodString;
1808
+ value: z.ZodString;
1809
+ secret: z.ZodOptional<z.ZodBoolean>;
1810
+ }, z.core.$strip>;
1811
+ SetEnvVariable: z.ZodObject<{
1812
+ key: z.ZodString;
1813
+ value: z.ZodString;
1814
+ secret: z.ZodOptional<z.ZodBoolean>;
1815
+ placeholder: z.ZodOptional<z.ZodBoolean>;
1816
+ explanation: z.ZodOptional<z.ZodString>;
1817
+ }, z.core.$strip>;
1818
+ SetFileOverride: z.ZodObject<{
1819
+ path: z.ZodString;
1820
+ content: z.ZodOptional<z.ZodString>;
1821
+ base64: z.ZodOptional<z.ZodString>;
1822
+ }, z.core.$strip>;
1823
+ SendMessage: z.ZodObject<{
1824
+ channel_id: z.ZodString;
1825
+ markdown: z.ZodString;
1826
+ status: z.ZodEnum<{
1827
+ question: "question";
1828
+ starting: "starting";
1829
+ "will-follow-up": "will-follow-up";
1830
+ "done:success": "done:success";
1831
+ "done:error": "done:error";
1832
+ }>;
1833
+ loading_message: z.ZodOptional<z.ZodString>;
1834
+ voice_response: z.ZodOptional<z.ZodBoolean>;
1835
+ from_user_id: z.ZodOptional<z.ZodString>;
1836
+ }, z.core.$strip>;
1837
+ SpawnBranch: z.ZodObject<{
1838
+ project_id: z.ZodString;
1839
+ message: z.ZodString;
1840
+ builder_user_id: z.ZodOptional<z.ZodString>;
1841
+ hidden: z.ZodOptional<z.ZodBoolean>;
1842
+ origin_channel_id: z.ZodOptional<z.ZodString>;
1843
+ session_mode: z.ZodOptional<z.ZodEnum<{
1844
+ normal: "normal";
1845
+ planning: "planning";
1846
+ "deep-research": "deep-research";
1847
+ }>>;
1848
+ model: z.ZodOptional<z.ZodEnum<{
1849
+ auto: "auto";
1850
+ opus: "opus";
1851
+ sonnet: "sonnet";
1852
+ haiku: "haiku";
1853
+ }>>;
1854
+ attachment_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
1855
+ git_base_branch: z.ZodOptional<z.ZodString>;
1856
+ auto_archive_on_idle: z.ZodOptional<z.ZodBoolean>;
1857
+ }, z.core.$strip>;
1858
+ CreateProject: z.ZodObject<{
1859
+ repo_url: z.ZodString;
1860
+ name: z.ZodOptional<z.ZodString>;
1861
+ builder_user_id: z.ZodString;
1862
+ origin_channel_id: z.ZodOptional<z.ZodString>;
1863
+ initial_message: z.ZodOptional<z.ZodString>;
1864
+ }, z.core.$strip>;
1865
+ GetAvailableRepos: z.ZodObject<{}, z.core.$strip>;
1866
+ ReadBranch: z.ZodObject<{
1867
+ project_id: z.ZodString;
1868
+ branch_name: z.ZodString;
1869
+ }, z.core.$strip>;
1870
+ ArchiveBranch: z.ZodObject<{
1871
+ project_id: z.ZodString;
1872
+ branch_name: z.ZodString;
1873
+ builder_user_id: z.ZodString;
1874
+ reason: z.ZodOptional<z.ZodString>;
1875
+ }, z.core.$strip>;
1876
+ RunningAgents: z.ZodObject<{}, z.core.$strip>;
1877
+ IDEDiagnostics: z.ZodObject<{
1878
+ file_path: z.ZodOptional<z.ZodString>;
1879
+ }, z.core.$strip>;
1880
+ EscalateToPlanner: z.ZodObject<{
1881
+ issue: z.ZodString;
1882
+ steps_attempted: z.ZodString;
1883
+ current_url: z.ZodString;
1884
+ test_case_id: z.ZodString;
1885
+ }, z.core.$strip>;
1886
+ PullPrototype: z.ZodObject<{
1887
+ url: z.ZodString;
1888
+ project_id: z.ZodOptional<z.ZodString>;
1889
+ branch_name: z.ZodOptional<z.ZodString>;
1890
+ }, z.core.$strip>;
1891
+ ConnectMCP: z.ZodObject<{
1892
+ name: z.ZodString;
1893
+ url: z.ZodOptional<z.ZodString>;
1894
+ }, z.core.$strip>;
1895
+ EnsurePR: z.ZodObject<{
1896
+ project_id: z.ZodString;
1897
+ branch_name: z.ZodString;
1898
+ builder_user_id: z.ZodOptional<z.ZodString>;
1899
+ draft: z.ZodOptional<z.ZodBoolean>;
1900
+ }, z.core.$strip>;
1901
+ }, z.core.$strip>;
1902
+ export type CodeGenToolMap = z.infer<typeof CodeGenToolMapSchema>;
1903
+ export declare const CodeGenToolsSchema: z.ZodEnum<{
1904
+ AskUserQuestion: "AskUserQuestion";
1905
+ EscalateToPlanner: "EscalateToPlanner";
1906
+ Read: "Read";
1907
+ Write: "Write";
1908
+ Edit: "Edit";
1909
+ ReadRule: "ReadRule";
1910
+ Skill: "Skill";
1911
+ GetStyleInspiration: "GetStyleInspiration";
1912
+ GetScreenshot: "GetScreenshot";
1913
+ NavigatePreview: "NavigatePreview";
1914
+ MultiEdit: "MultiEdit";
1915
+ FindMedia: "FindMedia";
1916
+ Media: "Media";
1917
+ AddMemory: "AddMemory";
1918
+ SearchMemories: "SearchMemories";
1919
+ ScoreMemories: "ScoreMemories";
1920
+ Bash: "Bash";
1921
+ PowerShell: "PowerShell";
1922
+ WebSearch: "WebSearch";
1923
+ Agent: "Agent";
1924
+ Grep: "Grep";
1925
+ Glob: "Glob";
1926
+ DevServerControl: "DevServerControl";
1927
+ DevServerLogs: "DevServerLogs";
1928
+ DevServerRestart: "DevServerRestart";
1929
+ Revert: "Revert";
1930
+ TodoRead: "TodoRead";
1931
+ TodoWrite: "TodoWrite";
1932
+ TaskCreate: "TaskCreate";
1933
+ TaskUpdate: "TaskUpdate";
1934
+ TaskList: "TaskList";
1935
+ BuilderEdit: "BuilderEdit";
1936
+ WebFetch: "WebFetch";
1937
+ ExplorationMetadata: "ExplorationMetadata";
1938
+ EnterPlanMode: "EnterPlanMode";
1939
+ ExitPlanMode: "ExitPlanMode";
1940
+ ReadMcpResource: "ReadMcpResource";
1941
+ RecordFrame: "RecordFrame";
1942
+ SubmitPRReview: "SubmitPRReview";
1943
+ ProposeConfig: "ProposeConfig";
1944
+ UpdateSetupValue: "UpdateSetupValue";
1945
+ Exit: "Exit";
1946
+ ResolveQAComments: "ResolveQAComments";
1947
+ GetLastBrowserTest: "GetLastBrowserTest";
1948
+ ReportUIIssue: "ReportUIIssue";
1949
+ ReportIssue: "ReportIssue";
1950
+ ReportTestOutcome: "ReportTestOutcome";
1951
+ VerifySetupCommand: "VerifySetupCommand";
1952
+ VerifyDevCommand: "VerifyDevCommand";
1953
+ VerifyDevServer: "VerifyDevServer";
1954
+ VerifyValidateCommand: "VerifyValidateCommand";
1955
+ ProposeEnvVariable: "ProposeEnvVariable";
1956
+ SetEnvVariable: "SetEnvVariable";
1957
+ SetFileOverride: "SetFileOverride";
1958
+ SendMessage: "SendMessage";
1959
+ SpawnBranch: "SpawnBranch";
1960
+ CreateProject: "CreateProject";
1961
+ GetAvailableRepos: "GetAvailableRepos";
1962
+ ReadBranch: "ReadBranch";
1963
+ ArchiveBranch: "ArchiveBranch";
1964
+ RunningAgents: "RunningAgents";
1965
+ IDEDiagnostics: "IDEDiagnostics";
1966
+ PullPrototype: "PullPrototype";
1967
+ ConnectMCP: "ConnectMCP";
1968
+ EnsurePR: "EnsurePR";
1969
+ }>;
1970
+ export type CodeGenTools = z.infer<typeof CodeGenToolsSchema>;
938
1971
  export type AllCodeGenTools = CodeGenTools | "web_search";
939
- export type SessionMode = "planning" | "normal" | "auto-planning" | "deep-research";
940
- export type CodeGenMode = "quality" | "quality-v4"
941
- /**
942
- * @deprecated Use `quality-v4` instead. Kept for backwards compatibility
943
- * with older dev-tools clients in the wild that may still request this mode
944
- * for sub-agents. New code should not produce this value.
945
- */
946
- | "quality-v4-agent";
1972
+ export declare const SessionModeSchema: z.ZodEnum<{
1973
+ normal: "normal";
1974
+ planning: "planning";
1975
+ "deep-research": "deep-research";
1976
+ "auto-planning": "auto-planning";
1977
+ }>;
1978
+ export type SessionMode = z.infer<typeof SessionModeSchema>;
1979
+ export declare const CodeGenModeSchema: z.ZodEnum<{
1980
+ quality: "quality";
1981
+ "quality-v4": "quality-v4";
1982
+ "quality-v4-agent": "quality-v4-agent";
1983
+ }>;
1984
+ export type CodeGenMode = z.infer<typeof CodeGenModeSchema>;
947
1985
  /**
948
1986
  * When a queued message gets picked up by the scheduler.
949
1987
  *
@@ -1004,125 +2042,771 @@ export declare function isInterruptSchedule(schedule: QueueSchedule): boolean;
1004
2042
  export declare function normalizeQueueMode(mode: QueueMode | undefined): QueueBehavior;
1005
2043
  export declare const BASE_CODEGEN_POSITIONS: readonly ["fusion", "editor-ai", "repo-indexing", "cli", "create-app-firebase", "create-app-lovable", "builder-code-panel", "setup-project", "code-review-orchestrator", "project-configuration", "org-agent", "org-worker", "browser-testing", "projects-scheduler-memory-extraction", "builder-code", "unknown", "dsi-mcp", "design-system-indexer", "builder-publish-integration"];
1006
2044
  export type BaseCodeGenPosition = (typeof BASE_CODEGEN_POSITIONS)[number];
1007
- export type CodeGenPosition = BaseCodeGenPosition | `${BaseCodeGenPosition}-agent`;
1008
- export interface RepoIndexingConfig {
1009
- designSystems: string[];
1010
- }
1011
- export interface LocalMCPTools {
1012
- name: string;
1013
- description?: string;
1014
- inputSchema?: any;
1015
- serverName: string;
1016
- }
1017
- export type CodeGenCategory = `repair-${string}` | `user-normal` | `user-figma` | `user-pdf` | `user-image` | `setup-agent` | `background-${string}` | `indexing-${string}`;
1018
- export interface CodeGenInputOptions {
1019
- position: CodeGenPosition;
1020
- eventName?: string;
1021
- sessionId: string;
1022
- codeGenMode?: CodeGenMode;
1023
- sessionMode?: SessionMode;
1024
- url?: string;
1025
- diffActions?: boolean;
1026
- planningPrompt?: boolean;
1027
- customInstructions?: CustomInstruction[];
1028
- customAgents?: CustomAgentInfo[];
1029
- systemPromptOverride?: string | string[];
1030
- userPrompt?: string;
1031
- systemReminders?: SystemReminder[];
1032
- ephemeralUserPrompt?: string;
1033
- uiContextPrompt?: string;
1034
- displayUserPrompt?: string;
1035
- files?: ProjectFile[];
1036
- rerankFiles?: number;
1037
- toolResults?: ContentMessageItemToolResult[];
1038
- attachments?: Attachment[];
1039
- beforeCommit?: GitSnapshot;
1040
- workingDirectory?: string;
1041
- includeRelevantMemories?: boolean;
1042
- encryptKey?: string;
1043
- modelOverride?: string;
1044
- errorIfHadCompaction?: boolean;
1045
- softContextWindow?: number;
1046
- promptVersion?: "v1" | "v2" | "v3";
1047
- reasoning?: ReasoningEffort;
1048
- redactUserMessages?: boolean;
1049
- redactLLMMessages?: boolean;
1050
- environmentVariables?: EnvironmentVariable[];
1051
- skipCommandSecurity?: boolean;
1052
- builderContent?: BuilderContent;
1053
- framework?: CodeGenFramework;
1054
- styleLibrary?: CodeGenStyleLibrary;
1055
- typescript?: boolean;
1056
- userContext?: UserContext;
1057
- aclPolicy?: AclPolicy;
1058
- repoIndexingConfig?: RepoIndexingConfig;
1059
- recommendedRoot?: string;
1060
- enabledTools?: CodeGenTools[];
1061
- enabledMCPs?: string[];
1062
- skipFileDiff?: boolean;
1063
- /**
1064
- * When true, the agent should interrupt its current task to handle this
1065
- * message immediately, rather than finishing the current task first.
1066
- */
1067
- interruptActiveTask?: boolean;
1068
- /**
1069
- * Local MCP tool definitions from stdio servers (CLI-side only)
1070
- * These tools will be executed on the client side and passed through from the server
1071
- */
1072
- localMCPTools?: LocalMCPTools[];
1073
- /**
1074
- * Indicates whether the codegen is running in local mode (local filesystem)
1075
- * vs cloud/container mode. Used to determine git auto-commit behavior.
1076
- */
1077
- isLocal?: boolean;
2045
+ export declare const BaseCodeGenPositionSchema: z.ZodEnum<{
2046
+ unknown: "unknown";
2047
+ fusion: "fusion";
2048
+ "editor-ai": "editor-ai";
2049
+ "repo-indexing": "repo-indexing";
2050
+ cli: "cli";
2051
+ "create-app-firebase": "create-app-firebase";
2052
+ "create-app-lovable": "create-app-lovable";
2053
+ "builder-code-panel": "builder-code-panel";
2054
+ "setup-project": "setup-project";
2055
+ "code-review-orchestrator": "code-review-orchestrator";
2056
+ "project-configuration": "project-configuration";
2057
+ "org-agent": "org-agent";
2058
+ "org-worker": "org-worker";
2059
+ "browser-testing": "browser-testing";
2060
+ "projects-scheduler-memory-extraction": "projects-scheduler-memory-extraction";
2061
+ "builder-code": "builder-code";
2062
+ "dsi-mcp": "dsi-mcp";
2063
+ "design-system-indexer": "design-system-indexer";
2064
+ "builder-publish-integration": "builder-publish-integration";
2065
+ }>;
2066
+ export declare const CodeGenPositionSchema: z.ZodUnion<readonly [z.ZodEnum<{
2067
+ unknown: "unknown";
2068
+ fusion: "fusion";
2069
+ "editor-ai": "editor-ai";
2070
+ "repo-indexing": "repo-indexing";
2071
+ cli: "cli";
2072
+ "create-app-firebase": "create-app-firebase";
2073
+ "create-app-lovable": "create-app-lovable";
2074
+ "builder-code-panel": "builder-code-panel";
2075
+ "setup-project": "setup-project";
2076
+ "code-review-orchestrator": "code-review-orchestrator";
2077
+ "project-configuration": "project-configuration";
2078
+ "org-agent": "org-agent";
2079
+ "org-worker": "org-worker";
2080
+ "browser-testing": "browser-testing";
2081
+ "projects-scheduler-memory-extraction": "projects-scheduler-memory-extraction";
2082
+ "builder-code": "builder-code";
2083
+ "dsi-mcp": "dsi-mcp";
2084
+ "design-system-indexer": "design-system-indexer";
2085
+ "builder-publish-integration": "builder-publish-integration";
2086
+ }>, z.ZodTemplateLiteral<"unknown-agent" | "fusion-agent" | "editor-ai-agent" | "repo-indexing-agent" | "cli-agent" | "create-app-firebase-agent" | "create-app-lovable-agent" | "builder-code-panel-agent" | "setup-project-agent" | "code-review-orchestrator-agent" | "project-configuration-agent" | "org-agent-agent" | "org-worker-agent" | "browser-testing-agent" | "projects-scheduler-memory-extraction-agent" | "builder-code-agent" | "dsi-mcp-agent" | "design-system-indexer-agent" | "builder-publish-integration-agent">]>;
2087
+ export type CodeGenPosition = z.infer<typeof CodeGenPositionSchema>;
2088
+ export declare const RepoIndexingConfigSchema: z.ZodObject<{
2089
+ designSystems: z.ZodArray<z.ZodString>;
2090
+ }, z.core.$strip>;
2091
+ export type RepoIndexingConfig = z.infer<typeof RepoIndexingConfigSchema>;
2092
+ export declare const LocalMCPToolsSchema: z.ZodObject<{
2093
+ name: z.ZodString;
2094
+ description: z.ZodOptional<z.ZodString>;
2095
+ inputSchema: z.ZodOptional<z.ZodAny>;
2096
+ serverName: z.ZodString;
2097
+ }, z.core.$strip>;
2098
+ export type LocalMCPTools = z.infer<typeof LocalMCPToolsSchema>;
2099
+ export declare const CodeGenCategorySchema: z.ZodUnion<readonly [z.ZodTemplateLiteral<`repair-${string}`>, z.ZodLiteral<"user-normal">, z.ZodLiteral<"user-figma">, z.ZodLiteral<"user-pdf">, z.ZodLiteral<"user-image">, z.ZodLiteral<"setup-agent">, z.ZodTemplateLiteral<`background-${string}`>, z.ZodTemplateLiteral<`indexing-${string}`>]>;
2100
+ export type CodeGenCategory = z.infer<typeof CodeGenCategorySchema>;
2101
+ export declare const UserSourcePermissionSchema: z.ZodEnum<{
2102
+ editCode: "editCode";
2103
+ modifyMcpServers: "modifyMcpServers";
2104
+ modifyProjectSettings: "modifyProjectSettings";
2105
+ createBranches: "createBranches";
2106
+ sendPullRequests: "sendPullRequests";
2107
+ view: "view";
2108
+ }>;
2109
+ export type UserSourcePermission = z.infer<typeof UserSourcePermissionSchema>;
2110
+ export declare const UserSourceBaseSchema: z.ZodObject<{
2111
+ role: z.ZodEnum<{
2112
+ user: "user";
2113
+ agent: "agent";
2114
+ }>;
2115
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
2116
+ jobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2117
+ permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2118
+ editCode: "editCode";
2119
+ modifyMcpServers: "modifyMcpServers";
2120
+ modifyProjectSettings: "modifyProjectSettings";
2121
+ createBranches: "createBranches";
2122
+ sendPullRequests: "sendPullRequests";
2123
+ view: "view";
2124
+ }>>>;
2125
+ channelId: z.ZodOptional<z.ZodString>;
2126
+ }, z.core.$strip>;
2127
+ export type UserSourceBase = z.infer<typeof UserSourceBaseSchema>;
2128
+ /** All integration sources: Slack, Teams, Jira, Linear, and git providers (GitHub, GitLab, Azure, Bitbucket). */
2129
+ export declare const UserSourceOtherSchema: z.ZodObject<{
2130
+ source: z.ZodEnum<{
2131
+ github: "github";
2132
+ gitlab: "gitlab";
2133
+ bitbucket: "bitbucket";
2134
+ azure: "azure";
2135
+ slack: "slack";
2136
+ telegram: "telegram";
2137
+ whatsapp: "whatsapp";
2138
+ teams: "teams";
2139
+ jira: "jira";
2140
+ linear: "linear";
2141
+ }>;
2142
+ userId: z.ZodOptional<z.ZodString>;
2143
+ userName: z.ZodOptional<z.ZodString>;
2144
+ userEmail: z.ZodOptional<z.ZodString>;
2145
+ photoURL: z.ZodOptional<z.ZodString>;
2146
+ builderUserId: z.ZodOptional<z.ZodString>;
2147
+ link: z.ZodOptional<z.ZodString>;
2148
+ role: z.ZodEnum<{
2149
+ user: "user";
2150
+ agent: "agent";
2151
+ }>;
2152
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
2153
+ jobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2154
+ permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2155
+ editCode: "editCode";
2156
+ modifyMcpServers: "modifyMcpServers";
2157
+ modifyProjectSettings: "modifyProjectSettings";
2158
+ createBranches: "createBranches";
2159
+ sendPullRequests: "sendPullRequests";
2160
+ view: "view";
2161
+ }>>>;
2162
+ channelId: z.ZodOptional<z.ZodString>;
2163
+ }, z.core.$strip>;
2164
+ export type UserSourceOther = z.infer<typeof UserSourceOtherSchema>;
2165
+ export declare const UserSourceBuilderSchema: z.ZodObject<{
2166
+ source: z.ZodLiteral<"builder.io">;
2167
+ userId: z.ZodOptional<z.ZodString>;
2168
+ userName: z.ZodOptional<z.ZodString>;
2169
+ userEmail: z.ZodOptional<z.ZodString>;
2170
+ photoURL: z.ZodOptional<z.ZodString>;
2171
+ role: z.ZodEnum<{
2172
+ user: "user";
2173
+ agent: "agent";
2174
+ }>;
2175
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
2176
+ jobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2177
+ permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2178
+ editCode: "editCode";
2179
+ modifyMcpServers: "modifyMcpServers";
2180
+ modifyProjectSettings: "modifyProjectSettings";
2181
+ createBranches: "createBranches";
2182
+ sendPullRequests: "sendPullRequests";
2183
+ view: "view";
2184
+ }>>>;
2185
+ channelId: z.ZodOptional<z.ZodString>;
2186
+ }, z.core.$strip>;
2187
+ export type UserSourceBuilder = z.infer<typeof UserSourceBuilderSchema>;
2188
+ export declare const UserSourceAgentSchema: z.ZodObject<{
2189
+ source: z.ZodLiteral<"agent">;
2190
+ userId: z.ZodOptional<z.ZodString>;
2191
+ userName: z.ZodOptional<z.ZodString>;
2192
+ userEmail: z.ZodOptional<z.ZodString>;
2193
+ role: z.ZodEnum<{
2194
+ user: "user";
2195
+ agent: "agent";
2196
+ }>;
2197
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
2198
+ jobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2199
+ permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2200
+ editCode: "editCode";
2201
+ modifyMcpServers: "modifyMcpServers";
2202
+ modifyProjectSettings: "modifyProjectSettings";
2203
+ createBranches: "createBranches";
2204
+ sendPullRequests: "sendPullRequests";
2205
+ view: "view";
2206
+ }>>>;
2207
+ channelId: z.ZodOptional<z.ZodString>;
2208
+ }, z.core.$strip>;
2209
+ export type UserSourceAgent = z.infer<typeof UserSourceAgentSchema>;
2210
+ export declare const UserSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2211
+ source: z.ZodEnum<{
2212
+ github: "github";
2213
+ gitlab: "gitlab";
2214
+ bitbucket: "bitbucket";
2215
+ azure: "azure";
2216
+ slack: "slack";
2217
+ telegram: "telegram";
2218
+ whatsapp: "whatsapp";
2219
+ teams: "teams";
2220
+ jira: "jira";
2221
+ linear: "linear";
2222
+ }>;
2223
+ userId: z.ZodOptional<z.ZodString>;
2224
+ userName: z.ZodOptional<z.ZodString>;
2225
+ userEmail: z.ZodOptional<z.ZodString>;
2226
+ photoURL: z.ZodOptional<z.ZodString>;
2227
+ builderUserId: z.ZodOptional<z.ZodString>;
2228
+ link: z.ZodOptional<z.ZodString>;
2229
+ role: z.ZodEnum<{
2230
+ user: "user";
2231
+ agent: "agent";
2232
+ }>;
2233
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
2234
+ jobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2235
+ permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2236
+ editCode: "editCode";
2237
+ modifyMcpServers: "modifyMcpServers";
2238
+ modifyProjectSettings: "modifyProjectSettings";
2239
+ createBranches: "createBranches";
2240
+ sendPullRequests: "sendPullRequests";
2241
+ view: "view";
2242
+ }>>>;
2243
+ channelId: z.ZodOptional<z.ZodString>;
2244
+ }, z.core.$strip>, z.ZodObject<{
2245
+ source: z.ZodLiteral<"builder.io">;
2246
+ userId: z.ZodOptional<z.ZodString>;
2247
+ userName: z.ZodOptional<z.ZodString>;
2248
+ userEmail: z.ZodOptional<z.ZodString>;
2249
+ photoURL: z.ZodOptional<z.ZodString>;
2250
+ role: z.ZodEnum<{
2251
+ user: "user";
2252
+ agent: "agent";
2253
+ }>;
2254
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
2255
+ jobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2256
+ permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2257
+ editCode: "editCode";
2258
+ modifyMcpServers: "modifyMcpServers";
2259
+ modifyProjectSettings: "modifyProjectSettings";
2260
+ createBranches: "createBranches";
2261
+ sendPullRequests: "sendPullRequests";
2262
+ view: "view";
2263
+ }>>>;
2264
+ channelId: z.ZodOptional<z.ZodString>;
2265
+ }, z.core.$strip>, z.ZodObject<{
2266
+ source: z.ZodLiteral<"agent">;
2267
+ userId: z.ZodOptional<z.ZodString>;
2268
+ userName: z.ZodOptional<z.ZodString>;
2269
+ userEmail: z.ZodOptional<z.ZodString>;
2270
+ role: z.ZodEnum<{
2271
+ user: "user";
2272
+ agent: "agent";
2273
+ }>;
2274
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
2275
+ jobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2276
+ permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2277
+ editCode: "editCode";
2278
+ modifyMcpServers: "modifyMcpServers";
2279
+ modifyProjectSettings: "modifyProjectSettings";
2280
+ createBranches: "createBranches";
2281
+ sendPullRequests: "sendPullRequests";
2282
+ view: "view";
2283
+ }>>>;
2284
+ channelId: z.ZodOptional<z.ZodString>;
2285
+ }, z.core.$strip>], "source">;
2286
+ export type UserSource = z.infer<typeof UserSourceSchema>;
2287
+ export declare const PermissionSchema: z.ZodEnum<{
2288
+ read: "read";
2289
+ write: "write";
2290
+ list: "list";
2291
+ }>;
2292
+ export type Permission = z.infer<typeof PermissionSchema>;
2293
+ export declare const AclEntrySchema: z.ZodObject<{
2294
+ action: z.ZodEnum<{
2295
+ allow: "allow";
2296
+ deny: "deny";
2297
+ }>;
2298
+ resource: z.ZodString;
2299
+ permissions: z.ZodArray<z.ZodEnum<{
2300
+ read: "read";
2301
+ write: "write";
2302
+ list: "list";
2303
+ }>>;
2304
+ description: z.ZodOptional<z.ZodString>;
2305
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
2306
+ }, z.core.$strip>;
2307
+ export type AclEntry = z.infer<typeof AclEntrySchema>;
2308
+ export declare const AclPolicySchema: z.ZodObject<{
2309
+ secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
2310
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
2311
+ action: z.ZodEnum<{
2312
+ allow: "allow";
2313
+ deny: "deny";
2314
+ }>;
2315
+ resource: z.ZodString;
2316
+ permissions: z.ZodArray<z.ZodEnum<{
2317
+ read: "read";
2318
+ write: "write";
2319
+ list: "list";
2320
+ }>>;
2321
+ description: z.ZodOptional<z.ZodString>;
2322
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
2323
+ }, z.core.$strip>>>;
2324
+ denyDescription: z.ZodOptional<z.ZodString>;
2325
+ }, z.core.$strip>;
2326
+ export type AclPolicy = z.infer<typeof AclPolicySchema>;
2327
+ export declare const SystemReminderObjSchema: z.ZodObject<{
2328
+ text: z.ZodString;
2329
+ tag: z.ZodOptional<z.ZodString>;
2330
+ ephemeral: z.ZodOptional<z.ZodBoolean>;
2331
+ }, z.core.$strip>;
2332
+ export type SystemReminderObj = z.infer<typeof SystemReminderObjSchema>;
2333
+ export declare const SystemReminderSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2334
+ text: z.ZodString;
2335
+ tag: z.ZodOptional<z.ZodString>;
2336
+ ephemeral: z.ZodOptional<z.ZodBoolean>;
2337
+ }, z.core.$strip>]>;
2338
+ export type SystemReminder = z.infer<typeof SystemReminderSchema>;
2339
+ export declare const CodeGenInputOptionsSchema: z.ZodObject<{
2340
+ position: z.ZodUnion<readonly [z.ZodEnum<{
2341
+ unknown: "unknown";
2342
+ fusion: "fusion";
2343
+ "editor-ai": "editor-ai";
2344
+ "repo-indexing": "repo-indexing";
2345
+ cli: "cli";
2346
+ "create-app-firebase": "create-app-firebase";
2347
+ "create-app-lovable": "create-app-lovable";
2348
+ "builder-code-panel": "builder-code-panel";
2349
+ "setup-project": "setup-project";
2350
+ "code-review-orchestrator": "code-review-orchestrator";
2351
+ "project-configuration": "project-configuration";
2352
+ "org-agent": "org-agent";
2353
+ "org-worker": "org-worker";
2354
+ "browser-testing": "browser-testing";
2355
+ "projects-scheduler-memory-extraction": "projects-scheduler-memory-extraction";
2356
+ "builder-code": "builder-code";
2357
+ "dsi-mcp": "dsi-mcp";
2358
+ "design-system-indexer": "design-system-indexer";
2359
+ "builder-publish-integration": "builder-publish-integration";
2360
+ }>, z.ZodTemplateLiteral<"unknown-agent" | "fusion-agent" | "editor-ai-agent" | "repo-indexing-agent" | "cli-agent" | "create-app-firebase-agent" | "create-app-lovable-agent" | "builder-code-panel-agent" | "setup-project-agent" | "code-review-orchestrator-agent" | "project-configuration-agent" | "org-agent-agent" | "org-worker-agent" | "browser-testing-agent" | "projects-scheduler-memory-extraction-agent" | "builder-code-agent" | "dsi-mcp-agent" | "design-system-indexer-agent" | "builder-publish-integration-agent">]>;
2361
+ eventName: z.ZodOptional<z.ZodString>;
2362
+ sessionId: z.ZodString;
2363
+ codeGenMode: z.ZodOptional<z.ZodEnum<{
2364
+ quality: "quality";
2365
+ "quality-v4": "quality-v4";
2366
+ "quality-v4-agent": "quality-v4-agent";
2367
+ }>>;
2368
+ sessionMode: z.ZodOptional<z.ZodEnum<{
2369
+ normal: "normal";
2370
+ planning: "planning";
2371
+ "deep-research": "deep-research";
2372
+ "auto-planning": "auto-planning";
2373
+ }>>;
2374
+ url: z.ZodOptional<z.ZodString>;
2375
+ diffActions: z.ZodOptional<z.ZodBoolean>;
2376
+ planningPrompt: z.ZodOptional<z.ZodBoolean>;
2377
+ customInstructions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2378
+ id: z.ZodString;
2379
+ name: z.ZodString;
2380
+ content: z.ZodString;
2381
+ type: z.ZodOptional<z.ZodEnum<{
2382
+ always: "always";
2383
+ "agent-mode": "agent-mode";
2384
+ }>>;
2385
+ filePath: z.ZodOptional<z.ZodString>;
2386
+ glob: z.ZodOptional<z.ZodString>;
2387
+ description: z.ZodOptional<z.ZodString>;
2388
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
2389
+ hideUI: z.ZodOptional<z.ZodBoolean>;
2390
+ isSkill: z.ZodOptional<z.ZodBoolean>;
2391
+ disableModelInvocation: z.ZodOptional<z.ZodBoolean>;
2392
+ userInvocable: z.ZodOptional<z.ZodBoolean>;
2393
+ scope: z.ZodOptional<z.ZodEnum<{
2394
+ user: "user";
2395
+ project: "project";
2396
+ plugin: "plugin";
2397
+ }>>;
2398
+ pluginName: z.ZodOptional<z.ZodString>;
2399
+ }, z.core.$strip>>>;
2400
+ customAgents: z.ZodOptional<z.ZodArray<z.ZodObject<{
2401
+ name: z.ZodString;
2402
+ description: z.ZodOptional<z.ZodString>;
2403
+ }, z.core.$strip>>>;
2404
+ systemPromptOverride: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2405
+ userPrompt: z.ZodOptional<z.ZodString>;
2406
+ systemReminders: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2407
+ text: z.ZodString;
2408
+ tag: z.ZodOptional<z.ZodString>;
2409
+ ephemeral: z.ZodOptional<z.ZodBoolean>;
2410
+ }, z.core.$strip>]>>>;
2411
+ ephemeralUserPrompt: z.ZodOptional<z.ZodString>;
2412
+ uiContextPrompt: z.ZodOptional<z.ZodString>;
2413
+ displayUserPrompt: z.ZodOptional<z.ZodString>;
2414
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
2415
+ filePath: z.ZodString;
2416
+ content: z.ZodOptional<z.ZodString>;
2417
+ importance: z.ZodOptional<z.ZodNumber>;
2418
+ dropReason: z.ZodOptional<z.ZodString>;
2419
+ wasIncluded: z.ZodOptional<z.ZodBoolean>;
2420
+ virtual: z.ZodOptional<z.ZodBoolean>;
2421
+ }, z.core.$strip>>>;
2422
+ rerankFiles: z.ZodOptional<z.ZodNumber>;
2423
+ toolResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
2424
+ type: z.ZodLiteral<"tool_result">;
2425
+ tool_use_id: z.ZodString;
2426
+ tool_name: z.ZodOptional<z.ZodString>;
2427
+ tool_input: z.ZodOptional<z.ZodString>;
2428
+ title: z.ZodOptional<z.ZodString>;
2429
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2430
+ type: z.ZodLiteral<"text">;
2431
+ text: z.ZodString;
2432
+ cache: z.ZodOptional<z.ZodBoolean>;
2433
+ citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2434
+ cited_text: z.ZodString;
2435
+ document_index: z.ZodNumber;
2436
+ document_title: z.ZodNullable<z.ZodString>;
2437
+ end_char_index: z.ZodNumber;
2438
+ start_char_index: z.ZodNumber;
2439
+ type: z.ZodLiteral<"char_location">;
2440
+ }, z.core.$strip>, z.ZodObject<{
2441
+ cited_text: z.ZodString;
2442
+ document_index: z.ZodNumber;
2443
+ document_title: z.ZodNullable<z.ZodString>;
2444
+ end_page_number: z.ZodNumber;
2445
+ start_page_number: z.ZodNumber;
2446
+ type: z.ZodLiteral<"page_location">;
2447
+ }, z.core.$strip>, z.ZodObject<{
2448
+ cited_text: z.ZodString;
2449
+ document_index: z.ZodNumber;
2450
+ document_title: z.ZodNullable<z.ZodString>;
2451
+ end_block_index: z.ZodNumber;
2452
+ start_block_index: z.ZodNumber;
2453
+ type: z.ZodLiteral<"content_block_location">;
2454
+ }, z.core.$strip>, z.ZodObject<{
2455
+ cited_text: z.ZodString;
2456
+ encrypted_index: z.ZodString;
2457
+ title: z.ZodNullable<z.ZodString>;
2458
+ type: z.ZodLiteral<"web_search_result_location">;
2459
+ url: z.ZodString;
2460
+ }, z.core.$strip>], "type">>>>;
2461
+ ephemeral: z.ZodOptional<z.ZodBoolean>;
2462
+ thoughtSignature: z.ZodOptional<z.ZodString>;
2463
+ tag: z.ZodOptional<z.ZodString>;
2464
+ }, z.core.$strip>, z.ZodObject<{
2465
+ type: z.ZodLiteral<"image">;
2466
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2467
+ type: z.ZodLiteral<"base64">;
2468
+ media_type: z.ZodEnum<{
2469
+ "image/webp": "image/webp";
2470
+ "image/png": "image/png";
2471
+ "image/jpeg": "image/jpeg";
2472
+ "image/gif": "image/gif";
2473
+ }>;
2474
+ data: z.ZodString;
2475
+ original_url: z.ZodOptional<z.ZodString>;
2476
+ }, z.core.$strip>, z.ZodObject<{
2477
+ type: z.ZodLiteral<"url">;
2478
+ url: z.ZodString;
2479
+ }, z.core.$strip>], "type">;
2480
+ cache: z.ZodOptional<z.ZodBoolean>;
2481
+ ephemeral: z.ZodOptional<z.ZodBoolean>;
2482
+ }, z.core.$strip>, z.ZodObject<{
2483
+ type: z.ZodLiteral<"resource">;
2484
+ resource: z.ZodObject<{
2485
+ uri: z.ZodString;
2486
+ mimeType: z.ZodOptional<z.ZodString>;
2487
+ text: z.ZodOptional<z.ZodString>;
2488
+ blob: z.ZodOptional<z.ZodString>;
2489
+ }, z.core.$strip>;
2490
+ }, z.core.$strip>], "type">>]>;
2491
+ is_error: z.ZodOptional<z.ZodBoolean>;
2492
+ cache: z.ZodOptional<z.ZodBoolean>;
2493
+ ephemeral: z.ZodOptional<z.ZodBoolean>;
2494
+ structured_result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2495
+ }, z.core.$strip>>>;
2496
+ attachments: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2497
+ type: z.ZodLiteral<"upload">;
2498
+ contentType: z.ZodEnum<{
2499
+ "image/webp": "image/webp";
2500
+ "image/png": "image/png";
2501
+ "image/jpeg": "image/jpeg";
2502
+ "image/gif": "image/gif";
2503
+ "application/pdf": "application/pdf";
2504
+ "application/json": "application/json";
2505
+ "text/plain": "text/plain";
2506
+ }>;
2507
+ name: z.ZodString;
2508
+ dataUrl: z.ZodString;
2509
+ text: z.ZodOptional<z.ZodString>;
2510
+ size: z.ZodNumber;
2511
+ id: z.ZodString;
2512
+ originalUrl: z.ZodOptional<z.ZodString>;
2513
+ ephemeral: z.ZodOptional<z.ZodBoolean>;
2514
+ }, z.core.$strip>, z.ZodObject<{
2515
+ type: z.ZodLiteral<"template">;
2516
+ name: z.ZodString;
2517
+ id: z.ZodNumber;
2518
+ }, z.core.$strip>, z.ZodObject<{
2519
+ type: z.ZodLiteral<"url">;
2520
+ value: z.ZodString;
2521
+ }, z.core.$strip>, z.ZodObject<{
2522
+ type: z.ZodLiteral<"builder">;
2523
+ html: z.ZodString;
2524
+ }, z.core.$strip>, z.ZodObject<{
2525
+ type: z.ZodLiteral<"figma">;
2526
+ html: z.ZodString;
2527
+ }, z.core.$strip>], "type">>>;
2528
+ beforeCommit: z.ZodOptional<z.ZodString>;
2529
+ workingDirectory: z.ZodOptional<z.ZodString>;
2530
+ includeRelevantMemories: z.ZodOptional<z.ZodBoolean>;
2531
+ encryptKey: z.ZodOptional<z.ZodString>;
2532
+ modelOverride: z.ZodOptional<z.ZodString>;
2533
+ errorIfHadCompaction: z.ZodOptional<z.ZodBoolean>;
2534
+ softContextWindow: z.ZodOptional<z.ZodNumber>;
2535
+ promptVersion: z.ZodOptional<z.ZodEnum<{
2536
+ v1: "v1";
2537
+ v2: "v2";
2538
+ v3: "v3";
2539
+ }>>;
2540
+ reasoning: z.ZodOptional<z.ZodEnum<{
2541
+ none: "none";
2542
+ low: "low";
2543
+ medium: "medium";
2544
+ high: "high";
2545
+ auto: "auto";
2546
+ minimal: "minimal";
2547
+ xhigh: "xhigh";
2548
+ max: "max";
2549
+ }>>;
2550
+ redactUserMessages: z.ZodOptional<z.ZodBoolean>;
2551
+ redactLLMMessages: z.ZodOptional<z.ZodBoolean>;
2552
+ environmentVariables: z.ZodOptional<z.ZodArray<z.ZodObject<{
2553
+ key: z.ZodString;
2554
+ value: z.ZodString;
2555
+ isSecret: z.ZodBoolean;
2556
+ placeholder: z.ZodOptional<z.ZodBoolean>;
2557
+ explanation: z.ZodOptional<z.ZodString>;
2558
+ }, z.core.$strip>>>;
2559
+ skipCommandSecurity: z.ZodOptional<z.ZodBoolean>;
2560
+ builderContent: z.ZodOptional<z.ZodCustom<BuilderContent, BuilderContent>>;
2561
+ framework: z.ZodOptional<z.ZodEnum<{
2562
+ html: "html";
2563
+ react: "react";
2564
+ mitosis: "mitosis";
2565
+ "react-native": "react-native";
2566
+ angular: "angular";
2567
+ vue: "vue";
2568
+ svelte: "svelte";
2569
+ qwik: "qwik";
2570
+ solid: "solid";
2571
+ marko: "marko";
2572
+ swiftui: "swiftui";
2573
+ "jetpack-compose": "jetpack-compose";
2574
+ flutter: "flutter";
2575
+ }>>;
2576
+ styleLibrary: z.ZodOptional<z.ZodEnum<{
2577
+ "react-native": "react-native";
2578
+ tailwind: "tailwind";
2579
+ "tailwind-precise": "tailwind-precise";
2580
+ emotion: "emotion";
2581
+ "styled-components": "styled-components";
2582
+ "styled-jsx": "styled-jsx";
2583
+ }>>;
2584
+ typescript: z.ZodOptional<z.ZodBoolean>;
2585
+ userContext: z.ZodOptional<z.ZodObject<{
2586
+ client: z.ZodString;
2587
+ clientVersion: z.ZodString;
2588
+ nodeVersion: z.ZodString;
2589
+ systemPlatform: z.ZodString;
2590
+ frameworks: z.ZodArray<z.ZodString>;
2591
+ systemEOL: z.ZodString;
2592
+ systemArch: z.ZodString;
2593
+ systemShell: z.ZodOptional<z.ZodString>;
2594
+ inGitRepo: z.ZodOptional<z.ZodBoolean>;
2595
+ }, z.core.$catchall<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodBoolean, z.ZodUndefined]>>>>;
2596
+ aclPolicy: z.ZodOptional<z.ZodObject<{
2597
+ secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
2598
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
2599
+ action: z.ZodEnum<{
2600
+ allow: "allow";
2601
+ deny: "deny";
2602
+ }>;
2603
+ resource: z.ZodString;
2604
+ permissions: z.ZodArray<z.ZodEnum<{
2605
+ read: "read";
2606
+ write: "write";
2607
+ list: "list";
2608
+ }>>;
2609
+ description: z.ZodOptional<z.ZodString>;
2610
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
2611
+ }, z.core.$strip>>>;
2612
+ denyDescription: z.ZodOptional<z.ZodString>;
2613
+ }, z.core.$strip>>;
2614
+ repoIndexingConfig: z.ZodOptional<z.ZodObject<{
2615
+ designSystems: z.ZodArray<z.ZodString>;
2616
+ }, z.core.$strip>>;
2617
+ recommendedRoot: z.ZodOptional<z.ZodString>;
2618
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2619
+ AskUserQuestion: "AskUserQuestion";
2620
+ EscalateToPlanner: "EscalateToPlanner";
2621
+ Read: "Read";
2622
+ Write: "Write";
2623
+ Edit: "Edit";
2624
+ ReadRule: "ReadRule";
2625
+ Skill: "Skill";
2626
+ GetStyleInspiration: "GetStyleInspiration";
2627
+ GetScreenshot: "GetScreenshot";
2628
+ NavigatePreview: "NavigatePreview";
2629
+ MultiEdit: "MultiEdit";
2630
+ FindMedia: "FindMedia";
2631
+ Media: "Media";
2632
+ AddMemory: "AddMemory";
2633
+ SearchMemories: "SearchMemories";
2634
+ ScoreMemories: "ScoreMemories";
2635
+ Bash: "Bash";
2636
+ PowerShell: "PowerShell";
2637
+ WebSearch: "WebSearch";
2638
+ Agent: "Agent";
2639
+ Grep: "Grep";
2640
+ Glob: "Glob";
2641
+ DevServerControl: "DevServerControl";
2642
+ DevServerLogs: "DevServerLogs";
2643
+ DevServerRestart: "DevServerRestart";
2644
+ Revert: "Revert";
2645
+ TodoRead: "TodoRead";
2646
+ TodoWrite: "TodoWrite";
2647
+ TaskCreate: "TaskCreate";
2648
+ TaskUpdate: "TaskUpdate";
2649
+ TaskList: "TaskList";
2650
+ BuilderEdit: "BuilderEdit";
2651
+ WebFetch: "WebFetch";
2652
+ ExplorationMetadata: "ExplorationMetadata";
2653
+ EnterPlanMode: "EnterPlanMode";
2654
+ ExitPlanMode: "ExitPlanMode";
2655
+ ReadMcpResource: "ReadMcpResource";
2656
+ RecordFrame: "RecordFrame";
2657
+ SubmitPRReview: "SubmitPRReview";
2658
+ ProposeConfig: "ProposeConfig";
2659
+ UpdateSetupValue: "UpdateSetupValue";
2660
+ Exit: "Exit";
2661
+ ResolveQAComments: "ResolveQAComments";
2662
+ GetLastBrowserTest: "GetLastBrowserTest";
2663
+ ReportUIIssue: "ReportUIIssue";
2664
+ ReportIssue: "ReportIssue";
2665
+ ReportTestOutcome: "ReportTestOutcome";
2666
+ VerifySetupCommand: "VerifySetupCommand";
2667
+ VerifyDevCommand: "VerifyDevCommand";
2668
+ VerifyDevServer: "VerifyDevServer";
2669
+ VerifyValidateCommand: "VerifyValidateCommand";
2670
+ ProposeEnvVariable: "ProposeEnvVariable";
2671
+ SetEnvVariable: "SetEnvVariable";
2672
+ SetFileOverride: "SetFileOverride";
2673
+ SendMessage: "SendMessage";
2674
+ SpawnBranch: "SpawnBranch";
2675
+ CreateProject: "CreateProject";
2676
+ GetAvailableRepos: "GetAvailableRepos";
2677
+ ReadBranch: "ReadBranch";
2678
+ ArchiveBranch: "ArchiveBranch";
2679
+ RunningAgents: "RunningAgents";
2680
+ IDEDiagnostics: "IDEDiagnostics";
2681
+ PullPrototype: "PullPrototype";
2682
+ ConnectMCP: "ConnectMCP";
2683
+ EnsurePR: "EnsurePR";
2684
+ }>>>;
2685
+ enabledMCPs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2686
+ skipFileDiff: z.ZodOptional<z.ZodBoolean>;
2687
+ interruptActiveTask: z.ZodOptional<z.ZodBoolean>;
2688
+ localMCPTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
2689
+ name: z.ZodString;
2690
+ description: z.ZodOptional<z.ZodString>;
2691
+ inputSchema: z.ZodOptional<z.ZodAny>;
2692
+ serverName: z.ZodString;
2693
+ }, z.core.$strip>>>;
2694
+ isLocal: z.ZodOptional<z.ZodBoolean>;
2695
+ maxAgentLoops: z.ZodOptional<z.ZodNumber>;
2696
+ maxAgentTiming: z.ZodOptional<z.ZodNumber>;
2697
+ maxTokens: z.ZodOptional<z.ZodNumber>;
2698
+ maxPages: z.ZodOptional<z.ZodNumber>;
2699
+ autoContinue: z.ZodOptional<z.ZodNumber>;
2700
+ isManualContinue: z.ZodOptional<z.ZodBoolean>;
2701
+ llmSuggestions: z.ZodOptional<z.ZodBoolean>;
2702
+ conclusionText: z.ZodOptional<z.ZodBoolean>;
2703
+ mcpServers: z.ZodOptional<z.ZodBoolean>;
2704
+ pingEvents: z.ZodOptional<z.ZodBoolean>;
2705
+ forceCompact: z.ZodOptional<z.ZodBoolean>;
2706
+ hadPagination: z.ZodOptional<z.ZodBoolean>;
2707
+ category: z.ZodOptional<z.ZodUnion<readonly [z.ZodTemplateLiteral<`repair-${string}`>, z.ZodLiteral<"user-normal">, z.ZodLiteral<"user-figma">, z.ZodLiteral<"user-pdf">, z.ZodLiteral<"user-image">, z.ZodLiteral<"setup-agent">, z.ZodTemplateLiteral<`background-${string}`>, z.ZodTemplateLiteral<`indexing-${string}`>]>>;
2708
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2709
+ searchResponse: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
2710
+ prettierConfig: z.ZodOptional<z.ZodCustom<PrettierOptions, PrettierOptions>>;
2711
+ role: z.ZodOptional<z.ZodEnum<{
2712
+ user: "user";
2713
+ agent: "agent";
2714
+ }>>;
2715
+ user: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2716
+ source: z.ZodEnum<{
2717
+ github: "github";
2718
+ gitlab: "gitlab";
2719
+ bitbucket: "bitbucket";
2720
+ azure: "azure";
2721
+ slack: "slack";
2722
+ telegram: "telegram";
2723
+ whatsapp: "whatsapp";
2724
+ teams: "teams";
2725
+ jira: "jira";
2726
+ linear: "linear";
2727
+ }>;
2728
+ userId: z.ZodOptional<z.ZodString>;
2729
+ userName: z.ZodOptional<z.ZodString>;
2730
+ userEmail: z.ZodOptional<z.ZodString>;
2731
+ photoURL: z.ZodOptional<z.ZodString>;
2732
+ builderUserId: z.ZodOptional<z.ZodString>;
2733
+ link: z.ZodOptional<z.ZodString>;
2734
+ role: z.ZodEnum<{
2735
+ user: "user";
2736
+ agent: "agent";
2737
+ }>;
2738
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
2739
+ jobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2740
+ permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2741
+ editCode: "editCode";
2742
+ modifyMcpServers: "modifyMcpServers";
2743
+ modifyProjectSettings: "modifyProjectSettings";
2744
+ createBranches: "createBranches";
2745
+ sendPullRequests: "sendPullRequests";
2746
+ view: "view";
2747
+ }>>>;
2748
+ channelId: z.ZodOptional<z.ZodString>;
2749
+ }, z.core.$strip>, z.ZodObject<{
2750
+ source: z.ZodLiteral<"builder.io">;
2751
+ userId: z.ZodOptional<z.ZodString>;
2752
+ userName: z.ZodOptional<z.ZodString>;
2753
+ userEmail: z.ZodOptional<z.ZodString>;
2754
+ photoURL: z.ZodOptional<z.ZodString>;
2755
+ role: z.ZodEnum<{
2756
+ user: "user";
2757
+ agent: "agent";
2758
+ }>;
2759
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
2760
+ jobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2761
+ permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2762
+ editCode: "editCode";
2763
+ modifyMcpServers: "modifyMcpServers";
2764
+ modifyProjectSettings: "modifyProjectSettings";
2765
+ createBranches: "createBranches";
2766
+ sendPullRequests: "sendPullRequests";
2767
+ view: "view";
2768
+ }>>>;
2769
+ channelId: z.ZodOptional<z.ZodString>;
2770
+ }, z.core.$strip>, z.ZodObject<{
2771
+ source: z.ZodLiteral<"agent">;
2772
+ userId: z.ZodOptional<z.ZodString>;
2773
+ userName: z.ZodOptional<z.ZodString>;
2774
+ userEmail: z.ZodOptional<z.ZodString>;
2775
+ role: z.ZodEnum<{
2776
+ user: "user";
2777
+ agent: "agent";
2778
+ }>;
2779
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
2780
+ jobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2781
+ permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2782
+ editCode: "editCode";
2783
+ modifyMcpServers: "modifyMcpServers";
2784
+ modifyProjectSettings: "modifyProjectSettings";
2785
+ createBranches: "createBranches";
2786
+ sendPullRequests: "sendPullRequests";
2787
+ view: "view";
2788
+ }>>>;
2789
+ channelId: z.ZodOptional<z.ZodString>;
2790
+ }, z.core.$strip>], "source">>;
2791
+ projectId: z.ZodOptional<z.ZodString>;
2792
+ branchName: z.ZodOptional<z.ZodString>;
2793
+ repoHash: z.ZodOptional<z.ZodString>;
2794
+ repoBranch: z.ZodOptional<z.ZodString>;
2795
+ parentSessionId: z.ZodOptional<z.ZodString>;
2796
+ mainSessionId: z.ZodOptional<z.ZodString>;
2797
+ prevId: z.ZodOptional<z.ZodString>;
2798
+ vcpId: z.ZodOptional<z.ZodString>;
2799
+ repair: z.ZodOptional<z.ZodBoolean>;
2800
+ systemReminderPrompt: z.ZodOptional<z.ZodString>;
2801
+ }, z.core.$loose>;
2802
+ export type CodeGenInputOptions = z.infer<typeof CodeGenInputOptionsSchema> & {
1078
2803
  /**
1079
- * Optional factory function to wrap the MCP client with custom behavior
1080
- * Used by Editor AI to add permission checks for model operations
2804
+ * Optional factory function to wrap the MCP client with custom behavior.
2805
+ * Used by Editor AI to add permission checks for model operations.
1081
2806
  * @internal
1082
2807
  */
1083
2808
  _mcpClientWrapperFactory?: (realClient: any) => any;
1084
- maxAgentLoops?: number;
1085
- maxAgentTiming?: number;
1086
- /**
1087
- * Maximum output tokens allowed in the LLM response. This will set the maximum
1088
- * token output for the LLM.
1089
- */
1090
- maxTokens?: number;
1091
- maxPages?: number;
1092
- autoContinue?: number;
1093
- isManualContinue?: boolean;
1094
- llmSuggestions?: boolean;
1095
- conclusionText?: boolean;
1096
- mcpServers?: boolean;
1097
- pingEvents?: boolean;
1098
- forceCompact?: boolean;
1099
- hadPagination?: boolean;
1100
- category?: CodeGenCategory;
1101
- metadata?: Record<string, any>;
1102
- searchResponse?: any | null;
1103
- prettierConfig?: PrettierOptions;
1104
- role?: "user" | "agent";
1105
- user?: UserSource;
1106
- projectId?: string;
1107
- branchName?: string;
1108
- repoHash?: string;
1109
- repoBranch?: string;
1110
- /** Immediate parent session id when this completion runs inside a sub-agent. */
1111
- parentSessionId?: string;
1112
- /**
1113
- * Root session of the agent tree. Sub-agents inherit this from their parent
1114
- * so cost rolls up to the root in one hop, regardless of nesting depth.
1115
- */
1116
- mainSessionId?: string;
1117
- /** @deprecated */
1118
- prevId?: string;
1119
- /** @deprecated */
1120
- vcpId?: string;
1121
- /** @deprecated */
1122
- repair?: boolean;
1123
- /** @deprecated */
1124
- systemReminderPrompt?: string;
1125
- }
2809
+ };
1126
2810
  export type CodeGenErrorCodes = "credits-limit-daily" | "credits-limit-monthly" | "credits-limit-user" | "credits-limit-other" | "cli-genetic-error" | "git-update-error" | "prompt-too-long" | "context-too-long" | "abrupt-end" | "unknown" | "failed-recover-state" | "completion-expired" | "ask-to-continue" | "bad-initial-url" | "bad-smart-export-payload" | "invalid-last-message" | "corrupted-session" | "privacy-mode-key-required" | "privacy-mode-key-invalid" | "cli-network-error" | "assertion" | "rate-limit" | "unknown-design-system";
1127
2811
  export interface CodegenUsage {
1128
2812
  total: number;
@@ -1535,14 +3219,6 @@ export interface DiagnosticEntry {
1535
3219
  line: number;
1536
3220
  source: string | null;
1537
3221
  }
1538
- export interface IDEDiagnosticsToolInput {
1539
- file_path?: string;
1540
- }
1541
- export interface PullPrototypeToolInput {
1542
- url: string;
1543
- project_id?: string;
1544
- branch_name?: string;
1545
- }
1546
3222
  export interface DiagnosticsResponse {
1547
3223
  ideName: string;
1548
3224
  diagnostics: DiagnosticEntry[];
@@ -1584,80 +3260,222 @@ export interface ApplyActionsResult {
1584
3260
  content?: string;
1585
3261
  oldContent?: string;
1586
3262
  }
1587
- export type UserSourcePermission = "editCode" | "modifyMcpServers" | "modifyProjectSettings" | "createBranches" | "sendPullRequests" | "view";
1588
- export interface UserSourceBase {
1589
- role: "user" | "agent";
1590
- principals?: string[];
1591
- jobs?: string[];
1592
- permissions?: UserSourcePermission[];
1593
- channelId?: string;
1594
- }
1595
- /** All integration sources: Slack, Teams, Jira, Linear, and git providers (GitHub, GitLab, Azure, Bitbucket). */
1596
- export interface UserSourceOther extends UserSourceBase {
1597
- source: "slack" | "telegram" | "whatsapp" | "teams" | "jira" | "linear" | "github" | "gitlab" | "azure" | "bitbucket";
1598
- /** User ID from the external platform (Slack user ID, GitHub user id, etc.) */
1599
- userId?: string;
1600
- userName?: string;
1601
- userEmail?: string;
1602
- photoURL?: string;
1603
- /** Resolved Builder user ID for attribution/credits */
1604
- builderUserId?: string;
1605
- /** Optional link (e.g. comment/PR URL) for git provider sources */
1606
- link?: string;
1607
- }
1608
- export interface UserSourceBuilder extends UserSourceBase {
1609
- source: "builder.io";
1610
- userId?: string;
1611
- userName?: string;
1612
- userEmail?: string;
1613
- photoURL?: string;
1614
- }
1615
- export interface UserSourceAgent extends UserSourceBase {
1616
- source: "agent";
1617
- userId?: string;
1618
- userName?: string;
1619
- userEmail?: string;
1620
- }
1621
- export type UserSource = UserSourceOther | UserSourceBuilder | UserSourceAgent;
1622
- export type AutoPushMode = "force-push" | "merge-push" | "ff-push" | "safe-push" | "none";
1623
- export interface GenerateUserMessage {
1624
- idempotencyKey?: string;
1625
- user?: UserSource;
1626
- userPrompt: string;
1627
- uiContextPrompt?: string;
1628
- ephemeralUserPrompt?: string;
1629
- displayPrompt?: string;
1630
- files?: string[];
1631
- systemReminders?: SystemReminderObj[];
1632
- includeBaseFiles?: boolean;
1633
- attachments?: Attachment[];
1634
- logsCheckpoint?: boolean;
1635
- dropAbortedPrompt?: boolean;
1636
- runValidateCommand?: boolean;
1637
- modelOverride?: string;
1638
- agentModelOverrides?: AgentModelOverrides;
1639
- softContextWindow?: number;
1640
- maxCompletions?: number;
1641
- isManualContinue?: boolean;
1642
- includeRelevantMemories?: boolean;
1643
- category?: CodeGenCategory;
1644
- metadata?: Record<string, any>;
1645
- autoPush?: AutoPushMode;
1646
- syncChanges?: SyncChangesFromRemote;
1647
- enabledMCPs?: string[];
1648
- sessionMode?: SessionMode;
1649
- queue?: boolean;
1650
- /** Custom agent type to use for this message */
1651
- agentType?: string;
1652
- /** Enable AddQAReview tool for QA PR review branches */
1653
- enableQAReviewTool?: boolean;
1654
- /** Per-message reasoning effort override */
1655
- reasoning?: ReasoningEffort;
1656
- /** @deprecated */
1657
- repair?: boolean;
1658
- /** Force compaction of the conversation before generating the next completion */
1659
- forceCompact?: boolean;
1660
- }
3263
+ export declare const AutoPushModeSchema: z.ZodEnum<{
3264
+ none: "none";
3265
+ "force-push": "force-push";
3266
+ "merge-push": "merge-push";
3267
+ "ff-push": "ff-push";
3268
+ "safe-push": "safe-push";
3269
+ }>;
3270
+ export type AutoPushMode = z.infer<typeof AutoPushModeSchema>;
3271
+ export declare const SyncChangesFromRemoteSchema: z.ZodObject<{
3272
+ remoteBranches: z.ZodOptional<z.ZodEnum<{
3273
+ both: "both";
3274
+ main: "main";
3275
+ ai: "ai";
3276
+ }>>;
3277
+ fastForward: z.ZodOptional<z.ZodEnum<{
3278
+ never: "never";
3279
+ auto: "auto";
3280
+ required: "required";
3281
+ }>>;
3282
+ canPush: z.ZodOptional<z.ZodBoolean>;
3283
+ uncommittedChanges: z.ZodOptional<z.ZodEnum<{
3284
+ fail: "fail";
3285
+ stash: "stash";
3286
+ commit: "commit";
3287
+ }>>;
3288
+ requestRefresh: z.ZodOptional<z.ZodBoolean>;
3289
+ allowUnrelatedHistory: z.ZodOptional<z.ZodBoolean>;
3290
+ resetToBase: z.ZodOptional<z.ZodBoolean>;
3291
+ updateLastCommits: z.ZodOptional<z.ZodBoolean>;
3292
+ }, z.core.$strip>;
3293
+ export type SyncChangesFromRemote = z.infer<typeof SyncChangesFromRemoteSchema>;
3294
+ export declare const GenerateUserMessageSchema: z.ZodObject<{
3295
+ idempotencyKey: z.ZodOptional<z.ZodString>;
3296
+ user: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3297
+ source: z.ZodEnum<{
3298
+ github: "github";
3299
+ gitlab: "gitlab";
3300
+ bitbucket: "bitbucket";
3301
+ azure: "azure";
3302
+ slack: "slack";
3303
+ telegram: "telegram";
3304
+ whatsapp: "whatsapp";
3305
+ teams: "teams";
3306
+ jira: "jira";
3307
+ linear: "linear";
3308
+ }>;
3309
+ userId: z.ZodOptional<z.ZodString>;
3310
+ userName: z.ZodOptional<z.ZodString>;
3311
+ userEmail: z.ZodOptional<z.ZodString>;
3312
+ photoURL: z.ZodOptional<z.ZodString>;
3313
+ builderUserId: z.ZodOptional<z.ZodString>;
3314
+ link: z.ZodOptional<z.ZodString>;
3315
+ role: z.ZodEnum<{
3316
+ user: "user";
3317
+ agent: "agent";
3318
+ }>;
3319
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
3320
+ jobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3321
+ permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3322
+ editCode: "editCode";
3323
+ modifyMcpServers: "modifyMcpServers";
3324
+ modifyProjectSettings: "modifyProjectSettings";
3325
+ createBranches: "createBranches";
3326
+ sendPullRequests: "sendPullRequests";
3327
+ view: "view";
3328
+ }>>>;
3329
+ channelId: z.ZodOptional<z.ZodString>;
3330
+ }, z.core.$strip>, z.ZodObject<{
3331
+ source: z.ZodLiteral<"builder.io">;
3332
+ userId: z.ZodOptional<z.ZodString>;
3333
+ userName: z.ZodOptional<z.ZodString>;
3334
+ userEmail: z.ZodOptional<z.ZodString>;
3335
+ photoURL: z.ZodOptional<z.ZodString>;
3336
+ role: z.ZodEnum<{
3337
+ user: "user";
3338
+ agent: "agent";
3339
+ }>;
3340
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
3341
+ jobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3342
+ permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3343
+ editCode: "editCode";
3344
+ modifyMcpServers: "modifyMcpServers";
3345
+ modifyProjectSettings: "modifyProjectSettings";
3346
+ createBranches: "createBranches";
3347
+ sendPullRequests: "sendPullRequests";
3348
+ view: "view";
3349
+ }>>>;
3350
+ channelId: z.ZodOptional<z.ZodString>;
3351
+ }, z.core.$strip>, z.ZodObject<{
3352
+ source: z.ZodLiteral<"agent">;
3353
+ userId: z.ZodOptional<z.ZodString>;
3354
+ userName: z.ZodOptional<z.ZodString>;
3355
+ userEmail: z.ZodOptional<z.ZodString>;
3356
+ role: z.ZodEnum<{
3357
+ user: "user";
3358
+ agent: "agent";
3359
+ }>;
3360
+ principals: z.ZodOptional<z.ZodArray<z.ZodString>>;
3361
+ jobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3362
+ permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3363
+ editCode: "editCode";
3364
+ modifyMcpServers: "modifyMcpServers";
3365
+ modifyProjectSettings: "modifyProjectSettings";
3366
+ createBranches: "createBranches";
3367
+ sendPullRequests: "sendPullRequests";
3368
+ view: "view";
3369
+ }>>>;
3370
+ channelId: z.ZodOptional<z.ZodString>;
3371
+ }, z.core.$strip>], "source">>;
3372
+ userPrompt: z.ZodString;
3373
+ uiContextPrompt: z.ZodOptional<z.ZodString>;
3374
+ ephemeralUserPrompt: z.ZodOptional<z.ZodString>;
3375
+ displayPrompt: z.ZodOptional<z.ZodString>;
3376
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
3377
+ systemReminders: z.ZodOptional<z.ZodArray<z.ZodObject<{
3378
+ text: z.ZodString;
3379
+ tag: z.ZodOptional<z.ZodString>;
3380
+ ephemeral: z.ZodOptional<z.ZodBoolean>;
3381
+ }, z.core.$strip>>>;
3382
+ includeBaseFiles: z.ZodOptional<z.ZodBoolean>;
3383
+ attachments: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3384
+ type: z.ZodLiteral<"upload">;
3385
+ contentType: z.ZodEnum<{
3386
+ "image/webp": "image/webp";
3387
+ "image/png": "image/png";
3388
+ "image/jpeg": "image/jpeg";
3389
+ "image/gif": "image/gif";
3390
+ "application/pdf": "application/pdf";
3391
+ "application/json": "application/json";
3392
+ "text/plain": "text/plain";
3393
+ }>;
3394
+ name: z.ZodString;
3395
+ dataUrl: z.ZodString;
3396
+ text: z.ZodOptional<z.ZodString>;
3397
+ size: z.ZodNumber;
3398
+ id: z.ZodString;
3399
+ originalUrl: z.ZodOptional<z.ZodString>;
3400
+ ephemeral: z.ZodOptional<z.ZodBoolean>;
3401
+ }, z.core.$strip>, z.ZodObject<{
3402
+ type: z.ZodLiteral<"template">;
3403
+ name: z.ZodString;
3404
+ id: z.ZodNumber;
3405
+ }, z.core.$strip>, z.ZodObject<{
3406
+ type: z.ZodLiteral<"url">;
3407
+ value: z.ZodString;
3408
+ }, z.core.$strip>, z.ZodObject<{
3409
+ type: z.ZodLiteral<"builder">;
3410
+ html: z.ZodString;
3411
+ }, z.core.$strip>, z.ZodObject<{
3412
+ type: z.ZodLiteral<"figma">;
3413
+ html: z.ZodString;
3414
+ }, z.core.$strip>], "type">>>;
3415
+ logsCheckpoint: z.ZodOptional<z.ZodBoolean>;
3416
+ dropAbortedPrompt: z.ZodOptional<z.ZodBoolean>;
3417
+ runValidateCommand: z.ZodOptional<z.ZodBoolean>;
3418
+ modelOverride: z.ZodOptional<z.ZodString>;
3419
+ agentModelOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
3420
+ softContextWindow: z.ZodOptional<z.ZodNumber>;
3421
+ maxCompletions: z.ZodOptional<z.ZodNumber>;
3422
+ isManualContinue: z.ZodOptional<z.ZodBoolean>;
3423
+ includeRelevantMemories: z.ZodOptional<z.ZodBoolean>;
3424
+ category: z.ZodOptional<z.ZodUnion<readonly [z.ZodTemplateLiteral<`repair-${string}`>, z.ZodLiteral<"user-normal">, z.ZodLiteral<"user-figma">, z.ZodLiteral<"user-pdf">, z.ZodLiteral<"user-image">, z.ZodLiteral<"setup-agent">, z.ZodTemplateLiteral<`background-${string}`>, z.ZodTemplateLiteral<`indexing-${string}`>]>>;
3425
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3426
+ autoPush: z.ZodOptional<z.ZodEnum<{
3427
+ none: "none";
3428
+ "force-push": "force-push";
3429
+ "merge-push": "merge-push";
3430
+ "ff-push": "ff-push";
3431
+ "safe-push": "safe-push";
3432
+ }>>;
3433
+ syncChanges: z.ZodOptional<z.ZodObject<{
3434
+ remoteBranches: z.ZodOptional<z.ZodEnum<{
3435
+ both: "both";
3436
+ main: "main";
3437
+ ai: "ai";
3438
+ }>>;
3439
+ fastForward: z.ZodOptional<z.ZodEnum<{
3440
+ never: "never";
3441
+ auto: "auto";
3442
+ required: "required";
3443
+ }>>;
3444
+ canPush: z.ZodOptional<z.ZodBoolean>;
3445
+ uncommittedChanges: z.ZodOptional<z.ZodEnum<{
3446
+ fail: "fail";
3447
+ stash: "stash";
3448
+ commit: "commit";
3449
+ }>>;
3450
+ requestRefresh: z.ZodOptional<z.ZodBoolean>;
3451
+ allowUnrelatedHistory: z.ZodOptional<z.ZodBoolean>;
3452
+ resetToBase: z.ZodOptional<z.ZodBoolean>;
3453
+ updateLastCommits: z.ZodOptional<z.ZodBoolean>;
3454
+ }, z.core.$strip>>;
3455
+ enabledMCPs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3456
+ sessionMode: z.ZodOptional<z.ZodEnum<{
3457
+ normal: "normal";
3458
+ planning: "planning";
3459
+ "deep-research": "deep-research";
3460
+ "auto-planning": "auto-planning";
3461
+ }>>;
3462
+ queue: z.ZodOptional<z.ZodBoolean>;
3463
+ agentType: z.ZodOptional<z.ZodString>;
3464
+ enableQAReviewTool: z.ZodOptional<z.ZodBoolean>;
3465
+ reasoning: z.ZodOptional<z.ZodEnum<{
3466
+ none: "none";
3467
+ low: "low";
3468
+ medium: "medium";
3469
+ high: "high";
3470
+ auto: "auto";
3471
+ minimal: "minimal";
3472
+ xhigh: "xhigh";
3473
+ max: "max";
3474
+ }>>;
3475
+ repair: z.ZodOptional<z.ZodBoolean>;
3476
+ forceCompact: z.ZodOptional<z.ZodBoolean>;
3477
+ }, z.core.$strip>;
3478
+ export type GenerateUserMessage = z.infer<typeof GenerateUserMessageSchema>;
1661
3479
  export interface UserInput {
1662
3480
  userMessage: GenerateUserMessage | undefined;
1663
3481
  userPrompt: string;
@@ -1967,19 +3785,6 @@ export interface MultiRepoOperationResult<T = unknown> {
1967
3785
  message?: string;
1968
3786
  }>;
1969
3787
  }
1970
- export type Permission = "read" | "write" | "list";
1971
- export interface AclEntry {
1972
- action: "allow" | "deny";
1973
- resource: string;
1974
- permissions: Permission[];
1975
- description?: string;
1976
- principals?: string[];
1977
- }
1978
- export interface AclPolicy {
1979
- secrets?: string[];
1980
- entries?: AclEntry[];
1981
- denyDescription?: string;
1982
- }
1983
3788
  export interface AccessResult {
1984
3789
  allowed: boolean;
1985
3790
  message: string;
@@ -2029,13 +3834,6 @@ export interface PrivacyMode {
2029
3834
  mcpServers?: boolean;
2030
3835
  }
2031
3836
  export type Mode = "init-and-launch" | "backup" | "backup-force-full";
2032
- export interface EnvironmentVariable {
2033
- key: string;
2034
- value: string;
2035
- isSecret: boolean;
2036
- placeholder?: boolean;
2037
- explanation?: string;
2038
- }
2039
3837
  export interface FileOverride {
2040
3838
  /**
2041
3839
  * Path where the file should be written.
@@ -2397,31 +4195,6 @@ export interface PushChangesOptions {
2397
4195
  /** If true, verify fast-forward is possible before pushing, fail if not */
2398
4196
  requireFastForward?: boolean;
2399
4197
  }
2400
- export interface SyncChangesFromRemote {
2401
- remoteBranches?: "both" | "main" | "ai";
2402
- fastForward?: "never" | "required" | "auto";
2403
- canPush?: boolean;
2404
- uncommittedChanges?: "stash" | "commit" | "fail";
2405
- requestRefresh?: boolean;
2406
- allowUnrelatedHistory?: boolean;
2407
- /**
2408
- * When true, reset the AI branch hard to the remote feature/base branch instead
2409
- * of merging. This gives a clean slate that exactly matches the checked-out
2410
- * feature branch on remote, avoiding any merge-style conflicts or divergence.
2411
- * Fails clearly if the feature/base branch cannot be determined or is absent
2412
- * from the remote.
2413
- */
2414
- resetToBase?: boolean;
2415
- /**
2416
- * Whether to update the internal "last AI commits" baseline after the sync
2417
- * completes. Defaults to `true` for backwards compatibility.
2418
- *
2419
- * Set to `false` when the caller wants `getChangesReport()` to keep diffing
2420
- * from the pre-sync baseline (e.g. so a downstream prompt can see exactly
2421
- * what changed since the last reset/sync).
2422
- */
2423
- updateLastCommits?: boolean;
2424
- }
2425
4198
  export type PushChangesArgs = PushChangesOptions | boolean;
2426
4199
  export type CodegenApiResult = CodegenApiSuccess | CodegenApiFailure;
2427
4200
  export interface CodegenApiSuccess {
@@ -2660,12 +4433,6 @@ export type MessageUpdateOptions = {
2660
4433
  type: "delete";
2661
4434
  idempotencyKey: string;
2662
4435
  };
2663
- export interface SystemReminderObj {
2664
- text: string;
2665
- tag?: string;
2666
- ephemeral?: boolean;
2667
- }
2668
- export type SystemReminder = string | SystemReminderObj;
2669
4436
  export interface LaunchInitializeSessionOptions {
2670
4437
  sessionId?: string;
2671
4438
  customInstructions?: CustomInstruction[];
@@ -2675,29 +4442,34 @@ export interface LaunchInitializeSessionOptions {
2675
4442
  /**
2676
4443
  * Request for generating a commit message via LLM
2677
4444
  */
2678
- export interface CommitMessageRequest {
2679
- /** Git diff from previous commit */
2680
- diff: string;
2681
- /** User messages sent during AI work */
2682
- userMessages: string[];
2683
- /** Last 10 commits from main branch for style reference */
2684
- recentCommits: string[];
2685
- /** Whether to generate a long commit message */
2686
- longCommit?: boolean;
2687
- /** Project ID for fetching project-specific commit instructions */
2688
- projectId?: string;
2689
- }
4445
+ export declare const CommitMessageRequestSchema: z.ZodObject<{
4446
+ diff: z.ZodString;
4447
+ userMessages: z.ZodArray<z.ZodString>;
4448
+ recentCommits: z.ZodArray<z.ZodString>;
4449
+ longCommit: z.ZodOptional<z.ZodBoolean>;
4450
+ projectId: z.ZodOptional<z.ZodString>;
4451
+ }, z.core.$strip>;
4452
+ export type CommitMessageRequest = z.infer<typeof CommitMessageRequestSchema>;
2690
4453
  /**
2691
4454
  * Response from commit message generation
2692
4455
  */
2693
- export interface CommitMessageResponse {
2694
- /** Full commit message */
2695
- message: string;
2696
- /** First line (50-72 chars) - the commit title */
2697
- title: string;
2698
- /** Optional extended description */
2699
- body?: string;
2700
- }
4456
+ export declare const CommitMessageResponseSchema: z.ZodObject<{
4457
+ message: z.ZodString;
4458
+ title: z.ZodString;
4459
+ body: z.ZodOptional<z.ZodString>;
4460
+ }, z.core.$strip>;
4461
+ export type CommitMessageResponse = z.infer<typeof CommitMessageResponseSchema>;
4462
+ /**
4463
+ * Request body for `POST /codegen/model-permission-response`. Sent by the
4464
+ * frontend to approve or deny a model permission prompt.
4465
+ */
4466
+ export declare const ModelPermissionResponseRequestSchema: z.ZodObject<{
4467
+ sessionId: z.ZodString;
4468
+ toolId: z.ZodString;
4469
+ approved: z.ZodBoolean;
4470
+ reason: z.ZodOptional<z.ZodString>;
4471
+ }, z.core.$strip>;
4472
+ export type ModelPermissionResponseRequest = z.infer<typeof ModelPermissionResponseRequestSchema>;
2701
4473
  export interface TodoItem {
2702
4474
  content: string;
2703
4475
  status: "pending" | "in_progress" | "completed";