@builder.io/ai-utils 0.50.1 → 0.50.3
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/codegen.d.ts +35 -0
- package/src/messages.d.ts +13 -1
- package/src/projects.d.ts +6 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -96,6 +96,11 @@ export interface GrepSearchToolInput {
|
|
|
96
96
|
exclude_glob?: string | null;
|
|
97
97
|
case_sensitive?: boolean | null;
|
|
98
98
|
}
|
|
99
|
+
export interface SkillToolInput {
|
|
100
|
+
skill: string;
|
|
101
|
+
/** Optional invocation arguments; forwarded with the skill body in the tool result. */
|
|
102
|
+
args?: string | null;
|
|
103
|
+
}
|
|
99
104
|
export interface GetRuleToolInput {
|
|
100
105
|
name: string;
|
|
101
106
|
}
|
|
@@ -222,6 +227,24 @@ export interface TodoWriteToolInput {
|
|
|
222
227
|
id: string;
|
|
223
228
|
}[];
|
|
224
229
|
}
|
|
230
|
+
export type TaskStatus = "pending" | "in_progress" | "completed";
|
|
231
|
+
export interface TaskCreateToolInput {
|
|
232
|
+
subject: string;
|
|
233
|
+
description: string;
|
|
234
|
+
metadata?: Record<string, unknown>;
|
|
235
|
+
}
|
|
236
|
+
export interface TaskUpdateToolInput {
|
|
237
|
+
taskId: string;
|
|
238
|
+
subject?: string;
|
|
239
|
+
description?: string;
|
|
240
|
+
status?: TaskStatus | "deleted";
|
|
241
|
+
owner?: string;
|
|
242
|
+
addBlocks?: string[];
|
|
243
|
+
addBlockedBy?: string[];
|
|
244
|
+
metadata?: Record<string, unknown>;
|
|
245
|
+
}
|
|
246
|
+
export interface TaskListToolInput {
|
|
247
|
+
}
|
|
225
248
|
export interface BuilderEditToolInput {
|
|
226
249
|
filePath: string;
|
|
227
250
|
old_str: string;
|
|
@@ -447,6 +470,7 @@ export interface ExitToolInput {
|
|
|
447
470
|
setupNeedsCredentials?: boolean;
|
|
448
471
|
devServerNeedsCredentials?: boolean;
|
|
449
472
|
needsVPN?: boolean;
|
|
473
|
+
autoReload?: boolean;
|
|
450
474
|
/** A human-readable description of what the project is about (not tech specs), used by fusion to route requests to the right project */
|
|
451
475
|
projectDescription?: string;
|
|
452
476
|
}
|
|
@@ -544,6 +568,7 @@ export interface ProposedConfig {
|
|
|
544
568
|
cost?: number;
|
|
545
569
|
durationMs?: number;
|
|
546
570
|
needsVPN?: boolean;
|
|
571
|
+
autoReload?: boolean;
|
|
547
572
|
}
|
|
548
573
|
/**
|
|
549
574
|
* Parameters for proposing a configuration to the backend
|
|
@@ -576,6 +601,7 @@ export interface ProposeConfigParams {
|
|
|
576
601
|
devServerNeedsCredentials?: boolean;
|
|
577
602
|
needsVPN?: boolean;
|
|
578
603
|
projectDescription?: string;
|
|
604
|
+
autoReload?: boolean;
|
|
579
605
|
}
|
|
580
606
|
export interface VerifySetupCommandToolInput {
|
|
581
607
|
command: string;
|
|
@@ -704,6 +730,7 @@ export interface CodeGenToolMap {
|
|
|
704
730
|
Write: WriteFileInput;
|
|
705
731
|
Edit: SearchReplaceInput;
|
|
706
732
|
ReadRule: GetRuleToolInput;
|
|
733
|
+
Skill: SkillToolInput;
|
|
707
734
|
GetStyleInspiration: GetStyleInspirationToolInput;
|
|
708
735
|
GetScreenshot: GetScreenshotToolInput;
|
|
709
736
|
NavigatePreview: NavigatePreviewToolInput;
|
|
@@ -726,6 +753,9 @@ export interface CodeGenToolMap {
|
|
|
726
753
|
Revert: RevertToolInput;
|
|
727
754
|
TodoRead: TodoReadToolInput;
|
|
728
755
|
TodoWrite: TodoWriteToolInput;
|
|
756
|
+
TaskCreate: TaskCreateToolInput;
|
|
757
|
+
TaskUpdate: TaskUpdateToolInput;
|
|
758
|
+
TaskList: TaskListToolInput;
|
|
729
759
|
BuilderEdit: BuilderEditToolInput;
|
|
730
760
|
WebFetch: WebFetchToolInput;
|
|
731
761
|
ExplorationMetadata: ExplorationMetadataToolInput;
|
|
@@ -2443,6 +2473,11 @@ export interface TodoItem {
|
|
|
2443
2473
|
content: string;
|
|
2444
2474
|
status: "pending" | "in_progress" | "completed";
|
|
2445
2475
|
id: string;
|
|
2476
|
+
description?: string;
|
|
2477
|
+
owner?: string;
|
|
2478
|
+
blocks?: string[];
|
|
2479
|
+
blockedBy?: string[];
|
|
2480
|
+
metadata?: Record<string, unknown>;
|
|
2446
2481
|
}
|
|
2447
2482
|
export interface SessionData {
|
|
2448
2483
|
lastCompletionId: string | undefined;
|
package/src/messages.d.ts
CHANGED
|
@@ -206,7 +206,19 @@ export interface ContentMessageItemCodeExecutionToolResult {
|
|
|
206
206
|
content: any;
|
|
207
207
|
cache?: boolean;
|
|
208
208
|
}
|
|
209
|
-
export
|
|
209
|
+
export interface ContentMessageItemToolSearchToolResult {
|
|
210
|
+
type: "tool_search_tool_result";
|
|
211
|
+
tool_use_id: string;
|
|
212
|
+
content: {
|
|
213
|
+
type: "tool_search_tool_search_result";
|
|
214
|
+
tool_references: {
|
|
215
|
+
type: "tool_reference";
|
|
216
|
+
tool_name: string;
|
|
217
|
+
}[];
|
|
218
|
+
};
|
|
219
|
+
cache?: boolean;
|
|
220
|
+
}
|
|
221
|
+
export type ContentMessageItem = ContentMessageItemText | ContentMessageItemImage | ContentMessageItemResource | ContentMessageItemDocument | ContentMessageItemVideo | ContentMessageItemThinking | ContentMessageItemRedactedThinking | ContentMessageItemToolUse | ContentMessageItemToolResult | ContentMessageItemWebSearchToolResult | ContentMessageItemServerToolUse | ContentMessageItemMCPToolUse | ContentMessageItemMCPToolResult | ContentMessageItemContainerUpload | ContentMessageItemCodeExecutionToolResult | ContentMessageItemToolSearchToolResult;
|
|
210
222
|
export type ContentMessage = ContentMessageItem[];
|
|
211
223
|
export interface SystemMessageParam {
|
|
212
224
|
/**
|
package/src/projects.d.ts
CHANGED
|
@@ -832,6 +832,12 @@ export interface CreateBranchOptions {
|
|
|
832
832
|
gitAiBranch?: string | null;
|
|
833
833
|
/** Contextual information (e.g., a git diff) used by the backend to generate a friendly branch name via LLM */
|
|
834
834
|
branchContext?: string;
|
|
835
|
+
/**
|
|
836
|
+
* When true, the endpoint returns immediately after the branch is created in the database
|
|
837
|
+
* without waiting for the container to start. The container is started in the background.
|
|
838
|
+
* Only supported for Kubernetes (cloud-v2) environments; non-Kube branches fall back to waiting.
|
|
839
|
+
*/
|
|
840
|
+
skipContainerWait?: boolean;
|
|
835
841
|
/**
|
|
836
842
|
* Lifecycle hook awaited by createBranch after the container is ready and
|
|
837
843
|
* before the initial message is dispatched to devtools/codegen. Use this to
|