@builder.io/ai-utils 0.47.1 → 0.48.1
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 +31 -21
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;
|
|
@@ -400,6 +391,10 @@ export interface SetupAnalysisValues {
|
|
|
400
391
|
reason: string;
|
|
401
392
|
} | null;
|
|
402
393
|
npmrcContents: string | null;
|
|
394
|
+
hasHotModuleReload: {
|
|
395
|
+
value: boolean;
|
|
396
|
+
reason: string;
|
|
397
|
+
} | null;
|
|
403
398
|
}
|
|
404
399
|
export interface ProposeConfigToolInput {
|
|
405
400
|
config: SetupAnalysisValues;
|
|
@@ -518,6 +513,10 @@ export interface ProposedConfig {
|
|
|
518
513
|
value: string[] | undefined;
|
|
519
514
|
verified: boolean;
|
|
520
515
|
};
|
|
516
|
+
hasHotModuleReload: {
|
|
517
|
+
value: boolean | undefined;
|
|
518
|
+
reason: string | undefined;
|
|
519
|
+
};
|
|
521
520
|
};
|
|
522
521
|
sessionId: string;
|
|
523
522
|
orchestratorStates: {
|
|
@@ -643,7 +642,7 @@ export interface ArchiveBranchToolInput {
|
|
|
643
642
|
builder_user_id: string;
|
|
644
643
|
reason?: string;
|
|
645
644
|
}
|
|
646
|
-
/** Comment for PR review - used by SubmitPRReview
|
|
645
|
+
/** Comment for PR review - used by SubmitPRReview */
|
|
647
646
|
export interface PRReviewComment {
|
|
648
647
|
file_path: string;
|
|
649
648
|
line: number;
|
|
@@ -723,16 +722,15 @@ export interface CodeGenToolMap {
|
|
|
723
722
|
ExitPlanMode: ExitPlanModeToolInput;
|
|
724
723
|
ReadMcpResource: ReadMcpResourceToolInput;
|
|
725
724
|
RecordFrame: RecordFrameToolInput;
|
|
726
|
-
CompileRecording: CompileRecordingToolInput;
|
|
727
725
|
SubmitPRReview: SubmitPRReviewToolInput;
|
|
728
726
|
ProposeConfig: ProposeConfigToolInput;
|
|
729
727
|
UpdateSetupValue: UpdateSetupValueToolInput;
|
|
730
728
|
Exit: ExitToolInput;
|
|
731
729
|
ResolveQAComments: ResolveQACommentsToolInput;
|
|
730
|
+
GetLastBrowserTest: GetLastBrowserTestToolInput;
|
|
732
731
|
ReportUIIssue: ReportUIIssueToolInput;
|
|
733
732
|
ReportIssue: ReportIssueToolInput;
|
|
734
733
|
ReportTestOutcome: ReportTestOutcomeToolInput;
|
|
735
|
-
RegisterTestPlan: RegisterTestPlanToolInput;
|
|
736
734
|
VerifySetupCommand: VerifySetupCommandToolInput;
|
|
737
735
|
VerifyDevCommand: VerifyDevCommandToolInput;
|
|
738
736
|
VerifyDevServer: VerifyDevServerToolInput;
|
|
@@ -747,8 +745,21 @@ export interface CodeGenToolMap {
|
|
|
747
745
|
ArchiveBranch: ArchiveBranchToolInput;
|
|
748
746
|
RunningAgents: RunningAgentsToolInput;
|
|
749
747
|
IDEDiagnostics: IDEDiagnosticsToolInput;
|
|
748
|
+
EscalateToPlanner: EscalateToPlanner;
|
|
750
749
|
PullPrototype: PullPrototypeToolInput;
|
|
751
750
|
}
|
|
751
|
+
export interface EscalateToPlanner {
|
|
752
|
+
/** What's blocking execution */
|
|
753
|
+
issue: string;
|
|
754
|
+
/** What was tried before escalating */
|
|
755
|
+
steps_attempted: string;
|
|
756
|
+
/** Current browser URL */
|
|
757
|
+
current_url: string;
|
|
758
|
+
/** Which test case is blocked */
|
|
759
|
+
test_case_id: string;
|
|
760
|
+
}
|
|
761
|
+
export interface GetLastBrowserTestToolInput {
|
|
762
|
+
}
|
|
752
763
|
export type CodeGenTools = keyof CodeGenToolMap;
|
|
753
764
|
export type AllCodeGenTools = CodeGenTools | "web_search";
|
|
754
765
|
export type SessionMode = "planning" | "normal" | "auto-planning" | "deep-research";
|
|
@@ -1301,7 +1312,6 @@ export interface PullPrototypeToolInput {
|
|
|
1301
1312
|
url: string;
|
|
1302
1313
|
project_id?: string;
|
|
1303
1314
|
branch_name?: string;
|
|
1304
|
-
space_id?: string;
|
|
1305
1315
|
}
|
|
1306
1316
|
export interface DiagnosticsResponse {
|
|
1307
1317
|
ideName: string;
|