@geekmidas/cli 10.0.0-alpha.54 → 10.0.0-alpha.56

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.
Files changed (93) hide show
  1. package/README.md +11 -10
  2. package/dist/{HostingerProvider-GF6NAZAK.mjs → HostingerProvider-cL-6oQ5r.mjs} +2 -2
  3. package/dist/{HostingerProvider-GF6NAZAK.mjs.map → HostingerProvider-cL-6oQ5r.mjs.map} +1 -1
  4. package/dist/LegacyStateStore-ByRWQ9s1.mjs +89 -0
  5. package/dist/LegacyStateStore-ByRWQ9s1.mjs.map +1 -0
  6. package/dist/LegacyStateStore-C_OFs1gN.cjs +89 -0
  7. package/dist/LegacyStateStore-C_OFs1gN.cjs.map +1 -0
  8. package/dist/LocalStateStore-BupdV-VN.mjs +163 -0
  9. package/dist/LocalStateStore-BupdV-VN.mjs.map +1 -0
  10. package/dist/LocalStateStore-DDDU0HkI.cjs +163 -0
  11. package/dist/LocalStateStore-DDDU0HkI.cjs.map +1 -0
  12. package/dist/{OpenApiTsGenerator-BN0PIZxd.cjs → OpenApiTsGenerator-BLRQ7Iu9.cjs} +58 -59
  13. package/dist/OpenApiTsGenerator-BLRQ7Iu9.cjs.map +1 -0
  14. package/dist/{OpenApiTsGenerator-BzIGy8KE.mjs → OpenApiTsGenerator-NThANByQ.mjs} +58 -59
  15. package/dist/{OpenApiTsGenerator-BzIGy8KE.mjs.map → OpenApiTsGenerator-NThANByQ.mjs.map} +1 -1
  16. package/dist/S3StateStore-C7eBae0G.cjs +160 -0
  17. package/dist/S3StateStore-C7eBae0G.cjs.map +1 -0
  18. package/dist/S3StateStore-FhzyENrN.mjs +161 -0
  19. package/dist/S3StateStore-FhzyENrN.mjs.map +1 -0
  20. package/dist/SSMStateStore-DD7jKrCO.cjs +146 -0
  21. package/dist/SSMStateStore-DD7jKrCO.cjs.map +1 -0
  22. package/dist/SSMStateStore-oda9xOGc.mjs +147 -0
  23. package/dist/SSMStateStore-oda9xOGc.mjs.map +1 -0
  24. package/dist/{backends-Dfeu5Dgc.mjs → backends-BcHL7Gy_.mjs} +2 -2
  25. package/dist/{backends-Dfeu5Dgc.mjs.map → backends-BcHL7Gy_.mjs.map} +1 -1
  26. package/dist/{backends-D5aDWxuA.cjs → backends-_gQdAzBK.cjs} +2 -2
  27. package/dist/{backends-D5aDWxuA.cjs.map → backends-_gQdAzBK.cjs.map} +1 -1
  28. package/dist/{bundler--fyybf1N.mjs → bundler-URImKj-A.mjs} +2 -2
  29. package/dist/{bundler--fyybf1N.mjs.map → bundler-URImKj-A.mjs.map} +1 -1
  30. package/dist/{config-SOkDH-n1.mjs → config-20V08LZp.mjs} +2 -3
  31. package/dist/config-20V08LZp.mjs.map +1 -0
  32. package/dist/{config-Cvr5fCbn.cjs → config-CP6wsLHA.cjs} +2 -3
  33. package/dist/config-CP6wsLHA.cjs.map +1 -0
  34. package/dist/config.cjs +2 -2
  35. package/dist/config.d.cts +2 -2
  36. package/dist/config.d.mts +2 -2
  37. package/dist/config.mjs +2 -2
  38. package/dist/{encryption-tB4LqLKN.cjs → encryption-10Srqiix.cjs} +4 -4
  39. package/dist/{encryption-tB4LqLKN.cjs.map → encryption-10Srqiix.cjs.map} +1 -1
  40. package/dist/{encryption-O-XdeNxe.mjs → encryption-KQTYFEzU.mjs} +4 -4
  41. package/dist/{encryption-O-XdeNxe.mjs.map → encryption-KQTYFEzU.mjs.map} +1 -1
  42. package/dist/{github-BGx4U61b.cjs → github-DtRUkHN8.cjs} +3 -3
  43. package/dist/{github-BGx4U61b.cjs.map → github-DtRUkHN8.cjs.map} +1 -1
  44. package/dist/{github-U_frvZgD.mjs → github-y7OEj59M.mjs} +3 -3
  45. package/dist/{github-U_frvZgD.mjs.map → github-y7OEj59M.mjs.map} +1 -1
  46. package/dist/{index-fU3qHy7c.d.cts → index-DMcjpvd-.d.cts} +2 -2
  47. package/dist/{index-DYh5TrsZ.d.mts.map → index-DMcjpvd-.d.cts.map} +1 -1
  48. package/dist/{index-DYh5TrsZ.d.mts → index-RM92lx8A.d.mts} +2 -2
  49. package/dist/{index-fU3qHy7c.d.cts.map → index-RM92lx8A.d.mts.map} +1 -1
  50. package/dist/index.cjs +1176 -1281
  51. package/dist/index.cjs.map +1 -1
  52. package/dist/index.mjs +1174 -1287
  53. package/dist/index.mjs.map +1 -1
  54. package/dist/{migrate-DWDaaBfo.mjs → migrate-CS3DkO6y.mjs} +4 -4
  55. package/dist/{migrate-DWDaaBfo.mjs.map → migrate-CS3DkO6y.mjs.map} +1 -1
  56. package/dist/{migrate-DN5VM5vy.cjs → migrate-DQ54y2WD.cjs} +4 -4
  57. package/dist/{migrate-DN5VM5vy.cjs.map → migrate-DQ54y2WD.cjs.map} +1 -1
  58. package/dist/openapi.cjs +3 -3
  59. package/dist/openapi.d.cts +1 -1
  60. package/dist/openapi.d.mts +1 -1
  61. package/dist/openapi.mjs +3 -3
  62. package/dist/{ready-C8wG_d0v.mjs → ready-BSpUZnNo.mjs} +2 -2
  63. package/dist/ready-BSpUZnNo.mjs.map +1 -0
  64. package/dist/{ready-VkNwfJu7.cjs → ready-MUhVJDHe.cjs} +2 -2
  65. package/dist/ready-MUhVJDHe.cjs.map +1 -0
  66. package/dist/reconcile/public.d.cts +1 -1
  67. package/dist/reconcile/public.d.mts +1 -1
  68. package/dist/{types-CT0ymlBk.d.mts → types-BIyIQUR-.d.cts} +138 -33
  69. package/dist/types-BIyIQUR-.d.cts.map +1 -0
  70. package/dist/{types-DYDT4FfE.d.cts → types-CmQl6zaP.d.mts} +137 -34
  71. package/dist/types-CmQl6zaP.d.mts.map +1 -0
  72. package/dist/vitest.cjs +1 -1
  73. package/dist/vitest.mjs +1 -1
  74. package/dist/workspace/index.cjs +1 -1
  75. package/dist/workspace/index.d.cts +2 -2
  76. package/dist/workspace/index.d.mts +2 -2
  77. package/dist/workspace/index.mjs +1 -1
  78. package/dist/{workspace-DFYu-iRP.cjs → workspace-BbPJVCto.cjs} +6 -6
  79. package/dist/{workspace-DFYu-iRP.cjs.map → workspace-BbPJVCto.cjs.map} +1 -1
  80. package/dist/{workspace-BcCiLzTO.cjs → workspace-BpdXIeWV.cjs} +22 -18
  81. package/dist/{workspace-BcCiLzTO.cjs.map → workspace-BpdXIeWV.cjs.map} +1 -1
  82. package/dist/{workspace-bOsks1uk.mjs → workspace-C2mFV53i.mjs} +22 -18
  83. package/dist/{workspace-bOsks1uk.mjs.map → workspace-C2mFV53i.mjs.map} +1 -1
  84. package/dist/{workspace-Bwl0728I.mjs → workspace-CgWcE_Yr.mjs} +8 -8
  85. package/dist/{workspace-Bwl0728I.mjs.map → workspace-CgWcE_Yr.mjs.map} +1 -1
  86. package/package.json +13 -14
  87. package/dist/OpenApiTsGenerator-BN0PIZxd.cjs.map +0 -1
  88. package/dist/config-Cvr5fCbn.cjs.map +0 -1
  89. package/dist/config-SOkDH-n1.mjs.map +0 -1
  90. package/dist/ready-C8wG_d0v.mjs.map +0 -1
  91. package/dist/ready-VkNwfJu7.cjs.map +0 -1
  92. package/dist/types-CT0ymlBk.d.mts.map +0 -1
  93. package/dist/types-DYDT4FfE.d.cts.map +0 -1
