@geekmidas/cli 10.0.0-alpha.102 → 10.0.0-alpha.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{GoDaddyProvider-u9MF-Dqk.mjs → GoDaddyProvider-8gNDqaml.mjs} +2 -2
- package/dist/{GoDaddyProvider-u9MF-Dqk.mjs.map → GoDaddyProvider-8gNDqaml.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-BOuLf_Py.cjs → GoDaddyProvider-JITjarl9.cjs} +2 -2
- package/dist/{GoDaddyProvider-BOuLf_Py.cjs.map → GoDaddyProvider-JITjarl9.cjs.map} +1 -1
- package/dist/{LegacyStateStore-vhkx7Bbq.mjs → LegacyStateStore-C0WnyYy_.mjs} +3 -3
- package/dist/{LegacyStateStore-vhkx7Bbq.mjs.map → LegacyStateStore-C0WnyYy_.mjs.map} +1 -1
- package/dist/{LegacyStateStore-DWmHGNgH.cjs → LegacyStateStore-D-mcT2Z7.cjs} +3 -3
- package/dist/{LegacyStateStore-DWmHGNgH.cjs.map → LegacyStateStore-D-mcT2Z7.cjs.map} +1 -1
- package/dist/{LocalStateStore-BVKDADoG.cjs → LocalStateStore-CUFfdu-v.cjs} +2 -2
- package/dist/{LocalStateStore-BVKDADoG.cjs.map → LocalStateStore-CUFfdu-v.cjs.map} +1 -1
- package/dist/{LocalStateStore-FVsg0UoM.mjs → LocalStateStore-C_8QWB2r.mjs} +2 -2
- package/dist/{LocalStateStore-FVsg0UoM.mjs.map → LocalStateStore-C_8QWB2r.mjs.map} +1 -1
- package/dist/{S3StateStore-B8seZUsw.mjs → S3StateStore-B0Vy19db.mjs} +2 -2
- package/dist/{S3StateStore-B8seZUsw.mjs.map → S3StateStore-B0Vy19db.mjs.map} +1 -1
- package/dist/{S3StateStore-B_2gE9Un.cjs → S3StateStore-DIJ6CCv_.cjs} +2 -2
- package/dist/{S3StateStore-B_2gE9Un.cjs.map → S3StateStore-DIJ6CCv_.cjs.map} +1 -1
- package/dist/{SSMStateStore-CTDEI5Bi.cjs → SSMStateStore-D577um0e.cjs} +2 -2
- package/dist/{SSMStateStore-CTDEI5Bi.cjs.map → SSMStateStore-D577um0e.cjs.map} +1 -1
- package/dist/{SSMStateStore-DGTbBomw.mjs → SSMStateStore-DgBlEqYO.mjs} +2 -2
- package/dist/{SSMStateStore-DGTbBomw.mjs.map → SSMStateStore-DgBlEqYO.mjs.map} +1 -1
- package/dist/{SubscriberGenerator-BlIOdbi-.cjs → SubscriberGenerator-DmPM_3c5.cjs} +91 -10
- package/dist/SubscriberGenerator-DmPM_3c5.cjs.map +1 -0
- package/dist/{SubscriberGenerator-1-IsjIwF.mjs → SubscriberGenerator-YK-7ewmi.mjs} +80 -11
- package/dist/SubscriberGenerator-YK-7ewmi.mjs.map +1 -0
- package/dist/{add-CIbhGE5v.mjs → add-BJJKhUnO.mjs} +3 -3
- package/dist/{add-CIbhGE5v.mjs.map → add-BJJKhUnO.mjs.map} +1 -1
- package/dist/{add-BB2tLVc2.cjs → add-D97HfZ7z.cjs} +3 -3
- package/dist/{add-BB2tLVc2.cjs.map → add-D97HfZ7z.cjs.map} +1 -1
- package/dist/{bundler-Ba6BER3w.cjs → bundler-CtEQAnym.cjs} +5 -5
- package/dist/{bundler-Ba6BER3w.cjs.map → bundler-CtEQAnym.cjs.map} +1 -1
- package/dist/{bundler-CHjRYVKh.mjs → bundler-CzbrMpDf.mjs} +5 -5
- package/dist/{bundler-CHjRYVKh.mjs.map → bundler-CzbrMpDf.mjs.map} +1 -1
- package/dist/{cli-CtlqYRlN.cjs → cli-CIv8PA-v.cjs} +2 -2
- package/dist/{cli-CtlqYRlN.cjs.map → cli-CIv8PA-v.cjs.map} +1 -1
- package/dist/{cli-DOlkhrsh.mjs → cli-D_zrFs9-.mjs} +2 -2
- package/dist/{cli-DOlkhrsh.mjs.map → cli-D_zrFs9-.mjs.map} +1 -1
- package/dist/{compose-uAWLy-nR.cjs → compose-BviikvXq.cjs} +5 -5
- package/dist/{compose-uAWLy-nR.cjs.map → compose-BviikvXq.cjs.map} +1 -1
- package/dist/{compose-FDP_TaFt.mjs → compose-DtPhKs0u.mjs} +5 -5
- package/dist/{compose-FDP_TaFt.mjs.map → compose-DtPhKs0u.mjs.map} +1 -1
- package/dist/deploy/public.cjs +6 -6
- package/dist/deploy/public.mjs +6 -6
- package/dist/{deploy-DgZxTnGS.mjs → deploy-DyPt41Oq.mjs} +5 -5
- package/dist/{deploy-DgZxTnGS.mjs.map → deploy-DyPt41Oq.mjs.map} +1 -1
- package/dist/{deploy-DUUc3jV9.cjs → deploy-cv0i1yFo.cjs} +5 -5
- package/dist/{deploy-DUUc3jV9.cjs.map → deploy-cv0i1yFo.cjs.map} +1 -1
- package/dist/{dns-DDDCfj75.mjs → dns-B-wqZiyQ.mjs} +2 -2
- package/dist/{dns-DDDCfj75.mjs.map → dns-B-wqZiyQ.mjs.map} +1 -1
- package/dist/{dns-DnE_02tB.cjs → dns-_rxfINeq.cjs} +2 -2
- package/dist/{dns-DnE_02tB.cjs.map → dns-_rxfINeq.cjs.map} +1 -1
- package/dist/{dokploy-DBlGSdnb.mjs → dokploy-BJQ9HjVv.mjs} +2 -2
- package/dist/{dokploy-DBlGSdnb.mjs.map → dokploy-BJQ9HjVv.mjs.map} +1 -1
- package/dist/{dokploy-BrfdeVEu.cjs → dokploy-DSvw-l5b.cjs} +2 -2
- package/dist/{dokploy-BrfdeVEu.cjs.map → dokploy-DSvw-l5b.cjs.map} +1 -1
- package/dist/{drivers-BLU1fNs_.cjs → drivers-DEDL8vPE.cjs} +2 -2
- package/dist/{drivers-BLU1fNs_.cjs.map → drivers-DEDL8vPE.cjs.map} +1 -1
- package/dist/{drivers-C08LL4E8.mjs → drivers-OXhPkaNB.mjs} +2 -2
- package/dist/{drivers-C08LL4E8.mjs.map → drivers-OXhPkaNB.mjs.map} +1 -1
- package/dist/{encryption-DC8zsh2s.mjs → encryption-BUAZ3OEJ.mjs} +2 -2
- package/dist/{encryption-DC8zsh2s.mjs.map → encryption-BUAZ3OEJ.mjs.map} +1 -1
- package/dist/{encryption-CeW3xpE1.cjs → encryption-UgYs2YYM.cjs} +2 -2
- package/dist/{encryption-CeW3xpE1.cjs.map → encryption-UgYs2YYM.cjs.map} +1 -1
- package/dist/{engine-BXxvcxVq.cjs → engine-Blx6G12-.cjs} +3 -3
- package/dist/{engine-BXxvcxVq.cjs.map → engine-Blx6G12-.cjs.map} +1 -1
- package/dist/{engine-z0UClzE9.mjs → engine-VnbN4VnX.mjs} +3 -3
- package/dist/{engine-z0UClzE9.mjs.map → engine-VnbN4VnX.mjs.map} +1 -1
- package/dist/{github-DWoFgxtl.cjs → github-C-L3qfYZ.cjs} +4 -4
- package/dist/{github-DWoFgxtl.cjs.map → github-C-L3qfYZ.cjs.map} +1 -1
- package/dist/{github-DJgO5z37.mjs → github-D2uJ32Af.mjs} +4 -4
- package/dist/{github-DJgO5z37.mjs.map → github-D2uJ32Af.mjs.map} +1 -1
- package/dist/index.cjs +54 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +54 -50
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-DIVxoju6.mjs → migrate-BFH52jlU.mjs} +2 -2
- package/dist/{migrate-DIVxoju6.mjs.map → migrate-BFH52jlU.mjs.map} +1 -1
- package/dist/{migrate-CWSCkzu3.cjs → migrate-DdociPvx.cjs} +2 -2
- package/dist/{migrate-CWSCkzu3.cjs.map → migrate-DdociPvx.cjs.map} +1 -1
- package/dist/{migrate-DoI2hWNH.mjs → migrate-Dqjr7rfs.mjs} +2 -2
- package/dist/{migrate-DoI2hWNH.mjs.map → migrate-Dqjr7rfs.mjs.map} +1 -1
- package/dist/{migrate-B1OjPwUY.cjs → migrate-DxAFe2EV.cjs} +2 -2
- package/dist/{migrate-B1OjPwUY.cjs.map → migrate-DxAFe2EV.cjs.map} +1 -1
- package/dist/{ready-CzHNHhI6.mjs → ready-CuSU8Ap0.mjs} +3 -3
- package/dist/{ready-CzHNHhI6.mjs.map → ready-CuSU8Ap0.mjs.map} +1 -1
- package/dist/{ready-BtxiI7Qb.cjs → ready-D38XpZ0L.cjs} +3 -3
- package/dist/{ready-BtxiI7Qb.cjs.map → ready-D38XpZ0L.cjs.map} +1 -1
- package/dist/{resolve-pmXIdi9j.mjs → resolve-BGgwxfCz.mjs} +3 -3
- package/dist/{resolve-pmXIdi9j.mjs.map → resolve-BGgwxfCz.mjs.map} +1 -1
- package/dist/{resolve-WAwYMN6q.cjs → resolve-aqhkZfDI.cjs} +3 -3
- package/dist/{resolve-WAwYMN6q.cjs.map → resolve-aqhkZfDI.cjs.map} +1 -1
- package/dist/{rollback-CLtwbByg.mjs → rollback-DUbUQeoz.mjs} +4 -4
- package/dist/{rollback-CLtwbByg.mjs.map → rollback-DUbUQeoz.mjs.map} +1 -1
- package/dist/{rollback-Cz8F9xSB.cjs → rollback-qk3-knJ7.cjs} +4 -4
- package/dist/{rollback-Cz8F9xSB.cjs.map → rollback-qk3-knJ7.cjs.map} +1 -1
- package/dist/{seeds-BHKUAExH.mjs → seeds-Cx8NmuQj.mjs} +13 -6
- package/dist/seeds-Cx8NmuQj.mjs.map +1 -0
- package/dist/{seeds-Dk4WHhjU.cjs → seeds-a1H3kuqu.cjs} +13 -6
- package/dist/seeds-a1H3kuqu.cjs.map +1 -0
- package/dist/{sniffer-CaXl51vO.mjs → sniffer-Bt2H-BZ_.mjs} +6 -6
- package/dist/{sniffer-CaXl51vO.mjs.map → sniffer-Bt2H-BZ_.mjs.map} +1 -1
- package/dist/{sniffer-BjBZ01PE.cjs → sniffer-DxYAi7bz.cjs} +6 -6
- package/dist/{sniffer-BjBZ01PE.cjs.map → sniffer-DxYAi7bz.cjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- package/package.json +15 -15
- package/dist/SubscriberGenerator-1-IsjIwF.mjs.map +0 -1
- package/dist/SubscriberGenerator-BlIOdbi-.cjs.map +0 -1
- package/dist/seeds-BHKUAExH.mjs.map +0 -1
- package/dist/seeds-Dk4WHhjU.cjs.map +0 -1
|
@@ -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-YK-7ewmi.mjs";
|
|
7
7
|
import { n as deployIdentity } from "./identity-CBXr4wNi.mjs";
|
|
8
8
|
import { a as startTelemetryCode, n as runtimeFor, s as writeTelemetryModule, u as telemetryArgs } from "./EndpointGenerator-Br97xgs_.mjs";
|
|
9
9
|
import { d as output, r as discover, u as ConstructGenerator } from "./discover-kziEht4W.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-BGgwxfCz.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";
|
|
@@ -1039,6 +1039,7 @@ function planFor(manifest, stage, order, options = {}) {
|
|
|
1039
1039
|
credentials: fake.credentials
|
|
1040
1040
|
} } : {},
|
|
1041
1041
|
...declaration.kind === "external-api" && !fake ? { url: declaration.url } : {},
|
|
1042
|
+
...declaration.kind === "credential" && options.credentialFakes?.[id] !== void 0 ? { fakeCredentials: options.credentialFakes[id] } : {},
|
|
1042
1043
|
..."of" in declaration && !detached ? { of: declaration.of } : {},
|
|
1043
1044
|
..."schema" in declaration && declaration.schema ? { schema: declaration.schema } : {},
|
|
1044
1045
|
..."version" in declaration && declaration.version ? { version: declaration.version } : {},
|
|
@@ -1199,6 +1200,7 @@ function envFor(plan, options) {
|
|
|
1199
1200
|
if (owner) env[provideKey(resource.id, "ownerUrl")] = owner;
|
|
1200
1201
|
}
|
|
1201
1202
|
if (resource.kind === "external-api" && url && resource.fake) env[provideKey(resource.id, "credentials")] = resource.fake.credentials;
|
|
1203
|
+
if (resource.kind === "credential" && resource.fakeCredentials !== void 0) env[resource.envKey] = resource.fakeCredentials;
|
|
1202
1204
|
if (resource.kind === "telemetry" && url) {
|
|
1203
1205
|
const login = options.credentials.logs;
|
|
1204
1206
|
Object.assign(env, telemetryEnv({
|
|
@@ -5264,6 +5266,7 @@ async function reconcile(options) {
|
|
|
5264
5266
|
cache: options.cache,
|
|
5265
5267
|
extraContainers: options.extraContainers,
|
|
5266
5268
|
...options.fakes ? { fakes: options.fakes } : {},
|
|
5269
|
+
...options.credentialFakes ? { credentialFakes: options.credentialFakes } : {},
|
|
5267
5270
|
...options.edge === void 0 ? {} : { edge: options.edge }
|
|
5268
5271
|
});
|
|
5269
5272
|
const exports = stage !== TEST_STAGE;
|
|
@@ -5503,7 +5506,8 @@ async function derivedContainers(workspace, stage, manifest) {
|
|
|
5503
5506
|
*/
|
|
5504
5507
|
const FAKE_ENV = "GKM_FAKE";
|
|
5505
5508
|
/**
|
|
5506
|
-
* Whether
|
|
5509
|
+
* Whether third parties are faked — external APIs, and credentials with a
|
|
5510
|
+
* fake: always for `gkm test`, and for `gkm dev`
|
|
5507
5511
|
* only when asked — by `--fake`, or by the workspace that started this app
|
|
5508
5512
|
* with it. Never for anything acting on a deployed stage.
|
|
5509
5513
|
*/
|
|
@@ -5524,7 +5528,9 @@ async function reconcileWorkspace(workspace, options) {
|
|
|
5524
5528
|
runnables
|
|
5525
5529
|
});
|
|
5526
5530
|
const manifest = options.manifest ?? discovered;
|
|
5527
|
-
const
|
|
5531
|
+
const faked = fakesApply(options.stage, options.fake);
|
|
5532
|
+
const fakes = faked ? await readFakes(workspace.root, manifest) : {};
|
|
5533
|
+
const credentialFakes = faked ? await readCredentialFakes(workspace.root, manifest) : {};
|
|
5528
5534
|
const { credentials } = await loadLocalCredentials(workspace);
|
|
5529
5535
|
const result = await reconcile({
|
|
5530
5536
|
credentials,
|
|
@@ -5538,6 +5544,7 @@ async function reconcileWorkspace(workspace, options) {
|
|
|
5538
5544
|
addresses: surfaceAddresses(workspace, manifest),
|
|
5539
5545
|
metroPorts: metroPorts(workspace, manifest),
|
|
5540
5546
|
fakes,
|
|
5547
|
+
credentialFakes,
|
|
5541
5548
|
apps: (containers) => appServices(workspace, manifest, containers, credentials, runnables, fakes),
|
|
5542
5549
|
...options.start === void 0 ? {} : { start: options.start },
|
|
5543
5550
|
...options.progress ? { progress: options.progress } : {}
|
|
@@ -7294,7 +7301,7 @@ async function createDnsProvider(options) {
|
|
|
7294
7301
|
});
|
|
7295
7302
|
}
|
|
7296
7303
|
if (provider === "godaddy") {
|
|
7297
|
-
const { GoDaddyProvider } = await import("./GoDaddyProvider-
|
|
7304
|
+
const { GoDaddyProvider } = await import("./GoDaddyProvider-8gNDqaml.mjs");
|
|
7298
7305
|
return new GoDaddyProvider(options.godaddy ?? {});
|
|
7299
7306
|
}
|
|
7300
7307
|
if (provider === "cloudflare") throw new DnsProviderNotImplemented("cloudflare");
|
|
@@ -8145,4 +8152,4 @@ function reportPlannedSeeds(planned, log) {
|
|
|
8145
8152
|
//#endregion
|
|
8146
8153
|
export { devServicesUsed as $, applyBuckets as $t, assertStageProvidersEnabled as A, scopeTelemetryEnv as An, isPortAvailable as At, workerDockerfileOf as B, portsOf as Bn, maskPassword as Bt, setApplicationId as C, envFor as Cn, cacheBackendFor as Ct, DnsRecordsUnreadable as D, resourceName as Dn, createCredentialsPreload as Dt, setPostgresBackupId as E, planFor as En, storageBackendFor as Et, DockerPushFailed as F, hostFor as Fn, isRemoteStore as Ft, CronGenerator as G, logsAccess as Gn, imageLayout as Gt, workerBundleName as H, primaryPortKey as Hn, toEmbeddableSecrets as Ht, appDockerfile as I, DEFAULT_IMAGES as In, secretsStoreFor as It, DEV_SERVICES as J, withLogsPassword as Jn, detectPackageManager as Jt, validateImageRef as K, logsService as Kn, TURBO_VERSION as Kt, dockerCommand as L, describeServices as Ln, storeFromConfig as Lt, stageProviderNotes as M, telemetryOf as Mn, loadPortState as Mt, PROVIDER_KINDS as N, usesTelemetry as Nn, loadSecretsForApp as Nt, createDnsProvider as O, appTelemetry as On, createEntryWrapper as Ot, DockerBuildFailed as P, EMULATOR_ACCESS_KEY_ID as Pn, prepareEntryCredentials as Pt, assertDevServicesFlag as Q, workerUnits as Qt, ensureDockerignore as R, fakeKey as Rn, store_exports as Rt, recordRollback as S, withRedisPassword as Sn, composeFor as St, setGeneratedSecret as T, TELEMETRY_CONTAINER as Tn, providerOf as Tt, workerEntryDir as U, LOCAL_LOGS_EMAIL as Un, withCustomSecret as Ut, WorkerGenerator as V, postgresImage as Vn, storage_exports as Vt, QueueGenerator as W, LOGS_SERVICE as Wn, composeBuildPaths as Wt, ExternalServicesNotConfigured as X, isMainFrontendApp as Xn, imageBuildCredentials as Xt, DevServicesNeedServerTarget as Y, NoDomainForStage as Yn, findBuildRoot as Yt, STORAGE_KEY_PAIR as Z, resolveHost as Zn, isImageBuild as Zt, createComposeState as _, REDIS_SERVICE as _n, LEGACY_LOCAL_LOGIN as _t, dnsResources as a, quoteIdentifier as an, appEnvKeys as at, getGeneratedSecret as b, runsRedis as bn, pgClient as bt, describeActor as c, postgresRoleSlug as cn, workerEnvKeys as ct, extractSubdomain as d, FileSecretsStore as dn, constructGlobs as dt, applyPolicies as en, externalServices as et, findRootDomain as f, getKeyPath as fn, derivedContainers as ft, asDokployState as g, withGeneratedSecrets as gn, forgetState as gt, verifyDnsRecords as h, readKey as hn, LOCAL_CA_PATH as ht, dnsRecordResource as i, postgresStatements as in, suppliedOnly as it, provisionCommand as j, surfaceClientTraced as jn, loadEnvFiles as jt, StageProviderDisabled as k, isTelemetryKey as kn, findAvailablePort as kt, isCi as l, postgresSuperuser as ln, FAKE_ENV as lt, orchestrateDns as m, projectKey as mn, workspace_exports as mt, reportDatabaseRuns as n, bucketPolicies as nn, requiredStageKeys as nt, recordDnsChanges as o, LOCAL_RABBITMQ_USER as on, dockerfileOf as ot, normalizeDnsConfig as p, keystoreProject as pn, reconcileWorkspace as pt, AllowDevServicesTakesNoValue as q, stackLogs as qn, WORKER_PORT as qt, reportPlannedSeeds as r, postgresDatabaseNames as rn, stageServiceDeclarations as rt, currentActor as s, loadLocalCredentials as sn, networkEnv as st, DeploySeedsFailed as t, applyPostgres as tn, reportDevServices as tt, DeployJournal as u, readLocalCredentials as un, backendsOf as ut, createEmptyState as v, STACK_CACHE as vn, ensurePostgresLogin as vt, setBackupState as w, localRolePassword as wn, eventsBackendFor as wt, recordRelease as x, stackRedis as xn, CLUSTER_DATABASE as xt, getBackupState as y, redisService as yn, bucketClient as yt, workerDockerfile as z, portKeys as zn, initStageSecrets as zt };
|
|
8147
8154
|
|
|
8148
|
-
//# sourceMappingURL=seeds-
|
|
8155
|
+
//# sourceMappingURL=seeds-Cx8NmuQj.mjs.map
|