@wildo-ai/wildo-cli 1.1.2 → 1.1.4
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/bin/wildo.d.ts.map +1 -1
- package/dist/src/__tests__/sandbox-dependencies.test-helpers.d.ts.map +1 -1
- package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
- package/dist/src/commands/acp/probe.command.js +13 -0
- package/dist/src/commands/acp/probe.command.js.map +1 -1
- package/dist/src/commands/align-deps.command.d.ts.map +1 -1
- package/dist/src/commands/assets/sync.command.d.ts +6 -0
- package/dist/src/commands/assets/sync.command.d.ts.map +1 -1
- package/dist/src/commands/assets/sync.command.js +13 -3
- package/dist/src/commands/assets/sync.command.js.map +1 -1
- package/dist/src/commands/brand/propagate.command.d.ts.map +1 -1
- package/dist/src/commands/compose.command.d.ts.map +1 -1
- package/dist/src/commands/compose.command.js +16 -0
- package/dist/src/commands/compose.command.js.map +1 -1
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.d.ts.map +1 -1
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js +1 -1
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js.map +1 -1
- package/dist/src/commands/config/__tests__/sync.command.test.d.ts.map +1 -1
- package/dist/src/commands/config/__tests__/sync.command.test.js +115 -8
- package/dist/src/commands/config/__tests__/sync.command.test.js.map +1 -1
- package/dist/src/commands/config/__tests__/validate.command.test.d.ts.map +1 -1
- package/dist/src/commands/config/mutate.command.d.ts.map +1 -1
- package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.d.ts +36 -0
- package/dist/src/commands/config/sync.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.js +61 -7
- package/dist/src/commands/config/sync.command.js.map +1 -1
- package/dist/src/commands/config/validate.command.d.ts.map +1 -1
- package/dist/src/commands/context/__tests__/assurance-basis.command.test.d.ts +2 -0
- package/dist/src/commands/context/__tests__/assurance-basis.command.test.d.ts.map +1 -0
- package/dist/src/commands/context/__tests__/assurance-basis.command.test.js +63 -0
- package/dist/src/commands/context/__tests__/assurance-basis.command.test.js.map +1 -0
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts +19 -0
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts.map +1 -0
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.js +106 -0
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.js.map +1 -0
- package/dist/src/commands/context/assurance-basis.command.d.ts +61 -0
- package/dist/src/commands/context/assurance-basis.command.d.ts.map +1 -0
- package/dist/src/commands/context/assurance-basis.command.js +166 -0
- package/dist/src/commands/context/assurance-basis.command.js.map +1 -0
- package/dist/src/commands/context/coherence.command.d.ts.map +1 -1
- package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
- package/dist/src/commands/context/health.command.d.ts.map +1 -1
- package/dist/src/commands/context/info.command.d.ts.map +1 -1
- package/dist/src/commands/context/journey.command.d.ts +6 -2
- package/dist/src/commands/context/journey.command.d.ts.map +1 -1
- package/dist/src/commands/context/journey.command.js +8 -4
- package/dist/src/commands/context/journey.command.js.map +1 -1
- package/dist/src/commands/context/jurisdictions.command.d.ts +36 -0
- package/dist/src/commands/context/jurisdictions.command.d.ts.map +1 -0
- package/dist/src/commands/context/jurisdictions.command.js +115 -0
- package/dist/src/commands/context/jurisdictions.command.js.map +1 -0
- package/dist/src/commands/context/list.command.d.ts.map +1 -1
- package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
- package/dist/src/commands/db/diff.command.d.ts.map +1 -1
- package/dist/src/commands/db/generate.command.d.ts.map +1 -1
- package/dist/src/commands/db/migrate.command.d.ts.map +1 -1
- package/dist/src/commands/db/resolve.command.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/design-tokens.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/start.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/start.command.test.js +6 -6
- package/dist/src/commands/dev/__tests__/start.command.test.js.map +1 -1
- package/dist/src/commands/dev/__tests__/stop.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.js +71 -0
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.js.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.d.ts +5 -3
- package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.js +36 -7
- package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-generate.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -1
- package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -1
- package/dist/src/commands/dev/resources.command.d.ts.map +1 -1
- package/dist/src/commands/dev/start.command.d.ts.map +1 -1
- package/dist/src/commands/dev/start.command.js +8 -7
- package/dist/src/commands/dev/start.command.js.map +1 -1
- package/dist/src/commands/dev/stop-all.command.d.ts.map +1 -1
- package/dist/src/commands/dev/sync-csp.command.d.ts.map +1 -1
- package/dist/src/commands/dev/sync-csp.command.js +35 -7
- package/dist/src/commands/dev/sync-csp.command.js.map +1 -1
- package/dist/src/commands/docs/__tests__/publish.command.test.d.ts +2 -0
- package/dist/src/commands/docs/__tests__/publish.command.test.d.ts.map +1 -0
- package/dist/src/commands/docs/__tests__/publish.command.test.js +101 -0
- package/dist/src/commands/docs/__tests__/publish.command.test.js.map +1 -0
- package/dist/src/commands/docs/publish.command.d.ts +29 -0
- package/dist/src/commands/docs/publish.command.d.ts.map +1 -0
- package/dist/src/commands/docs/publish.command.js +82 -0
- package/dist/src/commands/docs/publish.command.js.map +1 -0
- package/dist/src/commands/frontend/publish.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/__tests__/dev-skills.command.test.d.ts.map +1 -1
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.d.ts.map +1 -1
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.js.map +1 -1
- package/dist/src/commands/fwk/audit.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/dev-skills.command.js +12 -0
- package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
- package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/generate-providers.command.d.ts +21 -0
- package/dist/src/commands/fwk/generate-providers.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/generate-providers.command.js +325 -0
- package/dist/src/commands/fwk/generate-providers.command.js.map +1 -0
- package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-show.command.js +9 -1
- package/dist/src/commands/fwk/version-show.command.js.map +1 -1
- package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-status.command.d.ts +13 -4
- package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-status.command.js +34 -5
- package/dist/src/commands/fwk/wt-status.command.js.map +1 -1
- package/dist/src/commands/fwk/wt-tail.command.d.ts +12 -6
- package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-tail.command.js +40 -10
- package/dist/src/commands/fwk/wt-tail.command.js.map +1 -1
- package/dist/src/commands/generate/__tests__/email-command.utils.test.d.ts.map +1 -1
- package/dist/src/commands/generate/__tests__/email-command.utils.test.js +0 -1
- package/dist/src/commands/generate/__tests__/email-command.utils.test.js.map +1 -1
- package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/email-command.utils.js +1 -0
- package/dist/src/commands/generate/email-command.utils.js.map +1 -1
- package/dist/src/commands/generate/email-preview.command.d.ts +8 -0
- package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-preview.command.js +57 -0
- package/dist/src/commands/generate/email-preview.command.js.map +1 -1
- package/dist/src/commands/generate/email-status.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email.command.d.ts.map +1 -1
- package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/labelling-command.utils.js +1 -0
- package/dist/src/commands/generate/labelling-command.utils.js.map +1 -1
- package/dist/src/commands/generate/labels-plan.command.d.ts.map +1 -1
- package/dist/src/commands/generate/labels.command.d.ts.map +1 -1
- package/dist/src/commands/generate/translate.command.d.ts.map +1 -1
- package/dist/src/commands/help.command.d.ts.map +1 -1
- package/dist/src/commands/help.command.js +2 -0
- package/dist/src/commands/help.command.js.map +1 -1
- package/dist/src/commands/init.command.d.ts +17 -0
- package/dist/src/commands/init.command.d.ts.map +1 -1
- package/dist/src/commands/init.command.js +89 -4
- package/dist/src/commands/init.command.js.map +1 -1
- package/dist/src/commands/local/__tests__/dev-status.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/dev.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/dev.command.test.js +60 -0
- package/dist/src/commands/local/__tests__/dev.command.test.js.map +1 -1
- package/dist/src/commands/local/__tests__/doctor.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/doctor.command.test.js +16 -2
- package/dist/src/commands/local/__tests__/doctor.command.test.js.map +1 -1
- package/dist/src/commands/local/__tests__/init.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/init.command.test.js +28 -1
- package/dist/src/commands/local/__tests__/init.command.test.js.map +1 -1
- package/dist/src/commands/local/__tests__/reinit.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/reset.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/up.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/up.command.test.js +7 -0
- package/dist/src/commands/local/__tests__/up.command.test.js.map +1 -1
- package/dist/src/commands/local/dev-status.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts +6 -3
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js +13 -4
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/local/doctor.command.d.ts +9 -0
- package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
- package/dist/src/commands/local/doctor.command.js +24 -6
- package/dist/src/commands/local/doctor.command.js.map +1 -1
- package/dist/src/commands/local/down.command.d.ts.map +1 -1
- package/dist/src/commands/local/init.command.d.ts.map +1 -1
- package/dist/src/commands/local/init.command.js +11 -2
- package/dist/src/commands/local/init.command.js.map +1 -1
- package/dist/src/commands/local/logs.command.d.ts.map +1 -1
- package/dist/src/commands/local/reinit.command.d.ts.map +1 -1
- package/dist/src/commands/local/reset.command.d.ts.map +1 -1
- package/dist/src/commands/local/status.command.d.ts.map +1 -1
- package/dist/src/commands/local/up.command.d.ts.map +1 -1
- package/dist/src/commands/local/up.command.js.map +1 -1
- package/dist/src/commands/lock/__tests__/check.command.test.d.ts.map +1 -1
- package/dist/src/commands/lock/__tests__/check.live.contract.test.d.ts.map +1 -1
- package/dist/src/commands/lock/check.command.d.ts.map +1 -1
- package/dist/src/commands/lock/check.command.js +4 -10
- package/dist/src/commands/lock/check.command.js.map +1 -1
- package/dist/src/commands/market/__tests__/generate.command.test.d.ts.map +1 -1
- package/dist/src/commands/market/__tests__/market-command.utils.test.d.ts.map +1 -1
- package/dist/src/commands/market/__tests__/market-command.utils.test.js +0 -1
- package/dist/src/commands/market/__tests__/market-command.utils.test.js.map +1 -1
- package/dist/src/commands/market/generate.command.d.ts.map +1 -1
- package/dist/src/commands/market/market-command.utils.d.ts.map +1 -1
- package/dist/src/commands/market/market-command.utils.js +1 -0
- package/dist/src/commands/market/market-command.utils.js.map +1 -1
- package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts +2 -0
- package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts.map +1 -0
- package/dist/src/commands/providers/__tests__/required-inputs.test.js +35 -0
- package/dist/src/commands/providers/__tests__/required-inputs.test.js.map +1 -0
- package/dist/src/commands/providers/show.command.d.ts +51 -0
- package/dist/src/commands/providers/show.command.d.ts.map +1 -0
- package/dist/src/commands/providers/show.command.js +152 -0
- package/dist/src/commands/providers/show.command.js.map +1 -0
- package/dist/src/commands/registry/add.command.d.ts.map +1 -1
- package/dist/src/commands/registry/info.command.d.ts.map +1 -1
- package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -1
- package/dist/src/commands/registry/login.command.d.ts.map +1 -1
- package/dist/src/commands/registry/login.command.js +2 -0
- package/dist/src/commands/registry/login.command.js.map +1 -1
- package/dist/src/commands/registry/logout.command.d.ts.map +1 -1
- package/dist/src/commands/registry/ping.command.d.ts.map +1 -1
- package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
- package/dist/src/commands/registry/publish.command.js +2 -0
- package/dist/src/commands/registry/publish.command.js.map +1 -1
- package/dist/src/commands/registry/registry-transport.constants.d.ts +33 -0
- package/dist/src/commands/registry/registry-transport.constants.d.ts.map +1 -0
- package/dist/src/commands/registry/registry-transport.constants.js +33 -0
- package/dist/src/commands/registry/registry-transport.constants.js.map +1 -0
- package/dist/src/commands/registry/remove.command.d.ts.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
- package/dist/src/commands/registry/search.command.d.ts.map +1 -1
- package/dist/src/commands/registry/update.command.d.ts.map +1 -1
- package/dist/src/commands/registry/whoami.command.d.ts.map +1 -1
- package/dist/src/commands/registry/whoami.command.js +2 -0
- package/dist/src/commands/registry/whoami.command.js.map +1 -1
- package/dist/src/commands/remote/__tests__/remote-commands.test.d.ts.map +1 -1
- package/dist/src/commands/remote/create.command.d.ts.map +1 -1
- package/dist/src/commands/remote/list.command.d.ts.map +1 -1
- package/dist/src/commands/remote/status.command.d.ts.map +1 -1
- package/dist/src/commands/remote/sync.command.d.ts.map +1 -1
- package/dist/src/commands/setup.command.d.ts.map +1 -1
- package/dist/src/commands/version.command.d.ts.map +1 -1
- package/dist/src/commands/website/__tests__/audit.command.test.d.ts.map +1 -1
- package/dist/src/commands/website/audit.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/__tests__/workbench.commands.test.d.ts.map +1 -1
- package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
- package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -1
- package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -1
- package/dist/src/infrastructure/process/__tests__/spawn.utils.test.d.ts.map +1 -1
- package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/bootstrap.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/command-registry.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/command-registry.test.js +9 -0
- package/dist/src/kernel/__tests__/command-registry.test.js.map +1 -1
- package/dist/src/kernel/__tests__/command-runner.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/command-scope-utils.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/flag-utils.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/hooks.test.d.ts.map +1 -1
- package/dist/src/kernel/base-command.d.ts.map +1 -1
- package/dist/src/kernel/bootstrap.d.ts.map +1 -1
- package/dist/src/kernel/command-registry.d.ts.map +1 -1
- package/dist/src/kernel/command-registry.js +6 -0
- package/dist/src/kernel/command-registry.js.map +1 -1
- package/dist/src/kernel/command-runner.d.ts.map +1 -1
- package/dist/src/kernel/command-scope-utils.d.ts.map +1 -1
- package/dist/src/kernel/flag-utils.d.ts.map +1 -1
- package/dist/src/kernel/hooks.d.ts.map +1 -1
- package/dist/src/kernel/logger.d.ts.map +1 -1
- package/dist/src/kernel/types.d.ts +17 -1
- package/dist/src/kernel/types.d.ts.map +1 -1
- package/dist/src/kernel/types.js +16 -0
- package/dist/src/kernel/types.js.map +1 -1
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.d.ts +2 -0
- package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.js +146 -0
- package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.js.map +1 -0
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js +2 -2
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js.map +1 -1
- package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/approver-user.module.d.ts +85 -0
- package/dist/src/modules/domain/credentials/approver-user.module.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/approver-user.module.js +92 -0
- package/dist/src/modules/domain/credentials/approver-user.module.js.map +1 -0
- package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/providers-config.module.d.ts +17 -9
- package/dist/src/modules/domain/credentials/providers-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/providers-config.module.js +18 -10
- package/dist/src/modules/domain/credentials/providers-config.module.js.map +1 -1
- package/dist/src/modules/domain/environment/__tests__/database-config.module.test.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -1
- package/dist/src/modules/domain/module.types.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.js +111 -0
- package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.js.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.js +22 -29
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js.map +1 -1
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js +2 -2
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js +19 -0
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/application-initialization-verification.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.js.map +1 -1
- package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/dev-orchestrator.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/dev-schema-drift.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js +0 -1
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.js +8 -1
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/local-application-initialization.guard.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.js +35 -0
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/provider-package-links.service.test.js +224 -0
- package/dist/src/services/application/__tests__/provider-package-links.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js +28 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js +0 -1
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js.map +1 -1
- package/dist/src/services/application/__tests__/saas-scaffold.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.js.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts +43 -10
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js +92 -49
- package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/app-env.service.d.ts.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
- package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.d.ts +22 -1
- package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.js +35 -7
- package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
- package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -1
- package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
- package/dist/src/services/application/application-root.utils.d.ts.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts +6 -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 +41 -2
- package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -1
- package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
- package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -1
- package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -1
- package/dist/src/services/application/local-application-initialization.service.js +22 -6
- package/dist/src/services/application/local-application-initialization.service.js.map +1 -1
- package/dist/src/services/application/provider-package-links.service.d.ts +160 -0
- package/dist/src/services/application/provider-package-links.service.d.ts.map +1 -0
- package/dist/src/services/application/provider-package-links.service.js +312 -0
- package/dist/src/services/application/provider-package-links.service.js.map +1 -0
- package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
- package/dist/src/services/application/provider-runtime-sync.service.js +7 -20
- package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
- package/dist/src/services/application/saas-scaffold.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-scaffold.service.js +11 -2
- package/dist/src/services/application/saas-scaffold.service.js.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.js +46 -26
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
- package/dist/src/services/brand/__tests__/brand-asset-delivery.test.d.ts.map +1 -1
- package/dist/src/services/brand/brand-asset-projection.d.ts.map +1 -1
- package/dist/src/services/brand/brand-destination-utils.d.ts.map +1 -1
- package/dist/src/services/brand/brand-propagation.types.d.ts.map +1 -1
- package/dist/src/services/brand/brand-ssot-reader.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/app-public.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/runtime-app-config.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/technical-doc-static.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/website-og.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/website-public.destination.d.ts.map +1 -1
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts +2 -0
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts.map +1 -0
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.js +93 -0
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.js.map +1 -0
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.d.ts.map +1 -1
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js +25 -5
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js.map +1 -1
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.d.ts.map +1 -1
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js +109 -51
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts +0 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.js +23 -7
- package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.d.ts +148 -51
- package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.js +230 -78
- package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -1
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts +2 -0
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts.map +1 -0
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js +110 -0
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js.map +1 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts +32 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts.map +1 -1
- package/dist/src/services/coding-agents/acp-conformance-probe.service.js +165 -7
- package/dist/src/services/coding-agents/acp-conformance-probe.service.js.map +1 -1
- package/dist/src/services/companion/__tests__/companion-client.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/__tests__/companion-client.service.test.js +96 -0
- package/dist/src/services/companion/__tests__/companion-client.service.test.js.map +1 -1
- package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/__tests__/workbench-cli.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client-options.utils.js +6 -0
- package/dist/src/services/companion/companion-client-options.utils.js.map +1 -1
- package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client.service.js +34 -0
- package/dist/src/services/companion/companion-client.service.js.map +1 -1
- package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-local-token.utils.d.ts +20 -0
- package/dist/src/services/companion/companion-local-token.utils.d.ts.map +1 -0
- package/dist/src/services/companion/companion-local-token.utils.js +62 -0
- package/dist/src/services/companion/companion-local-token.utils.js.map +1 -0
- package/dist/src/services/companion/companion.schemas.d.ts +12 -0
- package/dist/src/services/companion/companion.schemas.d.ts.map +1 -1
- package/dist/src/services/companion/companion.schemas.js.map +1 -1
- package/dist/src/services/companion/git-helper.service.d.ts.map +1 -1
- package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -1
- package/dist/src/services/companion/local-companion-authority.service.js +9 -30
- package/dist/src/services/companion/local-companion-authority.service.js.map +1 -1
- package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -1
- package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -1
- package/dist/src/services/companion/workbench-cli.service.js +10 -1
- package/dist/src/services/companion/workbench-cli.service.js.map +1 -1
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.d.ts.map +1 -1
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js +7 -0
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js.map +1 -1
- package/dist/src/services/context/__tests__/context-manager.service.test.d.ts.map +1 -1
- package/dist/src/services/context/context-manager.service.d.ts +9 -0
- package/dist/src/services/context/context-manager.service.d.ts.map +1 -1
- package/dist/src/services/context/context-manager.service.js +13 -1
- package/dist/src/services/context/context-manager.service.js.map +1 -1
- package/dist/src/services/context/context.schemas.d.ts.map +1 -1
- package/dist/src/services/context/state-manager.service.d.ts.map +1 -1
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts +28 -0
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts.map +1 -0
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js +197 -0
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js.map +1 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts +2 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts.map +1 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js +327 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js.map +1 -0
- package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.d.ts.map +1 -1
- package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.d.ts +2 -0
- package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.d.ts.map +1 -0
- package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.js +94 -0
- package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.js.map +1 -0
- package/dist/src/services/credentials/__tests__/secrets-contracts.test.d.ts.map +1 -1
- package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -1
- package/dist/src/services/credentials/ci-secrets-adapter.service.js +114 -37
- package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts +209 -0
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -0
- package/dist/src/services/credentials/composed-provider-catalogue.js +263 -0
- package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -0
- package/dist/src/services/credentials/credentials.schemas.d.ts +29 -22
- package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.js +67 -5
- package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
- package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.d.ts +105 -1
- package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.js +51 -8
- package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts +127 -7
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.js +189 -45
- package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
- package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.d.ts +0 -1
- package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.js +0 -1
- package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
- package/dist/src/services/data-services/data-services.service.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js +91 -1
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js +45 -15
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js +33 -1
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js +44 -1
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js +82 -87
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js +11 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
- package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-workflow-generator.service.js +23 -4
- package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js +150 -7
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +1 -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 +60 -12
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
- package/dist/src/services/deployment/infra-writer.service.js +34 -7
- package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js +45 -2
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js +110 -9
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js +226 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js +132 -12
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/kind.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts +23 -0
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js +52 -6
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +45 -9
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +4 -3
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js +0 -4
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts +10 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +193 -33
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -1
- package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts +28 -17
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.js +83 -3
- package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts.map +1 -1
- package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -1
- package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/compose-converge-args.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/config-hydration-seam.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js +36 -20
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/env-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-sync.service.test.js +6 -4
- package/dist/src/services/environment/__tests__/env-sync.service.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js +89 -8
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/environment-hydration.utils.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js +136 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-paths.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-registry.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js +23 -0
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/platform-image-ref.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/platform-image-ref.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.d.ts.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.d.ts +52 -14
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js +41 -38
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
- package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-sync.service.js +13 -13
- package/dist/src/services/environment/env-sync.service.js.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts +28 -0
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.js +188 -41
- package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
- package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts +53 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.js +65 -1
- package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
- package/dist/src/services/environment/environment-paths.service.d.ts +2 -1
- package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-paths.service.js +5 -3
- package/dist/src/services/environment/environment-paths.service.js.map +1 -1
- package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.js +23 -9
- package/dist/src/services/environment/environment-setup.service.js.map +1 -1
- package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/environment.service.d.ts +6 -1
- package/dist/src/services/environment/environment.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment.service.js +2 -0
- package/dist/src/services/environment/environment.service.js.map +1 -1
- package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/application-rule-imports.test.js +58 -0
- package/dist/src/services/framework/__tests__/application-rule-imports.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js +55 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js +17 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js +101 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js +4 -70
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js +78 -6
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-release.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-release.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-secrets-writer.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-version.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-version.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/application-rule-imports.d.ts +36 -0
- package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -0
- package/dist/src/services/framework/application-rule-imports.js +77 -0
- package/dist/src/services/framework/application-rule-imports.js.map +1 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +23 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-development-skills-sync.service.js +51 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +86 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.js +212 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts +0 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.js +29 -215
- package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.js +7 -3
- package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts +44 -1
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-publish-manifest.service.js +79 -4
- package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
- package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-version.service.d.ts +13 -0
- package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-version.service.js +23 -24
- package/dist/src/services/framework/framework-version.service.js.map +1 -1
- package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.js +100 -0
- package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js +92 -0
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js +83 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js +219 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js +372 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js +794 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts +14 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js +1047 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts +26 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.js +57 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts +35 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.js +204 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts +410 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js +434 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.d.ts +39 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.js +274 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts +139 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.js +1586 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts +35 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.js +527 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts +229 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.js +96 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts +55 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.js +196 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.js.map +1 -0
- package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.d.ts.map +1 -1
- package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.d.ts.map +1 -1
- package/dist/src/services/frontend/__tests__/frontend-publish.service.test.d.ts.map +1 -1
- package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -1
- package/dist/src/services/frontend/cloudflare-cdn.service.js +33 -2
- package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -1
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-publish.service.js +1 -1
- package/dist/src/services/frontend/frontend-publish.service.js.map +1 -1
- package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/generator.schemas.d.ts.map +1 -1
- package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/template-registry.service.d.ts.map +1 -1
- package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
- package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -1
- package/dist/src/services/registry/index.d.ts.map +1 -1
- package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
- package/dist/src/services/registry/registry-config-resolver.service.d.ts.map +1 -1
- package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -1
- package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -1
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts +67 -0
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts.map +1 -0
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js +212 -0
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js.map +1 -0
- package/dist/src/services/security/__tests__/csp-boundary.test.d.ts.map +1 -1
- package/dist/src/services/security/__tests__/csp-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/security/__tests__/csp-sync.service.test.js +411 -5
- package/dist/src/services/security/__tests__/csp-sync.service.test.js.map +1 -1
- package/dist/src/services/security/csp-sync.service.d.ts +27 -5
- package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
- package/dist/src/services/security/csp-sync.service.js +204 -16
- package/dist/src/services/security/csp-sync.service.js.map +1 -1
- package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -1
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts +2 -0
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts.map +1 -0
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js +94 -0
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js.map +1 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts +9 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
- package/dist/src/services/website/website-structured-data-audit.service.js +72 -11
- package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
- package/dist/src/test-utils/resolved-homes.test.utils.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/framework-root-package.json +2 -0
- package/package.json +19 -17
- package/scripts/app-dependency-alignment/propagated-engine-overrides.json +15 -0
- package/templates/infra/ci/deploy-docker-compose.yml.hbs +1 -1
- package/templates/infra/ci/deploy-k8s.yml.hbs +1 -1
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +394 -90
- package/templates/infra/docker-images/backend/Dockerfile.backend-base +7 -1
- package/templates/infra/docker-images/backend/Dockerfile.backend-base-java +7 -1
- package/templates/infra/docker-images/platform/Dockerfile.platform-base.dockerignore +23 -0
- package/templates/infra/k8s/applications/wildo-ai-application/backend.deployment.yaml.hbs +8 -5
- package/templates/infra/k8s/applications/wildo-ai-application/ingress.yaml.hbs +3 -2
- package/templates/infra/k8s/applications/wildo-ai-application/minion.deployment.yaml.hbs +22 -6
- package/templates/infra/k8s/applications/wildo-ai-application/worker.deployment.yaml.hbs +17 -13
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +11 -0
- package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +18 -4
- package/templates/saas/engine-peer-closure.json +12 -0
- package/templates/saas/i18n/email/components/EmailHeader.tsx +9 -0
- package/templates/saas/i18n/email/components/EmailLayout.tsx +14 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/create.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/deactivate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/reactivate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/regenerate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/rotate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationOAuthClients/create.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationOAuthClients/regenerate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationOAuthClients/rotate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/deprecate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/promote.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/rollback.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/create.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/delete.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/transfer.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/transfer.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/update.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/update.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/disable_feature.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/enable_feature.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/reset_features.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/update.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/create.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/grantOwnership.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/resend.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_admin/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_invitee/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/update.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/archive.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/move.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/restore.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/update.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/activate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/create.admin.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/create.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/request_deletion.admin.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/request_deletion.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/restore.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/suspend.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/update.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/update.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/platformAccessGrants/requestAccess.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/user_self/deactivate_account.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/user_self/reactivate_account.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/assign_roles.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/create.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/delete.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/force_password_reset.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/revoke_roles.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/send_invitation.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/suspend_user.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/unsuspend_user.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/update.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/system/email-otp/template.tsx +1 -0
- package/templates/saas/i18n/email/system/email-verification/template.tsx +1 -1
- package/templates/saas/i18n/email/system/magic-link/template.tsx +1 -1
- package/templates/saas/i18n/email/system/new-device-login/template.tsx +1 -1
- package/templates/saas/i18n/email/system/organization-invitation/template.tsx +1 -0
- package/templates/saas/i18n/email/system/organization-member-removed/template.tsx +1 -0
- package/templates/saas/i18n/email/system/password-reset/template.tsx +1 -1
- package/templates/saas/i18n/email/system/payment-failed/template.tsx +1 -1
- package/templates/saas/i18n/email/system/security-alert/template.tsx +1 -0
- package/templates/saas/i18n/email/system/subscription-cancelled/template.tsx +1 -1
- package/templates/saas/i18n/email/system/subscription-confirmation/template.tsx +1 -0
- package/templates/saas/i18n/email/system/welcome-email/template.tsx +1 -1
- package/templates/saas/scenarios/add-file-picker-provider/files/frontend/src/engine/providers/__providerRef__.frontend-app.module.ts.hbs +10 -4
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/index.ts.hbs +9 -5
- package/templates/saas/scenarios/add-module/scenario.json +3 -3
- package/templates/saas/scenarios/add-provider/scenario.json +36 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +52 -2
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/csp.config.ts +20 -3
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/auth/exchange.tsx +75 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/search.tsx.hbs +47 -3
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/theme/Root.tsx +46 -4
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/favicon.svg +5 -4
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.svg +11 -5
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +18 -7
- package/templates/saas/scenarios/add-website/files/website/src/app-origin.ts.hbs +32 -16
- package/templates/saas/scenarios/add-website/files/website/src/components/HeaderComponent.tsx +2 -2
- package/templates/saas/scenarios/add-website/files/website/src/pages/index.astro +1 -0
- package/templates/saas/scenarios/add-website/files/website/src/sections/landing.sections.tsx +2 -2
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/src/index.ts.hbs +9 -5
- package/templates/saas/skeleton/.wildo-saas/dev-framework-scripts/sync-engine.sh +46 -14
- package/templates/saas/skeleton/CLAUDE.md.hbs +12 -0
- package/templates/saas/skeleton/backend-api/package.json.hbs +1 -1
- package/templates/saas/skeleton/backend-api/src/companion-exports.ts +13 -2
- package/templates/saas/skeleton/backend-api/src/index.ts +16 -0
- package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +11 -5
- package/templates/saas/skeleton/frontend/src/engine/app-level-views/app-level-views.definitions.module.frontend.ts +1 -1
- package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +17 -0
- package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +19 -0
- package/templates/saas/skeleton/wildo.saas.config.ts.init.hbs +59 -2
- package/wildo-framework.info.json +1 -1
- package/templates/infra/k8s/internal/gotenberg/deployment.yaml.hbs +0 -46
- package/templates/infra/k8s/internal/gotenberg/service.yaml.hbs +0 -19
- package/templates/infra/k8s/middleware.yaml.hbs +0 -101
- package/templates/saas/scenarios/add-backend-provider/scenario.json +0 -17
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/favicon.png +0 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.png +0 -0
- package/templates/saas/skeleton/backend-api/src/provider-contributions.ts +0 -44
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-vars-builder.service.test.js","sourceRoot":"","sources":["../../../../../../../src/services/environment/__tests__/env-vars-builder.service.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EACL,kCAAkC,EAClC,6BAA6B,EAC7B,kBAAkB,EAClB,oBAAoB,EACpB,2BAA2B,EAC3B,cAAc,EACd,0BAA0B,EAC1B,sCAAsC,EACtC,6BAA6B,EAC7B,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,gCAAgC,EAChC,iCAAiC,EACjC,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE7E,OAAO,EAAE,s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gBACf,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,oBAAoB,CAAC,IAAI,EAAE;aACpE;SACF,CAAC,CACH,CAAC,CAAC,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2EAA2E,EAAE,GAAG,EAAE;QACnF;;;;;;;;;;;;;WAaG;QACH,MAAM,GAAG,GAAG,sBAAsB,CAAC,uBAAuB,CACxD,WAAW,EACX,SAAS,EACT,YAAY,CAAC;YACX,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,oBAAoB,CAAC,IAAI,EAAE;SACnF,CAAC,EACF,iBAAiB,CAAC;YAChB,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,oBAAoB,CAAC,IAAI,EAAE;SACnF,CAAC,CACH,CAAC;QAEF,yFAAyF;QACzF,kCAAkC;QAClC,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACvC,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,UAAU,EAAE,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { describe, expect, it } from 'vitest';\nimport { declaredProviderScope } from '~wildo-cli/services/credentials/provider-env-vars.utils';\nimport {\n ApplicationBackendBootstrapEnvKeys,\n ApplicationBackendDataEnvKeys,\n BackingServiceKind,\n BackingServiceSource,\n BOOTSTRAP_PLATFORM_SERVICES,\n DatabaseEngine,\n PLATFORM_POSTGRES_DATABASE,\n PLATFORM_POSTGRES_MAINTENANCE_DATABASE,\n PlatformInfrastructureEnvKeys,\n PlatformProcessEnvKeys,\n PlatformSecurityEnvKeys,\n PlatformWildoServices,\n WildoDeploymentRuntime,\n WildoLocationType,\n} from '@wildo-ai/platform-config-lib';\nimport {\n ApplicationBackendRuntimeEnvKeys,\n ApplicationWorkerBootstrapEnvKeys,\n ApplicationWorkerHttpSurfaceEnvKeys,\n ApplicationWorkerRuntimeEnvKeys,\n} from '@wildo-ai/platform-core-shared';\nimport { EngineCapability, RuntimeEnvironment } from '@wildo-ai/saas-models';\nimport type { RuntimeAccessDeclaration } from '@wildo-ai/platform-config-lib';\nimport { PlatformEnvVarsBuilder, assertNoStorageSecretInGeneratedEnv, assertNoPlatformCredentialInGeneratedEnv } from '~wildo-cli/services/environment/env-vars-builder.service';\nimport { IMMUDB_CREDENTIAL_ENV_KEYS } from '~wildo-cli/services/data-services/data-services.schemas';\nimport type { PlatformEnvConfigJson, PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport {\n PlatformEnvOperatingSystem,\n SetupStatus,\n type PlatformEnvironmentConfiguration,\n} from '~wildo-cli/services/environment/environment.schemas';\nimport type { ResolvedAddresses } from '~wildo-cli/services/catalog/service-address-resolver.service';\n\nconst credentials: PlatformEnvSecretsJson = {\n mongodb: {\n rootUser: 'mongo',\n rootPassword: 'mongo-password',\n },\n valkey: {\n adminUser: 'default',\n adminPassword: 'valkey-password',\n },\n postgresql: {\n adminUser: 'postgres',\n adminPassword: 'postgres-password',\n },\n rabbitmq: {\n adminUsername: 'rabbit',\n adminPassword: 'rabbit-password',\n erlangCookie: 'rabbit-cookie',\n },\n storage: {\n accessKey: 'minio',\n secretKey: 'minio-secret',\n },\n platform: {\n // NOT a substring of any legitimately-emitted app-tier value (the leak guard matches by\n // CONTAINMENT since the 5.3 review — a URL-embedded credential is as leaked as a bare one —\n // and the previous 'primary-secret' was accidentally contained in the app bootstrap fixture's\n // own 'platform-primary-secret', which production's independently-minted secrets cannot do).\n primarySecret: 'platform-tier-root-primary-secret-9f3a',\n adminSecret: 'admin-secret',\n appsManager: {\n privateKey: 'private-key',\n publicKey: 'public-key',\n },\n // Crontabs P2P signing keypair — required since the scheduled-cron JWT fix\n // (`buildAppsManagerFullEnv` fail-louds when absent). Mirrors `appsManager`.\n crontabsBatchesManager: {\n privateKey: 'crontabs-private-key',\n publicKey: 'crontabs-public-key',\n },\n },\n admin: {\n email: 'admin@example.com',\n password: 'admin-password',\n firstName: 'Ada',\n lastName: 'Lovelace',\n },\n};\n\nconst appBootstrapCredentials = {\n APPLICATION_ID: 'app-123',\n PLATFORM_APPLICATION_PRIMARY_SECRET: 'platform-primary-secret',\n PLATFORM_APPS_MANAGER_URL: 'https://apps-manager.example.com',\n APPLICATION_ENV: RuntimeEnvironment.STAGING,\n} as const;\n\nconst addresses: ResolvedAddresses = {\n infra: {\n mongodb: { host: 'mongo', port: 27017, url: 'http://mongo:27017' },\n valkey: { host: 'valkey', port: 6379, url: 'http://valkey:6379' },\n rabbitmq: { host: 'rabbitmq', port: 5672, url: 'http://rabbitmq:5672' },\n rabbitmqManagement: { host: 'rabbitmq', port: 15672, url: 'http://rabbitmq:15672' },\n minio: { host: 'minio', port: 9000, url: 'http://minio:9000' },\n gotenberg: { host: 'gotenberg', port: 3000, url: 'http://gotenberg:3000' },\n postgresql: { host: 'postgresql', port: 5432, url: 'http://postgresql:5432' },\n },\n platform: {\n appsManager: { host: 'apps-manager', port: 3000, url: 'https://apps-manager.example.com' },\n crontabsBatchesManager: { host: 'crontabs', port: 3002, url: 'https://crontabs.example.com' },\n moduleRegistry: { host: 'module-registry', port: 3003, url: 'https://module-registry.example.com' },\n },\n};\n\nfunction createEnvironment(\n overrides: Partial<PlatformEnvironmentConfiguration> = {},\n): PlatformEnvironmentConfiguration {\n return {\n name: 'preview-eu',\n locationType: WildoLocationType.REMOTE,\n runtime: WildoDeploymentRuntime.KUBERNETES,\n runtimeEnvironment: RuntimeEnvironment.STAGING,\n os: PlatformEnvOperatingSystem.LINUX,\n secretsPath: '',\n configPath: '',\n infraPath: '',\n database: {\n engine: DatabaseEngine.MONGODB,\n source: BackingServiceSource.SELF,\n },\n publicDomain: 'preview-eu.wildo.ai',\n kubernetes: {\n namespace: 'preview-eu',\n },\n remoteProvider: {\n provider: 'scaleway',\n registryEndpoint: 'rg.fr-par.scw.cloud/demo',\n },\n setupStatus: SetupStatus.NOT_STARTED,\n createdAt: new Date().toISOString(),\n updatedAt: new Date().toISOString(),\n ...overrides,\n };\n}\n\nfunction createConfig(overrides: Partial<PlatformEnvConfigJson> = {}): PlatformEnvConfigJson {\n return {\n type: WildoLocationType.REMOTE,\n runtime: WildoDeploymentRuntime.KUBERNETES,\n runtimeEnvironment: RuntimeEnvironment.STAGING,\n database: {\n engine: DatabaseEngine.MONGODB,\n source: BackingServiceSource.SELF,\n },\n infrastructure: {\n storage: {\n provider: 'minio',\n useSsl: false,\n bucket: 'bucket',\n },\n postgresql: {\n database: 'postgres',\n sslMode: 'disable',\n },\n },\n publicDomain: 'preview-eu.wildo.ai',\n kubernetes: {\n namespace: 'preview-eu',\n },\n remoteProvider: {\n provider: 'scaleway',\n registryEndpoint: 'rg.fr-par.scw.cloud/demo',\n },\n ...overrides,\n };\n}\n\ndescribe('PlatformEnvVarsBuilder', () => {\n it('emits explicit runtime semantics and ingress settings for remote apps-manager env', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n expect(env.APPLICATION_ENV).toBe(RuntimeEnvironment.STAGING);\n expect(env.K8S_NAMESPACE).toBe('preview-eu');\n });\n\n it('fails when env generation is missing explicit runtime semantics', () => {\n expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({ runtimeEnvironment: undefined }),\n createEnvironment({ runtimeEnvironment: undefined }),\n )).toThrow(/missing explicit runtime semantics/);\n });\n\n it('does not emit PostgreSQL bootstrap variables when the selected engine is MongoDB', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n database: {\n engine: DatabaseEngine.MONGODB,\n source: BackingServiceSource.SELF,\n },\n }),\n createEnvironment({\n database: {\n engine: DatabaseEngine.MONGODB,\n source: BackingServiceSource.SELF,\n },\n }),\n );\n\n expect(env.PG_HOST).toBeUndefined();\n expect(env.PG_ADMIN_USER).toBeUndefined();\n expect(env.PG_SSL_MODE).toBeUndefined();\n });\n\n it('emits OTEL_* telemetry env for the apps-manager when observability is enabled (Slice 2 Phase 5b platform-host spread)', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }),\n createEnvironment(),\n { serviceVersion: '9.9.9' },\n );\n\n expect(env.OTEL_ENABLED).toBe('true');\n expect(env.OTEL_EXPORTER_OTLP_ENDPOINT).toBe('http://localhost:4318');\n // Platform service identity (PlatformApplicationType.PLATFORM_APPS_MANAGER).\n expect(env.OTEL_SERVICE_NAME).toBeTruthy();\n expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('deployment.environment=');\n // service.version threaded from the host's package.json version (audit A-10 platform-host parity).\n expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('service.version=9.9.9');\n // Localhost dev endpoint → no auth header (no telemetryProvider threaded).\n expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBeUndefined();\n });\n\n it('omits OTEL_* for the apps-manager when observability is disabled', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({ observability: { enabled: false } }),\n createEnvironment(),\n );\n\n expect(env.OTEL_ENABLED).toBeUndefined();\n expect(env.OTEL_EXPORTER_OTLP_ENDPOINT).toBeUndefined();\n });\n\n it('emits WILDO_LLM_OBS_* from observability.llmObservability INDEPENDENTLY of the OTLP enabled gate', () => {\n // OTLP telemetry OFF + LLM-obs content capture ON: the two signals are\n // separate — LLM-obs activation is provider-selection-driven, not\n // OTEL_ENABLED-driven, so the projection must not sit behind the gate.\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n observability: {\n enabled: false,\n llmObservability: {\n captureContent: true,\n sampleRate: 0.5,\n providerEnv: { POSTHOG_HOST: 'https://eu.i.posthog.com', POSTHOG_PROJECT_ID: '42' },\n },\n },\n }),\n createEnvironment(),\n );\n\n expect(env.OTEL_ENABLED).toBeUndefined();\n expect(env.WILDO_LLM_OBS_CAPTURE_CONTENT).toBe('true');\n expect(env.WILDO_LLM_OBS_SAMPLE_RATE).toBe('0.5');\n // Non-secret provider connection env authored in checked-in config.\n expect(env.POSTHOG_HOST).toBe('https://eu.i.posthog.com');\n expect(env.POSTHOG_PROJECT_ID).toBe('42');\n });\n\n it('omits WILDO_LLM_OBS_* when llmObservability is absent or captureContent is false', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n observability: { enabled: true, llmObservability: { captureContent: false } },\n }),\n createEnvironment(),\n );\n\n expect(env.WILDO_LLM_OBS_CAPTURE_CONTENT).toBeUndefined();\n expect(env.WILDO_LLM_OBS_SAMPLE_RATE).toBeUndefined();\n });\n\n it('emits service.version for a bootstrap platform service (module-registry) when observability is enabled', () => {\n const env = PlatformEnvVarsBuilder.buildBootstrapEnv(\n PlatformWildoServices.MODULE_REGISTRY,\n credentials,\n addresses,\n createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }),\n createEnvironment(),\n '0.1.0',\n );\n\n expect(env.OTEL_ENABLED).toBe('true');\n expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('service.version=0.1.0');\n });\n\n it('can omit bootstrap admin credentials from steady-state apps-manager env', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n {\n includeBootstrapAdminCredentials: false,\n },\n );\n\n expect(env.ADMIN_EMAIL).toBeUndefined();\n expect(env.ADMIN_PASSWORD).toBeUndefined();\n expect(env.ADMIN_FIRST_NAME).toBeUndefined();\n expect(env.ADMIN_LAST_NAME).toBeUndefined();\n });\n\n it('fails closed when external storage wiring is authored', () => {\n expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n externalEndpoints: {\n storage: {\n endpoint: 's3.example.com',\n port: 443,\n },\n },\n }),\n createEnvironment(),\n )).toThrow(/External storage wiring is not supported yet/);\n });\n\n it('accepts managed MinIO storage provider metadata in externalServices', () => {\n expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n type: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n externalServices: {\n mongodb: { provider: 'self-managed' },\n valkey: { provider: 'valkey-self' },\n storage: { provider: 'minio' },\n rabbitmq: { provider: 'self-managed' },\n },\n }),\n createEnvironment({\n name: 'local',\n locationType: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n )).not.toThrow();\n });\n\n it('emits Mongo direct-connection runtime material for local application backends', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({\n database: {\n engine: DatabaseEngine.MONGODB,\n source: BackingServiceSource.SELF,\n },\n }),\n 'local',\n declaredProviderScope([]),\n {\n deploymentLocationType: WildoLocationType.LOCAL,\n appDatabaseName: 'wonder_todos',\n mongodbDirectConnection: true,\n },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.MONGODB_DIRECT_CONNECTION]).toBe('true');\n });\n\n it('emits deployment location as an explicit topology authority instead of inferring it from application behavior mode', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'preview-eu',\n declaredProviderScope([]),\n {\n applicationEnv: RuntimeEnvironment.DEVELOPMENT,\n deploymentLocationType: WildoLocationType.REMOTE,\n },\n );\n\n expect(env[ApplicationBackendBootstrapEnvKeys.APPLICATION_ENV]).toBe(RuntimeEnvironment.DEVELOPMENT);\n expect(env[ApplicationBackendBootstrapEnvKeys.DEPLOYMENT_LOCATION_TYPE]).toBe(WildoLocationType.REMOTE);\n expect(env[ApplicationBackendRuntimeEnvKeys.APPLICATION_RUNTIME_SIGNALS_HOME]).toBeUndefined();\n });\n\n it('emits an explicit app-owned runtime-signals home only when supplied by local deployment composition', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n {\n deploymentLocationType: WildoLocationType.LOCAL,\n runtimeSignalsHome: '/srv/wonder-todos/.wildo-saas/runtime-signals',\n },\n );\n expect(env[ApplicationBackendRuntimeEnvKeys.APPLICATION_RUNTIME_SIGNALS_HOME]).toBe('/srv/wonder-todos/.wildo-saas/runtime-signals');\n });\n\n it('rejects a local filesystem authority under remote deployment topology', () => {\n expect(() => PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'production',\n declaredProviderScope([]),\n {\n deploymentLocationType: WildoLocationType.REMOTE,\n runtimeSignalsHome: '/srv/wonder-todos/.wildo-saas/runtime-signals',\n },\n )).toThrow('only be emitted for explicit local deployment topology');\n });\n\n it('emits storage env vars for application backends', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_PROVIDER]).toBe('minio');\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_ENDPOINT]).toBe('minio');\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_PORT]).toBe('9000');\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_USE_SSL]).toBe('false');\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET]).toBe('bucket');\n // The credential half is deliberately ABSENT. `STORAGE_ACCESS_KEY` /\n // `STORAGE_SECRET_KEY` are the object store's ROOT credential — the same pair\n // MinIO's own container runs as — and emitting them here handed root to every\n // application backend, minion and worker. Applications now fetch short-lived,\n // prefix-confined session credentials from apps-manager at runtime.\n // See `.claude/plans/object-storage-root-credential-distribution.md`.\n // Asserted by raw key NAME, not through the enum: those members have since\n // been removed from `ApplicationBackendDataEnvKey` entirely, so an\n // enum-based assertion would no longer compile — and the raw name is the\n // stronger check anyway, proving absence from the emitted env regardless of\n // what the contract type happens to declare.\n expect(env['STORAGE_ACCESS_KEY']).toBeUndefined();\n expect(env['STORAGE_SECRET_KEY']).toBeUndefined();\n });\n\n it('emits WILDO_WORKER_<NAME>_URL for each declared worker dispatch URL (G-8 / MW4)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'staging',\n declaredProviderScope([]),\n {\n deploymentLocationType: WildoLocationType.REMOTE,\n workerUrls: {\n // camelCase bucket key; the HOST is the normalized DNS name the CLI\n // computes via `buildWorkerInternalUrl` (matches the deployed Service).\n myNodeWorker: 'http://wonder-todos-worker-my-node-worker:8081',\n // kebab-case bucket key — both normalize to the same UPPER_SNAKE env key\n 'my-rust-worker': 'http://wonder-todos-worker-my-rust-worker:8080',\n },\n },\n );\n\n // The env-key normalization (camelCase + kebab → UPPER_SNAKE) is shared with\n // the backend read-side (`wildoWorkerUrlEnvKey`), so emit and read cannot drift.\n expect(env.WILDO_WORKER_MY_NODE_WORKER_URL).toBe('http://wonder-todos-worker-my-node-worker:8081');\n expect(env.WILDO_WORKER_MY_RUST_WORKER_URL).toBe('http://wonder-todos-worker-my-rust-worker:8080');\n });\n\n it('omits worker dispatch URLs when none are provided (local / no declared workers)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(Object.keys(env).some((key) => key.startsWith('WILDO_WORKER_'))).toBe(false);\n });\n\n it('builds a minimal env-driven contract for application workers', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n appBootstrapCredentials,\n 'rustWorker',\n 'my-rust-worker',\n credentials,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n {\n runtimeEndpoints: {\n 'wonder-todos-api': {\n publicUrl: 'http://localhost:4241',\n internalUrl: 'http://localhost:4241',\n },\n },\n },\n );\n\n expect(env[ApplicationWorkerBootstrapEnvKeys.APPLICATION_ID]).toBe('app-123');\n // Worker identity — the canonical `APP_OWNED_SERVICE_*` pair. `..._NAME` is the\n // `workers` bucket key (the apps-manager worker-bootstrap path segment); `..._KIND`\n // pins it as a worker. `SERVICE_NAME` stays the separate process/observability name.\n expect(env[ApplicationWorkerBootstrapEnvKeys.APP_OWNED_SERVICE_KIND]).toBe('worker');\n expect(env[ApplicationWorkerBootstrapEnvKeys.APP_OWNED_SERVICE_NAME]).toBe('rustWorker');\n expect(env[ApplicationWorkerBootstrapEnvKeys.SERVICE_NAME]).toBe('my-rust-worker');\n expect(env[ApplicationWorkerBootstrapEnvKeys.PLATFORM_APPLICATION_PRIMARY_SECRET]).toBe(\n 'platform-primary-secret',\n );\n expect(env[ApplicationWorkerRuntimeEnvKeys.APPLICATION_RUNTIME_ENDPOINTS]).toContain('wonder-todos-api');\n expect(env.MONGODB_HOST).toBeUndefined();\n expect(env.RABBITMQ_HOST).toBeUndefined();\n expect(env.STORAGE_ACCESS_KEY).toBeUndefined();\n });\n\n it('projects the authored HTTP surface into the worker env (WORKER_HTTP_PORT + probe paths)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n appBootstrapCredentials,\n 'rustWorker',\n 'my-rust-worker',\n credentials,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n {\n http: { port: 8081, healthPath: '/healthz', readyPath: '/readyz' },\n },\n );\n\n expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_HTTP_PORT]).toBe('8081');\n expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_HEALTH_PATH]).toBe('/healthz');\n expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_READY_PATH]).toBe('/readyz');\n // metricsPath is optional (Prometheus opt-in) — omitted when not authored.\n expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_METRICS_PATH]).toBeUndefined();\n });\n\n it('emits WORKER_METRICS_PATH only when the worker opts into a scrape surface', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n appBootstrapCredentials,\n 'rustWorker',\n 'my-rust-worker',\n credentials,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n {\n http: { port: 9090, healthPath: '/health', readyPath: '/ready', metricsPath: '/metrics' },\n },\n );\n\n expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_HTTP_PORT]).toBe('9090');\n expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_METRICS_PATH]).toBe('/metrics');\n });\n\n /*\n * Issue #94. The companion was a deliberate N/A for the platform PostgreSQL env — correctly,\n * while its startup could not honor those keys. Now that it derives its adapter from\n * DATABASE_DEFAULT_ADAPTER and pre-connects PG_CONNECT_URL, withholding them is what would\n * lie: the companion would read platform rows from a Mongo database the platform stopped\n * using and report every application as unregistered.\n */\n it('emits the platform PostgreSQL env into the companion on a PostgreSQL-engined platform', () => {\n const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(\n appBootstrapCredentials,\n 'wonder-todos-dev-companion',\n credentials,\n addresses,\n createConfig({\n type: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n }),\n createEnvironment({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n backingServices: {\n [BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },\n },\n }),\n { host: '0.0.0.0', port: 4341, runtimeEndpoints: {} },\n );\n\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toContain('/wildo_platform');\n expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBe('postgresql');\n });\n\n it('writes NEITHER PostgreSQL key into the companion env on a MongoDB-engined platform', () => {\n // The no-op half: existing companion `.env` material stays byte-identical, and an adapter\n // selection is never emitted for a platform that did not declare one.\n const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(\n appBootstrapCredentials,\n 'wonder-todos-dev-companion',\n credentials,\n addresses,\n createConfig({\n type: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n createEnvironment({\n name: 'local',\n locationType: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n { host: '0.0.0.0', port: 4341, runtimeEndpoints: {} },\n );\n\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBeUndefined();\n expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBeUndefined();\n });\n\n it('emits platform-focused database and service wiring for companion api env', () => {\n const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(\n appBootstrapCredentials,\n 'wonder-todos-dev-companion',\n credentials,\n addresses,\n createConfig({\n type: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n createEnvironment({\n name: 'local',\n locationType: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n {\n host: '0.0.0.0',\n port: 4341,\n runtimeEndpoints: {\n 'wonder-todos-api': {\n publicUrl: 'http://localhost:4241',\n internalUrl: 'http://localhost:4241',\n },\n },\n },\n );\n\n expect(env[PlatformProcessEnvKeys.SERVICE_NAME]).toBe('wonder-todos-dev-companion');\n expect(env[PlatformProcessEnvKeys.HOST]).toBe('0.0.0.0');\n expect(env[PlatformProcessEnvKeys.PORT]).toBe('4341');\n expect(env[PlatformInfrastructureEnvKeys.MONGO_CONNECT_URL]).toContain('/wildo_platform');\n expect(env[PlatformInfrastructureEnvKeys.REDIS_ADMIN_PASSWORD]).toBe('valkey-password');\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_ADMIN_PASSWORD]).toBe('rabbit-password');\n expect(env[PlatformSecurityEnvKeys.PLATFORM_APPS_MANAGER_PUBLIC_KEY]).toBe('public-key');\n expect(env.APPLICATION_RUNTIME_ENDPOINTS).toContain('platform_crontabs_batches_manager');\n expect(env.APPLICATION_RUNTIME_ENDPOINTS).toContain('wonder-todos-dev-companion');\n\n /**\n * The companion also needs the APPLICATION's PostgreSQL ADDRESS, and the reason is not symmetry.\n * It loads the application's resource registry, which REFUSES to initialize when a resource\n * declares `persistenceAdapter: 'postgresql'` while `database.postgresql` is absent — and the\n * app-configuration loader builds that branch only when a HOST arrives. Without these keys the\n * companion crash-looped on \"PostgreSQL is not enabled in database config\" while the backend and\n * the minions, which DO receive them, booted the same registry fine (measured 2026-08-27).\n *\n * Address only, under the APPLICATION-backend keys the loader reads. Credentials travel through\n * `secrets.database.postgresql`; selection stays `DATABASE_DEFAULT_ADAPTER`.\n */\n expect(env[ApplicationBackendDataEnvKeys.POSTGRESQL_HOST]).toBe('postgresql');\n expect(env[ApplicationBackendDataEnvKeys.POSTGRESQL_PORT]).toBe('5432');\n });\n\n it('gives the companion storage TOPOLOGY but omits the object storage ROOT credential', () => {\n // The companion stays platform-tier for Mongo/Redis/RabbitMQ — the assertions in\n // the test above pin that, and the blanket platform-credential guard is\n // deliberately NOT applied to this builder for that reason. Storage is the one\n // axis where it is app-tier: it runs the same `WildoManagedStorageProvider` as\n // backend-api and fetches short-lived, prefix-confined STS sessions using the\n // bootstrap contract. The root pair it used to receive was NEVER READ — its only\n // effect was to park the object store's root credential in a `.env` on a\n // developer's disk for the lifetime of the dev stack.\n //\n // Topology is asserted alongside the absence deliberately: a builder that\n // dropped storage wiring wholesale would also satisfy a pure absence check, and\n // that would break the companion's file operations while looking like a fix.\n const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(\n appBootstrapCredentials,\n 'wonder-todos-dev-companion',\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_ENDPOINT]).toBe('minio');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe('bucket');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_ACCESS_KEY]).toBeUndefined();\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_SECRET_KEY]).toBeUndefined();\n // Value-level, not key-level: a future builder that emitted the same secret\n // under a different key would defeat the two assertions above.\n expect(Object.values(env)).not.toContain(credentials.storage.secretKey);\n });\n\n it('emits storage env vars for bootstrap platform services', () => {\n const env = PlatformEnvVarsBuilder.buildBootstrapEnv(\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_PROVIDER]).toBe('minio');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_ENDPOINT]).toBe('minio');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_PORT]).toBe('9000');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_USE_SSL]).toBe('false');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe('bucket');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_ACCESS_KEY]).toBe('minio');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_SECRET_KEY]).toBe('minio-secret');\n });\n\n it('emits Redis and RabbitMQ topology for the crontabs bootstrap service', () => {\n const env = PlatformEnvVarsBuilder.buildBootstrapEnv(\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n expect(env[PlatformInfrastructureEnvKeys.REDIS_HOST]).toBe('valkey');\n expect(env[PlatformInfrastructureEnvKeys.REDIS_PORT]).toBe('6379');\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_HOST]).toBe('rabbitmq');\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_PORT]).toBe('5672');\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_MANAGEMENT_PORT]).toBe('15672');\n });\n\n it('emits MONGO_CONNECT_URL for the module-registry bootstrap service ONLY (crontabs bridges platform config)', () => {\n const registryEnv = PlatformEnvVarsBuilder.buildBootstrapEnv(\n PlatformWildoServices.MODULE_REGISTRY,\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n const crontabsEnv = PlatformEnvVarsBuilder.buildBootstrapEnv(\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n // module-registry rides the framework's `StartApplicationBackendService`, which opens the\n // PLATFORM_MANAGEMENT connection from `MONGO_CONNECT_URL` → it MUST be provisioned.\n expect(registryEnv[PlatformInfrastructureEnvKeys.MONGO_CONNECT_URL]).toContain('/wildo_platform');\n expect(registryEnv[PlatformInfrastructureEnvKeys.MONGO_PLATFORM_URL]).toContain('/wildo_platform');\n // crontabs uses a custom two-phase startup that bridges platform config for its Mongo access and\n // never reads `MONGO_CONNECT_URL`, so the emission is scoped OUT of it.\n expect(crontabsEnv[PlatformInfrastructureEnvKeys.MONGO_CONNECT_URL]).toBeUndefined();\n });\n\n // ==========================================================================\n // Authored backingServices propagation (Slice 3.2 — F-23)\n // ==========================================================================\n\n describe('backingServices overrides', () => {\n it('emits REDIS_DATABASE / RABBITMQ_VHOST for apps-manager when authored', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n backingServices: {\n [BackingServiceKind.REDIS]: {\n source: BackingServiceSource.SELF,\n database: 3,\n },\n [BackingServiceKind.RABBITMQ]: {\n source: BackingServiceSource.SELF,\n vhost: '/wonder',\n },\n },\n }),\n createEnvironment(),\n );\n\n expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('3');\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBe('/wonder');\n });\n\n it('omits REDIS_DATABASE / RABBITMQ_VHOST when not authored', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBeUndefined();\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBeUndefined();\n });\n\n it('uses authored mongodb.database as application MONGODB_DATABASE when no override is supplied', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({\n backingServices: {\n [BackingServiceKind.MONGODB]: {\n source: BackingServiceSource.SELF,\n database: 'wonder-todos-db',\n },\n [BackingServiceKind.REDIS]: {\n source: BackingServiceSource.SELF,\n database: 5,\n },\n [BackingServiceKind.RABBITMQ]: {\n source: BackingServiceSource.SELF,\n vhost: '/wonder',\n },\n },\n }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('wonder-todos-db');\n expect(env[ApplicationBackendDataEnvKeys.REDIS_DATABASE]).toBe('5');\n expect(env[ApplicationBackendDataEnvKeys.RABBITMQ_VHOST]).toBe('/wonder');\n });\n\n it('lets explicit appDatabaseName override the authored mongodb.database', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({\n backingServices: {\n [BackingServiceKind.MONGODB]: {\n source: BackingServiceSource.SELF,\n database: 'wonder-todos-db',\n },\n },\n }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'explicit_app' },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('explicit_app');\n });\n\n // ========================================================================\n // Slice 3.6 — `wildo.saas.config.dataServices` projection (F-43)\n //\n // These tests pin the contract for the three `dataServices` fields wired\n // end-to-end in Slice 3.6:\n // - `dataServices.redis.keyPrefix` → REDIS_KEY_PREFIX env (REPLACE\n // semantics for the legacy username-derived prefix in RedisService)\n // - `dataServices.s3.bucketPrefix` → STORAGE_BUCKET_PREFIX env\n // (PREPEND semantics for object keys in WildoManagedStorageProvider)\n // - `dataServices.rabbitmq.vhost` → DELETED (vhost is an\n // infra/topology concern; only the infra-side seam emits the env)\n //\n // The fields are caller-supplied options (the env builder does not\n // import `WildoSaasConfig` — they are threaded by `app-bootstrap.service`\n // from `NormalizedSaasRuntimeDescriptor`).\n // ========================================================================\n\n it('emits REDIS_KEY_PREFIX when dataServices.redis.keyPrefix is authored', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL, redisKeyPrefix: 'wonder-todos:' },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBe('wonder-todos:');\n });\n\n it('omits REDIS_KEY_PREFIX when dataServices.redis.keyPrefix is unset', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBeUndefined();\n });\n\n it('emits STORAGE_BUCKET_PREFIX when dataServices.s3.bucketPrefix is authored', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL, storageBucketPrefix: 'wonder-todos' },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBe('wonder-todos');\n });\n\n it('omits STORAGE_BUCKET_PREFIX when dataServices.s3.bucketPrefix is unset', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBeUndefined();\n });\n\n it('emits both REDIS_KEY_PREFIX and STORAGE_BUCKET_PREFIX side-by-side without conflict', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n {\n deploymentLocationType: WildoLocationType.LOCAL,\n redisKeyPrefix: 'wonder-todos:',\n storageBucketPrefix: 'wonder-todos',\n appDatabaseName: 'wonder-todos',\n },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBe('wonder-todos:');\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBe('wonder-todos');\n expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('wonder-todos');\n });\n\n it('emits REDIS_KEY_PREFIX even when no valkey infra address is wired (dataServices is independent of infra)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n { ...addresses, infra: { ...addresses.infra, valkey: null } },\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL, redisKeyPrefix: 'wonder-todos:' },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.REDIS_HOST]).toBeUndefined();\n expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBe('wonder-todos:');\n });\n\n it('emits STORAGE_BUCKET_PREFIX even when no minio infra address is wired (dataServices is independent of infra)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n { ...addresses, infra: { ...addresses.infra, minio: null } },\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL, storageBucketPrefix: 'wonder-todos' },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_PROVIDER]).toBeUndefined();\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBe('wonder-todos');\n });\n\n it('emits REDIS_DATABASE / RABBITMQ_VHOST for the crontabs bootstrap service when authored', () => {\n const env = PlatformEnvVarsBuilder.buildBootstrapEnv(\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n credentials,\n addresses,\n createConfig({\n backingServices: {\n [BackingServiceKind.REDIS]: {\n source: BackingServiceSource.SELF,\n database: 7,\n },\n [BackingServiceKind.RABBITMQ]: {\n source: BackingServiceSource.SELF,\n vhost: '/crontabs',\n },\n },\n }),\n createEnvironment(),\n );\n\n expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('7');\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBe('/crontabs');\n });\n });\n\n // ==========================================================================\n // Wonder-todos infra snapshot — end-to-end propagation (Slice 3.2 — F-23)\n //\n // This test pins the contract by mirroring the authored fields of\n // `examples/wonder-todos/infrastructure/local/wildo.infra.local.config.ts`\n // and asserting they all land in the runtime env vars produced for the\n // application backend AND the platform-init / apps-manager surfaces.\n //\n // We reproduce the projection that `sync.command.buildConfigJsonFromInfraEnvConfig`\n // performs (the function is module-private so we cannot import it directly):\n // - `infrastructure.storage.bucket` <= `backingServices.s3.bucket`\n // - `backingServices` is persisted as-is into the snapshot.\n // ==========================================================================\n describe('wonder-todos local infra snapshot (end-to-end)', () => {\n const wonderTodosBackingServices = {\n [BackingServiceKind.MONGODB]: {\n source: BackingServiceSource.SELF,\n database: 'wonder-todos-db',\n host: 'localhost',\n port: 27017,\n },\n [BackingServiceKind.REDIS]: {\n source: BackingServiceSource.SELF,\n host: 'localhost',\n port: 6379,\n database: 0,\n },\n [BackingServiceKind.RABBITMQ]: {\n source: BackingServiceSource.SELF,\n host: 'localhost',\n port: 5672,\n vhost: 'wonder-todos',\n },\n [BackingServiceKind.S3]: {\n source: BackingServiceSource.SELF,\n provider: 'minio' as const,\n endpoint: 'http://localhost:9000',\n bucket: 'wonder-todos-local',\n },\n [BackingServiceKind.GOTENBERG]: { source: BackingServiceSource.SELF },\n [BackingServiceKind.CLAMAV]: { source: BackingServiceSource.SELF },\n };\n\n function makeWonderTodosConfig(overrides: Partial<PlatformEnvConfigJson> = {}): PlatformEnvConfigJson {\n return createConfig({\n type: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n infrastructure: {\n storage: {\n provider: 'minio',\n useSsl: false,\n bucket: 'wonder-todos-local',\n },\n postgresql: {\n database: 'wonder-todos',\n sslMode: 'disable',\n },\n },\n backingServices: wonderTodosBackingServices,\n kubernetes: undefined,\n remoteProvider: undefined,\n ...overrides,\n });\n }\n\n function makeWonderTodosEnv(): PlatformEnvironmentConfiguration {\n return createEnvironment({\n name: 'local',\n locationType: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n kubernetes: undefined,\n remoteProvider: undefined,\n backingServices: wonderTodosBackingServices,\n });\n }\n\n it('propagates every authored backingServices field to the application backend env', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n makeWonderTodosConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('wonder-todos-db');\n expect(env[ApplicationBackendDataEnvKeys.REDIS_DATABASE]).toBe('0');\n expect(env[ApplicationBackendDataEnvKeys.RABBITMQ_VHOST]).toBe('wonder-todos');\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET]).toBe('wonder-todos-local');\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_PROVIDER]).toBe('minio');\n });\n\n it('propagates authored vhost / redis-db / bucket to the apps-manager env', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n makeWonderTodosConfig(),\n makeWonderTodosEnv(),\n );\n\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBe('wonder-todos');\n expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('0');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe('wonder-todos-local');\n });\n\n it('propagates authored vhost / redis-db to the crontabs bootstrap env', () => {\n const crontabsEnv = PlatformEnvVarsBuilder.buildBootstrapEnv(\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n credentials,\n addresses,\n makeWonderTodosConfig(),\n makeWonderTodosEnv(),\n );\n\n expect(crontabsEnv[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBe('wonder-todos');\n expect(crontabsEnv[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('0');\n });\n });\n\n /**\n * Slice 3.5 — `infra.logging.*` projection.\n *\n * Pins the middle of the data flow:\n *\n * `WildoInfraEnvConfig.logging` → `PlatformEnvConfigJson.logging`\n * (persisted) → `emitLoggingEnv` (HERE) → `LOG_LEVEL` /\n * `LOG_FORMATTED_CONSOLE_ERRORS` env vars → `LoggerService`.\n *\n * The schema-side round-trip is pinned by\n * `define-infra-env-config.unimplemented.test.ts`; the consumer-side\n * read is pinned by `logger.service.env-wiring.test.ts`. This block\n * pins the projection step that is invisible to those two tests.\n */\n describe('Slice 3.5 — logging env projection', () => {\n it('emits LOG_LEVEL and LOG_FORMATTED_CONSOLE_ERRORS for apps-manager when authored', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n logging: {\n level: 'warn',\n formattedConsoleErrors: true,\n },\n }),\n createEnvironment(),\n );\n\n expect(env.LOG_LEVEL).toBe('warn');\n expect(env.LOG_FORMATTED_CONSOLE_ERRORS).toBe('true');\n });\n\n it('omits LOG_LEVEL / LOG_FORMATTED_CONSOLE_ERRORS when logging block is absent (no false defaults)', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n expect(env.LOG_LEVEL).toBeUndefined();\n expect(env.LOG_FORMATTED_CONSOLE_ERRORS).toBeUndefined();\n });\n\n it('also emits the logging vars on the application-backend surface', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({\n logging: {\n level: 'debug',\n formattedConsoleErrors: false,\n },\n }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.LOG_LEVEL).toBe('debug');\n expect(env.LOG_FORMATTED_CONSOLE_ERRORS).toBe('false');\n });\n });\n\n /**\n * Per-env provider selection override — `infra.providerSelection` →\n * `PlatformEnvConfigJson.providerSelection` → `emitProviderSelectionEnv`\n * (serialized JSON) → `WILDO_PROVIDER_SELECTION_OVERRIDES`, read by\n * `ExternalProvidersRegistryBackendService` to override the app-wide\n * `wildo.saas.config.ts` selection per environment.\n */\n /**\n * Per-env documentation-site origins — `infra.documentationSite` →\n * `PlatformEnvConfigJson.documentationSite` → `emitDocumentationSiteEnv` → the three\n * `WILDO_DOCS_*` vars, read by the application's `docusaurus.config.ts`.\n *\n * Emitted as three scalars rather than one serialized payload (the `providerSelection`\n * shape): the docs config reads each directly, and a JSON blob would force it to parse a\n * payload to recover three strings.\n */\n describe('per-env documentation-site origins (WILDO_DOCS_*) projection', () => {\n it('emits each authored origin under its own var', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({\n documentationSite: {\n apiBaseUrl: 'https://api.example.com',\n appUrl: 'https://app.example.com',\n frontendServiceName: 'wonder-todos-docs',\n },\n }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.WILDO_DOCS_API_BASE_URL).toBe('https://api.example.com');\n expect(env.WILDO_DOCS_APP_URL).toBe('https://app.example.com');\n expect(env.WILDO_DOCS_FRONTEND_SERVICE_NAME).toBe('wonder-todos-docs');\n });\n\n it('omits every var when documentationSite is absent (no false default)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.WILDO_DOCS_API_BASE_URL).toBeUndefined();\n expect(env.WILDO_DOCS_APP_URL).toBeUndefined();\n expect(env.WILDO_DOCS_FRONTEND_SERVICE_NAME).toBeUndefined();\n });\n\n it('emits ONLY the authored members, leaving the rest to the docs config defaults', () => {\n // A partially-authored block is the realistic case: an environment may pin the API\n // origin while the others stay local. Emitting an empty string for the unauthored\n // ones would be worse than omitting them — the docs config treats PRESENCE as an\n // explicit binding and would compile an empty origin into the bundle.\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({ documentationSite: { apiBaseUrl: 'https://api.example.com' } }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.WILDO_DOCS_API_BASE_URL).toBe('https://api.example.com');\n expect(env.WILDO_DOCS_APP_URL).toBeUndefined();\n expect(env.WILDO_DOCS_FRONTEND_SERVICE_NAME).toBeUndefined();\n });\n });\n\n describe('per-env provider selection override (WILDO_PROVIDER_SELECTION_OVERRIDES) projection', () => {\n it('emits the serialized override on the application-backend surface when authored', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({\n providerSelection: {\n [EngineCapability.EMAIL_TRANSACTIONAL]: { primary: 'email-preview' },\n },\n }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.WILDO_PROVIDER_SELECTION_OVERRIDES).toBeDefined();\n expect(JSON.parse(env.WILDO_PROVIDER_SELECTION_OVERRIDES!)).toEqual({\n [EngineCapability.EMAIL_TRANSACTIONAL]: { primary: 'email-preview' },\n });\n });\n\n it('omits the var when providerSelection is absent (no false default)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.WILDO_PROVIDER_SELECTION_OVERRIDES).toBeUndefined();\n });\n\n it('omits the var when providerSelection is an empty object', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({ providerSelection: {} }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.WILDO_PROVIDER_SELECTION_OVERRIDES).toBeUndefined();\n });\n });\n\n /**\n * Slice 2 Phase 5 — `infra.observability.*` → `OTEL_*` projection.\n *\n * `WildoInfraEnvConfig.observability` → `PlatformEnvConfigJson.observability`\n * → `emitObservabilityEnv` (HERE) → `OTEL_ENABLED` / `OTEL_EXPORTER_OTLP_ENDPOINT`\n * / `OTEL_SERVICE_NAME` / `OTEL_RESOURCE_ATTRIBUTES`, read by the `otel-preload`.\n *\n * The auth-header cases (Phase 5b) exercise the provider-agnostic resolver: the\n * provisioned telemetry token in `providerEnv` identifies the OBSERVABILITY_TELEMETRY\n * provider (betterstack, registered with `otlpAuth: Bearer {token}`) and is formatted\n * into `OTEL_EXPORTER_OTLP_HEADERS` — no provider named in the CLI.\n */\n describe('Slice 2 Phase 5 — observability (OTEL_*) env projection', () => {\n it('emits OTEL_* on the application-backend surface when the observability block is enabled', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.OTEL_ENABLED).toBe('true');\n expect(env.OTEL_EXPORTER_OTLP_ENDPOINT).toBe('http://localhost:4318');\n expect(env.OTEL_SERVICE_NAME).toBe('wonder-todos-api');\n expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('deployment.environment=');\n });\n\n it('omits OTEL_* when the observability block is absent or disabled (no false defaults)', () => {\n const absent = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL },\n );\n expect(absent.OTEL_ENABLED).toBeUndefined();\n\n const disabled = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials, 'wonder-todos-api', credentials, addresses,\n createConfig({ observability: { enabled: false } }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL },\n );\n expect(disabled.OTEL_ENABLED).toBeUndefined();\n });\n\n it('emits OTEL_EXPORTER_OTLP_HEADERS from a provisioned telemetry provider token (Phase 5b)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n { ...credentials, providerEnv: { BETTERSTACK_SOURCE_TOKEN: 'tok_test_123' } },\n addresses,\n createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBe('Authorization=Bearer tok_test_123');\n });\n\n it('omits OTEL_EXPORTER_OTLP_HEADERS when no telemetry token is provisioned (no-auth collector)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n { ...credentials, providerEnv: {} },\n addresses,\n createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBeUndefined();\n });\n });\n\n /**\n * `credentials.providerEnv` is read at runtime via\n * `ExternalProvidersRegistryBackendService.getProviderSecret/getProviderApiKey`\n * (in `saas-backend-lib`), which calls `process.env[envVarName]`. Application\n * backends, env-driven workers, and the dev companion call those methods;\n * apps-manager does not. The keys therefore MUST NOT appear in apps-manager env.\n */\n describe('provider env canonical sinks', () => {\n const credentialsWithProviders: PlatformEnvSecretsJson = {\n ...credentials,\n providerEnv: {\n OPENAI_API_KEY: 'sk-openai-test',\n ANTHROPIC_API_KEY: 'sk-ant-test',\n RESEND_API_KEY: 're_test',\n },\n };\n\n const PROVIDER_KEYS = ['OPENAI_API_KEY', 'ANTHROPIC_API_KEY', 'RESEND_API_KEY'] as const;\n /**\n * The provider REFS whose secrets those keys are.\n *\n * Application-tier builders now require a declared scope and fail CLOSED\n * without one, so these tests supply it explicitly. That does not weaken the\n * invariant they exist for — which is NEGATIVE: provider secrets must never\n * reach apps-manager or a bootstrap service. It narrows the positive half\n * from \"every application runtime gets every key\" to \"a runtime gets the keys\n * it DECLARED\", which is the point of `providers.scopes.*`.\n */\n const PROVIDER_REFS = ['openai', 'anthropic', 'resend'] as const;\n\n it('does NOT emit any provider env key in apps-manager full env', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentialsWithProviders,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n for (const key of PROVIDER_KEYS) {\n expect(env[key]).toBeUndefined();\n }\n });\n\n it.each(BOOTSTRAP_PLATFORM_SERVICES)(\n 'does NOT emit any provider env key in bootstrap service env (%s)',\n (service) => {\n const env = PlatformEnvVarsBuilder.buildBootstrapEnv(\n service,\n credentialsWithProviders,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n for (const key of PROVIDER_KEYS) {\n expect(env[key]).toBeUndefined();\n }\n },\n );\n\n it('emits every provider env key in application backend env (canonical sink)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentialsWithProviders,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope(PROVIDER_REFS),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.OPENAI_API_KEY).toBe('sk-openai-test');\n expect(env.ANTHROPIC_API_KEY).toBe('sk-ant-test');\n expect(env.RESEND_API_KEY).toBe('re_test');\n });\n\n it('emits every provider env key in companion api env (canonical sink — companion runs ExternalProvidersRegistryBackendService)', () => {\n const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(\n appBootstrapCredentials,\n 'wonder-todos-dev-companion',\n credentialsWithProviders,\n addresses,\n createConfig({\n type: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n createEnvironment({\n name: 'local',\n locationType: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n );\n\n expect(env.OPENAI_API_KEY).toBe('sk-openai-test');\n expect(env.ANTHROPIC_API_KEY).toBe('sk-ant-test');\n expect(env.RESEND_API_KEY).toBe('re_test');\n });\n\n it('emits every provider env key in application worker env (canonical sink for non-Node workers)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n appBootstrapCredentials,\n 'rustWorker',\n 'my-rust-worker',\n credentialsWithProviders,\n createConfig(),\n 'local',\n declaredProviderScope(PROVIDER_REFS),\n {},\n );\n\n expect(env.OPENAI_API_KEY).toBe('sk-openai-test');\n expect(env.ANTHROPIC_API_KEY).toBe('sk-ant-test');\n expect(env.RESEND_API_KEY).toBe('re_test');\n });\n\n it('materializes each provider key in exactly three sinks (backend + worker + companion) across every platform/bootstrap surface', () => {\n const appsMgrEnv = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentialsWithProviders, addresses, createConfig(), createEnvironment(),\n );\n const bootstrapEnvs = BOOTSTRAP_PLATFORM_SERVICES.map((service) =>\n PlatformEnvVarsBuilder.buildBootstrapEnv(\n service, credentialsWithProviders, addresses, createConfig(), createEnvironment(),\n ),\n );\n const backendEnv = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials, 'wonder-todos-api', credentialsWithProviders, addresses, createConfig(), 'local', declaredProviderScope(PROVIDER_REFS), { deploymentLocationType: WildoLocationType.LOCAL },\n );\n const workerEnv = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n appBootstrapCredentials,\n 'rustWorker',\n 'my-rust-worker',\n credentialsWithProviders,\n createConfig(),\n 'local',\n declaredProviderScope(PROVIDER_REFS),\n {},\n );\n const companionEnv = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(\n appBootstrapCredentials,\n 'wonder-todos-dev-companion',\n credentialsWithProviders,\n addresses,\n createConfig({\n type: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n createEnvironment({\n name: 'local',\n locationType: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n );\n\n for (const key of PROVIDER_KEYS) {\n const sinks = [\n appsMgrEnv[key],\n ...bootstrapEnvs.map((env) => env[key]),\n backendEnv[key],\n workerEnv[key],\n companionEnv[key],\n ].filter((value) => value !== undefined);\n expect(\n sinks.length,\n `Provider key '${key}' must materialize in exactly THREE sinks (backend + worker + companion). Got: ${sinks.length}.`,\n ).toBe(3);\n }\n });\n });\n\n /**\n * immudb state-signature pinning — the audit client pins `IMMUDB_STATE_PUBLIC_KEY` to\n * cryptographically reject a whole-server substitution. The key is FRAMEWORK-GENERATED\n * (`credentials.immudb.stateSigningPublicKey`, never operator-typed), so `env-vars-builder`\n * injects it into every backend runtime's env — but ONLY when the immudb audit provider is\n * configured (its `IMMUDB_HOST` is present in providerEnv), and NEVER the private half.\n */\n describe('immudb state-signing public-key delivery', () => {\n const PUBLIC_KEY = '-----BEGIN PUBLIC KEY-----\\nMFkwEwexamplepub\\n-----END PUBLIC KEY-----\\n';\n const PRIVATE_KEY = '-----BEGIN EC PRIVATE KEY-----\\nMHcCAQEEexamplepriv\\n-----END EC PRIVATE KEY-----\\n';\n const credentialsWithImmudb = (providerEnv: Record<string, string>): PlatformEnvSecretsJson => ({\n ...credentials,\n immudb: { stateSigningPrivateKey: PRIVATE_KEY, stateSigningPublicKey: PUBLIC_KEY },\n providerEnv,\n });\n\n it('injects IMMUDB_STATE_PUBLIC_KEY (public half only) into the app backend env when immudb is configured', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentialsWithImmudb({ [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.HOST]: 'immudb', [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.PASSWORD]: 'pw' }),\n addresses,\n createConfig(),\n 'local',\n // `immudb` must be in scope for its state-signing PUBLIC key to be\n // delivered — the key is attributable to that provider, so a runtime that\n // does not declare immudb correctly receives nothing for it.\n declaredProviderScope(['immudb']),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);\n // The PRIVATE key is SERVER-side only — it must NEVER surface in an app runtime's env.\n expect(env[IMMUDB_CREDENTIAL_ENV_KEYS.SERVER.STATE_SIGNING_KEY]).toBeUndefined();\n expect(Object.values(env)).not.toContain(PRIVATE_KEY);\n });\n\n it('also delivers the public key to the companion and worker runtimes', () => {\n const providerEnv = { [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.HOST]: 'immudb' };\n const workerEnv = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n appBootstrapCredentials, 'rustWorker', 'my-rust-worker', credentialsWithImmudb(providerEnv), createConfig(), 'local', declaredProviderScope(['immudb']), {},\n );\n const companionEnv = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(\n appBootstrapCredentials,\n 'wonder-todos-dev-companion',\n credentialsWithImmudb(providerEnv),\n addresses,\n createConfig({ type: WildoLocationType.LOCAL, runtime: WildoDeploymentRuntime.DOCKER_COMPOSE, runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT }),\n createEnvironment({ name: 'local', locationType: WildoLocationType.LOCAL, runtime: WildoDeploymentRuntime.DOCKER_COMPOSE, runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT }),\n );\n\n expect(workerEnv[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);\n expect(companionEnv[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);\n });\n\n it('does NOT inject the public key when the immudb provider is not configured (no IMMUDB_HOST)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentialsWithImmudb({ OPENAI_API_KEY: 'sk-openai-test' }),\n addresses,\n createConfig(),\n 'local',\n // `immudb` must be in scope for its state-signing PUBLIC key to be\n // delivered — the key is attributable to that provider, so a runtime that\n // does not declare immudb correctly receives nothing for it.\n declaredProviderScope(['immudb']),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBeUndefined();\n });\n });\n\n /**\n * `buildRuntimeProviderEnv` is the public projection of the SAME provider-env\n * map merged into every backend/companion/worker runtime — the authority\n * `wildo config sync` reuses to emit the standalone provider-secrets sink.\n * These pins guarantee the sink stays byte-identical to the runtime provider\n * env (authored `providerEnv` verbatim + the framework-injected immudb key),\n * so a future refactor cannot let the sink drift from what the backend gets.\n */\n describe('buildRuntimeProviderEnv (provider-secrets sink authority)', () => {\n const PUBLIC_KEY = '-----BEGIN PUBLIC KEY-----\\nMFkwEwexamplepub\\n-----END PUBLIC KEY-----\\n';\n\n it('returns the authored providerEnv verbatim (incl. base64-ish API keys)', () => {\n const providerEnv = { ANTHROPIC_API_KEY: 'sk-ant-abc==', OPENAI_API_KEY: 'sk-openai-xyz' };\n const result = PlatformEnvVarsBuilder.buildRuntimeProviderEnv({ ...credentials, providerEnv });\n\n expect(result).toEqual(providerEnv);\n });\n\n it('does not mutate the source credentials.providerEnv', () => {\n const providerEnv = { ANTHROPIC_API_KEY: 'sk-ant-abc' };\n const result = PlatformEnvVarsBuilder.buildRuntimeProviderEnv({ ...credentials, providerEnv });\n\n result.INJECTED = 'x';\n expect(providerEnv).toEqual({ ANTHROPIC_API_KEY: 'sk-ant-abc' });\n });\n\n it('injects the framework-generated immudb state key when immudb is configured (a naive providerEnv copy would drop it)', () => {\n const result = PlatformEnvVarsBuilder.buildRuntimeProviderEnv({\n ...credentials,\n immudb: { stateSigningPrivateKey: 'priv', stateSigningPublicKey: PUBLIC_KEY },\n providerEnv: { [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.HOST]: 'immudb', ANTHROPIC_API_KEY: 'sk-ant' },\n });\n\n expect(result[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);\n expect(result.ANTHROPIC_API_KEY).toBe('sk-ant');\n });\n\n it('returns an empty map when no providers are authored', () => {\n expect(PlatformEnvVarsBuilder.buildRuntimeProviderEnv({ ...credentials, providerEnv: {} })).toEqual({});\n });\n });\n});\n\n// The storage values in the shared `credentials` fixture above. Named here so the\n// assertions below can prove the guard never prints them.\nconst TEST_STORAGE_ACCESS_KEY = 'minio';\nconst TEST_STORAGE_SECRET_KEY = 'minio-secret';\n\n/** Build an application-tier env through the real builder. */\nfunction buildBackendEnvForTest(): Record<string, string> {\n return PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({}),\n 'local',\n declaredProviderScope([]),\n {\n deploymentLocationType: WildoLocationType.LOCAL,\n appDatabaseName: 'wonder_todos',\n },\n );\n}\n\ndescribe('PlatformEnvVarsBuilder — object storage ROOT credential is not distributed (storage plan R5)', () => {\n it('omits STORAGE_ACCESS_KEY / STORAGE_SECRET_KEY from application-tier env', () => {\n // Those two are the object store's ROOT credential — the same pair assigned\n // to MINIO_ROOT_USER / MINIO_ROOT_PASSWORD. Applications now obtain\n // short-lived, prefix-confined session credentials from apps-manager.\n const env = buildBackendEnvForTest();\n\n expect(env.STORAGE_ACCESS_KEY).toBeUndefined();\n expect(env.STORAGE_SECRET_KEY).toBeUndefined();\n });\n\n it('still emits the NON-secret storage wiring the adapter needs', () => {\n // The removal must be surgical: endpoint/bucket/provider are not secrets and\n // the storage adapter cannot address the store without them. Deleting them\n // too would disable file storage rather than secure it.\n const env = buildBackendEnvForTest();\n\n expect(env.STORAGE_ENDPOINT).toBeDefined();\n expect(env.STORAGE_BUCKET).toBeDefined();\n expect(env.STORAGE_PROVIDER).toBeDefined();\n });\n\n it('THROWS if the root SECRET reaches application env under ANY key name', () => {\n // The regression gate, tested against the guard directly because there is\n // deliberately no production path that leaks — which is the point.\n //\n // The leak uses a DIFFERENT key name on purpose: a key-name check would be\n // defeated exactly this way, so the guard compares VALUES.\n expect(() =>\n assertNoStorageSecretInGeneratedEnv(\n { SOME_UNRELATED_KEY: TEST_STORAGE_SECRET_KEY },\n credentials,\n 'testBuilder',\n ),\n ).toThrow(/emitted platform-tier credentials/);\n });\n\n it('passes a clean env, so the guard is not vacuously green', () => {\n // Without this, a guard that threw on everything — or on nothing — would look\n // identical to a working one in the test above.\n expect(() =>\n assertNoStorageSecretInGeneratedEnv(\n { STORAGE_ENDPOINT: 'minio', STORAGE_BUCKET: 'bucket' },\n credentials,\n 'testBuilder',\n ),\n ).not.toThrow();\n });\n\n it('never puts the secret VALUE in the error message', () => {\n // An error containing the secret would write it into CI logs — a worse place\n // than the env file it was caught in.\n try {\n assertNoStorageSecretInGeneratedEnv(\n { SOME_UNRELATED_KEY: TEST_STORAGE_SECRET_KEY },\n credentials,\n 'testBuilder',\n );\n throw new Error('expected the guard to throw');\n } catch (error) {\n const message = (error as Error).message;\n expect(message).not.toContain(TEST_STORAGE_ACCESS_KEY);\n expect(message).not.toContain(TEST_STORAGE_SECRET_KEY);\n // …but it must name the offending KEY, or the failure is unactionable.\n expect(message).toContain('SOME_UNRELATED_KEY');\n }\n });\n});\n\ndescribe('assertNoStorageSecretInGeneratedEnv — the forbidden set is the SECRET only, and has no key exemptions', () => {\n it('does NOT fire on the access key, which is an identifier rather than a credential', () => {\n // The access key is the principal's NAME: for MinIO conventionally the literal\n // `minio` (also the provider name and the compose hostname), and in this\n // repository's generated secrets a short shared admin username that is\n // byte-identical to `mongodb.rootUser` and `rabbitmq.adminUsername`. It grants\n // nothing on its own.\n //\n // It used to be in the forbidden set, and that forced an exemption list of env\n // KEY NAMES to suppress the resulting false positives — re-introducing a\n // by-name escape hatch into a guard whose entire premise is that names are\n // defeatable. Dropping the access key removed the false positives and the\n // escape hatch together.\n expect(() =>\n assertNoStorageSecretInGeneratedEnv(\n {\n STORAGE_PROVIDER: TEST_STORAGE_ACCESS_KEY,\n STORAGE_ENDPOINT: TEST_STORAGE_ACCESS_KEY,\n SOME_OTHER_KEY: TEST_STORAGE_ACCESS_KEY,\n },\n credentials,\n 'testBuilder',\n ),\n ).not.toThrow();\n });\n\n it('fires on the SECRET even under a key that used to be exempt', () => {\n // The load-bearing consequence of removing the exemption list. Previously\n // `STORAGE_ENDPOINT` was skipped entirely, so a secret emitted under it would\n // have passed. No key is skipped now.\n expect(() =>\n assertNoStorageSecretInGeneratedEnv(\n { STORAGE_ENDPOINT: TEST_STORAGE_SECRET_KEY },\n credentials,\n 'testBuilder',\n ),\n ).toThrow(/STORAGE_ENDPOINT/);\n });\n\n it('fires on the SECRET under its own canonical key name', () => {\n expect(() =>\n assertNoStorageSecretInGeneratedEnv(\n { STORAGE_SECRET_KEY: TEST_STORAGE_SECRET_KEY },\n credentials,\n 'testBuilder',\n ),\n ).toThrow(/STORAGE_SECRET_KEY/);\n });\n});\n\ndescribe('assertNoStorageSecretInGeneratedEnv — every application-tier builder is a call site', () => {\n // `buildApplicationBackendEnv` and `buildApplicationWorkerEnv` each build an env\n // from scratch and so each need the guard; `buildApplicationMinionEnv` delegates\n // to the backend builder and inherits it. The worker was missed when the guard\n // first landed — it emits no STORAGE_* today, but `resolveRuntimeProviderEnv`\n // fans values out of the same `credentials` object the root pair lives in.\n // See `.claude/rules/invariant-call-site-enumeration.md`.\n const buildWorkerEnv = (workerCredentials: PlatformEnvSecretsJson, scopedProviderRefs: string[]) =>\n PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n appBootstrapCredentials,\n 'myRustWorker',\n 'wonder-todos-my-rust-worker',\n workerCredentials,\n createConfig({}),\n 'local',\n declaredProviderScope(scopedProviderRefs),\n {},\n );\n\n it('the worker builder produces a clean env today', () => {\n // Positive control: without this, the throwing test below could not be\n // distinguished from a builder that fails for any input.\n expect(() => buildWorkerEnv(credentials, [])).not.toThrow();\n });\n\n it('the worker builder REFUSES when the storage secret reaches its env through a provider value', () => {\n // Drives the guard through the only channel by which the worker env can\n // currently carry arbitrary values out of `credentials` — the scoped provider\n // fan-out. Asserting the OUTPUT instead would pass whether or not the guard is\n // wired, which is precisely the mistake that let the worker call site go\n // missing in the first place.\n const leaking: PlatformEnvSecretsJson = {\n ...credentials,\n providerEnv: { OPENAI_API_KEY: TEST_STORAGE_SECRET_KEY },\n };\n\n expect(() => buildWorkerEnv(leaking, ['openai'])).toThrow(\n /buildApplicationWorkerEnv emitted platform-tier credentials/,\n );\n });\n});\n\ndescribe('PlatformEnvVarsBuilder — provider secrets are scoped to the declared providers (minions plan R6 / F19)', () => {\n const PROVIDER_ENV = {\n OPENAI_API_KEY: 'sk-openai-xxxxxxxx',\n ANTHROPIC_API_KEY: 'sk-anthropic-xxxxxxxx',\n STRIPE_SECRET_KEY: 'sk-stripe-xxxxxxxx',\n RESEND_API_KEY: 're-resend-xxxxxxxx',\n };\n\n function buildScoped(scopedProviderRefs: readonly string[]): Record<string, string> {\n return PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n { ...credentials, providerEnv: PROVIDER_ENV },\n addresses,\n createConfig({}),\n 'local',\n declaredProviderScope(scopedProviderRefs),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n }\n\n it('gives a runtime scoped to openai ONLY the openai key', () => {\n // The finding in one assertion: a marketing-scraper minion declared with\n // `openai` was receiving the application's Stripe secret key.\n const env = buildScoped(['openai']);\n\n expect(env.OPENAI_API_KEY).toBe(PROVIDER_ENV.OPENAI_API_KEY);\n expect(env.STRIPE_SECRET_KEY).toBeUndefined();\n expect(env.ANTHROPIC_API_KEY).toBeUndefined();\n expect(env.RESEND_API_KEY).toBeUndefined();\n });\n\n it('gives a runtime declaring NO providers no provider secrets at all', () => {\n // `myRustWorker` declares `providers: {}` and previously received every key.\n const env = buildScoped([]);\n\n for (const key of Object.keys(PROVIDER_ENV)) {\n expect(env[key], key).toBeUndefined();\n }\n });\n\n it('FAILS CLOSED when the scope is omitted entirely', () => {\n // The load-bearing default. \"Omitted\" must mean NONE, not ALL — the opposite\n // default is exactly how every minion came to hold every provider secret.\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n { ...credentials, providerEnv: PROVIDER_ENV },\n addresses,\n createConfig({}),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.STRIPE_SECRET_KEY).toBeUndefined();\n expect(env.OPENAI_API_KEY).toBeUndefined();\n });\n\n it('still gives a broadly-scoped runtime everything it declared', () => {\n // The filter must not be a blunt instrument: the backend declares most\n // providers and must keep them, or storage/AI/billing all break.\n const env = buildScoped(['openai', 'anthropic', 'stripe', 'resend']);\n\n expect(env.OPENAI_API_KEY).toBe(PROVIDER_ENV.OPENAI_API_KEY);\n expect(env.ANTHROPIC_API_KEY).toBe(PROVIDER_ENV.ANTHROPIC_API_KEY);\n expect(env.STRIPE_SECRET_KEY).toBe(PROVIDER_ENV.STRIPE_SECRET_KEY);\n expect(env.RESEND_API_KEY).toBe(PROVIDER_ENV.RESEND_API_KEY);\n });\n\n it('keeps NON-attributable keys, which are configuration rather than secrets', () => {\n // A key no provider claims is config (a hostname, a database name). Dropping\n // it would break runtimes for a reason unrelated to credentials.\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n { ...credentials, providerEnv: { ...PROVIDER_ENV, SOME_PLAIN_CONFIG: 'not-a-provider-secret' } },\n addresses,\n createConfig({}),\n 'local',\n declaredProviderScope(['openai']),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.SOME_PLAIN_CONFIG).toBe('not-a-provider-secret');\n expect(env.STRIPE_SECRET_KEY).toBeUndefined();\n });\n});\n\ndescribe('PlatformEnvVarsBuilder — a minion receives the providers it DECLARED (F-F)', () => {\n // `providers.scopes.minions.<name>` is the authored boundary. Two ways to get it\n // wrong, and the minion path has been on both sides: inheriting the whole\n // application bag (a minion scoped to `openai` holding STRIPE_SECRET_KEY), or\n // fail-closing to nothing (the same minion losing the `openai` key it declared\n // and needs). Only the DECLARED set is correct.\n const credentialsWithProviders: PlatformEnvSecretsJson = {\n ...credentials,\n providerEnv: {\n OPENAI_API_KEY: 'sk-openai-test',\n STRIPE_SECRET_KEY: 'sk-stripe-test',\n RESEND_API_KEY: 're_test',\n },\n };\n\n // The scope is a POSITIONAL argument, which is what makes this helper honest. While it was an\n // optional field on `options`, an earlier version compiled cleanly through a conditional spread\n // (a spread suppresses TypeScript's excess-property check) even though the builder's options type\n // did not declare the field at all — the test exercised the runtime and hid the very type gap\n // that kept the generator from passing it. A positional parameter has no such escape: this helper\n // cannot call the builder without stating a scope, and neither can production code.\n // The access declaration is a PARAMETER here for the same reason the scope is:\n // a helper that hard-coded one would let a caller omit the distinction between\n // \"declared nothing\" and \"declared empty\", which is the distinction that decides\n // whether a minion receives database topology at all.\n const buildMinionEnv = (\n scopedProviderRefs: readonly string[],\n accessDeclaration: RuntimeAccessDeclaration = { resourceAccess: {} },\n ) =>\n PlatformEnvVarsBuilder.buildApplicationMinionEnv(\n appBootstrapCredentials,\n 'wonder-todos-marketing-scrapper',\n credentialsWithProviders,\n addresses,\n createConfig({}),\n 'local',\n declaredProviderScope(scopedProviderRefs),\n accessDeclaration,\n {\n deploymentLocationType: WildoLocationType.LOCAL,\n appDatabaseName: 'wonder_todos',\n },\n );\n\n /**\n * R-COHERENCE (Step 5-egress): a minion that may not REACH a backing service\n * must not receive that service's topology either.\n *\n * The failure these prevent is not a refusal — it is that `isConfigured()`\n * reports true, a probe or a first use runs, and an unroutable host fails as a\n * timeout, reading as \"the service is down\" for a runtime that was never\n * supposed to have it.\n */\n it('a minion that DECLARED NO resourceAccess receives no database or storage topology', () => {\n const env = buildMinionEnv(['openai'], {});\n expect(env.MONGODB_HOST).toBeUndefined();\n expect(env.POSTGRESQL_HOST).toBeUndefined();\n expect(env.STORAGE_ENDPOINT).toBeUndefined();\n });\n\n it('…but STILL receives queue and cache topology, whose credentials are always minted', () => {\n // Withholding these would strand a credential apps-manager issues to every\n // minion — the same incoherence from the other direction.\n const env = buildMinionEnv(['openai'], {});\n expect(env.RABBITMQ_HOST).toBeDefined();\n expect(env.REDIS_HOST).toBeDefined();\n });\n\n it('a minion that DECLARED resourceAccess receives database topology', () => {\n // Declared-but-empty counts as declared. If this reddens while the pin above\n // stays green, presence was replaced by truthiness.\n const env = buildMinionEnv(['openai'], { resourceAccess: {} });\n expect(env.MONGODB_HOST).toBeDefined();\n });\n\n it('the APPLICATION BACKEND is unaffected by the minion gate', () => {\n // The builder the minion delegates to is the backend's own. This is the pin\n // that reddens if the gate is applied inside it without a per-runtime input —\n // narrowing the backend while believing only a minion was narrowed.\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-backend',\n credentialsWithProviders,\n addresses,\n createConfig({}),\n 'local',\n declaredProviderScope(['openai']),\n { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'wonder_todos' },\n );\n expect(env.MONGODB_HOST).toBeDefined();\n expect(env.STORAGE_ENDPOINT).toBeDefined();\n });\n\n it('receives the DECLARED provider key', () => {\n expect(buildMinionEnv(['openai']).OPENAI_API_KEY).toBe('sk-openai-test');\n });\n\n it('does NOT receive provider keys it did not declare', () => {\n const env = buildMinionEnv(['openai']);\n expect(env.STRIPE_SECRET_KEY).toBeUndefined();\n expect(env.RESEND_API_KEY).toBeUndefined();\n });\n\n it('receives NO provider secrets when it declares none (fail-closed)', () => {\n const env = buildMinionEnv([]);\n expect(env.OPENAI_API_KEY).toBeUndefined();\n expect(env.STRIPE_SECRET_KEY).toBeUndefined();\n });\n});\n\ndescribe('assertNoPlatformCredentialInGeneratedEnv — the whole platform credential set, not just storage', () => {\n // Storage was found by reading code, not by a check. The other backing services\n // are absent from app env only because each mints per-application credentials —\n // a property of how they happen to be wired, enforced nowhere. A future provider\n // that skips minting (exactly what the MinIO module did) would reproduce the\n // same exposure against a different service with nothing to catch it.\n const cases: ReadonlyArray<readonly [string, string]> = [\n ['the MongoDB root password', credentials.mongodb!.rootPassword],\n ['the RabbitMQ admin password', credentials.rabbitmq!.adminPassword],\n ['the RabbitMQ Erlang cookie', credentials.rabbitmq!.erlangCookie],\n ['the object storage ROOT credential', TEST_STORAGE_SECRET_KEY],\n ];\n\n for (const [label, value] of cases) {\n it(`refuses ${label} under an arbitrary key`, () => {\n expect(() =>\n assertNoPlatformCredentialInGeneratedEnv({ INNOCENT_LOOKING_KEY: value }, credentials, 'testBuilder'),\n ).toThrow(/emitted platform-tier credentials/);\n });\n }\n\n it('refuses a credential EMBEDDED inside a connection URL — raw or percent-encoded (containment, 5.3 review F6)', () => {\n // A URL-embedded credential is exactly as leaked as a bare one. The exact-value comparison\n // was blind to it — and `PG_CONNECT_URL` now legitimately carries the encoded admin password\n // on the PLATFORM tier, so a future app-tier builder copying that URL is the live scenario.\n const rawEmbedded = `postgresql://wildo_admin:${credentials.postgresql!.adminPassword}@host:5432/db`;\n expect(() =>\n assertNoPlatformCredentialInGeneratedEnv({ SOME_URL: rawEmbedded }, credentials, 'testBuilder'),\n ).toThrow(/emitted platform-tier credentials/);\n\n const specialCharCredentials = {\n ...credentials,\n postgresql: { adminUser: 'wildo_admin', adminPassword: 'p@ss:w#rd-long-generated-value' },\n };\n const encodedEmbedded = `postgresql://wildo_admin:${encodeURIComponent('p@ss:w#rd-long-generated-value')}@host:5432/db`;\n expect(() =>\n assertNoPlatformCredentialInGeneratedEnv({ SOME_URL: encodedEmbedded }, specialCharCredentials, 'testBuilder'),\n ).toThrow(/emitted platform-tier credentials/);\n });\n\n it('names every distinct credential it found, so one fix does not mask another', () => {\n try {\n assertNoPlatformCredentialInGeneratedEnv(\n { A_KEY: credentials.mongodb!.rootPassword, B_KEY: TEST_STORAGE_SECRET_KEY },\n credentials,\n 'testBuilder',\n );\n throw new Error('expected the guard to throw');\n } catch (error) {\n const message = (error as Error).message;\n expect(message).toContain('A_KEY');\n expect(message).toContain('B_KEY');\n // …and still never the values themselves.\n expect(message).not.toContain(credentials.mongodb!.rootPassword);\n expect(message).not.toContain(TEST_STORAGE_SECRET_KEY);\n }\n });\n\n it('does NOT fire on an IDENTIFIER — usernames collide with hostnames and provider ids', () => {\n expect(() =>\n assertNoPlatformCredentialInGeneratedEnv(\n { SOME_KEY: credentials.mongodb!.rootUser, OTHER: TEST_STORAGE_ACCESS_KEY },\n credentials,\n 'testBuilder',\n ),\n ).not.toThrow();\n });\n\n it('passes a clean env, so the widened guard is not vacuously green', () => {\n expect(() =>\n assertNoPlatformCredentialInGeneratedEnv(\n { STORAGE_ENDPOINT: 'minio', MONGODB_HOST: 'mongodb' },\n credentials,\n 'testBuilder',\n ),\n ).not.toThrow();\n });\n});\n\n/**\n * The postgres credential-emission UNION rule (2026-08-11 regression pins).\n *\n * `shouldProvisionPostgreSQL` used to test ONLY `config.database.engine === POSTGRESQL`, while the\n * compose generator rendered the postgres SERVICE from the wider `needsLocalPostgreSQL` rule\n * (engine OR an author-declared SELF backing service). A MongoDB-platform app with\n * `backingServices.postgresql: SELF` therefore got a compose service with a BLANK\n * `POSTGRES_ADMIN_PASSWORD` — the container refuses to initialize and crash-loops, failing\n * `wildo local dev` at infrastructure readiness. These pins hold the two gates to one rule.\n */\ndescribe('buildInfraCredentialEnv — postgres union rule', () => {\n it('emits postgres admin credentials for a MongoDB-platform env whose author declared a SELF postgres backing service', () => {\n const env = PlatformEnvVarsBuilder.buildInfraCredentialEnv(\n credentials,\n createConfig(),\n createEnvironment({\n backingServices: {\n [BackingServiceKind.POSTGRESQL]: { source: BackingServiceSource.SELF, host: 'localhost', port: 5432 },\n },\n }),\n );\n expect(env.POSTGRES_ADMIN_USER).toBe('postgres');\n expect(env.POSTGRES_ADMIN_PASSWORD).toBe('postgres-password');\n expect(env.POSTGRES_ADMIN_DATABASE).toBe('postgres');\n });\n\n it('emits no postgres credentials when neither the engine nor a SELF backing service asks for them', () => {\n const env = PlatformEnvVarsBuilder.buildInfraCredentialEnv(credentials, createConfig(), createEnvironment());\n expect(Object.keys(env).filter((key) => key.startsWith('POSTGRES'))).toEqual([]);\n });\n\n it('fails LOUDLY, naming the remedy, when postgres is included but secrets carry no postgresql credentials', () => {\n const { postgresql: _omitted, ...withoutPostgres } = credentials;\n expect(() => PlatformEnvVarsBuilder.buildInfraCredentialEnv(\n withoutPostgres as typeof credentials,\n createConfig(),\n createEnvironment({\n backingServices: {\n [BackingServiceKind.POSTGRESQL]: { source: BackingServiceSource.SELF, host: 'localhost', port: 5432 },\n },\n }),\n )).toThrow(/wildo -y setup/);\n });\n});\n\ndescribe(\"emitPlatformPostgresEnv — the platform's OWN PostgreSQL (Phase 5.3, D7)\", () => {\n it('a Mongo-engined platform emits NEITHER key — existing .env material stays byte-identical', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBeUndefined();\n expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBeUndefined();\n });\n\n /**\n * The transition-legal environment shape: platform engine POSTGRESQL + an AUTHORED mongodb\n * backing service (the 5.1 union's second half). A PG-engined platform without it is REFUSED\n * at generation time — see the dedicated pin below.\n */\n const postgresEngineEnvironment = () =>\n createEnvironment({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n backingServices: {\n [BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },\n },\n });\n\n it('a self-hosted PostgreSQL-engined platform gets the initdb-database URL + the adapter selection', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n }),\n postgresEngineEnvironment(),\n );\n // The URL targets the PLATFORM's OWN database — never `infrastructure.postgresql.database`,\n // which names the APPLICATION's database (see the distinctness pin below).\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe(\n 'postgresql://postgres:postgres-password@postgresql:5432/wildo_platform?sslmode=disable',\n );\n expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBe('postgresql');\n });\n\n it('the platform database is DISTINCT from the application database — the collision that would have shared tables', () => {\n /**\n * `infrastructure.postgresql.database` is mirrored from the author's\n * `backingServices.postgresql.database` — the APPLICATION's database, and also the compose\n * container's initdb database (for Wonder Todos local, literally `wonder-todos-db`). Pointing\n * the platform there put its ~94 tables — `users`, `organizations`, `applications` among them\n * — inside the application's database; and since every generated statement is\n * `create table if not exists`, an application provisioning its own schema afterwards would\n * SILENTLY ADOPT the platform's tables rather than fail. Two tenancy planes, one table set,\n * no diagnostic. This pin fixes the separation as a property, not a convention.\n */\n const applicationDatabase = 'wonder-todos-db';\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n infrastructure: {\n storage: { provider: 'minio', useSsl: false, bucket: 'bucket' },\n postgresql: { database: applicationDatabase, sslMode: 'disable' },\n },\n }),\n postgresEngineEnvironment(),\n );\n\n const platformUrl = env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL];\n expect(platformUrl).not.toContain(applicationDatabase);\n expect(platformUrl?.endsWith('/wildo_platform?sslmode=disable')).toBe(true);\n /**\n * …and the ADMIN key is the third name again — the MAINTENANCE database.\n *\n * This assertion previously read `toBe(applicationDatabase)`, explained by a comment claiming\n * the key carried \"the container's initdb database\". It does not, and never did: initdb is fed\n * by `POSTGRES_ADMIN_DATABASE` on a different transport (see the sibling pin below). What\n * `PG_ADMIN_DATABASE` actually addresses is where the admin pool CONNECTS to run\n * `CREATE DATABASE` — so pointing it at a database that pool is meant to CREATE made admin\n * init fail on every machine where it did not exist yet, disabling PostgreSQL provisioning for\n * the whole process behind a 200 `/health/ready`.\n */\n expect(env[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE]).toBe(PLATFORM_POSTGRES_MAINTENANCE_DATABASE);\n expect(env[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE]).not.toBe(applicationDatabase);\n });\n\n /**\n * The three names are pinned TOGETHER because the defect was never visible in any one of them —\n * each value is individually plausible, and only their relationship is wrong. A regression that\n * re-derives any of the three from another reddens here.\n */\n it('the three PostgreSQL database names stay mutually distinct — admin ≠ application ≠ platform', () => {\n const applicationDatabase = 'wonder-todos-db';\n const config = createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n infrastructure: {\n storage: { provider: 'minio', useSsl: false, bucket: 'bucket' },\n postgresql: { database: applicationDatabase, sslMode: 'disable' },\n },\n });\n const environment = postgresEngineEnvironment();\n\n const appsManagerEnv = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, config, environment);\n const infraEnv = PlatformEnvVarsBuilder.buildInfraCredentialEnv(credentials, config, environment);\n\n // 1. Where the admin pool CONNECTS to provision — a database it never provisions itself.\n expect(appsManagerEnv[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE]).toBe('postgres');\n // 2. The container's initdb database — a DIFFERENT key, and the one that genuinely follows the author.\n expect(infraEnv.POSTGRES_ADMIN_DATABASE).toBe(applicationDatabase);\n // 3. Where the platform's own tables live.\n expect(appsManagerEnv[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toContain('/wildo_platform?');\n\n expect(new Set([\n appsManagerEnv[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE],\n infraEnv.POSTGRES_ADMIN_DATABASE,\n PLATFORM_POSTGRES_DATABASE,\n ]).size).toBe(3);\n });\n\n it('URL-encodes admin credentials — an @/:/# in the password must not corrupt the authority section', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n {\n ...credentials,\n postgresql: { adminUser: 'wildo admin', adminPassword: 'p@ss:w#rd' },\n },\n addresses,\n createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n }),\n postgresEngineEnvironment(),\n );\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe(\n 'postgresql://wildo%20admin:p%40ss%3Aw%23rd@postgresql:5432/wildo_platform?sslmode=disable',\n );\n });\n\n it('an EXOTIC authored database name cannot leak into the platform URL — nor corrupt it', () => {\n /**\n * This pin used to assert that the AUTHORED name was percent-encoded into the platform URL.\n * That premise is gone: the platform now always targets its own `wildo_platform` database\n * (the collision fix), so an authored name — however hostile — must not appear at all. The\n * adversarial input is kept because it proves BOTH halves at once: no leak, and no truncation\n * of the URL by a `?` that would otherwise start a query string. The builder still encodes its\n * path segment defensively, which is what keeps that true if the name ever becomes derived.\n */\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n infrastructure: {\n storage: { provider: 'minio', useSsl: false, bucket: 'bucket' },\n postgresql: { database: 'my db?x', sslMode: 'disable' },\n },\n }),\n postgresEngineEnvironment(),\n );\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe(\n 'postgresql://postgres:postgres-password@postgresql:5432/wildo_platform?sslmode=disable',\n );\n });\n\n it('an app-authored `backingServices.postgresql: SELF` on a Mongo platform does NOT emit — the gate is the platform ENGINE, not the provisioning union', () => {\n /**\n * The union predicate (`shouldProvisionPostgreSQL`) correctly renders the container and its\n * admin credentials for an APPLICATION's PostgreSQL resources. Handing the PLATFORM a connect\n * URL — let alone flipping its default adapter — off that same signal would point the control\n * plane at a database that belongs to an application. The two halves must stay apart.\n */\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig(),\n createEnvironment({\n backingServices: {\n [BackingServiceKind.POSTGRESQL]: { source: BackingServiceSource.SELF },\n },\n }),\n );\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBeUndefined();\n expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBeUndefined();\n // …while the provisioning half still does its job for the application's container.\n expect(env[PlatformInfrastructureEnvKeys.PG_HOST]).toBe('postgresql');\n });\n\n it('a MANAGED PostgreSQL platform passes the external connectionUrl through verbatim (the Atlas mirror)', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'neon' },\n externalEndpoints: {\n postgresql: { connectionUrl: 'postgresql://neon-user:neon-pass@ep.neon.tech/wildo_platform?sslmode=require' },\n },\n }),\n createEnvironment({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED },\n backingServices: {\n [BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },\n },\n }),\n );\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe(\n 'postgresql://neon-user:neon-pass@ep.neon.tech/wildo_platform?sslmode=require',\n );\n expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBe('postgresql');\n });\n\n it('REFUSES a MANAGED PostgreSQL platform with no externalEndpoints.postgresql — at generation, naming the remedy', () => {\n // Without this, the emitter wrote PG_CONNECT_URL= (empty) and the failure surfaced as an\n // opaque \"Invalid URL\" inside boot-time env validation, three layers from the cause — and the\n // slot has no wizard authoring path, so EVERY managed-PG env would hit it.\n expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'neon' },\n }),\n createEnvironment({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED },\n backingServices: {\n [BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },\n },\n }),\n )).toThrow(/externalEndpoints\\.postgresql/);\n });\n\n it('ACCEPTS a PostgreSQL-engined platform whose environment renders NO mongod', () => {\n /**\n * The inverse of what this asserted until 2026-08-28, when the requirement retired along with\n * its schema-side twin in `define-infra-env-config.ts`.\n *\n * The refusal was written for a real trap — a `MONGO_CONNECT_URL` pointing at a container no\n * transport renders — but the trap was downstream of `MONGO_CONNECT_URL` being an\n * unconditionally REQUIRED key on the apps-manager env schema. It is now optional and\n * empty-means-absent, exactly like `PG_CONNECT_URL`, so an unrendered mongod produces an ABSENT\n * key rather than a dangling address. The generator emits an empty string here and always did;\n * what changed is that the consumer now reads that as \"not MongoDB-engined\".\n *\n * The invariant that survives — a platform must render AT LEAST ONE store — lives on the env\n * schema, beside the keys it is about, where a hand-edited env file is also subject to it.\n */\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n }),\n createEnvironment({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n }),\n );\n\n // Emitted EMPTY, not omitted — the compose interpolation contract, and what the schema's\n // `z.preprocess` reads as absent.\n expect(env.MONGO_CONNECT_URL).toBe('');\n expect(env.PG_CONNECT_URL).toBeTruthy();\n });\n});\n"]}
|
|
1
|
+
{"version":3,"file":"env-vars-builder.service.test.js","sourceRoot":"","sources":["../../../../../src/services/environment/__tests__/env-vars-builder.service.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EACL,kCAAkC,EAClC,6BAA6B,EAC7B,kBAAkB,EAClB,oBAAoB,EACpB,2BAA2B,EAC3B,cAAc,EACd,0BAA0B,EAC1B,sCAAsC,EACtC,6BAA6B,EAC7B,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,gCAAgC,EAChC,iCAAiC,EACjC,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE7E,OAAO,EAAE,sBAAsB,EAAE,mCAAmC,EAAE,wCAAwC,EAAE,MAAM,0DAA0D,CAAC;AACjL,OAAO,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAC;AAErG,OAAO,EACL,0BAA0B,EAC1B,WAAW,GAEZ,MAAM,qDAAqD,CAAC;AAG7D,MAAM,WAAW,GAA2B;IAC1C,OAAO,EAAE;QACP,QAAQ,EAAE,OAAO;QACjB,YAAY,EAAE,gBAAgB;KAC/B;IACD,MAAM,EAAE;QACN,SAAS,EAAE,SAAS;QACpB,aAAa,EAAE,iBAAiB;KACjC;IACD,UAAU,EAAE;QACV,SAAS,EAAE,UAAU;QACrB,aAAa,EAAE,mBAAmB;KACnC;IACD,QAAQ,EAAE;QACR,aAAa,EAAE,QAAQ;QACvB,aAAa,EAAE,iBAAiB;QAChC,YAAY,EAAE,eAAe;KAC9B;IACD,OAAO,EAAE;QACP,SAAS,EAAE,OAAO;QAClB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C,CACH,CAAC,CAAC,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2EAA2E,EAAE,GAAG,EAAE;QACnF;;;;;;;;;;;;;WAaG;QACH,MAAM,GAAG,GAAG,sBAAsB,CAAC,uBAAuB,CACxD,WAAW,EACX,SAAS,EACT,YAAY,CAAC;YACX,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,oBAAoB,CAAC,IAAI,EAAE;SACnF,CAAC,EACF,iBAAiB,CAAC;YAChB,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,oBAAoB,CAAC,IAAI,EAAE;SACnF,CAAC,CACH,CAAC;QAEF,yFAAyF;QACzF,kCAAkC;QAClC,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACvC,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,UAAU,EAAE,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { describe, expect, it, vi } from 'vitest';\nimport { declaredProviderScope } from '~wildo-cli/services/credentials/provider-env-vars.utils';\nimport {\n ApplicationBackendBootstrapEnvKeys,\n ApplicationBackendDataEnvKeys,\n BackingServiceKind,\n BackingServiceSource,\n BOOTSTRAP_PLATFORM_SERVICES,\n DatabaseEngine,\n PLATFORM_POSTGRES_DATABASE,\n PLATFORM_POSTGRES_MAINTENANCE_DATABASE,\n PlatformInfrastructureEnvKeys,\n PlatformProcessEnvKeys,\n PlatformSecurityEnvKeys,\n PlatformWildoServices,\n WildoDeploymentRuntime,\n WildoLocationType,\n} from '@wildo-ai/platform-config-lib';\nimport {\n ApplicationBackendRuntimeEnvKeys,\n ApplicationWorkerBootstrapEnvKeys,\n ApplicationWorkerHttpSurfaceEnvKeys,\n ApplicationWorkerRuntimeEnvKeys,\n} from '@wildo-ai/platform-core-shared';\nimport { EngineCapability, RuntimeEnvironment } from '@wildo-ai/saas-models';\nimport type { RuntimeAccessDeclaration } from '@wildo-ai/platform-config-lib';\nimport { PlatformEnvVarsBuilder, assertNoStorageSecretInGeneratedEnv, assertNoPlatformCredentialInGeneratedEnv } from '~wildo-cli/services/environment/env-vars-builder.service';\nimport { IMMUDB_CREDENTIAL_ENV_KEYS } from '~wildo-cli/services/data-services/data-services.schemas';\nimport type { PlatformEnvConfigJson, PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport {\n PlatformEnvOperatingSystem,\n SetupStatus,\n type PlatformEnvironmentConfiguration,\n} from '~wildo-cli/services/environment/environment.schemas';\nimport type { ResolvedAddresses } from '~wildo-cli/services/catalog/service-address-resolver.service';\n\nconst credentials: PlatformEnvSecretsJson = {\n mongodb: {\n rootUser: 'mongo',\n rootPassword: 'mongo-password',\n },\n valkey: {\n adminUser: 'default',\n adminPassword: 'valkey-password',\n },\n postgresql: {\n adminUser: 'postgres',\n adminPassword: 'postgres-password',\n },\n rabbitmq: {\n adminUsername: 'rabbit',\n adminPassword: 'rabbit-password',\n erlangCookie: 'rabbit-cookie',\n },\n storage: {\n accessKey: 'minio',\n secretKey: 'minio-secret',\n },\n platform: {\n // NOT a substring of any legitimately-emitted app-tier value (the leak guard matches by\n // CONTAINMENT since the 5.3 review — a URL-embedded credential is as leaked as a bare one —\n // and the previous 'primary-secret' was accidentally contained in the app bootstrap fixture's\n // own 'platform-primary-secret', which production's independently-minted secrets cannot do).\n primarySecret: 'platform-tier-root-primary-secret-9f3a',\n adminSecret: 'admin-secret',\n appsManager: {\n privateKey: 'private-key',\n publicKey: 'public-key',\n },\n // Crontabs P2P signing keypair — required since the scheduled-cron JWT fix\n // (`buildAppsManagerFullEnv` fail-louds when absent). Mirrors `appsManager`.\n crontabsBatchesManager: {\n privateKey: 'crontabs-private-key',\n publicKey: 'crontabs-public-key',\n },\n },\n admin: {\n email: 'admin@example.com',\n password: 'admin-password',\n firstName: 'Ada',\n lastName: 'Lovelace',\n },\n};\n\nconst appBootstrapCredentials = {\n APPLICATION_ID: 'app-123',\n PLATFORM_APPLICATION_PRIMARY_SECRET: 'platform-primary-secret',\n PLATFORM_APPS_MANAGER_URL: 'https://apps-manager.example.com',\n APPLICATION_ENV: RuntimeEnvironment.STAGING,\n} as const;\n\nconst addresses: ResolvedAddresses = {\n infra: {\n mongodb: { host: 'mongo', port: 27017, url: 'http://mongo:27017' },\n valkey: { host: 'valkey', port: 6379, url: 'http://valkey:6379' },\n rabbitmq: { host: 'rabbitmq', port: 5672, url: 'http://rabbitmq:5672' },\n rabbitmqManagement: { host: 'rabbitmq', port: 15672, url: 'http://rabbitmq:15672' },\n minio: { host: 'minio', port: 9000, url: 'http://minio:9000' },\n postgresql: { host: 'postgresql', port: 5432, url: 'http://postgresql:5432' },\n },\n platform: {\n appsManager: { host: 'apps-manager', port: 3000, url: 'https://apps-manager.example.com' },\n crontabsBatchesManager: { host: 'crontabs', port: 3002, url: 'https://crontabs.example.com' },\n moduleRegistry: { host: 'module-registry', port: 3003, url: 'https://module-registry.example.com' },\n },\n};\n\nfunction createEnvironment(\n overrides: Partial<PlatformEnvironmentConfiguration> = {},\n): PlatformEnvironmentConfiguration {\n return {\n name: 'preview-eu',\n locationType: WildoLocationType.REMOTE,\n runtime: WildoDeploymentRuntime.KUBERNETES,\n runtimeEnvironment: RuntimeEnvironment.STAGING,\n os: PlatformEnvOperatingSystem.LINUX,\n secretsPath: '',\n configPath: '',\n infraPath: '',\n database: {\n engine: DatabaseEngine.MONGODB,\n source: BackingServiceSource.SELF,\n },\n publicDomain: 'preview-eu.wildo.ai',\n kubernetes: {\n namespace: 'preview-eu',\n },\n remoteProvider: {\n provider: 'scaleway',\n registryEndpoint: 'rg.fr-par.scw.cloud/demo',\n },\n setupStatus: SetupStatus.NOT_STARTED,\n createdAt: new Date().toISOString(),\n updatedAt: new Date().toISOString(),\n ...overrides,\n };\n}\n\nfunction createConfig(overrides: Partial<PlatformEnvConfigJson> = {}): PlatformEnvConfigJson {\n return {\n type: WildoLocationType.REMOTE,\n runtime: WildoDeploymentRuntime.KUBERNETES,\n runtimeEnvironment: RuntimeEnvironment.STAGING,\n database: {\n engine: DatabaseEngine.MONGODB,\n source: BackingServiceSource.SELF,\n },\n infrastructure: {\n storage: {\n provider: 'minio',\n useSsl: false,\n bucket: 'bucket',\n },\n postgresql: {\n database: 'postgres',\n sslMode: 'disable',\n },\n },\n publicDomain: 'preview-eu.wildo.ai',\n kubernetes: {\n namespace: 'preview-eu',\n },\n remoteProvider: {\n provider: 'scaleway',\n registryEndpoint: 'rg.fr-par.scw.cloud/demo',\n },\n ...overrides,\n };\n}\n\ndescribe('PlatformEnvVarsBuilder', () => {\n it('emits explicit runtime semantics and ingress settings for remote apps-manager env', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n expect(env.APPLICATION_ENV).toBe(RuntimeEnvironment.STAGING);\n expect(env.K8S_NAMESPACE).toBe('preview-eu');\n });\n\n it('fails when env generation is missing explicit runtime semantics', () => {\n expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({ runtimeEnvironment: undefined }),\n createEnvironment({ runtimeEnvironment: undefined }),\n )).toThrow(/missing explicit runtime semantics/);\n });\n\n it('does not emit PostgreSQL bootstrap variables when the selected engine is MongoDB', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n database: {\n engine: DatabaseEngine.MONGODB,\n source: BackingServiceSource.SELF,\n },\n }),\n createEnvironment({\n database: {\n engine: DatabaseEngine.MONGODB,\n source: BackingServiceSource.SELF,\n },\n }),\n );\n\n expect(env.PG_HOST).toBeUndefined();\n expect(env.PG_ADMIN_USER).toBeUndefined();\n expect(env.PG_SSL_MODE).toBeUndefined();\n });\n\n it('emits OTEL_* telemetry env for the apps-manager when observability is enabled (Slice 2 Phase 5b platform-host spread)', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }),\n createEnvironment(),\n { serviceVersion: '9.9.9' },\n );\n\n expect(env.OTEL_ENABLED).toBe('true');\n expect(env.OTEL_EXPORTER_OTLP_ENDPOINT).toBe('http://localhost:4318');\n // Platform service identity (PlatformApplicationType.PLATFORM_APPS_MANAGER).\n expect(env.OTEL_SERVICE_NAME).toBeTruthy();\n expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('deployment.environment=');\n // service.version threaded from the host's package.json version (audit A-10 platform-host parity).\n expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('service.version=9.9.9');\n // Localhost dev endpoint → no auth header (no telemetryProvider threaded).\n expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBeUndefined();\n });\n\n it('omits OTEL_* for the apps-manager when observability is disabled', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({ observability: { enabled: false } }),\n createEnvironment(),\n );\n\n expect(env.OTEL_ENABLED).toBeUndefined();\n expect(env.OTEL_EXPORTER_OTLP_ENDPOINT).toBeUndefined();\n });\n\n it('emits WILDO_LLM_OBS_* from observability.llmObservability INDEPENDENTLY of the OTLP enabled gate', () => {\n // OTLP telemetry OFF + LLM-obs content capture ON: the two signals are\n // separate — LLM-obs activation is provider-selection-driven, not\n // OTEL_ENABLED-driven, so the projection must not sit behind the gate.\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n observability: {\n enabled: false,\n llmObservability: {\n captureContent: true,\n sampleRate: 0.5,\n providerEnv: { POSTHOG_HOST: 'https://eu.i.posthog.com', POSTHOG_PROJECT_ID: '42' },\n },\n },\n }),\n createEnvironment(),\n );\n\n expect(env.OTEL_ENABLED).toBeUndefined();\n expect(env.WILDO_LLM_OBS_CAPTURE_CONTENT).toBe('true');\n expect(env.WILDO_LLM_OBS_SAMPLE_RATE).toBe('0.5');\n // Non-secret provider connection env authored in checked-in config.\n expect(env.POSTHOG_HOST).toBe('https://eu.i.posthog.com');\n expect(env.POSTHOG_PROJECT_ID).toBe('42');\n });\n\n it('omits WILDO_LLM_OBS_* when llmObservability is absent or captureContent is false', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n observability: { enabled: true, llmObservability: { captureContent: false } },\n }),\n createEnvironment(),\n );\n\n expect(env.WILDO_LLM_OBS_CAPTURE_CONTENT).toBeUndefined();\n expect(env.WILDO_LLM_OBS_SAMPLE_RATE).toBeUndefined();\n });\n\n it('emits service.version for a bootstrap platform service (module-registry) when observability is enabled', () => {\n const env = PlatformEnvVarsBuilder.buildBootstrapEnv(\n PlatformWildoServices.MODULE_REGISTRY,\n credentials,\n addresses,\n createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }),\n createEnvironment(),\n '0.1.0',\n );\n\n expect(env.OTEL_ENABLED).toBe('true');\n expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('service.version=0.1.0');\n });\n\n it('can omit bootstrap admin credentials from steady-state apps-manager env', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n {\n includeBootstrapAdminCredentials: false,\n },\n );\n\n expect(env.ADMIN_EMAIL).toBeUndefined();\n expect(env.ADMIN_PASSWORD).toBeUndefined();\n expect(env.ADMIN_FIRST_NAME).toBeUndefined();\n expect(env.ADMIN_LAST_NAME).toBeUndefined();\n });\n\n it('fails closed when external storage wiring is authored', () => {\n expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n externalEndpoints: {\n storage: {\n endpoint: 's3.example.com',\n port: 443,\n },\n },\n }),\n createEnvironment(),\n )).toThrow(/External storage wiring is not supported yet/);\n });\n\n it('accepts managed MinIO storage provider metadata in externalServices', () => {\n expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n type: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n externalServices: {\n mongodb: { provider: 'self-managed' },\n valkey: { provider: 'valkey-self' },\n storage: { provider: 'minio' },\n rabbitmq: { provider: 'self-managed' },\n },\n }),\n createEnvironment({\n name: 'local',\n locationType: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n )).not.toThrow();\n });\n\n it('emits Mongo direct-connection runtime material for local application backends', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({\n database: {\n engine: DatabaseEngine.MONGODB,\n source: BackingServiceSource.SELF,\n },\n }),\n 'local',\n declaredProviderScope([]),\n {\n deploymentLocationType: WildoLocationType.LOCAL,\n appDatabaseName: 'wonder_todos',\n mongodbDirectConnection: true,\n },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.MONGODB_DIRECT_CONNECTION]).toBe('true');\n });\n\n it('emits deployment location as an explicit topology authority instead of inferring it from application behavior mode', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'preview-eu',\n declaredProviderScope([]),\n {\n applicationEnv: RuntimeEnvironment.DEVELOPMENT,\n deploymentLocationType: WildoLocationType.REMOTE,\n },\n );\n\n expect(env[ApplicationBackendBootstrapEnvKeys.APPLICATION_ENV]).toBe(RuntimeEnvironment.DEVELOPMENT);\n expect(env[ApplicationBackendBootstrapEnvKeys.DEPLOYMENT_LOCATION_TYPE]).toBe(WildoLocationType.REMOTE);\n expect(env[ApplicationBackendRuntimeEnvKeys.APPLICATION_RUNTIME_SIGNALS_HOME]).toBeUndefined();\n });\n\n it('emits an explicit app-owned runtime-signals home only when supplied by local deployment composition', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n {\n deploymentLocationType: WildoLocationType.LOCAL,\n runtimeSignalsHome: '/srv/wonder-todos/.wildo-saas/runtime-signals',\n },\n );\n expect(env[ApplicationBackendRuntimeEnvKeys.APPLICATION_RUNTIME_SIGNALS_HOME]).toBe('/srv/wonder-todos/.wildo-saas/runtime-signals');\n });\n\n it('rejects a local filesystem authority under remote deployment topology', () => {\n expect(() => PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'production',\n declaredProviderScope([]),\n {\n deploymentLocationType: WildoLocationType.REMOTE,\n runtimeSignalsHome: '/srv/wonder-todos/.wildo-saas/runtime-signals',\n },\n )).toThrow('only be emitted for explicit local deployment topology');\n });\n\n it('emits storage env vars for application backends', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_PROVIDER]).toBe('minio');\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_ENDPOINT]).toBe('minio');\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_PORT]).toBe('9000');\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_USE_SSL]).toBe('false');\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET]).toBe('bucket');\n // The credential half is deliberately ABSENT. `STORAGE_ACCESS_KEY` /\n // `STORAGE_SECRET_KEY` are the object store's ROOT credential — the same pair\n // MinIO's own container runs as — and emitting them here handed root to every\n // application backend, minion and worker. Applications now fetch short-lived,\n // prefix-confined session credentials from apps-manager at runtime.\n // See `.claude/plans/object-storage-root-credential-distribution.md`.\n // Asserted by raw key NAME, not through the enum: those members have since\n // been removed from `ApplicationBackendDataEnvKey` entirely, so an\n // enum-based assertion would no longer compile — and the raw name is the\n // stronger check anyway, proving absence from the emitted env regardless of\n // what the contract type happens to declare.\n expect(env['STORAGE_ACCESS_KEY']).toBeUndefined();\n expect(env['STORAGE_SECRET_KEY']).toBeUndefined();\n });\n\n it('emits WILDO_WORKER_<NAME>_URL for each declared worker dispatch URL (G-8 / MW4)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'staging',\n declaredProviderScope([]),\n {\n deploymentLocationType: WildoLocationType.REMOTE,\n workerUrls: {\n // camelCase bucket key; the HOST is the normalized DNS name the CLI\n // computes via `buildWorkerInternalUrl` (matches the deployed Service).\n myNodeWorker: 'http://wonder-todos-worker-my-node-worker:8081',\n // kebab-case bucket key — both normalize to the same UPPER_SNAKE env key\n 'my-rust-worker': 'http://wonder-todos-worker-my-rust-worker:8080',\n },\n },\n );\n\n // The env-key normalization (camelCase + kebab → UPPER_SNAKE) is shared with\n // the backend read-side (`wildoWorkerUrlEnvKey`), so emit and read cannot drift.\n expect(env.WILDO_WORKER_MY_NODE_WORKER_URL).toBe('http://wonder-todos-worker-my-node-worker:8081');\n expect(env.WILDO_WORKER_MY_RUST_WORKER_URL).toBe('http://wonder-todos-worker-my-rust-worker:8080');\n });\n\n it('omits worker dispatch URLs when none are provided (local / no declared workers)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(Object.keys(env).some((key) => key.startsWith('WILDO_WORKER_'))).toBe(false);\n });\n\n it('builds a minimal env-driven contract for application workers', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n appBootstrapCredentials,\n 'rustWorker',\n 'my-rust-worker',\n credentials,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n {\n runtimeEndpoints: {\n 'wonder-todos-api': {\n publicUrl: 'http://localhost:4241',\n internalUrl: 'http://localhost:4241',\n },\n },\n },\n );\n\n expect(env[ApplicationWorkerBootstrapEnvKeys.APPLICATION_ID]).toBe('app-123');\n // Worker identity — the canonical `APP_OWNED_SERVICE_*` pair. `..._NAME` is the\n // `workers` bucket key (the apps-manager worker-bootstrap path segment); `..._KIND`\n // pins it as a worker. `SERVICE_NAME` stays the separate process/observability name.\n expect(env[ApplicationWorkerBootstrapEnvKeys.APP_OWNED_SERVICE_KIND]).toBe('worker');\n expect(env[ApplicationWorkerBootstrapEnvKeys.APP_OWNED_SERVICE_NAME]).toBe('rustWorker');\n expect(env[ApplicationWorkerBootstrapEnvKeys.SERVICE_NAME]).toBe('my-rust-worker');\n expect(env[ApplicationWorkerBootstrapEnvKeys.PLATFORM_APPLICATION_PRIMARY_SECRET]).toBe(\n 'platform-primary-secret',\n );\n expect(env[ApplicationWorkerRuntimeEnvKeys.APPLICATION_RUNTIME_ENDPOINTS]).toContain('wonder-todos-api');\n expect(env.MONGODB_HOST).toBeUndefined();\n expect(env.RABBITMQ_HOST).toBeUndefined();\n expect(env.STORAGE_ACCESS_KEY).toBeUndefined();\n });\n\n it('projects the authored HTTP surface into the worker env (WORKER_HTTP_PORT + probe paths)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n appBootstrapCredentials,\n 'rustWorker',\n 'my-rust-worker',\n credentials,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n {\n http: { port: 8081, healthPath: '/healthz', readyPath: '/readyz' },\n },\n );\n\n expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_HTTP_PORT]).toBe('8081');\n expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_HEALTH_PATH]).toBe('/healthz');\n expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_READY_PATH]).toBe('/readyz');\n // metricsPath is optional (Prometheus opt-in) — omitted when not authored.\n expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_METRICS_PATH]).toBeUndefined();\n });\n\n it('emits WORKER_METRICS_PATH only when the worker opts into a scrape surface', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n appBootstrapCredentials,\n 'rustWorker',\n 'my-rust-worker',\n credentials,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n {\n http: { port: 9090, healthPath: '/health', readyPath: '/ready', metricsPath: '/metrics' },\n },\n );\n\n expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_HTTP_PORT]).toBe('9090');\n expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_METRICS_PATH]).toBe('/metrics');\n });\n\n /*\n * Issue #94. The companion was a deliberate N/A for the platform PostgreSQL env — correctly,\n * while its startup could not honor those keys. Now that it derives its adapter from\n * DATABASE_DEFAULT_ADAPTER and pre-connects PG_CONNECT_URL, withholding them is what would\n * lie: the companion would read platform rows from a Mongo database the platform stopped\n * using and report every application as unregistered.\n */\n it('emits the platform PostgreSQL env into the companion on a PostgreSQL-engined platform', () => {\n const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(\n appBootstrapCredentials,\n 'wonder-todos-dev-companion',\n credentials,\n addresses,\n createConfig({\n type: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n }),\n createEnvironment({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n backingServices: {\n [BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },\n },\n }),\n { host: '0.0.0.0', port: 4341, runtimeEndpoints: {} },\n );\n\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toContain('/wildo_platform');\n expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBe('postgresql');\n });\n\n it('writes NEITHER PostgreSQL key into the companion env on a MongoDB-engined platform', () => {\n // The no-op half: existing companion `.env` material stays byte-identical, and an adapter\n // selection is never emitted for a platform that did not declare one.\n const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(\n appBootstrapCredentials,\n 'wonder-todos-dev-companion',\n credentials,\n addresses,\n createConfig({\n type: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n createEnvironment({\n name: 'local',\n locationType: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n { host: '0.0.0.0', port: 4341, runtimeEndpoints: {} },\n );\n\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBeUndefined();\n expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBeUndefined();\n });\n\n it('emits platform-focused database and service wiring for companion api env', () => {\n const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(\n appBootstrapCredentials,\n 'wonder-todos-dev-companion',\n credentials,\n addresses,\n createConfig({\n type: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n createEnvironment({\n name: 'local',\n locationType: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n {\n host: '0.0.0.0',\n port: 4341,\n runtimeEndpoints: {\n 'wonder-todos-api': {\n publicUrl: 'http://localhost:4241',\n internalUrl: 'http://localhost:4241',\n },\n },\n },\n );\n\n expect(env[PlatformProcessEnvKeys.SERVICE_NAME]).toBe('wonder-todos-dev-companion');\n expect(env[PlatformProcessEnvKeys.HOST]).toBe('0.0.0.0');\n expect(env[PlatformProcessEnvKeys.PORT]).toBe('4341');\n expect(env[PlatformInfrastructureEnvKeys.MONGO_CONNECT_URL]).toContain('/wildo_platform');\n expect(env[PlatformInfrastructureEnvKeys.REDIS_ADMIN_PASSWORD]).toBe('valkey-password');\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_ADMIN_PASSWORD]).toBe('rabbit-password');\n expect(env[PlatformSecurityEnvKeys.PLATFORM_APPS_MANAGER_PUBLIC_KEY]).toBe('public-key');\n expect(env.APPLICATION_RUNTIME_ENDPOINTS).toContain('platform_crontabs_batches_manager');\n expect(env.APPLICATION_RUNTIME_ENDPOINTS).toContain('wonder-todos-dev-companion');\n\n /**\n * The companion also needs the APPLICATION's PostgreSQL ADDRESS, and the reason is not symmetry.\n * It loads the application's resource registry, which REFUSES to initialize when a resource\n * declares `persistenceAdapter: 'postgresql'` while `database.postgresql` is absent — and the\n * app-configuration loader builds that branch only when a HOST arrives. Without these keys the\n * companion crash-looped on \"PostgreSQL is not enabled in database config\" while the backend and\n * the minions, which DO receive them, booted the same registry fine (measured 2026-08-27).\n *\n * Address only, under the APPLICATION-backend keys the loader reads. Credentials travel through\n * `secrets.database.postgresql`; selection stays `DATABASE_DEFAULT_ADAPTER`.\n */\n expect(env[ApplicationBackendDataEnvKeys.POSTGRESQL_HOST]).toBe('postgresql');\n expect(env[ApplicationBackendDataEnvKeys.POSTGRESQL_PORT]).toBe('5432');\n });\n\n it('gives the companion storage TOPOLOGY but omits the object storage ROOT credential', () => {\n // The companion stays platform-tier for Mongo/Redis/RabbitMQ — the assertions in\n // the test above pin that, and the blanket platform-credential guard is\n // deliberately NOT applied to this builder for that reason. Storage is the one\n // axis where it is app-tier: it runs the same `WildoManagedStorageProvider` as\n // backend-api and fetches short-lived, prefix-confined STS sessions using the\n // bootstrap contract. The root pair it used to receive was NEVER READ — its only\n // effect was to park the object store's root credential in a `.env` on a\n // developer's disk for the lifetime of the dev stack.\n //\n // Topology is asserted alongside the absence deliberately: a builder that\n // dropped storage wiring wholesale would also satisfy a pure absence check, and\n // that would break the companion's file operations while looking like a fix.\n const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(\n appBootstrapCredentials,\n 'wonder-todos-dev-companion',\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_ENDPOINT]).toBe('minio');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe('bucket');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_ACCESS_KEY]).toBeUndefined();\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_SECRET_KEY]).toBeUndefined();\n // Value-level, not key-level: a future builder that emitted the same secret\n // under a different key would defeat the two assertions above.\n expect(Object.values(env)).not.toContain(credentials.storage.secretKey);\n });\n\n it('emits storage env vars for bootstrap platform services', () => {\n const env = PlatformEnvVarsBuilder.buildBootstrapEnv(\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_PROVIDER]).toBe('minio');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_ENDPOINT]).toBe('minio');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_PORT]).toBe('9000');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_USE_SSL]).toBe('false');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe('bucket');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_ACCESS_KEY]).toBe('minio');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_SECRET_KEY]).toBe('minio-secret');\n });\n\n it('emits Redis and RabbitMQ topology for the crontabs bootstrap service', () => {\n const env = PlatformEnvVarsBuilder.buildBootstrapEnv(\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n expect(env[PlatformInfrastructureEnvKeys.REDIS_HOST]).toBe('valkey');\n expect(env[PlatformInfrastructureEnvKeys.REDIS_PORT]).toBe('6379');\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_HOST]).toBe('rabbitmq');\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_PORT]).toBe('5672');\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_MANAGEMENT_PORT]).toBe('15672');\n });\n\n it('emits MONGO_CONNECT_URL for the module-registry bootstrap service ONLY (crontabs bridges platform config)', () => {\n const registryEnv = PlatformEnvVarsBuilder.buildBootstrapEnv(\n PlatformWildoServices.MODULE_REGISTRY,\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n const crontabsEnv = PlatformEnvVarsBuilder.buildBootstrapEnv(\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n // module-registry rides the framework's `StartApplicationBackendService`, which opens the\n // PLATFORM_MANAGEMENT connection from `MONGO_CONNECT_URL` → it MUST be provisioned.\n expect(registryEnv[PlatformInfrastructureEnvKeys.MONGO_CONNECT_URL]).toContain('/wildo_platform');\n expect(registryEnv[PlatformInfrastructureEnvKeys.MONGO_PLATFORM_URL]).toContain('/wildo_platform');\n // crontabs uses a custom two-phase startup that bridges platform config for its Mongo access and\n // never reads `MONGO_CONNECT_URL`, so the emission is scoped OUT of it.\n expect(crontabsEnv[PlatformInfrastructureEnvKeys.MONGO_CONNECT_URL]).toBeUndefined();\n });\n\n // ==========================================================================\n // Authored backingServices propagation (Slice 3.2 — F-23)\n // ==========================================================================\n\n describe('backingServices overrides', () => {\n it('emits REDIS_DATABASE / RABBITMQ_VHOST for apps-manager when authored', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n backingServices: {\n [BackingServiceKind.REDIS]: {\n source: BackingServiceSource.SELF,\n database: 3,\n },\n [BackingServiceKind.RABBITMQ]: {\n source: BackingServiceSource.SELF,\n vhost: '/wonder',\n },\n },\n }),\n createEnvironment(),\n );\n\n expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('3');\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBe('/wonder');\n });\n\n it('omits REDIS_DATABASE / RABBITMQ_VHOST when not authored', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBeUndefined();\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBeUndefined();\n });\n\n it('uses authored mongodb.database as application MONGODB_DATABASE when no override is supplied', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({\n backingServices: {\n [BackingServiceKind.MONGODB]: {\n source: BackingServiceSource.SELF,\n database: 'wonder-todos-db',\n },\n [BackingServiceKind.REDIS]: {\n source: BackingServiceSource.SELF,\n database: 5,\n },\n [BackingServiceKind.RABBITMQ]: {\n source: BackingServiceSource.SELF,\n vhost: '/wonder',\n },\n },\n }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('wonder-todos-db');\n expect(env[ApplicationBackendDataEnvKeys.REDIS_DATABASE]).toBe('5');\n expect(env[ApplicationBackendDataEnvKeys.RABBITMQ_VHOST]).toBe('/wonder');\n });\n\n it('lets explicit appDatabaseName override the authored mongodb.database', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({\n backingServices: {\n [BackingServiceKind.MONGODB]: {\n source: BackingServiceSource.SELF,\n database: 'wonder-todos-db',\n },\n },\n }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'explicit_app' },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('explicit_app');\n });\n\n // ========================================================================\n // Slice 3.6 — `wildo.saas.config.dataServices` projection (F-43)\n //\n // These tests pin the contract for the three `dataServices` fields wired\n // end-to-end in Slice 3.6:\n // - `dataServices.redis.keyPrefix` → REDIS_KEY_PREFIX env (REPLACE\n // semantics for the legacy username-derived prefix in RedisService)\n // - `dataServices.s3.bucketPrefix` → STORAGE_BUCKET_PREFIX env\n // (PREPEND semantics for object keys in WildoManagedStorageProvider)\n // - `dataServices.rabbitmq.vhost` → DELETED (vhost is an\n // infra/topology concern; only the infra-side seam emits the env)\n //\n // The fields are caller-supplied options (the env builder does not\n // import `WildoSaasConfig` — they are threaded by `app-bootstrap.service`\n // from `NormalizedSaasRuntimeDescriptor`).\n // ========================================================================\n\n it('emits REDIS_KEY_PREFIX when dataServices.redis.keyPrefix is authored', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL, redisKeyPrefix: 'wonder-todos:' },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBe('wonder-todos:');\n });\n\n it('omits REDIS_KEY_PREFIX when dataServices.redis.keyPrefix is unset', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBeUndefined();\n });\n\n it('emits STORAGE_BUCKET_PREFIX when dataServices.s3.bucketPrefix is authored', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL, storageBucketPrefix: 'wonder-todos' },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBe('wonder-todos');\n });\n\n it('omits STORAGE_BUCKET_PREFIX when dataServices.s3.bucketPrefix is unset', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBeUndefined();\n });\n\n it('emits both REDIS_KEY_PREFIX and STORAGE_BUCKET_PREFIX side-by-side without conflict', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n {\n deploymentLocationType: WildoLocationType.LOCAL,\n redisKeyPrefix: 'wonder-todos:',\n storageBucketPrefix: 'wonder-todos',\n appDatabaseName: 'wonder-todos',\n },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBe('wonder-todos:');\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBe('wonder-todos');\n expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('wonder-todos');\n });\n\n it('emits REDIS_KEY_PREFIX even when no valkey infra address is wired (dataServices is independent of infra)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n { ...addresses, infra: { ...addresses.infra, valkey: null } },\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL, redisKeyPrefix: 'wonder-todos:' },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.REDIS_HOST]).toBeUndefined();\n expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBe('wonder-todos:');\n });\n\n it('emits STORAGE_BUCKET_PREFIX even when no minio infra address is wired (dataServices is independent of infra)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n { ...addresses, infra: { ...addresses.infra, minio: null } },\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL, storageBucketPrefix: 'wonder-todos' },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_PROVIDER]).toBeUndefined();\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBe('wonder-todos');\n });\n\n it('emits REDIS_DATABASE / RABBITMQ_VHOST for the crontabs bootstrap service when authored', () => {\n const env = PlatformEnvVarsBuilder.buildBootstrapEnv(\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n credentials,\n addresses,\n createConfig({\n backingServices: {\n [BackingServiceKind.REDIS]: {\n source: BackingServiceSource.SELF,\n database: 7,\n },\n [BackingServiceKind.RABBITMQ]: {\n source: BackingServiceSource.SELF,\n vhost: '/crontabs',\n },\n },\n }),\n createEnvironment(),\n );\n\n expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('7');\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBe('/crontabs');\n });\n });\n\n // ==========================================================================\n // Wonder-todos infra snapshot — end-to-end propagation (Slice 3.2 — F-23)\n //\n // This test pins the contract by mirroring the authored fields of\n // `examples/wonder-todos/infrastructure/local/wildo.infra.local.config.ts`\n // and asserting they all land in the runtime env vars produced for the\n // application backend AND the platform-init / apps-manager surfaces.\n //\n // We reproduce the projection that `sync.command.buildConfigJsonFromInfraEnvConfig`\n // performs (the function is module-private so we cannot import it directly):\n // - `infrastructure.storage.bucket` <= `backingServices.s3.bucket`\n // - `backingServices` is persisted as-is into the snapshot.\n // ==========================================================================\n describe('wonder-todos local infra snapshot (end-to-end)', () => {\n const wonderTodosBackingServices = {\n [BackingServiceKind.MONGODB]: {\n source: BackingServiceSource.SELF,\n database: 'wonder-todos-db',\n host: 'localhost',\n port: 27017,\n },\n [BackingServiceKind.REDIS]: {\n source: BackingServiceSource.SELF,\n host: 'localhost',\n port: 6379,\n database: 0,\n },\n [BackingServiceKind.RABBITMQ]: {\n source: BackingServiceSource.SELF,\n host: 'localhost',\n port: 5672,\n vhost: 'wonder-todos',\n },\n [BackingServiceKind.S3]: {\n source: BackingServiceSource.SELF,\n provider: 'minio' as const,\n endpoint: 'http://localhost:9000',\n bucket: 'wonder-todos-local',\n },\n [BackingServiceKind.CLAMAV]: { source: BackingServiceSource.SELF },\n };\n\n function makeWonderTodosConfig(overrides: Partial<PlatformEnvConfigJson> = {}): PlatformEnvConfigJson {\n return createConfig({\n type: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n infrastructure: {\n storage: {\n provider: 'minio',\n useSsl: false,\n bucket: 'wonder-todos-local',\n },\n postgresql: {\n database: 'wonder-todos',\n sslMode: 'disable',\n },\n },\n backingServices: wonderTodosBackingServices,\n kubernetes: undefined,\n remoteProvider: undefined,\n ...overrides,\n });\n }\n\n function makeWonderTodosEnv(): PlatformEnvironmentConfiguration {\n return createEnvironment({\n name: 'local',\n locationType: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n kubernetes: undefined,\n remoteProvider: undefined,\n backingServices: wonderTodosBackingServices,\n });\n }\n\n it('propagates every authored backingServices field to the application backend env', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n makeWonderTodosConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('wonder-todos-db');\n expect(env[ApplicationBackendDataEnvKeys.REDIS_DATABASE]).toBe('0');\n expect(env[ApplicationBackendDataEnvKeys.RABBITMQ_VHOST]).toBe('wonder-todos');\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET]).toBe('wonder-todos-local');\n expect(env[ApplicationBackendDataEnvKeys.STORAGE_PROVIDER]).toBe('minio');\n });\n\n it('propagates authored vhost / redis-db / bucket to the apps-manager env', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n makeWonderTodosConfig(),\n makeWonderTodosEnv(),\n );\n\n expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBe('wonder-todos');\n expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('0');\n expect(env[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe('wonder-todos-local');\n });\n\n it('propagates authored vhost / redis-db to the crontabs bootstrap env', () => {\n const crontabsEnv = PlatformEnvVarsBuilder.buildBootstrapEnv(\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n credentials,\n addresses,\n makeWonderTodosConfig(),\n makeWonderTodosEnv(),\n );\n\n expect(crontabsEnv[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBe('wonder-todos');\n expect(crontabsEnv[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('0');\n });\n });\n\n /**\n * Slice 3.5 — `infra.logging.*` projection.\n *\n * Pins the middle of the data flow:\n *\n * `WildoInfraEnvConfig.logging` → `PlatformEnvConfigJson.logging`\n * (persisted) → `emitLoggingEnv` (HERE) → `LOG_LEVEL` /\n * `LOG_FORMATTED_CONSOLE_ERRORS` env vars → `LoggerService`.\n *\n * The schema-side round-trip is pinned by\n * `define-infra-env-config.unimplemented.test.ts`; the consumer-side\n * read is pinned by `logger.service.env-wiring.test.ts`. This block\n * pins the projection step that is invisible to those two tests.\n */\n describe('Slice 3.5 — logging env projection', () => {\n it('emits LOG_LEVEL and LOG_FORMATTED_CONSOLE_ERRORS for apps-manager when authored', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n logging: {\n level: 'warn',\n formattedConsoleErrors: true,\n },\n }),\n createEnvironment(),\n );\n\n expect(env.LOG_LEVEL).toBe('warn');\n expect(env.LOG_FORMATTED_CONSOLE_ERRORS).toBe('true');\n });\n\n it('omits LOG_LEVEL / LOG_FORMATTED_CONSOLE_ERRORS when logging block is absent (no false defaults)', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n expect(env.LOG_LEVEL).toBeUndefined();\n expect(env.LOG_FORMATTED_CONSOLE_ERRORS).toBeUndefined();\n });\n\n it('also emits the logging vars on the application-backend surface', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({\n logging: {\n level: 'debug',\n formattedConsoleErrors: false,\n },\n }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.LOG_LEVEL).toBe('debug');\n expect(env.LOG_FORMATTED_CONSOLE_ERRORS).toBe('false');\n });\n });\n\n /**\n * Per-env provider selection override — `infra.providerSelection` →\n * `PlatformEnvConfigJson.providerSelection` → `emitProviderSelectionEnv`\n * (serialized JSON) → `WILDO_PROVIDER_SELECTION_OVERRIDES`, read by\n * `ExternalProvidersRegistryBackendService` to override the app-wide\n * `wildo.saas.config.ts` selection per environment.\n */\n /**\n * Per-env documentation-site origins — `infra.documentationSite` →\n * `PlatformEnvConfigJson.documentationSite` → `emitDocumentationSiteEnv` → the three\n * `WILDO_DOCS_*` vars, read by the application's `docusaurus.config.ts`.\n *\n * Emitted as three scalars rather than one serialized payload (the `providerSelection`\n * shape): the docs config reads each directly, and a JSON blob would force it to parse a\n * payload to recover three strings.\n */\n describe('per-env documentation-site origins (WILDO_DOCS_*) projection', () => {\n it('emits each authored origin under its own var', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({\n documentationSite: {\n apiBaseUrl: 'https://api.example.com',\n appUrl: 'https://app.example.com',\n frontendServiceName: 'wonder-todos-docs',\n },\n }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.WILDO_DOCS_API_BASE_URL).toBe('https://api.example.com');\n expect(env.WILDO_DOCS_APP_URL).toBe('https://app.example.com');\n expect(env.WILDO_DOCS_FRONTEND_SERVICE_NAME).toBe('wonder-todos-docs');\n });\n\n it('omits every var when documentationSite is absent (no false default)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.WILDO_DOCS_API_BASE_URL).toBeUndefined();\n expect(env.WILDO_DOCS_APP_URL).toBeUndefined();\n expect(env.WILDO_DOCS_FRONTEND_SERVICE_NAME).toBeUndefined();\n });\n\n it('emits ONLY the authored members, leaving the rest to the docs config defaults', () => {\n // A partially-authored block is the realistic case: an environment may pin the API\n // origin while the others stay local. Emitting an empty string for the unauthored\n // ones would be worse than omitting them — the docs config treats PRESENCE as an\n // explicit binding and would compile an empty origin into the bundle.\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({ documentationSite: { apiBaseUrl: 'https://api.example.com' } }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.WILDO_DOCS_API_BASE_URL).toBe('https://api.example.com');\n expect(env.WILDO_DOCS_APP_URL).toBeUndefined();\n expect(env.WILDO_DOCS_FRONTEND_SERVICE_NAME).toBeUndefined();\n });\n });\n\n describe('per-env provider selection override (WILDO_PROVIDER_SELECTION_OVERRIDES) projection', () => {\n it('emits the serialized override on the application-backend surface when authored', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({\n providerSelection: {\n [EngineCapability.EMAIL_TRANSACTIONAL]: { primary: 'email-preview' },\n },\n }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.WILDO_PROVIDER_SELECTION_OVERRIDES).toBeDefined();\n expect(JSON.parse(env.WILDO_PROVIDER_SELECTION_OVERRIDES!)).toEqual({\n [EngineCapability.EMAIL_TRANSACTIONAL]: { primary: 'email-preview' },\n });\n });\n\n it('omits the var when providerSelection is absent (no false default)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.WILDO_PROVIDER_SELECTION_OVERRIDES).toBeUndefined();\n });\n\n it('omits the var when providerSelection is an empty object', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({ providerSelection: {} }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.WILDO_PROVIDER_SELECTION_OVERRIDES).toBeUndefined();\n });\n });\n\n /**\n * Slice 2 Phase 5 — `infra.observability.*` → `OTEL_*` projection.\n *\n * `WildoInfraEnvConfig.observability` → `PlatformEnvConfigJson.observability`\n * → `emitObservabilityEnv` (HERE) → `OTEL_ENABLED` / `OTEL_EXPORTER_OTLP_ENDPOINT`\n * / `OTEL_SERVICE_NAME` / `OTEL_RESOURCE_ATTRIBUTES`, read by the `otel-preload`.\n *\n * The auth-header cases (Phase 5b) exercise the provider-agnostic resolver: the\n * provisioned telemetry token in `providerEnv` identifies the OBSERVABILITY_TELEMETRY\n * provider (betterstack, registered with `otlpAuth: Bearer {token}`) and is formatted\n * into `OTEL_EXPORTER_OTLP_HEADERS` — no provider named in the CLI.\n */\n describe('Slice 2 Phase 5 — observability (OTEL_*) env projection', () => {\n it('emits OTEL_* on the application-backend surface when the observability block is enabled', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.OTEL_ENABLED).toBe('true');\n expect(env.OTEL_EXPORTER_OTLP_ENDPOINT).toBe('http://localhost:4318');\n expect(env.OTEL_SERVICE_NAME).toBe('wonder-todos-api');\n expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('deployment.environment=');\n });\n\n it('omits OTEL_* when the observability block is absent or disabled (no false defaults)', () => {\n const absent = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL },\n );\n expect(absent.OTEL_ENABLED).toBeUndefined();\n\n const disabled = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials, 'wonder-todos-api', credentials, addresses,\n createConfig({ observability: { enabled: false } }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL },\n );\n expect(disabled.OTEL_ENABLED).toBeUndefined();\n });\n\n it('emits OTEL_EXPORTER_OTLP_HEADERS from a provisioned telemetry provider token (Phase 5b)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n { ...credentials, providerEnv: { BETTERSTACK_SOURCE_TOKEN: 'tok_test_123' } },\n addresses,\n createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }),\n 'local',\n // DECLARES the telemetry provider. This argument was `[]` until #360 and the header was\n // emitted anyway — that is the defect, pinned from both directions in the dedicated\n // describe below. Kept here as the positive case for the Phase-5b resolver itself.\n declaredProviderScope(['betterstack']),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBe('Authorization=Bearer tok_test_123');\n });\n\n it('omits OTEL_EXPORTER_OTLP_HEADERS when no telemetry token is provisioned (no-auth collector)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n { ...credentials, providerEnv: {} },\n addresses,\n createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBeUndefined();\n });\n });\n\n /**\n * `credentials.providerEnv` is read at runtime via\n * `ExternalProvidersRegistryBackendService.getProviderSecret/getProviderApiKey`\n * (in `saas-backend-lib`), which calls `process.env[envVarName]`. Application\n * backends, env-driven workers, and the dev companion call those methods;\n * apps-manager does not. The keys therefore MUST NOT appear in apps-manager env.\n */\n describe('provider env canonical sinks', () => {\n const credentialsWithProviders: PlatformEnvSecretsJson = {\n ...credentials,\n providerEnv: {\n OPENAI_API_KEY: 'sk-openai-test',\n ANTHROPIC_API_KEY: 'sk-ant-test',\n RESEND_API_KEY: 're_test',\n },\n };\n\n const PROVIDER_KEYS = ['OPENAI_API_KEY', 'ANTHROPIC_API_KEY', 'RESEND_API_KEY'] as const;\n /**\n * The provider REFS whose secrets those keys are.\n *\n * Application-tier builders now require a declared scope and fail CLOSED\n * without one, so these tests supply it explicitly. That does not weaken the\n * invariant they exist for — which is NEGATIVE: provider secrets must never\n * reach apps-manager or a bootstrap service. It narrows the positive half\n * from \"every application runtime gets every key\" to \"a runtime gets the keys\n * it DECLARED\", which is the point of `providers.scopes.*`.\n */\n const PROVIDER_REFS = ['openai', 'anthropic', 'resend'] as const;\n\n it('does NOT emit any provider env key in apps-manager full env', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentialsWithProviders,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n for (const key of PROVIDER_KEYS) {\n expect(env[key]).toBeUndefined();\n }\n });\n\n it.each(BOOTSTRAP_PLATFORM_SERVICES)(\n 'does NOT emit any provider env key in bootstrap service env (%s)',\n (service) => {\n const env = PlatformEnvVarsBuilder.buildBootstrapEnv(\n service,\n credentialsWithProviders,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n\n for (const key of PROVIDER_KEYS) {\n expect(env[key]).toBeUndefined();\n }\n },\n );\n\n it('emits every provider env key in application backend env (canonical sink)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentialsWithProviders,\n addresses,\n createConfig(),\n 'local',\n declaredProviderScope(PROVIDER_REFS),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.OPENAI_API_KEY).toBe('sk-openai-test');\n expect(env.ANTHROPIC_API_KEY).toBe('sk-ant-test');\n expect(env.RESEND_API_KEY).toBe('re_test');\n });\n\n it('emits every provider env key in companion api env (canonical sink — companion runs ExternalProvidersRegistryBackendService)', () => {\n const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(\n appBootstrapCredentials,\n 'wonder-todos-dev-companion',\n credentialsWithProviders,\n addresses,\n createConfig({\n type: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n createEnvironment({\n name: 'local',\n locationType: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n );\n\n expect(env.OPENAI_API_KEY).toBe('sk-openai-test');\n expect(env.ANTHROPIC_API_KEY).toBe('sk-ant-test');\n expect(env.RESEND_API_KEY).toBe('re_test');\n });\n\n it('emits every provider env key in application worker env (canonical sink for non-Node workers)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n appBootstrapCredentials,\n 'rustWorker',\n 'my-rust-worker',\n credentialsWithProviders,\n createConfig(),\n 'local',\n declaredProviderScope(PROVIDER_REFS),\n {},\n );\n\n expect(env.OPENAI_API_KEY).toBe('sk-openai-test');\n expect(env.ANTHROPIC_API_KEY).toBe('sk-ant-test');\n expect(env.RESEND_API_KEY).toBe('re_test');\n });\n\n it('materializes each provider key in exactly three sinks (backend + worker + companion) across every platform/bootstrap surface', () => {\n const appsMgrEnv = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentialsWithProviders, addresses, createConfig(), createEnvironment(),\n );\n const bootstrapEnvs = BOOTSTRAP_PLATFORM_SERVICES.map((service) =>\n PlatformEnvVarsBuilder.buildBootstrapEnv(\n service, credentialsWithProviders, addresses, createConfig(), createEnvironment(),\n ),\n );\n const backendEnv = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials, 'wonder-todos-api', credentialsWithProviders, addresses, createConfig(), 'local', declaredProviderScope(PROVIDER_REFS), { deploymentLocationType: WildoLocationType.LOCAL },\n );\n const workerEnv = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n appBootstrapCredentials,\n 'rustWorker',\n 'my-rust-worker',\n credentialsWithProviders,\n createConfig(),\n 'local',\n declaredProviderScope(PROVIDER_REFS),\n {},\n );\n const companionEnv = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(\n appBootstrapCredentials,\n 'wonder-todos-dev-companion',\n credentialsWithProviders,\n addresses,\n createConfig({\n type: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n createEnvironment({\n name: 'local',\n locationType: WildoLocationType.LOCAL,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,\n }),\n );\n\n for (const key of PROVIDER_KEYS) {\n const sinks = [\n appsMgrEnv[key],\n ...bootstrapEnvs.map((env) => env[key]),\n backendEnv[key],\n workerEnv[key],\n companionEnv[key],\n ].filter((value) => value !== undefined);\n expect(\n sinks.length,\n `Provider key '${key}' must materialize in exactly THREE sinks (backend + worker + companion). Got: ${sinks.length}.`,\n ).toBe(3);\n }\n });\n });\n\n /**\n * immudb state-signature pinning — the audit client pins `IMMUDB_STATE_PUBLIC_KEY` to\n * cryptographically reject a whole-server substitution. The key is FRAMEWORK-GENERATED\n * (`credentials.immudb.stateSigningPublicKey`, never operator-typed), so `env-vars-builder`\n * injects it into every backend runtime's env — but ONLY when the immudb audit provider is\n * configured (its `IMMUDB_HOST` is present in providerEnv), and NEVER the private half.\n */\n describe('immudb state-signing public-key delivery', () => {\n const PUBLIC_KEY = '-----BEGIN PUBLIC KEY-----\\nMFkwEwexamplepub\\n-----END PUBLIC KEY-----\\n';\n const PRIVATE_KEY = '-----BEGIN EC PRIVATE KEY-----\\nMHcCAQEEexamplepriv\\n-----END EC PRIVATE KEY-----\\n';\n const credentialsWithImmudb = (providerEnv: Record<string, string>): PlatformEnvSecretsJson => ({\n ...credentials,\n immudb: { stateSigningPrivateKey: PRIVATE_KEY, stateSigningPublicKey: PUBLIC_KEY },\n providerEnv,\n });\n\n it('injects IMMUDB_STATE_PUBLIC_KEY (public half only) into the app backend env when immudb is configured', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentialsWithImmudb({ [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.HOST]: 'immudb', [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.PASSWORD]: 'pw' }),\n addresses,\n createConfig(),\n 'local',\n // `immudb` must be in scope for its state-signing PUBLIC key to be\n // delivered — the key is attributable to that provider, so a runtime that\n // does not declare immudb correctly receives nothing for it.\n declaredProviderScope(['immudb']),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);\n // The PRIVATE key is SERVER-side only — it must NEVER surface in an app runtime's env.\n expect(env[IMMUDB_CREDENTIAL_ENV_KEYS.SERVER.STATE_SIGNING_KEY]).toBeUndefined();\n expect(Object.values(env)).not.toContain(PRIVATE_KEY);\n });\n\n it('also delivers the public key to the companion and worker runtimes', () => {\n const providerEnv = { [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.HOST]: 'immudb' };\n const workerEnv = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n appBootstrapCredentials, 'rustWorker', 'my-rust-worker', credentialsWithImmudb(providerEnv), createConfig(), 'local', declaredProviderScope(['immudb']), {},\n );\n const companionEnv = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(\n appBootstrapCredentials,\n 'wonder-todos-dev-companion',\n credentialsWithImmudb(providerEnv),\n addresses,\n createConfig({ type: WildoLocationType.LOCAL, runtime: WildoDeploymentRuntime.DOCKER_COMPOSE, runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT }),\n createEnvironment({ name: 'local', locationType: WildoLocationType.LOCAL, runtime: WildoDeploymentRuntime.DOCKER_COMPOSE, runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT }),\n );\n\n expect(workerEnv[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);\n expect(companionEnv[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);\n });\n\n it('does NOT inject the public key when the immudb provider is not configured (no IMMUDB_HOST)', () => {\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentialsWithImmudb({ OPENAI_API_KEY: 'sk-openai-test' }),\n addresses,\n createConfig(),\n 'local',\n // `immudb` must be in scope for its state-signing PUBLIC key to be\n // delivered — the key is attributable to that provider, so a runtime that\n // does not declare immudb correctly receives nothing for it.\n declaredProviderScope(['immudb']),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBeUndefined();\n });\n });\n\n /**\n * `buildRuntimeProviderEnv` is the public projection of the SAME provider-env\n * map merged into every backend/companion/worker runtime — the authority\n * `wildo config sync` reuses to emit the standalone provider-secrets sink.\n * These pins guarantee the sink stays byte-identical to the runtime provider\n * env (authored `providerEnv` verbatim + the framework-injected immudb key),\n * so a future refactor cannot let the sink drift from what the backend gets.\n */\n describe('buildRuntimeProviderEnv (provider-secrets sink authority)', () => {\n const PUBLIC_KEY = '-----BEGIN PUBLIC KEY-----\\nMFkwEwexamplepub\\n-----END PUBLIC KEY-----\\n';\n\n it('returns the authored providerEnv verbatim (incl. base64-ish API keys)', () => {\n const providerEnv = { ANTHROPIC_API_KEY: 'sk-ant-abc==', OPENAI_API_KEY: 'sk-openai-xyz' };\n const result = PlatformEnvVarsBuilder.buildRuntimeProviderEnv({ ...credentials, providerEnv });\n\n expect(result).toEqual(providerEnv);\n });\n\n it('does not mutate the source credentials.providerEnv', () => {\n const providerEnv = { ANTHROPIC_API_KEY: 'sk-ant-abc' };\n const result = PlatformEnvVarsBuilder.buildRuntimeProviderEnv({ ...credentials, providerEnv });\n\n result.INJECTED = 'x';\n expect(providerEnv).toEqual({ ANTHROPIC_API_KEY: 'sk-ant-abc' });\n });\n\n it('injects the framework-generated immudb state key when immudb is configured (a naive providerEnv copy would drop it)', () => {\n const result = PlatformEnvVarsBuilder.buildRuntimeProviderEnv({\n ...credentials,\n immudb: { stateSigningPrivateKey: 'priv', stateSigningPublicKey: PUBLIC_KEY },\n providerEnv: { [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.HOST]: 'immudb', ANTHROPIC_API_KEY: 'sk-ant' },\n });\n\n expect(result[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);\n expect(result.ANTHROPIC_API_KEY).toBe('sk-ant');\n });\n\n it('returns an empty map when no providers are authored', () => {\n expect(PlatformEnvVarsBuilder.buildRuntimeProviderEnv({ ...credentials, providerEnv: {} })).toEqual({});\n });\n });\n});\n\n// The storage values in the shared `credentials` fixture above. Named here so the\n// assertions below can prove the guard never prints them.\nconst TEST_STORAGE_ACCESS_KEY = 'minio';\nconst TEST_STORAGE_SECRET_KEY = 'minio-secret';\n\n/** Build an application-tier env through the real builder. */\nfunction buildBackendEnvForTest(): Record<string, string> {\n return PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n credentials,\n addresses,\n createConfig({}),\n 'local',\n declaredProviderScope([]),\n {\n deploymentLocationType: WildoLocationType.LOCAL,\n appDatabaseName: 'wonder_todos',\n },\n );\n}\n\ndescribe('PlatformEnvVarsBuilder — object storage ROOT credential is not distributed (storage plan R5)', () => {\n it('omits STORAGE_ACCESS_KEY / STORAGE_SECRET_KEY from application-tier env', () => {\n // Those two are the object store's ROOT credential — the same pair assigned\n // to MINIO_ROOT_USER / MINIO_ROOT_PASSWORD. Applications now obtain\n // short-lived, prefix-confined session credentials from apps-manager.\n const env = buildBackendEnvForTest();\n\n expect(env.STORAGE_ACCESS_KEY).toBeUndefined();\n expect(env.STORAGE_SECRET_KEY).toBeUndefined();\n });\n\n it('still emits the NON-secret storage wiring the adapter needs', () => {\n // The removal must be surgical: endpoint/bucket/provider are not secrets and\n // the storage adapter cannot address the store without them. Deleting them\n // too would disable file storage rather than secure it.\n const env = buildBackendEnvForTest();\n\n expect(env.STORAGE_ENDPOINT).toBeDefined();\n expect(env.STORAGE_BUCKET).toBeDefined();\n expect(env.STORAGE_PROVIDER).toBeDefined();\n });\n\n it('THROWS if the root SECRET reaches application env under ANY key name', () => {\n // The regression gate, tested against the guard directly because there is\n // deliberately no production path that leaks — which is the point.\n //\n // The leak uses a DIFFERENT key name on purpose: a key-name check would be\n // defeated exactly this way, so the guard compares VALUES.\n expect(() =>\n assertNoStorageSecretInGeneratedEnv(\n { SOME_UNRELATED_KEY: TEST_STORAGE_SECRET_KEY },\n credentials,\n 'testBuilder',\n ),\n ).toThrow(/emitted platform-tier credentials/);\n });\n\n it('passes a clean env, so the guard is not vacuously green', () => {\n // Without this, a guard that threw on everything — or on nothing — would look\n // identical to a working one in the test above.\n expect(() =>\n assertNoStorageSecretInGeneratedEnv(\n { STORAGE_ENDPOINT: 'minio', STORAGE_BUCKET: 'bucket' },\n credentials,\n 'testBuilder',\n ),\n ).not.toThrow();\n });\n\n it('never puts the secret VALUE in the error message', () => {\n // An error containing the secret would write it into CI logs — a worse place\n // than the env file it was caught in.\n try {\n assertNoStorageSecretInGeneratedEnv(\n { SOME_UNRELATED_KEY: TEST_STORAGE_SECRET_KEY },\n credentials,\n 'testBuilder',\n );\n throw new Error('expected the guard to throw');\n } catch (error) {\n const message = (error as Error).message;\n expect(message).not.toContain(TEST_STORAGE_ACCESS_KEY);\n expect(message).not.toContain(TEST_STORAGE_SECRET_KEY);\n // …but it must name the offending KEY, or the failure is unactionable.\n expect(message).toContain('SOME_UNRELATED_KEY');\n }\n });\n});\n\ndescribe('assertNoStorageSecretInGeneratedEnv — the forbidden set is the SECRET only, and has no key exemptions', () => {\n it('does NOT fire on the access key, which is an identifier rather than a credential', () => {\n // The access key is the principal's NAME: for MinIO conventionally the literal\n // `minio` (also the provider name and the compose hostname), and in this\n // repository's generated secrets a short shared admin username that is\n // byte-identical to `mongodb.rootUser` and `rabbitmq.adminUsername`. It grants\n // nothing on its own.\n //\n // It used to be in the forbidden set, and that forced an exemption list of env\n // KEY NAMES to suppress the resulting false positives — re-introducing a\n // by-name escape hatch into a guard whose entire premise is that names are\n // defeatable. Dropping the access key removed the false positives and the\n // escape hatch together.\n expect(() =>\n assertNoStorageSecretInGeneratedEnv(\n {\n STORAGE_PROVIDER: TEST_STORAGE_ACCESS_KEY,\n STORAGE_ENDPOINT: TEST_STORAGE_ACCESS_KEY,\n SOME_OTHER_KEY: TEST_STORAGE_ACCESS_KEY,\n },\n credentials,\n 'testBuilder',\n ),\n ).not.toThrow();\n });\n\n it('fires on the SECRET even under a key that used to be exempt', () => {\n // The load-bearing consequence of removing the exemption list. Previously\n // `STORAGE_ENDPOINT` was skipped entirely, so a secret emitted under it would\n // have passed. No key is skipped now.\n expect(() =>\n assertNoStorageSecretInGeneratedEnv(\n { STORAGE_ENDPOINT: TEST_STORAGE_SECRET_KEY },\n credentials,\n 'testBuilder',\n ),\n ).toThrow(/STORAGE_ENDPOINT/);\n });\n\n it('fires on the SECRET under its own canonical key name', () => {\n expect(() =>\n assertNoStorageSecretInGeneratedEnv(\n { STORAGE_SECRET_KEY: TEST_STORAGE_SECRET_KEY },\n credentials,\n 'testBuilder',\n ),\n ).toThrow(/STORAGE_SECRET_KEY/);\n });\n});\n\ndescribe('assertNoStorageSecretInGeneratedEnv — every application-tier builder is a call site', () => {\n // `buildApplicationBackendEnv` and `buildApplicationWorkerEnv` each build an env\n // from scratch and so each need the guard; `buildApplicationMinionEnv` delegates\n // to the backend builder and inherits it. The worker was missed when the guard\n // first landed — it emits no STORAGE_* today, but `resolveRuntimeProviderEnv`\n // fans values out of the same `credentials` object the root pair lives in.\n // See `.claude/rules/invariant-call-site-enumeration.md`.\n const buildWorkerEnv = (workerCredentials: PlatformEnvSecretsJson, scopedProviderRefs: string[]) =>\n PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n appBootstrapCredentials,\n 'myRustWorker',\n 'wonder-todos-my-rust-worker',\n workerCredentials,\n createConfig({}),\n 'local',\n declaredProviderScope(scopedProviderRefs),\n {},\n );\n\n it('the worker builder produces a clean env today', () => {\n // Positive control: without this, the throwing test below could not be\n // distinguished from a builder that fails for any input.\n expect(() => buildWorkerEnv(credentials, [])).not.toThrow();\n });\n\n it('the worker builder REFUSES when the storage secret reaches its env through a provider value', () => {\n // Drives the guard through the only channel by which the worker env can\n // currently carry arbitrary values out of `credentials` — the scoped provider\n // fan-out. Asserting the OUTPUT instead would pass whether or not the guard is\n // wired, which is precisely the mistake that let the worker call site go\n // missing in the first place.\n const leaking: PlatformEnvSecretsJson = {\n ...credentials,\n providerEnv: { OPENAI_API_KEY: TEST_STORAGE_SECRET_KEY },\n };\n\n expect(() => buildWorkerEnv(leaking, ['openai'])).toThrow(\n /buildApplicationWorkerEnv emitted platform-tier credentials/,\n );\n });\n});\n\ndescribe('PlatformEnvVarsBuilder — provider secrets are scoped to the declared providers (minions plan R6 / F19)', () => {\n const PROVIDER_ENV = {\n OPENAI_API_KEY: 'sk-openai-xxxxxxxx',\n ANTHROPIC_API_KEY: 'sk-anthropic-xxxxxxxx',\n STRIPE_SECRET_KEY: 'sk-stripe-xxxxxxxx',\n RESEND_API_KEY: 're-resend-xxxxxxxx',\n };\n\n function buildScoped(scopedProviderRefs: readonly string[]): Record<string, string> {\n return PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n { ...credentials, providerEnv: PROVIDER_ENV },\n addresses,\n createConfig({}),\n 'local',\n declaredProviderScope(scopedProviderRefs),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n }\n\n it('gives a runtime scoped to openai ONLY the openai key', () => {\n // The finding in one assertion: a marketing-scraper minion declared with\n // `openai` was receiving the application's Stripe secret key.\n const env = buildScoped(['openai']);\n\n expect(env.OPENAI_API_KEY).toBe(PROVIDER_ENV.OPENAI_API_KEY);\n expect(env.STRIPE_SECRET_KEY).toBeUndefined();\n expect(env.ANTHROPIC_API_KEY).toBeUndefined();\n expect(env.RESEND_API_KEY).toBeUndefined();\n });\n\n it('gives a runtime declaring NO providers no provider secrets at all', () => {\n // `myRustWorker` declares `providers: {}` and previously received every key.\n const env = buildScoped([]);\n\n for (const key of Object.keys(PROVIDER_ENV)) {\n expect(env[key], key).toBeUndefined();\n }\n });\n\n it('FAILS CLOSED when the scope is omitted entirely', () => {\n // The load-bearing default. \"Omitted\" must mean NONE, not ALL — the opposite\n // default is exactly how every minion came to hold every provider secret.\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n { ...credentials, providerEnv: PROVIDER_ENV },\n addresses,\n createConfig({}),\n 'local',\n declaredProviderScope([]),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.STRIPE_SECRET_KEY).toBeUndefined();\n expect(env.OPENAI_API_KEY).toBeUndefined();\n });\n\n it('still gives a broadly-scoped runtime everything it declared', () => {\n // The filter must not be a blunt instrument: the backend declares most\n // providers and must keep them, or storage/AI/billing all break.\n const env = buildScoped(['openai', 'anthropic', 'stripe', 'resend']);\n\n expect(env.OPENAI_API_KEY).toBe(PROVIDER_ENV.OPENAI_API_KEY);\n expect(env.ANTHROPIC_API_KEY).toBe(PROVIDER_ENV.ANTHROPIC_API_KEY);\n expect(env.STRIPE_SECRET_KEY).toBe(PROVIDER_ENV.STRIPE_SECRET_KEY);\n expect(env.RESEND_API_KEY).toBe(PROVIDER_ENV.RESEND_API_KEY);\n });\n\n it('DROPS a key no provider claims, and says so, instead of passing it as configuration (#329)', () => {\n /*\n * INVERTED by #329, and the inversion is the security fix rather than a taste change.\n *\n * This pin used to assert the opposite — \"a key no provider claims is config (a hostname, a\n * database name), dropping it would break runtimes for a reason unrelated to credentials\".\n * That reasoning held only while every provider was engine-shipped. The moment a provider can\n * ship as its own package, \"no provider claims it\" stops meaning \"it is not a secret\" and\n * starts meaning \"the CLI cannot SEE the provider that owns it\" — so the rule delivered a\n * package-shipped provider's API key into every worker and minion environment, silently, which\n * is exactly what the confinement exists to prevent.\n *\n * The premise was also wrong on its own terms: a provider whose configuration is a hostname or\n * a database name puts THAT in its own secrets contract — immudb and odoo both do — and every\n * framework writer of `providerEnv` fills it straight from those contracts. Measured when this\n * was inverted: both dogfood applications' live `providerEnv` holds 13 keys and every one is\n * attributable, so failing closed drops nothing that exists today.\n */\n const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n { ...credentials, providerEnv: { ...PROVIDER_ENV, SOME_PLAIN_CONFIG: 'not-a-provider-secret' } },\n addresses,\n createConfig({}),\n 'local',\n declaredProviderScope(['openai']),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n expect(env.SOME_PLAIN_CONFIG).toBeUndefined();\n expect(env.STRIPE_SECRET_KEY).toBeUndefined();\n // A refusal nobody can see is the failure mode this whole slice is about, so the drop names\n // the key. Asserting the report — not only the absence — is what stops a future \"simplify\"\n // from turning the fix back into a silent one.\n expect(warn).toHaveBeenCalledWith(expect.stringContaining('SOME_PLAIN_CONFIG'));\n warn.mockRestore();\n // The provider it DID declare still arrives — the filter is not a blunt instrument.\n expect(env.OPENAI_API_KEY).toBe(PROVIDER_ENV.OPENAI_API_KEY);\n });\n});\n\ndescribe('PlatformEnvVarsBuilder — a minion receives the providers it DECLARED (F-F)', () => {\n // `providers.scopes.minions.<name>` is the authored boundary. Two ways to get it\n // wrong, and the minion path has been on both sides: inheriting the whole\n // application bag (a minion scoped to `openai` holding STRIPE_SECRET_KEY), or\n // fail-closing to nothing (the same minion losing the `openai` key it declared\n // and needs). Only the DECLARED set is correct.\n const credentialsWithProviders: PlatformEnvSecretsJson = {\n ...credentials,\n providerEnv: {\n OPENAI_API_KEY: 'sk-openai-test',\n STRIPE_SECRET_KEY: 'sk-stripe-test',\n RESEND_API_KEY: 're_test',\n },\n };\n\n // The scope is a POSITIONAL argument, which is what makes this helper honest. While it was an\n // optional field on `options`, an earlier version compiled cleanly through a conditional spread\n // (a spread suppresses TypeScript's excess-property check) even though the builder's options type\n // did not declare the field at all — the test exercised the runtime and hid the very type gap\n // that kept the generator from passing it. A positional parameter has no such escape: this helper\n // cannot call the builder without stating a scope, and neither can production code.\n // The access declaration is a PARAMETER here for the same reason the scope is:\n // a helper that hard-coded one would let a caller omit the distinction between\n // \"declared nothing\" and \"declared empty\", which is the distinction that decides\n // whether a minion receives database topology at all.\n const buildMinionEnv = (\n scopedProviderRefs: readonly string[],\n accessDeclaration: RuntimeAccessDeclaration = { resourceAccess: {} },\n ) =>\n PlatformEnvVarsBuilder.buildApplicationMinionEnv(\n appBootstrapCredentials,\n 'wonder-todos-marketing-scrapper',\n credentialsWithProviders,\n addresses,\n createConfig({}),\n 'local',\n declaredProviderScope(scopedProviderRefs),\n accessDeclaration,\n {\n deploymentLocationType: WildoLocationType.LOCAL,\n appDatabaseName: 'wonder_todos',\n },\n );\n\n /**\n * R-COHERENCE (Step 5-egress): a minion that may not REACH a backing service\n * must not receive that service's topology either.\n *\n * The failure these prevent is not a refusal — it is that `isConfigured()`\n * reports true, a probe or a first use runs, and an unroutable host fails as a\n * timeout, reading as \"the service is down\" for a runtime that was never\n * supposed to have it.\n */\n it('a minion that DECLARED NO resourceAccess receives no database or storage topology', () => {\n const env = buildMinionEnv(['openai'], {});\n expect(env.MONGODB_HOST).toBeUndefined();\n expect(env.POSTGRESQL_HOST).toBeUndefined();\n expect(env.STORAGE_ENDPOINT).toBeUndefined();\n });\n\n it('…but STILL receives queue and cache topology, whose credentials are always minted', () => {\n // Withholding these would strand a credential apps-manager issues to every\n // minion — the same incoherence from the other direction.\n const env = buildMinionEnv(['openai'], {});\n expect(env.RABBITMQ_HOST).toBeDefined();\n expect(env.REDIS_HOST).toBeDefined();\n });\n\n it('a minion that DECLARED resourceAccess receives database topology', () => {\n // Declared-but-empty counts as declared. If this reddens while the pin above\n // stays green, presence was replaced by truthiness.\n const env = buildMinionEnv(['openai'], { resourceAccess: {} });\n expect(env.MONGODB_HOST).toBeDefined();\n });\n\n it('the APPLICATION BACKEND is unaffected by the minion gate', () => {\n // The builder the minion delegates to is the backend's own. This is the pin\n // that reddens if the gate is applied inside it without a per-runtime input —\n // narrowing the backend while believing only a minion was narrowed.\n const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-backend',\n credentialsWithProviders,\n addresses,\n createConfig({}),\n 'local',\n declaredProviderScope(['openai']),\n { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'wonder_todos' },\n );\n expect(env.MONGODB_HOST).toBeDefined();\n expect(env.STORAGE_ENDPOINT).toBeDefined();\n });\n\n it('receives the DECLARED provider key', () => {\n expect(buildMinionEnv(['openai']).OPENAI_API_KEY).toBe('sk-openai-test');\n });\n\n it('does NOT receive provider keys it did not declare', () => {\n const env = buildMinionEnv(['openai']);\n expect(env.STRIPE_SECRET_KEY).toBeUndefined();\n expect(env.RESEND_API_KEY).toBeUndefined();\n });\n\n it('receives NO provider secrets when it declares none (fail-closed)', () => {\n const env = buildMinionEnv([]);\n expect(env.OPENAI_API_KEY).toBeUndefined();\n expect(env.STRIPE_SECRET_KEY).toBeUndefined();\n });\n});\n\n/**\n * #360 — the confinement invariant's SECOND delivery path.\n *\n * The per-key fan-out was scoped; `OTEL_EXPORTER_OTLP_HEADERS` was composed from the raw\n * `credentials.providerEnv`, so the token a runtime was correctly refused arrived on the next\n * line, inside a header. One invariant, two paths, one of them open.\n *\n * Every assertion below is a PAIR — withheld on one side, delivered on the other — because a\n * one-sided pin cannot distinguish \"the confinement works\" from \"the header is broken for\n * everyone\". `betterstack` is the engine's only `otlpAuth` provider, so it is the only ref that\n * can exercise this path at all.\n */\ndescribe('PlatformEnvVarsBuilder — a telemetry secret does not bypass the scope inside the OTLP header (#360)', () => {\n const TELEMETRY_TOKEN = 'bs-secret-token';\n const observabilityCredentials: PlatformEnvSecretsJson = {\n ...credentials,\n providerEnv: { BETTERSTACK_SOURCE_TOKEN: TELEMETRY_TOKEN },\n };\n const telemetryEnabledConfig = () =>\n createConfig({ observability: { enabled: true, endpoint: 'https://in.betterstack.com' } });\n\n const buildBackend = (scopedProviderRefs: readonly string[]) =>\n PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n appBootstrapCredentials,\n 'wonder-todos-api',\n observabilityCredentials,\n addresses,\n telemetryEnabledConfig(),\n 'local',\n declaredProviderScope(scopedProviderRefs),\n { deploymentLocationType: WildoLocationType.LOCAL },\n );\n\n // The worker builds its env from scratch instead of delegating, so it is a SEPARATE call site\n // for the same invariant — the shape that produced this defect's fourteen predecessors\n // (`.claude/rules/invariant-call-site-enumeration.md`). Pinning only the backend would leave\n // the worker free to regress on its own.\n const buildWorker = (scopedProviderRefs: readonly string[]) =>\n PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n appBootstrapCredentials,\n 'myRustWorker',\n 'wonder-todos-my-rust-worker',\n observabilityCredentials,\n telemetryEnabledConfig(),\n 'local',\n declaredProviderScope(scopedProviderRefs),\n {},\n );\n\n const buildMinion = (scopedProviderRefs: readonly string[]) =>\n PlatformEnvVarsBuilder.buildApplicationMinionEnv(\n appBootstrapCredentials,\n 'wonder-todos-marketing-scrapper',\n observabilityCredentials,\n addresses,\n telemetryEnabledConfig(),\n 'local',\n declaredProviderScope(scopedProviderRefs),\n { resourceAccess: {} },\n { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'wonder_todos' },\n );\n\n describe.each([\n ['backend', buildBackend],\n ['worker', buildWorker],\n ['minion', buildMinion],\n ])('%s', (_label, build) => {\n it('receives the telemetry token by NO path when its scope excludes the provider', () => {\n const env = build([]);\n\n // The path the confinement already covered…\n expect(env.BETTERSTACK_SOURCE_TOKEN).toBeUndefined();\n // …and the one it did not. Asserting absence of the HEADER is not enough on its own: the\n // value is what leaked, so the token itself must appear nowhere in the emitted env.\n expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBeUndefined();\n expect(Object.values(env).some((value) => value.includes(TELEMETRY_TOKEN))).toBe(false);\n });\n\n it('still exports telemetry, unauthenticated, when the scope excludes the provider', () => {\n // The decision's stated cost, pinned so it stays the cost. Withholding the header must not\n // silently disable telemetry — that would turn a credential decision into an observability\n // outage, and the runtime would go dark rather than export anonymously.\n const env = build([]);\n\n expect(env.OTEL_ENABLED).toBe('true');\n expect(env.OTEL_EXPORTER_OTLP_ENDPOINT).toBe('https://in.betterstack.com');\n });\n\n it('receives the header when it DOES declare the telemetry provider', () => {\n // Without this the pins above are satisfied by a builder that never emits a header at all.\n const env = build(['betterstack']);\n\n expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBe(`Authorization=Bearer ${TELEMETRY_TOKEN}`);\n expect(env.BETTERSTACK_SOURCE_TOKEN).toBe(TELEMETRY_TOKEN);\n });\n });\n});\n\ndescribe('assertNoPlatformCredentialInGeneratedEnv — the whole platform credential set, not just storage', () => {\n // Storage was found by reading code, not by a check. The other backing services\n // are absent from app env only because each mints per-application credentials —\n // a property of how they happen to be wired, enforced nowhere. A future provider\n // that skips minting (exactly what the MinIO module did) would reproduce the\n // same exposure against a different service with nothing to catch it.\n const cases: ReadonlyArray<readonly [string, string]> = [\n ['the MongoDB root password', credentials.mongodb!.rootPassword],\n ['the RabbitMQ admin password', credentials.rabbitmq!.adminPassword],\n ['the RabbitMQ Erlang cookie', credentials.rabbitmq!.erlangCookie],\n ['the object storage ROOT credential', TEST_STORAGE_SECRET_KEY],\n ];\n\n for (const [label, value] of cases) {\n it(`refuses ${label} under an arbitrary key`, () => {\n expect(() =>\n assertNoPlatformCredentialInGeneratedEnv({ INNOCENT_LOOKING_KEY: value }, credentials, 'testBuilder'),\n ).toThrow(/emitted platform-tier credentials/);\n });\n }\n\n it('refuses a credential EMBEDDED inside a connection URL — raw or percent-encoded (containment, 5.3 review F6)', () => {\n // A URL-embedded credential is exactly as leaked as a bare one. The exact-value comparison\n // was blind to it — and `PG_CONNECT_URL` now legitimately carries the encoded admin password\n // on the PLATFORM tier, so a future app-tier builder copying that URL is the live scenario.\n const rawEmbedded = `postgresql://wildo_admin:${credentials.postgresql!.adminPassword}@host:5432/db`;\n expect(() =>\n assertNoPlatformCredentialInGeneratedEnv({ SOME_URL: rawEmbedded }, credentials, 'testBuilder'),\n ).toThrow(/emitted platform-tier credentials/);\n\n const specialCharCredentials = {\n ...credentials,\n postgresql: { adminUser: 'wildo_admin', adminPassword: 'p@ss:w#rd-long-generated-value' },\n };\n const encodedEmbedded = `postgresql://wildo_admin:${encodeURIComponent('p@ss:w#rd-long-generated-value')}@host:5432/db`;\n expect(() =>\n assertNoPlatformCredentialInGeneratedEnv({ SOME_URL: encodedEmbedded }, specialCharCredentials, 'testBuilder'),\n ).toThrow(/emitted platform-tier credentials/);\n });\n\n it('names every distinct credential it found, so one fix does not mask another', () => {\n try {\n assertNoPlatformCredentialInGeneratedEnv(\n { A_KEY: credentials.mongodb!.rootPassword, B_KEY: TEST_STORAGE_SECRET_KEY },\n credentials,\n 'testBuilder',\n );\n throw new Error('expected the guard to throw');\n } catch (error) {\n const message = (error as Error).message;\n expect(message).toContain('A_KEY');\n expect(message).toContain('B_KEY');\n // …and still never the values themselves.\n expect(message).not.toContain(credentials.mongodb!.rootPassword);\n expect(message).not.toContain(TEST_STORAGE_SECRET_KEY);\n }\n });\n\n it('does NOT fire on an IDENTIFIER — usernames collide with hostnames and provider ids', () => {\n expect(() =>\n assertNoPlatformCredentialInGeneratedEnv(\n { SOME_KEY: credentials.mongodb!.rootUser, OTHER: TEST_STORAGE_ACCESS_KEY },\n credentials,\n 'testBuilder',\n ),\n ).not.toThrow();\n });\n\n it('passes a clean env, so the widened guard is not vacuously green', () => {\n expect(() =>\n assertNoPlatformCredentialInGeneratedEnv(\n { STORAGE_ENDPOINT: 'minio', MONGODB_HOST: 'mongodb' },\n credentials,\n 'testBuilder',\n ),\n ).not.toThrow();\n });\n});\n\n/**\n * The postgres credential-emission UNION rule (2026-08-11 regression pins).\n *\n * `shouldProvisionPostgreSQL` used to test ONLY `config.database.engine === POSTGRESQL`, while the\n * compose generator rendered the postgres SERVICE from the wider `needsLocalPostgreSQL` rule\n * (engine OR an author-declared SELF backing service). A MongoDB-platform app with\n * `backingServices.postgresql: SELF` therefore got a compose service with a BLANK\n * `POSTGRES_ADMIN_PASSWORD` — the container refuses to initialize and crash-loops, failing\n * `wildo local dev` at infrastructure readiness. These pins hold the two gates to one rule.\n */\ndescribe('buildInfraCredentialEnv — postgres union rule', () => {\n it('emits postgres admin credentials for a MongoDB-platform env whose author declared a SELF postgres backing service', () => {\n const env = PlatformEnvVarsBuilder.buildInfraCredentialEnv(\n credentials,\n createConfig(),\n createEnvironment({\n backingServices: {\n [BackingServiceKind.POSTGRESQL]: { source: BackingServiceSource.SELF, host: 'localhost', port: 5432 },\n },\n }),\n );\n expect(env.POSTGRES_ADMIN_USER).toBe('postgres');\n expect(env.POSTGRES_ADMIN_PASSWORD).toBe('postgres-password');\n expect(env.POSTGRES_ADMIN_DATABASE).toBe('postgres');\n });\n\n it('emits no postgres credentials when neither the engine nor a SELF backing service asks for them', () => {\n const env = PlatformEnvVarsBuilder.buildInfraCredentialEnv(credentials, createConfig(), createEnvironment());\n expect(Object.keys(env).filter((key) => key.startsWith('POSTGRES'))).toEqual([]);\n });\n\n it('fails LOUDLY, naming the remedy, when postgres is included but secrets carry no postgresql credentials', () => {\n const { postgresql: _omitted, ...withoutPostgres } = credentials;\n expect(() => PlatformEnvVarsBuilder.buildInfraCredentialEnv(\n withoutPostgres as typeof credentials,\n createConfig(),\n createEnvironment({\n backingServices: {\n [BackingServiceKind.POSTGRESQL]: { source: BackingServiceSource.SELF, host: 'localhost', port: 5432 },\n },\n }),\n )).toThrow(/wildo -y setup/);\n });\n});\n\ndescribe(\"emitPlatformPostgresEnv — the platform's OWN PostgreSQL (Phase 5.3, D7)\", () => {\n it('a Mongo-engined platform emits NEITHER key — existing .env material stays byte-identical', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig(),\n createEnvironment(),\n );\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBeUndefined();\n expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBeUndefined();\n });\n\n /**\n * The transition-legal environment shape: platform engine POSTGRESQL + an AUTHORED mongodb\n * backing service (the 5.1 union's second half). A PG-engined platform without it is REFUSED\n * at generation time — see the dedicated pin below.\n */\n const postgresEngineEnvironment = () =>\n createEnvironment({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n backingServices: {\n [BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },\n },\n });\n\n it('a self-hosted PostgreSQL-engined platform gets the initdb-database URL + the adapter selection', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n }),\n postgresEngineEnvironment(),\n );\n // The URL targets the PLATFORM's OWN database — never `infrastructure.postgresql.database`,\n // which names the APPLICATION's database (see the distinctness pin below).\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe(\n 'postgresql://postgres:postgres-password@postgresql:5432/wildo_platform?sslmode=disable',\n );\n expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBe('postgresql');\n });\n\n it('the platform database is DISTINCT from the application database — the collision that would have shared tables', () => {\n /**\n * `infrastructure.postgresql.database` is mirrored from the author's\n * `backingServices.postgresql.database` — the APPLICATION's database, and also the compose\n * container's initdb database (for Wonder Todos local, literally `wonder-todos-db`). Pointing\n * the platform there put its ~94 tables — `users`, `organizations`, `applications` among them\n * — inside the application's database; and since every generated statement is\n * `create table if not exists`, an application provisioning its own schema afterwards would\n * SILENTLY ADOPT the platform's tables rather than fail. Two tenancy planes, one table set,\n * no diagnostic. This pin fixes the separation as a property, not a convention.\n */\n const applicationDatabase = 'wonder-todos-db';\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n infrastructure: {\n storage: { provider: 'minio', useSsl: false, bucket: 'bucket' },\n postgresql: { database: applicationDatabase, sslMode: 'disable' },\n },\n }),\n postgresEngineEnvironment(),\n );\n\n const platformUrl = env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL];\n expect(platformUrl).not.toContain(applicationDatabase);\n expect(platformUrl?.endsWith('/wildo_platform?sslmode=disable')).toBe(true);\n /**\n * …and the ADMIN key is the third name again — the MAINTENANCE database.\n *\n * This assertion previously read `toBe(applicationDatabase)`, explained by a comment claiming\n * the key carried \"the container's initdb database\". It does not, and never did: initdb is fed\n * by `POSTGRES_ADMIN_DATABASE` on a different transport (see the sibling pin below). What\n * `PG_ADMIN_DATABASE` actually addresses is where the admin pool CONNECTS to run\n * `CREATE DATABASE` — so pointing it at a database that pool is meant to CREATE made admin\n * init fail on every machine where it did not exist yet, disabling PostgreSQL provisioning for\n * the whole process behind a 200 `/health/ready`.\n */\n expect(env[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE]).toBe(PLATFORM_POSTGRES_MAINTENANCE_DATABASE);\n expect(env[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE]).not.toBe(applicationDatabase);\n });\n\n /**\n * The three names are pinned TOGETHER because the defect was never visible in any one of them —\n * each value is individually plausible, and only their relationship is wrong. A regression that\n * re-derives any of the three from another reddens here.\n */\n it('the three PostgreSQL database names stay mutually distinct — admin ≠ application ≠ platform', () => {\n const applicationDatabase = 'wonder-todos-db';\n const config = createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n infrastructure: {\n storage: { provider: 'minio', useSsl: false, bucket: 'bucket' },\n postgresql: { database: applicationDatabase, sslMode: 'disable' },\n },\n });\n const environment = postgresEngineEnvironment();\n\n const appsManagerEnv = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, config, environment);\n const infraEnv = PlatformEnvVarsBuilder.buildInfraCredentialEnv(credentials, config, environment);\n\n // 1. Where the admin pool CONNECTS to provision — a database it never provisions itself.\n expect(appsManagerEnv[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE]).toBe('postgres');\n // 2. The container's initdb database — a DIFFERENT key, and the one that genuinely follows the author.\n expect(infraEnv.POSTGRES_ADMIN_DATABASE).toBe(applicationDatabase);\n // 3. Where the platform's own tables live.\n expect(appsManagerEnv[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toContain('/wildo_platform?');\n\n expect(new Set([\n appsManagerEnv[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE],\n infraEnv.POSTGRES_ADMIN_DATABASE,\n PLATFORM_POSTGRES_DATABASE,\n ]).size).toBe(3);\n });\n\n it('URL-encodes admin credentials — an @/:/# in the password must not corrupt the authority section', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n {\n ...credentials,\n postgresql: { adminUser: 'wildo admin', adminPassword: 'p@ss:w#rd' },\n },\n addresses,\n createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n }),\n postgresEngineEnvironment(),\n );\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe(\n 'postgresql://wildo%20admin:p%40ss%3Aw%23rd@postgresql:5432/wildo_platform?sslmode=disable',\n );\n });\n\n it('an EXOTIC authored database name cannot leak into the platform URL — nor corrupt it', () => {\n /**\n * This pin used to assert that the AUTHORED name was percent-encoded into the platform URL.\n * That premise is gone: the platform now always targets its own `wildo_platform` database\n * (the collision fix), so an authored name — however hostile — must not appear at all. The\n * adversarial input is kept because it proves BOTH halves at once: no leak, and no truncation\n * of the URL by a `?` that would otherwise start a query string. The builder still encodes its\n * path segment defensively, which is what keeps that true if the name ever becomes derived.\n */\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n infrastructure: {\n storage: { provider: 'minio', useSsl: false, bucket: 'bucket' },\n postgresql: { database: 'my db?x', sslMode: 'disable' },\n },\n }),\n postgresEngineEnvironment(),\n );\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe(\n 'postgresql://postgres:postgres-password@postgresql:5432/wildo_platform?sslmode=disable',\n );\n });\n\n it('an app-authored `backingServices.postgresql: SELF` on a Mongo platform does NOT emit — the gate is the platform ENGINE, not the provisioning union', () => {\n /**\n * The union predicate (`shouldProvisionPostgreSQL`) correctly renders the container and its\n * admin credentials for an APPLICATION's PostgreSQL resources. Handing the PLATFORM a connect\n * URL — let alone flipping its default adapter — off that same signal would point the control\n * plane at a database that belongs to an application. The two halves must stay apart.\n */\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig(),\n createEnvironment({\n backingServices: {\n [BackingServiceKind.POSTGRESQL]: { source: BackingServiceSource.SELF },\n },\n }),\n );\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBeUndefined();\n expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBeUndefined();\n // …while the provisioning half still does its job for the application's container.\n expect(env[PlatformInfrastructureEnvKeys.PG_HOST]).toBe('postgresql');\n });\n\n it('a MANAGED PostgreSQL platform passes the external connectionUrl through verbatim (the Atlas mirror)', () => {\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'neon' },\n externalEndpoints: {\n postgresql: { connectionUrl: 'postgresql://neon-user:neon-pass@ep.neon.tech/wildo_platform?sslmode=require' },\n },\n }),\n createEnvironment({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED },\n backingServices: {\n [BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },\n },\n }),\n );\n expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe(\n 'postgresql://neon-user:neon-pass@ep.neon.tech/wildo_platform?sslmode=require',\n );\n expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBe('postgresql');\n });\n\n it('REFUSES a MANAGED PostgreSQL platform with no externalEndpoints.postgresql — at generation, naming the remedy', () => {\n // Without this, the emitter wrote PG_CONNECT_URL= (empty) and the failure surfaced as an\n // opaque \"Invalid URL\" inside boot-time env validation, three layers from the cause — and the\n // slot has no wizard authoring path, so EVERY managed-PG env would hit it.\n expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'neon' },\n }),\n createEnvironment({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED },\n backingServices: {\n [BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },\n },\n }),\n )).toThrow(/externalEndpoints\\.postgresql/);\n });\n\n it('ACCEPTS a PostgreSQL-engined platform whose environment renders NO mongod', () => {\n /**\n * The inverse of what this asserted until 2026-08-28, when the requirement retired along with\n * its schema-side twin in `define-infra-env-config.ts`.\n *\n * The refusal was written for a real trap — a `MONGO_CONNECT_URL` pointing at a container no\n * transport renders — but the trap was downstream of `MONGO_CONNECT_URL` being an\n * unconditionally REQUIRED key on the apps-manager env schema. It is now optional and\n * empty-means-absent, exactly like `PG_CONNECT_URL`, so an unrendered mongod produces an ABSENT\n * key rather than a dangling address. The generator emits an empty string here and always did;\n * what changed is that the consumer now reads that as \"not MongoDB-engined\".\n *\n * The invariant that survives — a platform must render AT LEAST ONE store — lives on the env\n * schema, beside the keys it is about, where a hand-edited env file is also subject to it.\n */\n const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n createConfig({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n }),\n createEnvironment({\n database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },\n }),\n );\n\n // Emitted EMPTY, not omitted — the compose interpolation contract, and what the schema's\n // `z.preprocess` reads as absent.\n expect(env.MONGO_CONNECT_URL).toBe('');\n expect(env.PG_CONNECT_URL).toBeTruthy();\n });\n});\n"]}
|