@@ -5647,14 +5647,6 @@ const TelescopeConfigSchema = object({
5647
5647
  websocket: boolean().optional()
5648
5648
  });
5649
5649
  /**
5650
- * Studio configuration schema.
5651
- */
5652
- const StudioConfigSchema = object({
5653
- enabled: boolean().optional(),
5654
- path: string().optional(),
5655
- schema: string().optional()
5656
- });
5657
- /**
5658
5650
  * OpenAPI configuration schema.
5659
5651
  */
5660
5652
  const OpenApiConfigSchema = object({
@@ -5990,6 +5982,20 @@ const SSMStateConfigSchema = object({
5990
5982
  profile: string().optional()
5991
5983
  });
5992
5984
  /**
5985
+ * S3 state provider config: conditional writes and a lock object in a bucket.
5986
+ */
5987
+ const S3StateConfigSchema = object({
5988
+ provider: literal("s3"),
5989
+ /** Bucket the state lives in (must already exist) */
5990
+ bucket: string().min(1),
5991
+ /** AWS region of the bucket */
5992
+ region: AwsRegionSchema,
5993
+ /** Key prefix inside the bucket (default: 'gkm') */
5994
+ prefix: string().optional(),
5995
+ /** AWS profile name (optional - uses default credential chain if not provided) */
5996
+ profile: string().optional()
5997
+ });
5998
+ /**
5993
5999
  * Custom state provider config (user-provided implementation).
5994
6000
  */
5995
6001
  const CustomStateConfigSchema = object({
@@ -6001,9 +6007,14 @@ provider: custom((val) => typeof val === "object" && val !== null && typeof val.
6001
6007
  * Configures how deployment state is stored.
6002
6008
  * - 'local': Store in .gkm/deploy-{stage}.json (default)
6003
6009
  * - 'ssm': Store in AWS SSM Parameter Store (requires region)
6004
- * - Custom: Provide a StateProvider implementation with read/write methods
6010
+ * - 's3': Store in an S3 bucket with conditional writes (requires bucket, region)
6011
+ * - Custom: Provide a StateStore, or a StateProvider with read/write methods
6005
6012
  */
6006
- const StateConfigSchema = union([discriminatedUnion("provider", [LocalStateConfigSchema, SSMStateConfigSchema]), CustomStateConfigSchema]);
6013
+ const StateConfigSchema = union([discriminatedUnion("provider", [
6014
+ LocalStateConfigSchema,
6015
+ SSMStateConfigSchema,
6016
+ S3StateConfigSchema
6017
+ ]), CustomStateConfigSchema]);
6007
6018
  /**
6008
6019
  * App configuration schema.
6009
6020
  */
@@ -6032,11 +6043,6 @@ const AppConfigSchema = object({
6032
6043
  boolean(),
6033
6044
  TelescopeConfigSchema
6034
6045
  ]).optional(),
6035
- studio: union([
6036
- string(),
6037
- boolean(),
6038
- StudioConfigSchema
6039
- ]).optional(),
6040
6046
  openapi: union([boolean(), OpenApiConfigSchema]).optional(),
6041
6047
  runtime: _enum(["node", "bun"]).optional(),
6042
6048
  env: union([string(), array(string())]).optional(),
@@ -6378,7 +6384,6 @@ function wrapSingleAppAsWorkspace(config, cwd) {
6378
6384
  constructs: config.constructs,
6379
6385
  hooks: config.hooks,
6380
6386
  telescope: config.telescope,
6381
- studio: config.studio,
6382
6387
  openapi: config.openapi,
6383
6388
  runtime: config.runtime,
6384
6389
  env: config.env
@@ -6470,7 +6475,6 @@ function getAppGkmConfig(workspace, appName) {
6470
6475
  constructs: appConstructGlobs(workspace, appName),
6471
6476
  hooks: app.hooks,
6472
6477
  telescope: app.telescope,
6473
- studio: app.studio,
6474
6478
  openapi: app.openapi,
6475
6479
  runtime: app.runtime,
6476
6480
  env: app.env
@@ -6528,4 +6532,4 @@ function getEndpointForStage(dokployConfig, stage) {
6528
6532
  //#endregion
6529
6533
  export { safeValidateWorkspaceConfig as C, assertDeployedStage as D, TEST_STAGE as E, deployedProblems as O, isPhase2DeployTarget as S, InvalidStages as T, SUPPORTED_DEPLOY_TARGETS as _, getAppBuildOrder as a, getDeployTargetError as b, normalizeWorkspace as c, wrapSingleAppAsWorkspace as d, PUBLIC_ENV_PREFIXES as f, PHASE_2_DEPLOY_TARGETS as g, isWorkspaceConfig as h, defineWorkspace as i, stageProblems as k, processConfig as l, stripPublicPrefix as m, appConstructGlobs as n, getAppGkmConfig as o, getPublicEnvPrefix as p, constructPatterns as r, getEndpointForStage as s, allConstructGlobs as t, workspaceConstructGlobs as u, WorkspaceConfigSchema as v, validateWorkspaceConfig as w, isDeployTargetSupported as x, formatValidationErrors as y };
6530
6534
 
6531
- //# sourceMappingURL=workspace-bOsks1uk.mjs.map
6535
+ //# sourceMappingURL=workspace-C2mFV53i.mjs.map