@builder.io/ai-utils 0.14.2 → 0.14.4
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 -5
- package/src/messages.d.ts +1 -0
- package/src/organization.d.ts +39 -1
- package/src/projects.d.ts +5 -2
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -175,7 +175,8 @@ export interface BuilderEditToolInput {
|
|
|
175
175
|
new_str: string;
|
|
176
176
|
}
|
|
177
177
|
export interface GetScreenshotToolInput {
|
|
178
|
-
|
|
178
|
+
href: string;
|
|
179
|
+
url?: string;
|
|
179
180
|
selector?: string;
|
|
180
181
|
width?: number;
|
|
181
182
|
height?: number;
|
|
@@ -484,7 +485,7 @@ export interface GenerateCompletionStepDone {
|
|
|
484
485
|
model: string;
|
|
485
486
|
usage: CodegenUsage | undefined;
|
|
486
487
|
url?: string;
|
|
487
|
-
promptVersion: string;
|
|
488
|
+
promptVersion: string | undefined;
|
|
488
489
|
stopReason: CompletionStopReason;
|
|
489
490
|
hasChanges: boolean;
|
|
490
491
|
}
|
|
@@ -754,6 +755,7 @@ export interface GenerateUserMessage {
|
|
|
754
755
|
ephemeralUserPrompt?: string;
|
|
755
756
|
displayPrompt?: string;
|
|
756
757
|
files?: string[];
|
|
758
|
+
systemReminders?: SystemReminderObj[];
|
|
757
759
|
includeBaseFiles?: boolean;
|
|
758
760
|
attachments?: Attachment[];
|
|
759
761
|
logsCheckpoint?: boolean;
|
|
@@ -871,7 +873,7 @@ export interface GenerateCodeEventDone {
|
|
|
871
873
|
nextUrl: string;
|
|
872
874
|
autoContinue: boolean;
|
|
873
875
|
model: string;
|
|
874
|
-
promptVersion: string;
|
|
876
|
+
promptVersion: string | undefined;
|
|
875
877
|
}
|
|
876
878
|
export interface GenerateCodeEventError {
|
|
877
879
|
type: "error";
|
|
@@ -1027,13 +1029,13 @@ export interface AccessResult {
|
|
|
1027
1029
|
allowed: boolean;
|
|
1028
1030
|
message: string;
|
|
1029
1031
|
}
|
|
1030
|
-
export
|
|
1032
|
+
export interface RemoteMachineConfig {
|
|
1031
1033
|
cpus: number;
|
|
1032
1034
|
memory: number;
|
|
1033
1035
|
region: string;
|
|
1034
1036
|
cpuKind?: CpuKind;
|
|
1035
1037
|
volumeSize: number;
|
|
1036
|
-
}
|
|
1038
|
+
}
|
|
1037
1039
|
export type MachineConfig = (RemoteMachineConfig & {
|
|
1038
1040
|
environment: "cloud" | "cloud-v2" | "unknown";
|
|
1039
1041
|
}) | {
|
package/src/messages.d.ts
CHANGED
package/src/organization.d.ts
CHANGED
|
@@ -19,11 +19,47 @@ export interface GitlabEnterprisePATValue {
|
|
|
19
19
|
botUsername: string;
|
|
20
20
|
secondaryHost?: string;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Public metadata for GitLab fallback token (stored in organizations collection).
|
|
24
|
+
*/
|
|
22
25
|
export interface GitlabCloudFallbackToken {
|
|
23
|
-
|
|
26
|
+
configured: boolean;
|
|
27
|
+
createdBy: string;
|
|
28
|
+
createdAt: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Public metadata for Azure fallback token (stored in organizations collection).
|
|
32
|
+
*/
|
|
33
|
+
export interface AzureCloudFallbackToken {
|
|
34
|
+
configured: boolean;
|
|
35
|
+
organization: string;
|
|
24
36
|
createdBy: string;
|
|
25
37
|
createdAt: number;
|
|
26
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Public metadata for Bitbucket fallback token (stored in organizations collection).
|
|
41
|
+
*/
|
|
42
|
+
export interface BitbucketCloudFallbackToken {
|
|
43
|
+
configured: boolean;
|
|
44
|
+
username: string;
|
|
45
|
+
email: string;
|
|
46
|
+
createdBy: string;
|
|
47
|
+
createdAt: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Private fallback tokens stored in organizations_private collection.
|
|
51
|
+
*/
|
|
52
|
+
export interface FallbackTokensPrivate {
|
|
53
|
+
gitlab?: {
|
|
54
|
+
token: string;
|
|
55
|
+
};
|
|
56
|
+
azure?: {
|
|
57
|
+
token: string;
|
|
58
|
+
};
|
|
59
|
+
bitbucket?: {
|
|
60
|
+
token: string;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
27
63
|
interface OrganizationSettings {
|
|
28
64
|
attribution?: string[];
|
|
29
65
|
visualEditorAiStyleInspirationURL?: string;
|
|
@@ -39,6 +75,8 @@ interface OrganizationSettings {
|
|
|
39
75
|
githubEnterpriseSetupValue?: GithubEnterpriseSetupValue;
|
|
40
76
|
gitlabEnterprisePAT?: GitlabEnterprisePATValue;
|
|
41
77
|
gitlabCloudFallbackToken?: GitlabCloudFallbackToken;
|
|
78
|
+
azureCloudFallbackToken?: AzureCloudFallbackToken;
|
|
79
|
+
bitbucketCloudFallbackToken?: BitbucketCloudFallbackToken;
|
|
42
80
|
bitbucketEnterprisePAT?: BitbucketEnterprisePAT;
|
|
43
81
|
useProxy?: boolean;
|
|
44
82
|
fusionShareableUrlSuffix?: string;
|
package/src/projects.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { FileOverride, EnvironmentVariable, LaunchServerState, LaunchServerStatus, BranchBackup, CommitMode } from "./codegen";
|
|
2
|
+
import type { FallbackTokensPrivate } from "./organization";
|
|
2
3
|
export interface ConfigStatus {
|
|
3
4
|
isReady: boolean;
|
|
4
5
|
lastUpdated: string;
|
|
@@ -152,10 +153,11 @@ export interface CleanupCompletedMessage extends BaseMessage {
|
|
|
152
153
|
* Messages sent by the container orchestrator.
|
|
153
154
|
*/
|
|
154
155
|
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;
|
|
155
|
-
export
|
|
156
|
+
export interface GitConfig {
|
|
156
157
|
url: string;
|
|
157
158
|
provider: "github" | "bitbucket" | "gitlab" | "azure" | "unknown";
|
|
158
|
-
|
|
159
|
+
token: string | undefined;
|
|
160
|
+
}
|
|
159
161
|
export type GitConfigs = Record<string, GitConfig>;
|
|
160
162
|
export declare const EXAMPLE_REPOS: string[];
|
|
161
163
|
export declare const STARTER_REPO = "BuilderIO/fusion-starter";
|
|
@@ -521,6 +523,7 @@ export interface OrganizationPrivate {
|
|
|
521
523
|
ids: number[];
|
|
522
524
|
host: string;
|
|
523
525
|
}[];
|
|
526
|
+
fallbackTokens?: FallbackTokensPrivate;
|
|
524
527
|
createdAt: number;
|
|
525
528
|
updatedAt: number;
|
|
526
529
|
}
|