@builder.io/ai-utils 0.4.40 → 0.5.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 +14 -1
- package/src/projects.d.ts +5 -2
- package/src/repo-indexing.d.ts +3 -1
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface ProjectFile {
|
|
|
15
15
|
importance?: number;
|
|
16
16
|
dropReason?: string;
|
|
17
17
|
wasIncluded?: boolean;
|
|
18
|
+
virtual?: boolean;
|
|
18
19
|
}
|
|
19
20
|
export interface CustomInstruction {
|
|
20
21
|
id: string;
|
|
@@ -361,6 +362,7 @@ export interface GenerateCompletionStepContinue {
|
|
|
361
362
|
type: "continue";
|
|
362
363
|
id: string;
|
|
363
364
|
url: string;
|
|
365
|
+
autoContinue: boolean;
|
|
364
366
|
}
|
|
365
367
|
export type DevCommandState = "running" | "stopped" | "starting" | "failed" | "unset";
|
|
366
368
|
export type SetupCommandState = "not-installed" | "installing" | "installed" | "install-failed" | "install-aborted";
|
|
@@ -415,6 +417,7 @@ export interface GenerateCompletionStepBuilderActionMCPConnect {
|
|
|
415
417
|
}
|
|
416
418
|
export interface GenerateCompletionStepAbort {
|
|
417
419
|
type: "user-abort";
|
|
420
|
+
hasContinueMessage: boolean;
|
|
418
421
|
}
|
|
419
422
|
export interface GenerateCompletionStepRestore {
|
|
420
423
|
type: "restore";
|
|
@@ -523,12 +526,19 @@ export interface UserSourceGitlab {
|
|
|
523
526
|
role: "user" | "agent";
|
|
524
527
|
principals?: string[];
|
|
525
528
|
}
|
|
529
|
+
export interface UserSourceAzure {
|
|
530
|
+
source: "azure";
|
|
531
|
+
userName: string;
|
|
532
|
+
link?: string;
|
|
533
|
+
role: "user" | "agent";
|
|
534
|
+
principals?: string[];
|
|
535
|
+
}
|
|
526
536
|
export interface UserSourceAgent {
|
|
527
537
|
source: "agent";
|
|
528
538
|
role: "agent";
|
|
529
539
|
principals?: string[];
|
|
530
540
|
}
|
|
531
|
-
export type UserSource = UserSourceBuilder | UserSourceGithub | UserSourceGitlab | UserSourceAgent;
|
|
541
|
+
export type UserSource = UserSourceBuilder | UserSourceGithub | UserSourceGitlab | UserSourceAzure | UserSourceAgent;
|
|
532
542
|
export interface GenerateUserMessage {
|
|
533
543
|
user?: UserSource;
|
|
534
544
|
userPrompt: string;
|
|
@@ -568,6 +578,7 @@ export interface CodegenTurn {
|
|
|
568
578
|
beforeCommit: string | undefined;
|
|
569
579
|
afterCommit: string | undefined;
|
|
570
580
|
cachedToolResults?: ContentMessageItemToolResult[];
|
|
581
|
+
autoContinue: boolean;
|
|
571
582
|
}
|
|
572
583
|
export interface GetSessionTurnsResult {
|
|
573
584
|
turns: CodegenTurn[];
|
|
@@ -609,6 +620,7 @@ export interface GenerateCodeEventDone {
|
|
|
609
620
|
messageIndex: number;
|
|
610
621
|
sessionUsage: number;
|
|
611
622
|
nextUrl: string;
|
|
623
|
+
autoContinue: boolean;
|
|
612
624
|
}
|
|
613
625
|
export interface GenerateCodeEventError {
|
|
614
626
|
type: "error";
|
|
@@ -628,6 +640,7 @@ export interface GenerateCodeEventContinue {
|
|
|
628
640
|
type: "continue";
|
|
629
641
|
id: string;
|
|
630
642
|
nextUrl: string;
|
|
643
|
+
autoContinue: boolean;
|
|
631
644
|
}
|
|
632
645
|
export interface GenerateCodeEventDelta {
|
|
633
646
|
type: "delta";
|
package/src/projects.d.ts
CHANGED
|
@@ -132,7 +132,10 @@ export interface ReadyMessage extends BaseMessage {
|
|
|
132
132
|
url: string;
|
|
133
133
|
status?: LaunchServerStatus;
|
|
134
134
|
}
|
|
135
|
-
export type
|
|
135
|
+
export type MachineState = "unknown" | "created" | "starting" | "started" | "stopping" | "stopped" | "suspending" | "suspended" | "replacing" | "destroying" | "destroyed" | "not-found" | "running" | "failed";
|
|
136
|
+
export type FlyVolumeState = "unknown" | "creating" | "created" | "extending" | "restoring" | "enabling_remote_export" | "hydrating" | "recovering" | "scheduling_destroy" | "pending_destroy" | "failed";
|
|
137
|
+
export type GitAuthErrorCode = "git-auth-failed" | "git-auth-failed-root-repo" | "git-auth-failed-folder-added-by" | "git-auth-failed-folder-created-by" | "git-auth-failed-folder-server-token";
|
|
138
|
+
export type EnsureContainerErrorCode = "FLY_APP_CHECK_ERROR" | "FLY_CAPACITY_ERROR" | "FLY_PERMISSIONS_TOKEN_ERROR" | "FLY_VOLUME_CREATE_ERROR" | "FLY_VOLUME_FORK_ERROR" | "FLY_VOLUME_DELETE_RECENTLY_FORKED_ERROR" | "FLY_MACHINE_CREATE_ERROR" | "FLY_VOLUME_CHECK_ERROR" | "FLY_NON_MOUNTABLE_VOLUME_ERROR" | "FLY_DEPRECATED_REGION_ERROR" | "ensure-checking-existing-machines" | "found-multiple-failed-machine" | "maximun-retries-machine-creation" | GitAuthErrorCode | "unknown" | "project-bad-state" | "project-not-found" | "project-branch-not-found" | "project-repo-full-name-not-found" | "project-org-not-found" | "no-available-regions" | `machine-status-polling-${MachineState}` | `volume-not-found-${FlyVolumeState}` | "timeout" | "fatal:zod-validation-error" | `fatal:${string}`;
|
|
136
139
|
export interface ErrorStateMessage extends BaseMessage {
|
|
137
140
|
state: "error";
|
|
138
141
|
message: string;
|
|
@@ -149,7 +152,7 @@ export interface CleanupCompletedMessage extends BaseMessage {
|
|
|
149
152
|
export type ProjectsChunkMessage = InitializingMessage | FetchingGithubTokenMessage | FetchingFusionKeyMessage | CheckingAppMessage | CleaningUpAppMessage | CreatingAppMessage | CheckingIPMessage | AllocatingIPMessage | CheckingMachineMessage | CheckingVolumeMessage | ForkingVolumeMessage | RetryingWithNewRegionMessage | WaitingBeforePollingMessage | PollingMachineStatusMessage | WarningStateMessage | PingMessage | DebugMessage | ErrorMessage | InfoMessage | WarningMessage | MachineStatusMessage | LogsMessage | ConfigStatusMessage | AppCreatedMessage | MachineCreatedMessage | IpAllocatedMessage | VolumeForkedMessage | ReadyMessage | ErrorStateMessage | CleanupCompletedMessage;
|
|
150
153
|
export type GitConfig = {
|
|
151
154
|
url: string;
|
|
152
|
-
provider: "github" | "bitbucket" | "gitlab";
|
|
155
|
+
provider: "github" | "bitbucket" | "gitlab" | "azure";
|
|
153
156
|
};
|
|
154
157
|
export type GitConfigs = Record<string, GitConfig>;
|
|
155
158
|
export declare const EXAMPLE_REPOS: string[];
|
package/src/repo-indexing.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export interface StoreComponentDocsInput {
|
|
2
2
|
description: string;
|
|
3
3
|
name: string;
|
|
4
|
-
|
|
4
|
+
relatedComponents: string[];
|
|
5
|
+
relevantFiles: string[];
|
|
5
6
|
content: string;
|
|
6
7
|
sessionId: string;
|
|
7
8
|
designSystemPackage?: string;
|
|
8
9
|
designSystemVersion?: string;
|
|
10
|
+
hash?: string;
|
|
9
11
|
}
|