@builder.io/ai-utils 0.95.0 → 0.97.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/src/projects.d.ts CHANGED
@@ -251,6 +251,16 @@ export declare const matchesAgentNativeStarter: (repo: {
251
251
  repoName?: string | null;
252
252
  templateRepoUrl?: string | null;
253
253
  }) => boolean;
254
+ export declare function getManagedDatabasePackageJsonError(content: string): string | undefined;
255
+ export declare function getAgentNativeRootPackageJsonWriteError(args: {
256
+ repo: {
257
+ repoName?: string | null;
258
+ templateRepoUrl?: string | null;
259
+ };
260
+ repoPath: string;
261
+ resolvedPath: string;
262
+ content: string;
263
+ }): string | undefined;
254
264
  export declare const EXAMPLE_OR_STARTER_REPOS: string[];
255
265
  export declare const EXAMPLE_OR_STARTER_REPOS_URLS: string[];
256
266
  export interface GitBackupUploadUrlResult {
@@ -757,6 +767,140 @@ export interface ListBranchesResult {
757
767
  }
758
768
  export type CpuKind = "performance" | "standard" | "shared";
759
769
  export type MachineAutoStop = "stop" | "off" | "suspend";
770
+ export declare const ShapeEffectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
771
+ kind: z.ZodLiteral<"remove-env">;
772
+ scope: z.ZodLiteral<"hosting-prod">;
773
+ key: z.ZodString;
774
+ }, z.core.$strip>, z.ZodObject<{
775
+ kind: z.ZodLiteral<"attach-design-system">;
776
+ designSystemId: z.ZodString;
777
+ }, z.core.$strip>], "kind">;
778
+ export type ShapeEffect = z.infer<typeof ShapeEffectSchema>;
779
+ export declare const ShapeOptionEffectSchema: z.ZodObject<{
780
+ instruction: z.ZodOptional<z.ZodString>;
781
+ effects: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
782
+ kind: z.ZodLiteral<"remove-env">;
783
+ scope: z.ZodLiteral<"hosting-prod">;
784
+ key: z.ZodString;
785
+ }, z.core.$strip>, z.ZodObject<{
786
+ kind: z.ZodLiteral<"attach-design-system">;
787
+ designSystemId: z.ZodString;
788
+ }, z.core.$strip>], "kind">>>;
789
+ }, z.core.$strip>;
790
+ export type ShapeOptionEffect = z.infer<typeof ShapeOptionEffectSchema>;
791
+ export declare const ShapeOptionSchema: z.ZodObject<{
792
+ id: z.ZodString;
793
+ label: z.ZodString;
794
+ effect: z.ZodOptional<z.ZodObject<{
795
+ instruction: z.ZodOptional<z.ZodString>;
796
+ effects: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
797
+ kind: z.ZodLiteral<"remove-env">;
798
+ scope: z.ZodLiteral<"hosting-prod">;
799
+ key: z.ZodString;
800
+ }, z.core.$strip>, z.ZodObject<{
801
+ kind: z.ZodLiteral<"attach-design-system">;
802
+ designSystemId: z.ZodString;
803
+ }, z.core.$strip>], "kind">>>;
804
+ }, z.core.$strip>>;
805
+ }, z.core.$strip>;
806
+ export type ShapeOption = z.infer<typeof ShapeOptionSchema>;
807
+ export declare const ShapeQuestionSchema: z.ZodObject<{
808
+ id: z.ZodString;
809
+ question: z.ZodString;
810
+ kind: z.ZodEnum<{
811
+ "figma-upload": "figma-upload";
812
+ select: "select";
813
+ }>;
814
+ options: z.ZodArray<z.ZodObject<{
815
+ id: z.ZodString;
816
+ label: z.ZodString;
817
+ effect: z.ZodOptional<z.ZodObject<{
818
+ instruction: z.ZodOptional<z.ZodString>;
819
+ effects: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
820
+ kind: z.ZodLiteral<"remove-env">;
821
+ scope: z.ZodLiteral<"hosting-prod">;
822
+ key: z.ZodString;
823
+ }, z.core.$strip>, z.ZodObject<{
824
+ kind: z.ZodLiteral<"attach-design-system">;
825
+ designSystemId: z.ZodString;
826
+ }, z.core.$strip>], "kind">>>;
827
+ }, z.core.$strip>>;
828
+ }, z.core.$strip>>;
829
+ guessOptionId: z.ZodOptional<z.ZodString>;
830
+ }, z.core.$strip>;
831
+ export type ShapeQuestion = z.infer<typeof ShapeQuestionSchema>;
832
+ export declare const ShapeAnswerSchema: z.ZodObject<{
833
+ questionId: z.ZodString;
834
+ optionId: z.ZodOptional<z.ZodString>;
835
+ designSystemId: z.ZodOptional<z.ZodString>;
836
+ skipped: z.ZodBoolean;
837
+ delegated: z.ZodBoolean;
838
+ resolvedFrom: z.ZodEnum<{
839
+ llm: "llm";
840
+ user: "user";
841
+ }>;
842
+ llmOptionId: z.ZodOptional<z.ZodString>;
843
+ guessOptionId: z.ZodOptional<z.ZodString>;
844
+ }, z.core.$strip>;
845
+ export type ShapeAnswer = z.infer<typeof ShapeAnswerSchema>;
846
+ export declare const ShapeSessionSchema: z.ZodObject<{
847
+ questionnaireId: z.ZodString;
848
+ catalogVersion: z.ZodString;
849
+ source: z.ZodEnum<{
850
+ agent: "agent";
851
+ static: "static";
852
+ }>;
853
+ status: z.ZodEnum<{
854
+ assembling: "assembling";
855
+ pending: "pending";
856
+ resolved: "resolved";
857
+ }>;
858
+ selection: z.ZodEnum<{
859
+ fallback: "fallback";
860
+ llm: "llm";
861
+ }>;
862
+ questions: z.ZodArray<z.ZodObject<{
863
+ id: z.ZodString;
864
+ question: z.ZodString;
865
+ kind: z.ZodEnum<{
866
+ "figma-upload": "figma-upload";
867
+ select: "select";
868
+ }>;
869
+ options: z.ZodArray<z.ZodObject<{
870
+ id: z.ZodString;
871
+ label: z.ZodString;
872
+ effect: z.ZodOptional<z.ZodObject<{
873
+ instruction: z.ZodOptional<z.ZodString>;
874
+ effects: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
875
+ kind: z.ZodLiteral<"remove-env">;
876
+ scope: z.ZodLiteral<"hosting-prod">;
877
+ key: z.ZodString;
878
+ }, z.core.$strip>, z.ZodObject<{
879
+ kind: z.ZodLiteral<"attach-design-system">;
880
+ designSystemId: z.ZodString;
881
+ }, z.core.$strip>], "kind">>>;
882
+ }, z.core.$strip>>;
883
+ }, z.core.$strip>>;
884
+ guessOptionId: z.ZodOptional<z.ZodString>;
885
+ }, z.core.$strip>>;
886
+ initialPromptId: z.ZodString;
887
+ answers: z.ZodOptional<z.ZodArray<z.ZodObject<{
888
+ questionId: z.ZodString;
889
+ optionId: z.ZodOptional<z.ZodString>;
890
+ designSystemId: z.ZodOptional<z.ZodString>;
891
+ skipped: z.ZodBoolean;
892
+ delegated: z.ZodBoolean;
893
+ resolvedFrom: z.ZodEnum<{
894
+ llm: "llm";
895
+ user: "user";
896
+ }>;
897
+ llmOptionId: z.ZodOptional<z.ZodString>;
898
+ guessOptionId: z.ZodOptional<z.ZodString>;
899
+ }, z.core.$strip>>>;
900
+ assembledAt: z.ZodOptional<z.ZodString>;
901
+ resolvedAt: z.ZodOptional<z.ZodString>;
902
+ }, z.core.$strip>;
903
+ export type ShapeSession = z.infer<typeof ShapeSessionSchema>;
760
904
  export declare const ProjectRolePermissionsSchema: z.ZodObject<{
761
905
  view: z.ZodOptional<z.ZodBoolean>;
762
906
  editCode: z.ZodOptional<z.ZodBoolean>;
@@ -981,10 +1125,11 @@ export declare const ProjectSettingsSchema: z.ZodObject<{
981
1125
  "org-worker": "org-worker";
982
1126
  "project-configuration": "project-configuration";
983
1127
  "projects-scheduler-memory-extraction": "projects-scheduler-memory-extraction";
1128
+ "publish-agent": "publish-agent";
984
1129
  "repo-indexing": "repo-indexing";
985
1130
  "setup-project": "setup-project";
986
1131
  unknown: "unknown";
987
- }>, z.ZodTemplateLiteral<"browser-testing-agent" | "builder-code-agent" | "builder-code-panel-agent" | "builder-publish-integration-agent" | "cli-agent" | "code-review-orchestrator-agent" | "create-app-firebase-agent" | "create-app-lovable-agent" | "design-system-indexer-agent" | "dsi-mcp-agent" | "editor-ai-agent" | "fusion-agent" | "org-agent-agent" | "org-worker-agent" | "project-configuration-agent" | "projects-scheduler-memory-extraction-agent" | "repo-indexing-agent" | "setup-project-agent" | "unknown-agent">]>>;
1132
+ }>, z.ZodTemplateLiteral<"browser-testing-agent" | "builder-code-agent" | "builder-code-panel-agent" | "builder-publish-integration-agent" | "cli-agent" | "code-review-orchestrator-agent" | "create-app-firebase-agent" | "create-app-lovable-agent" | "design-system-indexer-agent" | "dsi-mcp-agent" | "editor-ai-agent" | "fusion-agent" | "org-agent-agent" | "org-worker-agent" | "project-configuration-agent" | "projects-scheduler-memory-extraction-agent" | "publish-agent-agent" | "repo-indexing-agent" | "setup-project-agent" | "unknown-agent">]>>;
988
1133
  needDevServer: z.ZodOptional<z.ZodBoolean>;
