@builder.io/ai-utils 0.4.29 → 0.4.31
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 +18 -4
- package/src/projects.d.ts +1 -1
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -159,7 +159,7 @@ export interface CodegenUsage {
|
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
export interface PromptSuggestion {
|
|
162
|
-
type: "info" | "missing-imports" | "lazy-code" | "no-file-for-diff" | "syntax-error" | "llm-suggested" | "diff-apply" | "acl-policy-violation";
|
|
162
|
+
type: "info" | "missing-imports" | "lazy-code" | "no-file-for-diff" | "diff-before-read" | "syntax-error" | "llm-suggested" | "diff-apply" | "acl-policy-violation";
|
|
163
163
|
filePath?: string;
|
|
164
164
|
line?: number;
|
|
165
165
|
importance: "high" | "medium" | "low" | "info";
|
|
@@ -429,18 +429,29 @@ export interface UserSourceBuilder {
|
|
|
429
429
|
userEmail?: string;
|
|
430
430
|
role: "user";
|
|
431
431
|
photoURL?: string;
|
|
432
|
+
principals?: string[];
|
|
432
433
|
}
|
|
433
434
|
export interface UserSourceGithub {
|
|
434
435
|
source: "github";
|
|
435
436
|
userName: string;
|
|
437
|
+
userEmail?: string;
|
|
436
438
|
link?: string;
|
|
437
439
|
role: "user" | "agent";
|
|
440
|
+
principals?: string[];
|
|
441
|
+
}
|
|
442
|
+
export interface UserSourceGitlab {
|
|
443
|
+
source: "gitlab";
|
|
444
|
+
userName: string;
|
|
445
|
+
link?: string;
|
|
446
|
+
role: "user" | "agent";
|
|
447
|
+
principals?: string[];
|
|
438
448
|
}
|
|
439
449
|
export interface UserSourceAgent {
|
|
440
450
|
source: "agent";
|
|
441
451
|
role: "agent";
|
|
452
|
+
principals?: string[];
|
|
442
453
|
}
|
|
443
|
-
export type UserSource = UserSourceBuilder | UserSourceGithub | UserSourceAgent;
|
|
454
|
+
export type UserSource = UserSourceBuilder | UserSourceGithub | UserSourceGitlab | UserSourceAgent;
|
|
444
455
|
export interface GenerateUserMessage {
|
|
445
456
|
user?: UserSource;
|
|
446
457
|
userPrompt: string;
|
|
@@ -463,7 +474,7 @@ export interface UserInput {
|
|
|
463
474
|
rerankFiles?: number;
|
|
464
475
|
mostRelevantFile: string | null;
|
|
465
476
|
toolResults: ContentMessageItemToolResult[];
|
|
466
|
-
|
|
477
|
+
user: UserSource;
|
|
467
478
|
}
|
|
468
479
|
export interface CodegenTurn {
|
|
469
480
|
state: "running" | "done" | "error";
|
|
@@ -585,9 +596,11 @@ export interface AclEntry {
|
|
|
585
596
|
resource: string;
|
|
586
597
|
permissions: Permission[];
|
|
587
598
|
description?: string;
|
|
599
|
+
principals?: string[];
|
|
588
600
|
}
|
|
589
601
|
export interface AclPolicy {
|
|
590
|
-
|
|
602
|
+
secrets?: string[];
|
|
603
|
+
entries?: AclEntry[];
|
|
591
604
|
}
|
|
592
605
|
export interface AccessResult {
|
|
593
606
|
allowed: boolean;
|
|
@@ -667,4 +680,5 @@ export interface LaunchServerStatus {
|
|
|
667
680
|
editorReady: boolean;
|
|
668
681
|
initState?: InitState;
|
|
669
682
|
errorMessage?: string;
|
|
683
|
+
devToolsVersion: string;
|
|
670
684
|
}
|
package/src/projects.d.ts
CHANGED
|
@@ -132,7 +132,7 @@ export interface ReadyMessage extends BaseMessage {
|
|
|
132
132
|
url: string;
|
|
133
133
|
status?: LaunchServerStatus;
|
|
134
134
|
}
|
|
135
|
-
export type EnsureContainerErrorCode = "FLY_APP_CHECK_ERROR" | "FLY_CAPACITY_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" | "ensure-checking-existing-machines" | "found-multiple-failed-machine" | "maximun-retries-machine-creation" | "git-auth-failed" | "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-failed"
|
|
135
|
+
export type EnsureContainerErrorCode = "FLY_APP_CHECK_ERROR" | "FLY_CAPACITY_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" | "ensure-checking-existing-machines" | "found-multiple-failed-machine" | "maximun-retries-machine-creation" | "git-auth-failed" | "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-failed" | "timeout" | "fatal:zod-validation-error" | `fatal:${string}`;
|
|
136
136
|
export interface ErrorStateMessage extends BaseMessage {
|
|
137
137
|
state: "error";
|
|
138
138
|
message: string;
|