@builder.io/ai-utils 0.5.15 → 0.5.17
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 +7 -1
- package/src/projects.d.ts +1 -1
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -173,6 +173,9 @@ export interface CodeGenToolMap {
|
|
|
173
173
|
export type CodeGenTools = keyof CodeGenToolMap;
|
|
174
174
|
export type AllCodeGenTools = CodeGenTools | "web_search";
|
|
175
175
|
export type CodeGenMode = "quality" | "quality-v3" | "quality-v4" | "quality-v4-agent";
|
|
176
|
+
export interface RepoIndexingConfig {
|
|
177
|
+
designSystems: string[];
|
|
178
|
+
}
|
|
176
179
|
export interface CodeGenInputOptions {
|
|
177
180
|
position: string;
|
|
178
181
|
eventName?: string;
|
|
@@ -197,6 +200,7 @@ export interface CodeGenInputOptions {
|
|
|
197
200
|
typescript?: boolean;
|
|
198
201
|
userContext?: UserContext;
|
|
199
202
|
aclPolicy?: AclPolicy;
|
|
203
|
+
repoIndexingConfig?: RepoIndexingConfig;
|
|
200
204
|
enabledTools?: CodeGenTools[];
|
|
201
205
|
maxTokens?: number;
|
|
202
206
|
maxPages?: number;
|
|
@@ -782,6 +786,7 @@ export interface FusionConfig {
|
|
|
782
786
|
setupCommand?: string;
|
|
783
787
|
projectId?: string;
|
|
784
788
|
branchName?: string;
|
|
789
|
+
sessionId?: string;
|
|
785
790
|
workingDirectory?: string;
|
|
786
791
|
bashWorkingDirectory?: string;
|
|
787
792
|
workspace?: WorkspaceConfiguration;
|
|
@@ -795,6 +800,7 @@ export interface FusionConfig {
|
|
|
795
800
|
isLocal?: boolean;
|
|
796
801
|
envVariables?: Record<string, string>;
|
|
797
802
|
accessControl?: AclPolicy;
|
|
803
|
+
repoIndexingConfig?: RepoIndexingConfig;
|
|
798
804
|
machine?: RemoteMachineConfig;
|
|
799
805
|
_attemptDryRunBackupGit?: boolean;
|
|
800
806
|
/** @deprecated use devCommand */
|
|
@@ -849,7 +855,7 @@ export interface InitState {
|
|
|
849
855
|
branch: string;
|
|
850
856
|
}[];
|
|
851
857
|
}
|
|
852
|
-
export type LaunchServerState = "initial" | "init-running" | "init-complete" | "ready" | "active-session" | "error";
|
|
858
|
+
export type LaunchServerState = "initial" | "init-running" | "init-complete" | "ready" | "active-session" | "error" | "closing";
|
|
853
859
|
export interface LaunchServerStatus {
|
|
854
860
|
status: "ok";
|
|
855
861
|
state: LaunchServerState;
|
package/src/projects.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ export interface ReadyMessage extends BaseMessage {
|
|
|
135
135
|
export type MachineState = "unknown" | "created" | "starting" | "started" | "stopping" | "stopped" | "suspending" | "suspended" | "replacing" | "destroying" | "destroyed" | "not-found" | "running" | "failed";
|
|
136
136
|
export type FlyVolumeState = "unknown" | "creating" | "created" | "extending" | "restoring" | "enabling_remote_export" | "hydrating" | "recovering" | "scheduling_destroy" | "pending_destroy" | "failed";
|
|
137
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" | "git-auth-failed-root-repo-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" | "FLY_VOLUME_NOT_FOUND" | "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" | "missing-app-with-machine-or-volume" | "update-branch-info-in-firebase" | "update-branch-app-name-in-firebase" | `machine-status-polling-${MachineState}` | `volume-not-found-${FlyVolumeState}` | "timeout" | "fatal:zod-validation-error" | `fatal:${string}`;
|
|
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" | "FLY_VOLUME_NOT_FOUND" | "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" | "missing-app-with-machine-or-volume" | "update-branch-info-in-firebase" | "update-branch-app-name-in-firebase" | `machine-status-polling-${MachineState}` | `volume-not-found-${FlyVolumeState}` | "trying-to-remove-used-volume" | "timeout" | "fatal:zod-validation-error" | `fatal:${string}`;
|
|
139
139
|
export interface ErrorStateMessage extends BaseMessage {
|
|
140
140
|
state: "error";
|
|
141
141
|
message: string;
|