@geekmidas/cli 10.0.0-alpha.101 → 10.0.0-alpha.103
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/{GoDaddyProvider-u9MF-Dqk.mjs → GoDaddyProvider-8gNDqaml.mjs} +2 -2
- package/dist/{GoDaddyProvider-u9MF-Dqk.mjs.map → GoDaddyProvider-8gNDqaml.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-BOuLf_Py.cjs → GoDaddyProvider-JITjarl9.cjs} +2 -2
- package/dist/{GoDaddyProvider-BOuLf_Py.cjs.map → GoDaddyProvider-JITjarl9.cjs.map} +1 -1
- package/dist/{LegacyStateStore-vhkx7Bbq.mjs → LegacyStateStore-C0WnyYy_.mjs} +3 -3
- package/dist/{LegacyStateStore-vhkx7Bbq.mjs.map → LegacyStateStore-C0WnyYy_.mjs.map} +1 -1
- package/dist/{LegacyStateStore-DWmHGNgH.cjs → LegacyStateStore-D-mcT2Z7.cjs} +3 -3
- package/dist/{LegacyStateStore-DWmHGNgH.cjs.map → LegacyStateStore-D-mcT2Z7.cjs.map} +1 -1
- package/dist/{LocalStateStore-BVKDADoG.cjs → LocalStateStore-CUFfdu-v.cjs} +2 -2
- package/dist/{LocalStateStore-BVKDADoG.cjs.map → LocalStateStore-CUFfdu-v.cjs.map} +1 -1
- package/dist/{LocalStateStore-FVsg0UoM.mjs → LocalStateStore-C_8QWB2r.mjs} +2 -2
- package/dist/{LocalStateStore-FVsg0UoM.mjs.map → LocalStateStore-C_8QWB2r.mjs.map} +1 -1
- package/dist/{S3StateStore-B8seZUsw.mjs → S3StateStore-B0Vy19db.mjs} +2 -2
- package/dist/{S3StateStore-B8seZUsw.mjs.map → S3StateStore-B0Vy19db.mjs.map} +1 -1
- package/dist/{S3StateStore-B_2gE9Un.cjs → S3StateStore-DIJ6CCv_.cjs} +2 -2
- package/dist/{S3StateStore-B_2gE9Un.cjs.map → S3StateStore-DIJ6CCv_.cjs.map} +1 -1
- package/dist/{SSMStateStore-CTDEI5Bi.cjs → SSMStateStore-D577um0e.cjs} +2 -2
- package/dist/{SSMStateStore-CTDEI5Bi.cjs.map → SSMStateStore-D577um0e.cjs.map} +1 -1
- package/dist/{SSMStateStore-DGTbBomw.mjs → SSMStateStore-DgBlEqYO.mjs} +2 -2
- package/dist/{SSMStateStore-DGTbBomw.mjs.map → SSMStateStore-DgBlEqYO.mjs.map} +1 -1
- package/dist/{SubscriberGenerator-BlIOdbi-.cjs → SubscriberGenerator-DmPM_3c5.cjs} +91 -10
- package/dist/SubscriberGenerator-DmPM_3c5.cjs.map +1 -0
- package/dist/{SubscriberGenerator-1-IsjIwF.mjs → SubscriberGenerator-YK-7ewmi.mjs} +80 -11
- package/dist/SubscriberGenerator-YK-7ewmi.mjs.map +1 -0
- package/dist/{add-CIbhGE5v.mjs → add-BJJKhUnO.mjs} +3 -3
- package/dist/{add-CIbhGE5v.mjs.map → add-BJJKhUnO.mjs.map} +1 -1
- package/dist/{add-BB2tLVc2.cjs → add-D97HfZ7z.cjs} +3 -3
- package/dist/{add-BB2tLVc2.cjs.map → add-D97HfZ7z.cjs.map} +1 -1
- package/dist/{bundler-Ba6BER3w.cjs → bundler-CtEQAnym.cjs} +5 -5
- package/dist/{bundler-Ba6BER3w.cjs.map → bundler-CtEQAnym.cjs.map} +1 -1
- package/dist/{bundler-CHjRYVKh.mjs → bundler-CzbrMpDf.mjs} +5 -5
- package/dist/{bundler-CHjRYVKh.mjs.map → bundler-CzbrMpDf.mjs.map} +1 -1
- package/dist/{cli-CtlqYRlN.cjs → cli-CIv8PA-v.cjs} +2 -2
- package/dist/{cli-CtlqYRlN.cjs.map → cli-CIv8PA-v.cjs.map} +1 -1
- package/dist/{cli-DOlkhrsh.mjs → cli-D_zrFs9-.mjs} +2 -2
- package/dist/{cli-DOlkhrsh.mjs.map → cli-D_zrFs9-.mjs.map} +1 -1
- package/dist/{compose-uAWLy-nR.cjs → compose-BviikvXq.cjs} +5 -5
- package/dist/{compose-uAWLy-nR.cjs.map → compose-BviikvXq.cjs.map} +1 -1
- package/dist/{compose-FDP_TaFt.mjs → compose-DtPhKs0u.mjs} +5 -5
- package/dist/{compose-FDP_TaFt.mjs.map → compose-DtPhKs0u.mjs.map} +1 -1
- package/dist/deploy/public.cjs +6 -6
- package/dist/deploy/public.mjs +6 -6
- package/dist/{deploy-DgZxTnGS.mjs → deploy-DyPt41Oq.mjs} +5 -5
- package/dist/{deploy-DgZxTnGS.mjs.map → deploy-DyPt41Oq.mjs.map} +1 -1
- package/dist/{deploy-DUUc3jV9.cjs → deploy-cv0i1yFo.cjs} +5 -5
- package/dist/{deploy-DUUc3jV9.cjs.map → deploy-cv0i1yFo.cjs.map} +1 -1
- package/dist/{dns-DDDCfj75.mjs → dns-B-wqZiyQ.mjs} +2 -2
- package/dist/{dns-DDDCfj75.mjs.map → dns-B-wqZiyQ.mjs.map} +1 -1
- package/dist/{dns-DnE_02tB.cjs → dns-_rxfINeq.cjs} +2 -2
- package/dist/{dns-DnE_02tB.cjs.map → dns-_rxfINeq.cjs.map} +1 -1
- package/dist/{dokploy-DBlGSdnb.mjs → dokploy-BJQ9HjVv.mjs} +2 -2
- package/dist/{dokploy-DBlGSdnb.mjs.map → dokploy-BJQ9HjVv.mjs.map} +1 -1
- package/dist/{dokploy-BrfdeVEu.cjs → dokploy-DSvw-l5b.cjs} +2 -2
- package/dist/{dokploy-BrfdeVEu.cjs.map → dokploy-DSvw-l5b.cjs.map} +1 -1
- package/dist/{drivers-BLU1fNs_.cjs → drivers-DEDL8vPE.cjs} +2 -2
- package/dist/{drivers-BLU1fNs_.cjs.map → drivers-DEDL8vPE.cjs.map} +1 -1
- package/dist/{drivers-C08LL4E8.mjs → drivers-OXhPkaNB.mjs} +2 -2
- package/dist/{drivers-C08LL4E8.mjs.map → drivers-OXhPkaNB.mjs.map} +1 -1
- package/dist/{encryption-DC8zsh2s.mjs → encryption-BUAZ3OEJ.mjs} +2 -2
- package/dist/{encryption-DC8zsh2s.mjs.map → encryption-BUAZ3OEJ.mjs.map} +1 -1
- package/dist/{encryption-CeW3xpE1.cjs → encryption-UgYs2YYM.cjs} +2 -2
- package/dist/{encryption-CeW3xpE1.cjs.map → encryption-UgYs2YYM.cjs.map} +1 -1
- package/dist/{engine-BXxvcxVq.cjs → engine-Blx6G12-.cjs} +3 -3
- package/dist/{engine-BXxvcxVq.cjs.map → engine-Blx6G12-.cjs.map} +1 -1
- package/dist/{engine-z0UClzE9.mjs → engine-VnbN4VnX.mjs} +3 -3
- package/dist/{engine-z0UClzE9.mjs.map → engine-VnbN4VnX.mjs.map} +1 -1
- package/dist/{github-DWoFgxtl.cjs → github-C-L3qfYZ.cjs} +4 -4
- package/dist/{github-DWoFgxtl.cjs.map → github-C-L3qfYZ.cjs.map} +1 -1
- package/dist/{github-DJgO5z37.mjs → github-D2uJ32Af.mjs} +4 -4
- package/dist/{github-DJgO5z37.mjs.map → github-D2uJ32Af.mjs.map} +1 -1
- package/dist/index.cjs +54 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +54 -50
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-DIVxoju6.mjs → migrate-BFH52jlU.mjs} +2 -2
- package/dist/{migrate-DIVxoju6.mjs.map → migrate-BFH52jlU.mjs.map} +1 -1
- package/dist/{migrate-CWSCkzu3.cjs → migrate-DdociPvx.cjs} +2 -2
- package/dist/{migrate-CWSCkzu3.cjs.map → migrate-DdociPvx.cjs.map} +1 -1
- package/dist/{migrate-DoI2hWNH.mjs → migrate-Dqjr7rfs.mjs} +2 -2
- package/dist/{migrate-DoI2hWNH.mjs.map → migrate-Dqjr7rfs.mjs.map} +1 -1
- package/dist/{migrate-B1OjPwUY.cjs → migrate-DxAFe2EV.cjs} +2 -2
- package/dist/{migrate-B1OjPwUY.cjs.map → migrate-DxAFe2EV.cjs.map} +1 -1
- package/dist/{ready-CzHNHhI6.mjs → ready-CuSU8Ap0.mjs} +3 -3
- package/dist/{ready-CzHNHhI6.mjs.map → ready-CuSU8Ap0.mjs.map} +1 -1
- package/dist/{ready-BtxiI7Qb.cjs → ready-D38XpZ0L.cjs} +3 -3
- package/dist/{ready-BtxiI7Qb.cjs.map → ready-D38XpZ0L.cjs.map} +1 -1
- package/dist/{resolve-pmXIdi9j.mjs → resolve-BGgwxfCz.mjs} +3 -3
- package/dist/{resolve-pmXIdi9j.mjs.map → resolve-BGgwxfCz.mjs.map} +1 -1
- package/dist/{resolve-WAwYMN6q.cjs → resolve-aqhkZfDI.cjs} +3 -3
- package/dist/{resolve-WAwYMN6q.cjs.map → resolve-aqhkZfDI.cjs.map} +1 -1
- package/dist/{rollback-CLtwbByg.mjs → rollback-DUbUQeoz.mjs} +4 -4
- package/dist/{rollback-CLtwbByg.mjs.map → rollback-DUbUQeoz.mjs.map} +1 -1
- package/dist/{rollback-Cz8F9xSB.cjs → rollback-qk3-knJ7.cjs} +4 -4
- package/dist/{rollback-Cz8F9xSB.cjs.map → rollback-qk3-knJ7.cjs.map} +1 -1
- package/dist/{seeds-BHKUAExH.mjs → seeds-Cx8NmuQj.mjs} +13 -6
- package/dist/seeds-Cx8NmuQj.mjs.map +1 -0
- package/dist/{seeds-Dk4WHhjU.cjs → seeds-a1H3kuqu.cjs} +13 -6
- package/dist/seeds-a1H3kuqu.cjs.map +1 -0
- package/dist/{sniffer-CaXl51vO.mjs → sniffer-Bt2H-BZ_.mjs} +6 -6
- package/dist/{sniffer-CaXl51vO.mjs.map → sniffer-Bt2H-BZ_.mjs.map} +1 -1
- package/dist/{sniffer-BjBZ01PE.cjs → sniffer-DxYAi7bz.cjs} +6 -6
- package/dist/{sniffer-BjBZ01PE.cjs.map → sniffer-DxYAi7bz.cjs.map} +1 -1
- 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/SubscriberGenerator-1-IsjIwF.mjs.map +0 -1
- package/dist/SubscriberGenerator-BlIOdbi-.cjs.map +0 -1
- package/dist/seeds-BHKUAExH.mjs.map +0 -1
- package/dist/seeds-Dk4WHhjU.cjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -3,27 +3,27 @@ import { n as __require, t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mj
|
|
|
3
3
|
import { n as isGkmError, t as GkmError } from "./errors-D8Gwp5kU.mjs";
|
|
4
4
|
import { r as DEFAULT_TIMEOUT_MS, t as CommandFailed } from "./run-BJLIerMM.mjs";
|
|
5
5
|
import { a as getDokployCredentials, d as removeGoDaddyCredentials, f as storeDokployCredentials, i as getCredentialsPath, l as readCredentials, m as storeHostingerToken, o as getDokployRegistryId, p as storeGoDaddyToken, s as getDokployToken, u as removeDokployCredentials } from "./credentials-B5N5yKk6.mjs";
|
|
6
|
-
import { _ as sshTarget, a as stackOverrideFile, c as composeProject, d as stackPlan, f as EDGE_PROJECT, g as dockerHost, h as composeServer, i as ComposePushNeedsBuild, l as derivedCredentials, m as pinnedRef, o as edgeRef, p as parseDigests, r as ComposePinNeedsPull, s as removeEdgeRoutes, t as composeTarget, u as stackDir, v as dockerCompose, y as projectNetwork } from "./compose-
|
|
6
|
+
import { _ as sshTarget, a as stackOverrideFile, c as composeProject, d as stackPlan, f as EDGE_PROJECT, g as dockerHost, h as composeServer, i as ComposePushNeedsBuild, l as derivedCredentials, m as pinnedRef, o as edgeRef, p as parseDigests, r as ComposePinNeedsPull, s as removeEdgeRoutes, t as composeTarget, u as stackDir, v as dockerCompose, y as projectNetwork } from "./compose-DtPhKs0u.mjs";
|
|
7
7
|
import { A as InvalidStages, F as stageProblems, P as deployedProblems, R as stageSampleRate, a as allConstructGlobs, d as getAppGkmConfig, j as TEST_STAGE, u as getAppBuildOrder } from "./workspace-D1QbNd55.mjs";
|
|
8
|
-
import { b as runTime, d as BACKUPS_URL_KEY, f as RUNNER_PATH, g as backupDatabases, u as BACKUPS_SERVICE, v as backupFile, x as stageBackups, y as backupsPrefix } from "./dns-
|
|
9
|
-
import { An as scopeTelemetryEnv, At as isPortAvailable, Bn as portsOf, Bt as maskPassword, Ct as cacheBackendFor, Dt as createCredentialsPreload, G as CronGenerator, H as workerBundleName, Hn as primaryPortKey, Ht as toEmbeddableSecrets, It as secretsStoreFor, L as dockerCommand, Ln as describeServices, Mn as telemetryOf, Mt as loadPortState, Nt as loadSecretsForApp, On as appTelemetry, Ot as createEntryWrapper, Pt as prepareEntryCredentials, Q as assertDevServicesFlag, Qt as workerUnits, Rn as fakeKey, Tn as TELEMETRY_CONTAINER, Tt as providerOf, U as workerEntryDir, Un as LOCAL_LOGS_EMAIL, Ut as withCustomSecret, V as WorkerGenerator, W as QueueGenerator, Xt as imageBuildCredentials, Zt as isImageBuild, a as dnsResources, an as quoteIdentifier, bt as pgClient, c as describeActor, dn as FileSecretsStore, dt as constructGlobs, fn as getKeyPath, ft as derivedContainers, gt as forgetState, ht as LOCAL_CA_PATH, jn as surfaceClientTraced, jt as loadEnvFiles, kt as findAvailablePort, lt as FAKE_ENV, mn as projectKey, pt as reconcileWorkspace, rn as postgresDatabaseNames, un as readLocalCredentials, ut as backendsOf$1, wt as eventsBackendFor, xt as CLUSTER_DATABASE } from "./seeds-
|
|
8
|
+
import { b as runTime, d as BACKUPS_URL_KEY, f as RUNNER_PATH, g as backupDatabases, u as BACKUPS_SERVICE, v as backupFile, x as stageBackups, y as backupsPrefix } from "./dns-B-wqZiyQ.mjs";
|
|
9
|
+
import { An as scopeTelemetryEnv, At as isPortAvailable, Bn as portsOf, Bt as maskPassword, Ct as cacheBackendFor, Dt as createCredentialsPreload, G as CronGenerator, H as workerBundleName, Hn as primaryPortKey, Ht as toEmbeddableSecrets, It as secretsStoreFor, L as dockerCommand, Ln as describeServices, Mn as telemetryOf, Mt as loadPortState, Nt as loadSecretsForApp, On as appTelemetry, Ot as createEntryWrapper, Pt as prepareEntryCredentials, Q as assertDevServicesFlag, Qt as workerUnits, Rn as fakeKey, Tn as TELEMETRY_CONTAINER, Tt as providerOf, U as workerEntryDir, Un as LOCAL_LOGS_EMAIL, Ut as withCustomSecret, V as WorkerGenerator, W as QueueGenerator, Xt as imageBuildCredentials, Zt as isImageBuild, a as dnsResources, an as quoteIdentifier, bt as pgClient, c as describeActor, dn as FileSecretsStore, dt as constructGlobs, fn as getKeyPath, ft as derivedContainers, gt as forgetState, ht as LOCAL_CA_PATH, jn as surfaceClientTraced, jt as loadEnvFiles, kt as findAvailablePort, lt as FAKE_ENV, mn as projectKey, pt as reconcileWorkspace, rn as postgresDatabaseNames, un as readLocalCredentials, ut as backendsOf$1, wt as eventsBackendFor, xt as CLUSTER_DATABASE } from "./seeds-Cx8NmuQj.mjs";
|
|
10
10
|
import { t as appKey } from "./derive-B4vDpzgP.mjs";
|
|
11
|
-
import {
|
|
11
|
+
import { l as isCacheBackend, n as assertTestCredentials, t as SubscriberGenerator } from "./SubscriberGenerator-YK-7ewmi.mjs";
|
|
12
12
|
import { n as deployIdentity } from "./identity-CBXr4wNi.mjs";
|
|
13
13
|
import { a as startTelemetryCode, c as parseTelemetryFlag, i as routeTelemetry, n as runtimeFor, o as telemetryFor, r as mountRequestSpansCode, s as writeTelemetryModule, t as EndpointGenerator } from "./EndpointGenerator-Br97xgs_.mjs";
|
|
14
14
|
import { l as withOwningTsconfigJsx, r as discover, u as ConstructGenerator } from "./discover-kziEht4W.mjs";
|
|
15
15
|
import { ConfigNotFound, NotABackendApp, NotInAnApp, loadAppConfig, loadConfig, loadWorkspaceConfig, loadWorkspaceSettings, parseModuleConfig } from "./config.mjs";
|
|
16
|
-
import { d as awsEndpoint, f as awsProvisioningCredentials, t as deploy$1, u as awsClientConfig } from "./deploy-
|
|
16
|
+
import { d as awsEndpoint, f as awsProvisioningCredentials, t as deploy$1, u as awsClientConfig } from "./deploy-DyPt41Oq.mjs";
|
|
17
17
|
import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
|
|
18
18
|
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";
|
|
19
|
-
import { n as driversFor, r as eventsBackendsIn, t as cacheBackendsIn } from "./drivers-
|
|
19
|
+
import { n as driversFor, r as eventsBackendsIn, t as cacheBackendsIn } from "./drivers-OXhPkaNB.mjs";
|
|
20
20
|
import { n as withCompute, r as withRoutes, t as manifestModule } from "./emit-C1e8qD08.mjs";
|
|
21
21
|
import { t as LocalSandbox } from "./local-BwC2v2Y8.mjs";
|
|
22
|
-
import { S as createStateStore, k as keyFingerprint, n as sniffAppEnvironment, o as DokployApi } from "./sniffer-
|
|
22
|
+
import { S as createStateStore, k as keyFingerprint, n as sniffAppEnvironment, o as DokployApi } from "./sniffer-Bt2H-BZ_.mjs";
|
|
23
23
|
import { o as loadCredentialSchemas, t as CredentialsInvalid } from "./credentialSchemas-DvitraL-.mjs";
|
|
24
|
-
import { t as LocalStateStore } from "./LocalStateStore-
|
|
24
|
+
import { t as LocalStateStore } from "./LocalStateStore-C_8QWB2r.mjs";
|
|
25
25
|
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";
|
|
26
|
-
import { a as writeTestHarness, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, t as TEST_READY_ENV } from "./ready-
|
|
26
|
+
import { a as writeTestHarness, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, t as TEST_READY_ENV } from "./ready-CuSU8Ap0.mjs";
|
|
27
27
|
import { createRequire } from "node:module";
|
|
28
28
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
29
29
|
import { Command, Option } from "commander";
|
|
@@ -51,7 +51,7 @@ import crypto from "crypto";
|
|
|
51
51
|
import { Function } from "@geekmidas/constructs/functions";
|
|
52
52
|
import { Topic } from "@geekmidas/constructs/topic";
|
|
53
53
|
//#region package.json
|
|
54
|
-
var version = "10.0.0-alpha.
|
|
54
|
+
var version = "10.0.0-alpha.103";
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region src/prompt.ts
|
|
57
57
|
/**
|
|
@@ -134,7 +134,7 @@ const logger$8 = console;
|
|
|
134
134
|
* Validate Dokploy token by making a test API call
|
|
135
135
|
*/
|
|
136
136
|
async function validateDokployToken(endpoint, token) {
|
|
137
|
-
const { DokployApi } = await import("./sniffer-
|
|
137
|
+
const { DokployApi } = await import("./sniffer-Bt2H-BZ_.mjs").then((n) => n.c);
|
|
138
138
|
return new DokployApi({
|
|
139
139
|
baseUrl: endpoint,
|
|
140
140
|
token
|
|
@@ -2728,9 +2728,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
2728
2728
|
for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
2729
2729
|
logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
2730
2730
|
if (options.migrate || options.seed) {
|
|
2731
|
-
const { prepareDevDatabases } = await import("./migrate-
|
|
2731
|
+
const { prepareDevDatabases } = await import("./migrate-BFH52jlU.mjs");
|
|
2732
2732
|
await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
|
|
2733
|
-
} else await import("./migrate-
|
|
2733
|
+
} else await import("./migrate-BFH52jlU.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
2734
2734
|
logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
2735
2735
|
});
|
|
2736
2736
|
const appUrls = {};
|
|
@@ -3783,7 +3783,7 @@ async function buildApp(input) {
|
|
|
3783
3783
|
...production,
|
|
3784
3784
|
...telemetry ? { telemetry } : {}
|
|
3785
3785
|
});
|
|
3786
|
-
const { bundleServer } = await import("./bundler-
|
|
3786
|
+
const { bundleServer } = await import("./bundler-CzbrMpDf.mjs");
|
|
3787
3787
|
await bundleServer({
|
|
3788
3788
|
entryPoint,
|
|
3789
3789
|
outputDir: join(outputDir, "dist"),
|
|
@@ -3928,7 +3928,7 @@ async function buildWorkers(input) {
|
|
|
3928
3928
|
});
|
|
3929
3929
|
logger$4.log(`Generated worker ${worker.id}: ${crons.length} crons, ${queues.length} queues, ${subscribers.length} subscribers`);
|
|
3930
3930
|
if (!input.bundle) continue;
|
|
3931
|
-
const { bundleServer } = await import("./bundler-
|
|
3931
|
+
const { bundleServer } = await import("./bundler-CzbrMpDf.mjs");
|
|
3932
3932
|
const outfile = workerBundleName(worker.id);
|
|
3933
3933
|
await bundleServer({
|
|
3934
3934
|
entryPoint,
|
|
@@ -4014,7 +4014,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
4014
4014
|
let masterKey;
|
|
4015
4015
|
if (context.production?.bundle && !skipBundle) {
|
|
4016
4016
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
4017
|
-
const { bundleServer } = await import("./bundler-
|
|
4017
|
+
const { bundleServer } = await import("./bundler-CzbrMpDf.mjs");
|
|
4018
4018
|
const allConstructs = [
|
|
4019
4019
|
...endpoints.map((e) => e.construct),
|
|
4020
4020
|
...functions.map((f) => f.construct),
|
|
@@ -5842,25 +5842,25 @@ function loadPackageJson() {
|
|
|
5842
5842
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
5843
5843
|
*/
|
|
5844
5844
|
const GEEKMIDAS_VERSIONS = {
|
|
5845
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
5846
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
5847
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
5848
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
5849
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
5850
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
5851
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
5852
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
5853
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
5854
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
5855
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
5856
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
5857
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
5858
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
5859
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
5860
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
5861
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
5862
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
5863
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
5845
|
+
"@geekmidas/audit": "~10.0.0-alpha.103",
|
|
5846
|
+
"@geekmidas/auth": "~10.0.0-alpha.103",
|
|
5847
|
+
"@geekmidas/cache": "~10.0.0-alpha.103",
|
|
5848
|
+
"@geekmidas/client": "~10.0.0-alpha.103",
|
|
5849
|
+
"@geekmidas/cloud": "~10.0.0-alpha.103",
|
|
5850
|
+
"@geekmidas/constructs": "~10.0.0-alpha.103",
|
|
5851
|
+
"@geekmidas/db": "~10.0.0-alpha.103",
|
|
5852
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.103",
|
|
5853
|
+
"@geekmidas/envkit": "~10.0.0-alpha.103",
|
|
5854
|
+
"@geekmidas/errors": "~10.0.0-alpha.103",
|
|
5855
|
+
"@geekmidas/events": "~10.0.0-alpha.103",
|
|
5856
|
+
"@geekmidas/logger": "~10.0.0-alpha.103",
|
|
5857
|
+
"@geekmidas/manifest": "~10.0.0-alpha.103",
|
|
5858
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.103",
|
|
5859
|
+
"@geekmidas/schema": "~10.0.0-alpha.103",
|
|
5860
|
+
"@geekmidas/services": "~10.0.0-alpha.103",
|
|
5861
|
+
"@geekmidas/storage": "~10.0.0-alpha.103",
|
|
5862
|
+
"@geekmidas/telescope": "~10.0.0-alpha.103",
|
|
5863
|
+
"@geekmidas/testkit": "~10.0.0-alpha.103",
|
|
5864
5864
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
5865
5865
|
};
|
|
5866
5866
|
//#endregion
|
|
@@ -6261,7 +6261,7 @@ const COMMIT = /^[0-9a-f]{40}$/;
|
|
|
6261
6261
|
* The `uses:` value for the stages action, with a comment saying which CLI
|
|
6262
6262
|
* release the pinned commit is.
|
|
6263
6263
|
*/
|
|
6264
|
-
function stagesActionUses(commit = "
|
|
6264
|
+
function stagesActionUses(commit = "c518ade2e4c56bd3203adae5276732982be2588f", version = cliVersion()) {
|
|
6265
6265
|
return commit && COMMIT.test(commit) ? `${STAGES_ACTION}@${commit} # @geekmidas/cli ${version}` : `${STAGES_ACTION}@main # pin to a commit SHA: see the action's README`;
|
|
6266
6266
|
}
|
|
6267
6267
|
//#endregion
|
|
@@ -11898,6 +11898,7 @@ async function testCommand(options = {}) {
|
|
|
11898
11898
|
secretsFileName: "test-secrets.json",
|
|
11899
11899
|
reconcileStage: "test"
|
|
11900
11900
|
});
|
|
11901
|
+
const credentials = result.reconciled ? assertTestCredentials(result.secretsRoot, result.reconciled.plan, result.credentials) : {};
|
|
11901
11902
|
let finalCredentials = { ...result.credentials };
|
|
11902
11903
|
if (result.appInfo) {
|
|
11903
11904
|
const sniffed = await sniffAppEnvironment(result.appInfo.app, result.appInfo.appName, result.appInfo.workspaceRoot, { logWarnings: false });
|
|
@@ -11905,7 +11906,10 @@ async function testCommand(options = {}) {
|
|
|
11905
11906
|
const needed = /* @__PURE__ */ new Set([...sniffed.requiredEnvVars, ...result.declaredKeys]);
|
|
11906
11907
|
const filtered = {};
|
|
11907
11908
|
for (const [key, value] of Object.entries(finalCredentials)) if (needed.has(key)) filtered[key] = value;
|
|
11908
|
-
finalCredentials =
|
|
11909
|
+
finalCredentials = {
|
|
11910
|
+
...filtered,
|
|
11911
|
+
...credentials
|
|
11912
|
+
};
|
|
11909
11913
|
console.log(` 🔍 Sniffed ${sniffed.requiredEnvVars.length} required env var(s)` + (result.declaredKeys.length > 0 ? `, kept ${result.declaredKeys.length} declared` : ""));
|
|
11910
11914
|
}
|
|
11911
11915
|
}
|
|
@@ -11999,7 +12003,7 @@ function testDatabases(reconciled) {
|
|
|
11999
12003
|
* starts without the reference data the app needs.
|
|
12000
12004
|
*/
|
|
12001
12005
|
async function migrateTestStage(workspace, env) {
|
|
12002
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
12006
|
+
const { migrateAndSeed } = await import("./migrate-BFH52jlU.mjs");
|
|
12003
12007
|
const { discover } = await import("./discover-kziEht4W.mjs").then((n) => n.i);
|
|
12004
12008
|
const sources = {};
|
|
12005
12009
|
const manifest = await discover({
|
|
@@ -12435,7 +12439,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
12435
12439
|
try {
|
|
12436
12440
|
const globalOptions = program.opts();
|
|
12437
12441
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12438
|
-
const { migrateCommand } = await import("./migrate-
|
|
12442
|
+
const { migrateCommand } = await import("./migrate-BFH52jlU.mjs");
|
|
12439
12443
|
await migrateCommand({
|
|
12440
12444
|
...options,
|
|
12441
12445
|
...construct ? { construct } : {}
|
|
@@ -12448,7 +12452,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
12448
12452
|
try {
|
|
12449
12453
|
const globalOptions = program.opts();
|
|
12450
12454
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12451
|
-
const { seedCommand } = await import("./migrate-
|
|
12455
|
+
const { seedCommand } = await import("./migrate-BFH52jlU.mjs");
|
|
12452
12456
|
await seedCommand({
|
|
12453
12457
|
...options,
|
|
12454
12458
|
...construct ? { construct } : {}
|
|
@@ -12461,7 +12465,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
12461
12465
|
try {
|
|
12462
12466
|
const globalOptions = program.opts();
|
|
12463
12467
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12464
|
-
const { migrationCommand } = await import("./migrate-
|
|
12468
|
+
const { migrationCommand } = await import("./migrate-BFH52jlU.mjs");
|
|
12465
12469
|
await migrationCommand({
|
|
12466
12470
|
construct,
|
|
12467
12471
|
...name ? { name } : {}
|
|
@@ -12561,7 +12565,7 @@ program.command("secrets:add").description("Build the keys a stage must be given
|
|
|
12561
12565
|
try {
|
|
12562
12566
|
const globalOptions = program.opts();
|
|
12563
12567
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12564
|
-
const { secretsAddCommand } = await import("./add-
|
|
12568
|
+
const { secretsAddCommand } = await import("./add-BJJKhUnO.mjs");
|
|
12565
12569
|
await secretsAddCommand(options);
|
|
12566
12570
|
} catch (error) {
|
|
12567
12571
|
exitWithError(error);
|
|
@@ -12571,7 +12575,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
12571
12575
|
try {
|
|
12572
12576
|
const globalOptions = program.opts();
|
|
12573
12577
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12574
|
-
const { encryptionRotateCommand } = await import("./encryption-
|
|
12578
|
+
const { encryptionRotateCommand } = await import("./encryption-BUAZ3OEJ.mjs");
|
|
12575
12579
|
await encryptionRotateCommand(construct, options);
|
|
12576
12580
|
} catch (error) {
|
|
12577
12581
|
exitWithError(error);
|
|
@@ -12581,7 +12585,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
12581
12585
|
try {
|
|
12582
12586
|
const globalOptions = program.opts();
|
|
12583
12587
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12584
|
-
const { encryptionRetireCommand } = await import("./encryption-
|
|
12588
|
+
const { encryptionRetireCommand } = await import("./encryption-BUAZ3OEJ.mjs");
|
|
12585
12589
|
await encryptionRetireCommand(construct, key, options);
|
|
12586
12590
|
} catch (error) {
|
|
12587
12591
|
exitWithError(error);
|
|
@@ -12620,7 +12624,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
12620
12624
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12621
12625
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
12622
12626
|
const { reconcileMissingSecrets } = await import("./reconcile--I7V4Klj.mjs");
|
|
12623
|
-
const { secretsStoreFor } = await import("./seeds-
|
|
12627
|
+
const { secretsStoreFor } = await import("./seeds-Cx8NmuQj.mjs").then((n) => n.Rt);
|
|
12624
12628
|
const { workspace } = await loadWorkspaceConfig();
|
|
12625
12629
|
const stage = options.stage ?? workspace.stages.local;
|
|
12626
12630
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -12629,7 +12633,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
12629
12633
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
12630
12634
|
process.exit(1);
|
|
12631
12635
|
}
|
|
12632
|
-
const { derivedContainers } = await import("./seeds-
|
|
12636
|
+
const { derivedContainers } = await import("./seeds-Cx8NmuQj.mjs").then((n) => n.mt);
|
|
12633
12637
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
12634
12638
|
if (!result) {
|
|
12635
12639
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -12646,14 +12650,14 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
12646
12650
|
try {
|
|
12647
12651
|
const globalOptions = program.opts();
|
|
12648
12652
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12649
|
-
const { secretsMigrateCommand } = await import("./migrate-
|
|
12653
|
+
const { secretsMigrateCommand } = await import("./migrate-Dqjr7rfs.mjs");
|
|
12650
12654
|
await secretsMigrateCommand(options);
|
|
12651
12655
|
} catch (error) {
|
|
12652
12656
|
exitWithError(error);
|
|
12653
12657
|
}
|
|
12654
12658
|
});
|
|
12655
12659
|
program.command("deploy").description("Deploy a stage through its target").option("--target <name>", "Deploy target: dokploy, compose, sst, or one named in deploy.targets (default: deploy.default)").option("--provider <provider>", "[DEPRECATED] Use --target instead").requiredOption("--stage <stage>", "Deployment stage (e.g., production, staging)").option("--tag <tag>", "Image tag (default: stage-timestamp; compose: the commit). Compose pulls a given tag").option("--skip-push", "Skip pushing image to registry").option("--skip-build", "Skip build step (use existing build)").option("--json", "Write events as JSON lines instead of progress; never prompts").option("--dry-run", "Show what would be created or reused; change, build and push nothing").option("--atomic", "If the release fails, roll back every app it released, not only the failed ones").option("--allow-dev-services", "Server targets: run the dev service (MinIO, Mailpit) for every bucket and mail the stage doesn't account for. Not production-grade").option("--skip-dns", "Compose: neither write the public hosts' DNS records nor check they point at GKM_SERVER_IPV4 (a CDN or proxy in front, or records written elsewhere)").option("--rotate-keys", "Deployed stage: each provider issues its runtime keys a successor (the old one is deleted by the next deploy)").option("--retire-old-keys", "Deployed stage: delete a rotated-out key now instead of on the next deploy").action(async (options) => {
|
|
12656
|
-
const { deployCli } = await import("./cli-
|
|
12660
|
+
const { deployCli } = await import("./cli-D_zrFs9-.mjs");
|
|
12657
12661
|
const globalOptions = program.opts();
|
|
12658
12662
|
const code = await deployCli({
|
|
12659
12663
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -12673,7 +12677,7 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
12673
12677
|
});
|
|
12674
12678
|
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) => {
|
|
12675
12679
|
try {
|
|
12676
|
-
const { rollbackStage } = await import("./rollback-
|
|
12680
|
+
const { rollbackStage } = await import("./rollback-DUbUQeoz.mjs").then((n) => n.a);
|
|
12677
12681
|
const { terminalCredentials } = await import("./terminal-Bs_lNQhL.mjs");
|
|
12678
12682
|
const globalOptions = program.opts();
|
|
12679
12683
|
await rollbackStage({
|
|
@@ -12707,7 +12711,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
12707
12711
|
try {
|
|
12708
12712
|
const globalOptions = program.opts();
|
|
12709
12713
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12710
|
-
const { deployGithubCommand } = await import("./github-
|
|
12714
|
+
const { deployGithubCommand } = await import("./github-D2uJ32Af.mjs");
|
|
12711
12715
|
await deployGithubCommand(options);
|
|
12712
12716
|
} catch (error) {
|
|
12713
12717
|
exitWithError(error);
|