@builder.io/ai-utils 0.37.0 → 0.38.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 +7 -1
- package/src/projects.d.ts +14 -1
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export interface CustomInstruction {
|
|
|
35
35
|
disableModelInvocation?: boolean;
|
|
36
36
|
userInvocable?: boolean;
|
|
37
37
|
}
|
|
38
|
+
/** Reasoning effort level for LLM completions. */
|
|
39
|
+
export type ReasoningEffort = "low" | "medium" | "high" | "minimal";
|
|
38
40
|
export interface CustomAgentInfo {
|
|
39
41
|
name: string;
|
|
40
42
|
description?: string;
|
|
@@ -56,6 +58,8 @@ export interface CustomAgentDefinition {
|
|
|
56
58
|
asyncSubAgents?: boolean;
|
|
57
59
|
queueMode?: QueueMode;
|
|
58
60
|
filePath?: string;
|
|
61
|
+
/** Default reasoning effort level for this agent type. Overrides the session default. */
|
|
62
|
+
reasoning?: ReasoningEffort;
|
|
59
63
|
}
|
|
60
64
|
export type CodeGenFramework = "react" | "html" | "mitosis" | "react-native" | "angular" | "vue" | "svelte" | "qwik" | "solid" | "marko" | "swiftui" | "jetpack-compose" | "flutter";
|
|
61
65
|
export type CodeGenStyleLibrary = "tailwind" | "tailwind-precise" | "emotion" | "styled-components" | "styled-jsx" | "react-native" | undefined;
|
|
@@ -737,8 +741,9 @@ export interface CodeGenInputOptions {
|
|
|
737
741
|
encryptKey?: string;
|
|
738
742
|
modelOverride?: string;
|
|
739
743
|
errorIfHadCompaction?: boolean;
|
|
744
|
+
softContextWindow?: number;
|
|
740
745
|
promptVersion?: "v1" | "v2" | "v3";
|
|
741
|
-
reasoning?:
|
|
746
|
+
reasoning?: ReasoningEffort;
|
|
742
747
|
redactUserMessages?: boolean;
|
|
743
748
|
redactLLMMessages?: boolean;
|
|
744
749
|
environmentVariables?: EnvironmentVariable[];
|
|
@@ -1294,6 +1299,7 @@ export interface GenerateUserMessage {
|
|
|
1294
1299
|
dropAbortedPrompt?: boolean;
|
|
1295
1300
|
runValidateCommand?: boolean;
|
|
1296
1301
|
modelOverride?: string;
|
|
1302
|
+
softContextWindow?: number;
|
|
1297
1303
|
maxCompletions?: number;
|
|
1298
1304
|
isManualContinue?: boolean;
|
|
1299
1305
|
includeRelevantMemories?: boolean;
|
package/src/projects.d.ts
CHANGED
|
@@ -197,7 +197,7 @@ export interface GitDiagnostics {
|
|
|
197
197
|
*/
|
|
198
198
|
likelyCause?: LikelyCause;
|
|
199
199
|
}
|
|
200
|
-
export type EnsureContainerErrorCode = "FAILED_TO_START_MACHINE_ERROR" | "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" | "FLY_MACHINE_LIMIT_ERROR" | "KUBE_CAPACITY_ERROR" | "KUBE_PERMISSIONS_ERROR" | "KUBE_POD_LIMIT_ERROR" | "KUBE_RESOURCE_QUOTA_ERROR" | "KUBE_NAMESPACE_CHECK_ERROR" | "KUBE_PVC_CREATE_ERROR" | "KUBE_PVC_CHECK_ERROR" | "KUBE_POD_CREATE_ERROR" | "KUBE_SERVICE_CREATE_ERROR" | "KUBE_INGRESS_CREATE_ERROR" | "KUBE_POD_FAILED_TO_START_ERROR" | "ensure-checking-existing-machines" | "found-multiple-failed-machine" | "maximun-retries-machine-creation" | GitAuthErrorCode | "unknown" | "project-bad-state" | "project-not-found" | "project-deleted" | "project-branch-not-found" | "project-branch-deleted" | "project-branch-no-session-id" | "project-repo-full-name-not-found" | "project-org-not-found" | "invalid-project-repo-url-already-in-use" | "no-available-regions" | "invalid-backup-without-volume-id" | "missing-app-with-machine-or-volume" | "update-branch-info-in-firebase" | "update-branch-app-name-in-firebase" | `machine-status-polling-${MachineState}` | `machine-image-exited-immediately` | `volume-not-found-${FlyVolumeState}` | "trying-to-remove-used-volume" | "missing-container-url" | "timeout" | "fatal:zod-validation-error" | `fatal:${string}`;
|
|
200
|
+
export type EnsureContainerErrorCode = "FAILED_TO_START_MACHINE_ERROR" | "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" | "FLY_MACHINE_LIMIT_ERROR" | "KUBE_CAPACITY_ERROR" | "KUBE_PERMISSIONS_ERROR" | "KUBE_POD_LIMIT_ERROR" | "KUBE_RESOURCE_QUOTA_ERROR" | "KUBE_NAMESPACE_CHECK_ERROR" | "KUBE_PVC_CREATE_ERROR" | "KUBE_PVC_CHECK_ERROR" | "KUBE_POD_CREATE_ERROR" | "KUBE_POD_DELETE_ERROR" | "KUBE_SERVICE_CREATE_ERROR" | "KUBE_INGRESS_CREATE_ERROR" | "KUBE_POD_FAILED_TO_START_ERROR" | "KUBE_POD_STATUS_TIMEOUT" | "KUBE_NAMESPACE_CREATE_ERROR" | "ensure-checking-existing-machines" | "found-multiple-failed-machine" | "maximun-retries-machine-creation" | GitAuthErrorCode | "unknown" | "project-bad-state" | "project-not-found" | "project-deleted" | "project-branch-not-found" | "project-branch-deleted" | "project-branch-no-session-id" | "project-repo-full-name-not-found" | "project-org-not-found" | "invalid-project-repo-url-already-in-use" | "no-available-regions" | "invalid-backup-without-volume-id" | "missing-app-with-machine-or-volume" | "update-branch-info-in-firebase" | "update-branch-app-name-in-firebase" | `machine-status-polling-${MachineState}` | `machine-image-exited-immediately` | `volume-not-found-${FlyVolumeState}` | "trying-to-remove-used-volume" | "missing-container-url" | "timeout" | "fatal:zod-validation-error" | `fatal:${string}`;
|
|
201
201
|
export interface ErrorStateMessage extends BaseMessage {
|
|
202
202
|
state: "error";
|
|
203
203
|
message: string;
|
|
@@ -990,10 +990,23 @@ export interface CronJobConfig {
|
|
|
990
990
|
description: string;
|
|
991
991
|
prompt: string;
|
|
992
992
|
enabled: boolean;
|
|
993
|
+
/** Users who created or last updated this job (e.g. Slack user IDs, emails, display names) */
|
|
994
|
+
maintainers?: string[];
|
|
993
995
|
}
|
|
994
996
|
export interface OrgCronConfigOptions {
|
|
995
997
|
jobs: CronJobConfig[];
|
|
996
998
|
projectId: string;
|
|
997
999
|
branchName: string;
|
|
998
1000
|
}
|
|
1001
|
+
export interface ShouldDeletePodBody {
|
|
1002
|
+
projectId: string;
|
|
1003
|
+
branchName: string;
|
|
1004
|
+
ownerId: string;
|
|
1005
|
+
branchType: string;
|
|
1006
|
+
}
|
|
1007
|
+
export interface ShouldDeletePodResponse {
|
|
1008
|
+
shouldDelete: boolean;
|
|
1009
|
+
reason: "branch_inactive" | "force_delete_flag" | "project_not_found" | "branch_not_found" | "ok" | "error";
|
|
1010
|
+
error?: string;
|
|
1011
|
+
}
|
|
999
1012
|
export {};
|