@geekmidas/cli 10.0.0-alpha.155 → 10.0.0-alpha.157
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-H59_cXa0.cjs → GoDaddyProvider-CRDZ574t.cjs} +2 -2
- package/dist/{GoDaddyProvider-H59_cXa0.cjs.map → GoDaddyProvider-CRDZ574t.cjs.map} +1 -1
- package/dist/{GoDaddyProvider-CQ4YrB5P.mjs → GoDaddyProvider-DplVl6PV.mjs} +2 -2
- package/dist/{GoDaddyProvider-CQ4YrB5P.mjs.map → GoDaddyProvider-DplVl6PV.mjs.map} +1 -1
- package/dist/{HostingerProvider-DBfHH0qT.mjs → HostingerProvider-B4pWxtNL.mjs} +2 -2
- package/dist/{HostingerProvider-DBfHH0qT.mjs.map → HostingerProvider-B4pWxtNL.mjs.map} +1 -1
- package/dist/{HostingerProvider-DecF9ELH.cjs → HostingerProvider-Car70UOZ.cjs} +2 -2
- package/dist/{HostingerProvider-DecF9ELH.cjs.map → HostingerProvider-Car70UOZ.cjs.map} +1 -1
- package/dist/{LegacyStateStore-DwsnVS-2.cjs → LegacyStateStore--HvaCD_x.cjs} +2 -2
- package/dist/{LegacyStateStore-DwsnVS-2.cjs.map → LegacyStateStore--HvaCD_x.cjs.map} +1 -1
- package/dist/{LegacyStateStore-Cz1ORtCx.mjs → LegacyStateStore-DLfjqri1.mjs} +2 -2
- package/dist/{LegacyStateStore-Cz1ORtCx.mjs.map → LegacyStateStore-DLfjqri1.mjs.map} +1 -1
- package/dist/{LocalStateStore-BZ5b3sw4.cjs → LocalStateStore-Bck7bNAu.cjs} +2 -2
- package/dist/{LocalStateStore-BZ5b3sw4.cjs.map → LocalStateStore-Bck7bNAu.cjs.map} +1 -1
- package/dist/{LocalStateStore-dz7OkMGm.mjs → LocalStateStore-BxvEMGIg.mjs} +2 -2
- package/dist/{LocalStateStore-dz7OkMGm.mjs.map → LocalStateStore-BxvEMGIg.mjs.map} +1 -1
- package/dist/{S3StateStore-Dw9Dx_vy.cjs → S3StateStore-BFJ3KaNH.cjs} +4 -4
- package/dist/{S3StateStore-Dw9Dx_vy.cjs.map → S3StateStore-BFJ3KaNH.cjs.map} +1 -1
- package/dist/{S3StateStore-Bda3aGqz.mjs → S3StateStore-Ba9zrMWD.mjs} +4 -4
- package/dist/{S3StateStore-Bda3aGqz.mjs.map → S3StateStore-Ba9zrMWD.mjs.map} +1 -1
- package/dist/{SSMStateStore-CcT6YJFd.mjs → SSMStateStore-C0xhLKD2.mjs} +2 -2
- package/dist/{SSMStateStore-CcT6YJFd.mjs.map → SSMStateStore-C0xhLKD2.mjs.map} +1 -1
- package/dist/{SSMStateStore-DPZpYnda.cjs → SSMStateStore-a5oX3zgi.cjs} +2 -2
- package/dist/{SSMStateStore-DPZpYnda.cjs.map → SSMStateStore-a5oX3zgi.cjs.map} +1 -1
- package/dist/{add-Bwek61Bv.cjs → add-5QcLsP3H.cjs} +4 -4
- package/dist/{add-Bwek61Bv.cjs.map → add-5QcLsP3H.cjs.map} +1 -1
- package/dist/{add-Feiof1dz.mjs → add-CO16e9iI.mjs} +4 -4
- package/dist/{add-Feiof1dz.mjs.map → add-CO16e9iI.mjs.map} +1 -1
- package/dist/{apps-CrQhJueV.cjs → apps-BRzZ5pIa.cjs} +3 -3
- package/dist/{apps-CrQhJueV.cjs.map → apps-BRzZ5pIa.cjs.map} +1 -1
- package/dist/{apps-C0kZVQpf.mjs → apps-BVcA1Hy7.mjs} +3 -3
- package/dist/{apps-C0kZVQpf.mjs.map → apps-BVcA1Hy7.mjs.map} +1 -1
- package/dist/{bundler-CV-UpPpb.cjs → bundler-Bo4JMtRH.cjs} +6 -6
- package/dist/{bundler-CV-UpPpb.cjs.map → bundler-Bo4JMtRH.cjs.map} +1 -1
- package/dist/{bundler-o10_P4d9.mjs → bundler-CrNow5yF.mjs} +6 -6
- package/dist/{bundler-o10_P4d9.mjs.map → bundler-CrNow5yF.mjs.map} +1 -1
- package/dist/{cli-KFbKAyaH.mjs → cli-BsiiOIVE.mjs} +4 -4
- package/dist/{cli-KFbKAyaH.mjs.map → cli-BsiiOIVE.mjs.map} +1 -1
- package/dist/{cli-BO4qIuTd.cjs → cli-CEbLgLW5.cjs} +4 -4
- package/dist/{cli-BO4qIuTd.cjs.map → cli-CEbLgLW5.cjs.map} +1 -1
- package/dist/{compose-D8fn0ebx.mjs → compose-BSLOkoX8.mjs} +4 -4
- package/dist/{compose-D8fn0ebx.mjs.map → compose-BSLOkoX8.mjs.map} +1 -1
- package/dist/{compose-C-k9AoH0.mjs → compose-CtL6-1af.mjs} +9 -9
- package/dist/{compose-C-k9AoH0.mjs.map → compose-CtL6-1af.mjs.map} +1 -1
- package/dist/{compose-djwQcfQD.cjs → compose-DZroNh2I.cjs} +4 -4
- package/dist/{compose-djwQcfQD.cjs.map → compose-DZroNh2I.cjs.map} +1 -1
- package/dist/{compose-CyGZOLcK.cjs → compose-RtLoPN86.cjs} +9 -9
- package/dist/{compose-CyGZOLcK.cjs.map → compose-RtLoPN86.cjs.map} +1 -1
- package/dist/{credentials-DY_Cu5Ht.mjs → credentials-C69J5G91.mjs} +5 -5
- package/dist/{credentials-DY_Cu5Ht.mjs.map → credentials-C69J5G91.mjs.map} +1 -1
- package/dist/{credentials-DixsjQcu.cjs → credentials-D4XclzQZ.cjs} +5 -5
- package/dist/{credentials-DixsjQcu.cjs.map → credentials-D4XclzQZ.cjs.map} +1 -1
- package/dist/{databases-mzSUFBTw.mjs → databases-C1qqNxTu.mjs} +2 -2
- package/dist/{databases-mzSUFBTw.mjs.map → databases-C1qqNxTu.mjs.map} +1 -1
- package/dist/{databases-DawSdqBI.cjs → databases-CrKh5jw6.cjs} +2 -2
- package/dist/{databases-DawSdqBI.cjs.map → databases-CrKh5jw6.cjs.map} +1 -1
- package/dist/deploy/public.cjs +10 -10
- package/dist/deploy/public.mjs +10 -10
- package/dist/{deploy-DsWQ8kTC.mjs → deploy-RD6J-w2h.mjs} +11 -11
- package/dist/{deploy-DsWQ8kTC.mjs.map → deploy-RD6J-w2h.mjs.map} +1 -1
- package/dist/{deploy-DzYn1rNl.cjs → deploy-uxEAC6Vv.cjs} +11 -11
- package/dist/{deploy-DzYn1rNl.cjs.map → deploy-uxEAC6Vv.cjs.map} +1 -1
- package/dist/{docker-DDHfNbM8.cjs → docker-C2WagkrW.cjs} +4 -4
- package/dist/{docker-DDHfNbM8.cjs.map → docker-C2WagkrW.cjs.map} +1 -1
- package/dist/{docker-CobK4rVH.mjs → docker-Db0TnF9j.mjs} +4 -4
- package/dist/{docker-CobK4rVH.mjs.map → docker-Db0TnF9j.mjs.map} +1 -1
- package/dist/{dokploy-CCgBM22f.cjs → dokploy-Ds-dwYjG.cjs} +2 -2
- package/dist/{dokploy-CCgBM22f.cjs.map → dokploy-Ds-dwYjG.cjs.map} +1 -1
- package/dist/{dokploy-2bH8IDTX.mjs → dokploy-Ds1AvRQa.mjs} +2 -2
- package/dist/{dokploy-2bH8IDTX.mjs.map → dokploy-Ds1AvRQa.mjs.map} +1 -1
- package/dist/{drivers-aM87NQJi.cjs → drivers-BhdC9Efj.cjs} +26 -2
- package/dist/drivers-BhdC9Efj.cjs.map +1 -0
- package/dist/{drivers-uxLBq3e3.mjs → drivers-wcDnzf7l.mjs} +21 -3
- package/dist/drivers-wcDnzf7l.mjs.map +1 -0
- package/dist/{eas-8X90Y3ks.cjs → eas-BgC-aXgY.cjs} +2 -2
- package/dist/{eas-8X90Y3ks.cjs.map → eas-BgC-aXgY.cjs.map} +1 -1
- package/dist/{eas-CYs_Grue.mjs → eas-C_96kJG8.mjs} +2 -2
- package/dist/{eas-CYs_Grue.mjs.map → eas-C_96kJG8.mjs.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-DfoPAQ06.mjs} +2 -2
- package/dist/{encryption-Bm9pJAlv.mjs.map → encryption-DfoPAQ06.mjs.map} +1 -1
- package/dist/{encryption-BlvEsxDL.cjs → encryption-KErhFgTQ.cjs} +2 -2
- package/dist/{encryption-BlvEsxDL.cjs.map → encryption-KErhFgTQ.cjs.map} +1 -1
- package/dist/{engine-BL_34-M8.cjs → engine-CgkVqYY-.cjs} +9 -9
- package/dist/{engine-BL_34-M8.cjs.map → engine-CgkVqYY-.cjs.map} +1 -1
- package/dist/{engine-CVgtgVgf.mjs → engine-eaVZpdsY.mjs} +9 -9
- package/dist/{engine-CVgtgVgf.mjs.map → engine-eaVZpdsY.mjs.map} +1 -1
- package/dist/{github-j9ytVxlm.mjs → github-DWgux2Mc.mjs} +6 -6
- package/dist/{github-j9ytVxlm.mjs.map → github-DWgux2Mc.mjs.map} +1 -1
- package/dist/{github-Ci0PUjjW.cjs → github-hZ_qJn2O.cjs} +6 -6
- package/dist/{github-Ci0PUjjW.cjs.map → github-hZ_qJn2O.cjs.map} +1 -1
- package/dist/{googlePlay-jR8oRAzy.cjs → googlePlay-BneaYZYU.cjs} +4 -4
- package/dist/{googlePlay-jR8oRAzy.cjs.map → googlePlay-BneaYZYU.cjs.map} +1 -1
- package/dist/{googlePlay-CvYKw65D.mjs → googlePlay-CcDoKDlM.mjs} +4 -4
- package/dist/{googlePlay-CvYKw65D.mjs.map → googlePlay-CcDoKDlM.mjs.map} +1 -1
- package/dist/index.cjs +229 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +229 -73
- package/dist/index.mjs.map +1 -1
- package/dist/{local-pFyO21et.mjs → local-CSkxxmZ5.mjs} +2 -2
- package/dist/{local-pFyO21et.mjs.map → local-CSkxxmZ5.mjs.map} +1 -1
- package/dist/{local-5DkpRnl2.cjs → local-DX5F9mI1.cjs} +2 -2
- package/dist/{local-5DkpRnl2.cjs.map → local-DX5F9mI1.cjs.map} +1 -1
- package/dist/{migrate-DKep6Tol.cjs → migrate-BA2AgnvW.cjs} +2 -2
- package/dist/{migrate-DKep6Tol.cjs.map → migrate-BA2AgnvW.cjs.map} +1 -1
- package/dist/{migrate-C1SSvzNZ.mjs → migrate-Hi5BARdP.mjs} +2 -2
- package/dist/{migrate-C1SSvzNZ.mjs.map → migrate-Hi5BARdP.mjs.map} +1 -1
- package/dist/{migrate-CPoStsvd.cjs → migrate-T0b6IPf-.cjs} +5 -5
- package/dist/{migrate-CPoStsvd.cjs.map → migrate-T0b6IPf-.cjs.map} +1 -1
- package/dist/{migrate-Dv8Qk0jw.mjs → migrate-Y_QjN95a.mjs} +5 -5
- package/dist/{migrate-Dv8Qk0jw.mjs.map → migrate-Y_QjN95a.mjs.map} +1 -1
- package/dist/{notes-Dwz8jmoh.mjs → notes-C5LmC9-z.mjs} +2 -2
- package/dist/{notes-Dwz8jmoh.mjs.map → notes-C5LmC9-z.mjs.map} +1 -1
- package/dist/{notes-CFCdqMQ4.cjs → notes-CjFVW8bn.cjs} +2 -2
- package/dist/{notes-CFCdqMQ4.cjs.map → notes-CjFVW8bn.cjs.map} +1 -1
- package/dist/{projectBucket-UCuebUhW.cjs → projectBucket-BokyGleo.cjs} +2 -2
- package/dist/{projectBucket-UCuebUhW.cjs.map → projectBucket-BokyGleo.cjs.map} +1 -1
- package/dist/{projectBucket-Daak2eUn.mjs → projectBucket-CJC-C3cD.mjs} +2 -2
- package/dist/{projectBucket-Daak2eUn.mjs.map → projectBucket-CJC-C3cD.mjs.map} +1 -1
- package/dist/{publish-CBuMAY04.cjs → publish-CKuhnFwH.cjs} +2 -2
- package/dist/{publish-CBuMAY04.cjs.map → publish-CKuhnFwH.cjs.map} +1 -1
- package/dist/{publish-DibqEZ2a.mjs → publish-CxQyLRhO.mjs} +2 -2
- package/dist/{publish-DibqEZ2a.mjs.map → publish-CxQyLRhO.mjs.map} +1 -1
- package/dist/{ready-BNh3zsSn.cjs → ready-DV-_oK_O.cjs} +2 -2
- package/dist/{ready-BNh3zsSn.cjs.map → ready-DV-_oK_O.cjs.map} +1 -1
- package/dist/{ready-g25dcGzK.mjs → ready-Dkw_Xt4P.mjs} +2 -2
- package/dist/{ready-g25dcGzK.mjs.map → ready-Dkw_Xt4P.mjs.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-CenYGcnj.mjs} +4 -4
- package/dist/{resolve-BF4-f30m.mjs.map → resolve-CenYGcnj.mjs.map} +1 -1
- package/dist/{resolve-BjgqLxcZ.cjs → resolve-mS7fO8YL.cjs} +4 -4
- package/dist/{resolve-BjgqLxcZ.cjs.map → resolve-mS7fO8YL.cjs.map} +1 -1
- package/dist/{rollback-BXkzAkAh.cjs → rollback-D5rjIQwJ.cjs} +5 -5
- package/dist/{rollback-BXkzAkAh.cjs.map → rollback-D5rjIQwJ.cjs.map} +1 -1
- package/dist/{rollback-DBewZGz9.mjs → rollback-DfJ0Rpkb.mjs} +5 -5
- package/dist/{rollback-DBewZGz9.mjs.map → rollback-DfJ0Rpkb.mjs.map} +1 -1
- package/dist/{s3-Cp2eA2v_.cjs → s3-AIH2NmEI.cjs} +2 -2
- package/dist/{s3-Cp2eA2v_.cjs.map → s3-AIH2NmEI.cjs.map} +1 -1
- package/dist/{s3-CR8gEP-7.mjs → s3-jtCO7o69.mjs} +2 -2
- package/dist/{s3-CR8gEP-7.mjs.map → s3-jtCO7o69.mjs.map} +1 -1
- package/dist/sandbox/migrate-worker.cjs +1 -1
- package/dist/sandbox/migrate-worker.mjs +1 -1
- package/dist/{serverSetup-B9BPzpUQ.mjs → serverSetup-6bczKo49.mjs} +5 -5
- package/dist/{serverSetup-B9BPzpUQ.mjs.map → serverSetup-6bczKo49.mjs.map} +1 -1
- package/dist/{serverSetup-0eV8bl75.cjs → serverSetup-CVeRKNXR.cjs} +5 -5
- package/dist/{serverSetup-0eV8bl75.cjs.map → serverSetup-CVeRKNXR.cjs.map} +1 -1
- package/dist/{sniffer-0wN20Fuy.cjs → sniffer-3Wix1Bez.cjs} +6 -6
- package/dist/{sniffer-0wN20Fuy.cjs.map → sniffer-3Wix1Bez.cjs.map} +1 -1
- package/dist/{sniffer-C2yPOlOW.mjs → sniffer-CzjFwmlR.mjs} +6 -6
- package/dist/{sniffer-C2yPOlOW.mjs.map → sniffer-CzjFwmlR.mjs.map} +1 -1
- package/dist/{snsSubscriptions-CtOrP15M.mjs → snsSubscriptions-ByM_a0-4.mjs} +2 -2
- package/dist/{snsSubscriptions-CtOrP15M.mjs.map → snsSubscriptions-ByM_a0-4.mjs.map} +1 -1
- package/dist/{snsSubscriptions-DR3drFJK.cjs → snsSubscriptions-CDFlapU9.cjs} +2 -2
- package/dist/{snsSubscriptions-DR3drFJK.cjs.map → snsSubscriptions-CDFlapU9.cjs.map} +1 -1
- package/dist/{sst-BF85FnBg.mjs → sst-Bsf-6bw5.mjs} +21 -5
- package/dist/{sst-BF85FnBg.mjs.map → sst-Bsf-6bw5.mjs.map} +1 -1
- package/dist/{sst-fbVtyw_h.cjs → sst-DykouxeI.cjs} +21 -5
- package/dist/{sst-fbVtyw_h.cjs.map → sst-DykouxeI.cjs.map} +1 -1
- package/dist/{stack-ZV2le8OB.mjs → stack-DbM4Z8XX.mjs} +35 -14
- package/dist/stack-DbM4Z8XX.mjs.map +1 -0
- package/dist/{stack-CB0U6NiV.cjs → stack-wBYoBpNL.cjs} +35 -14
- package/dist/stack-wBYoBpNL.cjs.map +1 -0
- package/dist/{stage-B6bQKczF.cjs → stage-BAeoWlaT.cjs} +5 -5
- package/dist/{stage-B6bQKczF.cjs.map → stage-BAeoWlaT.cjs.map} +1 -1
- package/dist/{stage-CPtCIwru.mjs → stage-C9OePz1T.mjs} +5 -5
- package/dist/{stage-CPtCIwru.mjs.map → stage-C9OePz1T.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-cYD0PvkL.mjs} +2 -2
- package/dist/{terminal-b_4H0MHd.mjs.map → terminal-cYD0PvkL.mjs.map} +1 -1
- package/dist/{terminal-CyB5bRPt.cjs → terminal-vsCCECku.cjs} +2 -2
- package/dist/{terminal-CyB5bRPt.cjs.map → terminal-vsCCECku.cjs.map} +1 -1
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- package/package.json +15 -15
- package/dist/drivers-aM87NQJi.cjs.map +0 -1
- package/dist/drivers-uxLBq3e3.mjs.map +0 -1
- 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,33 +1,33 @@
|
|
|
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-C69J5G91.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-CtL6-1af.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-BVcA1Hy7.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-BSLOkoX8.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-C5LmC9-z.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-DbM4Z8XX.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-Db0TnF9j.mjs";
|
|
18
|
+
import { b as awsEndpoint, x as awsProvisioningCredentials, y as awsClientConfig } from "./snsSubscriptions-ByM_a0-4.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
|
-
import { a as opensKmsKeys, n as driversFor, r as eventsBackendsIn, t as cacheBackendsIn } from "./drivers-
|
|
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-
|
|
21
|
+
import { a as opensKmsKeys, n as driversFor, o as publishesToApiGateway, r as eventsBackendsIn, t as cacheBackendsIn } from "./drivers-wcDnzf7l.mjs";
|
|
22
|
+
import { n as withHandlers, t as manifestModule } from "./emit-C4KSXOeS.mjs";
|
|
23
|
+
import { t as LocalSandbox } from "./local-CSkxxmZ5.mjs";
|
|
24
|
+
import { S as createStateStore, k as keyFingerprint, n as sniffAppEnvironment, o as DokployApi } from "./sniffer-CzjFwmlR.mjs";
|
|
25
|
+
import { t as deploy$1 } from "./deploy-RD6J-w2h.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-BxvEMGIg.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
|
-
import { a as writeTestHarness, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, t as TEST_READY_ENV } from "./ready-
|
|
30
|
+
import { a as writeTestHarness, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, t as TEST_READY_ENV } from "./ready-Dkw_Xt4P.mjs";
|
|
31
31
|
import { createRequire } from "node:module";
|
|
32
32
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
33
33
|
import { Command, Option } from "commander";
|
|
@@ -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.157";
|
|
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-CzjFwmlR.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-C9OePz1T.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-Y_QjN95a.mjs");
|
|
2777
2777
|
await prepareDevDatabases(workspace, secretsEnv, { seed: !!options.seed });
|
|
2778
|
-
} else await import("./migrate-
|
|
2778
|
+
} else await import("./migrate-Y_QjN95a.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-websocket';
|
|
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-CrNow5yF.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({
|
|
@@ -4095,8 +4204,9 @@ function processTelemetry(declared, surfaceId, workers) {
|
|
|
4095
4204
|
* The drivers a process's entry registers, from the declarations it reaches:
|
|
4096
4205
|
* the cache's — the declaration for one that named its database, the deploy
|
|
4097
4206
|
* target's default for one that named nowhere — and the broker's, only when
|
|
4098
|
-
* it reaches a topic or a queue (see `eventsBackendsIn`) — and
|
|
4099
|
-
*
|
|
4207
|
+
* it reaches a topic or a queue (see `eventsBackendsIn`) — and, built for
|
|
4208
|
+
* AWS, the KMS cipher when it reaches an `Encryption` and the API Gateway
|
|
4209
|
+
* sink when it reaches a `WebSocketApi`.
|
|
4100
4210
|
*/
|
|
4101
4211
|
function runtimeDrivers(options) {
|
|
4102
4212
|
const eventsBackends = eventsBackendsIn(options.reach, options.eventsBackend);
|
|
@@ -4105,7 +4215,8 @@ function runtimeDrivers(options) {
|
|
|
4105
4215
|
appRoot: options.appRoot,
|
|
4106
4216
|
cache: cacheBackendsIn(options.reach, options.cacheBackend),
|
|
4107
4217
|
events: eventsBackends,
|
|
4108
|
-
kms: opensKmsKeys(options.reach, options.target)
|
|
4218
|
+
kms: opensKmsKeys(options.reach, options.target),
|
|
4219
|
+
apiGatewayWebSockets: publishesToApiGateway(options.reach, options.target)
|
|
4109
4220
|
}),
|
|
4110
4221
|
eventsBackends
|
|
4111
4222
|
};
|
|
@@ -4138,7 +4249,7 @@ async function buildWorkers(input) {
|
|
|
4138
4249
|
});
|
|
4139
4250
|
logger$4.log(`Generated worker ${worker.id}: ${crons.length} crons, ${queues.length} queues, ${subscribers.length} subscribers`);
|
|
4140
4251
|
if (!input.bundle) continue;
|
|
4141
|
-
const { bundleServer } = await import("./bundler-
|
|
4252
|
+
const { bundleServer } = await import("./bundler-CrNow5yF.mjs");
|
|
4142
4253
|
const outfile = workerBundleName(worker.id);
|
|
4143
4254
|
await bundleServer({
|
|
4144
4255
|
entryPoint,
|
|
@@ -4180,7 +4291,7 @@ async function buildProcessors(input) {
|
|
|
4180
4291
|
for (const { key, construct } of processors) infos.push(await processorInfo(key, construct, handler, context));
|
|
4181
4292
|
logger$4.log(`Generated processors for ${fileServerId}: ${processors.map(({ key }) => key).join(", ")}`);
|
|
4182
4293
|
if (!input.bundle) continue;
|
|
4183
|
-
const { bundleServer } = await import("./bundler-
|
|
4294
|
+
const { bundleServer } = await import("./bundler-CrNow5yF.mjs");
|
|
4184
4295
|
const outfile = processorBundleName(fileServerId);
|
|
4185
4296
|
await bundleServer({
|
|
4186
4297
|
entryPoint,
|
|
@@ -4263,7 +4374,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
4263
4374
|
let masterKey;
|
|
4264
4375
|
if (context.production?.bundle && !skipBundle) {
|
|
4265
4376
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
4266
|
-
const { bundleServer } = await import("./bundler-
|
|
4377
|
+
const { bundleServer } = await import("./bundler-CrNow5yF.mjs");
|
|
4267
4378
|
const allConstructs = [
|
|
4268
4379
|
...endpoints.map((e) => e.construct),
|
|
4269
4380
|
...functions.map((f) => f.construct),
|
|
@@ -6084,6 +6195,23 @@ const PNPM_VERSION = "pnpm@10.13.1";
|
|
|
6084
6195
|
/** The Biome config schema matching the Biome the scaffold installs. */
|
|
6085
6196
|
const BIOME_SCHEMA = `https://biomejs.dev/schemas/${DEPENDENCY_VERSIONS["@biomejs/biome"].replace(/^[~^]/, "")}/schema.json`;
|
|
6086
6197
|
//#endregion
|
|
6198
|
+
//#region src/init/versionRange.ts
|
|
6199
|
+
/**
|
|
6200
|
+
* The range `gkm init` writes for a `@geekmidas/*` package at `version`.
|
|
6201
|
+
*
|
|
6202
|
+
* A stable version gets `~`: its patches. A prerelease gets every later
|
|
6203
|
+
* prerelease of the same release and stops below the release itself:
|
|
6204
|
+
* `>=10.0.0-alpha.152 <10.0.0`. Not `~10.0.0-alpha.152`, which semver also
|
|
6205
|
+
* satisfies with `10.0.0` — and a `10.0.0`, published by mistake from the v9
|
|
6206
|
+
* branch, is on npm. A project scaffolded on the alpha line installed that
|
|
6207
|
+
* week-older release instead of the alpha it was scaffolded with (#371).
|
|
6208
|
+
*/
|
|
6209
|
+
function versionRange(version) {
|
|
6210
|
+
const prerelease = /^(\d+\.\d+\.\d+)-[0-9A-Za-z.-]+$/.exec(version);
|
|
6211
|
+
if (!prerelease) return `~${version}`;
|
|
6212
|
+
return `>=${version} <${prerelease[1]}`;
|
|
6213
|
+
}
|
|
6214
|
+
//#endregion
|
|
6087
6215
|
//#region src/init/versions.ts
|
|
6088
6216
|
const require$2 = createRequire(import.meta.url);
|
|
6089
6217
|
function loadPackageJson() {
|
|
@@ -6100,26 +6228,26 @@ function loadPackageJson() {
|
|
|
6100
6228
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
6101
6229
|
*/
|
|
6102
6230
|
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":
|
|
6231
|
+
"@geekmidas/audit": ">=10.0.0-alpha.157 <10.0.0",
|
|
6232
|
+
"@geekmidas/auth": ">=10.0.0-alpha.157 <10.0.0",
|
|
6233
|
+
"@geekmidas/cache": ">=10.0.0-alpha.157 <10.0.0",
|
|
6234
|
+
"@geekmidas/client": ">=10.0.0-alpha.157 <10.0.0",
|
|
6235
|
+
"@geekmidas/cloud": ">=10.0.0-alpha.157 <10.0.0",
|
|
6236
|
+
"@geekmidas/constructs": ">=10.0.0-alpha.157 <10.0.0",
|
|
6237
|
+
"@geekmidas/db": ">=10.0.0-alpha.157 <10.0.0",
|
|
6238
|
+
"@geekmidas/emailkit": ">=10.0.0-alpha.157 <10.0.0",
|
|
6239
|
+
"@geekmidas/envkit": ">=10.0.0-alpha.157 <10.0.0",
|
|
6240
|
+
"@geekmidas/errors": ">=10.0.0-alpha.157 <10.0.0",
|
|
6241
|
+
"@geekmidas/events": ">=10.0.0-alpha.157 <10.0.0",
|
|
6242
|
+
"@geekmidas/logger": ">=10.0.0-alpha.157 <10.0.0",
|
|
6243
|
+
"@geekmidas/manifest": ">=10.0.0-alpha.157 <10.0.0",
|
|
6244
|
+
"@geekmidas/rate-limit": ">=10.0.0-alpha.157 <10.0.0",
|
|
6245
|
+
"@geekmidas/schema": ">=10.0.0-alpha.157 <10.0.0",
|
|
6246
|
+
"@geekmidas/services": ">=10.0.0-alpha.157 <10.0.0",
|
|
6247
|
+
"@geekmidas/storage": ">=10.0.0-alpha.157 <10.0.0",
|
|
6248
|
+
"@geekmidas/telescope": ">=10.0.0-alpha.157 <10.0.0",
|
|
6249
|
+
"@geekmidas/testkit": ">=10.0.0-alpha.157 <10.0.0",
|
|
6250
|
+
"@geekmidas/cli": versionRange(loadPackageJson().version)
|
|
6123
6251
|
};
|
|
6124
6252
|
//#endregion
|
|
6125
6253
|
//#region src/init/generators/auth.ts
|
|
@@ -7311,7 +7439,7 @@ const COMMIT = /^[0-9a-f]{40}$/;
|
|
|
7311
7439
|
* The `uses:` value for the stages action, with a comment saying which CLI
|
|
7312
7440
|
* release the pinned commit is.
|
|
7313
7441
|
*/
|
|
7314
|
-
function stagesActionUses(commit = "
|
|
7442
|
+
function stagesActionUses(commit = "c0d657c2510804ee8f8969608d8270bd7077a161", version = cliVersion()) {
|
|
7315
7443
|
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
7444
|
}
|
|
7317
7445
|
//#endregion
|
|
@@ -16283,7 +16411,7 @@ function testDatabases(reconciled) {
|
|
|
16283
16411
|
* starts without the reference data the app needs.
|
|
16284
16412
|
*/
|
|
16285
16413
|
async function migrateTestStage(workspace, env) {
|
|
16286
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
16414
|
+
const { migrateAndSeed } = await import("./migrate-Y_QjN95a.mjs");
|
|
16287
16415
|
const { discover } = await import("./discover-DbDrCQ8h.mjs").then((n) => n.a);
|
|
16288
16416
|
const sources = {};
|
|
16289
16417
|
const manifest = await discover({
|
|
@@ -16367,6 +16495,15 @@ function simpleRange(range) {
|
|
|
16367
16495
|
version: match[2]
|
|
16368
16496
|
} : void 0;
|
|
16369
16497
|
}
|
|
16498
|
+
/**
|
|
16499
|
+
* The version a capped prerelease range starts at: `10.0.0-alpha.152` for
|
|
16500
|
+
* `>=10.0.0-alpha.152 <10.0.0`, the range `gkm init` writes on a prerelease
|
|
16501
|
+
* line (see `versionRange`). Undefined for anything else.
|
|
16502
|
+
*/
|
|
16503
|
+
function cappedPrerelease(range) {
|
|
16504
|
+
const match = range.trim().match(/^>=\s*v?(\d+\.\d+\.\d+)-([0-9A-Za-z.-]+)\s+<\s*v?(\d+\.\d+\.\d+)$/);
|
|
16505
|
+
return match && match[1] === match[3] ? `${match[1]}-${match[2]}` : void 0;
|
|
16506
|
+
}
|
|
16370
16507
|
//#endregion
|
|
16371
16508
|
//#region src/upgrade/index.ts
|
|
16372
16509
|
const logger = console;
|
|
@@ -16441,6 +16578,25 @@ function resolveTarget(distTags, installed, tag) {
|
|
|
16441
16578
|
function withVersion(range, version) {
|
|
16442
16579
|
return `${simpleRange(range)?.operator ?? ""}${version}`;
|
|
16443
16580
|
}
|
|
16581
|
+
/** The version a `@geekmidas` range names, simple or capped. */
|
|
16582
|
+
function versionOf(range) {
|
|
16583
|
+
return simpleRange(range)?.version ?? cappedPrerelease(range);
|
|
16584
|
+
}
|
|
16585
|
+
/**
|
|
16586
|
+
* A `@geekmidas` range moved to `version`.
|
|
16587
|
+
*
|
|
16588
|
+
* An exact pin stays exact. Otherwise a prerelease target gets the capped
|
|
16589
|
+
* range `gkm init` writes — `>=10.0.0-alpha.152 <10.0.0` — whatever operator
|
|
16590
|
+
* was there: `~` and `^` on a prerelease also admit the release, and a stray
|
|
16591
|
+
* `10.0.0` is on npm (#371), so moving a project along the alpha line also
|
|
16592
|
+
* moves it off a range that resolves to that release. A capped range moving
|
|
16593
|
+
* to a release becomes `~`, as `gkm init` would write it.
|
|
16594
|
+
*/
|
|
16595
|
+
function ourRange(range, version) {
|
|
16596
|
+
if (simpleRange(range)?.operator === "") return version;
|
|
16597
|
+
if (prereleaseTag(version) || cappedPrerelease(range)) return versionRange(version);
|
|
16598
|
+
return withVersion(range, version);
|
|
16599
|
+
}
|
|
16444
16600
|
async function upgradeCommand(options = {}) {
|
|
16445
16601
|
const cwd = process.cwd();
|
|
16446
16602
|
const pm = detectPackageManager$1(cwd);
|
|
@@ -16455,7 +16611,7 @@ async function upgradeCommand(options = {}) {
|
|
|
16455
16611
|
logger.log(" No @geekmidas packages found.\n");
|
|
16456
16612
|
return;
|
|
16457
16613
|
}
|
|
16458
|
-
const installed = ours.map((o) =>
|
|
16614
|
+
const installed = ours.map((o) => versionOf(o.range)).filter((v) => Boolean(v));
|
|
16459
16615
|
const target = resolveTarget((await packument(`${SCOPE}cli`))["dist-tags"], installed, options.tag);
|
|
16460
16616
|
logger.log(` Target: ${target.version} (npm "${target.tag}")\n`);
|
|
16461
16617
|
const highest = installed.sort(compareVersions).at(-1);
|
|
@@ -16463,11 +16619,11 @@ async function upgradeCommand(options = {}) {
|
|
|
16463
16619
|
const moving = options.all ? ours : ours.filter((o) => o.name === `${SCOPE}cli`);
|
|
16464
16620
|
const changes = [];
|
|
16465
16621
|
for (const o of moving) {
|
|
16466
|
-
if (!
|
|
16622
|
+
if (!versionOf(o.range)) {
|
|
16467
16623
|
logger.log(` ⚠ ${o.name} ${o.range} is not a simple range; left as is (target ${target.version}).`);
|
|
16468
16624
|
continue;
|
|
16469
16625
|
}
|
|
16470
|
-
const next =
|
|
16626
|
+
const next = ourRange(o.range, target.version);
|
|
16471
16627
|
if (next !== o.range) changes.push({
|
|
16472
16628
|
...o,
|
|
16473
16629
|
next
|
|
@@ -16708,7 +16864,7 @@ program.command("eas:sync").description("Set up a mobile app's EAS project for a
|
|
|
16708
16864
|
try {
|
|
16709
16865
|
const globalOptions = program.opts();
|
|
16710
16866
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16711
|
-
const { easSync } = await import("./eas-
|
|
16867
|
+
const { easSync } = await import("./eas-C_96kJG8.mjs");
|
|
16712
16868
|
await easSync(options);
|
|
16713
16869
|
} catch (error) {
|
|
16714
16870
|
exitWithError(error);
|
|
@@ -16718,7 +16874,7 @@ program.command("publish").description("Ship a mobile app for a deployed stage:
|
|
|
16718
16874
|
try {
|
|
16719
16875
|
const globalOptions = program.opts();
|
|
16720
16876
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16721
|
-
const { publish, PublishModeConflict } = await import("./publish-
|
|
16877
|
+
const { publish, PublishModeConflict } = await import("./publish-CxQyLRhO.mjs");
|
|
16722
16878
|
if (options.build && options.update) throw new PublishModeConflict();
|
|
16723
16879
|
const { build, update, ...rest } = options;
|
|
16724
16880
|
await publish({
|
|
@@ -16734,7 +16890,7 @@ program.command("deploy:google-play").description("Let EAS Submit publish a mobi
|
|
|
16734
16890
|
try {
|
|
16735
16891
|
const globalOptions = program.opts();
|
|
16736
16892
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16737
|
-
const { deployGooglePlay } = await import("./googlePlay-
|
|
16893
|
+
const { deployGooglePlay } = await import("./googlePlay-CcDoKDlM.mjs");
|
|
16738
16894
|
await deployGooglePlay(options);
|
|
16739
16895
|
} catch (error) {
|
|
16740
16896
|
exitWithError(error);
|
|
@@ -16756,7 +16912,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
16756
16912
|
try {
|
|
16757
16913
|
const globalOptions = program.opts();
|
|
16758
16914
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16759
|
-
const { migrateCommand } = await import("./migrate-
|
|
16915
|
+
const { migrateCommand } = await import("./migrate-Y_QjN95a.mjs");
|
|
16760
16916
|
await migrateCommand({
|
|
16761
16917
|
...options,
|
|
16762
16918
|
...construct ? { construct } : {}
|
|
@@ -16769,7 +16925,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
16769
16925
|
try {
|
|
16770
16926
|
const globalOptions = program.opts();
|
|
16771
16927
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16772
|
-
const { seedCommand } = await import("./migrate-
|
|
16928
|
+
const { seedCommand } = await import("./migrate-Y_QjN95a.mjs");
|
|
16773
16929
|
await seedCommand({
|
|
16774
16930
|
...options,
|
|
16775
16931
|
...construct ? { construct } : {}
|
|
@@ -16782,7 +16938,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
16782
16938
|
try {
|
|
16783
16939
|
const globalOptions = program.opts();
|
|
16784
16940
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16785
|
-
const { migrationCommand } = await import("./migrate-
|
|
16941
|
+
const { migrationCommand } = await import("./migrate-Y_QjN95a.mjs");
|
|
16786
16942
|
await migrationCommand({
|
|
16787
16943
|
construct,
|
|
16788
16944
|
...name ? { name } : {}
|
|
@@ -16882,7 +17038,7 @@ program.command("secrets:add").description("Build the keys a stage must be given
|
|
|
16882
17038
|
try {
|
|
16883
17039
|
const globalOptions = program.opts();
|
|
16884
17040
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16885
|
-
const { secretsAddCommand } = await import("./add-
|
|
17041
|
+
const { secretsAddCommand } = await import("./add-CO16e9iI.mjs");
|
|
16886
17042
|
await secretsAddCommand(options);
|
|
16887
17043
|
} catch (error) {
|
|
16888
17044
|
exitWithError(error);
|
|
@@ -16892,7 +17048,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
16892
17048
|
try {
|
|
16893
17049
|
const globalOptions = program.opts();
|
|
16894
17050
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16895
|
-
const { encryptionRotateCommand } = await import("./encryption-
|
|
17051
|
+
const { encryptionRotateCommand } = await import("./encryption-DfoPAQ06.mjs");
|
|
16896
17052
|
await encryptionRotateCommand(construct, options);
|
|
16897
17053
|
} catch (error) {
|
|
16898
17054
|
exitWithError(error);
|
|
@@ -16902,7 +17058,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
16902
17058
|
try {
|
|
16903
17059
|
const globalOptions = program.opts();
|
|
16904
17060
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16905
|
-
const { encryptionRetireCommand } = await import("./encryption-
|
|
17061
|
+
const { encryptionRetireCommand } = await import("./encryption-DfoPAQ06.mjs");
|
|
16906
17062
|
await encryptionRetireCommand(construct, key, options);
|
|
16907
17063
|
} catch (error) {
|
|
16908
17064
|
exitWithError(error);
|
|
@@ -16941,7 +17097,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
16941
17097
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16942
17098
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
16943
17099
|
const { reconcileMissingSecrets } = await import("./reconcile--I7V4Klj.mjs");
|
|
16944
|
-
const { secretsStoreFor } = await import("./credentials-
|
|
17100
|
+
const { secretsStoreFor } = await import("./credentials-C69J5G91.mjs").then((n) => n.j);
|
|
16945
17101
|
const { workspace } = await loadWorkspaceConfig();
|
|
16946
17102
|
const stage = options.stage ?? workspace.stages.local;
|
|
16947
17103
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -16950,7 +17106,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
16950
17106
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
16951
17107
|
process.exit(1);
|
|
16952
17108
|
}
|
|
16953
|
-
const { derivedContainers } = await import("./apps-
|
|
17109
|
+
const { derivedContainers } = await import("./apps-BVcA1Hy7.mjs").then((n) => n.h);
|
|
16954
17110
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
16955
17111
|
if (!result) {
|
|
16956
17112
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -16967,14 +17123,14 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
16967
17123
|
try {
|
|
16968
17124
|
const globalOptions = program.opts();
|
|
16969
17125
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16970
|
-
const { secretsMigrateCommand } = await import("./migrate-
|
|
17126
|
+
const { secretsMigrateCommand } = await import("./migrate-Hi5BARdP.mjs");
|
|
16971
17127
|
await secretsMigrateCommand(options);
|
|
16972
17128
|
} catch (error) {
|
|
16973
17129
|
exitWithError(error);
|
|
16974
17130
|
}
|
|
16975
17131
|
});
|
|
16976
17132
|
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-
|
|
17133
|
+
const { deployCli } = await import("./cli-BsiiOIVE.mjs");
|
|
16978
17134
|
const globalOptions = program.opts();
|
|
16979
17135
|
const code = await deployCli({
|
|
16980
17136
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -16994,8 +17150,8 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
16994
17150
|
});
|
|
16995
17151
|
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
17152
|
try {
|
|
16997
|
-
const { rollbackStage } = await import("./rollback-
|
|
16998
|
-
const { terminalCredentials } = await import("./terminal-
|
|
17153
|
+
const { rollbackStage } = await import("./rollback-DfJ0Rpkb.mjs").then((n) => n.a);
|
|
17154
|
+
const { terminalCredentials } = await import("./terminal-cYD0PvkL.mjs");
|
|
16999
17155
|
const globalOptions = program.opts();
|
|
17000
17156
|
await rollbackStage({
|
|
17001
17157
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -17013,7 +17169,7 @@ program.command("compose:server").description("Set up a stage's server for compo
|
|
|
17013
17169
|
try {
|
|
17014
17170
|
const globalOptions = program.opts();
|
|
17015
17171
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17016
|
-
const { composeServerCommand } = await import("./serverSetup-
|
|
17172
|
+
const { composeServerCommand } = await import("./serverSetup-6bczKo49.mjs");
|
|
17017
17173
|
await composeServerCommand(options);
|
|
17018
17174
|
} catch (error) {
|
|
17019
17175
|
exitWithError(error);
|
|
@@ -17038,7 +17194,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
17038
17194
|
try {
|
|
17039
17195
|
const globalOptions = program.opts();
|
|
17040
17196
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17041
|
-
const { deployGithubCommand } = await import("./github-
|
|
17197
|
+
const { deployGithubCommand } = await import("./github-DWgux2Mc.mjs");
|
|
17042
17198
|
await deployGithubCommand(options);
|
|
17043
17199
|
} catch (error) {
|
|
17044
17200
|
exitWithError(error);
|