@builder.io/ai-utils 0.99.0 → 0.100.1

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
@@ -774,6 +774,7 @@ export declare const ShapeEffectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
774
774
  }, z.core.$strip>, z.ZodObject<{
775
775
  kind: z.ZodLiteral<"attach-design-system">;
776
776
  designSystemId: z.ZodString;
777
+ designSystemName: z.ZodString;
777
778
  }, z.core.$strip>], "kind">;
778
779
  export type ShapeEffect = z.infer<typeof ShapeEffectSchema>;
779
780
  export declare const ShapeOptionEffectSchema: z.ZodObject<{
@@ -785,6 +786,7 @@ export declare const ShapeOptionEffectSchema: z.ZodObject<{
785
786
  }, z.core.$strip>, z.ZodObject<{
786
787
  kind: z.ZodLiteral<"attach-design-system">;
787
788
  designSystemId: z.ZodString;
789
+ designSystemName: z.ZodString;
788
790
  }, z.core.$strip>], "kind">>>;
789
791
  }, z.core.$strip>;
790
792
  export type ShapeOptionEffect = z.infer<typeof ShapeOptionEffectSchema>;
@@ -800,6 +802,7 @@ export declare const ShapeOptionSchema: z.ZodObject<{
800
802
  }, z.core.$strip>, z.ZodObject<{
801
803
  kind: z.ZodLiteral<"attach-design-system">;
802
804
  designSystemId: z.ZodString;
805
+ designSystemName: z.ZodString;
803
806
  }, z.core.$strip>], "kind">>>;
804
807
  }, z.core.$strip>>;
805
808
  }, z.core.$strip>;
@@ -823,6 +826,7 @@ export declare const ShapeQuestionSchema: z.ZodObject<{
823
826
  }, z.core.$strip>, z.ZodObject<{
824
827
  kind: z.ZodLiteral<"attach-design-system">;
825
828
  designSystemId: z.ZodString;
829
+ designSystemName: z.ZodString;
826
830
  }, z.core.$strip>], "kind">>>;
827
831
  }, z.core.$strip>>;
828
832
  }, z.core.$strip>>;
@@ -833,6 +837,7 @@ export declare const ShapeAnswerSchema: z.ZodObject<{
833
837
  questionId: z.ZodString;
834
838
  optionId: z.ZodOptional<z.ZodString>;
835
839
  designSystemId: z.ZodOptional<z.ZodString>;
840
+ designSystemName: z.ZodOptional<z.ZodString>;
836
841
  skipped: z.ZodBoolean;
837
842
  delegated: z.ZodBoolean;
838
843
  resolvedFrom: z.ZodEnum<{
@@ -843,6 +848,57 @@ export declare const ShapeAnswerSchema: z.ZodObject<{
843
848
  guessOptionId: z.ZodOptional<z.ZodString>;
844
849
  }, z.core.$strip>;
845
850
  export type ShapeAnswer = z.infer<typeof ShapeAnswerSchema>;
851
+ export declare const ShapeAnswerInputSchema: z.ZodObject<{
852
+ skipped: z.ZodBoolean;
853
+ delegated: z.ZodBoolean;
854
+ questionId: z.ZodString;
855
+ optionId: z.ZodOptional<z.ZodString>;
856
+ designSystemId: z.ZodOptional<z.ZodString>;
857
+ }, z.core.$strip>;
858
+ export type ShapeAnswerInput = z.infer<typeof ShapeAnswerInputSchema>;
859
+ export declare const GetShapeQuestionnaireOptionsSchema: z.ZodObject<{
860
+ projectId: z.ZodString;
861
+ }, z.core.$strip>;
862
+ export type GetShapeQuestionnaireOptions = z.infer<typeof GetShapeQuestionnaireOptionsSchema>;
863
+ export declare const SubmitShapeAnswersOptionsSchema: z.ZodObject<{
864
+ projectId: z.ZodString;
865
+ questionnaireId: z.ZodString;
866
+ answers: z.ZodArray<z.ZodObject<{
867
+ skipped: z.ZodBoolean;
868
+ delegated: z.ZodBoolean;
869
+ questionId: z.ZodString;
870
+ optionId: z.ZodOptional<z.ZodString>;
871
+ designSystemId: z.ZodOptional<z.ZodString>;
872
+ }, z.core.$strip>>;
873
+ }, z.core.$strip>;
874
+ export type SubmitShapeAnswersOptions = z.infer<typeof SubmitShapeAnswersOptionsSchema>;
875
+ /**
876
+ * A file the client writes into the container's working tree over the
877
+ * launch-server RPC. The server renders the body; the container performs the
878
+ * write; the agent only reads it.
879
+ */
880
+ export declare const ShapeDecisionsFileSchema: z.ZodObject<{
881
+ path: z.ZodString;
882
+ contents: z.ZodString;
883
+ }, z.core.$strip>;
884
+ export type ShapeDecisionsFile = z.infer<typeof ShapeDecisionsFileSchema>;
885
+ export declare const SubmitShapeAnswersResponseSchema: z.ZodObject<{
886
+ prompt: z.ZodString;
887
+ instructionBlock: z.ZodOptional<z.ZodString>;
888
+ decisionsFile: z.ZodOptional<z.ZodObject<{
889
+ path: z.ZodString;
890
+ contents: z.ZodString;
891
+ }, z.core.$strip>>;
892
+ }, z.core.$strip>;
893
+ export type SubmitShapeAnswersResponse = z.infer<typeof SubmitShapeAnswersResponseSchema>;
894
+ export declare const ShapeQuestionDecisionSchema: z.ZodObject<{
895
+ questionId: z.ZodString;
896
+ ask: z.ZodBoolean;
897
+ llmOptionId: z.ZodOptional<z.ZodString>;
898
+ confidence: z.ZodOptional<z.ZodNumber>;
899
+ guessOptionId: z.ZodString;
900
+ }, z.core.$strip>;
901
+ export type ShapeQuestionDecision = z.infer<typeof ShapeQuestionDecisionSchema>;
846
902
  export declare const ShapeSessionSchema: z.ZodObject<{
847
903
  questionnaireId: z.ZodString;
848
904
  catalogVersion: z.ZodString;
@@ -855,10 +911,17 @@ export declare const ShapeSessionSchema: z.ZodObject<{
855
911
  pending: "pending";
856
912
  resolved: "resolved";
857
913
  }>;
858
- selection: z.ZodEnum<{
914
+ selection: z.ZodOptional<z.ZodEnum<{
859
915
  fallback: "fallback";
860
916
  llm: "llm";
861
- }>;
917
+ }>>;
918
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
919
+ questionId: z.ZodString;
920
+ ask: z.ZodBoolean;
921
+ llmOptionId: z.ZodOptional<z.ZodString>;
922
+ confidence: z.ZodOptional<z.ZodNumber>;
923
+ guessOptionId: z.ZodString;
924
+ }, z.core.$strip>>>;
862
925
  questions: z.ZodArray<z.ZodObject<{
863
926
  id: z.ZodString;
864
927
  question: z.ZodString;
@@ -878,6 +941,7 @@ export declare const ShapeSessionSchema: z.ZodObject<{
878
941
  }, z.core.$strip>, z.ZodObject<{
879
942
  kind: z.ZodLiteral<"attach-design-system">;
880
943
  designSystemId: z.ZodString;
944
+ designSystemName: z.ZodString;
881
945
  }, z.core.$strip>], "kind">>>;
882
946
  }, z.core.$strip>>;
883
947
  }, z.core.$strip>>;
@@ -888,6 +952,7 @@ export declare const ShapeSessionSchema: z.ZodObject<{
888
952
  questionId: z.ZodString;
889
953
  optionId: z.ZodOptional<z.ZodString>;
890
954
  designSystemId: z.ZodOptional<z.ZodString>;
955
+ designSystemName: z.ZodOptional<z.ZodString>;
891
956
  skipped: z.ZodBoolean;
892
957
  delegated: z.ZodBoolean;
893
958
  resolvedFrom: z.ZodEnum<{
@@ -897,10 +962,22 @@ export declare const ShapeSessionSchema: z.ZodObject<{
897
962
  llmOptionId: z.ZodOptional<z.ZodString>;
898
963
  guessOptionId: z.ZodOptional<z.ZodString>;
899
964
  }, z.core.$strip>>>;
965
+ issuedAt: z.ZodOptional<z.ZodString>;
900
966
  assembledAt: z.ZodOptional<z.ZodString>;
901
967
  resolvedAt: z.ZodOptional<z.ZodString>;
902
968
  }, z.core.$strip>;
903
969
  export type ShapeSession = z.infer<typeof ShapeSessionSchema>;
970
+ export declare const InitialPromptSchema: z.ZodObject<{
971
+ id: z.ZodString;
972
+ projectId: z.ZodString;
973
+ branchName: z.ZodOptional<z.ZodString>;
974
+ prompt: z.ZodString;
975
+ attachmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
976
+ createdBy: z.ZodString;
977
+ createdAt: z.ZodNumber;
978
+ deliveredAt: z.ZodOptional<z.ZodNumber>;
979
+ }, z.core.$strip>;
980
+ export type InitialPrompt = z.infer<typeof InitialPromptSchema>;
904
981
  export declare const ProjectRolePermissionsSchema: z.ZodObject<{
905
982
  view: z.ZodOptional<z.ZodBoolean>;
906
983
  editCode: z.ZodOptional<z.ZodBoolean>;
@@ -1317,10 +1394,17 @@ export declare const ProjectSettingsSchema: z.ZodObject<{
1317
1394
  pending: "pending";
1318
1395
  resolved: "resolved";
1319
1396
  }>;
1320
- selection: z.ZodEnum<{
1397
+ selection: z.ZodOptional<z.ZodEnum<{
1321
1398
  fallback: "fallback";
1322
1399
  llm: "llm";
1323
- }>;
1400
+ }>>;
1401
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1402
+ questionId: z.ZodString;
1403
+ ask: z.ZodBoolean;
1404
+ llmOptionId: z.ZodOptional<z.ZodString>;
1405
+ confidence: z.ZodOptional<z.ZodNumber>;
1406
+ guessOptionId: z.ZodString;
1407
+ }, z.core.$strip>>>;
1324
1408
  questions: z.ZodArray<z.ZodObject<{
1325
1409
  id: z.ZodString;
1326
1410
  question: z.ZodString;
@@ -1340,6 +1424,7 @@ export declare const ProjectSettingsSchema: z.ZodObject<{
1340
1424
  }, z.core.$strip>, z.ZodObject<{
1341
1425
  kind: z.ZodLiteral<"attach-design-system">;
1342
1426
  designSystemId: z.ZodString;
1427
+ designSystemName: z.ZodString;
1343
1428
  }, z.core.$strip>], "kind">>>;
1344
1429
  }, z.core.$strip>>;
