@geekmidas/cli 10.0.0-alpha.154 → 10.0.0-alpha.156
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/README.md +10 -0
- package/dist/{GoDaddyProvider-CQ4YrB5P.mjs → GoDaddyProvider-C6kihaSF.mjs} +2 -2
- package/dist/{GoDaddyProvider-CQ4YrB5P.mjs.map → GoDaddyProvider-C6kihaSF.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-H59_cXa0.cjs → GoDaddyProvider-bCGjHmq_.cjs} +2 -2
- package/dist/{GoDaddyProvider-H59_cXa0.cjs.map → GoDaddyProvider-bCGjHmq_.cjs.map} +1 -1
- package/dist/{HostingerProvider-DBfHH0qT.mjs → HostingerProvider-CH3qcNOp.mjs} +2 -2
- package/dist/{HostingerProvider-DBfHH0qT.mjs.map → HostingerProvider-CH3qcNOp.mjs.map} +1 -1
- package/dist/{HostingerProvider-DecF9ELH.cjs → HostingerProvider-l-pKR3UU.cjs} +2 -2
- package/dist/{HostingerProvider-DecF9ELH.cjs.map → HostingerProvider-l-pKR3UU.cjs.map} +1 -1
- package/dist/{LegacyStateStore-DwsnVS-2.cjs → LegacyStateStore-BLTALNNX.cjs} +2 -2
- package/dist/{LegacyStateStore-DwsnVS-2.cjs.map → LegacyStateStore-BLTALNNX.cjs.map} +1 -1
- package/dist/{LegacyStateStore-Cz1ORtCx.mjs → LegacyStateStore-kxFSoD1P.mjs} +2 -2
- package/dist/{LegacyStateStore-Cz1ORtCx.mjs.map → LegacyStateStore-kxFSoD1P.mjs.map} +1 -1
- package/dist/{LocalStateStore-BZ5b3sw4.cjs → LocalStateStore-CCYbRnLH.cjs} +2 -2
- package/dist/{LocalStateStore-BZ5b3sw4.cjs.map → LocalStateStore-CCYbRnLH.cjs.map} +1 -1
- package/dist/{LocalStateStore-dz7OkMGm.mjs → LocalStateStore-CjA4PPQ8.mjs} +2 -2
- package/dist/{LocalStateStore-dz7OkMGm.mjs.map → LocalStateStore-CjA4PPQ8.mjs.map} +1 -1
- package/dist/{S3StateStore-Dw9Dx_vy.cjs → S3StateStore-B4Qu-euw.cjs} +4 -4
- package/dist/{S3StateStore-Dw9Dx_vy.cjs.map → S3StateStore-B4Qu-euw.cjs.map} +1 -1
- package/dist/{S3StateStore-Bda3aGqz.mjs → S3StateStore-nCDpz4Gi.mjs} +4 -4
- package/dist/{S3StateStore-Bda3aGqz.mjs.map → S3StateStore-nCDpz4Gi.mjs.map} +1 -1
- package/dist/{SSMStateStore-DPZpYnda.cjs → SSMStateStore-BI5sYXl-.cjs} +2 -2
- package/dist/{SSMStateStore-DPZpYnda.cjs.map → SSMStateStore-BI5sYXl-.cjs.map} +1 -1
- package/dist/{SSMStateStore-CcT6YJFd.mjs → SSMStateStore-VOk8OdaW.mjs} +2 -2
- package/dist/{SSMStateStore-CcT6YJFd.mjs.map → SSMStateStore-VOk8OdaW.mjs.map} +1 -1
- package/dist/{add-Bwek61Bv.cjs → add-B0VtHNY5.cjs} +4 -4
- package/dist/{add-Bwek61Bv.cjs.map → add-B0VtHNY5.cjs.map} +1 -1
- package/dist/{add-Feiof1dz.mjs → add-CtkmKzg0.mjs} +4 -4
- package/dist/{add-Feiof1dz.mjs.map → add-CtkmKzg0.mjs.map} +1 -1
- package/dist/{apps-CrQhJueV.cjs → apps-Bj3U4v3a.cjs} +3 -3
- package/dist/{apps-CrQhJueV.cjs.map → apps-Bj3U4v3a.cjs.map} +1 -1
- package/dist/{apps-C0kZVQpf.mjs → apps-CggMxcW9.mjs} +3 -3
- package/dist/{apps-C0kZVQpf.mjs.map → apps-CggMxcW9.mjs.map} +1 -1
- package/dist/{bundler-CV-UpPpb.cjs → bundler-CcK6uiP5.cjs} +6 -6
- package/dist/{bundler-CV-UpPpb.cjs.map → bundler-CcK6uiP5.cjs.map} +1 -1
- package/dist/{bundler-o10_P4d9.mjs → bundler-isYJiy1x.mjs} +6 -6
- package/dist/{bundler-o10_P4d9.mjs.map → bundler-isYJiy1x.mjs.map} +1 -1
- package/dist/{cli-BO4qIuTd.cjs → cli-B5k3qrO4.cjs} +4 -4
- package/dist/{cli-BO4qIuTd.cjs.map → cli-B5k3qrO4.cjs.map} +1 -1
- package/dist/{cli-KFbKAyaH.mjs → cli-BVHsKFMj.mjs} +4 -4
- package/dist/{cli-KFbKAyaH.mjs.map → cli-BVHsKFMj.mjs.map} +1 -1
- package/dist/{compose-djwQcfQD.cjs → compose-8_6I_Vhv.cjs} +4 -4
- package/dist/{compose-djwQcfQD.cjs.map → compose-8_6I_Vhv.cjs.map} +1 -1
- package/dist/{compose-C-k9AoH0.mjs → compose-DA4mTDZr.mjs} +7 -7
- package/dist/{compose-C-k9AoH0.mjs.map → compose-DA4mTDZr.mjs.map} +1 -1
- package/dist/{compose-D8fn0ebx.mjs → compose-DS0L5WGA.mjs} +4 -4
- package/dist/{compose-D8fn0ebx.mjs.map → compose-DS0L5WGA.mjs.map} +1 -1
- package/dist/{compose-CyGZOLcK.cjs → compose-Dxaaqmzz.cjs} +7 -7
- package/dist/{compose-CyGZOLcK.cjs.map → compose-Dxaaqmzz.cjs.map} +1 -1
- package/dist/{credentials-DY_Cu5Ht.mjs → credentials-DidjPIcM.mjs} +5 -5
- package/dist/{credentials-DY_Cu5Ht.mjs.map → credentials-DidjPIcM.mjs.map} +1 -1
- package/dist/{credentials-DixsjQcu.cjs → credentials-LLoLkwjB.cjs} +5 -5
- package/dist/{credentials-DixsjQcu.cjs.map → credentials-LLoLkwjB.cjs.map} +1 -1
- package/dist/deploy/public.cjs +10 -10
- package/dist/deploy/public.mjs +10 -10
- package/dist/{deploy-DsWQ8kTC.mjs → deploy-BEwiKZBG.mjs} +11 -11
- package/dist/{deploy-DsWQ8kTC.mjs.map → deploy-BEwiKZBG.mjs.map} +1 -1
- package/dist/{deploy-DzYn1rNl.cjs → deploy-DpQPFrhf.cjs} +11 -11
- package/dist/{deploy-DzYn1rNl.cjs.map → deploy-DpQPFrhf.cjs.map} +1 -1
- package/dist/{docker-CobK4rVH.mjs → docker-BeO31G2F.mjs} +4 -4
- package/dist/{docker-CobK4rVH.mjs.map → docker-BeO31G2F.mjs.map} +1 -1
- package/dist/{docker-DDHfNbM8.cjs → docker-BficHJMS.cjs} +4 -4
- package/dist/{docker-DDHfNbM8.cjs.map → docker-BficHJMS.cjs.map} +1 -1
- package/dist/{dokploy-2bH8IDTX.mjs → dokploy-BLZlrTf7.mjs} +2 -2
- package/dist/{dokploy-2bH8IDTX.mjs.map → dokploy-BLZlrTf7.mjs.map} +1 -1
- package/dist/{dokploy-CCgBM22f.cjs → dokploy-D6ktFzjP.cjs} +2 -2
- package/dist/{dokploy-CCgBM22f.cjs.map → dokploy-D6ktFzjP.cjs.map} +1 -1
- package/dist/{eas-CYs_Grue.mjs → eas-DdE1PH-Z.mjs} +2 -2
- package/dist/{eas-CYs_Grue.mjs.map → eas-DdE1PH-Z.mjs.map} +1 -1
- package/dist/{eas-8X90Y3ks.cjs → eas-Dh9LBIJi.cjs} +2 -2
- package/dist/{eas-8X90Y3ks.cjs.map → eas-Dh9LBIJi.cjs.map} +1 -1
- package/dist/{emit-Bj6XSivk.mjs → emit-C4KSXOeS.mjs} +18 -1
- package/dist/emit-C4KSXOeS.mjs.map +1 -0
- package/dist/{emit-CDC__ubE.cjs → emit-DiW0kbue.cjs} +18 -1
- package/dist/emit-DiW0kbue.cjs.map +1 -0
- package/dist/{encryption-Bm9pJAlv.mjs → encryption-1TTbMp4E.mjs} +2 -2
- package/dist/{encryption-Bm9pJAlv.mjs.map → encryption-1TTbMp4E.mjs.map} +1 -1
- package/dist/{encryption-BlvEsxDL.cjs → encryption-BDCTITiO.cjs} +2 -2
- package/dist/{encryption-BlvEsxDL.cjs.map → encryption-BDCTITiO.cjs.map} +1 -1
- package/dist/{engine-CVgtgVgf.mjs → engine-DBimzOpv.mjs} +8 -8
- package/dist/{engine-CVgtgVgf.mjs.map → engine-DBimzOpv.mjs.map} +1 -1
- package/dist/{engine-BL_34-M8.cjs → engine-DPVbMn1R.cjs} +8 -8
- package/dist/{engine-BL_34-M8.cjs.map → engine-DPVbMn1R.cjs.map} +1 -1
- package/dist/{github-Ci0PUjjW.cjs → github-Bur2rvbL.cjs} +6 -6
- package/dist/{github-Ci0PUjjW.cjs.map → github-Bur2rvbL.cjs.map} +1 -1
- package/dist/{github-j9ytVxlm.mjs → github-e4EXHIAd.mjs} +6 -6
- package/dist/{github-j9ytVxlm.mjs.map → github-e4EXHIAd.mjs.map} +1 -1
- package/dist/{googlePlay-CvYKw65D.mjs → googlePlay-CH5BrkCd.mjs} +4 -4
- package/dist/{googlePlay-CvYKw65D.mjs.map → googlePlay-CH5BrkCd.mjs.map} +1 -1
- package/dist/{googlePlay-jR8oRAzy.cjs → googlePlay-gCxefG71.cjs} +4 -4
- package/dist/{googlePlay-jR8oRAzy.cjs.map → googlePlay-gCxefG71.cjs.map} +1 -1
- package/dist/index.cjs +222 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +222 -68
- package/dist/index.mjs.map +1 -1
- package/dist/{local-5DkpRnl2.cjs → local-B9psHtjC.cjs} +2 -2
- package/dist/{local-5DkpRnl2.cjs.map → local-B9psHtjC.cjs.map} +1 -1
- package/dist/{local-pFyO21et.mjs → local-qbOxBD9I.mjs} +2 -2
- package/dist/{local-pFyO21et.mjs.map → local-qbOxBD9I.mjs.map} +1 -1
- package/dist/{migrate-DKep6Tol.cjs → migrate-B3T5iHyR.cjs} +2 -2
- package/dist/{migrate-DKep6Tol.cjs.map → migrate-B3T5iHyR.cjs.map} +1 -1
- package/dist/{migrate-CPoStsvd.cjs → migrate-BqjeJXXX.cjs} +4 -4
- package/dist/{migrate-CPoStsvd.cjs.map → migrate-BqjeJXXX.cjs.map} +1 -1
- package/dist/{migrate-C1SSvzNZ.mjs → migrate-Cg6ogGbR.mjs} +2 -2
- package/dist/{migrate-C1SSvzNZ.mjs.map → migrate-Cg6ogGbR.mjs.map} +1 -1
- package/dist/{migrate-Dv8Qk0jw.mjs → migrate-DJ6o58e4.mjs} +4 -4
- package/dist/{migrate-Dv8Qk0jw.mjs.map → migrate-DJ6o58e4.mjs.map} +1 -1
- package/dist/{notes-Dwz8jmoh.mjs → notes-CV9tczQF.mjs} +2 -2
- package/dist/{notes-Dwz8jmoh.mjs.map → notes-CV9tczQF.mjs.map} +1 -1
- package/dist/{notes-CFCdqMQ4.cjs → notes-WW3tkekq.cjs} +2 -2
- package/dist/{notes-CFCdqMQ4.cjs.map → notes-WW3tkekq.cjs.map} +1 -1
- package/dist/{projectBucket-UCuebUhW.cjs → projectBucket-BCutOEvv.cjs} +2 -2
- package/dist/{projectBucket-UCuebUhW.cjs.map → projectBucket-BCutOEvv.cjs.map} +1 -1
- package/dist/{projectBucket-Daak2eUn.mjs → projectBucket-CRAuyO-t.mjs} +2 -2
- package/dist/{projectBucket-Daak2eUn.mjs.map → projectBucket-CRAuyO-t.mjs.map} +1 -1
- package/dist/{publish-DibqEZ2a.mjs → publish-BJyVR2lE.mjs} +2 -2
- package/dist/{publish-DibqEZ2a.mjs.map → publish-BJyVR2lE.mjs.map} +1 -1
- package/dist/{publish-CBuMAY04.cjs → publish-BcPp-_qQ.cjs} +2 -2
- package/dist/{publish-CBuMAY04.cjs.map → publish-BcPp-_qQ.cjs.map} +1 -1
- package/dist/reconcile/public.cjs +1 -1
- package/dist/reconcile/public.d.cts +3 -1
- package/dist/reconcile/public.d.cts.map +1 -1
- package/dist/reconcile/public.d.mts +3 -1
- package/dist/reconcile/public.d.mts.map +1 -1
- package/dist/reconcile/public.mjs +1 -1
- package/dist/{resolve-BF4-f30m.mjs → resolve-CH_DwRLq.mjs} +4 -4
- package/dist/{resolve-BF4-f30m.mjs.map → resolve-CH_DwRLq.mjs.map} +1 -1
- package/dist/{resolve-BjgqLxcZ.cjs → resolve-CwJ_ScjX.cjs} +4 -4
- package/dist/{resolve-BjgqLxcZ.cjs.map → resolve-CwJ_ScjX.cjs.map} +1 -1
- package/dist/{rollback-BXkzAkAh.cjs → rollback-BBdR1h3T.cjs} +5 -5
- package/dist/{rollback-BXkzAkAh.cjs.map → rollback-BBdR1h3T.cjs.map} +1 -1
- package/dist/{rollback-DBewZGz9.mjs → rollback-Bpuaon23.mjs} +5 -5
- package/dist/{rollback-DBewZGz9.mjs.map → rollback-Bpuaon23.mjs.map} +1 -1
- package/dist/{s3-CR8gEP-7.mjs → s3-C5pbgCxY.mjs} +2 -2
- package/dist/{s3-CR8gEP-7.mjs.map → s3-C5pbgCxY.mjs.map} +1 -1
- package/dist/{s3-Cp2eA2v_.cjs → s3-Cx5XUsK2.cjs} +2 -2
- package/dist/{s3-Cp2eA2v_.cjs.map → s3-Cx5XUsK2.cjs.map} +1 -1
- package/dist/{serverSetup-B9BPzpUQ.mjs → serverSetup-B9sp6uWM.mjs} +5 -5
- package/dist/{serverSetup-B9BPzpUQ.mjs.map → serverSetup-B9sp6uWM.mjs.map} +1 -1
- package/dist/{serverSetup-0eV8bl75.cjs → serverSetup-CQ96N5tn.cjs} +5 -5
- package/dist/{serverSetup-0eV8bl75.cjs.map → serverSetup-CQ96N5tn.cjs.map} +1 -1
- package/dist/{sniffer-0wN20Fuy.cjs → sniffer-CSgeus1c.cjs} +6 -6
- package/dist/{sniffer-0wN20Fuy.cjs.map → sniffer-CSgeus1c.cjs.map} +1 -1
- package/dist/{sniffer-C2yPOlOW.mjs → sniffer-DmigJFSC.mjs} +6 -6
- package/dist/{sniffer-C2yPOlOW.mjs.map → sniffer-DmigJFSC.mjs.map} +1 -1
- package/dist/{snsSubscriptions-DR3drFJK.cjs → snsSubscriptions-PcvjBC8J.cjs} +2 -2
- package/dist/{snsSubscriptions-DR3drFJK.cjs.map → snsSubscriptions-PcvjBC8J.cjs.map} +1 -1
- package/dist/{snsSubscriptions-CtOrP15M.mjs → snsSubscriptions-UJrUbrPC.mjs} +2 -2
- package/dist/{snsSubscriptions-CtOrP15M.mjs.map → snsSubscriptions-UJrUbrPC.mjs.map} +1 -1
- package/dist/{sst-fbVtyw_h.cjs → sst-BX_dHQYC.cjs} +21 -5
- package/dist/{sst-fbVtyw_h.cjs.map → sst-BX_dHQYC.cjs.map} +1 -1
- package/dist/{sst-BF85FnBg.mjs → sst-CVBDMb9x.mjs} +21 -5
- package/dist/{sst-BF85FnBg.mjs.map → sst-CVBDMb9x.mjs.map} +1 -1
- package/dist/{stack-CB0U6NiV.cjs → stack-B8JVuA2N.cjs} +35 -14
- package/dist/stack-B8JVuA2N.cjs.map +1 -0
- package/dist/{stack-ZV2le8OB.mjs → stack-BrqdoNWg.mjs} +35 -14
- package/dist/stack-BrqdoNWg.mjs.map +1 -0
- package/dist/{stage-B6bQKczF.cjs → stage-BtX7qbNh.cjs} +5 -5
- package/dist/{stage-B6bQKczF.cjs.map → stage-BtX7qbNh.cjs.map} +1 -1
- package/dist/{stage-CPtCIwru.mjs → stage-DfDPXyKq.mjs} +5 -5
- package/dist/{stage-CPtCIwru.mjs.map → stage-DfDPXyKq.mjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/dist/{terminal-b_4H0MHd.mjs → terminal-BG75hJ72.mjs} +2 -2
- package/dist/{terminal-b_4H0MHd.mjs.map → terminal-BG75hJ72.mjs.map} +1 -1
- package/dist/{terminal-CyB5bRPt.cjs → terminal-Cz-uD2VK.cjs} +2 -2
- package/dist/{terminal-CyB5bRPt.cjs.map → terminal-Cz-uD2VK.cjs.map} +1 -1
- package/package.json +15 -15
- package/dist/emit-Bj6XSivk.mjs.map +0 -1
- package/dist/emit-CDC__ubE.cjs.map +0 -1
- package/dist/stack-CB0U6NiV.cjs.map +0 -1
- package/dist/stack-ZV2le8OB.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env -S npx tsx
|
|
2
2
|
import { n as __require, t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
3
3
|
import { n as isGkmError, t as GkmError } from "./errors-D8Gwp5kU.mjs";
|
|
4
|
-
import { B as FileSecretsStore, E as providerOf, F as toEmbeddableSecrets, I as withCustomSecret, N as maskPassword, T as eventsBackendFor, U as getKeyPath, X as deployIdentity, _t as storeGoDaddyToken, at as DEFAULT_TIMEOUT_MS, ct as getCredentialsPath, dt as getDokployToken, gt as storeDokployCredentials, ht as removeGoDaddyCredentials, k as secretsStoreFor, lt as getDokployCredentials, mt as removeDokployCredentials, pt as readCredentials, q as projectKey, rt as CommandFailed, ut as getDokployRegistryId, vt as storeHostingerToken, w as cacheBackendFor } from "./credentials-
|
|
5
|
-
import { c as edgeRef, d as dockerHost, h as projectNetwork, i as ComposePushNeedsBuild, l as removeEdgeRoutes, m as dockerCompose, o as stackOverrideFile, p as sshTarget, r as ComposePinNeedsPull, t as composeTarget, u as composeServer } from "./compose-
|
|
4
|
+
import { B as FileSecretsStore, E as providerOf, F as toEmbeddableSecrets, I as withCustomSecret, N as maskPassword, T as eventsBackendFor, U as getKeyPath, X as deployIdentity, _t as storeGoDaddyToken, at as DEFAULT_TIMEOUT_MS, ct as getCredentialsPath, dt as getDokployToken, gt as storeDokployCredentials, ht as removeGoDaddyCredentials, k as secretsStoreFor, lt as getDokployCredentials, mt as removeDokployCredentials, pt as readCredentials, q as projectKey, rt as CommandFailed, ut as getDokployRegistryId, vt as storeHostingerToken, w as cacheBackendFor } from "./credentials-DidjPIcM.mjs";
|
|
5
|
+
import { c as edgeRef, d as dockerHost, h as projectNetwork, i as ComposePushNeedsBuild, l as removeEdgeRoutes, m as dockerCompose, o as stackOverrideFile, p as sshTarget, r as ComposePinNeedsPull, t as composeTarget, u as composeServer } from "./compose-DA4mTDZr.mjs";
|
|
6
6
|
import { A as InvalidStages, F as stageProblems, P as deployedProblems, R as stageSampleRate, a as allConstructGlobs, d as getAppGkmConfig, j as TEST_STAGE, u as getAppBuildOrder } from "./workspace-DFGsrjGD.mjs";
|
|
7
|
-
import { $ as imageBuildCredentials, At as TELEMETRY_CONTAINER, Ct as postgresDatabaseNames, Ft as scopeTelemetryEnv, Jt as runTime, Kt as backupFile, Lt as surfaceClientTraced, Nt as appTelemetry, Rt as telemetryOf, S as ensureLocalAuthority, Tt as quoteIdentifier, Wt as backupDatabases, Yt as stageBackups, _ as forgetState, ct as processorUnits, d as backendsOf$1, dt as BACKUPS_URL_KEY, et as isImageBuild, f as constructGlobs, ft as RUNNER_PATH, kt as stageEnv$1, lt as workerUnits, m as reconcileWorkspace, n as appProcess, o as processEnv, ot as isUnder, p as derivedContainers, qt as backupsPrefix, u as FAKE_ENV, ut as BACKUPS_SERVICE, w as localAuthorityPaths, x as pgClient } from "./apps-
|
|
7
|
+
import { $ as imageBuildCredentials, At as TELEMETRY_CONTAINER, Ct as postgresDatabaseNames, Ft as scopeTelemetryEnv, Jt as runTime, Kt as backupFile, Lt as surfaceClientTraced, Nt as appTelemetry, Rt as telemetryOf, S as ensureLocalAuthority, Tt as quoteIdentifier, Wt as backupDatabases, Yt as stageBackups, _ as forgetState, ct as processorUnits, d as backendsOf$1, dt as BACKUPS_URL_KEY, et as isImageBuild, f as constructGlobs, ft as RUNNER_PATH, kt as stageEnv$1, lt as workerUnits, m as reconcileWorkspace, n as appProcess, o as processEnv, ot as isUnder, p as derivedContainers, qt as backupsPrefix, u as FAKE_ENV, ut as BACKUPS_SERVICE, w as localAuthorityPaths, x as pgClient } from "./apps-CggMxcW9.mjs";
|
|
8
8
|
import { o as email } from "./schemas-BCwKKA42.mjs";
|
|
9
|
-
import { B as fakeKey, H as portsOf, K as LOCAL_LOGS_EMAIL, W as primaryPortKey, _ as readLocalCredentials, a as createEntryWrapper, c as loadEnvFiles, d as prepareEntryCredentials, i as createCredentialsPreload, l as loadPortState, o as findAvailablePort, s as isPortAvailable, t as CLUSTER_DATABASE, u as loadSecretsForApp, z as describeServices } from "./compose-
|
|
9
|
+
import { B as fakeKey, H as portsOf, K as LOCAL_LOGS_EMAIL, W as primaryPortKey, _ as readLocalCredentials, a as createEntryWrapper, c as loadEnvFiles, d as prepareEntryCredentials, i as createCredentialsPreload, l as loadPortState, o as findAvailablePort, s as isPortAvailable, t as CLUSTER_DATABASE, u as loadSecretsForApp, z as describeServices } from "./compose-DS0L5WGA.mjs";
|
|
10
10
|
import { n as assertTestCredentials, t as SubscriberGenerator } from "./SubscriberGenerator-CzPrixYu.mjs";
|
|
11
11
|
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, v as protectedSubdomains, y as wildcardSite } from "./config-BLrAd7Of.mjs";
|
|
12
12
|
import { a as isCacheBackend } from "./types-Y1NfWlyG.mjs";
|
|
13
13
|
import { a as startTelemetryCode, c as parseTelemetryFlag, i as routeTelemetry, n as runtimeFor, o as telemetryFor, r as mountRequestSpansCode, s as writeTelemetryModule, t as EndpointGenerator } from "./EndpointGenerator-CusLH-9S.mjs";
|
|
14
14
|
import { i as discover, r as consumedBy, u as withOwningTsconfigJsx, v as ConstructGenerator } from "./discover-DbDrCQ8h.mjs";
|
|
15
|
-
import { d as assertDevServicesFlag } from "./notes-
|
|
16
|
-
import { D as parseDigests, a as composeProject, c as derivedCredentials, d as stackDir, f as stackPlan, k as pinnedRef, v as EDGE_PROJECT } from "./stack-
|
|
17
|
-
import { _ as processorInfo, d as workerEntryDir, f as QueueGenerator, g as processorEntryDir, h as processorBundleName, i as dockerCommand, l as WorkerGenerator, m as ProcessorGenerator, p as CronGenerator, u as workerBundleName } from "./docker-
|
|
18
|
-
import { b as awsEndpoint, x as awsProvisioningCredentials, y as awsClientConfig } from "./snsSubscriptions-
|
|
15
|
+
import { d as assertDevServicesFlag } from "./notes-CV9tczQF.mjs";
|
|
16
|
+
import { D as parseDigests, a as composeProject, c as derivedCredentials, d as stackDir, f as stackPlan, k as pinnedRef, v as EDGE_PROJECT } from "./stack-BrqdoNWg.mjs";
|
|
17
|
+
import { _ as processorInfo, d as workerEntryDir, f as QueueGenerator, g as processorEntryDir, h as processorBundleName, i as dockerCommand, l as WorkerGenerator, m as ProcessorGenerator, p as CronGenerator, u as workerBundleName } from "./docker-BeO31G2F.mjs";
|
|
18
|
+
import { b as awsEndpoint, x as awsProvisioningCredentials, y as awsClientConfig } from "./snsSubscriptions-UJrUbrPC.mjs";
|
|
19
19
|
import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
|
|
20
20
|
import { a as describeHolder, c as withAppPorts, i as assignAppPorts, o as describeMove, r as appTag, s as holderOf, t as APP_TAG_ENV } from "./appPorts-BoXMwolc.mjs";
|
|
21
21
|
import { a as opensKmsKeys, n as driversFor, r as eventsBackendsIn, t as cacheBackendsIn } from "./drivers-uxLBq3e3.mjs";
|
|
22
|
-
import { n as withHandlers, t as manifestModule } from "./emit-
|
|
23
|
-
import { t as LocalSandbox } from "./local-
|
|
24
|
-
import { S as createStateStore, k as keyFingerprint, n as sniffAppEnvironment, o as DokployApi } from "./sniffer-
|
|
25
|
-
import { t as deploy$1 } from "./deploy-
|
|
22
|
+
import { n as withHandlers, t as manifestModule } from "./emit-C4KSXOeS.mjs";
|
|
23
|
+
import { t as LocalSandbox } from "./local-qbOxBD9I.mjs";
|
|
24
|
+
import { S as createStateStore, k as keyFingerprint, n as sniffAppEnvironment, o as DokployApi } from "./sniffer-DmigJFSC.mjs";
|
|
25
|
+
import { t as deploy$1 } from "./deploy-BEwiKZBG.mjs";
|
|
26
26
|
import { a as dnsResources, l as describeActor } from "./seeds-BCC8vAXR.mjs";
|
|
27
27
|
import { o as loadCredentialSchemas, t as CredentialsInvalid } from "./credentialSchemas-mz9QZTYh.mjs";
|
|
28
|
-
import { t as LocalStateStore } from "./LocalStateStore-
|
|
28
|
+
import { t as LocalStateStore } from "./LocalStateStore-CjA4PPQ8.mjs";
|
|
29
29
|
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";
|
|
30
30
|
import { a as writeTestHarness, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, t as TEST_READY_ENV } from "./ready-g25dcGzK.mjs";
|
|
31
31
|
import { createRequire } from "node:module";
|
|
@@ -55,7 +55,7 @@ import { Readable as Readable$1 } from "stream";
|
|
|
55
55
|
import crypto from "crypto";
|
|
56
56
|
import { Topic } from "@geekmidas/constructs/topic";
|
|
57
57
|
//#region package.json
|
|
58
|
-
var version = "10.0.0-alpha.
|
|
58
|
+
var version = "10.0.0-alpha.156";
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region src/prompt.ts
|
|
61
61
|
/**
|
|
@@ -138,7 +138,7 @@ const logger$8 = console;
|
|
|
138
138
|
* Validate Dokploy token by making a test API call
|
|
139
139
|
*/
|
|
140
140
|
async function validateDokployToken(endpoint, token) {
|
|
141
|
-
const { DokployApi } = await import("./sniffer-
|
|
141
|
+
const { DokployApi } = await import("./sniffer-DmigJFSC.mjs").then((n) => n.c);
|
|
142
142
|
return new DokployApi({
|
|
143
143
|
baseUrl: endpoint,
|
|
144
144
|
token
|
|
@@ -2198,7 +2198,7 @@ async function execCommand(commandArgs, options = {}, stageDeps) {
|
|
|
2198
2198
|
const cwd = options.cwd ?? process.cwd();
|
|
2199
2199
|
if (!commandArgs[0]) throw new NoCommandSpecified();
|
|
2200
2200
|
if (options.stage && !isImageBuild()) {
|
|
2201
|
-
const { execOnStage } = await import("./stage-
|
|
2201
|
+
const { execOnStage } = await import("./stage-DfDPXyKq.mjs").then((n) => n.n);
|
|
2202
2202
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
2203
2203
|
const { workspace } = await loadWorkspaceConfig(cwd);
|
|
2204
2204
|
if (options.stage !== workspace.stages.local) {
|
|
@@ -2773,9 +2773,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
2773
2773
|
for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
2774
2774
|
logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
2775
2775
|
if (options.migrate || options.seed) {
|
|
2776
|
-
const { prepareDevDatabases } = await import("./migrate-
|
|
2776
|
+
const { prepareDevDatabases } = await import("./migrate-DJ6o58e4.mjs");
|
|
2777
2777
|
await prepareDevDatabases(workspace, secretsEnv, { seed: !!options.seed });
|
|
2778
|
-
} else await import("./migrate-
|
|
2778
|
+
} else await import("./migrate-DJ6o58e4.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
2779
2779
|
logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
2780
2780
|
});
|
|
2781
2781
|
const appUrls = {};
|
|
@@ -3564,7 +3564,7 @@ function servedWebSocketApi(declared, workspaceRoot, appRoot) {
|
|
|
3564
3564
|
return Object.values(declared).find((d) => d.kind === "websocket-api" && resolve(workspaceRoot, d.path) === resolve(appRoot));
|
|
3565
3565
|
}
|
|
3566
3566
|
/** An import specifier for `file`, from `outputDir`, as the bundle sees it. */
|
|
3567
|
-
function specifierOf(outputDir, file) {
|
|
3567
|
+
function specifierOf$1(outputDir, file) {
|
|
3568
3568
|
const rel = relative(outputDir, file).replace(/\.ts$/, ".js");
|
|
3569
3569
|
return rel.startsWith(".") ? rel : `./${rel}`;
|
|
3570
3570
|
}
|
|
@@ -3582,9 +3582,9 @@ function specifierOf(outputDir, file) {
|
|
|
3582
3582
|
*/
|
|
3583
3583
|
async function writeSurfaceEntry(outputDir, source, served = []) {
|
|
3584
3584
|
await mkdir(outputDir, { recursive: true });
|
|
3585
|
-
const specifier = specifierOf(outputDir, source.file);
|
|
3585
|
+
const specifier = specifierOf$1(outputDir, source.file);
|
|
3586
3586
|
const modules = served.filter((file) => file !== source.file);
|
|
3587
|
-
const imports = modules.map((file, index) => `import * as served${index} from '${specifierOf(outputDir, file)}';\n`).join("");
|
|
3587
|
+
const imports = modules.map((file, index) => `import * as served${index} from '${specifierOf$1(outputDir, file)}';\n`).join("");
|
|
3588
3588
|
const options = modules.length ? `{ envParser, context: snifferContext, modules: [${modules.map((_, index) => `served${index}`).join(", ")}] }` : "{ envParser, context: snifferContext }";
|
|
3589
3589
|
await writeFile(join(outputDir, "app.ts"), `/**
|
|
3590
3590
|
* Generated entry for a surface that serves itself.
|
|
@@ -3682,6 +3682,91 @@ ${shutdown}`);
|
|
|
3682
3682
|
return path;
|
|
3683
3683
|
}
|
|
3684
3684
|
//#endregion
|
|
3685
|
+
//#region src/build/websocketLambdas.ts
|
|
3686
|
+
/**
|
|
3687
|
+
* The route keys a surface on API Gateway always has, declared or not: the
|
|
3688
|
+
* adaptor's `$connect` checks the Origin and writes the connection table, and
|
|
3689
|
+
* its `$disconnect` deletes the row — so a surface with no connect handler
|
|
3690
|
+
* still has a table a broadcast can read.
|
|
3691
|
+
*/
|
|
3692
|
+
const LIFECYCLE = ["$connect", "$disconnect"];
|
|
3693
|
+
/**
|
|
3694
|
+
* One Lambda per route of a WebSocket surface, for API Gateway.
|
|
3695
|
+
*
|
|
3696
|
+
* Each imports the surface and its own route — nothing else — and serves it
|
|
3697
|
+
* through `AmazonApiGatewayWebSocket`, so a route's Lambda reaches what that
|
|
3698
|
+
* route depends on, as an endpoint's does. `$connect` and `$disconnect` are
|
|
3699
|
+
* written whether the surface declares them or not.
|
|
3700
|
+
*
|
|
3701
|
+
* `outputDir` is the app's `.gkm/aws`; the handlers go under `websocket/`,
|
|
3702
|
+
* which is emptied first so a deleted route's handler goes with it. The
|
|
3703
|
+
* handler paths returned are measured from `workspaceRoot`, as an endpoint's.
|
|
3704
|
+
*/
|
|
3705
|
+
async function writeWebSocketLambdas(input) {
|
|
3706
|
+
const { outputDir, appRoot, workspaceRoot, surface, declaration } = input;
|
|
3707
|
+
const dir = join(outputDir, "websocket");
|
|
3708
|
+
await rm(dir, {
|
|
3709
|
+
recursive: true,
|
|
3710
|
+
force: true
|
|
3711
|
+
});
|
|
3712
|
+
await mkdir(dir, { recursive: true });
|
|
3713
|
+
const declared = new Map((declaration.routes ?? []).map((route) => [route.action, route]));
|
|
3714
|
+
const actions = [...LIFECYCLE, ...[...declared.keys()].filter((action) => !LIFECYCLE.includes(action))];
|
|
3715
|
+
const infos = [];
|
|
3716
|
+
const taken = /* @__PURE__ */ new Set();
|
|
3717
|
+
for (const action of actions) {
|
|
3718
|
+
const route = declared.get(action);
|
|
3719
|
+
let name = fileNameOf(action);
|
|
3720
|
+
for (let n = 2; taken.has(name); n++) name = `${fileNameOf(action)}-${n}`;
|
|
3721
|
+
taken.add(name);
|
|
3722
|
+
const file = join(dir, `${name}.ts`);
|
|
3723
|
+
const [source, exportName] = route?.handler.split("#") ?? [];
|
|
3724
|
+
await writeFile(file, lambdaSource({
|
|
3725
|
+
from: dirname(file),
|
|
3726
|
+
surface,
|
|
3727
|
+
route: source && exportName ? {
|
|
3728
|
+
file: resolve(appRoot, source),
|
|
3729
|
+
exportName
|
|
3730
|
+
} : void 0
|
|
3731
|
+
}));
|
|
3732
|
+
infos.push({
|
|
3733
|
+
surface: declaration.id,
|
|
3734
|
+
action,
|
|
3735
|
+
handler: relative(workspaceRoot, file).replace(/\.ts$/, ".handler")
|
|
3736
|
+
});
|
|
3737
|
+
}
|
|
3738
|
+
return infos;
|
|
3739
|
+
}
|
|
3740
|
+
/**
|
|
3741
|
+
* A file name for a route key: `$connect` → `connect`, `chat.send` →
|
|
3742
|
+
* `route-chat_send`, so no action can take a lifecycle route's file, and a
|
|
3743
|
+
* handler path has one dot — the one before its export.
|
|
3744
|
+
*/
|
|
3745
|
+
function fileNameOf(action) {
|
|
3746
|
+
if (action.startsWith("$")) return action.slice(1);
|
|
3747
|
+
return `route-${action.replace(/[^A-Za-z0-9-]/g, "_")}`;
|
|
3748
|
+
}
|
|
3749
|
+
function specifierOf(from, file) {
|
|
3750
|
+
const rel = relative(from, file).replace(/\.ts$/, ".js");
|
|
3751
|
+
return rel.startsWith(".") ? rel : `./${rel}`;
|
|
3752
|
+
}
|
|
3753
|
+
function lambdaSource(input) {
|
|
3754
|
+
const { from, surface, route } = input;
|
|
3755
|
+
const routeImport = route ? `import { ${route.exportName} as route } from '${specifierOf(from, route.file)}';\n` : "";
|
|
3756
|
+
const modules = route ? "[{ route }]" : "[]";
|
|
3757
|
+
return `/**
|
|
3758
|
+
* Generated by 'gkm build --provider aws': one route of a WebSocket surface,
|
|
3759
|
+
* as API Gateway invokes it.
|
|
3760
|
+
*/
|
|
3761
|
+
import { AmazonApiGatewayWebSocket } from '@geekmidas/constructs/aws';
|
|
3762
|
+
import { ${surface.exportName} as surface } from '${specifierOf(from, surface.file)}';
|
|
3763
|
+
${routeImport}
|
|
3764
|
+
const adaptor = new AmazonApiGatewayWebSocket(surface, { modules: ${modules} });
|
|
3765
|
+
|
|
3766
|
+
export const handler = adaptor.handler;
|
|
3767
|
+
`;
|
|
3768
|
+
}
|
|
3769
|
+
//#endregion
|
|
3685
3770
|
//#region src/build/index.ts
|
|
3686
3771
|
const logger$4 = console;
|
|
3687
3772
|
/**
|
|
@@ -3840,7 +3925,8 @@ async function writeManifest(input) {
|
|
|
3840
3925
|
crons: builds.flatMap((build) => build.crons),
|
|
3841
3926
|
queues: builds.flatMap((build) => build.queues),
|
|
3842
3927
|
subscribers: builds.flatMap((build) => build.subscribers),
|
|
3843
|
-
processors: builds.flatMap((build) => build.processors ?? [])
|
|
3928
|
+
processors: builds.flatMap((build) => build.processors ?? []),
|
|
3929
|
+
websocketRoutes: builds.flatMap((build) => build.websocketRoutes ?? [])
|
|
3844
3930
|
});
|
|
3845
3931
|
const path = join(manifestDir, `${target}.ts`);
|
|
3846
3932
|
await writeFile(path, manifestModule(folded, backends));
|
|
@@ -3893,7 +3979,7 @@ async function buildApp(input) {
|
|
|
3893
3979
|
...telemetry ? { telemetry } : {},
|
|
3894
3980
|
trustedOriginsKey: provideKey(selfServing.id, "trustedOrigins")
|
|
3895
3981
|
});
|
|
3896
|
-
const { bundleServer } = await import("./bundler-
|
|
3982
|
+
const { bundleServer } = await import("./bundler-isYJiy1x.mjs");
|
|
3897
3983
|
await bundleServer({
|
|
3898
3984
|
entryPoint,
|
|
3899
3985
|
outputDir: join(outputDir, "dist"),
|
|
@@ -3904,6 +3990,29 @@ async function buildApp(input) {
|
|
|
3904
3990
|
});
|
|
3905
3991
|
logger$4.log(`✅ Bundle complete: .gkm/server/dist/server.mjs`);
|
|
3906
3992
|
}
|
|
3993
|
+
const surface = declared[selfServing.id];
|
|
3994
|
+
if (target === "aws" && surface?.kind === "websocket-api") {
|
|
3995
|
+
const websocketRoutes = await writeWebSocketLambdas({
|
|
3996
|
+
outputDir: join(appRoot, ".gkm", "aws"),
|
|
3997
|
+
appRoot,
|
|
3998
|
+
workspaceRoot,
|
|
3999
|
+
surface: selfServing.source,
|
|
4000
|
+
declaration: surface
|
|
4001
|
+
});
|
|
4002
|
+
logger$4.log(`Generated ${websocketRoutes.length} API Gateway handlers for ${selfServing.id}`);
|
|
4003
|
+
return {
|
|
4004
|
+
selfServing: selfServing.id,
|
|
4005
|
+
built: {
|
|
4006
|
+
surface: selfServing.id,
|
|
4007
|
+
routes: [],
|
|
4008
|
+
functions: [],
|
|
4009
|
+
crons: [],
|
|
4010
|
+
subscribers: [],
|
|
4011
|
+
queues: [],
|
|
4012
|
+
websocketRoutes
|
|
4013
|
+
}
|
|
4014
|
+
};
|
|
4015
|
+
}
|
|
3907
4016
|
return { selfServing: selfServing.id };
|
|
3908
4017
|
}
|
|
3909
4018
|
const derived = ownersContext({
|
|
@@ -4138,7 +4247,7 @@ async function buildWorkers(input) {
|
|
|
4138
4247
|
});
|
|
4139
4248
|
logger$4.log(`Generated worker ${worker.id}: ${crons.length} crons, ${queues.length} queues, ${subscribers.length} subscribers`);
|
|
4140
4249
|
if (!input.bundle) continue;
|
|
4141
|
-
const { bundleServer } = await import("./bundler-
|
|
4250
|
+
const { bundleServer } = await import("./bundler-isYJiy1x.mjs");
|
|
4142
4251
|
const outfile = workerBundleName(worker.id);
|
|
4143
4252
|
await bundleServer({
|
|
4144
4253
|
entryPoint,
|
|
@@ -4180,7 +4289,7 @@ async function buildProcessors(input) {
|
|
|
4180
4289
|
for (const { key, construct } of processors) infos.push(await processorInfo(key, construct, handler, context));
|
|
4181
4290
|
logger$4.log(`Generated processors for ${fileServerId}: ${processors.map(({ key }) => key).join(", ")}`);
|
|
4182
4291
|
if (!input.bundle) continue;
|
|
4183
|
-
const { bundleServer } = await import("./bundler-
|
|
4292
|
+
const { bundleServer } = await import("./bundler-isYJiy1x.mjs");
|
|
4184
4293
|
const outfile = processorBundleName(fileServerId);
|
|
4185
4294
|
await bundleServer({
|
|
4186
4295
|
entryPoint,
|
|
@@ -4263,7 +4372,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
4263
4372
|
let masterKey;
|
|
4264
4373
|
if (context.production?.bundle && !skipBundle) {
|
|
4265
4374
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
4266
|
-
const { bundleServer } = await import("./bundler-
|
|
4375
|
+
const { bundleServer } = await import("./bundler-isYJiy1x.mjs");
|
|
4267
4376
|
const allConstructs = [
|
|
4268
4377
|
...endpoints.map((e) => e.construct),
|
|
4269
4378
|
...functions.map((f) => f.construct),
|
|
@@ -6084,6 +6193,23 @@ const PNPM_VERSION = "pnpm@10.13.1";
|
|
|
6084
6193
|
/** The Biome config schema matching the Biome the scaffold installs. */
|
|
6085
6194
|
const BIOME_SCHEMA = `https://biomejs.dev/schemas/${DEPENDENCY_VERSIONS["@biomejs/biome"].replace(/^[~^]/, "")}/schema.json`;
|
|
6086
6195
|
//#endregion
|
|
6196
|
+
//#region src/init/versionRange.ts
|
|
6197
|
+
/**
|
|
6198
|
+
* The range `gkm init` writes for a `@geekmidas/*` package at `version`.
|
|
6199
|
+
*
|
|
6200
|
+
* A stable version gets `~`: its patches. A prerelease gets every later
|
|
6201
|
+
* prerelease of the same release and stops below the release itself:
|
|
6202
|
+
* `>=10.0.0-alpha.152 <10.0.0`. Not `~10.0.0-alpha.152`, which semver also
|
|
6203
|
+
* satisfies with `10.0.0` — and a `10.0.0`, published by mistake from the v9
|
|
6204
|
+
* branch, is on npm. A project scaffolded on the alpha line installed that
|
|
6205
|
+
* week-older release instead of the alpha it was scaffolded with (#371).
|
|
6206
|
+
*/
|
|
6207
|
+
function versionRange(version) {
|
|
6208
|
+
const prerelease = /^(\d+\.\d+\.\d+)-[0-9A-Za-z.-]+$/.exec(version);
|
|
6209
|
+
if (!prerelease) return `~${version}`;
|
|
6210
|
+
return `>=${version} <${prerelease[1]}`;
|
|
6211
|
+
}
|
|
6212
|
+
//#endregion
|
|
6087
6213
|
//#region src/init/versions.ts
|
|
6088
6214
|
const require$2 = createRequire(import.meta.url);
|
|
6089
6215
|
function loadPackageJson() {
|
|
@@ -6100,26 +6226,26 @@ function loadPackageJson() {
|
|
|
6100
6226
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
6101
6227
|
*/
|
|
6102
6228
|
const GEEKMIDAS_VERSIONS = {
|
|
6103
|
-
"@geekmidas/audit": "
|
|
6104
|
-
"@geekmidas/auth": "
|
|
6105
|
-
"@geekmidas/cache": "
|
|
6106
|
-
"@geekmidas/client": "
|
|
6107
|
-
"@geekmidas/cloud": "
|
|
6108
|
-
"@geekmidas/constructs": "
|
|
6109
|
-
"@geekmidas/db": "
|
|
6110
|
-
"@geekmidas/emailkit": "
|
|
6111
|
-
"@geekmidas/envkit": "
|
|
6112
|
-
"@geekmidas/errors": "
|
|
6113
|
-
"@geekmidas/events": "
|
|
6114
|
-
"@geekmidas/logger": "
|
|
6115
|
-
"@geekmidas/manifest": "
|
|
6116
|
-
"@geekmidas/rate-limit": "
|
|
6117
|
-
"@geekmidas/schema": "
|
|
6118
|
-
"@geekmidas/services": "
|
|
6119
|
-
"@geekmidas/storage": "
|
|
6120
|
-
"@geekmidas/telescope": "
|
|
6121
|
-
"@geekmidas/testkit": "
|
|
6122
|
-
"@geekmidas/cli":
|
|
6229
|
+
"@geekmidas/audit": ">=10.0.0-alpha.156 <10.0.0",
|
|
6230
|
+
"@geekmidas/auth": ">=10.0.0-alpha.156 <10.0.0",
|
|
6231
|
+
"@geekmidas/cache": ">=10.0.0-alpha.156 <10.0.0",
|
|
6232
|
+
"@geekmidas/client": ">=10.0.0-alpha.156 <10.0.0",
|
|
6233
|
+
"@geekmidas/cloud": ">=10.0.0-alpha.156 <10.0.0",
|
|
6234
|
+
"@geekmidas/constructs": ">=10.0.0-alpha.156 <10.0.0",
|
|
6235
|
+
"@geekmidas/db": ">=10.0.0-alpha.156 <10.0.0",
|
|
6236
|
+
"@geekmidas/emailkit": ">=10.0.0-alpha.156 <10.0.0",
|
|
6237
|
+
"@geekmidas/envkit": ">=10.0.0-alpha.156 <10.0.0",
|
|
6238
|
+
"@geekmidas/errors": ">=10.0.0-alpha.156 <10.0.0",
|
|
6239
|
+
"@geekmidas/events": ">=10.0.0-alpha.156 <10.0.0",
|
|
6240
|
+
"@geekmidas/logger": ">=10.0.0-alpha.156 <10.0.0",
|
|
6241
|
+
"@geekmidas/manifest": ">=10.0.0-alpha.156 <10.0.0",
|
|
6242
|
+
"@geekmidas/rate-limit": ">=10.0.0-alpha.156 <10.0.0",
|
|
6243
|
+
"@geekmidas/schema": ">=10.0.0-alpha.156 <10.0.0",
|
|
6244
|
+
"@geekmidas/services": ">=10.0.0-alpha.156 <10.0.0",
|
|
6245
|
+
"@geekmidas/storage": ">=10.0.0-alpha.156 <10.0.0",
|
|
6246
|
+
"@geekmidas/telescope": ">=10.0.0-alpha.156 <10.0.0",
|
|
6247
|
+
"@geekmidas/testkit": ">=10.0.0-alpha.156 <10.0.0",
|
|
6248
|
+
"@geekmidas/cli": versionRange(loadPackageJson().version)
|
|
6123
6249
|
};
|
|
6124
6250
|
//#endregion
|
|
6125
6251
|
//#region src/init/generators/auth.ts
|
|
@@ -7311,7 +7437,7 @@ const COMMIT = /^[0-9a-f]{40}$/;
|
|
|
7311
7437
|
* The `uses:` value for the stages action, with a comment saying which CLI
|
|
7312
7438
|
* release the pinned commit is.
|
|
7313
7439
|
*/
|
|
7314
|
-
function stagesActionUses(commit = "
|
|
7440
|
+
function stagesActionUses(commit = "a41c7a04ef5b9d631ec8af6a38dcf3a1c5d8487c", version = cliVersion()) {
|
|
7315
7441
|
return commit && COMMIT.test(commit) ? `${STAGES_ACTION}@${commit} # @geekmidas/cli ${version}` : `${STAGES_ACTION}@main # pin to a commit SHA: see the action's README`;
|
|
7316
7442
|
}
|
|
7317
7443
|
//#endregion
|
|
@@ -16283,7 +16409,7 @@ function testDatabases(reconciled) {
|
|
|
16283
16409
|
* starts without the reference data the app needs.
|
|
16284
16410
|
*/
|
|
16285
16411
|
async function migrateTestStage(workspace, env) {
|
|
16286
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
16412
|
+
const { migrateAndSeed } = await import("./migrate-DJ6o58e4.mjs");
|
|
16287
16413
|
const { discover } = await import("./discover-DbDrCQ8h.mjs").then((n) => n.a);
|
|
16288
16414
|
const sources = {};
|
|
16289
16415
|
const manifest = await discover({
|
|
@@ -16367,6 +16493,15 @@ function simpleRange(range) {
|
|
|
16367
16493
|
version: match[2]
|
|
16368
16494
|
} : void 0;
|
|
16369
16495
|
}
|
|
16496
|
+
/**
|
|
16497
|
+
* The version a capped prerelease range starts at: `10.0.0-alpha.152` for
|
|
16498
|
+
* `>=10.0.0-alpha.152 <10.0.0`, the range `gkm init` writes on a prerelease
|
|
16499
|
+
* line (see `versionRange`). Undefined for anything else.
|
|
16500
|
+
*/
|
|
16501
|
+
function cappedPrerelease(range) {
|
|
16502
|
+
const match = range.trim().match(/^>=\s*v?(\d+\.\d+\.\d+)-([0-9A-Za-z.-]+)\s+<\s*v?(\d+\.\d+\.\d+)$/);
|
|
16503
|
+
return match && match[1] === match[3] ? `${match[1]}-${match[2]}` : void 0;
|
|
16504
|
+
}
|
|
16370
16505
|
//#endregion
|
|
16371
16506
|
//#region src/upgrade/index.ts
|
|
16372
16507
|
const logger = console;
|
|
@@ -16441,6 +16576,25 @@ function resolveTarget(distTags, installed, tag) {
|
|
|
16441
16576
|
function withVersion(range, version) {
|
|
16442
16577
|
return `${simpleRange(range)?.operator ?? ""}${version}`;
|
|
16443
16578
|
}
|
|
16579
|
+
/** The version a `@geekmidas` range names, simple or capped. */
|
|
16580
|
+
function versionOf(range) {
|
|
16581
|
+
return simpleRange(range)?.version ?? cappedPrerelease(range);
|
|
16582
|
+
}
|
|
16583
|
+
/**
|
|
16584
|
+
* A `@geekmidas` range moved to `version`.
|
|
16585
|
+
*
|
|
16586
|
+
* An exact pin stays exact. Otherwise a prerelease target gets the capped
|
|
16587
|
+
* range `gkm init` writes — `>=10.0.0-alpha.152 <10.0.0` — whatever operator
|
|
16588
|
+
* was there: `~` and `^` on a prerelease also admit the release, and a stray
|
|
16589
|
+
* `10.0.0` is on npm (#371), so moving a project along the alpha line also
|
|
16590
|
+
* moves it off a range that resolves to that release. A capped range moving
|
|
16591
|
+
* to a release becomes `~`, as `gkm init` would write it.
|
|
16592
|
+
*/
|
|
16593
|
+
function ourRange(range, version) {
|
|
16594
|
+
if (simpleRange(range)?.operator === "") return version;
|
|
16595
|
+
if (prereleaseTag(version) || cappedPrerelease(range)) return versionRange(version);
|
|
16596
|
+
return withVersion(range, version);
|
|
16597
|
+
}
|
|
16444
16598
|
async function upgradeCommand(options = {}) {
|
|
16445
16599
|
const cwd = process.cwd();
|
|
16446
16600
|
const pm = detectPackageManager$1(cwd);
|
|
@@ -16455,7 +16609,7 @@ async function upgradeCommand(options = {}) {
|
|
|
16455
16609
|
logger.log(" No @geekmidas packages found.\n");
|
|
16456
16610
|
return;
|
|
16457
16611
|
}
|
|
16458
|
-
const installed = ours.map((o) =>
|
|
16612
|
+
const installed = ours.map((o) => versionOf(o.range)).filter((v) => Boolean(v));
|
|
16459
16613
|
const target = resolveTarget((await packument(`${SCOPE}cli`))["dist-tags"], installed, options.tag);
|
|
16460
16614
|
logger.log(` Target: ${target.version} (npm "${target.tag}")\n`);
|
|
16461
16615
|
const highest = installed.sort(compareVersions).at(-1);
|
|
@@ -16463,11 +16617,11 @@ async function upgradeCommand(options = {}) {
|
|
|
16463
16617
|
const moving = options.all ? ours : ours.filter((o) => o.name === `${SCOPE}cli`);
|
|
16464
16618
|
const changes = [];
|
|
16465
16619
|
for (const o of moving) {
|
|
16466
|
-
if (!
|
|
16620
|
+
if (!versionOf(o.range)) {
|
|
16467
16621
|
logger.log(` ⚠ ${o.name} ${o.range} is not a simple range; left as is (target ${target.version}).`);
|
|
16468
16622
|
continue;
|
|
16469
16623
|
}
|
|
16470
|
-
const next =
|
|
16624
|
+
const next = ourRange(o.range, target.version);
|
|
16471
16625
|
if (next !== o.range) changes.push({
|
|
16472
16626
|
...o,
|
|
16473
16627
|
next
|
|
@@ -16708,7 +16862,7 @@ program.command("eas:sync").description("Set up a mobile app's EAS project for a
|
|
|
16708
16862
|
try {
|
|
16709
16863
|
const globalOptions = program.opts();
|
|
16710
16864
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16711
|
-
const { easSync } = await import("./eas-
|
|
16865
|
+
const { easSync } = await import("./eas-DdE1PH-Z.mjs");
|
|
16712
16866
|
await easSync(options);
|
|
16713
16867
|
} catch (error) {
|
|
16714
16868
|
exitWithError(error);
|
|
@@ -16718,7 +16872,7 @@ program.command("publish").description("Ship a mobile app for a deployed stage:
|
|
|
16718
16872
|
try {
|
|
16719
16873
|
const globalOptions = program.opts();
|
|
16720
16874
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16721
|
-
const { publish, PublishModeConflict } = await import("./publish-
|
|
16875
|
+
const { publish, PublishModeConflict } = await import("./publish-BJyVR2lE.mjs");
|
|
16722
16876
|
if (options.build && options.update) throw new PublishModeConflict();
|
|
16723
16877
|
const { build, update, ...rest } = options;
|
|
16724
16878
|
await publish({
|
|
@@ -16734,7 +16888,7 @@ program.command("deploy:google-play").description("Let EAS Submit publish a mobi
|
|
|
16734
16888
|
try {
|
|
16735
16889
|
const globalOptions = program.opts();
|
|
16736
16890
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16737
|
-
const { deployGooglePlay } = await import("./googlePlay-
|
|
16891
|
+
const { deployGooglePlay } = await import("./googlePlay-CH5BrkCd.mjs");
|
|
16738
16892
|
await deployGooglePlay(options);
|
|
16739
16893
|
} catch (error) {
|
|
16740
16894
|
exitWithError(error);
|
|
@@ -16756,7 +16910,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
16756
16910
|
try {
|
|
16757
16911
|
const globalOptions = program.opts();
|
|
16758
16912
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16759
|
-
const { migrateCommand } = await import("./migrate-
|
|
16913
|
+
const { migrateCommand } = await import("./migrate-DJ6o58e4.mjs");
|
|
16760
16914
|
await migrateCommand({
|
|
16761
16915
|
...options,
|
|
16762
16916
|
...construct ? { construct } : {}
|
|
@@ -16769,7 +16923,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
16769
16923
|
try {
|
|
16770
16924
|
const globalOptions = program.opts();
|
|
16771
16925
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16772
|
-
const { seedCommand } = await import("./migrate-
|
|
16926
|
+
const { seedCommand } = await import("./migrate-DJ6o58e4.mjs");
|
|
16773
16927
|
await seedCommand({
|
|
16774
16928
|
...options,
|
|
16775
16929
|
...construct ? { construct } : {}
|
|
@@ -16782,7 +16936,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
16782
16936
|
try {
|
|
16783
16937
|
const globalOptions = program.opts();
|
|
16784
16938
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16785
|
-
const { migrationCommand } = await import("./migrate-
|
|
16939
|
+
const { migrationCommand } = await import("./migrate-DJ6o58e4.mjs");
|
|
16786
16940
|
await migrationCommand({
|
|
16787
16941
|
construct,
|
|
16788
16942
|
...name ? { name } : {}
|
|
@@ -16882,7 +17036,7 @@ program.command("secrets:add").description("Build the keys a stage must be given
|
|
|
16882
17036
|
try {
|
|
16883
17037
|
const globalOptions = program.opts();
|
|
16884
17038
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16885
|
-
const { secretsAddCommand } = await import("./add-
|
|
17039
|
+
const { secretsAddCommand } = await import("./add-CtkmKzg0.mjs");
|
|
16886
17040
|
await secretsAddCommand(options);
|
|
16887
17041
|
} catch (error) {
|
|
16888
17042
|
exitWithError(error);
|
|
@@ -16892,7 +17046,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
16892
17046
|
try {
|
|
16893
17047
|
const globalOptions = program.opts();
|
|
16894
17048
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16895
|
-
const { encryptionRotateCommand } = await import("./encryption-
|
|
17049
|
+
const { encryptionRotateCommand } = await import("./encryption-1TTbMp4E.mjs");
|
|
16896
17050
|
await encryptionRotateCommand(construct, options);
|
|
16897
17051
|
} catch (error) {
|
|
16898
17052
|
exitWithError(error);
|
|
@@ -16902,7 +17056,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
16902
17056
|
try {
|
|
16903
17057
|
const globalOptions = program.opts();
|
|
16904
17058
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16905
|
-
const { encryptionRetireCommand } = await import("./encryption-
|
|
17059
|
+
const { encryptionRetireCommand } = await import("./encryption-1TTbMp4E.mjs");
|
|
16906
17060
|
await encryptionRetireCommand(construct, key, options);
|
|
16907
17061
|
} catch (error) {
|
|
16908
17062
|
exitWithError(error);
|
|
@@ -16941,7 +17095,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
16941
17095
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16942
17096
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
16943
17097
|
const { reconcileMissingSecrets } = await import("./reconcile--I7V4Klj.mjs");
|
|
16944
|
-
const { secretsStoreFor } = await import("./credentials-
|
|
17098
|
+
const { secretsStoreFor } = await import("./credentials-DidjPIcM.mjs").then((n) => n.j);
|
|
16945
17099
|
const { workspace } = await loadWorkspaceConfig();
|
|
16946
17100
|
const stage = options.stage ?? workspace.stages.local;
|
|
16947
17101
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -16950,7 +17104,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
16950
17104
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
16951
17105
|
process.exit(1);
|
|
16952
17106
|
}
|
|
16953
|
-
const { derivedContainers } = await import("./apps-
|
|
17107
|
+
const { derivedContainers } = await import("./apps-CggMxcW9.mjs").then((n) => n.h);
|
|
16954
17108
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
16955
17109
|
if (!result) {
|
|
16956
17110
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -16967,14 +17121,14 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
16967
17121
|
try {
|
|
16968
17122
|
const globalOptions = program.opts();
|
|
16969
17123
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16970
|
-
const { secretsMigrateCommand } = await import("./migrate-
|
|
17124
|
+
const { secretsMigrateCommand } = await import("./migrate-Cg6ogGbR.mjs");
|
|
16971
17125
|
await secretsMigrateCommand(options);
|
|
16972
17126
|
} catch (error) {
|
|
16973
17127
|
exitWithError(error);
|
|
16974
17128
|
}
|
|
16975
17129
|
});
|
|
16976
17130
|
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").option("--allow-dev-services", "Server targets: run the dev service (MinIO, Mailpit) for every bucket and mail the stage doesn't account for. Not production-grade").option("--skip-dns", "Compose: neither write the public hosts' DNS records nor check they point at GKM_SERVER_IPV4 (a CDN or proxy in front, or records written elsewhere)").option("--rotate-keys", "Deployed stage: each provider issues its runtime keys a successor (the old one is deleted by the next deploy)").option("--retire-old-keys", "Deployed stage: delete a rotated-out key now instead of on the next deploy").action(async (options) => {
|
|
16977
|
-
const { deployCli } = await import("./cli-
|
|
17131
|
+
const { deployCli } = await import("./cli-BVHsKFMj.mjs");
|
|
16978
17132
|
const globalOptions = program.opts();
|
|
16979
17133
|
const code = await deployCli({
|
|
16980
17134
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -16994,8 +17148,8 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
16994
17148
|
});
|
|
16995
17149
|
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) => {
|
|
16996
17150
|
try {
|
|
16997
|
-
const { rollbackStage } = await import("./rollback-
|
|
16998
|
-
const { terminalCredentials } = await import("./terminal-
|
|
17151
|
+
const { rollbackStage } = await import("./rollback-Bpuaon23.mjs").then((n) => n.a);
|
|
17152
|
+
const { terminalCredentials } = await import("./terminal-BG75hJ72.mjs");
|
|
16999
17153
|
const globalOptions = program.opts();
|
|
17000
17154
|
await rollbackStage({
|
|
17001
17155
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -17013,7 +17167,7 @@ program.command("compose:server").description("Set up a stage's server for compo
|
|
|
17013
17167
|
try {
|
|
17014
17168
|
const globalOptions = program.opts();
|
|
17015
17169
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17016
|
-
const { composeServerCommand } = await import("./serverSetup-
|
|
17170
|
+
const { composeServerCommand } = await import("./serverSetup-B9sp6uWM.mjs");
|
|
17017
17171
|
await composeServerCommand(options);
|
|
17018
17172
|
} catch (error) {
|
|
17019
17173
|
exitWithError(error);
|
|
@@ -17038,7 +17192,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
17038
17192
|
try {
|
|
17039
17193
|
const globalOptions = program.opts();
|
|
17040
17194
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17041
|
-
const { deployGithubCommand } = await import("./github-
|
|
17195
|
+
const { deployGithubCommand } = await import("./github-e4EXHIAd.mjs");
|
|
17042
17196
|
await deployGithubCommand(options);
|
|
17043
17197
|
} catch (error) {
|
|
17044
17198
|
exitWithError(error);
|