@builder.io/ai-utils 0.33.1 → 0.34.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 +4 -0
- package/src/projects.d.ts +7 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -1713,7 +1713,11 @@ export interface FusionConfig {
|
|
|
1713
1713
|
proxyDefaultOrigin?: string;
|
|
1714
1714
|
setupDependencies?: SetupDependency[];
|
|
1715
1715
|
projectId?: string;
|
|
1716
|
+
/** Human-readable project name (e.g. "My App") */
|
|
1717
|
+
projectName?: string;
|
|
1716
1718
|
branchName?: string;
|
|
1719
|
+
/** Human-readable branch name, AI-generated or user-set (e.g. "Add dark mode") */
|
|
1720
|
+
branchFriendlyName?: string;
|
|
1717
1721
|
sessionId?: string;
|
|
1718
1722
|
browserAutomationInstructions?: string;
|
|
1719
1723
|
/** Whether this branch is for a code review - affects enabled agents and tools */
|
package/src/projects.d.ts
CHANGED
|
@@ -363,6 +363,8 @@ export interface PartialBranchData {
|
|
|
363
363
|
isFork?: boolean | null;
|
|
364
364
|
/** Whether this branch is for a code review - affects enabled agents and tools*/
|
|
365
365
|
type?: BranchType | null;
|
|
366
|
+
/** Auto-assigned category based on the user prompt (feature, fix, research, other) */
|
|
367
|
+
category?: BranchCategory | null;
|
|
366
368
|
cloneFrom?: {
|
|
367
369
|
projectId: string;
|
|
368
370
|
branchName: string;
|
|
@@ -420,6 +422,8 @@ export interface OrgAgentConfig {
|
|
|
420
422
|
longLived: boolean;
|
|
421
423
|
}
|
|
422
424
|
export type BranchType = "code-review" | "setup-project" | "org-agent" | "default";
|
|
425
|
+
/** Category of work a branch represents, auto-assigned during prompt analysis. */
|
|
426
|
+
export type BranchCategory = "feature" | "fix" | "research" | "other";
|
|
423
427
|
export interface BranchSharedData {
|
|
424
428
|
appName?: string | null;
|
|
425
429
|
prNumber?: number | null;
|
|
@@ -489,6 +493,8 @@ export interface BranchSharedData {
|
|
|
489
493
|
screenshots?: Record<string, string>;
|
|
490
494
|
/** Whether this branch is for a code review - affects enabled agents and tools */
|
|
491
495
|
type?: BranchType | null;
|
|
496
|
+
/** Auto-assigned category based on the user prompt (feature, fix, research, other) */
|
|
497
|
+
category?: BranchCategory | null;
|
|
492
498
|
agentType?: AgentType | null;
|
|
493
499
|
/** ID of the last PR review — doubles as the vcpCodeGenEvents completion ID for feedback */
|
|
494
500
|
lastReviewId?: string | null;
|
|
@@ -808,6 +814,7 @@ export interface SettingUpContainerMessage extends BaseCreateBranchMessage {
|
|
|
808
814
|
branchName: string;
|
|
809
815
|
branchFriendlyName: string | undefined;
|
|
810
816
|
branchDescription: string | undefined;
|
|
817
|
+
branchCategory: BranchCategory | undefined;
|
|
811
818
|
}
|
|
812
819
|
export interface ContainerReadyMessage extends BaseCreateBranchMessage {
|
|
813
820
|
type: "container-ready";
|