@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":"state-manager.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"state-manager.service.d.ts","sourceRoot":"","sources":["../../../../src/services/context/state-manager.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AASH,qBAAa,YAAY;IACvB,OAAO,CAAC,UAAU,CAAuB;IACzC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA0B;IAE3D;;;;OAIG;gBACS,QAAQ,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC;IAI7C;;OAEG;IACH,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,eAAe;IAOvB;;OAEG;IACH,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAKpC;;OAEG;IACH,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI;IAS9B;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAK5B;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAOzB;;OAEG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,GAAE,MAAoB,GAAG,CAAC,GAAG,SAAS;IAKnE;;OAEG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,GAAE,MAAoB,GAAG,IAAI;CAKrE"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The CI secrets mapping must carry EVERY framework-managed material, and must classify each one
|
|
3
|
+
* the way the schema does.
|
|
4
|
+
*
|
|
5
|
+
* ## The defect this pins
|
|
6
|
+
*
|
|
7
|
+
* `FIXED_MAPPINGS` was a second, hand-kept enumeration of the population
|
|
8
|
+
* `FRAMEWORK_MANAGED_SECRET_MATERIALS` owns, with no mechanical link to it — and it had drifted by
|
|
9
|
+
* three materials:
|
|
10
|
+
*
|
|
11
|
+
* - `platform.crontabsBatchesManager.{privateKey,publicKey}` — the scheduler's P2P signing
|
|
12
|
+
* keypair. Absent ⇒ crontabs signs every SCHEDULED_CRON / MINION_TICK token with a fallback key
|
|
13
|
+
* and every tick dead-letters. This is the SAME degradation the registry itself was created to
|
|
14
|
+
* end; it simply came back one layer out, in the CI reconstruction.
|
|
15
|
+
* - `immudb.stateSigning{PrivateKey,PublicKey}` — the audit store's whole-server-substitution
|
|
16
|
+
* defense. Absent ⇒ immudb runs without `--signingKey` and the client degrades to "pinning OFF".
|
|
17
|
+
* - `mongot.syncSourcePassword` — mongot's SCRAM credential against mongod. Absent ⇒ the search
|
|
18
|
+
* sidecar cannot authenticate.
|
|
19
|
+
*
|
|
20
|
+
* None of them was reconstructable from GitHub Secrets, so a pipeline-built deployment carried all
|
|
21
|
+
* three degradations while a developer machine — which mints from the registry — carried none. That
|
|
22
|
+
* asymmetry is why nobody noticed.
|
|
23
|
+
*
|
|
24
|
+
* These assertions run over the REGISTRY rather than over a list retyped here, so a fourteenth
|
|
25
|
+
* material joins this test the moment it is declared.
|
|
26
|
+
*/
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=ci-secrets-mapping.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ci-secrets-mapping.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/credentials/__tests__/ci-secrets-mapping.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The CI secrets mapping must carry EVERY framework-managed material, and must classify each one
|
|
3
|
+
* the way the schema does.
|
|
4
|
+
*
|
|
5
|
+
* ## The defect this pins
|
|
6
|
+
*
|
|
7
|
+
* `FIXED_MAPPINGS` was a second, hand-kept enumeration of the population
|
|
8
|
+
* `FRAMEWORK_MANAGED_SECRET_MATERIALS` owns, with no mechanical link to it — and it had drifted by
|
|
9
|
+
* three materials:
|
|
10
|
+
*
|
|
11
|
+
* - `platform.crontabsBatchesManager.{privateKey,publicKey}` — the scheduler's P2P signing
|
|
12
|
+
* keypair. Absent ⇒ crontabs signs every SCHEDULED_CRON / MINION_TICK token with a fallback key
|
|
13
|
+
* and every tick dead-letters. This is the SAME degradation the registry itself was created to
|
|
14
|
+
* end; it simply came back one layer out, in the CI reconstruction.
|
|
15
|
+
* - `immudb.stateSigning{PrivateKey,PublicKey}` — the audit store's whole-server-substitution
|
|
16
|
+
* defense. Absent ⇒ immudb runs without `--signingKey` and the client degrades to "pinning OFF".
|
|
17
|
+
* - `mongot.syncSourcePassword` — mongot's SCRAM credential against mongod. Absent ⇒ the search
|
|
18
|
+
* sidecar cannot authenticate.
|
|
19
|
+
*
|
|
20
|
+
* None of them was reconstructable from GitHub Secrets, so a pipeline-built deployment carried all
|
|
21
|
+
* three degradations while a developer machine — which mints from the registry — carried none. That
|
|
22
|
+
* asymmetry is why nobody noticed.
|
|
23
|
+
*
|
|
24
|
+
* These assertions run over the REGISTRY rather than over a list retyped here, so a fourteenth
|
|
25
|
+
* material joins this test the moment it is declared.
|
|
26
|
+
*/
|
|
27
|
+
import { describe, expect, it } from 'vitest';
|
|
28
|
+
import { getRequiredCiSecretEnvVars, reconstructSecretsFromEnv } from '../../../services/credentials/ci-secrets-adapter.service.js';
|
|
29
|
+
import { FRAMEWORK_MANAGED_SECRET_MATERIALS, FrameworkManagedSecretMaterialRef, } from '../../../services/credentials/framework-managed-secrets.js';
|
|
30
|
+
import { PlatformEnvSecretsJson_Schema } from '../../../services/credentials/credentials.schemas.js';
|
|
31
|
+
const PREFIX = 'WILDO_SECRET_';
|
|
32
|
+
/** Every env var the mapping publishes, required and optional together. */
|
|
33
|
+
function allMappedEnvVars() {
|
|
34
|
+
const { required, optional } = getRequiredCiSecretEnvVars();
|
|
35
|
+
return [...required, ...optional];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The 16 framework-managed suffixes the hand-written table published before the derivation landed.
|
|
39
|
+
* Pinned VERBATIM because renaming any of them silently breaks every existing pipeline: the GitHub
|
|
40
|
+
* Secret keeps its old name and the reconstruction stops finding it. This is the assertion that
|
|
41
|
+
* makes `envVarSuffixForSecretPath` a derivation of the status quo rather than a rename.
|
|
42
|
+
*/
|
|
43
|
+
const HISTORICAL_FRAMEWORK_MANAGED_SUFFIXES = [
|
|
44
|
+
'MONGODB_ROOT_USER',
|
|
45
|
+
'MONGODB_ROOT_PASSWORD',
|
|
46
|
+
'VALKEY_ADMIN_USER',
|
|
47
|
+
'VALKEY_ADMIN_PASSWORD',
|
|
48
|
+
'POSTGRESQL_ADMIN_USER',
|
|
49
|
+
'POSTGRESQL_ADMIN_PASSWORD',
|
|
50
|
+
'RABBITMQ_ADMIN_USERNAME',
|
|
51
|
+
'RABBITMQ_ADMIN_PASSWORD',
|
|
52
|
+
'RABBITMQ_ERLANG_COOKIE',
|
|
53
|
+
'STORAGE_ACCESS_KEY',
|
|
54
|
+
'STORAGE_SECRET_KEY',
|
|
55
|
+
'PLATFORM_PRIMARY_SECRET',
|
|
56
|
+
'PLATFORM_ADMIN_SECRET',
|
|
57
|
+
'PLATFORM_APPS_MANAGER_PRIVATE_KEY',
|
|
58
|
+
'PLATFORM_APPS_MANAGER_PUBLIC_KEY',
|
|
59
|
+
'ADMIN_PASSWORD',
|
|
60
|
+
];
|
|
61
|
+
/** The operator-typed half, likewise pinned so the hand-listed remainder cannot quietly shrink. */
|
|
62
|
+
const HISTORICAL_OPERATOR_TYPED_SUFFIXES = [
|
|
63
|
+
'ADMIN_EMAIL',
|
|
64
|
+
'ADMIN_FIRST_NAME',
|
|
65
|
+
'ADMIN_LAST_NAME',
|
|
66
|
+
'ATLAS_API_PUBLIC_KEY',
|
|
67
|
+
'ATLAS_API_PRIVATE_KEY',
|
|
68
|
+
'GITHUB_ORG_URL',
|
|
69
|
+
'GITHUB_ADMIN_USER',
|
|
70
|
+
'GITHUB_ADMIN_TOKEN',
|
|
71
|
+
];
|
|
72
|
+
describe('CI secrets mapping', () => {
|
|
73
|
+
it('publishes an env var for every key of every declared framework-managed material', () => {
|
|
74
|
+
const mapped = new Set(allMappedEnvVars());
|
|
75
|
+
for (const material of FRAMEWORK_MANAGED_SECRET_MATERIALS) {
|
|
76
|
+
for (const key of [...material.identityKeys, ...material.secretKeys]) {
|
|
77
|
+
// The suffix is derived from the path, so this asserts reachability rather than spelling —
|
|
78
|
+
// the spelling itself is pinned verbatim by the historical-name test below.
|
|
79
|
+
const suffix = key.split('.').map((s) => s.replace(/([a-z0-9])([A-Z])/g, '$1_$2').toUpperCase()).join('_');
|
|
80
|
+
expect(mapped.has(`${PREFIX}${suffix}`), `material '${material.ref}' declares '${key}' but CI cannot reconstruct it`).toBe(true);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
it('carries the three materials the hand-written mapping had drifted past', () => {
|
|
85
|
+
const mapped = new Set(allMappedEnvVars());
|
|
86
|
+
// Named individually as well as covered by the loop above: each has its own shipped
|
|
87
|
+
// degradation, and a reader of a failure should see which one came back.
|
|
88
|
+
expect(mapped.has(`${PREFIX}PLATFORM_CRONTABS_BATCHES_MANAGER_PRIVATE_KEY`)).toBe(true);
|
|
89
|
+
expect(mapped.has(`${PREFIX}PLATFORM_CRONTABS_BATCHES_MANAGER_PUBLIC_KEY`)).toBe(true);
|
|
90
|
+
expect(mapped.has(`${PREFIX}IMMUDB_STATE_SIGNING_PRIVATE_KEY`)).toBe(true);
|
|
91
|
+
expect(mapped.has(`${PREFIX}IMMUDB_STATE_SIGNING_PUBLIC_KEY`)).toBe(true);
|
|
92
|
+
expect(mapped.has(`${PREFIX}MONGOT_SYNC_SOURCE_PASSWORD`)).toBe(true);
|
|
93
|
+
// …and that each is genuinely reachable through the registry, not a literal that happens to
|
|
94
|
+
// match. Removing the material must break this test, not just its own file's.
|
|
95
|
+
const declaredRefs = FRAMEWORK_MANAGED_SECRET_MATERIALS.map((m) => m.ref);
|
|
96
|
+
expect(declaredRefs).toContain(FrameworkManagedSecretMaterialRef.PLATFORM_CRONTABS_BATCHES_MANAGER_SIGNING_KEYPAIR);
|
|
97
|
+
expect(declaredRefs).toContain(FrameworkManagedSecretMaterialRef.IMMUDB_STATE_SIGNING_KEYPAIR);
|
|
98
|
+
expect(declaredRefs).toContain(FrameworkManagedSecretMaterialRef.MONGOT_SYNC_SOURCE_CREDENTIAL);
|
|
99
|
+
});
|
|
100
|
+
it('keeps every historical env var name byte-identical', () => {
|
|
101
|
+
const mapped = new Set(allMappedEnvVars());
|
|
102
|
+
for (const suffix of [...HISTORICAL_FRAMEWORK_MANAGED_SUFFIXES, ...HISTORICAL_OPERATOR_TYPED_SUFFIXES]) {
|
|
103
|
+
expect(mapped.has(`${PREFIX}${suffix}`), `'${PREFIX}${suffix}' disappeared — every pipeline holding that GitHub Secret silently stops supplying it`).toBe(true);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
it('classifies required/optional exactly as the schema does', () => {
|
|
107
|
+
const { required, optional } = getRequiredCiSecretEnvVars();
|
|
108
|
+
// The nine the retired hand-written OPTIONAL_SUFFIXES set held, unchanged.
|
|
109
|
+
for (const suffix of [
|
|
110
|
+
'MONGODB_ROOT_USER', 'MONGODB_ROOT_PASSWORD',
|
|
111
|
+
'VALKEY_ADMIN_USER', 'VALKEY_ADMIN_PASSWORD',
|
|
112
|
+
'ATLAS_API_PUBLIC_KEY', 'ATLAS_API_PRIVATE_KEY',
|
|
113
|
+
'GITHUB_ORG_URL', 'GITHUB_ADMIN_USER', 'GITHUB_ADMIN_TOKEN',
|
|
114
|
+
]) {
|
|
115
|
+
expect(optional, `'${suffix}' must stay optional`).toContain(`${PREFIX}${suffix}`);
|
|
116
|
+
}
|
|
117
|
+
// The three newly mapped materials sit on `.optional()` schema branches, so adding them cannot
|
|
118
|
+
// fail a pipeline that is green today — the deciding fact for shipping this at all.
|
|
119
|
+
for (const suffix of [
|
|
120
|
+
'PLATFORM_CRONTABS_BATCHES_MANAGER_PRIVATE_KEY', 'PLATFORM_CRONTABS_BATCHES_MANAGER_PUBLIC_KEY',
|
|
121
|
+
'IMMUDB_STATE_SIGNING_PRIVATE_KEY', 'IMMUDB_STATE_SIGNING_PUBLIC_KEY',
|
|
122
|
+
'MONGOT_SYNC_SOURCE_PASSWORD',
|
|
123
|
+
]) {
|
|
124
|
+
expect(optional, `'${suffix}' must be optional or it breaks existing pipelines`).toContain(`${PREFIX}${suffix}`);
|
|
125
|
+
}
|
|
126
|
+
for (const suffix of ['POSTGRESQL_ADMIN_USER', 'RABBITMQ_ERLANG_COOKIE', 'STORAGE_SECRET_KEY',
|
|
127
|
+
'PLATFORM_PRIMARY_SECRET', 'PLATFORM_APPS_MANAGER_PRIVATE_KEY', 'ADMIN_EMAIL', 'ADMIN_PASSWORD']) {
|
|
128
|
+
expect(required, `'${suffix}' must stay required`).toContain(`${PREFIX}${suffix}`);
|
|
129
|
+
}
|
|
130
|
+
// Every published var is on exactly one list.
|
|
131
|
+
expect(new Set([...required, ...optional]).size).toBe(required.length + optional.length);
|
|
132
|
+
});
|
|
133
|
+
it('round-trips the newly mapped materials through a CI-shaped environment', () => {
|
|
134
|
+
// The mapping is only as good as what `reconstructSecretsFromEnv` actually reads back, so drive
|
|
135
|
+
// the real reconstruction rather than inspecting the table. PEM material also exercises the
|
|
136
|
+
// `\n`-unescaping path, which GitHub Secrets require and which keys named `*_PRIVATE_KEY` /
|
|
137
|
+
// `*_PUBLIC_KEY` get for free — one more reason the derived suffixes had to keep that shape.
|
|
138
|
+
const env = {
|
|
139
|
+
[`${PREFIX}POSTGRESQL_ADMIN_USER`]: 'wildo_admin',
|
|
140
|
+
[`${PREFIX}POSTGRESQL_ADMIN_PASSWORD`]: 'pg-pass',
|
|
141
|
+
[`${PREFIX}RABBITMQ_ADMIN_USERNAME`]: 'wildo',
|
|
142
|
+
[`${PREFIX}RABBITMQ_ADMIN_PASSWORD`]: 'mq-pass',
|
|
143
|
+
[`${PREFIX}RABBITMQ_ERLANG_COOKIE`]: 'cookie',
|
|
144
|
+
[`${PREFIX}STORAGE_ACCESS_KEY`]: 'wildo',
|
|
145
|
+
[`${PREFIX}STORAGE_SECRET_KEY`]: 'storage-pass',
|
|
146
|
+
[`${PREFIX}PLATFORM_PRIMARY_SECRET`]: 'primary',
|
|
147
|
+
[`${PREFIX}PLATFORM_ADMIN_SECRET`]: 'admin-secret',
|
|
148
|
+
[`${PREFIX}PLATFORM_APPS_MANAGER_PRIVATE_KEY`]: '-----BEGIN EC PRIVATE KEY-----\\nAM\\n-----END EC PRIVATE KEY-----',
|
|
149
|
+
[`${PREFIX}PLATFORM_APPS_MANAGER_PUBLIC_KEY`]: '-----BEGIN PUBLIC KEY-----\\nAM\\n-----END PUBLIC KEY-----',
|
|
150
|
+
[`${PREFIX}ADMIN_EMAIL`]: 'admin@example.com',
|
|
151
|
+
[`${PREFIX}ADMIN_PASSWORD`]: 'admin-pass',
|
|
152
|
+
[`${PREFIX}ADMIN_FIRST_NAME`]: 'Ada',
|
|
153
|
+
[`${PREFIX}ADMIN_LAST_NAME`]: 'Lovelace',
|
|
154
|
+
// The three that could not be reconstructed before.
|
|
155
|
+
[`${PREFIX}PLATFORM_CRONTABS_BATCHES_MANAGER_PRIVATE_KEY`]: '-----BEGIN EC PRIVATE KEY-----\\nCR\\n-----END EC PRIVATE KEY-----',
|
|
156
|
+
[`${PREFIX}PLATFORM_CRONTABS_BATCHES_MANAGER_PUBLIC_KEY`]: '-----BEGIN PUBLIC KEY-----\\nCR\\n-----END PUBLIC KEY-----',
|
|
157
|
+
[`${PREFIX}IMMUDB_STATE_SIGNING_PRIVATE_KEY`]: '-----BEGIN EC PRIVATE KEY-----\\nIM\\n-----END EC PRIVATE KEY-----',
|
|
158
|
+
[`${PREFIX}IMMUDB_STATE_SIGNING_PUBLIC_KEY`]: '-----BEGIN PUBLIC KEY-----\\nIM\\n-----END PUBLIC KEY-----',
|
|
159
|
+
[`${PREFIX}MONGOT_SYNC_SOURCE_PASSWORD`]: 'mongot-pass',
|
|
160
|
+
};
|
|
161
|
+
const secrets = reconstructSecretsFromEnv(env);
|
|
162
|
+
expect(secrets.platform.crontabsBatchesManager?.privateKey).toContain('\nCR\n');
|
|
163
|
+
expect(secrets.platform.crontabsBatchesManager?.publicKey).toContain('\nCR\n');
|
|
164
|
+
expect(secrets.immudb?.stateSigningPrivateKey).toContain('\nIM\n');
|
|
165
|
+
expect(secrets.immudb?.stateSigningPublicKey).toContain('\nIM\n');
|
|
166
|
+
expect(secrets.mongot?.syncSourcePassword).toBe('mongot-pass');
|
|
167
|
+
// And the whole thing is still a valid secrets.json — the reconstruction parses, so the derived
|
|
168
|
+
// dot-paths address real schema locations rather than inventing branches.
|
|
169
|
+
expect(() => PlatformEnvSecretsJson_Schema.parse(secrets)).not.toThrow();
|
|
170
|
+
});
|
|
171
|
+
it('reconstructs an environment that carries none of the optional material', () => {
|
|
172
|
+
// The backwards-compatibility half: a pipeline whose GitHub Secrets predate the three additions
|
|
173
|
+
// still produces a parseable secrets.json. If this ever reddens, something was classified
|
|
174
|
+
// required that must not be.
|
|
175
|
+
const secrets = reconstructSecretsFromEnv({
|
|
176
|
+
[`${PREFIX}POSTGRESQL_ADMIN_USER`]: 'wildo_admin',
|
|
177
|
+
[`${PREFIX}POSTGRESQL_ADMIN_PASSWORD`]: 'pg-pass',
|
|
178
|
+
[`${PREFIX}RABBITMQ_ADMIN_USERNAME`]: 'wildo',
|
|
179
|
+
[`${PREFIX}RABBITMQ_ADMIN_PASSWORD`]: 'mq-pass',
|
|
180
|
+
[`${PREFIX}RABBITMQ_ERLANG_COOKIE`]: 'cookie',
|
|
181
|
+
[`${PREFIX}STORAGE_ACCESS_KEY`]: 'wildo',
|
|
182
|
+
[`${PREFIX}STORAGE_SECRET_KEY`]: 'storage-pass',
|
|
183
|
+
[`${PREFIX}PLATFORM_PRIMARY_SECRET`]: 'primary',
|
|
184
|
+
[`${PREFIX}PLATFORM_ADMIN_SECRET`]: 'admin-secret',
|
|
185
|
+
[`${PREFIX}PLATFORM_APPS_MANAGER_PRIVATE_KEY`]: 'priv',
|
|
186
|
+
[`${PREFIX}PLATFORM_APPS_MANAGER_PUBLIC_KEY`]: 'pub',
|
|
187
|
+
[`${PREFIX}ADMIN_EMAIL`]: 'admin@example.com',
|
|
188
|
+
[`${PREFIX}ADMIN_PASSWORD`]: 'admin-pass',
|
|
189
|
+
[`${PREFIX}ADMIN_FIRST_NAME`]: 'Ada',
|
|
190
|
+
[`${PREFIX}ADMIN_LAST_NAME`]: 'Lovelace',
|
|
191
|
+
});
|
|
192
|
+
expect(secrets.platform.crontabsBatchesManager).toBeUndefined();
|
|
193
|
+
expect(secrets.immudb).toBeUndefined();
|
|
194
|
+
expect(secrets.mongot).toBeUndefined();
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
//# sourceMappingURL=ci-secrets-mapping.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ci-secrets-mapping.test.js","sourceRoot":"","sources":["../../../../../src/services/credentials/__tests__/ci-secrets-mapping.test.ts"],"names":[],"mappings":"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","sourcesContent":["/**\n * The CI secrets mapping must carry EVERY framework-managed material, and must classify each one\n * the way the schema does.\n *\n * ## The defect this pins\n *\n * `FIXED_MAPPINGS` was a second, hand-kept enumeration of the population\n * `FRAMEWORK_MANAGED_SECRET_MATERIALS` owns, with no mechanical link to it — and it had drifted by\n * three materials:\n *\n * - `platform.crontabsBatchesManager.{privateKey,publicKey}` — the scheduler's P2P signing\n * keypair. Absent ⇒ crontabs signs every SCHEDULED_CRON / MINION_TICK token with a fallback key\n * and every tick dead-letters. This is the SAME degradation the registry itself was created to\n * end; it simply came back one layer out, in the CI reconstruction.\n * - `immudb.stateSigning{PrivateKey,PublicKey}` — the audit store's whole-server-substitution\n * defense. Absent ⇒ immudb runs without `--signingKey` and the client degrades to \"pinning OFF\".\n * - `mongot.syncSourcePassword` — mongot's SCRAM credential against mongod. Absent ⇒ the search\n * sidecar cannot authenticate.\n *\n * None of them was reconstructable from GitHub Secrets, so a pipeline-built deployment carried all\n * three degradations while a developer machine — which mints from the registry — carried none. That\n * asymmetry is why nobody noticed.\n *\n * These assertions run over the REGISTRY rather than over a list retyped here, so a fourteenth\n * material joins this test the moment it is declared.\n */\n\nimport { describe, expect, it } from 'vitest';\n\nimport { getRequiredCiSecretEnvVars, reconstructSecretsFromEnv } from '~wildo-cli/services/credentials/ci-secrets-adapter.service';\nimport {\n FRAMEWORK_MANAGED_SECRET_MATERIALS,\n FrameworkManagedSecretMaterialRef,\n} from '~wildo-cli/services/credentials/framework-managed-secrets';\nimport { PlatformEnvSecretsJson_Schema } from '~wildo-cli/services/credentials/credentials.schemas';\n\nconst PREFIX = 'WILDO_SECRET_';\n\n/** Every env var the mapping publishes, required and optional together. */\nfunction allMappedEnvVars(): string[] {\n const { required, optional } = getRequiredCiSecretEnvVars();\n return [...required, ...optional];\n}\n\n/**\n * The 16 framework-managed suffixes the hand-written table published before the derivation landed.\n * Pinned VERBATIM because renaming any of them silently breaks every existing pipeline: the GitHub\n * Secret keeps its old name and the reconstruction stops finding it. This is the assertion that\n * makes `envVarSuffixForSecretPath` a derivation of the status quo rather than a rename.\n */\nconst HISTORICAL_FRAMEWORK_MANAGED_SUFFIXES = [\n 'MONGODB_ROOT_USER',\n 'MONGODB_ROOT_PASSWORD',\n 'VALKEY_ADMIN_USER',\n 'VALKEY_ADMIN_PASSWORD',\n 'POSTGRESQL_ADMIN_USER',\n 'POSTGRESQL_ADMIN_PASSWORD',\n 'RABBITMQ_ADMIN_USERNAME',\n 'RABBITMQ_ADMIN_PASSWORD',\n 'RABBITMQ_ERLANG_COOKIE',\n 'STORAGE_ACCESS_KEY',\n 'STORAGE_SECRET_KEY',\n 'PLATFORM_PRIMARY_SECRET',\n 'PLATFORM_ADMIN_SECRET',\n 'PLATFORM_APPS_MANAGER_PRIVATE_KEY',\n 'PLATFORM_APPS_MANAGER_PUBLIC_KEY',\n 'ADMIN_PASSWORD',\n] as const;\n\n/** The operator-typed half, likewise pinned so the hand-listed remainder cannot quietly shrink. */\nconst HISTORICAL_OPERATOR_TYPED_SUFFIXES = [\n 'ADMIN_EMAIL',\n 'ADMIN_FIRST_NAME',\n 'ADMIN_LAST_NAME',\n 'ATLAS_API_PUBLIC_KEY',\n 'ATLAS_API_PRIVATE_KEY',\n 'GITHUB_ORG_URL',\n 'GITHUB_ADMIN_USER',\n 'GITHUB_ADMIN_TOKEN',\n] as const;\n\ndescribe('CI secrets mapping', () => {\n it('publishes an env var for every key of every declared framework-managed material', () => {\n const mapped = new Set(allMappedEnvVars());\n\n for (const material of FRAMEWORK_MANAGED_SECRET_MATERIALS) {\n for (const key of [...material.identityKeys, ...material.secretKeys]) {\n // The suffix is derived from the path, so this asserts reachability rather than spelling —\n // the spelling itself is pinned verbatim by the historical-name test below.\n const suffix = key.split('.').map((s) => s.replace(/([a-z0-9])([A-Z])/g, '$1_$2').toUpperCase()).join('_');\n expect(\n mapped.has(`${PREFIX}${suffix}`),\n `material '${material.ref}' declares '${key}' but CI cannot reconstruct it`,\n ).toBe(true);\n }\n }\n });\n\n it('carries the three materials the hand-written mapping had drifted past', () => {\n const mapped = new Set(allMappedEnvVars());\n\n // Named individually as well as covered by the loop above: each has its own shipped\n // degradation, and a reader of a failure should see which one came back.\n expect(mapped.has(`${PREFIX}PLATFORM_CRONTABS_BATCHES_MANAGER_PRIVATE_KEY`)).toBe(true);\n expect(mapped.has(`${PREFIX}PLATFORM_CRONTABS_BATCHES_MANAGER_PUBLIC_KEY`)).toBe(true);\n expect(mapped.has(`${PREFIX}IMMUDB_STATE_SIGNING_PRIVATE_KEY`)).toBe(true);\n expect(mapped.has(`${PREFIX}IMMUDB_STATE_SIGNING_PUBLIC_KEY`)).toBe(true);\n expect(mapped.has(`${PREFIX}MONGOT_SYNC_SOURCE_PASSWORD`)).toBe(true);\n\n // …and that each is genuinely reachable through the registry, not a literal that happens to\n // match. Removing the material must break this test, not just its own file's.\n const declaredRefs = FRAMEWORK_MANAGED_SECRET_MATERIALS.map((m) => m.ref);\n expect(declaredRefs).toContain(FrameworkManagedSecretMaterialRef.PLATFORM_CRONTABS_BATCHES_MANAGER_SIGNING_KEYPAIR);\n expect(declaredRefs).toContain(FrameworkManagedSecretMaterialRef.IMMUDB_STATE_SIGNING_KEYPAIR);\n expect(declaredRefs).toContain(FrameworkManagedSecretMaterialRef.MONGOT_SYNC_SOURCE_CREDENTIAL);\n });\n\n it('keeps every historical env var name byte-identical', () => {\n const mapped = new Set(allMappedEnvVars());\n for (const suffix of [...HISTORICAL_FRAMEWORK_MANAGED_SUFFIXES, ...HISTORICAL_OPERATOR_TYPED_SUFFIXES]) {\n expect(\n mapped.has(`${PREFIX}${suffix}`),\n `'${PREFIX}${suffix}' disappeared — every pipeline holding that GitHub Secret silently stops supplying it`,\n ).toBe(true);\n }\n });\n\n it('classifies required/optional exactly as the schema does', () => {\n const { required, optional } = getRequiredCiSecretEnvVars();\n\n // The nine the retired hand-written OPTIONAL_SUFFIXES set held, unchanged.\n for (const suffix of [\n 'MONGODB_ROOT_USER', 'MONGODB_ROOT_PASSWORD',\n 'VALKEY_ADMIN_USER', 'VALKEY_ADMIN_PASSWORD',\n 'ATLAS_API_PUBLIC_KEY', 'ATLAS_API_PRIVATE_KEY',\n 'GITHUB_ORG_URL', 'GITHUB_ADMIN_USER', 'GITHUB_ADMIN_TOKEN',\n ]) {\n expect(optional, `'${suffix}' must stay optional`).toContain(`${PREFIX}${suffix}`);\n }\n\n // The three newly mapped materials sit on `.optional()` schema branches, so adding them cannot\n // fail a pipeline that is green today — the deciding fact for shipping this at all.\n for (const suffix of [\n 'PLATFORM_CRONTABS_BATCHES_MANAGER_PRIVATE_KEY', 'PLATFORM_CRONTABS_BATCHES_MANAGER_PUBLIC_KEY',\n 'IMMUDB_STATE_SIGNING_PRIVATE_KEY', 'IMMUDB_STATE_SIGNING_PUBLIC_KEY',\n 'MONGOT_SYNC_SOURCE_PASSWORD',\n ]) {\n expect(optional, `'${suffix}' must be optional or it breaks existing pipelines`).toContain(`${PREFIX}${suffix}`);\n }\n\n for (const suffix of ['POSTGRESQL_ADMIN_USER', 'RABBITMQ_ERLANG_COOKIE', 'STORAGE_SECRET_KEY',\n 'PLATFORM_PRIMARY_SECRET', 'PLATFORM_APPS_MANAGER_PRIVATE_KEY', 'ADMIN_EMAIL', 'ADMIN_PASSWORD']) {\n expect(required, `'${suffix}' must stay required`).toContain(`${PREFIX}${suffix}`);\n }\n\n // Every published var is on exactly one list.\n expect(new Set([...required, ...optional]).size).toBe(required.length + optional.length);\n });\n\n it('round-trips the newly mapped materials through a CI-shaped environment', () => {\n // The mapping is only as good as what `reconstructSecretsFromEnv` actually reads back, so drive\n // the real reconstruction rather than inspecting the table. PEM material also exercises the\n // `\\n`-unescaping path, which GitHub Secrets require and which keys named `*_PRIVATE_KEY` /\n // `*_PUBLIC_KEY` get for free — one more reason the derived suffixes had to keep that shape.\n const env: Record<string, string> = {\n [`${PREFIX}POSTGRESQL_ADMIN_USER`]: 'wildo_admin',\n [`${PREFIX}POSTGRESQL_ADMIN_PASSWORD`]: 'pg-pass',\n [`${PREFIX}RABBITMQ_ADMIN_USERNAME`]: 'wildo',\n [`${PREFIX}RABBITMQ_ADMIN_PASSWORD`]: 'mq-pass',\n [`${PREFIX}RABBITMQ_ERLANG_COOKIE`]: 'cookie',\n [`${PREFIX}STORAGE_ACCESS_KEY`]: 'wildo',\n [`${PREFIX}STORAGE_SECRET_KEY`]: 'storage-pass',\n [`${PREFIX}PLATFORM_PRIMARY_SECRET`]: 'primary',\n [`${PREFIX}PLATFORM_ADMIN_SECRET`]: 'admin-secret',\n [`${PREFIX}PLATFORM_APPS_MANAGER_PRIVATE_KEY`]: '-----BEGIN EC PRIVATE KEY-----\\\\nAM\\\\n-----END EC PRIVATE KEY-----',\n [`${PREFIX}PLATFORM_APPS_MANAGER_PUBLIC_KEY`]: '-----BEGIN PUBLIC KEY-----\\\\nAM\\\\n-----END PUBLIC KEY-----',\n [`${PREFIX}ADMIN_EMAIL`]: 'admin@example.com',\n [`${PREFIX}ADMIN_PASSWORD`]: 'admin-pass',\n [`${PREFIX}ADMIN_FIRST_NAME`]: 'Ada',\n [`${PREFIX}ADMIN_LAST_NAME`]: 'Lovelace',\n // The three that could not be reconstructed before.\n [`${PREFIX}PLATFORM_CRONTABS_BATCHES_MANAGER_PRIVATE_KEY`]: '-----BEGIN EC PRIVATE KEY-----\\\\nCR\\\\n-----END EC PRIVATE KEY-----',\n [`${PREFIX}PLATFORM_CRONTABS_BATCHES_MANAGER_PUBLIC_KEY`]: '-----BEGIN PUBLIC KEY-----\\\\nCR\\\\n-----END PUBLIC KEY-----',\n [`${PREFIX}IMMUDB_STATE_SIGNING_PRIVATE_KEY`]: '-----BEGIN EC PRIVATE KEY-----\\\\nIM\\\\n-----END EC PRIVATE KEY-----',\n [`${PREFIX}IMMUDB_STATE_SIGNING_PUBLIC_KEY`]: '-----BEGIN PUBLIC KEY-----\\\\nIM\\\\n-----END PUBLIC KEY-----',\n [`${PREFIX}MONGOT_SYNC_SOURCE_PASSWORD`]: 'mongot-pass',\n };\n\n const secrets = reconstructSecretsFromEnv(env);\n\n expect(secrets.platform.crontabsBatchesManager?.privateKey).toContain('\\nCR\\n');\n expect(secrets.platform.crontabsBatchesManager?.publicKey).toContain('\\nCR\\n');\n expect(secrets.immudb?.stateSigningPrivateKey).toContain('\\nIM\\n');\n expect(secrets.immudb?.stateSigningPublicKey).toContain('\\nIM\\n');\n expect(secrets.mongot?.syncSourcePassword).toBe('mongot-pass');\n\n // And the whole thing is still a valid secrets.json — the reconstruction parses, so the derived\n // dot-paths address real schema locations rather than inventing branches.\n expect(() => PlatformEnvSecretsJson_Schema.parse(secrets)).not.toThrow();\n });\n\n it('reconstructs an environment that carries none of the optional material', () => {\n // The backwards-compatibility half: a pipeline whose GitHub Secrets predate the three additions\n // still produces a parseable secrets.json. If this ever reddens, something was classified\n // required that must not be.\n const secrets = reconstructSecretsFromEnv({\n [`${PREFIX}POSTGRESQL_ADMIN_USER`]: 'wildo_admin',\n [`${PREFIX}POSTGRESQL_ADMIN_PASSWORD`]: 'pg-pass',\n [`${PREFIX}RABBITMQ_ADMIN_USERNAME`]: 'wildo',\n [`${PREFIX}RABBITMQ_ADMIN_PASSWORD`]: 'mq-pass',\n [`${PREFIX}RABBITMQ_ERLANG_COOKIE`]: 'cookie',\n [`${PREFIX}STORAGE_ACCESS_KEY`]: 'wildo',\n [`${PREFIX}STORAGE_SECRET_KEY`]: 'storage-pass',\n [`${PREFIX}PLATFORM_PRIMARY_SECRET`]: 'primary',\n [`${PREFIX}PLATFORM_ADMIN_SECRET`]: 'admin-secret',\n [`${PREFIX}PLATFORM_APPS_MANAGER_PRIVATE_KEY`]: 'priv',\n [`${PREFIX}PLATFORM_APPS_MANAGER_PUBLIC_KEY`]: 'pub',\n [`${PREFIX}ADMIN_EMAIL`]: 'admin@example.com',\n [`${PREFIX}ADMIN_PASSWORD`]: 'admin-pass',\n [`${PREFIX}ADMIN_FIRST_NAME`]: 'Ada',\n [`${PREFIX}ADMIN_LAST_NAME`]: 'Lovelace',\n });\n\n expect(secrets.platform.crontabsBatchesManager).toBeUndefined();\n expect(secrets.immudb).toBeUndefined();\n expect(secrets.mongot).toBeUndefined();\n });\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composed-provider-secrets.guard.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/credentials/__tests__/composed-provider-secrets.guard.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The S2b guard (#329): a PACKAGE-shipped provider's secret is classified, prompted for, and
|
|
3
|
+
* confined to the runtimes that declare it.
|
|
4
|
+
*
|
|
5
|
+
* ## What this file is defending, and why a passing suite hid it
|
|
6
|
+
*
|
|
7
|
+
* Until #329 every secrets path resolved providers through `EngineBackendProviderRegistry`, a map
|
|
8
|
+
* that can only ever hold the engine's own modules. That was invisible while every provider was
|
|
9
|
+
* engine-shipped — and it stayed invisible after `providers/slack` (#341) shipped the first
|
|
10
|
+
* package-shipped provider, because nothing in the CLI could even NAME such a provider, so no
|
|
11
|
+
* test could fail. The regression is silent in both directions:
|
|
12
|
+
*
|
|
13
|
+
* - the key is attributable to no provider, so it is not classified sensitive (a Kubernetes
|
|
14
|
+
* `ConfigMap` rather than a `Secret`);
|
|
15
|
+
* - the confinement filter, by its own documented trade, KEPT what it could not attribute as
|
|
16
|
+
* "configuration", so the key was copied into every worker and minion environment — which is
|
|
17
|
+
* exactly what LLM-driven minion code can read.
|
|
18
|
+
*
|
|
19
|
+
* Every pin below is written to redden when the composed catalogue is reverted to the engine
|
|
20
|
+
* registry. The planted provider is synthetic on purpose: a guard that imported a real provider
|
|
21
|
+
* package would be testing #330's discovery walk — which is what registers a contribution — rather
|
|
22
|
+
* than this slice's derivation, and would move with that package's contents. The fixture is kept
|
|
23
|
+
* honest instead by parsing it through the real wire schema (first pin below).
|
|
24
|
+
*/
|
|
25
|
+
import { afterEach, describe, expect, it, vi } from 'vitest';
|
|
26
|
+
import { ProviderCompanionContributionSchema, ProviderOriginKind, ProviderTier, RuntimeEnvironment, } from '@wildo-ai/saas-models';
|
|
27
|
+
import { BackingServiceSource, DatabaseEngine, WildoDeploymentRuntime, WildoLocationType, } from '@wildo-ai/platform-config-lib';
|
|
28
|
+
import { registerDiscoveredProviderContributions, resetDiscoveredProviderContributions, getComposedProviderEntry, } from '../../../services/credentials/composed-provider-catalogue.js';
|
|
29
|
+
import { declaredProviderScope, getProviderApiKey, getProviderSelectionCatalog, getProviderSensitiveEnvKeys, platformTierAllProvidersScope, ProviderApiKeyRefusal, PROVIDER_SENSITIVE_ENV_KEYS, } from '../../../services/credentials/provider-env-vars.utils.js';
|
|
30
|
+
import { SENSITIVE_ENV_KEYS } from '../../../services/credentials/credentials.schemas.js';
|
|
31
|
+
import { PlatformEnvVarsBuilder } from '../../../services/environment/env-vars-builder.service.js';
|
|
32
|
+
// ---------------------------------------------------------------------------
|
|
33
|
+
// The planted package-shipped provider
|
|
34
|
+
// ---------------------------------------------------------------------------
|
|
35
|
+
const PLANTED_REF = 'acme-widgets';
|
|
36
|
+
const PLANTED_KEY = 'ACME_WIDGETS_API_KEY';
|
|
37
|
+
const PLANTED_REGION_KEY = 'ACME_WIDGETS_REGION';
|
|
38
|
+
/**
|
|
39
|
+
* Exactly the record a provider package's `./companion` export ships: values-free, no runtime
|
|
40
|
+
* module, no engine registration. Two secrets — one required credential and one optional piece of
|
|
41
|
+
* provider configuration — because a provider that puts its host or region in its own contract is
|
|
42
|
+
* the normal case here (immudb and odoo both do), and the confinement must carry both.
|
|
43
|
+
*/
|
|
44
|
+
const plantedContribution = {
|
|
45
|
+
ref: PLANTED_REF,
|
|
46
|
+
identity: {
|
|
47
|
+
packageName: '@wildo-ai/provider-acme-widgets',
|
|
48
|
+
tier: ProviderTier.CATALOGUE,
|
|
49
|
+
vendor: 'acme',
|
|
50
|
+
origin: { kind: ProviderOriginKind.APPLICATION },
|
|
51
|
+
},
|
|
52
|
+
runtimeImportPath: '@wildo-ai/provider-acme-widgets/backend',
|
|
53
|
+
runtimeTargets: [{ kind: 'backend' }],
|
|
54
|
+
engineCapabilities: [],
|
|
55
|
+
providerCapabilities: [],
|
|
56
|
+
protocols: ['REST_API'],
|
|
57
|
+
secretsContractShape: [
|
|
58
|
+
{ slug: 'apiKey', envVarName: PLANTED_KEY, required: true, description: 'Acme Widgets API key.' },
|
|
59
|
+
{ slug: 'region', envVarName: PLANTED_REGION_KEY, required: false, description: 'Acme Widgets region.' },
|
|
60
|
+
],
|
|
61
|
+
};
|
|
62
|
+
function plant() {
|
|
63
|
+
registerDiscoveredProviderContributions([plantedContribution]);
|
|
64
|
+
}
|
|
65
|
+
afterEach(() => {
|
|
66
|
+
resetDiscoveredProviderContributions();
|
|
67
|
+
vi.restoreAllMocks();
|
|
68
|
+
});
|
|
69
|
+
// ---------------------------------------------------------------------------
|
|
70
|
+
// Fixtures for the env builders
|
|
71
|
+
// ---------------------------------------------------------------------------
|
|
72
|
+
const baseCredentials = {
|
|
73
|
+
mongodb: { rootUser: 'mongo', rootPassword: 'mongo-password' },
|
|
74
|
+
valkey: { adminUser: 'default', adminPassword: 'valkey-password' },
|
|
75
|
+
postgresql: { adminUser: 'postgres', adminPassword: 'postgres-password' },
|
|
76
|
+
rabbitmq: { adminUsername: 'rabbit', adminPassword: 'rabbit-password', erlangCookie: 'rabbit-cookie' },
|
|
77
|
+
storage: { accessKey: 'minio', secretKey: 'minio-secret' },
|
|
78
|
+
platform: {
|
|
79
|
+
primarySecret: 'platform-tier-root-primary-secret-9f3a',
|
|
80
|
+
adminSecret: 'admin-secret',
|
|
81
|
+
appsManager: { privateKey: 'private-key', publicKey: 'public-key' },
|
|
82
|
+
crontabsBatchesManager: { privateKey: 'crontabs-private-key', publicKey: 'crontabs-public-key' },
|
|
83
|
+
},
|
|
84
|
+
admin: { email: 'admin@example.com', password: 'admin-password', firstName: 'Ada', lastName: 'Lovelace' },
|
|
85
|
+
};
|
|
86
|
+
const credentialsWithPlantedProvider = {
|
|
87
|
+
...baseCredentials,
|
|
88
|
+
providerEnv: {
|
|
89
|
+
OPENAI_API_KEY: 'sk-openai-test',
|
|
90
|
+
[PLANTED_KEY]: 'acme-live-key',
|
|
91
|
+
[PLANTED_REGION_KEY]: 'eu-west-1',
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
const appBootstrapCredentials = {
|
|
95
|
+
APPLICATION_ID: 'app-123',
|
|
96
|
+
PLATFORM_APPLICATION_PRIMARY_SECRET: 'platform-primary-secret',
|
|
97
|
+
PLATFORM_APPS_MANAGER_URL: 'https://apps-manager.example.com',
|
|
98
|
+
APPLICATION_ENV: RuntimeEnvironment.STAGING,
|
|
99
|
+
};
|
|
100
|
+
function createConfig() {
|
|
101
|
+
return {
|
|
102
|
+
type: WildoLocationType.REMOTE,
|
|
103
|
+
runtime: WildoDeploymentRuntime.KUBERNETES,
|
|
104
|
+
runtimeEnvironment: RuntimeEnvironment.STAGING,
|
|
105
|
+
database: { engine: DatabaseEngine.MONGODB, source: BackingServiceSource.SELF },
|
|
106
|
+
infrastructure: {
|
|
107
|
+
storage: { provider: 'minio', useSsl: false, bucket: 'bucket' },
|
|
108
|
+
postgresql: { database: 'postgres', sslMode: 'disable' },
|
|
109
|
+
},
|
|
110
|
+
publicDomain: 'preview-eu.wildo.ai',
|
|
111
|
+
kubernetes: { namespace: 'preview-eu' },
|
|
112
|
+
remoteProvider: { provider: 'scaleway', registryEndpoint: 'rg.fr-par.scw.cloud/demo' },
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function workerEnvFor(providerRefs, credentials = credentialsWithPlantedProvider) {
|
|
116
|
+
return PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'rustWorker', 'my-rust-worker', credentials, createConfig(), 'local', declaredProviderScope(providerRefs), {});
|
|
117
|
+
}
|
|
118
|
+
// ---------------------------------------------------------------------------
|
|
119
|
+
describe('composed provider catalogue', () => {
|
|
120
|
+
it('plants a contribution the REAL wire contract accepts, so the fixture cannot drift from it', () => {
|
|
121
|
+
/*
|
|
122
|
+
* The fixture is synthetic, and a synthetic fixture is only worth anything while it is still a
|
|
123
|
+
* legal record. Parsing it through the schema every provider package's `./companion` export is
|
|
124
|
+
* parsed with is what stops this file from proving the mechanism against a shape no producer
|
|
125
|
+
* can emit. (Probed against the real first package provider on 2026-09-06:
|
|
126
|
+
* `providers/slack`'s contribution carries ref `slack`, tier CATALOGUE, package
|
|
127
|
+
* `@wildo-ai/provider-slack`, and one required secret `SLACK_BOT_TOKEN` — the same shape.)
|
|
128
|
+
*/
|
|
129
|
+
expect(() => ProviderCompanionContributionSchema.parse(plantedContribution)).not.toThrow();
|
|
130
|
+
});
|
|
131
|
+
it('holds the engine tier before anything is registered, and does not know the planted provider', () => {
|
|
132
|
+
// The control. Without it, every pin below would also pass against a catalogue that simply
|
|
133
|
+
// returned every ref it was ever asked about.
|
|
134
|
+
expect(getComposedProviderEntry('openai')).toBeDefined();
|
|
135
|
+
expect(getComposedProviderEntry(PLANTED_REF)).toBeUndefined();
|
|
136
|
+
});
|
|
137
|
+
it('composes a package-shipped provider from its companion contribution alone', () => {
|
|
138
|
+
plant();
|
|
139
|
+
const entry = getComposedProviderEntry(PLANTED_REF);
|
|
140
|
+
expect(entry?.identity?.tier).toBe(ProviderTier.CATALOGUE);
|
|
141
|
+
expect(entry?.secrets.map((secret) => secret.envVarName)).toEqual([PLANTED_KEY, PLANTED_REGION_KEY]);
|
|
142
|
+
// A contribution is DATA: it carries no runtime contracts, and that is the honest answer
|
|
143
|
+
// rather than an unknown provider. Its secret keys come from the contract half.
|
|
144
|
+
expect(entry?.protocolBindings).toEqual([]);
|
|
145
|
+
});
|
|
146
|
+
it('refuses to let a contribution shadow an engine-shipped provider', () => {
|
|
147
|
+
const warn = vi.spyOn(console, 'warn').mockImplementation(() => { });
|
|
148
|
+
registerDiscoveredProviderContributions([{ ...plantedContribution, ref: 'openai' }]);
|
|
149
|
+
expect(getComposedProviderEntry('openai')?.identity?.packageName).not.toBe('@wildo-ai/provider-acme-widgets');
|
|
150
|
+
expect(warn).toHaveBeenCalledWith(expect.stringContaining("'openai'"));
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
describe('secret classification (issue #329 — the Secret/ConfigMap split)', () => {
|
|
154
|
+
it('classifies a package-shipped provider key as sensitive', () => {
|
|
155
|
+
expect(getProviderSensitiveEnvKeys().has(PLANTED_KEY)).toBe(false);
|
|
156
|
+
plant();
|
|
157
|
+
expect(getProviderSensitiveEnvKeys().has(PLANTED_KEY)).toBe(true);
|
|
158
|
+
expect(getProviderSensitiveEnvKeys().has(PLANTED_REGION_KEY)).toBe(true);
|
|
159
|
+
});
|
|
160
|
+
it('reaches the LIVE exported sets, which a module-load snapshot could not', () => {
|
|
161
|
+
// Both sets are imported at the top of this file — i.e. evaluated LONG before `plant()` runs,
|
|
162
|
+
// which is exactly the ordering discovery has in a real CLI process. Snapshot them and these
|
|
163
|
+
// two assertions fail.
|
|
164
|
+
plant();
|
|
165
|
+
expect(PROVIDER_SENSITIVE_ENV_KEYS.has(PLANTED_KEY)).toBe(true);
|
|
166
|
+
expect(SENSITIVE_ENV_KEYS.has(PLANTED_KEY)).toBe(true);
|
|
167
|
+
// The static half must survive the change to a live view.
|
|
168
|
+
expect(SENSITIVE_ENV_KEYS.has('OPENAI_API_KEY')).toBe(true);
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
describe('wildo setup prompt catalogue (issue #329)', () => {
|
|
172
|
+
it('offers the package-shipped provider and every secret its contract declares', () => {
|
|
173
|
+
expect(getProviderSelectionCatalog().some((entry) => entry.providerRef === PLANTED_REF)).toBe(false);
|
|
174
|
+
plant();
|
|
175
|
+
const entry = getProviderSelectionCatalog().find((candidate) => candidate.providerRef === PLANTED_REF);
|
|
176
|
+
expect(entry).toBeDefined();
|
|
177
|
+
expect(entry?.secrets).toEqual([
|
|
178
|
+
{ envVarName: PLANTED_KEY, description: 'Acme Widgets API key.', required: true },
|
|
179
|
+
{ envVarName: PLANTED_REGION_KEY, description: 'Acme Widgets region.', required: false },
|
|
180
|
+
]);
|
|
181
|
+
// A contribution carries no display name, so the ref is the label — the same fallback an
|
|
182
|
+
// engine provider without one gets.
|
|
183
|
+
expect(entry?.label).toBe(PLANTED_REF);
|
|
184
|
+
});
|
|
185
|
+
it('still offers every engine provider that declares a secret', () => {
|
|
186
|
+
plant();
|
|
187
|
+
const refs = getProviderSelectionCatalog().map((entry) => entry.providerRef);
|
|
188
|
+
expect(refs).toEqual(expect.arrayContaining(['openai', 'stripe', 'resend']));
|
|
189
|
+
// `email-preview` is a log sink with an empty contract — nothing to prompt.
|
|
190
|
+
expect(refs).not.toContain('email-preview');
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
describe('per-runtime confinement (issue #329 acceptance)', () => {
|
|
194
|
+
it('delivers the planted key to a runtime that DECLARES the provider', () => {
|
|
195
|
+
plant();
|
|
196
|
+
expect(workerEnvFor([PLANTED_REF])[PLANTED_KEY]).toBe('acme-live-key');
|
|
197
|
+
expect(workerEnvFor([PLANTED_REF])[PLANTED_REGION_KEY]).toBe('eu-west-1');
|
|
198
|
+
});
|
|
199
|
+
it('withholds the planted key from a runtime that does NOT declare the provider', () => {
|
|
200
|
+
/*
|
|
201
|
+
* The issue's headline acceptance. It pins the fix AS A WHOLE and deliberately not one half of
|
|
202
|
+
* it: measured by mutation, reverting EITHER half alone still withholds the key (an engine-only
|
|
203
|
+
* catalogue makes it unattributable AND unallowed, so the fail-closed filter drops it; a
|
|
204
|
+
* keep-unattributable filter is caught by the classification instead). Only the true pre-#329
|
|
205
|
+
* state — engine-only attribution together with keep-unattributable — reddens this one.
|
|
206
|
+
*
|
|
207
|
+
* The pins that ISOLATE the composed derivation are `delivers the planted key to a runtime that
|
|
208
|
+
* DECLARES the provider`, `classifies a package-shipped provider key as sensitive`, and the
|
|
209
|
+
* setup-catalogue pin; each reddens under a single-half mutation.
|
|
210
|
+
*/
|
|
211
|
+
plant();
|
|
212
|
+
const env = workerEnvFor(['openai']);
|
|
213
|
+
expect(env.OPENAI_API_KEY).toBe('sk-openai-test');
|
|
214
|
+
expect(env[PLANTED_KEY]).toBeUndefined();
|
|
215
|
+
expect(env[PLANTED_REGION_KEY]).toBeUndefined();
|
|
216
|
+
});
|
|
217
|
+
it('withholds it from a runtime that declares NO provider at all', () => {
|
|
218
|
+
plant();
|
|
219
|
+
const env = workerEnvFor([]);
|
|
220
|
+
expect(env[PLANTED_KEY]).toBeUndefined();
|
|
221
|
+
expect(env.OPENAI_API_KEY).toBeUndefined();
|
|
222
|
+
});
|
|
223
|
+
it('drops a key no provider claims, and says so, instead of passing it as configuration', () => {
|
|
224
|
+
const warn = vi.spyOn(console, 'warn').mockImplementation(() => { });
|
|
225
|
+
const env = workerEnvFor(['openai'], {
|
|
226
|
+
...baseCredentials,
|
|
227
|
+
providerEnv: { OPENAI_API_KEY: 'sk-openai-test', UNCLAIMED_VENDOR_TOKEN: 'leaked' },
|
|
228
|
+
});
|
|
229
|
+
expect(env.OPENAI_API_KEY).toBe('sk-openai-test');
|
|
230
|
+
expect(env.UNCLAIMED_VENDOR_TOKEN).toBeUndefined();
|
|
231
|
+
expect(warn).toHaveBeenCalledWith(expect.stringContaining('UNCLAIMED_VENDOR_TOKEN'));
|
|
232
|
+
});
|
|
233
|
+
it('keeps the platform tier receiving everything, planted provider included', () => {
|
|
234
|
+
plant();
|
|
235
|
+
const env = PlatformEnvVarsBuilder.buildRuntimeProviderEnv(credentialsWithPlantedProvider);
|
|
236
|
+
expect(env[PLANTED_KEY]).toBe('acme-live-key');
|
|
237
|
+
expect(env.OPENAI_API_KEY).toBe('sk-openai-test');
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
describe('getProviderApiKey — the seam #331 consumes', () => {
|
|
241
|
+
const providerEnv = { [PLANTED_KEY]: 'acme-live-key', [PLANTED_REGION_KEY]: 'eu-west-1' };
|
|
242
|
+
it('resolves a package-shipped provider once discovery has registered it', () => {
|
|
243
|
+
plant();
|
|
244
|
+
expect(getProviderApiKey({
|
|
245
|
+
providerRef: PLANTED_REF,
|
|
246
|
+
runtimeScope: declaredProviderScope([PLANTED_REF]),
|
|
247
|
+
providerEnv,
|
|
248
|
+
requiredScopes: ['apiKey'],
|
|
249
|
+
secretSlug: 'apiKey',
|
|
250
|
+
})).toEqual({ ok: true, providerRef: PLANTED_REF, secretSlug: 'apiKey', envVarName: PLANTED_KEY, value: 'acme-live-key' });
|
|
251
|
+
});
|
|
252
|
+
it('defaults to the sole REQUIRED secret when the caller names no slug', () => {
|
|
253
|
+
plant();
|
|
254
|
+
const resolution = getProviderApiKey({
|
|
255
|
+
providerRef: PLANTED_REF,
|
|
256
|
+
runtimeScope: platformTierAllProvidersScope(),
|
|
257
|
+
providerEnv,
|
|
258
|
+
});
|
|
259
|
+
expect(resolution).toMatchObject({ ok: true, secretSlug: 'apiKey' });
|
|
260
|
+
});
|
|
261
|
+
it('refuses BY NAME for a provider nothing composed, rather than reading an env var nobody claims', () => {
|
|
262
|
+
expect(getProviderApiKey({
|
|
263
|
+
providerRef: PLANTED_REF,
|
|
264
|
+
runtimeScope: platformTierAllProvidersScope(),
|
|
265
|
+
providerEnv,
|
|
266
|
+
})).toMatchObject({ ok: false, refusal: ProviderApiKeyRefusal.UNKNOWN_PROVIDER });
|
|
267
|
+
});
|
|
268
|
+
it('refuses when the runtime scope does not carry the provider', () => {
|
|
269
|
+
plant();
|
|
270
|
+
expect(getProviderApiKey({
|
|
271
|
+
providerRef: PLANTED_REF,
|
|
272
|
+
runtimeScope: declaredProviderScope(['openai']),
|
|
273
|
+
providerEnv,
|
|
274
|
+
})).toMatchObject({ ok: false, refusal: ProviderApiKeyRefusal.NOT_IN_SCOPE });
|
|
275
|
+
});
|
|
276
|
+
it('refuses a requiredScope the provider contract does not declare', () => {
|
|
277
|
+
plant();
|
|
278
|
+
expect(getProviderApiKey({
|
|
279
|
+
providerRef: PLANTED_REF,
|
|
280
|
+
runtimeScope: platformTierAllProvidersScope(),
|
|
281
|
+
providerEnv,
|
|
282
|
+
requiredScopes: ['apiKey', 'refreshToken'],
|
|
283
|
+
})).toMatchObject({ ok: false, refusal: ProviderApiKeyRefusal.UNDECLARED_SCOPES });
|
|
284
|
+
});
|
|
285
|
+
it('separates "the operation named a slug the package lacks" from "the CALLER named the wrong slug"', () => {
|
|
286
|
+
// Two remedies — regenerate the operation vs fix the call — so two members. Merging them under
|
|
287
|
+
// one refusal is the vocabulary collapse the closed-vocabulary rule exists to prevent.
|
|
288
|
+
plant();
|
|
289
|
+
expect(getProviderApiKey({
|
|
290
|
+
providerRef: PLANTED_REF,
|
|
291
|
+
runtimeScope: platformTierAllProvidersScope(),
|
|
292
|
+
providerEnv,
|
|
293
|
+
secretSlug: 'notAThing',
|
|
294
|
+
})).toMatchObject({ ok: false, refusal: ProviderApiKeyRefusal.UNDECLARED_SECRET_SLUG });
|
|
295
|
+
});
|
|
296
|
+
it('refuses ambiguously when several secrets are required and none is named', () => {
|
|
297
|
+
registerDiscoveredProviderContributions([{
|
|
298
|
+
...plantedContribution,
|
|
299
|
+
ref: 'acme-two-keys',
|
|
300
|
+
secretsContractShape: [
|
|
301
|
+
{ slug: 'clientId', envVarName: 'ACME_CLIENT_ID', required: true, description: 'id' },
|
|
302
|
+
{ slug: 'clientSecret', envVarName: 'ACME_CLIENT_SECRET', required: true, description: 'secret' },
|
|
303
|
+
],
|
|
304
|
+
}]);
|
|
305
|
+
expect(getProviderApiKey({
|
|
306
|
+
providerRef: 'acme-two-keys',
|
|
307
|
+
runtimeScope: platformTierAllProvidersScope(),
|
|
308
|
+
providerEnv: { ACME_CLIENT_ID: 'id', ACME_CLIENT_SECRET: 'secret' },
|
|
309
|
+
})).toMatchObject({ ok: false, refusal: ProviderApiKeyRefusal.AMBIGUOUS_SECRET });
|
|
310
|
+
});
|
|
311
|
+
it('separates "not provisioned" from "not entitled" — different remedies, different refusals', () => {
|
|
312
|
+
plant();
|
|
313
|
+
expect(getProviderApiKey({
|
|
314
|
+
providerRef: PLANTED_REF,
|
|
315
|
+
runtimeScope: declaredProviderScope([PLANTED_REF]),
|
|
316
|
+
providerEnv: {},
|
|
317
|
+
})).toMatchObject({ ok: false, refusal: ProviderApiKeyRefusal.SECRET_NOT_PROVISIONED });
|
|
318
|
+
});
|
|
319
|
+
it('resolves an ENGINE provider through the same door', () => {
|
|
320
|
+
expect(getProviderApiKey({
|
|
321
|
+
providerRef: 'openai',
|
|
322
|
+
runtimeScope: declaredProviderScope(['openai']),
|
|
323
|
+
providerEnv: { OPENAI_API_KEY: 'sk-openai-test' },
|
|
324
|
+
})).toMatchObject({ ok: true, envVarName: 'OPENAI_API_KEY', value: 'sk-openai-test' });
|
|
325
|
+
});
|
|
326
|
+
});
|
|
327
|
+
//# sourceMappingURL=composed-provider-secrets.guard.test.js.map
|