@geekmidas/cli 10.0.0-alpha.114 → 10.0.0-alpha.116
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-DWrDIXzQ.cjs → GoDaddyProvider-BDvIMTO-.cjs} +2 -2
- package/dist/{GoDaddyProvider-DWrDIXzQ.cjs.map → GoDaddyProvider-BDvIMTO-.cjs.map} +1 -1
- package/dist/{GoDaddyProvider-CPabc3XW.mjs → GoDaddyProvider-eW1mre1g.mjs} +2 -2
- package/dist/{GoDaddyProvider-CPabc3XW.mjs.map → GoDaddyProvider-eW1mre1g.mjs.map} +1 -1
- package/dist/{LegacyStateStore-BdXoAlYY.mjs → LegacyStateStore-Ba1_x0cr.mjs} +3 -3
- package/dist/{LegacyStateStore-BdXoAlYY.mjs.map → LegacyStateStore-Ba1_x0cr.mjs.map} +1 -1
- package/dist/{LegacyStateStore-fsyPGBWu.cjs → LegacyStateStore-DFeykTd8.cjs} +3 -3
- package/dist/{LegacyStateStore-fsyPGBWu.cjs.map → LegacyStateStore-DFeykTd8.cjs.map} +1 -1
- package/dist/{LocalStateStore-BrAX5yy7.mjs → LocalStateStore-C1rUUvBr.mjs} +2 -2
- package/dist/{LocalStateStore-BrAX5yy7.mjs.map → LocalStateStore-C1rUUvBr.mjs.map} +1 -1
- package/dist/{LocalStateStore-AtviUBky.cjs → LocalStateStore-CV-04jpI.cjs} +2 -2
- package/dist/{LocalStateStore-AtviUBky.cjs.map → LocalStateStore-CV-04jpI.cjs.map} +1 -1
- package/dist/{S3StateStore-tn5g80Sx.cjs → S3StateStore-CqYi-1sb.cjs} +2 -2
- package/dist/{S3StateStore-tn5g80Sx.cjs.map → S3StateStore-CqYi-1sb.cjs.map} +1 -1
- package/dist/{S3StateStore-Cx7njkBz.mjs → S3StateStore-Dszt4fN5.mjs} +2 -2
- package/dist/{S3StateStore-Cx7njkBz.mjs.map → S3StateStore-Dszt4fN5.mjs.map} +1 -1
- package/dist/{SSMStateStore-sqZ3oDmn.mjs → SSMStateStore-BYRUyMkE.mjs} +2 -2
- package/dist/{SSMStateStore-sqZ3oDmn.mjs.map → SSMStateStore-BYRUyMkE.mjs.map} +1 -1
- package/dist/{SSMStateStore-CAFde-Fq.cjs → SSMStateStore-zpHjDCAW.cjs} +2 -2
- package/dist/{SSMStateStore-CAFde-Fq.cjs.map → SSMStateStore-zpHjDCAW.cjs.map} +1 -1
- package/dist/{add-Cs8yT5iH.cjs → add-0XI8_HOf.cjs} +3 -3
- package/dist/{add-Cs8yT5iH.cjs.map → add-0XI8_HOf.cjs.map} +1 -1
- package/dist/{add-DJE7zqJ4.mjs → add-DXdJjp0b.mjs} +3 -3
- package/dist/{add-DJE7zqJ4.mjs.map → add-DXdJjp0b.mjs.map} +1 -1
- package/dist/{bundler-NrtItVBp.cjs → bundler-B2_2-Dum.cjs} +58 -6
- package/dist/bundler-B2_2-Dum.cjs.map +1 -0
- package/dist/{bundler-DrySVbXF.mjs → bundler-CgcwaVI0.mjs} +59 -7
- package/dist/bundler-CgcwaVI0.mjs.map +1 -0
- package/dist/{cli-CHzpFBh-.cjs → cli-5k6kV_i4.cjs} +2 -2
- package/dist/{cli-CHzpFBh-.cjs.map → cli-5k6kV_i4.cjs.map} +1 -1
- package/dist/{cli-DDY3jfTt.mjs → cli-H0uB_znq.mjs} +2 -2
- package/dist/{cli-DDY3jfTt.mjs.map → cli-H0uB_znq.mjs.map} +1 -1
- package/dist/{compose-CDC2bCme.mjs → compose-BEiJWrB7.mjs} +3 -3
- package/dist/{compose-CDC2bCme.mjs.map → compose-BEiJWrB7.mjs.map} +1 -1
- package/dist/{compose-ByIbIrzs.cjs → compose-CYeMW2_o.cjs} +3 -3
- package/dist/{compose-ByIbIrzs.cjs.map → compose-CYeMW2_o.cjs.map} +1 -1
- package/dist/deploy/public.cjs +6 -6
- package/dist/deploy/public.mjs +6 -6
- package/dist/{deploy-DLq9-m6H.mjs → deploy-Cyx5fSb7.mjs} +5 -5
- package/dist/{deploy-DLq9-m6H.mjs.map → deploy-Cyx5fSb7.mjs.map} +1 -1
- package/dist/{deploy-Dl_NavYE.cjs → deploy-Q5qo1OP-.cjs} +5 -5
- package/dist/{deploy-Dl_NavYE.cjs.map → deploy-Q5qo1OP-.cjs.map} +1 -1
- package/dist/{dns-pzftumxg.mjs → dns-CsApfzLc.mjs} +2 -2
- package/dist/{dns-pzftumxg.mjs.map → dns-CsApfzLc.mjs.map} +1 -1
- package/dist/{dns-C2TGXUF4.cjs → dns-v9viladZ.cjs} +2 -2
- package/dist/{dns-C2TGXUF4.cjs.map → dns-v9viladZ.cjs.map} +1 -1
- package/dist/{dokploy-B7-OwY2s.mjs → dokploy-DfUo_QRw.mjs} +2 -2
- package/dist/{dokploy-B7-OwY2s.mjs.map → dokploy-DfUo_QRw.mjs.map} +1 -1
- package/dist/{dokploy-OqBh8G4g.cjs → dokploy-Di7rC2z0.cjs} +2 -2
- package/dist/{dokploy-OqBh8G4g.cjs.map → dokploy-Di7rC2z0.cjs.map} +1 -1
- package/dist/{eas-Cne743nQ.cjs → eas-CIvNT6qa.cjs} +2 -2
- package/dist/{eas-Cne743nQ.cjs.map → eas-CIvNT6qa.cjs.map} +1 -1
- package/dist/{eas-DEpwISrQ.mjs → eas-CTfRmndW.mjs} +2 -2
- package/dist/{eas-DEpwISrQ.mjs.map → eas-CTfRmndW.mjs.map} +1 -1
- package/dist/{encryption-DoVnVU82.cjs → encryption--U4NsK7N.cjs} +2 -2
- package/dist/{encryption-DoVnVU82.cjs.map → encryption--U4NsK7N.cjs.map} +1 -1
- package/dist/{encryption-DJv_jEXi.mjs → encryption-BpTPmd7h.mjs} +2 -2
- package/dist/{encryption-DJv_jEXi.mjs.map → encryption-BpTPmd7h.mjs.map} +1 -1
- package/dist/{engine-Db71-OZL.mjs → engine-BFmHfek1.mjs} +3 -3
- package/dist/{engine-Db71-OZL.mjs.map → engine-BFmHfek1.mjs.map} +1 -1
- package/dist/{engine-CJhQb50j.cjs → engine-Ovl1PB6i.cjs} +3 -3
- package/dist/{engine-CJhQb50j.cjs.map → engine-Ovl1PB6i.cjs.map} +1 -1
- package/dist/{github-C3gblUvr.cjs → github-CTlPQ5Ra.cjs} +4 -4
- package/dist/{github-C3gblUvr.cjs.map → github-CTlPQ5Ra.cjs.map} +1 -1
- package/dist/{github-BMakI-k3.mjs → github-tWAGuR9i.mjs} +4 -4
- package/dist/{github-BMakI-k3.mjs.map → github-tWAGuR9i.mjs.map} +1 -1
- package/dist/{googlePlay-B6uiHi65.cjs → googlePlay-BNH729It.cjs} +3 -3
- package/dist/{googlePlay-B6uiHi65.cjs.map → googlePlay-BNH729It.cjs.map} +1 -1
- package/dist/{googlePlay-BYZ-J5sC.mjs → googlePlay-m1De-qIJ.mjs} +3 -3
- package/dist/{googlePlay-BYZ-J5sC.mjs.map → googlePlay-m1De-qIJ.mjs.map} +1 -1
- package/dist/index.cjs +57 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +57 -53
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-CQUGbptv.mjs → migrate-4B4RgAjU.mjs} +2 -2
- package/dist/{migrate-CQUGbptv.mjs.map → migrate-4B4RgAjU.mjs.map} +1 -1
- package/dist/{migrate-bDQzFvBN.cjs → migrate-BYEmpoIg.cjs} +2 -2
- package/dist/{migrate-bDQzFvBN.cjs.map → migrate-BYEmpoIg.cjs.map} +1 -1
- package/dist/{migrate-GLBZlrlJ.cjs → migrate-DZ2--SaO.cjs} +2 -2
- package/dist/{migrate-GLBZlrlJ.cjs.map → migrate-DZ2--SaO.cjs.map} +1 -1
- package/dist/{migrate-xHYaeBkd.mjs → migrate-X0Y7fz3N.mjs} +2 -2
- package/dist/{migrate-xHYaeBkd.mjs.map → migrate-X0Y7fz3N.mjs.map} +1 -1
- package/dist/{publish-SDG1WfYn.cjs → publish-BUvYjiZH.cjs} +2 -2
- package/dist/{publish-SDG1WfYn.cjs.map → publish-BUvYjiZH.cjs.map} +1 -1
- package/dist/{publish-CSctCNf4.mjs → publish-hhgraEhO.mjs} +2 -2
- package/dist/{publish-CSctCNf4.mjs.map → publish-hhgraEhO.mjs.map} +1 -1
- package/dist/{resolve-wG49Woex.cjs → resolve-DdFKTx8l.cjs} +3 -3
- package/dist/{resolve-wG49Woex.cjs.map → resolve-DdFKTx8l.cjs.map} +1 -1
- package/dist/{resolve-CxDqDmCD.mjs → resolve-DotGHvtX.mjs} +3 -3
- package/dist/{resolve-CxDqDmCD.mjs.map → resolve-DotGHvtX.mjs.map} +1 -1
- package/dist/{rollback-BQgEdr_p.mjs → rollback-9t9G3c_u.mjs} +4 -4
- package/dist/{rollback-BQgEdr_p.mjs.map → rollback-9t9G3c_u.mjs.map} +1 -1
- package/dist/{rollback-Cw-Z0mWn.cjs → rollback-D4xeUQvG.cjs} +4 -4
- package/dist/{rollback-Cw-Z0mWn.cjs.map → rollback-D4xeUQvG.cjs.map} +1 -1
- package/dist/{seeds-CIk0l4SC.mjs → seeds-CRkKeyW0.mjs} +19 -6
- package/dist/seeds-CRkKeyW0.mjs.map +1 -0
- package/dist/{seeds-Dk8YkLkM.cjs → seeds-DbKNcs3o.cjs} +19 -6
- package/dist/seeds-DbKNcs3o.cjs.map +1 -0
- package/dist/{serverSetup-BCbD8ksJ.cjs → serverSetup-CcWgNtiC.cjs} +93 -21
- package/dist/serverSetup-CcWgNtiC.cjs.map +1 -0
- package/dist/{serverSetup--O61SRvg.mjs → serverSetup-DlRKRfTi.mjs} +93 -21
- package/dist/serverSetup-DlRKRfTi.mjs.map +1 -0
- package/dist/{sniffer-2aK7cB2u.cjs → sniffer-B6T6za4n.cjs} +6 -6
- package/dist/{sniffer-2aK7cB2u.cjs.map → sniffer-B6T6za4n.cjs.map} +1 -1
- package/dist/{sniffer-CABMO-Bh.mjs → sniffer-CakkKKqQ.mjs} +6 -6
- package/dist/{sniffer-CABMO-Bh.mjs.map → sniffer-CakkKKqQ.mjs.map} +1 -1
- package/dist/{stage-ClKTHQoM.mjs → stage-Mp6qQIoD.mjs} +4 -4
- package/dist/{stage-ClKTHQoM.mjs.map → stage-Mp6qQIoD.mjs.map} +1 -1
- package/dist/{stage-DrCS0vKD.cjs → stage-W3PUt7ar.cjs} +4 -4
- package/dist/{stage-DrCS0vKD.cjs.map → stage-W3PUt7ar.cjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/package.json +15 -15
- package/dist/bundler-DrySVbXF.mjs.map +0 -1
- package/dist/bundler-NrtItVBp.cjs.map +0 -1
- package/dist/seeds-CIk0l4SC.mjs.map +0 -1
- package/dist/seeds-Dk8YkLkM.cjs.map +0 -1
- package/dist/serverSetup--O61SRvg.mjs.map +0 -1
- package/dist/serverSetup-BCbD8ksJ.cjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -3,25 +3,25 @@ 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 { C as dockerCompose, S as sshTarget, _ as parseDigests, b as dockerHost, c as edgeRef, f as derivedCredentials, h as EDGE_PROJECT, i as ComposePushNeedsBuild, l as removeEdgeRoutes, m as stackPlan, o as stackOverrideFile, p as stackDir, r as ComposePinNeedsPull, t as composeTarget, u as composeProject, v as pinnedRef, w as projectNetwork, y as composeServer } from "./compose-
|
|
6
|
+
import { C as dockerCompose, S as sshTarget, _ as parseDigests, b as dockerHost, c as edgeRef, f as derivedCredentials, h as EDGE_PROJECT, i as ComposePushNeedsBuild, l as removeEdgeRoutes, m as stackPlan, o as stackOverrideFile, p as stackDir, r as ComposePinNeedsPull, t as composeTarget, u as composeProject, v as pinnedRef, w as projectNetwork, y as composeServer } from "./compose-BEiJWrB7.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 { $t as isUnder, An as appTelemetry, At as isPortAvailable, Bn as fakeKey, Bt as maskPassword, Ct as cacheBackendFor, Dn as TELEMETRY_CONTAINER, Dt as createCredentialsPreload, G as CronGenerator, Gn as LOCAL_LOGS_EMAIL, H as workerBundleName, Hn as portsOf, Ht as toEmbeddableSecrets, It as secretsStoreFor, L as dockerCommand, Mn as scopeTelemetryEnv, Mt as loadPortState, Nn as surfaceClientTraced, Nt as loadSecretsForApp, Ot as createEntryWrapper, Pn as telemetryOf, Pt as prepareEntryCredentials, Q as assertDevServicesFlag, Tt as providerOf, U as workerEntryDir, Ut as withCustomSecret, V as WorkerGenerator, W as QueueGenerator, Wn as primaryPortKey, Xt as imageBuildCredentials, Zt as isImageBuild, a as dnsResources, an as postgresDatabaseNames, bt as pgClient, c as describeActor, dt as constructGlobs, en as workerUnits, fn as readLocalCredentials, ft as derivedContainers, gn as projectKey, gt as forgetState, ht as LOCAL_CA_PATH, jt as loadEnvFiles, kt as findAvailablePort, lt as FAKE_ENV, mn as getKeyPath, pn as FileSecretsStore, pt as reconcileWorkspace, sn as quoteIdentifier, ut as backendsOf$1, wt as eventsBackendFor, xt as CLUSTER_DATABASE, zn as describeServices } 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-CsApfzLc.mjs";
|
|
9
|
+
import { $t as isUnder, An as appTelemetry, At as isPortAvailable, Bn as fakeKey, Bt as maskPassword, Ct as cacheBackendFor, Dn as TELEMETRY_CONTAINER, Dt as createCredentialsPreload, G as CronGenerator, Gn as LOCAL_LOGS_EMAIL, H as workerBundleName, Hn as portsOf, Ht as toEmbeddableSecrets, It as secretsStoreFor, L as dockerCommand, Mn as scopeTelemetryEnv, Mt as loadPortState, Nn as surfaceClientTraced, Nt as loadSecretsForApp, Ot as createEntryWrapper, Pn as telemetryOf, Pt as prepareEntryCredentials, Q as assertDevServicesFlag, Tt as providerOf, U as workerEntryDir, Ut as withCustomSecret, V as WorkerGenerator, W as QueueGenerator, Wn as primaryPortKey, Xt as imageBuildCredentials, Zt as isImageBuild, a as dnsResources, an as postgresDatabaseNames, bt as pgClient, c as describeActor, dt as constructGlobs, en as workerUnits, fn as readLocalCredentials, ft as derivedContainers, gn as projectKey, gt as forgetState, ht as LOCAL_CA_PATH, jt as loadEnvFiles, kt as findAvailablePort, lt as FAKE_ENV, mn as getKeyPath, pn as FileSecretsStore, pt as reconcileWorkspace, sn as quoteIdentifier, ut as backendsOf$1, wt as eventsBackendFor, xt as CLUSTER_DATABASE, zn as describeServices } from "./seeds-CRkKeyW0.mjs";
|
|
10
10
|
import { t as appKey } from "./derive-B4vDpzgP.mjs";
|
|
11
11
|
import { l as isCacheBackend, n as assertTestCredentials, t as SubscriberGenerator } from "./SubscriberGenerator-DHnIYwUU.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-CvLX8bpx.mjs";
|
|
14
14
|
import { d as ConstructGenerator, i as discover, r as consumedBy, u as withOwningTsconfigJsx } from "./discover-Ca8U75dl.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-Cyx5fSb7.mjs";
|
|
17
17
|
import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
|
|
18
18
|
import { a as describeHolder, c as withAppPorts, i as assignAppPorts, o as describeMove, r as appTag, s as holderOf, t as APP_TAG_ENV } from "./appPorts-BoXMwolc.mjs";
|
|
19
19
|
import { n as driversFor, r as eventsBackendsIn, t as cacheBackendsIn } from "./drivers-D11JHxrD.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-CakkKKqQ.mjs";
|
|
23
23
|
import { o as loadCredentialSchemas, t as CredentialsInvalid } from "./credentialSchemas-Cf5Pf8VE.mjs";
|
|
24
|
-
import { t as LocalStateStore } from "./LocalStateStore-
|
|
24
|
+
import { t as LocalStateStore } from "./LocalStateStore-C1rUUvBr.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
26
|
import { a as writeTestHarness, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, t as TEST_READY_ENV } from "./ready-CIt5SOtg.mjs";
|
|
27
27
|
import { createRequire } from "node:module";
|
|
@@ -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.116";
|
|
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-CakkKKqQ.mjs").then((n) => n.c);
|
|
138
138
|
return new DokployApi({
|
|
139
139
|
baseUrl: endpoint,
|
|
140
140
|
token
|
|
@@ -2174,7 +2174,7 @@ async function execCommand(commandArgs, options = {}, stageDeps) {
|
|
|
2174
2174
|
const cwd = options.cwd ?? process.cwd();
|
|
2175
2175
|
if (!commandArgs[0]) throw new NoCommandSpecified();
|
|
2176
2176
|
if (options.stage && !isImageBuild()) {
|
|
2177
|
-
const { execOnStage } = await import("./stage-
|
|
2177
|
+
const { execOnStage } = await import("./stage-Mp6qQIoD.mjs").then((n) => n.n);
|
|
2178
2178
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
2179
2179
|
const { workspace } = await loadWorkspaceConfig(cwd);
|
|
2180
2180
|
if (options.stage !== workspace.stages.local) {
|
|
@@ -2747,9 +2747,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
2747
2747
|
for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
2748
2748
|
logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
2749
2749
|
if (options.migrate || options.seed) {
|
|
2750
|
-
const { prepareDevDatabases } = await import("./migrate-
|
|
2750
|
+
const { prepareDevDatabases } = await import("./migrate-X0Y7fz3N.mjs");
|
|
2751
2751
|
await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
|
|
2752
|
-
} else await import("./migrate-
|
|
2752
|
+
} else await import("./migrate-X0Y7fz3N.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
2753
2753
|
logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
2754
2754
|
});
|
|
2755
2755
|
const appUrls = {};
|
|
@@ -3825,7 +3825,7 @@ async function buildApp(input) {
|
|
|
3825
3825
|
...production,
|
|
3826
3826
|
...telemetry ? { telemetry } : {}
|
|
3827
3827
|
});
|
|
3828
|
-
const { bundleServer } = await import("./bundler-
|
|
3828
|
+
const { bundleServer } = await import("./bundler-CgcwaVI0.mjs");
|
|
3829
3829
|
await bundleServer({
|
|
3830
3830
|
entryPoint,
|
|
3831
3831
|
outputDir: join(outputDir, "dist"),
|
|
@@ -4024,7 +4024,7 @@ async function buildWorkers(input) {
|
|
|
4024
4024
|
});
|
|
4025
4025
|
logger$4.log(`Generated worker ${worker.id}: ${crons.length} crons, ${queues.length} queues, ${subscribers.length} subscribers`);
|
|
4026
4026
|
if (!input.bundle) continue;
|
|
4027
|
-
const { bundleServer } = await import("./bundler-
|
|
4027
|
+
const { bundleServer } = await import("./bundler-CgcwaVI0.mjs");
|
|
4028
4028
|
const outfile = workerBundleName(worker.id);
|
|
4029
4029
|
await bundleServer({
|
|
4030
4030
|
entryPoint,
|
|
@@ -4110,7 +4110,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
4110
4110
|
let masterKey;
|
|
4111
4111
|
if (context.production?.bundle && !skipBundle) {
|
|
4112
4112
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
4113
|
-
const { bundleServer } = await import("./bundler-
|
|
4113
|
+
const { bundleServer } = await import("./bundler-CgcwaVI0.mjs");
|
|
4114
4114
|
const allConstructs = [
|
|
4115
4115
|
...endpoints.map((e) => e.construct),
|
|
4116
4116
|
...functions.map((f) => f.construct),
|
|
@@ -5833,6 +5833,7 @@ const DEPENDENCY_VERSIONS = {
|
|
|
5833
5833
|
"better-auth": "~1.7.6",
|
|
5834
5834
|
hono: "~4.13.9",
|
|
5835
5835
|
"@hono/node-server": "~1.19.17",
|
|
5836
|
+
"@hono/node-ws": "~1.3.1",
|
|
5836
5837
|
kysely: "~0.29.6",
|
|
5837
5838
|
pg: "~8.23.0",
|
|
5838
5839
|
pino: "~10.3.1",
|
|
@@ -5943,25 +5944,25 @@ function loadPackageJson() {
|
|
|
5943
5944
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
5944
5945
|
*/
|
|
5945
5946
|
const GEEKMIDAS_VERSIONS = {
|
|
5946
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
5947
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
5948
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
5949
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
5950
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
5951
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
5952
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
5953
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
5954
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
5955
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
5956
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
5957
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
5958
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
5959
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
5960
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
5961
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
5962
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
5963
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
5964
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
5947
|
+
"@geekmidas/audit": "~10.0.0-alpha.116",
|
|
5948
|
+
"@geekmidas/auth": "~10.0.0-alpha.116",
|
|
5949
|
+
"@geekmidas/cache": "~10.0.0-alpha.116",
|
|
5950
|
+
"@geekmidas/client": "~10.0.0-alpha.116",
|
|
5951
|
+
"@geekmidas/cloud": "~10.0.0-alpha.116",
|
|
5952
|
+
"@geekmidas/constructs": "~10.0.0-alpha.116",
|
|
5953
|
+
"@geekmidas/db": "~10.0.0-alpha.116",
|
|
5954
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.116",
|
|
5955
|
+
"@geekmidas/envkit": "~10.0.0-alpha.116",
|
|
5956
|
+
"@geekmidas/errors": "~10.0.0-alpha.116",
|
|
5957
|
+
"@geekmidas/events": "~10.0.0-alpha.116",
|
|
5958
|
+
"@geekmidas/logger": "~10.0.0-alpha.116",
|
|
5959
|
+
"@geekmidas/manifest": "~10.0.0-alpha.116",
|
|
5960
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.116",
|
|
5961
|
+
"@geekmidas/schema": "~10.0.0-alpha.116",
|
|
5962
|
+
"@geekmidas/services": "~10.0.0-alpha.116",
|
|
5963
|
+
"@geekmidas/storage": "~10.0.0-alpha.116",
|
|
5964
|
+
"@geekmidas/telescope": "~10.0.0-alpha.116",
|
|
5965
|
+
"@geekmidas/testkit": "~10.0.0-alpha.116",
|
|
5965
5966
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
5966
5967
|
};
|
|
5967
5968
|
//#endregion
|
|
@@ -7154,7 +7155,7 @@ const COMMIT = /^[0-9a-f]{40}$/;
|
|
|
7154
7155
|
* The `uses:` value for the stages action, with a comment saying which CLI
|
|
7155
7156
|
* release the pinned commit is.
|
|
7156
7157
|
*/
|
|
7157
|
-
function stagesActionUses(commit = "
|
|
7158
|
+
function stagesActionUses(commit = "8441f7be92366877d6802babf8ee655bcdde2489", version = cliVersion()) {
|
|
7158
7159
|
return commit && COMMIT.test(commit) ? `${STAGES_ACTION}@${commit} # @geekmidas/cli ${version}` : `${STAGES_ACTION}@main # pin to a commit SHA: see the action's README`;
|
|
7159
7160
|
}
|
|
7160
7161
|
//#endregion
|
|
@@ -10700,7 +10701,10 @@ function generatePackageJson(options, template) {
|
|
|
10700
10701
|
const devDependencies = { ...template.devDependencies };
|
|
10701
10702
|
const scripts = { ...template.scripts };
|
|
10702
10703
|
if (options.loggerType === "pino") dependencies.pino = DEPENDENCY_VERSIONS.pino;
|
|
10703
|
-
if (telescope)
|
|
10704
|
+
if (telescope) {
|
|
10705
|
+
dependencies["@geekmidas/telescope"] = GEEKMIDAS_VERSIONS["@geekmidas/telescope"];
|
|
10706
|
+
dependencies["@hono/node-ws"] = DEPENDENCY_VERSIONS["@hono/node-ws"];
|
|
10707
|
+
}
|
|
10704
10708
|
const declares = !monorepo;
|
|
10705
10709
|
if (declares && (database || uploads || cache || mail)) dependencies["@geekmidas/manifest"] = GEEKMIDAS_VERSIONS["@geekmidas/manifest"];
|
|
10706
10710
|
if (declares && uploads) dependencies["@geekmidas/storage"] = GEEKMIDAS_VERSIONS["@geekmidas/storage"];
|
|
@@ -16022,7 +16026,7 @@ function testDatabases(reconciled) {
|
|
|
16022
16026
|
* starts without the reference data the app needs.
|
|
16023
16027
|
*/
|
|
16024
16028
|
async function migrateTestStage(workspace, env) {
|
|
16025
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
16029
|
+
const { migrateAndSeed } = await import("./migrate-X0Y7fz3N.mjs");
|
|
16026
16030
|
const { discover } = await import("./discover-Ca8U75dl.mjs").then((n) => n.a);
|
|
16027
16031
|
const sources = {};
|
|
16028
16032
|
const manifest = await discover({
|
|
@@ -16446,7 +16450,7 @@ program.command("eas:sync").description("Set up a mobile app's EAS project for a
|
|
|
16446
16450
|
try {
|
|
16447
16451
|
const globalOptions = program.opts();
|
|
16448
16452
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16449
|
-
const { easSync } = await import("./eas-
|
|
16453
|
+
const { easSync } = await import("./eas-CTfRmndW.mjs");
|
|
16450
16454
|
await easSync(options);
|
|
16451
16455
|
} catch (error) {
|
|
16452
16456
|
exitWithError(error);
|
|
@@ -16456,7 +16460,7 @@ program.command("publish").description("Ship a mobile app for a deployed stage:
|
|
|
16456
16460
|
try {
|
|
16457
16461
|
const globalOptions = program.opts();
|
|
16458
16462
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16459
|
-
const { publish, PublishModeConflict } = await import("./publish-
|
|
16463
|
+
const { publish, PublishModeConflict } = await import("./publish-hhgraEhO.mjs");
|
|
16460
16464
|
if (options.build && options.update) throw new PublishModeConflict();
|
|
16461
16465
|
const { build, update, ...rest } = options;
|
|
16462
16466
|
await publish({
|
|
@@ -16472,7 +16476,7 @@ program.command("deploy:google-play").description("Let EAS Submit publish a mobi
|
|
|
16472
16476
|
try {
|
|
16473
16477
|
const globalOptions = program.opts();
|
|
16474
16478
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16475
|
-
const { deployGooglePlay } = await import("./googlePlay-
|
|
16479
|
+
const { deployGooglePlay } = await import("./googlePlay-m1De-qIJ.mjs");
|
|
16476
16480
|
await deployGooglePlay(options);
|
|
16477
16481
|
} catch (error) {
|
|
16478
16482
|
exitWithError(error);
|
|
@@ -16494,7 +16498,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
16494
16498
|
try {
|
|
16495
16499
|
const globalOptions = program.opts();
|
|
16496
16500
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16497
|
-
const { migrateCommand } = await import("./migrate-
|
|
16501
|
+
const { migrateCommand } = await import("./migrate-X0Y7fz3N.mjs");
|
|
16498
16502
|
await migrateCommand({
|
|
16499
16503
|
...options,
|
|
16500
16504
|
...construct ? { construct } : {}
|
|
@@ -16507,7 +16511,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
16507
16511
|
try {
|
|
16508
16512
|
const globalOptions = program.opts();
|
|
16509
16513
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16510
|
-
const { seedCommand } = await import("./migrate-
|
|
16514
|
+
const { seedCommand } = await import("./migrate-X0Y7fz3N.mjs");
|
|
16511
16515
|
await seedCommand({
|
|
16512
16516
|
...options,
|
|
16513
16517
|
...construct ? { construct } : {}
|
|
@@ -16520,7 +16524,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
16520
16524
|
try {
|
|
16521
16525
|
const globalOptions = program.opts();
|
|
16522
16526
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16523
|
-
const { migrationCommand } = await import("./migrate-
|
|
16527
|
+
const { migrationCommand } = await import("./migrate-X0Y7fz3N.mjs");
|
|
16524
16528
|
await migrationCommand({
|
|
16525
16529
|
construct,
|
|
16526
16530
|
...name ? { name } : {}
|
|
@@ -16620,7 +16624,7 @@ program.command("secrets:add").description("Build the keys a stage must be given
|
|
|
16620
16624
|
try {
|
|
16621
16625
|
const globalOptions = program.opts();
|
|
16622
16626
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16623
|
-
const { secretsAddCommand } = await import("./add-
|
|
16627
|
+
const { secretsAddCommand } = await import("./add-DXdJjp0b.mjs");
|
|
16624
16628
|
await secretsAddCommand(options);
|
|
16625
16629
|
} catch (error) {
|
|
16626
16630
|
exitWithError(error);
|
|
@@ -16630,7 +16634,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
16630
16634
|
try {
|
|
16631
16635
|
const globalOptions = program.opts();
|
|
16632
16636
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16633
|
-
const { encryptionRotateCommand } = await import("./encryption-
|
|
16637
|
+
const { encryptionRotateCommand } = await import("./encryption-BpTPmd7h.mjs");
|
|
16634
16638
|
await encryptionRotateCommand(construct, options);
|
|
16635
16639
|
} catch (error) {
|
|
16636
16640
|
exitWithError(error);
|
|
@@ -16640,7 +16644,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
16640
16644
|
try {
|
|
16641
16645
|
const globalOptions = program.opts();
|
|
16642
16646
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16643
|
-
const { encryptionRetireCommand } = await import("./encryption-
|
|
16647
|
+
const { encryptionRetireCommand } = await import("./encryption-BpTPmd7h.mjs");
|
|
16644
16648
|
await encryptionRetireCommand(construct, key, options);
|
|
16645
16649
|
} catch (error) {
|
|
16646
16650
|
exitWithError(error);
|
|
@@ -16679,7 +16683,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
16679
16683
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16680
16684
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
16681
16685
|
const { reconcileMissingSecrets } = await import("./reconcile--I7V4Klj.mjs");
|
|
16682
|
-
const { secretsStoreFor } = await import("./seeds-
|
|
16686
|
+
const { secretsStoreFor } = await import("./seeds-CRkKeyW0.mjs").then((n) => n.Rt);
|
|
16683
16687
|
const { workspace } = await loadWorkspaceConfig();
|
|
16684
16688
|
const stage = options.stage ?? workspace.stages.local;
|
|
16685
16689
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -16688,7 +16692,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
16688
16692
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
16689
16693
|
process.exit(1);
|
|
16690
16694
|
}
|
|
16691
|
-
const { derivedContainers } = await import("./seeds-
|
|
16695
|
+
const { derivedContainers } = await import("./seeds-CRkKeyW0.mjs").then((n) => n.mt);
|
|
16692
16696
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
16693
16697
|
if (!result) {
|
|
16694
16698
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -16705,14 +16709,14 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
16705
16709
|
try {
|
|
16706
16710
|
const globalOptions = program.opts();
|
|
16707
16711
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16708
|
-
const { secretsMigrateCommand } = await import("./migrate-
|
|
16712
|
+
const { secretsMigrateCommand } = await import("./migrate-4B4RgAjU.mjs");
|
|
16709
16713
|
await secretsMigrateCommand(options);
|
|
16710
16714
|
} catch (error) {
|
|
16711
16715
|
exitWithError(error);
|
|
16712
16716
|
}
|
|
16713
16717
|
});
|
|
16714
16718
|
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) => {
|
|
16715
|
-
const { deployCli } = await import("./cli-
|
|
16719
|
+
const { deployCli } = await import("./cli-H0uB_znq.mjs");
|
|
16716
16720
|
const globalOptions = program.opts();
|
|
16717
16721
|
const code = await deployCli({
|
|
16718
16722
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -16732,7 +16736,7 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
16732
16736
|
});
|
|
16733
16737
|
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) => {
|
|
16734
16738
|
try {
|
|
16735
|
-
const { rollbackStage } = await import("./rollback-
|
|
16739
|
+
const { rollbackStage } = await import("./rollback-9t9G3c_u.mjs").then((n) => n.a);
|
|
16736
16740
|
const { terminalCredentials } = await import("./terminal-CybB-cjk.mjs");
|
|
16737
16741
|
const globalOptions = program.opts();
|
|
16738
16742
|
await rollbackStage({
|
|
@@ -16747,11 +16751,11 @@ program.command("deploy:rollback").description("Put a stage's app back on its pr
|
|
|
16747
16751
|
exitWithError(error);
|
|
16748
16752
|
}
|
|
16749
16753
|
});
|
|
16750
|
-
program.command("compose:server").description("Set up a stage's server for compose deploys: harden it (SSH keys only, no root login, firewall, security updates, fail2ban), install Docker, create the deploy user, and give its key to GitHub").requiredOption("--stage <stage>", "A deployed stage from gkm.config.ts").option("--admin <user>", "The sudo user you log in to the server as — never root (
|
|
16754
|
+
program.command("compose:server").description("Set up a stage's server for compose deploys: harden it (SSH keys only, no root login, firewall, security updates, fail2ban), install Docker, create the deploy user, and give its key to GitHub").requiredOption("--stage <stage>", "A deployed stage from gkm.config.ts").option("--admin <user>", "The sudo user you log in to the server as — never root (default: ssh's own user for the host)").option("--identity <path>", "The SSH key the admin logs in with (default: ssh's own choice)").option("--key-file <path>", "The deploy key pair (default: ~/.ssh/gkm-<project>-<stage>)").option("--repo <owner/name>", "GitHub repository (default: this one)").option("--no-github", "Leave the GitHub environment's key and host alone").option("--yes", "Set the server up without asking first").option("--dry-run", "Print the plan and the script; connect to nothing").action(async (options) => {
|
|
16751
16755
|
try {
|
|
16752
16756
|
const globalOptions = program.opts();
|
|
16753
16757
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16754
|
-
const { composeServerCommand } = await import("./serverSetup
|
|
16758
|
+
const { composeServerCommand } = await import("./serverSetup-DlRKRfTi.mjs");
|
|
16755
16759
|
await composeServerCommand(options);
|
|
16756
16760
|
} catch (error) {
|
|
16757
16761
|
exitWithError(error);
|
|
@@ -16776,7 +16780,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
16776
16780
|
try {
|
|
16777
16781
|
const globalOptions = program.opts();
|
|
16778
16782
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16779
|
-
const { deployGithubCommand } = await import("./github-
|
|
16783
|
+
const { deployGithubCommand } = await import("./github-tWAGuR9i.mjs");
|
|
16780
16784
|
await deployGithubCommand(options);
|
|
16781
16785
|
} catch (error) {
|
|
16782
16786
|
exitWithError(error);
|