@geekmidas/cli 10.0.0-alpha.84 → 10.0.0-alpha.85
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-CTsUFLNQ.mjs → LegacyStateStore-CJ2o18nT.mjs} +2 -2
- package/dist/{LegacyStateStore-CTsUFLNQ.mjs.map → LegacyStateStore-CJ2o18nT.mjs.map} +1 -1
- package/dist/{LegacyStateStore-EDT2TUSe.cjs → LegacyStateStore-xGxPwP-m.cjs} +2 -2
- package/dist/{LegacyStateStore-EDT2TUSe.cjs.map → LegacyStateStore-xGxPwP-m.cjs.map} +1 -1
- package/dist/{LocalStateStore-D1VfxRuK.mjs → LocalStateStore-ByVjUIvS.mjs} +12 -10
- package/dist/LocalStateStore-ByVjUIvS.mjs.map +1 -0
- package/dist/{LocalStateStore-CdpzTvPn.cjs → LocalStateStore-CkjFD-4b.cjs} +11 -9
- package/dist/LocalStateStore-CkjFD-4b.cjs.map +1 -0
- package/dist/{S3StateStore-BPM74zwv.cjs → S3StateStore-iqMezbES.cjs} +2 -2
- package/dist/{S3StateStore-BPM74zwv.cjs.map → S3StateStore-iqMezbES.cjs.map} +1 -1
- package/dist/{S3StateStore-DVZ1YuGJ.mjs → S3StateStore-kpFlGVLE.mjs} +2 -2
- package/dist/{S3StateStore-DVZ1YuGJ.mjs.map → S3StateStore-kpFlGVLE.mjs.map} +1 -1
- package/dist/{SSMStateStore-DLvnGyyl.mjs → SSMStateStore-Bkz5ztfo.mjs} +2 -2
- package/dist/{SSMStateStore-DLvnGyyl.mjs.map → SSMStateStore-Bkz5ztfo.mjs.map} +1 -1
- package/dist/{SSMStateStore-qerm5c36.cjs → SSMStateStore-Z2OMVCtq.cjs} +2 -2
- package/dist/{SSMStateStore-qerm5c36.cjs.map → SSMStateStore-Z2OMVCtq.cjs.map} +1 -1
- package/dist/{add-BQ8v1ZII.cjs → add-CM7RLj89.cjs} +2 -2
- package/dist/{add-BQ8v1ZII.cjs.map → add-CM7RLj89.cjs.map} +1 -1
- package/dist/{add-DbnzC7Kl.mjs → add-jpX7M8RB.mjs} +2 -2
- package/dist/{add-DbnzC7Kl.mjs.map → add-jpX7M8RB.mjs.map} +1 -1
- package/dist/{bundler-D4030Afw.mjs → bundler-CaAKsbcN.mjs} +5 -5
- package/dist/{bundler-D4030Afw.mjs.map → bundler-CaAKsbcN.mjs.map} +1 -1
- package/dist/{bundler-DjrRffko.cjs → bundler-lEBH8ENP.cjs} +5 -5
- package/dist/{bundler-DjrRffko.cjs.map → bundler-lEBH8ENP.cjs.map} +1 -1
- package/dist/{cli-DwTa9d_8.mjs → cli-BV3jzbk0.mjs} +3 -3
- package/dist/{cli-DwTa9d_8.mjs.map → cli-BV3jzbk0.mjs.map} +1 -1
- package/dist/{cli-D8YQAYUX.cjs → cli-DQCBcNlN.cjs} +3 -3
- package/dist/{cli-D8YQAYUX.cjs.map → cli-DQCBcNlN.cjs.map} +1 -1
- package/dist/{compose-C5wz8mf9.mjs → compose-CQK6StuE.mjs} +24 -6
- package/dist/compose-CQK6StuE.mjs.map +1 -0
- package/dist/{compose-DqWh1TaO.cjs → compose-CSR0yEJm.cjs} +23 -5
- package/dist/compose-CSR0yEJm.cjs.map +1 -0
- package/dist/deploy/public.cjs +6 -6
- package/dist/deploy/public.mjs +6 -6
- package/dist/{deploy-BwIKGxWH.mjs → deploy-BuU117CA.mjs} +4 -4
- package/dist/{deploy-BwIKGxWH.mjs.map → deploy-BuU117CA.mjs.map} +1 -1
- package/dist/{deploy-C8sWg81_.cjs → deploy-Bw2Mm3x3.cjs} +4 -4
- package/dist/{deploy-C8sWg81_.cjs.map → deploy-Bw2Mm3x3.cjs.map} +1 -1
- package/dist/{dokploy-BkRxJbfi.cjs → dokploy-C81J1MVK.cjs} +2 -2
- package/dist/{dokploy-BkRxJbfi.cjs.map → dokploy-C81J1MVK.cjs.map} +1 -1
- package/dist/{dokploy-ijjms1-h.mjs → dokploy-DWALWk7u.mjs} +2 -2
- package/dist/{dokploy-ijjms1-h.mjs.map → dokploy-DWALWk7u.mjs.map} +1 -1
- package/dist/{encryption-g6PzwwfL.cjs → encryption-B8h8Tna0.cjs} +2 -2
- package/dist/{encryption-g6PzwwfL.cjs.map → encryption-B8h8Tna0.cjs.map} +1 -1
- package/dist/{encryption-BRcBAmjL.mjs → encryption-DpAum8W7.mjs} +2 -2
- package/dist/{encryption-BRcBAmjL.mjs.map → encryption-DpAum8W7.mjs.map} +1 -1
- package/dist/{engine-DLEJsZ3i.cjs → engine-B01fjhLt.cjs} +3 -3
- package/dist/{engine-DLEJsZ3i.cjs.map → engine-B01fjhLt.cjs.map} +1 -1
- package/dist/{engine-BP0CZ5fh.mjs → engine-BXCtEhSH.mjs} +3 -3
- package/dist/{engine-BP0CZ5fh.mjs.map → engine-BXCtEhSH.mjs.map} +1 -1
- package/dist/{github-Zs-dVJbR.mjs → github-8B68qrLs.mjs} +2 -2
- package/dist/{github-Zs-dVJbR.mjs.map → github-8B68qrLs.mjs.map} +1 -1
- package/dist/{github-B8YjwdLK.cjs → github-Cis9tYur.cjs} +2 -2
- package/dist/{github-B8YjwdLK.cjs.map → github-Cis9tYur.cjs.map} +1 -1
- package/dist/index.cjs +45 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +45 -45
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-BfZN1S32.cjs → migrate-BBCp5blp.cjs} +2 -2
- package/dist/{migrate-BfZN1S32.cjs.map → migrate-BBCp5blp.cjs.map} +1 -1
- package/dist/{migrate-CdXcX0XR.mjs → migrate-BeTWLSeC.mjs} +2 -2
- package/dist/{migrate-CdXcX0XR.mjs.map → migrate-BeTWLSeC.mjs.map} +1 -1
- package/dist/{migrate-FoL_mZIz.cjs → migrate-CPWn7A51.cjs} +2 -2
- package/dist/{migrate-FoL_mZIz.cjs.map → migrate-CPWn7A51.cjs.map} +1 -1
- package/dist/{migrate-DOMU4uKe.mjs → migrate-sDq7NApJ.mjs} +2 -2
- package/dist/{migrate-DOMU4uKe.mjs.map → migrate-sDq7NApJ.mjs.map} +1 -1
- package/dist/{resolve-r7PAs6ng.mjs → resolve-CXbwJ_iu.mjs} +3 -3
- package/dist/{resolve-r7PAs6ng.mjs.map → resolve-CXbwJ_iu.mjs.map} +1 -1
- package/dist/{resolve-T2I-5FcT.cjs → resolve-CztIqBOI.cjs} +3 -3
- package/dist/{resolve-T2I-5FcT.cjs.map → resolve-CztIqBOI.cjs.map} +1 -1
- package/dist/{rollback-BSdxnW3X.mjs → rollback-ByyFE5lV.mjs} +4 -4
- package/dist/{rollback-BSdxnW3X.mjs.map → rollback-ByyFE5lV.mjs.map} +1 -1
- package/dist/{rollback-CPSDjGse.cjs → rollback-CyIJ4xGJ.cjs} +4 -4
- package/dist/{rollback-CPSDjGse.cjs.map → rollback-CyIJ4xGJ.cjs.map} +1 -1
- package/dist/{seeds-BK8caVMm.mjs → seeds-9C5CkDon.mjs} +31 -3
- package/dist/seeds-9C5CkDon.mjs.map +1 -0
- package/dist/{seeds-DQ0FG57Z.cjs → seeds-B_Beuv0o.cjs} +30 -2
- package/dist/seeds-B_Beuv0o.cjs.map +1 -0
- package/dist/{sniffer-hSf5mRgV.cjs → sniffer-3fA0iExx.cjs} +5 -5
- package/dist/{sniffer-hSf5mRgV.cjs.map → sniffer-3fA0iExx.cjs.map} +1 -1
- package/dist/{sniffer-CqE_KTTp.mjs → sniffer-DgBkaLAu.mjs} +5 -5
- package/dist/{sniffer-CqE_KTTp.mjs.map → sniffer-DgBkaLAu.mjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/package.json +15 -15
- package/dist/LocalStateStore-CdpzTvPn.cjs.map +0 -1
- package/dist/LocalStateStore-D1VfxRuK.mjs.map +0 -1
- package/dist/compose-C5wz8mf9.mjs.map +0 -1
- package/dist/compose-DqWh1TaO.cjs.map +0 -1
- package/dist/seeds-BK8caVMm.mjs.map +0 -1
- package/dist/seeds-DQ0FG57Z.cjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -6,18 +6,18 @@ import { l as withOwningTsconfigJsx, r as discover, u as ConstructGenerator } fr
|
|
|
6
6
|
import { t as appKey } from "./derive-B4vDpzgP.mjs";
|
|
7
7
|
import { I as stageSampleRate, M as deployedProblems, N as stageProblems, O as InvalidStages, c as getAppBuildOrder, k as TEST_STAGE, l as getAppGkmConfig, r as allConstructGlobs } from "./workspace-Drz4jsvy.mjs";
|
|
8
8
|
import { ConfigNotFound, NotABackendApp, NotInAnApp, loadAppConfig, loadConfig, loadWorkspaceConfig, loadWorkspaceSettings, parseModuleConfig } from "./config.mjs";
|
|
9
|
-
import { $t as describeServices, An as maskPassword, B as WorkerGenerator, F as parseDevServices, Ft as cacheBackendFor, G as FAKE_ENV, H as workerEntryDir, Ht as TELEMETRY_CONTAINER, It as eventsBackendFor, J as derivedContainers, Jt as scopeTelemetryEnv, K as backendsOf$1, Kt as appTelemetry, Lt as providerOf, Mn as toEmbeddableSecrets, Nn as withCustomSecret, Nt as imageBuildCredentials, Pn as LOCAL_LOGS_EMAIL, Pt as isImageBuild, Sn as deployIdentity, U as QueueGenerator, V as workerBundleName, W as CronGenerator, Xt as telemetryOf, Y as reconcileWorkspace, Yt as surfaceClientTraced, _n as getKeyPath, an as createEntryWrapper, bt as pgClient, cn as loadEnvFiles, ct as LOCAL_CA_PATH, dn as prepareEntryCredentials, en as fakeKey, et as readLocalCredentials, gn as FileSecretsStore, gt as quoteIdentifier, in as createCredentialsPreload, ln as loadPortState, lt as forgetState, mt as postgresDatabaseNames, nn as portsOf, on as findAvailablePort, pn as secretsStoreFor, q as constructGlobs, rn as primaryPortKey, sn as isPortAvailable, un as loadSecretsForApp, x as dockerCommand, yn as projectKey, z as workerUnits, zt as CLUSTER_DATABASE } from "./seeds-
|
|
9
|
+
import { $t as describeServices, An as maskPassword, B as WorkerGenerator, F as parseDevServices, Ft as cacheBackendFor, G as FAKE_ENV, H as workerEntryDir, Ht as TELEMETRY_CONTAINER, It as eventsBackendFor, J as derivedContainers, Jt as scopeTelemetryEnv, K as backendsOf$1, Kt as appTelemetry, Lt as providerOf, Mn as toEmbeddableSecrets, Nn as withCustomSecret, Nt as imageBuildCredentials, Pn as LOCAL_LOGS_EMAIL, Pt as isImageBuild, Sn as deployIdentity, U as QueueGenerator, V as workerBundleName, W as CronGenerator, Xt as telemetryOf, Y as reconcileWorkspace, Yt as surfaceClientTraced, _n as getKeyPath, an as createEntryWrapper, bt as pgClient, cn as loadEnvFiles, ct as LOCAL_CA_PATH, dn as prepareEntryCredentials, en as fakeKey, et as readLocalCredentials, gn as FileSecretsStore, gt as quoteIdentifier, in as createCredentialsPreload, ln as loadPortState, lt as forgetState, mt as postgresDatabaseNames, nn as portsOf, on as findAvailablePort, pn as secretsStoreFor, q as constructGlobs, rn as primaryPortKey, sn as isPortAvailable, un as loadSecretsForApp, x as dockerCommand, yn as projectKey, z as workerUnits, zt as CLUSTER_DATABASE } from "./seeds-9C5CkDon.mjs";
|
|
10
10
|
import { c as startTelemetryCode, l as telemetryFor, n as runtimeFor, o as mountRequestSpansCode, r as parseTelemetryFlag, s as routeTelemetry, t as EndpointGenerator, u as writeTelemetryModule } from "./EndpointGenerator-CVc6Oi1Y.mjs";
|
|
11
11
|
import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
|
|
12
12
|
import { s as isCacheBackend, t as SubscriberGenerator } from "./SubscriberGenerator-BPqQf8fB.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-DTZzxeIl.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, 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-
|
|
16
|
+
import { g as createStateStore, n as sniffAppEnvironment, o as DokployApi, x as keyFingerprint } from "./sniffer-DgBkaLAu.mjs";
|
|
17
|
+
import { t as deploy$1 } from "./deploy-BuU117CA.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-CQK6StuE.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-ByVjUIvS.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-b6vm0-W-.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.85";
|
|
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-DgBkaLAu.mjs").then((n) => n.c);
|
|
134
134
|
return new DokployApi({
|
|
135
135
|
baseUrl: endpoint,
|
|
136
136
|
token
|
|
@@ -2233,9 +2233,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
2233
2233
|
for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
2234
2234
|
logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
2235
2235
|
if (options.migrate || options.seed) {
|
|
2236
|
-
const { prepareDevDatabases } = await import("./migrate-
|
|
2236
|
+
const { prepareDevDatabases } = await import("./migrate-BeTWLSeC.mjs");
|
|
2237
2237
|
await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
|
|
2238
|
-
} else await import("./migrate-
|
|
2238
|
+
} else await import("./migrate-BeTWLSeC.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
2239
2239
|
logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
2240
2240
|
});
|
|
2241
2241
|
const appUrls = {};
|
|
@@ -3287,7 +3287,7 @@ async function buildApp(input) {
|
|
|
3287
3287
|
...production,
|
|
3288
3288
|
...telemetry ? { telemetry } : {}
|
|
3289
3289
|
});
|
|
3290
|
-
const { bundleServer } = await import("./bundler-
|
|
3290
|
+
const { bundleServer } = await import("./bundler-CaAKsbcN.mjs");
|
|
3291
3291
|
await bundleServer({
|
|
3292
3292
|
entryPoint,
|
|
3293
3293
|
outputDir: join(outputDir, "dist"),
|
|
@@ -3432,7 +3432,7 @@ async function buildWorkers(input) {
|
|
|
3432
3432
|
});
|
|
3433
3433
|
logger$4.log(`Generated worker ${worker.id}: ${crons.length} crons, ${queues.length} queues, ${subscribers.length} subscribers`);
|
|
3434
3434
|
if (!input.bundle) continue;
|
|
3435
|
-
const { bundleServer } = await import("./bundler-
|
|
3435
|
+
const { bundleServer } = await import("./bundler-CaAKsbcN.mjs");
|
|
3436
3436
|
const outfile = workerBundleName(worker.id);
|
|
3437
3437
|
await bundleServer({
|
|
3438
3438
|
entryPoint,
|
|
@@ -3518,7 +3518,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
3518
3518
|
let masterKey;
|
|
3519
3519
|
if (context.production?.bundle && !skipBundle) {
|
|
3520
3520
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
3521
|
-
const { bundleServer } = await import("./bundler-
|
|
3521
|
+
const { bundleServer } = await import("./bundler-CaAKsbcN.mjs");
|
|
3522
3522
|
const allConstructs = [
|
|
3523
3523
|
...endpoints.map((e) => e.construct),
|
|
3524
3524
|
...functions.map((f) => f.construct),
|
|
@@ -5220,25 +5220,25 @@ function loadPackageJson() {
|
|
|
5220
5220
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
5221
5221
|
*/
|
|
5222
5222
|
const GEEKMIDAS_VERSIONS = {
|
|
5223
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
5224
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
5225
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
5226
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
5227
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
5228
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
5229
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
5230
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
5231
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
5232
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
5233
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
5234
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
5235
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
5236
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
5237
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
5238
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
5239
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
5240
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
5241
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
5223
|
+
"@geekmidas/audit": "~10.0.0-alpha.85",
|
|
5224
|
+
"@geekmidas/auth": "~10.0.0-alpha.85",
|
|
5225
|
+
"@geekmidas/cache": "~10.0.0-alpha.85",
|
|
5226
|
+
"@geekmidas/client": "~10.0.0-alpha.85",
|
|
5227
|
+
"@geekmidas/cloud": "~10.0.0-alpha.85",
|
|
5228
|
+
"@geekmidas/constructs": "~10.0.0-alpha.85",
|
|
5229
|
+
"@geekmidas/db": "~10.0.0-alpha.85",
|
|
5230
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.85",
|
|
5231
|
+
"@geekmidas/envkit": "~10.0.0-alpha.85",
|
|
5232
|
+
"@geekmidas/errors": "~10.0.0-alpha.85",
|
|
5233
|
+
"@geekmidas/events": "~10.0.0-alpha.85",
|
|
5234
|
+
"@geekmidas/logger": "~10.0.0-alpha.85",
|
|
5235
|
+
"@geekmidas/manifest": "~10.0.0-alpha.85",
|
|
5236
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.85",
|
|
5237
|
+
"@geekmidas/schema": "~10.0.0-alpha.85",
|
|
5238
|
+
"@geekmidas/services": "~10.0.0-alpha.85",
|
|
5239
|
+
"@geekmidas/storage": "~10.0.0-alpha.85",
|
|
5240
|
+
"@geekmidas/telescope": "~10.0.0-alpha.85",
|
|
5241
|
+
"@geekmidas/testkit": "~10.0.0-alpha.85",
|
|
5242
5242
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
5243
5243
|
};
|
|
5244
5244
|
//#endregion
|
|
@@ -5639,7 +5639,7 @@ const COMMIT = /^[0-9a-f]{40}$/;
|
|
|
5639
5639
|
* The `uses:` value for the stages action, with a comment saying which CLI
|
|
5640
5640
|
* release the pinned commit is.
|
|
5641
5641
|
*/
|
|
5642
|
-
function stagesActionUses(commit = "
|
|
5642
|
+
function stagesActionUses(commit = "66f8094280d04ad763f978cdd0a55aeaa5b4180b", version = cliVersion()) {
|
|
5643
5643
|
return commit && COMMIT.test(commit) ? `${STAGES_ACTION}@${commit} # @geekmidas/cli ${version}` : `${STAGES_ACTION}@main # pin to a commit SHA: see the action's README`;
|
|
5644
5644
|
}
|
|
5645
5645
|
//#endregion
|
|
@@ -11311,7 +11311,7 @@ function testDatabases(reconciled) {
|
|
|
11311
11311
|
* starts without the reference data the app needs.
|
|
11312
11312
|
*/
|
|
11313
11313
|
async function migrateTestStage(workspace, env) {
|
|
11314
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
11314
|
+
const { migrateAndSeed } = await import("./migrate-BeTWLSeC.mjs");
|
|
11315
11315
|
const { discover } = await import("./discover-BPelzeGW.mjs").then((n) => n.i);
|
|
11316
11316
|
const sources = {};
|
|
11317
11317
|
const manifest = await discover({
|
|
@@ -11755,7 +11755,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
11755
11755
|
try {
|
|
11756
11756
|
const globalOptions = program.opts();
|
|
11757
11757
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11758
|
-
const { migrateCommand } = await import("./migrate-
|
|
11758
|
+
const { migrateCommand } = await import("./migrate-BeTWLSeC.mjs");
|
|
11759
11759
|
await migrateCommand({
|
|
11760
11760
|
...options,
|
|
11761
11761
|
...construct ? { construct } : {}
|
|
@@ -11769,7 +11769,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
11769
11769
|
try {
|
|
11770
11770
|
const globalOptions = program.opts();
|
|
11771
11771
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11772
|
-
const { seedCommand } = await import("./migrate-
|
|
11772
|
+
const { seedCommand } = await import("./migrate-BeTWLSeC.mjs");
|
|
11773
11773
|
await seedCommand({
|
|
11774
11774
|
...options,
|
|
11775
11775
|
...construct ? { construct } : {}
|
|
@@ -11783,7 +11783,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
11783
11783
|
try {
|
|
11784
11784
|
const globalOptions = program.opts();
|
|
11785
11785
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11786
|
-
const { migrationCommand } = await import("./migrate-
|
|
11786
|
+
const { migrationCommand } = await import("./migrate-BeTWLSeC.mjs");
|
|
11787
11787
|
await migrationCommand({
|
|
11788
11788
|
construct,
|
|
11789
11789
|
...name ? { name } : {}
|
|
@@ -11891,7 +11891,7 @@ program.command("secrets:add").description("Build the keys a stage must be given
|
|
|
11891
11891
|
try {
|
|
11892
11892
|
const globalOptions = program.opts();
|
|
11893
11893
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11894
|
-
const { secretsAddCommand } = await import("./add-
|
|
11894
|
+
const { secretsAddCommand } = await import("./add-jpX7M8RB.mjs");
|
|
11895
11895
|
await secretsAddCommand(options);
|
|
11896
11896
|
} catch (error) {
|
|
11897
11897
|
console.error(formatError(error));
|
|
@@ -11902,7 +11902,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
11902
11902
|
try {
|
|
11903
11903
|
const globalOptions = program.opts();
|
|
11904
11904
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11905
|
-
const { encryptionRotateCommand } = await import("./encryption-
|
|
11905
|
+
const { encryptionRotateCommand } = await import("./encryption-DpAum8W7.mjs");
|
|
11906
11906
|
await encryptionRotateCommand(construct, options);
|
|
11907
11907
|
} catch (error) {
|
|
11908
11908
|
console.error(formatError(error));
|
|
@@ -11913,7 +11913,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
11913
11913
|
try {
|
|
11914
11914
|
const globalOptions = program.opts();
|
|
11915
11915
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11916
|
-
const { encryptionRetireCommand } = await import("./encryption-
|
|
11916
|
+
const { encryptionRetireCommand } = await import("./encryption-DpAum8W7.mjs");
|
|
11917
11917
|
await encryptionRetireCommand(construct, key, options);
|
|
11918
11918
|
} catch (error) {
|
|
11919
11919
|
console.error(formatError(error));
|
|
@@ -11956,7 +11956,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
11956
11956
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11957
11957
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
11958
11958
|
const { reconcileMissingSecrets } = await import("./reconcile--I7V4Klj.mjs");
|
|
11959
|
-
const { secretsStoreFor } = await import("./seeds-
|
|
11959
|
+
const { secretsStoreFor } = await import("./seeds-9C5CkDon.mjs").then((n) => n.hn);
|
|
11960
11960
|
const { workspace } = await loadWorkspaceConfig();
|
|
11961
11961
|
const stage = options.stage ?? workspace.stages.local;
|
|
11962
11962
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -11965,7 +11965,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
11965
11965
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
11966
11966
|
process.exit(1);
|
|
11967
11967
|
}
|
|
11968
|
-
const { derivedContainers } = await import("./seeds-
|
|
11968
|
+
const { derivedContainers } = await import("./seeds-9C5CkDon.mjs").then((n) => n.X);
|
|
11969
11969
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
11970
11970
|
if (!result) {
|
|
11971
11971
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -11983,7 +11983,7 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
11983
11983
|
try {
|
|
11984
11984
|
const globalOptions = program.opts();
|
|
11985
11985
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11986
|
-
const { secretsMigrateCommand } = await import("./migrate-
|
|
11986
|
+
const { secretsMigrateCommand } = await import("./migrate-sDq7NApJ.mjs");
|
|
11987
11987
|
await secretsMigrateCommand(options);
|
|
11988
11988
|
} catch (error) {
|
|
11989
11989
|
console.error(formatError(error));
|
|
@@ -11991,7 +11991,7 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
11991
11991
|
}
|
|
11992
11992
|
});
|
|
11993
11993
|
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) => {
|
|
11994
|
-
const { deployCli } = await import("./cli-
|
|
11994
|
+
const { deployCli } = await import("./cli-BV3jzbk0.mjs");
|
|
11995
11995
|
const globalOptions = program.opts();
|
|
11996
11996
|
const code = await deployCli({
|
|
11997
11997
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -12008,7 +12008,7 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
12008
12008
|
});
|
|
12009
12009
|
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) => {
|
|
12010
12010
|
try {
|
|
12011
|
-
const { rollbackStage } = await import("./rollback-
|
|
12011
|
+
const { rollbackStage } = await import("./rollback-ByyFE5lV.mjs").then((n) => n.a);
|
|
12012
12012
|
const { terminalCredentials } = await import("./terminal-BdvrmkaC.mjs");
|
|
12013
12013
|
const globalOptions = program.opts();
|
|
12014
12014
|
await rollbackStage({
|
|
@@ -12044,7 +12044,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
12044
12044
|
try {
|
|
12045
12045
|
const globalOptions = program.opts();
|
|
12046
12046
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12047
|
-
const { deployGithubCommand } = await import("./github-
|
|
12047
|
+
const { deployGithubCommand } = await import("./github-8B68qrLs.mjs");
|
|
12048
12048
|
await deployGithubCommand(options);
|
|
12049
12049
|
} catch (error) {
|
|
12050
12050
|
console.error(formatError(error));
|