1345
1430
  }, z.core.$strip>>;
@@ -1350,6 +1435,7 @@ export declare const ProjectSettingsSchema: z.ZodObject<{
1350
1435
  questionId: z.ZodString;
1351
1436
  optionId: z.ZodOptional<z.ZodString>;
1352
1437
  designSystemId: z.ZodOptional<z.ZodString>;
1438
+ designSystemName: z.ZodOptional<z.ZodString>;
1353
1439
  skipped: z.ZodBoolean;
1354
1440
  delegated: z.ZodBoolean;
1355
1441
  resolvedFrom: z.ZodEnum<{
@@ -1359,6 +1445,7 @@ export declare const ProjectSettingsSchema: z.ZodObject<{
1359
1445
  llmOptionId: z.ZodOptional<z.ZodString>;
1360
1446
  guessOptionId: z.ZodOptional<z.ZodString>;
1361
1447
  }, z.core.$strip>>>;
1448
+ issuedAt: z.ZodOptional<z.ZodString>;
1362
1449
  assembledAt: z.ZodOptional<z.ZodString>;
1363
1450
  resolvedAt: z.ZodOptional<z.ZodString>;
1364
1451
  }, z.core.$strip>>;
@@ -1779,6 +1866,8 @@ export interface Project {
1779
1866
  localPath?: string | null;
1780
1867
  /** The state of the project. Use `isProjectDeleted()` helper for backwards-compatible checks. */
1781
1868
  state?: EntityState;
1869
+ /** @deprecated Use `state` field instead. Kept for backwards compatibility. */
1870
+ deleted?: boolean;
1782
1871
  /** MIGRATION: accepts both string and number during migration period */
1783
1872
  deletedAt?: InMigrationDateNullable;
1784
1873
  /** User ID of whoever deleted the project. */
@@ -3381,6 +3470,7 @@ export declare const GetHostingAiUsageResponseSchema: z.ZodObject<{
3381
3470
  lastUsed: z.ZodOptional<z.ZodNumber>;
3382
3471
  createdBy: z.ZodOptional<z.ZodString>;
3383
3472
  }, z.core.$strip>>;
3473
+ managedProdEnvKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
3384
3474
  }, z.core.$strip>;
3385
3475
  export type GetHostingAiUsageResponse = z.infer<typeof GetHostingAiUsageResponseSchema>;
3386
3476
  /** Providers a customer may bring their own key for. */
@@ -3410,6 +3500,7 @@ export declare const SetHostingAiUsageRequestSchema: z.ZodObject<{
3410
3500
  openai: "openai";
3411
3501
  }>>;
3412
3502
  apiKey: z.ZodOptional<z.ZodString>;
3503
+ reuseExistingKey: z.ZodOptional<z.ZodBoolean>;
3413
3504
  baseUrl: z.ZodOptional<z.ZodURL>;
3414
3505
  }, z.core.$strict>;
3415
3506
  export type SetHostingAiUsageRequest = z.infer<typeof SetHostingAiUsageRequestSchema>;
@@ -3420,6 +3511,7 @@ export declare const SetHostingAiUsageResponseSchema: z.ZodObject<{
3420
3511
  skip: "skip";
3421
3512
  }>;
3422
3513
  configUpdatedAt: z.ZodOptional<z.ZodNumber>;
3514
+ managedProdEnvKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
3423
3515
  }, z.core.$strip>;
3424
3516
  export type SetHostingAiUsageResponse = z.infer<typeof SetHostingAiUsageResponseSchema>;
3425
3517
  /** Body for `POST /projects/hosting/ai-usage/revoke`. */
@@ -4191,10 +4283,17 @@ export declare const ProjectTemplateSchema: z.ZodObject<{
4191
4283
  pending: "pending";
4192
4284
  resolved: "resolved";
4193
4285
  }>;
4194
- selection: z.ZodEnum<{
4286
+ selection: z.ZodOptional<z.ZodEnum<{
4195
4287
  fallback: "fallback";
4196
4288
  llm: "llm";
4197
- }>;
4289
+ }>>;
4290
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4291
+ questionId: z.ZodString;
4292
+ ask: z.ZodBoolean;
4293
+ llmOptionId: z.ZodOptional<z.ZodString>;
4294
+ confidence: z.ZodOptional<z.ZodNumber>;
4295
+ guessOptionId: z.ZodString;
4296
+ }, z.core.$strip>>>;
4198
4297
  questions: z.ZodArray<z.ZodObject<{
4199
4298
  id: z.ZodString;
4200
4299
  question: z.ZodString;
@@ -4214,6 +4313,7 @@ export declare const ProjectTemplateSchema: z.ZodObject<{
4214
4313
  }, z.core.$strip>, z.ZodObject<{
4215
4314
  kind: z.ZodLiteral<"attach-design-system">;
4216
4315
  designSystemId: z.ZodString;
4316
+ designSystemName: z.ZodString;
4217
4317
  }, z.core.$strip>], "kind">>>;
4218
4318
  }, z.core.$strip>>;
4219
4319
  }, z.core.$strip>>;
@@ -4224,6 +4324,7 @@ export declare const ProjectTemplateSchema: z.ZodObject<{
4224
4324
  questionId: z.ZodString;
4225
4325
  optionId: z.ZodOptional<z.ZodString>;
4226
4326
  designSystemId: z.ZodOptional<z.ZodString>;
4327
+ designSystemName: z.ZodOptional<z.ZodString>;
4227
4328
  skipped: z.ZodBoolean;
4228
4329
  delegated: z.ZodBoolean;
4229
4330
  resolvedFrom: z.ZodEnum<{
@@ -4233,6 +4334,7 @@ export declare const ProjectTemplateSchema: z.ZodObject<{
4233
4334
  llmOptionId: z.ZodOptional<z.ZodString>;
4234
4335
  guessOptionId: z.ZodOptional<z.ZodString>;
4235
4336
  }, z.core.$strip>>>;
4337
+ issuedAt: z.ZodOptional<z.ZodString>;
4236
4338
  assembledAt: z.ZodOptional<z.ZodString>;
4237
4339
  resolvedAt: z.ZodOptional<z.ZodString>;
4238
4340
  }, z.core.$strip>>>;
@@ -4685,9 +4787,25 @@ export declare const ProjectTemplateOverridesSchema: z.ZodObject<{
4685
4787
  }, z.core.$strip>>;
4686
4788
  }, z.core.$strip>;
4687
4789
  export type ProjectTemplateOverrides = z.infer<typeof ProjectTemplateOverridesSchema>;
4688
- export declare const CreateProjectTemplateFromProjectOptionsSchema: z.ZodObject<{
4790
+ /** Mirrors `ProjectSourceSchema`'s repo/template split for project creation. */
4791
+ export declare const CreateTemplateSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4792
+ kind: z.ZodLiteral<"project">;
4689
4793
  sourceProjectId: z.ZodString;
4690
4794
  sourceBranchName: z.ZodString;
4795
+ }, z.core.$strip>, z.ZodObject<{
4796
+ kind: z.ZodLiteral<"template">;
4797
+ templateId: z.ZodString;
4798
+ }, z.core.$strip>], "kind">;
4799
+ export type CreateTemplateSource = z.infer<typeof CreateTemplateSourceSchema>;
4800
+ export declare const CreateProjectTemplateFromProjectOptionsSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
4801
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
4802
+ kind: z.ZodLiteral<"project">;
4803
+ sourceProjectId: z.ZodString;
4804
+ sourceBranchName: z.ZodString;
4805
+ }, z.core.$strip>, z.ZodObject<{
4806
+ kind: z.ZodLiteral<"template">;
4807
+ templateId: z.ZodString;
4808
+ }, z.core.$strip>], "kind">;
4691
4809
  overrides: z.ZodOptional<z.ZodObject<{
4692
4810
  name: z.ZodOptional<z.ZodString>;
4693
4811
  description: z.ZodOptional<z.ZodString>;
@@ -5061,7 +5179,1181 @@ export declare const CreateProjectTemplateFromProjectOptionsSchema: z.ZodObject<
5061
5179
  autoDeploy: z.ZodOptional<z.ZodBoolean>;
5062
5180
  }, z.core.$strip>>;
5063
5181
  }, z.core.$strip>>;
