@geekmidas/cli 10.0.0-alpha.77 → 10.0.0-alpha.79
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/{LegacyStateStore-dyq07_Ir.mjs → LegacyStateStore-Ceq7A_75.mjs} +2 -2
- package/dist/{LegacyStateStore-dyq07_Ir.mjs.map → LegacyStateStore-Ceq7A_75.mjs.map} +1 -1
- package/dist/{LegacyStateStore-DwngfJxr.cjs → LegacyStateStore-Z-EKUGSX.cjs} +2 -2
- package/dist/{LegacyStateStore-DwngfJxr.cjs.map → LegacyStateStore-Z-EKUGSX.cjs.map} +1 -1
- package/dist/{LocalStateStore-B0NCde8Z.cjs → LocalStateStore-Bocb8dmZ.cjs} +2 -2
- package/dist/{LocalStateStore-B0NCde8Z.cjs.map → LocalStateStore-Bocb8dmZ.cjs.map} +1 -1
- package/dist/{LocalStateStore-DLxCCatI.mjs → LocalStateStore-C72bwpG2.mjs} +2 -2
- package/dist/{LocalStateStore-DLxCCatI.mjs.map → LocalStateStore-C72bwpG2.mjs.map} +1 -1
- package/dist/{S3StateStore-BOenb-3o.cjs → S3StateStore-35YfcdL_.cjs} +2 -2
- package/dist/{S3StateStore-BOenb-3o.cjs.map → S3StateStore-35YfcdL_.cjs.map} +1 -1
- package/dist/{S3StateStore-CGK_4hlo.mjs → S3StateStore-C9upSW5o.mjs} +2 -2
- package/dist/{S3StateStore-CGK_4hlo.mjs.map → S3StateStore-C9upSW5o.mjs.map} +1 -1
- package/dist/{SSMStateStore-DYeD__7p.cjs → SSMStateStore-W-Ps22AQ.cjs} +2 -2
- package/dist/{SSMStateStore-DYeD__7p.cjs.map → SSMStateStore-W-Ps22AQ.cjs.map} +1 -1
- package/dist/{SSMStateStore-B_5_RqY-.mjs → SSMStateStore-dOmFO6g1.mjs} +2 -2
- package/dist/{SSMStateStore-B_5_RqY-.mjs.map → SSMStateStore-dOmFO6g1.mjs.map} +1 -1
- package/dist/{add-DCsgtvDk.cjs → add-HF9POevk.cjs} +8 -8
- package/dist/{add-DCsgtvDk.cjs.map → add-HF9POevk.cjs.map} +1 -1
- package/dist/{add-EPQO-_dt.mjs → add-UFiIrlTj.mjs} +3 -3
- package/dist/{add-EPQO-_dt.mjs.map → add-UFiIrlTj.mjs.map} +1 -1
- package/dist/{bundler-DgO_EMVs.mjs → bundler-C45BuRdY.mjs} +5 -5
- package/dist/{bundler-DgO_EMVs.mjs.map → bundler-C45BuRdY.mjs.map} +1 -1
- package/dist/{bundler-5spPyduN.cjs → bundler-RAoSRuvp.cjs} +5 -5
- package/dist/{bundler-5spPyduN.cjs.map → bundler-RAoSRuvp.cjs.map} +1 -1
- package/dist/{cli-ZpFTMbGw.cjs → cli-C3hsEwLK.cjs} +4 -4
- package/dist/{cli-ZpFTMbGw.cjs.map → cli-C3hsEwLK.cjs.map} +1 -1
- package/dist/{cli-B74Ru-V1.mjs → cli-gvc3urUl.mjs} +3 -3
- package/dist/{cli-B74Ru-V1.mjs.map → cli-gvc3urUl.mjs.map} +1 -1
- package/dist/{compose-IUuxRW0J.mjs → compose-C40Wk9m6.mjs} +626 -65
- package/dist/compose-C40Wk9m6.mjs.map +1 -0
- package/dist/{compose-CePlrbUw.cjs → compose-CtUP07r3.cjs} +690 -111
- package/dist/compose-CtUP07r3.cjs.map +1 -0
- package/dist/{config-Ckmoj56i.d.mts → config-L_6NivCp.d.mts} +3 -3
- package/dist/{config-Ckmoj56i.d.mts.map → config-L_6NivCp.d.mts.map} +1 -1
- package/dist/{config-aAeLXH86.d.cts → config-Mr4rcXFC.d.cts} +3 -3
- package/dist/{config-aAeLXH86.d.cts.map → config-Mr4rcXFC.d.cts.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/{databases-C2p5LGAp.cjs → databases-BY-pEImp.cjs} +185 -7
- package/dist/databases-BY-pEImp.cjs.map +1 -0
- package/dist/{databases-hUHTuwhx.mjs → databases-CzszQV0N.mjs} +153 -5
- package/dist/databases-CzszQV0N.mjs.map +1 -0
- package/dist/deploy/public.cjs +13 -12
- package/dist/deploy/public.d.cts +19 -3
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts +19 -3
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +7 -7
- package/dist/{deploy-Q6X6RXRG.mjs → deploy-BjsZpUQ3.mjs} +5 -5
- package/dist/{deploy-Q6X6RXRG.mjs.map → deploy-BjsZpUQ3.mjs.map} +1 -1
- package/dist/{deploy-XHXi-_tL.cjs → deploy-DPzauQsm.cjs} +11 -11
- package/dist/{deploy-XHXi-_tL.cjs.map → deploy-DPzauQsm.cjs.map} +1 -1
- package/dist/{dokploy-BtP5XSrS.mjs → dokploy-BoH0DMyS.mjs} +2 -2
- package/dist/{dokploy-BtP5XSrS.mjs.map → dokploy-BoH0DMyS.mjs.map} +1 -1
- package/dist/{dokploy-MSsPBO-t.cjs → dokploy-Cj1EHd4Y.cjs} +2 -2
- package/dist/{dokploy-MSsPBO-t.cjs.map → dokploy-Cj1EHd4Y.cjs.map} +1 -1
- package/dist/{encryption-DY0na43R.cjs → encryption-D2z16vsS.cjs} +6 -6
- package/dist/{encryption-DY0na43R.cjs.map → encryption-D2z16vsS.cjs.map} +1 -1
- package/dist/{encryption-D4Ykywfr.mjs → encryption-MeDrE-rZ.mjs} +3 -3
- package/dist/{encryption-D4Ykywfr.mjs.map → encryption-MeDrE-rZ.mjs.map} +1 -1
- package/dist/{engine-BI2xjCKt.mjs → engine-B-Yq0yQu.mjs} +55 -19
- package/dist/engine-B-Yq0yQu.mjs.map +1 -0
- package/dist/{engine-y53kE_3H.cjs → engine-C3T39eTO.cjs} +120 -84
- package/dist/engine-C3T39eTO.cjs.map +1 -0
- package/dist/{github-Bmb45xUQ.cjs → github-B8dDa8xf.cjs} +7 -7
- package/dist/{github-Bmb45xUQ.cjs.map → github-B8dDa8xf.cjs.map} +1 -1
- package/dist/{github-BBIqk1Jv.mjs → github-Dyrjo0xd.mjs} +3 -3
- package/dist/{github-BBIqk1Jv.mjs.map → github-Dyrjo0xd.mjs.map} +1 -1
- package/dist/{index-CNdSRwar.d.mts → index-C0UmP_lg.d.mts} +2 -2
- package/dist/{index-C7Tma2m1.d.cts.map → index-C0UmP_lg.d.mts.map} +1 -1
- package/dist/{index-C7Tma2m1.d.cts → index-DTEPwLml.d.cts} +2 -2
- package/dist/{index-CNdSRwar.d.mts.map → index-DTEPwLml.d.cts.map} +1 -1
- package/dist/index.cjs +119 -118
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +46 -45
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-BUBsUiM3.mjs → migrate-A2CLFl9G.mjs} +4 -5
- package/dist/{migrate-BUBsUiM3.mjs.map → migrate-A2CLFl9G.mjs.map} +1 -1
- package/dist/{migrate-sny0NjKe.cjs → migrate-CTqICj1B.cjs} +9 -10
- package/dist/{migrate-sny0NjKe.cjs.map → migrate-CTqICj1B.cjs.map} +1 -1
- package/dist/{migrate-DWVl5PQK.mjs → migrate-DWUbYY5r.mjs} +3 -3
- package/dist/{migrate-DWVl5PQK.mjs.map → migrate-DWUbYY5r.mjs.map} +1 -1
- package/dist/{migrate-31JXUOaG.cjs → migrate-DvIAITiG.cjs} +5 -5
- package/dist/{migrate-31JXUOaG.cjs.map → migrate-DvIAITiG.cjs.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-BF1ICosS.mjs → resolve-CHwetPdo.mjs} +3 -3
- package/dist/{resolve-BF1ICosS.mjs.map → resolve-CHwetPdo.mjs.map} +1 -1
- package/dist/{resolve-DokLtTUb.cjs → resolve-DOXcAOcn.cjs} +3 -3
- package/dist/{resolve-DokLtTUb.cjs.map → resolve-DOXcAOcn.cjs.map} +1 -1
- package/dist/{rollback-sg0ZhKGG.mjs → rollback-Cq5s3WnD.mjs} +5 -5
- package/dist/{rollback-sg0ZhKGG.mjs.map → rollback-Cq5s3WnD.mjs.map} +1 -1
- package/dist/{rollback-CpOWRR9H.cjs → rollback-DUoOaws3.cjs} +7 -7
- package/dist/{rollback-CpOWRR9H.cjs.map → rollback-DUoOaws3.cjs.map} +1 -1
- package/dist/{runtime-BozOkPtG.d.cts → runtime-D6A-C6zh.d.cts} +2 -2
- package/dist/{runtime-B5bYom9w.d.mts.map → runtime-D6A-C6zh.d.cts.map} +1 -1
- package/dist/{runtime-B5bYom9w.d.mts → runtime-ekxfPNM-.d.mts} +2 -2
- package/dist/{runtime-BozOkPtG.d.cts.map → runtime-ekxfPNM-.d.mts.map} +1 -1
- package/dist/sandbox/migrate-worker.cjs +22 -8
- package/dist/sandbox/migrate-worker.cjs.map +1 -1
- package/dist/sandbox/migrate-worker.mjs +22 -8
- package/dist/sandbox/migrate-worker.mjs.map +1 -1
- package/dist/{stale-DGzpiN5S.mjs → seeds-DiXON7R8.mjs} +64 -6
- package/dist/seeds-DiXON7R8.mjs.map +1 -0
- package/dist/{stale-yu2FkH3G.cjs → seeds-qX13ubmO.cjs} +81 -5
- package/dist/seeds-qX13ubmO.cjs.map +1 -0
- package/dist/{sniffer-Y6GQOCXB.cjs → sniffer-BjG-1mlD.cjs} +6 -6
- package/dist/sniffer-BjG-1mlD.cjs.map +1 -0
- package/dist/{sniffer-DR8AlRCk.mjs → sniffer-ByWtH28i.mjs} +6 -6
- package/dist/sniffer-ByWtH28i.mjs.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-ct7pdQRf.d.cts → types-BzCavjGt.d.mts} +70 -3
- package/dist/types-BzCavjGt.d.mts.map +1 -0
- package/dist/{types-B9yWJAis.d.mts → types-DZtj9jeI.d.cts} +71 -2
- package/dist/types-DZtj9jeI.d.cts.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-QUTqYmVy.mjs → workspace-BBdqmkch.mjs} +114 -17
- package/dist/workspace-BBdqmkch.mjs.map +1 -0
- package/dist/{workspace-DOm81oUo.cjs → workspace-Bp8FEkF-.cjs} +130 -15
- package/dist/workspace-Bp8FEkF-.cjs.map +1 -0
- package/package.json +15 -15
- package/dist/compose-CePlrbUw.cjs.map +0 -1
- package/dist/compose-IUuxRW0J.mjs.map +0 -1
- package/dist/databases-C2p5LGAp.cjs.map +0 -1
- package/dist/databases-hUHTuwhx.mjs.map +0 -1
- package/dist/engine-BI2xjCKt.mjs.map +0 -1
- package/dist/engine-y53kE_3H.cjs.map +0 -1
- package/dist/provider-B3Sv_a74.cjs +0 -173
- package/dist/provider-B3Sv_a74.cjs.map +0 -1
- package/dist/provider-D7rQzzzf.mjs +0 -138
- package/dist/provider-D7rQzzzf.mjs.map +0 -1
- package/dist/sniffer-DR8AlRCk.mjs.map +0 -1
- package/dist/sniffer-Y6GQOCXB.cjs.map +0 -1
- package/dist/stale-DGzpiN5S.mjs.map +0 -1
- package/dist/stale-yu2FkH3G.cjs.map +0 -1
- package/dist/types-B9yWJAis.d.mts.map +0 -1
- package/dist/types-ct7pdQRf.d.cts.map +0 -1
- package/dist/workspace-DOm81oUo.cjs.map +0 -1
- package/dist/workspace-QUTqYmVy.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -4,20 +4,20 @@ import { r as DEFAULT_TIMEOUT_MS, t as CommandFailed } from "./run-BJLIerMM.mjs"
|
|
|
4
4
|
import { c as getDokployCredentials, f as removeDokployCredentials, i as LocalSandbox, l as getDokployRegistryId, m as storeHostingerToken, p as storeDokployCredentials, s as getCredentialsPath, u as getDokployToken } from "./credentials-pAtB70k3.mjs";
|
|
5
5
|
import { l as withOwningTsconfigJsx, r as discover, u as ConstructGenerator } from "./discover-BPelzeGW.mjs";
|
|
6
6
|
import { t as appKey } from "./derive-B4vDpzgP.mjs";
|
|
7
|
-
import { A as deployedProblems, D as InvalidStages, O as TEST_STAGE, c as getAppGkmConfig, j as stageProblems, n as allConstructGlobs, s as getAppBuildOrder } from "./workspace-
|
|
7
|
+
import { A as deployedProblems, D as InvalidStages, O as TEST_STAGE, c as getAppGkmConfig, j as stageProblems, n as allConstructGlobs, s as getAppBuildOrder } from "./workspace-BBdqmkch.mjs";
|
|
8
8
|
import { ConfigNotFound, NotABackendApp, NotInAnApp, loadAppConfig, loadConfig, loadWorkspaceConfig, loadWorkspaceSettings, parseModuleConfig } from "./config.mjs";
|
|
9
|
-
import {
|
|
9
|
+
import { $ as constructGlobs, $t as getKeyPath, At as imageBuildCredentials, Bt as primaryPortKey, G as workerUnits, Gt as loadEnvFiles, Ht as createEntryWrapper, J as workerEntryDir, K as WorkerGenerator, Kt as loadSecretsForApp, Lt as describeServices, Mt as cacheBackendFor, Nt as eventsBackendFor, Pt as providerOf, Q as backendsOf$1, Qt as FileSecretsStore, Rt as fakeKey, S as dockerCommand, Ut as findAvailablePort, V as parseDevServices, Vt as createCredentialsPreload, Wt as isPortAvailable, X as CronGenerator, Y as QueueGenerator, Yt as secretsStoreFor, Z as FAKE_ENV, dt as quoteIdentifier, et as derivedContainers, fn as maskPassword, hn as withCustomSecret, in as deployIdentity, it as forgetState, jt as isImageBuild, lt as postgresDatabaseNames, mn as toEmbeddableSecrets, mt as pgClient, q as workerBundleName, qt as prepareEntryCredentials, rt as LOCAL_CA_PATH, tn as projectKey, tt as reconcileWorkspace } from "./seeds-DiXON7R8.mjs";
|
|
10
10
|
import { i as telemetryFor, n as runtimeFor, t as EndpointGenerator } from "./EndpointGenerator-DftalLYg.mjs";
|
|
11
11
|
import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
|
|
12
12
|
import { s as isCacheBackend, t as SubscriberGenerator } from "./SubscriberGenerator-5looQ3gB.mjs";
|
|
13
13
|
import { a as describeHolder, i as assignAppPorts, o as holderOf, r as appTag, s as withAppPorts, t as APP_TAG_ENV } from "./appPorts-C9z9Pzn9.mjs";
|
|
14
14
|
import { n as driversFor, r as eventsBackendsIn, t as cacheBackendsIn } from "./drivers-Ch1rJitn.mjs";
|
|
15
15
|
import { n as withCompute, r as withRoutes, t as manifestModule } from "./emit-C1e8qD08.mjs";
|
|
16
|
-
import { g as createStateStore, n as sniffAppEnvironment, o as DokployApi, x as keyFingerprint } from "./sniffer-
|
|
17
|
-
import { t as deploy$1 } from "./deploy-
|
|
18
|
-
import { a as stackOverrideFile, c as parseDigests, i as ComposePushNeedsBuild, l as pinnedRef, o as composeProject, r as ComposePinNeedsPull, s as stackDir, t as composeTarget, u as
|
|
16
|
+
import { g as createStateStore, n as sniffAppEnvironment, o as DokployApi, x as keyFingerprint } from "./sniffer-ByWtH28i.mjs";
|
|
17
|
+
import { t as deploy$1 } from "./deploy-BjsZpUQ3.mjs";
|
|
18
|
+
import { a as stackOverrideFile, c as parseDigests, d as removeEdgeRoutes, f as EDGE_PROJECT, i as ComposePushNeedsBuild, l as pinnedRef, o as composeProject, p as dockerCompose, r as ComposePinNeedsPull, s as stackDir, t as composeTarget, u as edgeDir } from "./compose-C40Wk9m6.mjs";
|
|
19
19
|
import { o as loadCredentialSchemas, t as CredentialsInvalid } from "./credentialSchemas-BJqRJNK4.mjs";
|
|
20
|
-
import { t as LocalStateStore } from "./LocalStateStore-
|
|
20
|
+
import { t as LocalStateStore } from "./LocalStateStore-C72bwpG2.mjs";
|
|
21
21
|
import { a as getExecCommand, c as validateProjectName, i as findWorkspaceRoot, n as detectPackageManager$1, o as getInstallCommand, r as findWorkspacePackages, s as getRunCommand, t as checkDirectoryExists } from "./utils-D_fxUqvU.mjs";
|
|
22
22
|
import { a as writeTestHarness, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, t as TEST_READY_ENV } from "./ready-ZZoNskrr.mjs";
|
|
23
23
|
import { createRequire } from "node:module";
|
|
@@ -47,7 +47,7 @@ import crypto from "crypto";
|
|
|
47
47
|
import { Function } from "@geekmidas/constructs/functions";
|
|
48
48
|
import { Topic } from "@geekmidas/constructs/topic";
|
|
49
49
|
//#region package.json
|
|
50
|
-
var version = "10.0.0-alpha.
|
|
50
|
+
var version = "10.0.0-alpha.79";
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/prompt.ts
|
|
53
53
|
/**
|
|
@@ -130,7 +130,7 @@ const logger$8 = console;
|
|
|
130
130
|
* Validate Dokploy token by making a test API call
|
|
131
131
|
*/
|
|
132
132
|
async function validateDokployToken(endpoint, token) {
|
|
133
|
-
const { DokployApi } = await import("./sniffer-
|
|
133
|
+
const { DokployApi } = await import("./sniffer-ByWtH28i.mjs").then((n) => n.c);
|
|
134
134
|
return new DokployApi({
|
|
135
135
|
baseUrl: endpoint,
|
|
136
136
|
token
|
|
@@ -2053,9 +2053,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
2053
2053
|
for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
2054
2054
|
logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
2055
2055
|
if (options.migrate || options.seed) {
|
|
2056
|
-
const { prepareDevDatabases } = await import("./migrate-
|
|
2056
|
+
const { prepareDevDatabases } = await import("./migrate-A2CLFl9G.mjs");
|
|
2057
2057
|
await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
|
|
2058
|
-
} else await import("./migrate-
|
|
2058
|
+
} else await import("./migrate-A2CLFl9G.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
2059
2059
|
logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
2060
2060
|
});
|
|
2061
2061
|
const appUrls = {};
|
|
@@ -3063,7 +3063,7 @@ async function buildApp(input) {
|
|
|
3063
3063
|
if (production?.bundle && !input.skipBundle) {
|
|
3064
3064
|
const outputDir = join(appRoot, ".gkm", "server");
|
|
3065
3065
|
const entryPoint = await writeSurfaceServer(outputDir, production);
|
|
3066
|
-
const { bundleServer } = await import("./bundler-
|
|
3066
|
+
const { bundleServer } = await import("./bundler-C45BuRdY.mjs");
|
|
3067
3067
|
await bundleServer({
|
|
3068
3068
|
entryPoint,
|
|
3069
3069
|
outputDir: join(outputDir, "dist"),
|
|
@@ -3187,7 +3187,7 @@ async function buildWorkers(input) {
|
|
|
3187
3187
|
});
|
|
3188
3188
|
logger$4.log(`Generated worker ${worker.id}: ${crons.length} crons, ${queues.length} queues, ${subscribers.length} subscribers`);
|
|
3189
3189
|
if (!input.bundle) continue;
|
|
3190
|
-
const { bundleServer } = await import("./bundler-
|
|
3190
|
+
const { bundleServer } = await import("./bundler-C45BuRdY.mjs");
|
|
3191
3191
|
const outfile = workerBundleName(worker.id);
|
|
3192
3192
|
await bundleServer({
|
|
3193
3193
|
entryPoint,
|
|
@@ -3257,7 +3257,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
3257
3257
|
let masterKey;
|
|
3258
3258
|
if (context.production?.bundle && !skipBundle) {
|
|
3259
3259
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
3260
|
-
const { bundleServer } = await import("./bundler-
|
|
3260
|
+
const { bundleServer } = await import("./bundler-C45BuRdY.mjs");
|
|
3261
3261
|
const allConstructs = [
|
|
3262
3262
|
...endpoints.map((e) => e.construct),
|
|
3263
3263
|
...functions.map((f) => f.construct),
|
|
@@ -3523,6 +3523,7 @@ async function composeCommand(options, deps = {}) {
|
|
|
3523
3523
|
...existsSync(override) ? { overrides: [override] } : {},
|
|
3524
3524
|
cwd: workspace.root
|
|
3525
3525
|
};
|
|
3526
|
+
if (await removeEdgeRoutes(edgeDir(deps.env ?? process.env), ref.project)) console.log(`🌐 Removed ${ref.project}'s routes from ${EDGE_PROJECT}.`);
|
|
3526
3527
|
await (deps.docker ?? dockerCompose).down(ref);
|
|
3527
3528
|
console.log(`🛑 Stopped ${ref.project}. Its volumes are kept.`);
|
|
3528
3529
|
return;
|
|
@@ -4958,25 +4959,25 @@ function loadPackageJson() {
|
|
|
4958
4959
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
4959
4960
|
*/
|
|
4960
4961
|
const GEEKMIDAS_VERSIONS = {
|
|
4961
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
4962
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
4963
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
4964
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
4965
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
4966
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
4967
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
4968
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
4969
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
4970
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
4971
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
4972
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
4973
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
4974
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
4975
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
4976
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
4977
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
4978
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
4979
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
4962
|
+
"@geekmidas/audit": "~10.0.0-alpha.79",
|
|
4963
|
+
"@geekmidas/auth": "~10.0.0-alpha.79",
|
|
4964
|
+
"@geekmidas/cache": "~10.0.0-alpha.79",
|
|
4965
|
+
"@geekmidas/client": "~10.0.0-alpha.79",
|
|
4966
|
+
"@geekmidas/cloud": "~10.0.0-alpha.79",
|
|
4967
|
+
"@geekmidas/constructs": "~10.0.0-alpha.79",
|
|
4968
|
+
"@geekmidas/db": "~10.0.0-alpha.79",
|
|
4969
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.79",
|
|
4970
|
+
"@geekmidas/envkit": "~10.0.0-alpha.79",
|
|
4971
|
+
"@geekmidas/errors": "~10.0.0-alpha.79",
|
|
4972
|
+
"@geekmidas/events": "~10.0.0-alpha.79",
|
|
4973
|
+
"@geekmidas/logger": "~10.0.0-alpha.79",
|
|
4974
|
+
"@geekmidas/manifest": "~10.0.0-alpha.79",
|
|
4975
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.79",
|
|
4976
|
+
"@geekmidas/schema": "~10.0.0-alpha.79",
|
|
4977
|
+
"@geekmidas/services": "~10.0.0-alpha.79",
|
|
4978
|
+
"@geekmidas/storage": "~10.0.0-alpha.79",
|
|
4979
|
+
"@geekmidas/telescope": "~10.0.0-alpha.79",
|
|
4980
|
+
"@geekmidas/testkit": "~10.0.0-alpha.79",
|
|
4980
4981
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
4981
4982
|
};
|
|
4982
4983
|
//#endregion
|
|
@@ -10741,7 +10742,7 @@ function testDatabases(reconciled) {
|
|
|
10741
10742
|
* starts without the reference data the app needs.
|
|
10742
10743
|
*/
|
|
10743
10744
|
async function migrateTestStage(workspace, env) {
|
|
10744
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
10745
|
+
const { migrateAndSeed } = await import("./migrate-A2CLFl9G.mjs");
|
|
10745
10746
|
const { discover } = await import("./discover-BPelzeGW.mjs").then((n) => n.i);
|
|
10746
10747
|
const sources = {};
|
|
10747
10748
|
const manifest = await discover({
|
|
@@ -11174,7 +11175,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
11174
11175
|
try {
|
|
11175
11176
|
const globalOptions = program.opts();
|
|
11176
11177
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11177
|
-
const { migrateCommand } = await import("./migrate-
|
|
11178
|
+
const { migrateCommand } = await import("./migrate-A2CLFl9G.mjs");
|
|
11178
11179
|
await migrateCommand({
|
|
11179
11180
|
...options,
|
|
11180
11181
|
...construct ? { construct } : {}
|
|
@@ -11188,7 +11189,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
11188
11189
|
try {
|
|
11189
11190
|
const globalOptions = program.opts();
|
|
11190
11191
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11191
|
-
const { seedCommand } = await import("./migrate-
|
|
11192
|
+
const { seedCommand } = await import("./migrate-A2CLFl9G.mjs");
|
|
11192
11193
|
await seedCommand({
|
|
11193
11194
|
...options,
|
|
11194
11195
|
...construct ? { construct } : {}
|
|
@@ -11202,7 +11203,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
11202
11203
|
try {
|
|
11203
11204
|
const globalOptions = program.opts();
|
|
11204
11205
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11205
|
-
const { migrationCommand } = await import("./migrate-
|
|
11206
|
+
const { migrationCommand } = await import("./migrate-A2CLFl9G.mjs");
|
|
11206
11207
|
await migrationCommand({
|
|
11207
11208
|
construct,
|
|
11208
11209
|
...name ? { name } : {}
|
|
@@ -11306,7 +11307,7 @@ program.command("secrets:add").description("Build the keys a stage must be given
|
|
|
11306
11307
|
try {
|
|
11307
11308
|
const globalOptions = program.opts();
|
|
11308
11309
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11309
|
-
const { secretsAddCommand } = await import("./add-
|
|
11310
|
+
const { secretsAddCommand } = await import("./add-UFiIrlTj.mjs");
|
|
11310
11311
|
await secretsAddCommand(options);
|
|
11311
11312
|
} catch (error) {
|
|
11312
11313
|
console.error(formatError(error));
|
|
@@ -11317,7 +11318,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
11317
11318
|
try {
|
|
11318
11319
|
const globalOptions = program.opts();
|
|
11319
11320
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11320
|
-
const { encryptionRotateCommand } = await import("./encryption-
|
|
11321
|
+
const { encryptionRotateCommand } = await import("./encryption-MeDrE-rZ.mjs");
|
|
11321
11322
|
await encryptionRotateCommand(construct, options);
|
|
11322
11323
|
} catch (error) {
|
|
11323
11324
|
console.error(formatError(error));
|
|
@@ -11328,7 +11329,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
11328
11329
|
try {
|
|
11329
11330
|
const globalOptions = program.opts();
|
|
11330
11331
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11331
|
-
const { encryptionRetireCommand } = await import("./encryption-
|
|
11332
|
+
const { encryptionRetireCommand } = await import("./encryption-MeDrE-rZ.mjs");
|
|
11332
11333
|
await encryptionRetireCommand(construct, key, options);
|
|
11333
11334
|
} catch (error) {
|
|
11334
11335
|
console.error(formatError(error));
|
|
@@ -11371,7 +11372,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
11371
11372
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11372
11373
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
11373
11374
|
const { reconcileMissingSecrets } = await import("./reconcile--I7V4Klj.mjs");
|
|
11374
|
-
const { secretsStoreFor } = await import("./
|
|
11375
|
+
const { secretsStoreFor } = await import("./seeds-DiXON7R8.mjs").then((n) => n.Zt);
|
|
11375
11376
|
const { workspace } = await loadWorkspaceConfig();
|
|
11376
11377
|
const stage = options.stage ?? workspace.stages.local;
|
|
11377
11378
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -11380,7 +11381,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
11380
11381
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
11381
11382
|
process.exit(1);
|
|
11382
11383
|
}
|
|
11383
|
-
const { derivedContainers } = await import("./
|
|
11384
|
+
const { derivedContainers } = await import("./seeds-DiXON7R8.mjs").then((n) => n.nt);
|
|
11384
11385
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
11385
11386
|
if (!result) {
|
|
11386
11387
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -11398,7 +11399,7 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
11398
11399
|
try {
|
|
11399
11400
|
const globalOptions = program.opts();
|
|
11400
11401
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11401
|
-
const { secretsMigrateCommand } = await import("./migrate-
|
|
11402
|
+
const { secretsMigrateCommand } = await import("./migrate-DWUbYY5r.mjs");
|
|
11402
11403
|
await secretsMigrateCommand(options);
|
|
11403
11404
|
} catch (error) {
|
|
11404
11405
|
console.error(formatError(error));
|
|
@@ -11406,7 +11407,7 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
11406
11407
|
}
|
|
11407
11408
|
});
|
|
11408
11409
|
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 <list>", "Server targets: run MinIO and/or Mailpit (minio,mailpit) for mail and buckets the stage's secrets don't configure. Not production-grade").action(async (options) => {
|
|
11409
|
-
const { deployCli } = await import("./cli-
|
|
11410
|
+
const { deployCli } = await import("./cli-gvc3urUl.mjs");
|
|
11410
11411
|
const globalOptions = program.opts();
|
|
11411
11412
|
const code = await deployCli({
|
|
11412
11413
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -11423,7 +11424,7 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
11423
11424
|
});
|
|
11424
11425
|
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) => {
|
|
11425
11426
|
try {
|
|
11426
|
-
const { rollbackStage } = await import("./rollback-
|
|
11427
|
+
const { rollbackStage } = await import("./rollback-Cq5s3WnD.mjs").then((n) => n.a);
|
|
11427
11428
|
const { terminalCredentials } = await import("./terminal-BdvrmkaC.mjs");
|
|
11428
11429
|
const globalOptions = program.opts();
|
|
11429
11430
|
await rollbackStage({
|
|
@@ -11459,7 +11460,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
11459
11460
|
try {
|
|
11460
11461
|
const globalOptions = program.opts();
|
|
11461
11462
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11462
|
-
const { deployGithubCommand } = await import("./github-
|
|
11463
|
+
const { deployGithubCommand } = await import("./github-Dyrjo0xd.mjs");
|
|
11463
11464
|
await deployGithubCommand(options);
|
|
11464
11465
|
} catch (error) {
|
|
11465
11466
|
console.error(formatError(error));
|