@wildo-ai/wildo-cli 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/wildo.d.ts.map +1 -1
- package/dist/src/__tests__/sandbox-dependencies.test-helpers.d.ts.map +1 -1
- package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
- package/dist/src/commands/acp/probe.command.js +13 -0
- package/dist/src/commands/acp/probe.command.js.map +1 -1
- package/dist/src/commands/align-deps.command.d.ts.map +1 -1
- package/dist/src/commands/assets/sync.command.d.ts +6 -0
- package/dist/src/commands/assets/sync.command.d.ts.map +1 -1
- package/dist/src/commands/assets/sync.command.js +13 -3
- package/dist/src/commands/assets/sync.command.js.map +1 -1
- package/dist/src/commands/brand/propagate.command.d.ts.map +1 -1
- package/dist/src/commands/compose.command.d.ts.map +1 -1
- package/dist/src/commands/compose.command.js +16 -0
- package/dist/src/commands/compose.command.js.map +1 -1
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.d.ts.map +1 -1
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js +1 -1
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js.map +1 -1
- package/dist/src/commands/config/__tests__/sync.command.test.d.ts.map +1 -1
- package/dist/src/commands/config/__tests__/sync.command.test.js +115 -8
- package/dist/src/commands/config/__tests__/sync.command.test.js.map +1 -1
- package/dist/src/commands/config/__tests__/validate.command.test.d.ts.map +1 -1
- package/dist/src/commands/config/mutate.command.d.ts.map +1 -1
- package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.d.ts +36 -0
- package/dist/src/commands/config/sync.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.js +61 -7
- package/dist/src/commands/config/sync.command.js.map +1 -1
- package/dist/src/commands/config/validate.command.d.ts.map +1 -1
- package/dist/src/commands/context/__tests__/assurance-basis.command.test.d.ts +2 -0
- package/dist/src/commands/context/__tests__/assurance-basis.command.test.d.ts.map +1 -0
- package/dist/src/commands/context/__tests__/assurance-basis.command.test.js +63 -0
- package/dist/src/commands/context/__tests__/assurance-basis.command.test.js.map +1 -0
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts +19 -0
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts.map +1 -0
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.js +106 -0
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.js.map +1 -0
- package/dist/src/commands/context/assurance-basis.command.d.ts +61 -0
- package/dist/src/commands/context/assurance-basis.command.d.ts.map +1 -0
- package/dist/src/commands/context/assurance-basis.command.js +166 -0
- package/dist/src/commands/context/assurance-basis.command.js.map +1 -0
- package/dist/src/commands/context/coherence.command.d.ts.map +1 -1
- package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
- package/dist/src/commands/context/health.command.d.ts.map +1 -1
- package/dist/src/commands/context/info.command.d.ts.map +1 -1
- package/dist/src/commands/context/journey.command.d.ts +6 -2
- package/dist/src/commands/context/journey.command.d.ts.map +1 -1
- package/dist/src/commands/context/journey.command.js +8 -4
- package/dist/src/commands/context/journey.command.js.map +1 -1
- package/dist/src/commands/context/jurisdictions.command.d.ts +36 -0
- package/dist/src/commands/context/jurisdictions.command.d.ts.map +1 -0
- package/dist/src/commands/context/jurisdictions.command.js +115 -0
- package/dist/src/commands/context/jurisdictions.command.js.map +1 -0
- package/dist/src/commands/context/list.command.d.ts.map +1 -1
- package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
- package/dist/src/commands/db/diff.command.d.ts.map +1 -1
- package/dist/src/commands/db/generate.command.d.ts.map +1 -1
- package/dist/src/commands/db/migrate.command.d.ts.map +1 -1
- package/dist/src/commands/db/resolve.command.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/design-tokens.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/start.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/start.command.test.js +6 -6
- package/dist/src/commands/dev/__tests__/start.command.test.js.map +1 -1
- package/dist/src/commands/dev/__tests__/stop.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.js +71 -0
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.js.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.d.ts +5 -3
- package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.js +36 -7
- package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-generate.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -1
- package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -1
- package/dist/src/commands/dev/resources.command.d.ts.map +1 -1
- package/dist/src/commands/dev/start.command.d.ts.map +1 -1
- package/dist/src/commands/dev/start.command.js +8 -7
- package/dist/src/commands/dev/start.command.js.map +1 -1
- package/dist/src/commands/dev/stop-all.command.d.ts.map +1 -1
- package/dist/src/commands/dev/sync-csp.command.d.ts.map +1 -1
- package/dist/src/commands/dev/sync-csp.command.js +35 -7
- package/dist/src/commands/dev/sync-csp.command.js.map +1 -1
- package/dist/src/commands/docs/__tests__/publish.command.test.d.ts +2 -0
- package/dist/src/commands/docs/__tests__/publish.command.test.d.ts.map +1 -0
- package/dist/src/commands/docs/__tests__/publish.command.test.js +101 -0
- package/dist/src/commands/docs/__tests__/publish.command.test.js.map +1 -0
- package/dist/src/commands/docs/publish.command.d.ts +29 -0
- package/dist/src/commands/docs/publish.command.d.ts.map +1 -0
- package/dist/src/commands/docs/publish.command.js +82 -0
- package/dist/src/commands/docs/publish.command.js.map +1 -0
- package/dist/src/commands/frontend/publish.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/__tests__/dev-skills.command.test.d.ts.map +1 -1
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.d.ts.map +1 -1
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.js.map +1 -1
- package/dist/src/commands/fwk/audit.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/dev-skills.command.js +12 -0
- package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
- package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/generate-providers.command.d.ts +21 -0
- package/dist/src/commands/fwk/generate-providers.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/generate-providers.command.js +325 -0
- package/dist/src/commands/fwk/generate-providers.command.js.map +1 -0
- package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-show.command.js +9 -1
- package/dist/src/commands/fwk/version-show.command.js.map +1 -1
- package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-status.command.d.ts +13 -4
- package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-status.command.js +34 -5
- package/dist/src/commands/fwk/wt-status.command.js.map +1 -1
- package/dist/src/commands/fwk/wt-tail.command.d.ts +12 -6
- package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-tail.command.js +40 -10
- package/dist/src/commands/fwk/wt-tail.command.js.map +1 -1
- package/dist/src/commands/generate/__tests__/email-command.utils.test.d.ts.map +1 -1
- package/dist/src/commands/generate/__tests__/email-command.utils.test.js +0 -1
- package/dist/src/commands/generate/__tests__/email-command.utils.test.js.map +1 -1
- package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/email-command.utils.js +1 -0
- package/dist/src/commands/generate/email-command.utils.js.map +1 -1
- package/dist/src/commands/generate/email-preview.command.d.ts +8 -0
- package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-preview.command.js +57 -0
- package/dist/src/commands/generate/email-preview.command.js.map +1 -1
- package/dist/src/commands/generate/email-status.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email.command.d.ts.map +1 -1
- package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/labelling-command.utils.js +1 -0
- package/dist/src/commands/generate/labelling-command.utils.js.map +1 -1
- package/dist/src/commands/generate/labels-plan.command.d.ts.map +1 -1
- package/dist/src/commands/generate/labels.command.d.ts.map +1 -1
- package/dist/src/commands/generate/translate.command.d.ts.map +1 -1
- package/dist/src/commands/help.command.d.ts.map +1 -1
- package/dist/src/commands/help.command.js +2 -0
- package/dist/src/commands/help.command.js.map +1 -1
- package/dist/src/commands/init.command.d.ts +17 -0
- package/dist/src/commands/init.command.d.ts.map +1 -1
- package/dist/src/commands/init.command.js +89 -4
- package/dist/src/commands/init.command.js.map +1 -1
- package/dist/src/commands/local/__tests__/dev-status.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/dev.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/dev.command.test.js +60 -0
- package/dist/src/commands/local/__tests__/dev.command.test.js.map +1 -1
- package/dist/src/commands/local/__tests__/doctor.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/doctor.command.test.js +16 -2
- package/dist/src/commands/local/__tests__/doctor.command.test.js.map +1 -1
- package/dist/src/commands/local/__tests__/init.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/init.command.test.js +28 -1
- package/dist/src/commands/local/__tests__/init.command.test.js.map +1 -1
- package/dist/src/commands/local/__tests__/reinit.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/reset.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/up.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/up.command.test.js +7 -0
- package/dist/src/commands/local/__tests__/up.command.test.js.map +1 -1
- package/dist/src/commands/local/dev-status.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts +6 -3
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js +13 -4
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/local/doctor.command.d.ts +9 -0
- package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
- package/dist/src/commands/local/doctor.command.js +24 -6
- package/dist/src/commands/local/doctor.command.js.map +1 -1
- package/dist/src/commands/local/down.command.d.ts.map +1 -1
- package/dist/src/commands/local/init.command.d.ts.map +1 -1
- package/dist/src/commands/local/init.command.js +11 -2
- package/dist/src/commands/local/init.command.js.map +1 -1
- package/dist/src/commands/local/logs.command.d.ts.map +1 -1
- package/dist/src/commands/local/reinit.command.d.ts.map +1 -1
- package/dist/src/commands/local/reset.command.d.ts.map +1 -1
- package/dist/src/commands/local/status.command.d.ts.map +1 -1
- package/dist/src/commands/local/up.command.d.ts.map +1 -1
- package/dist/src/commands/local/up.command.js.map +1 -1
- package/dist/src/commands/lock/__tests__/check.command.test.d.ts.map +1 -1
- package/dist/src/commands/lock/__tests__/check.live.contract.test.d.ts.map +1 -1
- package/dist/src/commands/lock/check.command.d.ts.map +1 -1
- package/dist/src/commands/lock/check.command.js +4 -10
- package/dist/src/commands/lock/check.command.js.map +1 -1
- package/dist/src/commands/market/__tests__/generate.command.test.d.ts.map +1 -1
- package/dist/src/commands/market/__tests__/market-command.utils.test.d.ts.map +1 -1
- package/dist/src/commands/market/__tests__/market-command.utils.test.js +0 -1
- package/dist/src/commands/market/__tests__/market-command.utils.test.js.map +1 -1
- package/dist/src/commands/market/generate.command.d.ts.map +1 -1
- package/dist/src/commands/market/market-command.utils.d.ts.map +1 -1
- package/dist/src/commands/market/market-command.utils.js +1 -0
- package/dist/src/commands/market/market-command.utils.js.map +1 -1
- package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts +2 -0
- package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts.map +1 -0
- package/dist/src/commands/providers/__tests__/required-inputs.test.js +35 -0
- package/dist/src/commands/providers/__tests__/required-inputs.test.js.map +1 -0
- package/dist/src/commands/providers/show.command.d.ts +51 -0
- package/dist/src/commands/providers/show.command.d.ts.map +1 -0
- package/dist/src/commands/providers/show.command.js +152 -0
- package/dist/src/commands/providers/show.command.js.map +1 -0
- package/dist/src/commands/registry/add.command.d.ts.map +1 -1
- package/dist/src/commands/registry/info.command.d.ts.map +1 -1
- package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -1
- package/dist/src/commands/registry/login.command.d.ts.map +1 -1
- package/dist/src/commands/registry/login.command.js +2 -0
- package/dist/src/commands/registry/login.command.js.map +1 -1
- package/dist/src/commands/registry/logout.command.d.ts.map +1 -1
- package/dist/src/commands/registry/ping.command.d.ts.map +1 -1
- package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
- package/dist/src/commands/registry/publish.command.js +2 -0
- package/dist/src/commands/registry/publish.command.js.map +1 -1
- package/dist/src/commands/registry/registry-transport.constants.d.ts +33 -0
- package/dist/src/commands/registry/registry-transport.constants.d.ts.map +1 -0
- package/dist/src/commands/registry/registry-transport.constants.js +33 -0
- package/dist/src/commands/registry/registry-transport.constants.js.map +1 -0
- package/dist/src/commands/registry/remove.command.d.ts.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
- package/dist/src/commands/registry/search.command.d.ts.map +1 -1
- package/dist/src/commands/registry/update.command.d.ts.map +1 -1
- package/dist/src/commands/registry/whoami.command.d.ts.map +1 -1
- package/dist/src/commands/registry/whoami.command.js +2 -0
- package/dist/src/commands/registry/whoami.command.js.map +1 -1
- package/dist/src/commands/remote/__tests__/remote-commands.test.d.ts.map +1 -1
- package/dist/src/commands/remote/create.command.d.ts.map +1 -1
- package/dist/src/commands/remote/list.command.d.ts.map +1 -1
- package/dist/src/commands/remote/status.command.d.ts.map +1 -1
- package/dist/src/commands/remote/sync.command.d.ts.map +1 -1
- package/dist/src/commands/setup.command.d.ts.map +1 -1
- package/dist/src/commands/version.command.d.ts.map +1 -1
- package/dist/src/commands/website/__tests__/audit.command.test.d.ts.map +1 -1
- package/dist/src/commands/website/audit.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/__tests__/workbench.commands.test.d.ts.map +1 -1
- package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
- package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -1
- package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -1
- package/dist/src/infrastructure/process/__tests__/spawn.utils.test.d.ts.map +1 -1
- package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/bootstrap.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/command-registry.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/command-registry.test.js +9 -0
- package/dist/src/kernel/__tests__/command-registry.test.js.map +1 -1
- package/dist/src/kernel/__tests__/command-runner.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/command-scope-utils.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/flag-utils.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/hooks.test.d.ts.map +1 -1
- package/dist/src/kernel/base-command.d.ts.map +1 -1
- package/dist/src/kernel/bootstrap.d.ts.map +1 -1
- package/dist/src/kernel/command-registry.d.ts.map +1 -1
- package/dist/src/kernel/command-registry.js +6 -0
- package/dist/src/kernel/command-registry.js.map +1 -1
- package/dist/src/kernel/command-runner.d.ts.map +1 -1
- package/dist/src/kernel/command-scope-utils.d.ts.map +1 -1
- package/dist/src/kernel/flag-utils.d.ts.map +1 -1
- package/dist/src/kernel/hooks.d.ts.map +1 -1
- package/dist/src/kernel/logger.d.ts.map +1 -1
- package/dist/src/kernel/types.d.ts +17 -1
- package/dist/src/kernel/types.d.ts.map +1 -1
- package/dist/src/kernel/types.js +16 -0
- package/dist/src/kernel/types.js.map +1 -1
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.d.ts +2 -0
- package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.js +146 -0
- package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.js.map +1 -0
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js +2 -2
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js.map +1 -1
- package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/approver-user.module.d.ts +85 -0
- package/dist/src/modules/domain/credentials/approver-user.module.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/approver-user.module.js +92 -0
- package/dist/src/modules/domain/credentials/approver-user.module.js.map +1 -0
- package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/providers-config.module.d.ts +17 -9
- package/dist/src/modules/domain/credentials/providers-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/providers-config.module.js +18 -10
- package/dist/src/modules/domain/credentials/providers-config.module.js.map +1 -1
- package/dist/src/modules/domain/environment/__tests__/database-config.module.test.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -1
- package/dist/src/modules/domain/module.types.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.js +111 -0
- package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.js.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.js +22 -29
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js.map +1 -1
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js +2 -2
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js +19 -0
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/application-initialization-verification.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.js.map +1 -1
- package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/dev-orchestrator.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/dev-schema-drift.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js +0 -1
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.js +8 -1
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/local-application-initialization.guard.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.js +35 -0
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/provider-package-links.service.test.js +224 -0
- package/dist/src/services/application/__tests__/provider-package-links.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js +28 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js +0 -1
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js.map +1 -1
- package/dist/src/services/application/__tests__/saas-scaffold.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.js.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts +43 -10
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js +92 -49
- package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/app-env.service.d.ts.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
- package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.d.ts +22 -1
- package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.js +35 -7
- package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
- package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -1
- package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
- package/dist/src/services/application/application-root.utils.d.ts.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts +6 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.js +41 -2
- package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -1
- package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
- package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -1
- package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -1
- package/dist/src/services/application/local-application-initialization.service.js +22 -6
- package/dist/src/services/application/local-application-initialization.service.js.map +1 -1
- package/dist/src/services/application/provider-package-links.service.d.ts +160 -0
- package/dist/src/services/application/provider-package-links.service.d.ts.map +1 -0
- package/dist/src/services/application/provider-package-links.service.js +312 -0
- package/dist/src/services/application/provider-package-links.service.js.map +1 -0
- package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
- package/dist/src/services/application/provider-runtime-sync.service.js +7 -20
- package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
- package/dist/src/services/application/saas-scaffold.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-scaffold.service.js +11 -2
- package/dist/src/services/application/saas-scaffold.service.js.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.js +46 -26
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
- package/dist/src/services/brand/__tests__/brand-asset-delivery.test.d.ts.map +1 -1
- package/dist/src/services/brand/brand-asset-projection.d.ts.map +1 -1
- package/dist/src/services/brand/brand-destination-utils.d.ts.map +1 -1
- package/dist/src/services/brand/brand-propagation.types.d.ts.map +1 -1
- package/dist/src/services/brand/brand-ssot-reader.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/app-public.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/runtime-app-config.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/technical-doc-static.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/website-og.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/website-public.destination.d.ts.map +1 -1
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts +2 -0
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts.map +1 -0
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.js +93 -0
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.js.map +1 -0
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.d.ts.map +1 -1
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js +25 -5
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js.map +1 -1
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.d.ts.map +1 -1
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js +109 -51
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts +0 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.js +23 -7
- package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.d.ts +148 -51
- package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.js +230 -78
- package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -1
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts +2 -0
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts.map +1 -0
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js +110 -0
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js.map +1 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts +32 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts.map +1 -1
- package/dist/src/services/coding-agents/acp-conformance-probe.service.js +165 -7
- package/dist/src/services/coding-agents/acp-conformance-probe.service.js.map +1 -1
- package/dist/src/services/companion/__tests__/companion-client.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/__tests__/companion-client.service.test.js +96 -0
- package/dist/src/services/companion/__tests__/companion-client.service.test.js.map +1 -1
- package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/__tests__/workbench-cli.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client-options.utils.js +6 -0
- package/dist/src/services/companion/companion-client-options.utils.js.map +1 -1
- package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client.service.js +34 -0
- package/dist/src/services/companion/companion-client.service.js.map +1 -1
- package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-local-token.utils.d.ts +20 -0
- package/dist/src/services/companion/companion-local-token.utils.d.ts.map +1 -0
- package/dist/src/services/companion/companion-local-token.utils.js +62 -0
- package/dist/src/services/companion/companion-local-token.utils.js.map +1 -0
- package/dist/src/services/companion/companion.schemas.d.ts +12 -0
- package/dist/src/services/companion/companion.schemas.d.ts.map +1 -1
- package/dist/src/services/companion/companion.schemas.js.map +1 -1
- package/dist/src/services/companion/git-helper.service.d.ts.map +1 -1
- package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -1
- package/dist/src/services/companion/local-companion-authority.service.js +9 -30
- package/dist/src/services/companion/local-companion-authority.service.js.map +1 -1
- package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -1
- package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -1
- package/dist/src/services/companion/workbench-cli.service.js +10 -1
- package/dist/src/services/companion/workbench-cli.service.js.map +1 -1
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.d.ts.map +1 -1
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js +7 -0
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js.map +1 -1
- package/dist/src/services/context/__tests__/context-manager.service.test.d.ts.map +1 -1
- package/dist/src/services/context/context-manager.service.d.ts +9 -0
- package/dist/src/services/context/context-manager.service.d.ts.map +1 -1
- package/dist/src/services/context/context-manager.service.js +13 -1
- package/dist/src/services/context/context-manager.service.js.map +1 -1
- package/dist/src/services/context/context.schemas.d.ts.map +1 -1
- package/dist/src/services/context/state-manager.service.d.ts.map +1 -1
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts +28 -0
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts.map +1 -0
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js +197 -0
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js.map +1 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts +2 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts.map +1 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js +327 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js.map +1 -0
- package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.d.ts.map +1 -1
- package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.d.ts +2 -0
- package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.d.ts.map +1 -0
- package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.js +94 -0
- package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.js.map +1 -0
- package/dist/src/services/credentials/__tests__/secrets-contracts.test.d.ts.map +1 -1
- package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -1
- package/dist/src/services/credentials/ci-secrets-adapter.service.js +114 -37
- package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts +209 -0
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -0
- package/dist/src/services/credentials/composed-provider-catalogue.js +263 -0
- package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -0
- package/dist/src/services/credentials/credentials.schemas.d.ts +29 -22
- package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.js +67 -5
- package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
- package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.d.ts +105 -1
- package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.js +51 -8
- package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts +127 -7
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.js +189 -45
- package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
- package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.d.ts +0 -1
- package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.js +0 -1
- package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
- package/dist/src/services/data-services/data-services.service.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js +91 -1
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js +45 -15
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js +33 -1
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js +44 -1
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js +82 -87
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js +11 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
- package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-workflow-generator.service.js +23 -4
- package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js +150 -7
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js +60 -12
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
- package/dist/src/services/deployment/infra-writer.service.js +34 -7
- package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js +45 -2
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js +110 -9
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js +226 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js +132 -12
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/kind.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts +23 -0
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js +52 -6
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +45 -9
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +4 -3
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js +0 -4
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts +10 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +193 -33
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -1
- package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts +28 -17
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.js +83 -3
- package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts.map +1 -1
- package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -1
- package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/compose-converge-args.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/config-hydration-seam.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js +36 -20
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/env-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-sync.service.test.js +6 -4
- package/dist/src/services/environment/__tests__/env-sync.service.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js +89 -8
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/environment-hydration.utils.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js +136 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-paths.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-registry.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js +23 -0
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/platform-image-ref.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/platform-image-ref.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.d.ts.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.d.ts +52 -14
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js +41 -38
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
- package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-sync.service.js +13 -13
- package/dist/src/services/environment/env-sync.service.js.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts +28 -0
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.js +188 -41
- package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
- package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts +53 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.js +65 -1
- package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
- package/dist/src/services/environment/environment-paths.service.d.ts +2 -1
- package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-paths.service.js +5 -3
- package/dist/src/services/environment/environment-paths.service.js.map +1 -1
- package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.js +23 -9
- package/dist/src/services/environment/environment-setup.service.js.map +1 -1
- package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/environment.service.d.ts +6 -1
- package/dist/src/services/environment/environment.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment.service.js +2 -0
- package/dist/src/services/environment/environment.service.js.map +1 -1
- package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/application-rule-imports.test.js +58 -0
- package/dist/src/services/framework/__tests__/application-rule-imports.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js +55 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js +17 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js +101 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js +4 -70
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js +78 -6
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-release.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-release.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-secrets-writer.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-version.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-version.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/application-rule-imports.d.ts +36 -0
- package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -0
- package/dist/src/services/framework/application-rule-imports.js +77 -0
- package/dist/src/services/framework/application-rule-imports.js.map +1 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +23 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-development-skills-sync.service.js +51 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +86 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.js +212 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts +0 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.js +29 -215
- package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.js +7 -3
- package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts +44 -1
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-publish-manifest.service.js +79 -4
- package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
- package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-version.service.d.ts +13 -0
- package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-version.service.js +23 -24
- package/dist/src/services/framework/framework-version.service.js.map +1 -1
- package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.js +100 -0
- package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js +92 -0
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js +83 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js +219 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js +372 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js +794 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts +14 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js +1047 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts +26 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.js +57 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts +35 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.js +204 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts +410 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js +434 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.d.ts +39 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.js +274 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts +139 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.js +1586 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts +35 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.js +527 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts +229 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.js +96 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts +55 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.js +196 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.js.map +1 -0
- package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.d.ts.map +1 -1
- package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.d.ts.map +1 -1
- package/dist/src/services/frontend/__tests__/frontend-publish.service.test.d.ts.map +1 -1
- package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -1
- package/dist/src/services/frontend/cloudflare-cdn.service.js +33 -2
- package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -1
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-publish.service.js +1 -1
- package/dist/src/services/frontend/frontend-publish.service.js.map +1 -1
- package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/generator.schemas.d.ts.map +1 -1
- package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/template-registry.service.d.ts.map +1 -1
- package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
- package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -1
- package/dist/src/services/registry/index.d.ts.map +1 -1
- package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
- package/dist/src/services/registry/registry-config-resolver.service.d.ts.map +1 -1
- package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -1
- package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -1
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts +67 -0
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts.map +1 -0
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js +212 -0
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js.map +1 -0
- package/dist/src/services/security/__tests__/csp-boundary.test.d.ts.map +1 -1
- package/dist/src/services/security/__tests__/csp-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/security/__tests__/csp-sync.service.test.js +411 -5
- package/dist/src/services/security/__tests__/csp-sync.service.test.js.map +1 -1
- package/dist/src/services/security/csp-sync.service.d.ts +27 -5
- package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
- package/dist/src/services/security/csp-sync.service.js +204 -16
- package/dist/src/services/security/csp-sync.service.js.map +1 -1
- package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -1
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts +2 -0
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts.map +1 -0
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js +94 -0
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js.map +1 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts +9 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
- package/dist/src/services/website/website-structured-data-audit.service.js +72 -11
- package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
- package/dist/src/test-utils/resolved-homes.test.utils.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/framework-root-package.json +2 -0
- package/package.json +19 -17
- package/scripts/app-dependency-alignment/propagated-engine-overrides.json +15 -0
- package/templates/infra/ci/deploy-docker-compose.yml.hbs +1 -1
- package/templates/infra/ci/deploy-k8s.yml.hbs +1 -1
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +394 -90
- package/templates/infra/docker-images/backend/Dockerfile.backend-base +7 -1
- package/templates/infra/docker-images/backend/Dockerfile.backend-base-java +7 -1
- package/templates/infra/docker-images/platform/Dockerfile.platform-base.dockerignore +23 -0
- package/templates/infra/k8s/applications/wildo-ai-application/backend.deployment.yaml.hbs +8 -5
- package/templates/infra/k8s/applications/wildo-ai-application/ingress.yaml.hbs +3 -2
- package/templates/infra/k8s/applications/wildo-ai-application/minion.deployment.yaml.hbs +22 -6
- package/templates/infra/k8s/applications/wildo-ai-application/worker.deployment.yaml.hbs +17 -13
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +11 -0
- package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +18 -4
- package/templates/saas/engine-peer-closure.json +12 -0
- package/templates/saas/i18n/email/components/EmailHeader.tsx +9 -0
- package/templates/saas/i18n/email/components/EmailLayout.tsx +14 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/create.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/deactivate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/reactivate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/regenerate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/rotate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationOAuthClients/create.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationOAuthClients/regenerate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationOAuthClients/rotate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/deprecate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/promote.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/rollback.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/create.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/delete.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/transfer.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/transfer.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/update.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/update.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/disable_feature.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/enable_feature.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/reset_features.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/update.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/create.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/grantOwnership.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/resend.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_admin/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_invitee/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/update.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/archive.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/move.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/restore.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/update.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/activate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/create.admin.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/create.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/request_deletion.admin.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/request_deletion.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/restore.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/suspend.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/update.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/update.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/platformAccessGrants/requestAccess.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/user_self/deactivate_account.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/user_self/reactivate_account.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/assign_roles.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/create.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/delete.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/force_password_reset.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/revoke_roles.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/send_invitation.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/suspend_user.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/unsuspend_user.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/update.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/system/email-otp/template.tsx +1 -0
- package/templates/saas/i18n/email/system/email-verification/template.tsx +1 -1
- package/templates/saas/i18n/email/system/magic-link/template.tsx +1 -1
- package/templates/saas/i18n/email/system/new-device-login/template.tsx +1 -1
- package/templates/saas/i18n/email/system/organization-invitation/template.tsx +1 -0
- package/templates/saas/i18n/email/system/organization-member-removed/template.tsx +1 -0
- package/templates/saas/i18n/email/system/password-reset/template.tsx +1 -1
- package/templates/saas/i18n/email/system/payment-failed/template.tsx +1 -1
- package/templates/saas/i18n/email/system/security-alert/template.tsx +1 -0
- package/templates/saas/i18n/email/system/subscription-cancelled/template.tsx +1 -1
- package/templates/saas/i18n/email/system/subscription-confirmation/template.tsx +1 -0
- package/templates/saas/i18n/email/system/welcome-email/template.tsx +1 -1
- package/templates/saas/scenarios/add-file-picker-provider/files/frontend/src/engine/providers/__providerRef__.frontend-app.module.ts.hbs +10 -4
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/index.ts.hbs +9 -5
- package/templates/saas/scenarios/add-module/scenario.json +3 -3
- package/templates/saas/scenarios/add-provider/scenario.json +36 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +52 -2
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/csp.config.ts +20 -3
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/auth/exchange.tsx +75 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/search.tsx.hbs +47 -3
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/theme/Root.tsx +46 -4
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/favicon.svg +5 -4
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.svg +11 -5
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +18 -7
- package/templates/saas/scenarios/add-website/files/website/src/app-origin.ts.hbs +32 -16
- package/templates/saas/scenarios/add-website/files/website/src/components/HeaderComponent.tsx +2 -2
- package/templates/saas/scenarios/add-website/files/website/src/pages/index.astro +1 -0
- package/templates/saas/scenarios/add-website/files/website/src/sections/landing.sections.tsx +2 -2
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/src/index.ts.hbs +9 -5
- package/templates/saas/skeleton/.wildo-saas/dev-framework-scripts/sync-engine.sh +46 -14
- package/templates/saas/skeleton/CLAUDE.md.hbs +12 -0
- package/templates/saas/skeleton/backend-api/package.json.hbs +1 -1
- package/templates/saas/skeleton/backend-api/src/companion-exports.ts +13 -2
- package/templates/saas/skeleton/backend-api/src/index.ts +16 -0
- package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +11 -5
- package/templates/saas/skeleton/frontend/src/engine/app-level-views/app-level-views.definitions.module.frontend.ts +1 -1
- package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +17 -0
- package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +19 -0
- package/templates/saas/skeleton/wildo.saas.config.ts.init.hbs +59 -2
- package/wildo-framework.info.json +1 -1
- package/templates/infra/k8s/internal/gotenberg/deployment.yaml.hbs +0 -46
- package/templates/infra/k8s/internal/gotenberg/service.yaml.hbs +0 -19
- package/templates/infra/k8s/middleware.yaml.hbs +0 -101
- package/templates/saas/scenarios/add-backend-provider/scenario.json +0 -17
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/favicon.png +0 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.png +0 -0
- package/templates/saas/skeleton/backend-api/src/provider-contributions.ts +0 -44
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-services.schemas.js","sourceRoot":"","sources":["../../../../../../src/services/data-services/data-services.schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE;;;GAGG;AACH,MAAM,CAAN,IAAY,oBA2BX;AA3BD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,qDAA6B,CAAA;IAC7B,yCAAiB,CAAA;IACjB,6CAAqB,CAAA;IACrB,uCAAe,CAAA;IACf,iDAAyB,CAAA;IACzB,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;IACvB,oEAAoE;IACpE,yEAAyE;IACzE,yEAAyE;IACzE,qEAAqE;IACrE,yCAAiB,CAAA;IACjB,yEAAyE;IACzE,gFAAgF;IAChF,0EAA0E;IAC1E,yCAAiB,CAAA;IACjB,8EAA8E;IAC9E,wEAAwE;IACxE,+EAA+E;IAC/E,gFAAgF;IAChF,iFAAiF;IACjF,mFAAmF;IACnF,8EAA8E;IAC9E,2DAA2D;IAC3D,yCAAiB,CAAA;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,EAAE,gBAAgB,CAAC,QAAQ;IACnC,MAAM,EAAE,gBAAgB,CAAC,MAAM;CACvB,CAAC","sourcesContent":["import type { BackingServiceSource, DatabaseEngine } from '@wildo-ai/platform-config-lib';\nimport { STORAGE_DEFAULTS } from '@wildo-ai/platform-config-lib';\n\n/**\n * Platform data services that support the platform.\n * Deployed via Docker Compose (local) or K8s manifests (cluster).\n */\nexport enum PlatformDataServices {\n MONGODB = 'mongodb',\n MONGODB_INIT = 'mongodb-init',\n VALKEY = 'valkey',\n RABBITMQ = 'rabbitmq',\n MINIO = 'minio',\n MINIO_INIT = 'minio-init',\n POSTGRESQL = 'postgresql',\n GOTENBERG = 'gotenberg',\n // Slice 4 (4.8) — ClamAV is now a first-class self-deployable infra\n // service (was previously hand-rolled in the static docker-compose.yml).\n // STATEFUL because it must persist its ~500 MB virus signature DB across\n // restarts; otherwise every `up` triggers a full freshclam download.\n CLAMAV = 'clamav',\n // Audit Phase 2 — immudb is the self-deployable tamper-evident audit-log\n // store (the COMPLIANCE_AUDIT_TRAIL provider backend). STATEFUL: an append-only\n // DB whose history MUST persist across restarts, in both Compose and K8s.\n IMMUDB = 'immudb',\n // Issue #74 — `mongot` is the separate MongoDB Search / Vector Search process\n // that MongoDB 8.2 Community requires beside `mongod` for `$search` and\n // `$vectorSearch`. It is NOT an author-configurable backing service: it has no\n // `BackingServiceKind`, no managed variant, and no independent source. It is an\n // ATTACHMENT to a self-hosted mongod, deployed exactly when one is, which is why\n // both lanes gate it on the same `needsLocalMongoDB(env)` predicate rather than on\n // a second author switch. STATEFUL: mongot keeps its Lucene index on disk and\n // rebuilding it means re-reading every indexed collection.\n MONGOT = 'mongot',\n}\n\n// ============================================================================\n// Infrastructure service deployment metadata\n// ============================================================================\n\n/**\n * Whether a service requires persistent storage.\n * Runtime-agnostic: Docker Compose uses named volumes, K8s uses StatefulSets + PVCs.\n */\nexport enum InfraDeploymentType {\n STATEFUL = 'stateful',\n STATELESS = 'stateless',\n}\n\n// Infrastructure service catalog (with deployment type, ports, container names)\n// is defined in service-catalog.schemas.ts — the single source of truth.\n// STATEFUL_INFRA_SERVICES and ALL_SERVICE_CONTAINER_NAMES are derived there.\n\n// ============================================================================\n// Infra service container env var keys\n// ============================================================================\n// These are the env var names each container image reads for its own credentials.\n// Runtime-agnostic: injected via Docker Compose env_file or K8s Secret.\n\n/**\n * MongoDB container env var keys.\n *\n * - `MONGO_INITDB_ROOT_USERNAME` / `MONGO_INITDB_ROOT_PASSWORD` are the\n * well-known names the official `mongo:8.2` entrypoint reads to seed the\n * root user on first boot (re-verified 2026-08-27 on `mongo:8.2` — its\n * `docker-entrypoint.sh` still reads exactly these two, and a probe container\n * authenticated with the seeded root user). We deliberately export the long form (not\n * the legacy `MONGO_ROOT_USER` shorthand used by the Compose env file)\n * because the K8s secret is consumed directly by the StatefulSet —\n * there is no env-file translation layer.\n * - The Compose template still reads `MONGO_ROOT_USER` / `MONGO_ROOT_PASSWORD`\n * from `mongo.env` then injects them into `MONGO_INITDB_ROOT_*` at\n * container start; the K8s path skips that hop and binds the secret keys\n * directly to the env vars the image reads.\n */\nexport const MONGODB_CREDENTIAL_ENV_KEYS = {\n ROOT_USER: 'MONGO_INITDB_ROOT_USERNAME',\n ROOT_PASSWORD: 'MONGO_INITDB_ROOT_PASSWORD',\n} as const;\n\n/**\n * `mongot` sync-source identity — issue #74.\n *\n * mongot reads NO environment variables for its credential. It is configured entirely\n * from a file (`/mongot-community/config.default.yml`) whose `syncSource.replicaSet.scramAuth`\n * block names a username, an `authSource`, and a **passwordFile path** — never a password.\n * That is why this constant block has no `*_ENV_KEYS` sibling: the shape of the contract is\n * a file, not an env var, and pretending otherwise would put the password in a process\n * environment where every `docker inspect` reader can see it.\n *\n * Two facts here are load-bearing and were both measured, not read:\n *\n * - **`PASSWORD_FILE_MODE` is `0400` and mongot ENFORCES it.** A more permissive file is\n * refused at startup with `Secret file /passwordFile permissions are too permissive (must\n * only be readable by owner)` and the process exits 1 — so a 0644 file (the mode the\n * immudb signing key deliberately uses, because that container's UID differs) would make\n * the sidecar crash-loop. mongot's image runs as root, so root reads the file whoever owns\n * it; the mode is the only thing that matters, and it is checked.\n * - **`searchCoordinator` is a BUILT-IN role on 8.2** (`db.createUser({roles:['searchCoordinator']})`\n * succeeded against `mongo:8.2` / 8.2.12), so nothing needs to define it.\n *\n * The username is a framework-owned service identity, so it is a constant rather than an\n * authored value — exactly like the other internal service usernames.\n */\nexport const MONGOT_SYNC_SOURCE = {\n /** The `searchCoordinator`-roled user mongot authenticates to mongod as. */\n USERNAME: 'wildoMongotSyncSource',\n /** SCRAM auth database for that user. */\n AUTH_SOURCE: 'admin',\n /** Absolute in-container path both lanes mount the password file at. */\n PASSWORD_FILE_PATH: '/mongot-password',\n /** Owner-read-only. mongot refuses anything more permissive — see above. */\n PASSWORD_FILE_MODE: 0o400,\n /**\n * The mode the generator widens an EXISTING password file to just before rewriting it.\n *\n * `PASSWORD_FILE_MODE` is owner-READ-only, and `writeFileSync` opens for WRITE — so re-rendering\n * over a file the generator itself wrote fails `EACCES`. This is the transient mode held only\n * across the rewrite, never the mode mongot sees: the generator re-narrows to\n * `PASSWORD_FILE_MODE` immediately afterwards, and mongot exits 1 on anything more permissive.\n */\n PASSWORD_FILE_REWRITE_MODE: 0o600,\n /** In-container path of mongot's own configuration file (fixed by the image's CMD). */\n CONFIG_FILE_PATH: '/mongot-community/config.default.yml',\n /** In-container path of mongot's Lucene index storage (`storage.dataPath`). */\n DATA_PATH: '/data/mongot',\n} as const;\n\nexport const VALKEY_CREDENTIAL_ENV_KEYS = {\n PASSWORD: 'VALKEY_PASSWORD',\n} as const;\n\nexport const RABBITMQ_CREDENTIAL_ENV_KEYS = {\n DEFAULT_USER: 'RABBITMQ_DEFAULT_USER',\n DEFAULT_PASS: 'RABBITMQ_DEFAULT_PASS',\n ERLANG_COOKIE: 'RABBITMQ_ERLANG_COOKIE',\n} as const;\n\nexport const MINIO_CREDENTIAL_ENV_KEYS = {\n ROOT_USER: 'MINIO_ROOT_USER',\n ROOT_PASSWORD: 'MINIO_ROOT_PASSWORD',\n} as const;\n\nexport const POSTGRESQL_CREDENTIAL_ENV_KEYS = {\n ADMIN_USER: 'POSTGRES_ADMIN_USER',\n ADMIN_PASSWORD: 'POSTGRES_ADMIN_PASSWORD',\n ADMIN_DATABASE: 'POSTGRES_ADMIN_DATABASE',\n} as const;\n\n/**\n * Env-var keys for the self-hosted immudb audit store (Audit Phase 2).\n *\n * Unlike mongodb/valkey/etc. — whose credentials are FRAMEWORK-generated infra\n * material (`credentials.<service>`) — immudb's credentials are OPERATOR-supplied\n * PROVIDER material: the audit-sink provider declares `IMMUDB_HOST/PORT/USER/\n * PASSWORD/DATABASE` as its `secretsContract`, delivered via `credentials.providerEnv`.\n * So the self-hosted server's admin password is SOURCED FROM that provider secret\n * rather than independently generated — otherwise the server's admin login and the\n * app's connection password would diverge (an operator footgun).\n *\n * - `SERVER.ADMIN_PASSWORD` — the immudb SERVER env var that sets the built-in\n * `immudb` admin's initial password on a fresh data dir. The K8s `immudb-secret`\n * binds this key; the StatefulSet reads it via `secretKeyRef` (optional).\n * - `PROVIDER.PASSWORD` — the audit-sink provider's connection-password key inside\n * `credentials.providerEnv`; its value is copied into the server's ADMIN_PASSWORD\n * so the two always match (single source of truth). Mirrors the immudb backend\n * provider's `secretsContract.password.envVarName` in `external-connectors-private`.\n */\nexport const IMMUDB_CREDENTIAL_ENV_KEYS = {\n SERVER: {\n ADMIN_PASSWORD: 'IMMUDB_ADMIN_PASSWORD',\n /**\n * SEC1 EC PRIVATE KEY PEM the SELF-hosted immudb server signs its state with\n * (`--signingKey`). Rides the k8s `immudb-secret` (mounted as a file) / the compose\n * local-data key file. SERVER-side ONLY — the whole-server-substitution defense collapses\n * if this ever reaches an app pod, so it is NEVER placed in `providerEnv`.\n */\n STATE_SIGNING_KEY: 'IMMUDB_STATE_SIGNING_KEY',\n },\n PROVIDER: {\n PASSWORD: 'IMMUDB_PASSWORD',\n /**\n * The audit-sink provider's immudb host. Its presence in `credentials.providerEnv` is the\n * signal that the immudb audit provider is configured for this env — used to gate injection\n * of the generated `STATE_PUBLIC_KEY` (don't emit pinning material for an unused provider).\n */\n HOST: 'IMMUDB_HOST',\n /**\n * Durable trust-anchor directory the audit client persists its last-verified immudb state root\n * in (`external-connectors-private` immudb provider `secretsContract.stateDir`). Its VALUE is\n * runtime-topology, not a secret: LOCAL uses a host `local_data` path (env-configuration-generator),\n * while REMOTE containers use the fixed in-container mount path below, backed by a durable volume\n * (a PVC in k8s, a named volume in compose — provisioned by the manifest generators).\n */\n STATE_DIR: 'IMMUDB_STATE_DIR',\n /**\n * Pinned immudb state-signing PUBLIC key (SPKI PEM). Injected into every backend runtime's\n * `providerEnv` from the generated `credentials.immudb.stateSigningPublicKey`; the audit\n * client (`external-connectors-private` immudb provider `secretsContract.statePublicKeyPem`)\n * verifies the server's signed state against it. Public material — safe in every app pod.\n */\n STATE_PUBLIC_KEY: 'IMMUDB_STATE_PUBLIC_KEY',\n },\n} as const;\n\n/**\n * Fixed in-CONTAINER mount path for the immudb audit trust anchor in REMOTE deployments (k8s + compose).\n *\n * The anchor is the audit client's cross-restart tamper-evidence store; it MUST live on a durable,\n * access-protected volume (a PVC in k8s, a named volume in compose), never the pod/container's ephemeral\n * filesystem — otherwise a cross-restart rollback of the tamper-evident ledger is silently re-adopted, and\n * state-signature pinning does NOT catch it (immudb re-signs its current state; only the anchor remembers\n * tx N). Both remote runtimes mount their durable volume AT this path and set `IMMUDB_STATE_DIR` to it, so\n * the value is shared here to keep the env and the mount in lockstep. LOCAL uses a host `local_data` path\n * instead (a container mount path is meaningless without a container).\n */\nexport const IMMUDB_AUDIT_STATE_CONTAINER_DIR = '/var/lib/wildo/immudb-audit-state';\n\n// ============================================================================\n// Platform data services provider identifiers\n// ============================================================================\n\nexport const PLATFORM_DATA_SERVICES_PROVIDER = {\n SELF_MANAGED: 'self-managed',\n VALKEY_SELF: 'valkey-self',\n MINIO: 'minio',\n ATLAS: 'atlas',\n} as const;\n\n\n\nexport const DEFAULT_PLATFORM_POSTGRESQL_CONFIGURATION = {\n DATABASE: 'wildo_platform',\n SSL_MODE: 'disable',\n} as const;\n\n\n// ============================================================================\n// Atlas defaults\n// ============================================================================\n\nexport const DEFAULT_PLATFORM_ATLAS_CONFIGURATION = {\n DEFAULT_CLUSTER_NAME: 'Cluster0',\n DEFAULT_API_BASE_URL: 'https://cloud.mongodb.com/api/atlas/v1.0',\n} as const;\n\n// ============================================================================\n// MongoDB connection URL template\n// ============================================================================\n\nexport const DEFAULT_PLATFORM_MONGO_CONNECTION_URL_TEMPLATE = {\n SCHEME: 'mongodb://',\n SRV_SCHEME: 'mongodb+srv://',\n REPLICA_SET: 'rs0',\n AUTH_SOURCE: 'admin',\n} as const;\n\n\nexport const DEFAULT_PLATFORM_FILE_STORAGE_CONFIGURATION = {\n PROVIDER: STORAGE_DEFAULTS.PROVIDER,\n BUCKET: STORAGE_DEFAULTS.BUCKET,\n} as const;\n\n\n/**\n * Database structural choice stored in environments.json.\n * Contains NO credentials — just which engine, source, and (for\n * managed sources, post-Slice-4.B.0) brand.\n */\nexport interface PlatformDatabaseChoice {\n engine: DatabaseEngine;\n source?: BackingServiceSource | undefined;\n /**\n * Managed-brand identifier when `source === MANAGED`. For Mongo\n * this is `'atlas'`; for Postgres one of `'aws-rds' |\n * 'gcp-cloud-sql' | 'azure-database' | 'supabase' | 'neon' |\n * 'render'`. Slice 4.B.0 (2026-05-07) generalized the source/brand\n * split — pre-reshape Atlas was a `source` value, now it's a\n * `provider` brand under `source: MANAGED`.\n */\n provider?: string;\n}\n\nexport interface DatabaseInitializationInput {\n database: PlatformDatabaseChoice;\n atlasConnectionUrl?: string;\n atlasProjectId?: string;\n atlasApiPublicKey?: string;\n atlasApiPrivateKey?: string;\n atlasClusterName?: string;\n atlasApiBaseUrl?: string;\n}\n\n"]}
|
|
1
|
+
{"version":3,"file":"data-services.schemas.js","sourceRoot":"","sources":["../../../../src/services/data-services/data-services.schemas.ts"],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AC1B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACN,CAAC;AAIX,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACvD,QAAQ,EAAE,gBAAgB;IAC1B,QAAQ,EAAE,SAAS;CACX,CAAC;AAGX,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAE/E,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,oBAAoB,EAAE,UAAU;IAChC,oBAAoB,EAAE,0CAA0C;CACxD,CAAC;AAEX,+EAA+E;AAC/E,kCAAkC;AAClC,+EAA+E;AAE/E,MAAM,CAAC,MAAM,8CAA8C,GAAG;IAC5D,MAAM,EAAE,YAAY;IACpB,UAAU,EAAE,gBAAgB;IAC5B,WAAW,EAAE,KAAK;IAClB,WAAW,EAAE,OAAO;CACZ,CAAC;AAGX,MAAM,CAAC,MAAM,2CAA2C,GAAG;IACzD,QAAQ,EAAE,gBAAgB,CAAC,QAAQ;IACnC,MAAM,EAAE,gBAAgB,CAAC,MAAM;CACvB,CAAC","sourcesContent":["import type { BackingServiceSource, DatabaseEngine } from '@wildo-ai/platform-config-lib';\nimport { STORAGE_DEFAULTS } from '@wildo-ai/platform-config-lib';\n\n/**\n * Platform data services that support the platform.\n * Deployed via Docker Compose (local) or K8s manifests (cluster).\n */\nexport enum PlatformDataServices {\n MONGODB = 'mongodb',\n MONGODB_INIT = 'mongodb-init',\n VALKEY = 'valkey',\n RABBITMQ = 'rabbitmq',\n MINIO = 'minio',\n MINIO_INIT = 'minio-init',\n POSTGRESQL = 'postgresql',\n // Slice 4 (4.8) — ClamAV is now a first-class self-deployable infra\n // service (was previously hand-rolled in the static docker-compose.yml).\n // STATEFUL because it must persist its ~500 MB virus signature DB across\n // restarts; otherwise every `up` triggers a full freshclam download.\n CLAMAV = 'clamav',\n // Audit Phase 2 — immudb is the self-deployable tamper-evident audit-log\n // store (the COMPLIANCE_AUDIT_TRAIL provider backend). STATEFUL: an append-only\n // DB whose history MUST persist across restarts, in both Compose and K8s.\n IMMUDB = 'immudb',\n // Issue #74 — `mongot` is the separate MongoDB Search / Vector Search process\n // that MongoDB 8.2 Community requires beside `mongod` for `$search` and\n // `$vectorSearch`. It is NOT an author-configurable backing service: it has no\n // `BackingServiceKind`, no managed variant, and no independent source. It is an\n // ATTACHMENT to a self-hosted mongod, deployed exactly when one is, which is why\n // both lanes gate it on the same `needsLocalMongoDB(env)` predicate rather than on\n // a second author switch. STATEFUL: mongot keeps its Lucene index on disk and\n // rebuilding it means re-reading every indexed collection.\n MONGOT = 'mongot',\n}\n\n// ============================================================================\n// Infrastructure service deployment metadata\n// ============================================================================\n\n/**\n * Whether a service requires persistent storage.\n * Runtime-agnostic: Docker Compose uses named volumes, K8s uses StatefulSets + PVCs.\n */\nexport enum InfraDeploymentType {\n STATEFUL = 'stateful',\n STATELESS = 'stateless',\n}\n\n// Infrastructure service catalog (with deployment type, ports, container names)\n// is defined in service-catalog.schemas.ts — the single source of truth.\n// STATEFUL_INFRA_SERVICES and ALL_SERVICE_CONTAINER_NAMES are derived there.\n\n// ============================================================================\n// Infra service container env var keys\n// ============================================================================\n// These are the env var names each container image reads for its own credentials.\n// Runtime-agnostic: injected via Docker Compose env_file or K8s Secret.\n\n/**\n * MongoDB container env var keys.\n *\n * - `MONGO_INITDB_ROOT_USERNAME` / `MONGO_INITDB_ROOT_PASSWORD` are the\n * well-known names the official `mongo:8.2` entrypoint reads to seed the\n * root user on first boot (re-verified 2026-08-27 on `mongo:8.2` — its\n * `docker-entrypoint.sh` still reads exactly these two, and a probe container\n * authenticated with the seeded root user). We deliberately export the long form (not\n * the legacy `MONGO_ROOT_USER` shorthand used by the Compose env file)\n * because the K8s secret is consumed directly by the StatefulSet —\n * there is no env-file translation layer.\n * - The Compose template still reads `MONGO_ROOT_USER` / `MONGO_ROOT_PASSWORD`\n * from `mongo.env` then injects them into `MONGO_INITDB_ROOT_*` at\n * container start; the K8s path skips that hop and binds the secret keys\n * directly to the env vars the image reads.\n */\nexport const MONGODB_CREDENTIAL_ENV_KEYS = {\n ROOT_USER: 'MONGO_INITDB_ROOT_USERNAME',\n ROOT_PASSWORD: 'MONGO_INITDB_ROOT_PASSWORD',\n} as const;\n\n/**\n * `mongot` sync-source identity — issue #74.\n *\n * mongot reads NO environment variables for its credential. It is configured entirely\n * from a file (`/mongot-community/config.default.yml`) whose `syncSource.replicaSet.scramAuth`\n * block names a username, an `authSource`, and a **passwordFile path** — never a password.\n * That is why this constant block has no `*_ENV_KEYS` sibling: the shape of the contract is\n * a file, not an env var, and pretending otherwise would put the password in a process\n * environment where every `docker inspect` reader can see it.\n *\n * Two facts here are load-bearing and were both measured, not read:\n *\n * - **`PASSWORD_FILE_MODE` is `0400` and mongot ENFORCES it.** A more permissive file is\n * refused at startup with `Secret file /passwordFile permissions are too permissive (must\n * only be readable by owner)` and the process exits 1 — so a 0644 file (the mode the\n * immudb signing key deliberately uses, because that container's UID differs) would make\n * the sidecar crash-loop. mongot's image runs as root, so root reads the file whoever owns\n * it; the mode is the only thing that matters, and it is checked.\n * - **`searchCoordinator` is a BUILT-IN role on 8.2** (`db.createUser({roles:['searchCoordinator']})`\n * succeeded against `mongo:8.2` / 8.2.12), so nothing needs to define it.\n *\n * The username is a framework-owned service identity, so it is a constant rather than an\n * authored value — exactly like the other internal service usernames.\n */\nexport const MONGOT_SYNC_SOURCE = {\n /** The `searchCoordinator`-roled user mongot authenticates to mongod as. */\n USERNAME: 'wildoMongotSyncSource',\n /** SCRAM auth database for that user. */\n AUTH_SOURCE: 'admin',\n /** Absolute in-container path both lanes mount the password file at. */\n PASSWORD_FILE_PATH: '/mongot-password',\n /** Owner-read-only. mongot refuses anything more permissive — see above. */\n PASSWORD_FILE_MODE: 0o400,\n /**\n * The mode the generator widens an EXISTING password file to just before rewriting it.\n *\n * `PASSWORD_FILE_MODE` is owner-READ-only, and `writeFileSync` opens for WRITE — so re-rendering\n * over a file the generator itself wrote fails `EACCES`. This is the transient mode held only\n * across the rewrite, never the mode mongot sees: the generator re-narrows to\n * `PASSWORD_FILE_MODE` immediately afterwards, and mongot exits 1 on anything more permissive.\n */\n PASSWORD_FILE_REWRITE_MODE: 0o600,\n /** In-container path of mongot's own configuration file (fixed by the image's CMD). */\n CONFIG_FILE_PATH: '/mongot-community/config.default.yml',\n /** In-container path of mongot's Lucene index storage (`storage.dataPath`). */\n DATA_PATH: '/data/mongot',\n} as const;\n\nexport const VALKEY_CREDENTIAL_ENV_KEYS = {\n PASSWORD: 'VALKEY_PASSWORD',\n} as const;\n\nexport const RABBITMQ_CREDENTIAL_ENV_KEYS = {\n DEFAULT_USER: 'RABBITMQ_DEFAULT_USER',\n DEFAULT_PASS: 'RABBITMQ_DEFAULT_PASS',\n ERLANG_COOKIE: 'RABBITMQ_ERLANG_COOKIE',\n} as const;\n\nexport const MINIO_CREDENTIAL_ENV_KEYS = {\n ROOT_USER: 'MINIO_ROOT_USER',\n ROOT_PASSWORD: 'MINIO_ROOT_PASSWORD',\n} as const;\n\nexport const POSTGRESQL_CREDENTIAL_ENV_KEYS = {\n ADMIN_USER: 'POSTGRES_ADMIN_USER',\n ADMIN_PASSWORD: 'POSTGRES_ADMIN_PASSWORD',\n ADMIN_DATABASE: 'POSTGRES_ADMIN_DATABASE',\n} as const;\n\n/**\n * Env-var keys for the self-hosted immudb audit store (Audit Phase 2).\n *\n * Unlike mongodb/valkey/etc. — whose credentials are FRAMEWORK-generated infra\n * material (`credentials.<service>`) — immudb's credentials are OPERATOR-supplied\n * PROVIDER material: the audit-sink provider declares `IMMUDB_HOST/PORT/USER/\n * PASSWORD/DATABASE` as its `secretsContract`, delivered via `credentials.providerEnv`.\n * So the self-hosted server's admin password is SOURCED FROM that provider secret\n * rather than independently generated — otherwise the server's admin login and the\n * app's connection password would diverge (an operator footgun).\n *\n * - `SERVER.ADMIN_PASSWORD` — the immudb SERVER env var that sets the built-in\n * `immudb` admin's initial password on a fresh data dir. The K8s `immudb-secret`\n * binds this key; the StatefulSet reads it via `secretKeyRef` (optional).\n * - `PROVIDER.PASSWORD` — the audit-sink provider's connection-password key inside\n * `credentials.providerEnv`; its value is copied into the server's ADMIN_PASSWORD\n * so the two always match (single source of truth). Mirrors the immudb backend\n * provider's `secretsContract.password.envVarName` in `external-connectors-private`.\n */\nexport const IMMUDB_CREDENTIAL_ENV_KEYS = {\n SERVER: {\n ADMIN_PASSWORD: 'IMMUDB_ADMIN_PASSWORD',\n /**\n * SEC1 EC PRIVATE KEY PEM the SELF-hosted immudb server signs its state with\n * (`--signingKey`). Rides the k8s `immudb-secret` (mounted as a file) / the compose\n * local-data key file. SERVER-side ONLY — the whole-server-substitution defense collapses\n * if this ever reaches an app pod, so it is NEVER placed in `providerEnv`.\n */\n STATE_SIGNING_KEY: 'IMMUDB_STATE_SIGNING_KEY',\n },\n PROVIDER: {\n PASSWORD: 'IMMUDB_PASSWORD',\n /**\n * The audit-sink provider's immudb host. Its presence in `credentials.providerEnv` is the\n * signal that the immudb audit provider is configured for this env — used to gate injection\n * of the generated `STATE_PUBLIC_KEY` (don't emit pinning material for an unused provider).\n */\n HOST: 'IMMUDB_HOST',\n /**\n * Durable trust-anchor directory the audit client persists its last-verified immudb state root\n * in (`external-connectors-private` immudb provider `secretsContract.stateDir`). Its VALUE is\n * runtime-topology, not a secret: LOCAL uses a host `local_data` path (env-configuration-generator),\n * while REMOTE containers use the fixed in-container mount path below, backed by a durable volume\n * (a PVC in k8s, a named volume in compose — provisioned by the manifest generators).\n */\n STATE_DIR: 'IMMUDB_STATE_DIR',\n /**\n * Pinned immudb state-signing PUBLIC key (SPKI PEM). Injected into every backend runtime's\n * `providerEnv` from the generated `credentials.immudb.stateSigningPublicKey`; the audit\n * client (`external-connectors-private` immudb provider `secretsContract.statePublicKeyPem`)\n * verifies the server's signed state against it. Public material — safe in every app pod.\n */\n STATE_PUBLIC_KEY: 'IMMUDB_STATE_PUBLIC_KEY',\n },\n} as const;\n\n/**\n * Fixed in-CONTAINER mount path for the immudb audit trust anchor in REMOTE deployments (k8s + compose).\n *\n * The anchor is the audit client's cross-restart tamper-evidence store; it MUST live on a durable,\n * access-protected volume (a PVC in k8s, a named volume in compose), never the pod/container's ephemeral\n * filesystem — otherwise a cross-restart rollback of the tamper-evident ledger is silently re-adopted, and\n * state-signature pinning does NOT catch it (immudb re-signs its current state; only the anchor remembers\n * tx N). Both remote runtimes mount their durable volume AT this path and set `IMMUDB_STATE_DIR` to it, so\n * the value is shared here to keep the env and the mount in lockstep. LOCAL uses a host `local_data` path\n * instead (a container mount path is meaningless without a container).\n */\nexport const IMMUDB_AUDIT_STATE_CONTAINER_DIR = '/var/lib/wildo/immudb-audit-state';\n\n// ============================================================================\n// Platform data services provider identifiers\n// ============================================================================\n\nexport const PLATFORM_DATA_SERVICES_PROVIDER = {\n SELF_MANAGED: 'self-managed',\n VALKEY_SELF: 'valkey-self',\n MINIO: 'minio',\n ATLAS: 'atlas',\n} as const;\n\n\n\nexport const DEFAULT_PLATFORM_POSTGRESQL_CONFIGURATION = {\n DATABASE: 'wildo_platform',\n SSL_MODE: 'disable',\n} as const;\n\n\n// ============================================================================\n// Atlas defaults\n// ============================================================================\n\nexport const DEFAULT_PLATFORM_ATLAS_CONFIGURATION = {\n DEFAULT_CLUSTER_NAME: 'Cluster0',\n DEFAULT_API_BASE_URL: 'https://cloud.mongodb.com/api/atlas/v1.0',\n} as const;\n\n// ============================================================================\n// MongoDB connection URL template\n// ============================================================================\n\nexport const DEFAULT_PLATFORM_MONGO_CONNECTION_URL_TEMPLATE = {\n SCHEME: 'mongodb://',\n SRV_SCHEME: 'mongodb+srv://',\n REPLICA_SET: 'rs0',\n AUTH_SOURCE: 'admin',\n} as const;\n\n\nexport const DEFAULT_PLATFORM_FILE_STORAGE_CONFIGURATION = {\n PROVIDER: STORAGE_DEFAULTS.PROVIDER,\n BUCKET: STORAGE_DEFAULTS.BUCKET,\n} as const;\n\n\n/**\n * Database structural choice stored in environments.json.\n * Contains NO credentials — just which engine, source, and (for\n * managed sources, post-Slice-4.B.0) brand.\n */\nexport interface PlatformDatabaseChoice {\n engine: DatabaseEngine;\n source?: BackingServiceSource | undefined;\n /**\n * Managed-brand identifier when `source === MANAGED`. For Mongo\n * this is `'atlas'`; for Postgres one of `'aws-rds' |\n * 'gcp-cloud-sql' | 'azure-database' | 'supabase' | 'neon' |\n * 'render'`. Slice 4.B.0 (2026-05-07) generalized the source/brand\n * split — pre-reshape Atlas was a `source` value, now it's a\n * `provider` brand under `source: MANAGED`.\n */\n provider?: string;\n}\n\nexport interface DatabaseInitializationInput {\n database: PlatformDatabaseChoice;\n atlasConnectionUrl?: string;\n atlasProjectId?: string;\n atlasApiPublicKey?: string;\n atlasApiPrivateKey?: string;\n atlasClusterName?: string;\n atlasApiBaseUrl?: string;\n}\n\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-services.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"data-services.service.d.ts","sourceRoot":"","sources":["../../../../src/services/data-services/data-services.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAC;AAE3G,qBAAa,yBAAyB;IACpC,MAAM,CAAC,kCAAkC,CACvC,OAAO,EAAE,sBAAsB,EAC/B,WAAW,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAC/C,OAAO,CAAC,EAAE;QACR,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B,GACA,MAAM;CAoBV"}
|
package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps-manager-diagnostics.service.test.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"apps-manager-diagnostics.service.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/__tests__/apps-manager-diagnostics.service.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-deploy-generator.service.test.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"ci-deploy-generator.service.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/__tests__/ci-deploy-generator.service.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mkdtempSync, readFileSync, rmSync } from 'node:fs';
|
|
1
|
+
import { existsSync, mkdtempSync, readFileSync, rmSync } from 'node:fs';
|
|
2
2
|
import { tmpdir } from 'node:os';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
import { WildoDeploymentRuntime, WildoLocationType } from '@wildo-ai/platform-config-lib';
|
|
@@ -10,6 +10,13 @@ vi.mock('~wildo-cli/services/catalog/service-address-resolver.service', () => ({
|
|
|
10
10
|
resolve: vi.fn(() => ({})),
|
|
11
11
|
},
|
|
12
12
|
}));
|
|
13
|
+
// The k8s branch emits platform-service Secrets before it reaches the application tier, which
|
|
14
|
+
// would need the whole platform builder surface stubbed. The application tier is what these tests
|
|
15
|
+
// are about, so the platform emit is switched off — the same scoping the sibling
|
|
16
|
+
// `k8s-secrets-generator.service.test.ts` uses.
|
|
17
|
+
vi.mock('~wildo-cli/services/deployment/platform-runtime-policy.service', () => ({
|
|
18
|
+
shouldDeployPlatformServicesInRuntime: vi.fn(() => false),
|
|
19
|
+
}));
|
|
13
20
|
vi.mock('~wildo-cli/services/environment/env-vars-builder.service', () => {
|
|
14
21
|
return {
|
|
15
22
|
PlatformEnvVarsBuilder: {
|
|
@@ -18,6 +25,23 @@ vi.mock('~wildo-cli/services/environment/env-vars-builder.service', () => {
|
|
|
18
25
|
buildApplicationBackendEnv: vi.fn((...args) => ({
|
|
19
26
|
DEPLOYMENT_LOCATION_TYPE: args[7].deploymentLocationType,
|
|
20
27
|
})),
|
|
28
|
+
// Minion and worker builders (#377): each runtime now emits its OWN env Secret. Stubbed to a
|
|
29
|
+
// marker keyed on the serviceName they were called with, so a test asserting Secret NAMES
|
|
30
|
+
// cannot pass while the generator built the wrong runtime's environment. The CONTENTS
|
|
31
|
+
// confinement is pinned against the real builders in `k8s-runtime-env-secrets.test.ts`.
|
|
32
|
+
buildApplicationMinionEnv: vi.fn((...args) => ({
|
|
33
|
+
APPLICATION_ID: '1',
|
|
34
|
+
WILDO_RUNTIME_UNDER_TEST: `minion:${args[1]}`,
|
|
35
|
+
})),
|
|
36
|
+
buildApplicationWorkerEnv: vi.fn((...args) => ({
|
|
37
|
+
APPLICATION_ID: '1',
|
|
38
|
+
WILDO_RUNTIME_UNDER_TEST: `worker:${args[2]}`,
|
|
39
|
+
})),
|
|
40
|
+
// Deliberately NOT a `vi.fn(() => ({}))`: an empty stub would emit no provider Secret for
|
|
41
|
+
// any runtime, so the wiring test below would pass against a generator that received no
|
|
42
|
+
// targets at all — the exact defect it exists to catch. This returns the scope it was given,
|
|
43
|
+
// so the assertions read the refs that actually reached the call.
|
|
44
|
+
buildScopedProviderEnv: vi.fn((_credentials, scope) => Object.fromEntries((scope.providerRefs ?? []).map((ref) => [`${ref.toUpperCase()}_API_KEY`, `${ref}-value`]))),
|
|
21
45
|
},
|
|
22
46
|
};
|
|
23
47
|
});
|
|
@@ -144,4 +168,70 @@ describe('generateCiDeployArtifacts', () => {
|
|
|
144
168
|
expect(guard).not.toContain('!.gitignore');
|
|
145
169
|
});
|
|
146
170
|
});
|
|
171
|
+
/**
|
|
172
|
+
* #369 — this generator is the ONLY caller that emits application-tier k8s Secrets, so it is the
|
|
173
|
+
* only place the per-runtime provider Secrets can be wired. `infra-writer` and `k8s-bootstrap`
|
|
174
|
+
* pass no application targets at all (each records that at its call site).
|
|
175
|
+
*
|
|
176
|
+
* Pinned because the wiring is invisible when wrong: the Deployment mounts its provider Secret
|
|
177
|
+
* with `optional: true`, so a caller that forgets to pass minions and workers produces manifests
|
|
178
|
+
* that apply cleanly, pods that start, and a runtime that fails at its first provider call — with
|
|
179
|
+
* nothing in the deploy naming the cause.
|
|
180
|
+
*/
|
|
181
|
+
describe('generateCiDeployArtifacts — per-runtime provider Secrets reach the k8s output (#369)', () => {
|
|
182
|
+
it('emits one provider Secret per declared minion and worker, not just for the backend', () => {
|
|
183
|
+
const outputDir = mkdtempSync(join(tmpdir(), 'wildo-ci-deploy-providers-'));
|
|
184
|
+
createdOutputDirectories.push(outputDir);
|
|
185
|
+
generateCiDeployArtifacts({
|
|
186
|
+
env: {
|
|
187
|
+
name: 'production',
|
|
188
|
+
locationType: WildoLocationType.REMOTE,
|
|
189
|
+
kubernetes: { namespace: 'demo-prod' },
|
|
190
|
+
},
|
|
191
|
+
credentials: {
|
|
192
|
+
// The infra section of the k8s emit reads these before it reaches the application
|
|
193
|
+
// tier; only `providerEnv` is what this test is actually about.
|
|
194
|
+
rabbitmq: { adminUsername: 'rmq', adminPassword: 'rmq-pw', erlangCookie: 'cookie' },
|
|
195
|
+
storage: { accessKey: 'minio-access', secretKey: 'minio-secret' },
|
|
196
|
+
postgresql: { adminUser: 'pg', adminPassword: 'pg-pw' },
|
|
197
|
+
mongodb: { rootUser: 'mongo', rootPassword: 'mongo-pw' },
|
|
198
|
+
valkey: { adminUser: 'valkey', adminPassword: 'valkey-pw' },
|
|
199
|
+
providerEnv: { OPENAI_API_KEY: 'sk-openai' },
|
|
200
|
+
},
|
|
201
|
+
config: {
|
|
202
|
+
database: { engine: 'mongodb' },
|
|
203
|
+
infrastructure: {
|
|
204
|
+
storage: { provider: 'minio', useSsl: false, bucket: 'b' },
|
|
205
|
+
postgresql: { database: 'postgres', sslMode: 'disable' },
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
runtime: WildoDeploymentRuntime.KUBERNETES,
|
|
209
|
+
outputDir,
|
|
210
|
+
applicationBackends: [{
|
|
211
|
+
appName: 'demo-app',
|
|
212
|
+
serviceName: 'demo-app-backend-api',
|
|
213
|
+
bootstrapCredentials: {},
|
|
214
|
+
scopedProviderRefs: ['stripe'],
|
|
215
|
+
}],
|
|
216
|
+
applicationMinions: [{
|
|
217
|
+
appName: 'demo-app', minionName: 'marketingScrapper', scopedProviderRefs: ['openai'],
|
|
218
|
+
}],
|
|
219
|
+
applicationWorkers: [{
|
|
220
|
+
appName: 'demo-app', workerName: 'myNodeWorker', scopedProviderRefs: ['anthropic'],
|
|
221
|
+
}],
|
|
222
|
+
}, { info: vi.fn() });
|
|
223
|
+
const k8sDir = join(outputDir, 'k8s');
|
|
224
|
+
// Written as files, because that is what CI's `kubectl apply -f k8s/` consumes — asserting the
|
|
225
|
+
// in-memory map would not prove the artifact exists.
|
|
226
|
+
expect(existsSync(join(k8sDir, 'demo-app-minion-marketing-scrapper-providers-secret.yaml'))).toBe(true);
|
|
227
|
+
expect(existsSync(join(k8sDir, 'demo-app-worker-my-node-worker-providers-secret.yaml'))).toBe(true);
|
|
228
|
+
expect(existsSync(join(k8sDir, 'demo-app-providers-secret.yaml'))).toBe(true);
|
|
229
|
+
// And each carries ITS OWN scope, so a wiring that passed the same target list three times
|
|
230
|
+
// would still fail here.
|
|
231
|
+
const minionSecret = readFileSync(join(k8sDir, 'demo-app-minion-marketing-scrapper-providers-secret.yaml'), 'utf8');
|
|
232
|
+
expect(minionSecret).toContain('OPENAI_API_KEY');
|
|
233
|
+
expect(minionSecret).not.toContain('ANTHROPIC_API_KEY');
|
|
234
|
+
expect(minionSecret).not.toContain('STRIPE_API_KEY');
|
|
235
|
+
});
|
|
236
|
+
});
|
|
147
237
|
//# sourceMappingURL=ci-deploy-generator.service.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-deploy-generator.service.test.js","sourceRoot":"","sources":["../../../../../../../src/services/deployment/__tests__/ci-deploy-generator.service.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE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AAC;QAEjD,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAC9C,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;QACzC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { mkdtempSync, readFileSync, rmSync } from 'node:fs';\nimport { tmpdir } from 'node:os';\nimport { join } from 'node:path';\n\nimport { WildoDeploymentRuntime, WildoLocationType } from '@wildo-ai/platform-config-lib';\nimport { afterEach, describe, expect, it, vi } from 'vitest';\n\nvi.mock('~wildo-cli/services/catalog/service-address-resolver.service', () => ({\n AddressPerspective: { CONTAINER_INTERNAL: 'container_internal' },\n ServiceAddressResolver: {\n fromEnvironment: vi.fn(() => ({})),\n resolve: vi.fn(() => ({})),\n },\n}));\n\nvi.mock('~wildo-cli/services/environment/env-vars-builder.service', () => {\n return {\n PlatformEnvVarsBuilder: {\n buildInfraCredentialEnv: vi.fn(() => ({})),\n buildAppsManagerFullEnv: vi.fn(() => ({})),\n buildApplicationBackendEnv: vi.fn((...args: unknown[]) => ({\n DEPLOYMENT_LOCATION_TYPE: (args[7] as { deploymentLocationType: WildoLocationType }).deploymentLocationType,\n })),\n },\n };\n});\n\nimport { generateCiDeployArtifacts } from '../ci-deploy-generator.service';\nimport { PlatformEnvVarsBuilder } from '~wildo-cli/services/environment/env-vars-builder.service';\nimport { declaredProviderScope } from '~wildo-cli/services/credentials/provider-env-vars.utils';\n\nconst createdOutputDirectories: string[] = [];\n\nafterEach(() => {\n vi.clearAllMocks();\n for (const outputDirectory of createdOutputDirectories.splice(0)) {\n rmSync(outputDirectory, { recursive: true, force: true });\n }\n});\n\ndescribe('generateCiDeployArtifacts', () => {\n it('propagates remote deployment topology into every compose application backend environment', () => {\n const outputDir = mkdtempSync(join(tmpdir(), 'wildo-ci-deploy-'));\n createdOutputDirectories.push(outputDir);\n\n generateCiDeployArtifacts(\n {\n env: {\n name: 'production',\n locationType: WildoLocationType.REMOTE,\n } as never,\n credentials: {} as never,\n config: {} as never,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n outputDir,\n applicationBackends: [{\n appName: 'demo-app',\n serviceName: 'demo-app-backend-api',\n bootstrapCredentials: {},\n // Stated even though this fixture asserts topology, not provider fan-out: the target\n // type requires it, and `declaredProviderScope` refuses an omitted value at runtime so\n // an `as never` fixture cannot quietly reintroduce the empty-by-omission bug.\n scopedProviderRefs: ['stripe'],\n }] as never,\n },\n { info: vi.fn() } as never,\n );\n\n expect(PlatformEnvVarsBuilder.buildApplicationBackendEnv).toHaveBeenCalledWith(\n expect.anything(),\n 'demo-app-backend-api',\n expect.anything(),\n expect.anything(),\n expect.anything(),\n 'production',\n // The REMOTE lane's declared provider scope. This call site had none until the parameter\n // became required — so the compose app `.env` would have carried no provider secret at all,\n // in the lane where nothing local is watching.\n declaredProviderScope(['stripe']),\n expect.objectContaining({ deploymentLocationType: WildoLocationType.REMOTE }),\n );\n expect(readFileSync(join(outputDir, 'compose', 'demo-app-backend-api.env'), 'utf8')).toContain('DEPLOYMENT_LOCATION_TYPE=remote');\n });\n\n /**\n * REGRESSION — `formatEnvFile` already quotes + escapes, so a value that arrives PRE-quoted gets\n * escaped a SECOND time and the consumer receives a PEM beginning with a literal `\"`.\n *\n * This was live: the artifact generated on 2026-07-18 at\n * `.wildo-saas/deploy/local/compose/.env.wildo-platform` contained\n * `PLATFORM_APPS_MANAGER_PUBLIC_KEY=\"\\\"-----BEGIN PUBLIC KEY-----\\n…`, and both platform JWT keys\n * in it throw on `createPublicKey`/`createPrivateKey`. Builders emit RAW values now; this pins it.\n */\n it('does not double-escape a multi-line PEM (regression: pre-quoted values produced an unusable `\"\\\\\"\"` prefix)', () => {\n const outputDir = mkdtempSync(join(tmpdir(), 'wildo-ci-deploy-pem-'));\n createdOutputDirectories.push(outputDir);\n\n const RAW_PEM = '-----BEGIN PUBLIC KEY-----\\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE\\n-----END PUBLIC KEY-----\\n';\n vi.mocked(PlatformEnvVarsBuilder.buildApplicationBackendEnv).mockReturnValueOnce({\n SOME_PUBLIC_KEY: RAW_PEM,\n } as never);\n\n generateCiDeployArtifacts(\n {\n env: { name: 'production', locationType: WildoLocationType.REMOTE } as never,\n credentials: {} as never,\n config: {} as never,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n outputDir,\n applicationBackends: [{\n appName: 'demo-app',\n serviceName: 'demo-app-backend-api',\n bootstrapCredentials: {},\n // Stated even though this fixture asserts topology, not provider fan-out: the target\n // type requires it, and `declaredProviderScope` refuses an omitted value at runtime so\n // an `as never` fixture cannot quietly reintroduce the empty-by-omission bug.\n scopedProviderRefs: ['stripe'],\n }] as never,\n },\n { info: vi.fn() } as never,\n );\n\n const written = readFileSync(join(outputDir, 'compose', 'demo-app-backend-api.env'), 'utf8');\n // Escaped exactly ONCE: the value opens with `\"-----BEGIN`, never with `\"\\\"-----BEGIN`.\n expect(written).toContain('SOME_PUBLIC_KEY=\"-----BEGIN PUBLIC KEY-----\\\\n');\n expect(written).not.toContain('\\\\\"-----BEGIN');\n });\n\n /**\n * Security invariant, not a formatting preference.\n *\n * The deploy zone lives inside `.wildo-saas/`, a PARTLY TRACKED tree, and\n * every file rendered into it carries credentials (K8s `Secret` payloads, the\n * platform admin secret, the apps-manager signing key, database URLs with\n * passwords). The framework does not generate an application's root\n * `.gitignore`, so the ONLY protection the framework can guarantee is the\n * guard this generator writes beside the artifacts.\n *\n * Both halves are asserted deliberately:\n * - the guard exists and is emitted for EVERY runtime (this test covers\n * compose; the k8s branch shares the same pre-branch write);\n * - the pattern is a bare `*` with NO `!.gitignore` re-include, so the guard\n * excludes itself too — it is a regenerated artifact, not repo truth.\n *\n * A future refactor that moves the write inside a runtime branch, gates it on\n * `--ci`, or \"helpfully\" adds the re-include fails here rather than silently\n * shipping committable secrets.\n */\n it('writes a self-ignoring gitignore guard into the deploy zone so no rendered secret can be committed', () => {\n const outputDir = mkdtempSync(join(tmpdir(), 'wildo-ci-deploy-guard-'));\n createdOutputDirectories.push(outputDir);\n\n const result = generateCiDeployArtifacts(\n {\n env: { name: 'production', locationType: WildoLocationType.REMOTE } as never,\n credentials: {} as never,\n config: {} as never,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n outputDir,\n applicationBackends: [{\n appName: 'demo-app',\n serviceName: 'demo-app-backend-api',\n bootstrapCredentials: {},\n // Stated even though this fixture asserts topology, not provider fan-out: the target\n // type requires it, and `declaredProviderScope` refuses an omitted value at runtime so\n // an `as never` fixture cannot quietly reintroduce the empty-by-omission bug.\n scopedProviderRefs: ['stripe'],\n }] as never,\n },\n { info: vi.fn() } as never,\n );\n\n const guardPath = join(outputDir, '.gitignore');\n expect(result.filesWritten).toContain(guardPath);\n\n const guard = readFileSync(guardPath, 'utf8');\n expect(guard.split('\\n')).toContain('*');\n expect(guard).not.toContain('!.gitignore');\n });\n});\n"]}
|
|
1
|
+
{"version":3,"file":"ci-deploy-generator.service.test.js","sourceRoot":"","sources":["../../../../../src/services/deployment/__tests__/ci-deploy-generator.service.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE7D,EAAE,CAAC,IAAI,CAAC,8DAA8D,EAAE,GAAG,EAAE,CA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,CAAU;YACX,kBAAkB,EAAE,CAAC;oBACnB,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAE,CAAC,WAAW,CAAC;iBACnF,CAAU;SACZ,EACD,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,EAAE,EAAW,CAC3B,CAAC;QAEF,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QACtC,+FAA+F;QAC/F,qDAAqD;QACrD,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,0DAA0D,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,sDAAsD,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,gCAAgC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE9E,2FAA2F;QAC3F,yBAAyB;QACzB,MAAM,YAAY,GAAG,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,0DAA0D,CAAC,EAAE,MAAM,CAAC,CAAC;QACpH,MAAM,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QACjD,MAAM,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;QACxD,MAAM,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { existsSync, mkdtempSync, readFileSync, rmSync } from 'node:fs';\nimport { tmpdir } from 'node:os';\nimport { join } from 'node:path';\n\nimport { WildoDeploymentRuntime, WildoLocationType } from '@wildo-ai/platform-config-lib';\nimport { afterEach, describe, expect, it, vi } from 'vitest';\n\nvi.mock('~wildo-cli/services/catalog/service-address-resolver.service', () => ({\n AddressPerspective: { CONTAINER_INTERNAL: 'container_internal' },\n ServiceAddressResolver: {\n fromEnvironment: vi.fn(() => ({})),\n resolve: vi.fn(() => ({})),\n },\n}));\n\n// The k8s branch emits platform-service Secrets before it reaches the application tier, which\n// would need the whole platform builder surface stubbed. The application tier is what these tests\n// are about, so the platform emit is switched off — the same scoping the sibling\n// `k8s-secrets-generator.service.test.ts` uses.\nvi.mock('~wildo-cli/services/deployment/platform-runtime-policy.service', () => ({\n shouldDeployPlatformServicesInRuntime: vi.fn(() => false),\n}));\n\nvi.mock('~wildo-cli/services/environment/env-vars-builder.service', () => {\n return {\n PlatformEnvVarsBuilder: {\n buildInfraCredentialEnv: vi.fn(() => ({})),\n buildAppsManagerFullEnv: vi.fn(() => ({})),\n buildApplicationBackendEnv: vi.fn((...args: unknown[]) => ({\n DEPLOYMENT_LOCATION_TYPE: (args[7] as { deploymentLocationType: WildoLocationType }).deploymentLocationType,\n })),\n // Minion and worker builders (#377): each runtime now emits its OWN env Secret. Stubbed to a\n // marker keyed on the serviceName they were called with, so a test asserting Secret NAMES\n // cannot pass while the generator built the wrong runtime's environment. The CONTENTS\n // confinement is pinned against the real builders in `k8s-runtime-env-secrets.test.ts`.\n buildApplicationMinionEnv: vi.fn((...args: unknown[]) => ({\n APPLICATION_ID: '1',\n WILDO_RUNTIME_UNDER_TEST: `minion:${args[1] as string}`,\n })),\n buildApplicationWorkerEnv: vi.fn((...args: unknown[]) => ({\n APPLICATION_ID: '1',\n WILDO_RUNTIME_UNDER_TEST: `worker:${args[2] as string}`,\n })),\n // Deliberately NOT a `vi.fn(() => ({}))`: an empty stub would emit no provider Secret for\n // any runtime, so the wiring test below would pass against a generator that received no\n // targets at all — the exact defect it exists to catch. This returns the scope it was given,\n // so the assertions read the refs that actually reached the call.\n buildScopedProviderEnv: vi.fn((_credentials: unknown, scope: { providerRefs?: readonly string[] }) =>\n Object.fromEntries((scope.providerRefs ?? []).map((ref) => [`${ref.toUpperCase()}_API_KEY`, `${ref}-value`])),\n ),\n },\n };\n});\n\nimport { generateCiDeployArtifacts } from '../ci-deploy-generator.service';\nimport { PlatformEnvVarsBuilder } from '~wildo-cli/services/environment/env-vars-builder.service';\nimport { declaredProviderScope } from '~wildo-cli/services/credentials/provider-env-vars.utils';\n\nconst createdOutputDirectories: string[] = [];\n\nafterEach(() => {\n vi.clearAllMocks();\n for (const outputDirectory of createdOutputDirectories.splice(0)) {\n rmSync(outputDirectory, { recursive: true, force: true });\n }\n});\n\ndescribe('generateCiDeployArtifacts', () => {\n it('propagates remote deployment topology into every compose application backend environment', () => {\n const outputDir = mkdtempSync(join(tmpdir(), 'wildo-ci-deploy-'));\n createdOutputDirectories.push(outputDir);\n\n generateCiDeployArtifacts(\n {\n env: {\n name: 'production',\n locationType: WildoLocationType.REMOTE,\n } as never,\n credentials: {} as never,\n config: {} as never,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n outputDir,\n applicationBackends: [{\n appName: 'demo-app',\n serviceName: 'demo-app-backend-api',\n bootstrapCredentials: {},\n // Stated even though this fixture asserts topology, not provider fan-out: the target\n // type requires it, and `declaredProviderScope` refuses an omitted value at runtime so\n // an `as never` fixture cannot quietly reintroduce the empty-by-omission bug.\n scopedProviderRefs: ['stripe'],\n }] as never,\n },\n { info: vi.fn() } as never,\n );\n\n expect(PlatformEnvVarsBuilder.buildApplicationBackendEnv).toHaveBeenCalledWith(\n expect.anything(),\n 'demo-app-backend-api',\n expect.anything(),\n expect.anything(),\n expect.anything(),\n 'production',\n // The REMOTE lane's declared provider scope. This call site had none until the parameter\n // became required — so the compose app `.env` would have carried no provider secret at all,\n // in the lane where nothing local is watching.\n declaredProviderScope(['stripe']),\n expect.objectContaining({ deploymentLocationType: WildoLocationType.REMOTE }),\n );\n expect(readFileSync(join(outputDir, 'compose', 'demo-app-backend-api.env'), 'utf8')).toContain('DEPLOYMENT_LOCATION_TYPE=remote');\n });\n\n /**\n * REGRESSION — `formatEnvFile` already quotes + escapes, so a value that arrives PRE-quoted gets\n * escaped a SECOND time and the consumer receives a PEM beginning with a literal `\"`.\n *\n * This was live: the artifact generated on 2026-07-18 at\n * `.wildo-saas/deploy/local/compose/.env.wildo-platform` contained\n * `PLATFORM_APPS_MANAGER_PUBLIC_KEY=\"\\\"-----BEGIN PUBLIC KEY-----\\n…`, and both platform JWT keys\n * in it throw on `createPublicKey`/`createPrivateKey`. Builders emit RAW values now; this pins it.\n */\n it('does not double-escape a multi-line PEM (regression: pre-quoted values produced an unusable `\"\\\\\"\"` prefix)', () => {\n const outputDir = mkdtempSync(join(tmpdir(), 'wildo-ci-deploy-pem-'));\n createdOutputDirectories.push(outputDir);\n\n const RAW_PEM = '-----BEGIN PUBLIC KEY-----\\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE\\n-----END PUBLIC KEY-----\\n';\n vi.mocked(PlatformEnvVarsBuilder.buildApplicationBackendEnv).mockReturnValueOnce({\n SOME_PUBLIC_KEY: RAW_PEM,\n } as never);\n\n generateCiDeployArtifacts(\n {\n env: { name: 'production', locationType: WildoLocationType.REMOTE } as never,\n credentials: {} as never,\n config: {} as never,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n outputDir,\n applicationBackends: [{\n appName: 'demo-app',\n serviceName: 'demo-app-backend-api',\n bootstrapCredentials: {},\n // Stated even though this fixture asserts topology, not provider fan-out: the target\n // type requires it, and `declaredProviderScope` refuses an omitted value at runtime so\n // an `as never` fixture cannot quietly reintroduce the empty-by-omission bug.\n scopedProviderRefs: ['stripe'],\n }] as never,\n },\n { info: vi.fn() } as never,\n );\n\n const written = readFileSync(join(outputDir, 'compose', 'demo-app-backend-api.env'), 'utf8');\n // Escaped exactly ONCE: the value opens with `\"-----BEGIN`, never with `\"\\\"-----BEGIN`.\n expect(written).toContain('SOME_PUBLIC_KEY=\"-----BEGIN PUBLIC KEY-----\\\\n');\n expect(written).not.toContain('\\\\\"-----BEGIN');\n });\n\n /**\n * Security invariant, not a formatting preference.\n *\n * The deploy zone lives inside `.wildo-saas/`, a PARTLY TRACKED tree, and\n * every file rendered into it carries credentials (K8s `Secret` payloads, the\n * platform admin secret, the apps-manager signing key, database URLs with\n * passwords). The framework does not generate an application's root\n * `.gitignore`, so the ONLY protection the framework can guarantee is the\n * guard this generator writes beside the artifacts.\n *\n * Both halves are asserted deliberately:\n * - the guard exists and is emitted for EVERY runtime (this test covers\n * compose; the k8s branch shares the same pre-branch write);\n * - the pattern is a bare `*` with NO `!.gitignore` re-include, so the guard\n * excludes itself too — it is a regenerated artifact, not repo truth.\n *\n * A future refactor that moves the write inside a runtime branch, gates it on\n * `--ci`, or \"helpfully\" adds the re-include fails here rather than silently\n * shipping committable secrets.\n */\n it('writes a self-ignoring gitignore guard into the deploy zone so no rendered secret can be committed', () => {\n const outputDir = mkdtempSync(join(tmpdir(), 'wildo-ci-deploy-guard-'));\n createdOutputDirectories.push(outputDir);\n\n const result = generateCiDeployArtifacts(\n {\n env: { name: 'production', locationType: WildoLocationType.REMOTE } as never,\n credentials: {} as never,\n config: {} as never,\n runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,\n outputDir,\n applicationBackends: [{\n appName: 'demo-app',\n serviceName: 'demo-app-backend-api',\n bootstrapCredentials: {},\n // Stated even though this fixture asserts topology, not provider fan-out: the target\n // type requires it, and `declaredProviderScope` refuses an omitted value at runtime so\n // an `as never` fixture cannot quietly reintroduce the empty-by-omission bug.\n scopedProviderRefs: ['stripe'],\n }] as never,\n },\n { info: vi.fn() } as never,\n );\n\n const guardPath = join(outputDir, '.gitignore');\n expect(result.filesWritten).toContain(guardPath);\n\n const guard = readFileSync(guardPath, 'utf8');\n expect(guard.split('\\n')).toContain('*');\n expect(guard).not.toContain('!.gitignore');\n });\n});\n\n/**\n * #369 — this generator is the ONLY caller that emits application-tier k8s Secrets, so it is the\n * only place the per-runtime provider Secrets can be wired. `infra-writer` and `k8s-bootstrap`\n * pass no application targets at all (each records that at its call site).\n *\n * Pinned because the wiring is invisible when wrong: the Deployment mounts its provider Secret\n * with `optional: true`, so a caller that forgets to pass minions and workers produces manifests\n * that apply cleanly, pods that start, and a runtime that fails at its first provider call — with\n * nothing in the deploy naming the cause.\n */\ndescribe('generateCiDeployArtifacts — per-runtime provider Secrets reach the k8s output (#369)', () => {\n it('emits one provider Secret per declared minion and worker, not just for the backend', () => {\n const outputDir = mkdtempSync(join(tmpdir(), 'wildo-ci-deploy-providers-'));\n createdOutputDirectories.push(outputDir);\n\n generateCiDeployArtifacts(\n {\n env: {\n name: 'production',\n locationType: WildoLocationType.REMOTE,\n kubernetes: { namespace: 'demo-prod' },\n } as never,\n credentials: {\n // The infra section of the k8s emit reads these before it reaches the application\n // tier; only `providerEnv` is what this test is actually about.\n rabbitmq: { adminUsername: 'rmq', adminPassword: 'rmq-pw', erlangCookie: 'cookie' },\n storage: { accessKey: 'minio-access', secretKey: 'minio-secret' },\n postgresql: { adminUser: 'pg', adminPassword: 'pg-pw' },\n mongodb: { rootUser: 'mongo', rootPassword: 'mongo-pw' },\n valkey: { adminUser: 'valkey', adminPassword: 'valkey-pw' },\n providerEnv: { OPENAI_API_KEY: 'sk-openai' },\n } as never,\n config: {\n database: { engine: 'mongodb' },\n infrastructure: {\n storage: { provider: 'minio', useSsl: false, bucket: 'b' },\n postgresql: { database: 'postgres', sslMode: 'disable' },\n },\n } as never,\n runtime: WildoDeploymentRuntime.KUBERNETES,\n outputDir,\n applicationBackends: [{\n appName: 'demo-app',\n serviceName: 'demo-app-backend-api',\n bootstrapCredentials: {},\n scopedProviderRefs: ['stripe'],\n }] as never,\n applicationMinions: [{\n appName: 'demo-app', minionName: 'marketingScrapper', scopedProviderRefs: ['openai'],\n }] as never,\n applicationWorkers: [{\n appName: 'demo-app', workerName: 'myNodeWorker', scopedProviderRefs: ['anthropic'],\n }] as never,\n },\n { info: vi.fn() } as never,\n );\n\n const k8sDir = join(outputDir, 'k8s');\n // Written as files, because that is what CI's `kubectl apply -f k8s/` consumes — asserting the\n // in-memory map would not prove the artifact exists.\n expect(existsSync(join(k8sDir, 'demo-app-minion-marketing-scrapper-providers-secret.yaml'))).toBe(true);\n expect(existsSync(join(k8sDir, 'demo-app-worker-my-node-worker-providers-secret.yaml'))).toBe(true);\n expect(existsSync(join(k8sDir, 'demo-app-providers-secret.yaml'))).toBe(true);\n\n // And each carries ITS OWN scope, so a wiring that passed the same target list three times\n // would still fail here.\n const minionSecret = readFileSync(join(k8sDir, 'demo-app-minion-marketing-scrapper-providers-secret.yaml'), 'utf8');\n expect(minionSecret).toContain('OPENAI_API_KEY');\n expect(minionSecret).not.toContain('ANTHROPIC_API_KEY');\n expect(minionSecret).not.toContain('STRIPE_API_KEY');\n });\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-workflow-generator.service.test.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"ci-workflow-generator.service.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/__tests__/ci-workflow-generator.service.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployment-template-contracts.test.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"deployment-template-contracts.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/__tests__/deployment-template-contracts.test.ts"],"names":[],"mappings":""}
|
|
@@ -61,13 +61,19 @@ describe('deployment template contracts', () => {
|
|
|
61
61
|
* Pins the canonical-sink contract enforced by `k8s-secrets-generator.service.ts`
|
|
62
62
|
* for the framework application deployment template (Phase 8 — now
|
|
63
63
|
* PARAMETERIZED per-app, `{{appName}}` = appSlug):
|
|
64
|
-
* - Per-
|
|
64
|
+
* - Per-RUNTIME env lives in ONE Secret `{{runtimeEnvSecretName}}` (#377) — emit-name ==
|
|
65
65
|
* mount-name (the §5 emit keys on the SAME appSlug; see the
|
|
66
66
|
* `emit-name == {appSlug}-secret mount` contract test in
|
|
67
67
|
* `k8s-secrets-generator.service.test.ts`). The historical bug mounted a
|
|
68
68
|
* hardcoded `wildo-ai-application-secret` that the `${serviceName}-secret`
|
|
69
69
|
* emit never produced → fail-closed boot.
|
|
70
|
-
* - Provider env vars live in
|
|
70
|
+
* - Provider env vars live in this runtime's OWN `{{providersSecretName}}`, `optional: true`.
|
|
71
|
+
* REPLACED the sole shared `providers-secret` (#369): one cluster Secret held the whole
|
|
72
|
+
* `providerEnv` and was `envFrom`-mounted by the backend, every minion AND every worker, so
|
|
73
|
+
* a worker authoring `providers: {}` received every provider key the application had. The
|
|
74
|
+
* name is now resolved by `k8sRuntimeProvidersSecretName` on BOTH sides and threaded in as a
|
|
75
|
+
* template variable — never composed in the template, which is what keeps emit-name ==
|
|
76
|
+
* mount-name a single decision.
|
|
71
77
|
* - The pod is never handed the cluster-wide infra ADMIN SECRETS — i.e. the
|
|
72
78
|
* Mongo/Redis/RabbitMQ/Postgres admin material, which is genuinely minted
|
|
73
79
|
* per-app (Phase 8 S2). ⚠️ QUALIFIED 2026-08-05: this is NOT the same as
|
|
@@ -80,13 +86,22 @@ describe('deployment template contracts', () => {
|
|
|
80
86
|
* assertions below are correct as written; only the blanket phrasing was.
|
|
81
87
|
* the git-clone-lane relic env is gone (Phase 8 R4).
|
|
82
88
|
*/
|
|
83
|
-
it('the K8s app BACKEND deployment template mounts {{
|
|
89
|
+
it('the K8s app BACKEND deployment template mounts {{runtimeEnvSecretName}} + its OWN {{providersSecretName}} { optional: true }, no infra ADMIN SECRETS, no relics', () => {
|
|
84
90
|
const frameworkAppTemplate = readFileSync(join(repoRoot, 'templates', 'infra', 'k8s', 'applications', 'wildo-ai-application', 'backend.deployment.yaml.hbs'), 'utf8');
|
|
85
|
-
// Per-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
//
|
|
89
|
-
expect(frameworkAppTemplate).toMatch(/secretRef
|
|
91
|
+
// Per-runtime env Secret mount — FAIL-CLOSED (no optional): a pod cannot boot without its
|
|
92
|
+
// environment. The name is RESOLVED and threaded in, not composed here as `{{appName}}-secret`
|
|
93
|
+
// (#377), so no template in this lane builds a Secret name any more — the failure this file
|
|
94
|
+
// was written for, from the era when a template hardcoded a name the emit never produced.
|
|
95
|
+
expect(frameworkAppTemplate).toMatch(/envFrom:[\s\S]*?secretRef:[\s\S]*?name: \{\{runtimeEnvSecretName\}\}/);
|
|
96
|
+
expect(frameworkAppTemplate).not.toMatch(/secretRef:\s*\n\s*name: \{\{runtimeEnvSecretName\}\}\s*\n\s*optional: true/);
|
|
97
|
+
expect(frameworkAppTemplate).not.toContain('name: {{appName}}-secret');
|
|
98
|
+
// This runtime's OWN provider Secret — `optional: true` REQUIRED, because a backend that
|
|
99
|
+
// declares no providers emits no Secret and must still start (#369).
|
|
100
|
+
expect(frameworkAppTemplate).toMatch(/secretRef:\s*\n\s*name: \{\{providersSecretName\}\}\s*\n\s*optional: true/);
|
|
101
|
+
// And the shared bag is GONE. Asserted as an absence at the MOUNT line (`name:` followed by
|
|
102
|
+
// the bare literal) rather than anywhere in the file, so the historical note in the comment
|
|
103
|
+
// above this template's envFrom block does not trip it.
|
|
104
|
+
expect(frameworkAppTemplate).not.toMatch(/name: providers-secret$/m);
|
|
90
105
|
// ZERO ConfigMap mounts (single Secret per app).
|
|
91
106
|
expect(frameworkAppTemplate).not.toMatch(/configMapRef:/);
|
|
92
107
|
// S2 — the app pod is NEVER injected cluster-wide infra ADMIN creds. The
|
|
@@ -111,9 +126,10 @@ describe('deployment template contracts', () => {
|
|
|
111
126
|
expect(frontendTemplate).toContain('image: {{imageRegistry}}/{{serviceName}}:{{imageTag}}');
|
|
112
127
|
expect(backendTemplate).toMatch(/name: \{\{serviceName\}\}/);
|
|
113
128
|
expect(frontendTemplate).toMatch(/name: \{\{serviceName\}\}/);
|
|
114
|
-
// The backend mounts
|
|
115
|
-
//
|
|
116
|
-
|
|
129
|
+
// The backend mounts its own RESOLVED env Secret (#377 — the name is threaded in, not
|
|
130
|
+
// composed from `{{appName}}` here); the frontend (static nginx) has NO secret mount at all
|
|
131
|
+
// (config is baked at build time).
|
|
132
|
+
expect(backendTemplate).toMatch(/name: \{\{runtimeEnvSecretName\}\}/);
|
|
117
133
|
expect(frontendTemplate).not.toMatch(/secretRef:/);
|
|
118
134
|
for (const t of [backendTemplate, frontendTemplate]) {
|
|
119
135
|
expect(t).not.toContain('wildo-ai-dev');
|
|
@@ -134,6 +150,20 @@ describe('deployment template contracts', () => {
|
|
|
134
150
|
expect(composeTemplate).toContain('- {{localDataPath}}/mongodb/db:/data/db');
|
|
135
151
|
expect(composeTemplate).toContain('- {{localDataPath}}/mongodb/configdb:/data/configdb');
|
|
136
152
|
expect(composeTemplate).not.toContain('- {{localDataPath}}/mongodb:/data');
|
|
153
|
+
/*
|
|
154
|
+
* mongod runs AS `mongodb`, and that is load-bearing rather than cosmetic.
|
|
155
|
+
*
|
|
156
|
+
* Started as root, the image chowns `/data/db` and gosu's to uid 999 — but on Docker Desktop's
|
|
157
|
+
* gRPC FUSE a bind-mounted file presents as root:root 0600 whatever the host says, so that chown
|
|
158
|
+
* cannot stick and uid 999 cannot reopen its own database. The first start works and every start
|
|
159
|
+
* after it dies with EPERM on `WiredTiger.wt` and fatal assertion 28595, which reads as data
|
|
160
|
+
* corruption and is an ownership mismatch. Naming the user makes `id -u` non-zero, so the image
|
|
161
|
+
* skips both the gosu drop and the ineffective chown.
|
|
162
|
+
*
|
|
163
|
+
* Pinned here because deleting one line silently reintroduces a defect whose symptom points at
|
|
164
|
+
* the database rather than at the compose file.
|
|
165
|
+
*/
|
|
166
|
+
expect(composeTemplate).toContain('user: "mongodb"');
|
|
137
167
|
// Issue #74 — mongot is the second stateful service in the MongoDB lane, and it is the
|
|
138
168
|
// SINGLE-bind shape, not mongod's two-child one: its image declares no `VOLUME` at all, so
|
|
139
169
|
// there is nothing for Docker to shadow. Pinned here so `INFRA_SERVICE_DATA_SUBDIRS` and this
|
|
@@ -144,10 +174,10 @@ describe('deployment template contracts', () => {
|
|
|
144
174
|
expect(composeTemplate).toContain('- {{localDataPath}}/minio:/data');
|
|
145
175
|
expect(composeTemplate).toContain('- {{localDataPath}}/postgresql:/var/lib/postgresql/data');
|
|
146
176
|
expect(composeTemplate).toContain('- {{localDataPath}}/clamav:/var/lib/clamav');
|
|
147
|
-
// Slice 4.1 — the global top-level `volumes:` block is intentionally
|
|
148
|
-
//
|
|
149
|
-
//
|
|
150
|
-
//
|
|
177
|
+
// Slice 4.1 — the global top-level `volumes:` block is intentionally OMITTED. A stray
|
|
178
|
+
// named-volume re-introduction would regress the host-side wipe contract on `wildo local reset`.
|
|
179
|
+
// (Two mongodb volumes existed briefly on 2026-09-09 as the wrong fix for the uid defect above;
|
|
180
|
+
// they are gone.)
|
|
151
181
|
// Note: the template still mentions historical volume names in a
|
|
152
182
|
// comment (47-line block on the mongodb mount); we deliberately match
|
|
153
183
|
// against the structural top-level block instead of the names so that
|