@builder.io/ai-utils 0.93.0 → 0.95.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 +17 -0
- package/src/codegen.js +5 -0
- package/src/projects.d.ts +4 -0
- package/src/projects.js +6 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -1108,6 +1108,11 @@ export declare const ProposeEnvVariableToolInputSchema: z.ZodObject<{
|
|
|
1108
1108
|
secret: z.ZodOptional<z.ZodBoolean>;
|
|
1109
1109
|
}, z.core.$strip>;
|
|
1110
1110
|
export type ProposeEnvVariableToolInput = z.infer<typeof ProposeEnvVariableToolInputSchema>;
|
|
1111
|
+
/**
|
|
1112
|
+
* Set by the CLI on a `ProposeEnvVariable` it applied without confirmation. A CLI
|
|
1113
|
+
* predating that path never sets it, so the service won't persist what it prompts for.
|
|
1114
|
+
*/
|
|
1115
|
+
export declare const AUTO_APPLIED_ENV_VARIABLE_RESULT_KEY = "autoAppliedEnvVariable";
|
|
1111
1116
|
export declare const SetEnvVariableToolInputSchema: z.ZodObject<{
|
|
1112
1117
|
key: z.ZodString;
|
|
1113
1118
|
value: z.ZodString;
|
|
@@ -4355,6 +4360,12 @@ export interface FusionConfig {
|
|
|
4355
4360
|
serverUrl?: string;
|
|
4356
4361
|
isLocal?: boolean;
|
|
4357
4362
|
environmentVariables?: EnvironmentVariable[];
|
|
4363
|
+
/**
|
|
4364
|
+
* Env var names `ProposeEnvVariable` may set without a confirmation prompt.
|
|
4365
|
+
* Server-supplied per project (see `autoApplyEnvVariableKeys`); any key not
|
|
4366
|
+
* listed still goes through the confirmation UI.
|
|
4367
|
+
*/
|
|
4368
|
+
autoApplyEnvVariableKeys?: string[];
|
|
4358
4369
|
/** @deprecated */
|
|
4359
4370
|
envVariables?: Record<string, string>;
|
|
4360
4371
|
accessControl?: AclPolicy;
|
|
@@ -4540,6 +4551,12 @@ export interface LaunchServerStatus {
|
|
|
4540
4551
|
fusionEnvironment: "cloud" | "cloud-v2" | "unknown";
|
|
4541
4552
|
containerState: "idle" | "busy";
|
|
4542
4553
|
containerStateTimestamp: number;
|
|
4554
|
+
/**
|
|
4555
|
+
* Shutdown has started draining. New prompts are refused from here on: they
|
|
4556
|
+
* would be queued behind a codegen server that is about to close, and lost
|
|
4557
|
+
* with it.
|
|
4558
|
+
*/
|
|
4559
|
+
draining?: boolean;
|
|
4543
4560
|
activeOperations: number;
|
|
4544
4561
|
diskUsage?: number;
|
|
4545
4562
|
memoryUsage?: number;
|
package/src/codegen.js
CHANGED
|
@@ -1197,6 +1197,11 @@ export const ProposeEnvVariableToolInputSchema = z
|
|
|
1197
1197
|
}),
|
|
1198
1198
|
})
|
|
1199
1199
|
.meta({ title: "ProposeEnvVariableToolInput" });
|
|
1200
|
+
/**
|
|
1201
|
+
* Set by the CLI on a `ProposeEnvVariable` it applied without confirmation. A CLI
|
|
1202
|
+
* predating that path never sets it, so the service won't persist what it prompts for.
|
|
1203
|
+
*/
|
|
1204
|
+
export const AUTO_APPLIED_ENV_VARIABLE_RESULT_KEY = "autoAppliedEnvVariable";
|
|
1200
1205
|
export const SetEnvVariableToolInputSchema = z
|
|
1201
1206
|
.object({
|
|
1202
1207
|
key: z.string().meta({
|
package/src/projects.d.ts
CHANGED
|
@@ -2300,6 +2300,8 @@ export declare const ProjectHostingSchema: z.ZodObject<{
|
|
|
2300
2300
|
"zero-credits": "zero-credits";
|
|
2301
2301
|
}>>;
|
|
2302
2302
|
domainIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2303
|
+
freeDeployCount: z.ZodOptional<z.ZodNumber>;
|
|
2304
|
+
freeDeployCap: z.ZodOptional<z.ZodNumber>;
|
|
2303
2305
|
aiPaymentMode: z.ZodOptional<z.ZodEnum<{
|
|
2304
2306
|
"builder-credits": "builder-credits";
|
|
2305
2307
|
byok: "byok";
|
|
@@ -3864,6 +3866,8 @@ export declare const ProjectTemplateSchema: z.ZodObject<{
|
|
|
3864
3866
|
"zero-credits": "zero-credits";
|
|
3865
3867
|
}>>;
|
|
3866
3868
|
domainIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3869
|
+
freeDeployCount: z.ZodOptional<z.ZodNumber>;
|
|
3870
|
+
freeDeployCap: z.ZodOptional<z.ZodNumber>;
|
|
3867
3871
|
aiPaymentMode: z.ZodOptional<z.ZodEnum<{
|
|
3868
3872
|
"builder-credits": "builder-credits";
|
|
3869
3873
|
byok: "byok";
|
package/src/projects.js
CHANGED
|
@@ -1062,6 +1062,12 @@ export const ProjectHostingSchema = z.object({
|
|
|
1062
1062
|
domainIds: z.array(z.string()).optional().meta({
|
|
1063
1063
|
description: "Doc keys (normalized domains) in `hosting-domains` attached to this project. The domain docs are the source of truth; this is only the back-pointer.",
|
|
1064
1064
|
}),
|
|
1065
|
+
freeDeployCount: z.number().optional().meta({
|
|
1066
|
+
description: "Deploys used this Builder cycle against the free-tier cap. Response-only; not persisted on this document.",
|
|
1067
|
+
}),
|
|
1068
|
+
freeDeployCap: z.number().optional().meta({
|
|
1069
|
+
description: "The free-tier deploy cap (5/mo) freeDeployCount is measured against. Response-only.",
|
|
1070
|
+
}),
|
|
1065
1071
|
/**
|
|
1066
1072
|
* Who pays for AI usage on the published site. Written only by
|
|
1067
1073
|
* `POST /projects/hosting/ai-usage`, which gates on `fusionHostingPublish`;
|