5064
- }, z.core.$strip>;
5182
+ }, z.core.$strip>, z.ZodObject<{
5183
+ sourceProjectId: z.ZodString;
5184
+ sourceBranchName: z.ZodString;
5185
+ overrides: z.ZodOptional<z.ZodObject<{
5186
+ name: z.ZodOptional<z.ZodString>;
5187
+ description: z.ZodOptional<z.ZodString>;
5188
+ repoFullName: z.ZodOptional<z.ZodString>;
5189
+ repoProvider: z.ZodOptional<z.ZodEnum<{
5190
+ azure: "azure";
5191
+ bitbucket: "bitbucket";
5192
+ custom: "custom";
5193
+ github: "github";
5194
+ gitlab: "gitlab";
5195
+ internalHost: "internalHost";
5196
+ selfHostedGithub: "selfHostedGithub";
5197
+ }>>;
5198
+ repoUrl: z.ZodOptional<z.ZodString>;
5199
+ repoPrivate: z.ZodOptional<z.ZodBoolean>;
5200
+ screenshot: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5201
+ order: z.ZodOptional<z.ZodNumber>;
5202
+ hidden: z.ZodOptional<z.ZodBoolean>;
5203
+ isDefault: z.ZodOptional<z.ZodBoolean>;
5204
+ settings: z.ZodOptional<z.ZodObject<{
5205
+ isNativeApp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5206
+ autoDetectDevServer: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5207
+ autoDetectDevServerPatterns: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
5208
+ fusionEnvironment: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
5209
+ cloud: "cloud";
5210
+ "cloud-v2": "cloud-v2";
5211
+ "container-less": "container-less";
5212
+ containerized: "containerized";
5213
+ }>>>;
5214
+ devServerPort: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
5215
+ installCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5216
+ installNpmrc: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5217
+ gitBranchNamingStrategy: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
5218
+ "ai-session": "ai-session";
5219
+ "branch-name": "branch-name";
5220
+ custom: "custom";
5221
+ }>>>;
5222
+ hostRequirements: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
5223
+ name: z.ZodString;
5224
+ checkScript: z.ZodString;
5225
+ installScript: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5226
+ installLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5227
+ platform: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
5228
+ linux: "linux";
5229
+ macos: "macos";
5230
+ windows: "windows";
5231
+ }>>>;
5232
+ description: z.ZodOptional<z.ZodString>;
5233
+ }, z.core.$strip>>>>;
5234
+ skills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5235
+ key: z.ZodString;
5236
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
5237
+ agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
5238
+ source: z.ZodString;
5239
+ }, z.core.$strip>, z.ZodObject<{
5240
+ key: z.ZodString;
5241
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
5242
+ agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
5243
+ type: z.ZodLiteral<"npm">;
5244
+ package: z.ZodString;
5245
+ version: z.ZodOptional<z.ZodString>;
5246
+ }, z.core.$strip>, z.ZodObject<{
5247
+ key: z.ZodString;
5248
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
5249
+ agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
5250
+ type: z.ZodLiteral<"github">;
5251
+ repo: z.ZodString;
5252
+ ref: z.ZodOptional<z.ZodString>;
5253
+ path: z.ZodOptional<z.ZodString>;
5254
+ }, z.core.$strip>, z.ZodObject<{
5255
+ key: z.ZodString;
5256
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
5257
+ agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
5258
+ type: z.ZodLiteral<"url">;
5259
+ url: z.ZodString;
5260
+ }, z.core.$strip>]>>>>;
5261
+ gitBranchNamingCustom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5262
+ askUserForBranchName: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5263
+ allowBranchFromRemote: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5264
+ devServerCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5265
+ screenshotCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5266
+ interactCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5267
+ serverTimeout: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
5268
+ cpuKind: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
5269
+ performance: "performance";
5270
+ shared: "shared";
5271
+ standard: "standard";
5272
+ }>>>;
5273
+ cpus: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
5274
+ memory: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<2048>, z.ZodLiteral<4096>, z.ZodLiteral<8192>, z.ZodLiteral<16384>]>>>;
5275
+ memoryLimit: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1024>, z.ZodLiteral<2048>, z.ZodLiteral<4096>, z.ZodLiteral<8192>, z.ZodLiteral<16384>]>>>;
5276
+ autoStop: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
5277
+ off: "off";
5278
+ stop: "stop";
5279
+ suspend: "suspend";
5280
+ }>>>;
5281
+ mainBranchName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5282
+ minMachinesRunning: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
5283
+ 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>]>>>;
5284
+ includePatterns: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
5285
+ errorIgnorePatterns: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
5286
+ environmentVariables: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
5287
+ key: z.ZodString;
5288
+ value: z.ZodString;
5289
+ isSecret: z.ZodBoolean;
5290
+ placeholder: z.ZodOptional<z.ZodBoolean>;
5291
+ explanation: z.ZodOptional<z.ZodString>;
5292
+ }, z.core.$strip>>>>;
5293
+ requiredEnvironmentVariables: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
5294
+ key: z.ZodString;
5295
+ description: z.ZodOptional<z.ZodString>;
5296
+ optional: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5297
+ }, z.core.$strip>>>>;
5298
+ fileOverrides: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodXor<readonly [z.ZodObject<{
5299
+ path: z.ZodString;
5300
+ content: z.ZodString;
5301
+ }, z.core.$strip>, z.ZodObject<{
5302
+ path: z.ZodString;
5303
+ base64: z.ZodString;
5304
+ }, z.core.$strip>]>>>>;
5305
+ customInstructions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
5306
+ id: z.ZodString;
5307
+ name: z.ZodString;
5308
+ content: z.ZodString;
5309
+ type: z.ZodOptional<z.ZodEnum<{
5310
+ "agent-mode": "agent-mode";
5311
+ always: "always";
5312
+ }>>;
5313
+ filePath: z.ZodOptional<z.ZodString>;
5314
+ glob: z.ZodOptional<z.ZodString>;
5315
+ description: z.ZodOptional<z.ZodString>;
5316
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
5317
+ hideUI: z.ZodOptional<z.ZodBoolean>;
5318
+ isSkill: z.ZodOptional<z.ZodBoolean>;
5319
+ disableModelInvocation: z.ZodOptional<z.ZodBoolean>;
5320
+ userInvocable: z.ZodOptional<z.ZodBoolean>;
5321
+ scope: z.ZodOptional<z.ZodEnum<{
5322
+ builtin: "builtin";
5323
+ plugin: "plugin";
5324
+ project: "project";
5325
+ user: "user";
5326
+ }>>;
5327
+ pluginName: z.ZodOptional<z.ZodString>;
5328
+ ownedAgents: z.ZodOptional<z.ZodArray<z.ZodObject<{
5329
+ name: z.ZodString;
5330
+ description: z.ZodOptional<z.ZodString>;
5331
+ }, z.core.$strip>>>;
5332
+ }, z.core.$strip>>>>;
5333
+ customAgents: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
5334
+ name: z.ZodString;
5335
+ description: z.ZodOptional<z.ZodString>;
5336
+ systemPrompt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
5337
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
5338
+ model: z.ZodOptional<z.ZodString>;
5339
+ roundRobinModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
5340
+ position: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
5341
+ "browser-testing": "browser-testing";
5342
+ "builder-code": "builder-code";
5343
+ "builder-code-panel": "builder-code-panel";
5344
+ "builder-publish-integration": "builder-publish-integration";
5345
+ cli: "cli";
5346
+ "code-review-orchestrator": "code-review-orchestrator";
5347
+ "create-app-firebase": "create-app-firebase";
5348
+ "create-app-lovable": "create-app-lovable";
5349
+ "design-system-indexer": "design-system-indexer";
5350
+ "dsi-mcp": "dsi-mcp";
5351
+ "editor-ai": "editor-ai";
5352
+ fusion: "fusion";
5353
+ "org-agent": "org-agent";
5354
+ "org-worker": "org-worker";
5355
+ "project-configuration": "project-configuration";
5356
+ "projects-scheduler-memory-extraction": "projects-scheduler-memory-extraction";
5357
+ "publish-agent": "publish-agent";
5358
+ "repo-indexing": "repo-indexing";
5359
+ "setup-project": "setup-project";
5360
+ unknown: "unknown";
5361
+ }>, 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">]>>;
5362
+ needDevServer: z.ZodOptional<z.ZodBoolean>;
5363
+ needValidation: z.ZodOptional<z.ZodBoolean>;
5364
+ includeMemories: z.ZodOptional<z.ZodBoolean>;
5365
+ resetAfterRun: z.ZodOptional<z.ZodBoolean>;
5366
+ mcpServers: z.ZodOptional<z.ZodBoolean>;
5367
+ asyncSubAgents: z.ZodOptional<z.ZodBoolean>;
5368
+ queueBehavior: z.ZodOptional<z.ZodObject<{
5369
+ schedule: z.ZodEnum<{
5370
+ interrupt: "interrupt";
5371
+ "interrupt-clear": "interrupt-clear";
5372
+ "interrupt-replace": "interrupt-replace";
5373
+ "next-turn": "next-turn";
5374
+ "until-idle": "until-idle";
5375
+ }>;
5376
+ coalesce: z.ZodEnum<{
5377
+ merge: "merge";
5378
+ "preserve-order": "preserve-order";
5379
+ "replace-latest": "replace-latest";
5380
+ }>;
5381
+ }, z.core.$strip>>;
5382
+ queueMode: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"next-turn">, z.ZodLiteral<"until-idle">, z.ZodObject<{
5383
+ schedule: z.ZodEnum<{
5384
+ interrupt: "interrupt";
5385
+ "interrupt-clear": "interrupt-clear";
5386
+ "interrupt-replace": "interrupt-replace";
5387
+ "next-turn": "next-turn";
5388
+ "until-idle": "until-idle";
5389
+ }>;
5390
+ coalesce: z.ZodEnum<{
5391
+ merge: "merge";
5392
+ "preserve-order": "preserve-order";
5393
+ "replace-latest": "replace-latest";
5394
+ }>;
5395
+ }, z.core.$strip>]>>;
5396
+ softContextWindow: z.ZodOptional<z.ZodNumber>;
5397
+ filePath: z.ZodOptional<z.ZodString>;
5398
+ maxTimeoutMs: z.ZodOptional<z.ZodNumber>;
5399
+ maxCompletions: z.ZodOptional<z.ZodNumber>;
5400
+ reasoning: z.ZodOptional<z.ZodEnum<{
5401
+ auto: "auto";
5402
+ high: "high";
5403
+ low: "low";
5404
+ max: "max";
5405
+ medium: "medium";
5406
+ minimal: "minimal";
5407
+ none: "none";
5408
+ xhigh: "xhigh";
5409
+ }>>;
5410
+ defaultSyncChanges: z.ZodOptional<z.ZodObject<{
5411
+ remoteBranches: z.ZodOptional<z.ZodEnum<{
5412
+ ai: "ai";
5413
+ both: "both";
5414
+ main: "main";
5415
+ }>>;
5416
+ fastForward: z.ZodOptional<z.ZodEnum<{
5417
+ auto: "auto";
5418
+ never: "never";
5419
+ required: "required";
5420
+ }>>;
5421
+ canPush: z.ZodOptional<z.ZodBoolean>;
5422
+ uncommittedChanges: z.ZodOptional<z.ZodEnum<{
5423
+ commit: "commit";
5424
+ fail: "fail";
5425
+ stash: "stash";
5426
+ }>>;
5427
+ requestRefresh: z.ZodOptional<z.ZodBoolean>;
5428
+ allowUnrelatedHistory: z.ZodOptional<z.ZodBoolean>;
5429
+ resetToBase: z.ZodOptional<z.ZodBoolean>;
5430
+ updateLastCommits: z.ZodOptional<z.ZodBoolean>;
5431
+ }, z.core.$strip>>;
5432
+ scope: z.ZodOptional<z.ZodEnum<{
5433
+ plugin: "plugin";
5434
+ project: "project";
5435
+ user: "user";
5436
+ }>>;
5437
+ pluginName: z.ZodOptional<z.ZodString>;
5438
+ }, z.core.$strip>>>>;
5439
+ mcpServers: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5440
+ command: z.ZodString;
5441
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
5442
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5443
+ envFile: z.ZodOptional<z.ZodString>;
5444
+ retries: z.ZodOptional<z.ZodNumber>;
5445
+ }, z.core.$strip>>>>;
5446
+ commitMode: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
5447
+ commits: "commits";
5448
+ "draft-prs": "draft-prs";
5449
+ prs: "prs";
5450
+ }>>>;
5451
+ enableMergePR: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5452
+ minRequiredApprovals: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
5453
+ requireApprovalBeforePR: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5454
+ requiredApproverRoleIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
5455
+ requiredApproverRoleId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5456
+ defaultBranchType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
5457
+ private: "private";
5458
+ shared: "shared";
5459
+ }>>>;
5460
+ dockerImagePath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5461
+ ghcrUsername: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5462
+ ghcrToken: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5463
+ nodeVersion: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5464
+ designSystems: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
5465
+ designTokenStrictMode: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5466
+ designModeSelector: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5467
+ folders: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
5468
+ name: z.ZodString;
5469
+ remoteUrl: z.ZodString;
5470
+ mainBranchName: z.ZodOptional<z.ZodString>;
5471
+ includePath: z.ZodOptional<z.ZodString>;
5472
+ addedBy: z.ZodOptional<z.ZodString>;
5473
+ repoProvider: z.ZodOptional<z.ZodString>;
5474
+ repoProtocol: z.ZodOptional<z.ZodString>;
5475
+ enableGit: z.ZodOptional<z.ZodBoolean>;
5476
+ }, z.core.$strip>>>>;
5477
+ agentsMD: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5478
+ initializationCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5479
+ https: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5480
+ localHttpsDomain: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5481
+ browserAutomation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
5482
+ backgroundAgents: z.ZodOptional<z.ZodBoolean>;
5483
+ builderApp: z.ZodOptional<z.ZodBoolean>;
5484
+ instructions: z.ZodOptional<z.ZodString>;
5485
+ authUser: z.ZodOptional<z.ZodString>;
5486
+ authPassword: z.ZodOptional<z.ZodString>;
5487
+ }, z.core.$strip>>>;
5488
+ prReviewer: z.ZodOptional<z.ZodOptional<z.ZodObject<{
5489
+ enabled: z.ZodBoolean;
5490
+ instructions: z.ZodOptional<z.ZodString>;
5491
+ reviewEffort: z.ZodOptional<z.ZodEnum<{
5492
+ high: "high";
5493
+ low: "low";
5494
+ medium: "medium";
5495
+ }>>;
5496
+ model: z.ZodOptional<z.ZodString>;
5497
+ }, z.core.$strip>>>;
5498
+ enableSnapshots: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5499
+ postMergeMemories: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5500
+ maxAgentCompletions: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
5501
+ enableAgentMode: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5502
+ allowPreviewAutoSubmit: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5503
+ enforceDesktopAppOnly: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5504
+ disableDesktopProxying: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5505
+ previewUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5506
+ recentUrls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
5507
+ url: z.ZodString;
5508
+ timestamp: z.ZodNumber;
5509
+ starred: z.ZodBoolean;
5510
+ }, z.core.$strip>>>>;
5511
+ httpsServerKeyPath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5512
+ httpsServerCertPath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5513
+ httpsServerCaPath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5514
+ httpsServerKeyContent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5515
+ httpsServerCertContent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5516
+ httpsServerCaContent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5517
+ httpsServerPfx: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5518
+ httpsServerPassphrase: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5519
+ httpsServerSecureProtocol: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5520
+ httpsServerSecureOptions: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
5521
+ httpsServerCiphers: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5522
+ httpsServerHonorCipherOrder: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5523
+ httpsServerRequestCert: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5524
+ httpsServerRejectUnauthorized: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5525
+ isPreferredForRepo: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5526
+ singleTenancyConfig: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5527
+ previewPasswordProtection: z.ZodOptional<z.ZodOptional<z.ZodObject<{
5528
+ enabled: z.ZodBoolean;
5529
+ password: z.ZodOptional<z.ZodString>;
5530
+ }, z.core.$strip>>>;
5531
+ }, z.core.$strip>>;
5532
+ hosting: z.ZodOptional<z.ZodObject<{
5533
+ enabled: z.ZodOptional<z.ZodBoolean>;
5534
+ buildConfig: z.ZodOptional<z.ZodObject<{
5535
+ buildCommand: z.ZodOptional<z.ZodString>;
5536
+ buildOutputDir: z.ZodOptional<z.ZodString>;
5537
+ nodeVersion: z.ZodOptional<z.ZodString>;
5538
+ }, z.core.$strip>>;
5539
+ environment: z.ZodOptional<z.ZodObject<{
5540
+ build: z.ZodOptional<z.ZodArray<z.ZodObject<{
5541
+ key: z.ZodString;
5542
+ value: z.ZodString;
5543
+ isSecret: z.ZodBoolean;
5544
+ placeholder: z.ZodOptional<z.ZodBoolean>;
5545
+ explanation: z.ZodOptional<z.ZodString>;
5546
+ }, z.core.$strip>>>;
5547
+ prod: z.ZodOptional<z.ZodArray<z.ZodObject<{
5548
+ key: z.ZodString;
5549
+ value: z.ZodString;
5550
+ isSecret: z.ZodBoolean;
5551
+ placeholder: z.ZodOptional<z.ZodBoolean>;
5552
+ explanation: z.ZodOptional<z.ZodString>;
5553
+ }, z.core.$strip>>>;
5554
+ }, z.core.$strip>>;
5555
+ autoDeploy: z.ZodOptional<z.ZodBoolean>;
5556
+ }, z.core.$strip>>;
5557
+ }, z.core.$strip>>;
5558
+ }, z.core.$strip>]>, z.ZodTransform<{
5559
+ source: {
5560
+ kind: "project";
5561
+ sourceProjectId: string;
5562
+ sourceBranchName: string;
5563
+ } | {
5564
+ kind: "template";
5565
+ templateId: string;
5566
+ };
5567
+ overrides?: {
5568
+ name?: string | undefined;
5569
+ description?: string | undefined;
5570
+ repoFullName?: string | undefined;
5571
+ repoProvider?: "azure" | "bitbucket" | "custom" | "github" | "gitlab" | "internalHost" | "selfHostedGithub" | undefined;
5572
+ repoUrl?: string | undefined;
5573
+ repoPrivate?: boolean | undefined;
5574
+ screenshot?: string | null | undefined;
5575
+ order?: number | undefined;
5576
+ hidden?: boolean | undefined;
5577
+ isDefault?: boolean | undefined;
5578
+ settings?: {
5579
+ isNativeApp?: boolean | undefined;
5580
+ autoDetectDevServer?: boolean | undefined;
5581
+ autoDetectDevServerPatterns?: string[] | undefined;
5582
+ fusionEnvironment?: "cloud" | "cloud-v2" | "container-less" | "containerized" | undefined;
5583
+ devServerPort?: number | undefined;
5584
+ installCommand?: string | undefined;
5585
+ installNpmrc?: string | null | undefined;
5586
+ gitBranchNamingStrategy?: "ai-session" | "branch-name" | "custom" | undefined;
5587
+ hostRequirements?: {
5588
+ name: string;
5589
+ checkScript: string;
5590
+ installScript?: string | null | undefined;
5591
+ installLink?: string | null | undefined;
5592
+ platform?: "linux" | "macos" | "windows" | null | undefined;
5593
+ description?: string | undefined;
5594
+ }[] | undefined;
5595
+ skills?: ({
5596
+ key: string;
5597
+ skills?: string[] | undefined;
5598
+ agents?: string[] | undefined;
5599
+ source: string;
5600
+ } | {
5601
+ key: string;
5602
+ skills?: string[] | undefined;
5603
+ agents?: string[] | undefined;
5604
+ type: "npm";
5605
+ package: string;
5606
+ version?: string | undefined;
5607
+ } | {
5608
+ key: string;
5609
+ skills?: string[] | undefined;
5610
+ agents?: string[] | undefined;
5611
+ type: "github";
5612
+ repo: string;
5613
+ ref?: string | undefined;
5614
+ path?: string | undefined;
5615
+ } | {
5616
+ key: string;
5617
+ skills?: string[] | undefined;
5618
+ agents?: string[] | undefined;
5619
+ type: "url";
5620
+ url: string;
5621
+ })[] | undefined;
5622
+ gitBranchNamingCustom?: string | undefined;
5623
+ askUserForBranchName?: boolean | undefined;
5624
+ allowBranchFromRemote?: boolean | undefined;
5625
+ devServerCommand?: string | undefined;
5626
+ screenshotCommand?: string | undefined;
5627
+ interactCommand?: string | undefined;
5628
+ serverTimeout?: number | undefined;
5629
+ cpuKind?: "performance" | "shared" | "standard" | undefined;
5630
+ cpus?: 1 | 2 | 4 | undefined;
5631
+ memory?: 2048 | 4096 | 8192 | 16384 | undefined;
5632
+ memoryLimit?: 1024 | 2048 | 4096 | 8192 | 16384 | undefined;
5633
+ autoStop?: "off" | "stop" | "suspend" | undefined;
5634
+ mainBranchName?: string | undefined;
5635
+ minMachinesRunning?: number | undefined;
5636
+ volumeSize?: 5 | 10 | 12 | 15 | 20 | 25 | 30 | 50 | undefined;
5637
+ includePatterns?: string[] | undefined;
5638
+ errorIgnorePatterns?: string[] | undefined;
5639
+ environmentVariables?: {
5640
+ key: string;
5641
+ value: string;
5642
+ isSecret: boolean;
5643
+ placeholder?: boolean | undefined;
5644
+ explanation?: string | undefined;
5645
+ }[] | undefined;
5646
+ requiredEnvironmentVariables?: {
5647
+ key: string;
5648
+ description?: string | undefined;
5649
+ optional?: boolean | null | undefined;
5650
+ }[] | undefined;
5651
+ fileOverrides?: ({
5652
+ path: string;
5653
+ content: string;
5654
+ } | {
5655
+ path: string;
5656
+ base64: string;
5657
+ })[] | undefined;
5658
+ customInstructions?: {
5659
+ id: string;
5660
+ name: string;
5661
+ content: string;
5662
+ type?: "agent-mode" | "always" | undefined;
5663
+ filePath?: string | undefined;
5664
+ glob?: string | undefined;
5665
+ description?: string | undefined;
5666
+ allowedTools?: string[] | undefined;
5667
+ hideUI?: boolean | undefined;
5668
+ isSkill?: boolean | undefined;
5669
+ disableModelInvocation?: boolean | undefined;
5670
+ userInvocable?: boolean | undefined;
5671
+ scope?: "builtin" | "plugin" | "project" | "user" | undefined;
5672
+ pluginName?: string | undefined;
5673
+ ownedAgents?: {
5674
+ name: string;
5675
+ description?: string | undefined;
5676
+ }[] | undefined;
5677
+ }[] | undefined;
5678
+ customAgents?: {
5679
+ name: string;
5680
+ description?: string | undefined;
5681
+ systemPrompt?: string | string[] | undefined;
5682
+ tools?: string[] | undefined;
5683
+ model?: string | undefined;
5684
+ roundRobinModels?: string[] | undefined;
5685
+ position?: "browser-testing" | "browser-testing-agent" | "builder-code" | "builder-code-agent" | "builder-code-panel" | "builder-code-panel-agent" | "builder-publish-integration" | "builder-publish-integration-agent" | "cli" | "cli-agent" | "code-review-orchestrator" | "code-review-orchestrator-agent" | "create-app-firebase" | "create-app-firebase-agent" | "create-app-lovable" | "create-app-lovable-agent" | "design-system-indexer" | "design-system-indexer-agent" | "dsi-mcp" | "dsi-mcp-agent" | "editor-ai" | "editor-ai-agent" | "fusion" | "fusion-agent" | "org-agent" | "org-agent-agent" | "org-worker" | "org-worker-agent" | "project-configuration" | "project-configuration-agent" | "projects-scheduler-memory-extraction" | "projects-scheduler-memory-extraction-agent" | "publish-agent" | "publish-agent-agent" | "repo-indexing" | "repo-indexing-agent" | "setup-project" | "setup-project-agent" | "unknown" | "unknown-agent" | undefined;
5686
+ needDevServer?: boolean | undefined;
5687
+ needValidation?: boolean | undefined;
5688
+ includeMemories?: boolean | undefined;
5689
+ resetAfterRun?: boolean | undefined;
5690
+ mcpServers?: boolean | undefined;
5691
+ asyncSubAgents?: boolean | undefined;
5692
+ queueBehavior?: {
5693
+ schedule: "interrupt" | "interrupt-clear" | "interrupt-replace" | "next-turn" | "until-idle";
5694
+ coalesce: "merge" | "preserve-order" | "replace-latest";
5695
+ } | undefined;
5696
+ queueMode?: "next-turn" | "until-idle" | {
5697
+ schedule: "interrupt" | "interrupt-clear" | "interrupt-replace" | "next-turn" | "until-idle";
5698
+ coalesce: "merge" | "preserve-order" | "replace-latest";
5699
+ } | undefined;
5700
+ softContextWindow?: number | undefined;
5701
+ filePath?: string | undefined;
5702
+ maxTimeoutMs?: number | undefined;
5703
+ maxCompletions?: number | undefined;
5704
+ reasoning?: "auto" | "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | undefined;
5705
+ defaultSyncChanges?: {
5706
+ remoteBranches?: "ai" | "both" | "main" | undefined;
5707
+ fastForward?: "auto" | "never" | "required" | undefined;
5708
+ canPush?: boolean | undefined;
5709
+ uncommittedChanges?: "commit" | "fail" | "stash" | undefined;
5710
+ requestRefresh?: boolean | undefined;
5711
+ allowUnrelatedHistory?: boolean | undefined;
5712
+ resetToBase?: boolean | undefined;
5713
+ updateLastCommits?: boolean | undefined;
5714
+ } | undefined;
5715
+ scope?: "plugin" | "project" | "user" | undefined;
5716
+ pluginName?: string | undefined;
5717
+ }[] | undefined;
5718
+ mcpServers?: Record<string, {
5719
+ command: string;
5720
+ args?: string[] | undefined;
5721
+ env?: Record<string, string> | undefined;
5722
+ envFile?: string | undefined;
5723
+ retries?: number | undefined;
5724
+ }> | undefined;
5725
+ commitMode?: "commits" | "draft-prs" | "prs" | undefined;
5726
+ enableMergePR?: boolean | undefined;
5727
+ minRequiredApprovals?: number | undefined;
5728
+ requireApprovalBeforePR?: boolean | undefined;
5729
+ requiredApproverRoleIds?: string[] | undefined;
5730
+ requiredApproverRoleId?: string | undefined;
5731
+ defaultBranchType?: "private" | "shared" | undefined;
5732
+ dockerImagePath?: string | undefined;
5733
+ ghcrUsername?: string | null | undefined;
5734
+ ghcrToken?: string | null | undefined;
5735
+ nodeVersion?: string | undefined;
5736
+ designSystems?: string[] | undefined;
5737
+ designTokenStrictMode?: boolean | undefined;
5738
+ designModeSelector?: string | undefined;
5739
+ folders?: {
5740
+ name: string;
5741
+ remoteUrl: string;
5742
+ mainBranchName?: string | undefined;
5743
+ includePath?: string | undefined;
5744
+ addedBy?: string | undefined;
5745
+ repoProvider?: string | undefined;
5746
+ repoProtocol?: string | undefined;
5747
+ enableGit?: boolean | undefined;
5748
+ }[] | undefined;
5749
+ agentsMD?: string | undefined;
5750
+ initializationCommand?: string | undefined;
5751
+ https?: boolean | undefined;
5752
+ localHttpsDomain?: string | undefined;
5753
+ browserAutomation?: {
5754
+ backgroundAgents?: boolean | undefined;
5755
+ builderApp?: boolean | undefined;
5756
+ instructions?: string | undefined;
5757
+ authUser?: string | undefined;
5758
+ authPassword?: string | undefined;
5759
+ } | undefined;
5760
+ prReviewer?: {
5761
+ enabled: boolean;
5762
+ instructions?: string | undefined;
5763
+ reviewEffort?: "high" | "low" | "medium" | undefined;
5764
+ model?: string | undefined;
5765
+ } | undefined;
5766
+ enableSnapshots?: boolean | undefined;
5767
+ postMergeMemories?: boolean | undefined;
5768
+ maxAgentCompletions?: number | undefined;
5769
+ enableAgentMode?: boolean | undefined;
5770
+ allowPreviewAutoSubmit?: boolean | undefined;
5771
+ enforceDesktopAppOnly?: boolean | undefined;
5772
+ disableDesktopProxying?: boolean | undefined;
5773
+ previewUrl?: string | null | undefined;
5774
+ recentUrls?: {
5775
+ url: string;
5776
+ timestamp: number;
5777
+ starred: boolean;
5778
+ }[] | undefined;
5779
+ httpsServerKeyPath?: string | undefined;
5780
+ httpsServerCertPath?: string | undefined;
5781
+ httpsServerCaPath?: string | undefined;
5782
+ httpsServerKeyContent?: string | undefined;
5783
+ httpsServerCertContent?: string | undefined;
5784
+ httpsServerCaContent?: string | undefined;
5785
+ httpsServerPfx?: string | undefined;
5786
+ httpsServerPassphrase?: string | undefined;
5787
+ httpsServerSecureProtocol?: string | undefined;
5788
+ httpsServerSecureOptions?: number | undefined;
5789
+ httpsServerCiphers?: string | undefined;
5790
+ httpsServerHonorCipherOrder?: boolean | undefined;
5791
+ httpsServerRequestCert?: boolean | undefined;
5792
+ httpsServerRejectUnauthorized?: boolean | undefined;
5793
+ isPreferredForRepo?: boolean | undefined;
5794
+ singleTenancyConfig?: string | undefined;
5795
+ previewPasswordProtection?: {
5796
+ enabled: boolean;
5797
+ password?: string | undefined;
5798
+ } | undefined;
5799
+ } | undefined;
5800
+ hosting?: {
5801
+ enabled?: boolean | undefined;
5802
+ buildConfig?: {
5803
+ buildCommand?: string | undefined;
5804
+ buildOutputDir?: string | undefined;
5805
+ nodeVersion?: string | undefined;
5806
+ } | undefined;
5807
+ environment?: {
5808
+ build?: {
5809
+ key: string;
5810
+ value: string;
5811
+ isSecret: boolean;
5812
+ placeholder?: boolean | undefined;
5813
+ explanation?: string | undefined;
5814
+ }[] | undefined;
5815
+ prod?: {
5816
+ key: string;
5817
+ value: string;
5818
+ isSecret: boolean;
5819
+ placeholder?: boolean | undefined;
5820
+ explanation?: string | undefined;
5821
+ }[] | undefined;
5822
+ } | undefined;
5823
+ autoDeploy?: boolean | undefined;
5824
+ } | undefined;
5825
+ } | undefined;
5826
+ }, {
5827
+ source: {
5828
+ kind: "project";
5829
+ sourceProjectId: string;
5830
+ sourceBranchName: string;
5831
+ } | {
5832
+ kind: "template";
5833
+ templateId: string;
5834
+ };
5835
+ overrides?: {
5836
+ name?: string | undefined;
5837
+ description?: string | undefined;
5838
+ repoFullName?: string | undefined;
5839
+ repoProvider?: "azure" | "bitbucket" | "custom" | "github" | "gitlab" | "internalHost" | "selfHostedGithub" | undefined;
5840
+ repoUrl?: string | undefined;
5841
+ repoPrivate?: boolean | undefined;
5842
+ screenshot?: string | null | undefined;
5843
+ order?: number | undefined;
5844
+ hidden?: boolean | undefined;
5845
+ isDefault?: boolean | undefined;
5846
+ settings?: {
5847
+ isNativeApp?: boolean | undefined;
5848
+ autoDetectDevServer?: boolean | undefined;
5849
+ autoDetectDevServerPatterns?: string[] | undefined;
5850
+ fusionEnvironment?: "cloud" | "cloud-v2" | "container-less" | "containerized" | undefined;
5851
+ devServerPort?: number | undefined;
5852
+ installCommand?: string | undefined;
5853
+ installNpmrc?: string | null | undefined;
5854
+ gitBranchNamingStrategy?: "ai-session" | "branch-name" | "custom" | undefined;
5855
+ hostRequirements?: {
5856
+ name: string;
5857
+ checkScript: string;
5858
+ installScript?: string | null | undefined;
5859
+ installLink?: string | null | undefined;
5860
+ platform?: "linux" | "macos" | "windows" | null | undefined;
5861
+ description?: string | undefined;
5862
+ }[] | undefined;
5863
+ skills?: ({
5864
+ key: string;
5865
+ skills?: string[] | undefined;
5866
+ agents?: string[] | undefined;
5867
+ source: string;
5868
+ } | {
5869
+ key: string;
5870
+ skills?: string[] | undefined;
5871
+ agents?: string[] | undefined;
5872
+ type: "npm";
5873
+ package: string;
5874
+ version?: string | undefined;
5875
+ } | {
5876
+ key: string;
5877
+ skills?: string[] | undefined;
5878
+ agents?: string[] | undefined;
5879
+ type: "github";
5880
+ repo: string;
5881
+ ref?: string | undefined;
5882
+ path?: string | undefined;
5883
+ } | {
5884
+ key: string;
5885
+ skills?: string[] | undefined;
5886
+ agents?: string[] | undefined;
5887
+ type: "url";
5888
+ url: string;
5889
+ })[] | undefined;
5890
+ gitBranchNamingCustom?: string | undefined;
5891
+ askUserForBranchName?: boolean | undefined;
5892
+ allowBranchFromRemote?: boolean | undefined;
5893
+ devServerCommand?: string | undefined;
5894
+ screenshotCommand?: string | undefined;
5895
+ interactCommand?: string | undefined;
5896
+ serverTimeout?: number | undefined;
5897
+ cpuKind?: "performance" | "shared" | "standard" | undefined;
5898
+ cpus?: 1 | 2 | 4 | undefined;
5899
+ memory?: 2048 | 4096 | 8192 | 16384 | undefined;
5900
+ memoryLimit?: 1024 | 2048 | 4096 | 8192 | 16384 | undefined;
5901
+ autoStop?: "off" | "stop" | "suspend" | undefined;
5902
+ mainBranchName?: string | undefined;
5903
+ minMachinesRunning?: number | undefined;
5904
+ volumeSize?: 5 | 10 | 12 | 15 | 20 | 25 | 30 | 50 | undefined;
5905
+ includePatterns?: string[] | undefined;
5906
+ errorIgnorePatterns?: string[] | undefined;
5907
+ environmentVariables?: {
5908
+ key: string;
5909
+ value: string;
5910
+ isSecret: boolean;
5911
+ placeholder?: boolean | undefined;
5912
+ explanation?: string | undefined;
5913
+ }[] | undefined;
5914
+ requiredEnvironmentVariables?: {
5915
+ key: string;
5916
+ description?: string | undefined;
5917
+ optional?: boolean | null | undefined;
5918
+ }[] | undefined;
5919
+ fileOverrides?: ({
5920
+ path: string;
5921
+ content: string;
5922
+ } | {
5923
+ path: string;
5924
+ base64: string;
5925
+ })[] | undefined;
5926
+ customInstructions?: {
5927
+ id: string;
5928
+ name: string;
5929
+ content: string;
5930
+ type?: "agent-mode" | "always" | undefined;
5931
+ filePath?: string | undefined;
5932
+ glob?: string | undefined;
5933
+ description?: string | undefined;
5934
+ allowedTools?: string[] | undefined;
5935
+ hideUI?: boolean | undefined;
5936
+ isSkill?: boolean | undefined;
5937
+ disableModelInvocation?: boolean | undefined;
5938
+ userInvocable?: boolean | undefined;
5939
+ scope?: "builtin" | "plugin" | "project" | "user" | undefined;
5940
+ pluginName?: string | undefined;
5941
+ ownedAgents?: {
5942
+ name: string;
5943
+ description?: string | undefined;
5944
+ }[] | undefined;
5945
+ }[] | undefined;
5946
+ customAgents?: {
5947
+ name: string;
5948
+ description?: string | undefined;
5949
+ systemPrompt?: string | string[] | undefined;
5950
+ tools?: string[] | undefined;
5951
+ model?: string | undefined;
5952
+ roundRobinModels?: string[] | undefined;
5953
+ position?: "browser-testing" | "browser-testing-agent" | "builder-code" | "builder-code-agent" | "builder-code-panel" | "builder-code-panel-agent" | "builder-publish-integration" | "builder-publish-integration-agent" | "cli" | "cli-agent" | "code-review-orchestrator" | "code-review-orchestrator-agent" | "create-app-firebase" | "create-app-firebase-agent" | "create-app-lovable" | "create-app-lovable-agent" | "design-system-indexer" | "design-system-indexer-agent" | "dsi-mcp" | "dsi-mcp-agent" | "editor-ai" | "editor-ai-agent" | "fusion" | "fusion-agent" | "org-agent" | "org-agent-agent" | "org-worker" | "org-worker-agent" | "project-configuration" | "project-configuration-agent" | "projects-scheduler-memory-extraction" | "projects-scheduler-memory-extraction-agent" | "publish-agent" | "publish-agent-agent" | "repo-indexing" | "repo-indexing-agent" | "setup-project" | "setup-project-agent" | "unknown" | "unknown-agent" | undefined;
5954
+ needDevServer?: boolean | undefined;
5955
+ needValidation?: boolean | undefined;
5956
+ includeMemories?: boolean | undefined;
5957
+ resetAfterRun?: boolean | undefined;
5958
+ mcpServers?: boolean | undefined;
5959
+ asyncSubAgents?: boolean | undefined;
5960
+ queueBehavior?: {
5961
+ schedule: "interrupt" | "interrupt-clear" | "interrupt-replace" | "next-turn" | "until-idle";
5962
+ coalesce: "merge" | "preserve-order" | "replace-latest";
5963
+ } | undefined;
5964
+ queueMode?: "next-turn" | "until-idle" | {
5965
+ schedule: "interrupt" | "interrupt-clear" | "interrupt-replace" | "next-turn" | "until-idle";
5966
+ coalesce: "merge" | "preserve-order" | "replace-latest";
5967
+ } | undefined;
5968
+ softContextWindow?: number | undefined;
5969
+ filePath?: string | undefined;
5970
+ maxTimeoutMs?: number | undefined;
5971
+ maxCompletions?: number | undefined;
5972
+ reasoning?: "auto" | "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | undefined;
5973
+ defaultSyncChanges?: {
5974
+ remoteBranches?: "ai" | "both" | "main" | undefined;
5975
+ fastForward?: "auto" | "never" | "required" | undefined;
5976
+ canPush?: boolean | undefined;
5977
+ uncommittedChanges?: "commit" | "fail" | "stash" | undefined;
5978
+ requestRefresh?: boolean | undefined;
5979
+ allowUnrelatedHistory?: boolean | undefined;
5980
+ resetToBase?: boolean | undefined;
5981
+ updateLastCommits?: boolean | undefined;
5982
+ } | undefined;
5983
+ scope?: "plugin" | "project" | "user" | undefined;
5984
+ pluginName?: string | undefined;
5985
+ }[] | undefined;
5986
+ mcpServers?: Record<string, {
5987
+ command: string;
5988
+ args?: string[] | undefined;
5989
+ env?: Record<string, string> | undefined;
5990
+ envFile?: string | undefined;
5991
+ retries?: number | undefined;
5992
+ }> | undefined;
5993
+ commitMode?: "commits" | "draft-prs" | "prs" | undefined;
5994
+ enableMergePR?: boolean | undefined;
5995
+ minRequiredApprovals?: number | undefined;
5996
+ requireApprovalBeforePR?: boolean | undefined;
5997
+ requiredApproverRoleIds?: string[] | undefined;
5998
+ requiredApproverRoleId?: string | undefined;
5999
+ defaultBranchType?: "private" | "shared" | undefined;
6000
+ dockerImagePath?: string | undefined;
6001
+ ghcrUsername?: string | null | undefined;
6002
+ ghcrToken?: string | null | undefined;
6003
+ nodeVersion?: string | undefined;
6004
+ designSystems?: string[] | undefined;
6005
+ designTokenStrictMode?: boolean | undefined;
6006
+ designModeSelector?: string | undefined;
6007
+ folders?: {
6008
+ name: string;
6009
+ remoteUrl: string;
6010
+ mainBranchName?: string | undefined;
6011
+ includePath?: string | undefined;
6012
+ addedBy?: string | undefined;
6013
+ repoProvider?: string | undefined;
6014
+ repoProtocol?: string | undefined;
6015
+ enableGit?: boolean | undefined;
6016
+ }[] | undefined;
6017
+ agentsMD?: string | undefined;
6018
+ initializationCommand?: string | undefined;
6019
+ https?: boolean | undefined;
6020
+ localHttpsDomain?: string | undefined;
6021
+ browserAutomation?: {
6022
+ backgroundAgents?: boolean | undefined;
6023
+ builderApp?: boolean | undefined;
6024
+ instructions?: string | undefined;
6025
+ authUser?: string | undefined;
6026
+ authPassword?: string | undefined;
6027
+ } | undefined;
6028
+ prReviewer?: {
6029
+ enabled: boolean;
6030
+ instructions?: string | undefined;
6031
+ reviewEffort?: "high" | "low" | "medium" | undefined;
6032
+ model?: string | undefined;
6033
+ } | undefined;
6034
+ enableSnapshots?: boolean | undefined;
6035
+ postMergeMemories?: boolean | undefined;
6036
+ maxAgentCompletions?: number | undefined;
6037
+ enableAgentMode?: boolean | undefined;
6038
+ allowPreviewAutoSubmit?: boolean | undefined;
6039
+ enforceDesktopAppOnly?: boolean | undefined;
6040
+ disableDesktopProxying?: boolean | undefined;
6041
+ previewUrl?: string | null | undefined;
6042
+ recentUrls?: {
6043
+ url: string;
6044
+ timestamp: number;
6045
+ starred: boolean;
6046
+ }[] | undefined;
6047
+ httpsServerKeyPath?: string | undefined;
6048
+ httpsServerCertPath?: string | undefined;
6049
+ httpsServerCaPath?: string | undefined;
6050
+ httpsServerKeyContent?: string | undefined;
6051
+ httpsServerCertContent?: string | undefined;
6052
+ httpsServerCaContent?: string | undefined;
6053
+ httpsServerPfx?: string | undefined;
6054
+ httpsServerPassphrase?: string | undefined;
6055
+ httpsServerSecureProtocol?: string | undefined;
6056
+ httpsServerSecureOptions?: number | undefined;
6057
+ httpsServerCiphers?: string | undefined;
6058
+ httpsServerHonorCipherOrder?: boolean | undefined;
6059
+ httpsServerRequestCert?: boolean | undefined;
6060
+ httpsServerRejectUnauthorized?: boolean | undefined;
6061
+ isPreferredForRepo?: boolean | undefined;
6062
+ singleTenancyConfig?: string | undefined;
6063
+ previewPasswordProtection?: {
6064
+ enabled: boolean;
6065
+ password?: string | undefined;
6066
+ } | undefined;
6067
+ } | undefined;
6068
+ hosting?: {
6069
+ enabled?: boolean | undefined;
6070
+ buildConfig?: {
6071
+ buildCommand?: string | undefined;
6072
+ buildOutputDir?: string | undefined;
6073
+ nodeVersion?: string | undefined;
6074
+ } | undefined;
6075
+ environment?: {
6076
+ build?: {
6077
+ key: string;
6078
+ value: string;
6079
+ isSecret: boolean;
6080
+ placeholder?: boolean | undefined;
6081
+ explanation?: string | undefined;
6082
+ }[] | undefined;
6083
+ prod?: {
6084
+ key: string;
6085
+ value: string;
6086
+ isSecret: boolean;
6087
+ placeholder?: boolean | undefined;
6088
+ explanation?: string | undefined;
6089
+ }[] | undefined;
6090
+ } | undefined;
6091
+ autoDeploy?: boolean | undefined;
6092
+ } | undefined;
6093
+ } | undefined;
6094
+ } | {
6095
+ sourceProjectId: string;
6096
+ sourceBranchName: string;
6097
+ overrides?: {
6098
+ name?: string | undefined;
6099
+ description?: string | undefined;
6100
+ repoFullName?: string | undefined;
6101
+ repoProvider?: "azure" | "bitbucket" | "custom" | "github" | "gitlab" | "internalHost" | "selfHostedGithub" | undefined;
6102
+ repoUrl?: string | undefined;
6103
+ repoPrivate?: boolean | undefined;
6104
+ screenshot?: string | null | undefined;
6105
+ order?: number | undefined;
6106
+ hidden?: boolean | undefined;
6107
+ isDefault?: boolean | undefined;
6108
+ settings?: {
6109
+ isNativeApp?: boolean | undefined;
6110
+ autoDetectDevServer?: boolean | undefined;
6111
+ autoDetectDevServerPatterns?: string[] | undefined;
6112
+ fusionEnvironment?: "cloud" | "cloud-v2" | "container-less" | "containerized" | undefined;
6113
+ devServerPort?: number | undefined;
6114
+ installCommand?: string | undefined;
6115
+ installNpmrc?: string | null | undefined;
6116
+ gitBranchNamingStrategy?: "ai-session" | "branch-name" | "custom" | undefined;
6117
+ hostRequirements?: {
6118
+ name: string;
6119
+ checkScript: string;
6120
+ installScript?: string | null | undefined;
6121
+ installLink?: string | null | undefined;
6122
+ platform?: "linux" | "macos" | "windows" | null | undefined;
6123
+ description?: string | undefined;
6124
+ }[] | undefined;
6125
+ skills?: ({
6126
+ key: string;
6127
+ skills?: string[] | undefined;
6128
+ agents?: string[] | undefined;
6129
+ source: string;
6130
+ } | {
6131
+ key: string;
6132
+ skills?: string[] | undefined;
6133
+ agents?: string[] | undefined;
6134
+ type: "npm";
6135
+ package: string;
6136
+ version?: string | undefined;
6137
+ } | {
6138
+ key: string;
6139
+ skills?: string[] | undefined;
6140
+ agents?: string[] | undefined;
6141
+ type: "github";
6142
+ repo: string;
6143
+ ref?: string | undefined;
6144
+ path?: string | undefined;
6145
+ } | {
6146
+ key: string;
6147
+ skills?: string[] | undefined;
6148
+ agents?: string[] | undefined;
6149
+ type: "url";
6150
+ url: string;
6151
+ })[] | undefined;
6152
+ gitBranchNamingCustom?: string | undefined;
6153
+ askUserForBranchName?: boolean | undefined;
6154
+ allowBranchFromRemote?: boolean | undefined;
6155
+ devServerCommand?: string | undefined;
6156
+ screenshotCommand?: string | undefined;
6157
+ interactCommand?: string | undefined;
6158
+ serverTimeout?: number | undefined;
6159
+ cpuKind?: "performance" | "shared" | "standard" | undefined;
6160
+ cpus?: 1 | 2 | 4 | undefined;
6161
+ memory?: 2048 | 4096 | 8192 | 16384 | undefined;
6162
+ memoryLimit?: 1024 | 2048 | 4096 | 8192 | 16384 | undefined;
6163
+ autoStop?: "off" | "stop" | "suspend" | undefined;
6164
+ mainBranchName?: string | undefined;
6165
+ minMachinesRunning?: number | undefined;
6166
+ volumeSize?: 5 | 10 | 12 | 15 | 20 | 25 | 30 | 50 | undefined;
6167
+ includePatterns?: string[] | undefined;
6168
+ errorIgnorePatterns?: string[] | undefined;
6169
+ environmentVariables?: {
6170
+ key: string;
6171
+ value: string;
6172
+ isSecret: boolean;
6173
+ placeholder?: boolean | undefined;
6174
+ explanation?: string | undefined;
6175
+ }[] | undefined;
6176
+ requiredEnvironmentVariables?: {
6177
+ key: string;
6178
+ description?: string | undefined;
6179
+ optional?: boolean | null | undefined;
6180
+ }[] | undefined;
6181
+ fileOverrides?: ({
6182
+ path: string;
6183
+ content: string;
6184
+ } | {
6185
+ path: string;
6186
+ base64: string;
6187
+ })[] | undefined;
6188
+ customInstructions?: {
6189
+ id: string;
6190
+ name: string;
6191
+ content: string;
6192
+ type?: "agent-mode" | "always" | undefined;
6193
+ filePath?: string | undefined;
6194
+ glob?: string | undefined;
6195
+ description?: string | undefined;
6196
+ allowedTools?: string[] | undefined;
6197
+ hideUI?: boolean | undefined;
6198
+ isSkill?: boolean | undefined;
6199
+ disableModelInvocation?: boolean | undefined;
6200
+ userInvocable?: boolean | undefined;
6201
+ scope?: "builtin" | "plugin" | "project" | "user" | undefined;
6202
+ pluginName?: string | undefined;
6203
+ ownedAgents?: {
6204
+ name: string;
6205
+ description?: string | undefined;
6206
+ }[] | undefined;
6207
+ }[] | undefined;
6208
+ customAgents?: {
6209
+ name: string;
6210
+ description?: string | undefined;
6211
+ systemPrompt?: string | string[] | undefined;
6212
+ tools?: string[] | undefined;
6213
+ model?: string | undefined;
6214
+ roundRobinModels?: string[] | undefined;
6215
+ position?: "browser-testing" | "browser-testing-agent" | "builder-code" | "builder-code-agent" | "builder-code-panel" | "builder-code-panel-agent" | "builder-publish-integration" | "builder-publish-integration-agent" | "cli" | "cli-agent" | "code-review-orchestrator" | "code-review-orchestrator-agent" | "create-app-firebase" | "create-app-firebase-agent" | "create-app-lovable" | "create-app-lovable-agent" | "design-system-indexer" | "design-system-indexer-agent" | "dsi-mcp" | "dsi-mcp-agent" | "editor-ai" | "editor-ai-agent" | "fusion" | "fusion-agent" | "org-agent" | "org-agent-agent" | "org-worker" | "org-worker-agent" | "project-configuration" | "project-configuration-agent" | "projects-scheduler-memory-extraction" | "projects-scheduler-memory-extraction-agent" | "publish-agent" | "publish-agent-agent" | "repo-indexing" | "repo-indexing-agent" | "setup-project" | "setup-project-agent" | "unknown" | "unknown-agent" | undefined;
6216
+ needDevServer?: boolean | undefined;
6217
+ needValidation?: boolean | undefined;
6218
+ includeMemories?: boolean | undefined;
6219
+ resetAfterRun?: boolean | undefined;
6220
+ mcpServers?: boolean | undefined;
6221
+ asyncSubAgents?: boolean | undefined;
6222
+ queueBehavior?: {
6223
+ schedule: "interrupt" | "interrupt-clear" | "interrupt-replace" | "next-turn" | "until-idle";
6224
+ coalesce: "merge" | "preserve-order" | "replace-latest";
6225
+ } | undefined;
6226
+ queueMode?: "next-turn" | "until-idle" | {
6227
+ schedule: "interrupt" | "interrupt-clear" | "interrupt-replace" | "next-turn" | "until-idle";
6228
+ coalesce: "merge" | "preserve-order" | "replace-latest";
6229
+ } | undefined;
6230
+ softContextWindow?: number | undefined;
6231
+ filePath?: string | undefined;
6232
+ maxTimeoutMs?: number | undefined;
6233
+ maxCompletions?: number | undefined;
6234
+ reasoning?: "auto" | "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | undefined;
6235
+ defaultSyncChanges?: {
6236
+ remoteBranches?: "ai" | "both" | "main" | undefined;
6237
+ fastForward?: "auto" | "never" | "required" | undefined;
6238
+ canPush?: boolean | undefined;
6239
+ uncommittedChanges?: "commit" | "fail" | "stash" | undefined;
6240
+ requestRefresh?: boolean | undefined;
6241
+ allowUnrelatedHistory?: boolean | undefined;
6242
+ resetToBase?: boolean | undefined;
6243
+ updateLastCommits?: boolean | undefined;
6244
+ } | undefined;
6245
+ scope?: "plugin" | "project" | "user" | undefined;
6246
+ pluginName?: string | undefined;
6247
+ }[] | undefined;
6248
+ mcpServers?: Record<string, {
6249
+ command: string;
6250
+ args?: string[] | undefined;
6251
+ env?: Record<string, string> | undefined;
6252
+ envFile?: string | undefined;
6253
+ retries?: number | undefined;
6254
+ }> | undefined;
6255
+ commitMode?: "commits" | "draft-prs" | "prs" | undefined;
6256
+ enableMergePR?: boolean | undefined;
6257
+ minRequiredApprovals?: number | undefined;
6258
+ requireApprovalBeforePR?: boolean | undefined;
6259
+ requiredApproverRoleIds?: string[] | undefined;
6260
+ requiredApproverRoleId?: string | undefined;
6261
+ defaultBranchType?: "private" | "shared" | undefined;
6262
+ dockerImagePath?: string | undefined;
6263
+ ghcrUsername?: string | null | undefined;
6264
+ ghcrToken?: string | null | undefined;
6265
+ nodeVersion?: string | undefined;
6266
+ designSystems?: string[] | undefined;
6267
+ designTokenStrictMode?: boolean | undefined;
6268
+ designModeSelector?: string | undefined;
6269
+ folders?: {
6270
+ name: string;
6271
+ remoteUrl: string;
6272
+ mainBranchName?: string | undefined;
6273
+ includePath?: string | undefined;
6274
+ addedBy?: string | undefined;
6275
+ repoProvider?: string | undefined;
6276
+ repoProtocol?: string | undefined;
6277
+ enableGit?: boolean | undefined;
6278
+ }[] | undefined;
6279
+ agentsMD?: string | undefined;
6280
+ initializationCommand?: string | undefined;
6281
+ https?: boolean | undefined;
6282
+ localHttpsDomain?: string | undefined;
6283
+ browserAutomation?: {
6284
+ backgroundAgents?: boolean | undefined;
6285
+ builderApp?: boolean | undefined;
6286
+ instructions?: string | undefined;
6287
+ authUser?: string | undefined;
6288
+ authPassword?: string | undefined;
6289
+ } | undefined;
6290
+ prReviewer?: {
6291
+ enabled: boolean;
6292
+ instructions?: string | undefined;
6293
+ reviewEffort?: "high" | "low" | "medium" | undefined;
6294
+ model?: string | undefined;
6295
+ } | undefined;
6296
+ enableSnapshots?: boolean | undefined;
6297
+ postMergeMemories?: boolean | undefined;
6298
+ maxAgentCompletions?: number | undefined;
6299
+ enableAgentMode?: boolean | undefined;
6300
+ allowPreviewAutoSubmit?: boolean | undefined;
6301
+ enforceDesktopAppOnly?: boolean | undefined;
6302
+ disableDesktopProxying?: boolean | undefined;
6303
+ previewUrl?: string | null | undefined;
6304
+ recentUrls?: {
6305
+ url: string;
6306
+ timestamp: number;
6307
+ starred: boolean;
6308
+ }[] | undefined;
6309
+ httpsServerKeyPath?: string | undefined;
6310
+ httpsServerCertPath?: string | undefined;
6311
+ httpsServerCaPath?: string | undefined;
6312
+ httpsServerKeyContent?: string | undefined;
6313
+ httpsServerCertContent?: string | undefined;
6314
+ httpsServerCaContent?: string | undefined;
6315
+ httpsServerPfx?: string | undefined;
6316
+ httpsServerPassphrase?: string | undefined;
6317
+ httpsServerSecureProtocol?: string | undefined;
6318
+ httpsServerSecureOptions?: number | undefined;
6319
+ httpsServerCiphers?: string | undefined;
6320
+ httpsServerHonorCipherOrder?: boolean | undefined;
6321
+ httpsServerRequestCert?: boolean | undefined;
6322
+ httpsServerRejectUnauthorized?: boolean | undefined;
6323
+ isPreferredForRepo?: boolean | undefined;
6324
+ singleTenancyConfig?: string | undefined;
6325
+ previewPasswordProtection?: {
6326
+ enabled: boolean;
6327
+ password?: string | undefined;
6328
+ } | undefined;
6329
+ } | undefined;
6330
+ hosting?: {
6331
+ enabled?: boolean | undefined;
6332
+ buildConfig?: {
6333
+ buildCommand?: string | undefined;
6334
+ buildOutputDir?: string | undefined;
6335
+ nodeVersion?: string | undefined;
6336
+ } | undefined;
6337
+ environment?: {
6338
+ build?: {
6339
+ key: string;
6340
+ value: string;
6341
+ isSecret: boolean;
6342
+ placeholder?: boolean | undefined;
6343
+ explanation?: string | undefined;
6344
+ }[] | undefined;
6345
+ prod?: {
6346
+ key: string;
6347
+ value: string;
6348
+ isSecret: boolean;
6349
+ placeholder?: boolean | undefined;
6350
+ explanation?: string | undefined;
6351
+ }[] | undefined;
6352
+ } | undefined;
6353
+ autoDeploy?: boolean | undefined;
6354
+ } | undefined;
6355
+ } | undefined;
6356
+ }>>;
5065
6357
  export type CreateProjectTemplateFromProjectOptions = z.infer<typeof CreateProjectTemplateFromProjectOptionsSchema>;
5066
6358
  /**
5067
6359
  * Deliberately minimal: the stored template carries plaintext secret env values,