989
1134
  needValidation: z.ZodOptional<z.ZodBoolean>;
990
1135
  includeMemories: z.ZodOptional<z.ZodBoolean>;
@@ -1160,6 +1305,63 @@ export declare const ProjectSettingsSchema: z.ZodObject<{
1160
1305
  enabled: z.ZodBoolean;
1161
1306
  password: z.ZodOptional<z.ZodString>;
1162
1307
  }, z.core.$strip>>;
1308
+ shapeSession: z.ZodOptional<z.ZodObject<{
1309
+ questionnaireId: z.ZodString;
1310
+ catalogVersion: z.ZodString;
1311
+ source: z.ZodEnum<{
1312
+ agent: "agent";
1313
+ static: "static";
1314
+ }>;
1315
+ status: z.ZodEnum<{
1316
+ assembling: "assembling";
1317
+ pending: "pending";
1318
+ resolved: "resolved";
1319
+ }>;
1320
+ selection: z.ZodEnum<{
1321
+ fallback: "fallback";
1322
+ llm: "llm";
1323
+ }>;
1324
+ questions: z.ZodArray<z.ZodObject<{
1325
+ id: z.ZodString;
1326
+ question: z.ZodString;
1327
+ kind: z.ZodEnum<{
1328
+ "figma-upload": "figma-upload";
1329
+ select: "select";
1330
+ }>;
1331
+ options: z.ZodArray<z.ZodObject<{
1332
+ id: z.ZodString;
1333
+ label: z.ZodString;
1334
+ effect: z.ZodOptional<z.ZodObject<{
1335
+ instruction: z.ZodOptional<z.ZodString>;
1336
+ effects: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1337
+ kind: z.ZodLiteral<"remove-env">;
1338
+ scope: z.ZodLiteral<"hosting-prod">;
1339
+ key: z.ZodString;
1340
+ }, z.core.$strip>, z.ZodObject<{
1341
+ kind: z.ZodLiteral<"attach-design-system">;
1342
+ designSystemId: z.ZodString;
1343
+ }, z.core.$strip>], "kind">>>;
1344
+ }, z.core.$strip>>;
1345
+ }, z.core.$strip>>;
1346
+ guessOptionId: z.ZodOptional<z.ZodString>;
1347
+ }, z.core.$strip>>;
1348
+ initialPromptId: z.ZodString;
1349
+ answers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1350
+ questionId: z.ZodString;
1351
+ optionId: z.ZodOptional<z.ZodString>;
1352
+ designSystemId: z.ZodOptional<z.ZodString>;
1353
+ skipped: z.ZodBoolean;
1354
+ delegated: z.ZodBoolean;
1355
+ resolvedFrom: z.ZodEnum<{
1356
+ llm: "llm";
1357
+ user: "user";
1358
+ }>;
1359
+ llmOptionId: z.ZodOptional<z.ZodString>;
1360
+ guessOptionId: z.ZodOptional<z.ZodString>;
1361
+ }, z.core.$strip>>>;
1362
+ assembledAt: z.ZodOptional<z.ZodString>;
1363
+ resolvedAt: z.ZodOptional<z.ZodString>;
1364
+ }, z.core.$strip>>;
1163
1365
  }, z.core.$strip>;
