@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":"types.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/kernel/types.ts"],"names":[],"mappings":"AAUA,8EAA8E;AAC9E,2EAA2E;AAC3E,8EAA8E;AAE9E,MAAM,CAAN,IAAY,eAuEX;AAvED,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,oCAAiB,CAAA;IACjB,8BAAW,CAAA;IACX,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB;;;;;;OAMG;IACH,oCAAiB,CAAA;IACjB;;;;;;;;;;;;;;;;;;OAkBG;IACH,wCAAqB,CAAA;IACrB;;;;;;;OAOG;IACH,kCAAe,CAAA;IACf;;;;;;OAMG;IACH,sCAAmB,CAAA;IACnB,8BAAW,CAAA;IACX;;;;;;;;;;;;;;OAcG;IACH,gCAAa,CAAA;AAEf,CAAC,EAvEW,eAAe,KAAf,eAAe,QAuE1B;AA6DD,MAAM,CAAC,MAAM,oBAAoB,GAAgB;IAC/C,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,KAAK;IACd,KAAK,EAAE,KAAK;CACb,CAAC","sourcesContent":["import type { PlatformEnvironmentConfiguration as _PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport type { WildoPreferences as _WildoPreferences } from '~wildo-cli/services/context/context.schemas';\nimport type { CliContext as _CliContext } from '~wildo-cli/services/context/context.schemas';\nimport type { CommandRegistry as _CommandRegistry } from '~wildo-cli/kernel/command-registry';\nimport { WorkspaceScope } from '@wildo-ai/platform-config-lib';\n\nexport type PlatformEnvironmentConfiguration = _PlatformEnvironmentConfiguration;\nexport type WildoPreferences = _WildoPreferences;\nexport type CliContext = _CliContext;\n\n// ---------------------------------------------------------------------------\n// Command category — groups commands by domain and determines scope gating\n// ---------------------------------------------------------------------------\n\nexport enum CommandCategory {\n Core = 'core',\n Local = 'local',\n Remote = 'remote',\n Dev = 'dev',\n Website = 'website',\n Config = 'config',\n Generate = 'generate',\n /**\n * Market — drive the market-generation CLI surface against the application's\n * authored `MarketSnapshot` (Phase 4.2). Commands in this category POST to\n * the dev-companion's market routes and require `WorkspaceScope.SAAS_APP`\n * because they are inherently app-scoped (the snapshot lives in the\n * application's `specifications/` package).\n */\n Market = 'market',\n /**\n * Registry — module-registry workstream. The category covers CLI\n * surfaces that read/write `wildo.saas.config.ts > moduleRegistries`,\n * mutate `wildo-saas.lock.json > sections.modules`, add/update/remove\n * module source from the configured registry server, and publish\n * local modules.\n *\n * Scope split:\n * - SAAS-app verbs (category default `WorkspaceScope.SAAS_APP`):\n * `add`, `update`, `remove`, `publish`, `repair-lockfile`,\n * `lockfile-smoke`. They mutate the SaaS app source / lockfile\n * and require an app workspace.\n * - Workspace-independent verbs (declare\n * `minimumScope: WorkspaceScope.UNINITIALIZED` to override the\n * category default): `login`, `logout`, `whoami`, `info`,\n * `search`, `ping`. They operate against the registry server +\n * per-machine credential store and must run from a fresh install\n * where `~/.wildo/preferences.json` doesn't exist yet.\n */\n Registry = 'registry',\n /**\n * Brand — propagate the accepted brand-asset SSOT (the app's\n * `specifications/src/brand/resolved-assets.generated.ts`) to every frontend\n * destination (app / website / docs public dirs, head refs, config). Runs\n * independently of any generation step (a human may supply the logo), so it\n * requires `WorkspaceScope.SAAS_APP` — the SSOT lives in the application's\n * `specifications/` package.\n */\n Brand = 'brand',\n /**\n * Context — the live-context door (issue #252): read-only queries against the\n * running dev companion's introspection behaviors and journey state, for\n * humans AND for tool-bearing coding/research agents working inside the\n * application. Never a mutation verb — anything that writes belongs in\n * another category by definition.\n */\n Context = 'context',\n Fwk = 'fwk',\n /**\n * Docs — publish and inspect the application's own CUSTOMER technical\n * documentation portal (`technical-doc/src/generated/consumer-documentation`\n * and the API reference beside it).\n *\n * The tree is generated, committed, and was reachable by exactly one door: a\n * hand-called `POST /api/companion/technical-doc/publish-managed`. Nothing in\n * `wildo local dev` published, no command existed, and no CI step ran — so\n * the committed tree went stale silently whenever the engine's content module\n * or the application's specifications changed, and the only way to notice was\n * to diff it (issue #275). This category is that missing door.\n *\n * Distinct from `Fwk`, which serves the FRAMEWORK developer's own knowledge\n * artifacts, and from `Website`, which is the marketing site.\n */\n Docs = 'docs',\n\n}\n\n// ---------------------------------------------------------------------------\n// Flag & Arg definitions — declarative metadata consumed by Commander.js\n// ---------------------------------------------------------------------------\n\nexport interface FlagDefinition {\n /**\n * Flag value kind. `'string[]'` is VARIADIC: Commander collects every\n * following space-separated token into an array (`--units a b c`), and a\n * comma-joined value still works too (`--units a,b,c`) — normalize with\n * `parseCsvFlag` from `~wildo-cli/kernel/flag-utils`. Use it for any flag\n * that legitimately takes multiple values, so extra tokens are captured\n * rather than silently dropped as stray args.\n */\n type: 'boolean' | 'string' | 'number' | 'string[]';\n description: string;\n default?: unknown;\n required?: boolean;\n}\n\nexport interface ArgDefinition {\n name: string;\n description: string;\n required?: boolean;\n}\n\n// ---------------------------------------------------------------------------\n// Prompt definitions — declarative prompts with automatic CLI flag mapping\n// ---------------------------------------------------------------------------\n\nexport interface PromptChoiceDefinition {\n value: string;\n label: string;\n}\n\nexport interface PromptDefinition {\n /** Unique id — used as key in answer files and as the CLI flag name. */\n id: string;\n type: 'input' | 'select' | 'confirm' | 'password';\n message: string;\n choices?: PromptChoiceDefinition[];\n default?: unknown;\n /**\n * Conditional — prompt is skipped when this returns false.\n * Receives the current CommandContext so decisions can depend on prior answers.\n */\n when?: (ctx: CommandContext) => boolean;\n}\n\n// ---------------------------------------------------------------------------\n// Global flags — available on every command\n// ---------------------------------------------------------------------------\n\nexport interface GlobalFlags {\n nonInteractive: boolean;\n answersFile: string | null;\n verbose: boolean;\n quiet: boolean;\n}\n\nexport const DEFAULT_GLOBAL_FLAGS: GlobalFlags = {\n nonInteractive: false,\n answersFile: null,\n verbose: false,\n quiet: false,\n};\n\n// ---------------------------------------------------------------------------\n// CommandMeta — declarative command descriptor (static per command class)\n// ---------------------------------------------------------------------------\n\nexport interface CommandMeta {\n name: string;\n description: string;\n category: CommandCategory;\n /** Optional stricter scope than the category-wide default. */\n minimumScope?: WorkspaceScope;\n /** Optional command-specific unavailability copy. */\n unavailabilityMessage?: string;\n aliases?: string[];\n hidden?: boolean;\n flags?: Record<string, FlagDefinition>;\n args?: ArgDefinition[];\n prompts?: PromptDefinition[];\n}\n\n// ---------------------------------------------------------------------------\n// Logger — structured console output\n// ---------------------------------------------------------------------------\n\nexport interface Logger {\n info: (msg: string) => void;\n success: (msg: string) => void;\n warn: (msg: string) => void;\n error: (msg: string) => void;\n}\n\n// ---------------------------------------------------------------------------\n// CommandContext — enriched context injected into every command's run()\n// ---------------------------------------------------------------------------\n\nexport interface CommandContext {\n args: Record<string, string | undefined>;\n flags: Record<string, unknown>;\n rawArgs: string[];\n\n globalFlags: GlobalFlags;\n /** Parsed answers from --answers file. Keys = prompt ids. */\n answers: Record<string, unknown>;\n\n activeEnv: PlatformEnvironmentConfiguration | null;\n preferences: WildoPreferences | null;\n cliContext: CliContext;\n\n log: Logger;\n\n /** Available to kernel-level commands (e.g. help) for dynamic command listing. */\n registry?: _CommandRegistry;\n}\n\n// ---------------------------------------------------------------------------\n// CommandResult — returned by command's run()\n// ---------------------------------------------------------------------------\n\nexport interface CommandResult {\n success: boolean;\n message?: string;\n}\n"]}
|
package/dist/src/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-user.module.test.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"admin-user.module.test.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/domain/credentials/__tests__/admin-user.module.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approver-user.module.test.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/domain/credentials/__tests__/approver-user.module.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
|
2
|
+
import { WildoCliInitApproverEnvKeys } from '../../../../services/credentials/credentials.schemas.js';
|
|
3
|
+
import { ApproverIdentityProvenance, deriveLocalApproverIdentity, resolveApproverIdentity, } from '../../../../modules/domain/credentials/approver-user.module.js';
|
|
4
|
+
/**
|
|
5
|
+
* The SECOND administrator, and the two-person rule that makes it mandatory (#575).
|
|
6
|
+
*
|
|
7
|
+
* An application-wide access grant is approved by a platform administrator who is NOT its requester
|
|
8
|
+
* — `applicationAccessGrantApproverIsDistinct` refuses `operator === approver` and refuses an absent
|
|
9
|
+
* approver, and there is deliberately no auto-approval branch. So a platform provisioned with one
|
|
10
|
+
* administrator cannot read any application-wide surface at all, and provisioning has to produce
|
|
11
|
+
* two.
|
|
12
|
+
*
|
|
13
|
+
* What these pin is the PROVENANCE rule, because that is the part that is dangerous to get wrong:
|
|
14
|
+
* a local environment may DERIVE the second identity from the first (one developer, two accounts,
|
|
15
|
+
* one password — the two-person rule is ceremonial there and that is the accepted trade), and a
|
|
16
|
+
* remote environment must STATE it. A derivation that leaked into a remote deployment would ship a
|
|
17
|
+
* two-person control that one person satisfies, which is worse than no control because it reads as
|
|
18
|
+
* one.
|
|
19
|
+
*/
|
|
20
|
+
const ADMIN = {
|
|
21
|
+
email: 'ada@example.com',
|
|
22
|
+
firstName: 'Ada',
|
|
23
|
+
lastName: 'Lovelace',
|
|
24
|
+
password: 'operator-typed-password',
|
|
25
|
+
};
|
|
26
|
+
const log = { info: vi.fn(), warn: vi.fn(), error: vi.fn(), success: vi.fn() };
|
|
27
|
+
function clearApproverEnv() {
|
|
28
|
+
for (const key of Object.values(WildoCliInitApproverEnvKeys))
|
|
29
|
+
delete process.env[key];
|
|
30
|
+
}
|
|
31
|
+
function stateApprover(overrides = {}) {
|
|
32
|
+
process.env[WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_EMAIL] = 'grace@example.com';
|
|
33
|
+
process.env[WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_FIRSTNAME] = 'Grace';
|
|
34
|
+
process.env[WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_LASTNAME] = 'Hopper';
|
|
35
|
+
process.env[WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_PASSWORD] = 'grace-password';
|
|
36
|
+
for (const [key, value] of Object.entries(overrides))
|
|
37
|
+
process.env[key] = value;
|
|
38
|
+
}
|
|
39
|
+
beforeEach(clearApproverEnv);
|
|
40
|
+
afterEach(() => {
|
|
41
|
+
clearApproverEnv();
|
|
42
|
+
vi.clearAllMocks();
|
|
43
|
+
});
|
|
44
|
+
describe('deriveLocalApproverIdentity', () => {
|
|
45
|
+
it('sub-addresses the administrator so both accounts share one mailbox', () => {
|
|
46
|
+
expect(deriveLocalApproverIdentity(ADMIN)).toEqual({
|
|
47
|
+
email: 'ada+approver@example.com',
|
|
48
|
+
firstName: 'Ada',
|
|
49
|
+
lastName: 'Lovelace',
|
|
50
|
+
password: 'operator-typed-password',
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
/*
|
|
54
|
+
* REPLACES an existing tag rather than appending. `ada+ci@x` and `ada@x` must derive the SAME
|
|
55
|
+
* approver, or a CI environment and a laptop would disagree about who the approver is while both
|
|
56
|
+
* believing they had derived one — and `ada+ci+approver@x` is a third mailbox nobody asked for.
|
|
57
|
+
*/
|
|
58
|
+
it('replaces an existing sub-address tag instead of stacking a second one', () => {
|
|
59
|
+
expect(deriveLocalApproverIdentity({ ...ADMIN, email: 'ada+ci@example.com' }).email)
|
|
60
|
+
.toBe('ada+approver@example.com');
|
|
61
|
+
});
|
|
62
|
+
/*
|
|
63
|
+
* A domain may contain `+` in no legal form, but a LOCAL part may contain `@` in a quoted string,
|
|
64
|
+
* so the split has to be on the LAST `@`. Pinned because splitting on the first is the obvious
|
|
65
|
+
* implementation and produces a domain of `example.com` from a local part that still contains one.
|
|
66
|
+
*/
|
|
67
|
+
it('splits on the last @, so a quoted local part does not corrupt the domain', () => {
|
|
68
|
+
expect(deriveLocalApproverIdentity({ ...ADMIN, email: '"ada@home"@example.com' }).email)
|
|
69
|
+
.toBe('"ada@home"+approver@example.com');
|
|
70
|
+
});
|
|
71
|
+
it('carries the administrator name through, because it is the same human', () => {
|
|
72
|
+
const derived = deriveLocalApproverIdentity(ADMIN);
|
|
73
|
+
expect([derived.firstName, derived.lastName]).toEqual([ADMIN.firstName, ADMIN.lastName]);
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
describe('resolveApproverIdentity', () => {
|
|
77
|
+
it('derives for a local environment when nothing is stated', () => {
|
|
78
|
+
const result = resolveApproverIdentity({ admin: ADMIN, isLocalEnvironment: true, log });
|
|
79
|
+
expect(result.provenance).toBe(ApproverIdentityProvenance.DERIVED_FROM_ADMINISTRATOR);
|
|
80
|
+
expect(result.approver.email).toBe('ada+approver@example.com');
|
|
81
|
+
});
|
|
82
|
+
/*
|
|
83
|
+
* THE PIN THIS FILE EXISTS FOR. A remote deployment must never acquire the derivation, because the
|
|
84
|
+
* derived approver shares the administrator's password — so one person would hold both signatures
|
|
85
|
+
* of a two-person rule. Refusing at setup is the only place the cause is visible; discovered later
|
|
86
|
+
* it looks like a working control.
|
|
87
|
+
*/
|
|
88
|
+
it('REFUSES a non-local environment that states no approver', () => {
|
|
89
|
+
expect(() => resolveApproverIdentity({ admin: ADMIN, isLocalEnvironment: false, log }))
|
|
90
|
+
.toThrow(/states no approving administrator/i);
|
|
91
|
+
});
|
|
92
|
+
it('accepts a fully stated approver in any environment', () => {
|
|
93
|
+
stateApprover();
|
|
94
|
+
for (const isLocalEnvironment of [true, false]) {
|
|
95
|
+
const result = resolveApproverIdentity({ admin: ADMIN, isLocalEnvironment, log });
|
|
96
|
+
expect(result.provenance).toBe(ApproverIdentityProvenance.STATED);
|
|
97
|
+
expect(result.approver.email).toBe('grace@example.com');
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
/*
|
|
101
|
+
* A stated identity WINS over the derivation locally. Without this, a developer who states a real
|
|
102
|
+
* second person would silently get the sub-addressed one instead — the values would be accepted
|
|
103
|
+
* and ignored, which is the shape #566 calls "collects a change and drops it silently".
|
|
104
|
+
*/
|
|
105
|
+
it('prefers a stated approver over the local derivation', () => {
|
|
106
|
+
stateApprover();
|
|
107
|
+
expect(resolveApproverIdentity({ admin: ADMIN, isLocalEnvironment: true, log }).approver.email)
|
|
108
|
+
.toBe('grace@example.com');
|
|
109
|
+
});
|
|
110
|
+
/*
|
|
111
|
+
* A PARTIAL set is an operator mistake, never a request to fall back — the reading
|
|
112
|
+
* `init.command.ts` already applies to a partial `--admin-*` flag set. Falling through to the
|
|
113
|
+
* derivation would discard the fields that WERE supplied and hand back a different person.
|
|
114
|
+
*/
|
|
115
|
+
it('refuses a partially stated approver rather than falling back to the derivation', () => {
|
|
116
|
+
stateApprover();
|
|
117
|
+
delete process.env[WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_LASTNAME];
|
|
118
|
+
expect(() => resolveApproverIdentity({ admin: ADMIN, isLocalEnvironment: true, log }))
|
|
119
|
+
.toThrow(/partially stated.*WILDO_INIT_APPROVER_LASTNAME/is);
|
|
120
|
+
});
|
|
121
|
+
/*
|
|
122
|
+
* Two identical identities provision ONE account and then refuse every approval, because the
|
|
123
|
+
* two-person rule compares user ids at approval time. That failure surfaces weeks later and reads
|
|
124
|
+
* as a permissions bug, so it is caught where the cause is legible.
|
|
125
|
+
*/
|
|
126
|
+
it('refuses an approver stated as the administrator themselves', () => {
|
|
127
|
+
stateApprover({ [WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_EMAIL]: ADMIN.email });
|
|
128
|
+
expect(() => resolveApproverIdentity({ admin: ADMIN, isLocalEnvironment: true, log }))
|
|
129
|
+
.toThrow(/must be a DIFFERENT person/i);
|
|
130
|
+
});
|
|
131
|
+
/*
|
|
132
|
+
* The administrator's password is OPTIONAL at this point — the framework mints one when the
|
|
133
|
+
* operator typed none — and the derived approver inherits that absence rather than acquiring a
|
|
134
|
+
* password of its own. That is what keeps "the same password as the administrator" true after the
|
|
135
|
+
* ADMIN_PASSWORD material fills both, instead of producing two different generated passwords.
|
|
136
|
+
*/
|
|
137
|
+
it('carries an absent administrator password through rather than minting a second one', () => {
|
|
138
|
+
const result = resolveApproverIdentity({
|
|
139
|
+
admin: { ...ADMIN, password: undefined },
|
|
140
|
+
isLocalEnvironment: true,
|
|
141
|
+
log,
|
|
142
|
+
});
|
|
143
|
+
expect(result.approver.password).toBeUndefined();
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
//# sourceMappingURL=approver-user.module.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approver-user.module.test.js","sourceRoot":"","sources":["../../../../../../src/modules/domain/credentials/__tests__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AM,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,aAAa,EAAE,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';\n\nimport { WildoCliInitApproverEnvKeys } from '~wildo-cli/services/credentials/credentials.schemas';\nimport {\n ApproverIdentityProvenance,\n deriveLocalApproverIdentity,\n resolveApproverIdentity,\n} from '~wildo-cli/modules/domain/credentials/approver-user.module';\n\n/**\n * The SECOND administrator, and the two-person rule that makes it mandatory (#575).\n *\n * An application-wide access grant is approved by a platform administrator who is NOT its requester\n * — `applicationAccessGrantApproverIsDistinct` refuses `operator === approver` and refuses an absent\n * approver, and there is deliberately no auto-approval branch. So a platform provisioned with one\n * administrator cannot read any application-wide surface at all, and provisioning has to produce\n * two.\n *\n * What these pin is the PROVENANCE rule, because that is the part that is dangerous to get wrong:\n * a local environment may DERIVE the second identity from the first (one developer, two accounts,\n * one password — the two-person rule is ceremonial there and that is the accepted trade), and a\n * remote environment must STATE it. A derivation that leaked into a remote deployment would ship a\n * two-person control that one person satisfies, which is worse than no control because it reads as\n * one.\n */\n\nconst ADMIN = {\n email: 'ada@example.com',\n firstName: 'Ada',\n lastName: 'Lovelace',\n password: 'operator-typed-password',\n};\n\nconst log = { info: vi.fn(), warn: vi.fn(), error: vi.fn(), success: vi.fn() } as never;\n\nfunction clearApproverEnv(): void {\n for (const key of Object.values(WildoCliInitApproverEnvKeys)) delete process.env[key];\n}\n\nfunction stateApprover(overrides: Partial<Record<WildoCliInitApproverEnvKeys, string>> = {}): void {\n process.env[WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_EMAIL] = 'grace@example.com';\n process.env[WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_FIRSTNAME] = 'Grace';\n process.env[WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_LASTNAME] = 'Hopper';\n process.env[WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_PASSWORD] = 'grace-password';\n for (const [key, value] of Object.entries(overrides)) process.env[key] = value;\n}\n\nbeforeEach(clearApproverEnv);\nafterEach(() => {\n clearApproverEnv();\n vi.clearAllMocks();\n});\n\ndescribe('deriveLocalApproverIdentity', () => {\n it('sub-addresses the administrator so both accounts share one mailbox', () => {\n expect(deriveLocalApproverIdentity(ADMIN)).toEqual({\n email: 'ada+approver@example.com',\n firstName: 'Ada',\n lastName: 'Lovelace',\n password: 'operator-typed-password',\n });\n });\n\n /*\n * REPLACES an existing tag rather than appending. `ada+ci@x` and `ada@x` must derive the SAME\n * approver, or a CI environment and a laptop would disagree about who the approver is while both\n * believing they had derived one — and `ada+ci+approver@x` is a third mailbox nobody asked for.\n */\n it('replaces an existing sub-address tag instead of stacking a second one', () => {\n expect(deriveLocalApproverIdentity({ ...ADMIN, email: 'ada+ci@example.com' }).email)\n .toBe('ada+approver@example.com');\n });\n\n /*\n * A domain may contain `+` in no legal form, but a LOCAL part may contain `@` in a quoted string,\n * so the split has to be on the LAST `@`. Pinned because splitting on the first is the obvious\n * implementation and produces a domain of `example.com` from a local part that still contains one.\n */\n it('splits on the last @, so a quoted local part does not corrupt the domain', () => {\n expect(deriveLocalApproverIdentity({ ...ADMIN, email: '\"ada@home\"@example.com' }).email)\n .toBe('\"ada@home\"+approver@example.com');\n });\n\n it('carries the administrator name through, because it is the same human', () => {\n const derived = deriveLocalApproverIdentity(ADMIN);\n expect([derived.firstName, derived.lastName]).toEqual([ADMIN.firstName, ADMIN.lastName]);\n });\n});\n\ndescribe('resolveApproverIdentity', () => {\n it('derives for a local environment when nothing is stated', () => {\n const result = resolveApproverIdentity({ admin: ADMIN, isLocalEnvironment: true, log });\n expect(result.provenance).toBe(ApproverIdentityProvenance.DERIVED_FROM_ADMINISTRATOR);\n expect(result.approver.email).toBe('ada+approver@example.com');\n });\n\n /*\n * THE PIN THIS FILE EXISTS FOR. A remote deployment must never acquire the derivation, because the\n * derived approver shares the administrator's password — so one person would hold both signatures\n * of a two-person rule. Refusing at setup is the only place the cause is visible; discovered later\n * it looks like a working control.\n */\n it('REFUSES a non-local environment that states no approver', () => {\n expect(() => resolveApproverIdentity({ admin: ADMIN, isLocalEnvironment: false, log }))\n .toThrow(/states no approving administrator/i);\n });\n\n it('accepts a fully stated approver in any environment', () => {\n stateApprover();\n for (const isLocalEnvironment of [true, false]) {\n const result = resolveApproverIdentity({ admin: ADMIN, isLocalEnvironment, log });\n expect(result.provenance).toBe(ApproverIdentityProvenance.STATED);\n expect(result.approver.email).toBe('grace@example.com');\n }\n });\n\n /*\n * A stated identity WINS over the derivation locally. Without this, a developer who states a real\n * second person would silently get the sub-addressed one instead — the values would be accepted\n * and ignored, which is the shape #566 calls \"collects a change and drops it silently\".\n */\n it('prefers a stated approver over the local derivation', () => {\n stateApprover();\n expect(resolveApproverIdentity({ admin: ADMIN, isLocalEnvironment: true, log }).approver.email)\n .toBe('grace@example.com');\n });\n\n /*\n * A PARTIAL set is an operator mistake, never a request to fall back — the reading\n * `init.command.ts` already applies to a partial `--admin-*` flag set. Falling through to the\n * derivation would discard the fields that WERE supplied and hand back a different person.\n */\n it('refuses a partially stated approver rather than falling back to the derivation', () => {\n stateApprover();\n delete process.env[WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_LASTNAME];\n expect(() => resolveApproverIdentity({ admin: ADMIN, isLocalEnvironment: true, log }))\n .toThrow(/partially stated.*WILDO_INIT_APPROVER_LASTNAME/is);\n });\n\n /*\n * Two identical identities provision ONE account and then refuse every approval, because the\n * two-person rule compares user ids at approval time. That failure surfaces weeks later and reads\n * as a permissions bug, so it is caught where the cause is legible.\n */\n it('refuses an approver stated as the administrator themselves', () => {\n stateApprover({ [WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_EMAIL]: ADMIN.email });\n expect(() => resolveApproverIdentity({ admin: ADMIN, isLocalEnvironment: true, log }))\n .toThrow(/must be a DIFFERENT person/i);\n });\n\n /*\n * The administrator's password is OPTIONAL at this point — the framework mints one when the\n * operator typed none — and the derived approver inherits that absence rather than acquiring a\n * password of its own. That is what keeps \"the same password as the administrator\" true after the\n * ADMIN_PASSWORD material fills both, instead of producing two different generated passwords.\n */\n it('carries an absent administrator password through rather than minting a second one', () => {\n const result = resolveApproverIdentity({\n admin: { ...ADMIN, password: undefined },\n isLocalEnvironment: true,\n log,\n });\n expect(result.approver.password).toBeUndefined();\n });\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers-config.module.test.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"providers-config.module.test.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/domain/credentials/__tests__/providers-config.module.test.ts"],"names":[],"mappings":""}
|
|
@@ -5,8 +5,8 @@ import { afterEach, describe, expect, it, vi } from 'vitest';
|
|
|
5
5
|
* The load-bearing properties: only the SELECTED providers' secrets are
|
|
6
6
|
* prompted (an unselected provider contributes nothing), and skipping the whole
|
|
7
7
|
* selection still completes. Only `@inquirer/prompts` is mocked — the real
|
|
8
|
-
*
|
|
9
|
-
* provider owns, so this also pins that the catalog resolves real providers.
|
|
8
|
+
* `getProviderSelectionCatalog()`, backed by the COMPOSED provider catalogue, drives which secrets
|
|
9
|
+
* each provider owns, so this also pins that the catalog resolves real providers.
|
|
10
10
|
*/
|
|
11
11
|
const { checkboxMock, confirmMock, inputMock, passwordMock } = vi.hoisted(() => ({
|
|
12
12
|
checkboxMock: vi.fn(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers-config.module.test.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"providers-config.module.test.js","sourceRoot":"","sources":["../../../../../../src/modules/domain/credentials/__tests__/providers-config.module.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAG7D;;;;;;;;GAQG;AAEH,MAAM,EA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,GAAG,MAAM,kCAAkC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;QAExF,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,aAAa,EAAE,CAAC;QAC3C,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QAC5D,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAClD,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { afterEach, describe, expect, it, vi } from 'vitest';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\n/**\n * `wildo setup` Step 6/6 — the SELECT-THEN-PROMPT provider credentials flow.\n *\n * The load-bearing properties: only the SELECTED providers' secrets are\n * prompted (an unselected provider contributes nothing), and skipping the whole\n * selection still completes. Only `@inquirer/prompts` is mocked — the real\n * `getProviderSelectionCatalog()`, backed by the COMPOSED provider catalogue, drives which secrets\n * each provider owns, so this also pins that the catalog resolves real providers.\n */\n\nconst { checkboxMock, confirmMock, inputMock, passwordMock } = vi.hoisted(() => ({\n checkboxMock: vi.fn<[], Promise<string[]>>(),\n confirmMock: vi.fn<[], Promise<boolean>>(),\n inputMock: vi.fn<[{ message: string }], Promise<string>>(),\n passwordMock: vi.fn<[{ message: string }], Promise<string>>(),\n}));\n\nvi.mock('@inquirer/prompts', () => ({\n checkbox: checkboxMock,\n confirm: confirmMock,\n input: inputMock,\n password: passwordMock,\n // `Separator` is used with `new Separator(...)` to render group headers.\n Separator: class {\n separator: string;\n type = 'separator' as const;\n constructor(text?: string) { this.separator = text ?? '──'; }\n },\n}));\n\nimport { platformProvidersCredentialsModule } from '../providers-config.module';\n\nfunction createLogger(): Logger {\n return { info: vi.fn(), success: vi.fn(), warn: vi.fn(), error: vi.fn() };\n}\n\n/** Resolve each masked secret prompt by the env-var name embedded in its message. */\nfunction passwordByEnvVar(values: Record<string, string>): void {\n passwordMock.mockImplementation(async ({ message }) => {\n const match = Object.keys(values).find((envVar) => message.includes(envVar));\n return match ? values[match] : '';\n });\n}\n\nafterEach(() => {\n vi.clearAllMocks();\n});\n\ndescribe('platformProvidersCredentialsModule — select-then-prompt', () => {\n it('prompts ONLY the selected providers, and nothing for the rest', async () => {\n checkboxMock.mockResolvedValue(['openai', 'stripe']);\n confirmMock.mockResolvedValue(false); // no GitHub org integration\n passwordByEnvVar({\n OPENAI_API_KEY: 'sk-openai-live',\n STRIPE_SECRET_KEY: 'sk_test_secret',\n STRIPE_WEBHOOK_SECRET: 'whsec_test',\n });\n\n const result = await platformProvidersCredentialsModule.prompt({ log: createLogger() });\n\n // Exactly the selected providers' secrets — no ANTHROPIC_API_KEY, no others.\n expect(result.providerEnv).toEqual({\n OPENAI_API_KEY: 'sk-openai-live',\n STRIPE_SECRET_KEY: 'sk_test_secret',\n STRIPE_WEBHOOK_SECRET: 'whsec_test',\n });\n // Three secrets across the two selected providers → three masked prompts.\n expect(passwordMock).toHaveBeenCalledTimes(3);\n for (const call of passwordMock.mock.calls) {\n expect((call[0] as { mask?: boolean }).mask).toBe(true);\n }\n expect(result.githubOrgUrl).toBeUndefined();\n });\n\n it('completes with no provider env when the operator selects nothing', async () => {\n checkboxMock.mockResolvedValue([]);\n confirmMock.mockResolvedValue(false);\n\n const result = await platformProvidersCredentialsModule.prompt({ log: createLogger() });\n\n expect(result).toEqual({ providerEnv: undefined });\n expect(passwordMock).not.toHaveBeenCalled();\n });\n\n it('omits an optional secret left blank but keeps the required ones', async () => {\n // Google declares GOOGLE_API_KEY + GOOGLE_OAUTH2_CLIENT_SECRET (both required\n // by its contract); supply one and blank the other to prove blank-skipping.\n checkboxMock.mockResolvedValue(['google']);\n confirmMock.mockResolvedValue(false);\n passwordByEnvVar({ GOOGLE_API_KEY: 'goog-key' }); // OAUTH2 secret resolves to '' → skipped\n\n const result = await platformProvidersCredentialsModule.prompt({ log: createLogger() });\n\n expect(result.providerEnv).toEqual({ GOOGLE_API_KEY: 'goog-key' });\n });\n\n it('collects the GitHub organization integration into the github block, not providerEnv', async () => {\n checkboxMock.mockResolvedValue([]);\n confirmMock.mockResolvedValue(true);\n inputMock\n .mockResolvedValueOnce('https://github.com/acme')\n .mockResolvedValueOnce('acme-admin');\n passwordMock.mockResolvedValue('ghp_token');\n\n const result = await platformProvidersCredentialsModule.prompt({ log: createLogger() });\n\n expect(result.providerEnv).toBeUndefined();\n expect(result.githubOrgUrl).toBe('https://github.com/acme');\n expect(result.githubAdminUser).toBe('acme-admin');\n expect(result.githubAdminToken).toBe('ghp_token');\n });\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-user.module.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"admin-user.module.d.ts","sourceRoot":"","sources":["../../../../../src/modules/domain/credentials/admin-user.module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGtD,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;CACb;AAiBD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,uBAAuB,EAAE,aAAa,CAAC,kBAAkB,EAAE,cAAc,CAiDrF,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CA0BxE"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { AdminUserInput } from '../../../modules/domain/credentials/module.types';
|
|
2
|
+
import type { Logger } from '../../../kernel/types';
|
|
3
|
+
/**
|
|
4
|
+
* The SECOND platform administrator — the one who approves an application-wide access grant (#575).
|
|
5
|
+
*
|
|
6
|
+
* ## Why a second identity is not optional
|
|
7
|
+
*
|
|
8
|
+
* `applicationAccessGrantApproverIsDistinct` refuses `operator === approver`, and refuses an ABSENT
|
|
9
|
+
* approver too, so no system context can stand in. The application-scoped grant has deliberately no
|
|
10
|
+
* auto-approval branch — the schema explains that the per-tenant grant may auto-approve because a
|
|
11
|
+
* named tenant can opt in above it, while an application-wide grant names no tenant, so *"a grant
|
|
12
|
+
* that could approve itself would make the two-person rule ceremonial"*.
|
|
13
|
+
*
|
|
14
|
+
* A platform with one administrator therefore cannot use the widest read it offers. Not "is
|
|
15
|
+
* discouraged from" — cannot. The refusal was built and the party who discharges it never was, which
|
|
16
|
+
* is the shape `.claude/rules/administrative-continuity-floors.md` exists to catch: a block shipped
|
|
17
|
+
* without the paired path.
|
|
18
|
+
*
|
|
19
|
+
* ## Stated, or derived — never invented
|
|
20
|
+
*
|
|
21
|
+
* `admin-user.module.ts` documents at length why the administrator's identity is never a
|
|
22
|
+
* placeholder: a literal `Admin` / `User` / `noreply@example.com` silently seeds the platform-admin
|
|
23
|
+
* USER RECORD with non-meaningful identity, regressing audit trails, password-reset email and the
|
|
24
|
+
* bootstrap email-confirm flow. That doctrine binds here too, and it is why there are exactly two
|
|
25
|
+
* doors and no third:
|
|
26
|
+
*
|
|
27
|
+
* 1. **STATED** — `WILDO_INIT_APPROVER_*`, all four together. Available in every environment, and
|
|
28
|
+
* the only door for a real second person.
|
|
29
|
+
* 2. **DERIVED** — sub-addressed from the administrator the operator already supplied, for a LOCAL
|
|
30
|
+
* environment only.
|
|
31
|
+
*
|
|
32
|
+
* The derived form is not a placeholder: every field of it comes from a real identity the operator
|
|
33
|
+
* authored moments earlier. `ada@example.com` becomes `ada+approver@example.com`, which RFC 5233
|
|
34
|
+
* sub-addressing delivers to the same mailbox — so one developer can complete both legs of the
|
|
35
|
+
* ceremony without a second inbox, which is the whole point of deriving rather than prompting again.
|
|
36
|
+
*
|
|
37
|
+
* ## The local property that must never travel
|
|
38
|
+
*
|
|
39
|
+
* The derived approver shares the administrator's password, so locally ONE PERSON HOLDS BOTH
|
|
40
|
+
* SIGNATURES and the two-person rule is ceremonial there. That is the accepted trade — the
|
|
41
|
+
* alternative is a developer who cannot exercise an application-wide read at all — and it is exactly
|
|
42
|
+
* why {@link resolveApproverIdentity} takes `isLocalEnvironment` as an argument it cannot infer.
|
|
43
|
+
* A caller must SAY that it is local; nothing here guesses, and no environment acquires the
|
|
44
|
+
* derivation by default.
|
|
45
|
+
*/
|
|
46
|
+
export interface ApproverIdentityResolution {
|
|
47
|
+
readonly approver: AdminUserInput;
|
|
48
|
+
/** How the identity was obtained — reported to the operator, because the two differ in strength. */
|
|
49
|
+
readonly provenance: ApproverIdentityProvenance;
|
|
50
|
+
}
|
|
51
|
+
export declare enum ApproverIdentityProvenance {
|
|
52
|
+
/** Every field came from `WILDO_INIT_APPROVER_*`. A real second person. */
|
|
53
|
+
STATED = "stated",
|
|
54
|
+
/** Sub-addressed from the administrator, local only. One human, two accounts. */
|
|
55
|
+
DERIVED_FROM_ADMINISTRATOR = "derived-from-administrator"
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Sub-address a local approver from the administrator's own identity.
|
|
59
|
+
*
|
|
60
|
+
* Exported for its own pin. The rule is the whole contract and is easy to get subtly wrong: the tag
|
|
61
|
+
* goes before the `@`, an address that ALREADY carries a `+tag` must not grow a second one (that
|
|
62
|
+
* produces `ada+ci+approver@…`, a third mailbox nobody asked for), and the name fields carry through
|
|
63
|
+
* unchanged because they describe the same human.
|
|
64
|
+
*/
|
|
65
|
+
export declare function deriveLocalApproverIdentity(admin: AdminUserInput): AdminUserInput;
|
|
66
|
+
/**
|
|
67
|
+
* Resolve the approver identity for an environment, or refuse.
|
|
68
|
+
*
|
|
69
|
+
* `isLocalEnvironment` is a required argument rather than something read from the ambient
|
|
70
|
+
* environment, so that no caller acquires the derivation by omission. A remote deployment states its
|
|
71
|
+
* approver or gets nothing — and "nothing" here is a thrown error, because an approver silently
|
|
72
|
+
* absent is a platform whose widest read stops working weeks later, at a moment nobody connects to
|
|
73
|
+
* setup.
|
|
74
|
+
*
|
|
75
|
+
* `admin.password` may be `undefined` at this point (the secrets writer mints one when the operator
|
|
76
|
+
* typed none), and the derived approver inherits that. The caller resolves both passwords from the
|
|
77
|
+
* same place afterwards, which is what keeps "same password as the administrator" true rather than
|
|
78
|
+
* approximately true.
|
|
79
|
+
*/
|
|
80
|
+
export declare function resolveApproverIdentity(params: {
|
|
81
|
+
readonly admin: AdminUserInput;
|
|
82
|
+
readonly isLocalEnvironment: boolean;
|
|
83
|
+
readonly log: Logger;
|
|
84
|
+
}): ApproverIdentityResolution;
|
|
85
|
+
//# sourceMappingURL=approver-user.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approver-user.module.d.ts","sourceRoot":"","sources":["../../../../../src/modules/domain/credentials/approver-user.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,oGAAoG;IACpG,QAAQ,CAAC,UAAU,EAAE,0BAA0B,CAAC;CACjD;AAED,oBAAY,0BAA0B;IACpC,2EAA2E;IAC3E,MAAM,WAAW;IACjB,iFAAiF;IACjF,0BAA0B,+BAA+B;CAC1D;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,cAAc,GAAG,cAAc,CAejF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE;IAC9C,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB,GAAG,0BAA0B,CAmD7B"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
import { WildoCliInitApproverEnvKeys } from '../../../services/credentials/credentials.schemas.js';
|
|
3
|
+
export var ApproverIdentityProvenance;
|
|
4
|
+
(function (ApproverIdentityProvenance) {
|
|
5
|
+
/** Every field came from `WILDO_INIT_APPROVER_*`. A real second person. */
|
|
6
|
+
ApproverIdentityProvenance["STATED"] = "stated";
|
|
7
|
+
/** Sub-addressed from the administrator, local only. One human, two accounts. */
|
|
8
|
+
ApproverIdentityProvenance["DERIVED_FROM_ADMINISTRATOR"] = "derived-from-administrator";
|
|
9
|
+
})(ApproverIdentityProvenance || (ApproverIdentityProvenance = {}));
|
|
10
|
+
/**
|
|
11
|
+
* Sub-address a local approver from the administrator's own identity.
|
|
12
|
+
*
|
|
13
|
+
* Exported for its own pin. The rule is the whole contract and is easy to get subtly wrong: the tag
|
|
14
|
+
* goes before the `@`, an address that ALREADY carries a `+tag` must not grow a second one (that
|
|
15
|
+
* produces `ada+ci+approver@…`, a third mailbox nobody asked for), and the name fields carry through
|
|
16
|
+
* unchanged because they describe the same human.
|
|
17
|
+
*/
|
|
18
|
+
export function deriveLocalApproverIdentity(admin) {
|
|
19
|
+
const separatorIndex = admin.email.lastIndexOf('@');
|
|
20
|
+
const localPart = admin.email.slice(0, separatorIndex);
|
|
21
|
+
const domain = admin.email.slice(separatorIndex + 1);
|
|
22
|
+
// An existing `+tag` is REPLACED, not appended to: `ada+ci@x` and `ada@x` must both derive
|
|
23
|
+
// `ada+approver@x`, or a CI environment and a laptop would disagree about who the approver is
|
|
24
|
+
// while both believing they had derived one.
|
|
25
|
+
const baseLocalPart = localPart.includes('+') ? localPart.slice(0, localPart.indexOf('+')) : localPart;
|
|
26
|
+
return {
|
|
27
|
+
email: `${baseLocalPart}+approver@${domain}`,
|
|
28
|
+
firstName: admin.firstName,
|
|
29
|
+
lastName: admin.lastName,
|
|
30
|
+
password: admin.password,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Resolve the approver identity for an environment, or refuse.
|
|
35
|
+
*
|
|
36
|
+
* `isLocalEnvironment` is a required argument rather than something read from the ambient
|
|
37
|
+
* environment, so that no caller acquires the derivation by omission. A remote deployment states its
|
|
38
|
+
* approver or gets nothing — and "nothing" here is a thrown error, because an approver silently
|
|
39
|
+
* absent is a platform whose widest read stops working weeks later, at a moment nobody connects to
|
|
40
|
+
* setup.
|
|
41
|
+
*
|
|
42
|
+
* `admin.password` may be `undefined` at this point (the secrets writer mints one when the operator
|
|
43
|
+
* typed none), and the derived approver inherits that. The caller resolves both passwords from the
|
|
44
|
+
* same place afterwards, which is what keeps "same password as the administrator" true rather than
|
|
45
|
+
* approximately true.
|
|
46
|
+
*/
|
|
47
|
+
export function resolveApproverIdentity(params) {
|
|
48
|
+
const stated = {
|
|
49
|
+
email: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_EMAIL),
|
|
50
|
+
firstName: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_FIRSTNAME),
|
|
51
|
+
lastName: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_LASTNAME),
|
|
52
|
+
password: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_PASSWORD),
|
|
53
|
+
};
|
|
54
|
+
const statedKeys = Object.entries(stated).filter(([, value]) => Boolean(value));
|
|
55
|
+
// A PARTIAL set is an operator mistake, never a request to fall back — the same reading
|
|
56
|
+
// `init.command.ts` applies to a partial `--admin-*` flag set. Falling through to the derivation
|
|
57
|
+
// here would silently discard the fields that WERE supplied and hand back a different person.
|
|
58
|
+
if (statedKeys.length > 0 && statedKeys.length < 4) {
|
|
59
|
+
const missing = Object.values(WildoCliInitApproverEnvKeys).filter((key) => !process.env[key]?.trim());
|
|
60
|
+
throw new Error(`The approving administrator is partially stated. Missing: ${missing.join(', ')}. `
|
|
61
|
+
+ `Set all four, or set none — a partial set would silently produce a different identity than the one intended.`);
|
|
62
|
+
}
|
|
63
|
+
if (statedKeys.length === 4) {
|
|
64
|
+
if (stated.email === params.admin.email) {
|
|
65
|
+
// The two-person rule compares USER IDs at the moment of approval, so two identical identities
|
|
66
|
+
// would provision one account and refuse every approval — a failure that surfaces far from
|
|
67
|
+
// here and reads as a permissions bug. Refuse where the cause is visible.
|
|
68
|
+
throw new Error(`${WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_EMAIL} is the same address as the administrator's. `
|
|
69
|
+
+ `The approving administrator must be a DIFFERENT person: an application-wide access grant refuses an approver who is its own requester.`);
|
|
70
|
+
}
|
|
71
|
+
params.log.info(chalk.dim(` Approving administrator from env seeds: ${stated.email}`));
|
|
72
|
+
return {
|
|
73
|
+
approver: { email: stated.email, firstName: stated.firstName, lastName: stated.lastName, password: stated.password },
|
|
74
|
+
provenance: ApproverIdentityProvenance.STATED,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
if (!params.isLocalEnvironment) {
|
|
78
|
+
throw new Error(`This environment states no approving administrator. Set ${Object.values(WildoCliInitApproverEnvKeys).join(', ')}. `
|
|
79
|
+
+ `An application-wide access grant is approved by a SECOND platform administrator and refuses an approver who is its own requester, `
|
|
80
|
+
+ `so a platform with one administrator cannot read any application-wide surface. `
|
|
81
|
+
+ `Only a local environment may derive the second identity from the first, and it does so only because one developer holds both — `
|
|
82
|
+
+ `which is precisely what a real deployment must not do.`);
|
|
83
|
+
}
|
|
84
|
+
const approver = deriveLocalApproverIdentity(params.admin);
|
|
85
|
+
params.log.info(chalk.dim(` Approving administrator derived for local use: ${approver.email} (same mailbox, same password)`));
|
|
86
|
+
return { approver, provenance: ApproverIdentityProvenance.DERIVED_FROM_ADMINISTRATOR };
|
|
87
|
+
}
|
|
88
|
+
function readEnv(key) {
|
|
89
|
+
const value = process.env[key]?.trim();
|
|
90
|
+
return value && value.length > 0 ? value : undefined;
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=approver-user.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approver-user.module.js","sourceRoot":"","sources":["../../../../../src/modules/domain/credentials/approver-user.module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,2BAA2B,EAAE,MAAM,qDAAqD,CAAC;AAqDlG,MAAM,CAAN,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACpC,2EAA2E;IAC3E,+CAAiB,CAAA;IACjB,iFAAiF;IACjF,uFAAyD,CAAA;AAC3D,CAAC,EALW,0BAA0B,KAA1B,0BAA0B,QAKrC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAqB;IAC/D,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACpD,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC;IACrD,2FAA2F;IAC3F,8FAA8F;IAC9F,6CAA6C;IAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAEvG,OAAO;QACL,KAAK,EAAE,GAAG,aAAa,aAAa,MAAM,EAAE;QAC5C,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,QAAQ,E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/credentials/credentials.schemas';\nimport type { AdminUserInput } from '~wildo-cli/modules/domain/credentials/module.types';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\n/**\n * The SECOND platform administrator — the one who approves an application-wide access grant (#575).\n *\n * ## Why a second identity is not optional\n *\n * `applicationAccessGrantApproverIsDistinct` refuses `operator === approver`, and refuses an ABSENT\n * approver too, so no system context can stand in. The application-scoped grant has deliberately no\n * auto-approval branch — the schema explains that the per-tenant grant may auto-approve because a\n * named tenant can opt in above it, while an application-wide grant names no tenant, so *\"a grant\n * that could approve itself would make the two-person rule ceremonial\"*.\n *\n * A platform with one administrator therefore cannot use the widest read it offers. Not \"is\n * discouraged from\" — cannot. The refusal was built and the party who discharges it never was, which\n * is the shape `.claude/rules/administrative-continuity-floors.md` exists to catch: a block shipped\n * without the paired path.\n *\n * ## Stated, or derived — never invented\n *\n * `admin-user.module.ts` documents at length why the administrator's identity is never a\n * placeholder: a literal `Admin` / `User` / `noreply@example.com` silently seeds the platform-admin\n * USER RECORD with non-meaningful identity, regressing audit trails, password-reset email and the\n * bootstrap email-confirm flow. That doctrine binds here too, and it is why there are exactly two\n * doors and no third:\n *\n * 1. **STATED** — `WILDO_INIT_APPROVER_*`, all four together. Available in every environment, and\n * the only door for a real second person.\n * 2. **DERIVED** — sub-addressed from the administrator the operator already supplied, for a LOCAL\n * environment only.\n *\n * The derived form is not a placeholder: every field of it comes from a real identity the operator\n * authored moments earlier. `ada@example.com` becomes `ada+approver@example.com`, which RFC 5233\n * sub-addressing delivers to the same mailbox — so one developer can complete both legs of the\n * ceremony without a second inbox, which is the whole point of deriving rather than prompting again.\n *\n * ## The local property that must never travel\n *\n * The derived approver shares the administrator's password, so locally ONE PERSON HOLDS BOTH\n * SIGNATURES and the two-person rule is ceremonial there. That is the accepted trade — the\n * alternative is a developer who cannot exercise an application-wide read at all — and it is exactly\n * why {@link resolveApproverIdentity} takes `isLocalEnvironment` as an argument it cannot infer.\n * A caller must SAY that it is local; nothing here guesses, and no environment acquires the\n * derivation by default.\n */\nexport interface ApproverIdentityResolution {\n readonly approver: AdminUserInput;\n /** How the identity was obtained — reported to the operator, because the two differ in strength. */\n readonly provenance: ApproverIdentityProvenance;\n}\n\nexport enum ApproverIdentityProvenance {\n /** Every field came from `WILDO_INIT_APPROVER_*`. A real second person. */\n STATED = 'stated',\n /** Sub-addressed from the administrator, local only. One human, two accounts. */\n DERIVED_FROM_ADMINISTRATOR = 'derived-from-administrator',\n}\n\n/**\n * Sub-address a local approver from the administrator's own identity.\n *\n * Exported for its own pin. The rule is the whole contract and is easy to get subtly wrong: the tag\n * goes before the `@`, an address that ALREADY carries a `+tag` must not grow a second one (that\n * produces `ada+ci+approver@…`, a third mailbox nobody asked for), and the name fields carry through\n * unchanged because they describe the same human.\n */\nexport function deriveLocalApproverIdentity(admin: AdminUserInput): AdminUserInput {\n const separatorIndex = admin.email.lastIndexOf('@');\n const localPart = admin.email.slice(0, separatorIndex);\n const domain = admin.email.slice(separatorIndex + 1);\n // An existing `+tag` is REPLACED, not appended to: `ada+ci@x` and `ada@x` must both derive\n // `ada+approver@x`, or a CI environment and a laptop would disagree about who the approver is\n // while both believing they had derived one.\n const baseLocalPart = localPart.includes('+') ? localPart.slice(0, localPart.indexOf('+')) : localPart;\n\n return {\n email: `${baseLocalPart}+approver@${domain}`,\n firstName: admin.firstName,\n lastName: admin.lastName,\n password: admin.password,\n };\n}\n\n/**\n * Resolve the approver identity for an environment, or refuse.\n *\n * `isLocalEnvironment` is a required argument rather than something read from the ambient\n * environment, so that no caller acquires the derivation by omission. A remote deployment states its\n * approver or gets nothing — and \"nothing\" here is a thrown error, because an approver silently\n * absent is a platform whose widest read stops working weeks later, at a moment nobody connects to\n * setup.\n *\n * `admin.password` may be `undefined` at this point (the secrets writer mints one when the operator\n * typed none), and the derived approver inherits that. The caller resolves both passwords from the\n * same place afterwards, which is what keeps \"same password as the administrator\" true rather than\n * approximately true.\n */\nexport function resolveApproverIdentity(params: {\n readonly admin: AdminUserInput;\n readonly isLocalEnvironment: boolean;\n readonly log: Logger;\n}): ApproverIdentityResolution {\n const stated = {\n email: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_EMAIL),\n firstName: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_FIRSTNAME),\n lastName: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_LASTNAME),\n password: readEnv(WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_PASSWORD),\n };\n\n const statedKeys = Object.entries(stated).filter(([, value]) => Boolean(value));\n\n // A PARTIAL set is an operator mistake, never a request to fall back — the same reading\n // `init.command.ts` applies to a partial `--admin-*` flag set. Falling through to the derivation\n // here would silently discard the fields that WERE supplied and hand back a different person.\n if (statedKeys.length > 0 && statedKeys.length < 4) {\n const missing = Object.values(WildoCliInitApproverEnvKeys).filter((key) => !process.env[key]?.trim());\n throw new Error(\n `The approving administrator is partially stated. Missing: ${missing.join(', ')}. `\n + `Set all four, or set none — a partial set would silently produce a different identity than the one intended.`,\n );\n }\n\n if (statedKeys.length === 4) {\n if (stated.email === params.admin.email) {\n // The two-person rule compares USER IDs at the moment of approval, so two identical identities\n // would provision one account and refuse every approval — a failure that surfaces far from\n // here and reads as a permissions bug. Refuse where the cause is visible.\n throw new Error(\n `${WildoCliInitApproverEnvKeys.WILDO_INIT_APPROVER_EMAIL} is the same address as the administrator's. `\n + `The approving administrator must be a DIFFERENT person: an application-wide access grant refuses an approver who is its own requester.`,\n );\n }\n params.log.info(chalk.dim(` Approving administrator from env seeds: ${stated.email}`));\n return {\n approver: { email: stated.email!, firstName: stated.firstName!, lastName: stated.lastName!, password: stated.password },\n provenance: ApproverIdentityProvenance.STATED,\n };\n }\n\n if (!params.isLocalEnvironment) {\n throw new Error(\n `This environment states no approving administrator. Set ${Object.values(WildoCliInitApproverEnvKeys).join(', ')}. `\n + `An application-wide access grant is approved by a SECOND platform administrator and refuses an approver who is its own requester, `\n + `so a platform with one administrator cannot read any application-wide surface. `\n + `Only a local environment may derive the second identity from the first, and it does so only because one developer holds both — `\n + `which is precisely what a real deployment must not do.`,\n );\n }\n\n const approver = deriveLocalApproverIdentity(params.admin);\n params.log.info(chalk.dim(` Approving administrator derived for local use: ${approver.email} (same mailbox, same password)`));\n return { approver, provenance: ApproverIdentityProvenance.DERIVED_FROM_ADMINISTRATOR };\n}\n\nfunction readEnv(key: WildoCliInitApproverEnvKeys): string | undefined {\n const value = process.env[key]?.trim();\n return value && value.length > 0 ? value : undefined;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.types.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"module.types.d.ts","sourceRoot":"","sources":["../../../../../src/modules/domain/credentials/module.types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC"}
|
|
@@ -12,20 +12,28 @@ export interface ProvidersModuleCtx {
|
|
|
12
12
|
* Rather than marching the operator through every known provider secret (30+
|
|
13
13
|
* prompts, almost all skipped with Enter), this first presents a grouped
|
|
14
14
|
* multi-select of the providers the framework knows about — derived entirely
|
|
15
|
-
* from the
|
|
15
|
+
* from the COMPOSED provider catalogue via {@link getProviderSelectionCatalog}
|
|
16
16
|
* — and then prompts ONLY the secrets of the providers that were selected.
|
|
17
17
|
* An unselected provider contributes nothing: no prompt, no env var.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
19
|
+
* "Composed" rather than "the backend provider registry" is the whole of #329:
|
|
20
|
+
* that registry can by construction only hold the ENGINE's own modules, so a
|
|
21
|
+
* provider shipped as its own package could not be offered here at all — the
|
|
22
|
+
* operator was never prompted for its secret, and the key that never arrived
|
|
23
|
+
* had no visible cause. The catalogue is the engine tier PLUS whatever
|
|
24
|
+
* discovery registered, so a package-shipped provider prompts like any other.
|
|
25
|
+
*
|
|
26
|
+
* Selecting a provider prompts every secret its `secretsContract` declares
|
|
27
|
+
* (a contribution ships the same shape, values-free): `required` secrets are
|
|
28
|
+
* validated non-empty, optional ones may be skipped with Enter. A provider that
|
|
29
|
+
* bundles more than one protocol (e.g. Google's LLM key AND its OAuth2 client
|
|
30
|
+
* secret are both `required`) therefore prompts both — that is exactly what its
|
|
31
|
+
* contract states is needed to boot.
|
|
24
32
|
*
|
|
25
33
|
* The GitHub ORGANIZATION integration (org URL + admin user + admin token) is a
|
|
26
|
-
* separate concern from any
|
|
27
|
-
* block of `secrets.json`, not in `providerEnv` — so it is offered as
|
|
28
|
-
* gated step after provider selection.
|
|
34
|
+
* separate concern from any provider's own secrets contract — it lands in the
|
|
35
|
+
* `github` block of `secrets.json`, not in `providerEnv` — so it is offered as
|
|
36
|
+
* its own gated step after provider selection.
|
|
29
37
|
*/
|
|
30
38
|
export declare const platformProvidersCredentialsModule: CommandModule<ProvidersModuleCtx, ProviderKeysInput>;
|
|
31
39
|
//# sourceMappingURL=providers-config.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers-config.module.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"providers-config.module.d.ts","sourceRoot":"","sources":["../../../../../src/modules/domain/credentials/providers-config.module.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAC5F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAStD,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;CACb;AAiBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,kCAAkC,EAAE,aAAa,CAAC,kBAAkB,EAAE,iBAAiB,CA2CnG,CAAC"}
|