@geekmidas/cli 10.0.0-alpha.66 → 10.0.0-alpha.67

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 (114) hide show
  1. package/README.md +110 -178
  2. package/dist/{HostingerProvider-CY_VpVud.mjs → HostingerProvider-D85ayzTi.mjs} +2 -2
  3. package/dist/{HostingerProvider-CY_VpVud.mjs.map → HostingerProvider-D85ayzTi.mjs.map} +1 -1
  4. package/dist/{HostingerProvider-BznqRC2S.cjs → HostingerProvider-dxkwynSs.cjs} +2 -2
  5. package/dist/{HostingerProvider-BznqRC2S.cjs.map → HostingerProvider-dxkwynSs.cjs.map} +1 -1
  6. package/dist/{LegacyStateStore-BFcTT2QL.cjs → LegacyStateStore-BZiO9-Lw.cjs} +2 -2
  7. package/dist/{LegacyStateStore-BFcTT2QL.cjs.map → LegacyStateStore-BZiO9-Lw.cjs.map} +1 -1
  8. package/dist/{LegacyStateStore-CFheFo62.mjs → LegacyStateStore-C39UKwmf.mjs} +2 -2
  9. package/dist/{LegacyStateStore-CFheFo62.mjs.map → LegacyStateStore-C39UKwmf.mjs.map} +1 -1
  10. package/dist/{LocalStateStore-BVUexSvu.cjs → LocalStateStore-DHVsZLyF.cjs} +2 -2
  11. package/dist/{LocalStateStore-BVUexSvu.cjs.map → LocalStateStore-DHVsZLyF.cjs.map} +1 -1
  12. package/dist/{LocalStateStore-Bm3x9oOg.mjs → LocalStateStore-Dk3Wbvzk.mjs} +2 -2
  13. package/dist/{LocalStateStore-Bm3x9oOg.mjs.map → LocalStateStore-Dk3Wbvzk.mjs.map} +1 -1
  14. package/dist/{S3StateStore-CoXBhILd.cjs → S3StateStore--4tYVMAL.cjs} +2 -2
  15. package/dist/{S3StateStore-CoXBhILd.cjs.map → S3StateStore--4tYVMAL.cjs.map} +1 -1
  16. package/dist/{S3StateStore-BFHuctWM.mjs → S3StateStore-B_ZF9eHt.mjs} +2 -2
  17. package/dist/{S3StateStore-BFHuctWM.mjs.map → S3StateStore-B_ZF9eHt.mjs.map} +1 -1
  18. package/dist/{SSMStateStore-BqCA9TP2.cjs → SSMStateStore-ACZ8hRvZ.cjs} +2 -2
  19. package/dist/{SSMStateStore-BqCA9TP2.cjs.map → SSMStateStore-ACZ8hRvZ.cjs.map} +1 -1
  20. package/dist/{SSMStateStore-C1kvHScY.mjs → SSMStateStore-DjPuKqrm.mjs} +2 -2
  21. package/dist/{SSMStateStore-C1kvHScY.mjs.map → SSMStateStore-DjPuKqrm.mjs.map} +1 -1
  22. package/dist/{bundler-Dvaiud0h.mjs → bundler-Bq3HaLOZ.mjs} +20 -5
  23. package/dist/bundler-Bq3HaLOZ.mjs.map +1 -0
  24. package/dist/{bundler-orRqUJNZ.cjs → bundler-pyLj-gS0.cjs} +20 -5
  25. package/dist/bundler-pyLj-gS0.cjs.map +1 -0
  26. package/dist/{cli-CfHm0AO7.mjs → cli-C2Tjbn27.mjs} +4 -4
  27. package/dist/{cli-CfHm0AO7.mjs.map → cli-C2Tjbn27.mjs.map} +1 -1
  28. package/dist/{cli-D1JkkOwg.cjs → cli-DR7B2_fX.cjs} +4 -4
  29. package/dist/{cli-D1JkkOwg.cjs.map → cli-DR7B2_fX.cjs.map} +1 -1
  30. package/dist/{compose-jrLy7KGO.cjs → compose-5oNHAKNT.cjs} +135 -110
  31. package/dist/compose-5oNHAKNT.cjs.map +1 -0
  32. package/dist/{compose-CNQL8BnO.mjs → compose-BjToENzG.mjs} +128 -103
  33. package/dist/compose-BjToENzG.mjs.map +1 -0
  34. package/dist/{credentials-Bzbg23n8.cjs → credentials-BVs7mrtw.cjs} +239 -3
  35. package/dist/credentials-BVs7mrtw.cjs.map +1 -0
  36. package/dist/{credentials-Dq1MnWQf.mjs → credentials-pAtB70k3.mjs} +223 -5
  37. package/dist/credentials-pAtB70k3.mjs.map +1 -0
  38. package/dist/deploy/public.cjs +17 -17
  39. package/dist/deploy/public.cjs.map +1 -1
  40. package/dist/deploy/public.mjs +9 -9
  41. package/dist/{deploy-B7aJi_Ah.cjs → deploy-BucRfbvX.cjs} +9 -9
  42. package/dist/{deploy-B7aJi_Ah.cjs.map → deploy-BucRfbvX.cjs.map} +1 -1
  43. package/dist/{deploy-DWn7YfIc.mjs → deploy-DRAwTG72.mjs} +6 -6
  44. package/dist/{deploy-DWn7YfIc.mjs.map → deploy-DRAwTG72.mjs.map} +1 -1
  45. package/dist/{dokploy-DalwLML5.mjs → dokploy-DIt1IZl1.mjs} +2 -2
  46. package/dist/{dokploy-DalwLML5.mjs.map → dokploy-DIt1IZl1.mjs.map} +1 -1
  47. package/dist/{dokploy-B4LcYG1E.cjs → dokploy-m345Zx02.cjs} +2 -2
  48. package/dist/{dokploy-B4LcYG1E.cjs.map → dokploy-m345Zx02.cjs.map} +1 -1
  49. package/dist/{encryption-CPfENwWO.mjs → encryption-Ccbahik7.mjs} +2 -2
  50. package/dist/{encryption-CPfENwWO.mjs.map → encryption-Ccbahik7.mjs.map} +1 -1
  51. package/dist/{encryption-3KlGS1sl.cjs → encryption-rZ3BghXy.cjs} +2 -2
  52. package/dist/{encryption-3KlGS1sl.cjs.map → encryption-rZ3BghXy.cjs.map} +1 -1
  53. package/dist/{engine-DR6KurWX.cjs → engine-Cx_dvx9q.cjs} +9 -187
  54. package/dist/engine-Cx_dvx9q.cjs.map +1 -0
  55. package/dist/{engine-CunvOG3s.mjs → engine-Gs0abjuj.mjs} +5 -183
  56. package/dist/engine-Gs0abjuj.mjs.map +1 -0
  57. package/dist/{github-MXA9v7Ge.mjs → github-CJANTYqi.mjs} +2 -2
  58. package/dist/{github-MXA9v7Ge.mjs.map → github-CJANTYqi.mjs.map} +1 -1
  59. package/dist/{github-BJ5gh9bw.cjs → github-CrcGFkfD.cjs} +2 -2
  60. package/dist/{github-BJ5gh9bw.cjs.map → github-CrcGFkfD.cjs.map} +1 -1
  61. package/dist/index.cjs +51 -65
  62. package/dist/index.cjs.map +1 -1
  63. package/dist/index.mjs +47 -61
  64. package/dist/index.mjs.map +1 -1
  65. package/dist/{migrate-CF4J4GQS.cjs → migrate-CQdSpttI.cjs} +2 -2
  66. package/dist/{migrate-CF4J4GQS.cjs.map → migrate-CQdSpttI.cjs.map} +1 -1
  67. package/dist/{migrate-BJBcm4sG.mjs → migrate-DCVo5gLS.mjs} +2 -2
  68. package/dist/{migrate-BJBcm4sG.mjs.map → migrate-DCVo5gLS.mjs.map} +1 -1
  69. package/dist/{resolve-CVmch0wI.cjs → resolve-BexmDcsN.cjs} +4 -4
  70. package/dist/{resolve-CVmch0wI.cjs.map → resolve-BexmDcsN.cjs.map} +1 -1
  71. package/dist/{resolve-Db0tNlrW.mjs → resolve-DhZgtvZe.mjs} +4 -4
  72. package/dist/{resolve-Db0tNlrW.mjs.map → resolve-DhZgtvZe.mjs.map} +1 -1
  73. package/dist/{rollback-DxJK84hy.cjs → rollback-BnY7KuG_.cjs} +6 -7
  74. package/dist/{rollback-DxJK84hy.cjs.map → rollback-BnY7KuG_.cjs.map} +1 -1
  75. package/dist/{rollback-DvAo4OKS.mjs → rollback-m4Yeym5x.mjs} +5 -6
  76. package/dist/{rollback-DvAo4OKS.mjs.map → rollback-m4Yeym5x.mjs.map} +1 -1
  77. package/dist/run-BJLIerMM.mjs +133 -0
  78. package/dist/run-BJLIerMM.mjs.map +1 -0
  79. package/dist/run-fVZ-rLnc.cjs +174 -0
  80. package/dist/run-fVZ-rLnc.cjs.map +1 -0
  81. package/dist/{sniffer-BAQhLEsI.mjs → sniffer-BdFeLSmA.mjs} +8 -60
  82. package/dist/sniffer-BdFeLSmA.mjs.map +1 -0
  83. package/dist/{sniffer-5xmrkh2a.cjs → sniffer-D66HIvi9.cjs} +7 -77
  84. package/dist/{sniffer-5xmrkh2a.cjs.map → sniffer-D66HIvi9.cjs.map} +1 -1
  85. package/dist/{sst-B2HbrDR3.mjs → sst-DRi3H5TB.mjs} +3 -3
  86. package/dist/{sst-B2HbrDR3.mjs.map → sst-DRi3H5TB.mjs.map} +1 -1
  87. package/dist/{sst-DcfsVH6x.cjs → sst-hBrKouBy.cjs} +5 -5
  88. package/dist/{sst-DcfsVH6x.cjs.map → sst-hBrKouBy.cjs.map} +1 -1
  89. package/dist/{state-Y6ATakMX.cjs → state-DgmM4EKq.cjs} +3588 -3415
  90. package/dist/state-DgmM4EKq.cjs.map +1 -0
  91. package/dist/{state-uuYqnRVO.mjs → state-DkUStoqJ.mjs} +3528 -3385
  92. package/dist/state-DkUStoqJ.mjs.map +1 -0
  93. package/dist/target/public.cjs +1 -1
  94. package/dist/target/public.mjs +1 -1
  95. package/dist/{terminal-DUhcZ1ND.mjs → terminal-C3cv-OQu.mjs} +2 -2
  96. package/dist/{terminal-DUhcZ1ND.mjs.map → terminal-C3cv-OQu.mjs.map} +1 -1
  97. package/dist/{terminal-CHy_MdjG.cjs → terminal-DjzgLu6m.cjs} +2 -2
  98. package/dist/{terminal-CHy_MdjG.cjs.map → terminal-DjzgLu6m.cjs.map} +1 -1
  99. package/package.json +13 -13
  100. package/dist/bundler-Dvaiud0h.mjs.map +0 -1
  101. package/dist/bundler-orRqUJNZ.cjs.map +0 -1
  102. package/dist/compose-CNQL8BnO.mjs.map +0 -1
  103. package/dist/compose-jrLy7KGO.cjs.map +0 -1
  104. package/dist/credentials-Bzbg23n8.cjs.map +0 -1
  105. package/dist/credentials-Dq1MnWQf.mjs.map +0 -1
  106. package/dist/engine-CunvOG3s.mjs.map +0 -1
  107. package/dist/engine-DR6KurWX.cjs.map +0 -1
  108. package/dist/local-BdH4XN0E.cjs +0 -409
  109. package/dist/local-BdH4XN0E.cjs.map +0 -1
  110. package/dist/local-CWR4Y_kW.mjs +0 -350
  111. package/dist/local-CWR4Y_kW.mjs.map +0 -1
  112. package/dist/sniffer-BAQhLEsI.mjs.map +0 -1
  113. package/dist/state-Y6ATakMX.cjs.map +0 -1
  114. package/dist/state-uuYqnRVO.mjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,21 +1,21 @@