1164
1366
  export type ProjectSettings = z.infer<typeof ProjectSettingsSchema>;
1165
1367
  /**
@@ -1321,10 +1523,11 @@ export declare const ProjectSettingsExternalSchema: z.ZodObject<{
1321
1523
  "org-worker": "org-worker";
1322
1524
  "project-configuration": "project-configuration";
1323
1525
  "projects-scheduler-memory-extraction": "projects-scheduler-memory-extraction";
1526
+ "publish-agent": "publish-agent";
1324
1527
  "repo-indexing": "repo-indexing";
1325
1528
  "setup-project": "setup-project";
1326
1529
  unknown: "unknown";
1327
- }>, z.ZodTemplateLiteral<"browser-testing-agent" | "builder-code-agent" | "builder-code-panel-agent" | "builder-publish-integration-agent" | "cli-agent" | "code-review-orchestrator-agent" | "create-app-firebase-agent" | "create-app-lovable-agent" | "design-system-indexer-agent" | "dsi-mcp-agent" | "editor-ai-agent" | "fusion-agent" | "org-agent-agent" | "org-worker-agent" | "project-configuration-agent" | "projects-scheduler-memory-extraction-agent" | "repo-indexing-agent" | "setup-project-agent" | "unknown-agent">]>>;
1530
+ }>, z.ZodTemplateLiteral<"browser-testing-agent" | "builder-code-agent" | "builder-code-panel-agent" | "builder-publish-integration-agent" | "cli-agent" | "code-review-orchestrator-agent" | "create-app-firebase-agent" | "create-app-lovable-agent" | "design-system-indexer-agent" | "dsi-mcp-agent" | "editor-ai-agent" | "fusion-agent" | "org-agent-agent" | "org-worker-agent" | "project-configuration-agent" | "projects-scheduler-memory-extraction-agent" | "publish-agent-agent" | "repo-indexing-agent" | "setup-project-agent" | "unknown-agent">]>>;
1328
1531
  needDevServer: z.ZodOptional<z.ZodBoolean>;
1329
1532
  needValidation: z.ZodOptional<z.ZodBoolean>;
1330
1533
  includeMemories: z.ZodOptional<z.ZodBoolean>;
@@ -1923,6 +2126,7 @@ export interface CreateBranchOptions {
1923
2126
  branchFriendlyName?: string;
1924
2127
  agentType?: AgentType;
1925
2128
  actor: string;
2129
+ isPublic?: boolean;
1926
2130
  hidden?: boolean;
1927
2131
  featureFlags?: Record<string, boolean>;
1928
2132
  checkoutBranch?: string | null;
@@ -1980,6 +2184,7 @@ export interface CreateBranchOptions {
1980
2184
  */
1981
2185
  sessionId?: string;
1982
2186
  }
2187
+ export declare function resolveBranchIsPublic(isPublic: boolean | undefined, defaultBranchType: "shared" | "private" | undefined): boolean;
1983
2188
  interface BaseCreateBranchMessage {
1984
2189
  }
1985
2190
  export interface CreatingBranchMessage extends BaseCreateBranchMessage {
@@ -2522,10 +2727,11 @@ export declare const UpdateProjectOptionsSchema: z.ZodObject<{
2522
2727
  "org-worker": "org-worker";
2523
2728
  "project-configuration": "project-configuration";
2524
2729
  "projects-scheduler-memory-extraction": "projects-scheduler-memory-extraction";
2730
+ "publish-agent": "publish-agent";
2525
2731
  "repo-indexing": "repo-indexing";
2526
2732
  "setup-project": "setup-project";
2527
2733
  unknown: "unknown";
2528
- }>, z.ZodTemplateLiteral<"browser-testing-agent" | "builder-code-agent" | "builder-code-panel-agent" | "builder-publish-integration-agent" | "cli-agent" | "code-review-orchestrator-agent" | "create-app-firebase-agent" | "create-app-lovable-agent" | "design-system-indexer-agent" | "dsi-mcp-agent" | "editor-ai-agent" | "fusion-agent" | "org-agent-agent" | "org-worker-agent" | "project-configuration-agent" | "projects-scheduler-memory-extraction-agent" | "repo-indexing-agent" | "setup-project-agent" | "unknown-agent">]>>;
2734
+ }>, z.ZodTemplateLiteral<"browser-testing-agent" | "builder-code-agent" | "builder-code-panel-agent" | "builder-publish-integration-agent" | "cli-agent" | "code-review-orchestrator-agent" | "create-app-firebase-agent" | "create-app-lovable-agent" | "design-system-indexer-agent" | "dsi-mcp-agent" | "editor-ai-agent" | "fusion-agent" | "org-agent-agent" | "org-worker-agent" | "project-configuration-agent" | "projects-scheduler-memory-extraction-agent" | "publish-agent-agent" | "repo-indexing-agent" | "setup-project-agent" | "unknown-agent">]>>;
2529
2735
  needDevServer: z.ZodOptional<z.ZodBoolean>;
