@geekmidas/cli 10.0.0-alpha.62 → 10.0.0-alpha.63
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/README.md +2 -0
- package/dist/{HostingerProvider-B92qH4dC.mjs → HostingerProvider-DBBwpDjn.mjs} +2 -2
- package/dist/{HostingerProvider-B92qH4dC.mjs.map → HostingerProvider-DBBwpDjn.mjs.map} +1 -1
- package/dist/{HostingerProvider-DyD1Hin8.cjs → HostingerProvider-mJ7YruxH.cjs} +2 -2
- package/dist/{HostingerProvider-DyD1Hin8.cjs.map → HostingerProvider-mJ7YruxH.cjs.map} +1 -1
- package/dist/{LegacyStateStore-UHJEBLdn.cjs → LegacyStateStore-CP7SZwTP.cjs} +2 -2
- package/dist/{LegacyStateStore-UHJEBLdn.cjs.map → LegacyStateStore-CP7SZwTP.cjs.map} +1 -1
- package/dist/{LegacyStateStore-A8d2GdT7.mjs → LegacyStateStore-Q3GmKOdw.mjs} +2 -2
- package/dist/{LegacyStateStore-A8d2GdT7.mjs.map → LegacyStateStore-Q3GmKOdw.mjs.map} +1 -1
- package/dist/{LocalStateStore-B51rnfgn.mjs → LocalStateStore-BGIXcrvX.mjs} +2 -2
- package/dist/{LocalStateStore-B51rnfgn.mjs.map → LocalStateStore-BGIXcrvX.mjs.map} +1 -1
- package/dist/{LocalStateStore-COW3Ldwa.cjs → LocalStateStore-sS8mvLeq.cjs} +2 -2
- package/dist/{LocalStateStore-COW3Ldwa.cjs.map → LocalStateStore-sS8mvLeq.cjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-BSrgw7B0.cjs → OpenApiTsGenerator-CjHWFRDd.cjs} +2 -2
- package/dist/{OpenApiTsGenerator-BSrgw7B0.cjs.map → OpenApiTsGenerator-CjHWFRDd.cjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-q5B0z8Xg.mjs → OpenApiTsGenerator-CnAwhGxi.mjs} +2 -2
- package/dist/{OpenApiTsGenerator-q5B0z8Xg.mjs.map → OpenApiTsGenerator-CnAwhGxi.mjs.map} +1 -1
- package/dist/{S3StateStore-WUJGdRNL.cjs → S3StateStore-6jqITH2F.cjs} +2 -2
- package/dist/{S3StateStore-WUJGdRNL.cjs.map → S3StateStore-6jqITH2F.cjs.map} +1 -1
- package/dist/{S3StateStore-CJewPhgz.mjs → S3StateStore-D7l_lWJ3.mjs} +2 -2
- package/dist/{S3StateStore-CJewPhgz.mjs.map → S3StateStore-D7l_lWJ3.mjs.map} +1 -1
- package/dist/{SSMStateStore-Zejt42V8.cjs → SSMStateStore-B__F7IJa.cjs} +2 -2
- package/dist/{SSMStateStore-Zejt42V8.cjs.map → SSMStateStore-B__F7IJa.cjs.map} +1 -1
- package/dist/{SSMStateStore-iK5UKp9d.mjs → SSMStateStore-CAQDVpoc.mjs} +2 -2
- package/dist/{SSMStateStore-iK5UKp9d.mjs.map → SSMStateStore-CAQDVpoc.mjs.map} +1 -1
- package/dist/{bundler-CfH9frOS.cjs → bundler-DLfOn0ls.cjs} +3 -3
- package/dist/{bundler-CfH9frOS.cjs.map → bundler-DLfOn0ls.cjs.map} +1 -1
- package/dist/{bundler-DN5r4x5b.mjs → bundler-DyWI41Iy.mjs} +2 -2
- package/dist/{bundler-DN5r4x5b.mjs.map → bundler-DyWI41Iy.mjs.map} +1 -1
- package/dist/{cli-DOAUp80L.cjs → cli-D-ZM-X2s.cjs} +4 -4
- package/dist/{cli-DOAUp80L.cjs.map → cli-D-ZM-X2s.cjs.map} +1 -1
- package/dist/{cli-DYwxmfsW.mjs → cli-PkVF28LM.mjs} +4 -4
- package/dist/{cli-DYwxmfsW.mjs.map → cli-PkVF28LM.mjs.map} +1 -1
- package/dist/{config-BYh9S0cZ.cjs → config-BEJYKd4s.cjs} +132 -18
- package/dist/config-BEJYKd4s.cjs.map +1 -0
- package/dist/config-C2BUosLm.d.mts +256 -0
- package/dist/config-C2BUosLm.d.mts.map +1 -0
- package/dist/config-CemHVcIr.d.cts +256 -0
- package/dist/config-CemHVcIr.d.cts.map +1 -0
- package/dist/{config-Bf4-bROQ.mjs → config-LKKCVCnC.mjs} +109 -19
- package/dist/config-LKKCVCnC.mjs.map +1 -0
- package/dist/config.cjs +6 -2
- package/dist/config.d.cts +3 -210
- package/dist/config.d.mts +3 -210
- package/dist/config.mjs +3 -3
- package/dist/deploy/public.cjs +151 -5
- package/dist/deploy/public.cjs.map +1 -0
- package/dist/deploy/public.d.cts +186 -1
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts +186 -1
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +134 -6
- package/dist/deploy/public.mjs.map +1 -0
- package/dist/deploy/sniffer-envparser-worker.cjs +54 -0
- package/dist/deploy/sniffer-envparser-worker.cjs.map +1 -0
- package/dist/deploy/sniffer-envparser-worker.d.cts +1 -0
- package/dist/deploy/sniffer-envparser-worker.d.mts +1 -0
- package/dist/deploy/sniffer-envparser-worker.mjs +55 -0
- package/dist/deploy/sniffer-envparser-worker.mjs.map +1 -0
- package/dist/{deploy-DSaCYvcO.cjs → deploy-ABBI0lf1.cjs} +7 -7
- package/dist/{deploy-DSaCYvcO.cjs.map → deploy-ABBI0lf1.cjs.map} +1 -1
- package/dist/{deploy-D8Qr-Xto.cjs → deploy-BiMrP9i7.cjs} +11 -9
- package/dist/deploy-BiMrP9i7.cjs.map +1 -0
- package/dist/{deploy-B7jvUORo.mjs → deploy-CG8bfFij.mjs} +7 -7
- package/dist/{deploy-B7jvUORo.mjs.map → deploy-CG8bfFij.mjs.map} +1 -1
- package/dist/{deploy-Cg9fae7a.mjs → deploy-CGW-QY9D.mjs} +11 -9
- package/dist/deploy-CGW-QY9D.mjs.map +1 -0
- package/dist/discover-B6yPpvRV.d.mts +99 -0
- package/dist/discover-B6yPpvRV.d.mts.map +1 -0
- package/dist/discover-B_IkPukx.d.cts +99 -0
- package/dist/discover-B_IkPukx.d.cts.map +1 -0
- package/dist/discover-BaT6bpnA.mjs +614 -0
- package/dist/discover-BaT6bpnA.mjs.map +1 -0
- package/dist/discover-C_6COHEv.cjs +729 -0
- package/dist/discover-C_6COHEv.cjs.map +1 -0
- package/dist/{dokploy-CD9PY-3D.mjs → dokploy-CwdmlyQL.mjs} +2 -2
- package/dist/{dokploy-CD9PY-3D.mjs.map → dokploy-CwdmlyQL.mjs.map} +1 -1
- package/dist/{dokploy-Ey2foJLv.cjs → dokploy-QJxMhxdf.cjs} +2 -2
- package/dist/{dokploy-Ey2foJLv.cjs.map → dokploy-QJxMhxdf.cjs.map} +1 -1
- package/dist/{encryption-CVwvGbsL.mjs → encryption-CbQG_ayW.mjs} +4 -4
- package/dist/{encryption-CVwvGbsL.mjs.map → encryption-CbQG_ayW.mjs.map} +1 -1
- package/dist/{encryption-ChBk3hTj.cjs → encryption-DXw3jj0c.cjs} +4 -4
- package/dist/{encryption-ChBk3hTj.cjs.map → encryption-DXw3jj0c.cjs.map} +1 -1
- package/dist/fakes-C9RiT6XG.mjs.map +1 -1
- package/dist/fakes-zW-jNAbQ.cjs.map +1 -1
- package/dist/{github-OUgPDlqg.cjs → github-BH_mETav.cjs} +3 -3
- package/dist/{github-OUgPDlqg.cjs.map → github-BH_mETav.cjs.map} +1 -1
- package/dist/{github-BCB3_LBX.mjs → github-ciwbIwVa.mjs} +3 -3
- package/dist/{github-BCB3_LBX.mjs.map → github-ciwbIwVa.mjs.map} +1 -1
- package/dist/index.cjs +55 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +52 -45
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-dnaFMvOm.cjs → migrate-6oa9y_f2.cjs} +5 -5
- package/dist/{migrate-dnaFMvOm.cjs.map → migrate-6oa9y_f2.cjs.map} +1 -1
- package/dist/{migrate-BoHMqdCu.mjs → migrate-ImBKTBcW.mjs} +5 -5
- package/dist/{migrate-BoHMqdCu.mjs.map → migrate-ImBKTBcW.mjs.map} +1 -1
- package/dist/openapi.cjs +3 -3
- package/dist/openapi.mjs +3 -3
- package/dist/{ready-XlNx-Gbo.cjs → ready-BiG0rt4h.cjs} +3 -3
- package/dist/{ready-XlNx-Gbo.cjs.map → ready-BiG0rt4h.cjs.map} +1 -1
- package/dist/{ready-DQIy21W5.mjs → ready-Bpdnn2ON.mjs} +3 -3
- package/dist/{ready-DQIy21W5.mjs.map → ready-Bpdnn2ON.mjs.map} +1 -1
- package/dist/reconcile/public.cjs +1 -1
- package/dist/reconcile/public.d.cts +3 -76
- package/dist/reconcile/public.d.cts.map +1 -1
- package/dist/reconcile/public.d.mts +3 -76
- package/dist/reconcile/public.d.mts.map +1 -1
- package/dist/reconcile/public.mjs +1 -1
- package/dist/{resolve-CFCIkm7m.mjs → resolve-B1T0hUaR.mjs} +2 -2
- package/dist/{resolve-CFCIkm7m.mjs.map → resolve-B1T0hUaR.mjs.map} +1 -1
- package/dist/{resolve-wbv66HjD.cjs → resolve-xytBTtG4.cjs} +2 -2
- package/dist/{resolve-wbv66HjD.cjs.map → resolve-xytBTtG4.cjs.map} +1 -1
- package/dist/sandbox/config-worker.cjs +43 -0
- package/dist/sandbox/config-worker.cjs.map +1 -0
- package/dist/sandbox/config-worker.d.cts +1 -0
- package/dist/sandbox/config-worker.d.mts +1 -0
- package/dist/sandbox/config-worker.mjs +44 -0
- package/dist/sandbox/config-worker.mjs.map +1 -0
- package/dist/sandbox/discover-worker.cjs +44 -0
- package/dist/sandbox/discover-worker.cjs.map +1 -0
- package/dist/sandbox/discover-worker.d.cts +1 -0
- package/dist/sandbox/discover-worker.d.mts +1 -0
- package/dist/sandbox/discover-worker.mjs +45 -0
- package/dist/sandbox/discover-worker.mjs.map +1 -0
- package/dist/sandbox-M8UnLhXE.d.cts +126 -0
- package/dist/sandbox-M8UnLhXE.d.cts.map +1 -0
- package/dist/sandbox-M8UnLhXE.d.mts +126 -0
- package/dist/sandbox-M8UnLhXE.d.mts.map +1 -0
- package/dist/{workspace-BFe57es7.mjs → schemas-Ckm_aBnF.cjs} +71 -982
- package/dist/schemas-Ckm_aBnF.cjs.map +1 -0
- package/dist/{workspace-B6zQO6RY.cjs → schemas-D2LCF689.mjs} +2 -1168
- package/dist/schemas-D2LCF689.mjs.map +1 -0
- package/dist/{sniffer-BsfPa-GA.cjs → sniffer-D_SYc_pO.cjs} +369 -207
- package/dist/sniffer-D_SYc_pO.cjs.map +1 -0
- package/dist/{sniffer-DHE2Nafd.mjs → sniffer-aO_-s5vq.mjs} +336 -204
- package/dist/sniffer-aO_-s5vq.mjs.map +1 -0
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/dist/{terminal-6oL0vANs.cjs → terminal-D0f1u0LG.cjs} +6 -6
- package/dist/{terminal-6oL0vANs.cjs.map → terminal-D0f1u0LG.cjs.map} +1 -1
- package/dist/{terminal-ByZNjuig.mjs → terminal-gMxAo9Dj.mjs} +6 -6
- package/dist/{terminal-ByZNjuig.mjs.map → terminal-gMxAo9Dj.mjs.map} +1 -1
- package/dist/vitest.cjs +2 -2
- package/dist/vitest.mjs +2 -2
- package/dist/workerRuntime-BXfhbe13.cjs +108 -0
- package/dist/workerRuntime-BXfhbe13.cjs.map +1 -0
- package/dist/workerRuntime-CsOyBRx2.mjs +79 -0
- package/dist/workerRuntime-CsOyBRx2.mjs.map +1 -0
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.mjs +1 -1
- package/dist/workspace-Dh7rr7l4.mjs +1024 -0
- package/dist/workspace-Dh7rr7l4.mjs.map +1 -0
- package/dist/workspace-Kl4NG9IH.cjs +1196 -0
- package/dist/workspace-Kl4NG9IH.cjs.map +1 -0
- package/package.json +13 -13
- package/dist/config-BYh9S0cZ.cjs.map +0 -1
- package/dist/config-Bf4-bROQ.mjs.map +0 -1
- package/dist/config.d.cts.map +0 -1
- package/dist/config.d.mts.map +0 -1
- package/dist/deploy-Cg9fae7a.mjs.map +0 -1
- package/dist/deploy-D8Qr-Xto.cjs.map +0 -1
- package/dist/discover-Bc-4eA_p.cjs +0 -299
- package/dist/discover-Bc-4eA_p.cjs.map +0 -1
- package/dist/discover-FrYvzkeC.mjs +0 -262
- package/dist/discover-FrYvzkeC.mjs.map +0 -1
- package/dist/sniffer-BsfPa-GA.cjs.map +0 -1
- package/dist/sniffer-DHE2Nafd.mjs.map +0 -1
- package/dist/workspace-B6zQO6RY.cjs.map +0 -1
- package/dist/workspace-BFe57es7.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env -S npx tsx
|
|
2
2
|
import { n as __require, t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { D as assertDeployedStage, E as TEST_STAGE, O as deployedProblems, T as InvalidStages, a as getAppBuildOrder, k as stageProblems, o as getAppGkmConfig, t as allConstructGlobs } from "./workspace-
|
|
3
|
+
import { At as prepareEntryCredentials, B as LocalSandbox, Ct as primaryPortKey, Dt as isPortAvailable, Et as findAvailablePort, Ft as getDokployCredentials, G as DEFAULT_TIMEOUT_MS, I as withGeneratedSecrets, It as getDokployRegistryId, J as FAKE_ENV, K as run$1, Lt as getDokployToken, Mt as logoutCommand, Ot as loadEnvFiles, P as createStateStore, Pt as whoamiCommand, Q as reconcileWorkspace, St as portKeys, Tt as createEntryWrapper, U as CommandFailed, X as constructGlobs, Y as backendsOf$1, Z as derivedContainers, _t as providerOf, at as quoteIdentifier, bt as describeServices, c as dockerCommand, ct as appEnvKeys, d as generateDockerignore, dt as localRolePassword, et as LOCAL_CA_PATH, f as generateSlimDockerfile, ft as planFor, g as createEmptyState, h as resolveHost, ht as cacheBackendFor, it as postgresStatements, jt as loginCommand, kt as loadSecretsForApp, l as siteDockerfile, lt as networkEnv, m as isMainFrontendApp, mt as hostFor, n as sniffAppEnvironment, nt as applyPostgres, ot as composeFor, p as validateImageRef, q as runOutput, r as DokployApi, rt as postgresDatabaseNames, s as appPackageName$1, st as pgClient, tt as forgetState, u as detectPackageManager$2, ut as envFor, wt as createCredentialsPreload, xt as fakeKey, yt as DEFAULT_IMAGES, z as keyFingerprint } from "./sniffer-aO_-s5vq.mjs";
|
|
4
|
+
import { _ as ConstructGenerator, l as withOwningTsconfigJsx, r as discover } from "./discover-BaT6bpnA.mjs";
|
|
5
|
+
import { a as NotABackendApp, d as loadConfig, g as appKey, h as parseModuleConfig, m as loadWorkspaceSettings, o as NotInAnApp, p as loadWorkspaceConfig, r as ConfigNotFound, u as loadAppConfig } from "./config-LKKCVCnC.mjs";
|
|
6
|
+
import { D as assertDeployedStage, E as TEST_STAGE, O as deployedProblems, T as InvalidStages, a as getAppBuildOrder, k as stageProblems, o as getAppGkmConfig, t as allConstructGlobs } from "./workspace-Dh7rr7l4.mjs";
|
|
7
7
|
import { a as withCustomSecret, i as toEmbeddableSecrets, n as maskPassword, t as initStageSecrets } from "./storage-BzaUxmqe.mjs";
|
|
8
8
|
import { a as getKeyPath, f as imageRef, i as FileSecretsStore, n as secretsStoreFor, s as projectKey, u as deployIdentity } from "./store-BS8A7NcA.mjs";
|
|
9
|
-
import { i as telemetryFor, n as EndpointGenerator, r as runtimeFor } from "./OpenApiTsGenerator-
|
|
9
|
+
import { i as telemetryFor, n as EndpointGenerator, r as runtimeFor } from "./OpenApiTsGenerator-CnAwhGxi.mjs";
|
|
10
10
|
import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
|
|
11
11
|
import { n as DEFAULT_CACHE, r as DEFAULT_EVENTS } from "./fakes-C9RiT6XG.mjs";
|
|
12
12
|
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";
|
|
13
|
-
import { a as writeTestHarness, c as driversFor, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, o as SubscriberGenerator, s as cacheBackendsIn, t as TEST_READY_ENV } from "./ready-
|
|
13
|
+
import { a as writeTestHarness, c as driversFor, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, o as SubscriberGenerator, s as cacheBackendsIn, t as TEST_READY_ENV } from "./ready-Bpdnn2ON.mjs";
|
|
14
14
|
import { n as withCompute, r as withRoutes, t as manifestModule } from "./emit-C1e8qD08.mjs";
|
|
15
|
-
import { t as LocalStateStore } from "./LocalStateStore-
|
|
15
|
+
import { t as LocalStateStore } from "./LocalStateStore-BGIXcrvX.mjs";
|
|
16
16
|
import { createRequire } from "node:module";
|
|
17
17
|
import { basename, dirname, extname, isAbsolute, join, parse, relative, resolve } from "node:path";
|
|
18
18
|
import { Command } from "commander";
|
|
@@ -22,11 +22,11 @@ import { homedir } from "node:os";
|
|
|
22
22
|
import { promisify } from "node:util";
|
|
23
23
|
import { DATABASE_FOLDERS, MIGRATIONS_ROOT, canonicalId, kebabCase, migrationFolder, migrationTargets, provideKey, provisionOrder, publicEnvFor, schemeBase, serviceKey } from "@geekmidas/manifest";
|
|
24
24
|
import fg from "fast-glob";
|
|
25
|
+
import { pathToFileURL } from "node:url";
|
|
25
26
|
import { execFile, execSync, spawn } from "node:child_process";
|
|
26
27
|
import chokidar from "chokidar";
|
|
27
28
|
import { connect } from "node:net";
|
|
28
29
|
import { createHash, randomBytes, timingSafeEqual } from "node:crypto";
|
|
29
|
-
import { pathToFileURL } from "node:url";
|
|
30
30
|
import pg from "pg";
|
|
31
31
|
import { parse as parse$1, parseDocument, stringify } from "yaml";
|
|
32
32
|
import prompts from "prompts";
|
|
@@ -41,7 +41,7 @@ import { Function } from "@geekmidas/constructs/functions";
|
|
|
41
41
|
import { Queue } from "@geekmidas/constructs/queue";
|
|
42
42
|
import { Topic } from "@geekmidas/constructs/topic";
|
|
43
43
|
//#region package.json
|
|
44
|
-
var version = "10.0.0-alpha.
|
|
44
|
+
var version = "10.0.0-alpha.63";
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/trust/index.ts
|
|
47
47
|
/**
|
|
@@ -1845,9 +1845,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
1845
1845
|
for (const { id, port } of fakes) logger$6.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
1846
1846
|
logger$6.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
1847
1847
|
if (options.migrate || options.seed) {
|
|
1848
|
-
const { prepareDevDatabases } = await import("./migrate-
|
|
1848
|
+
const { prepareDevDatabases } = await import("./migrate-ImBKTBcW.mjs");
|
|
1849
1849
|
await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
|
|
1850
|
-
} else await import("./migrate-
|
|
1850
|
+
} else await import("./migrate-ImBKTBcW.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
1851
1851
|
logger$6.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
1852
1852
|
});
|
|
1853
1853
|
const appUrls = {};
|
|
@@ -3227,7 +3227,7 @@ async function buildApp(input) {
|
|
|
3227
3227
|
if (production?.bundle && !input.skipBundle) {
|
|
3228
3228
|
const outputDir = join(appRoot, ".gkm", "server");
|
|
3229
3229
|
const entryPoint = await writeSurfaceServer(outputDir, production);
|
|
3230
|
-
const { bundleServer } = await import("./bundler-
|
|
3230
|
+
const { bundleServer } = await import("./bundler-DyWI41Iy.mjs");
|
|
3231
3231
|
await bundleServer({
|
|
3232
3232
|
entryPoint,
|
|
3233
3233
|
outputDir: join(outputDir, "dist"),
|
|
@@ -3365,7 +3365,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
3365
3365
|
let masterKey;
|
|
3366
3366
|
if (context.production?.bundle && !skipBundle) {
|
|
3367
3367
|
logger$5.log(`\n📦 Bundling production server...`);
|
|
3368
|
-
const { bundleServer } = await import("./bundler-
|
|
3368
|
+
const { bundleServer } = await import("./bundler-DyWI41Iy.mjs");
|
|
3369
3369
|
const allConstructs = [
|
|
3370
3370
|
...endpoints.map((e) => e.construct),
|
|
3371
3371
|
...functions.map((f) => f.construct),
|
|
@@ -3529,13 +3529,20 @@ async function workspaceBuildCommand(workspace, options) {
|
|
|
3529
3529
|
if (filters.length > 0) {
|
|
3530
3530
|
logger$5.log(`\n📦 Using ${pm} with Turbo for the other apps...\n`);
|
|
3531
3531
|
logger$5.log(`Running: ${[turboBin, ...turboArgs].join(" ")}`);
|
|
3532
|
-
|
|
3532
|
+
const sandbox = options.sandbox ?? new LocalSandbox({
|
|
3533
|
+
root: workspace.root,
|
|
3534
|
+
passEnv: ["TURBO_TOKEN"]
|
|
3535
|
+
});
|
|
3536
|
+
const built = await sandbox.exec(turboBin, turboArgs, {
|
|
3533
3537
|
cwd: workspace.root,
|
|
3534
3538
|
env: {
|
|
3535
|
-
...
|
|
3539
|
+
...sandbox.env,
|
|
3536
3540
|
NODE_ENV: options.production ? "production" : "development"
|
|
3537
|
-
}
|
|
3541
|
+
},
|
|
3542
|
+
timeoutMs: DEFAULT_TIMEOUT_MS,
|
|
3543
|
+
output: "inherit"
|
|
3538
3544
|
});
|
|
3545
|
+
if (built.exitCode !== 0) throw new CommandFailed(turboBin, turboArgs, built.exitCode, built.signal);
|
|
3539
3546
|
}
|
|
3540
3547
|
for (const [appName, app] of apps) {
|
|
3541
3548
|
const outputPath = getAppOutputPath(workspace, appName, app);
|
|
@@ -6473,25 +6480,25 @@ function loadPackageJson() {
|
|
|
6473
6480
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
6474
6481
|
*/
|
|
6475
6482
|
const GEEKMIDAS_VERSIONS = {
|
|
6476
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
6477
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
6478
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
6479
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
6480
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
6481
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
6482
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
6483
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
6484
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
6485
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
6486
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
6487
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
6488
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
6489
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
6490
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
6491
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
6492
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
6493
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
6494
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
6483
|
+
"@geekmidas/audit": "~10.0.0-alpha.63",
|
|
6484
|
+
"@geekmidas/auth": "~10.0.0-alpha.63",
|
|
6485
|
+
"@geekmidas/cache": "~10.0.0-alpha.63",
|
|
6486
|
+
"@geekmidas/client": "~10.0.0-alpha.63",
|
|
6487
|
+
"@geekmidas/cloud": "~10.0.0-alpha.63",
|
|
6488
|
+
"@geekmidas/constructs": "~10.0.0-alpha.63",
|
|
6489
|
+
"@geekmidas/db": "~10.0.0-alpha.63",
|
|
6490
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.63",
|
|
6491
|
+
"@geekmidas/envkit": "~10.0.0-alpha.63",
|
|
6492
|
+
"@geekmidas/errors": "~10.0.0-alpha.63",
|
|
6493
|
+
"@geekmidas/events": "~10.0.0-alpha.63",
|
|
6494
|
+
"@geekmidas/logger": "~10.0.0-alpha.63",
|
|
6495
|
+
"@geekmidas/manifest": "~10.0.0-alpha.63",
|
|
6496
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.63",
|
|
6497
|
+
"@geekmidas/schema": "~10.0.0-alpha.63",
|
|
6498
|
+
"@geekmidas/services": "~10.0.0-alpha.63",
|
|
6499
|
+
"@geekmidas/storage": "~10.0.0-alpha.63",
|
|
6500
|
+
"@geekmidas/telescope": "~10.0.0-alpha.63",
|
|
6501
|
+
"@geekmidas/testkit": "~10.0.0-alpha.63",
|
|
6495
6502
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
6496
6503
|
};
|
|
6497
6504
|
//#endregion
|
|
@@ -12392,8 +12399,8 @@ function testDatabases(reconciled) {
|
|
|
12392
12399
|
* starts without the reference data the app needs.
|
|
12393
12400
|
*/
|
|
12394
12401
|
async function migrateTestStage(workspace, env) {
|
|
12395
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
12396
|
-
const { discover } = await import("./discover-
|
|
12402
|
+
const { migrateAndSeed } = await import("./migrate-ImBKTBcW.mjs");
|
|
12403
|
+
const { discover } = await import("./discover-BaT6bpnA.mjs").then((n) => n.i);
|
|
12397
12404
|
const sources = {};
|
|
12398
12405
|
const manifest = await discover({
|
|
12399
12406
|
patterns: constructGlobs(workspace),
|
|
@@ -12823,7 +12830,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
12823
12830
|
try {
|
|
12824
12831
|
const globalOptions = program.opts();
|
|
12825
12832
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12826
|
-
const { migrateCommand } = await import("./migrate-
|
|
12833
|
+
const { migrateCommand } = await import("./migrate-ImBKTBcW.mjs");
|
|
12827
12834
|
await migrateCommand({
|
|
12828
12835
|
...options,
|
|
12829
12836
|
...construct ? { construct } : {}
|
|
@@ -12837,7 +12844,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
12837
12844
|
try {
|
|
12838
12845
|
const globalOptions = program.opts();
|
|
12839
12846
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12840
|
-
const { seedCommand } = await import("./migrate-
|
|
12847
|
+
const { seedCommand } = await import("./migrate-ImBKTBcW.mjs");
|
|
12841
12848
|
await seedCommand({
|
|
12842
12849
|
...options,
|
|
12843
12850
|
...construct ? { construct } : {}
|
|
@@ -12851,7 +12858,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
12851
12858
|
try {
|
|
12852
12859
|
const globalOptions = program.opts();
|
|
12853
12860
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12854
|
-
const { migrationCommand } = await import("./migrate-
|
|
12861
|
+
const { migrationCommand } = await import("./migrate-ImBKTBcW.mjs");
|
|
12855
12862
|
await migrationCommand({
|
|
12856
12863
|
construct,
|
|
12857
12864
|
...name ? { name } : {}
|
|
@@ -12959,7 +12966,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
12959
12966
|
try {
|
|
12960
12967
|
const globalOptions = program.opts();
|
|
12961
12968
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12962
|
-
const { encryptionRotateCommand } = await import("./encryption-
|
|
12969
|
+
const { encryptionRotateCommand } = await import("./encryption-CbQG_ayW.mjs");
|
|
12963
12970
|
await encryptionRotateCommand(construct, options);
|
|
12964
12971
|
} catch (error) {
|
|
12965
12972
|
console.error(formatError(error));
|
|
@@ -12970,7 +12977,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
12970
12977
|
try {
|
|
12971
12978
|
const globalOptions = program.opts();
|
|
12972
12979
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12973
|
-
const { encryptionRetireCommand } = await import("./encryption-
|
|
12980
|
+
const { encryptionRetireCommand } = await import("./encryption-CbQG_ayW.mjs");
|
|
12974
12981
|
await encryptionRetireCommand(construct, key, options);
|
|
12975
12982
|
} catch (error) {
|
|
12976
12983
|
console.error(formatError(error));
|
|
@@ -13022,7 +13029,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
13022
13029
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
13023
13030
|
process.exit(1);
|
|
13024
13031
|
}
|
|
13025
|
-
const { derivedContainers } = await import("./sniffer-
|
|
13032
|
+
const { derivedContainers } = await import("./sniffer-aO_-s5vq.mjs").then((n) => n.$);
|
|
13026
13033
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
13027
13034
|
if (!result) {
|
|
13028
13035
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -13037,7 +13044,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
13037
13044
|
}
|
|
13038
13045
|
});
|
|
13039
13046
|
program.command("deploy").description("Deploy a stage through its target").option("--target <name>", "Deploy target: dokploy, 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)").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").action(async (options) => {
|
|
13040
|
-
const { deployCli } = await import("./cli-
|
|
13047
|
+
const { deployCli } = await import("./cli-PkVF28LM.mjs");
|
|
13041
13048
|
const globalOptions = program.opts();
|
|
13042
13049
|
const code = await deployCli({
|
|
13043
13050
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -13070,7 +13077,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
13070
13077
|
try {
|
|
13071
13078
|
const globalOptions = program.opts();
|
|
13072
13079
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
13073
|
-
const { deployGithubCommand } = await import("./github-
|
|
13080
|
+
const { deployGithubCommand } = await import("./github-ciwbIwVa.mjs");
|
|
13074
13081
|
await deployGithubCommand(options);
|
|
13075
13082
|
} catch (error) {
|
|
13076
13083
|
console.error(formatError(error));
|