@geekmidas/cli 10.0.0-alpha.132 → 10.0.0-alpha.134
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-CtnM5qxL.cjs → GoDaddyProvider-BWU__DEY.cjs} +2 -2
- package/dist/{GoDaddyProvider-CtnM5qxL.cjs.map → GoDaddyProvider-BWU__DEY.cjs.map} +1 -1
- package/dist/{GoDaddyProvider-CLrIIpCr.mjs → GoDaddyProvider-bMRAYW79.mjs} +2 -2
- package/dist/{GoDaddyProvider-CLrIIpCr.mjs.map → GoDaddyProvider-bMRAYW79.mjs.map} +1 -1
- package/dist/{LegacyStateStore-C0LmkRnT.mjs → LegacyStateStore-BGEf6nPn.mjs} +3 -3
- package/dist/{LegacyStateStore-C0LmkRnT.mjs.map → LegacyStateStore-BGEf6nPn.mjs.map} +1 -1
- package/dist/{LegacyStateStore-C4rb-2W_.cjs → LegacyStateStore-BvTCypOA.cjs} +3 -3
- package/dist/{LegacyStateStore-C4rb-2W_.cjs.map → LegacyStateStore-BvTCypOA.cjs.map} +1 -1
- package/dist/{LocalStateStore-vHx3OPmE.mjs → LocalStateStore-B5oun7s4.mjs} +2 -2
- package/dist/{LocalStateStore-vHx3OPmE.mjs.map → LocalStateStore-B5oun7s4.mjs.map} +1 -1
- package/dist/{LocalStateStore-DL15tGfM.cjs → LocalStateStore-Dg_VH2hs.cjs} +2 -2
- package/dist/{LocalStateStore-DL15tGfM.cjs.map → LocalStateStore-Dg_VH2hs.cjs.map} +1 -1
- package/dist/{S3StateStore-CLJJ4G8F.mjs → S3StateStore-C0V3gdW_.mjs} +2 -2
- package/dist/{S3StateStore-CLJJ4G8F.mjs.map → S3StateStore-C0V3gdW_.mjs.map} +1 -1
- package/dist/{S3StateStore-jJUI-UW7.cjs → S3StateStore-vUawQwzF.cjs} +2 -2
- package/dist/{S3StateStore-jJUI-UW7.cjs.map → S3StateStore-vUawQwzF.cjs.map} +1 -1
- package/dist/{SSMStateStore-D1QPy_gq.mjs → SSMStateStore-6OqX1ljx.mjs} +2 -2
- package/dist/{SSMStateStore-D1QPy_gq.mjs.map → SSMStateStore-6OqX1ljx.mjs.map} +1 -1
- package/dist/{SSMStateStore-B0Z9hEeo.cjs → SSMStateStore-BqQmI50p.cjs} +2 -2
- package/dist/{SSMStateStore-B0Z9hEeo.cjs.map → SSMStateStore-BqQmI50p.cjs.map} +1 -1
- package/dist/{add-xwmKaLFC.mjs → add-Cf7j443Y.mjs} +4 -4
- package/dist/{add-xwmKaLFC.mjs.map → add-Cf7j443Y.mjs.map} +1 -1
- package/dist/{add-BV5ZDKgx.cjs → add-DH6kOCWt.cjs} +4 -4
- package/dist/{add-BV5ZDKgx.cjs.map → add-DH6kOCWt.cjs.map} +1 -1
- package/dist/{bundler-DrpnJNwr.mjs → bundler-DJOWPm2o.mjs} +5 -5
- package/dist/{bundler-DrpnJNwr.mjs.map → bundler-DJOWPm2o.mjs.map} +1 -1
- package/dist/{bundler-CHXBqzsc.cjs → bundler-NllxHcc3.cjs} +5 -5
- package/dist/{bundler-CHXBqzsc.cjs.map → bundler-NllxHcc3.cjs.map} +1 -1
- package/dist/{cli-o3cXaGtO.mjs → cli-CR1jbJwq.mjs} +2 -2
- package/dist/{cli-o3cXaGtO.mjs.map → cli-CR1jbJwq.mjs.map} +1 -1
- package/dist/{cli-CdwEMpeT.cjs → cli-D_lrSwHD.cjs} +2 -2
- package/dist/{cli-CdwEMpeT.cjs.map → cli-D_lrSwHD.cjs.map} +1 -1
- package/dist/{compose-DNRPMVES.cjs → compose-CTMonYlz.cjs} +4 -4
- package/dist/{compose-DNRPMVES.cjs.map → compose-CTMonYlz.cjs.map} +1 -1
- package/dist/{compose-D0SN1LaV.mjs → compose-EhGFelLH.mjs} +4 -4
- package/dist/{compose-D0SN1LaV.mjs.map → compose-EhGFelLH.mjs.map} +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.mjs +1 -1
- package/dist/deploy/public.cjs +7 -7
- package/dist/deploy/public.mjs +7 -7
- package/dist/{deploy-DC8YEQPF.cjs → deploy-Clny7rUL.cjs} +6 -6
- package/dist/{deploy-DC8YEQPF.cjs.map → deploy-Clny7rUL.cjs.map} +1 -1
- package/dist/{deploy-B98pqds6.mjs → deploy-Djdvl9Vw.mjs} +6 -6
- package/dist/{deploy-B98pqds6.mjs.map → deploy-Djdvl9Vw.mjs.map} +1 -1
- package/dist/{derive-BpT9jpPo.mjs → derive-Bsnm81mg.mjs} +6 -2
- package/dist/{derive-BpT9jpPo.mjs.map → derive-Bsnm81mg.mjs.map} +1 -1
- package/dist/{derive-BkWnOSPH.cjs → derive-ClMgyPzp.cjs} +11 -1
- package/dist/{derive-BkWnOSPH.cjs.map → derive-ClMgyPzp.cjs.map} +1 -1
- package/dist/{dokploy-BexEz2nW.mjs → dokploy-3XEN3qM8.mjs} +2 -2
- package/dist/{dokploy-BexEz2nW.mjs.map → dokploy-3XEN3qM8.mjs.map} +1 -1
- package/dist/{dokploy-DGVo3gIu.cjs → dokploy-BcmHDE-j.cjs} +2 -2
- package/dist/{dokploy-DGVo3gIu.cjs.map → dokploy-BcmHDE-j.cjs.map} +1 -1
- package/dist/{eas-DZ4DRSpN.cjs → eas-47ihrpP_.cjs} +3 -3
- package/dist/{eas-DZ4DRSpN.cjs.map → eas-47ihrpP_.cjs.map} +1 -1
- package/dist/{eas-vfFOLF35.mjs → eas-DFr4OtsE.mjs} +3 -3
- package/dist/{eas-vfFOLF35.mjs.map → eas-DFr4OtsE.mjs.map} +1 -1
- package/dist/emit-CYloptRS.cjs.map +1 -1
- package/dist/emit-CiJGdy_f.mjs.map +1 -1
- package/dist/{encryption-qxFK97mG.cjs → encryption-Be24KDa-.cjs} +2 -2
- package/dist/{encryption-qxFK97mG.cjs.map → encryption-Be24KDa-.cjs.map} +1 -1
- package/dist/{encryption-DcXhLeea.mjs → encryption-CTdgXPGk.mjs} +2 -2
- package/dist/{encryption-DcXhLeea.mjs.map → encryption-CTdgXPGk.mjs.map} +1 -1
- package/dist/{engine-BJ1JjsqP.mjs → engine-Cit4QpMf.mjs} +4 -4
- package/dist/{engine-BJ1JjsqP.mjs.map → engine-Cit4QpMf.mjs.map} +1 -1
- package/dist/{engine-BsfN6Z2y.cjs → engine-DJU3udhe.cjs} +4 -4
- package/dist/{engine-BsfN6Z2y.cjs.map → engine-DJU3udhe.cjs.map} +1 -1
- package/dist/{github-CHnzHGbI.cjs → github-Cn5zn5SP.cjs} +4 -4
- package/dist/{github-CHnzHGbI.cjs.map → github-Cn5zn5SP.cjs.map} +1 -1
- package/dist/{github-DM8dcTS3.mjs → github-DkkhCshn.mjs} +4 -4
- package/dist/{github-DM8dcTS3.mjs.map → github-DkkhCshn.mjs.map} +1 -1
- package/dist/{googlePlay-DDrnzQWm.mjs → googlePlay-BKZvrPUP.mjs} +3 -3
- package/dist/{googlePlay-DDrnzQWm.mjs.map → googlePlay-BKZvrPUP.mjs.map} +1 -1
- package/dist/{googlePlay-D4CBqrrd.cjs → googlePlay-CU3oeZmS.cjs} +3 -3
- package/dist/{googlePlay-D4CBqrrd.cjs.map → googlePlay-CU3oeZmS.cjs.map} +1 -1
- package/dist/index.cjs +92 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +93 -59
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-Dw94du_D.cjs → migrate-B8Zmp44v.cjs} +2 -2
- package/dist/{migrate-Dw94du_D.cjs.map → migrate-B8Zmp44v.cjs.map} +1 -1
- package/dist/{migrate-CtXmf5sw.mjs → migrate-BcVzkhs2.mjs} +2 -2
- package/dist/{migrate-CtXmf5sw.mjs.map → migrate-BcVzkhs2.mjs.map} +1 -1
- package/dist/{migrate-DXj1Kc79.mjs → migrate-CtjgTkyn.mjs} +2 -2
- package/dist/{migrate-DXj1Kc79.mjs.map → migrate-CtjgTkyn.mjs.map} +1 -1
- package/dist/{migrate-Bonkj7OS.cjs → migrate-DWbw8nOy.cjs} +2 -2
- package/dist/{migrate-Bonkj7OS.cjs.map → migrate-DWbw8nOy.cjs.map} +1 -1
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.mjs +1 -1
- package/dist/{publish-0CESXM6R.mjs → publish-ClprDLQl.mjs} +2 -2
- package/dist/{publish-0CESXM6R.mjs.map → publish-ClprDLQl.mjs.map} +1 -1
- package/dist/{publish-CLD1NjFa.cjs → publish-CumoWjin.cjs} +2 -2
- package/dist/{publish-CLD1NjFa.cjs.map → publish-CumoWjin.cjs.map} +1 -1
- package/dist/reconcile/public.d.cts +6 -0
- package/dist/reconcile/public.d.cts.map +1 -1
- package/dist/reconcile/public.d.mts +6 -0
- package/dist/reconcile/public.d.mts.map +1 -1
- package/dist/{resolve-DuZ4RSeN.mjs → resolve-DDFQRZh_.mjs} +4 -4
- package/dist/{resolve-DuZ4RSeN.mjs.map → resolve-DDFQRZh_.mjs.map} +1 -1
- package/dist/{resolve-Af3UHIxS.cjs → resolve-nMzMombL.cjs} +4 -4
- package/dist/{resolve-Af3UHIxS.cjs.map → resolve-nMzMombL.cjs.map} +1 -1
- package/dist/{rollback-CWcIVBLT.cjs → rollback-CTWZB5Ai.cjs} +4 -4
- package/dist/{rollback-CWcIVBLT.cjs.map → rollback-CTWZB5Ai.cjs.map} +1 -1
- package/dist/{rollback-DCIeBIX3.mjs → rollback-M6Tzl8X-.mjs} +4 -4
- package/dist/{rollback-DCIeBIX3.mjs.map → rollback-M6Tzl8X-.mjs.map} +1 -1
- package/dist/{seeds-CVbX__84.mjs → seeds-B5Lw7Jwy.mjs} +85 -20
- package/dist/seeds-B5Lw7Jwy.mjs.map +1 -0
- package/dist/{seeds-BGhU_55R.cjs → seeds-Dq62Vi1i.cjs} +85 -20
- package/dist/seeds-Dq62Vi1i.cjs.map +1 -0
- package/dist/{serverSetup-Blb5uyq8.mjs → serverSetup-lCtWjAbe.mjs} +5 -5
- package/dist/{serverSetup-Blb5uyq8.mjs.map → serverSetup-lCtWjAbe.mjs.map} +1 -1
- package/dist/{serverSetup-C8W-mpu2.cjs → serverSetup-tkxyu4C4.cjs} +5 -5
- package/dist/{serverSetup-C8W-mpu2.cjs.map → serverSetup-tkxyu4C4.cjs.map} +1 -1
- package/dist/{sniffer-C94960vd.cjs → sniffer-BHWLGxbU.cjs} +6 -6
- package/dist/{sniffer-C94960vd.cjs.map → sniffer-BHWLGxbU.cjs.map} +1 -1
- package/dist/{sniffer-xx8N8mpY.mjs → sniffer-DBT-n3aP.mjs} +6 -6
- package/dist/{sniffer-xx8N8mpY.mjs.map → sniffer-DBT-n3aP.mjs.map} +1 -1
- package/dist/{snsSubscriptions-CLkFDjZc.mjs → snsSubscriptions-CZcuwbO-.mjs} +3 -3
- package/dist/{snsSubscriptions-CLkFDjZc.mjs.map → snsSubscriptions-CZcuwbO-.mjs.map} +1 -1
- package/dist/{snsSubscriptions-DcmmVj2k.cjs → snsSubscriptions-DeA_EfK2.cjs} +3 -3
- package/dist/{snsSubscriptions-DcmmVj2k.cjs.map → snsSubscriptions-DeA_EfK2.cjs.map} +1 -1
- package/dist/{sst-C7mwg02Z.cjs → sst-CHOp2-qt.cjs} +2 -2
- package/dist/{sst-C7mwg02Z.cjs.map → sst-CHOp2-qt.cjs.map} +1 -1
- package/dist/{sst-ChTeT2qY.mjs → sst-WPkIfa64.mjs} +2 -2
- package/dist/{sst-ChTeT2qY.mjs.map → sst-WPkIfa64.mjs.map} +1 -1
- package/dist/{stage-COixgz4P.mjs → stage-Bqgc0gpc.mjs} +4 -4
- package/dist/{stage-COixgz4P.mjs.map → stage-Bqgc0gpc.mjs.map} +1 -1
- package/dist/{stage-BdJzkWOO.cjs → stage-CvaUCPxu.cjs} +4 -4
- package/dist/{stage-BdJzkWOO.cjs.map → stage-CvaUCPxu.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/seeds-BGhU_55R.cjs.map +0 -1
- package/dist/seeds-CVbX__84.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { n as __require, t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
3
3
|
import { n as isGkmError, t as GkmError } from "./errors-D8Gwp5kU.mjs";
|
|
4
4
|
import { _ as storeDokployCredentials, d as getDokployRegistryId, f as getDokployToken, g as removeGoDaddyCredentials, h as removeDokployCredentials, i as CommandFailed, l as getCredentialsPath, m as readCredentials, o as DEFAULT_TIMEOUT_MS, u as getDokployCredentials, v as storeGoDaddyToken, y as storeHostingerToken } from "./credentials-DpfnUvIR.mjs";
|
|
5
|
-
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-
|
|
5
|
+
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-EhGFelLH.mjs";
|
|
6
6
|
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-aiDQZMje.mjs";
|
|
7
|
-
import { D as RUNNER_PATH, E as BACKUPS_URL_KEY, F as runTime, I as stageBackups, N as backupFile, P as backupsPrefix, T as BACKUPS_SERVICE, b as awsEndpoint, j as backupDatabases, x as awsProvisioningCredentials, y as awsClientConfig } from "./snsSubscriptions-
|
|
7
|
+
import { D as RUNNER_PATH, E as BACKUPS_URL_KEY, F as runTime, I as stageBackups, N as backupFile, P as backupsPrefix, T as BACKUPS_SERVICE, b as awsEndpoint, j as backupDatabases, x as awsProvisioningCredentials, y as awsClientConfig } from "./snsSubscriptions-CZcuwbO-.mjs";
|
|
8
8
|
import { o as email } from "./schemas-BCwKKA42.mjs";
|
|
9
|
-
import { $n as telemetryOf, $t as maskPassword, Bt as createCredentialsPreload, Cn as postgresDatabaseNames, Ct as backendsOf$1, Et as reconcileWorkspace, Fn as projectKey, G as workerBundleName, Gt as loadPortState, Ht as findAvailablePort, It as cacheBackendFor, J as CronGenerator, K as workerEntryDir, Kn as TELEMETRY_CONTAINER, Kt as loadSecretsForApp, Lt as eventsBackendFor, Mn as FileSecretsStore, Nn as getKeyPath, Nt as pgClient, Ot as LOCAL_CA_PATH, Pt as CLUSTER_DATABASE, Q as processorInfo, Qn as surfaceClientTraced, R as dockerCommand, Rt as providerOf, St as FAKE_ENV, Tn as quoteIdentifier, Tt as derivedContainers, Ut as isPortAvailable, Vt as createEntryWrapper, W as WorkerGenerator, Wt as loadEnvFiles, X as processorBundleName, Y as ProcessorGenerator, Yn as appTelemetry, Yt as secretsStoreFor, Z as processorEntryDir, Zn as scopeTelemetryEnv, a as dnsResources, dn as isImageBuild, dr as primaryPortKey, fr as LOCAL_LOGS_EMAIL, hn as workerUnits, jn as readLocalCredentials, kt as forgetState, l as describeActor, lr as portsOf, mn as processorUnits, nn as withCustomSecret, or as describeServices, pn as isUnder, q as QueueGenerator, qt as prepareEntryCredentials, sr as fakeKey, tn as toEmbeddableSecrets, un as imageBuildCredentials, ut as assertDevServicesFlag, wt as constructGlobs } from "./seeds-
|
|
10
|
-
import { t as appKey } from "./derive-
|
|
9
|
+
import { $n as telemetryOf, $t as maskPassword, Bt as createCredentialsPreload, Cn as postgresDatabaseNames, Ct as backendsOf$1, Et as reconcileWorkspace, Fn as projectKey, G as workerBundleName, Gt as loadPortState, Ht as findAvailablePort, It as cacheBackendFor, J as CronGenerator, K as workerEntryDir, Kn as TELEMETRY_CONTAINER, Kt as loadSecretsForApp, Lt as eventsBackendFor, Mn as FileSecretsStore, Nn as getKeyPath, Nt as pgClient, Ot as LOCAL_CA_PATH, Pt as CLUSTER_DATABASE, Q as processorInfo, Qn as surfaceClientTraced, R as dockerCommand, Rt as providerOf, St as FAKE_ENV, Tn as quoteIdentifier, Tt as derivedContainers, Ut as isPortAvailable, Vt as createEntryWrapper, W as WorkerGenerator, Wt as loadEnvFiles, X as processorBundleName, Y as ProcessorGenerator, Yn as appTelemetry, Yt as secretsStoreFor, Z as processorEntryDir, Zn as scopeTelemetryEnv, a as dnsResources, dn as isImageBuild, dr as primaryPortKey, fr as LOCAL_LOGS_EMAIL, hn as workerUnits, jn as readLocalCredentials, kt as forgetState, l as describeActor, lr as portsOf, mn as processorUnits, nn as withCustomSecret, or as describeServices, pn as isUnder, q as QueueGenerator, qt as prepareEntryCredentials, sr as fakeKey, tn as toEmbeddableSecrets, un as imageBuildCredentials, ut as assertDevServicesFlag, wt as constructGlobs } from "./seeds-B5Lw7Jwy.mjs";
|
|
10
|
+
import { i as wildcardSite, r as protectedSubdomains, t as appKey } from "./derive-Bsnm81mg.mjs";
|
|
11
11
|
import { a as opensKmsKeys, n as driversFor, r as eventsBackendsIn, t as cacheBackendsIn, u as isCacheBackend } from "./drivers-CDjpjakg.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-Bm6xwLIF.mjs";
|
|
@@ -18,10 +18,10 @@ import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi
|
|
|
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 withCompute, r as withRoutes, t as manifestModule } from "./emit-CiJGdy_f.mjs";
|
|
20
20
|
import { t as LocalSandbox } from "./local-B7Zv1NoA.mjs";
|
|
21
|
-
import { S as createStateStore, k as keyFingerprint, n as sniffAppEnvironment, o as DokployApi } from "./sniffer-
|
|
22
|
-
import { t as deploy$1 } from "./deploy-
|
|
21
|
+
import { S as createStateStore, k as keyFingerprint, n as sniffAppEnvironment, o as DokployApi } from "./sniffer-DBT-n3aP.mjs";
|
|
22
|
+
import { t as deploy$1 } from "./deploy-Djdvl9Vw.mjs";
|
|
23
23
|
import { o as loadCredentialSchemas, t as CredentialsInvalid } from "./credentialSchemas-DPOGqOrU.mjs";
|
|
24
|
-
import { t as LocalStateStore } from "./LocalStateStore-
|
|
24
|
+
import { t as LocalStateStore } from "./LocalStateStore-B5oun7s4.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-AcAH2WL6.mjs";
|
|
27
27
|
import { createRequire } from "node:module";
|
|
@@ -35,7 +35,7 @@ import { homedir } from "node:os";
|
|
|
35
35
|
import { execFile, execSync, spawn } from "node:child_process";
|
|
36
36
|
import { connect } from "node:net";
|
|
37
37
|
import { createHash, randomBytes, timingSafeEqual } from "node:crypto";
|
|
38
|
-
import { canonicalId, dependenciesOf, kebabCase, migrationFolder, provideKey, schemeBase, seedFolder, serviceKey } from "@geekmidas/manifest";
|
|
38
|
+
import { canonicalId, dependenciesOf, kebabCase, migrationFolder, provideKey, schemeBase, seedFolder, serviceKey, wildcardDomainOf } from "@geekmidas/manifest";
|
|
39
39
|
import { pathToFileURL } from "node:url";
|
|
40
40
|
import { promisify } from "node:util";
|
|
41
41
|
import fg from "fast-glob";
|
|
@@ -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.134";
|
|
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-DBT-n3aP.mjs").then((n) => n.c);
|
|
138
138
|
return new DokployApi({
|
|
139
139
|
baseUrl: endpoint,
|
|
140
140
|
token
|
|
@@ -986,6 +986,34 @@ async function writeStageTypes(root, stages) {
|
|
|
986
986
|
return path;
|
|
987
987
|
}
|
|
988
988
|
//#endregion
|
|
989
|
+
//#region src/dev/addresses.ts
|
|
990
|
+
/** The slug `gkm dev` shows a wildcard site's address with. */
|
|
991
|
+
const EXAMPLE_TENANT = "acme";
|
|
992
|
+
/**
|
|
993
|
+
* How `gkm dev` prints where an app is reached: its public address, and the
|
|
994
|
+
* local port the edge forwards it to.
|
|
995
|
+
*
|
|
996
|
+
* A wildcard site's address is `https://*.shop.localhost:8443`, which no
|
|
997
|
+
* browser opens, so it is followed by one a browser does: the same address
|
|
998
|
+
* with a slug in place of the `*`.
|
|
999
|
+
*/
|
|
1000
|
+
function describeAddress(url, local) {
|
|
1001
|
+
if (!url) return local;
|
|
1002
|
+
const example = tenantUrl(url, EXAMPLE_TENANT);
|
|
1003
|
+
return example ? `${url} -> ${local} (open a tenant: ${example})` : `${url} -> ${local}`;
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* A wildcard site's address with `slug` in place of the `*` —
|
|
1007
|
+
* `https://acme.shop.localhost:8443` — or `undefined` for any other address.
|
|
1008
|
+
*/
|
|
1009
|
+
function tenantUrl(url, slug) {
|
|
1010
|
+
const match = /^(https?:\/\/)([^/:]+)(.*)$/.exec(url);
|
|
1011
|
+
if (!match) return void 0;
|
|
1012
|
+
const [, scheme, host, rest] = match;
|
|
1013
|
+
const domain = wildcardDomainOf(host);
|
|
1014
|
+
return domain === void 0 ? void 0 : `${scheme}${slug}.${domain}${rest}`;
|
|
1015
|
+
}
|
|
1016
|
+
//#endregion
|
|
989
1017
|
//#region src/dev/credentials.ts
|
|
990
1018
|
/**
|
|
991
1019
|
* `gkm dev:credentials` — where to sign in to each local service, and as
|
|
@@ -2174,7 +2202,7 @@ async function execCommand(commandArgs, options = {}, stageDeps) {
|
|
|
2174
2202
|
const cwd = options.cwd ?? process.cwd();
|
|
2175
2203
|
if (!commandArgs[0]) throw new NoCommandSpecified();
|
|
2176
2204
|
if (options.stage && !isImageBuild()) {
|
|
2177
|
-
const { execOnStage } = await import("./stage-
|
|
2205
|
+
const { execOnStage } = await import("./stage-Bqgc0gpc.mjs").then((n) => n.n);
|
|
2178
2206
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
2179
2207
|
const { workspace } = await loadWorkspaceConfig(cwd);
|
|
2180
2208
|
if (options.stage !== workspace.stages.local) {
|
|
@@ -2747,9 +2775,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
2747
2775
|
for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
2748
2776
|
logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
2749
2777
|
if (options.migrate || options.seed) {
|
|
2750
|
-
const { prepareDevDatabases } = await import("./migrate-
|
|
2778
|
+
const { prepareDevDatabases } = await import("./migrate-BcVzkhs2.mjs");
|
|
2751
2779
|
await prepareDevDatabases(workspace, secretsEnv, { seed: !!options.seed });
|
|
2752
|
-
} else await import("./migrate-
|
|
2780
|
+
} else await import("./migrate-BcVzkhs2.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
2753
2781
|
logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
2754
2782
|
});
|
|
2755
2783
|
const appUrls = {};
|
|
@@ -2788,7 +2816,7 @@ async function workspaceDevCommand(configured, options) {
|
|
|
2788
2816
|
}
|
|
2789
2817
|
const local = `http://localhost:${app.port}`;
|
|
2790
2818
|
const url = Object.entries(appUrls).find(([id]) => appKey(id) === appName)?.[1];
|
|
2791
|
-
logger$5.log(` ${appName.padEnd(width)} ${url
|
|
2819
|
+
logger$5.log(` ${appName.padEnd(width)} ${describeAddress(url, local)}`);
|
|
2792
2820
|
}
|
|
2793
2821
|
logger$5.log("");
|
|
2794
2822
|
const configFiles = [
|
|
@@ -3278,7 +3306,7 @@ var DevServer = class {
|
|
|
3278
3306
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
3279
3307
|
if (this.isRunning) {
|
|
3280
3308
|
const local = `http://localhost:${this.actualPort}`;
|
|
3281
|
-
const address = this.publicUrl
|
|
3309
|
+
const address = describeAddress(this.publicUrl, local);
|
|
3282
3310
|
const seconds = ((Date.now() - this.startTime) / 1e3).toFixed(1);
|
|
3283
3311
|
logger$5.log(`\x1b[32m✓\x1b[0m ${this.label} ready in ${seconds}s ${address}`);
|
|
3284
3312
|
const tools = this.selfServing ? [] : [
|
|
@@ -3724,7 +3752,8 @@ async function buildCommand(options) {
|
|
|
3724
3752
|
target,
|
|
3725
3753
|
builds: output.built ? [output.built] : [],
|
|
3726
3754
|
constructs: await declaredIn(config, workspaceRoot),
|
|
3727
|
-
backends: backendsOf(loadedConfig.workspace)
|
|
3755
|
+
backends: backendsOf(loadedConfig.workspace),
|
|
3756
|
+
...loadedConfig.workspace.protectedSubdomains ? { protectedSubdomains: loadedConfig.workspace.protectedSubdomains } : {}
|
|
3728
3757
|
});
|
|
3729
3758
|
return output;
|
|
3730
3759
|
}
|
|
@@ -3785,7 +3814,11 @@ async function buildOneApp(input) {
|
|
|
3785
3814
|
* An app's own build generates its handlers and nothing else.
|
|
3786
3815
|
*/
|
|
3787
3816
|
async function writeManifest(input) {
|
|
3788
|
-
const { workspaceRoot, target, builds, constructs
|
|
3817
|
+
const { workspaceRoot, target, builds, constructs } = input;
|
|
3818
|
+
const backends = wildcardSite(constructs) ? {
|
|
3819
|
+
...input.backends,
|
|
3820
|
+
protectedSubdomains: protectedSubdomains(constructs, input.protectedSubdomains)
|
|
3821
|
+
} : input.backends;
|
|
3789
3822
|
const manifestDir = join(workspaceRoot, ".gkm", "manifest");
|
|
3790
3823
|
await mkdir(manifestDir, { recursive: true });
|
|
3791
3824
|
await rm(join(manifestDir, `${target === "aws" ? "server" : "aws"}.ts`), { force: true });
|
|
@@ -3850,7 +3883,7 @@ async function buildApp(input) {
|
|
|
3850
3883
|
...production,
|
|
3851
3884
|
...telemetry ? { telemetry } : {}
|
|
3852
3885
|
});
|
|
3853
|
-
const { bundleServer } = await import("./bundler-
|
|
3886
|
+
const { bundleServer } = await import("./bundler-DJOWPm2o.mjs");
|
|
3854
3887
|
await bundleServer({
|
|
3855
3888
|
entryPoint,
|
|
3856
3889
|
outputDir: join(outputDir, "dist"),
|
|
@@ -4095,7 +4128,7 @@ async function buildWorkers(input) {
|
|
|
4095
4128
|
});
|
|
4096
4129
|
logger$4.log(`Generated worker ${worker.id}: ${crons.length} crons, ${queues.length} queues, ${subscribers.length} subscribers`);
|
|
4097
4130
|
if (!input.bundle) continue;
|
|
4098
|
-
const { bundleServer } = await import("./bundler-
|
|
4131
|
+
const { bundleServer } = await import("./bundler-DJOWPm2o.mjs");
|
|
4099
4132
|
const outfile = workerBundleName(worker.id);
|
|
4100
4133
|
await bundleServer({
|
|
4101
4134
|
entryPoint,
|
|
@@ -4137,7 +4170,7 @@ async function buildProcessors(input) {
|
|
|
4137
4170
|
for (const { key, construct } of processors) infos.push(await processorInfo(key, construct, handler, context));
|
|
4138
4171
|
logger$4.log(`Generated processors for ${fileServerId}: ${processors.map(({ key }) => key).join(", ")}`);
|
|
4139
4172
|
if (!input.bundle) continue;
|
|
4140
|
-
const { bundleServer } = await import("./bundler-
|
|
4173
|
+
const { bundleServer } = await import("./bundler-DJOWPm2o.mjs");
|
|
4141
4174
|
const outfile = processorBundleName(fileServerId);
|
|
4142
4175
|
await bundleServer({
|
|
4143
4176
|
entryPoint,
|
|
@@ -4220,7 +4253,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
4220
4253
|
let masterKey;
|
|
4221
4254
|
if (context.production?.bundle && !skipBundle) {
|
|
4222
4255
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
4223
|
-
const { bundleServer } = await import("./bundler-
|
|
4256
|
+
const { bundleServer } = await import("./bundler-DJOWPm2o.mjs");
|
|
4224
4257
|
const allConstructs = [
|
|
4225
4258
|
...endpoints.map((e) => e.construct),
|
|
4226
4259
|
...functions.map((f) => f.construct),
|
|
@@ -4376,7 +4409,8 @@ async function workspaceBuildCommand(workspace, options) {
|
|
|
4376
4409
|
patterns: allConstructGlobs(workspace),
|
|
4377
4410
|
cwd: workspace.root
|
|
4378
4411
|
}),
|
|
4379
|
-
backends: backendsOf(workspace)
|
|
4412
|
+
backends: backendsOf(workspace),
|
|
4413
|
+
...workspace.protectedSubdomains ? { protectedSubdomains: workspace.protectedSubdomains } : {}
|
|
4380
4414
|
});
|
|
4381
4415
|
const { filters, unpackaged } = turboFilters(workspace, { exclude: "backend" });
|
|
4382
4416
|
if (unpackaged.length > 0) throw new Error(`No package.json for workspace app(s): ${unpackaged.join(", ")}. Each app needs one — turbo builds packages, and gkm reads the name back to know which app it is building.`);
|
|
@@ -6055,25 +6089,25 @@ function loadPackageJson() {
|
|
|
6055
6089
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
6056
6090
|
*/
|
|
6057
6091
|
const GEEKMIDAS_VERSIONS = {
|
|
6058
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
6059
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
6060
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
6061
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
6062
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
6063
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
6064
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
6065
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
6066
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
6067
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
6068
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
6069
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
6070
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
6071
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
6072
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
6073
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
6074
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
6075
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
6076
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
6092
|
+
"@geekmidas/audit": "~10.0.0-alpha.134",
|
|
6093
|
+
"@geekmidas/auth": "~10.0.0-alpha.134",
|
|
6094
|
+
"@geekmidas/cache": "~10.0.0-alpha.134",
|
|
6095
|
+
"@geekmidas/client": "~10.0.0-alpha.134",
|
|
6096
|
+
"@geekmidas/cloud": "~10.0.0-alpha.134",
|
|
6097
|
+
"@geekmidas/constructs": "~10.0.0-alpha.134",
|
|
6098
|
+
"@geekmidas/db": "~10.0.0-alpha.134",
|
|
6099
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.134",
|
|
6100
|
+
"@geekmidas/envkit": "~10.0.0-alpha.134",
|
|
6101
|
+
"@geekmidas/errors": "~10.0.0-alpha.134",
|
|
6102
|
+
"@geekmidas/events": "~10.0.0-alpha.134",
|
|
6103
|
+
"@geekmidas/logger": "~10.0.0-alpha.134",
|
|
6104
|
+
"@geekmidas/manifest": "~10.0.0-alpha.134",
|
|
6105
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.134",
|
|
6106
|
+
"@geekmidas/schema": "~10.0.0-alpha.134",
|
|
6107
|
+
"@geekmidas/services": "~10.0.0-alpha.134",
|
|
6108
|
+
"@geekmidas/storage": "~10.0.0-alpha.134",
|
|
6109
|
+
"@geekmidas/telescope": "~10.0.0-alpha.134",
|
|
6110
|
+
"@geekmidas/testkit": "~10.0.0-alpha.134",
|
|
6077
6111
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
6078
6112
|
};
|
|
6079
6113
|
//#endregion
|
|
@@ -7266,7 +7300,7 @@ const COMMIT = /^[0-9a-f]{40}$/;
|
|
|
7266
7300
|
* The `uses:` value for the stages action, with a comment saying which CLI
|
|
7267
7301
|
* release the pinned commit is.
|
|
7268
7302
|
*/
|
|
7269
|
-
function stagesActionUses(commit = "
|
|
7303
|
+
function stagesActionUses(commit = "5093d59002e8b0da60a8ffa433545dd3fba7fb1c", version = cliVersion()) {
|
|
7270
7304
|
return commit && COMMIT.test(commit) ? `${STAGES_ACTION}@${commit} # @geekmidas/cli ${version}` : `${STAGES_ACTION}@main # pin to a commit SHA: see the action's README`;
|
|
7271
7305
|
}
|
|
7272
7306
|
//#endregion
|
|
@@ -16238,7 +16272,7 @@ function testDatabases(reconciled) {
|
|
|
16238
16272
|
* starts without the reference data the app needs.
|
|
16239
16273
|
*/
|
|
16240
16274
|
async function migrateTestStage(workspace, env) {
|
|
16241
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
16275
|
+
const { migrateAndSeed } = await import("./migrate-BcVzkhs2.mjs");
|
|
16242
16276
|
const { discover } = await import("./discover-DOhYSKY_.mjs").then((n) => n.a);
|
|
16243
16277
|
const sources = {};
|
|
16244
16278
|
const manifest = await discover({
|
|
@@ -16663,7 +16697,7 @@ program.command("eas:sync").description("Set up a mobile app's EAS project for a
|
|
|
16663
16697
|
try {
|
|
16664
16698
|
const globalOptions = program.opts();
|
|
16665
16699
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16666
|
-
const { easSync } = await import("./eas-
|
|
16700
|
+
const { easSync } = await import("./eas-DFr4OtsE.mjs");
|
|
16667
16701
|
await easSync(options);
|
|
16668
16702
|
} catch (error) {
|
|
16669
16703
|
exitWithError(error);
|
|
@@ -16673,7 +16707,7 @@ program.command("publish").description("Ship a mobile app for a deployed stage:
|
|
|
16673
16707
|
try {
|
|
16674
16708
|
const globalOptions = program.opts();
|
|
16675
16709
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16676
|
-
const { publish, PublishModeConflict } = await import("./publish-
|
|
16710
|
+
const { publish, PublishModeConflict } = await import("./publish-ClprDLQl.mjs");
|
|
16677
16711
|
if (options.build && options.update) throw new PublishModeConflict();
|
|
16678
16712
|
const { build, update, ...rest } = options;
|
|
16679
16713
|
await publish({
|
|
@@ -16689,7 +16723,7 @@ program.command("deploy:google-play").description("Let EAS Submit publish a mobi
|
|
|
16689
16723
|
try {
|
|
16690
16724
|
const globalOptions = program.opts();
|
|
16691
16725
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16692
|
-
const { deployGooglePlay } = await import("./googlePlay-
|
|
16726
|
+
const { deployGooglePlay } = await import("./googlePlay-BKZvrPUP.mjs");
|
|
16693
16727
|
await deployGooglePlay(options);
|
|
16694
16728
|
} catch (error) {
|
|
16695
16729
|
exitWithError(error);
|
|
@@ -16711,7 +16745,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
16711
16745
|
try {
|
|
16712
16746
|
const globalOptions = program.opts();
|
|
16713
16747
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16714
|
-
const { migrateCommand } = await import("./migrate-
|
|
16748
|
+
const { migrateCommand } = await import("./migrate-BcVzkhs2.mjs");
|
|
16715
16749
|
await migrateCommand({
|
|
16716
16750
|
...options,
|
|
16717
16751
|
...construct ? { construct } : {}
|
|
@@ -16724,7 +16758,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
16724
16758
|
try {
|
|
16725
16759
|
const globalOptions = program.opts();
|
|
16726
16760
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16727
|
-
const { seedCommand } = await import("./migrate-
|
|
16761
|
+
const { seedCommand } = await import("./migrate-BcVzkhs2.mjs");
|
|
16728
16762
|
await seedCommand({
|
|
16729
16763
|
...options,
|
|
16730
16764
|
...construct ? { construct } : {}
|
|
@@ -16737,7 +16771,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
16737
16771
|
try {
|
|
16738
16772
|
const globalOptions = program.opts();
|
|
16739
16773
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16740
|
-
const { migrationCommand } = await import("./migrate-
|
|
16774
|
+
const { migrationCommand } = await import("./migrate-BcVzkhs2.mjs");
|
|
16741
16775
|
await migrationCommand({
|
|
16742
16776
|
construct,
|
|
16743
16777
|
...name ? { name } : {}
|
|
@@ -16837,7 +16871,7 @@ program.command("secrets:add").description("Build the keys a stage must be given
|
|
|
16837
16871
|
try {
|
|
16838
16872
|
const globalOptions = program.opts();
|
|
16839
16873
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16840
|
-
const { secretsAddCommand } = await import("./add-
|
|
16874
|
+
const { secretsAddCommand } = await import("./add-Cf7j443Y.mjs");
|
|
16841
16875
|
await secretsAddCommand(options);
|
|
16842
16876
|
} catch (error) {
|
|
16843
16877
|
exitWithError(error);
|
|
@@ -16847,7 +16881,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
16847
16881
|
try {
|
|
16848
16882
|
const globalOptions = program.opts();
|
|
16849
16883
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16850
|
-
const { encryptionRotateCommand } = await import("./encryption-
|
|
16884
|
+
const { encryptionRotateCommand } = await import("./encryption-CTdgXPGk.mjs");
|
|
16851
16885
|
await encryptionRotateCommand(construct, options);
|
|
16852
16886
|
} catch (error) {
|
|
16853
16887
|
exitWithError(error);
|
|
@@ -16857,7 +16891,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
16857
16891
|
try {
|
|
16858
16892
|
const globalOptions = program.opts();
|
|
16859
16893
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16860
|
-
const { encryptionRetireCommand } = await import("./encryption-
|
|
16894
|
+
const { encryptionRetireCommand } = await import("./encryption-CTdgXPGk.mjs");
|
|
16861
16895
|
await encryptionRetireCommand(construct, key, options);
|
|
16862
16896
|
} catch (error) {
|
|
16863
16897
|
exitWithError(error);
|
|
@@ -16896,7 +16930,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
16896
16930
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16897
16931
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
16898
16932
|
const { reconcileMissingSecrets } = await import("./reconcile--I7V4Klj.mjs");
|
|
16899
|
-
const { secretsStoreFor } = await import("./seeds-
|
|
16933
|
+
const { secretsStoreFor } = await import("./seeds-B5Lw7Jwy.mjs").then((n) => n.Zt);
|
|
16900
16934
|
const { workspace } = await loadWorkspaceConfig();
|
|
16901
16935
|
const stage = options.stage ?? workspace.stages.local;
|
|
16902
16936
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -16905,7 +16939,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
16905
16939
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
16906
16940
|
process.exit(1);
|
|
16907
16941
|
}
|
|
16908
|
-
const { derivedContainers } = await import("./seeds-
|
|
16942
|
+
const { derivedContainers } = await import("./seeds-B5Lw7Jwy.mjs").then((n) => n.Dt);
|
|
16909
16943
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
16910
16944
|
if (!result) {
|
|
16911
16945
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -16922,14 +16956,14 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
16922
16956
|
try {
|
|
16923
16957
|
const globalOptions = program.opts();
|
|
16924
16958
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16925
|
-
const { secretsMigrateCommand } = await import("./migrate-
|
|
16959
|
+
const { secretsMigrateCommand } = await import("./migrate-CtjgTkyn.mjs");
|
|
16926
16960
|
await secretsMigrateCommand(options);
|
|
16927
16961
|
} catch (error) {
|
|
16928
16962
|
exitWithError(error);
|
|
16929
16963
|
}
|
|
16930
16964
|
});
|
|
16931
16965
|
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) => {
|
|
16932
|
-
const { deployCli } = await import("./cli-
|
|
16966
|
+
const { deployCli } = await import("./cli-CR1jbJwq.mjs");
|
|
16933
16967
|
const globalOptions = program.opts();
|
|
16934
16968
|
const code = await deployCli({
|
|
16935
16969
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -16949,7 +16983,7 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
16949
16983
|
});
|
|
16950
16984
|
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) => {
|
|
16951
16985
|
try {
|
|
16952
|
-
const { rollbackStage } = await import("./rollback-
|
|
16986
|
+
const { rollbackStage } = await import("./rollback-M6Tzl8X-.mjs").then((n) => n.a);
|
|
16953
16987
|
const { terminalCredentials } = await import("./terminal-CebFDhWQ.mjs");
|
|
16954
16988
|
const globalOptions = program.opts();
|
|
16955
16989
|
await rollbackStage({
|
|
@@ -16968,7 +17002,7 @@ program.command("compose:server").description("Set up a stage's server for compo
|
|
|
16968
17002
|
try {
|
|
16969
17003
|
const globalOptions = program.opts();
|
|
16970
17004
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16971
|
-
const { composeServerCommand } = await import("./serverSetup-
|
|
17005
|
+
const { composeServerCommand } = await import("./serverSetup-lCtWjAbe.mjs");
|
|
16972
17006
|
await composeServerCommand(options);
|
|
16973
17007
|
} catch (error) {
|
|
16974
17008
|
exitWithError(error);
|
|
@@ -16993,7 +17027,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
16993
17027
|
try {
|
|
16994
17028
|
const globalOptions = program.opts();
|
|
16995
17029
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16996
|
-
const { deployGithubCommand } = await import("./github-
|
|
17030
|
+
const { deployGithubCommand } = await import("./github-DkkhCshn.mjs");
|
|
16997
17031
|
await deployGithubCommand(options);
|
|
16998
17032
|
} catch (error) {
|
|
16999
17033
|
exitWithError(error);
|