@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/package.json +1 -1
- package/src/claw.d.ts +6 -0
- package/src/claw.js +9 -0
- package/src/claw.spec.js +27 -0
- package/src/codegen.d.ts +2818 -1003
- package/src/codegen.js +1885 -0
- package/src/design-systems.d.ts +38 -0
- package/src/design-systems.js +14 -0
- package/src/events.d.ts +2 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/mapping.d.ts +13 -12
- package/src/mapping.js +15 -1
- package/src/messages.d.ts +305 -107
- package/src/messages.js +158 -0
- package/src/projects.d.ts +145 -16
- package/src/projects.js +24 -0
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
|
|
10
|
-
export type
|
|
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
|
|
18
|
-
filePath:
|
|
19
|
-
content
|
|
20
|
-
importance
|
|
21
|
-
dropReason
|
|
22
|
-
wasIncluded
|
|
23
|
-
virtual
|
|
24
|
-
}
|
|
25
|
-
export
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
|
64
|
-
name:
|
|
65
|
-
description
|
|
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
|
|
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
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
export
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
export
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
export
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
export
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
export
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
291
|
-
export
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
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
|
|
301
|
-
subject:
|
|
302
|
-
description:
|
|
303
|
-
metadata
|
|
304
|
-
}
|
|
305
|
-
export
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
export
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}
|
|
336
|
-
export
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
export type
|
|
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
|
|
456
|
-
projectOverview: {
|
|
457
|
-
framework:
|
|
458
|
-
packageManager:
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
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
|
-
|
|
476
|
-
command:
|
|
477
|
-
url:
|
|
478
|
-
port:
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
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
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
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
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
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
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
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
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
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
|
|
646
|
-
projectId:
|
|
647
|
-
branchName:
|
|
648
|
-
state:
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
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
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
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
|
-
|
|
683
|
-
|
|
684
|
-
}
|
|
685
|
-
export
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
export
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
}
|
|
735
|
-
export
|
|
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
|
|
769
|
-
file_path:
|
|
770
|
-
line:
|
|
771
|
-
start_line
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
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
|
|
787
|
-
summary:
|
|
788
|
-
comments
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
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
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
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
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
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
|
-
|
|
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
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
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
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
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
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
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";
|