@geekmidas/cli 10.0.0-alpha.61 → 10.0.0-alpha.63

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 (202) hide show
  1. package/README.md +2 -0
  2. package/dist/{HostingerProvider-DI_Pr2VE.mjs → HostingerProvider-DBBwpDjn.mjs} +2 -2
  3. package/dist/{HostingerProvider-DI_Pr2VE.mjs.map → HostingerProvider-DBBwpDjn.mjs.map} +1 -1
  4. package/dist/{HostingerProvider-CgDaD8VR.cjs → HostingerProvider-mJ7YruxH.cjs} +2 -2
  5. package/dist/{HostingerProvider-CgDaD8VR.cjs.map → HostingerProvider-mJ7YruxH.cjs.map} +1 -1
  6. package/dist/{LegacyStateStore-JbBVFp_2.cjs → LegacyStateStore-CP7SZwTP.cjs} +2 -2
  7. package/dist/{LegacyStateStore-JbBVFp_2.cjs.map → LegacyStateStore-CP7SZwTP.cjs.map} +1 -1
  8. package/dist/{LegacyStateStore-C7vFAxbu.mjs → LegacyStateStore-Q3GmKOdw.mjs} +2 -2
  9. package/dist/{LegacyStateStore-C7vFAxbu.mjs.map → LegacyStateStore-Q3GmKOdw.mjs.map} +1 -1
  10. package/dist/{LocalStateStore-DfUwQsL8.mjs → LocalStateStore-BGIXcrvX.mjs} +2 -2
  11. package/dist/{LocalStateStore-DfUwQsL8.mjs.map → LocalStateStore-BGIXcrvX.mjs.map} +1 -1
  12. package/dist/{LocalStateStore-DHj_-CQB.cjs → LocalStateStore-sS8mvLeq.cjs} +2 -2
  13. package/dist/{LocalStateStore-DHj_-CQB.cjs.map → LocalStateStore-sS8mvLeq.cjs.map} +1 -1
  14. package/dist/{OpenApiTsGenerator-BSrgw7B0.cjs → OpenApiTsGenerator-CjHWFRDd.cjs} +2 -2
  15. package/dist/{OpenApiTsGenerator-BSrgw7B0.cjs.map → OpenApiTsGenerator-CjHWFRDd.cjs.map} +1 -1
  16. package/dist/{OpenApiTsGenerator-q5B0z8Xg.mjs → OpenApiTsGenerator-CnAwhGxi.mjs} +2 -2
  17. package/dist/{OpenApiTsGenerator-q5B0z8Xg.mjs.map → OpenApiTsGenerator-CnAwhGxi.mjs.map} +1 -1
  18. package/dist/{S3StateStore-xqnpUrzy.cjs → S3StateStore-6jqITH2F.cjs} +2 -2
  19. package/dist/{S3StateStore-xqnpUrzy.cjs.map → S3StateStore-6jqITH2F.cjs.map} +1 -1
  20. package/dist/{S3StateStore-Dq6hHtzY.mjs → S3StateStore-D7l_lWJ3.mjs} +2 -2
  21. package/dist/{S3StateStore-Dq6hHtzY.mjs.map → S3StateStore-D7l_lWJ3.mjs.map} +1 -1
  22. package/dist/{SSMStateStore-5dBRwVlJ.cjs → SSMStateStore-B__F7IJa.cjs} +2 -2
  23. package/dist/{SSMStateStore-5dBRwVlJ.cjs.map → SSMStateStore-B__F7IJa.cjs.map} +1 -1
  24. package/dist/{SSMStateStore-SUmvAbLi.mjs → SSMStateStore-CAQDVpoc.mjs} +2 -2
  25. package/dist/{SSMStateStore-SUmvAbLi.mjs.map → SSMStateStore-CAQDVpoc.mjs.map} +1 -1
  26. package/dist/{bundler-DXATpO1T.cjs → bundler-DLfOn0ls.cjs} +3 -3
  27. package/dist/{bundler-DXATpO1T.cjs.map → bundler-DLfOn0ls.cjs.map} +1 -1
  28. package/dist/{bundler-B5VsKW-_.mjs → bundler-DyWI41Iy.mjs} +2 -2
  29. package/dist/{bundler-B5VsKW-_.mjs.map → bundler-DyWI41Iy.mjs.map} +1 -1
  30. package/dist/{cli-DQdrVkj2.cjs → cli-D-ZM-X2s.cjs} +12 -16
  31. package/dist/cli-D-ZM-X2s.cjs.map +1 -0
  32. package/dist/{cli-DEA_J3Sa.mjs → cli-PkVF28LM.mjs} +10 -14
  33. package/dist/cli-PkVF28LM.mjs.map +1 -0
  34. package/dist/{config-DXnkCEq0.cjs → config-BEJYKd4s.cjs} +132 -18
  35. package/dist/config-BEJYKd4s.cjs.map +1 -0
  36. package/dist/config-C2BUosLm.d.mts +256 -0
  37. package/dist/config-C2BUosLm.d.mts.map +1 -0
  38. package/dist/config-CemHVcIr.d.cts +256 -0
  39. package/dist/config-CemHVcIr.d.cts.map +1 -0
  40. package/dist/{config-C5-EEdmr.mjs → config-LKKCVCnC.mjs} +109 -19
  41. package/dist/config-LKKCVCnC.mjs.map +1 -0
  42. package/dist/config.cjs +6 -2
  43. package/dist/config.d.cts +4 -211
  44. package/dist/config.d.mts +4 -211
  45. package/dist/config.mjs +3 -3
  46. package/dist/define-CHBIEc5j.mjs +94 -0
  47. package/dist/define-CHBIEc5j.mjs.map +1 -0
  48. package/dist/define-Cv_QvDrg.cjs +141 -0
  49. package/dist/define-Cv_QvDrg.cjs.map +1 -0
  50. package/dist/deploy/public.cjs +174 -13
  51. package/dist/deploy/public.cjs.map +1 -0
  52. package/dist/deploy/public.d.cts +200 -292
  53. package/dist/deploy/public.d.cts.map +1 -1
  54. package/dist/deploy/public.d.mts +200 -292
  55. package/dist/deploy/public.d.mts.map +1 -1
  56. package/dist/deploy/public.mjs +136 -3
  57. package/dist/deploy/public.mjs.map +1 -0
  58. package/dist/deploy/sniffer-envparser-worker.cjs +54 -0
  59. package/dist/deploy/sniffer-envparser-worker.cjs.map +1 -0
  60. package/dist/deploy/sniffer-envparser-worker.d.cts +1 -0
  61. package/dist/deploy/sniffer-envparser-worker.d.mts +1 -0
  62. package/dist/deploy/sniffer-envparser-worker.mjs +55 -0
  63. package/dist/deploy/sniffer-envparser-worker.mjs.map +1 -0
  64. package/dist/{deploy-BbJdgQ2b.cjs → deploy-ABBI0lf1.cjs} +169 -561
  65. package/dist/deploy-ABBI0lf1.cjs.map +1 -0
  66. package/dist/deploy-BiMrP9i7.cjs +140 -0
  67. package/dist/deploy-BiMrP9i7.cjs.map +1 -0
  68. package/dist/{deploy-BJcLmVTc.mjs → deploy-CG8bfFij.mjs} +152 -532
  69. package/dist/deploy-CG8bfFij.mjs.map +1 -0
  70. package/dist/deploy-CGW-QY9D.mjs +135 -0
  71. package/dist/deploy-CGW-QY9D.mjs.map +1 -0
  72. package/dist/discover-B6yPpvRV.d.mts +99 -0
  73. package/dist/discover-B6yPpvRV.d.mts.map +1 -0
  74. package/dist/discover-B_IkPukx.d.cts +99 -0
  75. package/dist/discover-B_IkPukx.d.cts.map +1 -0
  76. package/dist/discover-BaT6bpnA.mjs +614 -0
  77. package/dist/discover-BaT6bpnA.mjs.map +1 -0
  78. package/dist/discover-C_6COHEv.cjs +729 -0
  79. package/dist/discover-C_6COHEv.cjs.map +1 -0
  80. package/dist/dokploy-CwdmlyQL.mjs +32 -0
  81. package/dist/dokploy-CwdmlyQL.mjs.map +1 -0
  82. package/dist/dokploy-QJxMhxdf.cjs +32 -0
  83. package/dist/dokploy-QJxMhxdf.cjs.map +1 -0
  84. package/dist/{encryption-DaA9gRXr.mjs → encryption-CbQG_ayW.mjs} +4 -4
  85. package/dist/{encryption-DaA9gRXr.mjs.map → encryption-CbQG_ayW.mjs.map} +1 -1
  86. package/dist/{encryption-ojzUo7-z.cjs → encryption-DXw3jj0c.cjs} +4 -4
  87. package/dist/{encryption-ojzUo7-z.cjs.map → encryption-DXw3jj0c.cjs.map} +1 -1
  88. package/dist/fakes-C9RiT6XG.mjs.map +1 -1
  89. package/dist/fakes-zW-jNAbQ.cjs.map +1 -1
  90. package/dist/{github-Cq57poPj.cjs → github-BH_mETav.cjs} +3 -3
  91. package/dist/{github-Cq57poPj.cjs.map → github-BH_mETav.cjs.map} +1 -1
  92. package/dist/{github-DmCj2u95.mjs → github-ciwbIwVa.mjs} +3 -3
  93. package/dist/{github-DmCj2u95.mjs.map → github-ciwbIwVa.mjs.map} +1 -1
  94. package/dist/{index-UiWCaGzU.d.cts → index-BtXDZQuF.d.cts} +2 -2
  95. package/dist/{index-Da1-oa9W.d.mts.map → index-BtXDZQuF.d.cts.map} +1 -1
  96. package/dist/{index-Da1-oa9W.d.mts → index-DrKzpHl-.d.mts} +2 -2
  97. package/dist/{index-UiWCaGzU.d.cts.map → index-DrKzpHl-.d.mts.map} +1 -1
  98. package/dist/index.cjs +60 -52
  99. package/dist/index.cjs.map +1 -1
  100. package/dist/index.mjs +57 -49
  101. package/dist/index.mjs.map +1 -1
  102. package/dist/{migrate-BScRpCEx.cjs → migrate-6oa9y_f2.cjs} +5 -5
  103. package/dist/{migrate-BScRpCEx.cjs.map → migrate-6oa9y_f2.cjs.map} +1 -1
  104. package/dist/{migrate-5_J5JySj.mjs → migrate-ImBKTBcW.mjs} +5 -5
  105. package/dist/{migrate-5_J5JySj.mjs.map → migrate-ImBKTBcW.mjs.map} +1 -1
  106. package/dist/openapi.cjs +3 -3
  107. package/dist/openapi.d.cts +1 -1
  108. package/dist/openapi.d.mts +1 -1
  109. package/dist/openapi.mjs +3 -3
  110. package/dist/{ready-XlNx-Gbo.cjs → ready-BiG0rt4h.cjs} +3 -3
  111. package/dist/{ready-XlNx-Gbo.cjs.map → ready-BiG0rt4h.cjs.map} +1 -1
  112. package/dist/{ready-DQIy21W5.mjs → ready-Bpdnn2ON.mjs} +3 -3
  113. package/dist/{ready-DQIy21W5.mjs.map → ready-Bpdnn2ON.mjs.map} +1 -1
  114. package/dist/reconcile/public.cjs +1 -1
  115. package/dist/reconcile/public.d.cts +4 -77
  116. package/dist/reconcile/public.d.cts.map +1 -1
  117. package/dist/reconcile/public.d.mts +4 -77
  118. package/dist/reconcile/public.d.mts.map +1 -1
  119. package/dist/reconcile/public.mjs +1 -1
  120. package/dist/resolve-B1T0hUaR.mjs +170 -0
  121. package/dist/resolve-B1T0hUaR.mjs.map +1 -0
  122. package/dist/resolve-xytBTtG4.cjs +217 -0
  123. package/dist/resolve-xytBTtG4.cjs.map +1 -0
  124. package/dist/runtime-CMwtq0AL.cjs +163 -0
  125. package/dist/runtime-CMwtq0AL.cjs.map +1 -0
  126. package/dist/runtime-CXPlkZzs.d.mts +90 -0
  127. package/dist/runtime-CXPlkZzs.d.mts.map +1 -0
  128. package/dist/runtime-DbakJS8u.mjs +134 -0
  129. package/dist/runtime-DbakJS8u.mjs.map +1 -0
  130. package/dist/runtime-Dn_n-29S.d.cts +90 -0
  131. package/dist/runtime-Dn_n-29S.d.cts.map +1 -0
  132. package/dist/sandbox/config-worker.cjs +43 -0
  133. package/dist/sandbox/config-worker.cjs.map +1 -0
  134. package/dist/sandbox/config-worker.d.cts +1 -0
  135. package/dist/sandbox/config-worker.d.mts +1 -0
  136. package/dist/sandbox/config-worker.mjs +44 -0
  137. package/dist/sandbox/config-worker.mjs.map +1 -0
  138. package/dist/sandbox/discover-worker.cjs +44 -0
  139. package/dist/sandbox/discover-worker.cjs.map +1 -0
  140. package/dist/sandbox/discover-worker.d.cts +1 -0
  141. package/dist/sandbox/discover-worker.d.mts +1 -0
  142. package/dist/sandbox/discover-worker.mjs +45 -0
  143. package/dist/sandbox/discover-worker.mjs.map +1 -0
  144. package/dist/sandbox-M8UnLhXE.d.cts +126 -0
  145. package/dist/sandbox-M8UnLhXE.d.cts.map +1 -0
  146. package/dist/sandbox-M8UnLhXE.d.mts +126 -0
  147. package/dist/sandbox-M8UnLhXE.d.mts.map +1 -0
  148. package/dist/{workspace-Bp1xVaOz.mjs → schemas-Ckm_aBnF.cjs} +264 -969
  149. package/dist/schemas-Ckm_aBnF.cjs.map +1 -0
  150. package/dist/{workspace-B64Xk1Mb.cjs → schemas-D2LCF689.mjs} +195 -1155
  151. package/dist/schemas-D2LCF689.mjs.map +1 -0
  152. package/dist/{sniffer-CQmJnNJM.cjs → sniffer-D_SYc_pO.cjs} +379 -214
  153. package/dist/sniffer-D_SYc_pO.cjs.map +1 -0
  154. package/dist/{sniffer-bdleks5l.mjs → sniffer-aO_-s5vq.mjs} +346 -211
  155. package/dist/sniffer-aO_-s5vq.mjs.map +1 -0
  156. package/dist/target/public.cjs +15 -0
  157. package/dist/target/public.d.cts +28 -0
  158. package/dist/target/public.d.cts.map +1 -0
  159. package/dist/target/public.d.mts +28 -0
  160. package/dist/target/public.d.mts.map +1 -0
  161. package/dist/target/public.mjs +4 -0
  162. package/dist/terminal-D0f1u0LG.cjs +576 -0
  163. package/dist/terminal-D0f1u0LG.cjs.map +1 -0
  164. package/dist/terminal-gMxAo9Dj.mjs +517 -0
  165. package/dist/terminal-gMxAo9Dj.mjs.map +1 -0
  166. package/dist/{types-efNLu9xu.d.cts → types-CfLKGfC_.d.mts} +624 -34
  167. package/dist/types-CfLKGfC_.d.mts.map +1 -0
  168. package/dist/{types-Bp1mVxG0.d.mts → types-DIA7Li-J.d.cts} +626 -34
  169. package/dist/types-DIA7Li-J.d.cts.map +1 -0
  170. package/dist/vitest.cjs +2 -2
  171. package/dist/vitest.mjs +2 -2
  172. package/dist/workerRuntime-BXfhbe13.cjs +108 -0
  173. package/dist/workerRuntime-BXfhbe13.cjs.map +1 -0
  174. package/dist/workerRuntime-CsOyBRx2.mjs +79 -0
  175. package/dist/workerRuntime-CsOyBRx2.mjs.map +1 -0
  176. package/dist/workspace/index.cjs +1 -1
  177. package/dist/workspace/index.d.cts +3 -3
  178. package/dist/workspace/index.d.mts +3 -3
  179. package/dist/workspace/index.mjs +1 -1
  180. package/dist/workspace-Dh7rr7l4.mjs +1024 -0
  181. package/dist/workspace-Dh7rr7l4.mjs.map +1 -0
  182. package/dist/workspace-Kl4NG9IH.cjs +1196 -0
  183. package/dist/workspace-Kl4NG9IH.cjs.map +1 -0
  184. package/package.json +23 -13
  185. package/dist/cli-DEA_J3Sa.mjs.map +0 -1
  186. package/dist/cli-DQdrVkj2.cjs.map +0 -1
  187. package/dist/config-C5-EEdmr.mjs.map +0 -1
  188. package/dist/config-DXnkCEq0.cjs.map +0 -1
  189. package/dist/config.d.cts.map +0 -1
  190. package/dist/config.d.mts.map +0 -1
  191. package/dist/deploy-BJcLmVTc.mjs.map +0 -1
  192. package/dist/deploy-BbJdgQ2b.cjs.map +0 -1
  193. package/dist/discover-Bc-4eA_p.cjs +0 -299
  194. package/dist/discover-Bc-4eA_p.cjs.map +0 -1
  195. package/dist/discover-FrYvzkeC.mjs +0 -262
  196. package/dist/discover-FrYvzkeC.mjs.map +0 -1
  197. package/dist/sniffer-CQmJnNJM.cjs.map +0 -1
  198. package/dist/sniffer-bdleks5l.mjs.map +0 -1
  199. package/dist/types-Bp1mVxG0.d.mts.map +0 -1
  200. package/dist/types-efNLu9xu.d.cts.map +0 -1
  201. package/dist/workspace-B64Xk1Mb.cjs.map +0 -1
  202. package/dist/workspace-Bp1xVaOz.mjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env -S npx tsx
