@builder.io/ai-utils 0.47.0 → 0.48.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/codegen.d.ts +32 -21
- package/src/codegen.js +1 -0
- package/src/events.d.ts +1 -1
- package/src/messages.d.ts +1 -1
- package/src/projects.d.ts +1 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -276,17 +276,7 @@ export interface ReportTestOutcomeToolInput {
|
|
|
276
276
|
steps_attempted?: string;
|
|
277
277
|
urls_tested?: string[];
|
|
278
278
|
}
|
|
279
|
-
export type TestCaseFailureCategory = "env_issue" | "creds_missing" | "needs_user_input" | "server_not_ready" | "feature_not_reachable" | "timeout" | "assertion_failed" | "unexpected_error" | "not_applicable";
|
|
280
|
-
export interface RegisterTestPlanToolInput {
|
|
281
|
-
mode: "quick" | "thorough";
|
|
282
|
-
test_cases: Array<{
|
|
283
|
-
id: string;
|
|
284
|
-
description: string;
|
|
285
|
-
expected_outcome: string;
|
|
286
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
287
|
-
source?: string;
|
|
288
|
-
}>;
|
|
289
|
-
}
|
|
279
|
+
export type TestCaseFailureCategory = "env_issue" | "creds_missing" | "needs_user_input" | "server_not_ready" | "feature_not_reachable" | "timeout" | "assertion_failed" | "unexpected_error" | "not_applicable" | "escalated";
|
|
290
280
|
export type TimelineEventCategory = "navigation" | "interaction" | "assertion" | "error" | "milestone" | "code-change" | "observation";
|
|
291
281
|
export interface TimelineEvent {
|
|
292
282
|
id: number;
|
|
@@ -336,12 +326,13 @@ export interface TimelineRecording {
|
|
|
336
326
|
description: string;
|
|
337
327
|
debugInfo?: string;
|
|
338
328
|
}>;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
329
|
+
phases?: Array<{
|
|
330
|
+
label: string;
|
|
331
|
+
sessionId: string;
|
|
332
|
+
startEventId: number;
|
|
333
|
+
endEventId: number;
|
|
334
|
+
testCaseIds?: string[];
|
|
335
|
+
}>;
|
|
345
336
|
}
|
|
346
337
|
export interface TimelineSubmissionMetadata {
|
|
347
338
|
prNumber?: number;
|
|
@@ -643,7 +634,7 @@ export interface ArchiveBranchToolInput {
|
|
|
643
634
|
builder_user_id: string;
|
|
644
635
|
reason?: string;
|
|
645
636
|
}
|
|
646
|
-
/** Comment for PR review - used by SubmitPRReview
|
|
637
|
+
/** Comment for PR review - used by SubmitPRReview */
|
|
647
638
|
export interface PRReviewComment {
|
|
648
639
|
file_path: string;
|
|
649
640
|
line: number;
|
|
@@ -723,16 +714,15 @@ export interface CodeGenToolMap {
|
|
|
723
714
|
ExitPlanMode: ExitPlanModeToolInput;
|
|
724
715
|
ReadMcpResource: ReadMcpResourceToolInput;
|
|
725
716
|
RecordFrame: RecordFrameToolInput;
|
|
726
|
-
CompileRecording: CompileRecordingToolInput;
|
|
727
717
|
SubmitPRReview: SubmitPRReviewToolInput;
|
|
728
718
|
ProposeConfig: ProposeConfigToolInput;
|
|
729
719
|
UpdateSetupValue: UpdateSetupValueToolInput;
|
|
730
720
|
Exit: ExitToolInput;
|
|
731
721
|
ResolveQAComments: ResolveQACommentsToolInput;
|
|
722
|
+
GetLastBrowserTest: GetLastBrowserTestToolInput;
|
|
732
723
|
ReportUIIssue: ReportUIIssueToolInput;
|
|
733
724
|
ReportIssue: ReportIssueToolInput;
|
|
734
725
|
ReportTestOutcome: ReportTestOutcomeToolInput;
|
|
735
|
-
RegisterTestPlan: RegisterTestPlanToolInput;
|
|
736
726
|
VerifySetupCommand: VerifySetupCommandToolInput;
|
|
737
727
|
VerifyDevCommand: VerifyDevCommandToolInput;
|
|
738
728
|
VerifyDevServer: VerifyDevServerToolInput;
|
|
@@ -747,13 +737,27 @@ export interface CodeGenToolMap {
|
|
|
747
737
|
ArchiveBranch: ArchiveBranchToolInput;
|
|
748
738
|
RunningAgents: RunningAgentsToolInput;
|
|
749
739
|
IDEDiagnostics: IDEDiagnosticsToolInput;
|
|
740
|
+
EscalateToPlanner: EscalateToPlanner;
|
|
741
|
+
PullPrototype: PullPrototypeToolInput;
|
|
742
|
+
}
|
|
743
|
+
export interface EscalateToPlanner {
|
|
744
|
+
/** What's blocking execution */
|
|
745
|
+
issue: string;
|
|
746
|
+
/** What was tried before escalating */
|
|
747
|
+
steps_attempted: string;
|
|
748
|
+
/** Current browser URL */
|
|
749
|
+
current_url: string;
|
|
750
|
+
/** Which test case is blocked */
|
|
751
|
+
test_case_id: string;
|
|
752
|
+
}
|
|
753
|
+
export interface GetLastBrowserTestToolInput {
|
|
750
754
|
}
|
|
751
755
|
export type CodeGenTools = keyof CodeGenToolMap;
|
|
752
756
|
export type AllCodeGenTools = CodeGenTools | "web_search";
|
|
753
757
|
export type SessionMode = "planning" | "normal" | "auto-planning" | "deep-research";
|
|
754
758
|
export type CodeGenMode = "quality" | "quality-v3" | "quality-v4" | "quality-v4-agent";
|
|
755
759
|
export type QueueMode = "next-turn" | "until-idle";
|
|
756
|
-
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", "browser-testing", "projects-scheduler-memory-extraction", "unknown", "dsi-mcp"];
|
|
760
|
+
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", "browser-testing", "projects-scheduler-memory-extraction", "builder-code", "unknown", "dsi-mcp"];
|
|
757
761
|
export type BaseCodeGenPosition = (typeof BASE_CODEGEN_POSITIONS)[number];
|
|
758
762
|
export type CodeGenPosition = BaseCodeGenPosition | `${BaseCodeGenPosition}-agent`;
|
|
759
763
|
export interface RepoIndexingConfig {
|
|
@@ -1296,6 +1300,12 @@ export interface DiagnosticEntry {
|
|
|
1296
1300
|
export interface IDEDiagnosticsToolInput {
|
|
1297
1301
|
file_path?: string;
|
|
1298
1302
|
}
|
|
1303
|
+
export interface PullPrototypeToolInput {
|
|
1304
|
+
url: string;
|
|
1305
|
+
project_id?: string;
|
|
1306
|
+
branch_name?: string;
|
|
1307
|
+
space_id?: string;
|
|
1308
|
+
}
|
|
1299
1309
|
export interface DiagnosticsResponse {
|
|
1300
1310
|
ideName: string;
|
|
1301
1311
|
diagnostics: DiagnosticEntry[];
|
|
@@ -1571,6 +1581,7 @@ export interface GenerateCodeEventMCPStatus {
|
|
|
1571
1581
|
export interface MCPAuthRequiredServer {
|
|
1572
1582
|
serverId: string;
|
|
1573
1583
|
name: string;
|
|
1584
|
+
normalizedServerName: string;
|
|
1574
1585
|
url: string;
|
|
1575
1586
|
authorizationUrl: string;
|
|
1576
1587
|
scopes: string[];
|
package/src/codegen.js
CHANGED
package/src/events.d.ts
CHANGED
|
@@ -504,7 +504,7 @@ export type ReviewSubmittedV1 = FusionEventVariant<"review.submitted", {
|
|
|
504
504
|
hasRecording?: boolean;
|
|
505
505
|
/** Recording URL if hasRecording is true */
|
|
506
506
|
recordingUrl?: string;
|
|
507
|
-
/** Posted comments from GitHub API */
|
|
507
|
+
/** Posted comments from GitHub API (formatted bodies) */
|
|
508
508
|
postedComments: Array<{
|
|
509
509
|
id: number;
|
|
510
510
|
node_id: string;
|
package/src/messages.d.ts
CHANGED
|
@@ -152,7 +152,7 @@ export type ServerToolUseContentUnion = ServerToolUseContent[] | ServerToolUseCo
|
|
|
152
152
|
export interface ContentMessageItemServerToolUse {
|
|
153
153
|
type: "server_tool_use";
|
|
154
154
|
id: string;
|
|
155
|
-
name: "
|
|
155
|
+
name: "advisor" | "web_search" | "web_fetch" | "code_execution" | "bash_code_execution" | "text_editor_code_execution" | "tool_search_tool_regex" | "tool_search_tool_bm25";
|
|
156
156
|
input: unknown;
|
|
157
157
|
caller?: any;
|
|
158
158
|
completion?: string;
|
package/src/projects.d.ts
CHANGED