@geekmidas/cli 10.0.0-alpha.175 → 10.0.0-alpha.176
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{GoDaddyProvider-BHNFin4Y.cjs → GoDaddyProvider-CLRtSbuA.cjs} +2 -2
- package/dist/{GoDaddyProvider-BHNFin4Y.cjs.map → GoDaddyProvider-CLRtSbuA.cjs.map} +1 -1
- package/dist/{GoDaddyProvider-BtnO8_pk.mjs → GoDaddyProvider-DuqG_Wcy.mjs} +2 -2
- package/dist/{GoDaddyProvider-BtnO8_pk.mjs.map → GoDaddyProvider-DuqG_Wcy.mjs.map} +1 -1
- package/dist/{HostingerProvider-Bbb1_aKS.cjs → HostingerProvider-Cbqb6bQN.cjs} +2 -2
- package/dist/{HostingerProvider-Bbb1_aKS.cjs.map → HostingerProvider-Cbqb6bQN.cjs.map} +1 -1
- package/dist/{HostingerProvider-Cq7QeLKO.mjs → HostingerProvider-CiA6uPeg.mjs} +2 -2
- package/dist/{HostingerProvider-Cq7QeLKO.mjs.map → HostingerProvider-CiA6uPeg.mjs.map} +1 -1
- package/dist/{LegacyStateStore-r8xgq8Vv.mjs → LegacyStateStore-BuTTsqfo.mjs} +2 -2
- package/dist/{LegacyStateStore-r8xgq8Vv.mjs.map → LegacyStateStore-BuTTsqfo.mjs.map} +1 -1
- package/dist/{LegacyStateStore-CbuqTCMX.cjs → LegacyStateStore-BwNm_jmw.cjs} +2 -2
- package/dist/{LegacyStateStore-CbuqTCMX.cjs.map → LegacyStateStore-BwNm_jmw.cjs.map} +1 -1
- package/dist/{LocalStateStore-BMnidUp_.mjs → LocalStateStore-DYoAtXrf.mjs} +2 -2
- package/dist/{LocalStateStore-BMnidUp_.mjs.map → LocalStateStore-DYoAtXrf.mjs.map} +1 -1
- package/dist/{LocalStateStore-B6_1oDJ_.cjs → LocalStateStore-aEaoJuaR.cjs} +2 -2
- package/dist/{LocalStateStore-B6_1oDJ_.cjs.map → LocalStateStore-aEaoJuaR.cjs.map} +1 -1
- package/dist/{S3StateStore-CHXicp6D.mjs → S3StateStore-BC8iBPAY.mjs} +4 -4
- package/dist/{S3StateStore-CHXicp6D.mjs.map → S3StateStore-BC8iBPAY.mjs.map} +1 -1
- package/dist/{S3StateStore-Dq12263A.cjs → S3StateStore-D_V_QOU-.cjs} +4 -4
- package/dist/{S3StateStore-Dq12263A.cjs.map → S3StateStore-D_V_QOU-.cjs.map} +1 -1
- package/dist/{SSMStateStore-D8HJ3FU9.cjs → SSMStateStore-DKxVa6_D.cjs} +2 -2
- package/dist/{SSMStateStore-D8HJ3FU9.cjs.map → SSMStateStore-DKxVa6_D.cjs.map} +1 -1
- package/dist/{SSMStateStore-BAMceTz-.mjs → SSMStateStore-vpbJWC-B.mjs} +2 -2
- package/dist/{SSMStateStore-BAMceTz-.mjs.map → SSMStateStore-vpbJWC-B.mjs.map} +1 -1
- package/dist/{add-QkB0jIec.cjs → add-D96Ox7kG.cjs} +4 -4
- package/dist/{add-QkB0jIec.cjs.map → add-D96Ox7kG.cjs.map} +1 -1
- package/dist/{add-BK_Mb6D_.mjs → add-DBmlnNKr.mjs} +4 -4
- package/dist/{add-BK_Mb6D_.mjs.map → add-DBmlnNKr.mjs.map} +1 -1
- package/dist/{apps-D83caHjP.cjs → apps-FB2XppkH.cjs} +3 -3
- package/dist/{apps-D83caHjP.cjs.map → apps-FB2XppkH.cjs.map} +1 -1
- package/dist/{apps-DpyJvU00.mjs → apps-iMCuJRmp.mjs} +3 -3
- package/dist/{apps-DpyJvU00.mjs.map → apps-iMCuJRmp.mjs.map} +1 -1
- package/dist/{bundler-CgCVGuji.mjs → bundler-BkdPQxcw.mjs} +6 -6
- package/dist/{bundler-CgCVGuji.mjs.map → bundler-BkdPQxcw.mjs.map} +1 -1
- package/dist/{bundler-DTHUOAAV.cjs → bundler-D2YOzGbK.cjs} +6 -6
- package/dist/{bundler-DTHUOAAV.cjs.map → bundler-D2YOzGbK.cjs.map} +1 -1
- package/dist/{cli-Cx1tIFan.cjs → cli-4dCD3ByQ.cjs} +4 -4
- package/dist/{cli-Cx1tIFan.cjs.map → cli-4dCD3ByQ.cjs.map} +1 -1
- package/dist/{cli-B2XyVbUz.mjs → cli-D7aYkTrO.mjs} +4 -4
- package/dist/{cli-B2XyVbUz.mjs.map → cli-D7aYkTrO.mjs.map} +1 -1
- package/dist/{compose-DVr47TbA.cjs → compose-BlEELe3Q.cjs} +4 -4
- package/dist/{compose-DVr47TbA.cjs.map → compose-BlEELe3Q.cjs.map} +1 -1
- package/dist/{compose-B9uSqCxY.cjs → compose-CfsQ4khN.cjs} +221 -16
- package/dist/compose-CfsQ4khN.cjs.map +1 -0
- package/dist/{compose-j0SE-0EG.mjs → compose-DKp1s6XP.mjs} +4 -4
- package/dist/{compose-j0SE-0EG.mjs.map → compose-DKp1s6XP.mjs.map} +1 -1
- package/dist/{compose-CbXGx1_z.mjs → compose-hcFa0rWb.mjs} +207 -14
- package/dist/compose-hcFa0rWb.mjs.map +1 -0
- package/dist/deploy/public.cjs +10 -10
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +10 -10
- package/dist/{deploy-qdWn2-m9.cjs → deploy-B-Ky0iUC.cjs} +16 -15
- package/dist/{deploy-qdWn2-m9.cjs.map → deploy-B-Ky0iUC.cjs.map} +1 -1
- package/dist/{deploy-DDWnWXnA.mjs → deploy-gRkLgV35.mjs} +16 -15
- package/dist/{deploy-DDWnWXnA.mjs.map → deploy-gRkLgV35.mjs.map} +1 -1
- package/dist/{destroy-DvJEbs9P.mjs → destroy-2f3L-pMt.mjs} +7 -7
- package/dist/{destroy-DvJEbs9P.mjs.map → destroy-2f3L-pMt.mjs.map} +1 -1
- package/dist/{destroy-B28Zwbzr.cjs → destroy-CiHXpKPS.cjs} +7 -7
- package/dist/{destroy-B28Zwbzr.cjs.map → destroy-CiHXpKPS.cjs.map} +1 -1
- package/dist/{dns-BxgfpQWO.mjs → dns-CjzC-jTr.mjs} +21 -7
- package/dist/dns-CjzC-jTr.mjs.map +1 -0
- package/dist/{dns-CiUCbOXH.cjs → dns-DsOsv1gk.cjs} +26 -6
- package/dist/dns-DsOsv1gk.cjs.map +1 -0
- package/dist/{docker-Coy1O-IN.cjs → docker-ALmOF9Ye.cjs} +4 -4
- package/dist/{docker-Coy1O-IN.cjs.map → docker-ALmOF9Ye.cjs.map} +1 -1
- package/dist/{docker-Dcsqf_NA.mjs → docker-Bu083Pc8.mjs} +4 -4
- package/dist/{docker-Dcsqf_NA.mjs.map → docker-Bu083Pc8.mjs.map} +1 -1
- package/dist/{dokploy-Dohi7fuh.mjs → dokploy--YjmpGf4.mjs} +2 -2
- package/dist/{dokploy-Dohi7fuh.mjs.map → dokploy--YjmpGf4.mjs.map} +1 -1
- package/dist/{dokploy-Df4oDdAu.cjs → dokploy-Cg2NOSax.cjs} +2 -2
- package/dist/{dokploy-Df4oDdAu.cjs.map → dokploy-Cg2NOSax.cjs.map} +1 -1
- package/dist/{eas-B8t0Ipgt.cjs → eas-CUDPiJmf.cjs} +2 -2
- package/dist/{eas-B8t0Ipgt.cjs.map → eas-CUDPiJmf.cjs.map} +1 -1
- package/dist/{eas-FLjCtoiB.mjs → eas-CtE3eftL.mjs} +2 -2
- package/dist/{eas-FLjCtoiB.mjs.map → eas-CtE3eftL.mjs.map} +1 -1
- package/dist/{encryption-CEiJrhOd.cjs → encryption-B72rAliE.cjs} +2 -2
- package/dist/{encryption-CEiJrhOd.cjs.map → encryption-B72rAliE.cjs.map} +1 -1
- package/dist/{encryption-DlID0xqU.mjs → encryption-BNqwJ2Mr.mjs} +2 -2
- package/dist/{encryption-DlID0xqU.mjs.map → encryption-BNqwJ2Mr.mjs.map} +1 -1
- package/dist/{engine-Ci62MZrE.cjs → engine-BfKsVd1h.cjs} +10 -9
- package/dist/engine-BfKsVd1h.cjs.map +1 -0
- package/dist/{engine-zE2sQUNS.mjs → engine-D5eAK0_u.mjs} +10 -9
- package/dist/engine-D5eAK0_u.mjs.map +1 -0
- package/dist/{github-Di-u6VhX.mjs → github-BQJEjYTv.mjs} +19 -10
- package/dist/github-BQJEjYTv.mjs.map +1 -0
- package/dist/{github-DXBTTGl3.cjs → github-BpAQd9XJ.cjs} +19 -10
- package/dist/github-BpAQd9XJ.cjs.map +1 -0
- package/dist/{googlePlay-C3ubCMrO.cjs → googlePlay-CGoKjrGj.cjs} +4 -4
- package/dist/{googlePlay-C3ubCMrO.cjs.map → googlePlay-CGoKjrGj.cjs.map} +1 -1
- package/dist/{googlePlay-Crx8XG3Z.mjs → googlePlay-CMMDk65f.mjs} +4 -4
- package/dist/{googlePlay-Crx8XG3Z.mjs.map → googlePlay-CMMDk65f.mjs.map} +1 -1
- package/dist/index.cjs +171 -83
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +172 -84
- package/dist/index.mjs.map +1 -1
- package/dist/{local-DyOeF-qR.cjs → local-BkiJKXwa.cjs} +2 -2
- package/dist/{local-DyOeF-qR.cjs.map → local-BkiJKXwa.cjs.map} +1 -1
- package/dist/{local-pYpQVNII.mjs → local-DoENgulS.mjs} +2 -2
- package/dist/{local-pYpQVNII.mjs.map → local-DoENgulS.mjs.map} +1 -1
- package/dist/{migrate-CnH3PLzA.mjs → migrate-BLJIigAS.mjs} +4 -4
- package/dist/{migrate-CnH3PLzA.mjs.map → migrate-BLJIigAS.mjs.map} +1 -1
- package/dist/{migrate-BHvFlwDQ.mjs → migrate-BODEFlT7.mjs} +2 -2
- package/dist/{migrate-BHvFlwDQ.mjs.map → migrate-BODEFlT7.mjs.map} +1 -1
- package/dist/{migrate-DXW9w2DK.cjs → migrate-D-0i_3u-.cjs} +4 -4
- package/dist/{migrate-DXW9w2DK.cjs.map → migrate-D-0i_3u-.cjs.map} +1 -1
- package/dist/{migrate-vXdW9TR3.cjs → migrate-DMpbu7Td.cjs} +2 -2
- package/dist/{migrate-vXdW9TR3.cjs.map → migrate-DMpbu7Td.cjs.map} +1 -1
- package/dist/{notes-BOQGsAVb.cjs → notes-CsPeouTH.cjs} +2 -2
- package/dist/{notes-BOQGsAVb.cjs.map → notes-CsPeouTH.cjs.map} +1 -1
- package/dist/{notes-DuPsUdr4.mjs → notes-DcRTv0Pb.mjs} +2 -2
- package/dist/{notes-DuPsUdr4.mjs.map → notes-DcRTv0Pb.mjs.map} +1 -1
- package/dist/{projectBucket-o-_7Hgxt.mjs → projectBucket-CZ5XnmoT.mjs} +2 -2
- package/dist/{projectBucket-o-_7Hgxt.mjs.map → projectBucket-CZ5XnmoT.mjs.map} +1 -1
- package/dist/{projectBucket-CP6rkXdo.cjs → projectBucket-Dl2KUhdO.cjs} +2 -2
- package/dist/{projectBucket-CP6rkXdo.cjs.map → projectBucket-Dl2KUhdO.cjs.map} +1 -1
- package/dist/{publish-C9_gTOGU.mjs → publish-ClymwMkS.mjs} +2 -2
- package/dist/{publish-C9_gTOGU.mjs.map → publish-ClymwMkS.mjs.map} +1 -1
- package/dist/{publish-DbJ7hMQ_.cjs → publish-D8CS0q_Q.cjs} +2 -2
- package/dist/{publish-DbJ7hMQ_.cjs.map → publish-D8CS0q_Q.cjs.map} +1 -1
- package/dist/{resolve-nTuLxira.mjs → resolve-CoaQmANg.mjs} +4 -4
- package/dist/{resolve-nTuLxira.mjs.map → resolve-CoaQmANg.mjs.map} +1 -1
- package/dist/{resolve-4ME0CRVM.cjs → resolve-Dn1n69kp.cjs} +4 -4
- package/dist/{resolve-4ME0CRVM.cjs.map → resolve-Dn1n69kp.cjs.map} +1 -1
- package/dist/{rollback-CAfhleLK.cjs → rollback-BNP1XKtz.cjs} +5 -5
- package/dist/{rollback-CAfhleLK.cjs.map → rollback-BNP1XKtz.cjs.map} +1 -1
- package/dist/{rollback-CXy-4gxa.mjs → rollback-o85w39I-.mjs} +5 -5
- package/dist/{rollback-CXy-4gxa.mjs.map → rollback-o85w39I-.mjs.map} +1 -1
- package/dist/{s3-C90gsHUn.cjs → s3-BF1qsk-S.cjs} +2 -2
- package/dist/{s3-C90gsHUn.cjs.map → s3-BF1qsk-S.cjs.map} +1 -1
- package/dist/{s3-DcIf5bPO.mjs → s3-XW71srQO.mjs} +2 -2
- package/dist/{s3-DcIf5bPO.mjs.map → s3-XW71srQO.mjs.map} +1 -1
- package/dist/{serverSetup-4oc_a1T5.cjs → serverSetup-Bi6BAQvQ.cjs} +5 -5
- package/dist/{serverSetup-4oc_a1T5.cjs.map → serverSetup-Bi6BAQvQ.cjs.map} +1 -1
- package/dist/{serverSetup-BmmkcyBv.mjs → serverSetup-ClkJ0dhD.mjs} +5 -5
- package/dist/{serverSetup-BmmkcyBv.mjs.map → serverSetup-ClkJ0dhD.mjs.map} +1 -1
- package/dist/{sniffer-FdJ9urOA.cjs → sniffer-5BEd0W-2.cjs} +6 -6
- package/dist/{sniffer-FdJ9urOA.cjs.map → sniffer-5BEd0W-2.cjs.map} +1 -1
- package/dist/{sniffer-Cawd1GeY.mjs → sniffer-CwA19f8u.mjs} +6 -6
- package/dist/{sniffer-Cawd1GeY.mjs.map → sniffer-CwA19f8u.mjs.map} +1 -1
- package/dist/{snsSubscriptions-DclU57O7.cjs → snsSubscriptions-D_oK-FKK.cjs} +3 -3
- package/dist/{snsSubscriptions-DclU57O7.cjs.map → snsSubscriptions-D_oK-FKK.cjs.map} +1 -1
- package/dist/{snsSubscriptions-Cm-pdWyW.mjs → snsSubscriptions-DlNwAo6l.mjs} +3 -3
- package/dist/{snsSubscriptions-Cm-pdWyW.mjs.map → snsSubscriptions-DlNwAo6l.mjs.map} +1 -1
- package/dist/{sst-D6Kt9gDS.cjs → sst-BDaYh-cJ.cjs} +4 -4
- package/dist/{sst-D6Kt9gDS.cjs.map → sst-BDaYh-cJ.cjs.map} +1 -1
- package/dist/{sst-BiOWTOUg.mjs → sst-DmjCAYmq.mjs} +4 -4
- package/dist/{sst-BiOWTOUg.mjs.map → sst-DmjCAYmq.mjs.map} +1 -1
- package/dist/{stack-DZn7Yr8z.mjs → stack-HULMMZlf.mjs} +21 -161
- package/dist/stack-HULMMZlf.mjs.map +1 -0
- package/dist/{stack-BmjNDZiJ.cjs → stack-UtZKqaoh.cjs} +20 -190
- package/dist/stack-UtZKqaoh.cjs.map +1 -0
- package/dist/{stage-tdH9m6Wf.cjs → stage-2YFzi0j2.cjs} +5 -5
- package/dist/{stage-tdH9m6Wf.cjs.map → stage-2YFzi0j2.cjs.map} +1 -1
- package/dist/{stage-CoUrlN-W.mjs → stage-D_2SKwyr.mjs} +5 -5
- package/dist/{stage-CoUrlN-W.mjs.map → stage-D_2SKwyr.mjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/dist/{terminal-iL0e-c9K.cjs → terminal-DywyNR4M.cjs} +2 -2
- package/dist/{terminal-iL0e-c9K.cjs.map → terminal-DywyNR4M.cjs.map} +1 -1
- package/dist/{terminal-BI7b8BdH.mjs → terminal-J3kNRlry.mjs} +2 -2
- package/dist/{terminal-BI7b8BdH.mjs.map → terminal-J3kNRlry.mjs.map} +1 -1
- package/package.json +15 -15
- package/dist/compose-B9uSqCxY.cjs.map +0 -1
- package/dist/compose-CbXGx1_z.mjs.map +0 -1
- package/dist/dns-BxgfpQWO.mjs.map +0 -1
- package/dist/dns-CiUCbOXH.cjs.map +0 -1
- package/dist/engine-Ci62MZrE.cjs.map +0 -1
- package/dist/engine-zE2sQUNS.mjs.map +0 -1
- package/dist/github-DXBTTGl3.cjs.map +0 -1
- package/dist/github-Di-u6VhX.mjs.map +0 -1
- package/dist/stack-BmjNDZiJ.cjs.map +0 -1
- package/dist/stack-DZn7Yr8z.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
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
|
|
5
|
-
import { _ as
|
|
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 storeDokployCredentials, dt as getDokployRegistryId, ft as getDokployToken, gt as removeGoDaddyCredentials, ht as removeDokployCredentials, it as CommandFailed, k as secretsStoreFor, lt as getCredentialsPath, mt as readCredentials, ot as DEFAULT_TIMEOUT_MS, q as projectKey, ut as getDokployCredentials, vt as storeGoDaddyToken, w as cacheBackendFor, yt as storeHostingerToken } from "./dns-CjzC-jTr.mjs";
|
|
5
|
+
import { _ as ContainersNotStopped, c as parseDigests, d as removeEdgeRoutes, f as composeServer, g as ContainersNotStarted, h as sshTarget, i as ComposePushNeedsBuild, l as pinnedRef, p as dockerHost, r as ComposePinNeedsPull, t as composeTarget, u as edgeRef, v as dockerCompose, y as projectNetwork } from "./compose-hcFa0rWb.mjs";
|
|
6
6
|
import { A as InvalidStages, F as stageProblems, P as deployedProblems, R as stageSampleRate, a as allConstructGlobs, ct as protectedSubdomains, d as getAppGkmConfig, j as TEST_STAGE, lt as wildcardSite, ot as appKey, u as getAppBuildOrder } from "./workspace-BBa1Ck5j.mjs";
|
|
7
|
-
import { $ as imageBuildCredentials, Ct as postgresDatabaseNames, Ft as runTime, It as stageBackups, Nt as backupFile, Pt as backupsPrefix, S as ensureLocalAuthority, Tt as quoteIdentifier, _ as forgetState, ct as processorUnits, d as backendsOf$1, dt as BACKUPS_URL_KEY, et as isImageBuild, f as constructGlobs, ft as RUNNER_PATH, jt as backupDatabases, kt as stageEnv$1, lt as workerUnits, m as reconcileWorkspace, n as appProcess, o as processEnv, ot as isUnder, p as derivedContainers, u as FAKE_ENV, ut as BACKUPS_SERVICE, w as localAuthorityPaths, x as pgClient } from "./apps-
|
|
7
|
+
import { $ as imageBuildCredentials, Ct as postgresDatabaseNames, Ft as runTime, It as stageBackups, Nt as backupFile, Pt as backupsPrefix, S as ensureLocalAuthority, Tt as quoteIdentifier, _ as forgetState, ct as processorUnits, d as backendsOf$1, dt as BACKUPS_URL_KEY, et as isImageBuild, f as constructGlobs, ft as RUNNER_PATH, jt as backupDatabases, kt as stageEnv$1, lt as workerUnits, m as reconcileWorkspace, n as appProcess, o as processEnv, ot as isUnder, p as derivedContainers, u as FAKE_ENV, ut as BACKUPS_SERVICE, w as localAuthorityPaths, x as pgClient } from "./apps-iMCuJRmp.mjs";
|
|
8
8
|
import { o as email } from "./schemas-BCwKKA42.mjs";
|
|
9
|
-
import { I as surfaceClientTraced, L as telemetryOf, N as scopeTelemetryEnv, O as TELEMETRY_CONTAINER, _ as readLocalCredentials, a as createEntryWrapper, c as loadEnvFiles, d as prepareEntryCredentials, dt as primaryPortKey, i as createCredentialsPreload, j as appTelemetry, l as loadPortState, lt as portsOf, o as findAvailablePort, ot as describeServices, pt as LOCAL_LOGS_EMAIL, s as isPortAvailable, st as fakeKey, t as CLUSTER_DATABASE, u as loadSecretsForApp } from "./compose-
|
|
9
|
+
import { I as surfaceClientTraced, L as telemetryOf, N as scopeTelemetryEnv, O as TELEMETRY_CONTAINER, _ as readLocalCredentials, a as createEntryWrapper, c as loadEnvFiles, d as prepareEntryCredentials, dt as primaryPortKey, i as createCredentialsPreload, j as appTelemetry, l as loadPortState, lt as portsOf, o as findAvailablePort, ot as describeServices, pt as LOCAL_LOGS_EMAIL, s as isPortAvailable, st as fakeKey, t as CLUSTER_DATABASE, u as loadSecretsForApp } from "./compose-DKp1s6XP.mjs";
|
|
10
10
|
import { n as assertTestCredentials, t as SubscriberGenerator } from "./SubscriberGenerator-NxcLNeDJ.mjs";
|
|
11
11
|
import { c as publishesToApiGateway, i as eventsBackendsIn, m as isCacheBackend, n as driversFor, r as driversOf, s as opensKmsKeys, t as cacheBackendsIn } from "./drivers-BQRb3KsL.mjs";
|
|
12
12
|
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-DMq6ameY.mjs";
|
|
13
13
|
import { i as discover, u as withOwningTsconfigJsx, v as ConstructGenerator } from "./discover-B_PDDaVj.mjs";
|
|
14
14
|
import { ConfigNotFound, NotABackendApp, NotInAnApp, loadAppConfig, loadConfig, loadWorkspaceConfig, loadWorkspaceSettings, parseModuleConfig } from "./config.mjs";
|
|
15
|
-
import { d as assertDevServicesFlag } from "./notes-
|
|
16
|
-
import {
|
|
17
|
-
import { C as servedBy, S as reachedBy, _ as processorInfo, b as handlerDriversFor, 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, v as appOutputDir, w as surfaceAt, x as ownersContext, y as sharedDirectoryTree } from "./docker-
|
|
15
|
+
import { d as assertDevServicesFlag } from "./notes-DcRTv0Pb.mjs";
|
|
16
|
+
import { D as awsClientConfig, O as awsEndpoint, a as composeProject, c as derivedCredentials, f as stackPlan, k as awsProvisioningCredentials, y as EDGE_PROJECT } from "./stack-HULMMZlf.mjs";
|
|
17
|
+
import { C as servedBy, S as reachedBy, _ as processorInfo, b as handlerDriversFor, 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, v as appOutputDir, w as surfaceAt, x as ownersContext, y as sharedDirectoryTree } from "./docker-Bu083Pc8.mjs";
|
|
18
18
|
import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
|
|
19
19
|
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";
|
|
20
20
|
import { n as withHandlers, t as manifestModule } from "./emit-C4KSXOeS.mjs";
|
|
21
|
-
import { t as LocalSandbox } from "./local-
|
|
22
|
-
import { S as createStateStore, k as keyFingerprint, n as sniffAppEnvironment, o as DokployApi } from "./sniffer-
|
|
23
|
-
import { t as deploy$1 } from "./deploy-
|
|
21
|
+
import { t as LocalSandbox } from "./local-DoENgulS.mjs";
|
|
22
|
+
import { S as createStateStore, k as keyFingerprint, n as sniffAppEnvironment, o as DokployApi } from "./sniffer-CwA19f8u.mjs";
|
|
23
|
+
import { t as deploy$1 } from "./deploy-gRkLgV35.mjs";
|
|
24
24
|
import { a as describeActor, d as dnsResources } from "./seeds-Ccn0Ru2T.mjs";
|
|
25
25
|
import { o as loadCredentialSchemas, t as CredentialsInvalid } from "./credentialSchemas-BzJiK1nQ.mjs";
|
|
26
|
-
import { t as LocalStateStore } from "./LocalStateStore-
|
|
26
|
+
import { t as LocalStateStore } from "./LocalStateStore-DYoAtXrf.mjs";
|
|
27
27
|
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";
|
|
28
28
|
import { a as writeTestHarness, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, t as TEST_READY_ENV } from "./ready-D1gctv-5.mjs";
|
|
29
29
|
import { createRequire } from "node:module";
|
|
@@ -31,9 +31,10 @@ import { basename, dirname, isAbsolute, join, relative, resolve } from "node:pat
|
|
|
31
31
|
import { Command, Option } from "commander";
|
|
32
32
|
import { stdin, stdout } from "node:process";
|
|
33
33
|
import * as readline from "node:readline/promises";
|
|
34
|
-
import { existsSync, linkSync, mkdirSync, readFileSync, readdirSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
35
|
-
import { chmod, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
36
|
-
import { homedir } from "node:os";
|
|
34
|
+
import { createReadStream, createWriteStream, existsSync, linkSync, mkdirSync, readFileSync, readdirSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
35
|
+
import { chmod, mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
|
|
36
|
+
import { homedir, tmpdir } from "node:os";
|
|
37
|
+
import { pipeline } from "node:stream/promises";
|
|
37
38
|
import { execFile, execSync, spawn } from "node:child_process";
|
|
38
39
|
import { connect } from "node:net";
|
|
39
40
|
import { createHash, randomBytes, timingSafeEqual } from "node:crypto";
|
|
@@ -53,7 +54,7 @@ import { Readable as Readable$1 } from "stream";
|
|
|
53
54
|
import crypto from "crypto";
|
|
54
55
|
import { Topic } from "@geekmidas/constructs/topic";
|
|
55
56
|
//#region package.json
|
|
56
|
-
var version = "10.0.0-alpha.
|
|
57
|
+
var version = "10.0.0-alpha.176";
|
|
57
58
|
//#endregion
|
|
58
59
|
//#region src/prompt.ts
|
|
59
60
|
/**
|
|
@@ -136,7 +137,7 @@ const logger$8 = console;
|
|
|
136
137
|
* Validate Dokploy token by making a test API call
|
|
137
138
|
*/
|
|
138
139
|
async function validateDokployToken(endpoint, token) {
|
|
139
|
-
const { DokployApi } = await import("./sniffer-
|
|
140
|
+
const { DokployApi } = await import("./sniffer-CwA19f8u.mjs").then((n) => n.c);
|
|
140
141
|
return new DokployApi({
|
|
141
142
|
baseUrl: endpoint,
|
|
142
143
|
token
|
|
@@ -282,6 +283,23 @@ function maskToken(token) {
|
|
|
282
283
|
}
|
|
283
284
|
//#endregion
|
|
284
285
|
//#region src/backups/commands.ts
|
|
286
|
+
/**
|
|
287
|
+
* `gkm backup:list`, `gkm backup:now` and `gkm backup:restore` — run from a
|
|
288
|
+
* laptop or CI with the stage account's own credentials.
|
|
289
|
+
*
|
|
290
|
+
* - **list** reads the stage's backups prefix with the caller's credentials.
|
|
291
|
+
* The stage's backups key cannot: it may only put.
|
|
292
|
+
* - **now** asks the stack's backups container to run, through `docker exec`
|
|
293
|
+
* on whatever Docker the stage runs on.
|
|
294
|
+
* - **restore** asks first (`--yes` skips it), takes a fresh backup, then
|
|
295
|
+
* streams each database's file from S3 — with the caller's credentials —
|
|
296
|
+
* into a one-off container of the backups image on the stack's network,
|
|
297
|
+
* which recreates the database from it as the stack's superuser.
|
|
298
|
+
* - **restore --from** loads a prepared, data-only file kept under the
|
|
299
|
+
* stage's `imports/` instead: the stack's apps are stopped, the database's
|
|
300
|
+
* other sessions ended, and the file run inside it in one transaction —
|
|
301
|
+
* then the apps are started again, whatever happened.
|
|
302
|
+
*/
|
|
285
303
|
/** A stage that has no backups to list or restore. */
|
|
286
304
|
var BackupsNotOn = class extends GkmError {
|
|
287
305
|
stage;
|
|
@@ -498,6 +516,22 @@ var RestoreFailed = class extends GkmError {
|
|
|
498
516
|
this.name = "RestoreFailed";
|
|
499
517
|
}
|
|
500
518
|
};
|
|
519
|
+
/**
|
|
520
|
+
* A file's download from S3 ended before the whole object arrived. Nothing
|
|
521
|
+
* was run against the database.
|
|
522
|
+
*/
|
|
523
|
+
var BackupDownloadIncomplete = class extends GkmError {
|
|
524
|
+
url;
|
|
525
|
+
received;
|
|
526
|
+
expected;
|
|
527
|
+
constructor(url, received, expected) {
|
|
528
|
+
super(`Downloading ${url} stopped after ${received} of ${expected} bytes, so nothing was loaded. Run the restore again; if it keeps stopping, check the network between here and the bucket.`);
|
|
529
|
+
this.url = url;
|
|
530
|
+
this.received = received;
|
|
531
|
+
this.expected = expected;
|
|
532
|
+
this.name = "BackupDownloadIncomplete";
|
|
533
|
+
}
|
|
534
|
+
};
|
|
501
535
|
/** Every run under the prefix, newest first. Keys that are not a run's are skipped. */
|
|
502
536
|
async function listBackups(s3, bucket, prefix) {
|
|
503
537
|
const { ListObjectsV2Command } = await import("@aws-sdk/client-s3");
|
|
@@ -647,11 +681,17 @@ async function restoreBackup(options) {
|
|
|
647
681
|
for (const target of targets) {
|
|
648
682
|
const Key = `${options.prefix}/${run.folder}/${backupFile(target)}`;
|
|
649
683
|
options.log(`♻️ Restoring ${target.name} from s3://${options.bucket}/${Key}…`);
|
|
650
|
-
const
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
684
|
+
const file = await download(options, Key);
|
|
685
|
+
let code;
|
|
686
|
+
try {
|
|
687
|
+
code = await loadInto(options, engine, image, {
|
|
688
|
+
path: file.path,
|
|
689
|
+
script: RESTORE_SCRIPT,
|
|
690
|
+
database: target.name
|
|
691
|
+
});
|
|
692
|
+
} finally {
|
|
693
|
+
await file.remove();
|
|
694
|
+
}
|
|
655
695
|
if (code !== 0) throw new RestoreFailed(target.name, code);
|
|
656
696
|
restored.push(target.file);
|
|
657
697
|
}
|
|
@@ -684,6 +724,16 @@ async function importBackup(options) {
|
|
|
684
724
|
throw new ImportNotFound(options.from, `s3://${options.bucket}/${options.prefix}/`);
|
|
685
725
|
}
|
|
686
726
|
const { engine, image } = await beforeRestore(options, `Load ${options.from} into ${target.name} on '${options.stage}'? Its apps are stopped while it loads, and what the file replaces is lost (a backup is taken first).`);
|
|
727
|
+
options.log(`📥 Downloading s3://${options.bucket}/${Key}…`);
|
|
728
|
+
const file = await download(options, Key);
|
|
729
|
+
try {
|
|
730
|
+
return await loadImport(options, engine, image, target, file.path);
|
|
731
|
+
} finally {
|
|
732
|
+
await file.remove();
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
/** Stop the stack's apps, load the downloaded import, start them again. */
|
|
736
|
+
async function loadImport(options, engine, image, target, path) {
|
|
687
737
|
const keep = [
|
|
688
738
|
"postgres",
|
|
689
739
|
BACKUPS_SERVICE,
|
|
@@ -699,9 +749,9 @@ async function importBackup(options) {
|
|
|
699
749
|
}
|
|
700
750
|
let code;
|
|
701
751
|
try {
|
|
702
|
-
options.log(`📥 Loading ${target.name} from
|
|
703
|
-
code = await
|
|
704
|
-
|
|
752
|
+
options.log(`📥 Loading ${target.name} from ${options.from}…`);
|
|
753
|
+
code = await loadInto(options, engine, image, {
|
|
754
|
+
path,
|
|
705
755
|
script: IMPORT_SCRIPT,
|
|
706
756
|
database: target.name
|
|
707
757
|
});
|
|
@@ -744,16 +794,53 @@ async function beforeRestore(options, question) {
|
|
|
744
794
|
};
|
|
745
795
|
}
|
|
746
796
|
/**
|
|
747
|
-
*
|
|
748
|
-
*
|
|
749
|
-
*
|
|
797
|
+
* Download a file from S3, with the caller's credentials, to a private
|
|
798
|
+
* temporary folder, and check every byte arrived. A restore never streams
|
|
799
|
+
* straight from S3 into the container: over a remote engine the container's
|
|
800
|
+
* stdin applies backpressure for as long as psql takes, and an S3 response
|
|
801
|
+
* held open that long can be cut off — leaving gunzip a truncated file.
|
|
802
|
+
*
|
|
803
|
+
* @throws {BackupDownloadIncomplete}
|
|
750
804
|
*/
|
|
751
|
-
async function
|
|
805
|
+
async function download(options, Key) {
|
|
752
806
|
const { GetObjectCommand } = await import("@aws-sdk/client-s3");
|
|
753
|
-
const
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
807
|
+
const dir = await mkdtemp(join(tmpdir(), "gkm-restore-"));
|
|
808
|
+
const remove = () => rm(dir, {
|
|
809
|
+
recursive: true,
|
|
810
|
+
force: true
|
|
811
|
+
});
|
|
812
|
+
const path = join(dir, "file");
|
|
813
|
+
const url = `s3://${options.bucket}/${Key}`;
|
|
814
|
+
try {
|
|
815
|
+
const object = await options.s3.send(new GetObjectCommand({
|
|
816
|
+
Bucket: options.bucket,
|
|
817
|
+
Key
|
|
818
|
+
}));
|
|
819
|
+
let received = 0;
|
|
820
|
+
const body = object.Body;
|
|
821
|
+
body.on("data", (chunk) => {
|
|
822
|
+
received += chunk.length;
|
|
823
|
+
});
|
|
824
|
+
await pipeline(body, createWriteStream(path, { mode: 384 })).catch((error) => {
|
|
825
|
+
if (object.ContentLength === void 0) throw error;
|
|
826
|
+
throw new BackupDownloadIncomplete(url, received, object.ContentLength);
|
|
827
|
+
});
|
|
828
|
+
if (object.ContentLength !== void 0 && received !== object.ContentLength) throw new BackupDownloadIncomplete(url, received, object.ContentLength);
|
|
829
|
+
return {
|
|
830
|
+
path,
|
|
831
|
+
remove
|
|
832
|
+
};
|
|
833
|
+
} catch (error) {
|
|
834
|
+
await remove();
|
|
835
|
+
throw error;
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* Stream a downloaded file into `script` in a one-off container of the
|
|
840
|
+
* backups image on the stack's network, signed in as the stack's superuser.
|
|
841
|
+
* Resolves with its exit code.
|
|
842
|
+
*/
|
|
843
|
+
async function loadInto(options, engine, image, file) {
|
|
757
844
|
return options.docker.runOnce(engine, {
|
|
758
845
|
image,
|
|
759
846
|
network: projectNetwork(options.project),
|
|
@@ -770,7 +857,7 @@ async function streamInto(options, engine, image, file) {
|
|
|
770
857
|
PGDATABASE: "postgres",
|
|
771
858
|
RESTORE_DATABASE: file.database
|
|
772
859
|
},
|
|
773
|
-
stdin:
|
|
860
|
+
stdin: createReadStream(file.path),
|
|
774
861
|
...options.output ? { output: options.output } : {}
|
|
775
862
|
});
|
|
776
863
|
}
|
|
@@ -2435,7 +2522,7 @@ async function execCommand(commandArgs, options = {}, stageDeps) {
|
|
|
2435
2522
|
const cwd = options.cwd ?? process.cwd();
|
|
2436
2523
|
if (!commandArgs[0]) throw new NoCommandSpecified();
|
|
2437
2524
|
if (options.stage && !isImageBuild()) {
|
|
2438
|
-
const { execOnStage } = await import("./stage-
|
|
2525
|
+
const { execOnStage } = await import("./stage-D_2SKwyr.mjs").then((n) => n.n);
|
|
2439
2526
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
2440
2527
|
const { workspace } = await loadWorkspaceConfig(cwd);
|
|
2441
2528
|
if (options.stage !== workspace.stages.local) {
|
|
@@ -3011,9 +3098,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
3011
3098
|
for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
3012
3099
|
logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
3013
3100
|
if (options.migrate || options.seed) {
|
|
3014
|
-
const { prepareDevDatabases } = await import("./migrate-
|
|
3101
|
+
const { prepareDevDatabases } = await import("./migrate-BLJIigAS.mjs");
|
|
3015
3102
|
await prepareDevDatabases(workspace, secretsEnv, { seed: !!options.seed });
|
|
3016
|
-
} else await import("./migrate-
|
|
3103
|
+
} else await import("./migrate-BLJIigAS.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
3017
3104
|
logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
3018
3105
|
});
|
|
3019
3106
|
const appUrls = {};
|
|
@@ -4161,7 +4248,7 @@ async function buildApp(input) {
|
|
|
4161
4248
|
...telemetry ? { telemetry } : {},
|
|
4162
4249
|
trustedOriginsKey: providedKeyFor(selfServing.id, "rest-api", "trustedOrigins")
|
|
4163
4250
|
});
|
|
4164
|
-
const { bundleServer } = await import("./bundler-
|
|
4251
|
+
const { bundleServer } = await import("./bundler-BkdPQxcw.mjs");
|
|
4165
4252
|
await bundleServer({
|
|
4166
4253
|
entryPoint,
|
|
4167
4254
|
outputDir: join(outputDir, "dist"),
|
|
@@ -4442,7 +4529,7 @@ async function buildWorkers(input) {
|
|
|
4442
4529
|
});
|
|
4443
4530
|
logger$4.log(`Generated worker ${worker.id}: ${crons.length} crons, ${queues.length} queues, ${subscribers.length} subscribers`);
|
|
4444
4531
|
if (!input.bundle) continue;
|
|
4445
|
-
const { bundleServer } = await import("./bundler-
|
|
4532
|
+
const { bundleServer } = await import("./bundler-BkdPQxcw.mjs");
|
|
4446
4533
|
const outfile = workerBundleName(worker.id);
|
|
4447
4534
|
await bundleServer({
|
|
4448
4535
|
entryPoint,
|
|
@@ -4484,7 +4571,7 @@ async function buildProcessors(input) {
|
|
|
4484
4571
|
for (const { key, construct } of processors) infos.push(await processorInfo(key, construct, handler, context));
|
|
4485
4572
|
logger$4.log(`Generated processors for ${fileServerId}: ${processors.map(({ key }) => key).join(", ")}`);
|
|
4486
4573
|
if (!input.bundle) continue;
|
|
4487
|
-
const { bundleServer } = await import("./bundler-
|
|
4574
|
+
const { bundleServer } = await import("./bundler-BkdPQxcw.mjs");
|
|
4488
4575
|
const outfile = processorBundleName(fileServerId);
|
|
4489
4576
|
await bundleServer({
|
|
4490
4577
|
entryPoint,
|
|
@@ -4570,7 +4657,7 @@ async function buildForTarget(target, context, appRoot, outputDir, workspaceRoot
|
|
|
4570
4657
|
let masterKey;
|
|
4571
4658
|
if (context.production?.bundle && !skipBundle) {
|
|
4572
4659
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
4573
|
-
const { bundleServer } = await import("./bundler-
|
|
4660
|
+
const { bundleServer } = await import("./bundler-BkdPQxcw.mjs");
|
|
4574
4661
|
const allConstructs = [
|
|
4575
4662
|
...endpoints.map((e) => e.construct),
|
|
4576
4663
|
...functions.map((f) => f.construct),
|
|
@@ -4849,7 +4936,7 @@ async function composeCommand(options, deps = {}) {
|
|
|
4849
4936
|
["tag", "--tag"]
|
|
4850
4937
|
].find(([key]) => options[key] !== void 0 && options[key] !== false)?.[1];
|
|
4851
4938
|
if (flag) throw new ComposeDestroyConflict(flag);
|
|
4852
|
-
const { composeDestroyCommand } = await import("./destroy-
|
|
4939
|
+
const { composeDestroyCommand } = await import("./destroy-2f3L-pMt.mjs");
|
|
4853
4940
|
await composeDestroyCommand({
|
|
4854
4941
|
stage: options.stage,
|
|
4855
4942
|
...options.cwd ? { cwd: options.cwd } : {},
|
|
@@ -4867,7 +4954,7 @@ async function composeCommand(options, deps = {}) {
|
|
|
4867
4954
|
const { workspace } = loaded;
|
|
4868
4955
|
const { stage } = options;
|
|
4869
4956
|
if (options.down) {
|
|
4870
|
-
const { composeStackRef } = await import("./destroy-
|
|
4957
|
+
const { composeStackRef } = await import("./destroy-2f3L-pMt.mjs");
|
|
4871
4958
|
const { ref, dir, server } = await composeStackRef(workspace, stage);
|
|
4872
4959
|
const docker = deps.docker ?? dockerCompose;
|
|
4873
4960
|
if (server) console.log(`→ ${sshTarget(server)} (docker over ssh)`);
|
|
@@ -6448,25 +6535,25 @@ function loadPackageJson() {
|
|
|
6448
6535
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
6449
6536
|
*/
|
|
6450
6537
|
const GEEKMIDAS_VERSIONS = {
|
|
6451
|
-
"@geekmidas/audit": ">=10.0.0-alpha.
|
|
6452
|
-
"@geekmidas/auth": ">=10.0.0-alpha.
|
|
6453
|
-
"@geekmidas/cache": ">=10.0.0-alpha.
|
|
6454
|
-
"@geekmidas/client": ">=10.0.0-alpha.
|
|
6455
|
-
"@geekmidas/cloud": ">=10.0.0-alpha.
|
|
6456
|
-
"@geekmidas/constructs": ">=10.0.0-alpha.
|
|
6457
|
-
"@geekmidas/db": ">=10.0.0-alpha.
|
|
6458
|
-
"@geekmidas/emailkit": ">=10.0.0-alpha.
|
|
6459
|
-
"@geekmidas/envkit": ">=10.0.0-alpha.
|
|
6460
|
-
"@geekmidas/errors": ">=10.0.0-alpha.
|
|
6461
|
-
"@geekmidas/events": ">=10.0.0-alpha.
|
|
6462
|
-
"@geekmidas/logger": ">=10.0.0-alpha.
|
|
6463
|
-
"@geekmidas/manifest": ">=10.0.0-alpha.
|
|
6464
|
-
"@geekmidas/rate-limit": ">=10.0.0-alpha.
|
|
6465
|
-
"@geekmidas/schema": ">=10.0.0-alpha.
|
|
6466
|
-
"@geekmidas/services": ">=10.0.0-alpha.
|
|
6467
|
-
"@geekmidas/storage": ">=10.0.0-alpha.
|
|
6468
|
-
"@geekmidas/telescope": ">=10.0.0-alpha.
|
|
6469
|
-
"@geekmidas/testkit": ">=10.0.0-alpha.
|
|
6538
|
+
"@geekmidas/audit": ">=10.0.0-alpha.176 <10.0.0",
|
|
6539
|
+
"@geekmidas/auth": ">=10.0.0-alpha.176 <10.0.0",
|
|
6540
|
+
"@geekmidas/cache": ">=10.0.0-alpha.176 <10.0.0",
|
|
6541
|
+
"@geekmidas/client": ">=10.0.0-alpha.176 <10.0.0",
|
|
6542
|
+
"@geekmidas/cloud": ">=10.0.0-alpha.176 <10.0.0",
|
|
6543
|
+
"@geekmidas/constructs": ">=10.0.0-alpha.176 <10.0.0",
|
|
6544
|
+
"@geekmidas/db": ">=10.0.0-alpha.176 <10.0.0",
|
|
6545
|
+
"@geekmidas/emailkit": ">=10.0.0-alpha.176 <10.0.0",
|
|
6546
|
+
"@geekmidas/envkit": ">=10.0.0-alpha.176 <10.0.0",
|
|
6547
|
+
"@geekmidas/errors": ">=10.0.0-alpha.176 <10.0.0",
|
|
6548
|
+
"@geekmidas/events": ">=10.0.0-alpha.176 <10.0.0",
|
|
6549
|
+
"@geekmidas/logger": ">=10.0.0-alpha.176 <10.0.0",
|
|
6550
|
+
"@geekmidas/manifest": ">=10.0.0-alpha.176 <10.0.0",
|
|
6551
|
+
"@geekmidas/rate-limit": ">=10.0.0-alpha.176 <10.0.0",
|
|
6552
|
+
"@geekmidas/schema": ">=10.0.0-alpha.176 <10.0.0",
|
|
6553
|
+
"@geekmidas/services": ">=10.0.0-alpha.176 <10.0.0",
|
|
6554
|
+
"@geekmidas/storage": ">=10.0.0-alpha.176 <10.0.0",
|
|
6555
|
+
"@geekmidas/telescope": ">=10.0.0-alpha.176 <10.0.0",
|
|
6556
|
+
"@geekmidas/testkit": ">=10.0.0-alpha.176 <10.0.0",
|
|
6470
6557
|
"@geekmidas/cli": versionRange(loadPackageJson().version)
|
|
6471
6558
|
};
|
|
6472
6559
|
//#endregion
|
|
@@ -7659,7 +7746,7 @@ const COMMIT = /^[0-9a-f]{40}$/;
|
|
|
7659
7746
|
* The `uses:` value for the stages action, with a comment saying which CLI
|
|
7660
7747
|
* release the pinned commit is.
|
|
7661
7748
|
*/
|
|
7662
|
-
function stagesActionUses(commit = "
|
|
7749
|
+
function stagesActionUses(commit = "70d31750fdaf6d9de2caac4a4c7c225f5e98955a", version = cliVersion()) {
|
|
7663
7750
|
return commit && COMMIT.test(commit) ? `${STAGES_ACTION}@${commit} # @geekmidas/cli ${version}` : `${STAGES_ACTION}@main # pin to a commit SHA: see the action's README`;
|
|
7664
7751
|
}
|
|
7665
7752
|
//#endregion
|
|
@@ -7957,7 +8044,8 @@ function registryLogin() {
|
|
|
7957
8044
|
* drives over SSH.
|
|
7958
8045
|
*
|
|
7959
8046
|
* - `build` (on a push): every deployed stage's images, tagged with the
|
|
7960
|
-
* commit
|
|
8047
|
+
* commit and the stage (`<sha>-<stage>`, so two stages' builds never share
|
|
8048
|
+
* a tag), and their digests kept as the artifact `digests-<stage>`.
|
|
7961
8049
|
* - `deploy`: the commit the event names — a release's tag, a manual run's
|
|
7962
8050
|
* `ref` — then that commit's push build, whose digests pin each image. One
|
|
7963
8051
|
* `gkm compose` on the runner, with the stage's role and DNS token, creates
|
|
@@ -8020,8 +8108,8 @@ ${registryLogin()}
|
|
|
8020
8108
|
role-to-assume: \${{ vars.AWS_ROLE_ARN }}
|
|
8021
8109
|
aws-region: \${{ needs.stages.outputs.aws-region }}
|
|
8022
8110
|
|
|
8023
|
-
# Builds and pushes every image the stage runs, tagged with the commit
|
|
8024
|
-
# and starts nothing.
|
|
8111
|
+
# Builds and pushes every image the stage runs, tagged with the commit
|
|
8112
|
+
# and the stage (<sha>-<stage>), and starts nothing.
|
|
8025
8113
|
- name: Build and push
|
|
8026
8114
|
run: ${pm.exec} gkm compose --stage "$STAGE" --build --push --tag "$SHA" --digests-file digests.json
|
|
8027
8115
|
env:
|
|
@@ -16631,7 +16719,7 @@ function testDatabases(reconciled) {
|
|
|
16631
16719
|
* starts without the reference data the app needs.
|
|
16632
16720
|
*/
|
|
16633
16721
|
async function migrateTestStage(workspace, env) {
|
|
16634
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
16722
|
+
const { migrateAndSeed } = await import("./migrate-BLJIigAS.mjs");
|
|
16635
16723
|
const { discover } = await import("./discover-B_PDDaVj.mjs").then((n) => n.a);
|
|
16636
16724
|
const sources = {};
|
|
16637
16725
|
const manifest = await discover({
|
|
@@ -17085,7 +17173,7 @@ program.command("eas:sync").description("Set up a mobile app's EAS project for a
|
|
|
17085
17173
|
try {
|
|
17086
17174
|
const globalOptions = program.opts();
|
|
17087
17175
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17088
|
-
const { easSync } = await import("./eas-
|
|
17176
|
+
const { easSync } = await import("./eas-CtE3eftL.mjs");
|
|
17089
17177
|
await easSync(options);
|
|
17090
17178
|
} catch (error) {
|
|
17091
17179
|
exitWithError(error);
|
|
@@ -17095,7 +17183,7 @@ program.command("publish").description("Ship a mobile app for a deployed stage:
|
|
|
17095
17183
|
try {
|
|
17096
17184
|
const globalOptions = program.opts();
|
|
17097
17185
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17098
|
-
const { publish, PublishModeConflict } = await import("./publish-
|
|
17186
|
+
const { publish, PublishModeConflict } = await import("./publish-ClymwMkS.mjs");
|
|
17099
17187
|
if (options.build && options.update) throw new PublishModeConflict();
|
|
17100
17188
|
const { build, update, ...rest } = options;
|
|
17101
17189
|
await publish({
|
|
@@ -17111,7 +17199,7 @@ program.command("deploy:google-play").description("Let EAS Submit publish a mobi
|
|
|
17111
17199
|
try {
|
|
17112
17200
|
const globalOptions = program.opts();
|
|
17113
17201
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17114
|
-
const { deployGooglePlay } = await import("./googlePlay-
|
|
17202
|
+
const { deployGooglePlay } = await import("./googlePlay-CMMDk65f.mjs");
|
|
17115
17203
|
await deployGooglePlay(options);
|
|
17116
17204
|
} catch (error) {
|
|
17117
17205
|
exitWithError(error);
|
|
@@ -17133,7 +17221,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
17133
17221
|
try {
|
|
17134
17222
|
const globalOptions = program.opts();
|
|
17135
17223
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17136
|
-
const { migrateCommand } = await import("./migrate-
|
|
17224
|
+
const { migrateCommand } = await import("./migrate-BLJIigAS.mjs");
|
|
17137
17225
|
await migrateCommand({
|
|
17138
17226
|
...options,
|
|
17139
17227
|
...construct ? { construct } : {}
|
|
@@ -17146,7 +17234,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
17146
17234
|
try {
|
|
17147
17235
|
const globalOptions = program.opts();
|
|
17148
17236
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17149
|
-
const { seedCommand } = await import("./migrate-
|
|
17237
|
+
const { seedCommand } = await import("./migrate-BLJIigAS.mjs");
|
|
17150
17238
|
await seedCommand({
|
|
17151
17239
|
...options,
|
|
17152
17240
|
...construct ? { construct } : {}
|
|
@@ -17159,7 +17247,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
17159
17247
|
try {
|
|
17160
17248
|
const globalOptions = program.opts();
|
|
17161
17249
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17162
|
-
const { migrationCommand } = await import("./migrate-
|
|
17250
|
+
const { migrationCommand } = await import("./migrate-BLJIigAS.mjs");
|
|
17163
17251
|
await migrationCommand({
|
|
17164
17252
|
construct,
|
|
17165
17253
|
...name ? { name } : {}
|
|
@@ -17259,7 +17347,7 @@ program.command("secrets:add").description("Build the keys a stage must be given
|
|
|
17259
17347
|
try {
|
|
17260
17348
|
const globalOptions = program.opts();
|
|
17261
17349
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17262
|
-
const { secretsAddCommand } = await import("./add-
|
|
17350
|
+
const { secretsAddCommand } = await import("./add-DBmlnNKr.mjs");
|
|
17263
17351
|
await secretsAddCommand(options);
|
|
17264
17352
|
} catch (error) {
|
|
17265
17353
|
exitWithError(error);
|
|
@@ -17269,7 +17357,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
17269
17357
|
try {
|
|
17270
17358
|
const globalOptions = program.opts();
|
|
17271
17359
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17272
|
-
const { encryptionRotateCommand } = await import("./encryption-
|
|
17360
|
+
const { encryptionRotateCommand } = await import("./encryption-BNqwJ2Mr.mjs");
|
|
17273
17361
|
await encryptionRotateCommand(construct, options);
|
|
17274
17362
|
} catch (error) {
|
|
17275
17363
|
exitWithError(error);
|
|
@@ -17279,7 +17367,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
17279
17367
|
try {
|
|
17280
17368
|
const globalOptions = program.opts();
|
|
17281
17369
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17282
|
-
const { encryptionRetireCommand } = await import("./encryption-
|
|
17370
|
+
const { encryptionRetireCommand } = await import("./encryption-BNqwJ2Mr.mjs");
|
|
17283
17371
|
await encryptionRetireCommand(construct, key, options);
|
|
17284
17372
|
} catch (error) {
|
|
17285
17373
|
exitWithError(error);
|
|
@@ -17318,7 +17406,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
17318
17406
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17319
17407
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
17320
17408
|
const { reconcileMissingSecrets } = await import("./reconcile--I7V4Klj.mjs");
|
|
17321
|
-
const { secretsStoreFor } = await import("./dns-
|
|
17409
|
+
const { secretsStoreFor } = await import("./dns-CjzC-jTr.mjs").then((n) => n.j);
|
|
17322
17410
|
const { workspace } = await loadWorkspaceConfig();
|
|
17323
17411
|
const stage = options.stage ?? workspace.stages.local;
|
|
17324
17412
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -17327,7 +17415,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
17327
17415
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
17328
17416
|
process.exit(1);
|
|
17329
17417
|
}
|
|
17330
|
-
const { derivedContainers } = await import("./apps-
|
|
17418
|
+
const { derivedContainers } = await import("./apps-iMCuJRmp.mjs").then((n) => n.h);
|
|
17331
17419
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
17332
17420
|
if (!result) {
|
|
17333
17421
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -17344,14 +17432,14 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
17344
17432
|
try {
|
|
17345
17433
|
const globalOptions = program.opts();
|
|
17346
17434
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17347
|
-
const { secretsMigrateCommand } = await import("./migrate-
|
|
17435
|
+
const { secretsMigrateCommand } = await import("./migrate-BODEFlT7.mjs");
|
|
17348
17436
|
await secretsMigrateCommand(options);
|
|
17349
17437
|
} catch (error) {
|
|
17350
17438
|
exitWithError(error);
|
|
17351
17439
|
}
|
|
17352
17440
|
});
|
|
17353
|
-
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>", "
|
|
17354
|
-
const { deployCli } = await import("./cli-
|
|
17441
|
+
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>", "Release tag (default: a timestamp; compose: the commit). Each image is tagged <tag>-<stage>. 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) => {
|
|
17442
|
+
const { deployCli } = await import("./cli-D7aYkTrO.mjs");
|
|
17355
17443
|
const globalOptions = program.opts();
|
|
17356
17444
|
const code = await deployCli({
|
|
17357
17445
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -17371,8 +17459,8 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
17371
17459
|
});
|
|
17372
17460
|
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) => {
|
|
17373
17461
|
try {
|
|
17374
|
-
const { rollbackStage } = await import("./rollback-
|
|
17375
|
-
const { terminalCredentials } = await import("./terminal-
|
|
17462
|
+
const { rollbackStage } = await import("./rollback-o85w39I-.mjs").then((n) => n.a);
|
|
17463
|
+
const { terminalCredentials } = await import("./terminal-J3kNRlry.mjs");
|
|
17376
17464
|
const globalOptions = program.opts();
|
|
17377
17465
|
await rollbackStage({
|
|
17378
17466
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -17390,7 +17478,7 @@ program.command("compose:server").description("Set up a stage's server for compo
|
|
|
17390
17478
|
try {
|
|
17391
17479
|
const globalOptions = program.opts();
|
|
17392
17480
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17393
|
-
const { composeServerCommand } = await import("./serverSetup-
|
|
17481
|
+
const { composeServerCommand } = await import("./serverSetup-ClkJ0dhD.mjs");
|
|
17394
17482
|
await composeServerCommand(options);
|
|
17395
17483
|
} catch (error) {
|
|
17396
17484
|
exitWithError(error);
|
|
@@ -17415,7 +17503,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
17415
17503
|
try {
|
|
17416
17504
|
const globalOptions = program.opts();
|
|
17417
17505
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17418
|
-
const { deployGithubCommand } = await import("./github-
|
|
17506
|
+
const { deployGithubCommand } = await import("./github-BQJEjYTv.mjs");
|
|
17419
17507
|
await deployGithubCommand(options);
|
|
17420
17508
|
} catch (error) {
|
|
17421
17509
|
exitWithError(error);
|