@geekmidas/cli 10.0.0-alpha.174 → 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/{EndpointGenerator-CSKhAD6W.mjs → EndpointGenerator-DMq6ameY.mjs} +6 -2
- package/dist/EndpointGenerator-DMq6ameY.mjs.map +1 -0
- package/dist/{EndpointGenerator-C1h_wExz.cjs → EndpointGenerator-yx7_SoXT.cjs} +6 -2
- package/dist/EndpointGenerator-yx7_SoXT.cjs.map +1 -0
- package/dist/{GoDaddyProvider-gn-UeZl_.cjs → GoDaddyProvider-CLRtSbuA.cjs} +2 -2
- package/dist/{GoDaddyProvider-gn-UeZl_.cjs.map → GoDaddyProvider-CLRtSbuA.cjs.map} +1 -1
- package/dist/{GoDaddyProvider-BxQYQT7E.mjs → GoDaddyProvider-DuqG_Wcy.mjs} +2 -2
- package/dist/{GoDaddyProvider-BxQYQT7E.mjs.map → GoDaddyProvider-DuqG_Wcy.mjs.map} +1 -1
- package/dist/{HostingerProvider-znlxfl_p.cjs → HostingerProvider-Cbqb6bQN.cjs} +2 -2
- package/dist/{HostingerProvider-znlxfl_p.cjs.map → HostingerProvider-Cbqb6bQN.cjs.map} +1 -1
- package/dist/{HostingerProvider-B-FP4-z6.mjs → HostingerProvider-CiA6uPeg.mjs} +2 -2
- package/dist/{HostingerProvider-B-FP4-z6.mjs.map → HostingerProvider-CiA6uPeg.mjs.map} +1 -1
- package/dist/{LegacyStateStore-Bds2IJbE.mjs → LegacyStateStore-BuTTsqfo.mjs} +2 -2
- package/dist/{LegacyStateStore-Bds2IJbE.mjs.map → LegacyStateStore-BuTTsqfo.mjs.map} +1 -1
- package/dist/{LegacyStateStore-bS6W95Cq.cjs → LegacyStateStore-BwNm_jmw.cjs} +2 -2
- package/dist/{LegacyStateStore-bS6W95Cq.cjs.map → LegacyStateStore-BwNm_jmw.cjs.map} +1 -1
- package/dist/{LocalStateStore-Zvirfsr4.mjs → LocalStateStore-DYoAtXrf.mjs} +2 -2
- package/dist/{LocalStateStore-Zvirfsr4.mjs.map → LocalStateStore-DYoAtXrf.mjs.map} +1 -1
- package/dist/{LocalStateStore-DN0_SCii.cjs → LocalStateStore-aEaoJuaR.cjs} +2 -2
- package/dist/{LocalStateStore-DN0_SCii.cjs.map → LocalStateStore-aEaoJuaR.cjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-5xPn-p65.mjs → OpenApiTsGenerator-C_JqxkWt.mjs} +2 -2
- package/dist/{OpenApiTsGenerator-5xPn-p65.mjs.map → OpenApiTsGenerator-C_JqxkWt.mjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-CzrLGzC0.cjs → OpenApiTsGenerator-gM70-7qw.cjs} +2 -2
- package/dist/{OpenApiTsGenerator-CzrLGzC0.cjs.map → OpenApiTsGenerator-gM70-7qw.cjs.map} +1 -1
- package/dist/{S3StateStore-CxNPJKqU.mjs → S3StateStore-BC8iBPAY.mjs} +4 -4
- package/dist/{S3StateStore-CxNPJKqU.mjs.map → S3StateStore-BC8iBPAY.mjs.map} +1 -1
- package/dist/{S3StateStore-Cs_ONSe7.cjs → S3StateStore-D_V_QOU-.cjs} +4 -4
- package/dist/{S3StateStore-Cs_ONSe7.cjs.map → S3StateStore-D_V_QOU-.cjs.map} +1 -1
- package/dist/{SSMStateStore-CzF_ghlT.cjs → SSMStateStore-DKxVa6_D.cjs} +2 -2
- package/dist/{SSMStateStore-CzF_ghlT.cjs.map → SSMStateStore-DKxVa6_D.cjs.map} +1 -1
- package/dist/{SSMStateStore-CK52ONQn.mjs → SSMStateStore-vpbJWC-B.mjs} +2 -2
- package/dist/{SSMStateStore-CK52ONQn.mjs.map → SSMStateStore-vpbJWC-B.mjs.map} +1 -1
- package/dist/{SubscriberGenerator-DMi4siph.cjs → SubscriberGenerator-DXh1Touk.cjs} +7 -3
- package/dist/SubscriberGenerator-DXh1Touk.cjs.map +1 -0
- package/dist/{SubscriberGenerator-CfZWX0lT.mjs → SubscriberGenerator-NxcLNeDJ.mjs} +7 -3
- package/dist/SubscriberGenerator-NxcLNeDJ.mjs.map +1 -0
- package/dist/{add-DD5bYU31.cjs → add-D96Ox7kG.cjs} +4 -4
- package/dist/{add-DD5bYU31.cjs.map → add-D96Ox7kG.cjs.map} +1 -1
- package/dist/{add-D570rDKN.mjs → add-DBmlnNKr.mjs} +4 -4
- package/dist/{add-D570rDKN.mjs.map → add-DBmlnNKr.mjs.map} +1 -1
- package/dist/{apps-CIKiSUxH.cjs → apps-FB2XppkH.cjs} +5 -5
- package/dist/{apps-CIKiSUxH.cjs.map → apps-FB2XppkH.cjs.map} +1 -1
- package/dist/{apps-iHK70h_F.mjs → apps-iMCuJRmp.mjs} +5 -5
- package/dist/{apps-iHK70h_F.mjs.map → apps-iMCuJRmp.mjs.map} +1 -1
- package/dist/{bundler-Cdhf7lv3.mjs → bundler-BkdPQxcw.mjs} +6 -6
- package/dist/{bundler-Cdhf7lv3.mjs.map → bundler-BkdPQxcw.mjs.map} +1 -1
- package/dist/{bundler-CMieQ_0t.cjs → bundler-D2YOzGbK.cjs} +6 -6
- package/dist/{bundler-CMieQ_0t.cjs.map → bundler-D2YOzGbK.cjs.map} +1 -1
- package/dist/{cli-DHnkkrXz.cjs → cli-4dCD3ByQ.cjs} +4 -4
- package/dist/{cli-DHnkkrXz.cjs.map → cli-4dCD3ByQ.cjs.map} +1 -1
- package/dist/{cli-CcWMO_-0.mjs → cli-D7aYkTrO.mjs} +4 -4
- package/dist/{cli-CcWMO_-0.mjs.map → cli-D7aYkTrO.mjs.map} +1 -1
- package/dist/{compose-D8cd13Eo.cjs → compose-BlEELe3Q.cjs} +9 -9
- package/dist/{compose-D8cd13Eo.cjs.map → compose-BlEELe3Q.cjs.map} +1 -1
- package/dist/{compose-SAxadQy7.cjs → compose-CfsQ4khN.cjs} +223 -18
- package/dist/compose-CfsQ4khN.cjs.map +1 -0
- package/dist/{compose-DsFvWwAu.mjs → compose-DKp1s6XP.mjs} +5 -5
- package/dist/{compose-DsFvWwAu.mjs.map → compose-DKp1s6XP.mjs.map} +1 -1
- package/dist/{compose-CFCSlSXx.mjs → compose-hcFa0rWb.mjs} +209 -16
- package/dist/compose-hcFa0rWb.mjs.map +1 -0
- package/dist/{databases-CuTL1e7s.cjs → databases-BOuB-zg4.cjs} +2 -2
- package/dist/{databases-CuTL1e7s.cjs.map → databases-BOuB-zg4.cjs.map} +1 -1
- package/dist/{databases-zN-gEox0.mjs → databases-SFnPaOGM.mjs} +2 -2
- package/dist/{databases-zN-gEox0.mjs.map → databases-SFnPaOGM.mjs.map} +1 -1
- 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-DnkGdwUd.cjs → deploy-B-Ky0iUC.cjs} +17 -16
- package/dist/{deploy-DnkGdwUd.cjs.map → deploy-B-Ky0iUC.cjs.map} +1 -1
- package/dist/{deploy-CyrHJ5tR.mjs → deploy-gRkLgV35.mjs} +17 -16
- package/dist/{deploy-CyrHJ5tR.mjs.map → deploy-gRkLgV35.mjs.map} +1 -1
- package/dist/{destroy-C2VQEDji.mjs → destroy-2f3L-pMt.mjs} +7 -7
- package/dist/{destroy-C2VQEDji.mjs.map → destroy-2f3L-pMt.mjs.map} +1 -1
- package/dist/{destroy-Qb0MuIV4.cjs → destroy-CiHXpKPS.cjs} +7 -7
- package/dist/{destroy-Qb0MuIV4.cjs.map → destroy-CiHXpKPS.cjs.map} +1 -1
- package/dist/{dns-BMtL2ytM.mjs → dns-CjzC-jTr.mjs} +22 -8
- package/dist/dns-CjzC-jTr.mjs.map +1 -0
- package/dist/{dns-DSzsbU2g.cjs → dns-DsOsv1gk.cjs} +30 -10
- package/dist/dns-DsOsv1gk.cjs.map +1 -0
- package/dist/{docker-aJbcdGKT.cjs → docker-ALmOF9Ye.cjs} +79 -10
- package/dist/docker-ALmOF9Ye.cjs.map +1 -0
- package/dist/{docker-D89imkq2.mjs → docker-Bu083Pc8.mjs} +74 -11
- package/dist/docker-Bu083Pc8.mjs.map +1 -0
- package/dist/{dokploy-QAThjPQL.mjs → dokploy--YjmpGf4.mjs} +2 -2
- package/dist/{dokploy-QAThjPQL.mjs.map → dokploy--YjmpGf4.mjs.map} +1 -1
- package/dist/{dokploy-DvG19W0p.cjs → dokploy-Cg2NOSax.cjs} +2 -2
- package/dist/{dokploy-DvG19W0p.cjs.map → dokploy-Cg2NOSax.cjs.map} +1 -1
- package/dist/{drivers-wcDnzf7l.mjs → drivers-BQRb3KsL.mjs} +85 -4
- package/dist/drivers-BQRb3KsL.mjs.map +1 -0
- package/dist/{drivers-BhdC9Efj.cjs → drivers-DP7__dJX.cjs} +134 -5
- package/dist/drivers-DP7__dJX.cjs.map +1 -0
- package/dist/{eas-DvKir935.cjs → eas-CUDPiJmf.cjs} +2 -2
- package/dist/{eas-DvKir935.cjs.map → eas-CUDPiJmf.cjs.map} +1 -1
- package/dist/{eas-VxFCgjQa.mjs → eas-CtE3eftL.mjs} +2 -2
- package/dist/{eas-VxFCgjQa.mjs.map → eas-CtE3eftL.mjs.map} +1 -1
- package/dist/{encryption-D88IRxkV.cjs → encryption-B72rAliE.cjs} +2 -2
- package/dist/{encryption-D88IRxkV.cjs.map → encryption-B72rAliE.cjs.map} +1 -1
- package/dist/{encryption-_GRjwxGO.mjs → encryption-BNqwJ2Mr.mjs} +2 -2
- package/dist/{encryption-_GRjwxGO.mjs.map → encryption-BNqwJ2Mr.mjs.map} +1 -1
- package/dist/{engine-7oDEgerp.cjs → engine-BfKsVd1h.cjs} +11 -10
- package/dist/engine-BfKsVd1h.cjs.map +1 -0
- package/dist/{engine-CQfdAI92.mjs → engine-D5eAK0_u.mjs} +11 -10
- package/dist/engine-D5eAK0_u.mjs.map +1 -0
- package/dist/{github-BE-0zZ0H.mjs → github-BQJEjYTv.mjs} +19 -10
- package/dist/github-BQJEjYTv.mjs.map +1 -0
- package/dist/{github-CaUfjXXt.cjs → github-BpAQd9XJ.cjs} +19 -10
- package/dist/github-BpAQd9XJ.cjs.map +1 -0
- package/dist/{googlePlay-FCJulaVY.cjs → googlePlay-CGoKjrGj.cjs} +4 -4
- package/dist/{googlePlay-FCJulaVY.cjs.map → googlePlay-CGoKjrGj.cjs.map} +1 -1
- package/dist/{googlePlay-DrBrk6dZ.mjs → googlePlay-CMMDk65f.mjs} +4 -4
- package/dist/{googlePlay-DrBrk6dZ.mjs.map → googlePlay-CMMDk65f.mjs.map} +1 -1
- package/dist/index.cjs +186 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +186 -90
- package/dist/index.mjs.map +1 -1
- package/dist/{local-BclGW_Zo.cjs → local-BkiJKXwa.cjs} +2 -2
- package/dist/{local-BclGW_Zo.cjs.map → local-BkiJKXwa.cjs.map} +1 -1
- package/dist/{local-DbxB0Fg4.mjs → local-DoENgulS.mjs} +2 -2
- package/dist/{local-DbxB0Fg4.mjs.map → local-DoENgulS.mjs.map} +1 -1
- package/dist/{migrate-lidIEoZm.mjs → migrate-BLJIigAS.mjs} +5 -5
- package/dist/{migrate-lidIEoZm.mjs.map → migrate-BLJIigAS.mjs.map} +1 -1
- package/dist/{migrate-C2Kjfwui.mjs → migrate-BODEFlT7.mjs} +2 -2
- package/dist/{migrate-C2Kjfwui.mjs.map → migrate-BODEFlT7.mjs.map} +1 -1
- package/dist/{migrate-z_MuES4x.cjs → migrate-D-0i_3u-.cjs} +5 -5
- package/dist/{migrate-z_MuES4x.cjs.map → migrate-D-0i_3u-.cjs.map} +1 -1
- package/dist/{migrate-D2mp7qyM.cjs → migrate-DMpbu7Td.cjs} +2 -2
- package/dist/{migrate-D2mp7qyM.cjs.map → migrate-DMpbu7Td.cjs.map} +1 -1
- package/dist/{notes-Cs0rVvlG.cjs → notes-CsPeouTH.cjs} +2 -2
- package/dist/{notes-Cs0rVvlG.cjs.map → notes-CsPeouTH.cjs.map} +1 -1
- package/dist/{notes-Dw9BWRJP.mjs → notes-DcRTv0Pb.mjs} +2 -2
- package/dist/{notes-Dw9BWRJP.mjs.map → notes-DcRTv0Pb.mjs.map} +1 -1
- package/dist/openapi.cjs +2 -2
- package/dist/openapi.mjs +2 -2
- package/dist/{projectBucket-DHuBZDPJ.mjs → projectBucket-CZ5XnmoT.mjs} +2 -2
- package/dist/{projectBucket-DHuBZDPJ.mjs.map → projectBucket-CZ5XnmoT.mjs.map} +1 -1
- package/dist/{projectBucket-BvcErpo0.cjs → projectBucket-Dl2KUhdO.cjs} +2 -2
- package/dist/{projectBucket-BvcErpo0.cjs.map → projectBucket-Dl2KUhdO.cjs.map} +1 -1
- package/dist/{publish-yslBcYWN.mjs → publish-ClymwMkS.mjs} +2 -2
- package/dist/{publish-yslBcYWN.mjs.map → publish-ClymwMkS.mjs.map} +1 -1
- package/dist/{publish-DzMQWBW8.cjs → publish-D8CS0q_Q.cjs} +2 -2
- package/dist/{publish-DzMQWBW8.cjs.map → publish-D8CS0q_Q.cjs.map} +1 -1
- package/dist/{ready-DcD0SCnV.cjs → ready-Bgj2cf4j.cjs} +5 -5
- package/dist/{ready-DcD0SCnV.cjs.map → ready-Bgj2cf4j.cjs.map} +1 -1
- package/dist/{ready-COJHr1Yi.mjs → ready-D1gctv-5.mjs} +5 -5
- package/dist/{ready-COJHr1Yi.mjs.map → ready-D1gctv-5.mjs.map} +1 -1
- package/dist/{resolve-Dfind5fY.mjs → resolve-CoaQmANg.mjs} +4 -4
- package/dist/{resolve-Dfind5fY.mjs.map → resolve-CoaQmANg.mjs.map} +1 -1
- package/dist/{resolve-CQvEtM5c.cjs → resolve-Dn1n69kp.cjs} +4 -4
- package/dist/{resolve-CQvEtM5c.cjs.map → resolve-Dn1n69kp.cjs.map} +1 -1
- package/dist/{rollback-DUbm19zl.cjs → rollback-BNP1XKtz.cjs} +5 -5
- package/dist/{rollback-DUbm19zl.cjs.map → rollback-BNP1XKtz.cjs.map} +1 -1
- package/dist/{rollback-j8X0RdpU.mjs → rollback-o85w39I-.mjs} +5 -5
- package/dist/{rollback-j8X0RdpU.mjs.map → rollback-o85w39I-.mjs.map} +1 -1
- package/dist/{s3-Ba3WIaGU.cjs → s3-BF1qsk-S.cjs} +2 -2
- package/dist/{s3-Ba3WIaGU.cjs.map → s3-BF1qsk-S.cjs.map} +1 -1
- package/dist/{s3-Bs1qUnxt.mjs → s3-XW71srQO.mjs} +2 -2
- package/dist/{s3-Bs1qUnxt.mjs.map → s3-XW71srQO.mjs.map} +1 -1
- package/dist/sandbox/migrate-worker.cjs +1 -1
- package/dist/sandbox/migrate-worker.mjs +1 -1
- package/dist/{serverSetup-Drh_mhxR.cjs → serverSetup-Bi6BAQvQ.cjs} +5 -5
- package/dist/{serverSetup-Drh_mhxR.cjs.map → serverSetup-Bi6BAQvQ.cjs.map} +1 -1
- package/dist/{serverSetup-DUrSo7HL.mjs → serverSetup-ClkJ0dhD.mjs} +5 -5
- package/dist/{serverSetup-DUrSo7HL.mjs.map → serverSetup-ClkJ0dhD.mjs.map} +1 -1
- package/dist/{sniffer-zsLNtFK0.cjs → sniffer-5BEd0W-2.cjs} +6 -6
- package/dist/{sniffer-zsLNtFK0.cjs.map → sniffer-5BEd0W-2.cjs.map} +1 -1
- package/dist/{sniffer-DgjWtfBW.mjs → sniffer-CwA19f8u.mjs} +6 -6
- package/dist/{sniffer-DgjWtfBW.mjs.map → sniffer-CwA19f8u.mjs.map} +1 -1
- package/dist/{snsSubscriptions-CGO6EO7H.cjs → snsSubscriptions-D_oK-FKK.cjs} +3 -3
- package/dist/{snsSubscriptions-CGO6EO7H.cjs.map → snsSubscriptions-D_oK-FKK.cjs.map} +1 -1
- package/dist/{snsSubscriptions-BLfWAnzg.mjs → snsSubscriptions-DlNwAo6l.mjs} +3 -3
- package/dist/{snsSubscriptions-BLfWAnzg.mjs.map → snsSubscriptions-DlNwAo6l.mjs.map} +1 -1
- package/dist/{sst-Bih36ADr.cjs → sst-BDaYh-cJ.cjs} +4 -4
- package/dist/{sst-Bih36ADr.cjs.map → sst-BDaYh-cJ.cjs.map} +1 -1
- package/dist/{sst-B2h4rE6j.mjs → sst-DmjCAYmq.mjs} +4 -4
- package/dist/{sst-B2h4rE6j.mjs.map → sst-DmjCAYmq.mjs.map} +1 -1
- package/dist/{stack-DI4qbrtn.mjs → stack-HULMMZlf.mjs} +23 -163
- package/dist/stack-HULMMZlf.mjs.map +1 -0
- package/dist/{stack-D0CC6_b-.cjs → stack-UtZKqaoh.cjs} +23 -193
- package/dist/stack-UtZKqaoh.cjs.map +1 -0
- package/dist/{stage--Z6-pM9E.cjs → stage-2YFzi0j2.cjs} +5 -5
- package/dist/{stage--Z6-pM9E.cjs.map → stage-2YFzi0j2.cjs.map} +1 -1
- package/dist/{stage-C-qe-Lye.mjs → stage-D_2SKwyr.mjs} +5 -5
- package/dist/{stage-C-qe-Lye.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-CnhNSW3v.cjs → terminal-DywyNR4M.cjs} +2 -2
- package/dist/{terminal-CnhNSW3v.cjs.map → terminal-DywyNR4M.cjs.map} +1 -1
- package/dist/{terminal-DtO0Eh3g.mjs → terminal-J3kNRlry.mjs} +2 -2
- package/dist/{terminal-DtO0Eh3g.mjs.map → terminal-J3kNRlry.mjs.map} +1 -1
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- package/package.json +15 -15
- package/dist/EndpointGenerator-C1h_wExz.cjs.map +0 -1
- package/dist/EndpointGenerator-CSKhAD6W.mjs.map +0 -1
- package/dist/SubscriberGenerator-CfZWX0lT.mjs.map +0 -1
- package/dist/SubscriberGenerator-DMi4siph.cjs.map +0 -1
- package/dist/compose-CFCSlSXx.mjs.map +0 -1
- package/dist/compose-SAxadQy7.cjs.map +0 -1
- package/dist/dns-BMtL2ytM.mjs.map +0 -1
- package/dist/dns-DSzsbU2g.cjs.map +0 -1
- package/dist/docker-D89imkq2.mjs.map +0 -1
- package/dist/docker-aJbcdGKT.cjs.map +0 -1
- package/dist/drivers-BhdC9Efj.cjs.map +0 -1
- package/dist/drivers-wcDnzf7l.mjs.map +0 -1
- package/dist/engine-7oDEgerp.cjs.map +0 -1
- package/dist/engine-CQfdAI92.mjs.map +0 -1
- package/dist/github-BE-0zZ0H.mjs.map +0 -1
- package/dist/github-CaUfjXXt.cjs.map +0 -1
- package/dist/stack-D0CC6_b-.cjs.map +0 -1
- package/dist/stack-DI4qbrtn.mjs.map +0 -1
- package/dist/types-Bl_CwZC9.cjs +0 -90
- package/dist/types-Bl_CwZC9.cjs.map +0 -1
- package/dist/types-Y1NfWlyG.mjs +0 -61
- package/dist/types-Y1NfWlyG.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
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-
|
|
10
|
-
import { n as assertTestCredentials, t as SubscriberGenerator } from "./SubscriberGenerator-
|
|
11
|
-
import {
|
|
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-
|
|
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
|
+
import { n as assertTestCredentials, t as SubscriberGenerator } from "./SubscriberGenerator-NxcLNeDJ.mjs";
|
|
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
|
+
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
|
|
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
|
-
import { a as opensKmsKeys, n as driversFor, o as publishesToApiGateway, r as eventsBackendsIn, t as cacheBackendsIn } from "./drivers-wcDnzf7l.mjs";
|
|
21
20
|
import { n as withHandlers, t as manifestModule } from "./emit-C4KSXOeS.mjs";
|
|
22
|
-
import { t as LocalSandbox } from "./local-
|
|
23
|
-
import { S as createStateStore, k as keyFingerprint, n as sniffAppEnvironment, o as DokployApi } from "./sniffer-
|
|
24
|
-
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";
|
|
25
24
|
import { a as describeActor, d as dnsResources } from "./seeds-Ccn0Ru2T.mjs";
|
|
26
25
|
import { o as loadCredentialSchemas, t as CredentialsInvalid } from "./credentialSchemas-BzJiK1nQ.mjs";
|
|
27
|
-
import { t as LocalStateStore } from "./LocalStateStore-
|
|
26
|
+
import { t as LocalStateStore } from "./LocalStateStore-DYoAtXrf.mjs";
|
|
28
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";
|
|
29
|
-
import { a as writeTestHarness, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, t as TEST_READY_ENV } from "./ready-
|
|
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";
|
|
30
29
|
import { createRequire } from "node:module";
|
|
31
30
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
32
31
|
import { Command, Option } from "commander";
|
|
33
32
|
import { stdin, stdout } from "node:process";
|
|
34
33
|
import * as readline from "node:readline/promises";
|
|
35
|
-
import { existsSync, linkSync, mkdirSync, readFileSync, readdirSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
36
|
-
import { chmod, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
37
|
-
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";
|
|
38
38
|
import { execFile, execSync, spawn } from "node:child_process";
|
|
39
39
|
import { connect } from "node:net";
|
|
40
40
|
import { createHash, randomBytes, timingSafeEqual } from "node:crypto";
|
|
@@ -54,7 +54,7 @@ import { Readable as Readable$1 } from "stream";
|
|
|
54
54
|
import crypto from "crypto";
|
|
55
55
|
import { Topic } from "@geekmidas/constructs/topic";
|
|
56
56
|
//#region package.json
|
|
57
|
-
var version = "10.0.0-alpha.
|
|
57
|
+
var version = "10.0.0-alpha.176";
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/prompt.ts
|
|
60
60
|
/**
|
|
@@ -137,7 +137,7 @@ const logger$8 = console;
|
|
|
137
137
|
* Validate Dokploy token by making a test API call
|
|
138
138
|
*/
|
|
139
139
|
async function validateDokployToken(endpoint, token) {
|
|
140
|
-
const { DokployApi } = await import("./sniffer-
|
|
140
|
+
const { DokployApi } = await import("./sniffer-CwA19f8u.mjs").then((n) => n.c);
|
|
141
141
|
return new DokployApi({
|
|
142
142
|
baseUrl: endpoint,
|
|
143
143
|
token
|
|
@@ -283,6 +283,23 @@ function maskToken(token) {
|
|
|
283
283
|
}
|
|
284
284
|
//#endregion
|
|
285
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
|
+
*/
|
|
286
303
|
/** A stage that has no backups to list or restore. */
|
|
287
304
|
var BackupsNotOn = class extends GkmError {
|
|
288
305
|
stage;
|
|
@@ -499,6 +516,22 @@ var RestoreFailed = class extends GkmError {
|
|
|
499
516
|
this.name = "RestoreFailed";
|
|
500
517
|
}
|
|
501
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
|
+
};
|
|
502
535
|
/** Every run under the prefix, newest first. Keys that are not a run's are skipped. */
|
|
503
536
|
async function listBackups(s3, bucket, prefix) {
|
|
504
537
|
const { ListObjectsV2Command } = await import("@aws-sdk/client-s3");
|
|
@@ -648,11 +681,17 @@ async function restoreBackup(options) {
|
|
|
648
681
|
for (const target of targets) {
|
|
649
682
|
const Key = `${options.prefix}/${run.folder}/${backupFile(target)}`;
|
|
650
683
|
options.log(`♻️ Restoring ${target.name} from s3://${options.bucket}/${Key}…`);
|
|
651
|
-
const
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
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
|
+
}
|
|
656
695
|
if (code !== 0) throw new RestoreFailed(target.name, code);
|
|
657
696
|
restored.push(target.file);
|
|
658
697
|
}
|
|
@@ -685,6 +724,16 @@ async function importBackup(options) {
|
|
|
685
724
|
throw new ImportNotFound(options.from, `s3://${options.bucket}/${options.prefix}/`);
|
|
686
725
|
}
|
|
687
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) {
|
|
688
737
|
const keep = [
|
|
689
738
|
"postgres",
|
|
690
739
|
BACKUPS_SERVICE,
|
|
@@ -700,9 +749,9 @@ async function importBackup(options) {
|
|
|
700
749
|
}
|
|
701
750
|
let code;
|
|
702
751
|
try {
|
|
703
|
-
options.log(`📥 Loading ${target.name} from
|
|
704
|
-
code = await
|
|
705
|
-
|
|
752
|
+
options.log(`📥 Loading ${target.name} from ${options.from}…`);
|
|
753
|
+
code = await loadInto(options, engine, image, {
|
|
754
|
+
path,
|
|
706
755
|
script: IMPORT_SCRIPT,
|
|
707
756
|
database: target.name
|
|
708
757
|
});
|
|
@@ -745,16 +794,53 @@ async function beforeRestore(options, question) {
|
|
|
745
794
|
};
|
|
746
795
|
}
|
|
747
796
|
/**
|
|
748
|
-
*
|
|
749
|
-
*
|
|
750
|
-
*
|
|
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}
|
|
751
804
|
*/
|
|
752
|
-
async function
|
|
805
|
+
async function download(options, Key) {
|
|
753
806
|
const { GetObjectCommand } = await import("@aws-sdk/client-s3");
|
|
754
|
-
const
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
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) {
|
|
758
844
|
return options.docker.runOnce(engine, {
|
|
759
845
|
image,
|
|
760
846
|
network: projectNetwork(options.project),
|
|
@@ -771,7 +857,7 @@ async function streamInto(options, engine, image, file) {
|
|
|
771
857
|
PGDATABASE: "postgres",
|
|
772
858
|
RESTORE_DATABASE: file.database
|
|
773
859
|
},
|
|
774
|
-
stdin:
|
|
860
|
+
stdin: createReadStream(file.path),
|
|
775
861
|
...options.output ? { output: options.output } : {}
|
|
776
862
|
});
|
|
777
863
|
}
|
|
@@ -2436,7 +2522,7 @@ async function execCommand(commandArgs, options = {}, stageDeps) {
|
|
|
2436
2522
|
const cwd = options.cwd ?? process.cwd();
|
|
2437
2523
|
if (!commandArgs[0]) throw new NoCommandSpecified();
|
|
2438
2524
|
if (options.stage && !isImageBuild()) {
|
|
2439
|
-
const { execOnStage } = await import("./stage-
|
|
2525
|
+
const { execOnStage } = await import("./stage-D_2SKwyr.mjs").then((n) => n.n);
|
|
2440
2526
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
2441
2527
|
const { workspace } = await loadWorkspaceConfig(cwd);
|
|
2442
2528
|
if (options.stage !== workspace.stages.local) {
|
|
@@ -3012,9 +3098,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
3012
3098
|
for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
3013
3099
|
logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
3014
3100
|
if (options.migrate || options.seed) {
|
|
3015
|
-
const { prepareDevDatabases } = await import("./migrate-
|
|
3101
|
+
const { prepareDevDatabases } = await import("./migrate-BLJIigAS.mjs");
|
|
3016
3102
|
await prepareDevDatabases(workspace, secretsEnv, { seed: !!options.seed });
|
|
3017
|
-
} else await import("./migrate-
|
|
3103
|
+
} else await import("./migrate-BLJIigAS.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
3018
3104
|
logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
3019
3105
|
});
|
|
3020
3106
|
const appUrls = {};
|
|
@@ -3618,7 +3704,10 @@ var FunctionGenerator = class extends ConstructGenerator {
|
|
|
3618
3704
|
const functionsDir = join(outputDir, "functions");
|
|
3619
3705
|
await mkdir(functionsDir, { recursive: true });
|
|
3620
3706
|
for (const { key, construct, path } of constructs) {
|
|
3621
|
-
const handlerFile = await this.generateFunctionHandler(functionsDir, path.relative, key,
|
|
3707
|
+
const handlerFile = await this.generateFunctionHandler(functionsDir, path.relative, key, {
|
|
3708
|
+
...context,
|
|
3709
|
+
storageDrivers: driversOf(context, construct)
|
|
3710
|
+
}, construct.owner);
|
|
3622
3711
|
functionInfos.push({
|
|
3623
3712
|
name: key,
|
|
3624
3713
|
handler: relative(options?.root ?? process.cwd(), handlerFile).replace(/\.ts$/, ".handler"),
|
|
@@ -4159,7 +4248,7 @@ async function buildApp(input) {
|
|
|
4159
4248
|
...telemetry ? { telemetry } : {},
|
|
4160
4249
|
trustedOriginsKey: providedKeyFor(selfServing.id, "rest-api", "trustedOrigins")
|
|
4161
4250
|
});
|
|
4162
|
-
const { bundleServer } = await import("./bundler-
|
|
4251
|
+
const { bundleServer } = await import("./bundler-BkdPQxcw.mjs");
|
|
4163
4252
|
await bundleServer({
|
|
4164
4253
|
entryPoint,
|
|
4165
4254
|
outputDir: join(outputDir, "dist"),
|
|
@@ -4276,6 +4365,12 @@ async function buildApp(input) {
|
|
|
4276
4365
|
eventsBackend,
|
|
4277
4366
|
target
|
|
4278
4367
|
}));
|
|
4368
|
+
if (target === "aws") buildContext.handlerDrivers = handlerDriversFor({
|
|
4369
|
+
declared,
|
|
4370
|
+
appRoot,
|
|
4371
|
+
cacheBackend,
|
|
4372
|
+
eventsBackend
|
|
4373
|
+
});
|
|
4279
4374
|
if (target === "server") buildContext.telemetry = telemetryFor({
|
|
4280
4375
|
node: processTelemetry(declared, derived.surface?.id, servesOnly ? [] : hosted.map((unit) => unit.id)),
|
|
4281
4376
|
appRoot,
|
|
@@ -4434,7 +4529,7 @@ async function buildWorkers(input) {
|
|
|
4434
4529
|
});
|
|
4435
4530
|
logger$4.log(`Generated worker ${worker.id}: ${crons.length} crons, ${queues.length} queues, ${subscribers.length} subscribers`);
|
|
4436
4531
|
if (!input.bundle) continue;
|
|
4437
|
-
const { bundleServer } = await import("./bundler-
|
|
4532
|
+
const { bundleServer } = await import("./bundler-BkdPQxcw.mjs");
|
|
4438
4533
|
const outfile = workerBundleName(worker.id);
|
|
4439
4534
|
await bundleServer({
|
|
4440
4535
|
entryPoint,
|
|
@@ -4476,7 +4571,7 @@ async function buildProcessors(input) {
|
|
|
4476
4571
|
for (const { key, construct } of processors) infos.push(await processorInfo(key, construct, handler, context));
|
|
4477
4572
|
logger$4.log(`Generated processors for ${fileServerId}: ${processors.map(({ key }) => key).join(", ")}`);
|
|
4478
4573
|
if (!input.bundle) continue;
|
|
4479
|
-
const { bundleServer } = await import("./bundler-
|
|
4574
|
+
const { bundleServer } = await import("./bundler-BkdPQxcw.mjs");
|
|
4480
4575
|
const outfile = processorBundleName(fileServerId);
|
|
4481
4576
|
await bundleServer({
|
|
4482
4577
|
entryPoint,
|
|
@@ -4562,7 +4657,7 @@ async function buildForTarget(target, context, appRoot, outputDir, workspaceRoot
|
|
|
4562
4657
|
let masterKey;
|
|
4563
4658
|
if (context.production?.bundle && !skipBundle) {
|
|
4564
4659
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
4565
|
-
const { bundleServer } = await import("./bundler-
|
|
4660
|
+
const { bundleServer } = await import("./bundler-BkdPQxcw.mjs");
|
|
4566
4661
|
const allConstructs = [
|
|
4567
4662
|
...endpoints.map((e) => e.construct),
|
|
4568
4663
|
...functions.map((f) => f.construct),
|
|
@@ -4841,7 +4936,7 @@ async function composeCommand(options, deps = {}) {
|
|
|
4841
4936
|
["tag", "--tag"]
|
|
4842
4937
|
].find(([key]) => options[key] !== void 0 && options[key] !== false)?.[1];
|
|
4843
4938
|
if (flag) throw new ComposeDestroyConflict(flag);
|
|
4844
|
-
const { composeDestroyCommand } = await import("./destroy-
|
|
4939
|
+
const { composeDestroyCommand } = await import("./destroy-2f3L-pMt.mjs");
|
|
4845
4940
|
await composeDestroyCommand({
|
|
4846
4941
|
stage: options.stage,
|
|
4847
4942
|
...options.cwd ? { cwd: options.cwd } : {},
|
|
@@ -4859,7 +4954,7 @@ async function composeCommand(options, deps = {}) {
|
|
|
4859
4954
|
const { workspace } = loaded;
|
|
4860
4955
|
const { stage } = options;
|
|
4861
4956
|
if (options.down) {
|
|
4862
|
-
const { composeStackRef } = await import("./destroy-
|
|
4957
|
+
const { composeStackRef } = await import("./destroy-2f3L-pMt.mjs");
|
|
4863
4958
|
const { ref, dir, server } = await composeStackRef(workspace, stage);
|
|
4864
4959
|
const docker = deps.docker ?? dockerCompose;
|
|
4865
4960
|
if (server) console.log(`→ ${sshTarget(server)} (docker over ssh)`);
|
|
@@ -6440,25 +6535,25 @@ function loadPackageJson() {
|
|
|
6440
6535
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
6441
6536
|
*/
|
|
6442
6537
|
const GEEKMIDAS_VERSIONS = {
|
|
6443
|
-
"@geekmidas/audit": ">=10.0.0-alpha.
|
|
6444
|
-
"@geekmidas/auth": ">=10.0.0-alpha.
|
|
6445
|
-
"@geekmidas/cache": ">=10.0.0-alpha.
|
|
6446
|
-
"@geekmidas/client": ">=10.0.0-alpha.
|
|
6447
|
-
"@geekmidas/cloud": ">=10.0.0-alpha.
|
|
6448
|
-
"@geekmidas/constructs": ">=10.0.0-alpha.
|
|
6449
|
-
"@geekmidas/db": ">=10.0.0-alpha.
|
|
6450
|
-
"@geekmidas/emailkit": ">=10.0.0-alpha.
|
|
6451
|
-
"@geekmidas/envkit": ">=10.0.0-alpha.
|
|
6452
|
-
"@geekmidas/errors": ">=10.0.0-alpha.
|
|
6453
|
-
"@geekmidas/events": ">=10.0.0-alpha.
|
|
6454
|
-
"@geekmidas/logger": ">=10.0.0-alpha.
|
|
6455
|
-
"@geekmidas/manifest": ">=10.0.0-alpha.
|
|
6456
|
-
"@geekmidas/rate-limit": ">=10.0.0-alpha.
|
|
6457
|
-
"@geekmidas/schema": ">=10.0.0-alpha.
|
|
6458
|
-
"@geekmidas/services": ">=10.0.0-alpha.
|
|
6459
|
-
"@geekmidas/storage": ">=10.0.0-alpha.
|
|
6460
|
-
"@geekmidas/telescope": ">=10.0.0-alpha.
|
|
6461
|
-
"@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",
|
|
6462
6557
|
"@geekmidas/cli": versionRange(loadPackageJson().version)
|
|
6463
6558
|
};
|
|
6464
6559
|
//#endregion
|
|
@@ -7651,7 +7746,7 @@ const COMMIT = /^[0-9a-f]{40}$/;
|
|
|
7651
7746
|
* The `uses:` value for the stages action, with a comment saying which CLI
|
|
7652
7747
|
* release the pinned commit is.
|
|
7653
7748
|
*/
|
|
7654
|
-
function stagesActionUses(commit = "
|
|
7749
|
+
function stagesActionUses(commit = "70d31750fdaf6d9de2caac4a4c7c225f5e98955a", version = cliVersion()) {
|
|
7655
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`;
|
|
7656
7751
|
}
|
|
7657
7752
|
//#endregion
|
|
@@ -7949,7 +8044,8 @@ function registryLogin() {
|
|
|
7949
8044
|
* drives over SSH.
|
|
7950
8045
|
*
|
|
7951
8046
|
* - `build` (on a push): every deployed stage's images, tagged with the
|
|
7952
|
-
* 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>`.
|
|
7953
8049
|
* - `deploy`: the commit the event names — a release's tag, a manual run's
|
|
7954
8050
|
* `ref` — then that commit's push build, whose digests pin each image. One
|
|
7955
8051
|
* `gkm compose` on the runner, with the stage's role and DNS token, creates
|
|
@@ -8012,8 +8108,8 @@ ${registryLogin()}
|
|
|
8012
8108
|
role-to-assume: \${{ vars.AWS_ROLE_ARN }}
|
|
8013
8109
|
aws-region: \${{ needs.stages.outputs.aws-region }}
|
|
8014
8110
|
|
|
8015
|
-
# Builds and pushes every image the stage runs, tagged with the commit
|
|
8016
|
-
# 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.
|
|
8017
8113
|
- name: Build and push
|
|
8018
8114
|
run: ${pm.exec} gkm compose --stage "$STAGE" --build --push --tag "$SHA" --digests-file digests.json
|
|
8019
8115
|
env:
|
|
@@ -16623,7 +16719,7 @@ function testDatabases(reconciled) {
|
|
|
16623
16719
|
* starts without the reference data the app needs.
|
|
16624
16720
|
*/
|
|
16625
16721
|
async function migrateTestStage(workspace, env) {
|
|
16626
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
16722
|
+
const { migrateAndSeed } = await import("./migrate-BLJIigAS.mjs");
|
|
16627
16723
|
const { discover } = await import("./discover-B_PDDaVj.mjs").then((n) => n.a);
|
|
16628
16724
|
const sources = {};
|
|
16629
16725
|
const manifest = await discover({
|
|
@@ -17077,7 +17173,7 @@ program.command("eas:sync").description("Set up a mobile app's EAS project for a
|
|
|
17077
17173
|
try {
|
|
17078
17174
|
const globalOptions = program.opts();
|
|
17079
17175
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17080
|
-
const { easSync } = await import("./eas-
|
|
17176
|
+
const { easSync } = await import("./eas-CtE3eftL.mjs");
|
|
17081
17177
|
await easSync(options);
|
|
17082
17178
|
} catch (error) {
|
|
17083
17179
|
exitWithError(error);
|
|
@@ -17087,7 +17183,7 @@ program.command("publish").description("Ship a mobile app for a deployed stage:
|
|
|
17087
17183
|
try {
|
|
17088
17184
|
const globalOptions = program.opts();
|
|
17089
17185
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17090
|
-
const { publish, PublishModeConflict } = await import("./publish-
|
|
17186
|
+
const { publish, PublishModeConflict } = await import("./publish-ClymwMkS.mjs");
|
|
17091
17187
|
if (options.build && options.update) throw new PublishModeConflict();
|
|
17092
17188
|
const { build, update, ...rest } = options;
|
|
17093
17189
|
await publish({
|
|
@@ -17103,7 +17199,7 @@ program.command("deploy:google-play").description("Let EAS Submit publish a mobi
|
|
|
17103
17199
|
try {
|
|
17104
17200
|
const globalOptions = program.opts();
|
|
17105
17201
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17106
|
-
const { deployGooglePlay } = await import("./googlePlay-
|
|
17202
|
+
const { deployGooglePlay } = await import("./googlePlay-CMMDk65f.mjs");
|
|
17107
17203
|
await deployGooglePlay(options);
|
|
17108
17204
|
} catch (error) {
|
|
17109
17205
|
exitWithError(error);
|
|
@@ -17125,7 +17221,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
17125
17221
|
try {
|
|
17126
17222
|
const globalOptions = program.opts();
|
|
17127
17223
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17128
|
-
const { migrateCommand } = await import("./migrate-
|
|
17224
|
+
const { migrateCommand } = await import("./migrate-BLJIigAS.mjs");
|
|
17129
17225
|
await migrateCommand({
|
|
17130
17226
|
...options,
|
|
17131
17227
|
...construct ? { construct } : {}
|
|
@@ -17138,7 +17234,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
17138
17234
|
try {
|
|
17139
17235
|
const globalOptions = program.opts();
|
|
17140
17236
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17141
|
-
const { seedCommand } = await import("./migrate-
|
|
17237
|
+
const { seedCommand } = await import("./migrate-BLJIigAS.mjs");
|
|
17142
17238
|
await seedCommand({
|
|
17143
17239
|
...options,
|
|
17144
17240
|
...construct ? { construct } : {}
|
|
@@ -17151,7 +17247,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
17151
17247
|
try {
|
|
17152
17248
|
const globalOptions = program.opts();
|
|
17153
17249
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17154
|
-
const { migrationCommand } = await import("./migrate-
|
|
17250
|
+
const { migrationCommand } = await import("./migrate-BLJIigAS.mjs");
|
|
17155
17251
|
await migrationCommand({
|
|
17156
17252
|
construct,
|
|
17157
17253
|
...name ? { name } : {}
|
|
@@ -17251,7 +17347,7 @@ program.command("secrets:add").description("Build the keys a stage must be given
|
|
|
17251
17347
|
try {
|
|
17252
17348
|
const globalOptions = program.opts();
|
|
17253
17349
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17254
|
-
const { secretsAddCommand } = await import("./add-
|
|
17350
|
+
const { secretsAddCommand } = await import("./add-DBmlnNKr.mjs");
|
|
17255
17351
|
await secretsAddCommand(options);
|
|
17256
17352
|
} catch (error) {
|
|
17257
17353
|
exitWithError(error);
|
|
@@ -17261,7 +17357,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
17261
17357
|
try {
|
|
17262
17358
|
const globalOptions = program.opts();
|
|
17263
17359
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17264
|
-
const { encryptionRotateCommand } = await import("./encryption-
|
|
17360
|
+
const { encryptionRotateCommand } = await import("./encryption-BNqwJ2Mr.mjs");
|
|
17265
17361
|
await encryptionRotateCommand(construct, options);
|
|
17266
17362
|
} catch (error) {
|
|
17267
17363
|
exitWithError(error);
|
|
@@ -17271,7 +17367,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
17271
17367
|
try {
|
|
17272
17368
|
const globalOptions = program.opts();
|
|
17273
17369
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17274
|
-
const { encryptionRetireCommand } = await import("./encryption-
|
|
17370
|
+
const { encryptionRetireCommand } = await import("./encryption-BNqwJ2Mr.mjs");
|
|
17275
17371
|
await encryptionRetireCommand(construct, key, options);
|
|
17276
17372
|
} catch (error) {
|
|
17277
17373
|
exitWithError(error);
|
|
@@ -17310,7 +17406,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
17310
17406
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17311
17407
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
17312
17408
|
const { reconcileMissingSecrets } = await import("./reconcile--I7V4Klj.mjs");
|
|
17313
|
-
const { secretsStoreFor } = await import("./dns-
|
|
17409
|
+
const { secretsStoreFor } = await import("./dns-CjzC-jTr.mjs").then((n) => n.j);
|
|
17314
17410
|
const { workspace } = await loadWorkspaceConfig();
|
|
17315
17411
|
const stage = options.stage ?? workspace.stages.local;
|
|
17316
17412
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -17319,7 +17415,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
17319
17415
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
17320
17416
|
process.exit(1);
|
|
17321
17417
|
}
|
|
17322
|
-
const { derivedContainers } = await import("./apps-
|
|
17418
|
+
const { derivedContainers } = await import("./apps-iMCuJRmp.mjs").then((n) => n.h);
|
|
17323
17419
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
17324
17420
|
if (!result) {
|
|
17325
17421
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -17336,14 +17432,14 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
17336
17432
|
try {
|
|
17337
17433
|
const globalOptions = program.opts();
|
|
17338
17434
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17339
|
-
const { secretsMigrateCommand } = await import("./migrate-
|
|
17435
|
+
const { secretsMigrateCommand } = await import("./migrate-BODEFlT7.mjs");
|
|
17340
17436
|
await secretsMigrateCommand(options);
|
|
17341
17437
|
} catch (error) {
|
|
17342
17438
|
exitWithError(error);
|
|
17343
17439
|
}
|
|
17344
17440
|
});
|
|
17345
|
-
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>", "
|
|
17346
|
-
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");
|
|
17347
17443
|
const globalOptions = program.opts();
|
|
17348
17444
|
const code = await deployCli({
|
|
17349
17445
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -17363,8 +17459,8 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
17363
17459
|
});
|
|
17364
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) => {
|
|
17365
17461
|
try {
|
|
17366
|
-
const { rollbackStage } = await import("./rollback-
|
|
17367
|
-
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");
|
|
17368
17464
|
const globalOptions = program.opts();
|
|
17369
17465
|
await rollbackStage({
|
|
17370
17466
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -17382,7 +17478,7 @@ program.command("compose:server").description("Set up a stage's server for compo
|
|
|
17382
17478
|
try {
|
|
17383
17479
|
const globalOptions = program.opts();
|
|
17384
17480
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17385
|
-
const { composeServerCommand } = await import("./serverSetup-
|
|
17481
|
+
const { composeServerCommand } = await import("./serverSetup-ClkJ0dhD.mjs");
|
|
17386
17482
|
await composeServerCommand(options);
|
|
17387
17483
|
} catch (error) {
|
|
17388
17484
|
exitWithError(error);
|
|
@@ -17407,7 +17503,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
17407
17503
|
try {
|
|
17408
17504
|
const globalOptions = program.opts();
|
|
17409
17505
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17410
|
-
const { deployGithubCommand } = await import("./github-
|
|
17506
|
+
const { deployGithubCommand } = await import("./github-BQJEjYTv.mjs");
|
|
17411
17507
|
await deployGithubCommand(options);
|
|
17412
17508
|
} catch (error) {
|
|
17413
17509
|
exitWithError(error);
|