@geekmidas/cli 10.0.0-alpha.63 → 10.0.0-alpha.64
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/dist/{HostingerProvider-mJ7YruxH.cjs → HostingerProvider-Bx2lHHvu.cjs} +3 -3
- package/dist/{HostingerProvider-mJ7YruxH.cjs.map → HostingerProvider-Bx2lHHvu.cjs.map} +1 -1
- package/dist/{HostingerProvider-DBBwpDjn.mjs → HostingerProvider-Cd4aS5Kj.mjs} +2 -2
- package/dist/{HostingerProvider-DBBwpDjn.mjs.map → HostingerProvider-Cd4aS5Kj.mjs.map} +1 -1
- package/dist/{LegacyStateStore-CP7SZwTP.cjs → LegacyStateStore-C2abV49N.cjs} +2 -2
- package/dist/{LegacyStateStore-CP7SZwTP.cjs.map → LegacyStateStore-C2abV49N.cjs.map} +1 -1
- package/dist/{LegacyStateStore-Q3GmKOdw.mjs → LegacyStateStore-DIgkGaUP.mjs} +2 -2
- package/dist/{LegacyStateStore-Q3GmKOdw.mjs.map → LegacyStateStore-DIgkGaUP.mjs.map} +1 -1
- package/dist/{LocalStateStore-BGIXcrvX.mjs → LocalStateStore-Cy1ZBW7U.mjs} +2 -2
- package/dist/{LocalStateStore-BGIXcrvX.mjs.map → LocalStateStore-Cy1ZBW7U.mjs.map} +1 -1
- package/dist/{LocalStateStore-sS8mvLeq.cjs → LocalStateStore-DiJqKyPy.cjs} +2 -2
- package/dist/{LocalStateStore-sS8mvLeq.cjs.map → LocalStateStore-DiJqKyPy.cjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-CjHWFRDd.cjs → OpenApiTsGenerator-BWuDRHe9.cjs} +2 -2
- package/dist/{OpenApiTsGenerator-CjHWFRDd.cjs.map → OpenApiTsGenerator-BWuDRHe9.cjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-CnAwhGxi.mjs → OpenApiTsGenerator-C6v-IeHt.mjs} +2 -2
- package/dist/{OpenApiTsGenerator-CnAwhGxi.mjs.map → OpenApiTsGenerator-C6v-IeHt.mjs.map} +1 -1
- package/dist/{S3StateStore-D7l_lWJ3.mjs → S3StateStore-D3x6ivBL.mjs} +2 -2
- package/dist/{S3StateStore-D7l_lWJ3.mjs.map → S3StateStore-D3x6ivBL.mjs.map} +1 -1
- package/dist/{S3StateStore-6jqITH2F.cjs → S3StateStore-Ds0V1Lgm.cjs} +2 -2
- package/dist/{S3StateStore-6jqITH2F.cjs.map → S3StateStore-Ds0V1Lgm.cjs.map} +1 -1
- package/dist/{SSMStateStore-B__F7IJa.cjs → SSMStateStore-CLipvx47.cjs} +2 -2
- package/dist/{SSMStateStore-B__F7IJa.cjs.map → SSMStateStore-CLipvx47.cjs.map} +1 -1
- package/dist/{SSMStateStore-CAQDVpoc.mjs → SSMStateStore-DfF174xQ.mjs} +2 -2
- package/dist/{SSMStateStore-CAQDVpoc.mjs.map → SSMStateStore-DfF174xQ.mjs.map} +1 -1
- package/dist/{bundler-DLfOn0ls.cjs → bundler-C8uJf324.cjs} +3 -3
- package/dist/{bundler-DLfOn0ls.cjs.map → bundler-C8uJf324.cjs.map} +1 -1
- package/dist/{bundler-DyWI41Iy.mjs → bundler-DYgm9xsd.mjs} +3 -3
- package/dist/{bundler-DyWI41Iy.mjs.map → bundler-DYgm9xsd.mjs.map} +1 -1
- package/dist/{cli-PkVF28LM.mjs → cli-Bogz-zEj.mjs} +5 -4
- package/dist/{cli-PkVF28LM.mjs.map → cli-Bogz-zEj.mjs.map} +1 -1
- package/dist/{cli-D-ZM-X2s.cjs → cli-D3jofJ6j.cjs} +7 -6
- package/dist/{cli-D-ZM-X2s.cjs.map → cli-D3jofJ6j.cjs.map} +1 -1
- package/dist/{config-CemHVcIr.d.cts → config-Be-4_I6H.d.cts} +3 -3
- package/dist/{config-C2BUosLm.d.mts.map → config-Be-4_I6H.d.cts.map} +1 -1
- package/dist/{config-C2BUosLm.d.mts → config-DqNRiQOp.d.mts} +3 -3
- package/dist/{config-CemHVcIr.d.cts.map → config-DqNRiQOp.d.mts.map} +1 -1
- package/dist/config.cjs +416 -17
- package/dist/config.cjs.map +1 -0
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +401 -2
- package/dist/config.mjs.map +1 -0
- package/dist/credentials-B70vmLcm.cjs +125 -0
- package/dist/credentials-B70vmLcm.cjs.map +1 -0
- package/dist/credentials-s0wMeZBU.mjs +108 -0
- package/dist/credentials-s0wMeZBU.mjs.map +1 -0
- package/dist/{define-CHBIEc5j.mjs → define-CYs0PEfZ.mjs} +2 -3
- package/dist/define-CYs0PEfZ.mjs.map +1 -0
- package/dist/{define-Cv_QvDrg.cjs → define-zUsP72ym.cjs} +2 -3
- package/dist/define-zUsP72ym.cjs.map +1 -0
- package/dist/deploy/public.cjs +32 -26
- package/dist/deploy/public.cjs.map +1 -1
- package/dist/deploy/public.d.cts +40 -4
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts +40 -4
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +15 -12
- package/dist/deploy/public.mjs.map +1 -1
- package/dist/{deploy-ABBI0lf1.cjs → deploy-55rJkdKz.cjs} +17 -14
- package/dist/{deploy-ABBI0lf1.cjs.map → deploy-55rJkdKz.cjs.map} +1 -1
- package/dist/{deploy-CGW-QY9D.mjs → deploy-Dc2LBJaK.mjs} +8 -7
- package/dist/{deploy-CGW-QY9D.mjs.map → deploy-Dc2LBJaK.mjs.map} +1 -1
- package/dist/{deploy-CG8bfFij.mjs → deploy-ZRXIPp1c.mjs} +11 -8
- package/dist/{deploy-CG8bfFij.mjs.map → deploy-ZRXIPp1c.mjs.map} +1 -1
- package/dist/{deploy-BiMrP9i7.cjs → deploy-yUcR2OlW.cjs} +12 -11
- package/dist/{deploy-BiMrP9i7.cjs.map → deploy-yUcR2OlW.cjs.map} +1 -1
- package/dist/derive-B4vDpzgP.mjs +150 -0
- package/dist/derive-B4vDpzgP.mjs.map +1 -0
- package/dist/derive-DAbo49sm.cjs +161 -0
- package/dist/derive-DAbo49sm.cjs.map +1 -0
- package/dist/{discover-C_6COHEv.cjs → discover-DHdECueV.cjs} +6 -157
- package/dist/discover-DHdECueV.cjs.map +1 -0
- package/dist/{discover-BaT6bpnA.mjs → discover-LMrqsWSU.mjs} +8 -117
- package/dist/discover-LMrqsWSU.mjs.map +1 -0
- package/dist/{dokploy-CwdmlyQL.mjs → dokploy-CepdXuMl.mjs} +3 -3
- package/dist/{dokploy-CwdmlyQL.mjs.map → dokploy-CepdXuMl.mjs.map} +1 -1
- package/dist/{dokploy-QJxMhxdf.cjs → dokploy-D1d37rvM.cjs} +3 -3
- package/dist/{dokploy-QJxMhxdf.cjs.map → dokploy-D1d37rvM.cjs.map} +1 -1
- package/dist/{encryption-DXw3jj0c.cjs → encryption-C9X98u2F.cjs} +5 -5
- package/dist/{encryption-DXw3jj0c.cjs.map → encryption-C9X98u2F.cjs.map} +1 -1
- package/dist/{encryption-CbQG_ayW.mjs → encryption-CKHjMpCr.mjs} +5 -5
- package/dist/{encryption-CbQG_ayW.mjs.map → encryption-CKHjMpCr.mjs.map} +1 -1
- package/dist/{github-ciwbIwVa.mjs → github-D-byNI7T.mjs} +4 -4
- package/dist/{github-ciwbIwVa.mjs.map → github-D-byNI7T.mjs.map} +1 -1
- package/dist/{github-BH_mETav.cjs → github-Dd3tMa1u.cjs} +4 -4
- package/dist/{github-BH_mETav.cjs.map → github-Dd3tMa1u.cjs.map} +1 -1
- package/dist/{index-DrKzpHl-.d.mts → index-CJ2qsSpp.d.mts} +2 -2
- package/dist/{index-BtXDZQuF.d.cts.map → index-CJ2qsSpp.d.mts.map} +1 -1
- package/dist/{index-BtXDZQuF.d.cts → index-CfE9Y885.d.cts} +2 -2
- package/dist/{index-DrKzpHl-.d.mts.map → index-CfE9Y885.d.cts.map} +1 -1
- package/dist/index.cjs +100 -235
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +71 -206
- package/dist/index.mjs.map +1 -1
- package/dist/local-C7wnrcYK.cjs +586 -0
- package/dist/local-C7wnrcYK.cjs.map +1 -0
- package/dist/local-Cd8ZYQG3.mjs +473 -0
- package/dist/local-Cd8ZYQG3.mjs.map +1 -0
- package/dist/{migrate-ImBKTBcW.mjs → migrate-B4gngTLe.mjs} +6 -6
- package/dist/{migrate-ImBKTBcW.mjs.map → migrate-B4gngTLe.mjs.map} +1 -1
- package/dist/{migrate-6oa9y_f2.cjs → migrate-tx9-P9uz.cjs} +6 -6
- package/dist/{migrate-6oa9y_f2.cjs.map → migrate-tx9-P9uz.cjs.map} +1 -1
- package/dist/openapi.cjs +2 -2
- package/dist/openapi.d.cts +1 -1
- package/dist/openapi.d.mts +1 -1
- package/dist/openapi.mjs +2 -2
- package/dist/{ready-Bpdnn2ON.mjs → ready-bQfu9GES.mjs} +3 -3
- package/dist/{ready-Bpdnn2ON.mjs.map → ready-bQfu9GES.mjs.map} +1 -1
- package/dist/{ready-BiG0rt4h.cjs → ready-brEhh68f.cjs} +3 -3
- package/dist/{ready-BiG0rt4h.cjs.map → ready-brEhh68f.cjs.map} +1 -1
- package/dist/reconcile/public.cjs +1 -1
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/reconcile/public.mjs +1 -1
- package/dist/{resolve-xytBTtG4.cjs → resolve-BXsNQjMR.cjs} +9 -6
- package/dist/resolve-BXsNQjMR.cjs.map +1 -0
- package/dist/{resolve-B1T0hUaR.mjs → resolve-DZ2IJ0qY.mjs} +9 -6
- package/dist/resolve-DZ2IJ0qY.mjs.map +1 -0
- package/dist/{runtime-CMwtq0AL.cjs → runtime-BGNDrHzh.cjs} +2 -2
- package/dist/{runtime-CMwtq0AL.cjs.map → runtime-BGNDrHzh.cjs.map} +1 -1
- package/dist/{runtime-Dn_n-29S.d.cts → runtime-CJEYK4Gz.d.mts} +2 -2
- package/dist/{runtime-CXPlkZzs.d.mts.map → runtime-CJEYK4Gz.d.mts.map} +1 -1
- package/dist/{runtime-CXPlkZzs.d.mts → runtime-Cjq1jlVX.d.cts} +2 -2
- package/dist/{runtime-Dn_n-29S.d.cts.map → runtime-Cjq1jlVX.d.cts.map} +1 -1
- package/dist/{runtime-DbakJS8u.mjs → runtime-Cmn-FeYO.mjs} +2 -2
- package/dist/{runtime-DbakJS8u.mjs.map → runtime-Cmn-FeYO.mjs.map} +1 -1
- package/dist/sandbox/discover-worker.cjs +1 -1
- package/dist/sandbox/discover-worker.mjs +1 -1
- package/dist/sandbox-CL--ZDui.cjs +164 -0
- package/dist/sandbox-CL--ZDui.cjs.map +1 -0
- package/dist/sandbox-Dm247NGx.mjs +117 -0
- package/dist/sandbox-Dm247NGx.mjs.map +1 -0
- package/dist/{sniffer-aO_-s5vq.mjs → sniffer-49KPbDgq.mjs} +25 -470
- package/dist/sniffer-49KPbDgq.mjs.map +1 -0
- package/dist/{sniffer-D_SYc_pO.cjs → sniffer-ByhbEW5A.cjs} +38 -567
- package/dist/sniffer-ByhbEW5A.cjs.map +1 -0
- package/dist/sst-BdALKEas.cjs +453 -0
- package/dist/sst-BdALKEas.cjs.map +1 -0
- package/dist/sst-Cper040I.mjs +430 -0
- package/dist/sst-Cper040I.mjs.map +1 -0
- package/dist/{store-BS8A7NcA.mjs → store-BaaonhkJ.mjs} +2 -2
- package/dist/{store-BS8A7NcA.mjs.map → store-BaaonhkJ.mjs.map} +1 -1
- package/dist/{store-KvNQwYaB.cjs → store-D_2ByRtW.cjs} +4 -4
- package/dist/{store-KvNQwYaB.cjs.map → store-D_2ByRtW.cjs.map} +1 -1
- package/dist/target/public.cjs +3 -3
- package/dist/target/public.d.cts +3 -3
- package/dist/target/public.d.mts +3 -3
- package/dist/target/public.mjs +3 -3
- package/dist/{terminal-D0f1u0LG.cjs → terminal-Bdv--jhY.cjs} +16 -111
- package/dist/terminal-Bdv--jhY.cjs.map +1 -0
- package/dist/{terminal-gMxAo9Dj.mjs → terminal-D7Ntz6WE.mjs} +13 -90
- package/dist/terminal-D7Ntz6WE.mjs.map +1 -0
- package/dist/{types-DIA7Li-J.d.cts → types-B_bEQvb9.d.mts} +42 -7
- package/dist/types-B_bEQvb9.d.mts.map +1 -0
- package/dist/{types-CfLKGfC_.d.mts → types-DkrDOMxw.d.cts} +43 -6
- package/dist/types-DkrDOMxw.d.cts.map +1 -0
- package/dist/utils-D2Nk1Nv2.cjs +205 -0
- package/dist/utils-D2Nk1Nv2.cjs.map +1 -0
- package/dist/utils-D_fxUqvU.mjs +156 -0
- package/dist/utils-D_fxUqvU.mjs.map +1 -0
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.d.mts +2 -2
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-Kl4NG9IH.cjs → workspace-BwgWJK7h.cjs} +5 -5
- package/dist/workspace-BwgWJK7h.cjs.map +1 -0
- package/dist/{workspace-Dh7rr7l4.mjs → workspace-Bwit4q9O.mjs} +5 -5
- package/dist/workspace-Bwit4q9O.mjs.map +1 -0
- package/package.json +13 -13
- package/dist/config-BEJYKd4s.cjs +0 -648
- package/dist/config-BEJYKd4s.cjs.map +0 -1
- package/dist/config-LKKCVCnC.mjs +0 -547
- package/dist/config-LKKCVCnC.mjs.map +0 -1
- package/dist/define-CHBIEc5j.mjs.map +0 -1
- package/dist/define-Cv_QvDrg.cjs.map +0 -1
- package/dist/discover-BaT6bpnA.mjs.map +0 -1
- package/dist/discover-C_6COHEv.cjs.map +0 -1
- package/dist/home-DOzBaWaL.cjs +0 -33
- package/dist/home-DOzBaWaL.cjs.map +0 -1
- package/dist/home-GI7pJl1M.mjs +0 -22
- package/dist/home-GI7pJl1M.mjs.map +0 -1
- package/dist/resolve-B1T0hUaR.mjs.map +0 -1
- package/dist/resolve-xytBTtG4.cjs.map +0 -1
- package/dist/sniffer-D_SYc_pO.cjs.map +0 -1
- package/dist/sniffer-aO_-s5vq.mjs.map +0 -1
- package/dist/terminal-D0f1u0LG.cjs.map +0 -1
- package/dist/terminal-gMxAo9Dj.mjs.map +0 -1
- package/dist/types-CfLKGfC_.d.mts.map +0 -1
- package/dist/types-DIA7Li-J.d.cts.map +0 -1
- package/dist/workspace-Dh7rr7l4.mjs.map +0 -1
- package/dist/workspace-Kl4NG9IH.cjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env -S npx tsx
|
|
2
2
|
import { n as __require, t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { $ as pgClient, B as FAKE_ENV, Ct as loginCommand, Et as whoamiCommand, H as constructGlobs, I as withGeneratedSecrets, J as applyPostgres, K as LOCAL_CA_PATH, P as createStateStore, Q as composeFor, St as prepareEntryCredentials, U as derivedContainers, V as backendsOf$1, W as reconcileWorkspace, X as postgresStatements, Y as postgresDatabaseNames, Z as quoteIdentifier, _t as createEntryWrapper, bt as loadEnvFiles, c as dockerCommand, d as generateDockerignore, dt as DEFAULT_IMAGES, et as appEnvKeys, f as generateSlimDockerfile, ft as describeServices, g as createEmptyState, gt as createCredentialsPreload, h as resolveHost, ht as primaryPortKey, it as planFor, l as siteDockerfile, lt as providerOf, m as isMainFrontendApp, mt as portKeys, n as sniffAppEnvironment, nt as envFor, ot as hostFor, p as validateImageRef, pt as fakeKey, q as forgetState, r as DokployApi, rt as localRolePassword, s as appPackageName$1, st as cacheBackendFor, tt as networkEnv, u as detectPackageManager$1, vt as findAvailablePort, wt as logoutCommand, xt as loadSecretsForApp, yt as isPortAvailable, z as keyFingerprint } from "./sniffer-49KPbDgq.mjs";
|
|
4
|
+
import { c as runOutput, d as getDokployRegistryId, f as getDokployToken, i as CommandFailed, o as DEFAULT_TIMEOUT_MS, s as run$1, t as LocalSandbox, u as getDokployCredentials } from "./local-Cd8ZYQG3.mjs";
|
|
5
|
+
import { l as withOwningTsconfigJsx, r as discover, u as ConstructGenerator } from "./discover-LMrqsWSU.mjs";
|
|
6
|
+
import { t as appKey } from "./derive-B4vDpzgP.mjs";
|
|
7
|
+
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-Bwit4q9O.mjs";
|
|
8
|
+
import { ConfigNotFound, NotABackendApp, NotInAnApp, loadAppConfig, loadConfig, loadWorkspaceConfig, loadWorkspaceSettings, parseModuleConfig } from "./config.mjs";
|
|
7
9
|
import { a as withCustomSecret, i as toEmbeddableSecrets, n as maskPassword, t as initStageSecrets } from "./storage-BzaUxmqe.mjs";
|
|
8
|
-
import { a as getKeyPath, f as imageRef, i as FileSecretsStore, n as secretsStoreFor, s as projectKey, u as deployIdentity } from "./store-
|
|
9
|
-
import { i as telemetryFor, n as EndpointGenerator, r as runtimeFor } from "./OpenApiTsGenerator-
|
|
10
|
+
import { a as getKeyPath, f as imageRef, i as FileSecretsStore, n as secretsStoreFor, s as projectKey, u as deployIdentity } from "./store-BaaonhkJ.mjs";
|
|
11
|
+
import { i as telemetryFor, n as EndpointGenerator, r as runtimeFor } from "./OpenApiTsGenerator-C6v-IeHt.mjs";
|
|
10
12
|
import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
|
|
11
13
|
import { n as DEFAULT_CACHE, r as DEFAULT_EVENTS } from "./fakes-C9RiT6XG.mjs";
|
|
12
14
|
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-
|
|
15
|
+
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-bQfu9GES.mjs";
|
|
14
16
|
import { n as withCompute, r as withRoutes, t as manifestModule } from "./emit-C1e8qD08.mjs";
|
|
15
|
-
import { t as LocalStateStore } from "./LocalStateStore-
|
|
17
|
+
import { t as LocalStateStore } from "./LocalStateStore-Cy1ZBW7U.mjs";
|
|
18
|
+
import { a as getExecCommand, c as validateProjectName, i as findWorkspaceRoot, n as detectPackageManager$2, o as getInstallCommand, r as findWorkspacePackages, s as getRunCommand, t as checkDirectoryExists } from "./utils-D_fxUqvU.mjs";
|
|
16
19
|
import { createRequire } from "node:module";
|
|
17
|
-
import { basename, dirname, extname, isAbsolute, join,
|
|
20
|
+
import { basename, dirname, extname, isAbsolute, join, relative, resolve } from "node:path";
|
|
18
21
|
import { Command } from "commander";
|
|
19
22
|
import { existsSync, linkSync, mkdirSync, readFileSync, readdirSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
20
23
|
import { appendFile, chmod, mkdir, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
|
|
@@ -28,7 +31,7 @@ import chokidar from "chokidar";
|
|
|
28
31
|
import { connect } from "node:net";
|
|
29
32
|
import { createHash, randomBytes, timingSafeEqual } from "node:crypto";
|
|
30
33
|
import pg from "pg";
|
|
31
|
-
import {
|
|
34
|
+
import { parseDocument, stringify } from "yaml";
|
|
32
35
|
import prompts from "prompts";
|
|
33
36
|
import { createServer as createServer$1 } from "node:http";
|
|
34
37
|
import { Readable } from "node:stream";
|
|
@@ -41,7 +44,7 @@ import { Function } from "@geekmidas/constructs/functions";
|
|
|
41
44
|
import { Queue } from "@geekmidas/constructs/queue";
|
|
42
45
|
import { Topic } from "@geekmidas/constructs/topic";
|
|
43
46
|
//#region package.json
|
|
44
|
-
var version = "10.0.0-alpha.
|
|
47
|
+
var version = "10.0.0-alpha.64";
|
|
45
48
|
//#endregion
|
|
46
49
|
//#region src/trust/index.ts
|
|
47
50
|
/**
|
|
@@ -1845,9 +1848,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
1845
1848
|
for (const { id, port } of fakes) logger$6.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
1846
1849
|
logger$6.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
1847
1850
|
if (options.migrate || options.seed) {
|
|
1848
|
-
const { prepareDevDatabases } = await import("./migrate-
|
|
1851
|
+
const { prepareDevDatabases } = await import("./migrate-B4gngTLe.mjs");
|
|
1849
1852
|
await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
|
|
1850
|
-
} else await import("./migrate-
|
|
1853
|
+
} else await import("./migrate-B4gngTLe.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
1851
1854
|
logger$6.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
1852
1855
|
});
|
|
1853
1856
|
const appUrls = {};
|
|
@@ -3227,7 +3230,7 @@ async function buildApp(input) {
|
|
|
3227
3230
|
if (production?.bundle && !input.skipBundle) {
|
|
3228
3231
|
const outputDir = join(appRoot, ".gkm", "server");
|
|
3229
3232
|
const entryPoint = await writeSurfaceServer(outputDir, production);
|
|
3230
|
-
const { bundleServer } = await import("./bundler-
|
|
3233
|
+
const { bundleServer } = await import("./bundler-DYgm9xsd.mjs");
|
|
3231
3234
|
await bundleServer({
|
|
3232
3235
|
entryPoint,
|
|
3233
3236
|
outputDir: join(outputDir, "dist"),
|
|
@@ -3365,7 +3368,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
3365
3368
|
let masterKey;
|
|
3366
3369
|
if (context.production?.bundle && !skipBundle) {
|
|
3367
3370
|
logger$5.log(`\n📦 Bundling production server...`);
|
|
3368
|
-
const { bundleServer } = await import("./bundler-
|
|
3371
|
+
const { bundleServer } = await import("./bundler-DYgm9xsd.mjs");
|
|
3369
3372
|
const allConstructs = [
|
|
3370
3373
|
...endpoints.map((e) => e.construct),
|
|
3371
3374
|
...functions.map((f) => f.construct),
|
|
@@ -3405,7 +3408,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
3405
3408
|
* Detect available package manager.
|
|
3406
3409
|
* @internal Exported for testing
|
|
3407
3410
|
*/
|
|
3408
|
-
function detectPackageManager
|
|
3411
|
+
function detectPackageManager() {
|
|
3409
3412
|
if (existsSync("pnpm-lock.yaml")) return "pnpm";
|
|
3410
3413
|
if (existsSync("yarn.lock")) return "yarn";
|
|
3411
3414
|
return "npm";
|
|
@@ -3524,7 +3527,7 @@ async function workspaceBuildCommand(workspace, options) {
|
|
|
3524
3527
|
});
|
|
3525
3528
|
const { filters, unpackaged } = turboFilters(workspace, { exclude: "backend" });
|
|
3526
3529
|
if (unpackaged.length > 0) throw new Error(`No package.json for workspace app(s): ${unpackaged.join(", ")}. Each app needs one — turbo builds packages, and gkm reads the name back to know which app it is building.`);
|
|
3527
|
-
const pm = detectPackageManager
|
|
3530
|
+
const pm = detectPackageManager();
|
|
3528
3531
|
const [turboBin, turboArgs] = getTurboArgs(pm, filters, { only: true });
|
|
3529
3532
|
if (filters.length > 0) {
|
|
3530
3533
|
logger$5.log(`\n📦 Using ${pm} with Turbo for the other apps...\n`);
|
|
@@ -4867,7 +4870,7 @@ async function composeCommand(options = {}, deps = {}) {
|
|
|
4867
4870
|
const mode = options.build || !options.pull && !options.tag ? "build" : "pull";
|
|
4868
4871
|
const tag = options.tag ?? (mode === "pull" ? "latest" : await revision(root));
|
|
4869
4872
|
const { secrets, keep } = await stageSecrets(workspace, manifest, stage);
|
|
4870
|
-
const packageManager = detectPackageManager$
|
|
4873
|
+
const packageManager = detectPackageManager$1(root);
|
|
4871
4874
|
const stack = composeStack({
|
|
4872
4875
|
workspace,
|
|
4873
4876
|
manifest,
|
|
@@ -6480,25 +6483,25 @@ function loadPackageJson() {
|
|
|
6480
6483
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
6481
6484
|
*/
|
|
6482
6485
|
const GEEKMIDAS_VERSIONS = {
|
|
6483
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
6484
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
6485
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
6486
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
6487
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
6488
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
6489
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
6490
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
6491
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
6492
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
6493
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
6494
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
6495
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
6496
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
6497
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
6498
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
6499
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
6500
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
6501
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
6486
|
+
"@geekmidas/audit": "~10.0.0-alpha.64",
|
|
6487
|
+
"@geekmidas/auth": "~10.0.0-alpha.64",
|
|
6488
|
+
"@geekmidas/cache": "~10.0.0-alpha.64",
|
|
6489
|
+
"@geekmidas/client": "~10.0.0-alpha.64",
|
|
6490
|
+
"@geekmidas/cloud": "~10.0.0-alpha.64",
|
|
6491
|
+
"@geekmidas/constructs": "~10.0.0-alpha.64",
|
|
6492
|
+
"@geekmidas/db": "~10.0.0-alpha.64",
|
|
6493
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.64",
|
|
6494
|
+
"@geekmidas/envkit": "~10.0.0-alpha.64",
|
|
6495
|
+
"@geekmidas/errors": "~10.0.0-alpha.64",
|
|
6496
|
+
"@geekmidas/events": "~10.0.0-alpha.64",
|
|
6497
|
+
"@geekmidas/logger": "~10.0.0-alpha.64",
|
|
6498
|
+
"@geekmidas/manifest": "~10.0.0-alpha.64",
|
|
6499
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.64",
|
|
6500
|
+
"@geekmidas/schema": "~10.0.0-alpha.64",
|
|
6501
|
+
"@geekmidas/services": "~10.0.0-alpha.64",
|
|
6502
|
+
"@geekmidas/storage": "~10.0.0-alpha.64",
|
|
6503
|
+
"@geekmidas/telescope": "~10.0.0-alpha.64",
|
|
6504
|
+
"@geekmidas/testkit": "~10.0.0-alpha.64",
|
|
6502
6505
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
6503
6506
|
};
|
|
6504
6507
|
//#endregion
|
|
@@ -7181,8 +7184,10 @@ ${pm.setup}
|
|
|
7181
7184
|
- name: Install
|
|
7182
7185
|
run: ${pm.install}
|
|
7183
7186
|
${stageSecrets}
|
|
7187
|
+
# Builds, releases and health-checks the stage through deploy.default
|
|
7188
|
+
# in gkm.config.ts, and fails the job if any of it fails.
|
|
7184
7189
|
- name: Deploy
|
|
7185
|
-
run: ${pm.
|
|
7190
|
+
run: ${pm.exec} gkm deploy --stage "$STAGE"
|
|
7186
7191
|
env:
|
|
7187
7192
|
STAGE: \${{ matrix.stage }}${deployEnv}
|
|
7188
7193
|
`;
|
|
@@ -8035,7 +8040,7 @@ function deployPackage(options) {
|
|
|
8035
8040
|
case "sst": {
|
|
8036
8041
|
const v = GEEKMIDAS_VERSIONS;
|
|
8037
8042
|
return {
|
|
8038
|
-
scripts: perStage(options, (stage) => `gkm
|
|
8043
|
+
scripts: perStage(options, (stage) => `gkm deploy --stage ${stage}`),
|
|
8039
8044
|
dependencies: {
|
|
8040
8045
|
"@geekmidas/cloud": v["@geekmidas/cloud"],
|
|
8041
8046
|
"@geekmidas/db": v["@geekmidas/db"],
|
|
@@ -8078,7 +8083,7 @@ function generateDeployFiles(options) {
|
|
|
8078
8083
|
* constructs the application declares, through \`fromManifest\`. What is here
|
|
8079
8084
|
* is what varies by stage, and the inputs a declaration cannot carry.
|
|
8080
8085
|
*
|
|
8081
|
-
* Deploy with \`
|
|
8086
|
+
* Deploy with \`gkm deploy --stage <stage>\`, which builds the manifest first.
|
|
8082
8087
|
*/
|
|
8083
8088
|
const region = '${options.region}';
|
|
8084
8089
|
|
|
@@ -8112,7 +8117,7 @@ ${hasDatabase ? " const vpc = new sst.aws.Vpc('Vpc', { nat: 'ec2' });\n\n" :
|
|
|
8112
8117
|
hostedZoneId: '',
|
|
8113
8118
|
});
|
|
8114
8119
|
|
|
8115
|
-
|
|
8120
|
+
const provisioned = fromManifest(
|
|
8116
8121
|
new Stack(app, '${canonicalId(options.name)}'),
|
|
8117
8122
|
constructs,
|
|
8118
8123
|
{
|
|
@@ -8120,6 +8125,15 @@ ${inputs.join("\n")}
|
|
|
8120
8125
|
},
|
|
8121
8126
|
backends,
|
|
8122
8127
|
);
|
|
8128
|
+
|
|
8129
|
+
// Each surface's URL, by its id: SST prints these and writes them to
|
|
8130
|
+
// .sst/outputs.json, where \`gkm deploy\` reads them to health-check
|
|
8131
|
+
// what it released.
|
|
8132
|
+
return Object.fromEntries(
|
|
8133
|
+
Object.entries(constructs)
|
|
8134
|
+
.filter(([, c]) => c.kind === 'rest-api' || c.kind === 'site')
|
|
8135
|
+
.map(([id]) => [id, provisioned[id]!.provides().url]),
|
|
8136
|
+
);
|
|
8123
8137
|
},
|
|
8124
8138
|
});
|
|
8125
8139
|
`
|
|
@@ -8530,7 +8544,7 @@ ${workspaceConstructsGlobs(options.routesStructure, dirname(options.apiPath)).ma
|
|
|
8530
8544
|
function deployBlock(options) {
|
|
8531
8545
|
if (options.deployTarget !== "sst") return "";
|
|
8532
8546
|
return `
|
|
8533
|
-
//
|
|
8547
|
+
// \`gkm deploy\` runs \`sst deploy\` on the manifest \`gkm build\` writes to
|
|
8534
8548
|
// \`.gkm/manifest/aws.ts\`. Each construct becomes a managed AWS resource.
|
|
8535
8549
|
deploy: { default: 'sst' },
|
|
8536
8550
|
`;
|
|
@@ -11159,155 +11173,6 @@ function isFullstackTemplate(name) {
|
|
|
11159
11173
|
return name === "fullstack";
|
|
11160
11174
|
}
|
|
11161
11175
|
//#endregion
|
|
11162
|
-
//#region src/init/utils.ts
|
|
11163
|
-
/**
|
|
11164
|
-
* Detect the package manager being used based on lockfiles or npm_config_user_agent
|
|
11165
|
-
*/
|
|
11166
|
-
function detectPackageManager(cwd = process.cwd()) {
|
|
11167
|
-
if (existsSync(join(cwd, "pnpm-lock.yaml"))) return "pnpm";
|
|
11168
|
-
if (existsSync(join(cwd, "yarn.lock"))) return "yarn";
|
|
11169
|
-
if (existsSync(join(cwd, "bun.lockb"))) return "bun";
|
|
11170
|
-
if (existsSync(join(cwd, "package-lock.json"))) return "npm";
|
|
11171
|
-
const userAgent = process.env.npm_config_user_agent || "";
|
|
11172
|
-
if (userAgent.includes("pnpm")) return "pnpm";
|
|
11173
|
-
if (userAgent.includes("yarn")) return "yarn";
|
|
11174
|
-
if (userAgent.includes("bun")) return "bun";
|
|
11175
|
-
return "npm";
|
|
11176
|
-
}
|
|
11177
|
-
/** `gkm init`'s flags, which a name can swallow when a space goes missing. */
|
|
11178
|
-
const INIT_FLAGS = [
|
|
11179
|
-
"yes",
|
|
11180
|
-
"name",
|
|
11181
|
-
"template",
|
|
11182
|
-
"monorepo",
|
|
11183
|
-
"api-path",
|
|
11184
|
-
"pm",
|
|
11185
|
-
"skip-install"
|
|
11186
|
-
];
|
|
11187
|
-
/**
|
|
11188
|
-
* Validate project name for npm package naming conventions
|
|
11189
|
-
*/
|
|
11190
|
-
function validateProjectName(name) {
|
|
11191
|
-
if (!name) return "Project name is required";
|
|
11192
|
-
if (!/^[a-z0-9-_@/.]+$/i.test(name)) return "Project name can only contain letters, numbers, hyphens, underscores, @, /, and .";
|
|
11193
|
-
const flag = name.match(/--(\w[\w-]*)$/)?.[1];
|
|
11194
|
-
if (flag && INIT_FLAGS.includes(flag)) return `"${name}" ends in the --${flag} flag. Did you mean \`${name.slice(0, -(flag.length + 2))} --${flag}\`?`;
|
|
11195
|
-
if ([
|
|
11196
|
-
"node_modules",
|
|
11197
|
-
".git",
|
|
11198
|
-
"package.json",
|
|
11199
|
-
"src"
|
|
11200
|
-
].includes(name.toLowerCase())) return `"${name}" is a reserved name`;
|
|
11201
|
-
return true;
|
|
11202
|
-
}
|
|
11203
|
-
/**
|
|
11204
|
-
* Check if a directory already exists at the target path
|
|
11205
|
-
*/
|
|
11206
|
-
function checkDirectoryExists(name, cwd = process.cwd()) {
|
|
11207
|
-
const targetPath = join(cwd, name);
|
|
11208
|
-
if (existsSync(targetPath)) return `Directory "${name}" already exists`;
|
|
11209
|
-
return true;
|
|
11210
|
-
}
|
|
11211
|
-
/**
|
|
11212
|
-
* Get the install command for a package manager
|
|
11213
|
-
*/
|
|
11214
|
-
function getInstallCommand(pkgManager) {
|
|
11215
|
-
switch (pkgManager) {
|
|
11216
|
-
case "pnpm": return "pnpm install";
|
|
11217
|
-
case "yarn": return "yarn";
|
|
11218
|
-
case "bun": return "bun install";
|
|
11219
|
-
default: return "npm install";
|
|
11220
|
-
}
|
|
11221
|
-
}
|
|
11222
|
-
/**
|
|
11223
|
-
* Get the dev command for a package manager
|
|
11224
|
-
*/
|
|
11225
|
-
function getRunCommand(pkgManager, script) {
|
|
11226
|
-
switch (pkgManager) {
|
|
11227
|
-
case "pnpm": return `pnpm ${script}`;
|
|
11228
|
-
case "yarn": return `yarn ${script}`;
|
|
11229
|
-
case "bun": return `bun run ${script}`;
|
|
11230
|
-
default: return `npm run ${script}`;
|
|
11231
|
-
}
|
|
11232
|
-
}
|
|
11233
|
-
/**
|
|
11234
|
-
* Run a binary the project installed, through its package manager — so it is
|
|
11235
|
-
* the project's own version, not whatever \`npx\` would fetch.
|
|
11236
|
-
*/
|
|
11237
|
-
function getExecCommand(pkgManager, command) {
|
|
11238
|
-
switch (pkgManager) {
|
|
11239
|
-
case "pnpm": return `pnpm exec ${command}`;
|
|
11240
|
-
case "yarn": return `yarn ${command}`;
|
|
11241
|
-
case "bun": return `bunx ${command}`;
|
|
11242
|
-
default: return `npx --no-install ${command}`;
|
|
11243
|
-
}
|
|
11244
|
-
}
|
|
11245
|
-
const lockfileByPm = {
|
|
11246
|
-
pnpm: "pnpm-lock.yaml",
|
|
11247
|
-
yarn: "yarn.lock",
|
|
11248
|
-
npm: "package-lock.json",
|
|
11249
|
-
bun: "bun.lockb"
|
|
11250
|
-
};
|
|
11251
|
-
/**
|
|
11252
|
-
* Find the workspace/project root by walking up from cwd.
|
|
11253
|
-
* Checks for PM-specific workspace config, package.json#workspaces,
|
|
11254
|
-
* and lockfiles.
|
|
11255
|
-
*/
|
|
11256
|
-
function findWorkspaceRoot(cwd, pm) {
|
|
11257
|
-
let dir = cwd;
|
|
11258
|
-
const root = parse(dir).root;
|
|
11259
|
-
const lockfile = lockfileByPm[pm];
|
|
11260
|
-
while (dir !== root) {
|
|
11261
|
-
if (pm === "pnpm" && existsSync(join(dir, "pnpm-workspace.yaml"))) return dir;
|
|
11262
|
-
const pkgJsonPath = join(dir, "package.json");
|
|
11263
|
-
if (existsSync(pkgJsonPath)) try {
|
|
11264
|
-
if (JSON.parse(readFileSync(pkgJsonPath, "utf-8")).workspaces) return dir;
|
|
11265
|
-
} catch {}
|
|
11266
|
-
if (existsSync(join(dir, lockfile))) return dir;
|
|
11267
|
-
dir = dirname(dir);
|
|
11268
|
-
}
|
|
11269
|
-
return cwd;
|
|
11270
|
-
}
|
|
11271
|
-
/**
|
|
11272
|
-
* Get workspace package glob patterns from pnpm-workspace.yaml
|
|
11273
|
-
* or package.json#workspaces.
|
|
11274
|
-
*/
|
|
11275
|
-
function getWorkspaceGlobs(root) {
|
|
11276
|
-
const pnpmWorkspacePath = join(root, "pnpm-workspace.yaml");
|
|
11277
|
-
if (existsSync(pnpmWorkspacePath)) {
|
|
11278
|
-
const content = readFileSync(pnpmWorkspacePath, "utf-8");
|
|
11279
|
-
return parse$1(content)?.packages ?? [];
|
|
11280
|
-
}
|
|
11281
|
-
const rootPkgJsonPath = join(root, "package.json");
|
|
11282
|
-
if (existsSync(rootPkgJsonPath)) {
|
|
11283
|
-
const pkg = JSON.parse(readFileSync(rootPkgJsonPath, "utf-8"));
|
|
11284
|
-
if (Array.isArray(pkg.workspaces)) return pkg.workspaces;
|
|
11285
|
-
if (pkg.workspaces?.packages) return pkg.workspaces.packages;
|
|
11286
|
-
}
|
|
11287
|
-
return [];
|
|
11288
|
-
}
|
|
11289
|
-
/**
|
|
11290
|
-
* Find all package.json files across a workspace.
|
|
11291
|
-
* Returns the root package.json plus all workspace member package.json paths.
|
|
11292
|
-
*/
|
|
11293
|
-
function findWorkspacePackages(cwd, pm) {
|
|
11294
|
-
const workspaceRoot = findWorkspaceRoot(cwd, pm);
|
|
11295
|
-
const results = [];
|
|
11296
|
-
const rootPkgJson = join(workspaceRoot, "package.json");
|
|
11297
|
-
if (existsSync(rootPkgJson)) results.push(rootPkgJson);
|
|
11298
|
-
const globs = getWorkspaceGlobs(workspaceRoot);
|
|
11299
|
-
for (const glob of globs) {
|
|
11300
|
-
const pattern = `${glob}/package.json`;
|
|
11301
|
-
const matches = fg.sync(pattern, {
|
|
11302
|
-
cwd: workspaceRoot,
|
|
11303
|
-
absolute: true,
|
|
11304
|
-
ignore: ["**/node_modules/**"]
|
|
11305
|
-
});
|
|
11306
|
-
results.push(...matches);
|
|
11307
|
-
}
|
|
11308
|
-
return [...new Set(results)];
|
|
11309
|
-
}
|
|
11310
|
-
//#endregion
|
|
11311
11176
|
//#region src/init/index.ts
|
|
11312
11177
|
/** `' staging, prod '` → `['staging', 'prod']`. */
|
|
11313
11178
|
const stageList = (value) => value.split(",").map((name) => name.trim()).filter(Boolean);
|
|
@@ -11318,7 +11183,7 @@ const AWS_REGION = /^[a-z]{2}(-gov)?-[a-z]+-\d$/;
|
|
|
11318
11183
|
*/
|
|
11319
11184
|
async function initCommand(projectName, options = {}) {
|
|
11320
11185
|
const cwd = process.cwd();
|
|
11321
|
-
const detectedPkgManager = detectPackageManager(cwd);
|
|
11186
|
+
const detectedPkgManager = detectPackageManager$2(cwd);
|
|
11322
11187
|
if (options.deploy && !deployTargetChoices.some((choice) => choice.value === options.deploy)) throw new UnknownDeployTarget(options.deploy, deployTargetChoices.map((c) => c.value));
|
|
11323
11188
|
if (options.region && !AWS_REGION.test(options.region)) throw new NotAnAwsRegion(options.region);
|
|
11324
11189
|
if (options.stages || options.localStage || options.protectedStage) {
|
|
@@ -11664,7 +11529,7 @@ function printNextSteps(projectName, options, pkgManager) {
|
|
|
11664
11529
|
}
|
|
11665
11530
|
if (options.deployTarget === "sst") {
|
|
11666
11531
|
console.log("🚀 Deployment (AWS, through SST):");
|
|
11667
|
-
for (const stage of deployed) console.log(` ${getRunCommand(pkgManager, `deploy:${stage}`)} # gkm build,
|
|
11532
|
+
for (const stage of deployed) console.log(` ${getRunCommand(pkgManager, `deploy:${stage}`)} # gkm deploy: build, sst deploy, health checks`);
|
|
11668
11533
|
console.log(` Uses your AWS credentials, in ${options.region}.`);
|
|
11669
11534
|
if (options.constructs.mail) console.log(" Set MAIL_FROM to a sender verified in SES first.");
|
|
11670
11535
|
console.log("");
|
|
@@ -12399,8 +12264,8 @@ function testDatabases(reconciled) {
|
|
|
12399
12264
|
* starts without the reference data the app needs.
|
|
12400
12265
|
*/
|
|
12401
12266
|
async function migrateTestStage(workspace, env) {
|
|
12402
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
12403
|
-
const { discover } = await import("./discover-
|
|
12267
|
+
const { migrateAndSeed } = await import("./migrate-B4gngTLe.mjs");
|
|
12268
|
+
const { discover } = await import("./discover-LMrqsWSU.mjs").then((n) => n.i);
|
|
12404
12269
|
const sources = {};
|
|
12405
12270
|
const manifest = await discover({
|
|
12406
12271
|
patterns: constructGlobs(workspace),
|
|
@@ -12558,7 +12423,7 @@ function withVersion(range, version) {
|
|
|
12558
12423
|
}
|
|
12559
12424
|
async function upgradeCommand(options = {}) {
|
|
12560
12425
|
const cwd = process.cwd();
|
|
12561
|
-
const pm = detectPackageManager(cwd);
|
|
12426
|
+
const pm = detectPackageManager$2(cwd);
|
|
12562
12427
|
const root = findWorkspaceRoot(cwd, pm);
|
|
12563
12428
|
logger.log("\n📦 Scanning workspace for @geekmidas packages...\n");
|
|
12564
12429
|
logger.log(` Package manager: ${pm}`);
|
|
@@ -12830,7 +12695,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
12830
12695
|
try {
|
|
12831
12696
|
const globalOptions = program.opts();
|
|
12832
12697
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12833
|
-
const { migrateCommand } = await import("./migrate-
|
|
12698
|
+
const { migrateCommand } = await import("./migrate-B4gngTLe.mjs");
|
|
12834
12699
|
await migrateCommand({
|
|
12835
12700
|
...options,
|
|
12836
12701
|
...construct ? { construct } : {}
|
|
@@ -12844,7 +12709,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
12844
12709
|
try {
|
|
12845
12710
|
const globalOptions = program.opts();
|
|
12846
12711
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12847
|
-
const { seedCommand } = await import("./migrate-
|
|
12712
|
+
const { seedCommand } = await import("./migrate-B4gngTLe.mjs");
|
|
12848
12713
|
await seedCommand({
|
|
12849
12714
|
...options,
|
|
12850
12715
|
...construct ? { construct } : {}
|
|
@@ -12858,7 +12723,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
12858
12723
|
try {
|
|
12859
12724
|
const globalOptions = program.opts();
|
|
12860
12725
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12861
|
-
const { migrationCommand } = await import("./migrate-
|
|
12726
|
+
const { migrationCommand } = await import("./migrate-B4gngTLe.mjs");
|
|
12862
12727
|
await migrationCommand({
|
|
12863
12728
|
construct,
|
|
12864
12729
|
...name ? { name } : {}
|
|
@@ -12966,7 +12831,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
12966
12831
|
try {
|
|
12967
12832
|
const globalOptions = program.opts();
|
|
12968
12833
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12969
|
-
const { encryptionRotateCommand } = await import("./encryption-
|
|
12834
|
+
const { encryptionRotateCommand } = await import("./encryption-CKHjMpCr.mjs");
|
|
12970
12835
|
await encryptionRotateCommand(construct, options);
|
|
12971
12836
|
} catch (error) {
|
|
12972
12837
|
console.error(formatError(error));
|
|
@@ -12977,7 +12842,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
12977
12842
|
try {
|
|
12978
12843
|
const globalOptions = program.opts();
|
|
12979
12844
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12980
|
-
const { encryptionRetireCommand } = await import("./encryption-
|
|
12845
|
+
const { encryptionRetireCommand } = await import("./encryption-CKHjMpCr.mjs");
|
|
12981
12846
|
await encryptionRetireCommand(construct, key, options);
|
|
12982
12847
|
} catch (error) {
|
|
12983
12848
|
console.error(formatError(error));
|
|
@@ -13020,7 +12885,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
13020
12885
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
13021
12886
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
13022
12887
|
const { reconcileMissingSecrets } = await import("./reconcile--I7V4Klj.mjs");
|
|
13023
|
-
const { secretsStoreFor } = await import("./store-
|
|
12888
|
+
const { secretsStoreFor } = await import("./store-BaaonhkJ.mjs").then((n) => n.r);
|
|
13024
12889
|
const { workspace } = await loadWorkspaceConfig();
|
|
13025
12890
|
const stage = options.stage ?? workspace.stages.local;
|
|
13026
12891
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -13029,7 +12894,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
13029
12894
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
13030
12895
|
process.exit(1);
|
|
13031
12896
|
}
|
|
13032
|
-
const { derivedContainers } = await import("./sniffer-
|
|
12897
|
+
const { derivedContainers } = await import("./sniffer-49KPbDgq.mjs").then((n) => n.G);
|
|
13033
12898
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
13034
12899
|
if (!result) {
|
|
13035
12900
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -13043,8 +12908,8 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
13043
12908
|
process.exit(1);
|
|
13044
12909
|
}
|
|
13045
12910
|
});
|
|
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-
|
|
12911
|
+
program.command("deploy").description("Deploy a stage through its target").option("--target <name>", "Deploy target: dokploy, 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)").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) => {
|
|
12912
|
+
const { deployCli } = await import("./cli-Bogz-zEj.mjs");
|
|
13048
12913
|
const globalOptions = program.opts();
|
|
13049
12914
|
const code = await deployCli({
|
|
13050
12915
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -13077,7 +12942,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
13077
12942
|
try {
|
|
13078
12943
|
const globalOptions = program.opts();
|
|
13079
12944
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
13080
|
-
const { deployGithubCommand } = await import("./github-
|
|
12945
|
+
const { deployGithubCommand } = await import("./github-D-byNI7T.mjs");
|
|
13081
12946
|
await deployGithubCommand(options);
|
|
13082
12947
|
} catch (error) {
|
|
13083
12948
|
console.error(formatError(error));
|