@wildo-ai/wildo-cli 1.1.2 → 1.1.3
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__/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/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.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.js +1 -1
- 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 +309 -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.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 +57 -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 +3 -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/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/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/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__/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/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.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 +156 -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 +34 -10
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js +62 -48
- 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.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.js +0 -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 +130 -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 +280 -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 +6 -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 +24 -24
- 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/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__/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 +98 -37
- package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts +175 -0
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -0
- package/dist/src/services/credentials/composed-provider-catalogue.js +228 -0
- package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -0
- package/dist/src/services/credentials/credentials.schemas.d.ts +2 -22
- package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.js +17 -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 +2 -0
- 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 +11 -3
- 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-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.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js +3 -0
- 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 +169 -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 +47 -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.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 +50 -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 +45 -0
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.js +122 -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__/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 +166 -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 +130 -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 +1466 -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/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 +2 -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 +330 -74
- 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/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-backend-provider/scenario.json +2 -2
- 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 +18 -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 +52 -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 +26 -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/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-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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-sync.service.js","sourceRoot":"","sources":["../../../../../../src/services/environment/env-sync.service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAErC,OAAO,EACL,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,wEAAwE,CAAC;AAC/I,OAAO,EAAE,6BAA6B,EAAE,MAAM,gEAAgE,CAAC;AAC/G,OAAO,EACL,+BAA+B,GAOhC,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAA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B,EAAE,MAAM,EAAE,CAAC;YACvC,KAAK,MAAM,MAAM,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;gBAChD,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,cAAc,EAAE,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;YAC7F,CAAC;QACH,CAAC;QACD,IAAI,OAAO,CAAC,kBAAkB,EAAE,MAAM,EAAE,CAAC;YACvC,KAAK,MAAM,MAAM,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;gBAChD,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,cAAc,EAAE,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;YAC7F,CAAC;QACH,CAAC;QACD,IAAI,OAAO,CAAC,oBAAoB,EAAE,MAAM,EAAE,CAAC;YACzC,KAAK,MAAM,QAAQ,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;gBACpD,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,cAAc,EAAE,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;YAC/F,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AACnD,CAAC","sourcesContent":["/**\n * EnvSyncService — regenerate env files from secrets.json + config.json.\n *\n * IMPLEMENTATION: DONE — sync(), checkExisting(). Used by `wildo config sync --domain env-files`.\n * Command handles prompting when files exist; service overwrites on sync().\n */\n\nimport { existsSync } from 'fs';\nimport { join, resolve } from 'path';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport {\n resolveFrameworkLayout,\n WildoDeploymentRuntime,\n} from '@wildo-ai/platform-config-lib';\nimport type { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { FILE_NAMES } from '~wildo-cli/infrastructure/io/io.schemas';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { generateEnvWildoPlatform, renderDockerComposeTemplate } from '~wildo-cli/services/deployment/docker/docker-compose-generator.service';\nimport { readLiveLocalDevPlatformOwner } from '~wildo-cli/services/deployment/local-dev-session-lease.service';\nimport {\n generatePlatformServiceEnvFiles,\n type ApplicationBackendEnvTarget,\n type CompanionPlatformEnvTarget,\n type ApplicationFrontendEnvExampleTarget,\n type ApplicationWorkerEnvTarget,\n type ApplicationMinionEnvTarget,\n type ApplicationOperatorEnvTarget,\n} from '~wildo-cli/services/environment/env-configuration-generator.service';\nimport { PLATFORM_SERVICE_CATALOG } from '~wildo-cli/services/catalog/service-catalog.schemas';\nimport { PlatformWildoServices } from '@wildo-ai/platform-config-lib';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\nexport interface EnvSyncResult {\n envFilesUpdated: string[];\n skipped: string[];\n}\n\nexport interface EnvSyncOptions {\n frameworkPath: string;\n isFrameworkDeveloper: boolean;\n /** The invoking app root, so shared-substrate writes can be refused under a FOREIGN platform owner (issue #50). */\n invokingAppRoot?: string;\n applicationBackends?: ApplicationBackendEnvTarget[];\n companionApis?: CompanionPlatformEnvTarget[];\n applicationFrontends?: ApplicationFrontendEnvExampleTarget[];\n applicationWorkers?: ApplicationWorkerEnvTarget[];\n applicationMinions?: ApplicationMinionEnvTarget[];\n applicationOperators?: ApplicationOperatorEnvTarget[];\n}\n\nconst PLATFORM_SERVICES_WITH_ENV = [\n PlatformWildoServices.APPS_MANAGER,\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n] as const;\n\n/**\n * Return paths of env files that would be generated and that already exist.\n */\nexport function checkExisting(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n isFrameworkDeveloper: boolean,\n applicationBackends?: ApplicationBackendEnvTarget[],\n companionApis?: CompanionPlatformEnvTarget[],\n applicationFrontends?: ApplicationFrontendEnvExampleTarget[],\n applicationWorkers?: ApplicationWorkerEnvTarget[],\n applicationMinions?: ApplicationMinionEnvTarget[],\n applicationOperators?: ApplicationOperatorEnvTarget[],\n): string[] {\n const existing: string[] = [];\n const composeDir = EnvironmentPaths.resolveDockerComposeDir(env.name);\n const frameworkLayout = resolveFrameworkLayout(frameworkPath);\n\n if (env.runtime === WildoDeploymentRuntime.DOCKER_COMPOSE) {\n const composeFile = join(composeDir, FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM);\n const envFile = join(composeDir, FILE_NAMES.ENV_WILDO_PLATFORM);\n if (existsSync(composeFile)) existing.push(composeFile);\n if (existsSync(envFile)) existing.push(envFile);\n }\n\n if (isFrameworkDeveloper) {\n for (const service of PLATFORM_SERVICES_WITH_ENV) {\n const dir = PLATFORM_SERVICE_CATALOG[service].sourceDir;\n const envPath = join(frameworkLayout.repositoryRoot, dir, FILE_NAMES.DOT_ENV);\n if (existsSync(envPath)) existing.push(envPath);\n }\n }\n\n if (applicationBackends?.length) {\n for (const app of applicationBackends) {\n const envPath = join(frameworkLayout.repositoryRoot, app.relativeDir, FILE_NAMES.DOT_ENV);\n if (existsSync(envPath)) existing.push(envPath);\n }\n }\n\n if (companionApis?.length) {\n for (const companion of companionApis) {\n const envPath = join(frameworkLayout.repositoryRoot, companion.relativeDir, FILE_NAMES.DOT_ENV);\n if (existsSync(envPath)) existing.push(envPath);\n }\n }\n\n if (applicationFrontends?.length) {\n // BOTH, since the generator now writes both. `.env` is the file Vite actually reads, so a scan\n // that saw only `.env.example` would omit the one whose loss or overwrite a developer notices.\n for (const app of applicationFrontends) {\n for (const fileName of ['.env.example', FILE_NAMES.DOT_ENV]) {\n const envPath = join(frameworkLayout.repositoryRoot, app.relativeDir, fileName);\n if (existsSync(envPath)) existing.push(envPath);\n }\n }\n }\n\n if (applicationWorkers?.length) {\n for (const worker of applicationWorkers) {\n const envPath = join(frameworkLayout.repositoryRoot, worker.relativeDir, FILE_NAMES.DOT_ENV);\n if (existsSync(envPath)) existing.push(envPath);\n }\n }\n\n if (applicationMinions?.length) {\n for (const minion of applicationMinions) {\n const envPath = join(frameworkLayout.repositoryRoot, minion.relativeDir, FILE_NAMES.DOT_ENV);\n if (existsSync(envPath)) existing.push(envPath);\n }\n }\n\n if (applicationOperators?.length) {\n for (const operator of applicationOperators) {\n const envPath = join(frameworkLayout.repositoryRoot, operator.relativeDir, FILE_NAMES.DOT_ENV);\n if (existsSync(envPath)) existing.push(envPath);\n }\n }\n\n return existing;\n}\n\n/**\n * Regenerate all env files. Always overwrites when called.\n * The command is responsible for prompting when files exist (unless --force).\n */\nexport async function sync(\n env: PlatformEnvironmentConfiguration,\n credentials: PlatformEnvSecretsJson,\n options: EnvSyncOptions,\n log: Logger,\n): Promise<EnvSyncResult> {\n const updated: string[] = [];\n const composeDir = EnvironmentPaths.resolveDockerComposeDir(env.name);\n const frameworkLayout = resolveFrameworkLayout(options.frameworkPath);\n\n if (env.runtime === WildoDeploymentRuntime.DOCKER_COMPOSE) {\n await renderDockerComposeTemplate(\n env,\n options.frameworkPath,\n options.isFrameworkDeveloper,\n undefined,\n );\n updated.push(join(composeDir, FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM));\n\n generateEnvWildoPlatform(env, options.isFrameworkDeveloper, credentials);\n updated.push(join(composeDir, FILE_NAMES.ENV_WILDO_PLATFORM));\n }\n\n if (options.isFrameworkDeveloper) {\n /*\n * The platform services' `.env` files are SHARED substrate: one running platform, one credential\n * basis. Regenerating them from a second app root swaps that basis out from under the owning\n * session (issue #50 — this exact write was one keypress away from repeating the 2026-08-25\n * outage; only the interactive prompt's default stopped it). Under a live FOREIGN owner they are\n * skipped with a notice; the app's own targets below are always this invocation's to write.\n */\n const livePlatformOwner = readLiveLocalDevPlatformOwner(frameworkLayout.repositoryRoot);\n const foreignPlatformOwner = livePlatformOwner !== null\n && options.invokingAppRoot !== undefined\n && resolve(livePlatformOwner.appRoot) !== resolve(options.invokingAppRoot)\n ? livePlatformOwner\n : null;\n if (foreignPlatformOwner) {\n log.warn(\n ` Skipping the shared platform-service env files: the platform is owned by another `\n + `\\`wildo local dev\\` session (pid ${foreignPlatformOwner.pid}, app ${foreignPlatformOwner.appRoot}). `\n + 'Regenerate them from the owning app root.',\n );\n }\n generatePlatformServiceEnvFiles(\n env,\n options.frameworkPath,\n credentials,\n log,\n options.applicationBackends,\n options.companionApis,\n options.applicationFrontends,\n options.applicationWorkers,\n options.applicationMinions,\n options.applicationOperators,\n { skipPlatformServiceEnvs: foreignPlatformOwner !== null },\n );\n if (!foreignPlatformOwner) {\n for (const service of PLATFORM_SERVICES_WITH_ENV) {\n const dir = PLATFORM_SERVICE_CATALOG[service].sourceDir;\n updated.push(join(frameworkLayout.repositoryRoot, dir, FILE_NAMES.DOT_ENV));\n }\n }\n if (options.applicationBackends?.length) {\n for (const app of options.applicationBackends) {\n updated.push(join(frameworkLayout.repositoryRoot, app.relativeDir, FILE_NAMES.DOT_ENV));\n }\n }\n if (options.companionApis?.length) {\n for (const companion of options.companionApis) {\n updated.push(join(frameworkLayout.repositoryRoot, companion.relativeDir, FILE_NAMES.DOT_ENV));\n }\n }\n if (options.applicationFrontends?.length) {\n for (const app of options.applicationFrontends) {\n updated.push(join(frameworkLayout.repositoryRoot, app.relativeDir, '.env.example'));\n updated.push(join(frameworkLayout.repositoryRoot, app.relativeDir, FILE_NAMES.DOT_ENV));\n }\n }\n if (options.applicationWorkers?.length) {\n for (const worker of options.applicationWorkers) {\n updated.push(join(frameworkLayout.repositoryRoot, worker.relativeDir, FILE_NAMES.DOT_ENV));\n }\n }\n if (options.applicationMinions?.length) {\n for (const minion of options.applicationMinions) {\n updated.push(join(frameworkLayout.repositoryRoot, minion.relativeDir, FILE_NAMES.DOT_ENV));\n }\n }\n if (options.applicationOperators?.length) {\n for (const operator of options.applicationOperators) {\n updated.push(join(frameworkLayout.repositoryRoot, operator.relativeDir, FILE_NAMES.DOT_ENV));\n }\n }\n }\n\n return { envFilesUpdated: updated, skipped: [] };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"env-sync.service.js","sourceRoot":"","sources":["../../../../src/services/environment/env-sync.service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAErC,OAAO,EACL,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,wEAAwE,CAAC;AAC/I,OAAO,EAAE,6BAA6B,EAAE,MAAM,gEAAgE,CAAC;AAC/G,OAAO,EACL,+BAA+B,GAOhC,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAqBtE,MAAM,0BAA0B,GAAG;IACjC,qBAAqB,CAAC,YAAY;IAClC,qBAAqB,CAAC,wBAAwB;CACtC,CAAC;AAEX;;GAEG;AACH,MAAM,UAAU,aAAa,CAC3B,GAAqC,EACrC,aAAqB,EACrB,oBAA6B,EAC7B,mBAAmD,EACnD,aAA4C,EAC5C,oBAA4D,EAC5D,kBAAiD,EACjD,kBAAiD,EACjD,oBAAqD;IAErD,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,MAAM,UAAU,GAAG,gBAAgB,CAAC,uBAAuB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtE,MAAM,eAAe,GAAG,sBAAsB,CAAC,aAAa,CAAC,CAAC;IAE9D,IAAI,GAAG,CAAC,OAAO,KAAK,sBAAsB,CAAC,cAAc,EAAE,CAAC;QAC1D,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU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AAC;gBACpD,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;YACnE,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AACnD,CAAC","sourcesContent":["/**\n * EnvSyncService — regenerate env files from secrets.json + config.json.\n *\n * IMPLEMENTATION: DONE — sync(), checkExisting(). Used by `wildo config sync --domain env-files`.\n * Command handles prompting when files exist; service overwrites on sync().\n */\n\nimport { existsSync } from 'fs';\nimport { join, resolve } from 'path';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport {\n resolveFrameworkLayout,\n WildoDeploymentRuntime,\n} from '@wildo-ai/platform-config-lib';\nimport type { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { FILE_NAMES } from '~wildo-cli/infrastructure/io/io.schemas';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { generateEnvWildoPlatform, renderDockerComposeTemplate } from '~wildo-cli/services/deployment/docker/docker-compose-generator.service';\nimport { readLiveLocalDevPlatformOwner } from '~wildo-cli/services/deployment/local-dev-session-lease.service';\nimport {\n generatePlatformServiceEnvFiles,\n type ApplicationBackendEnvTarget,\n type CompanionPlatformEnvTarget,\n type ApplicationFrontendEnvExampleTarget,\n type ApplicationWorkerEnvTarget,\n type ApplicationMinionEnvTarget,\n type ApplicationOperatorEnvTarget,\n} from '~wildo-cli/services/environment/env-configuration-generator.service';\nimport { PLATFORM_SERVICE_CATALOG } from '~wildo-cli/services/catalog/service-catalog.schemas';\nimport { PlatformWildoServices } from '@wildo-ai/platform-config-lib';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\nexport interface EnvSyncResult {\n envFilesUpdated: string[];\n skipped: string[];\n}\n\nexport interface EnvSyncOptions {\n frameworkPath: string;\n isFrameworkDeveloper: boolean;\n /** The invoking app root, so shared-substrate writes can be refused under a FOREIGN platform owner (issue #50). */\n invokingAppRoot?: string;\n applicationBackends?: ApplicationBackendEnvTarget[];\n companionApis?: CompanionPlatformEnvTarget[];\n applicationFrontends?: ApplicationFrontendEnvExampleTarget[];\n applicationWorkers?: ApplicationWorkerEnvTarget[];\n applicationMinions?: ApplicationMinionEnvTarget[];\n applicationOperators?: ApplicationOperatorEnvTarget[];\n}\n\nconst PLATFORM_SERVICES_WITH_ENV = [\n PlatformWildoServices.APPS_MANAGER,\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n] as const;\n\n/**\n * Return paths of env files that would be generated and that already exist.\n */\nexport function checkExisting(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n isFrameworkDeveloper: boolean,\n applicationBackends?: ApplicationBackendEnvTarget[],\n companionApis?: CompanionPlatformEnvTarget[],\n applicationFrontends?: ApplicationFrontendEnvExampleTarget[],\n applicationWorkers?: ApplicationWorkerEnvTarget[],\n applicationMinions?: ApplicationMinionEnvTarget[],\n applicationOperators?: ApplicationOperatorEnvTarget[],\n): string[] {\n const existing: string[] = [];\n const composeDir = EnvironmentPaths.resolveDockerComposeDir(env.name);\n const frameworkLayout = resolveFrameworkLayout(frameworkPath);\n\n if (env.runtime === WildoDeploymentRuntime.DOCKER_COMPOSE) {\n const composeFile = join(composeDir, FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM);\n const envFile = join(composeDir, FILE_NAMES.ENV_WILDO_PLATFORM);\n if (existsSync(composeFile)) existing.push(composeFile);\n if (existsSync(envFile)) existing.push(envFile);\n }\n\n if (isFrameworkDeveloper) {\n for (const service of PLATFORM_SERVICES_WITH_ENV) {\n const dir = PLATFORM_SERVICE_CATALOG[service].sourceDir;\n const envPath = join(frameworkLayout.repositoryRoot, dir, FILE_NAMES.DOT_ENV);\n if (existsSync(envPath)) existing.push(envPath);\n }\n }\n\n if (applicationBackends?.length) {\n for (const app of applicationBackends) {\n const envPath = join(app.applicationRoot, app.relativeDir, FILE_NAMES.DOT_ENV);\n if (existsSync(envPath)) existing.push(envPath);\n }\n }\n\n if (companionApis?.length) {\n for (const companion of companionApis) {\n const envPath = join(companion.applicationRoot, companion.relativeDir, FILE_NAMES.DOT_ENV);\n if (existsSync(envPath)) existing.push(envPath);\n }\n }\n\n if (applicationFrontends?.length) {\n // BOTH, since the generator now writes both. `.env` is the file Vite actually reads, so a scan\n // that saw only `.env.example` would omit the one whose loss or overwrite a developer notices.\n for (const app of applicationFrontends) {\n for (const fileName of ['.env.example', FILE_NAMES.DOT_ENV]) {\n const envPath = join(app.applicationRoot, app.relativeDir, fileName);\n if (existsSync(envPath)) existing.push(envPath);\n }\n }\n }\n\n if (applicationWorkers?.length) {\n for (const worker of applicationWorkers) {\n const envPath = join(worker.applicationRoot, worker.relativeDir, FILE_NAMES.DOT_ENV);\n if (existsSync(envPath)) existing.push(envPath);\n }\n }\n\n if (applicationMinions?.length) {\n for (const minion of applicationMinions) {\n const envPath = join(minion.applicationRoot, minion.relativeDir, FILE_NAMES.DOT_ENV);\n if (existsSync(envPath)) existing.push(envPath);\n }\n }\n\n if (applicationOperators?.length) {\n for (const operator of applicationOperators) {\n const envPath = join(operator.applicationRoot, FILE_NAMES.DOT_ENV);\n if (existsSync(envPath)) existing.push(envPath);\n }\n }\n\n return existing;\n}\n\n/**\n * Regenerate all env files. Always overwrites when called.\n * The command is responsible for prompting when files exist (unless --force).\n */\nexport async function sync(\n env: PlatformEnvironmentConfiguration,\n credentials: PlatformEnvSecretsJson,\n options: EnvSyncOptions,\n log: Logger,\n): Promise<EnvSyncResult> {\n const updated: string[] = [];\n const composeDir = EnvironmentPaths.resolveDockerComposeDir(env.name);\n const frameworkLayout = resolveFrameworkLayout(options.frameworkPath);\n\n if (env.runtime === WildoDeploymentRuntime.DOCKER_COMPOSE) {\n await renderDockerComposeTemplate(\n env,\n options.frameworkPath,\n options.isFrameworkDeveloper,\n undefined,\n );\n updated.push(join(composeDir, FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM));\n\n generateEnvWildoPlatform(env, options.isFrameworkDeveloper, credentials);\n updated.push(join(composeDir, FILE_NAMES.ENV_WILDO_PLATFORM));\n }\n\n if (options.isFrameworkDeveloper) {\n /*\n * The platform services' `.env` files are SHARED substrate: one running platform, one credential\n * basis. Regenerating them from a second app root swaps that basis out from under the owning\n * session (issue #50 — this exact write was one keypress away from repeating the 2026-08-25\n * outage; only the interactive prompt's default stopped it). Under a live FOREIGN owner they are\n * skipped with a notice; the app's own targets below are always this invocation's to write.\n */\n const livePlatformOwner = readLiveLocalDevPlatformOwner(frameworkLayout.repositoryRoot);\n const foreignPlatformOwner = livePlatformOwner !== null\n && options.invokingAppRoot !== undefined\n && resolve(livePlatformOwner.appRoot) !== resolve(options.invokingAppRoot)\n ? livePlatformOwner\n : null;\n if (foreignPlatformOwner) {\n log.warn(\n ` Skipping the shared platform-service env files: the platform is owned by another `\n + `\\`wildo local dev\\` session (pid ${foreignPlatformOwner.pid}, app ${foreignPlatformOwner.appRoot}). `\n + 'Regenerate them from the owning app root.',\n );\n }\n generatePlatformServiceEnvFiles(\n env,\n options.frameworkPath,\n credentials,\n log,\n options.applicationBackends,\n options.companionApis,\n options.applicationFrontends,\n options.applicationWorkers,\n options.applicationMinions,\n options.applicationOperators,\n { skipPlatformServiceEnvs: foreignPlatformOwner !== null },\n );\n if (!foreignPlatformOwner) {\n for (const service of PLATFORM_SERVICES_WITH_ENV) {\n const dir = PLATFORM_SERVICE_CATALOG[service].sourceDir;\n updated.push(join(frameworkLayout.repositoryRoot, dir, FILE_NAMES.DOT_ENV));\n }\n }\n if (options.applicationBackends?.length) {\n for (const app of options.applicationBackends) {\n updated.push(join(app.applicationRoot, app.relativeDir, FILE_NAMES.DOT_ENV));\n }\n }\n if (options.companionApis?.length) {\n for (const companion of options.companionApis) {\n updated.push(join(companion.applicationRoot, companion.relativeDir, FILE_NAMES.DOT_ENV));\n }\n }\n if (options.applicationFrontends?.length) {\n for (const app of options.applicationFrontends) {\n updated.push(join(app.applicationRoot, app.relativeDir, '.env.example'));\n updated.push(join(app.applicationRoot, app.relativeDir, FILE_NAMES.DOT_ENV));\n }\n }\n if (options.applicationWorkers?.length) {\n for (const worker of options.applicationWorkers) {\n updated.push(join(worker.applicationRoot, worker.relativeDir, FILE_NAMES.DOT_ENV));\n }\n }\n if (options.applicationMinions?.length) {\n for (const minion of options.applicationMinions) {\n updated.push(join(minion.applicationRoot, minion.relativeDir, FILE_NAMES.DOT_ENV));\n }\n }\n if (options.applicationOperators?.length) {\n for (const operator of options.applicationOperators) {\n updated.push(join(operator.applicationRoot, FILE_NAMES.DOT_ENV));\n }\n }\n }\n\n return { envFilesUpdated: updated, skipped: [] };\n}\n"]}
|
|
@@ -83,9 +83,37 @@ export declare class PlatformEnvVarsBuilder {
|
|
|
83
83
|
* sink drift-free by construction (e.g. it never misses the framework-injected
|
|
84
84
|
* immudb key that a naive `providerEnv` copy would drop).
|
|
85
85
|
*
|
|
86
|
+
* ## Confinement result: N/A, deliberately (#360)
|
|
87
|
+
*
|
|
88
|
+
* This is the one remaining path from `credentials.providerEnv` into an artifact that carries
|
|
89
|
+
* VALUES and is not scoped, so it needs a stated result rather than silence — an unstated site
|
|
90
|
+
* reads exactly like one nobody examined (`.claude/rules/invariant-call-site-enumeration.md`).
|
|
91
|
+
*
|
|
92
|
+
* It is not a per-runtime environment. It is the environment-level aggregate sink, written LOCAL
|
|
93
|
+
* only, for framework-development harnesses that no runtime scope describes — so
|
|
94
|
+
* `PLATFORM_TIER_ALL_PROVIDERS` is the honest answer rather than a missing filter. A runtime that
|
|
95
|
+
* receives a scoped env does not read this file.
|
|
96
|
+
*
|
|
86
97
|
* Returns a fresh record (never mutates `credentials.providerEnv`).
|
|
87
98
|
*/
|
|
88
99
|
static buildRuntimeProviderEnv(credentials: PlatformEnvSecretsJson): Record<string, string>;
|
|
100
|
+
/**
|
|
101
|
+
* The provider-env map ONE runtime is entitled to — the same composition
|
|
102
|
+
* {@link buildRuntimeProviderEnv} performs, through the runtime's declared scope.
|
|
103
|
+
*
|
|
104
|
+
* Exposed for the Kubernetes lane (#369), which delivers provider credentials as a per-runtime
|
|
105
|
+
* `Secret` rather than as lines in a generated `.env`, and so needs the scoped bag as a VALUE
|
|
106
|
+
* instead of as env-file bytes. Routing that lane through this method rather than through
|
|
107
|
+
* `credentials.providerEnv` is the whole fix: it used to emit one cluster-wide `providers-secret`
|
|
108
|
+
* holding everything, `envFrom`-mounted by every application pod, so a worker declaring
|
|
109
|
+
* `providers: {}` received the application's entire provider bag.
|
|
110
|
+
*
|
|
111
|
+
* The scope is positional and required for the same reason it is everywhere else in this file:
|
|
112
|
+
* an omitted scope is how the whole bag reached every runtime in the first place.
|
|
113
|
+
*
|
|
114
|
+
* Returns a fresh record (never mutates `credentials.providerEnv`).
|
|
115
|
+
*/
|
|
116
|
+
static buildScopedProviderEnv(credentials: PlatformEnvSecretsJson, scope: RuntimeProviderScope): Record<string, string>;
|
|
89
117
|
/**
|
|
90
118
|
* Section A — env vars consumed by infra containers themselves
|
|
91
119
|
* (MongoDB, Valkey, RabbitMQ, MinIO, PostgreSQL).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-vars-builder.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"env-vars-builder.service.d.ts","sourceRoot":"","sources":["../../../../src/services/environment/env-vars-builder.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAG7B,KAAK,wBAAwB,EAkB7B,iBAAiB,EAKjB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,UAAU,EAChB,MAAM,+BAA+B,CAAC;AA8BvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AACzH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAC5G,OAAO,KAA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C,EAAE,MAAM,CAAC;QAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,sBAAsB,EAAE,iBAAiB,CAAC;QAC1C,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAC9E,uBAAuB,CAAC,EAAE,OAAO,CAAC;KACnC,GACA,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAwBzB;;;;;;;OAOG;IACH,MAAM,CAAC,yBAAyB,CAC9B,oBAAoB,EAAE,uBAAuB,EAC7C,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,qBAAqB,EAC7B,aAAa,EAAE,MAAM;IACrB;;+FAE2F;IAC3F,aAAa,EAAE,oBAAoB,EACnC,OAAO,CAAC,EAAE;QACR;;;;;;;;;;;WAWG;QACH,IAAI,CAAC,EAAE,UAAU,CAAC;QAClB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,kGAAkG;QAClG,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAC/E,GACA,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IA2FzB,OAAO,CAAC,MAAM,CAAC,gBAAgB;CA8ChC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppsManagerMode, BackingServiceKind, BackingServiceSource, DatabaseEngine, PLATFORM_MONGO_DATABASE, PLATFORM_POSTGRES_DATABASE, PLATFORM_POSTGRES_MAINTENANCE_DATABASE, PlatformAdminEnvKeys, PlatformIngressEnvKeys, PlatformInfrastructureEnvKeys, PlatformKubernetesEnvKeys, PlatformLoggingEnvKeys, PlatformObservabilityEnvKeys, PlatformDocumentationSiteEnvKeys, PlatformProviderSelectionEnvKeys, PlatformProcessEnvKeys, PlatformSecurityEnvKeys, PlatformServiceUrlEnvKeys, PlatformWildoServices, WildoDeploymentRuntime, WildoLocationType, ApplicationRuntimePrincipalKind, InfraCapability, resolveRuntimeBackingServiceAccess, } from '@wildo-ai/platform-config-lib';
|
|
2
2
|
import { ApplicationBackendBootstrapEnvKeys, ApplicationBackendDataEnvKeys, ApplicationBackendPlatformUrlEnvKeys, ApplicationBackendRuntimeEnvKeys, ApplicationWorkerBootstrapEnvKeys, ApplicationWorkerHttpSurfaceEnvKeys, ApplicationWorkerRuntimeEnvKeys, PlatformRuntimeEndpointKey, serializeRuntimeEndpointsRecord, wildoWorkerUrlEnvKey, } from '@wildo-ai/platform-core-shared';
|
|
3
3
|
import { BackgroundRuntimeType, PersistenceAdapter } from '@wildo-ai/saas-models';
|
|
4
|
-
import {
|
|
4
|
+
import { getComposedProviderEntry, getComposedProviderSecretsCatalogue, } from '../../services/credentials/composed-provider-catalogue.js';
|
|
5
5
|
import { VALKEY_CREDENTIAL_ENV_KEYS, RABBITMQ_CREDENTIAL_ENV_KEYS, MINIO_CREDENTIAL_ENV_KEYS, POSTGRESQL_CREDENTIAL_ENV_KEYS, IMMUDB_CREDENTIAL_ENV_KEYS, } from '../../services/data-services/data-services.schemas.js';
|
|
6
6
|
import { EnvironmentLifecycle } from '../../services/environment/environment-lifecycle.service.js';
|
|
7
7
|
import { PlatformDataServicesUtils } from '../../services/data-services/data-services.service.js';
|
|
@@ -72,8 +72,11 @@ scope) {
|
|
|
72
72
|
providerEnv[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY] == null) {
|
|
73
73
|
providerEnv[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY] = statePublicKey;
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
// The two `as ScopedProviderEnv` casts are the ONLY place the brand is minted, which is what
|
|
76
|
+
// makes the type meaningful: everything downstream receives a bag whose scope was decided here.
|
|
77
|
+
if (scope.kind === RuntimeProviderScopeKind.PLATFORM_TIER_ALL_PROVIDERS) {
|
|
76
78
|
return providerEnv;
|
|
79
|
+
}
|
|
77
80
|
return filterProviderEnvToScope(providerEnv, scope.providerRefs);
|
|
78
81
|
}
|
|
79
82
|
/**
|
|
@@ -94,31 +97,64 @@ scope) {
|
|
|
94
97
|
* NOT mitigated by the container security floor — these live in the process
|
|
95
98
|
* environment, which is exactly what LLM-driven minion code can read.
|
|
96
99
|
*
|
|
97
|
-
* ##
|
|
100
|
+
* ## Attribution comes from the COMPOSED catalogue, and an unattributable key is DROPPED
|
|
101
|
+
*
|
|
102
|
+
* Both halves of this filter used to read `EngineBackendProviderRegistry`, and both were wrong
|
|
103
|
+
* the moment a provider could ship as its own package (#329, audit finding PL-3):
|
|
104
|
+
*
|
|
105
|
+
* - the ALLOW-LIST could not resolve a package provider's contract, so a runtime that legitimately
|
|
106
|
+
* declared one would have had its credential stripped;
|
|
107
|
+
* - the ATTRIBUTION set could not see that provider's keys either, so — by the rule this comment
|
|
108
|
+
* used to state, that an unattributable key is "configuration rather than a provider secret" —
|
|
109
|
+
* the key was KEPT and copied into every worker and minion environment. Silently. That inverts
|
|
110
|
+
* the confinement into a leak precisely for the tier the confinement matters most for.
|
|
111
|
+
*
|
|
112
|
+
* So attribution now derives from {@link getComposedProviderSecretsCatalogue}, and a `DECLARED`
|
|
113
|
+
* scope drops what it cannot attribute instead of keeping it. That is what the scope means:
|
|
114
|
+
* exactly the providers this runtime authors, and nothing else. `providerEnv` is the
|
|
115
|
+
* provider-secret bag, not a general config bag — the framework's own writers only ever put
|
|
116
|
+
* attributable keys in it (`wildo setup` prompts straight off the secret contracts, and
|
|
117
|
+
* {@link resolveRuntimeProviderEnv} injects one key that immudb's contract declares), and a
|
|
118
|
+
* provider whose configuration is a hostname or a database name puts THAT in its contract too:
|
|
119
|
+
* immudb and odoo both do.
|
|
98
120
|
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
121
|
+
* Measured before the trade was reversed: the live `providerEnv` of both dogfood applications
|
|
122
|
+
* holds 13 keys and every one is attributable to an engine provider's contract, so failing
|
|
123
|
+
* closed drops nothing today. The remaining writer that can produce an unattributable key is the
|
|
124
|
+
* CI convention `WILDO_SECRET_PROVIDER_ENV_<NAME>`, which is open-ended — and is exactly the
|
|
125
|
+
* vector this issue exists to close.
|
|
126
|
+
*
|
|
127
|
+
* The drop is REPORTED, never silent: a refusal nobody can see is the failure mode this whole
|
|
128
|
+
* slice is about. `PLATFORM_TIER_ALL_PROVIDERS` is untouched — it receives everything by
|
|
129
|
+
* deliberate declaration.
|
|
105
130
|
*/
|
|
106
131
|
function filterProviderEnvToScope(providerEnv, scopedProviderRefs) {
|
|
107
|
-
const attributableKeys = getProviderSensitiveEnvKeys();
|
|
108
132
|
const allowedKeys = new Set();
|
|
109
133
|
for (const providerRef of scopedProviderRefs) {
|
|
110
|
-
const
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
allowedKeys.add(entry.envVarName);
|
|
134
|
+
const entry = getComposedProviderEntry(providerRef);
|
|
135
|
+
for (const secret of entry?.secrets ?? [])
|
|
136
|
+
allowedKeys.add(secret.envVarName);
|
|
114
137
|
for (const binding of getProviderSecretEnvBindings(providerRef))
|
|
115
138
|
allowedKeys.add(binding.envVarName);
|
|
116
139
|
}
|
|
140
|
+
const attributableKeys = getProviderSensitiveEnvKeys();
|
|
117
141
|
const scoped = {};
|
|
142
|
+
const unattributable = [];
|
|
118
143
|
for (const [key, value] of Object.entries(providerEnv)) {
|
|
119
|
-
if (
|
|
144
|
+
if (allowedKeys.has(key)) {
|
|
145
|
+
scoped[key] = value;
|
|
120
146
|
continue;
|
|
121
|
-
|
|
147
|
+
}
|
|
148
|
+
if (!attributableKeys.has(key))
|
|
149
|
+
unattributable.push(key);
|
|
150
|
+
}
|
|
151
|
+
if (unattributable.length > 0) {
|
|
152
|
+
// eslint-disable-next-line no-console
|
|
153
|
+
console.warn(`[env-builder] ${unattributable.length} key(s) in providerEnv belong to no provider the CLI `
|
|
154
|
+
+ `can see and were dropped from a runtime scoped to `
|
|
155
|
+
+ `[${scopedProviderRefs.join(', ') || 'no provider'}]: ${unattributable.join(', ')}. `
|
|
156
|
+
+ 'A provider-secret key is delivered by declaring the provider (so its secrets contract is '
|
|
157
|
+
+ 'discoverable); anything that is not a provider secret does not belong in providerEnv.');
|
|
122
158
|
}
|
|
123
159
|
return scoped;
|
|
124
160
|
}
|
|
@@ -419,13 +455,47 @@ function emitObservabilityEnv(env, observability, identity, telemetryProvider) {
|
|
|
419
455
|
/**
|
|
420
456
|
* Resolve the `OTEL_EXPORTER_OTLP_HEADERS` value (a single `name=value` OTLP/HTTP header) for
|
|
421
457
|
* the SELECTED `OBSERVABILITY_TELEMETRY` provider — PROVIDER-AGNOSTICALLY. Reads the provider's
|
|
422
|
-
* `otlpAuth` hint (header name + `{token}` value template) from the
|
|
423
|
-
* secret token from the per-env `providerEnv` map, naming NO provider.
|
|
458
|
+
* `otlpAuth` hint (header name + `{token}` value template) from the COMPOSED provider catalogue
|
|
459
|
+
* and the secret token from the per-env `providerEnv` map, naming NO provider.
|
|
424
460
|
*
|
|
425
461
|
* Returns `undefined` (→ no header emitted) when: no provider is selected; the selected provider
|
|
426
|
-
* declares no `otlpAuth` (a no-auth endpoint — e.g. the local dev collector
|
|
427
|
-
*
|
|
428
|
-
*
|
|
462
|
+
* declares no `otlpAuth` (a no-auth endpoint — e.g. the local dev collector, or a provider known
|
|
463
|
+
* only from a companion contribution, which carries no hint); or the token is not provisioned in
|
|
464
|
+
* `providerEnv` yet. All three are valid states — telemetry still exports, just unauthenticated —
|
|
465
|
+
* so this never blocks the pipeline on a missing secret.
|
|
466
|
+
*
|
|
467
|
+
* ## The `providerEnv` reaching here IS the scoped bag — the confinement's second delivery path
|
|
468
|
+
*
|
|
469
|
+
* This function composes a provider CREDENTIAL into a header value, so it is a second site of the
|
|
470
|
+
* per-runtime confinement invariant, not merely a formatter. Until 2026-09-06 both application-tier
|
|
471
|
+
* builders handed it the raw `credentials.providerEnv`: a worker built with
|
|
472
|
+
* `declaredProviderScope([])` correctly received NO `BETTERSTACK_SOURCE_TOKEN` and then received
|
|
473
|
+
* `OTEL_EXPORTER_OTLP_HEADERS=Authorization=Bearer <that same token>` — the withheld bytes,
|
|
474
|
+
* delivered by the next line (#360).
|
|
475
|
+
*
|
|
476
|
+
* **Decided 2026-09-06 (Paul): `providers.scopes.<runtime>` MUST list the telemetry provider for
|
|
477
|
+
* that runtime to receive its token.** The alternative — treating telemetry as a cross-cutting
|
|
478
|
+
* platform concern exempt from the scope — was rejected because it would leave "declared scope"
|
|
479
|
+
* meaning one thing on the key path and another here, and because the token stays readable in the
|
|
480
|
+
* process environment of every worker and minion, which is exactly the surface LLM-driven minion
|
|
481
|
+
* code reads. A third reading (silently widening the scope by the SELECTED telemetry provider) was
|
|
482
|
+
* rejected as not a middle ground at all: the minion still receives the token, and the scope comes
|
|
483
|
+
* to mean something its author did not write.
|
|
484
|
+
*
|
|
485
|
+
* The authoring consequence is real and small. A runtime that does not declare the provider still
|
|
486
|
+
* exports telemetry — `OTEL_ENABLED` and the endpoint are unaffected — it exports it
|
|
487
|
+
* UNAUTHENTICATED, the same state as a no-auth collector or an unprovisioned token. Measured before
|
|
488
|
+
* the change, and the bound matters: `betterstack` is the only engine provider declaring `otlpAuth`,
|
|
489
|
+
* and no `secrets.json` on this development machine — the two dogfood applications plus the
|
|
490
|
+
* framework's own store — provisions `BETTERSTACK_SOURCE_TOKEN`, so NO RUNTIME IN THIS REPOSITORY
|
|
491
|
+
* loses a header. That is not a claim about every application: an application elsewhere that HAS
|
|
492
|
+
* provisioned the token, on a runtime that does not declare the provider, loses its header on
|
|
493
|
+
* upgrade and must add the declaration. Wonder Todos' backend and companion already declare it; its
|
|
494
|
+
* `myRustWorker`, `myNodeWorker` and `marketingScrapper` do not, and would have to the day a token
|
|
495
|
+
* is provisioned — which is what this decision costs, stated rather than discovered.
|
|
496
|
+
*
|
|
497
|
+
* The scoping is enforced by the {@link ScopedProviderEnv} parameter type rather than by this
|
|
498
|
+
* comment, so a future caller cannot reintroduce the bypass without a cast.
|
|
429
499
|
*/
|
|
430
500
|
function resolveOtlpAuthHeader(providerRef, providerEnv) {
|
|
431
501
|
if (!providerEnv)
|
|
@@ -435,7 +505,7 @@ function resolveOtlpAuthHeader(providerRef, providerEnv) {
|
|
|
435
505
|
// its secret provisioned in this env — operators collect only the selected provider's token,
|
|
436
506
|
// so the provisioned secret identifies it unambiguously without a saasConfig round-trip here.
|
|
437
507
|
const provider = providerRef
|
|
438
|
-
?
|
|
508
|
+
? getComposedProviderEntry(providerRef)
|
|
439
509
|
: findProvisionedTelemetryProvider(providerEnv);
|
|
440
510
|
const otlpAuth = provider?.otlpAuth;
|
|
441
511
|
if (!otlpAuth)
|
|
@@ -460,19 +530,24 @@ function resolveOtlpAuthHeader(providerRef, providerEnv) {
|
|
|
460
530
|
* one secret). `undefined` when the contract has multiple entries and none is named.
|
|
461
531
|
*/
|
|
462
532
|
function resolveOtlpTokenEnvVarName(provider, otlpAuth) {
|
|
463
|
-
const
|
|
464
|
-
|
|
465
|
-
return secretKey ? provider.
|
|
533
|
+
const secretKey = otlpAuth.secretContractKey
|
|
534
|
+
?? (provider.secrets.length === 1 ? provider.secrets[0].slug : undefined);
|
|
535
|
+
return secretKey ? provider.secrets.find((secret) => secret.slug === secretKey)?.envVarName : undefined;
|
|
466
536
|
}
|
|
467
537
|
/**
|
|
468
538
|
* Find the telemetry provider to authenticate as when no ref is explicitly threaded: the single
|
|
469
|
-
*
|
|
539
|
+
* catalogue provider declaring `otlpAuth` whose secret token is present in `providerEnv`.
|
|
540
|
+
*
|
|
541
|
+
* `otlpAuth` is a field of a LOADABLE provider module, so a provider known only from a companion
|
|
542
|
+
* contribution never matches here. That is the same outcome as an engine provider declaring no
|
|
543
|
+
* hint — an unauthenticated export — and it is recorded rather than hidden: making the hint
|
|
544
|
+
* companion-safe is owed to whichever slice ships a package-shipped telemetry sink. Operators
|
|
470
545
|
* provision only the SELECTED provider's token, so the provisioned secret identifies it. Returns
|
|
471
546
|
* `undefined` when none is provisioned (the no-auth / local-collector path).
|
|
472
547
|
*/
|
|
473
548
|
function findProvisionedTelemetryProvider(providerEnv) {
|
|
474
549
|
const matches = [];
|
|
475
|
-
for (const provider of
|
|
550
|
+
for (const provider of getComposedProviderSecretsCatalogue().values()) {
|
|
476
551
|
if (!provider.otlpAuth)
|
|
477
552
|
continue;
|
|
478
553
|
const envVarName = resolveOtlpTokenEnvVarName(provider, provider.otlpAuth);
|
|
@@ -756,12 +831,42 @@ export class PlatformEnvVarsBuilder {
|
|
|
756
831
|
* sink drift-free by construction (e.g. it never misses the framework-injected
|
|
757
832
|
* immudb key that a naive `providerEnv` copy would drop).
|
|
758
833
|
*
|
|
834
|
+
* ## Confinement result: N/A, deliberately (#360)
|
|
835
|
+
*
|
|
836
|
+
* This is the one remaining path from `credentials.providerEnv` into an artifact that carries
|
|
837
|
+
* VALUES and is not scoped, so it needs a stated result rather than silence — an unstated site
|
|
838
|
+
* reads exactly like one nobody examined (`.claude/rules/invariant-call-site-enumeration.md`).
|
|
839
|
+
*
|
|
840
|
+
* It is not a per-runtime environment. It is the environment-level aggregate sink, written LOCAL
|
|
841
|
+
* only, for framework-development harnesses that no runtime scope describes — so
|
|
842
|
+
* `PLATFORM_TIER_ALL_PROVIDERS` is the honest answer rather than a missing filter. A runtime that
|
|
843
|
+
* receives a scoped env does not read this file.
|
|
844
|
+
*
|
|
759
845
|
* Returns a fresh record (never mutates `credentials.providerEnv`).
|
|
760
846
|
*/
|
|
761
847
|
static buildRuntimeProviderEnv(credentials) {
|
|
762
848
|
// Platform tier: the environment-level aggregate provider-secrets artifact,
|
|
763
849
|
// not a per-runtime env. Unscoped by definition.
|
|
764
|
-
return
|
|
850
|
+
return PlatformEnvVarsBuilder.buildScopedProviderEnv(credentials, platformTierAllProvidersScope());
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* The provider-env map ONE runtime is entitled to — the same composition
|
|
854
|
+
* {@link buildRuntimeProviderEnv} performs, through the runtime's declared scope.
|
|
855
|
+
*
|
|
856
|
+
* Exposed for the Kubernetes lane (#369), which delivers provider credentials as a per-runtime
|
|
857
|
+
* `Secret` rather than as lines in a generated `.env`, and so needs the scoped bag as a VALUE
|
|
858
|
+
* instead of as env-file bytes. Routing that lane through this method rather than through
|
|
859
|
+
* `credentials.providerEnv` is the whole fix: it used to emit one cluster-wide `providers-secret`
|
|
860
|
+
* holding everything, `envFrom`-mounted by every application pod, so a worker declaring
|
|
861
|
+
* `providers: {}` received the application's entire provider bag.
|
|
862
|
+
*
|
|
863
|
+
* The scope is positional and required for the same reason it is everywhere else in this file:
|
|
864
|
+
* an omitted scope is how the whole bag reached every runtime in the first place.
|
|
865
|
+
*
|
|
866
|
+
* Returns a fresh record (never mutates `credentials.providerEnv`).
|
|
867
|
+
*/
|
|
868
|
+
static buildScopedProviderEnv(credentials, scope) {
|
|
869
|
+
return resolveRuntimeProviderEnv(credentials, scope);
|
|
765
870
|
}
|
|
766
871
|
/**
|
|
767
872
|
* Section A — env vars consumed by infra containers themselves
|
|
@@ -819,7 +924,6 @@ export class PlatformEnvVarsBuilder {
|
|
|
819
924
|
const rabbitmq = requireAddress(addresses.infra.rabbitmq, 'rabbitmq');
|
|
820
925
|
const rabbitmqMgmt = requireAddress(addresses.infra.rabbitmqManagement, 'rabbitmqManagement');
|
|
821
926
|
const minio = requireAddress(addresses.infra.minio, 'minio');
|
|
822
|
-
const gotenberg = requireAddress(addresses.infra.gotenberg, 'gotenberg');
|
|
823
927
|
const postgresql = shouldProvisionPostgreSQL(config, environment)
|
|
824
928
|
? requireAddress(addresses.infra.postgresql, 'postgresql')
|
|
825
929
|
: null;
|
|
@@ -850,8 +954,6 @@ export class PlatformEnvVarsBuilder {
|
|
|
850
954
|
env[PlatformServiceUrlEnvKeys.PLATFORM_APPS_MANAGER_URL] = addresses.platform.appsManager.url;
|
|
851
955
|
env[PlatformServiceUrlEnvKeys.PLATFORM_CRONTABS_BATCHES_MANAGER_URL] = addresses.platform.crontabsBatchesManager.url;
|
|
852
956
|
env[PlatformServiceUrlEnvKeys.PLATFORM_MODULE_REGISTRY_URL] = addresses.platform.moduleRegistry.url;
|
|
853
|
-
// -- Gotenberg
|
|
854
|
-
env[PlatformInfrastructureEnvKeys.GOTENBERG_URL] = gotenberg.url;
|
|
855
957
|
// -- Platform security
|
|
856
958
|
env[PlatformSecurityEnvKeys.PLATFORM_APPS_MANAGER_PRIVATE_KEY] = credentials.platform.appsManager.privateKey;
|
|
857
959
|
env[PlatformSecurityEnvKeys.PLATFORM_APPS_MANAGER_PUBLIC_KEY] = credentials.platform.appsManager.publicKey;
|
|
@@ -920,7 +1022,12 @@ export class PlatformEnvVarsBuilder {
|
|
|
920
1022
|
serviceName: amCatalog.serviceEnvVarName,
|
|
921
1023
|
environment: resolveApplicationEnv(environment, config),
|
|
922
1024
|
version: options.serviceVersion,
|
|
923
|
-
},
|
|
1025
|
+
},
|
|
1026
|
+
// Platform tier: entitled to every provider secret by deliberate declaration, so the scope
|
|
1027
|
+
// subtracts nothing here. Routed through `resolveRuntimeProviderEnv` anyway — #360 asks
|
|
1028
|
+
// that the telemetry header have ONE input shape across all five call sites, so that the
|
|
1029
|
+
// application-tier sites are not the only ones a reader has to check.
|
|
1030
|
+
{ providerEnv: resolveRuntimeProviderEnv(credentials, platformTierAllProvidersScope()) });
|
|
924
1031
|
// -- Optional GitHub
|
|
925
1032
|
if (credentials.github) {
|
|
926
1033
|
setIfDefined(env, PlatformAdminEnvKeys.GITHUB_WILDO_APPS_DEFAULT_ORG_URL, credentials.github.orgUrl);
|
|
@@ -973,7 +1080,10 @@ export class PlatformEnvVarsBuilder {
|
|
|
973
1080
|
serviceName: svcCatalog.serviceEnvVarName,
|
|
974
1081
|
environment: resolveApplicationEnv(environment, config),
|
|
975
1082
|
version: serviceVersion,
|
|
976
|
-
},
|
|
1083
|
+
},
|
|
1084
|
+
// Platform tier — see the apps-manager site above for why this is routed through the scope
|
|
1085
|
+
// resolver even though `PLATFORM_TIER_ALL_PROVIDERS` subtracts nothing.
|
|
1086
|
+
{ providerEnv: resolveRuntimeProviderEnv(credentials, platformTierAllProvidersScope()) });
|
|
977
1087
|
// -- MongoDB connection — among the bootstrap services, ONLY module-registry rides the framework's
|
|
978
1088
|
// `StartApplicationBackendService`, which opens the PLATFORM_MANAGEMENT connection from
|
|
979
1089
|
// `MONGO_CONNECT_URL`. `crontabs-batches-manager` uses a custom two-phase startup that bridges
|
|
@@ -1092,7 +1202,12 @@ export class PlatformEnvVarsBuilder {
|
|
|
1092
1202
|
// (it's `resolveApplicationEnv`-derived and reliably set by the bootstrap pipeline). The
|
|
1093
1203
|
// backend's `options.applicationEnv` override is not plumbed to the companion options — a
|
|
1094
1204
|
// low-priority consistency gap, not a missing-env risk.
|
|
1095
|
-
|
|
1205
|
+
//
|
|
1206
|
+
// The telemetry header and the provider fan-out below read the SAME resolved bag (#360):
|
|
1207
|
+
// one value per builder, so the two delivery paths cannot come to disagree about what this
|
|
1208
|
+
// runtime is entitled to. Platform tier, so nothing is subtracted.
|
|
1209
|
+
const companionProviderEnv = resolveRuntimeProviderEnv(credentials, platformTierAllProvidersScope());
|
|
1210
|
+
emitObservabilityEnv(env, config.observability, { serviceName, environment: bootstrapCredentials.APPLICATION_ENV, version: options?.serviceVersion }, { ref: options?.observabilityProviderRef, providerEnv: companionProviderEnv });
|
|
1096
1211
|
const runtimeEndpoints = options?.runtimeEndpoints;
|
|
1097
1212
|
if (runtimeEndpoints && Object.keys(runtimeEndpoints).length > 0) {
|
|
1098
1213
|
const preservedCompanionEndpoint = runtimeEndpoints[serviceName];
|
|
@@ -1122,8 +1237,9 @@ export class PlatformEnvVarsBuilder {
|
|
|
1122
1237
|
});
|
|
1123
1238
|
}
|
|
1124
1239
|
// Platform tier: the companion is a declared platform-admin consumer and
|
|
1125
|
-
// mirrors the full provider surface for local tooling.
|
|
1126
|
-
|
|
1240
|
+
// mirrors the full provider surface for local tooling. Same bag the telemetry
|
|
1241
|
+
// header above resolved.
|
|
1242
|
+
for (const [envVarName, value] of Object.entries(companionProviderEnv)) {
|
|
1127
1243
|
setIfDefined(env, envVarName, value);
|
|
1128
1244
|
}
|
|
1129
1245
|
return env;
|
|
@@ -1320,13 +1436,20 @@ export class PlatformEnvVarsBuilder {
|
|
|
1320
1436
|
emitLoggingEnv(env, config.logging);
|
|
1321
1437
|
emitProviderSelectionEnv(env, config.providerSelection);
|
|
1322
1438
|
emitDocumentationSiteEnv(env, config.documentationSite);
|
|
1323
|
-
// --
|
|
1324
|
-
|
|
1439
|
+
// -- The runtime's entitled provider bag, resolved ONCE and read by both delivery paths
|
|
1440
|
+
// below: the OTLP auth header and the per-key fan-out. Two reads of one value, rather
|
|
1441
|
+
// than two derivations that can disagree — which is what #360 was (the header composed
|
|
1442
|
+
// from the raw bag while the fan-out was scoped, so a withheld token arrived anyway).
|
|
1443
|
+
const scopedProviderEnv = resolveRuntimeProviderEnv(credentials, providerScope);
|
|
1444
|
+
// -- OTLP telemetry posture (Slice 2 Phase 5 — projected to OTEL_*, read by the preload).
|
|
1445
|
+
// A runtime that does not declare the telemetry provider exports UNAUTHENTICATED (the
|
|
1446
|
+
// endpoint is still emitted) — see `resolveOtlpAuthHeader` for the decision and its cost.
|
|
1447
|
+
emitObservabilityEnv(env, config.observability, { serviceName, environment: options?.applicationEnv ?? bootstrapCredentials.APPLICATION_ENV, version: options?.serviceVersion }, { ref: options?.observabilityProviderRef, providerEnv: scopedProviderEnv });
|
|
1325
1448
|
// -- Optional protocol-aware provider env bindings
|
|
1326
1449
|
// Application tier: scoped to the runtime's declared providers. Covers
|
|
1327
1450
|
// minions too — `buildApplicationMinionEnv` delegates here, and a minion
|
|
1328
1451
|
// scoped to `openai` must not receive the application's Stripe key.
|
|
1329
|
-
for (const [envVarName, value] of Object.entries(
|
|
1452
|
+
for (const [envVarName, value] of Object.entries(scopedProviderEnv)) {
|
|
1330
1453
|
setIfDefined(env, envVarName, value);
|
|
1331
1454
|
}
|
|
1332
1455
|
// Checked at the RETURN, after every contributor — including the provider
|
|
@@ -1435,15 +1558,20 @@ export class PlatformEnvVarsBuilder {
|
|
|
1435
1558
|
// the preload `--import` exports traces/metrics/logs (and a language-agnostic worker carries the
|
|
1436
1559
|
// same env for a future native OTel SDK). The auth header, when a token is provisioned, is
|
|
1437
1560
|
// resolved provider-agnostically from `providerEnv`, same as the backend.
|
|
1561
|
+
//
|
|
1562
|
+
// A worker builds its env from scratch rather than delegating, so this is the SECOND
|
|
1563
|
+
// application-tier site of the confinement invariant and resolves its own bag — once, read
|
|
1564
|
+
// by both the header and the fan-out below (#360).
|
|
1565
|
+
const scopedProviderEnv = resolveRuntimeProviderEnv(credentials, providerScope);
|
|
1438
1566
|
emitObservabilityEnv(env, config.observability, {
|
|
1439
1567
|
serviceName,
|
|
1440
1568
|
environment: options?.applicationEnv ?? bootstrapCredentials.APPLICATION_ENV,
|
|
1441
1569
|
version: options?.serviceVersion,
|
|
1442
|
-
}, { providerEnv:
|
|
1570
|
+
}, { providerEnv: scopedProviderEnv });
|
|
1443
1571
|
// Application tier: a worker receives only the providers its
|
|
1444
1572
|
// `providers.scopes.workers.<name>` declares. `myRustWorker` declares none,
|
|
1445
1573
|
// and must therefore receive none.
|
|
1446
|
-
for (const [envVarName, value] of Object.entries(
|
|
1574
|
+
for (const [envVarName, value] of Object.entries(scopedProviderEnv)) {
|
|
1447
1575
|
setIfDefined(env, envVarName, value);
|
|
1448
1576
|
}
|
|
1449
1577
|
// Application tier — same guard as `buildApplicationBackendEnv`.
|