@geekmidas/cli 10.0.0-alpha.81 → 10.0.0-alpha.82
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/{EndpointGenerator-DftalLYg.mjs → EndpointGenerator-DtnIGafh.mjs} +71 -8
- package/dist/EndpointGenerator-DtnIGafh.mjs.map +1 -0
- package/dist/{EndpointGenerator-CP6sBvQV.cjs → EndpointGenerator-cKlnllIu.cjs} +88 -7
- package/dist/EndpointGenerator-cKlnllIu.cjs.map +1 -0
- package/dist/{OpenApiTsGenerator-nu1r1NgB.mjs → OpenApiTsGenerator-ByRPMbBN.mjs} +34 -7
- package/dist/OpenApiTsGenerator-ByRPMbBN.mjs.map +1 -0
- package/dist/{OpenApiTsGenerator-CKBCckKz.cjs → OpenApiTsGenerator-CdUM6Hvv.cjs} +34 -7
- package/dist/OpenApiTsGenerator-CdUM6Hvv.cjs.map +1 -0
- package/dist/{SubscriberGenerator-CajwOa5W.cjs → SubscriberGenerator-CYriX5BV.cjs} +2 -2
- package/dist/{SubscriberGenerator-CajwOa5W.cjs.map → SubscriberGenerator-CYriX5BV.cjs.map} +1 -1
- package/dist/{SubscriberGenerator-5looQ3gB.mjs → SubscriberGenerator-DQZeGkDW.mjs} +2 -2
- package/dist/{SubscriberGenerator-5looQ3gB.mjs.map → SubscriberGenerator-DQZeGkDW.mjs.map} +1 -1
- package/dist/{add-DF9IHQov.cjs → add-1T3y6E4M.cjs} +2 -2
- package/dist/{add-DF9IHQov.cjs.map → add-1T3y6E4M.cjs.map} +1 -1
- package/dist/{add-Bn1bqt0c.mjs → add-DnYHJOap.mjs} +2 -2
- package/dist/{add-Bn1bqt0c.mjs.map → add-DnYHJOap.mjs.map} +1 -1
- package/dist/{bundler-Ba_LoFXI.mjs → bundler-DlKdxCGh.mjs} +3 -3
- package/dist/{bundler-Ba_LoFXI.mjs.map → bundler-DlKdxCGh.mjs.map} +1 -1
- package/dist/{bundler-DeIVbloM.cjs → bundler-YNvLdvlh.cjs} +3 -3
- package/dist/{bundler-DeIVbloM.cjs.map → bundler-YNvLdvlh.cjs.map} +1 -1
- package/dist/{cli-BB1KOkfo.cjs → cli-CWee1-wU.cjs} +3 -3
- package/dist/{cli-BB1KOkfo.cjs.map → cli-CWee1-wU.cjs.map} +1 -1
- package/dist/{cli-CznHL-4-.mjs → cli-qMszGvDu.mjs} +3 -3
- package/dist/{cli-CznHL-4-.mjs.map → cli-qMszGvDu.mjs.map} +1 -1
- package/dist/{compose-BxIsChn5.mjs → compose-D4sD4Lgr.mjs} +4 -4
- package/dist/{compose-BxIsChn5.mjs.map → compose-D4sD4Lgr.mjs.map} +1 -1
- package/dist/{compose-76ho0pUg.cjs → compose-qnDyPJNp.cjs} +4 -4
- package/dist/{compose-76ho0pUg.cjs.map → compose-qnDyPJNp.cjs.map} +1 -1
- package/dist/deploy/public.cjs +5 -5
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +5 -5
- package/dist/{deploy-BRUx9hiA.mjs → deploy-C00DAKOt.mjs} +3 -3
- package/dist/{deploy-BRUx9hiA.mjs.map → deploy-C00DAKOt.mjs.map} +1 -1
- package/dist/{deploy-DuHRWNeJ.cjs → deploy-CXP2fXvK.cjs} +3 -3
- package/dist/{deploy-DuHRWNeJ.cjs.map → deploy-CXP2fXvK.cjs.map} +1 -1
- package/dist/{dokploy-BTO37Co8.mjs → dokploy-B3zoCmJb.mjs} +2 -2
- package/dist/{dokploy-BTO37Co8.mjs.map → dokploy-B3zoCmJb.mjs.map} +1 -1
- package/dist/{dokploy-Q4iYDmls.cjs → dokploy-BHcSmghb.cjs} +2 -2
- package/dist/{dokploy-Q4iYDmls.cjs.map → dokploy-BHcSmghb.cjs.map} +1 -1
- package/dist/{drivers-Ch1rJitn.mjs → drivers-B4RP2B2O.mjs} +2 -2
- package/dist/{drivers-Ch1rJitn.mjs.map → drivers-B4RP2B2O.mjs.map} +1 -1
- package/dist/{drivers-BdvtCKc7.cjs → drivers-CJx76mcb.cjs} +2 -2
- package/dist/{drivers-BdvtCKc7.cjs.map → drivers-CJx76mcb.cjs.map} +1 -1
- package/dist/{encryption-9YA5ThNl.cjs → encryption-DLin89I_.cjs} +2 -2
- package/dist/{encryption-9YA5ThNl.cjs.map → encryption-DLin89I_.cjs.map} +1 -1
- package/dist/{encryption-BESGvjHD.mjs → encryption-DPFljXtM.mjs} +2 -2
- package/dist/{encryption-BESGvjHD.mjs.map → encryption-DPFljXtM.mjs.map} +1 -1
- package/dist/{engine-U0xzB5i4.cjs → engine-BS3iX9Mu.cjs} +2 -2
- package/dist/{engine-U0xzB5i4.cjs.map → engine-BS3iX9Mu.cjs.map} +1 -1
- package/dist/{engine-CHij99aX.mjs → engine-CgzgIg-_.mjs} +2 -2
- package/dist/{engine-CHij99aX.mjs.map → engine-CgzgIg-_.mjs.map} +1 -1
- package/dist/{github-BM-Y9M2G.cjs → github-D8KVmNRg.cjs} +2 -2
- package/dist/{github-BM-Y9M2G.cjs.map → github-D8KVmNRg.cjs.map} +1 -1
- package/dist/{github-2OSRBf9G.mjs → github-DL4zwJsR.mjs} +2 -2
- package/dist/{github-2OSRBf9G.mjs.map → github-DL4zwJsR.mjs.map} +1 -1
- package/dist/index.cjs +51 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +51 -47
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-C440QQvZ.cjs → migrate-BdKhIJgT.cjs} +2 -2
- package/dist/{migrate-C440QQvZ.cjs.map → migrate-BdKhIJgT.cjs.map} +1 -1
- package/dist/{migrate-KwZsJFce.mjs → migrate-CCejlgU0.mjs} +2 -2
- package/dist/{migrate-KwZsJFce.mjs.map → migrate-CCejlgU0.mjs.map} +1 -1
- package/dist/{migrate-3oLefufw.mjs → migrate-Cd3kcI7o.mjs} +2 -2
- package/dist/{migrate-3oLefufw.mjs.map → migrate-Cd3kcI7o.mjs.map} +1 -1
- package/dist/{migrate-BlYiMA23.cjs → migrate-DIjG8-QR.cjs} +2 -2
- package/dist/{migrate-BlYiMA23.cjs.map → migrate-DIjG8-QR.cjs.map} +1 -1
- package/dist/openapi.cjs +16 -11
- package/dist/openapi.cjs.map +1 -1
- package/dist/openapi.d.cts +28 -0
- package/dist/openapi.d.cts.map +1 -1
- package/dist/openapi.d.mts +28 -0
- package/dist/openapi.d.mts.map +1 -1
- package/dist/openapi.mjs +16 -12
- package/dist/openapi.mjs.map +1 -1
- package/dist/{ready-BB9xS4S9.cjs → ready-4kx2pAhm.cjs} +5 -5
- package/dist/{ready-BB9xS4S9.cjs.map → ready-4kx2pAhm.cjs.map} +1 -1
- package/dist/{ready-ZZoNskrr.mjs → ready-DhZbZtFw.mjs} +5 -5
- package/dist/{ready-ZZoNskrr.mjs.map → ready-DhZbZtFw.mjs.map} +1 -1
- package/dist/{resolve-CBrJTyDO.cjs → resolve-ApSUK_HB.cjs} +3 -3
- package/dist/{resolve-CBrJTyDO.cjs.map → resolve-ApSUK_HB.cjs.map} +1 -1
- package/dist/{resolve-BPIDcuQ3.mjs → resolve-DY9TaVeV.mjs} +3 -3
- package/dist/{resolve-BPIDcuQ3.mjs.map → resolve-DY9TaVeV.mjs.map} +1 -1
- package/dist/{rollback-P09wRaW4.cjs → rollback-CdGhCk1d.cjs} +3 -3
- package/dist/{rollback-P09wRaW4.cjs.map → rollback-CdGhCk1d.cjs.map} +1 -1
- package/dist/{rollback-B7uQKHEk.mjs → rollback-DXU6cr7q.mjs} +3 -3
- package/dist/{rollback-B7uQKHEk.mjs.map → rollback-DXU6cr7q.mjs.map} +1 -1
- package/dist/{seeds-BjHiy9tW.cjs → seeds-BLzrSwEr.cjs} +14 -5
- package/dist/{seeds-BjHiy9tW.cjs.map → seeds-BLzrSwEr.cjs.map} +1 -1
- package/dist/{seeds-B4PiO_48.mjs → seeds-DbyqaXW4.mjs} +14 -5
- package/dist/seeds-DbyqaXW4.mjs.map +1 -0
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- package/package.json +15 -15
- package/dist/EndpointGenerator-CP6sBvQV.cjs.map +0 -1
- package/dist/EndpointGenerator-DftalLYg.mjs.map +0 -1
- package/dist/OpenApiTsGenerator-CKBCckKz.cjs.map +0 -1
- package/dist/OpenApiTsGenerator-nu1r1NgB.mjs.map +0 -1
- package/dist/seeds-B4PiO_48.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -6,20 +6,20 @@ import { l as withOwningTsconfigJsx, r as discover, u as ConstructGenerator } fr
|
|
|
6
6
|
import { t as appKey } from "./derive-B4vDpzgP.mjs";
|
|
7
7
|
import { A as deployedProblems, D as InvalidStages, I as resolveLogs, 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 { B as WorkerGenerator, Ct as postgresDatabaseNames, F as parseDevServices, Fn as withCustomSecret, G as FAKE_ENV, Gt as imageBuildCredentials, H as workerEntryDir, J as derivedContainers, Jt as eventsBackendFor, K as backendsOf$1, Kt as isImageBuild, Mn as maskPassword, Pn as toEmbeddableSecrets, Tt as quoteIdentifier, U as QueueGenerator, V as workerBundleName, W as CronGenerator, Y as reconcileWorkspace, Yt as providerOf, Zt as CLUSTER_DATABASE, _t as LOCAL_CA_PATH, an as primaryPortKey, cn as findAvailablePort, dn as loadPortState, et as readLocalCredentials, fn as loadSecretsForApp, hn as secretsStoreFor, in as portsOf, kt as pgClient, ln as isPortAvailable, nn as fakeKey, on as createCredentialsPreload, pn as prepareEntryCredentials, q as constructGlobs, qt as cacheBackendFor, sn as createEntryWrapper, tn as describeServices, un as loadEnvFiles, vn as FileSecretsStore, vt as forgetState, wn as deployIdentity, x as dockerCommand, xn as projectKey, yn as getKeyPath, z as workerUnits } from "./seeds-
|
|
10
|
-
import { i as telemetryFor, n as runtimeFor, t as EndpointGenerator } from "./EndpointGenerator-
|
|
9
|
+
import { B as WorkerGenerator, Ct as postgresDatabaseNames, F as parseDevServices, Fn as withCustomSecret, G as FAKE_ENV, Gt as imageBuildCredentials, H as workerEntryDir, J as derivedContainers, Jt as eventsBackendFor, K as backendsOf$1, Kt as isImageBuild, Mn as maskPassword, Pn as toEmbeddableSecrets, Tt as quoteIdentifier, U as QueueGenerator, V as workerBundleName, W as CronGenerator, Y as reconcileWorkspace, Yt as providerOf, Zt as CLUSTER_DATABASE, _t as LOCAL_CA_PATH, an as primaryPortKey, cn as findAvailablePort, dn as loadPortState, et as readLocalCredentials, fn as loadSecretsForApp, hn as secretsStoreFor, in as portsOf, kt as pgClient, ln as isPortAvailable, nn as fakeKey, on as createCredentialsPreload, pn as prepareEntryCredentials, q as constructGlobs, qt as cacheBackendFor, sn as createEntryWrapper, tn as describeServices, un as loadEnvFiles, vn as FileSecretsStore, vt as forgetState, wn as deployIdentity, x as dockerCommand, xn as projectKey, yn as getKeyPath, z as workerUnits } from "./seeds-DbyqaXW4.mjs";
|
|
10
|
+
import { a as parseTelemetryFlag, i as telemetryFor, n as runtimeFor, t as EndpointGenerator } from "./EndpointGenerator-DtnIGafh.mjs";
|
|
11
11
|
import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
|
|
12
|
-
import { s as isCacheBackend, t as SubscriberGenerator } from "./SubscriberGenerator-
|
|
12
|
+
import { s as isCacheBackend, t as SubscriberGenerator } from "./SubscriberGenerator-DQZeGkDW.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
|
-
import { n as driversFor, r as eventsBackendsIn, t as cacheBackendsIn } from "./drivers-
|
|
14
|
+
import { n as driversFor, r as eventsBackendsIn, t as cacheBackendsIn } from "./drivers-B4RP2B2O.mjs";
|
|
15
15
|
import { n as withCompute, r as withRoutes, t as manifestModule } from "./emit-C1e8qD08.mjs";
|
|
16
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-
|
|
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-
|
|
17
|
+
import { t as deploy$1 } from "./deploy-C00DAKOt.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-D4sD4Lgr.mjs";
|
|
19
19
|
import { o as loadCredentialSchemas, t as CredentialsInvalid } from "./credentialSchemas-BJqRJNK4.mjs";
|
|
20
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
|
-
import { a as writeTestHarness, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, t as TEST_READY_ENV } from "./ready-
|
|
22
|
+
import { a as writeTestHarness, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, t as TEST_READY_ENV } from "./ready-DhZbZtFw.mjs";
|
|
23
23
|
import { createRequire } from "node:module";
|
|
24
24
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
25
25
|
import { Command, Option } from "commander";
|
|
@@ -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.82";
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/prompt.ts
|
|
53
53
|
/**
|
|
@@ -2211,9 +2211,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
2211
2211
|
for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
2212
2212
|
logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
2213
2213
|
if (options.migrate || options.seed) {
|
|
2214
|
-
const { prepareDevDatabases } = await import("./migrate-
|
|
2214
|
+
const { prepareDevDatabases } = await import("./migrate-CCejlgU0.mjs");
|
|
2215
2215
|
await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
|
|
2216
|
-
} else await import("./migrate-
|
|
2216
|
+
} else await import("./migrate-CCejlgU0.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
2217
2217
|
logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
2218
2218
|
});
|
|
2219
2219
|
const appUrls = {};
|
|
@@ -3221,7 +3221,7 @@ async function buildApp(input) {
|
|
|
3221
3221
|
if (production?.bundle && !input.skipBundle) {
|
|
3222
3222
|
const outputDir = join(appRoot, ".gkm", "server");
|
|
3223
3223
|
const entryPoint = await writeSurfaceServer(outputDir, production);
|
|
3224
|
-
const { bundleServer } = await import("./bundler-
|
|
3224
|
+
const { bundleServer } = await import("./bundler-DlKdxCGh.mjs");
|
|
3225
3225
|
await bundleServer({
|
|
3226
3226
|
entryPoint,
|
|
3227
3227
|
outputDir: join(outputDir, "dist"),
|
|
@@ -3345,7 +3345,7 @@ async function buildWorkers(input) {
|
|
|
3345
3345
|
});
|
|
3346
3346
|
logger$4.log(`Generated worker ${worker.id}: ${crons.length} crons, ${queues.length} queues, ${subscribers.length} subscribers`);
|
|
3347
3347
|
if (!input.bundle) continue;
|
|
3348
|
-
const { bundleServer } = await import("./bundler-
|
|
3348
|
+
const { bundleServer } = await import("./bundler-DlKdxCGh.mjs");
|
|
3349
3349
|
const outfile = workerBundleName(worker.id);
|
|
3350
3350
|
await bundleServer({
|
|
3351
3351
|
entryPoint,
|
|
@@ -3415,7 +3415,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
3415
3415
|
let masterKey;
|
|
3416
3416
|
if (context.production?.bundle && !skipBundle) {
|
|
3417
3417
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
3418
|
-
const { bundleServer } = await import("./bundler-
|
|
3418
|
+
const { bundleServer } = await import("./bundler-DlKdxCGh.mjs");
|
|
3419
3419
|
const allConstructs = [
|
|
3420
3420
|
...endpoints.map((e) => e.construct),
|
|
3421
3421
|
...functions.map((f) => f.construct),
|
|
@@ -5117,25 +5117,25 @@ function loadPackageJson() {
|
|
|
5117
5117
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
5118
5118
|
*/
|
|
5119
5119
|
const GEEKMIDAS_VERSIONS = {
|
|
5120
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
5121
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
5122
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
5123
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
5124
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
5125
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
5126
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
5127
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
5128
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
5129
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
5130
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
5131
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
5132
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
5133
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
5134
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
5135
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
5136
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
5137
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
5138
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
5120
|
+
"@geekmidas/audit": "~10.0.0-alpha.82",
|
|
5121
|
+
"@geekmidas/auth": "~10.0.0-alpha.82",
|
|
5122
|
+
"@geekmidas/cache": "~10.0.0-alpha.82",
|
|
5123
|
+
"@geekmidas/client": "~10.0.0-alpha.82",
|
|
5124
|
+
"@geekmidas/cloud": "~10.0.0-alpha.82",
|
|
5125
|
+
"@geekmidas/constructs": "~10.0.0-alpha.82",
|
|
5126
|
+
"@geekmidas/db": "~10.0.0-alpha.82",
|
|
5127
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.82",
|
|
5128
|
+
"@geekmidas/envkit": "~10.0.0-alpha.82",
|
|
5129
|
+
"@geekmidas/errors": "~10.0.0-alpha.82",
|
|
5130
|
+
"@geekmidas/events": "~10.0.0-alpha.82",
|
|
5131
|
+
"@geekmidas/logger": "~10.0.0-alpha.82",
|
|
5132
|
+
"@geekmidas/manifest": "~10.0.0-alpha.82",
|
|
5133
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.82",
|
|
5134
|
+
"@geekmidas/schema": "~10.0.0-alpha.82",
|
|
5135
|
+
"@geekmidas/services": "~10.0.0-alpha.82",
|
|
5136
|
+
"@geekmidas/storage": "~10.0.0-alpha.82",
|
|
5137
|
+
"@geekmidas/telescope": "~10.0.0-alpha.82",
|
|
5138
|
+
"@geekmidas/testkit": "~10.0.0-alpha.82",
|
|
5139
5139
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
5140
5140
|
};
|
|
5141
5141
|
//#endregion
|
|
@@ -10903,7 +10903,7 @@ function testDatabases(reconciled) {
|
|
|
10903
10903
|
* starts without the reference data the app needs.
|
|
10904
10904
|
*/
|
|
10905
10905
|
async function migrateTestStage(workspace, env) {
|
|
10906
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
10906
|
+
const { migrateAndSeed } = await import("./migrate-CCejlgU0.mjs");
|
|
10907
10907
|
const { discover } = await import("./discover-BPelzeGW.mjs").then((n) => n.i);
|
|
10908
10908
|
const sources = {};
|
|
10909
10909
|
const manifest = await discover({
|
|
@@ -11347,7 +11347,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
11347
11347
|
try {
|
|
11348
11348
|
const globalOptions = program.opts();
|
|
11349
11349
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11350
|
-
const { migrateCommand } = await import("./migrate-
|
|
11350
|
+
const { migrateCommand } = await import("./migrate-CCejlgU0.mjs");
|
|
11351
11351
|
await migrateCommand({
|
|
11352
11352
|
...options,
|
|
11353
11353
|
...construct ? { construct } : {}
|
|
@@ -11361,7 +11361,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
11361
11361
|
try {
|
|
11362
11362
|
const globalOptions = program.opts();
|
|
11363
11363
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11364
|
-
const { seedCommand } = await import("./migrate-
|
|
11364
|
+
const { seedCommand } = await import("./migrate-CCejlgU0.mjs");
|
|
11365
11365
|
await seedCommand({
|
|
11366
11366
|
...options,
|
|
11367
11367
|
...construct ? { construct } : {}
|
|
@@ -11375,7 +11375,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
11375
11375
|
try {
|
|
11376
11376
|
const globalOptions = program.opts();
|
|
11377
11377
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11378
|
-
const { migrationCommand } = await import("./migrate-
|
|
11378
|
+
const { migrationCommand } = await import("./migrate-CCejlgU0.mjs");
|
|
11379
11379
|
await migrationCommand({
|
|
11380
11380
|
construct,
|
|
11381
11381
|
...name ? { name } : {}
|
|
@@ -11400,11 +11400,15 @@ program.command("api").description("Manage REST API endpoints").action(() => {
|
|
|
11400
11400
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11401
11401
|
process.stdout.write("REST API management - coming soon\n");
|
|
11402
11402
|
});
|
|
11403
|
-
program.command("openapi").description("Generate OpenAPI specification from endpoints").option("--app <name>", "Workspace mode: generate for a single named backend app").action(async (options) => {
|
|
11403
|
+
program.command("openapi").description("Generate OpenAPI specification from endpoints").option("--app <name>", "Workspace mode: generate for a single named backend app").option("--telemetry [sampleRate]", "Generated clients send W3C trace context to their API by default, at the stage's sample rate (0-1, default 1)").action(async (options) => {
|
|
11404
11404
|
try {
|
|
11405
11405
|
const globalOptions = program.opts();
|
|
11406
11406
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11407
|
-
|
|
11407
|
+
const telemetry = parseTelemetryFlag(options.telemetry);
|
|
11408
|
+
await openapiCommand({
|
|
11409
|
+
app: options.app,
|
|
11410
|
+
...telemetry !== void 0 ? { telemetry } : {}
|
|
11411
|
+
});
|
|
11408
11412
|
} catch (error) {
|
|
11409
11413
|
console.error(formatError(error));
|
|
11410
11414
|
process.exit(1);
|
|
@@ -11479,7 +11483,7 @@ program.command("secrets:add").description("Build the keys a stage must be given
|
|
|
11479
11483
|
try {
|
|
11480
11484
|
const globalOptions = program.opts();
|
|
11481
11485
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11482
|
-
const { secretsAddCommand } = await import("./add-
|
|
11486
|
+
const { secretsAddCommand } = await import("./add-DnYHJOap.mjs");
|
|
11483
11487
|
await secretsAddCommand(options);
|
|
11484
11488
|
} catch (error) {
|
|
11485
11489
|
console.error(formatError(error));
|
|
@@ -11490,7 +11494,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
11490
11494
|
try {
|
|
11491
11495
|
const globalOptions = program.opts();
|
|
11492
11496
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11493
|
-
const { encryptionRotateCommand } = await import("./encryption-
|
|
11497
|
+
const { encryptionRotateCommand } = await import("./encryption-DPFljXtM.mjs");
|
|
11494
11498
|
await encryptionRotateCommand(construct, options);
|
|
11495
11499
|
} catch (error) {
|
|
11496
11500
|
console.error(formatError(error));
|
|
@@ -11501,7 +11505,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
11501
11505
|
try {
|
|
11502
11506
|
const globalOptions = program.opts();
|
|
11503
11507
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11504
|
-
const { encryptionRetireCommand } = await import("./encryption-
|
|
11508
|
+
const { encryptionRetireCommand } = await import("./encryption-DPFljXtM.mjs");
|
|
11505
11509
|
await encryptionRetireCommand(construct, key, options);
|
|
11506
11510
|
} catch (error) {
|
|
11507
11511
|
console.error(formatError(error));
|
|
@@ -11544,7 +11548,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
11544
11548
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11545
11549
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
11546
11550
|
const { reconcileMissingSecrets } = await import("./reconcile--I7V4Klj.mjs");
|
|
11547
|
-
const { secretsStoreFor } = await import("./seeds-
|
|
11551
|
+
const { secretsStoreFor } = await import("./seeds-DbyqaXW4.mjs").then((n) => n._n);
|
|
11548
11552
|
const { workspace } = await loadWorkspaceConfig();
|
|
11549
11553
|
const stage = options.stage ?? workspace.stages.local;
|
|
11550
11554
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -11553,7 +11557,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
11553
11557
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
11554
11558
|
process.exit(1);
|
|
11555
11559
|
}
|
|
11556
|
-
const { derivedContainers } = await import("./seeds-
|
|
11560
|
+
const { derivedContainers } = await import("./seeds-DbyqaXW4.mjs").then((n) => n.X);
|
|
11557
11561
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
11558
11562
|
if (!result) {
|
|
11559
11563
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -11571,7 +11575,7 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
11571
11575
|
try {
|
|
11572
11576
|
const globalOptions = program.opts();
|
|
11573
11577
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11574
|
-
const { secretsMigrateCommand } = await import("./migrate-
|
|
11578
|
+
const { secretsMigrateCommand } = await import("./migrate-Cd3kcI7o.mjs");
|
|
11575
11579
|
await secretsMigrateCommand(options);
|
|
11576
11580
|
} catch (error) {
|
|
11577
11581
|
console.error(formatError(error));
|
|
@@ -11579,7 +11583,7 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
11579
11583
|
}
|
|
11580
11584
|
});
|
|
11581
11585
|
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) => {
|
|
11582
|
-
const { deployCli } = await import("./cli-
|
|
11586
|
+
const { deployCli } = await import("./cli-qMszGvDu.mjs");
|
|
11583
11587
|
const globalOptions = program.opts();
|
|
11584
11588
|
const code = await deployCli({
|
|
11585
11589
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -11596,7 +11600,7 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
11596
11600
|
});
|
|
11597
11601
|
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) => {
|
|
11598
11602
|
try {
|
|
11599
|
-
const { rollbackStage } = await import("./rollback-
|
|
11603
|
+
const { rollbackStage } = await import("./rollback-DXU6cr7q.mjs").then((n) => n.a);
|
|
11600
11604
|
const { terminalCredentials } = await import("./terminal-BdvrmkaC.mjs");
|
|
11601
11605
|
const globalOptions = program.opts();
|
|
11602
11606
|
await rollbackStage({
|
|
@@ -11632,7 +11636,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
11632
11636
|
try {
|
|
11633
11637
|
const globalOptions = program.opts();
|
|
11634
11638
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11635
|
-
const { deployGithubCommand } = await import("./github-
|
|
11639
|
+
const { deployGithubCommand } = await import("./github-DL4zwJsR.mjs");
|
|
11636
11640
|
await deployGithubCommand(options);
|
|
11637
11641
|
} catch (error) {
|
|
11638
11642
|
console.error(formatError(error));
|