2530
2736
  needValidation: z.ZodOptional<z.ZodBoolean>;
2531
2737
  includeMemories: z.ZodOptional<z.ZodBoolean>;
@@ -2800,6 +3006,62 @@ export type UpdateProjectOptions = z.infer<typeof UpdateProjectOptionsSchema>;
2800
3006
  /**
2801
3007
  * A single deploy record, stored at `deploys/{deployId}`. The Deploy.id is the document key.
2802
3008
  */
3009
+ /**
3010
+ * Pipeline step a deploy died at. Set by the pod, the only place that still
3011
+ * knows, so the server can attribute the failure without reading log text.
3012
+ */
3013
+ export declare const DeployFailureStageSchema: z.ZodEnum<{
3014
+ build: "build";
3015
+ init: "init";
3016
+ migrate: "migrate";
3017
+ package: "package";
3018
+ setup: "setup";
3019
+ upload: "upload";
3020
+ }>;
3021
+ export type DeployFailureStage = z.infer<typeof DeployFailureStageSchema>;
3022
+ /** `app` is the only value that reaches the agent, so unknowns resolve away from it. */
3023
+ export declare const DeployFailureOwnerSchema: z.ZodEnum<{
3024
+ app: "app";
3025
+ platform: "platform";
3026
+ unknown: "unknown";
3027
+ }>;
3028
+ export type DeployFailureOwner = z.infer<typeof DeployFailureOwnerSchema>;
3029
+ /** What the deploy pod reports about a failure. All optional: older pods send none of it. */
3030
+ export declare const DeployFailureReportSchema: z.ZodObject<{
3031
+ stage: z.ZodOptional<z.ZodEnum<{
3032
+ build: "build";
3033
+ init: "init";
3034
+ migrate: "migrate";
3035
+ package: "package";
3036
+ setup: "setup";
3037
+ upload: "upload";
3038
+ }>>;
3039
+ exitCode: z.ZodOptional<z.ZodNumber>;
3040
+ signal: z.ZodOptional<z.ZodString>;
3041
+ excerpt: z.ZodOptional<z.ZodString>;
3042
+ }, z.core.$strip>;
3043
+ export type DeployFailureReport = z.infer<typeof DeployFailureReportSchema>;
3044
+ export declare const DeployFailureSchema: z.ZodObject<{
3045
+ stage: z.ZodOptional<z.ZodEnum<{
3046
+ build: "build";
3047
+ init: "init";
3048
+ migrate: "migrate";
3049
+ package: "package";
3050
+ setup: "setup";
3051
+ upload: "upload";
3052
+ }>>;
3053
+ owner: z.ZodEnum<{
3054
+ app: "app";
3055
+ platform: "platform";
3056
+ unknown: "unknown";
3057
+ }>;
3058
+ code: z.ZodString;
3059
+ summary: z.ZodString;
3060
+ exitCode: z.ZodOptional<z.ZodNumber>;
3061
+ signal: z.ZodOptional<z.ZodString>;
3062
+ fixRequested: z.ZodOptional<z.ZodBoolean>;
3063
+ }, z.core.$strip>;
3064
+ export type DeployFailure = z.infer<typeof DeployFailureSchema>;
2803
3065
  export declare const DeploySchema: z.ZodObject<{
2804
3066
  id: z.ZodString;
2805
3067
  projectId: z.ZodString;
@@ -2829,11 +3091,38 @@ export declare const DeploySchema: z.ZodObject<{
2829
3091
  url: z.ZodOptional<z.ZodString>;
2830
3092
  migrationApplied: z.ZodOptional<z.ZodBoolean>;
2831
3093
  error: z.ZodOptional<z.ZodString>;
3094
+ failure: z.ZodOptional<z.ZodObject<{
3095
+ stage: z.ZodOptional<z.ZodEnum<{
3096
+ build: "build";
3097
+ init: "init";
3098
+ migrate: "migrate";
3099
+ package: "package";
3100
+ setup: "setup";
3101
+ upload: "upload";
3102
+ }>>;
3103
+ owner: z.ZodEnum<{
3104
+ app: "app";
3105
+ platform: "platform";
3106
+ unknown: "unknown";
3107
+ }>;
3108
+ code: z.ZodString;
3109
+ summary: z.ZodString;
3110
+ exitCode: z.ZodOptional<z.ZodNumber>;
3111
+ signal: z.ZodOptional<z.ZodString>;
3112
+ fixRequested: z.ZodOptional<z.ZodBoolean>;
3113
+ }, z.core.$strip>>;
2832
3114
  createdAt: z.ZodNumber;
2833
3115
  completedAt: z.ZodOptional<z.ZodNumber>;
2834
3116
  triggeredBy: z.ZodString;
2835
3117
  }, z.core.$strip>;
2836
3118
  export type Deploy = z.infer<typeof DeploySchema>;
3119
+ /**
3120
+ * The user who asked for this deploy, or `undefined` when nobody did. Lives
3121
+ * with the schema so every caller that needs a real user agrees on what counts.
3122
+ */
3123
+ export declare function deployTriggeringUser(deploy: {
3124
+ triggeredBy?: string;
3125
+ }): string | undefined;
2837
3126
  /**
2838
3127
  * Permanent slug reservation, stored at `hosting-slugs/{slug}` (slug is the document key).
2839
3128
  *
@@ -2928,6 +3217,26 @@ export declare const DeployListItemSchema: z.ZodObject<{
2928
3217
  }>;
2929
3218
  url: z.ZodOptional<z.ZodString>;
2930
3219
  error: z.ZodOptional<z.ZodString>;
3220
+ failure: z.ZodOptional<z.ZodObject<{
3221
+ stage: z.ZodOptional<z.ZodEnum<{
3222
+ build: "build";
3223
+ init: "init";
3224
+ migrate: "migrate";
3225
+ package: "package";
3226
+ setup: "setup";
3227
+ upload: "upload";
3228
+ }>>;
3229
+ owner: z.ZodEnum<{
3230
+ app: "app";
3231
+ platform: "platform";
3232
+ unknown: "unknown";
3233
+ }>;
3234
+ code: z.ZodString;
3235
+ summary: z.ZodString;
3236
+ exitCode: z.ZodOptional<z.ZodNumber>;
3237
+ signal: z.ZodOptional<z.ZodString>;
3238
+ fixRequested: z.ZodOptional<z.ZodBoolean>;
3239
+ }, z.core.$strip>>;
2931
3240
  createdAt: z.ZodNumber;
2932
3241
  completedAt: z.ZodOptional<z.ZodNumber>;
2933
3242
  }, z.core.$strip>;
@@ -2966,6 +3275,31 @@ export declare function builderConfigHostingToBuildOverrides(hosting: BuilderCon
2966
3275
  export declare function mergeBuildConfigOverrides(fromFile: BuildConfigOverrides, fromFirestore: BuildConfigOverrides | undefined): BuildConfigOverrides;
2967
3276
  /** True when merged hosting build config includes at least one build setting. */
2968
3277
  export declare function hasResolvableHostingBuildConfig(overrides?: BuildConfigOverrides): boolean;
3278
+ /**
3279
+ * Env vars every hosted deploy gets unless the project sets them itself.
3280
+ *
3281
+ * Recurring jobs default off because Agent Native ships a Netlify scheduled function
3282
+ * that wakes a background sweep every minute for the life of the deploy, even when the
3283
+ * app defines no jobs — enough to keep a scale-to-zero database from ever suspending.
3284
+ * Set `AGENT_NATIVE_DISABLE_RECURRING_JOBS=false` in the build env to opt back in.
3285
+ */
3286
+ export declare const HOSTED_DEPLOY_ENV_DEFAULTS: Readonly<Record<string, string>>;
3287
+ /**
3288
+ * Layer `HOSTED_DEPLOY_ENV_DEFAULTS` under a build config's env, project values winning.
3289
+ *
3290
+ * Call only after `hasResolvableHostingBuildConfig` — the defaults would otherwise make
3291
+ * a project with no hosting config look deployable. Keys are trimmed so a padded project
3292
+ * key still wins instead of sitting beside the default the build actually reads.
3293
+ */
3294
+ export declare function applyHostedBuildEnvDefaults(overrides: BuildConfigOverrides): BuildConfigOverrides;
3295
+ /**
3296
+ * What a build env resolved each `HOSTED_DEPLOY_ENV_DEFAULTS` key to. The deploy pod
3297
+ * sends this to the service so the runtime env matches what the build compiled against.
3298
+ *
3299
+ * Keys outside `HOSTED_DEPLOY_ENV_DEFAULTS` are dropped, so this is safe to call on an
3300
+ * env record that arrived in an event payload.
3301
+ */
3302
+ export declare function resolveHostedEnvDefaults(environment: Record<string, string> | undefined): Record<string, string>;
2969
3303
  /**
2970
3304
  * Request body for `POST /_builder.io/api/build-and-upload` on the deploy pod.
2971
3305
  */
@@ -3128,6 +3462,26 @@ export declare const GetDeploysResponseSchema: z.ZodObject<{
3128
3462
  }>;
3129
3463
  url: z.ZodOptional<z.ZodString>;
3130
3464
  error: z.ZodOptional<z.ZodString>;
3465
+ failure: z.ZodOptional<z.ZodObject<{
3466
+ stage: z.ZodOptional<z.ZodEnum<{
3467
+ build: "build";
3468
+ init: "init";
3469
+ migrate: "migrate";
3470
+ package: "package";
3471
+ setup: "setup";
3472
+ upload: "upload";
3473
+ }>>;
3474
+ owner: z.ZodEnum<{
3475
+ app: "app";
3476
+ platform: "platform";
3477
+ unknown: "unknown";
3478
+ }>;
3479
+ code: z.ZodString;
3480
+ summary: z.ZodString;
3481
+ exitCode: z.ZodOptional<z.ZodNumber>;
3482
+ signal: z.ZodOptional<z.ZodString>;
3483
+ fixRequested: z.ZodOptional<z.ZodBoolean>;
3484
+ }, z.core.$strip>>;
3131
3485
  createdAt: z.ZodNumber;
3132
3486
  completedAt: z.ZodOptional<z.ZodNumber>;
3133
3487
  }, z.core.$strip>>;
