@geekmidas/cli 10.0.0-alpha.102 → 10.0.0-alpha.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{EndpointGenerator-By5_tYE9.cjs → EndpointGenerator-BwbYTMtB.cjs} +2 -2
- package/dist/{EndpointGenerator-By5_tYE9.cjs.map → EndpointGenerator-BwbYTMtB.cjs.map} +1 -1
- package/dist/{EndpointGenerator-Br97xgs_.mjs → EndpointGenerator-CvLX8bpx.mjs} +2 -2
- package/dist/{EndpointGenerator-Br97xgs_.mjs.map → EndpointGenerator-CvLX8bpx.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-u9MF-Dqk.mjs → GoDaddyProvider-CuPEbbjl.mjs} +2 -2
- package/dist/{GoDaddyProvider-u9MF-Dqk.mjs.map → GoDaddyProvider-CuPEbbjl.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-BOuLf_Py.cjs → GoDaddyProvider-dezqtUth.cjs} +2 -2
- package/dist/{GoDaddyProvider-BOuLf_Py.cjs.map → GoDaddyProvider-dezqtUth.cjs.map} +1 -1
- package/dist/{LegacyStateStore-vhkx7Bbq.mjs → LegacyStateStore-Bc8FnHEB.mjs} +3 -3
- package/dist/{LegacyStateStore-vhkx7Bbq.mjs.map → LegacyStateStore-Bc8FnHEB.mjs.map} +1 -1
- package/dist/{LegacyStateStore-DWmHGNgH.cjs → LegacyStateStore-ecxYpm9-.cjs} +3 -3
- package/dist/{LegacyStateStore-DWmHGNgH.cjs.map → LegacyStateStore-ecxYpm9-.cjs.map} +1 -1
- package/dist/{LocalStateStore-BVKDADoG.cjs → LocalStateStore-Sf4B6kUn.cjs} +2 -2
- package/dist/{LocalStateStore-BVKDADoG.cjs.map → LocalStateStore-Sf4B6kUn.cjs.map} +1 -1
- package/dist/{LocalStateStore-FVsg0UoM.mjs → LocalStateStore-wSKMDDh5.mjs} +2 -2
- package/dist/{LocalStateStore-FVsg0UoM.mjs.map → LocalStateStore-wSKMDDh5.mjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-BgSX_Z-e.cjs → OpenApiTsGenerator-BD6ZOQ51.cjs} +2 -2
- package/dist/{OpenApiTsGenerator-BgSX_Z-e.cjs.map → OpenApiTsGenerator-BD6ZOQ51.cjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-C8aTX--y.mjs → OpenApiTsGenerator-DXXFXSbO.mjs} +2 -2
- package/dist/{OpenApiTsGenerator-C8aTX--y.mjs.map → OpenApiTsGenerator-DXXFXSbO.mjs.map} +1 -1
- package/dist/{S3StateStore-B8seZUsw.mjs → S3StateStore-BPlVpTfg.mjs} +2 -2
- package/dist/{S3StateStore-B8seZUsw.mjs.map → S3StateStore-BPlVpTfg.mjs.map} +1 -1
- package/dist/{S3StateStore-B_2gE9Un.cjs → S3StateStore-DQYjsYBl.cjs} +2 -2
- package/dist/{S3StateStore-B_2gE9Un.cjs.map → S3StateStore-DQYjsYBl.cjs.map} +1 -1
- package/dist/{SSMStateStore-DGTbBomw.mjs → SSMStateStore-De2PY12p.mjs} +2 -2
- package/dist/{SSMStateStore-DGTbBomw.mjs.map → SSMStateStore-De2PY12p.mjs.map} +1 -1
- package/dist/{SSMStateStore-CTDEI5Bi.cjs → SSMStateStore-P9OMZHkp.cjs} +2 -2
- package/dist/{SSMStateStore-CTDEI5Bi.cjs.map → SSMStateStore-P9OMZHkp.cjs.map} +1 -1
- package/dist/{SubscriberGenerator-BlIOdbi-.cjs → SubscriberGenerator-CeH7wbYt.cjs} +93 -12
- package/dist/SubscriberGenerator-CeH7wbYt.cjs.map +1 -0
- package/dist/{SubscriberGenerator-1-IsjIwF.mjs → SubscriberGenerator-DHnIYwUU.mjs} +82 -13
- package/dist/SubscriberGenerator-DHnIYwUU.mjs.map +1 -0
- package/dist/{add-BB2tLVc2.cjs → add-C_lp7-oD.cjs} +8 -9
- package/dist/add-C_lp7-oD.cjs.map +1 -0
- package/dist/{add-CIbhGE5v.mjs → add-Dgdsb3ox.mjs} +8 -9
- package/dist/add-Dgdsb3ox.mjs.map +1 -0
- package/dist/{bundler-Ba6BER3w.cjs → bundler-DBTA8gXs.cjs} +5 -5
- package/dist/{bundler-Ba6BER3w.cjs.map → bundler-DBTA8gXs.cjs.map} +1 -1
- package/dist/{bundler-CHjRYVKh.mjs → bundler-DVPoeMRa.mjs} +5 -5
- package/dist/{bundler-CHjRYVKh.mjs.map → bundler-DVPoeMRa.mjs.map} +1 -1
- package/dist/{cli-DOlkhrsh.mjs → cli-CGXOvWRP.mjs} +3 -3
- package/dist/{cli-DOlkhrsh.mjs.map → cli-CGXOvWRP.mjs.map} +1 -1
- package/dist/{cli-CtlqYRlN.cjs → cli-D7FyFbeC.cjs} +3 -3
- package/dist/{cli-CtlqYRlN.cjs.map → cli-D7FyFbeC.cjs.map} +1 -1
- package/dist/{compose-FDP_TaFt.mjs → compose-B8ND6s9C.mjs} +14 -11
- package/dist/{compose-FDP_TaFt.mjs.map → compose-B8ND6s9C.mjs.map} +1 -1
- package/dist/{compose-uAWLy-nR.cjs → compose-qbPKKAMC.cjs} +14 -11
- package/dist/compose-qbPKKAMC.cjs.map +1 -0
- package/dist/config.cjs +1 -1
- package/dist/config.mjs +1 -1
- package/dist/{credentialSchemas-DvitraL-.mjs → credentialSchemas-Cf5Pf8VE.mjs} +2 -2
- package/dist/{credentialSchemas-DvitraL-.mjs.map → credentialSchemas-Cf5Pf8VE.mjs.map} +1 -1
- package/dist/{credentialSchemas-DDda4Mmm.cjs → credentialSchemas-D_VUCDUh.cjs} +2 -2
- package/dist/{credentialSchemas-DDda4Mmm.cjs.map → credentialSchemas-D_VUCDUh.cjs.map} +1 -1
- package/dist/deploy/public.cjs +7 -7
- package/dist/deploy/public.mjs +7 -7
- package/dist/{deploy-DUUc3jV9.cjs → deploy-Bsxl6nyG.cjs} +8 -8
- package/dist/{deploy-DUUc3jV9.cjs.map → deploy-Bsxl6nyG.cjs.map} +1 -1
- package/dist/{deploy-DgZxTnGS.mjs → deploy-yLGEWuam.mjs} +8 -8
- package/dist/{deploy-DgZxTnGS.mjs.map → deploy-yLGEWuam.mjs.map} +1 -1
- package/dist/{discover-BfhVW_kT.cjs → discover-Bsr7HjqJ.cjs} +18 -2
- package/dist/{discover-BfhVW_kT.cjs.map → discover-Bsr7HjqJ.cjs.map} +1 -1
- package/dist/{discover-kziEht4W.mjs → discover-Ca8U75dl.mjs} +13 -3
- package/dist/{discover-kziEht4W.mjs.map → discover-Ca8U75dl.mjs.map} +1 -1
- package/dist/{dns-DDDCfj75.mjs → dns-BQrhafpk.mjs} +2 -2
- package/dist/{dns-DDDCfj75.mjs.map → dns-BQrhafpk.mjs.map} +1 -1
- package/dist/{dns-DnE_02tB.cjs → dns-BUUEztBH.cjs} +2 -2
- package/dist/{dns-DnE_02tB.cjs.map → dns-BUUEztBH.cjs.map} +1 -1
- package/dist/{dokploy-DBlGSdnb.mjs → dokploy-BuIvCaE1.mjs} +2 -2
- package/dist/{dokploy-DBlGSdnb.mjs.map → dokploy-BuIvCaE1.mjs.map} +1 -1
- package/dist/{dokploy-BrfdeVEu.cjs → dokploy-CCnoXmGV.cjs} +2 -2
- package/dist/{dokploy-BrfdeVEu.cjs.map → dokploy-CCnoXmGV.cjs.map} +1 -1
- package/dist/{drivers-C08LL4E8.mjs → drivers-D11JHxrD.mjs} +2 -2
- package/dist/{drivers-C08LL4E8.mjs.map → drivers-D11JHxrD.mjs.map} +1 -1
- package/dist/{drivers-BLU1fNs_.cjs → drivers-GKaA6ITM.cjs} +2 -2
- package/dist/{drivers-BLU1fNs_.cjs.map → drivers-GKaA6ITM.cjs.map} +1 -1
- package/dist/{encryption-CeW3xpE1.cjs → encryption-2KOlWvfq.cjs} +2 -2
- package/dist/{encryption-CeW3xpE1.cjs.map → encryption-2KOlWvfq.cjs.map} +1 -1
- package/dist/{encryption-DC8zsh2s.mjs → encryption-BFs3ItV9.mjs} +2 -2
- package/dist/{encryption-DC8zsh2s.mjs.map → encryption-BFs3ItV9.mjs.map} +1 -1
- package/dist/{engine-BXxvcxVq.cjs → engine-Bx_ea2_k.cjs} +6 -5
- package/dist/engine-Bx_ea2_k.cjs.map +1 -0
- package/dist/{engine-z0UClzE9.mjs → engine-vvr2EpTb.mjs} +6 -5
- package/dist/engine-vvr2EpTb.mjs.map +1 -0
- package/dist/{github-DWoFgxtl.cjs → github-BM6afosB.cjs} +5 -5
- package/dist/{github-DWoFgxtl.cjs.map → github-BM6afosB.cjs.map} +1 -1
- package/dist/{github-DJgO5z37.mjs → github-DuXBKTvr.mjs} +5 -5
- package/dist/{github-DJgO5z37.mjs.map → github-DuXBKTvr.mjs.map} +1 -1
- package/dist/index.cjs +185 -102
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +186 -103
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-B1OjPwUY.cjs → migrate-BQfq48xK.cjs} +2 -2
- package/dist/{migrate-B1OjPwUY.cjs.map → migrate-BQfq48xK.cjs.map} +1 -1
- package/dist/{migrate-DoI2hWNH.mjs → migrate-BlLFYSIx.mjs} +2 -2
- package/dist/{migrate-DoI2hWNH.mjs.map → migrate-BlLFYSIx.mjs.map} +1 -1
- package/dist/{migrate-DIVxoju6.mjs → migrate-CQal4P1q.mjs} +3 -3
- package/dist/{migrate-DIVxoju6.mjs.map → migrate-CQal4P1q.mjs.map} +1 -1
- package/dist/{migrate-CWSCkzu3.cjs → migrate-DXVzuw-s.cjs} +3 -3
- package/dist/{migrate-CWSCkzu3.cjs.map → migrate-DXVzuw-s.cjs.map} +1 -1
- package/dist/openapi.cjs +2 -2
- package/dist/openapi.mjs +2 -2
- package/dist/{ready-CzHNHhI6.mjs → ready-CVNE5Pix.mjs} +6 -6
- package/dist/{ready-CzHNHhI6.mjs.map → ready-CVNE5Pix.mjs.map} +1 -1
- package/dist/{ready-BtxiI7Qb.cjs → ready-DU7wvxWk.cjs} +6 -6
- package/dist/{ready-BtxiI7Qb.cjs.map → ready-DU7wvxWk.cjs.map} +1 -1
- package/dist/reconcile/public.cjs +1 -1
- package/dist/reconcile/public.mjs +1 -1
- package/dist/{resolve-WAwYMN6q.cjs → resolve-By_cw893.cjs} +3 -3
- package/dist/{resolve-WAwYMN6q.cjs.map → resolve-By_cw893.cjs.map} +1 -1
- package/dist/{resolve-pmXIdi9j.mjs → resolve-De9vfAnN.mjs} +3 -3
- package/dist/{resolve-pmXIdi9j.mjs.map → resolve-De9vfAnN.mjs.map} +1 -1
- package/dist/{rollback-CLtwbByg.mjs → rollback-YCj4_q9l.mjs} +4 -4
- package/dist/{rollback-CLtwbByg.mjs.map → rollback-YCj4_q9l.mjs.map} +1 -1
- package/dist/{rollback-Cz8F9xSB.cjs → rollback-dkinZaOv.cjs} +4 -4
- package/dist/{rollback-Cz8F9xSB.cjs.map → rollback-dkinZaOv.cjs.map} +1 -1
- package/dist/sandbox/credentials-worker.cjs +2 -2
- package/dist/sandbox/credentials-worker.mjs +2 -2
- package/dist/sandbox/discover-worker.cjs +1 -1
- package/dist/sandbox/discover-worker.mjs +1 -1
- package/dist/sandbox/migrate-worker.cjs +1 -1
- package/dist/sandbox/migrate-worker.mjs +1 -1
- package/dist/{seeds-Dk4WHhjU.cjs → seeds-CjBwLvWY.cjs} +40 -48
- package/dist/seeds-CjBwLvWY.cjs.map +1 -0
- package/dist/{seeds-BHKUAExH.mjs → seeds-DZGuovWF.mjs} +35 -49
- package/dist/seeds-DZGuovWF.mjs.map +1 -0
- package/dist/{sniffer-CaXl51vO.mjs → sniffer-bo0KeZsK.mjs} +7 -7
- package/dist/{sniffer-CaXl51vO.mjs.map → sniffer-bo0KeZsK.mjs.map} +1 -1
- package/dist/{sniffer-BjBZ01PE.cjs → sniffer-t0NsMNNP.cjs} +7 -7
- package/dist/{sniffer-BjBZ01PE.cjs.map → sniffer-t0NsMNNP.cjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/dist/{terminal-Bs_lNQhL.mjs → terminal-CvRLxz6g.mjs} +2 -2
- package/dist/{terminal-Bs_lNQhL.mjs.map → terminal-CvRLxz6g.mjs.map} +1 -1
- package/dist/{terminal-CsQz4oT0.cjs → terminal-D_NRPW4W.cjs} +2 -2
- package/dist/{terminal-CsQz4oT0.cjs.map → terminal-D_NRPW4W.cjs.map} +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/add-BB2tLVc2.cjs.map +0 -1
- package/dist/add-CIbhGE5v.mjs.map +0 -1
- package/dist/compose-uAWLy-nR.cjs.map +0 -1
- package/dist/engine-BXxvcxVq.cjs.map +0 -1
- package/dist/engine-z0UClzE9.mjs.map +0 -1
- package/dist/seeds-BHKUAExH.mjs.map +0 -1
- package/dist/seeds-Dk4WHhjU.cjs.map +0 -1
|
@@ -3,12 +3,12 @@ import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
|
|
|
3
3
|
import { i as run$1, s as gkmHome } from "./run-BJLIerMM.mjs";
|
|
4
4
|
import { B as LOGS_PORT, H as provisioningOf, R as stageSampleRate, U as stageProvider, _ as PUBLIC_ENV_PREFIXES, a as allConstructGlobs, ct as UnknownSecretsStoreProvider, ft as SERVER_IPV4_KEY, ht as isReservedStageKey, j as TEST_STAGE, pt as SERVER_IPV6_KEY, ut as s3SecretsLocation, v as getPublicEnvPrefix, z as telemetryEnv } from "./workspace-D1QbNd55.mjs";
|
|
5
5
|
import { t as appKey } from "./derive-B4vDpzgP.mjs";
|
|
6
|
-
import { a as
|
|
6
|
+
import { a as DEFAULT_CACHE, c as holdsEveryCache, i as readFakes, o as DEFAULT_EVENTS$1, r as readCredentialFakes, s as DEFAULT_STORAGE, t as SubscriberGenerator } from "./SubscriberGenerator-DHnIYwUU.mjs";
|
|
7
7
|
import { n as deployIdentity } from "./identity-CBXr4wNi.mjs";
|
|
8
|
-
import { a as startTelemetryCode, n as runtimeFor, s as writeTelemetryModule, u as telemetryArgs } from "./EndpointGenerator-
|
|
9
|
-
import { d as
|
|
8
|
+
import { a as startTelemetryCode, n as runtimeFor, s as writeTelemetryModule, u as telemetryArgs } from "./EndpointGenerator-CvLX8bpx.mjs";
|
|
9
|
+
import { d as ConstructGenerator, f as output, i as discover } from "./discover-Ca8U75dl.mjs";
|
|
10
10
|
import { ConfigNotFound, NotInAnApp, loadWorkspaceAppInfo, loadWorkspaceConfig } from "./config.mjs";
|
|
11
|
-
import { c as runtimeOf } from "./resolve-
|
|
11
|
+
import { c as runtimeOf } from "./resolve-De9vfAnN.mjs";
|
|
12
12
|
import { basename, dirname, isAbsolute, join, parse, relative, resolve, sep } from "node:path";
|
|
13
13
|
import { constants, existsSync, readFileSync } from "node:fs";
|
|
14
14
|
import { appendFile, chmod, copyFile, mkdir, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
|
|
@@ -724,10 +724,8 @@ function emulatorQueueUrl(name, port) {
|
|
|
724
724
|
* Which processes use a `Telemetry` node — read off the manifest's edges.
|
|
725
725
|
*
|
|
726
726
|
* A process uses telemetry when its own declaration names the node: a
|
|
727
|
-
* surface's `telemetry`, a worker's.
|
|
728
|
-
*
|
|
729
|
-
* consumers under `gkm dev`, and is handed their edges' keys by `appEnvKeys`,
|
|
730
|
-
* so a worker's edge counts for it too — the same rule, read the same way.
|
|
727
|
+
* surface's `telemetry`, a worker's. A surface's process runs its own
|
|
728
|
+
* endpoints, so a worker's edge never counts for it.
|
|
731
729
|
*
|
|
732
730
|
* A site's edge is recorded and never followed here: a site is handed none of
|
|
733
731
|
* the node's keys (see `PUBLIC.telemetry`).
|
|
@@ -753,14 +751,7 @@ function telemetryOf(manifest, id) {
|
|
|
753
751
|
if (!declaration) return void 0;
|
|
754
752
|
if (declaration.kind === "worker") return nodeOf(manifest, declaration.telemetry);
|
|
755
753
|
if (declaration.kind !== "rest-api") return void 0;
|
|
756
|
-
|
|
757
|
-
if (own) return own;
|
|
758
|
-
if (declaration.endpoints.length > 0) return void 0;
|
|
759
|
-
for (const other of Object.values(manifest)) {
|
|
760
|
-
if (other.kind !== "worker") continue;
|
|
761
|
-
const node = nodeOf(manifest, other.telemetry);
|
|
762
|
-
if (node) return node;
|
|
763
|
-
}
|
|
754
|
+
return nodeOf(manifest, declaration.telemetry);
|
|
764
755
|
}
|
|
765
756
|
/**
|
|
766
757
|
* The `Telemetry` node the app `appName` emits through — its surface's, or
|
|
@@ -1039,6 +1030,7 @@ function planFor(manifest, stage, order, options = {}) {
|
|
|
1039
1030
|
credentials: fake.credentials
|
|
1040
1031
|
} } : {},
|
|
1041
1032
|
...declaration.kind === "external-api" && !fake ? { url: declaration.url } : {},
|
|
1033
|
+
...declaration.kind === "credential" && options.credentialFakes?.[id] !== void 0 ? { fakeCredentials: options.credentialFakes[id] } : {},
|
|
1042
1034
|
..."of" in declaration && !detached ? { of: declaration.of } : {},
|
|
1043
1035
|
..."schema" in declaration && declaration.schema ? { schema: declaration.schema } : {},
|
|
1044
1036
|
..."version" in declaration && declaration.version ? { version: declaration.version } : {},
|
|
@@ -1199,6 +1191,7 @@ function envFor(plan, options) {
|
|
|
1199
1191
|
if (owner) env[provideKey(resource.id, "ownerUrl")] = owner;
|
|
1200
1192
|
}
|
|
1201
1193
|
if (resource.kind === "external-api" && url && resource.fake) env[provideKey(resource.id, "credentials")] = resource.fake.credentials;
|
|
1194
|
+
if (resource.kind === "credential" && resource.fakeCredentials !== void 0) env[resource.envKey] = resource.fakeCredentials;
|
|
1202
1195
|
if (resource.kind === "telemetry" && url) {
|
|
1203
1196
|
const login = options.credentials.logs;
|
|
1204
1197
|
Object.assign(env, telemetryEnv({
|
|
@@ -2611,6 +2604,7 @@ function workerUnits(workspace, manifest, background) {
|
|
|
2611
2604
|
}
|
|
2612
2605
|
return units.sort((a, b) => a.name.localeCompare(b.name));
|
|
2613
2606
|
}
|
|
2607
|
+
/** Whether `file` is inside `dir`. */
|
|
2614
2608
|
function isUnder(file, dir) {
|
|
2615
2609
|
const rel = relative(dir, file);
|
|
2616
2610
|
return rel !== "" && !rel.startsWith("..") && !isAbsolute(rel) ? !rel.startsWith(`..${sep}`) : false;
|
|
@@ -5264,6 +5258,7 @@ async function reconcile(options) {
|
|
|
5264
5258
|
cache: options.cache,
|
|
5265
5259
|
extraContainers: options.extraContainers,
|
|
5266
5260
|
...options.fakes ? { fakes: options.fakes } : {},
|
|
5261
|
+
...options.credentialFakes ? { credentialFakes: options.credentialFakes } : {},
|
|
5267
5262
|
...options.edge === void 0 ? {} : { edge: options.edge }
|
|
5268
5263
|
});
|
|
5269
5264
|
const exports = stage !== TEST_STAGE;
|
|
@@ -5503,7 +5498,8 @@ async function derivedContainers(workspace, stage, manifest) {
|
|
|
5503
5498
|
*/
|
|
5504
5499
|
const FAKE_ENV = "GKM_FAKE";
|
|
5505
5500
|
/**
|
|
5506
|
-
* Whether
|
|
5501
|
+
* Whether third parties are faked — external APIs, and credentials with a
|
|
5502
|
+
* fake: always for `gkm test`, and for `gkm dev`
|
|
5507
5503
|
* only when asked — by `--fake`, or by the workspace that started this app
|
|
5508
5504
|
* with it. Never for anything acting on a deployed stage.
|
|
5509
5505
|
*/
|
|
@@ -5524,7 +5520,9 @@ async function reconcileWorkspace(workspace, options) {
|
|
|
5524
5520
|
runnables
|
|
5525
5521
|
});
|
|
5526
5522
|
const manifest = options.manifest ?? discovered;
|
|
5527
|
-
const
|
|
5523
|
+
const faked = fakesApply(options.stage, options.fake);
|
|
5524
|
+
const fakes = faked ? await readFakes(workspace.root, manifest) : {};
|
|
5525
|
+
const credentialFakes = faked ? await readCredentialFakes(workspace.root, manifest) : {};
|
|
5528
5526
|
const { credentials } = await loadLocalCredentials(workspace);
|
|
5529
5527
|
const result = await reconcile({
|
|
5530
5528
|
credentials,
|
|
@@ -5538,7 +5536,8 @@ async function reconcileWorkspace(workspace, options) {
|
|
|
5538
5536
|
addresses: surfaceAddresses(workspace, manifest),
|
|
5539
5537
|
metroPorts: metroPorts(workspace, manifest),
|
|
5540
5538
|
fakes,
|
|
5541
|
-
|
|
5539
|
+
credentialFakes,
|
|
5540
|
+
apps: (containers) => appServices(workspace, manifest, containers, credentials, runnables, fakes, credentialFakes),
|
|
5542
5541
|
...options.start === void 0 ? {} : { start: options.start },
|
|
5543
5542
|
...options.progress ? { progress: options.progress } : {}
|
|
5544
5543
|
});
|
|
@@ -5635,11 +5634,12 @@ function dockerfileOf(appName, path) {
|
|
|
5635
5634
|
* surface resolved to its `*.localhost` host on the edge's port, which the
|
|
5636
5635
|
* rewrite to the compose network then turned into an address nothing answers.
|
|
5637
5636
|
*/
|
|
5638
|
-
function localPlan(workspace, manifest, fakes = {}) {
|
|
5637
|
+
function localPlan(workspace, manifest, fakes = {}, credentialFakes = {}) {
|
|
5639
5638
|
return planFor(manifest, workspace.stages.local, provisionOrder(manifest), {
|
|
5640
5639
|
localStage: workspace.stages.local,
|
|
5641
5640
|
...backendsOf(workspace),
|
|
5642
5641
|
fakes,
|
|
5642
|
+
credentialFakes,
|
|
5643
5643
|
edge: false
|
|
5644
5644
|
});
|
|
5645
5645
|
}
|
|
@@ -5702,8 +5702,12 @@ function networkEnv(plan, options, hostOf = (container) => container) {
|
|
|
5702
5702
|
*
|
|
5703
5703
|
* One hop: a surface an app calls is reached over HTTP, so its URL is the
|
|
5704
5704
|
* app's business and its database is not. A site also gets the public
|
|
5705
|
-
* variant of each key its bundle inlines (`NEXT_PUBLIC_API_URL`)
|
|
5706
|
-
*
|
|
5705
|
+
* variant of each key its bundle inlines (`NEXT_PUBLIC_API_URL`).
|
|
5706
|
+
*
|
|
5707
|
+
* A surface's process runs its own endpoints and nothing else. A Worker's
|
|
5708
|
+
* crons, queue consumers and subscribers run in the worker's own process
|
|
5709
|
+
* (`workerEnvKeys`), so no surface is handed a worker's edges — however its
|
|
5710
|
+
* endpoints were found.
|
|
5707
5711
|
*
|
|
5708
5712
|
* `undefined` for an app no declaration describes, which gets nothing but its
|
|
5709
5713
|
* port.
|
|
@@ -5717,20 +5721,7 @@ function appEnvKeys(manifest, appName, runnables = {}) {
|
|
|
5717
5721
|
...declaration.requires ?? [],
|
|
5718
5722
|
...declaration.kind === "rest-api" ? declaration.endpoints.flatMap((endpoint) => endpoint.requires ?? []) : []
|
|
5719
5723
|
]);
|
|
5720
|
-
|
|
5721
|
-
if (declaration.kind === "rest-api" && declaration.endpoints.length === 0) {
|
|
5722
|
-
const runsWorkers = Object.values(manifest).some((other) => other.kind === "worker");
|
|
5723
|
-
for (const [otherId, other] of Object.entries(manifest)) {
|
|
5724
|
-
if (other.kind !== "worker") continue;
|
|
5725
|
-
edges.push(...dependenciesOf(other).map((edge) => edge.target), ...runnables[otherId] ?? []);
|
|
5726
|
-
keys.add("EVENT_PUBLISHER_CONNECTION_STRING");
|
|
5727
|
-
}
|
|
5728
|
-
if (runsWorkers) for (const other of Object.values(manifest)) {
|
|
5729
|
-
if (other.kind !== "queue" && other.kind !== "topic") continue;
|
|
5730
|
-
for (const key of other.provides ?? []) keys.add(key);
|
|
5731
|
-
}
|
|
5732
|
-
}
|
|
5733
|
-
addEdgeKeys(manifest, edges, keys);
|
|
5724
|
+
addEdgeKeys(manifest, [...dependenciesOf(declaration).map((edge) => edge.target), ...runnables[id] ?? []], keys);
|
|
5734
5725
|
if (declaration.kind === "site" || declaration.kind === "mobile-app") {
|
|
5735
5726
|
for (const key of TELEMETRY_KEYS) keys.delete(key);
|
|
5736
5727
|
for (const key of Object.keys(publicEnvFor(declaration, manifest))) keys.add(key);
|
|
@@ -5739,10 +5730,9 @@ function appEnvKeys(manifest, appName, runnables = {}) {
|
|
|
5739
5730
|
}
|
|
5740
5731
|
/**
|
|
5741
5732
|
* The keys a Worker's own process reads: what the worker and everything built
|
|
5742
|
-
* from it declared an edge to
|
|
5743
|
-
*
|
|
5744
|
-
*
|
|
5745
|
-
* process that runs them is handed each carrier's.
|
|
5733
|
+
* from it declared an edge to — the queues its consumers drain and the topics
|
|
5734
|
+
* its subscribers are bound to among them (see `DiscoverOptions.runnables`) —
|
|
5735
|
+
* and the broker its crons schedule through.
|
|
5746
5736
|
*
|
|
5747
5737
|
* `undefined` when no worker has that id.
|
|
5748
5738
|
*/
|
|
@@ -5754,10 +5744,6 @@ function workerEnvKeys(manifest, workerId, runnables = {}) {
|
|
|
5754
5744
|
...declaration.requires ?? [],
|
|
5755
5745
|
"EVENT_PUBLISHER_CONNECTION_STRING"
|
|
5756
5746
|
]);
|
|
5757
|
-
for (const other of Object.values(manifest)) {
|
|
5758
|
-
if (other.kind !== "queue" && other.kind !== "topic") continue;
|
|
5759
|
-
for (const key of other.provides ?? []) keys.add(key);
|
|
5760
|
-
}
|
|
5761
5747
|
addEdgeKeys(manifest, [...dependenciesOf(declaration).map((edge) => edge.target), ...runnables[workerId] ?? []], keys);
|
|
5762
5748
|
return keys;
|
|
5763
5749
|
}
|
|
@@ -5781,8 +5767,8 @@ function addEdgeKeys(manifest, edges, keys) {
|
|
|
5781
5767
|
}
|
|
5782
5768
|
}
|
|
5783
5769
|
/** One compose service per app the workspace runs, behind the apps profile. */
|
|
5784
|
-
function appServices(workspace, manifest, containers, credentials, runnables = {}, fakes = {}) {
|
|
5785
|
-
const plan = localPlan(workspace, manifest, fakes);
|
|
5770
|
+
function appServices(workspace, manifest, containers, credentials, runnables = {}, fakes = {}, credentialFakes = {}) {
|
|
5771
|
+
const plan = localPlan(workspace, manifest, fakes, credentialFakes);
|
|
5786
5772
|
const derivation = {
|
|
5787
5773
|
project: workspace.name,
|
|
5788
5774
|
credentials,
|
|
@@ -7294,7 +7280,7 @@ async function createDnsProvider(options) {
|
|
|
7294
7280
|
});
|
|
7295
7281
|
}
|
|
7296
7282
|
if (provider === "godaddy") {
|
|
7297
|
-
const { GoDaddyProvider } = await import("./GoDaddyProvider-
|
|
7283
|
+
const { GoDaddyProvider } = await import("./GoDaddyProvider-CuPEbbjl.mjs");
|
|
7298
7284
|
return new GoDaddyProvider(options.godaddy ?? {});
|
|
7299
7285
|
}
|
|
7300
7286
|
if (provider === "cloudflare") throw new DnsProviderNotImplemented("cloudflare");
|
|
@@ -8143,6 +8129,6 @@ function reportPlannedSeeds(planned, log) {
|
|
|
8143
8129
|
for (const { folder, seeds } of planned) log(`🌱 ${folder}: would run ${seeds.length} (${seeds.join(", ")})`);
|
|
8144
8130
|
}
|
|
8145
8131
|
//#endregion
|
|
8146
|
-
export { devServicesUsed as $,
|
|
8132
|
+
export { devServicesUsed as $, workerUnits as $t, assertStageProvidersEnabled as A, isTelemetryKey as An, isPortAvailable as At, workerDockerfileOf as B, portKeys as Bn, maskPassword as Bt, setApplicationId as C, withRedisPassword as Cn, cacheBackendFor as Ct, DnsRecordsUnreadable as D, planFor as Dn, createCredentialsPreload as Dt, setPostgresBackupId as E, TELEMETRY_CONTAINER as En, storageBackendFor as Et, DockerPushFailed as F, EMULATOR_ACCESS_KEY_ID as Fn, isRemoteStore as Ft, CronGenerator as G, LOGS_SERVICE as Gn, imageLayout as Gt, workerBundleName as H, postgresImage as Hn, toEmbeddableSecrets as Ht, appDockerfile as I, hostFor as In, secretsStoreFor as It, DEV_SERVICES as J, stackLogs as Jn, detectPackageManager as Jt, validateImageRef as K, logsAccess as Kn, TURBO_VERSION as Kt, dockerCommand as L, DEFAULT_IMAGES as Ln, storeFromConfig as Lt, stageProviderNotes as M, surfaceClientTraced as Mn, loadPortState as Mt, PROVIDER_KINDS as N, telemetryOf as Nn, loadSecretsForApp as Nt, createDnsProvider as O, resourceName as On, createEntryWrapper as Ot, DockerBuildFailed as P, usesTelemetry as Pn, prepareEntryCredentials as Pt, assertDevServicesFlag as Q, resolveHost as Qn, isUnder as Qt, ensureDockerignore as R, describeServices as Rn, store_exports as Rt, recordRollback as S, stackRedis as Sn, composeFor as St, setGeneratedSecret as T, localRolePassword as Tn, providerOf as Tt, workerEntryDir as U, primaryPortKey as Un, withCustomSecret as Ut, WorkerGenerator as V, portsOf as Vn, storage_exports as Vt, QueueGenerator as W, LOCAL_LOGS_EMAIL as Wn, composeBuildPaths as Wt, ExternalServicesNotConfigured as X, NoDomainForStage as Xn, imageBuildCredentials as Xt, DevServicesNeedServerTarget as Y, withLogsPassword as Yn, findBuildRoot as Yt, STORAGE_KEY_PAIR as Z, isMainFrontendApp as Zn, isImageBuild as Zt, createComposeState as _, withGeneratedSecrets as _n, LEGACY_LOCAL_LOGIN as _t, dnsResources as a, postgresStatements as an, appEnvKeys as at, getGeneratedSecret as b, redisService as bn, pgClient as bt, describeActor as c, loadLocalCredentials as cn, workerEnvKeys as ct, extractSubdomain as d, readLocalCredentials as dn, constructGlobs as dt, applyBuckets as en, externalServices as et, findRootDomain as f, FileSecretsStore as fn, derivedContainers as ft, asDokployState as g, readKey as gn, forgetState as gt, verifyDnsRecords as h, projectKey as hn, LOCAL_CA_PATH as ht, dnsRecordResource as i, postgresDatabaseNames as in, suppliedOnly as it, provisionCommand as j, scopeTelemetryEnv as jn, loadEnvFiles as jt, StageProviderDisabled as k, appTelemetry as kn, findAvailablePort as kt, isCi as l, postgresRoleSlug as ln, FAKE_ENV as lt, orchestrateDns as m, keystoreProject as mn, workspace_exports as mt, reportDatabaseRuns as n, applyPostgres as nn, requiredStageKeys as nt, recordDnsChanges as o, quoteIdentifier as on, dockerfileOf as ot, normalizeDnsConfig as p, getKeyPath as pn, reconcileWorkspace as pt, AllowDevServicesTakesNoValue as q, logsService as qn, WORKER_PORT as qt, reportPlannedSeeds as r, bucketPolicies as rn, stageServiceDeclarations as rt, currentActor as s, LOCAL_RABBITMQ_USER as sn, networkEnv as st, DeploySeedsFailed as t, applyPolicies as tn, reportDevServices as tt, DeployJournal as u, postgresSuperuser as un, backendsOf as ut, createEmptyState as v, REDIS_SERVICE as vn, ensurePostgresLogin as vt, setBackupState as w, envFor as wn, eventsBackendFor as wt, recordRelease as x, runsRedis as xn, CLUSTER_DATABASE as xt, getBackupState as y, STACK_CACHE as yn, bucketClient as yt, workerDockerfile as z, fakeKey as zn, initStageSecrets as zt };
|
|
8147
8133
|
|
|
8148
|
-
//# sourceMappingURL=seeds-
|
|
8134
|
+
//# sourceMappingURL=seeds-DZGuovWF.mjs.map
|