@wildo-ai/wildo-cli 1.1.15 → 1.1.16
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/src/commands/context/journey.command.d.ts.map +1 -1
- package/dist/src/commands/context/journey.command.js +12 -0
- package/dist/src/commands/context/journey.command.js.map +1 -1
- package/dist/src/commands/creation/drive.command.d.ts.map +1 -1
- package/dist/src/commands/creation/drive.command.js +2 -1
- package/dist/src/commands/creation/drive.command.js.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts +44 -0
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js +74 -3
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/providers/grant-export.command.d.ts +16 -0
- package/dist/src/commands/providers/grant-export.command.d.ts.map +1 -0
- package/dist/src/commands/providers/grant-export.command.js +78 -0
- package/dist/src/commands/providers/grant-export.command.js.map +1 -0
- package/dist/src/commands/providers/grant-import.command.d.ts +15 -0
- package/dist/src/commands/providers/grant-import.command.d.ts.map +1 -0
- package/dist/src/commands/providers/grant-import.command.js +78 -0
- package/dist/src/commands/providers/grant-import.command.js.map +1 -0
- package/dist/src/kernel/command-runner.d.ts.map +1 -1
- package/dist/src/kernel/command-runner.js +4 -6
- package/dist/src/kernel/command-runner.js.map +1 -1
- package/dist/src/kernel/hooks.d.ts.map +1 -1
- package/dist/src/kernel/hooks.js +2 -1
- package/dist/src/kernel/hooks.js.map +1 -1
- package/dist/src/kernel/json-document-output.d.ts +7 -0
- package/dist/src/kernel/json-document-output.d.ts.map +1 -1
- package/dist/src/kernel/json-document-output.js +8 -0
- package/dist/src/kernel/json-document-output.js.map +1 -1
- package/dist/src/kernel/types.d.ts +8 -0
- package/dist/src/kernel/types.d.ts.map +1 -1
- package/dist/src/kernel/types.js.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts +24 -6
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js +46 -13
- package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.js.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.js +7 -1
- package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts +13 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.js +32 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/environment-provider-configurations.service.d.ts +7 -0
- package/dist/src/services/application/environment-provider-configurations.service.d.ts.map +1 -1
- package/dist/src/services/application/environment-provider-configurations.service.js +1 -1
- package/dist/src/services/application/environment-provider-configurations.service.js.map +1 -1
- package/dist/src/services/application/local-tunnel.service.d.ts.map +1 -1
- package/dist/src/services/application/local-tunnel.service.js +2 -1
- package/dist/src/services/application/local-tunnel.service.js.map +1 -1
- package/dist/src/services/companion/companion-client.service.d.ts +17 -0
- package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client.service.js +21 -0
- package/dist/src/services/companion/companion-client.service.js.map +1 -1
- package/dist/src/services/companion/creation-drive.service.d.ts +18 -0
- package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-drive.service.js +70 -1
- package/dist/src/services/companion/creation-drive.service.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +10 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js +24 -10
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts.map +1 -1
- package/dist/src/services/deployment/framework-pod-network-membership.js +5 -0
- package/dist/src/services/deployment/framework-pod-network-membership.js.map +1 -1
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts +43 -4
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.js +116 -9
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.js.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.d.ts +4 -3
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.js +4 -3
- package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
- package/dist/src/services/framework/package-install.service.d.ts +7 -0
- package/dist/src/services/framework/package-install.service.d.ts.map +1 -1
- package/dist/src/services/framework/package-install.service.js +8 -1
- package/dist/src/services/framework/package-install.service.js.map +1 -1
- package/dist/src/services/registry/application-provider-connection.service.d.ts +16 -1
- package/dist/src/services/registry/application-provider-connection.service.d.ts.map +1 -1
- package/dist/src/services/registry/application-provider-connection.service.js +23 -0
- package/dist/src/services/registry/application-provider-connection.service.js.map +1 -1
- package/dist/src/services/registry/provider-grant-transfer.service.d.ts +48 -0
- package/dist/src/services/registry/provider-grant-transfer.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-grant-transfer.service.js +144 -0
- package/dist/src/services/registry/provider-grant-transfer.service.js.map +1 -0
- package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.js +10 -3
- package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +19 -19
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +2 -0
- package/templates/saas/i18n/email/system/remote-agent-task-updated/labels.en.ts +11 -0
- package/templates/saas/i18n/email/system/remote-agent-task-updated/template.tsx +56 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.en.ts +61 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.ts +61 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +5 -4
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/package.json.hbs +1 -1
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/scripts/substitute-api-origin.mjs +97 -32
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +7 -6
- package/wildo-framework.info.json +1 -1
|
@@ -597,14 +597,23 @@ export declare class AppBootstrapService {
|
|
|
597
597
|
*/
|
|
598
598
|
private static fetchDeclaredRuntimePrincipalCredentials;
|
|
599
599
|
/**
|
|
600
|
-
*
|
|
600
|
+
* Read an application-authored configuration as the working tree holds it NOW: `wildo.saas.config.ts`, a minion's or
|
|
601
|
+
* a worker's own configuration, the authoritative backend config.
|
|
601
602
|
*
|
|
602
|
-
*
|
|
603
|
-
*
|
|
604
|
-
*
|
|
605
|
-
*
|
|
606
|
-
*
|
|
603
|
+
* Every env-projection read in this service goes through here, and none through a bare `loadConfig`, because jiti's
|
|
604
|
+
* module cache is PROCESS-WIDE: `wildo local dev` regenerates the runtimes' env files in its own long-lived process
|
|
605
|
+
* whenever the declaration changes, and a cached read answers with the file as that process first evaluated it.
|
|
606
|
+
* {@link AppRuntimeTargetsService.resolve} reads the declaration fresh (#3985), so the target, and the identities
|
|
607
|
+
* apps-manager mints from it, already knew a runtime declared later; these builders did not. On reference run
|
|
608
|
+
* 44255624884 five minions and a worker declared after the stack started were minted, then given no `.env`
|
|
609
|
+
* ("0 worker, 0 minion target(s)"), and each minion refused its unset `APPLICATION_ENV` about 150 times.
|
|
610
|
+
*
|
|
611
|
+
* What a fresh read costs depends on how the file's framework imports are evaluated: see
|
|
612
|
+
* {@link RUNTIME_DECLARATION_EVALUATION}, which the declaration and runtime-configuration reads pass. The backend
|
|
613
|
+
* config keeps the loader's own inference (`evaluation` omitted): it may define zod schemas of its own, which is the
|
|
614
|
+
* case that evaluation mode does not cover.
|
|
607
615
|
*/
|
|
616
|
+
private static readAuthoredConfig;
|
|
608
617
|
/**
|
|
609
618
|
* Degraded-mode counterpart of {@link requireRuntimePrincipalCredentials}.
|
|
610
619
|
*
|
|
@@ -617,6 +626,15 @@ export declare class AppBootstrapService {
|
|
|
617
626
|
* the application backend's identity for a principal's.
|
|
618
627
|
*/
|
|
619
628
|
private static resolveRuntimePrincipalCredentialsOrSkip;
|
|
629
|
+
/**
|
|
630
|
+
* A declared runtime's own credentials, or a hard failure.
|
|
631
|
+
*
|
|
632
|
+
* Deliberately NO fallback to `prepared.bootstrapCredentials`. A fallback here
|
|
633
|
+
* would hand the runtime the application backend's identity and the sync would
|
|
634
|
+
* report success — reintroducing F11 silently, at the one seam built to close
|
|
635
|
+
* it. A missing entry means preparation and the declaration disagree, which is
|
|
636
|
+
* a bug to surface, not to paper over.
|
|
637
|
+
*/
|
|
620
638
|
private static requireRuntimePrincipalCredentials;
|
|
621
639
|
static buildApplicationBackendTargets(input: ApplicationEnvProjectionInput): Promise<ApplicationBackendEnvTarget[]>;
|
|
622
640
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-bootstrap.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/app-bootstrap.service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAmB,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAOL,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAE/B,KAAK,mCAAmC,EAYxC,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,EAItC,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAC1C,KAAK,4BAA4B,EAQjC,KAAK,oCAAoC,EACzC,KAAK,0CAA0C,EAC/C,KAAK,6CAA6C,EAClD,KAAK,kCAAkC,EAGvC,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAMlB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EAWvC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,
|
|
1
|
+
{"version":3,"file":"app-bootstrap.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/app-bootstrap.service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAmB,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAOL,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAE/B,KAAK,mCAAmC,EAYxC,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,EAItC,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAC1C,KAAK,4BAA4B,EAQjC,KAAK,oCAAoC,EACzC,KAAK,0CAA0C,EAC/C,KAAK,6CAA6C,EAClD,KAAK,kCAAkC,EAGvC,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAMlB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EAWvC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EA4BvC,KAAK,2BAA2B,EAChC,cAAc,EAEd,uBAAuB,EACvB,yBAAyB,EACzB,KAAK,kBAAkB,EACxB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AACjG,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAE5G,OAAO,KAAK,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,mCAAmC,EACnC,4BAA4B,EAC5B,0BAA0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AAQ,EAAE,MAAM,CAAC;QACjB,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACtC,QAAQ,CAAC,EAAE,6BAA6B,CAAC;KAC1C,GAAG,OAAO,CAAC,mCAAmC,EAAE,CAAC;IAiHlD;;;;;;;OAOG;IACH,MAAM,CAAC,kCAAkC,CAAC,KAAK,EAAE;QAC/C,GAAG,EAAE,gCAAgC,CAAC;QACtC,MAAM,EAAE,qBAAqB,CAAC;QAC9B,QAAQ,EAAE,MAAM,CAAC;KAClB,GAAG,4BAA4B,EAAE;CAoBnC"}
|
|
@@ -2,7 +2,7 @@ import { devCompanionRuntimeEndpointKey } from '../../services/environment/platf
|
|
|
2
2
|
import { existsSync, readFileSync } from 'fs';
|
|
3
3
|
import { isAbsolute, join, relative, resolve } from 'path';
|
|
4
4
|
import { WildoHeaderKeys } from '@wildo-ai/saas-models';
|
|
5
|
-
import { buildAppBootstrapCredentialsResponse, APPS_MANAGER_ADMIN_SECRET_HEADER, APPS_MANAGER_API_PREFIX, AppFrontendType, PlatformDocumentationSiteEnvKeys, ApplicationCreationVerificationEnvKey, AdminAppInitializeRequestSchema, AdminAppInitializeResponseSchema, AdminAppReapplyDeclarationRequestSchema, AdminAppReapplyDeclarationResponseSchema, buildRegistryKeyRevokePath, buildAdminKeyringRotationPath, buildAdminApplicationSigningKeyRotationPath, buildAdminApplicationSigningKeysPath, buildAdminApplicationSigningKeyPromotePath, buildAdminApplicationSigningKeyStagePath, ApplicationSigningKeyPromoteRequestSchema, ApplicationSigningKeyStageRequestSchema, ApplicationSigningKeyRotationRequestSchema, ApplicationSigningKeyRotationResponseSchema, ApplicationSigningKeysStatusSchema, buildAdminApplicationLegacyEnvelopeKeyPath, buildAdminApplicationLegacyEnvelopeKeyRestorePath, buildAdminApplicationLegacyEnvelopeKeyRetirePath, ApplicationLegacyEnvelopeKeyResponseSchema, ApplicationLegacyEnvelopeKeyRestoreRequestSchema, ApplicationLegacyEnvelopeKeyRetirementRequestSchema, ApplicationLegacyEnvelopeKeyStatusSchema, KeyringRotationRequestSchema, KeyringRotationResponseSchema, REGISTRY_KEYS_ADMIN_PATH, RegistryKeyListResponseSchema, RegistryKeyMintRequestSchema, RegistryKeyMintResponseSchema, RegistryKeyRevokeRequestSchema, AppBootstrapCredentialsResponseSchema, buildAdminInitializeApplicationPath, buildAdminReapplyDeclarationPath, buildAdminDeregisterApplicationPath, buildAdminApplicationResiduePath, buildAdminApplicationScheduledJobsPath, buildAdminApplicationScheduledJobRunPath, ApplicationScheduledJobsResponseSchema, ApplicationScheduledJobRunRequestSchema, ApplicationScheduledJobRunResponseSchema, buildAdminRestoreApplicationPath, buildAppBootstrapCredentialsPath, buildLocalhostApplicationRuntimeEndpoints, selectPrimaryBackendService, buildK8sApplicationRuntimeEndpoints, buildComposeApplicationRuntimeEndpoints, buildK8sApplicationIngressRoutes, buildK8sInternalUrl, APP_RUNTIME_SUBDIR_NAMES, loadConfig, resolveAppLayout, WildoDeploymentRuntime, WildoLocationType, WORKSPACE_HOME_NAMES, WORKER_CONFIG_FILENAME, MINION_CONFIG_FILENAME, WildoWorkerConfigSchema, WildoMinionConfigSchema, ApplicationRuntimePrincipalKind, buildMinionRedisKeyPrefix, registerMinionLocalProviders, buildRuntimePrincipalKey, DEVELOPMENT_COMPANION_PRINCIPAL, enumerateRuntimePrincipalsWithBootstrapSecrets, runtimeEnvironmentHostsDevelopmentCompanion, DatabaseEngine, resolveApplicationDatabaseEngine, AppDatabaseSeedingPhase, AppDatabaseSeedingOutcome, } from '@wildo-ai/platform-config-lib';
|
|
5
|
+
import { buildAppBootstrapCredentialsResponse, APPS_MANAGER_ADMIN_SECRET_HEADER, APPS_MANAGER_API_PREFIX, AppFrontendType, PlatformDocumentationSiteEnvKeys, ApplicationCreationVerificationEnvKey, AdminAppInitializeRequestSchema, AdminAppInitializeResponseSchema, AdminAppReapplyDeclarationRequestSchema, AdminAppReapplyDeclarationResponseSchema, buildRegistryKeyRevokePath, buildAdminKeyringRotationPath, buildAdminApplicationSigningKeyRotationPath, buildAdminApplicationSigningKeysPath, buildAdminApplicationSigningKeyPromotePath, buildAdminApplicationSigningKeyStagePath, ApplicationSigningKeyPromoteRequestSchema, ApplicationSigningKeyStageRequestSchema, ApplicationSigningKeyRotationRequestSchema, ApplicationSigningKeyRotationResponseSchema, ApplicationSigningKeysStatusSchema, buildAdminApplicationLegacyEnvelopeKeyPath, buildAdminApplicationLegacyEnvelopeKeyRestorePath, buildAdminApplicationLegacyEnvelopeKeyRetirePath, ApplicationLegacyEnvelopeKeyResponseSchema, ApplicationLegacyEnvelopeKeyRestoreRequestSchema, ApplicationLegacyEnvelopeKeyRetirementRequestSchema, ApplicationLegacyEnvelopeKeyStatusSchema, KeyringRotationRequestSchema, KeyringRotationResponseSchema, REGISTRY_KEYS_ADMIN_PATH, RegistryKeyListResponseSchema, RegistryKeyMintRequestSchema, RegistryKeyMintResponseSchema, RegistryKeyRevokeRequestSchema, AppBootstrapCredentialsResponseSchema, buildAdminInitializeApplicationPath, buildAdminReapplyDeclarationPath, buildAdminDeregisterApplicationPath, buildAdminApplicationResiduePath, buildAdminApplicationScheduledJobsPath, buildAdminApplicationScheduledJobRunPath, ApplicationScheduledJobsResponseSchema, ApplicationScheduledJobRunRequestSchema, ApplicationScheduledJobRunResponseSchema, buildAdminRestoreApplicationPath, buildAppBootstrapCredentialsPath, buildLocalhostApplicationRuntimeEndpoints, selectPrimaryBackendService, buildK8sApplicationRuntimeEndpoints, buildComposeApplicationRuntimeEndpoints, buildK8sApplicationIngressRoutes, buildK8sInternalUrl, APP_RUNTIME_SUBDIR_NAMES, ConfigModuleResolution, loadConfig, resolveAppLayout, WildoDeploymentRuntime, WildoLocationType, WORKSPACE_HOME_NAMES, WORKER_CONFIG_FILENAME, MINION_CONFIG_FILENAME, WildoWorkerConfigSchema, WildoMinionConfigSchema, ApplicationRuntimePrincipalKind, buildMinionRedisKeyPrefix, registerMinionLocalProviders, buildRuntimePrincipalKey, DEVELOPMENT_COMPANION_PRINCIPAL, enumerateRuntimePrincipalsWithBootstrapSecrets, runtimeEnvironmentHostsDevelopmentCompanion, DatabaseEngine, resolveApplicationDatabaseEngine, AppDatabaseSeedingPhase, AppDatabaseSeedingOutcome, } from '@wildo-ai/platform-config-lib';
|
|
6
6
|
import { buildWorkerInternalUrl, buildWorkerLocalUrl } from '@wildo-ai/platform-core-shared';
|
|
7
7
|
import { resolveApplicationBackingServiceAddressing } from '../../services/environment/application-backing-service-addressing.utils.js';
|
|
8
8
|
import { ApplicationOperatorEnvFileDisposition } from '../../services/environment/env-configuration-generator.service.js';
|
|
@@ -219,6 +219,19 @@ async function readErrorBody(response) {
|
|
|
219
219
|
return '';
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
+
/**
|
|
223
|
+
* How the env projection evaluates `wildo.saas.config.ts` and each minion's and worker's own configuration: FRESH (see
|
|
224
|
+
* `AppBootstrapService.readAuthoredConfig`) and against the CLI's own built framework packages
|
|
225
|
+
* ({@link ConfigModuleResolution.LOADER_INSTANCES}, #3440).
|
|
226
|
+
*
|
|
227
|
+
* These reads ask only what the files DECLARE (runtimes, their paths, access, provider scopes, isolation, liveness), the
|
|
228
|
+
* question the compose render asks of the same files with the same mode (#3646). A fresh read in the loader's inferred
|
|
229
|
+
* mode re-evaluates the framework from SOURCE every time: measured 2026-11-18 on Wonder Todos, 1.1–1.3 s per read,
|
|
230
|
+
* which for an application with five minions and a worker is about ten seconds added to every regeneration; with this
|
|
231
|
+
* mode the same fresh read took 2–23 ms. These files import framework packages and, at most, an application's role
|
|
232
|
+
* enums; none defines a zod schema of its own, so the decorated-zod caveat of that mode does not arise.
|
|
233
|
+
*/
|
|
234
|
+
const RUNTIME_DECLARATION_EVALUATION = { moduleResolution: ConfigModuleResolution.LOADER_INSTANCES };
|
|
222
235
|
export class AppBootstrapService {
|
|
223
236
|
/**
|
|
224
237
|
* Service keys (`config.services.<key>`) of the app's frontends that are
|
|
@@ -550,7 +563,7 @@ export class AppBootstrapService {
|
|
|
550
563
|
* principal whose own secret is not on disk THROWS, naming itself.
|
|
551
564
|
*/
|
|
552
565
|
static async reconstructRuntimePrincipalCredentialsOffline(input) {
|
|
553
|
-
const saasConfig = await
|
|
566
|
+
const saasConfig = await AppBootstrapService.readAuthoredConfig(input.runtimeTarget.saasConfigPath, RUNTIME_DECLARATION_EVALUATION);
|
|
554
567
|
const entries = [];
|
|
555
568
|
const unresolved = [];
|
|
556
569
|
for (const principal of enumerateRuntimePrincipalsWithBootstrapSecrets(input.runtimeTarget.managedDeclaration, {
|
|
@@ -841,7 +854,7 @@ export class AppBootstrapService {
|
|
|
841
854
|
if (!backendConfigPath || !existsSync(backendConfigPath)) {
|
|
842
855
|
throw new Error(`Application '${runtimeTarget.appSlug}' declares bootstrap.firstAdmin.userTypes, but the authoritative backend config was not found at '${backendConfigPath ?? 'unknown'}' for service '${authoritativeBackend.serviceName}'.`);
|
|
843
856
|
}
|
|
844
|
-
const backendConfig = await
|
|
857
|
+
const backendConfig = await AppBootstrapService.readAuthoredConfig(backendConfigPath);
|
|
845
858
|
const declaredBackendUserTypes = new Set(Object.keys(backendConfig.userTypes ?? {}));
|
|
846
859
|
const unknownUserTypes = projectedUserTypes.filter((userType) => !declaredBackendUserTypes.has(userType));
|
|
847
860
|
if (unknownUserTypes.length > 0) {
|
|
@@ -1354,14 +1367,25 @@ export class AppBootstrapService {
|
|
|
1354
1367
|
return Object.fromEntries(entries);
|
|
1355
1368
|
}
|
|
1356
1369
|
/**
|
|
1357
|
-
*
|
|
1370
|
+
* Read an application-authored configuration as the working tree holds it NOW: `wildo.saas.config.ts`, a minion's or
|
|
1371
|
+
* a worker's own configuration, the authoritative backend config.
|
|
1358
1372
|
*
|
|
1359
|
-
*
|
|
1360
|
-
*
|
|
1361
|
-
*
|
|
1362
|
-
*
|
|
1363
|
-
*
|
|
1373
|
+
* Every env-projection read in this service goes through here, and none through a bare `loadConfig`, because jiti's
|
|
1374
|
+
* module cache is PROCESS-WIDE: `wildo local dev` regenerates the runtimes' env files in its own long-lived process
|
|
1375
|
+
* whenever the declaration changes, and a cached read answers with the file as that process first evaluated it.
|
|
1376
|
+
* {@link AppRuntimeTargetsService.resolve} reads the declaration fresh (#3985), so the target, and the identities
|
|
1377
|
+
* apps-manager mints from it, already knew a runtime declared later; these builders did not. On reference run
|
|
1378
|
+
* 44255624884 five minions and a worker declared after the stack started were minted, then given no `.env`
|
|
1379
|
+
* ("0 worker, 0 minion target(s)"), and each minion refused its unset `APPLICATION_ENV` about 150 times.
|
|
1380
|
+
*
|
|
1381
|
+
* What a fresh read costs depends on how the file's framework imports are evaluated: see
|
|
1382
|
+
* {@link RUNTIME_DECLARATION_EVALUATION}, which the declaration and runtime-configuration reads pass. The backend
|
|
1383
|
+
* config keeps the loader's own inference (`evaluation` omitted): it may define zod schemas of its own, which is the
|
|
1384
|
+
* case that evaluation mode does not cover.
|
|
1364
1385
|
*/
|
|
1386
|
+
static readAuthoredConfig(filePath, evaluation = {}) {
|
|
1387
|
+
return loadConfig(filePath, { ...evaluation, freshModuleCache: true });
|
|
1388
|
+
}
|
|
1365
1389
|
/**
|
|
1366
1390
|
* Degraded-mode counterpart of {@link requireRuntimePrincipalCredentials}.
|
|
1367
1391
|
*
|
|
@@ -1379,6 +1403,15 @@ export class AppBootstrapService {
|
|
|
1379
1403
|
}
|
|
1380
1404
|
return AppBootstrapService.requireRuntimePrincipalCredentials(prepared, principal);
|
|
1381
1405
|
}
|
|
1406
|
+
/**
|
|
1407
|
+
* A declared runtime's own credentials, or a hard failure.
|
|
1408
|
+
*
|
|
1409
|
+
* Deliberately NO fallback to `prepared.bootstrapCredentials`. A fallback here
|
|
1410
|
+
* would hand the runtime the application backend's identity and the sync would
|
|
1411
|
+
* report success — reintroducing F11 silently, at the one seam built to close
|
|
1412
|
+
* it. A missing entry means preparation and the declaration disagree, which is
|
|
1413
|
+
* a bug to surface, not to paper over.
|
|
1414
|
+
*/
|
|
1382
1415
|
static requireRuntimePrincipalCredentials(prepared, principal) {
|
|
1383
1416
|
const principalKey = buildRuntimePrincipalKey(principal);
|
|
1384
1417
|
const credentials = prepared.runtimePrincipalCredentials[principalKey];
|
|
@@ -1540,7 +1573,7 @@ export class AppBootstrapService {
|
|
|
1540
1573
|
}
|
|
1541
1574
|
const { runtimeTarget, bootstrapCredentials, runtimeEndpoints } = prepared;
|
|
1542
1575
|
const isRemote = input.env.locationType === WildoLocationType.REMOTE;
|
|
1543
|
-
const saasConfig = await
|
|
1576
|
+
const saasConfig = await AppBootstrapService.readAuthoredConfig(runtimeTarget.saasConfigPath, RUNTIME_DECLARATION_EVALUATION);
|
|
1544
1577
|
const workers = saasConfig.workers ?? {};
|
|
1545
1578
|
const targets = [];
|
|
1546
1579
|
for (const [workerName, workerRef] of Object.entries(workers)) {
|
|
@@ -1551,7 +1584,7 @@ export class AppBootstrapService {
|
|
|
1551
1584
|
// from the spec (rather than re-defaulting `?? 8080` here) keeps the k8s
|
|
1552
1585
|
// manifest in lockstep with the runtime contract — no drift, no second
|
|
1553
1586
|
// source of the defaults, and a malformed config fails fast.
|
|
1554
|
-
const workerConfig = WildoWorkerConfigSchema.parse(await
|
|
1587
|
+
const workerConfig = WildoWorkerConfigSchema.parse(await AppBootstrapService.readAuthoredConfig(join(workerRoot, WORKER_CONFIG_FILENAME), RUNTIME_DECLARATION_EVALUATION));
|
|
1555
1588
|
const relativeDir = AppBootstrapService.relativeToApplicationRoot(runtimeTarget.appRoot, workerRoot, `Application worker '${workerName}'`);
|
|
1556
1589
|
const workerCredentials = AppBootstrapService.resolveRuntimePrincipalCredentialsOrSkip(prepared, { kind: ApplicationRuntimePrincipalKind.WORKER, name: workerName });
|
|
1557
1590
|
if (!workerCredentials)
|
|
@@ -1602,7 +1635,7 @@ export class AppBootstrapService {
|
|
|
1602
1635
|
return [];
|
|
1603
1636
|
}
|
|
1604
1637
|
const { runtimeTarget, bootstrapCredentials, runtimeEndpoints } = prepared;
|
|
1605
|
-
const saasConfig = await
|
|
1638
|
+
const saasConfig = await AppBootstrapService.readAuthoredConfig(runtimeTarget.saasConfigPath, RUNTIME_DECLARATION_EVALUATION);
|
|
1606
1639
|
const minions = saasConfig.minions ?? {};
|
|
1607
1640
|
const targets = [];
|
|
1608
1641
|
const isRemote = input.env.locationType === WildoLocationType.REMOTE;
|
|
@@ -1613,7 +1646,7 @@ export class AppBootstrapService {
|
|
|
1613
1646
|
// (kill_previous, file liveness at /tmp/wildo-minion-alive, staleAfterSec
|
|
1614
1647
|
// 90). Derived from the spec so the k8s manifest never drifts from the
|
|
1615
1648
|
// runtime contract, and a malformed minion config fails fast.
|
|
1616
|
-
const minionConfig = WildoMinionConfigSchema.parse(await
|
|
1649
|
+
const minionConfig = WildoMinionConfigSchema.parse(await AppBootstrapService.readAuthoredConfig(join(minionRoot, MINION_CONFIG_FILENAME), RUNTIME_DECLARATION_EVALUATION));
|
|
1617
1650
|
const relativeDir = AppBootstrapService.relativeToApplicationRoot(runtimeTarget.appRoot, minionRoot, `Application minion '${minionName}'`);
|
|
1618
1651
|
const minionCredentials = AppBootstrapService.resolveRuntimePrincipalCredentialsOrSkip(prepared, { kind: ApplicationRuntimePrincipalKind.MINION, name: minionName });
|
|
1619
1652
|
// Degraded mode only: a principal whose own secret is not on disk is SKIPPED
|