@geekmidas/cli 10.0.0-alpha.85 → 10.0.0-alpha.87
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/{HostingerProvider-dxkwynSs.cjs → HostingerProvider-BCB1QJj1.cjs} +2 -2
- package/dist/{HostingerProvider-dxkwynSs.cjs.map → HostingerProvider-BCB1QJj1.cjs.map} +1 -1
- package/dist/{HostingerProvider-D85ayzTi.mjs → HostingerProvider-CVc3rLPB.mjs} +2 -2
- package/dist/{HostingerProvider-D85ayzTi.mjs.map → HostingerProvider-CVc3rLPB.mjs.map} +1 -1
- package/dist/{LegacyStateStore-CJ2o18nT.mjs → LegacyStateStore-B0R4LlX_.mjs} +2 -2
- package/dist/{LegacyStateStore-CJ2o18nT.mjs.map → LegacyStateStore-B0R4LlX_.mjs.map} +1 -1
- package/dist/{LegacyStateStore-xGxPwP-m.cjs → LegacyStateStore-CWG_HVC0.cjs} +7 -7
- package/dist/{LegacyStateStore-xGxPwP-m.cjs.map → LegacyStateStore-CWG_HVC0.cjs.map} +1 -1
- package/dist/{LocalStateStore-CkjFD-4b.cjs → LocalStateStore-CLwa2DpK.cjs} +8 -8
- package/dist/{LocalStateStore-CkjFD-4b.cjs.map → LocalStateStore-CLwa2DpK.cjs.map} +1 -1
- package/dist/{LocalStateStore-ByVjUIvS.mjs → LocalStateStore-Q4vXg2ua.mjs} +2 -2
- package/dist/{LocalStateStore-ByVjUIvS.mjs.map → LocalStateStore-Q4vXg2ua.mjs.map} +1 -1
- package/dist/{S3StateStore-iqMezbES.cjs → S3StateStore-Cea9_5gF.cjs} +5 -5
- package/dist/{S3StateStore-iqMezbES.cjs.map → S3StateStore-Cea9_5gF.cjs.map} +1 -1
- package/dist/{S3StateStore-kpFlGVLE.mjs → S3StateStore-CksKYKRa.mjs} +2 -2
- package/dist/{S3StateStore-kpFlGVLE.mjs.map → S3StateStore-CksKYKRa.mjs.map} +1 -1
- package/dist/{SSMStateStore-Bkz5ztfo.mjs → SSMStateStore-BszSCAS2.mjs} +2 -2
- package/dist/{SSMStateStore-Bkz5ztfo.mjs.map → SSMStateStore-BszSCAS2.mjs.map} +1 -1
- package/dist/{SSMStateStore-Z2OMVCtq.cjs → SSMStateStore-aBOTF018.cjs} +9 -9
- package/dist/{SSMStateStore-Z2OMVCtq.cjs.map → SSMStateStore-aBOTF018.cjs.map} +1 -1
- package/dist/{add-CM7RLj89.cjs → add-5MZAXybv.cjs} +8 -5
- package/dist/add-5MZAXybv.cjs.map +1 -0
- package/dist/{add-jpX7M8RB.mjs → add-D_jNqnfZ.mjs} +8 -5
- package/dist/add-D_jNqnfZ.mjs.map +1 -0
- package/dist/{bundler-lEBH8ENP.cjs → bundler-1REMhKps.cjs} +5 -5
- package/dist/{bundler-lEBH8ENP.cjs.map → bundler-1REMhKps.cjs.map} +1 -1
- package/dist/{bundler-CaAKsbcN.mjs → bundler-BMo-JP5s.mjs} +5 -5
- package/dist/{bundler-CaAKsbcN.mjs.map → bundler-BMo-JP5s.mjs.map} +1 -1
- package/dist/{cli-BV3jzbk0.mjs → cli-7edNFwGk.mjs} +5 -13
- package/dist/cli-7edNFwGk.mjs.map +1 -0
- package/dist/{cli-DQCBcNlN.cjs → cli-BL8ZHsLQ.cjs} +5 -13
- package/dist/cli-BL8ZHsLQ.cjs.map +1 -0
- package/dist/{compose-CQK6StuE.mjs → compose-DbJhRQlh.mjs} +24 -11
- package/dist/compose-DbJhRQlh.mjs.map +1 -0
- package/dist/{compose-CSR0yEJm.cjs → compose-xw86kVYi.cjs} +34 -21
- package/dist/compose-xw86kVYi.cjs.map +1 -0
- package/dist/{config-BzIfP8a-.d.cts → config-CpjsVxru.d.cts} +3 -3
- package/dist/{config-BzIfP8a-.d.cts.map → config-CpjsVxru.d.cts.map} +1 -1
- package/dist/{config-DhdzmndX.d.mts → config-DrCAyoH5.d.mts} +3 -3
- package/dist/{config-DhdzmndX.d.mts.map → config-DrCAyoH5.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/{credentials-pAtB70k3.mjs → credentials-BgJ5mS_d.mjs} +91 -181
- package/dist/credentials-BgJ5mS_d.mjs.map +1 -0
- package/dist/{credentials-BVs7mrtw.cjs → credentials-tr26-KML.cjs} +122 -188
- package/dist/credentials-tr26-KML.cjs.map +1 -0
- package/dist/deploy/public.cjs +24 -20
- package/dist/deploy/public.cjs.map +1 -1
- package/dist/deploy/public.d.cts +95 -13
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts +95 -13
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +11 -10
- package/dist/deploy/public.mjs.map +1 -1
- package/dist/{deploy-BuU117CA.mjs → deploy-BTfmXd3g.mjs} +9 -9
- package/dist/deploy-BTfmXd3g.mjs.map +1 -0
- package/dist/{deploy-Bw2Mm3x3.cjs → deploy-CtbZj4zN.cjs} +13 -13
- package/dist/deploy-CtbZj4zN.cjs.map +1 -0
- package/dist/{dokploy-C81J1MVK.cjs → dokploy-TGk3oPwr.cjs} +2 -2
- package/dist/{dokploy-C81J1MVK.cjs.map → dokploy-TGk3oPwr.cjs.map} +1 -1
- package/dist/{dokploy-DWALWk7u.mjs → dokploy-r69yZaIt.mjs} +2 -2
- package/dist/{dokploy-DWALWk7u.mjs.map → dokploy-r69yZaIt.mjs.map} +1 -1
- package/dist/{encryption-DpAum8W7.mjs → encryption-C-8Tt5Hh.mjs} +3 -3
- package/dist/{encryption-DpAum8W7.mjs.map → encryption-C-8Tt5Hh.mjs.map} +1 -1
- package/dist/{encryption-B8h8Tna0.cjs → encryption-CDn7BH5O.cjs} +3 -3
- package/dist/{encryption-B8h8Tna0.cjs.map → encryption-CDn7BH5O.cjs.map} +1 -1
- package/dist/{engine-B01fjhLt.cjs → engine-Bt5k_UMq.cjs} +33 -23
- package/dist/engine-Bt5k_UMq.cjs.map +1 -0
- package/dist/{engine-BXCtEhSH.mjs → engine-jAINgiOB.mjs} +28 -18
- package/dist/engine-jAINgiOB.mjs.map +1 -0
- package/dist/{github-8B68qrLs.mjs → github-CZHAtwPT.mjs} +3 -3
- package/dist/{github-8B68qrLs.mjs.map → github-CZHAtwPT.mjs.map} +1 -1
- package/dist/{github-Cis9tYur.cjs → github-DFhuJQlp.cjs} +3 -3
- package/dist/{github-Cis9tYur.cjs.map → github-DFhuJQlp.cjs.map} +1 -1
- package/dist/{index-f77HdqN5.d.mts → index-MnUJuUlj.d.mts} +2 -2
- package/dist/{index-D1ODeM9s.d.cts.map → index-MnUJuUlj.d.mts.map} +1 -1
- package/dist/{index-D1ODeM9s.d.cts → index-elsLJTUv.d.cts} +2 -2
- package/dist/{index-f77HdqN5.d.mts.map → index-elsLJTUv.d.cts.map} +1 -1
- package/dist/index.cjs +106 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +100 -62
- package/dist/index.mjs.map +1 -1
- package/dist/local-Ciq-bTPr.mjs +224 -0
- package/dist/local-Ciq-bTPr.mjs.map +1 -0
- package/dist/local-Cq8qdgNX.cjs +241 -0
- package/dist/local-Cq8qdgNX.cjs.map +1 -0
- package/dist/{migrate-CPWn7A51.cjs → migrate-B16qgYTn.cjs} +3 -3
- package/dist/{migrate-CPWn7A51.cjs.map → migrate-B16qgYTn.cjs.map} +1 -1
- package/dist/{migrate-BBCp5blp.cjs → migrate-B1rVlwj1.cjs} +3 -3
- package/dist/{migrate-BBCp5blp.cjs.map → migrate-B1rVlwj1.cjs.map} +1 -1
- package/dist/{migrate-sDq7NApJ.mjs → migrate-Dn7nK6sh.mjs} +3 -3
- package/dist/{migrate-sDq7NApJ.mjs.map → migrate-Dn7nK6sh.mjs.map} +1 -1
- package/dist/{migrate-BeTWLSeC.mjs → migrate-ggkPVJRC.mjs} +3 -3
- package/dist/{migrate-BeTWLSeC.mjs.map → migrate-ggkPVJRC.mjs.map} +1 -1
- 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/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/{resolve-CXbwJ_iu.mjs → resolve-BSke45k6.mjs} +4 -4
- package/dist/{resolve-CXbwJ_iu.mjs.map → resolve-BSke45k6.mjs.map} +1 -1
- package/dist/{resolve-CztIqBOI.cjs → resolve-BXeXzpmU.cjs} +4 -4
- package/dist/{resolve-CztIqBOI.cjs.map → resolve-BXeXzpmU.cjs.map} +1 -1
- package/dist/{rollback-ByyFE5lV.mjs → rollback-CEE6dse4.mjs} +6 -6
- package/dist/{rollback-ByyFE5lV.mjs.map → rollback-CEE6dse4.mjs.map} +1 -1
- package/dist/{rollback-CyIJ4xGJ.cjs → rollback-DFMiBWf0.cjs} +8 -8
- package/dist/{rollback-CyIJ4xGJ.cjs.map → rollback-DFMiBWf0.cjs.map} +1 -1
- package/dist/{runtime-CNu2C2hB.d.mts → runtime-D48ZKk8_.d.cts} +2 -2
- package/dist/{runtime-CNu2C2hB.d.mts.map → runtime-D48ZKk8_.d.cts.map} +1 -1
- package/dist/{runtime-DMLgL26v.d.cts → runtime-HabiNBtJ.d.mts} +2 -2
- package/dist/{runtime-DMLgL26v.d.cts.map → runtime-HabiNBtJ.d.mts.map} +1 -1
- package/dist/{seeds-9C5CkDon.mjs → seeds-BYdrtZsC.mjs} +1525 -53
- package/dist/seeds-BYdrtZsC.mjs.map +1 -0
- package/dist/{seeds-B_Beuv0o.cjs → seeds-CsI0A_Ef.cjs} +1628 -65
- package/dist/seeds-CsI0A_Ef.cjs.map +1 -0
- package/dist/{sniffer-DgBkaLAu.mjs → sniffer-B0EU73bj.mjs} +5 -360
- package/dist/sniffer-B0EU73bj.mjs.map +1 -0
- package/dist/{sniffer-3fA0iExx.cjs → sniffer-DJYupBeK.cjs} +4 -413
- package/dist/sniffer-DJYupBeK.cjs.map +1 -0
- package/dist/{sst-DRi3H5TB.mjs → sst-D1Qj4sIs.mjs} +3 -3
- package/dist/{sst-DRi3H5TB.mjs.map → sst-D1Qj4sIs.mjs.map} +1 -1
- package/dist/{sst-hBrKouBy.cjs → sst-DAqUoZKG.cjs} +5 -5
- package/dist/{sst-hBrKouBy.cjs.map → sst-DAqUoZKG.cjs.map} +1 -1
- package/dist/{stages-CS1sjcRb.cjs → stages-Brn3vcdy.cjs} +2 -2
- package/dist/{stages-CS1sjcRb.cjs.map → stages-Brn3vcdy.cjs.map} +1 -1
- package/dist/{stages-CSXt7N2b.mjs → stages-DoHHz6pS.mjs} +2 -2
- package/dist/{stages-CSXt7N2b.mjs.map → stages-DoHHz6pS.mjs.map} +1 -1
- 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/{terminal-BdvrmkaC.mjs → terminal-BTbZlrFV.mjs} +2 -2
- package/dist/{terminal-BdvrmkaC.mjs.map → terminal-BTbZlrFV.mjs.map} +1 -1
- package/dist/{terminal-BL5E0xbR.cjs → terminal-COv23heb.cjs} +2 -2
- package/dist/{terminal-BL5E0xbR.cjs.map → terminal-COv23heb.cjs.map} +1 -1
- package/dist/{types-BZn-8ssD.d.mts → types-0oAyFOfR.d.cts} +48 -49
- package/dist/types-0oAyFOfR.d.cts.map +1 -0
- package/dist/{types-DiZj6hqp.d.cts → types-BZ01tZs-.d.mts} +47 -50
- package/dist/types-BZ01tZs-.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-Bic_R3tz.cjs → workspace-CT0JM3Y8.cjs} +333 -1
- package/dist/workspace-CT0JM3Y8.cjs.map +1 -0
- package/dist/{workspace-Drz4jsvy.mjs → workspace-D2CYLMCW.mjs} +250 -2
- package/dist/workspace-D2CYLMCW.mjs.map +1 -0
- package/package.json +15 -15
- package/dist/add-CM7RLj89.cjs.map +0 -1
- package/dist/add-jpX7M8RB.mjs.map +0 -1
- package/dist/cli-BV3jzbk0.mjs.map +0 -1
- package/dist/cli-DQCBcNlN.cjs.map +0 -1
- package/dist/compose-CQK6StuE.mjs.map +0 -1
- package/dist/compose-CSR0yEJm.cjs.map +0 -1
- package/dist/credentials-BVs7mrtw.cjs.map +0 -1
- package/dist/credentials-pAtB70k3.mjs.map +0 -1
- package/dist/deploy-BuU117CA.mjs.map +0 -1
- package/dist/deploy-Bw2Mm3x3.cjs.map +0 -1
- package/dist/engine-B01fjhLt.cjs.map +0 -1
- package/dist/engine-BXCtEhSH.mjs.map +0 -1
- package/dist/run-BJLIerMM.mjs +0 -133
- package/dist/run-BJLIerMM.mjs.map +0 -1
- package/dist/run-fVZ-rLnc.cjs +0 -174
- package/dist/run-fVZ-rLnc.cjs.map +0 -1
- package/dist/seeds-9C5CkDon.mjs.map +0 -1
- package/dist/seeds-B_Beuv0o.cjs.map +0 -1
- package/dist/sniffer-3fA0iExx.cjs.map +0 -1
- package/dist/sniffer-DgBkaLAu.mjs.map +0 -1
- package/dist/types-BZn-8ssD.d.mts.map +0 -1
- package/dist/types-DiZj6hqp.d.cts.map +0 -1
- package/dist/workspace-Bic_R3tz.cjs.map +0 -1
- package/dist/workspace-Drz4jsvy.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env -S npx tsx
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
4
|
-
const
|
|
5
|
-
const require_credentials = require("./credentials-BVs7mrtw.cjs");
|
|
4
|
+
const require_credentials = require("./credentials-tr26-KML.cjs");
|
|
6
5
|
const require_discover = require("./discover-D1It5r_h.cjs");
|
|
7
6
|
const require_derive = require("./derive-DAbo49sm.cjs");
|
|
8
|
-
const require_workspace = require("./workspace-
|
|
7
|
+
const require_workspace = require("./workspace-CT0JM3Y8.cjs");
|
|
9
8
|
const require_config = require("./config.cjs");
|
|
10
|
-
const require_seeds = require("./seeds-
|
|
9
|
+
const require_seeds = require("./seeds-CsI0A_Ef.cjs");
|
|
11
10
|
const require_EndpointGenerator = require("./EndpointGenerator-CwLjBCFE.cjs");
|
|
12
11
|
const require_openapi = require("./openapi.cjs");
|
|
13
12
|
const require_SubscriberGenerator = require("./SubscriberGenerator-BVn7cQ-2.cjs");
|
|
14
13
|
const require_appPorts = require("./appPorts-Cu79hJF6.cjs");
|
|
15
14
|
const require_drivers = require("./drivers-LYSdQDmd.cjs");
|
|
16
15
|
const require_emit = require("./emit-Dmc1nvdS.cjs");
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
16
|
+
const require_local = require("./local-Cq8qdgNX.cjs");
|
|
17
|
+
const require_sniffer = require("./sniffer-DJYupBeK.cjs");
|
|
18
|
+
const require_deploy = require("./deploy-CtbZj4zN.cjs");
|
|
19
|
+
const require_compose = require("./compose-xw86kVYi.cjs");
|
|
20
20
|
const require_credentialSchemas = require("./credentialSchemas-DCR4Wd1W.cjs");
|
|
21
|
-
const require_LocalStateStore = require("./LocalStateStore-
|
|
21
|
+
const require_LocalStateStore = require("./LocalStateStore-CLwa2DpK.cjs");
|
|
22
22
|
const require_utils = require("./utils-D2Nk1Nv2.cjs");
|
|
23
23
|
const require_ready = require("./ready-BpNbORRB.cjs");
|
|
24
24
|
let node_path = require("node:path");
|
|
@@ -53,7 +53,7 @@ crypto = require_rolldown_runtime.__toESM(crypto, 1);
|
|
|
53
53
|
let _geekmidas_constructs_functions = require("@geekmidas/constructs/functions");
|
|
54
54
|
let _geekmidas_constructs_topic = require("@geekmidas/constructs/topic");
|
|
55
55
|
//#region package.json
|
|
56
|
-
var version = "10.0.0-alpha.
|
|
56
|
+
var version = "10.0.0-alpha.87";
|
|
57
57
|
//#endregion
|
|
58
58
|
//#region src/prompt.ts
|
|
59
59
|
/**
|
|
@@ -136,7 +136,7 @@ const logger$8 = console;
|
|
|
136
136
|
* Validate Dokploy token by making a test API call
|
|
137
137
|
*/
|
|
138
138
|
async function validateDokployToken(endpoint, token) {
|
|
139
|
-
const { DokployApi } = await Promise.resolve().then(() => require("./sniffer-
|
|
139
|
+
const { DokployApi } = await Promise.resolve().then(() => require("./sniffer-DJYupBeK.cjs")).then((n) => n.dokploy_api_exports);
|
|
140
140
|
return new DokployApi({
|
|
141
141
|
baseUrl: endpoint,
|
|
142
142
|
token
|
|
@@ -2239,9 +2239,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
2239
2239
|
for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
2240
2240
|
logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
2241
2241
|
if (options.migrate || options.seed) {
|
|
2242
|
-
const { prepareDevDatabases } = await Promise.resolve().then(() => require("./migrate-
|
|
2242
|
+
const { prepareDevDatabases } = await Promise.resolve().then(() => require("./migrate-B1rVlwj1.cjs"));
|
|
2243
2243
|
await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
|
|
2244
|
-
} else await Promise.resolve().then(() => require("./migrate-
|
|
2244
|
+
} else await Promise.resolve().then(() => require("./migrate-B1rVlwj1.cjs")).then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
2245
2245
|
logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
2246
2246
|
});
|
|
2247
2247
|
const appUrls = {};
|
|
@@ -3293,7 +3293,7 @@ async function buildApp(input) {
|
|
|
3293
3293
|
...production,
|
|
3294
3294
|
...telemetry ? { telemetry } : {}
|
|
3295
3295
|
});
|
|
3296
|
-
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-
|
|
3296
|
+
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-1REMhKps.cjs"));
|
|
3297
3297
|
await bundleServer({
|
|
3298
3298
|
entryPoint,
|
|
3299
3299
|
outputDir: (0, node_path.join)(outputDir, "dist"),
|
|
@@ -3438,7 +3438,7 @@ async function buildWorkers(input) {
|
|
|
3438
3438
|
});
|
|
3439
3439
|
logger$4.log(`Generated worker ${worker.id}: ${crons.length} crons, ${queues.length} queues, ${subscribers.length} subscribers`);
|
|
3440
3440
|
if (!input.bundle) continue;
|
|
3441
|
-
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-
|
|
3441
|
+
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-1REMhKps.cjs"));
|
|
3442
3442
|
const outfile = require_seeds.workerBundleName(worker.id);
|
|
3443
3443
|
await bundleServer({
|
|
3444
3444
|
entryPoint,
|
|
@@ -3524,7 +3524,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
3524
3524
|
let masterKey;
|
|
3525
3525
|
if (context.production?.bundle && !skipBundle) {
|
|
3526
3526
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
3527
|
-
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-
|
|
3527
|
+
const { bundleServer } = await Promise.resolve().then(() => require("./bundler-1REMhKps.cjs"));
|
|
3528
3528
|
const allConstructs = [
|
|
3529
3529
|
...endpoints.map((e) => e.construct),
|
|
3530
3530
|
...functions.map((f) => f.construct),
|
|
@@ -3688,7 +3688,7 @@ async function workspaceBuildCommand(workspace, options) {
|
|
|
3688
3688
|
if (filters.length > 0) {
|
|
3689
3689
|
logger$4.log(`\n📦 Using ${pm} with Turbo for the other apps...\n`);
|
|
3690
3690
|
logger$4.log(`Running: ${[turboBin, ...turboArgs].join(" ")}`);
|
|
3691
|
-
const sandbox = options.sandbox ?? new
|
|
3691
|
+
const sandbox = options.sandbox ?? new require_local.LocalSandbox({
|
|
3692
3692
|
root: workspace.root,
|
|
3693
3693
|
passEnv: ["TURBO_TOKEN"]
|
|
3694
3694
|
});
|
|
@@ -3698,10 +3698,10 @@ async function workspaceBuildCommand(workspace, options) {
|
|
|
3698
3698
|
...sandbox.env,
|
|
3699
3699
|
NODE_ENV: options.production ? "production" : "development"
|
|
3700
3700
|
},
|
|
3701
|
-
timeoutMs:
|
|
3701
|
+
timeoutMs: require_credentials.DEFAULT_TIMEOUT_MS,
|
|
3702
3702
|
output: "inherit"
|
|
3703
3703
|
});
|
|
3704
|
-
if (built.exitCode !== 0) throw new
|
|
3704
|
+
if (built.exitCode !== 0) throw new require_credentials.CommandFailed(turboBin, turboArgs, built.exitCode, built.signal);
|
|
3705
3705
|
}
|
|
3706
3706
|
for (const [appName, app] of apps) {
|
|
3707
3707
|
const outputPath = getAppOutputPath(workspace, appName, app);
|
|
@@ -3778,7 +3778,6 @@ async function composeCommand(options, deps = {}) {
|
|
|
3778
3778
|
if (options.push && !options.build) throw new require_compose.ComposePushNeedsBuild();
|
|
3779
3779
|
const pulls = !options.build && (options.pull || options.tag !== void 0);
|
|
3780
3780
|
if (options.digestsFile && !options.push && !pulls) throw new require_compose.ComposePinNeedsPull();
|
|
3781
|
-
const allowDevServices = require_seeds.parseDevServices(options.allowDevServices);
|
|
3782
3781
|
const cwd = (0, node_path.resolve)(options.cwd ?? process.cwd());
|
|
3783
3782
|
const { workspace } = await require_config.loadWorkspaceConfig(cwd);
|
|
3784
3783
|
const { stage } = options;
|
|
@@ -3818,7 +3817,7 @@ async function composeCommand(options, deps = {}) {
|
|
|
3818
3817
|
...tag ? { tag } : {},
|
|
3819
3818
|
...options.dryRun ? { dryRun: true } : {},
|
|
3820
3819
|
...options.push ? { buildOnly: true } : {},
|
|
3821
|
-
...allowDevServices
|
|
3820
|
+
...options.allowDevServices ? { allowDevServices: true } : {},
|
|
3822
3821
|
logger: {
|
|
3823
3822
|
info: (message) => console.log(message),
|
|
3824
3823
|
warn: (message) => console.warn(message),
|
|
@@ -4054,7 +4053,7 @@ async function statePushCommand(options) {
|
|
|
4054
4053
|
*/
|
|
4055
4054
|
async function stateShowCommand(options) {
|
|
4056
4055
|
const { workspace } = await require_config.loadWorkspaceConfig();
|
|
4057
|
-
const stored = await (await
|
|
4056
|
+
const stored = await (await require_seeds.createStateStore({
|
|
4058
4057
|
config: workspace.state,
|
|
4059
4058
|
workspaceRoot: workspace.root,
|
|
4060
4059
|
workspaceName: workspace.name
|
|
@@ -4080,7 +4079,7 @@ async function stateShowCommand(options) {
|
|
|
4080
4079
|
*/
|
|
4081
4080
|
async function stateUnlockCommand(options) {
|
|
4082
4081
|
const { workspace } = await require_config.loadWorkspaceConfig();
|
|
4083
|
-
const holder = await (await
|
|
4082
|
+
const holder = await (await require_seeds.createStateStore({
|
|
4084
4083
|
config: workspace.state,
|
|
4085
4084
|
workspaceRoot: workspace.root,
|
|
4086
4085
|
workspaceName: workspace.name
|
|
@@ -4157,7 +4156,7 @@ async function remoteAndLocal(workspace, hint = ["Add a remote provider in gkm.c
|
|
|
4157
4156
|
}
|
|
4158
4157
|
return {
|
|
4159
4158
|
local: new require_LocalStateStore.LocalStateStore(workspace.root),
|
|
4160
|
-
remote: await
|
|
4159
|
+
remote: await require_seeds.createStateStore({
|
|
4161
4160
|
config: workspace.state,
|
|
4162
4161
|
workspaceRoot: workspace.root,
|
|
4163
4162
|
workspaceName: workspace.name
|
|
@@ -5226,25 +5225,25 @@ function loadPackageJson() {
|
|
|
5226
5225
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
5227
5226
|
*/
|
|
5228
5227
|
const GEEKMIDAS_VERSIONS = {
|
|
5229
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
5230
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
5231
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
5232
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
5233
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
5234
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
5235
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
5236
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
5237
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
5238
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
5239
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
5240
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
5241
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
5242
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
5243
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
5244
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
5245
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
5246
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
5247
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
5228
|
+
"@geekmidas/audit": "~10.0.0-alpha.87",
|
|
5229
|
+
"@geekmidas/auth": "~10.0.0-alpha.87",
|
|
5230
|
+
"@geekmidas/cache": "~10.0.0-alpha.87",
|
|
5231
|
+
"@geekmidas/client": "~10.0.0-alpha.87",
|
|
5232
|
+
"@geekmidas/cloud": "~10.0.0-alpha.87",
|
|
5233
|
+
"@geekmidas/constructs": "~10.0.0-alpha.87",
|
|
5234
|
+
"@geekmidas/db": "~10.0.0-alpha.87",
|
|
5235
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.87",
|
|
5236
|
+
"@geekmidas/envkit": "~10.0.0-alpha.87",
|
|
5237
|
+
"@geekmidas/errors": "~10.0.0-alpha.87",
|
|
5238
|
+
"@geekmidas/events": "~10.0.0-alpha.87",
|
|
5239
|
+
"@geekmidas/logger": "~10.0.0-alpha.87",
|
|
5240
|
+
"@geekmidas/manifest": "~10.0.0-alpha.87",
|
|
5241
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.87",
|
|
5242
|
+
"@geekmidas/schema": "~10.0.0-alpha.87",
|
|
5243
|
+
"@geekmidas/services": "~10.0.0-alpha.87",
|
|
5244
|
+
"@geekmidas/storage": "~10.0.0-alpha.87",
|
|
5245
|
+
"@geekmidas/telescope": "~10.0.0-alpha.87",
|
|
5246
|
+
"@geekmidas/testkit": "~10.0.0-alpha.87",
|
|
5248
5247
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
5249
5248
|
};
|
|
5250
5249
|
//#endregion
|
|
@@ -5645,7 +5644,7 @@ const COMMIT = /^[0-9a-f]{40}$/;
|
|
|
5645
5644
|
* The `uses:` value for the stages action, with a comment saying which CLI
|
|
5646
5645
|
* release the pinned commit is.
|
|
5647
5646
|
*/
|
|
5648
|
-
function stagesActionUses(commit = "
|
|
5647
|
+
function stagesActionUses(commit = "8bf34e377e5def9821eacaea3971d6daf6c91748", version = cliVersion()) {
|
|
5649
5648
|
return commit && COMMIT.test(commit) ? `${STAGES_ACTION}@${commit} # @geekmidas/cli ${version}` : `${STAGES_ACTION}@main # pin to a commit SHA: see the action's README`;
|
|
5650
5649
|
}
|
|
5651
5650
|
//#endregion
|
|
@@ -10935,15 +10934,16 @@ var setup_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
|
10935
10934
|
});
|
|
10936
10935
|
const logger$1 = console;
|
|
10937
10936
|
/**
|
|
10938
|
-
*
|
|
10937
|
+
* Converge a stage on what its constructs declare.
|
|
10939
10938
|
*
|
|
10940
|
-
*
|
|
10941
|
-
*
|
|
10942
|
-
*
|
|
10943
|
-
*
|
|
10939
|
+
* The local stage: its secrets (local → the stage's store → generated) and
|
|
10940
|
+
* the containers on this machine. A deployed stage: its secrets, and then
|
|
10941
|
+
* every provider `deploy.<kind>.<stage>` names — the bucket, user and key an
|
|
10942
|
+
* `objects: { provider: 's3' }` stage is backed by — created or repaired in
|
|
10943
|
+
* the stage's own account. A deployed stage's infrastructure is not on this
|
|
10944
|
+
* machine, so no container is started for one.
|
|
10944
10945
|
*/
|
|
10945
10946
|
async function setupCommand(options = {}) {
|
|
10946
|
-
logger$1.log("\n🔧 Setting up the local environment...\n");
|
|
10947
10947
|
let loadedConfig;
|
|
10948
10948
|
try {
|
|
10949
10949
|
loadedConfig = await require_config.loadWorkspaceConfig();
|
|
@@ -10953,13 +10953,23 @@ async function setupCommand(options = {}) {
|
|
|
10953
10953
|
}
|
|
10954
10954
|
const stage = options.stage ?? loadedConfig.workspace.stages.local;
|
|
10955
10955
|
const { workspace } = loadedConfig;
|
|
10956
|
+
const local = stage === workspace.stages.local;
|
|
10957
|
+
logger$1.log(local ? "\n🔧 Setting up the local environment...\n" : `\n☁️ Provisioning the '${stage}' stage${options.dryRun ? " (dry run)" : ""}...\n`);
|
|
10956
10958
|
logger$1.log(`📦 Workspace: ${workspace.name}`);
|
|
10957
10959
|
logger$1.log(`📱 Apps: ${Object.keys(workspace.apps).join(", ")}`);
|
|
10958
10960
|
logger$1.log(`🔑 Stage: ${stage}\n`);
|
|
10961
|
+
if (!local && options.dryRun) {
|
|
10962
|
+
await provisionDeployed(workspace, stage, options);
|
|
10963
|
+
return;
|
|
10964
|
+
}
|
|
10959
10965
|
if (!await resolveSecrets(stage, workspace, options)) {
|
|
10960
10966
|
logger$1.error("❌ Failed to resolve secrets. Exiting.");
|
|
10961
10967
|
process.exit(1);
|
|
10962
10968
|
}
|
|
10969
|
+
if (!local) {
|
|
10970
|
+
await provisionDeployed(workspace, stage, options);
|
|
10971
|
+
return;
|
|
10972
|
+
}
|
|
10963
10973
|
if (!options.skipDocker) {
|
|
10964
10974
|
logger$1.log("");
|
|
10965
10975
|
await reconcileLocal(workspace, stage, options);
|
|
@@ -10967,6 +10977,28 @@ async function setupCommand(options = {}) {
|
|
|
10967
10977
|
printSummary(workspace, stage);
|
|
10968
10978
|
}
|
|
10969
10979
|
/**
|
|
10980
|
+
* A deployed stage's providers: each one's `ensure()`, in the stage's own
|
|
10981
|
+
* account, its keys written into the stage's secrets.
|
|
10982
|
+
*/
|
|
10983
|
+
async function provisionDeployed(workspace, stage, options) {
|
|
10984
|
+
logger$1.log(options.dryRun ? `\n☁️ Providers for '${stage}' (dry run — nothing is created or written)` : `\n☁️ Providers for '${stage}'`);
|
|
10985
|
+
const configured = (await require_seeds.provisionStage({
|
|
10986
|
+
workspace,
|
|
10987
|
+
stage,
|
|
10988
|
+
...options.dryRun ? { dryRun: true } : {},
|
|
10989
|
+
...options.profile ? { profile: options.profile } : {},
|
|
10990
|
+
...options.rotateKeys ? { rotateKeys: true } : {},
|
|
10991
|
+
...options.retireOldKeys ? { retireOldKeys: true } : {},
|
|
10992
|
+
log: (line) => logger$1.log(line)
|
|
10993
|
+
})).filter((r) => r.mode === "provider");
|
|
10994
|
+
if (configured.length === 0) {
|
|
10995
|
+
logger$1.log(` None configured: '${stage}' takes every key from its secrets (gkm secrets:add --stage ${stage}). Name one in gkm.config.ts — deploy: { objects: { ${stage}: { provider: 's3' } } } — to have ${require_seeds.provisionCommand(stage)} create it.`);
|
|
10996
|
+
return;
|
|
10997
|
+
}
|
|
10998
|
+
const changes = configured.reduce((n, r) => n + r.actions.length, 0);
|
|
10999
|
+
logger$1.log(options.dryRun ? `\n${changes === 0 ? "✅ Nothing to change" : `📋 ${changes} change${changes === 1 ? "" : "s"} planned`}` : `\n✅ '${stage}' provisioned${changes === 0 ? " — already up to date" : ` (${changes} change${changes === 1 ? "" : "s"})`}`);
|
|
11000
|
+
}
|
|
11001
|
+
/**
|
|
10970
11002
|
* Converge this machine on what the manifest declares.
|
|
10971
11003
|
*
|
|
10972
11004
|
* Says what it did in one line and stays silent when it did nothing, because
|
|
@@ -11317,7 +11349,7 @@ function testDatabases(reconciled) {
|
|
|
11317
11349
|
* starts without the reference data the app needs.
|
|
11318
11350
|
*/
|
|
11319
11351
|
async function migrateTestStage(workspace, env) {
|
|
11320
|
-
const { migrateAndSeed } = await Promise.resolve().then(() => require("./migrate-
|
|
11352
|
+
const { migrateAndSeed } = await Promise.resolve().then(() => require("./migrate-B1rVlwj1.cjs"));
|
|
11321
11353
|
const { discover } = await Promise.resolve().then(() => require("./discover-D1It5r_h.cjs")).then((n) => n.discover_exports);
|
|
11322
11354
|
const sources = {};
|
|
11323
11355
|
const manifest = await discover({
|
|
@@ -11673,7 +11705,7 @@ program.command("trust").description("Trust the local edge's certificate authori
|
|
|
11673
11705
|
process.exit(1);
|
|
11674
11706
|
}
|
|
11675
11707
|
});
|
|
11676
|
-
program.command("setup").description("Reconcile declared constructs —
|
|
11708
|
+
program.command("setup").description("Reconcile declared constructs — locally, containers and secrets; on a deployed stage, its providers (deploy.objects)").option("--stage <stage>", "Stage name (default: stages.local)").option("--force", "Regenerate secrets even if they exist").option("--skip-docker", "Skip starting Docker services").option("-y, --yes", "Skip prompts").option("--dry-run", "A deployed stage: print what its providers would create or change, and write nothing").option("--profile <profile>", "AWS profile for the stage's account").option("--rotate-keys", "A deployed stage: issue each provisioned key a successor (the old one is deleted after the next deploy)").option("--retire-old-keys", "A deployed stage: delete a rotated-out key now instead of after the next deploy").action(async (options) => {
|
|
11677
11709
|
try {
|
|
11678
11710
|
const globalOptions = program.opts();
|
|
11679
11711
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
@@ -11761,7 +11793,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
11761
11793
|
try {
|
|
11762
11794
|
const globalOptions = program.opts();
|
|
11763
11795
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11764
|
-
const { migrateCommand } = await Promise.resolve().then(() => require("./migrate-
|
|
11796
|
+
const { migrateCommand } = await Promise.resolve().then(() => require("./migrate-B1rVlwj1.cjs"));
|
|
11765
11797
|
await migrateCommand({
|
|
11766
11798
|
...options,
|
|
11767
11799
|
...construct ? { construct } : {}
|
|
@@ -11775,7 +11807,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
11775
11807
|
try {
|
|
11776
11808
|
const globalOptions = program.opts();
|
|
11777
11809
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11778
|
-
const { seedCommand } = await Promise.resolve().then(() => require("./migrate-
|
|
11810
|
+
const { seedCommand } = await Promise.resolve().then(() => require("./migrate-B1rVlwj1.cjs"));
|
|
11779
11811
|
await seedCommand({
|
|
11780
11812
|
...options,
|
|
11781
11813
|
...construct ? { construct } : {}
|
|
@@ -11789,7 +11821,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
11789
11821
|
try {
|
|
11790
11822
|
const globalOptions = program.opts();
|
|
11791
11823
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11792
|
-
const { migrationCommand } = await Promise.resolve().then(() => require("./migrate-
|
|
11824
|
+
const { migrationCommand } = await Promise.resolve().then(() => require("./migrate-B1rVlwj1.cjs"));
|
|
11793
11825
|
await migrationCommand({
|
|
11794
11826
|
construct,
|
|
11795
11827
|
...name ? { name } : {}
|
|
@@ -11838,7 +11870,7 @@ program.command("docker").description("Generate Docker deployment files").option
|
|
|
11838
11870
|
process.exit(1);
|
|
11839
11871
|
}
|
|
11840
11872
|
});
|
|
11841
|
-
program.command("compose").description("Run the workspace's APIs and sites for a stage as one Docker Compose stack behind Caddy").requiredOption("--stage <stage>", "Stage to run — always named, so a stack is never a deployed stage by accident").option("--tag <tag>", "Run the images CI pushed at this tag (sites: <tag>-<stage>); nothing is built").option("--build", "Build images from this checkout, tagged with the commit").option("--pull", "Pull images (at --tag, or latest) rather than build them").option("--push", "With --build: push every image to deploy.registry and start nothing (for CI)").option("--digests-file <path>", "With --push: write each image as <ref>@sha256:… (JSON). With --tag: run the images at those digests").option("--dry-run", "Write the files and print the plan; start nothing").option("--down", "Stop the stage's stack (its volumes are kept)").option("--allow-dev-services
|
|
11873
|
+
program.command("compose").description("Run the workspace's APIs and sites for a stage as one Docker Compose stack behind Caddy").requiredOption("--stage <stage>", "Stage to run — always named, so a stack is never a deployed stage by accident").option("--tag <tag>", "Run the images CI pushed at this tag (sites: <tag>-<stage>); nothing is built").option("--build", "Build images from this checkout, tagged with the commit").option("--pull", "Pull images (at --tag, or latest) rather than build them").option("--push", "With --build: push every image to deploy.registry and start nothing (for CI)").option("--digests-file <path>", "With --push: write each image as <ref>@sha256:… (JSON). With --tag: run the images at those digests").option("--dry-run", "Write the files and print the plan; start nothing").option("--down", "Stop the stage's stack (its volumes are kept)").option("--allow-dev-services", "Deployed stage: run the dev service (MinIO, Mailpit) for every bucket and mail the stage doesn't account for. Not production-grade").action(async (options) => {
|
|
11842
11874
|
try {
|
|
11843
11875
|
const globalOptions = program.opts();
|
|
11844
11876
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
@@ -11897,7 +11929,7 @@ program.command("secrets:add").description("Build the keys a stage must be given
|
|
|
11897
11929
|
try {
|
|
11898
11930
|
const globalOptions = program.opts();
|
|
11899
11931
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11900
|
-
const { secretsAddCommand } = await Promise.resolve().then(() => require("./add-
|
|
11932
|
+
const { secretsAddCommand } = await Promise.resolve().then(() => require("./add-5MZAXybv.cjs"));
|
|
11901
11933
|
await secretsAddCommand(options);
|
|
11902
11934
|
} catch (error) {
|
|
11903
11935
|
console.error(formatError(error));
|
|
@@ -11908,7 +11940,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
11908
11940
|
try {
|
|
11909
11941
|
const globalOptions = program.opts();
|
|
11910
11942
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11911
|
-
const { encryptionRotateCommand } = await Promise.resolve().then(() => require("./encryption-
|
|
11943
|
+
const { encryptionRotateCommand } = await Promise.resolve().then(() => require("./encryption-CDn7BH5O.cjs"));
|
|
11912
11944
|
await encryptionRotateCommand(construct, options);
|
|
11913
11945
|
} catch (error) {
|
|
11914
11946
|
console.error(formatError(error));
|
|
@@ -11919,7 +11951,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
11919
11951
|
try {
|
|
11920
11952
|
const globalOptions = program.opts();
|
|
11921
11953
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11922
|
-
const { encryptionRetireCommand } = await Promise.resolve().then(() => require("./encryption-
|
|
11954
|
+
const { encryptionRetireCommand } = await Promise.resolve().then(() => require("./encryption-CDn7BH5O.cjs"));
|
|
11923
11955
|
await encryptionRetireCommand(construct, key, options);
|
|
11924
11956
|
} catch (error) {
|
|
11925
11957
|
console.error(formatError(error));
|
|
@@ -11962,7 +11994,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
11962
11994
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11963
11995
|
const { loadWorkspaceConfig } = await Promise.resolve().then(() => require("./config.cjs"));
|
|
11964
11996
|
const { reconcileMissingSecrets } = await Promise.resolve().then(() => require("./reconcile-CuCQBa5-.cjs"));
|
|
11965
|
-
const { secretsStoreFor } = await Promise.resolve().then(() => require("./seeds-
|
|
11997
|
+
const { secretsStoreFor } = await Promise.resolve().then(() => require("./seeds-CsI0A_Ef.cjs")).then((n) => n.store_exports);
|
|
11966
11998
|
const { workspace } = await loadWorkspaceConfig();
|
|
11967
11999
|
const stage = options.stage ?? workspace.stages.local;
|
|
11968
12000
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -11971,7 +12003,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
11971
12003
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
11972
12004
|
process.exit(1);
|
|
11973
12005
|
}
|
|
11974
|
-
const { derivedContainers } = await Promise.resolve().then(() => require("./seeds-
|
|
12006
|
+
const { derivedContainers } = await Promise.resolve().then(() => require("./seeds-CsI0A_Ef.cjs")).then((n) => n.workspace_exports);
|
|
11975
12007
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
11976
12008
|
if (!result) {
|
|
11977
12009
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -11989,15 +12021,15 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
11989
12021
|
try {
|
|
11990
12022
|
const globalOptions = program.opts();
|
|
11991
12023
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11992
|
-
const { secretsMigrateCommand } = await Promise.resolve().then(() => require("./migrate-
|
|
12024
|
+
const { secretsMigrateCommand } = await Promise.resolve().then(() => require("./migrate-B16qgYTn.cjs"));
|
|
11993
12025
|
await secretsMigrateCommand(options);
|
|
11994
12026
|
} catch (error) {
|
|
11995
12027
|
console.error(formatError(error));
|
|
11996
12028
|
process.exit(1);
|
|
11997
12029
|
}
|
|
11998
12030
|
});
|
|
11999
|
-
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
|
|
12000
|
-
const { deployCli } = await Promise.resolve().then(() => require("./cli-
|
|
12031
|
+
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").action(async (options) => {
|
|
12032
|
+
const { deployCli } = await Promise.resolve().then(() => require("./cli-BL8ZHsLQ.cjs"));
|
|
12001
12033
|
const globalOptions = program.opts();
|
|
12002
12034
|
const code = await deployCli({
|
|
12003
12035
|
cwd: (0, node_path.resolve)(globalOptions.cwd ?? process.cwd()),
|
|
@@ -12008,14 +12040,14 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
12008
12040
|
...options.json ? { json: true } : {},
|
|
12009
12041
|
...options.dryRun ? { dryRun: true } : {},
|
|
12010
12042
|
...options.atomic ? { atomic: true } : {},
|
|
12011
|
-
...options.allowDevServices ? { allowDevServices:
|
|
12043
|
+
...options.allowDevServices ? { allowDevServices: true } : {}
|
|
12012
12044
|
});
|
|
12013
12045
|
if (code !== 0) process.exit(code);
|
|
12014
12046
|
});
|
|
12015
12047
|
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) => {
|
|
12016
12048
|
try {
|
|
12017
|
-
const { rollbackStage } = await Promise.resolve().then(() => require("./rollback-
|
|
12018
|
-
const { terminalCredentials } = await Promise.resolve().then(() => require("./terminal-
|
|
12049
|
+
const { rollbackStage } = await Promise.resolve().then(() => require("./rollback-DFMiBWf0.cjs")).then((n) => n.rollback_exports);
|
|
12050
|
+
const { terminalCredentials } = await Promise.resolve().then(() => require("./terminal-COv23heb.cjs"));
|
|
12019
12051
|
const globalOptions = program.opts();
|
|
12020
12052
|
await rollbackStage({
|
|
12021
12053
|
cwd: (0, node_path.resolve)(globalOptions.cwd ?? process.cwd()),
|
|
@@ -12050,7 +12082,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
12050
12082
|
try {
|
|
12051
12083
|
const globalOptions = program.opts();
|
|
12052
12084
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12053
|
-
const { deployGithubCommand } = await Promise.resolve().then(() => require("./github-
|
|
12085
|
+
const { deployGithubCommand } = await Promise.resolve().then(() => require("./github-DFhuJQlp.cjs"));
|
|
12054
12086
|
await deployGithubCommand(options);
|
|
12055
12087
|
} catch (error) {
|
|
12056
12088
|
console.error(formatError(error));
|
|
@@ -12061,7 +12093,7 @@ program.command("stages").description("The workspace's stages from gkm.config.ts
|
|
|
12061
12093
|
try {
|
|
12062
12094
|
const globalOptions = program.opts();
|
|
12063
12095
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12064
|
-
const { stagesCommand } = await Promise.resolve().then(() => require("./stages-
|
|
12096
|
+
const { stagesCommand } = await Promise.resolve().then(() => require("./stages-Brn3vcdy.cjs"));
|
|
12065
12097
|
await stagesCommand(options);
|
|
12066
12098
|
} catch (error) {
|
|
12067
12099
|
console.error(formatError(error));
|
|
@@ -12194,6 +12226,12 @@ program.command("upgrade").description("Upgrade @geekmidas/cli (with --all, ever
|
|
|
12194
12226
|
process.exit(1);
|
|
12195
12227
|
}
|
|
12196
12228
|
});
|
|
12229
|
+
try {
|
|
12230
|
+
require_seeds.assertDevServicesFlag(process.argv.slice(2));
|
|
12231
|
+
} catch (error) {
|
|
12232
|
+
console.error(formatError(error));
|
|
12233
|
+
process.exit(1);
|
|
12234
|
+
}
|
|
12197
12235
|
program.parse();
|
|
12198
12236
|
//#endregion
|
|
12199
12237
|
exports.canPrompt = canPrompt;
|