1
1
  #!/usr/bin/env -S npx tsx
2
2
  import { n as __require, t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
3
- import { i as CommandFailed, o as DEFAULT_TIMEOUT_MS, t as LocalSandbox } from "./local-CWR4Y_kW.mjs";
4
- import { a as getDokployCredentials, d as storeHostingerToken, i as getCredentialsPath, l as removeDokployCredentials, o as getDokployRegistryId, s as getDokployToken, u as storeDokployCredentials } from "./credentials-Dq1MnWQf.mjs";
3
+ import { r as DEFAULT_TIMEOUT_MS, t as CommandFailed } from "./run-BJLIerMM.mjs";
4
+ import { c as getDokployCredentials, f as removeDokployCredentials, i as LocalSandbox, l as getDokployRegistryId, m as storeHostingerToken, p as storeDokployCredentials, s as getCredentialsPath, u as getDokployToken } from "./credentials-pAtB70k3.mjs";
5
5
  import { l as withOwningTsconfigJsx, r as discover, u as ConstructGenerator } from "./discover-BFoJWKGD.mjs";
6
6
  import { t as appKey } from "./derive-B4vDpzgP.mjs";
7
7
  import { A as deployedProblems, D as InvalidStages, O as TEST_STAGE, c as getAppGkmConfig, j as stageProblems, n as allConstructGlobs, s as getAppBuildOrder } from "./workspace-Be6uBhlF.mjs";
8
8
  import { ConfigNotFound, NotABackendApp, NotInAnApp, loadAppConfig, loadConfig, loadWorkspaceConfig, loadWorkspaceSettings, parseModuleConfig } from "./config.mjs";
9
- import { $ as describeServices, A as reconcileWorkspace, At as withCustomSecret, D as backendsOf$1, Dt as maskPassword, E as FAKE_ENV, F as postgresDatabaseNames, J as cacheBackendFor, L as quoteIdentifier, M as LOCAL_CA_PATH, N as forgetState, O as constructGlobs, X as providerOf, at as findAvailablePort, ct as loadSecretsForApp, dt as secretsStoreFor, et as fakeKey, gt as projectKey, it as createEntryWrapper, k as derivedContainers, kt as toEmbeddableSecrets, lt as prepareEntryCredentials, mt as getKeyPath, nt as primaryPortKey, ot as isPortAvailable, pt as FileSecretsStore, rt as createCredentialsPreload, st as loadEnvFiles, v as dockerCommand, yt as deployIdentity, z as pgClient } from "./state-uuYqnRVO.mjs";
9
+ import { $ as cacheBackendFor, A as derivedContainers, B as pgClient, D as FAKE_ENV, E as keyFingerprint, Ft as withCustomSecret, I as postgresDatabaseNames, Mt as maskPassword, N as LOCAL_CA_PATH, O as backendsOf$1, P as forgetState, Pt as toEmbeddableSecrets, R as quoteIdentifier, at as fakeKey, ct as createCredentialsPreload, dt as isPortAvailable, ft as loadEnvFiles, gt as secretsStoreFor, it as describeServices, j as reconcileWorkspace, k as constructGlobs, lt as createEntryWrapper, mt as prepareEntryCredentials, pt as loadSecretsForApp, st as primaryPortKey, tt as providerOf, ut as findAvailablePort, vt as FileSecretsStore, wt as deployIdentity, xt as projectKey, y as dockerCommand, yt as getKeyPath } from "./state-DkUStoqJ.mjs";
10
10
  import { i as telemetryFor, n as EndpointGenerator, r as runtimeFor } from "./OpenApiTsGenerator-BmUAcR7d.mjs";
11
- import { g as createStateStore, n as sniffAppEnvironment, o as DokployApi, x as keyFingerprint } from "./sniffer-BAQhLEsI.mjs";
11
+ import { g as createStateStore, n as sniffAppEnvironment, o as DokployApi } from "./sniffer-BdFeLSmA.mjs";
12
12
  import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
13
13
  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";
14
14
  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-2s3-CndS.mjs";
15
15
  import { n as withCompute, r as withRoutes, t as manifestModule } from "./emit-C1e8qD08.mjs";
16
- import { t as deploy$1 } from "./deploy-DWn7YfIc.mjs";
17
- import { a as dockerCompose, i as stackDir, r as composeProject, t as composeTarget } from "./compose-CNQL8BnO.mjs";
18
- import { t as LocalStateStore } from "./LocalStateStore-Bm3x9oOg.mjs";
16
+ import { t as deploy$1 } from "./deploy-DRAwTG72.mjs";
17
+ import { a as dockerCompose, i as stackDir, r as composeProject, t as composeTarget } from "./compose-BjToENzG.mjs";
18
+ import { t as LocalStateStore } from "./LocalStateStore-Dk3Wbvzk.mjs";
19
19
  import { a as getExecCommand, c as validateProjectName, i as findWorkspaceRoot, n as detectPackageManager$1, o as getInstallCommand, r as findWorkspacePackages, s as getRunCommand, t as checkDirectoryExists } from "./utils-D_fxUqvU.mjs";
20
20
  import { createRequire } from "node:module";
21
21
  import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
@@ -46,7 +46,7 @@ import { Function } from "@geekmidas/constructs/functions";
46
46
  import { Queue } from "@geekmidas/constructs/queue";
47
47
  import { Topic } from "@geekmidas/constructs/topic";
48
48
  //#region package.json
49
- var version = "10.0.0-alpha.66";
49
+ var version = "10.0.0-alpha.67";
50
50
  //#endregion
51
51
  //#region src/prompt.ts
52
52
  /**
@@ -129,7 +129,7 @@ const logger$8 = console;
129
129
  * Validate Dokploy token by making a test API call
130
130
  */
131
131
  async function validateDokployToken(endpoint, token) {
132
- const { DokployApi } = await import("./sniffer-BAQhLEsI.mjs").then((n) => n.c);
132
+ const { DokployApi } = await import("./sniffer-BdFeLSmA.mjs").then((n) => n.c);
133
133
  return new DokployApi({
134
134
  baseUrl: endpoint,
135
135
  token
@@ -2035,9 +2035,9 @@ async function workspaceDevCommand(configured, options) {
2035
2035
  for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
2036
2036
  logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
2037
2037
  if (options.migrate || options.seed) {
2038
- const { prepareDevDatabases } = await import("./migrate-BJBcm4sG.mjs");
2038
+ const { prepareDevDatabases } = await import("./migrate-DCVo5gLS.mjs");
2039
2039
  await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
2040
- } else await import("./migrate-BJBcm4sG.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
2040
+ } else await import("./migrate-DCVo5gLS.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
2041
2041
  logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
2042
2042
  });
2043
2043
  const appUrls = {};
@@ -3417,7 +3417,7 @@ async function buildApp(input) {
3417
3417
  if (production?.bundle && !input.skipBundle) {
3418
3418
  const outputDir = join(appRoot, ".gkm", "server");
3419
3419
  const entryPoint = await writeSurfaceServer(outputDir, production);
3420
- const { bundleServer } = await import("./bundler-Dvaiud0h.mjs");
3420
+ const { bundleServer } = await import("./bundler-Bq3HaLOZ.mjs");
3421
3421
  await bundleServer({
3422
3422
  entryPoint,
3423
3423
  outputDir: join(outputDir, "dist"),
@@ -3555,7 +3555,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
3555
3555
  let masterKey;
3556
3556
  if (context.production?.bundle && !skipBundle) {
3557
3557
  logger$4.log(`\n📦 Bundling production server...`);
3558
- const { bundleServer } = await import("./bundler-Dvaiud0h.mjs");
3558
+ const { bundleServer } = await import("./bundler-Bq3HaLOZ.mjs");
3559
3559
  const allConstructs = [
3560
3560
  ...endpoints.map((e) => e.construct),
3561
3561
  ...functions.map((f) => f.construct),
@@ -5250,25 +5250,25 @@ function loadPackageJson() {
5250
5250
  * Run: pnpm --filter @geekmidas/cli sync-versions
5251
5251
  */
5252
5252
  const GEEKMIDAS_VERSIONS = {
5253
- "@geekmidas/audit": "~10.0.0-alpha.66",
5254
- "@geekmidas/auth": "~10.0.0-alpha.66",
5255
- "@geekmidas/cache": "~10.0.0-alpha.66",
5256
- "@geekmidas/client": "~10.0.0-alpha.66",
5257
- "@geekmidas/cloud": "~10.0.0-alpha.66",
5258
- "@geekmidas/constructs": "~10.0.0-alpha.66",
5259
- "@geekmidas/db": "~10.0.0-alpha.66",
5260
- "@geekmidas/emailkit": "~10.0.0-alpha.66",
5261
- "@geekmidas/envkit": "~10.0.0-alpha.66",
5262
- "@geekmidas/errors": "~10.0.0-alpha.66",
5263
- "@geekmidas/events": "~10.0.0-alpha.66",
5264
- "@geekmidas/logger": "~10.0.0-alpha.66",
5265
- "@geekmidas/manifest": "~10.0.0-alpha.66",
5266
- "@geekmidas/rate-limit": "~10.0.0-alpha.66",
5267
- "@geekmidas/schema": "~10.0.0-alpha.66",
5268
- "@geekmidas/services": "~10.0.0-alpha.66",
5269
- "@geekmidas/storage": "~10.0.0-alpha.66",
5270
- "@geekmidas/telescope": "~10.0.0-alpha.66",
5271
- "@geekmidas/testkit": "~10.0.0-alpha.66",
5253
+ "@geekmidas/audit": "~10.0.0-alpha.67",
5254
+ "@geekmidas/auth": "~10.0.0-alpha.67",
5255
+ "@geekmidas/cache": "~10.0.0-alpha.67",
5256
+ "@geekmidas/client": "~10.0.0-alpha.67",
5257
+ "@geekmidas/cloud": "~10.0.0-alpha.67",
5258
+ "@geekmidas/constructs": "~10.0.0-alpha.67",
5259
+ "@geekmidas/db": "~10.0.0-alpha.67",
5260
+ "@geekmidas/emailkit": "~10.0.0-alpha.67",
5261
+ "@geekmidas/envkit": "~10.0.0-alpha.67",
5262
+ "@geekmidas/errors": "~10.0.0-alpha.67",
5263
+ "@geekmidas/events": "~10.0.0-alpha.67",
5264
+ "@geekmidas/logger": "~10.0.0-alpha.67",
5265
+ "@geekmidas/manifest": "~10.0.0-alpha.67",
5266
+ "@geekmidas/rate-limit": "~10.0.0-alpha.67",
5267
+ "@geekmidas/schema": "~10.0.0-alpha.67",
5268
+ "@geekmidas/services": "~10.0.0-alpha.67",
5269
+ "@geekmidas/storage": "~10.0.0-alpha.67",
5270
+ "@geekmidas/telescope": "~10.0.0-alpha.67",
5271
+ "@geekmidas/testkit": "~10.0.0-alpha.67",
5272
5272
  "@geekmidas/cli": `~${loadPackageJson().version}`
5273
5273
  };
5274
5274
  //#endregion
@@ -11031,7 +11031,7 @@ function testDatabases(reconciled) {
11031
11031
  * starts without the reference data the app needs.
11032
11032
  */
11033
11033
  async function migrateTestStage(workspace, env) {
11034
- const { migrateAndSeed } = await import("./migrate-BJBcm4sG.mjs");
11034
+ const { migrateAndSeed } = await import("./migrate-DCVo5gLS.mjs");
11035
11035
  const { discover } = await import("./discover-BFoJWKGD.mjs").then((n) => n.i);
11036
11036
  const sources = {};
11037
11037
  const manifest = await discover({
@@ -11462,7 +11462,7 @@ program.command("migrate").description("Apply each database construct's migratio
11462
11462
  try {
11463
11463
  const globalOptions = program.opts();
11464
11464
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
11465
- const { migrateCommand } = await import("./migrate-BJBcm4sG.mjs");
11465
+ const { migrateCommand } = await import("./migrate-DCVo5gLS.mjs");
11466
11466
  await migrateCommand({
11467
11467
  ...options,
11468
11468
  ...construct ? { construct } : {}
@@ -11476,7 +11476,7 @@ program.command("seed").description("Migrate, then run each database construct's
11476
11476
  try {
11477
11477
  const globalOptions = program.opts();
11478
11478
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
11479
- const { seedCommand } = await import("./migrate-BJBcm4sG.mjs");
11479
+ const { seedCommand } = await import("./migrate-DCVo5gLS.mjs");
11480
11480
  await seedCommand({
11481
11481
  ...options,
11482
11482
  ...construct ? { construct } : {}
@@ -11490,7 +11490,7 @@ program.command("migration").description("Write a construct's next migration: an
11490
11490
  try {
11491
11491
  const globalOptions = program.opts();
11492
11492
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
11493
- const { migrationCommand } = await import("./migrate-BJBcm4sG.mjs");
11493
+ const { migrationCommand } = await import("./migrate-DCVo5gLS.mjs");
11494
11494
  await migrationCommand({
11495
11495
  construct,
11496
11496
  ...name ? { name } : {}
@@ -11525,7 +11525,7 @@ program.command("openapi").description("Generate OpenAPI specification from endp
11525
11525
  process.exit(1);
11526
11526
  }
11527
11527
  });
11528
- program.command("docker").description("Generate Docker deployment files").option("--build", "Build Docker image after generating files").option("--push", "Push image to registry after building").option("--tag <tag>", "Image tag", "latest").option("--registry <registry>", "Container registry URL").option("--slim", "Use slim Dockerfile (assumes pre-built bundle exists)").option("--turbo", "Use turbo prune for monorepo optimization").option("--turbo-package <name>", "Package name for turbo prune").action(async (options) => {
11528
+ program.command("docker").description("Generate Docker deployment files").option("--build", "Build Docker image after generating files").option("--push", "Push image to registry after building").option("--tag <tag>", "Image tag", "latest").option("--registry <registry>", "Container registry URL").action(async (options) => {
11529
11529
  try {
11530
11530
  const globalOptions = program.opts();
11531
11531
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
@@ -11545,30 +11545,16 @@ program.command("compose").description("Run the workspace's APIs and sites for a
11545
11545
  process.exit(1);
11546
11546
  }
11547
11547
  });
11548
- program.command("prepack").description("Generate Docker files for production deployment").option("--build", "Build Docker image after generating files").option("--push", "Push image to registry after building").option("--tag <tag>", "Image tag", "latest").option("--registry <registry>", "Container registry URL").option("--slim", "Build locally first, then use slim Dockerfile").option("--skip-bundle", "Skip bundling step (only with --slim)").option("--turbo", "Use turbo prune for monorepo optimization").option("--turbo-package <name>", "Package name for turbo prune").action(async (options) => {
11548
+ program.command("prepack").description("Generate Docker files for production deployment").option("--build", "Build Docker image after generating files").option("--push", "Push image to registry after building").option("--tag <tag>", "Image tag", "latest").option("--registry <registry>", "Container registry URL").action(async (options) => {
11549
11549
  try {
11550
11550
  const globalOptions = program.opts();
11551
11551
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
11552
- if (options.slim) await buildCommand({
11553
- provider: "server",
11554
- production: true,
11555
- skipBundle: options.skipBundle
11556
- });
11557
11552
  await dockerCommand({
11558
11553
  build: options.build,
11559
11554
  push: options.push,
11560
11555
  tag: options.tag,
11561
- registry: options.registry,
11562
- slim: options.slim,
11563
- turbo: options.turbo,
11564
- turboPackage: options.turboPackage
11556
+ registry: options.registry
11565
11557
  });
11566
- if (options.slim) {}
11567
- if (options.build) {
11568
- const tag = options.tag ?? "latest";
11569
- const registry = options.registry;
11570
- registry ? `${registry}${tag}` : `${tag}`;
11571
- }
11572
11558
  } catch (error) {
11573
11559
  console.error(formatError(error));
11574
11560
  process.exit(1);
@@ -11598,7 +11584,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
11598
11584
  try {
11599
11585
  const globalOptions = program.opts();
11600
11586
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
11601
- const { encryptionRotateCommand } = await import("./encryption-CPfENwWO.mjs");
11587
+ const { encryptionRotateCommand } = await import("./encryption-Ccbahik7.mjs");
11602
11588
  await encryptionRotateCommand(construct, options);
11603
11589
  } catch (error) {
11604
11590
  console.error(formatError(error));
@@ -11609,7 +11595,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
11609
11595
  try {
11610
11596
  const globalOptions = program.opts();
11611
11597
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
11612
- const { encryptionRetireCommand } = await import("./encryption-CPfENwWO.mjs");
11598
+ const { encryptionRetireCommand } = await import("./encryption-Ccbahik7.mjs");
11613
11599
  await encryptionRetireCommand(construct, key, options);
11614
11600
  } catch (error) {
11615
11601
  console.error(formatError(error));
@@ -11652,7 +11638,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
11652
11638
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
11653
11639
  const { loadWorkspaceConfig } = await import("./config.mjs");
11654
11640
  const { reconcileMissingSecrets } = await import("./reconcile--I7V4Klj.mjs");
11655
- const { secretsStoreFor } = await import("./state-uuYqnRVO.mjs").then((n) => n.ft);
11641
+ const { secretsStoreFor } = await import("./state-DkUStoqJ.mjs").then((n) => n._t);
11656
11642
  const { workspace } = await loadWorkspaceConfig();
11657
11643
  const stage = options.stage ?? workspace.stages.local;
11658
11644
  const store = await secretsStoreFor(workspace, stage);
@@ -11661,7 +11647,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
11661
11647
  console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
11662
11648
  process.exit(1);
11663
11649
  }
11664
- const { derivedContainers } = await import("./state-uuYqnRVO.mjs").then((n) => n.j);
11650
+ const { derivedContainers } = await import("./state-DkUStoqJ.mjs").then((n) => n.M);
11665
11651
  const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
11666
11652
  if (!result) {
11667
11653
  console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
@@ -11676,7 +11662,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
11676
11662
  }
11677
11663
  });
11678
11664
  program.command("deploy").description("Deploy a stage through its target").option("--target <name>", "Deploy target: dokploy, compose, sst, 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; compose: the commit). Compose pulls a given tag").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").option("--atomic", "If the release fails, roll back every app it released, not only the failed ones").action(async (options) => {
11679
- const { deployCli } = await import("./cli-CfHm0AO7.mjs");
11665
+ const { deployCli } = await import("./cli-C2Tjbn27.mjs");
11680
11666
  const globalOptions = program.opts();
11681
11667
  const code = await deployCli({
11682
11668
  cwd: resolve(globalOptions.cwd ?? process.cwd()),
@@ -11692,8 +11678,8 @@ program.command("deploy").description("Deploy a stage through its target").optio
11692
11678
  });
11693
11679
  program.command("deploy:rollback").description("Put a stage's app back on its previous release (Dokploy): one app with --app, every app with --atomic").requiredOption("--stage <stage>", "A deployed stage").option("--app <app>", "The app to roll back").option("--atomic", "Roll back every app that has an earlier release").action(async (options) => {
11694
11680
  try {
11695
- const { rollbackStage } = await import("./rollback-DvAo4OKS.mjs").then((n) => n.a);
11696
- const { terminalCredentials } = await import("./terminal-DUhcZ1ND.mjs");
11681
+ const { rollbackStage } = await import("./rollback-m4Yeym5x.mjs").then((n) => n.a);
11682
+ const { terminalCredentials } = await import("./terminal-C3cv-OQu.mjs");
11697
11683
  const globalOptions = program.opts();
11698
11684
  await rollbackStage({
11699
11685
  cwd: resolve(globalOptions.cwd ?? process.cwd()),
@@ -11728,7 +11714,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
11728
11714
  try {
11729
11715
  const globalOptions = program.opts();
11730
11716
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
11731
- const { deployGithubCommand } = await import("./github-MXA9v7Ge.mjs");
11717
+ const { deployGithubCommand } = await import("./github-CJANTYqi.mjs");
11732
11718
  await deployGithubCommand(options);
11733
11719
  } catch (error) {
11734
11720
  console.error(formatError(error));