@builder.io/ai-utils 0.58.1 → 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;
@@ -110,6 +115,15 @@ export interface CustomAgentDefinition {
110
115
  maxCompletions?: number;
111
116
  /** Default reasoning effort level for this agent type. Overrides the session default. */
112
117
  reasoning?: ReasoningEffort;
118
+ /**
119
+ * Default {@link SyncChangesFromRemote} policy applied to messages received
120
+ * by this agent when the message itself does not specify `syncChanges`.
121
+ * Only consulted at the session/sub-agent level (i.e. when the session was
122
+ * spawned with `agentType` equal to this agent's name). Use cases include
123
+ * always resetting the working branch to its base before each new message
124
+ * (e.g. the setup-project agent).
125
+ */
126
+ defaultSyncChanges?: SyncChangesFromRemote;
113
127
  /**
114
128
  * Where this agent was discovered. Drives precedence on name collision:
115
129
  * `project` > `user` > `plugin`. Set by the discovery loader, not by the
@@ -123,260 +137,422 @@ export interface CustomAgentDefinition {
123
137
  */
124
138
  pluginName?: string;
125
139
  }
126
- export type CodeGenFramework = "react" | "html" | "mitosis" | "react-native" | "angular" | "vue" | "svelte" | "qwik" | "solid" | "marko" | "swiftui" | "jetpack-compose" | "flutter";
127
- export type CodeGenStyleLibrary = "tailwind" | "tailwind-precise" | "emotion" | "styled-components" | "styled-jsx" | "react-native" | undefined;
128
- export type CompletionStopReason = "max_tokens" | "stop_sequence" | "tool_use" | "end_turn" | "content_filter" | "error" | "aborted" | "pause_turn" | "refusal" | "compaction" | "model_context_window_exceeded" | null;
129
- export interface ReadToolInput {
130
- /**
131
- * Path of the file. Accepts a path relative to the project working directory,
132
- * an absolute path (e.g. `/Users/.../skill.md`), or a tilde path
133
- * (e.g. `~/.builder/skills/.../SKILL.md`). User-level Builder state under
134
- * `~/.builder/**` is allowed by default for plugin operations; other absolute
135
- * paths require an explicit ACL policy.
136
- */
137
- file_path: string;
138
- offset?: number | null;
139
- limit?: number | null;
140
- }
141
- export interface GlobSearchToolInput {
142
- pattern: string;
143
- }
144
- export interface GrepSearchToolInput {
145
- query: string;
146
- include_glob?: string | null;
147
- exclude_glob?: string | null;
148
- case_sensitive?: boolean | null;
149
- }
150
- export interface SkillToolInput {
151
- skill: string;
152
- /** Optional invocation arguments; forwarded with the skill body in the tool result. */
153
- args?: string | null;
154
- }
155
- export interface GetRuleToolInput {
156
- name: string;
157
- }
158
- export interface GetStyleInspirationToolInput {
159
- url: string;
160
- }
161
- export interface GetBuildOutputToolInput {
162
- }
163
- export interface DevServerControlInput {
164
- restart?: boolean | null;
165
- get_logs?: boolean | null;
166
- set_proxy_port?: number | null;
167
- set_dev_command?: string | null;
168
- set_and_run_setup_command?: string | null;
169
- set_env_variable?: [string, string] | null;
170
- }
171
- export interface DevServerLogsInput {
172
- }
173
- export interface DevServerRestartInput {
174
- }
175
- export interface BashToolInput {
176
- command?: string | null;
177
- timeout?: number | null;
178
- description?: string | null;
179
- restart?: boolean | null;
180
- }
181
- export interface PowerShellToolInput {
182
- command?: string | null;
183
- timeout?: number | null;
184
- description?: string | null;
185
- restart?: boolean | null;
186
- }
187
- export interface WebSearchToolInput {
188
- query: string;
189
- }
190
- export interface WriteFileInput {
191
- title: string;
192
- /**
193
- * Path of the file. Accepts a path relative to the project working directory,
194
- * an absolute path, or a tilde path (e.g. `~/.builder/...`). User-level Builder
195
- * state under `~/.builder/**` is allowed by default; other absolute paths
196
- * require an explicit ACL policy.
197
- */
198
- file_path: string;
199
- content: string;
200
- }
201
- export interface SearchReplaceInput {
202
- title: string;
203
- /**
204
- * Path of the file. Accepts a path relative to the project working directory,
205
- * an absolute path, or a tilde path (e.g. `~/.builder/...`). User-level Builder
206
- * state under `~/.builder/**` is allowed by default; other absolute paths
207
- * require an explicit ACL policy.
208
- */
209
- file_path: string;
210
- old_str: string;
211
- new_str: string;
212
- replace_all?: boolean;
213
- apply_with_error?: boolean;
214
- }
215
- export interface MultiSearchReplaceInput {
216
- title: string;
217
- /**
218
- * Path of the file. Accepts a path relative to the project working directory,
219
- * an absolute path, or a tilde path (e.g. `~/.builder/...`). User-level Builder
220
- * state under `~/.builder/**` is allowed by default; other absolute paths
221
- * require an explicit ACL policy.
222
- */
223
- file_path: string;
224
- edits: {
225
- old_str: string;
226
- new_str: string;
227
- replace_all?: boolean;
228
- }[];
229
- apply_with_error?: boolean | null;
230
- }
231
- export interface FindMediaToolInput {
232
- query: string;
233
- type: "image" | "video";
234
- orientation?: "landscape" | "portrait" | "square" | null;
235
- hex_color?: string | null;
236
- }
237
- export interface MediaToolInput {
238
- query: string;
239
- type: "image" | "video" | "gen-image";
240
- orientation?: "landscape" | "portrait" | "square" | null;
241
- hex_color?: string | null;
242
- /** Reference image URLs for AI image generation (only used with type: "gen-image") */
243
- input_image_urls?: string[] | null;
244
- }
245
- export interface MemoryToolInput {
246
- content: string;
247
- when: string;
248
- /** Glob pattern for file-based memory retrieval. Should be specific (e.g., "src/components/Button.tsx") rather than broad (e.g., "*.tsx"). */
249
- category: string;
250
- glob?: string;
251
- importance?: number;
252
- glob_auto_include?: boolean;
253
- }
254
- export interface SearchMemoriesToolInput {
255
- query: string;
256
- limit?: number;
257
- minSimilarity?: number;
258
- }
259
- export interface ScoreMemoriesToolInput {
260
- outcome: "worked" | "failed" | "partial" | "unknown";
261
- memory_scores: Record<string, "worked" | "failed" | "partial" | "unknown">;
262
- }
263
- export interface AskUserQuestion {
264
- question: string;
265
- header: string;
266
- options: {
267
- label: string;
268
- description: string;
269
- }[];
270
- multiSelect?: boolean;
271
- }
272
- export interface AskUserQuestionToolInput {
273
- questions: AskUserQuestion[];
274
- answers?: Record<string, string | string[]>;
275
- }
276
- export interface AgentToolInput {
277
- description: string;
278
- prompt: string;
279
- subagent_type?: string;
280
- resume?: string;
281
- origin_channel_id?: string;
282
- attachmentUrls?: string[];
283
- }
284
- export interface RevertToolInput {
285
- checkpoint_id: string;
286
- }
287
- export interface TodoReadToolInput {
288
- }
289
- export interface RunningAgentsToolInput {
290
- }
291
- export interface TodoWriteToolInput {
292
- mode: "replace" | "patch";
293
- todos: {
294
- content: string;
295
- status: "pending" | "in_progress" | "completed";
296
- id: string;
297
- }[];
298
- }
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>;
299
400
  export type TaskStatus = "pending" | "in_progress" | "completed";