2
2
  import { n as __require, t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
3
- import { $ as quoteIdentifier, At as getDokployCredentials, B as run$1, Ct as loadEnvFiles, Dt as logoutCommand, Et as loginCommand, G as derivedContainers, H as FAKE_ENV, I as withGeneratedSecrets, J as LOCAL_CA_PATH, K as reconcileWorkspace, Mt as getDokployToken, P as createStateStore, Q as postgresStatements, St as isPortAvailable, Tt as prepareEntryCredentials, U as backendsOf$1, V as runOutput, W as constructGlobs, X as applyPostgres, Y as forgetState, Z as postgresDatabaseNames, _t as primaryPortKey, at as localRolePassword, bt as createEntryWrapper, c as dockerCommand, ct as hostFor, d as generateDockerignore, dt as providerOf, et as composeFor, f as generateSlimDockerfile, g as createEmptyState, gt as portKeys, h as resolveHost, ht as fakeKey, it as envFor, jt as getDokployRegistryId, kt as whoamiCommand, l as siteDockerfile, lt as cacheBackendFor, m as isMainFrontendApp, mt as describeServices, n as sniffAppEnvironment, nt as appEnvKeys, ot as planFor, p as validateImageRef, pt as DEFAULT_IMAGES, r as DokployApi, rt as networkEnv, s as appPackageName$1, tt as pgClient, u as detectPackageManager$2, vt as withOwningTsconfigJsx, wt as loadSecretsForApp, xt as findAvailablePort, yt as createCredentialsPreload, z as keyFingerprint } from "./sniffer-bdleks5l.mjs";
4
- import { i as ConstructGenerator, t as discover } from "./discover-FrYvzkeC.mjs";
5
- import { d as parseModuleConfig, f as appKey, l as loadWorkspaceConfig, n as NotABackendApp, o as loadAppConfig, r as NotInAnApp, s as loadConfig, t as ConfigNotFound, u as loadWorkspaceSettings } from "./config-C5-EEdmr.mjs";
6
- import { D as assertDeployedStage, E as TEST_STAGE, O as deployedProblems, T as InvalidStages, a as getAppBuildOrder, k as stageProblems, o as getAppGkmConfig, t as allConstructGlobs } from "./workspace-Bp1xVaOz.mjs";
3
+ import { At as prepareEntryCredentials, B as LocalSandbox, Ct as primaryPortKey, Dt as isPortAvailable, Et as findAvailablePort, Ft as getDokployCredentials, G as DEFAULT_TIMEOUT_MS, I as withGeneratedSecrets, It as getDokployRegistryId, J as FAKE_ENV, K as run$1, Lt as getDokployToken, Mt as logoutCommand, Ot as loadEnvFiles, P as createStateStore, Pt as whoamiCommand, Q as reconcileWorkspace, St as portKeys, Tt as createEntryWrapper, U as CommandFailed, X as constructGlobs, Y as backendsOf$1, Z as derivedContainers, _t as providerOf, at as quoteIdentifier, bt as describeServices, c as dockerCommand, ct as appEnvKeys, d as generateDockerignore, dt as localRolePassword, et as LOCAL_CA_PATH, f as generateSlimDockerfile, ft as planFor, g as createEmptyState, h as resolveHost, ht as cacheBackendFor, it as postgresStatements, jt as loginCommand, kt as loadSecretsForApp, l as siteDockerfile, lt as networkEnv, m as isMainFrontendApp, mt as hostFor, n as sniffAppEnvironment, nt as applyPostgres, ot as composeFor, p as validateImageRef, q as runOutput, r as DokployApi, rt as postgresDatabaseNames, s as appPackageName$1, st as pgClient, tt as forgetState, u as detectPackageManager$2, ut as envFor, wt as createCredentialsPreload, xt as fakeKey, yt as DEFAULT_IMAGES, z as keyFingerprint } from "./sniffer-aO_-s5vq.mjs";
4
+ import { _ as ConstructGenerator, l as withOwningTsconfigJsx, r as discover } from "./discover-BaT6bpnA.mjs";
5
+ import { a as NotABackendApp, d as loadConfig, g as appKey, h as parseModuleConfig, m as loadWorkspaceSettings, o as NotInAnApp, p as loadWorkspaceConfig, r as ConfigNotFound, u as loadAppConfig } from "./config-LKKCVCnC.mjs";
6
+ import { D as assertDeployedStage, E as TEST_STAGE, O as deployedProblems, T as InvalidStages, a as getAppBuildOrder, k as stageProblems, o as getAppGkmConfig, t as allConstructGlobs } from "./workspace-Dh7rr7l4.mjs";
7
7
  import { a as withCustomSecret, i as toEmbeddableSecrets, n as maskPassword, t as initStageSecrets } from "./storage-BzaUxmqe.mjs";
8
8
  import { a as getKeyPath, f as imageRef, i as FileSecretsStore, n as secretsStoreFor, s as projectKey, u as deployIdentity } from "./store-BS8A7NcA.mjs";
9
- import { i as telemetryFor, n as EndpointGenerator, r as runtimeFor } from "./OpenApiTsGenerator-q5B0z8Xg.mjs";
9
+ import { i as telemetryFor, n as EndpointGenerator, r as runtimeFor } from "./OpenApiTsGenerator-CnAwhGxi.mjs";
10
10
  import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
11
11
  import { n as DEFAULT_CACHE, r as DEFAULT_EVENTS } from "./fakes-C9RiT6XG.mjs";
12
12
  import { a as describeHolder, i as assignAppPorts, o as holderOf, r as appTag, s as withAppPorts, t as APP_TAG_ENV } from "./appPorts-C9z9Pzn9.mjs";
13
- import { a as writeTestHarness, c as driversFor, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, o as SubscriberGenerator, s as cacheBackendsIn, t as TEST_READY_ENV } from "./ready-DQIy21W5.mjs";
13
+ import { a as writeTestHarness, c as driversFor, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, o as SubscriberGenerator, s as cacheBackendsIn, t as TEST_READY_ENV } from "./ready-Bpdnn2ON.mjs";
14
14
  import { n as withCompute, r as withRoutes, t as manifestModule } from "./emit-C1e8qD08.mjs";
15
- import { t as LocalStateStore } from "./LocalStateStore-DfUwQsL8.mjs";
15
+ import { t as LocalStateStore } from "./LocalStateStore-BGIXcrvX.mjs";
16
16
  import { createRequire } from "node:module";
17
17
  import { basename, dirname, extname, isAbsolute, join, parse, relative, resolve } from "node:path";
18
18
  import { Command } from "commander";
@@ -22,11 +22,11 @@ import { homedir } from "node:os";
22
22
  import { promisify } from "node:util";
23
23
  import { DATABASE_FOLDERS, MIGRATIONS_ROOT, canonicalId, kebabCase, migrationFolder, migrationTargets, provideKey, provisionOrder, publicEnvFor, schemeBase, serviceKey } from "@geekmidas/manifest";
24
24
  import fg from "fast-glob";
25
+ import { pathToFileURL } from "node:url";
25
26
  import { execFile, execSync, spawn } from "node:child_process";
26
27
  import chokidar from "chokidar";
27
28
  import { connect } from "node:net";
28
29
  import { createHash, randomBytes, timingSafeEqual } from "node:crypto";
29
- import { pathToFileURL } from "node:url";
30
30
  import pg from "pg";
31
31
  import { parse as parse$1, parseDocument, stringify } from "yaml";
32
32
  import prompts from "prompts";
@@ -41,7 +41,7 @@ import { Function } from "@geekmidas/constructs/functions";
41
41
  import { Queue } from "@geekmidas/constructs/queue";
42
42
  import { Topic } from "@geekmidas/constructs/topic";
43
43
  //#region package.json
44
- var version = "10.0.0-alpha.61";
44
+ var version = "10.0.0-alpha.63";
45
45
  //#endregion
46
46
  //#region src/trust/index.ts
47
47
  /**
@@ -1845,9 +1845,9 @@ async function workspaceDevCommand(configured, options) {
1845
1845
  for (const { id, port } of fakes) logger$6.log(`🎭 ${id} fake: http://localhost:${port}`);
1846
1846
  logger$6.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
1847
1847
  if (options.migrate || options.seed) {
1848
- const { prepareDevDatabases } = await import("./migrate-5_J5JySj.mjs");
1848
+ const { prepareDevDatabases } = await import("./migrate-ImBKTBcW.mjs");
1849
1849
  await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
1850
- } else await import("./migrate-5_J5JySj.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
1850
+ } else await import("./migrate-ImBKTBcW.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
1851
1851
  logger$6.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
1852
1852
  });
1853
1853
  const appUrls = {};
@@ -3227,7 +3227,7 @@ async function buildApp(input) {
3227
3227
  if (production?.bundle && !input.skipBundle) {
3228
3228
  const outputDir = join(appRoot, ".gkm", "server");
3229
3229
  const entryPoint = await writeSurfaceServer(outputDir, production);
3230
- const { bundleServer } = await import("./bundler-B5VsKW-_.mjs");
3230
+ const { bundleServer } = await import("./bundler-DyWI41Iy.mjs");
3231
3231
  await bundleServer({
3232
3232
  entryPoint,
3233
3233
  outputDir: join(outputDir, "dist"),
@@ -3365,7 +3365,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
3365
3365
  let masterKey;
3366
3366
  if (context.production?.bundle && !skipBundle) {
3367
3367
  logger$5.log(`\n📦 Bundling production server...`);
3368
- const { bundleServer } = await import("./bundler-B5VsKW-_.mjs");
3368
+ const { bundleServer } = await import("./bundler-DyWI41Iy.mjs");
3369
3369
  const allConstructs = [
3370
3370
  ...endpoints.map((e) => e.construct),
3371
3371
  ...functions.map((f) => f.construct),
@@ -3529,13 +3529,20 @@ async function workspaceBuildCommand(workspace, options) {
3529
3529
  if (filters.length > 0) {
3530
3530
  logger$5.log(`\n📦 Using ${pm} with Turbo for the other apps...\n`);
3531
3531
  logger$5.log(`Running: ${[turboBin, ...turboArgs].join(" ")}`);
3532
- await run$1(turboBin, turboArgs, {
3532
+ const sandbox = options.sandbox ?? new LocalSandbox({
3533
+ root: workspace.root,
3534
+ passEnv: ["TURBO_TOKEN"]
3535
+ });
3536
+ const built = await sandbox.exec(turboBin, turboArgs, {
3533
3537
  cwd: workspace.root,
3534
3538
  env: {
3535
- ...process.env,
3539
+ ...sandbox.env,
3536
3540
  NODE_ENV: options.production ? "production" : "development"
3537
- }
3541
+ },
3542
+ timeoutMs: DEFAULT_TIMEOUT_MS,
3543
+ output: "inherit"
3538
3544
  });
3545
+ if (built.exitCode !== 0) throw new CommandFailed(turboBin, turboArgs, built.exitCode, built.signal);
3539
3546
  }
3540
3547
  for (const [appName, app] of apps) {
3541
3548
  const outputPath = getAppOutputPath(workspace, appName, app);
@@ -5175,7 +5182,7 @@ async function deployInitCommand(options) {
5175
5182
  logger$3.log(`\n🔗 View in Dokploy: ${endpoint}/project/${projectId}`);
5176
5183
  logger$3.log(`\n📝 Next steps:`);
5177
5184
  logger$3.log(` 1. Initialize secrets: gkm secrets:init --stage production`);
5178
- logger$3.log(` 2. Deploy: gkm deploy --provider dokploy --stage production`);
5185
+ logger$3.log(` 2. Deploy: gkm deploy --stage production`);
5179
5186
  return config;
5180
5187
  }
5181
5188
  /**
@@ -6473,25 +6480,25 @@ function loadPackageJson() {
6473
6480
  * Run: pnpm --filter @geekmidas/cli sync-versions
6474
6481
  */
6475
6482
  const GEEKMIDAS_VERSIONS = {
6476
- "@geekmidas/audit": "~10.0.0-alpha.61",
6477
- "@geekmidas/auth": "~10.0.0-alpha.61",
6478
- "@geekmidas/cache": "~10.0.0-alpha.61",
6479
- "@geekmidas/client": "~10.0.0-alpha.61",
6480
- "@geekmidas/cloud": "~10.0.0-alpha.61",
6481
- "@geekmidas/constructs": "~10.0.0-alpha.61",
6482
- "@geekmidas/db": "~10.0.0-alpha.61",
6483
- "@geekmidas/emailkit": "~10.0.0-alpha.61",
6484
- "@geekmidas/envkit": "~10.0.0-alpha.61",
6485
- "@geekmidas/errors": "~10.0.0-alpha.61",
6486
- "@geekmidas/events": "~10.0.0-alpha.61",
6487
- "@geekmidas/logger": "~10.0.0-alpha.61",
6488
- "@geekmidas/manifest": "~10.0.0-alpha.61",
6489
- "@geekmidas/rate-limit": "~10.0.0-alpha.61",
6490
- "@geekmidas/schema": "~10.0.0-alpha.61",
6491
- "@geekmidas/services": "~10.0.0-alpha.61",
6492
- "@geekmidas/storage": "~10.0.0-alpha.61",
6493
- "@geekmidas/telescope": "~10.0.0-alpha.61",
6494
- "@geekmidas/testkit": "~10.0.0-alpha.61",
6483
+ "@geekmidas/audit": "~10.0.0-alpha.63",
6484
+ "@geekmidas/auth": "~10.0.0-alpha.63",
6485
+ "@geekmidas/cache": "~10.0.0-alpha.63",
6486
+ "@geekmidas/client": "~10.0.0-alpha.63",
6487
+ "@geekmidas/cloud": "~10.0.0-alpha.63",
6488
+ "@geekmidas/constructs": "~10.0.0-alpha.63",
6489
+ "@geekmidas/db": "~10.0.0-alpha.63",
6490
+ "@geekmidas/emailkit": "~10.0.0-alpha.63",
6491
+ "@geekmidas/envkit": "~10.0.0-alpha.63",
6492
+ "@geekmidas/errors": "~10.0.0-alpha.63",
6493
+ "@geekmidas/events": "~10.0.0-alpha.63",
6494
+ "@geekmidas/logger": "~10.0.0-alpha.63",
6495
+ "@geekmidas/manifest": "~10.0.0-alpha.63",
6496
+ "@geekmidas/rate-limit": "~10.0.0-alpha.63",
6497
+ "@geekmidas/schema": "~10.0.0-alpha.63",
6498
+ "@geekmidas/services": "~10.0.0-alpha.63",
6499
+ "@geekmidas/storage": "~10.0.0-alpha.63",
6500
+ "@geekmidas/telescope": "~10.0.0-alpha.63",
6501
+ "@geekmidas/testkit": "~10.0.0-alpha.63",
6495
6502
  "@geekmidas/cli": `~${loadPackageJson().version}`
6496
6503
  };
6497
6504
  //#endregion
@@ -8021,7 +8028,7 @@ const perStage = (options, command) => Object.fromEntries(options.stages.deploye
8021
8028
  function deployPackage(options) {
8022
8029
  switch (options.deployTarget) {
8023
8030
  case "dokploy": return {
8024
- scripts: perStage(options, (stage) => `gkm deploy --provider dokploy --stage ${stage}`),
8031
+ scripts: perStage(options, (stage) => `gkm deploy --stage ${stage}`),
8025
8032
  dependencies: {},
8026
8033
  devDependencies: {}
8027
8034
  };
@@ -12392,8 +12399,8 @@ function testDatabases(reconciled) {
12392
12399
  * starts without the reference data the app needs.
12393
12400
  */
12394
12401
  async function migrateTestStage(workspace, env) {
12395
- const { migrateAndSeed } = await import("./migrate-5_J5JySj.mjs");
12396
- const { discover } = await import("./discover-FrYvzkeC.mjs").then((n) => n.n);
12402
+ const { migrateAndSeed } = await import("./migrate-ImBKTBcW.mjs");
12403
+ const { discover } = await import("./discover-BaT6bpnA.mjs").then((n) => n.i);
12397
12404
  const sources = {};
12398
12405
  const manifest = await discover({
12399
12406
  patterns: constructGlobs(workspace),
@@ -12823,7 +12830,7 @@ program.command("migrate").description("Apply each database construct's migratio
12823
12830
  try {
12824
12831
  const globalOptions = program.opts();
12825
12832
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
12826
- const { migrateCommand } = await import("./migrate-5_J5JySj.mjs");
12833
+ const { migrateCommand } = await import("./migrate-ImBKTBcW.mjs");
12827
12834
  await migrateCommand({
12828
12835
  ...options,
12829
12836
  ...construct ? { construct } : {}
@@ -12837,7 +12844,7 @@ program.command("seed").description("Migrate, then run each database construct's
12837
12844
  try {
12838
12845
  const globalOptions = program.opts();
12839
12846
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
12840
- const { seedCommand } = await import("./migrate-5_J5JySj.mjs");
12847
+ const { seedCommand } = await import("./migrate-ImBKTBcW.mjs");
12841
12848
  await seedCommand({
12842
12849
  ...options,
12843
12850
  ...construct ? { construct } : {}
@@ -12851,7 +12858,7 @@ program.command("migration").description("Write a construct's next migration: an
12851
12858
  try {
12852
12859
  const globalOptions = program.opts();
12853
12860
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
12854
- const { migrationCommand } = await import("./migrate-5_J5JySj.mjs");
12861
+ const { migrationCommand } = await import("./migrate-ImBKTBcW.mjs");
12855
12862
  await migrationCommand({
12856
12863
  construct,
12857
12864
  ...name ? { name } : {}
@@ -12959,7 +12966,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
12959
12966
  try {
12960
12967
  const globalOptions = program.opts();
12961
12968
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
12962
- const { encryptionRotateCommand } = await import("./encryption-DaA9gRXr.mjs");
12969
+ const { encryptionRotateCommand } = await import("./encryption-CbQG_ayW.mjs");
12963
12970
  await encryptionRotateCommand(construct, options);
12964
12971
  } catch (error) {
12965
12972
  console.error(formatError(error));
@@ -12970,7 +12977,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
12970
12977
  try {
12971
12978
  const globalOptions = program.opts();
12972
12979
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
12973
- const { encryptionRetireCommand } = await import("./encryption-DaA9gRXr.mjs");
12980
+ const { encryptionRetireCommand } = await import("./encryption-CbQG_ayW.mjs");
12974
12981
  await encryptionRetireCommand(construct, key, options);
12975
12982
  } catch (error) {
12976
12983
  console.error(formatError(error));
@@ -13022,7 +13029,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
13022
13029
  console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
13023
13030
  process.exit(1);
13024
13031
  }
13025
- const { derivedContainers } = await import("./sniffer-bdleks5l.mjs").then((n) => n.q);
13032
+ const { derivedContainers } = await import("./sniffer-aO_-s5vq.mjs").then((n) => n.$);
13026
13033
  const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
13027
13034
  if (!result) {
13028
13035
  console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
@@ -13036,12 +13043,13 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
13036
13043
  process.exit(1);
13037
13044
  }
13038
13045
  });
13039
- program.command("deploy").description("Deploy application to a provider").requiredOption("--provider <provider>", "Deploy provider (docker, dokploy, aws-lambda)").requiredOption("--stage <stage>", "Deployment stage (e.g., production, staging)").option("--tag <tag>", "Image tag (default: stage-timestamp)").option("--skip-push", "Skip pushing image to registry").option("--skip-build", "Skip build step (use existing build)").option("--json", "Write events as JSON lines instead of progress; never prompts").option("--dry-run", "Show what would be created or reused; change, build and push nothing").action(async (options) => {
13040
- const { deployCli } = await import("./cli-DEA_J3Sa.mjs");
13046
+ program.command("deploy").description("Deploy a stage through its target").option("--target <name>", "Deploy target: dokploy, or one named in deploy.targets (default: deploy.default)").option("--provider <provider>", "[DEPRECATED] Use --target instead").requiredOption("--stage <stage>", "Deployment stage (e.g., production, staging)").option("--tag <tag>", "Image tag (default: stage-timestamp)").option("--skip-push", "Skip pushing image to registry").option("--skip-build", "Skip build step (use existing build)").option("--json", "Write events as JSON lines instead of progress; never prompts").option("--dry-run", "Show what would be created or reused; change, build and push nothing").action(async (options) => {
13047
+ const { deployCli } = await import("./cli-PkVF28LM.mjs");
13041
13048
  const globalOptions = program.opts();
13042
13049
  const code = await deployCli({
13043
13050
  cwd: resolve(globalOptions.cwd ?? process.cwd()),
13044
- provider: options.provider,
13051
+ ...options.target ? { target: options.target } : {},
13052
+ ...options.provider ? { provider: options.provider } : {},
13045
13053
  stage: options.stage,
13046
13054
  ...options.tag ? { tag: options.tag } : {},
13047
13055
  ...options.json ? { json: true } : {},
@@ -13069,7 +13077,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
13069
13077
  try {
13070
13078
  const globalOptions = program.opts();
13071
13079
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
13072
- const { deployGithubCommand } = await import("./github-DmCj2u95.mjs");
13080
+ const { deployGithubCommand } = await import("./github-ciwbIwVa.mjs");
13073
13081
  await deployGithubCommand(options);
13074
13082
  } catch (error) {
13075
13083
  console.error(formatError(error));