@@ -3283,6 +3637,20 @@ export declare const CloneProjectOptionsSchema: z.ZodObject<{
3283
3637
  useKube: z.ZodDefault<z.ZodBoolean>;
3284
3638
  }, z.core.$strip>;
3285
3639
  export type CloneProjectOptions = z.infer<typeof CloneProjectOptionsSchema>;
3640
+ export declare const GetPreferredProjectForRepoOptionsSchema: z.ZodObject<{
3641
+ repoUrl: z.ZodString;
3642
+ repoFullName: z.ZodOptional<z.ZodString>;
3643
+ }, z.core.$strip>;
3644
+ export type GetPreferredProjectForRepoOptions = z.infer<typeof GetPreferredProjectForRepoOptionsSchema>;
3645
+ /** Identity only — this powers a "currently preferred: X" label, not a project read. */
3646
+ export declare const GetPreferredProjectForRepoResultSchema: z.ZodObject<{
3647
+ status: z.ZodLiteral<"success">;
3648
+ project: z.ZodNullable<z.ZodObject<{
3649
+ id: z.ZodString;
3650
+ name: z.ZodString;
3651
+ }, z.core.$strip>>;
3652
+ }, z.core.$strip>;
3653
+ export type GetPreferredProjectForRepoResult = z.infer<typeof GetPreferredProjectForRepoResultSchema>;
3286
3654
  /**
3287
3655
  * Write-time contract for a single hosted-site access rule. Mirrors the stored
3288
3656
  * {@link SiteAccessRule} in `organization.ts`, except a password rule carries a
@@ -3631,10 +3999,11 @@ export declare const ProjectTemplateSchema: z.ZodObject<{
3631
3999
  "org-worker": "org-worker";
3632
4000
  "project-configuration": "project-configuration";
3633
4001
  "projects-scheduler-memory-extraction": "projects-scheduler-memory-extraction";
4002
+ "publish-agent": "publish-agent";
3634
4003
  "repo-indexing": "repo-indexing";
3635
4004
  "setup-project": "setup-project";
3636
4005
  unknown: "unknown";
3637
- }>, z.ZodTemplateLiteral<"browser-testing-agent" | "builder-code-agent" | "builder-code-panel-agent" | "builder-publish-integration-agent" | "cli-agent" | "code-review-orchestrator-agent" | "create-app-firebase-agent" | "create-app-lovable-agent" | "design-system-indexer-agent" | "dsi-mcp-agent" | "editor-ai-agent" | "fusion-agent" | "org-agent-agent" | "org-worker-agent" | "project-configuration-agent" | "projects-scheduler-memory-extraction-agent" | "repo-indexing-agent" | "setup-project-agent" | "unknown-agent">]>>;
4006
+ }>, z.ZodTemplateLiteral<"browser-testing-agent" | "builder-code-agent" | "builder-code-panel-agent" | "builder-publish-integration-agent" | "cli-agent" | "code-review-orchestrator-agent" | "create-app-firebase-agent" | "create-app-lovable-agent" | "design-system-indexer-agent" | "dsi-mcp-agent" | "editor-ai-agent" | "fusion-agent" | "org-agent-agent" | "org-worker-agent" | "project-configuration-agent" | "projects-scheduler-memory-extraction-agent" | "publish-agent-agent" | "repo-indexing-agent" | "setup-project-agent" | "unknown-agent">]>>;
3638
4007
  needDevServer: z.ZodOptional<z.ZodBoolean>;
3639
4008
  needValidation: z.ZodOptional<z.ZodBoolean>;
3640
4009
  includeMemories: z.ZodOptional<z.ZodBoolean>;
@@ -3810,6 +4179,63 @@ export declare const ProjectTemplateSchema: z.ZodObject<{
3810
4179
  enabled: z.ZodBoolean;
3811
4180
  password: z.ZodOptional<z.ZodString>;
3812
4181
  }, z.core.$strip>>>;
4182
+ shapeSession: z.ZodOptional<z.ZodOptional<z.ZodObject<{
4183
+ questionnaireId: z.ZodString;
4184
+ catalogVersion: z.ZodString;
4185
+ source: z.ZodEnum<{
4186
+ agent: "agent";
4187
+ static: "static";
4188
+ }>;
4189
+ status: z.ZodEnum<{
4190
+ assembling: "assembling";
4191
+ pending: "pending";
4192
+ resolved: "resolved";
4193
+ }>;
4194
+ selection: z.ZodEnum<{
4195
+ fallback: "fallback";
4196
+ llm: "llm";
4197
+ }>;
4198
+ questions: z.ZodArray<z.ZodObject<{
4199
+ id: z.ZodString;
4200
+ question: z.ZodString;
4201
+ kind: z.ZodEnum<{
4202
+ "figma-upload": "figma-upload";
4203
+ select: "select";
4204
+ }>;
4205
+ options: z.ZodArray<z.ZodObject<{
4206
+ id: z.ZodString;
4207
+ label: z.ZodString;
4208
+ effect: z.ZodOptional<z.ZodObject<{
4209
+ instruction: z.ZodOptional<z.ZodString>;
4210
+ effects: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4211
+ kind: z.ZodLiteral<"remove-env">;
4212
+ scope: z.ZodLiteral<"hosting-prod">;
4213
+ key: z.ZodString;
4214
+ }, z.core.$strip>, z.ZodObject<{
4215
+ kind: z.ZodLiteral<"attach-design-system">;
4216
+ designSystemId: z.ZodString;
4217
+ }, z.core.$strip>], "kind">>>;
4218
+ }, z.core.$strip>>;
4219
+ }, z.core.$strip>>;
4220
+ guessOptionId: z.ZodOptional<z.ZodString>;
4221
+ }, z.core.$strip>>;
4222
+ initialPromptId: z.ZodString;
4223
+ answers: z.ZodOptional<z.ZodArray<z.ZodObject<{
4224
+ questionId: z.ZodString;
4225
+ optionId: z.ZodOptional<z.ZodString>;
4226
+ designSystemId: z.ZodOptional<z.ZodString>;
4227
+ skipped: z.ZodBoolean;
4228
+ delegated: z.ZodBoolean;
4229
+ resolvedFrom: z.ZodEnum<{
4230
+ llm: "llm";
4231
+ user: "user";
4232
+ }>;
4233
+ llmOptionId: z.ZodOptional<z.ZodString>;
4234
+ guessOptionId: z.ZodOptional<z.ZodString>;
4235
+ }, z.core.$strip>>>;
4236
+ assembledAt: z.ZodOptional<z.ZodString>;
4237
+ resolvedAt: z.ZodOptional<z.ZodString>;
4238
+ }, z.core.$strip>>>;
3813
4239
  }, z.core.$strip>;
3814
4240
  hosting: z.ZodOptional<z.ZodObject<{
3815
4241
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -3915,36 +4341,13 @@ export declare const ProjectTemplateOverridesSchema: z.ZodObject<{
3915
4341
  containerized: "containerized";
3916
4342
  }>>>;
3917
4343
  devServerPort: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
3918
- devServerUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3919
- refreshPreview: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3920
4344
  installCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3921
4345
  installNpmrc: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3922
- validateCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3923
- proxyOrigin: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3924
- proxyDefaultOrigin: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3925
- defaultAutoPush: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
3926
- "ff-push": "ff-push";
3927
- "force-push": "force-push";
3928
- "merge-push": "merge-push";
3929
- none: "none";
3930
- "safe-push": "safe-push";
3931
- }>>>;
3932
4346
  gitBranchNamingStrategy: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
3933
4347
  "ai-session": "ai-session";
3934
4348
  "branch-name": "branch-name";
3935
4349
  custom: "custom";
3936
4350
  }>>>;
3937
- setupDependencies: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3938
- key: z.ZodString;
3939
- type: z.ZodLiteral<"mise">;
3940
- tool: z.ZodString;
3941
- version: z.ZodOptional<z.ZodString>;
3942
- }, z.core.$strip>, z.ZodObject<{
3943
- key: z.ZodString;
3944
- type: z.ZodLiteral<"script">;
3945
- name: z.ZodString;
3946
- script: z.ZodString;
3947
- }, z.core.$strip>], "type">>>>;
3948
4351
  hostRequirements: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
3949
4352
  name: z.ZodString;
3950
4353
  checkScript: z.ZodString;
@@ -4007,7 +4410,6 @@ export declare const ProjectTemplateOverridesSchema: z.ZodObject<{
4007
4410
  mainBranchName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4008
4411
  minMachinesRunning: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
4009
4412
  volumeSize: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<5>, z.ZodLiteral<10>, z.ZodLiteral<12>, z.ZodLiteral<15>, z.ZodLiteral<20>, z.ZodLiteral<25>, z.ZodLiteral<30>, z.ZodLiteral<50>]>>>;
4010
- includePath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4011
4413
  includePatterns: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
4012
4414
  errorIgnorePatterns: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
4013
4415
  environmentVariables: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -4081,10 +4483,11 @@ export declare const ProjectTemplateOverridesSchema: z.ZodObject<{
4081
4483
  "org-worker": "org-worker";
4082
4484
  "project-configuration": "project-configuration";
4083
4485
  "projects-scheduler-memory-extraction": "projects-scheduler-memory-extraction";
4486
+ "publish-agent": "publish-agent";
4084
4487
  "repo-indexing": "repo-indexing";
4085
4488
  "setup-project": "setup-project";
4086
4489
  unknown: "unknown";
4087
- }>, z.ZodTemplateLiteral<"browser-testing-agent" | "builder-code-agent" | "builder-code-panel-agent" | "builder-publish-integration-agent" | "cli-agent" | "code-review-orchestrator-agent" | "create-app-firebase-agent" | "create-app-lovable-agent" | "design-system-indexer-agent" | "dsi-mcp-agent" | "editor-ai-agent" | "fusion-agent" | "org-agent-agent" | "org-worker-agent" | "project-configuration-agent" | "projects-scheduler-memory-extraction-agent" | "repo-indexing-agent" | "setup-project-agent" | "unknown-agent">]>>;
4490
+ }>, z.ZodTemplateLiteral<"browser-testing-agent" | "builder-code-agent" | "builder-code-panel-agent" | "builder-publish-integration-agent" | "cli-agent" | "code-review-orchestrator-agent" | "create-app-firebase-agent" | "create-app-lovable-agent" | "design-system-indexer-agent" | "dsi-mcp-agent" | "editor-ai-agent" | "fusion-agent" | "org-agent-agent" | "org-worker-agent" | "project-configuration-agent" | "projects-scheduler-memory-extraction-agent" | "publish-agent-agent" | "repo-indexing-agent" | "setup-project-agent" | "unknown-agent">]>>;
4088
4491
  needDevServer: z.ZodOptional<z.ZodBoolean>;
4089
4492
  needValidation: z.ZodOptional<z.ZodBoolean>;
4090
4493
  includeMemories: z.ZodOptional<z.ZodBoolean>;
@@ -4174,7 +4577,6 @@ export declare const ProjectTemplateOverridesSchema: z.ZodObject<{
4174
4577
  "draft-prs": "draft-prs";
4175
4578
  prs: "prs";
4176
4579
  }>>>;
4177
- autoCloseBranchOnMerge: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4178
4580
  enableMergePR: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4179
4581
  minRequiredApprovals: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
4180
4582
  requireApprovalBeforePR: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -4191,7 +4593,6 @@ export declare const ProjectTemplateOverridesSchema: z.ZodObject<{
4191
4593
  designSystems: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
4192
4594
  designTokenStrictMode: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4193
4595
  designModeSelector: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4194
- useNI: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4195
4596
  folders: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
4196
4597
  name: z.ZodString;
4197
4598
  remoteUrl: z.ZodString;
@@ -4204,8 +4605,6 @@ export declare const ProjectTemplateOverridesSchema: z.ZodObject<{
4204
4605
  }, z.core.$strip>>>>;
4205
4606
  agentsMD: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4206
4607
  initializationCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4207
- repoSubpath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4208
- recommendedRoot: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4209
4608
  https: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4210
4609
  localHttpsDomain: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4211
4610
  browserAutomation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -4227,7 +4626,6 @@ export declare const ProjectTemplateOverridesSchema: z.ZodObject<{
4227
4626
  }, z.core.$strip>>>;
4228
4627
  enableSnapshots: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4229
4628
  postMergeMemories: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4230
- commitInstructions: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4231
4629
  maxAgentCompletions: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
4232
4630
  enableAgentMode: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4233
4631
  allowPreviewAutoSubmit: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -4239,7 +4637,6 @@ export declare const ProjectTemplateOverridesSchema: z.ZodObject<{
4239
4637
  timestamp: z.ZodNumber;
4240
4638
  starred: z.ZodBoolean;
4241
4639
  }, z.core.$strip>>>>;
4242
- skipCommandSecurity: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4243
4640
  httpsServerKeyPath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4244
4641
  httpsServerCertPath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4245
4642
  httpsServerCaPath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -4321,36 +4718,13 @@ export declare const CreateProjectTemplateFromProjectOptionsSchema: z.ZodObject<
4321
4718
  containerized: "containerized";
4322
4719
  }>>>;
4323
4720
  devServerPort: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
4324
- devServerUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4325
- refreshPreview: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4326
4721
  installCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4327
4722
  installNpmrc: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
4328
- validateCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4329
- proxyOrigin: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4330
- proxyDefaultOrigin: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4331
- defaultAutoPush: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
4332
- "ff-push": "ff-push";
4333
- "force-push": "force-push";
4334
- "merge-push": "merge-push";
4335
- none: "none";
4336
- "safe-push": "safe-push";
4337
- }>>>;
4338
4723
  gitBranchNamingStrategy: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
4339
4724
  "ai-session": "ai-session";
4340
4725
  "branch-name": "branch-name";
4341
4726
  custom: "custom";
4342
4727
  }>>>;
4343
- setupDependencies: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4344
- key: z.ZodString;
4345
- type: z.ZodLiteral<"mise">;
4346
- tool: z.ZodString;
4347
- version: z.ZodOptional<z.ZodString>;
4348
- }, z.core.$strip>, z.ZodObject<{
4349
- key: z.ZodString;
4350
- type: z.ZodLiteral<"script">;
4351
- name: z.ZodString;
4352
- script: z.ZodString;
4353
- }, z.core.$strip>], "type">>>>;
4354
4728
  hostRequirements: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
4355
4729
  name: z.ZodString;
4356
4730
  checkScript: z.ZodString;
@@ -4413,7 +4787,6 @@ export declare const CreateProjectTemplateFromProjectOptionsSchema: z.ZodObject<
4413
4787
  mainBranchName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4414
4788
  minMachinesRunning: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
4415
4789
  volumeSize: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<5>, z.ZodLiteral<10>, z.ZodLiteral<12>, z.ZodLiteral<15>, z.ZodLiteral<20>, z.ZodLiteral<25>, z.ZodLiteral<30>, z.ZodLiteral<50>]>>>;
4416
- includePath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4417
4790
  includePatterns: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
4418
4791
  errorIgnorePatterns: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
4419
4792
  environmentVariables: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -4487,10 +4860,11 @@ export declare const CreateProjectTemplateFromProjectOptionsSchema: z.ZodObject<
4487
4860
  "org-worker": "org-worker";
4488
4861
  "project-configuration": "project-configuration";
4489
4862
  "projects-scheduler-memory-extraction": "projects-scheduler-memory-extraction";
4863
+ "publish-agent": "publish-agent";
4490
4864
  "repo-indexing": "repo-indexing";
4491
4865
  "setup-project": "setup-project";
4492
4866
  unknown: "unknown";
4493
- }>, z.ZodTemplateLiteral<"browser-testing-agent" | "builder-code-agent" | "builder-code-panel-agent" | "builder-publish-integration-agent" | "cli-agent" | "code-review-orchestrator-agent" | "create-app-firebase-agent" | "create-app-lovable-agent" | "design-system-indexer-agent" | "dsi-mcp-agent" | "editor-ai-agent" | "fusion-agent" | "org-agent-agent" | "org-worker-agent" | "project-configuration-agent" | "projects-scheduler-memory-extraction-agent" | "repo-indexing-agent" | "setup-project-agent" | "unknown-agent">]>>;
4867
+ }>, z.ZodTemplateLiteral<"browser-testing-agent" | "builder-code-agent" | "builder-code-panel-agent" | "builder-publish-integration-agent" | "cli-agent" | "code-review-orchestrator-agent" | "create-app-firebase-agent" | "create-app-lovable-agent" | "design-system-indexer-agent" | "dsi-mcp-agent" | "editor-ai-agent" | "fusion-agent" | "org-agent-agent" | "org-worker-agent" | "project-configuration-agent" | "projects-scheduler-memory-extraction-agent" | "publish-agent-agent" | "repo-indexing-agent" | "setup-project-agent" | "unknown-agent">]>>;
4494
4868
  needDevServer: z.ZodOptional<z.ZodBoolean>;
4495
4869
  needValidation: z.ZodOptional<z.ZodBoolean>;
4496
4870
  includeMemories: z.ZodOptional<z.ZodBoolean>;
@@ -4580,7 +4954,6 @@ export declare const CreateProjectTemplateFromProjectOptionsSchema: z.ZodObject<
4580
4954
  "draft-prs": "draft-prs";
4581
4955
  prs: "prs";
4582
4956
  }>>>;
4583
- autoCloseBranchOnMerge: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4584
4957
  enableMergePR: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4585
4958
  minRequiredApprovals: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
4586
4959
  requireApprovalBeforePR: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -4597,7 +4970,6 @@ export declare const CreateProjectTemplateFromProjectOptionsSchema: z.ZodObject<
4597
4970
  designSystems: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
4598
4971
  designTokenStrictMode: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4599
4972
  designModeSelector: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4600
- useNI: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4601
4973
  folders: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
4602
4974
  name: z.ZodString;
4603
4975
  remoteUrl: z.ZodString;
@@ -4610,8 +4982,6 @@ export declare const CreateProjectTemplateFromProjectOptionsSchema: z.ZodObject<
4610
4982
  }, z.core.$strip>>>>;
4611
4983
  agentsMD: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4612
4984
  initializationCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4613
- repoSubpath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4614
- recommendedRoot: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4615
4985
  https: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4616
4986
  localHttpsDomain: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4617
4987
  browserAutomation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -4633,7 +5003,6 @@ export declare const CreateProjectTemplateFromProjectOptionsSchema: z.ZodObject<
4633
5003
  }, z.core.$strip>>>;
4634
5004
  enableSnapshots: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4635
5005
  postMergeMemories: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4636
- commitInstructions: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4637
5006
  maxAgentCompletions: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
4638
5007
  enableAgentMode: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4639
5008
  allowPreviewAutoSubmit: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -4645,7 +5014,6 @@ export declare const CreateProjectTemplateFromProjectOptionsSchema: z.ZodObject<
4645
5014
  timestamp: z.ZodNumber;
4646
5015
  starred: z.ZodBoolean;
4647
5016
  }, z.core.$strip>>>>;
4648
- skipCommandSecurity: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4649
5017
  httpsServerKeyPath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4650
5018
  httpsServerCertPath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4651
5019
  httpsServerCaPath: z.ZodOptional<z.ZodOptional<z.ZodString>>;