300
- export interface TaskCreateToolInput {
301
- subject: string;
302
- description: string;
303
- metadata?: Record<string, unknown>;
304
- }
305
- export interface TaskUpdateToolInput {
306
- taskId: string;
307
- subject?: string;
308
- description?: string;
309
- status?: TaskStatus | "deleted";
310
- owner?: string;
311
- addBlocks?: string[];
312
- addBlockedBy?: string[];
313
- metadata?: Record<string, unknown>;
314
- }
315
- export interface TaskListToolInput {
316
- }
317
- export interface BuilderEditToolInput {
318
- filePath: string;
319
- old_str: string;
320
- new_str: string;
321
- }
322
- export interface GetScreenshotToolInput {
323
- href?: string;
324
- selector?: string;
325
- width?: number;
326
- height?: number;
327
- }
328
- export interface NavigatePreviewToolInput {
329
- href: string;
330
- }
331
- export interface WebFetchToolInput {
332
- url: string;
333
- prompt?: string;
334
- include_styles?: boolean;
335
- }
336
- export interface ExplorationMetadataToolInput {
337
- category?: "reusable_knowledge" | "one_off" | "bad_quality";
338
- gif_id?: string;
339
- timeline_id?: string;
340
- recording_id?: string;
341
- important_files: {
342
- file_path: string;
343
- relevance?: "high" | "medium" | "low";
344
- offset?: number;
345
- limit?: number;
346
- }[];
347
- }
348
- export interface EnterPlanModeToolInput {
349
- }
350
- export interface ExitPlanModeToolInput {
351
- plan: string;
352
- handled?: boolean;
353
- }
354
- export interface ReadMcpResourceToolInput {
355
- uri: string;
356
- serverName?: string;
357
- }
358
- export interface RecordFrameToolInput {
359
- title: string;
360
- frame: "last-image";
361
- category?: TimelineEventCategory;
362
- description?: string;
363
- }
364
- export type TestOutcome = "succeeded" | "couldnt_verify" | "failed" | "other";
365
- export interface ReportTestOutcomeToolInput {
366
- outcome: TestOutcome;
367
- summary: string;
368
- details?: string;
369
- test_case_id?: string;
370
- evidence_frame_count?: number;
371
- failure_category?: TestCaseFailureCategory;
372
- failure_detail?: string;
373
- console_errors?: string;
374
- network_failures?: string;
375
- steps_attempted?: string;
376
- urls_tested?: string[];
377
- }
378
- export type TestCaseFailureCategory = "env_issue" | "creds_missing" | "needs_user_input" | "server_not_ready" | "feature_not_reachable" | "timeout" | "assertion_failed" | "unexpected_error" | "not_applicable" | "escalated";
379
- 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>;
380
556
  export interface TimelineEvent {
381
557
  id: number;
382
558
  timestamp: number;
@@ -452,457 +628,1360 @@ export interface TimelineSubmissionMetadata {
452
628
  /**
453
629
  * Configuration values proposed by the setup analyzer agent
454
630
  */
455
- export interface SetupAnalysisValues {
456
- projectOverview: {
457
- framework: string | null;
458
- packageManager: "npm" | "yarn" | "pnpm" | "bun" | null;
459
- isMonorepo: boolean;
460
- detectedLanguage: "typescript" | "javascript" | null;
461
- };
462
- rootDirectory: {
463
- path: string;
464
- reason: string;
465
- } | null;
466
- installCommand: {
467
- command: string;
468
- reason: string;
469
- } | null;
470
- runtimeDependencies: Array<{
471
- tool: string;
472
- version: string;
473
- 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";
474
753
  }>;
475
- devServer: {
476
- command: string;
477
- url: string;
478
- port: number;
479
- reason: string;
480
- } | null;
481
- environmentVariables: Array<{
482
- key: string;
483
- description: string;
484
- isRequired: boolean;
485
- isSecret: boolean;
486
- defaultValue: string | null;
487
- 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";
488
792
  }>;
489
- validationScript: {
490
- command: string;
491
- reason: string;
492
- } | null;
493
- npmrcContents: string | null;
494
- hasHotModuleReload: {
495
- value: boolean;
496
- reason: string;
497
- } | null;
498
- }
499
- export interface ProposeConfigToolInput {
500
- config: SetupAnalysisValues;
501
- message?: string;
502
- }
503
- export type SetupValueField = "installCommand" | "devServer" | "validationScript" | "environmentVariables";
504
- export interface UpdateSetupValueToolInput {
505
- field: SetupValueField;
506
- value: {
507
- command?: string;
508
- url?: string;
509
- port?: number;
510
- environmentVariables?: Array<{
511
- key: string;
512
- description?: string;
513
- isRequired?: boolean;
514
- isSecret?: boolean;
515
- 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";
516
937
  }>;
517
- };
518
- reason: string;
519
- }
520
- export type ExitState = "verified" | "no-frontend" | "empty-project" | "mobile-project" | "user-question" | "code-change-required" | "other" | "started" | "failed";
521
- export interface ExitToolInput {
522
- state: ExitState;
523
- summary: string;
524
- questions?: Array<{
525
- question: string;
526
- context: string;
527
- header?: string;
528
- /** 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. */
529
- type?: "select" | "multi-select" | "text";
530
- /** Placeholder text for text-type questions (e.g., "Enter your API key", "https://localhost:3000") */
531
- placeholder?: string;
532
- options?: Array<{
533
- label: string;
534
- description: string;
938
+ devState: z.ZodEnum<{
939
+ failed: "failed";
940
+ running: "running";
941
+ stopped: "stopped";
942
+ starting: "starting";
943
+ unset: "unset";
535
944
  }>;
536
- }>;
537
- isMonorepo?: boolean;
538
- isMicrofrontend?: boolean;
539
- setupNeedsCredentials?: boolean;
540
- devServerNeedsCredentials?: boolean;
541
- needsVPN?: boolean;
542
- autoReload?: boolean;
543
- /** A human-readable description of what the project is about (not tech specs), used by fusion to route requests to the right project */
544
- projectDescription?: string;
545
- }
546
- /**
547
- * Configuration proposed by the configuration agent, stored in Firebase
548
- */
549
- export interface ProposedConfig {
550
- id: string;
551
- projectId: string;
552
- branchName: string;
553
- createdAt: number;
554
- updatedAt: number;
555
- ownerId: string;
556
- state: ExitState;
557
- summary: string;
558
- questions?: Array<{
559
- question: string;
560
- context: string;
561
- whatYouTried?: string;
562
- header?: string;
563
- /** Question type: "select" for single-choice, "multi-select" for multiple choices, "text" for free-form input */
564
- type?: "select" | "multi-select" | "text";
565
- /** Placeholder text for text-type questions */
566
- placeholder?: string;
567
- options?: Array<{
568
- label: string;
569
- 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";
570
952
  }>;
571
- }>;
572
- configuration: {
573
- setupCommand: {
574
- value: string | undefined;
575
- verified: boolean;
576
- elapsed?: number;
577
- };
578
- setupDependencies: {
579
- value: SetupDependency[] | undefined;
580
- verified: boolean;
581
- };
582
- devCommand: {
583
- value: string | undefined;
584
- verified: boolean;
585
- elapsed?: number;
586
- };
587
- devServer: {
588
- value: string | undefined;
589
- verified: boolean;
590
- elapsed?: number;
591
- };
592
- validateCommand: {
593
- value: string | undefined;
594
- verified: boolean;
595
- elapsed?: number;
596
- };
597
- appOrigin: {
598
- value: string | undefined;
599
- verified: boolean;
600
- };
601
- defaultOrigin: {
602
- value: string | undefined;
603
- verified: boolean;
604
- };
605
- environmentVariables: {
606
- value: EnvironmentVariable[] | undefined;
607
- verified: boolean;
608
- };
609
- autoDetectDevServer: {
610
- value: boolean | undefined;
611
- verified: boolean;
612
- };
613
- autoDetectDevServerPatterns: {
614
- value: string[] | undefined;
615
- verified: boolean;
616
- };
617
- hasHotModuleReload: {
618
- value: boolean | undefined;
619
- reason: string | undefined;
620
- };
621
- };
622
- sessionId: string;
623
- orchestratorStates: {
624
- setupState: SetupCommandState;
625
- devState: DevCommandState;
626
- httpServerState: HttpServerState;
627
- validateState: ValidateCommandState;
628
- };
629
- peakDiskUsage?: number;
630
- peakMemoryUsage?: number;
631
- screenshotUrl?: string;
632
- isMonorepo?: boolean;
633
- isMicrofrontend?: boolean;
634
- setupNeedsCredentials?: boolean;
635
- devServerNeedsCredentials?: boolean;
636
- projectDescription?: string;
637
- cost?: number;
638
- durationMs?: number;
639
- needsVPN?: boolean;
640
- autoReload?: boolean;
641
- }
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>;
642
977
  /**
643
978
  * Parameters for proposing a configuration to the backend
644
979
  */
645
- export interface ProposeConfigParams {
646
- projectId: string;
647
- branchName: string;
648
- state: ExitState;
649
- summary: string;
650
- questions?: Array<{
651
- question: string;
652
- context: string;
653
- whatYouTried?: string;
654
- header?: string;
655
- options?: Array<{
656
- label: string;
657
- description: string;
658
- }>;
659
- 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";
660
993
  }>;
661
- configuration: ProposedConfig["configuration"];
662
- sessionId: string;
663
- orchestratorStates: ProposedConfig["orchestratorStates"];
664
- peakDiskUsage?: number;
665
- peakMemoryUsage?: number;
666
- screenshotUrl?: string;
667
- isMonorepo?: boolean;
668
- isMicrofrontend?: boolean;
669
- setupNeedsCredentials?: boolean;
670
- devServerNeedsCredentials?: boolean;
671
- needsVPN?: boolean;
672
- projectDescription?: string;
673
- autoReload?: boolean;
674
- }
675
- export interface VerifySetupCommandToolInput {
676
- command: string;
677
- dependencies?: Array<{
678
- tool: string;
679
- 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";
680
1172
  }>;
681
- }
682
- export interface VerifyDevCommandToolInput {
683
- command: string;
684
- }
685
- export interface VerifyDevServerToolInput {
686
- autoDetect: boolean;
687
- autoDetectPattern?: string;
688
- hardcodedUrl?: string;
689
- appOrigin: string;
690
- defaultOrigin?: string;
691
- }
692
- export interface VerifyValidateCommandToolInput {
693
- command: string;
694
- timeout?: number;
695
- }
696
- export interface ProposeEnvVariableToolInput {
697
- key: string;
698
- value: string;
699
- secret?: boolean;
700
- }
701
- export interface SetEnvVariableToolInput {
702
- key: string;
703
- value: string;
704
- secret?: boolean;
705
- placeholder?: boolean;
706
- explanation?: string;
707
- }
708
- export interface SendMessageToolInput {
709
- channel_id: string;
710
- markdown: string;
711
- status: "starting" | "question" | "will-follow-up" | "done:success" | "done:error";
712
- loading_message?: string;
713
- /**
714
- * When true, send the response as a voice message using text-to-speech.
715
- * Only supported for Telegram channels.
716
- *
717
- * Only set to true when the user's original message was a voice/audio
718
- * message (look for "[Voice message transcription]" or "[Audio" markers),
719
- * the channel is Telegram, and the response is short and conversational
720
- * with no URLs, code, lists, or other content that doesn't translate to audio.
721
- * Default to false (text) for all text-originated messages.
722
- */
723
- voice_response?: boolean;
724
- /**
725
- * Builder.io user ID this message is from / should be attributed to. Only
726
- * allowed when channel_id is 'builder/branch/{project_id}/{branch_name}'.
727
- * When set, the message is delivered to the target branch as coming from
728
- * this user (role 'user') instead of from the agent. Use whenever the
729
- * message represents user feedback/intent that should be assigned to
730
- * someone even if it was composed, summarized, or merged from multiple
731
- * people.
732
- */
733
- from_user_id?: string;
734
- }
735
- export interface SpawnBranchToolInput {
736
- project_id: string;
737
- message: string;
738
- builder_user_id?: string;
739
- hidden?: boolean;
740
- origin_channel_id?: string;
741
- session_mode?: "normal" | "planning" | "deep-research";
742
- model?: "auto" | "opus" | "sonnet" | "haiku";
743
- attachment_urls?: string[];
744
- git_base_branch?: string;
745
- auto_archive_on_idle?: boolean;
746
- }
747
- export interface CreateProjectToolInput {
748
- repo_url: string;
749
- name?: string;
750
- builder_user_id: string;
751
- origin_channel_id?: string;
752
- initial_message?: string;
753
- }
754
- export interface GetAvailableReposToolInput {
755
- }
756
- export interface ReadBranchToolInput {
757
- project_id: string;
758
- branch_name: string;
759
- }
760
- export interface ArchiveBranchToolInput {
761
- project_id: string;
762
- branch_name: string;
763
- builder_user_id: string;
764
- reason?: string;
765
- }
766
- 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>;
767
1228
  /** Comment for PR review - used by SubmitPRReview */
768
- export interface PRReviewComment {
769
- file_path: string;
770
- line: number;
771
- start_line?: number;
772
- /**
773
- * Diff side. RIGHT (default) = NEW file (added/context). LEFT = OLD file
774
- * (removed/context). Use LEFT only when commenting on deleted code with
775
- * no semantically related new-side anchor.
776
- */
777
- side?: "LEFT" | "RIGHT";
778
- title: string;
779
- body: string;
780
- severity: ReviewSeverity;
781
- debugInfo?: string;
782
- gif_id?: string;
783
- }
784
- 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>;
785
1254
  /** SubmitPRReview - Fast code review without recording */
786
- export interface SubmitPRReviewToolInput {
787
- summary: string;
788
- comments?: PRReviewComment[];
789
- risk_level?: ReviewSeverity;
790
- verdict?: ReviewVerdict;
791
- }
792
- export interface ResolveQACommentsToolInput {
793
- thread_node_ids: string[];
794
- }
795
- export interface ReportUIIssueToolInput {
796
- title: string;
797
- description: string;
798
- debugInfo?: string;
799
- }
800
- export interface ReportIssueToolInput {
801
- file_path: string;
802
- line: number;
803
- start_line?: number;
804
- title: string;
805
- severity: ReviewSeverity;
806
- body: string;
807
- }
808
- export interface CodeGenToolMap {
809
- Read: ReadToolInput;
810
- Write: WriteFileInput;
811
- Edit: SearchReplaceInput;
812
- ReadRule: GetRuleToolInput;
813
- Skill: SkillToolInput;
814
- GetStyleInspiration: GetStyleInspirationToolInput;
815
- GetScreenshot: GetScreenshotToolInput;
816
- NavigatePreview: NavigatePreviewToolInput;
817
- MultiEdit: MultiSearchReplaceInput;
818
- FindMedia: FindMediaToolInput;
819
- Media: MediaToolInput;
820
- AddMemory: MemoryToolInput;
821
- SearchMemories: SearchMemoriesToolInput;
822
- ScoreMemories: ScoreMemoriesToolInput;
823
- Bash: BashToolInput;
824
- PowerShell: PowerShellToolInput;
825
- WebSearch: WebSearchToolInput;
826
- AskUserQuestion: AskUserQuestionToolInput;
827
- Agent: AgentToolInput;
828
- Grep: GrepSearchToolInput;
829
- Glob: GlobSearchToolInput;
830
- DevServerControl: DevServerControlInput;
831
- DevServerLogs: DevServerLogsInput;
832
- DevServerRestart: DevServerRestartInput;
833
- Revert: RevertToolInput;
834
- TodoRead: TodoReadToolInput;
835
- TodoWrite: TodoWriteToolInput;
836
- TaskCreate: TaskCreateToolInput;
837
- TaskUpdate: TaskUpdateToolInput;
838
- TaskList: TaskListToolInput;
839
- BuilderEdit: BuilderEditToolInput;
840
- WebFetch: WebFetchToolInput;
841
- ExplorationMetadata: ExplorationMetadataToolInput;
842
- EnterPlanMode: EnterPlanModeToolInput;
843
- ExitPlanMode: ExitPlanModeToolInput;
844
- ReadMcpResource: ReadMcpResourceToolInput;
845
- RecordFrame: RecordFrameToolInput;
846
- SubmitPRReview: SubmitPRReviewToolInput;
847
- ProposeConfig: ProposeConfigToolInput;
848
- UpdateSetupValue: UpdateSetupValueToolInput;
849
- Exit: ExitToolInput;
850
- ResolveQAComments: ResolveQACommentsToolInput;
851
- GetLastBrowserTest: GetLastBrowserTestToolInput;
852
- ReportUIIssue: ReportUIIssueToolInput;
853
- ReportIssue: ReportIssueToolInput;
854
- ReportTestOutcome: ReportTestOutcomeToolInput;
855
- VerifySetupCommand: VerifySetupCommandToolInput;
856
- VerifyDevCommand: VerifyDevCommandToolInput;
857
- VerifyDevServer: VerifyDevServerToolInput;
858
- VerifyValidateCommand: VerifyValidateCommandToolInput;
859
- ProposeEnvVariable: ProposeEnvVariableToolInput;
860
- SetEnvVariable: SetEnvVariableToolInput;
861
- SendMessage: SendMessageToolInput;
862
- SpawnBranch: SpawnBranchToolInput;
863
- CreateProject: CreateProjectToolInput;
864
- GetAvailableRepos: GetAvailableReposToolInput;
865
- ReadBranch: ReadBranchToolInput;
866
- ArchiveBranch: ArchiveBranchToolInput;
867
- RunningAgents: RunningAgentsToolInput;
868
- IDEDiagnostics: IDEDiagnosticsToolInput;
869
- EscalateToPlanner: EscalateToPlanner;
870
- PullPrototype: PullPrototypeToolInput;
871
- ConnectMCP: ConnectMCPToolInput;
872
- EnsurePR: EnsurePRToolInput;
873
- }
874
- export interface EnsurePRToolInput {
875
- project_id: string;
876
- branch_name: string;
877
- }
878
- export interface EscalateToPlanner {
879
- /** What's blocking execution */
880
- issue: string;
881
- /** What was tried before escalating */
882
- steps_attempted: string;
883
- /** Current browser URL */
884
- current_url: string;
885
- /** Which test case is blocked */
886
- test_case_id: string;
887
- }
888
- export interface GetLastBrowserTestToolInput {
889
- }
890
- export interface ConnectMCPToolInput {
891
- /** Human-readable name of the MCP service, e.g. "Jira", "Linear", "Sentry" */
892
- name: string;
893
- /** Remote MCP endpoint URL. When omitted, discovery is performed for the named service. */
894
- url?: string;
895
- }
896
- 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>;
897
1971
  export type AllCodeGenTools = CodeGenTools | "web_search";
898
- export type SessionMode = "planning" | "normal" | "auto-planning" | "deep-research";
899
- export type CodeGenMode = "quality" | "quality-v4"
900
- /**
901
- * @deprecated Use `quality-v4` instead. Kept for backwards compatibility
902
- * with older dev-tools clients in the wild that may still request this mode
903
- * for sub-agents. New code should not produce this value.
904
- */
905
- | "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>;
906
1985
  /**
907
1986
  * When a queued message gets picked up by the scheduler.
908
1987
  *
@@ -961,127 +2040,773 @@ export declare const DEFAULT_QUEUE_BEHAVIOR: QueueBehavior;
961
2040
  /** True for any schedule that aborts the in-flight run on enqueue. */
962
2041
  export declare function isInterruptSchedule(schedule: QueueSchedule): boolean;
963
2042
  export declare function normalizeQueueMode(mode: QueueMode | undefined): QueueBehavior;
964
- 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"];
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"];
965
2044
  export type BaseCodeGenPosition = (typeof BASE_CODEGEN_POSITIONS)[number];
966
- export type CodeGenPosition = BaseCodeGenPosition | `${BaseCodeGenPosition}-agent`;
967
- export interface RepoIndexingConfig {
968
- designSystems: string[];
969
- }
970
- export interface LocalMCPTools {
971
- name: string;
972
- description?: string;
973
- inputSchema?: any;
974
- serverName: string;
975
- }
976
- export type CodeGenCategory = `repair-${string}` | `user-normal` | `user-figma` | `user-pdf` | `user-image` | `setup-agent` | `background-${string}` | `indexing-${string}`;
977
- export interface CodeGenInputOptions {
978
- position: CodeGenPosition;
979
- eventName?: string;
980
- sessionId: string;
981
- codeGenMode?: CodeGenMode;
982
- sessionMode?: SessionMode;
983
- url?: string;
984
- diffActions?: boolean;
985
- planningPrompt?: boolean;
986
- customInstructions?: CustomInstruction[];
987
- customAgents?: CustomAgentInfo[];
988
- systemPromptOverride?: string | string[];
989
- userPrompt?: string;
990
- systemReminders?: SystemReminder[];
991
- ephemeralUserPrompt?: string;
992
- uiContextPrompt?: string;
993
- displayUserPrompt?: string;
994
- files?: ProjectFile[];
995
- rerankFiles?: number;
996
- toolResults?: ContentMessageItemToolResult[];
997
- attachments?: Attachment[];
998
- beforeCommit?: GitSnapshot;
999
- workingDirectory?: string;
1000
- includeRelevantMemories?: boolean;
1001
- encryptKey?: string;
1002
- modelOverride?: string;
1003
- errorIfHadCompaction?: boolean;
1004
- softContextWindow?: number;
1005
- promptVersion?: "v1" | "v2" | "v3";
1006
- reasoning?: ReasoningEffort;
1007
- redactUserMessages?: boolean;
1008
- redactLLMMessages?: boolean;
1009
- environmentVariables?: EnvironmentVariable[];
1010
- skipCommandSecurity?: boolean;
1011
- builderContent?: BuilderContent;
1012
- framework?: CodeGenFramework;
1013
- styleLibrary?: CodeGenStyleLibrary;
1014
- typescript?: boolean;
1015
- userContext?: UserContext;
1016
- aclPolicy?: AclPolicy;
1017
- repoIndexingConfig?: RepoIndexingConfig;
1018
- recommendedRoot?: string;
1019
- enabledTools?: CodeGenTools[];
1020
- enabledMCPs?: string[];
1021
- skipFileDiff?: boolean;
1022
- /**
1023
- * When true, the agent should interrupt its current task to handle this
1024
- * message immediately, rather than finishing the current task first.
1025
- */
1026
- interruptActiveTask?: boolean;
1027
- /**
1028
- * Local MCP tool definitions from stdio servers (CLI-side only)
1029
- * These tools will be executed on the client side and passed through from the server
1030
- */
1031
- localMCPTools?: LocalMCPTools[];
1032
- /**
1033
- * Indicates whether the codegen is running in local mode (local filesystem)
1034
- * vs cloud/container mode. Used to determine git auto-commit behavior.
1035
- */
1036
- 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> & {
1037
2803
  /**
1038
- * Optional factory function to wrap the MCP client with custom behavior
1039
- * 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.
1040
2806
  * @internal
1041
2807
  */
1042
2808
  _mcpClientWrapperFactory?: (realClient: any) => any;
1043
- maxAgentLoops?: number;
1044
- maxAgentTiming?: number;
1045
- /**
1046
- * Maximum output tokens allowed in the LLM response. This will set the maximum
1047
- * token output for the LLM.
1048
- */
1049
- maxTokens?: number;
1050
- maxPages?: number;
1051
- autoContinue?: number;
1052
- isManualContinue?: boolean;
1053
- llmSuggestions?: boolean;
1054
- conclusionText?: boolean;
1055
- mcpServers?: boolean;
1056
- pingEvents?: boolean;
1057
- forceCompact?: boolean;
1058
- hadPagination?: boolean;
1059
- category?: CodeGenCategory;
1060
- metadata?: Record<string, any>;
1061
- searchResponse?: any | null;
1062
- prettierConfig?: PrettierOptions;
1063
- role?: "user" | "agent";
1064
- user?: UserSource;
1065
- projectId?: string;
1066
- branchName?: string;
1067
- repoHash?: string;
1068
- repoBranch?: string;
1069
- /** Immediate parent session id when this completion runs inside a sub-agent. */
1070
- parentSessionId?: string;
1071
- /**
1072
- * Root session of the agent tree. Sub-agents inherit this from their parent
1073
- * so cost rolls up to the root in one hop, regardless of nesting depth.
1074
- */
1075
- mainSessionId?: string;
1076
- /** @deprecated */
1077
- prevId?: string;
1078
- /** @deprecated */
1079
- vcpId?: string;
1080
- /** @deprecated */
1081
- repair?: boolean;
1082
- /** @deprecated */
1083
- systemReminderPrompt?: string;
1084
- }
2809
+ };
1085
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";
1086
2811
  export interface CodegenUsage {
1087
2812
  total: number;
@@ -1255,6 +2980,7 @@ export interface GenerateCompletionStepDone {
1255
2980
  usage: CodegenUsage | undefined;
1256
2981
  url?: string;
1257
2982
  promptVersion: string | undefined;
2983
+ planPath: string | undefined;
1258
2984
  stopReason: CompletionStopReason;
1259
2985
  hasChanges: boolean;
1260
2986
  }
@@ -1493,14 +3219,6 @@ export interface DiagnosticEntry {
1493
3219
  line: number;
1494
3220
  source: string | null;
1495
3221
  }
1496
- export interface IDEDiagnosticsToolInput {
1497
- file_path?: string;
1498
- }
1499
- export interface PullPrototypeToolInput {
1500
- url: string;
1501
- project_id?: string;
1502
- branch_name?: string;
1503
- }
1504
3222
  export interface DiagnosticsResponse {
1505
3223
  ideName: string;
1506
3224
  diagnostics: DiagnosticEntry[];
@@ -1542,80 +3260,222 @@ export interface ApplyActionsResult {
1542
3260
  content?: string;
1543
3261
  oldContent?: string;
1544
3262
  }
1545
- export type UserSourcePermission = "editCode" | "modifyMcpServers" | "modifyProjectSettings" | "createBranches" | "sendPullRequests" | "view";
1546
- export interface UserSourceBase {
1547
- role: "user" | "agent";
1548
- principals?: string[];
1549
- jobs?: string[];
1550
- permissions?: UserSourcePermission[];
1551
- channelId?: string;
1552
- }
1553
- /** All integration sources: Slack, Teams, Jira, Linear, and git providers (GitHub, GitLab, Azure, Bitbucket). */
1554
- export interface UserSourceOther extends UserSourceBase {
1555
- source: "slack" | "telegram" | "whatsapp" | "teams" | "jira" | "linear" | "github" | "gitlab" | "azure" | "bitbucket";
1556
- /** User ID from the external platform (Slack user ID, GitHub user id, etc.) */
1557
- userId?: string;
1558
- userName?: string;
1559
- userEmail?: string;
1560
- photoURL?: string;
1561
- /** Resolved Builder user ID for attribution/credits */
1562
- builderUserId?: string;
1563
- /** Optional link (e.g. comment/PR URL) for git provider sources */
1564
- link?: string;
1565
- }
1566
- export interface UserSourceBuilder extends UserSourceBase {
1567
- source: "builder.io";
1568
- userId?: string;
1569
- userName?: string;
1570
- userEmail?: string;
1571
- photoURL?: string;
1572
- }
1573
- export interface UserSourceAgent extends UserSourceBase {
1574
- source: "agent";
1575
- userId?: string;
1576
- userName?: string;
1577
- userEmail?: string;
1578
- }
1579
- export type UserSource = UserSourceOther | UserSourceBuilder | UserSourceAgent;
1580
- export type AutoPushMode = "force-push" | "merge-push" | "ff-push" | "safe-push" | "none";
1581
- export interface GenerateUserMessage {
1582
- idempotencyKey?: string;
1583
- user?: UserSource;
1584
- userPrompt: string;
1585
- uiContextPrompt?: string;
1586
- ephemeralUserPrompt?: string;
1587
- displayPrompt?: string;
1588
- files?: string[];
1589
- systemReminders?: SystemReminderObj[];
1590
- includeBaseFiles?: boolean;
1591
- attachments?: Attachment[];
1592
- logsCheckpoint?: boolean;
1593
- dropAbortedPrompt?: boolean;
1594
- runValidateCommand?: boolean;
1595
- modelOverride?: string;
1596
- agentModelOverrides?: AgentModelOverrides;
1597
- softContextWindow?: number;
1598
- maxCompletions?: number;
1599
- isManualContinue?: boolean;
1600
- includeRelevantMemories?: boolean;
1601
- category?: CodeGenCategory;
1602
- metadata?: Record<string, any>;
1603
- autoPush?: AutoPushMode;
1604
- syncChanges?: SyncChangesFromRemote;
1605
- enabledMCPs?: string[];
1606
- sessionMode?: SessionMode;
1607
- queue?: boolean;
1608
- /** Custom agent type to use for this message */
1609
- agentType?: string;
1610
- /** Enable AddQAReview tool for QA PR review branches */
1611
- enableQAReviewTool?: boolean;
1612
- /** Per-message reasoning effort override */
1613
- reasoning?: ReasoningEffort;
1614
- /** @deprecated */
1615
- repair?: boolean;
1616
- /** Force compaction of the conversation before generating the next completion */
1617
- forceCompact?: boolean;
1618
- }
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>;
1619
3479
  export interface UserInput {
1620
3480
  userMessage: GenerateUserMessage | undefined;
1621
3481
  userPrompt: string;
@@ -1709,6 +3569,7 @@ export interface GenerateCodeEventDone {
1709
3569
  actionTitle: string;
1710
3570
  content?: string;
1711
3571
  needsPagination: boolean;
3572
+ planPath: string | undefined;
1712
3573
  actions?: ActionItem[];
1713
3574
  suggestions: PromptSuggestion[];
1714
3575
  creditsUsed: number;
@@ -1924,19 +3785,6 @@ export interface MultiRepoOperationResult<T = unknown> {
1924
3785
  message?: string;
1925
3786
  }>;
1926
3787
  }
1927
- export type Permission = "read" | "write" | "list";
1928
- export interface AclEntry {
1929
- action: "allow" | "deny";
1930
- resource: string;
1931
- permissions: Permission[];
1932
- description?: string;
1933
- principals?: string[];
1934
- }
1935
- export interface AclPolicy {
1936
- secrets?: string[];
1937
- entries?: AclEntry[];
1938
- denyDescription?: string;
1939
- }
1940
3788
  export interface AccessResult {
1941
3789
  allowed: boolean;
1942
3790
  message: string;
@@ -1986,13 +3834,6 @@ export interface PrivacyMode {
1986
3834
  mcpServers?: boolean;
1987
3835
  }
1988
3836
  export type Mode = "init-and-launch" | "backup" | "backup-force-full";
1989
- export interface EnvironmentVariable {
1990
- key: string;
1991
- value: string;
1992
- isSecret: boolean;
1993
- placeholder?: boolean;
1994
- explanation?: string;
1995
- }
1996
3837
  export interface FileOverride {
1997
3838
  /**
1998
3839
  * Path where the file should be written.
@@ -2354,31 +4195,6 @@ export interface PushChangesOptions {
2354
4195
  /** If true, verify fast-forward is possible before pushing, fail if not */
2355
4196
  requireFastForward?: boolean;
2356
4197
  }
2357
- export interface SyncChangesFromRemote {
2358
- remoteBranches?: "both" | "main" | "ai";
2359
- fastForward?: "never" | "required" | "auto";
2360
- canPush?: boolean;
2361
- uncommittedChanges?: "stash" | "commit" | "fail";
2362
- requestRefresh?: boolean;
2363
- allowUnrelatedHistory?: boolean;
2364
- /**
2365
- * When true, reset the AI branch hard to the remote feature/base branch instead
2366
- * of merging. This gives a clean slate that exactly matches the checked-out
2367
- * feature branch on remote, avoiding any merge-style conflicts or divergence.
2368
- * Fails clearly if the feature/base branch cannot be determined or is absent
2369
- * from the remote.
2370
- */
2371
- resetToBase?: boolean;
2372
- /**
2373
- * Whether to update the internal "last AI commits" baseline after the sync
2374
- * completes. Defaults to `true` for backwards compatibility.
2375
- *
2376
- * Set to `false` when the caller wants `getChangesReport()` to keep diffing
2377
- * from the pre-sync baseline (e.g. so a downstream prompt can see exactly
2378
- * what changed since the last reset/sync).
2379
- */
2380
- updateLastCommits?: boolean;
2381
- }
2382
4198
  export type PushChangesArgs = PushChangesOptions | boolean;
2383
4199
  export type CodegenApiResult = CodegenApiSuccess | CodegenApiFailure;
2384
4200
  export interface CodegenApiSuccess {
@@ -2617,12 +4433,6 @@ export type MessageUpdateOptions = {
2617
4433
  type: "delete";
2618
4434
  idempotencyKey: string;
2619
4435
  };
2620
- export interface SystemReminderObj {
2621
- text: string;
2622
- tag?: string;
2623
- ephemeral?: boolean;
2624
- }
2625
- export type SystemReminder = string | SystemReminderObj;
2626
4436
  export interface LaunchInitializeSessionOptions {
2627
4437
  sessionId?: string;
2628
4438
  customInstructions?: CustomInstruction[];
@@ -2632,29 +4442,34 @@ export interface LaunchInitializeSessionOptions {
2632
4442
  /**
2633
4443
  * Request for generating a commit message via LLM
2634
4444
  */
2635
- export interface CommitMessageRequest {
2636
- /** Git diff from previous commit */
2637
- diff: string;
2638
- /** User messages sent during AI work */
2639
- userMessages: string[];
2640
- /** Last 10 commits from main branch for style reference */
2641
- recentCommits: string[];
2642
- /** Whether to generate a long commit message */
2643
- longCommit?: boolean;
2644
- /** Project ID for fetching project-specific commit instructions */
2645
- projectId?: string;
2646
- }
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>;
2647
4453
  /**
2648
4454
  * Response from commit message generation
2649
4455
  */
2650
- export interface CommitMessageResponse {
2651
- /** Full commit message */
2652
- message: string;
2653
- /** First line (50-72 chars) - the commit title */
2654
- title: string;
2655
- /** Optional extended description */
2656
- body?: string;
2657
- }
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>;
2658
4473
  export interface TodoItem {
2659
4474
  content: string;
2660
4475
  status: "pending" | "in_progress" | "completed";