@geekmidas/cli 10.0.0-alpha.166 → 10.0.0-alpha.167
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-mnY-cdD2.mjs → GoDaddyProvider-Dci0SlN5.mjs} +2 -2
- package/dist/{GoDaddyProvider-mnY-cdD2.mjs.map → GoDaddyProvider-Dci0SlN5.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-DClFHezd.cjs → GoDaddyProvider-o6DJAsBZ.cjs} +2 -2
- package/dist/{GoDaddyProvider-DClFHezd.cjs.map → GoDaddyProvider-o6DJAsBZ.cjs.map} +1 -1
- package/dist/{HostingerProvider-BMyz2LnZ.cjs → HostingerProvider-BzHPhONW.cjs} +2 -2
- package/dist/{HostingerProvider-BMyz2LnZ.cjs.map → HostingerProvider-BzHPhONW.cjs.map} +1 -1
- package/dist/{HostingerProvider-39eSGyBa.mjs → HostingerProvider-Dd5x1zvF.mjs} +2 -2
- package/dist/{HostingerProvider-39eSGyBa.mjs.map → HostingerProvider-Dd5x1zvF.mjs.map} +1 -1
- package/dist/{LegacyStateStore-B2TBaSMq.mjs → LegacyStateStore-CpF6rmZc.mjs} +2 -2
- package/dist/{LegacyStateStore-B2TBaSMq.mjs.map → LegacyStateStore-CpF6rmZc.mjs.map} +1 -1
- package/dist/{LegacyStateStore-BJY7ntQk.cjs → LegacyStateStore-tqY0hM8z.cjs} +2 -2
- package/dist/{LegacyStateStore-BJY7ntQk.cjs.map → LegacyStateStore-tqY0hM8z.cjs.map} +1 -1
- package/dist/{LocalStateStore-8LFd-aMA.mjs → LocalStateStore-Adp96xPy.mjs} +2 -2
- package/dist/{LocalStateStore-8LFd-aMA.mjs.map → LocalStateStore-Adp96xPy.mjs.map} +1 -1
- package/dist/{LocalStateStore-BvoEjPi5.cjs → LocalStateStore-BYMUEGZN.cjs} +2 -2
- package/dist/{LocalStateStore-BvoEjPi5.cjs.map → LocalStateStore-BYMUEGZN.cjs.map} +1 -1
- package/dist/{S3StateStore-DMzsqfSa.mjs → S3StateStore-13Go3hfM.mjs} +4 -4
- package/dist/{S3StateStore-DMzsqfSa.mjs.map → S3StateStore-13Go3hfM.mjs.map} +1 -1
- package/dist/{S3StateStore-eeA5NXRa.cjs → S3StateStore-DjXyhGIP.cjs} +4 -4
- package/dist/{S3StateStore-eeA5NXRa.cjs.map → S3StateStore-DjXyhGIP.cjs.map} +1 -1
- package/dist/{SSMStateStore-CE2DTAtT.mjs → SSMStateStore-CQHUyH-c.mjs} +2 -2
- package/dist/{SSMStateStore-CE2DTAtT.mjs.map → SSMStateStore-CQHUyH-c.mjs.map} +1 -1
- package/dist/{SSMStateStore-BUv-du0T.cjs → SSMStateStore-DspMPho-.cjs} +2 -2
- package/dist/{SSMStateStore-BUv-du0T.cjs.map → SSMStateStore-DspMPho-.cjs.map} +1 -1
- package/dist/{add-Dp0KQNkQ.cjs → add-DsxJ0Knr.cjs} +6 -6
- package/dist/{add-Dp0KQNkQ.cjs.map → add-DsxJ0Knr.cjs.map} +1 -1
- package/dist/{add-BgCYGJpE.mjs → add-Dt8QKSOw.mjs} +6 -6
- package/dist/{add-BgCYGJpE.mjs.map → add-Dt8QKSOw.mjs.map} +1 -1
- package/dist/{apps-DkMR-qvD.cjs → apps-C6s-trVp.cjs} +66 -12
- package/dist/apps-C6s-trVp.cjs.map +1 -0
- package/dist/{apps-CJTOIaz3.mjs → apps-w2sRQKCr.mjs} +66 -13
- package/dist/apps-w2sRQKCr.mjs.map +1 -0
- package/dist/{bundler-CA7KimJ0.cjs → bundler-AzkSRAuu.cjs} +6 -6
- package/dist/{bundler-CA7KimJ0.cjs.map → bundler-AzkSRAuu.cjs.map} +1 -1
- package/dist/{bundler-Dt1ffXl6.mjs → bundler-BCWWne6N.mjs} +6 -6
- package/dist/{bundler-Dt1ffXl6.mjs.map → bundler-BCWWne6N.mjs.map} +1 -1
- package/dist/{cli-C-fdEb8N.mjs → cli-DSGw0Mw-.mjs} +4 -4
- package/dist/{cli-C-fdEb8N.mjs.map → cli-DSGw0Mw-.mjs.map} +1 -1
- package/dist/{cli-CY1Cp8yN.cjs → cli-OGss08bZ.cjs} +4 -4
- package/dist/{cli-CY1Cp8yN.cjs.map → cli-OGss08bZ.cjs.map} +1 -1
- package/dist/{compose-BIm9yNH7.cjs → compose-BqTuzitb.cjs} +5 -5
- package/dist/{compose-BIm9yNH7.cjs.map → compose-BqTuzitb.cjs.map} +1 -1
- package/dist/{compose-tX6YTa1U.mjs → compose-Csegtvq_.mjs} +62 -9
- package/dist/compose-Csegtvq_.mjs.map +1 -0
- package/dist/{compose-SmuCWWUh.cjs → compose-QSBmhr4V.cjs} +73 -8
- package/dist/compose-QSBmhr4V.cjs.map +1 -0
- package/dist/{compose-CZGeE6QJ.mjs → compose-RhuFQmZS.mjs} +5 -5
- package/dist/{compose-CZGeE6QJ.mjs.map → compose-RhuFQmZS.mjs.map} +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.mjs +1 -1
- package/dist/{credentials-CS3Dr-pv.cjs → credentials-CORvhcrO.cjs} +6 -6
- package/dist/{credentials-CS3Dr-pv.cjs.map → credentials-CORvhcrO.cjs.map} +1 -1
- package/dist/{credentials-V3WgiKmZ.mjs → credentials-D4DUPPPP.mjs} +6 -6
- package/dist/{credentials-V3WgiKmZ.mjs.map → credentials-D4DUPPPP.mjs.map} +1 -1
- package/dist/deploy/public.cjs +11 -11
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +11 -11
- package/dist/{deploy--ia-CGMv.cjs → deploy-BwJ7uWXd.cjs} +107 -22
- package/dist/deploy-BwJ7uWXd.cjs.map +1 -0
- package/dist/{deploy-BWFFSN5p.mjs → deploy-DDfnQm8l.mjs} +107 -22
- package/dist/deploy-DDfnQm8l.mjs.map +1 -0
- package/dist/{destroy-ZNiKL3--.mjs → destroy-DKt8S051.mjs} +9 -9
- package/dist/{destroy-ZNiKL3--.mjs.map → destroy-DKt8S051.mjs.map} +1 -1
- package/dist/{destroy-CrxF8Dlk.cjs → destroy-nTNRfdy6.cjs} +9 -9
- package/dist/{destroy-CrxF8Dlk.cjs.map → destroy-nTNRfdy6.cjs.map} +1 -1
- package/dist/{docker-BtUjo-J_.cjs → docker-Dy1ZJUzV.cjs} +11 -7
- package/dist/docker-Dy1ZJUzV.cjs.map +1 -0
- package/dist/{docker-DhmU416x.mjs → docker-Ele34O8z.mjs} +12 -8
- package/dist/{docker-DhmU416x.mjs.map → docker-Ele34O8z.mjs.map} +1 -1
- package/dist/{dokploy-BszAUbbA.mjs → dokploy-BrfA2m5K.mjs} +2 -2
- package/dist/{dokploy-BszAUbbA.mjs.map → dokploy-BrfA2m5K.mjs.map} +1 -1
- package/dist/{dokploy-ComPiFLl.cjs → dokploy-DN2W1YIH.cjs} +2 -2
- package/dist/{dokploy-ComPiFLl.cjs.map → dokploy-DN2W1YIH.cjs.map} +1 -1
- package/dist/{eas-zxVAWY6c.cjs → eas-BRBdxmwe.cjs} +3 -3
- package/dist/{eas-zxVAWY6c.cjs.map → eas-BRBdxmwe.cjs.map} +1 -1
- package/dist/{eas-DQudP2g2.mjs → eas-CO3ogve5.mjs} +3 -3
- package/dist/{eas-DQudP2g2.mjs.map → eas-CO3ogve5.mjs.map} +1 -1
- package/dist/{encryption-CU5O0Y61.cjs → encryption-BZ1zgtF5.cjs} +3 -3
- package/dist/{encryption-CU5O0Y61.cjs.map → encryption-BZ1zgtF5.cjs.map} +1 -1
- package/dist/{encryption-BCaweYBJ.mjs → encryption-CHmfNBAy.mjs} +3 -3
- package/dist/{encryption-BCaweYBJ.mjs.map → encryption-CHmfNBAy.mjs.map} +1 -1
- package/dist/{engine-BzeCK6e8.mjs → engine-B3Gmu8-O.mjs} +13 -13
- package/dist/engine-B3Gmu8-O.mjs.map +1 -0
- package/dist/{engine-xrlcbr1g.cjs → engine-DewbDHOq.cjs} +12 -12
- package/dist/engine-DewbDHOq.cjs.map +1 -0
- package/dist/{github-Jcrqfzg0.cjs → github-DPNgIxdc.cjs} +7 -7
- package/dist/{github-Jcrqfzg0.cjs.map → github-DPNgIxdc.cjs.map} +1 -1
- package/dist/{github-CHClpJZS.mjs → github-DU3iEmJN.mjs} +7 -7
- package/dist/{github-CHClpJZS.mjs.map → github-DU3iEmJN.mjs.map} +1 -1
- package/dist/{googlePlay-e_tIBr4n.cjs → googlePlay-C2jnPqYn.cjs} +4 -4
- package/dist/{googlePlay-e_tIBr4n.cjs.map → googlePlay-C2jnPqYn.cjs.map} +1 -1
- package/dist/{googlePlay-Dk_pnif9.mjs → googlePlay-KPHn9H2f.mjs} +4 -4
- package/dist/{googlePlay-Dk_pnif9.mjs.map → googlePlay-KPHn9H2f.mjs.map} +1 -1
- package/dist/{iam-B6WLUf_x.cjs → iam-C2sf6AUi.cjs} +2 -2
- package/dist/{iam-B6WLUf_x.cjs.map → iam-C2sf6AUi.cjs.map} +1 -1
- package/dist/{iam-BKfO7u14.mjs → iam-CW61VcT3.mjs} +2 -2
- package/dist/{iam-BKfO7u14.mjs.map → iam-CW61VcT3.mjs.map} +1 -1
- package/dist/index.cjs +351 -112
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +351 -112
- package/dist/index.mjs.map +1 -1
- package/dist/{local-Dc2h2Ex3.cjs → local-BxjA0EXj.cjs} +2 -2
- package/dist/{local-Dc2h2Ex3.cjs.map → local-BxjA0EXj.cjs.map} +1 -1
- package/dist/{local-DUi3f-WB.mjs → local-CwR2DW6i.mjs} +2 -2
- package/dist/{local-DUi3f-WB.mjs.map → local-CwR2DW6i.mjs.map} +1 -1
- package/dist/{migrate-BU4eyd7z.cjs → migrate-B0a3WY4X.cjs} +5 -5
- package/dist/{migrate-BU4eyd7z.cjs.map → migrate-B0a3WY4X.cjs.map} +1 -1
- package/dist/{migrate-CIjcBr96.cjs → migrate-CYtM1UBH.cjs} +3 -3
- package/dist/{migrate-CIjcBr96.cjs.map → migrate-CYtM1UBH.cjs.map} +1 -1
- package/dist/{migrate-CbpeVxEW.mjs → migrate-DHWy64pc.mjs} +3 -3
- package/dist/{migrate-CbpeVxEW.mjs.map → migrate-DHWy64pc.mjs.map} +1 -1
- package/dist/{migrate-BxFCXc7M.mjs → migrate-vWy2CUoi.mjs} +5 -5
- package/dist/{migrate-BxFCXc7M.mjs.map → migrate-vWy2CUoi.mjs.map} +1 -1
- package/dist/next.cjs +59 -0
- package/dist/next.cjs.map +1 -0
- package/dist/next.d.cts +44 -0
- package/dist/next.d.cts.map +1 -0
- package/dist/next.d.mts +44 -0
- package/dist/next.d.mts.map +1 -0
- package/dist/next.mjs +58 -0
- package/dist/next.mjs.map +1 -0
- package/dist/{notes-TDHMzdVt.mjs → notes-9bOfe08J.mjs} +7 -7
- package/dist/notes-9bOfe08J.mjs.map +1 -0
- package/dist/{notes-DJyFkK13.cjs → notes-DRdlsCYV.cjs} +6 -6
- package/dist/notes-DRdlsCYV.cjs.map +1 -0
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.mjs +1 -1
- package/dist/{projectBucket-BPzx0b0t.mjs → projectBucket-Cd7sEDhG.mjs} +2 -2
- package/dist/{projectBucket-BPzx0b0t.mjs.map → projectBucket-Cd7sEDhG.mjs.map} +1 -1
- package/dist/{projectBucket-CoskwJC5.cjs → projectBucket-gIQUuhGm.cjs} +2 -2
- package/dist/{projectBucket-CoskwJC5.cjs.map → projectBucket-gIQUuhGm.cjs.map} +1 -1
- package/dist/{publish-DB3-zkpm.cjs → publish-BgDFx08y.cjs} +2 -2
- package/dist/{publish-DB3-zkpm.cjs.map → publish-BgDFx08y.cjs.map} +1 -1
- package/dist/{publish-LZ1eb-MI.mjs → publish-DOxz4mxf.mjs} +2 -2
- package/dist/{publish-LZ1eb-MI.mjs.map → publish-DOxz4mxf.mjs.map} +1 -1
- package/dist/{resolve-B5_tOTJG.cjs → resolve-BhQd4IkT.cjs} +4 -4
- package/dist/{resolve-B5_tOTJG.cjs.map → resolve-BhQd4IkT.cjs.map} +1 -1
- package/dist/{resolve-jez3Y1S0.mjs → resolve-CdDyPOE8.mjs} +4 -4
- package/dist/{resolve-jez3Y1S0.mjs.map → resolve-CdDyPOE8.mjs.map} +1 -1
- package/dist/{rollback-BNo1bCLO.cjs → rollback-Brc-_HBJ.cjs} +6 -6
- package/dist/{rollback-BNo1bCLO.cjs.map → rollback-Brc-_HBJ.cjs.map} +1 -1
- package/dist/{rollback-BtOfxwo-.mjs → rollback-CLBKeSMl.mjs} +6 -6
- package/dist/{rollback-BtOfxwo-.mjs.map → rollback-CLBKeSMl.mjs.map} +1 -1
- package/dist/{s3-BlPwyu1L.cjs → s3-CuLmr6Q9.cjs} +3 -3
- package/dist/{s3-BlPwyu1L.cjs.map → s3-CuLmr6Q9.cjs.map} +1 -1
- package/dist/{s3-Bf_75vVl.mjs → s3-D0BIG_ml.mjs} +3 -3
- package/dist/{s3-Bf_75vVl.mjs.map → s3-D0BIG_ml.mjs.map} +1 -1
- package/dist/{serverSetup-D0Zor2i4.mjs → serverSetup-An1fE9nd.mjs} +6 -6
- package/dist/{serverSetup-D0Zor2i4.mjs.map → serverSetup-An1fE9nd.mjs.map} +1 -1
- package/dist/{serverSetup-D30vVD6t.cjs → serverSetup-BMpzrB1y.cjs} +6 -6
- package/dist/{serverSetup-D30vVD6t.cjs.map → serverSetup-BMpzrB1y.cjs.map} +1 -1
- package/dist/{sniffer-Bw00z3I8.cjs → sniffer-9a8wQeeD.cjs} +7 -7
- package/dist/{sniffer-Bw00z3I8.cjs.map → sniffer-9a8wQeeD.cjs.map} +1 -1
- package/dist/{sniffer-DdPDiNmc.mjs → sniffer-BObBXR5q.mjs} +7 -7
- package/dist/{sniffer-DdPDiNmc.mjs.map → sniffer-BObBXR5q.mjs.map} +1 -1
- package/dist/{snsSubscriptions-g7apv_fy.cjs → snsSubscriptions-BRmEdsks.cjs} +3 -3
- package/dist/{snsSubscriptions-g7apv_fy.cjs.map → snsSubscriptions-BRmEdsks.cjs.map} +1 -1
- package/dist/{snsSubscriptions-DBxVTR6Y.mjs → snsSubscriptions-oUTOkG-s.mjs} +3 -3
- package/dist/{snsSubscriptions-DBxVTR6Y.mjs.map → snsSubscriptions-oUTOkG-s.mjs.map} +1 -1
- package/dist/{sst-CEs0bMxj.cjs → sst-CJQI9GYW.cjs} +5 -5
- package/dist/{sst-CEs0bMxj.cjs.map → sst-CJQI9GYW.cjs.map} +1 -1
- package/dist/{sst-DJ22YDEq.mjs → sst-DVIeKWCH.mjs} +5 -5
- package/dist/{sst-DJ22YDEq.mjs.map → sst-DVIeKWCH.mjs.map} +1 -1
- package/dist/{stack-BmG-lKgD.cjs → stack-2jMvQfLo.cjs} +7 -7
- package/dist/{stack-BmG-lKgD.cjs.map → stack-2jMvQfLo.cjs.map} +1 -1
- package/dist/{stack-Ds9jjpE1.mjs → stack-kcxH-2tZ.mjs} +7 -7
- package/dist/{stack-Ds9jjpE1.mjs.map → stack-kcxH-2tZ.mjs.map} +1 -1
- package/dist/{stage-kGc9L3yB.cjs → stage-AHgVG7H8.cjs} +6 -6
- package/dist/{stage-kGc9L3yB.cjs.map → stage-AHgVG7H8.cjs.map} +1 -1
- package/dist/{stage-D9dfV1Ey.mjs → stage-BQSSMJL4.mjs} +6 -6
- package/dist/{stage-D9dfV1Ey.mjs.map → stage-BQSSMJL4.mjs.map} +1 -1
- package/dist/{stages-BL22BLJS.mjs → stages-BsK1Ro4s.mjs} +2 -2
- package/dist/{stages-BL22BLJS.mjs.map → stages-BsK1Ro4s.mjs.map} +1 -1
- package/dist/{stages-CN53nNOK.cjs → stages-DpF2K3PZ.cjs} +2 -2
- package/dist/{stages-CN53nNOK.cjs.map → stages-DpF2K3PZ.cjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/dist/{terminal-DVlIWcUb.cjs → terminal-BNjNr7BN.cjs} +2 -2
- package/dist/{terminal-DVlIWcUb.cjs.map → terminal-BNjNr7BN.cjs.map} +1 -1
- package/dist/{terminal-C0A7S7fB.mjs → terminal-DWROY7JE.mjs} +2 -2
- package/dist/{terminal-C0A7S7fB.mjs.map → terminal-DWROY7JE.mjs.map} +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-D4hzz6Xb.mjs → workspace-9q4TSHlM.mjs} +7 -8
- package/dist/workspace-9q4TSHlM.mjs.map +1 -0
- package/dist/{workspace-DPSdiv-b.cjs → workspace-Ciw3SnME.cjs} +6 -7
- package/dist/workspace-Ciw3SnME.cjs.map +1 -0
- package/package.json +25 -15
- package/dist/apps-CJTOIaz3.mjs.map +0 -1
- package/dist/apps-DkMR-qvD.cjs.map +0 -1
- package/dist/compose-SmuCWWUh.cjs.map +0 -1
- package/dist/compose-tX6YTa1U.mjs.map +0 -1
- package/dist/deploy--ia-CGMv.cjs.map +0 -1
- package/dist/deploy-BWFFSN5p.mjs.map +0 -1
- package/dist/docker-BtUjo-J_.cjs.map +0 -1
- package/dist/engine-BzeCK6e8.mjs.map +0 -1
- package/dist/engine-xrlcbr1g.cjs.map +0 -1
- package/dist/notes-DJyFkK13.cjs.map +0 -1
- package/dist/notes-TDHMzdVt.mjs.map +0 -1
- package/dist/workspace-D4hzz6Xb.mjs.map +0 -1
- package/dist/workspace-DPSdiv-b.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
4
4
|
const require_errors = require("./errors-DMC4Umsb.cjs");
|
|
5
|
-
const require_credentials = require("./credentials-
|
|
6
|
-
const require_compose = require("./compose-
|
|
7
|
-
const require_workspace = require("./workspace-
|
|
8
|
-
const require_apps = require("./apps-
|
|
5
|
+
const require_credentials = require("./credentials-CORvhcrO.cjs");
|
|
6
|
+
const require_compose = require("./compose-QSBmhr4V.cjs");
|
|
7
|
+
const require_workspace = require("./workspace-Ciw3SnME.cjs");
|
|
8
|
+
const require_apps = require("./apps-C6s-trVp.cjs");
|
|
9
9
|
const require_schemas = require("./schemas-BQ_v0lEX.cjs");
|
|
10
|
-
const require_compose$1 = require("./compose-
|
|
10
|
+
const require_compose$1 = require("./compose-BqTuzitb.cjs");
|
|
11
11
|
const require_SubscriberGenerator = require("./SubscriberGenerator-mZpSuSU7.cjs");
|
|
12
12
|
const require_types = require("./types-Bl_CwZC9.cjs");
|
|
13
13
|
const require_EndpointGenerator = require("./EndpointGenerator-DxrRqfJ3.cjs");
|
|
14
14
|
const require_discover = require("./discover-CRywE7yc.cjs");
|
|
15
15
|
const require_config = require("./config.cjs");
|
|
16
|
-
const require_notes = require("./notes-
|
|
17
|
-
const require_stack = require("./stack-
|
|
18
|
-
const require_docker = require("./docker-
|
|
19
|
-
const require_snsSubscriptions = require("./snsSubscriptions-
|
|
16
|
+
const require_notes = require("./notes-DRdlsCYV.cjs");
|
|
17
|
+
const require_stack = require("./stack-2jMvQfLo.cjs");
|
|
18
|
+
const require_docker = require("./docker-Dy1ZJUzV.cjs");
|
|
19
|
+
const require_snsSubscriptions = require("./snsSubscriptions-BRmEdsks.cjs");
|
|
20
20
|
const require_openapi = require("./openapi.cjs");
|
|
21
21
|
const require_appPorts = require("./appPorts-IW-OZmRi.cjs");
|
|
22
22
|
const require_drivers = require("./drivers-BhdC9Efj.cjs");
|
|
23
23
|
const require_emit = require("./emit-DiW0kbue.cjs");
|
|
24
|
-
const require_local = require("./local-
|
|
25
|
-
const require_sniffer = require("./sniffer-
|
|
26
|
-
const require_deploy = require("./deploy
|
|
24
|
+
const require_local = require("./local-BxjA0EXj.cjs");
|
|
25
|
+
const require_sniffer = require("./sniffer-9a8wQeeD.cjs");
|
|
26
|
+
const require_deploy = require("./deploy-BwJ7uWXd.cjs");
|
|
27
27
|
const require_seeds = require("./seeds-Bc3niNVb.cjs");
|
|
28
28
|
const require_credentialSchemas = require("./credentialSchemas-BAklWDna.cjs");
|
|
29
|
-
const require_LocalStateStore = require("./LocalStateStore-
|
|
29
|
+
const require_LocalStateStore = require("./LocalStateStore-BYMUEGZN.cjs");
|
|
30
30
|
const require_utils = require("./utils-D2Nk1Nv2.cjs");
|
|
31
31
|
const require_ready = require("./ready-eVMJIcWn.cjs");
|
|
32
32
|
let node_path = require("node:path");
|
|
@@ -61,7 +61,7 @@ let crypto = require("crypto");
|
|
|
61
61
|
crypto = require_rolldown_runtime.__toESM(crypto, 1);
|
|
62
62
|
let _geekmidas_constructs_topic = require("@geekmidas/constructs/topic");
|
|
63
63
|
//#region package.json
|
|
64
|
-
var version = "10.0.0-alpha.
|
|
64
|
+
var version = "10.0.0-alpha.167";
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region src/prompt.ts
|
|
67
67
|
/**
|
|
@@ -144,7 +144,7 @@ const logger$8 = console;
|
|
|
144
144
|
* Validate Dokploy token by making a test API call
|
|
145
145
|
*/
|
|
146
146
|
async function validateDokployToken(endpoint, token) {
|
|
147
|
-
const { DokployApi } = await Promise.resolve().then(() => require("./sniffer-
|
|
147
|
+
const { DokployApi } = await Promise.resolve().then(() => require("./sniffer-9a8wQeeD.cjs")).then((n) => n.dokploy_api_exports);
|
|
148
148
|
return new DokployApi({
|
|
149
149
|
baseUrl: endpoint,
|
|
150
150
|
token
|
|
@@ -332,10 +332,10 @@ var BackupRunNotFound = class extends require_errors.GkmError {
|
|
|
332
332
|
this.name = "BackupRunNotFound";
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
|
-
/** `--at
|
|
335
|
+
/** Not exactly one of `--at`, `--latest` and `--from`. */
|
|
336
336
|
var BackupRunNotChosen = class extends require_errors.GkmError {
|
|
337
337
|
constructor() {
|
|
338
|
-
super("Say which backup to restore: --latest
|
|
338
|
+
super("Say which backup to restore, and only one: --latest; --at <time> — a run folder (2026-10-10/02-00-00Z) or a time, for the newest run at or before it; or --from imports/<file>.sql.gz, a prepared import.");
|
|
339
339
|
this.name = "BackupRunNotChosen";
|
|
340
340
|
}
|
|
341
341
|
};
|
|
@@ -363,6 +363,109 @@ var BackupDatabaseMissing = class extends require_errors.GkmError {
|
|
|
363
363
|
this.name = "BackupDatabaseMissing";
|
|
364
364
|
}
|
|
365
365
|
};
|
|
366
|
+
/** The folder every import is kept in, under the stage's backups prefix. */
|
|
367
|
+
const IMPORTS_FOLDER = "imports";
|
|
368
|
+
/** `--from` names something that is not a file under the stage's `imports/`. */
|
|
369
|
+
var ImportPathInvalid = class extends require_errors.GkmError {
|
|
370
|
+
from;
|
|
371
|
+
reason;
|
|
372
|
+
constructor(from, reason) {
|
|
373
|
+
super(`--from '${from}' ${reason}. Name a file in the ${IMPORTS_FOLDER}/ folder under the stage's backups prefix: --from ${IMPORTS_FOLDER}/<file>.sql.gz (gkm backup:list shows what is there).`);
|
|
374
|
+
this.from = from;
|
|
375
|
+
this.reason = reason;
|
|
376
|
+
this.name = "ImportPathInvalid";
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
/** `--from` without `--database`: a file loads into one database. */
|
|
380
|
+
var ImportNeedsDatabase = class extends require_errors.GkmError {
|
|
381
|
+
from;
|
|
382
|
+
known;
|
|
383
|
+
constructor(from, known) {
|
|
384
|
+
super(`--from ${from} loads into one database: name it with --database (${known.join(", ") || "the stack runs none"}).`);
|
|
385
|
+
this.from = from;
|
|
386
|
+
this.known = known;
|
|
387
|
+
this.name = "ImportNeedsDatabase";
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
/** No file at the key `--from` names. */
|
|
391
|
+
var ImportNotFound = class extends require_errors.GkmError {
|
|
392
|
+
from;
|
|
393
|
+
location;
|
|
394
|
+
constructor(from, location) {
|
|
395
|
+
super(`There is no ${from} at ${location}. Upload the prepared file there, or pick one gkm backup:list shows.`);
|
|
396
|
+
this.from = from;
|
|
397
|
+
this.location = location;
|
|
398
|
+
this.name = "ImportNotFound";
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
/**
|
|
402
|
+
* The stack's apps, stopped for an import, could not be started again.
|
|
403
|
+
* `loaded` says whether the import itself went in.
|
|
404
|
+
*/
|
|
405
|
+
var AppsNotRestarted = class extends require_errors.GkmError {
|
|
406
|
+
project;
|
|
407
|
+
database;
|
|
408
|
+
loaded;
|
|
409
|
+
ids;
|
|
410
|
+
output;
|
|
411
|
+
constructor(project, database, loaded, ids, output) {
|
|
412
|
+
super(`${loaded ? `${database} was loaded` : `Loading ${database} failed and changed nothing`}, but ${project}'s apps, stopped for it, did not start again (docker said: ${output.trim() || "nothing"}). Start them on the stage's server with \`docker start ${ids.join(" ")}\`, or deploy the stage.`);
|
|
413
|
+
this.project = project;
|
|
414
|
+
this.database = database;
|
|
415
|
+
this.loaded = loaded;
|
|
416
|
+
this.ids = ids;
|
|
417
|
+
this.output = output;
|
|
418
|
+
this.name = "AppsNotRestarted";
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
/**
|
|
422
|
+
* The key `--from` names, under the stage's backups prefix — refusing
|
|
423
|
+
* anything that would read outside its `imports/` folder.
|
|
424
|
+
*
|
|
425
|
+
* @throws {ImportPathInvalid}
|
|
426
|
+
*/
|
|
427
|
+
function importKey(prefix, from) {
|
|
428
|
+
if (/^[a-z][a-z\d+.-]*:/i.test(from)) throw new ImportPathInvalid(from, "is a URL, not a path");
|
|
429
|
+
if (from.startsWith("/")) throw new ImportPathInvalid(from, "is absolute");
|
|
430
|
+
if (from.includes("\\")) throw new ImportPathInvalid(from, "has a backslash");
|
|
431
|
+
const segments = from.split("/");
|
|
432
|
+
if (segments.some((s) => s === "" || s === "." || s === "..")) throw new ImportPathInvalid(from, "has an empty, '.' or '..' segment");
|
|
433
|
+
if (segments[0] !== "imports" || segments.length < 2) throw new ImportPathInvalid(from, `is not in ${IMPORTS_FOLDER}/`);
|
|
434
|
+
if (!from.endsWith(".sql.gz")) throw new ImportPathInvalid(from, "is not a gzipped SQL file (.sql.gz)");
|
|
435
|
+
return `${prefix}/${from}`;
|
|
436
|
+
}
|
|
437
|
+
/** Every file under the stage's `imports/`, by name. */
|
|
438
|
+
async function listImports(s3, bucket, prefix) {
|
|
439
|
+
const { ListObjectsV2Command } = await import("@aws-sdk/client-s3");
|
|
440
|
+
const imports = [];
|
|
441
|
+
let token;
|
|
442
|
+
do {
|
|
443
|
+
const page = await s3.send(new ListObjectsV2Command({
|
|
444
|
+
Bucket: bucket,
|
|
445
|
+
Prefix: `${prefix}/${IMPORTS_FOLDER}/`,
|
|
446
|
+
...token ? { ContinuationToken: token } : {}
|
|
447
|
+
}));
|
|
448
|
+
for (const object of page.Contents ?? []) {
|
|
449
|
+
const file = object.Key?.slice(prefix.length + 1) ?? "";
|
|
450
|
+
if (!file || file.endsWith("/")) continue;
|
|
451
|
+
imports.push({
|
|
452
|
+
file,
|
|
453
|
+
size: object.Size ?? 0,
|
|
454
|
+
...object.LastModified ? { modified: object.LastModified } : {}
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
token = page.IsTruncated ? page.NextContinuationToken : void 0;
|
|
458
|
+
} while (token);
|
|
459
|
+
return imports.sort((a, b) => a.file.localeCompare(b.file));
|
|
460
|
+
}
|
|
461
|
+
/** The lines `backup:list` prints for the imports, by name. */
|
|
462
|
+
function formatImports(imports) {
|
|
463
|
+
return imports.map((i) => `${i.file} ${formatSize(i.size)}` + (i.modified ? ` uploaded ${formatTime(i.modified)}` : ""));
|
|
464
|
+
}
|
|
465
|
+
/** `2026-10-10 02:00:00Z`. */
|
|
466
|
+
function formatTime(at) {
|
|
467
|
+
return at.toISOString().replace("T", " ").replace(/\.\d{3}Z$/, "Z");
|
|
468
|
+
}
|
|
366
469
|
/** Nobody said yes. */
|
|
367
470
|
var RestoreNotConfirmed = class extends require_errors.GkmError {
|
|
368
471
|
stage;
|
|
@@ -454,7 +557,7 @@ function formatSize(bytes) {
|
|
|
454
557
|
}
|
|
455
558
|
/** The lines `backup:list` prints, newest first. */
|
|
456
559
|
function formatRuns(runs) {
|
|
457
|
-
return runs.map((run) => `${run.at
|
|
560
|
+
return runs.map((run) => `${formatTime(run.at)} ${run.folder} ` + run.files.map((f) => `${f.database} (${formatSize(f.size)})`).join(", "));
|
|
458
561
|
}
|
|
459
562
|
/**
|
|
460
563
|
* Ask the stack's backups container for a backup now, and wait for it.
|
|
@@ -507,16 +610,38 @@ if ! gunzip | psql -X -q -v ON_ERROR_STOP=1 -o /dev/null; then
|
|
|
507
610
|
fi
|
|
508
611
|
`;
|
|
509
612
|
/**
|
|
510
|
-
*
|
|
511
|
-
*
|
|
512
|
-
* the
|
|
613
|
+
* What runs in the one-off container for `--from`: every other session of
|
|
614
|
+
* the database ended — the stack's apps are already stopped, so nothing
|
|
615
|
+
* comes back — then the file, a data-only dump, run connected to the
|
|
616
|
+
* database itself, in one transaction. A file that fails changes nothing.
|
|
617
|
+
*/
|
|
618
|
+
const IMPORT_SCRIPT = `set -e
|
|
619
|
+
printf '%s\\n' "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = :'db' AND pid <> pg_backend_pid();" \\
|
|
620
|
+
| psql -X -q -v ON_ERROR_STOP=1 -v db="$RESTORE_DATABASE" -o /dev/null
|
|
621
|
+
gunzip | psql -X -q -v ON_ERROR_STOP=1 --single-transaction -d "$RESTORE_DATABASE" -f - -o /dev/null
|
|
622
|
+
`;
|
|
623
|
+
/**
|
|
624
|
+
* Restore a run's databases into the stack's Postgres — or, with `from`,
|
|
625
|
+
* load a prepared import into one. Asks, takes a fresh backup, then
|
|
626
|
+
* recreates each database from its file. Returns the run (or the import)
|
|
627
|
+
* and the databases restored.
|
|
513
628
|
*
|
|
514
629
|
* @throws {BackupRunNotChosen}, {NoBackups}, {BackupRunNotFound},
|
|
630
|
+
* {ImportPathInvalid}, {ImportNeedsDatabase}, {ImportNotFound},
|
|
515
631
|
* {BackupDatabaseUnknown}, {BackupDatabaseMissing}, {RestoreNotConfirmed},
|
|
516
|
-
* {BackupsContainerNotRunning}, {BackupRunFailed}, {RestoreFailed}
|
|
632
|
+
* {BackupsContainerNotRunning}, {BackupRunFailed}, {RestoreFailed},
|
|
633
|
+
* {ContainersNotStopped}, {AppsNotRestarted}
|
|
517
634
|
*/
|
|
518
635
|
async function restoreBackup(options) {
|
|
519
|
-
if (
|
|
636
|
+
if ([
|
|
637
|
+
options.at,
|
|
638
|
+
options.latest,
|
|
639
|
+
options.from
|
|
640
|
+
].filter(Boolean).length !== 1) throw new BackupRunNotChosen();
|
|
641
|
+
if (options.from) return importBackup({
|
|
642
|
+
...options,
|
|
643
|
+
from: options.from
|
|
644
|
+
});
|
|
520
645
|
const runs = await listBackups(options.s3, options.bucket, options.prefix);
|
|
521
646
|
if (runs.length === 0) throw new NoBackups(options.stage, `s3://${options.bucket}/${options.prefix}/`);
|
|
522
647
|
const run = chooseRun(runs, options);
|
|
@@ -525,10 +650,94 @@ async function restoreBackup(options) {
|
|
|
525
650
|
const targets = options.databases.filter((d) => !options.database || d.file === options.database);
|
|
526
651
|
const has = run.files.map((f) => f.database);
|
|
527
652
|
for (const target of targets) if (!has.includes(target.file)) throw new BackupDatabaseMissing(run.folder, target.file, has);
|
|
653
|
+
const { engine, image } = await beforeRestore(options, `Replace ${targets.map((t) => t.name).join(", ")} on '${options.stage}' with the backup ${run.folder}? Everything written since is lost (a backup is taken first).`);
|
|
654
|
+
const restored = [];
|
|
655
|
+
for (const target of targets) {
|
|
656
|
+
const Key = `${options.prefix}/${run.folder}/${require_apps.backupFile(target)}`;
|
|
657
|
+
options.log(`♻️ Restoring ${target.name} from s3://${options.bucket}/${Key}…`);
|
|
658
|
+
const code = await streamInto(options, engine, image, {
|
|
659
|
+
Key,
|
|
660
|
+
script: RESTORE_SCRIPT,
|
|
661
|
+
database: target.name
|
|
662
|
+
});
|
|
663
|
+
if (code !== 0) throw new RestoreFailed(target.name, code);
|
|
664
|
+
restored.push(target.file);
|
|
665
|
+
}
|
|
666
|
+
return {
|
|
667
|
+
run,
|
|
668
|
+
restored
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* Load `from` — a data-only file in the prefix's `imports/` — into one
|
|
673
|
+
* database. The file has to run connected to the database itself, so the
|
|
674
|
+
* database cannot be closed to connections the way a run's restore closes it
|
|
675
|
+
* (that would shut the load out too); the stack's apps are stopped instead,
|
|
676
|
+
* and started again whatever happens.
|
|
677
|
+
*/
|
|
678
|
+
async function importBackup(options) {
|
|
679
|
+
const Key = importKey(options.prefix, options.from);
|
|
680
|
+
const known = options.databases.map((d) => d.file);
|
|
681
|
+
if (!options.database) throw new ImportNeedsDatabase(options.from, known);
|
|
682
|
+
const target = options.databases.find((d) => d.file === options.database);
|
|
683
|
+
if (!target) throw new BackupDatabaseUnknown(options.database, known);
|
|
684
|
+
const { HeadObjectCommand } = await import("@aws-sdk/client-s3");
|
|
685
|
+
try {
|
|
686
|
+
await options.s3.send(new HeadObjectCommand({
|
|
687
|
+
Bucket: options.bucket,
|
|
688
|
+
Key
|
|
689
|
+
}));
|
|
690
|
+
} catch (error) {
|
|
691
|
+
if (error.$metadata?.httpStatusCode !== 404) throw error;
|
|
692
|
+
throw new ImportNotFound(options.from, `s3://${options.bucket}/${options.prefix}/`);
|
|
693
|
+
}
|
|
694
|
+
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).`);
|
|
695
|
+
const keep = [
|
|
696
|
+
"postgres",
|
|
697
|
+
require_apps.BACKUPS_SERVICE,
|
|
698
|
+
...options.keep ?? []
|
|
699
|
+
];
|
|
700
|
+
options.log(`⏸️ Stopping ${options.project}'s apps…`);
|
|
701
|
+
let stopped;
|
|
702
|
+
try {
|
|
703
|
+
stopped = await options.docker.stop(engine, options.project, keep);
|
|
704
|
+
} catch (error) {
|
|
705
|
+
if (error instanceof require_compose.ContainersNotStopped) await options.docker.start(engine, error.ids).catch(() => {});
|
|
706
|
+
throw error;
|
|
707
|
+
}
|
|
708
|
+
let code;
|
|
709
|
+
try {
|
|
710
|
+
options.log(`📥 Loading ${target.name} from s3://${options.bucket}/${Key}…`);
|
|
711
|
+
code = await streamInto(options, engine, image, {
|
|
712
|
+
Key,
|
|
713
|
+
script: IMPORT_SCRIPT,
|
|
714
|
+
database: target.name
|
|
715
|
+
});
|
|
716
|
+
} catch (error) {
|
|
717
|
+
await options.docker.start(engine, stopped).catch(() => {});
|
|
718
|
+
throw error;
|
|
719
|
+
}
|
|
720
|
+
options.log(`▶️ Starting ${options.project}'s apps again…`);
|
|
721
|
+
try {
|
|
722
|
+
await options.docker.start(engine, stopped);
|
|
723
|
+
} catch (error) {
|
|
724
|
+
throw new AppsNotRestarted(options.project, target.name, code === 0, stopped, error instanceof require_compose.ContainersNotStarted ? error.output : String(error));
|
|
725
|
+
}
|
|
726
|
+
if (code !== 0) throw new RestoreFailed(target.name, code);
|
|
727
|
+
return {
|
|
728
|
+
from: options.from,
|
|
729
|
+
restored: [target.file]
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* What every restore does before it changes anything: find the stack's
|
|
734
|
+
* backups container — its image runs the restore — ask, and take a fresh
|
|
735
|
+
* backup.
|
|
736
|
+
*/
|
|
737
|
+
async function beforeRestore(options, question) {
|
|
528
738
|
const engine = options.engine ?? {};
|
|
529
739
|
const container = await options.docker.container(engine, options.project, require_apps.BACKUPS_SERVICE);
|
|
530
740
|
if (!container) throw new BackupsContainerNotRunning(options.project);
|
|
531
|
-
const question = `Replace ${targets.map((t) => t.name).join(", ")} on '${options.stage}' with the backup ${run.folder}? Everything written since is lost (a backup is taken first).`;
|
|
532
741
|
if (!await options.confirm(question)) throw new RestoreNotConfirmed(options.stage);
|
|
533
742
|
options.log("💾 Taking a backup before restoring…");
|
|
534
743
|
await backupNow({
|
|
@@ -537,42 +746,42 @@ async function restoreBackup(options) {
|
|
|
537
746
|
engine,
|
|
538
747
|
log: options.log
|
|
539
748
|
});
|
|
540
|
-
const { GetObjectCommand } = await import("@aws-sdk/client-s3");
|
|
541
|
-
const restored = [];
|
|
542
|
-
for (const target of targets) {
|
|
543
|
-
const Key = `${options.prefix}/${run.folder}/${require_apps.backupFile(target)}`;
|
|
544
|
-
options.log(`♻️ Restoring ${target.name} from s3://${options.bucket}/${Key}…`);
|
|
545
|
-
const object = await options.s3.send(new GetObjectCommand({
|
|
546
|
-
Bucket: options.bucket,
|
|
547
|
-
Key
|
|
548
|
-
}));
|
|
549
|
-
const code = await options.docker.runOnce(engine, {
|
|
550
|
-
image: container.image,
|
|
551
|
-
network: require_compose.projectNetwork(options.project),
|
|
552
|
-
command: [
|
|
553
|
-
"sh",
|
|
554
|
-
"-c",
|
|
555
|
-
RESTORE_SCRIPT
|
|
556
|
-
],
|
|
557
|
-
env: {
|
|
558
|
-
PGHOST: "postgres",
|
|
559
|
-
PGPORT: "5432",
|
|
560
|
-
PGUSER: options.superuser.user,
|
|
561
|
-
PGPASSWORD: options.superuser.password,
|
|
562
|
-
PGDATABASE: "postgres",
|
|
563
|
-
RESTORE_DATABASE: target.name
|
|
564
|
-
},
|
|
565
|
-
stdin: object.Body,
|
|
566
|
-
...options.output ? { output: options.output } : {}
|
|
567
|
-
});
|
|
568
|
-
if (code !== 0) throw new RestoreFailed(target.name, code);
|
|
569
|
-
restored.push(target.file);
|
|
570
|
-
}
|
|
571
749
|
return {
|
|
572
|
-
|
|
573
|
-
|
|
750
|
+
engine,
|
|
751
|
+
image: container.image
|
|
574
752
|
};
|
|
575
753
|
}
|
|
754
|
+
/**
|
|
755
|
+
* Stream a file from S3, with the caller's credentials, into `script` in a
|
|
756
|
+
* one-off container of the backups image on the stack's network, signed in
|
|
757
|
+
* as the stack's superuser. Resolves with its exit code.
|
|
758
|
+
*/
|
|
759
|
+
async function streamInto(options, engine, image, file) {
|
|
760
|
+
const { GetObjectCommand } = await import("@aws-sdk/client-s3");
|
|
761
|
+
const object = await options.s3.send(new GetObjectCommand({
|
|
762
|
+
Bucket: options.bucket,
|
|
763
|
+
Key: file.Key
|
|
764
|
+
}));
|
|
765
|
+
return options.docker.runOnce(engine, {
|
|
766
|
+
image,
|
|
767
|
+
network: require_compose.projectNetwork(options.project),
|
|
768
|
+
command: [
|
|
769
|
+
"sh",
|
|
770
|
+
"-c",
|
|
771
|
+
file.script
|
|
772
|
+
],
|
|
773
|
+
env: {
|
|
774
|
+
PGHOST: "postgres",
|
|
775
|
+
PGPORT: "5432",
|
|
776
|
+
PGUSER: options.superuser.user,
|
|
777
|
+
PGPASSWORD: options.superuser.password,
|
|
778
|
+
PGDATABASE: "postgres",
|
|
779
|
+
RESTORE_DATABASE: file.database
|
|
780
|
+
},
|
|
781
|
+
stdin: object.Body,
|
|
782
|
+
...options.output ? { output: options.output } : {}
|
|
783
|
+
});
|
|
784
|
+
}
|
|
576
785
|
async function resolveStage(options) {
|
|
577
786
|
const { workspace } = await require_config.loadWorkspaceConfig(options.cwd);
|
|
578
787
|
const { stage } = options;
|
|
@@ -638,13 +847,30 @@ async function backupListCommand(options) {
|
|
|
638
847
|
const resolved = await resolveStage(options);
|
|
639
848
|
const { s3, bucket } = await callerS3(resolved, options);
|
|
640
849
|
const runs = await listBackups(s3, bucket, resolved.prefix);
|
|
641
|
-
|
|
642
|
-
|
|
850
|
+
const imports = await listImports(s3, bucket, resolved.prefix);
|
|
851
|
+
if (options.json) {
|
|
852
|
+
console.log(JSON.stringify({
|
|
853
|
+
runs,
|
|
854
|
+
imports
|
|
855
|
+
}, null, 2));
|
|
856
|
+
return {
|
|
857
|
+
runs,
|
|
858
|
+
imports
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
if (runs.length === 0) console.log(`No backups of '${options.stage}' yet.`);
|
|
643
862
|
else {
|
|
644
863
|
console.log(`💾 s3://${bucket}/${resolved.prefix}/ — newest first\n`);
|
|
645
864
|
for (const line of formatRuns(runs)) console.log(line);
|
|
646
865
|
}
|
|
647
|
-
|
|
866
|
+
if (imports.length > 0) {
|
|
867
|
+
console.log(`\n📥 Imports — gkm backup:restore --stage ${options.stage} --from <file> --database <name>\n`);
|
|
868
|
+
for (const line of formatImports(imports)) console.log(line);
|
|
869
|
+
}
|
|
870
|
+
return {
|
|
871
|
+
runs,
|
|
872
|
+
imports
|
|
873
|
+
};
|
|
648
874
|
}
|
|
649
875
|
/** `gkm backup:now --stage <stage>`. */
|
|
650
876
|
async function backupNowCommand(options, docker = require_compose.dockerCompose) {
|
|
@@ -658,10 +884,21 @@ async function backupNowCommand(options, docker = require_compose.dockerCompose)
|
|
|
658
884
|
});
|
|
659
885
|
console.log("✅ Backed up.");
|
|
660
886
|
}
|
|
661
|
-
/**
|
|
887
|
+
/** The stack's own proxy: kept running while an import loads. */
|
|
888
|
+
const STACK_PROXY_SERVICE = "caddy";
|
|
889
|
+
/**
|
|
890
|
+
* `gkm backup:restore --stage <stage> (--at <time> | --latest |
|
|
891
|
+
* --from imports/<file> --database <name>)`.
|
|
892
|
+
*/
|
|
662
893
|
async function backupRestoreCommand(options, docker = require_compose.dockerCompose) {
|
|
663
|
-
if (
|
|
894
|
+
if ([
|
|
895
|
+
options.at,
|
|
896
|
+
options.latest,
|
|
897
|
+
options.from
|
|
898
|
+
].filter(Boolean).length !== 1) throw new BackupRunNotChosen();
|
|
899
|
+
if (options.from) importKey("", options.from);
|
|
664
900
|
const resolved = await resolveStage(options);
|
|
901
|
+
if (options.from && !options.database) throw new ImportNeedsDatabase(options.from, resolved.databases.map((d) => d.file));
|
|
665
902
|
const { s3, bucket } = await callerS3(resolved, options);
|
|
666
903
|
if (!resolved.seed) throw new BackupsNotProvisioned(options.stage);
|
|
667
904
|
const plan = require_stack.stackPlan(resolved.workspace, resolved.manifest, options.stage);
|
|
@@ -676,8 +913,10 @@ async function backupRestoreCommand(options, docker = require_compose.dockerComp
|
|
|
676
913
|
stage: options.stage,
|
|
677
914
|
superuser,
|
|
678
915
|
databases: resolved.databases,
|
|
916
|
+
keep: [...plan.containers, STACK_PROXY_SERVICE],
|
|
679
917
|
...options.at ? { at: options.at } : {},
|
|
680
918
|
...options.latest ? { latest: true } : {},
|
|
919
|
+
...options.from ? { from: options.from } : {},
|
|
681
920
|
...options.database ? { database: options.database } : {},
|
|
682
921
|
confirm: async (question) => {
|
|
683
922
|
if (options.yes) return true;
|
|
@@ -686,7 +925,7 @@ async function backupRestoreCommand(options, docker = require_compose.dockerComp
|
|
|
686
925
|
},
|
|
687
926
|
log: (line) => console.log(line)
|
|
688
927
|
});
|
|
689
|
-
console.log(`✅ Restored ${restored.join(", ")} on '${options.stage}' from ${run.folder}.`);
|
|
928
|
+
console.log(`✅ Restored ${restored.join(", ")} on '${options.stage}' from ${run ? run.folder : options.from}.`);
|
|
690
929
|
}
|
|
691
930
|
//#endregion
|
|
692
931
|
//#region src/reconcile/serviceLogins.ts
|
|
@@ -2204,7 +2443,7 @@ async function execCommand(commandArgs, options = {}, stageDeps) {
|
|
|
2204
2443
|
const cwd = options.cwd ?? process.cwd();
|
|
2205
2444
|
if (!commandArgs[0]) throw new NoCommandSpecified();
|
|
2206
2445
|
if (options.stage && !require_apps.isImageBuild()) {
|
|
2207
|
-
const { execOnStage } = await Promise.resolve().then(() => require("./stage-
|
|
2446
|
+
const { execOnStage } = await Promise.resolve().then(() => require("./stage-AHgVG7H8.cjs")).then((n) => n.stage_exports);
|
|
2208
2447
|
const { loadWorkspaceConfig } = await Promise.resolve().then(() => require("./config.cjs"));
|
|
2209
2448
|
const { workspace } = await loadWorkspaceConfig(cwd);
|
|
2210
2449
|
if (options.stage !== workspace.stages.local) {
|
|
@@ -2779,9 +3018,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
2779
3018
|
for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
2780
3019
|
logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
2781
3020
|
if (options.migrate || options.seed) {
|
|
2782
|
-
const { prepareDevDatabases } = await Promise.resolve().then(() => require("./migrate-
|
|
3021
|
+
const { prepareDevDatabases } = await Promise.resolve().then(() => require("./migrate-B0a3WY4X.cjs"));
|
|
2783
3022
|
await prepareDevDatabases(workspace, secretsEnv, { seed: !!options.seed });
|
|
2784
|
-
} else await Promise.resolve().then(() => require("./migrate-
|
|
3023
|
+
} else await Promise.resolve().then(() => require("./migrate-B0a3WY4X.cjs")).then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
2785
3024
|
logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
2786
3025
|
});
|
|
2787
3026
|
const appUrls = {};
|
|
@@ -3985,7 +4224,7 @@ async function buildApp(input) {
|
|
|
3985
4224
|
...telemetry ? { telemetry } : {},
|
|
3986
4225
|
trustedOriginsKey: (0, _geekmidas_manifest.provideKey)(selfServing.id, "trustedOrigins")
|
|
3987
4226
|
});
|
|
3988
|
-
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-
|
|
4227
|
+
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-AzkSRAuu.cjs"));
|
|
3989
4228
|
await bundleServer({
|
|
3990
4229
|
entryPoint,
|
|
3991
4230
|
outputDir: (0, node_path.join)(outputDir, "dist"),
|
|
@@ -4255,7 +4494,7 @@ async function buildWorkers(input) {
|
|
|
4255
4494
|
});
|
|
4256
4495
|
logger$4.log(`Generated worker ${worker.id}: ${crons.length} crons, ${queues.length} queues, ${subscribers.length} subscribers`);
|
|
4257
4496
|
if (!input.bundle) continue;
|
|
4258
|
-
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-
|
|
4497
|
+
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-AzkSRAuu.cjs"));
|
|
4259
4498
|
const outfile = require_docker.workerBundleName(worker.id);
|
|
4260
4499
|
await bundleServer({
|
|
4261
4500
|
entryPoint,
|
|
@@ -4297,7 +4536,7 @@ async function buildProcessors(input) {
|
|
|
4297
4536
|
for (const { key, construct } of processors) infos.push(await require_docker.processorInfo(key, construct, handler, context));
|
|
4298
4537
|
logger$4.log(`Generated processors for ${fileServerId}: ${processors.map(({ key }) => key).join(", ")}`);
|
|
4299
4538
|
if (!input.bundle) continue;
|
|
4300
|
-
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-
|
|
4539
|
+
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-AzkSRAuu.cjs"));
|
|
4301
4540
|
const outfile = require_docker.processorBundleName(fileServerId);
|
|
4302
4541
|
await bundleServer({
|
|
4303
4542
|
entryPoint,
|
|
@@ -4380,7 +4619,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
4380
4619
|
let masterKey;
|
|
4381
4620
|
if (context.production?.bundle && !skipBundle) {
|
|
4382
4621
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
4383
|
-
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-
|
|
4622
|
+
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-AzkSRAuu.cjs"));
|
|
4384
4623
|
const allConstructs = [
|
|
4385
4624
|
...endpoints.map((e) => e.construct),
|
|
4386
4625
|
...functions.map((f) => f.construct),
|
|
@@ -4658,7 +4897,7 @@ async function composeCommand(options, deps = {}) {
|
|
|
4658
4897
|
["tag", "--tag"]
|
|
4659
4898
|
].find(([key]) => options[key] !== void 0 && options[key] !== false)?.[1];
|
|
4660
4899
|
if (flag) throw new ComposeDestroyConflict(flag);
|
|
4661
|
-
const { composeDestroyCommand } = await Promise.resolve().then(() => require("./destroy-
|
|
4900
|
+
const { composeDestroyCommand } = await Promise.resolve().then(() => require("./destroy-nTNRfdy6.cjs"));
|
|
4662
4901
|
await composeDestroyCommand({
|
|
4663
4902
|
stage: options.stage,
|
|
4664
4903
|
...options.cwd ? { cwd: options.cwd } : {},
|
|
@@ -4676,7 +4915,7 @@ async function composeCommand(options, deps = {}) {
|
|
|
4676
4915
|
const { workspace } = loaded;
|
|
4677
4916
|
const { stage } = options;
|
|
4678
4917
|
if (options.down) {
|
|
4679
|
-
const { composeStackRef } = await Promise.resolve().then(() => require("./destroy-
|
|
4918
|
+
const { composeStackRef } = await Promise.resolve().then(() => require("./destroy-nTNRfdy6.cjs"));
|
|
4680
4919
|
const { ref, dir, server } = await composeStackRef(workspace, stage);
|
|
4681
4920
|
const docker = deps.docker ?? require_compose.dockerCompose;
|
|
4682
4921
|
if (server) console.log(`→ ${require_compose.sshTarget(server)} (docker over ssh)`);
|
|
@@ -6257,25 +6496,25 @@ function loadPackageJson() {
|
|
|
6257
6496
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
6258
6497
|
*/
|
|
6259
6498
|
const GEEKMIDAS_VERSIONS = {
|
|
6260
|
-
"@geekmidas/audit": ">=10.0.0-alpha.
|
|
6261
|
-
"@geekmidas/auth": ">=10.0.0-alpha.
|
|
6262
|
-
"@geekmidas/cache": ">=10.0.0-alpha.
|
|
6263
|
-
"@geekmidas/client": ">=10.0.0-alpha.
|
|
6264
|
-
"@geekmidas/cloud": ">=10.0.0-alpha.
|
|
6265
|
-
"@geekmidas/constructs": ">=10.0.0-alpha.
|
|
6266
|
-
"@geekmidas/db": ">=10.0.0-alpha.
|
|
6267
|
-
"@geekmidas/emailkit": ">=10.0.0-alpha.
|
|
6268
|
-
"@geekmidas/envkit": ">=10.0.0-alpha.
|
|
6269
|
-
"@geekmidas/errors": ">=10.0.0-alpha.
|
|
6270
|
-
"@geekmidas/events": ">=10.0.0-alpha.
|
|
6271
|
-
"@geekmidas/logger": ">=10.0.0-alpha.
|
|
6272
|
-
"@geekmidas/manifest": ">=10.0.0-alpha.
|
|
6273
|
-
"@geekmidas/rate-limit": ">=10.0.0-alpha.
|
|
6274
|
-
"@geekmidas/schema": ">=10.0.0-alpha.
|
|
6275
|
-
"@geekmidas/services": ">=10.0.0-alpha.
|
|
6276
|
-
"@geekmidas/storage": ">=10.0.0-alpha.
|
|
6277
|
-
"@geekmidas/telescope": ">=10.0.0-alpha.
|
|
6278
|
-
"@geekmidas/testkit": ">=10.0.0-alpha.
|
|
6499
|
+
"@geekmidas/audit": ">=10.0.0-alpha.167 <10.0.0",
|
|
6500
|
+
"@geekmidas/auth": ">=10.0.0-alpha.167 <10.0.0",
|
|
6501
|
+
"@geekmidas/cache": ">=10.0.0-alpha.167 <10.0.0",
|
|
6502
|
+
"@geekmidas/client": ">=10.0.0-alpha.167 <10.0.0",
|
|
6503
|
+
"@geekmidas/cloud": ">=10.0.0-alpha.167 <10.0.0",
|
|
6504
|
+
"@geekmidas/constructs": ">=10.0.0-alpha.167 <10.0.0",
|
|
6505
|
+
"@geekmidas/db": ">=10.0.0-alpha.167 <10.0.0",
|
|
6506
|
+
"@geekmidas/emailkit": ">=10.0.0-alpha.167 <10.0.0",
|
|
6507
|
+
"@geekmidas/envkit": ">=10.0.0-alpha.167 <10.0.0",
|
|
6508
|
+
"@geekmidas/errors": ">=10.0.0-alpha.167 <10.0.0",
|
|
6509
|
+
"@geekmidas/events": ">=10.0.0-alpha.167 <10.0.0",
|
|
6510
|
+
"@geekmidas/logger": ">=10.0.0-alpha.167 <10.0.0",
|
|
6511
|
+
"@geekmidas/manifest": ">=10.0.0-alpha.167 <10.0.0",
|
|
6512
|
+
"@geekmidas/rate-limit": ">=10.0.0-alpha.167 <10.0.0",
|
|
6513
|
+
"@geekmidas/schema": ">=10.0.0-alpha.167 <10.0.0",
|
|
6514
|
+
"@geekmidas/services": ">=10.0.0-alpha.167 <10.0.0",
|
|
6515
|
+
"@geekmidas/storage": ">=10.0.0-alpha.167 <10.0.0",
|
|
6516
|
+
"@geekmidas/telescope": ">=10.0.0-alpha.167 <10.0.0",
|
|
6517
|
+
"@geekmidas/testkit": ">=10.0.0-alpha.167 <10.0.0",
|
|
6279
6518
|
"@geekmidas/cli": versionRange(loadPackageJson().version)
|
|
6280
6519
|
};
|
|
6281
6520
|
//#endregion
|
|
@@ -7468,7 +7707,7 @@ const COMMIT = /^[0-9a-f]{40}$/;
|
|
|
7468
7707
|
* The `uses:` value for the stages action, with a comment saying which CLI
|
|
7469
7708
|
* release the pinned commit is.
|
|
7470
7709
|
*/
|
|
7471
|
-
function stagesActionUses(commit = "
|
|
7710
|
+
function stagesActionUses(commit = "739e3a7a31bb46ed194b0e77e679b8322c165b8f", version = cliVersion()) {
|
|
7472
7711
|
return commit && COMMIT.test(commit) ? `${STAGES_ACTION}@${commit} # @geekmidas/cli ${version}` : `${STAGES_ACTION}@main # pin to a commit SHA: see the action's README`;
|
|
7473
7712
|
}
|
|
7474
7713
|
//#endregion
|
|
@@ -16440,7 +16679,7 @@ function testDatabases(reconciled) {
|
|
|
16440
16679
|
* starts without the reference data the app needs.
|
|
16441
16680
|
*/
|
|
16442
16681
|
async function migrateTestStage(workspace, env) {
|
|
16443
|
-
const { migrateAndSeed } = await Promise.resolve().then(() => require("./migrate-
|
|
16682
|
+
const { migrateAndSeed } = await Promise.resolve().then(() => require("./migrate-B0a3WY4X.cjs"));
|
|
16444
16683
|
const { discover } = await Promise.resolve().then(() => require("./discover-CRywE7yc.cjs")).then((n) => n.discover_exports);
|
|
16445
16684
|
const sources = {};
|
|
16446
16685
|
const manifest = await discover({
|
|
@@ -16893,7 +17132,7 @@ program.command("eas:sync").description("Set up a mobile app's EAS project for a
|
|
|
16893
17132
|
try {
|
|
16894
17133
|
const globalOptions = program.opts();
|
|
16895
17134
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16896
|
-
const { easSync } = await Promise.resolve().then(() => require("./eas-
|
|
17135
|
+
const { easSync } = await Promise.resolve().then(() => require("./eas-BRBdxmwe.cjs"));
|
|
16897
17136
|
await easSync(options);
|
|
16898
17137
|
} catch (error) {
|
|
16899
17138
|
exitWithError(error);
|
|
@@ -16903,7 +17142,7 @@ program.command("publish").description("Ship a mobile app for a deployed stage:
|
|
|
16903
17142
|
try {
|
|
16904
17143
|
const globalOptions = program.opts();
|
|
16905
17144
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16906
|
-
const { publish, PublishModeConflict } = await Promise.resolve().then(() => require("./publish-
|
|
17145
|
+
const { publish, PublishModeConflict } = await Promise.resolve().then(() => require("./publish-BgDFx08y.cjs"));
|
|
16907
17146
|
if (options.build && options.update) throw new PublishModeConflict();
|
|
16908
17147
|
const { build, update, ...rest } = options;
|
|
16909
17148
|
await publish({
|
|
@@ -16919,7 +17158,7 @@ program.command("deploy:google-play").description("Let EAS Submit publish a mobi
|
|
|
16919
17158
|
try {
|
|
16920
17159
|
const globalOptions = program.opts();
|
|
16921
17160
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16922
|
-
const { deployGooglePlay } = await Promise.resolve().then(() => require("./googlePlay-
|
|
17161
|
+
const { deployGooglePlay } = await Promise.resolve().then(() => require("./googlePlay-C2jnPqYn.cjs"));
|
|
16923
17162
|
await deployGooglePlay(options);
|
|
16924
17163
|
} catch (error) {
|
|
16925
17164
|
exitWithError(error);
|
|
@@ -16941,7 +17180,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
16941
17180
|
try {
|
|
16942
17181
|
const globalOptions = program.opts();
|
|
16943
17182
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16944
|
-
const { migrateCommand } = await Promise.resolve().then(() => require("./migrate-
|
|
17183
|
+
const { migrateCommand } = await Promise.resolve().then(() => require("./migrate-B0a3WY4X.cjs"));
|
|
16945
17184
|
await migrateCommand({
|
|
16946
17185
|
...options,
|
|
16947
17186
|
...construct ? { construct } : {}
|
|
@@ -16954,7 +17193,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
16954
17193
|
try {
|
|
16955
17194
|
const globalOptions = program.opts();
|
|
16956
17195
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16957
|
-
const { seedCommand } = await Promise.resolve().then(() => require("./migrate-
|
|
17196
|
+
const { seedCommand } = await Promise.resolve().then(() => require("./migrate-B0a3WY4X.cjs"));
|
|
16958
17197
|
await seedCommand({
|
|
16959
17198
|
...options,
|
|
16960
17199
|
...construct ? { construct } : {}
|
|
@@ -16967,7 +17206,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
16967
17206
|
try {
|
|
16968
17207
|
const globalOptions = program.opts();
|
|
16969
17208
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16970
|
-
const { migrationCommand } = await Promise.resolve().then(() => require("./migrate-
|
|
17209
|
+
const { migrationCommand } = await Promise.resolve().then(() => require("./migrate-B0a3WY4X.cjs"));
|
|
16971
17210
|
await migrationCommand({
|
|
16972
17211
|
construct,
|
|
16973
17212
|
...name ? { name } : {}
|
|
@@ -17067,7 +17306,7 @@ program.command("secrets:add").description("Build the keys a stage must be given
|
|
|
17067
17306
|
try {
|
|
17068
17307
|
const globalOptions = program.opts();
|
|
17069
17308
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17070
|
-
const { secretsAddCommand } = await Promise.resolve().then(() => require("./add-
|
|
17309
|
+
const { secretsAddCommand } = await Promise.resolve().then(() => require("./add-DsxJ0Knr.cjs"));
|
|
17071
17310
|
await secretsAddCommand(options);
|
|
17072
17311
|
} catch (error) {
|
|
17073
17312
|
exitWithError(error);
|
|
@@ -17077,7 +17316,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
17077
17316
|
try {
|
|
17078
17317
|
const globalOptions = program.opts();
|
|
17079
17318
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17080
|
-
const { encryptionRotateCommand } = await Promise.resolve().then(() => require("./encryption-
|
|
17319
|
+
const { encryptionRotateCommand } = await Promise.resolve().then(() => require("./encryption-BZ1zgtF5.cjs"));
|
|
17081
17320
|
await encryptionRotateCommand(construct, options);
|
|
17082
17321
|
} catch (error) {
|
|
17083
17322
|
exitWithError(error);
|
|
@@ -17087,7 +17326,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
17087
17326
|
try {
|
|
17088
17327
|
const globalOptions = program.opts();
|
|
17089
17328
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17090
|
-
const { encryptionRetireCommand } = await Promise.resolve().then(() => require("./encryption-
|
|
17329
|
+
const { encryptionRetireCommand } = await Promise.resolve().then(() => require("./encryption-BZ1zgtF5.cjs"));
|
|
17091
17330
|
await encryptionRetireCommand(construct, key, options);
|
|
17092
17331
|
} catch (error) {
|
|
17093
17332
|
exitWithError(error);
|
|
@@ -17126,7 +17365,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
17126
17365
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17127
17366
|
const { loadWorkspaceConfig } = await Promise.resolve().then(() => require("./config.cjs"));
|
|
17128
17367
|
const { reconcileMissingSecrets } = await Promise.resolve().then(() => require("./reconcile-CuCQBa5-.cjs"));
|
|
17129
|
-
const { secretsStoreFor } = await Promise.resolve().then(() => require("./credentials-
|
|
17368
|
+
const { secretsStoreFor } = await Promise.resolve().then(() => require("./credentials-CORvhcrO.cjs")).then((n) => n.store_exports);
|
|
17130
17369
|
const { workspace } = await loadWorkspaceConfig();
|
|
17131
17370
|
const stage = options.stage ?? workspace.stages.local;
|
|
17132
17371
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -17135,7 +17374,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
17135
17374
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
17136
17375
|
process.exit(1);
|
|
17137
17376
|
}
|
|
17138
|
-
const { derivedContainers } = await Promise.resolve().then(() => require("./apps-
|
|
17377
|
+
const { derivedContainers } = await Promise.resolve().then(() => require("./apps-C6s-trVp.cjs")).then((n) => n.workspace_exports);
|
|
17139
17378
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
17140
17379
|
if (!result) {
|
|
17141
17380
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -17152,14 +17391,14 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
17152
17391
|
try {
|
|
17153
17392
|
const globalOptions = program.opts();
|
|
17154
17393
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17155
|
-
const { secretsMigrateCommand } = await Promise.resolve().then(() => require("./migrate-
|
|
17394
|
+
const { secretsMigrateCommand } = await Promise.resolve().then(() => require("./migrate-CYtM1UBH.cjs"));
|
|
17156
17395
|
await secretsMigrateCommand(options);
|
|
17157
17396
|
} catch (error) {
|
|
17158
17397
|
exitWithError(error);
|
|
17159
17398
|
}
|
|
17160
17399
|
});
|
|
17161
17400
|
program.command("deploy").description("Deploy a stage through its target").option("--target <name>", "Deploy target: dokploy, compose, sst, or one named in deploy.targets (default: deploy.default)").option("--provider <provider>", "[DEPRECATED] Use --target instead").requiredOption("--stage <stage>", "Deployment stage (e.g., production, staging)").option("--tag <tag>", "Image tag (default: stage-timestamp; compose: the commit). Compose pulls a given tag").option("--skip-push", "Skip pushing image to registry").option("--skip-build", "Skip build step (use existing build)").option("--json", "Write events as JSON lines instead of progress; never prompts").option("--dry-run", "Show what would be created or reused; change, build and push nothing").option("--atomic", "If the release fails, roll back every app it released, not only the failed ones").option("--allow-dev-services", "Server targets: run the dev service (MinIO, Mailpit) for every bucket and mail the stage doesn't account for. Not production-grade").option("--skip-dns", "Compose: neither write the public hosts' DNS records nor check they point at GKM_SERVER_IPV4 (a CDN or proxy in front, or records written elsewhere)").option("--rotate-keys", "Deployed stage: each provider issues its runtime keys a successor (the old one is deleted by the next deploy)").option("--retire-old-keys", "Deployed stage: delete a rotated-out key now instead of on the next deploy").action(async (options) => {
|
|
17162
|
-
const { deployCli } = await Promise.resolve().then(() => require("./cli-
|
|
17401
|
+
const { deployCli } = await Promise.resolve().then(() => require("./cli-OGss08bZ.cjs"));
|
|
17163
17402
|
const globalOptions = program.opts();
|
|
17164
17403
|
const code = await deployCli({
|
|
17165
17404
|
cwd: (0, node_path.resolve)(globalOptions.cwd ?? process.cwd()),
|
|
@@ -17179,8 +17418,8 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
17179
17418
|
});
|
|
17180
17419
|
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) => {
|
|
17181
17420
|
try {
|
|
17182
|
-
const { rollbackStage } = await Promise.resolve().then(() => require("./rollback-
|
|
17183
|
-
const { terminalCredentials } = await Promise.resolve().then(() => require("./terminal-
|
|
17421
|
+
const { rollbackStage } = await Promise.resolve().then(() => require("./rollback-Brc-_HBJ.cjs")).then((n) => n.rollback_exports);
|
|
17422
|
+
const { terminalCredentials } = await Promise.resolve().then(() => require("./terminal-BNjNr7BN.cjs"));
|
|
17184
17423
|
const globalOptions = program.opts();
|
|
17185
17424
|
await rollbackStage({
|
|
17186
17425
|
cwd: (0, node_path.resolve)(globalOptions.cwd ?? process.cwd()),
|
|
@@ -17198,7 +17437,7 @@ program.command("compose:server").description("Set up a stage's server for compo
|
|
|
17198
17437
|
try {
|
|
17199
17438
|
const globalOptions = program.opts();
|
|
17200
17439
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17201
|
-
const { composeServerCommand } = await Promise.resolve().then(() => require("./serverSetup-
|
|
17440
|
+
const { composeServerCommand } = await Promise.resolve().then(() => require("./serverSetup-BMpzrB1y.cjs"));
|
|
17202
17441
|
await composeServerCommand(options);
|
|
17203
17442
|
} catch (error) {
|
|
17204
17443
|
exitWithError(error);
|
|
@@ -17223,7 +17462,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
17223
17462
|
try {
|
|
17224
17463
|
const globalOptions = program.opts();
|
|
17225
17464
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17226
|
-
const { deployGithubCommand } = await Promise.resolve().then(() => require("./github-
|
|
17465
|
+
const { deployGithubCommand } = await Promise.resolve().then(() => require("./github-DPNgIxdc.cjs"));
|
|
17227
17466
|
await deployGithubCommand(options);
|
|
17228
17467
|
} catch (error) {
|
|
17229
17468
|
exitWithError(error);
|
|
@@ -17233,7 +17472,7 @@ program.command("stages").description("The workspace's stages from gkm.config.ts
|
|
|
17233
17472
|
try {
|
|
17234
17473
|
const globalOptions = program.opts();
|
|
17235
17474
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
17236
|
-
const { stagesCommand } = await Promise.resolve().then(() => require("./stages-
|
|
17475
|
+
const { stagesCommand } = await Promise.resolve().then(() => require("./stages-DpF2K3PZ.cjs"));
|
|
17237
17476
|
await stagesCommand(options);
|
|
17238
17477
|
} catch (error) {
|
|
17239
17478
|
exitWithError(error);
|
|
@@ -17377,7 +17616,7 @@ program.command("backup:now").description("Back up a compose stage now: runs its
|
|
|
17377
17616
|
exitWithError(error);
|
|
17378
17617
|
}
|
|
17379
17618
|
});
|
|
17380
|
-
program.command("backup:restore").description("Restore a compose stage's databases from a backup — after taking a fresh one").requiredOption("--stage <stage>", "Deployed stage").option("--at <time>", "A run (2026-10-10/02-00-00Z), or a time: the newest run at or before it").option("--latest", "The newest run").option("--database <name>", "One database, by its file name (auth-database); every one by default").option("--profile <profile>", "AWS profile for the stage's account").option("-y, --yes", "Restore without asking").action(async (options) => {
|
|
17619
|
+
program.command("backup:restore").description("Restore a compose stage's databases from a backup — after taking a fresh one").requiredOption("--stage <stage>", "Deployed stage").option("--at <time>", "A run (2026-10-10/02-00-00Z), or a time: the newest run at or before it").option("--latest", "The newest run").option("--from <file>", "A prepared data-only import in the stage's backups prefix (imports/app.sql.gz); needs --database").option("--database <name>", "One database, by its file name (auth-database); every one by default").option("--profile <profile>", "AWS profile for the stage's account").option("-y, --yes", "Restore without asking").action(async (options) => {
|
|
17381
17620
|
try {
|
|
17382
17621
|
const globalOptions = program.opts();
|
|
17383
17622
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|