@geekmidas/cli 10.0.0-alpha.97 → 10.0.0-alpha.98
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-AqNu60WQ.mjs → GoDaddyProvider-C2fK-zeQ.mjs} +2 -2
- package/dist/{GoDaddyProvider-AqNu60WQ.mjs.map → GoDaddyProvider-C2fK-zeQ.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-B4R_QFl8.cjs → GoDaddyProvider-SLlyDwD1.cjs} +2 -2
- package/dist/{GoDaddyProvider-B4R_QFl8.cjs.map → GoDaddyProvider-SLlyDwD1.cjs.map} +1 -1
- package/dist/{LegacyStateStore-B-aRqRdD.cjs → LegacyStateStore-CAvxM8U5.cjs} +3 -3
- package/dist/{LegacyStateStore-B-aRqRdD.cjs.map → LegacyStateStore-CAvxM8U5.cjs.map} +1 -1
- package/dist/{LegacyStateStore-8F05-BOo.mjs → LegacyStateStore-D9QDWCst.mjs} +3 -3
- package/dist/{LegacyStateStore-8F05-BOo.mjs.map → LegacyStateStore-D9QDWCst.mjs.map} +1 -1
- package/dist/{LocalStateStore-B_mfgcO8.mjs → LocalStateStore-DPQSqkSb.mjs} +2 -2
- package/dist/{LocalStateStore-B_mfgcO8.mjs.map → LocalStateStore-DPQSqkSb.mjs.map} +1 -1
- package/dist/{LocalStateStore-B_bRI8M7.cjs → LocalStateStore-QcrdjCl6.cjs} +2 -2
- package/dist/{LocalStateStore-B_bRI8M7.cjs.map → LocalStateStore-QcrdjCl6.cjs.map} +1 -1
- package/dist/{S3StateStore-zK9zcd9f.cjs → S3StateStore-C16tVikU.cjs} +10 -9
- package/dist/S3StateStore-C16tVikU.cjs.map +1 -0
- package/dist/{S3StateStore-CMN0Uzdp.mjs → S3StateStore-jorgKaee.mjs} +10 -9
- package/dist/S3StateStore-jorgKaee.mjs.map +1 -0
- package/dist/{SSMStateStore-Cv7VcMak.mjs → SSMStateStore-Dvjt_INw.mjs} +2 -2
- package/dist/{SSMStateStore-Cv7VcMak.mjs.map → SSMStateStore-Dvjt_INw.mjs.map} +1 -1
- package/dist/{SSMStateStore-C489DnR6.cjs → SSMStateStore-mPAEr2P2.cjs} +2 -2
- package/dist/{SSMStateStore-C489DnR6.cjs.map → SSMStateStore-mPAEr2P2.cjs.map} +1 -1
- package/dist/{add-BA5d4pA0.mjs → add-CZIIsTcv.mjs} +4 -4
- package/dist/{add-BA5d4pA0.mjs.map → add-CZIIsTcv.mjs.map} +1 -1
- package/dist/{add-HXzTCy_I.cjs → add-SRk65Udu.cjs} +4 -4
- package/dist/{add-HXzTCy_I.cjs.map → add-SRk65Udu.cjs.map} +1 -1
- package/dist/{aws-Dz2bYxK1.mjs → aws-8QQ8n-t6.mjs} +2 -2
- package/dist/{aws-Dz2bYxK1.mjs.map → aws-8QQ8n-t6.mjs.map} +1 -1
- package/dist/{aws-BTReGjpY.cjs → aws-DY9NqQIT.cjs} +2 -2
- package/dist/{aws-BTReGjpY.cjs.map → aws-DY9NqQIT.cjs.map} +1 -1
- package/dist/{awsStore-BWa1KNY-.mjs → awsStore-Bx5nCFnS.mjs} +8 -6
- package/dist/awsStore-Bx5nCFnS.mjs.map +1 -0
- package/dist/{awsStore-B5We7bMg.cjs → awsStore-u3ehhMoY.cjs} +8 -6
- package/dist/awsStore-u3ehhMoY.cjs.map +1 -0
- package/dist/{bundler-SX3Uy8qT.cjs → bundler-B0Pj5FXT.cjs} +5 -5
- package/dist/{bundler-SX3Uy8qT.cjs.map → bundler-B0Pj5FXT.cjs.map} +1 -1
- package/dist/{bundler-CBomFsnd.mjs → bundler-DxJ-cIEt.mjs} +5 -5
- package/dist/{bundler-CBomFsnd.mjs.map → bundler-DxJ-cIEt.mjs.map} +1 -1
- package/dist/{cli-1l0L9LCA.cjs → cli-CRDJWWmZ.cjs} +2 -2
- package/dist/{cli-1l0L9LCA.cjs.map → cli-CRDJWWmZ.cjs.map} +1 -1
- package/dist/{cli-D7z1lQtO.mjs → cli-CV85bY3-.mjs} +2 -2
- package/dist/{cli-D7z1lQtO.mjs.map → cli-CV85bY3-.mjs.map} +1 -1
- package/dist/{compose-DgWrNd2k.mjs → compose-CQQRRJC3.mjs} +7 -7
- package/dist/{compose-DgWrNd2k.mjs.map → compose-CQQRRJC3.mjs.map} +1 -1
- package/dist/{compose-C39XupJu.cjs → compose-DMY4ouEk.cjs} +7 -7
- package/dist/{compose-C39XupJu.cjs.map → compose-DMY4ouEk.cjs.map} +1 -1
- package/dist/{config-xIWIaDhW.d.cts → config-CS76CzXM.d.cts} +4 -4
- package/dist/{config-D-k0gaAr.d.mts.map → config-CS76CzXM.d.cts.map} +1 -1
- package/dist/{config-D-k0gaAr.d.mts → config-pBzLfNef.d.mts} +4 -4
- package/dist/{config-xIWIaDhW.d.cts.map → config-pBzLfNef.d.mts.map} +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +1 -1
- package/dist/deploy/public.cjs +7 -7
- package/dist/deploy/public.d.cts +5 -5
- package/dist/deploy/public.d.mts +5 -5
- package/dist/deploy/public.mjs +7 -7
- package/dist/{deploy-Cu_HyWoJ.cjs → deploy-277jek46.cjs} +7 -7
- package/dist/{deploy-Cu_HyWoJ.cjs.map → deploy-277jek46.cjs.map} +1 -1
- package/dist/{deploy-LY-20Yeb.mjs → deploy-Dw8g3sLY.mjs} +7 -7
- package/dist/{deploy-LY-20Yeb.mjs.map → deploy-Dw8g3sLY.mjs.map} +1 -1
- package/dist/{discover-CbJCQq4J.d.mts → discover-CU1LjCOf.d.cts} +2 -2
- package/dist/{discover-CbJCQq4J.d.mts.map → discover-CU1LjCOf.d.cts.map} +1 -1
- package/dist/{discover-RCW5mBXb.d.cts → discover-DJCCgimv.d.mts} +2 -2
- package/dist/{discover-RCW5mBXb.d.cts.map → discover-DJCCgimv.d.mts.map} +1 -1
- package/dist/{dns-Dro_vbk9.cjs → dns-4RAiVFa7.cjs} +5 -5
- package/dist/{dns-Dro_vbk9.cjs.map → dns-4RAiVFa7.cjs.map} +1 -1
- package/dist/{dns-Bmbhmz41.mjs → dns-CU22K_i0.mjs} +5 -5
- package/dist/{dns-Bmbhmz41.mjs.map → dns-CU22K_i0.mjs.map} +1 -1
- package/dist/{dns-BFnoawgh.cjs → dns-Dhjbnjgl.cjs} +3 -3
- package/dist/{dns-BFnoawgh.cjs.map → dns-Dhjbnjgl.cjs.map} +1 -1
- package/dist/{dns-BbTOzmVp.mjs → dns-LqWzPb8l.mjs} +3 -3
- package/dist/{dns-BbTOzmVp.mjs.map → dns-LqWzPb8l.mjs.map} +1 -1
- package/dist/{dokploy-LR94sBVI.mjs → dokploy-D_uCbZQ7.mjs} +2 -2
- package/dist/{dokploy-LR94sBVI.mjs.map → dokploy-D_uCbZQ7.mjs.map} +1 -1
- package/dist/{dokploy-CKgSww82.cjs → dokploy-Dw4oCXqR.cjs} +2 -2
- package/dist/{dokploy-CKgSww82.cjs.map → dokploy-Dw4oCXqR.cjs.map} +1 -1
- package/dist/{encryption-C0plOf4a.mjs → encryption-C0uKYE9v.mjs} +3 -3
- package/dist/{encryption-C0plOf4a.mjs.map → encryption-C0uKYE9v.mjs.map} +1 -1
- package/dist/{encryption-CUyw-8sc.cjs → encryption-CtVPHWWq.cjs} +3 -3
- package/dist/{encryption-CUyw-8sc.cjs.map → encryption-CtVPHWWq.cjs.map} +1 -1
- package/dist/{engine-DqbqQhck.mjs → engine-BE5PdE8S.mjs} +4 -4
- package/dist/{engine-DqbqQhck.mjs.map → engine-BE5PdE8S.mjs.map} +1 -1
- package/dist/{engine-D8TeraDK.cjs → engine-HI8aLw1M.cjs} +4 -4
- package/dist/{engine-D8TeraDK.cjs.map → engine-HI8aLw1M.cjs.map} +1 -1
- package/dist/{github-DC4SIqV1.cjs → github-BCdfZ9zO.cjs} +41 -19
- package/dist/github-BCdfZ9zO.cjs.map +1 -0
- package/dist/{github-zgaBOQvh.mjs → github-CT3X720_.mjs} +41 -19
- package/dist/github-CT3X720_.mjs.map +1 -0
- package/dist/{index-ClqOsbBl.d.mts → index-DKtB01YC.d.cts} +2 -2
- package/dist/{index-ClqOsbBl.d.mts.map → index-DKtB01YC.d.cts.map} +1 -1
- package/dist/{index-DgOBAEl5.d.cts → index-ZAUrXH6Q.d.mts} +2 -2
- package/dist/{index-DgOBAEl5.d.cts.map → index-ZAUrXH6Q.d.mts.map} +1 -1
- package/dist/index.cjs +73 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +73 -58
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-BJ8aLOWk.mjs → migrate-CCZUgxMK.mjs} +3 -3
- package/dist/{migrate-BJ8aLOWk.mjs.map → migrate-CCZUgxMK.mjs.map} +1 -1
- package/dist/{migrate-CWq8-s21.cjs → migrate-Cs7kQxD5.cjs} +3 -3
- package/dist/{migrate-CWq8-s21.cjs.map → migrate-Cs7kQxD5.cjs.map} +1 -1
- package/dist/migrate-DBGyoBvZ.cjs +181 -0
- package/dist/migrate-DBGyoBvZ.cjs.map +1 -0
- package/dist/migrate-DH-lOK3j.mjs +181 -0
- package/dist/migrate-DH-lOK3j.mjs.map +1 -0
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.d.cts +1 -1
- package/dist/openapi.d.mts +1 -1
- package/dist/openapi.mjs +1 -1
- package/dist/{projectBucket-Cho9DpSh.cjs → projectBucket-BjeDcAYy.cjs} +2 -2
- package/dist/{projectBucket-Cho9DpSh.cjs.map → projectBucket-BjeDcAYy.cjs.map} +1 -1
- package/dist/{projectBucket-BFp-SFee.mjs → projectBucket-DrkEht-j.mjs} +2 -2
- package/dist/{projectBucket-BFp-SFee.mjs.map → projectBucket-DrkEht-j.mjs.map} +1 -1
- package/dist/reconcile/public.d.cts +2 -2
- package/dist/reconcile/public.d.mts +2 -2
- package/dist/{resolve-C8VkR4oW.cjs → resolve-CScrqgdC.cjs} +3 -3
- package/dist/{resolve-C8VkR4oW.cjs.map → resolve-CScrqgdC.cjs.map} +1 -1
- package/dist/{resolve-6EYNqYdr.mjs → resolve-OfLaxaxY.mjs} +3 -3
- package/dist/{resolve-6EYNqYdr.mjs.map → resolve-OfLaxaxY.mjs.map} +1 -1
- package/dist/{rollback-CvGfm4DX.cjs → rollback-D7p4wJNO.cjs} +5 -5
- package/dist/{rollback-CvGfm4DX.cjs.map → rollback-D7p4wJNO.cjs.map} +1 -1
- package/dist/{rollback-BsThTeSN.mjs → rollback-DQBSN-i7.mjs} +5 -5
- package/dist/{rollback-BsThTeSN.mjs.map → rollback-DQBSN-i7.mjs.map} +1 -1
- package/dist/{runtime-CaW4QqF2.d.cts → runtime-BlHOVx8L.d.cts} +2 -2
- package/dist/{runtime-CaW4QqF2.d.cts.map → runtime-BlHOVx8L.d.cts.map} +1 -1
- package/dist/{runtime-K5uxp6HE.d.mts → runtime-DMq9C3KB.d.mts} +2 -2
- package/dist/{runtime-K5uxp6HE.d.mts.map → runtime-DMq9C3KB.d.mts.map} +1 -1
- package/dist/s3-CUKzBBae.mjs +215 -0
- package/dist/s3-CUKzBBae.mjs.map +1 -0
- package/dist/s3-QQi4sNOQ.cjs +215 -0
- package/dist/s3-QQi4sNOQ.cjs.map +1 -0
- package/dist/{sandbox-D8cfZUAA.d.cts → sandbox-ArJ_hEKk.d.cts} +2 -2
- package/dist/{sandbox-B_BkfmTP.d.mts.map → sandbox-ArJ_hEKk.d.cts.map} +1 -1
- package/dist/{sandbox-B_BkfmTP.d.mts → sandbox-Cm4X6HRh.d.mts} +2 -2
- package/dist/{sandbox-D8cfZUAA.d.cts.map → sandbox-Cm4X6HRh.d.mts.map} +1 -1
- package/dist/{secrets-HzKNTWg9.mjs → secrets-AA_tQUl-.mjs} +3 -3
- package/dist/{secrets-HzKNTWg9.mjs.map → secrets-AA_tQUl-.mjs.map} +1 -1
- package/dist/{secrets-BTY6JhTp.cjs → secrets-B_biKsKx.cjs} +3 -3
- package/dist/{secrets-BTY6JhTp.cjs.map → secrets-B_biKsKx.cjs.map} +1 -1
- package/dist/{secretsManager-C6wm-9uZ.mjs → secretsManager-CQORubp9.mjs} +2 -2
- package/dist/{secretsManager-C6wm-9uZ.mjs.map → secretsManager-CQORubp9.mjs.map} +1 -1
- package/dist/{secretsManager-Cwwgs81g.cjs → secretsManager-RAGcEDX1.cjs} +2 -2
- package/dist/{secretsManager-Cwwgs81g.cjs.map → secretsManager-RAGcEDX1.cjs.map} +1 -1
- package/dist/{seeds-BsJRUL1K.mjs → seeds-BvxWUGKJ.mjs} +32 -6
- package/dist/seeds-BvxWUGKJ.mjs.map +1 -0
- package/dist/{seeds-BQlj9Fsg.cjs → seeds-Df4BI-T3.cjs} +32 -6
- package/dist/seeds-Df4BI-T3.cjs.map +1 -0
- package/dist/{sniffer-DVsvP8s-.mjs → sniffer-BqjXvcaK.mjs} +7 -7
- package/dist/{sniffer-DVsvP8s-.mjs.map → sniffer-BqjXvcaK.mjs.map} +1 -1
- package/dist/{sniffer-CeUKUoHn.cjs → sniffer-DZeQJKty.cjs} +7 -7
- package/dist/{sniffer-CeUKUoHn.cjs.map → sniffer-DZeQJKty.cjs.map} +1 -1
- package/dist/{stack-BQOyqaVG.mjs → stack-A6MAFZ6u.mjs} +3 -3
- package/dist/{stack-BQOyqaVG.mjs.map → stack-A6MAFZ6u.mjs.map} +1 -1
- package/dist/{stack-Clzi40EE.cjs → stack-BpkZEEfB.cjs} +3 -3
- package/dist/{stack-Clzi40EE.cjs.map → stack-BpkZEEfB.cjs.map} +1 -1
- package/dist/{stages-DEmn7qI8.mjs → stages-6SEoRA4x.mjs} +6 -5
- package/dist/stages-6SEoRA4x.mjs.map +1 -0
- package/dist/{stages-BpDXFPGg.cjs → stages-DH5z89eT.cjs} +6 -5
- package/dist/stages-DH5z89eT.cjs.map +1 -0
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.d.cts +2 -2
- package/dist/target/public.d.mts +2 -2
- package/dist/target/public.mjs +1 -1
- package/dist/{types-4vPS_YFX.d.cts → types-DipUP9zp.d.cts} +62 -8
- package/dist/types-DipUP9zp.d.cts.map +1 -0
- package/dist/{types-CFsEyFb1.d.mts → types-Drpl9HX9.d.mts} +62 -8
- package/dist/types-Drpl9HX9.d.mts.map +1 -0
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.d.mts +2 -2
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-Bv4xROeu.mjs → workspace-BBeT6Pil.mjs} +56 -4
- package/dist/workspace-BBeT6Pil.mjs.map +1 -0
- package/dist/{workspace-C1M-S4al.cjs → workspace-BJ78Bgvm.cjs} +67 -3
- package/dist/workspace-BJ78Bgvm.cjs.map +1 -0
- package/package.json +15 -15
- package/dist/S3StateStore-CMN0Uzdp.mjs.map +0 -1
- package/dist/S3StateStore-zK9zcd9f.cjs.map +0 -1
- package/dist/awsStore-B5We7bMg.cjs.map +0 -1
- package/dist/awsStore-BWa1KNY-.mjs.map +0 -1
- package/dist/github-DC4SIqV1.cjs.map +0 -1
- package/dist/github-zgaBOQvh.mjs.map +0 -1
- package/dist/migrate-C230QeXU.mjs +0 -94
- package/dist/migrate-C230QeXU.mjs.map +0 -1
- package/dist/migrate-CsMrI7Dk.cjs +0 -94
- package/dist/migrate-CsMrI7Dk.cjs.map +0 -1
- package/dist/seeds-BQlj9Fsg.cjs.map +0 -1
- package/dist/seeds-BsJRUL1K.mjs.map +0 -1
- package/dist/stages-BpDXFPGg.cjs.map +0 -1
- package/dist/stages-DEmn7qI8.mjs.map +0 -1
- package/dist/types-4vPS_YFX.d.cts.map +0 -1
- package/dist/types-CFsEyFb1.d.mts.map +0 -1
- package/dist/workspace-Bv4xROeu.mjs.map +0 -1
- package/dist/workspace-C1M-S4al.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -6,9 +6,9 @@ const require_run = require("./run-fVZ-rLnc.cjs");
|
|
|
6
6
|
const require_credentials = require("./credentials-Zqr3QQYB.cjs");
|
|
7
7
|
const require_discover = require("./discover-DPgu-ScS.cjs");
|
|
8
8
|
const require_derive = require("./derive-DAbo49sm.cjs");
|
|
9
|
-
const require_workspace = require("./workspace-
|
|
9
|
+
const require_workspace = require("./workspace-BJ78Bgvm.cjs");
|
|
10
10
|
const require_config = require("./config.cjs");
|
|
11
|
-
const require_seeds = require("./seeds-
|
|
11
|
+
const require_seeds = require("./seeds-Df4BI-T3.cjs");
|
|
12
12
|
const require_EndpointGenerator = require("./EndpointGenerator-De03t1hd.cjs");
|
|
13
13
|
const require_openapi = require("./openapi.cjs");
|
|
14
14
|
const require_SubscriberGenerator = require("./SubscriberGenerator-Dvz7EzqK.cjs");
|
|
@@ -16,12 +16,12 @@ const require_appPorts = require("./appPorts-Cu79hJF6.cjs");
|
|
|
16
16
|
const require_drivers = require("./drivers-DDojgzz0.cjs");
|
|
17
17
|
const require_emit = require("./emit-Dmc1nvdS.cjs");
|
|
18
18
|
const require_local = require("./local-DNhnkugT.cjs");
|
|
19
|
-
const require_sniffer = require("./sniffer-
|
|
20
|
-
const require_deploy = require("./deploy-
|
|
19
|
+
const require_sniffer = require("./sniffer-DZeQJKty.cjs");
|
|
20
|
+
const require_deploy = require("./deploy-277jek46.cjs");
|
|
21
21
|
const require_credentialSchemas = require("./credentialSchemas-CAPKFkrG.cjs");
|
|
22
|
-
const require_compose = require("./compose-
|
|
23
|
-
const require_stack = require("./stack-
|
|
24
|
-
const require_LocalStateStore = require("./LocalStateStore-
|
|
22
|
+
const require_compose = require("./compose-DMY4ouEk.cjs");
|
|
23
|
+
const require_stack = require("./stack-BpkZEEfB.cjs");
|
|
24
|
+
const require_LocalStateStore = require("./LocalStateStore-QcrdjCl6.cjs");
|
|
25
25
|
const require_utils = require("./utils-D2Nk1Nv2.cjs");
|
|
26
26
|
const require_ready = require("./ready-D3PIjx3S.cjs");
|
|
27
27
|
let node_path = require("node:path");
|
|
@@ -56,7 +56,7 @@ crypto = require_rolldown_runtime.__toESM(crypto, 1);
|
|
|
56
56
|
let _geekmidas_constructs_functions = require("@geekmidas/constructs/functions");
|
|
57
57
|
let _geekmidas_constructs_topic = require("@geekmidas/constructs/topic");
|
|
58
58
|
//#region package.json
|
|
59
|
-
var version = "10.0.0-alpha.
|
|
59
|
+
var version = "10.0.0-alpha.98";
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region src/prompt.ts
|
|
62
62
|
/**
|
|
@@ -139,7 +139,7 @@ const logger$8 = console;
|
|
|
139
139
|
* Validate Dokploy token by making a test API call
|
|
140
140
|
*/
|
|
141
141
|
async function validateDokployToken(endpoint, token) {
|
|
142
|
-
const { DokployApi } = await Promise.resolve().then(() => require("./sniffer-
|
|
142
|
+
const { DokployApi } = await Promise.resolve().then(() => require("./sniffer-DZeQJKty.cjs")).then((n) => n.dokploy_api_exports);
|
|
143
143
|
return new DokployApi({
|
|
144
144
|
baseUrl: endpoint,
|
|
145
145
|
token
|
|
@@ -2333,9 +2333,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
2333
2333
|
for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
2334
2334
|
logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
2335
2335
|
if (options.migrate || options.seed) {
|
|
2336
|
-
const { prepareDevDatabases } = await Promise.resolve().then(() => require("./migrate-
|
|
2336
|
+
const { prepareDevDatabases } = await Promise.resolve().then(() => require("./migrate-Cs7kQxD5.cjs"));
|
|
2337
2337
|
await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
|
|
2338
|
-
} else await Promise.resolve().then(() => require("./migrate-
|
|
2338
|
+
} else await Promise.resolve().then(() => require("./migrate-Cs7kQxD5.cjs")).then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
2339
2339
|
logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
2340
2340
|
});
|
|
2341
2341
|
const appUrls = {};
|
|
@@ -3388,7 +3388,7 @@ async function buildApp(input) {
|
|
|
3388
3388
|
...production,
|
|
3389
3389
|
...telemetry ? { telemetry } : {}
|
|
3390
3390
|
});
|
|
3391
|
-
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-
|
|
3391
|
+
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-B0Pj5FXT.cjs"));
|
|
3392
3392
|
await bundleServer({
|
|
3393
3393
|
entryPoint,
|
|
3394
3394
|
outputDir: (0, node_path.join)(outputDir, "dist"),
|
|
@@ -3533,7 +3533,7 @@ async function buildWorkers(input) {
|
|
|
3533
3533
|
});
|
|
3534
3534
|
logger$4.log(`Generated worker ${worker.id}: ${crons.length} crons, ${queues.length} queues, ${subscribers.length} subscribers`);
|
|
3535
3535
|
if (!input.bundle) continue;
|
|
3536
|
-
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-
|
|
3536
|
+
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-B0Pj5FXT.cjs"));
|
|
3537
3537
|
const outfile = require_seeds.workerBundleName(worker.id);
|
|
3538
3538
|
await bundleServer({
|
|
3539
3539
|
entryPoint,
|
|
@@ -3619,7 +3619,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
3619
3619
|
let masterKey;
|
|
3620
3620
|
if (context.production?.bundle && !skipBundle) {
|
|
3621
3621
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
3622
|
-
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-
|
|
3622
|
+
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-B0Pj5FXT.cjs"));
|
|
3623
3623
|
const allConstructs = [
|
|
3624
3624
|
...endpoints.map((e) => e.construct),
|
|
3625
3625
|
...functions.map((f) => f.construct),
|
|
@@ -5438,25 +5438,25 @@ function loadPackageJson() {
|
|
|
5438
5438
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
5439
5439
|
*/
|
|
5440
5440
|
const GEEKMIDAS_VERSIONS = {
|
|
5441
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
5442
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
5443
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
5444
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
5445
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
5446
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
5447
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
5448
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
5449
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
5450
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
5451
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
5452
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
5453
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
5454
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
5455
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
5456
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
5457
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
5458
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
5459
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
5441
|
+
"@geekmidas/audit": "~10.0.0-alpha.98",
|
|
5442
|
+
"@geekmidas/auth": "~10.0.0-alpha.98",
|
|
5443
|
+
"@geekmidas/cache": "~10.0.0-alpha.98",
|
|
5444
|
+
"@geekmidas/client": "~10.0.0-alpha.98",
|
|
5445
|
+
"@geekmidas/cloud": "~10.0.0-alpha.98",
|
|
5446
|
+
"@geekmidas/constructs": "~10.0.0-alpha.98",
|
|
5447
|
+
"@geekmidas/db": "~10.0.0-alpha.98",
|
|
5448
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.98",
|
|
5449
|
+
"@geekmidas/envkit": "~10.0.0-alpha.98",
|
|
5450
|
+
"@geekmidas/errors": "~10.0.0-alpha.98",
|
|
5451
|
+
"@geekmidas/events": "~10.0.0-alpha.98",
|
|
5452
|
+
"@geekmidas/logger": "~10.0.0-alpha.98",
|
|
5453
|
+
"@geekmidas/manifest": "~10.0.0-alpha.98",
|
|
5454
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.98",
|
|
5455
|
+
"@geekmidas/schema": "~10.0.0-alpha.98",
|
|
5456
|
+
"@geekmidas/services": "~10.0.0-alpha.98",
|
|
5457
|
+
"@geekmidas/storage": "~10.0.0-alpha.98",
|
|
5458
|
+
"@geekmidas/telescope": "~10.0.0-alpha.98",
|
|
5459
|
+
"@geekmidas/testkit": "~10.0.0-alpha.98",
|
|
5460
5460
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
5461
5461
|
};
|
|
5462
5462
|
//#endregion
|
|
@@ -5857,7 +5857,7 @@ const COMMIT = /^[0-9a-f]{40}$/;
|
|
|
5857
5857
|
* The `uses:` value for the stages action, with a comment saying which CLI
|
|
5858
5858
|
* release the pinned commit is.
|
|
5859
5859
|
*/
|
|
5860
|
-
function stagesActionUses(commit = "
|
|
5860
|
+
function stagesActionUses(commit = "e20b5756311a0437161b94dc9be00aa1ff1120ab", version = cliVersion()) {
|
|
5861
5861
|
return commit && COMMIT.test(commit) ? `${STAGES_ACTION}@${commit} # @geekmidas/cli ${version}` : `${STAGES_ACTION}@main # pin to a commit SHA: see the action's README`;
|
|
5862
5862
|
}
|
|
5863
5863
|
//#endregion
|
|
@@ -6191,7 +6191,7 @@ ${pm.setup}
|
|
|
6191
6191
|
|
|
6192
6192
|
${registryLogin(registry)}
|
|
6193
6193
|
# A site's public URLs are built into it, so the build reads the stage's
|
|
6194
|
-
# secrets store. With secrets.store on SSM or Secrets Manager the job
|
|
6194
|
+
# secrets store. With secrets.store on S3, SSM or Secrets Manager the job
|
|
6195
6195
|
# assumes the stage's role (AWS_ROLE_ARN, set by gkm deploy:github);
|
|
6196
6196
|
# with the default 'file' store there is no role to assume.
|
|
6197
6197
|
- name: Assume the stage's AWS role
|
|
@@ -7811,7 +7811,7 @@ ${deployBlock(options)}
|
|
|
7811
7811
|
${workspaceConstructsGlobs(options.routesStructure, (0, node_path.dirname)(options.apiPath)).map((glob) => ` '${glob}',`).join("\n")}
|
|
7812
7812
|
],
|
|
7813
7813
|
|
|
7814
|
-
secrets: {
|
|
7814
|
+
${stateBlock(options)} secrets: {
|
|
7815
7815
|
enabled: true,${secretsStore(options)}
|
|
7816
7816
|
},
|
|
7817
7817
|
});
|
|
@@ -7837,17 +7837,32 @@ function deployBlock(options) {
|
|
|
7837
7837
|
`;
|
|
7838
7838
|
}
|
|
7839
7839
|
/**
|
|
7840
|
-
* Where a deployed stage's
|
|
7841
|
-
*
|
|
7842
|
-
*
|
|
7840
|
+
* Where a deployed stage's deploy state lives: on AWS, the project bucket —
|
|
7841
|
+
* one bucket per project and account, created by the first deploy — which
|
|
7842
|
+
* the stage's secrets share.
|
|
7843
|
+
*/
|
|
7844
|
+
function stateBlock(options) {
|
|
7845
|
+
if (options.deployTarget !== "sst" || !options.region) return "";
|
|
7846
|
+
return ` // Deploy state, secrets and backups share one bucket per project and
|
|
7847
|
+
// account, gkm-<project>-<account id>, created by the first deploy:
|
|
7848
|
+
// versioned, encrypted, never public.
|
|
7849
|
+
state: { provider: 's3', region: '${options.region}' },
|
|
7850
|
+
|
|
7851
|
+
`;
|
|
7852
|
+
}
|
|
7853
|
+
/**
|
|
7854
|
+
* Where a deployed stage's secrets live. On AWS that is the project bucket,
|
|
7855
|
+
* beside the deploy state, in the stage's own account, which the deploy job
|
|
7856
|
+
* reaches with the role it already assumed; a server target keeps the
|
|
7857
|
+
* encrypted local file, the default.
|
|
7843
7858
|
*/
|
|
7844
7859
|
function secretsStore(options) {
|
|
7845
7860
|
if (options.deployTarget !== "sst" || !options.region) return "";
|
|
7846
7861
|
return `
|
|
7847
|
-
// Deployed stages keep their secrets in
|
|
7848
|
-
//
|
|
7849
|
-
//
|
|
7850
|
-
store: { provider: '
|
|
7862
|
+
// Deployed stages keep their secrets in the project bucket, beside the
|
|
7863
|
+
// state, in the account each stage deploys to:
|
|
7864
|
+
// \`gkm secrets:set <KEY> '…' --stage <stage>\` writes there.
|
|
7865
|
+
store: { provider: 's3' },`;
|
|
7851
7866
|
}
|
|
7852
7867
|
/**
|
|
7853
7868
|
* The workspace's constructs, at its root rather than inside an app.
|
|
@@ -11597,7 +11612,7 @@ function testDatabases(reconciled) {
|
|
|
11597
11612
|
* starts without the reference data the app needs.
|
|
11598
11613
|
*/
|
|
11599
11614
|
async function migrateTestStage(workspace, env) {
|
|
11600
|
-
const { migrateAndSeed } = await Promise.resolve().then(() => require("./migrate-
|
|
11615
|
+
const { migrateAndSeed } = await Promise.resolve().then(() => require("./migrate-Cs7kQxD5.cjs"));
|
|
11601
11616
|
const { discover } = await Promise.resolve().then(() => require("./discover-DPgu-ScS.cjs")).then((n) => n.discover_exports);
|
|
11602
11617
|
const sources = {};
|
|
11603
11618
|
const manifest = await discover({
|
|
@@ -12033,7 +12048,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
12033
12048
|
try {
|
|
12034
12049
|
const globalOptions = program.opts();
|
|
12035
12050
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12036
|
-
const { migrateCommand } = await Promise.resolve().then(() => require("./migrate-
|
|
12051
|
+
const { migrateCommand } = await Promise.resolve().then(() => require("./migrate-Cs7kQxD5.cjs"));
|
|
12037
12052
|
await migrateCommand({
|
|
12038
12053
|
...options,
|
|
12039
12054
|
...construct ? { construct } : {}
|
|
@@ -12046,7 +12061,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
12046
12061
|
try {
|
|
12047
12062
|
const globalOptions = program.opts();
|
|
12048
12063
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12049
|
-
const { seedCommand } = await Promise.resolve().then(() => require("./migrate-
|
|
12064
|
+
const { seedCommand } = await Promise.resolve().then(() => require("./migrate-Cs7kQxD5.cjs"));
|
|
12050
12065
|
await seedCommand({
|
|
12051
12066
|
...options,
|
|
12052
12067
|
...construct ? { construct } : {}
|
|
@@ -12059,7 +12074,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
12059
12074
|
try {
|
|
12060
12075
|
const globalOptions = program.opts();
|
|
12061
12076
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12062
|
-
const { migrationCommand } = await Promise.resolve().then(() => require("./migrate-
|
|
12077
|
+
const { migrationCommand } = await Promise.resolve().then(() => require("./migrate-Cs7kQxD5.cjs"));
|
|
12063
12078
|
await migrationCommand({
|
|
12064
12079
|
construct,
|
|
12065
12080
|
...name ? { name } : {}
|
|
@@ -12159,7 +12174,7 @@ program.command("secrets:add").description("Build the keys a stage must be given
|
|
|
12159
12174
|
try {
|
|
12160
12175
|
const globalOptions = program.opts();
|
|
12161
12176
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12162
|
-
const { secretsAddCommand } = await Promise.resolve().then(() => require("./add-
|
|
12177
|
+
const { secretsAddCommand } = await Promise.resolve().then(() => require("./add-SRk65Udu.cjs"));
|
|
12163
12178
|
await secretsAddCommand(options);
|
|
12164
12179
|
} catch (error) {
|
|
12165
12180
|
exitWithError(error);
|
|
@@ -12169,7 +12184,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
12169
12184
|
try {
|
|
12170
12185
|
const globalOptions = program.opts();
|
|
12171
12186
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12172
|
-
const { encryptionRotateCommand } = await Promise.resolve().then(() => require("./encryption-
|
|
12187
|
+
const { encryptionRotateCommand } = await Promise.resolve().then(() => require("./encryption-CtVPHWWq.cjs"));
|
|
12173
12188
|
await encryptionRotateCommand(construct, options);
|
|
12174
12189
|
} catch (error) {
|
|
12175
12190
|
exitWithError(error);
|
|
@@ -12179,7 +12194,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
12179
12194
|
try {
|
|
12180
12195
|
const globalOptions = program.opts();
|
|
12181
12196
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12182
|
-
const { encryptionRetireCommand } = await Promise.resolve().then(() => require("./encryption-
|
|
12197
|
+
const { encryptionRetireCommand } = await Promise.resolve().then(() => require("./encryption-CtVPHWWq.cjs"));
|
|
12183
12198
|
await encryptionRetireCommand(construct, key, options);
|
|
12184
12199
|
} catch (error) {
|
|
12185
12200
|
exitWithError(error);
|
|
@@ -12218,7 +12233,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
12218
12233
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12219
12234
|
const { loadWorkspaceConfig } = await Promise.resolve().then(() => require("./config.cjs"));
|
|
12220
12235
|
const { reconcileMissingSecrets } = await Promise.resolve().then(() => require("./reconcile-CuCQBa5-.cjs"));
|
|
12221
|
-
const { secretsStoreFor } = await Promise.resolve().then(() => require("./seeds-
|
|
12236
|
+
const { secretsStoreFor } = await Promise.resolve().then(() => require("./seeds-Df4BI-T3.cjs")).then((n) => n.store_exports);
|
|
12222
12237
|
const { workspace } = await loadWorkspaceConfig();
|
|
12223
12238
|
const stage = options.stage ?? workspace.stages.local;
|
|
12224
12239
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -12227,7 +12242,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
12227
12242
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
12228
12243
|
process.exit(1);
|
|
12229
12244
|
}
|
|
12230
|
-
const { derivedContainers } = await Promise.resolve().then(() => require("./seeds-
|
|
12245
|
+
const { derivedContainers } = await Promise.resolve().then(() => require("./seeds-Df4BI-T3.cjs")).then((n) => n.workspace_exports);
|
|
12231
12246
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
12232
12247
|
if (!result) {
|
|
12233
12248
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -12240,18 +12255,18 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
12240
12255
|
exitWithError(error);
|
|
12241
12256
|
}
|
|
12242
12257
|
});
|
|
12243
|
-
program.command("secrets:migrate").description("Copy a deployed stage's secrets from the configured store to another (
|
|
12258
|
+
program.command("secrets:migrate").description("Copy a deployed stage's secrets from the configured store to another (s3, ssm, secrets-manager, file), verify the copy, and print how to delete the source").requiredOption("--stage <stage>", "A deployed stage").requiredOption("--to <provider>", "s3, ssm, secrets-manager or file").option("--region <region>", "The target's AWS region (default: the S3 state's for s3, else the configured store's)").option("--profile <profile>", "AWS profile for the stage's account").option("--force", "Replace different secrets the target already holds").action(async (options) => {
|
|
12244
12259
|
try {
|
|
12245
12260
|
const globalOptions = program.opts();
|
|
12246
12261
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12247
|
-
const { secretsMigrateCommand } = await Promise.resolve().then(() => require("./migrate-
|
|
12262
|
+
const { secretsMigrateCommand } = await Promise.resolve().then(() => require("./migrate-DBGyoBvZ.cjs"));
|
|
12248
12263
|
await secretsMigrateCommand(options);
|
|
12249
12264
|
} catch (error) {
|
|
12250
12265
|
exitWithError(error);
|
|
12251
12266
|
}
|
|
12252
12267
|
});
|
|
12253
12268
|
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("--resources-only", "Deployed stage: create its resources — deploy.<kind>.<stage> providers' buckets and keys, and its DNS records — and nothing else (a CI runner, before the server deploys)").option("--skip-resources", "Deployed stage: an earlier --resources-only run created its resources; run no provider and write or check no DNS record").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) => {
|
|
12254
|
-
const { deployCli } = await Promise.resolve().then(() => require("./cli-
|
|
12269
|
+
const { deployCli } = await Promise.resolve().then(() => require("./cli-CRDJWWmZ.cjs"));
|
|
12255
12270
|
const globalOptions = program.opts();
|
|
12256
12271
|
const code = await deployCli({
|
|
12257
12272
|
cwd: (0, node_path.resolve)(globalOptions.cwd ?? process.cwd()),
|
|
@@ -12273,7 +12288,7 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
12273
12288
|
});
|
|
12274
12289
|
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) => {
|
|
12275
12290
|
try {
|
|
12276
|
-
const { rollbackStage } = await Promise.resolve().then(() => require("./rollback-
|
|
12291
|
+
const { rollbackStage } = await Promise.resolve().then(() => require("./rollback-D7p4wJNO.cjs")).then((n) => n.rollback_exports);
|
|
12277
12292
|
const { terminalCredentials } = await Promise.resolve().then(() => require("./terminal-CPHuH4S1.cjs"));
|
|
12278
12293
|
const globalOptions = program.opts();
|
|
12279
12294
|
await rollbackStage({
|
|
@@ -12307,7 +12322,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
12307
12322
|
try {
|
|
12308
12323
|
const globalOptions = program.opts();
|
|
12309
12324
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12310
|
-
const { deployGithubCommand } = await Promise.resolve().then(() => require("./github-
|
|
12325
|
+
const { deployGithubCommand } = await Promise.resolve().then(() => require("./github-BCdfZ9zO.cjs"));
|
|
12311
12326
|
await deployGithubCommand(options);
|
|
12312
12327
|
} catch (error) {
|
|
12313
12328
|
exitWithError(error);
|
|
@@ -12317,7 +12332,7 @@ program.command("stages").description("The workspace's stages from gkm.config.ts
|
|
|
12317
12332
|
try {
|
|
12318
12333
|
const globalOptions = program.opts();
|
|
12319
12334
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12320
|
-
const { stagesCommand } = await Promise.resolve().then(() => require("./stages-
|
|
12335
|
+
const { stagesCommand } = await Promise.resolve().then(() => require("./stages-DH5z89eT.cjs"));
|
|
12321
12336
|
await stagesCommand(options);
|
|
12322
12337
|
} catch (error) {
|
|
12323
12338
|
exitWithError(error);
|