@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
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The npm-name prefix of a provider package (plan D3). Deliberately duplicated from the publish
|
|
3
|
+
* lane's `PUBLISHED_PROVIDER_PACKAGE_NAME_PREFIX` rather than imported: that constant answers "does
|
|
4
|
+
* this package publish", this one answers "is this a provider an application declared". They are
|
|
5
|
+
* equal today and are allowed to stop being — a package that stops publishing is still linked.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PROVIDER_PACKAGE_NAME_PREFIX = "@wildo-ai/provider-";
|
|
8
|
+
/**
|
|
9
|
+
* The SCRAPED CATALOGUE package — one name, hundreds of vendors behind subpath exports.
|
|
10
|
+
*
|
|
11
|
+
* This service was built (issue #334, slice S6) against a population of `@wildo-ai/provider-<ref>`
|
|
12
|
+
* packages, one per vendor, and its whole design argument is that population's size: *"at two
|
|
13
|
+
* hundred provider packages every scaffolded application would carry two hundred `file:` links to
|
|
14
|
+
* packages it never imports."* That shape was REVERSED on 2026-09-06 in favour of one package with
|
|
15
|
+
* a subpath per vendor, and nothing here followed.
|
|
16
|
+
*
|
|
17
|
+
* Measured 2026-09-09: **no `@wildo-ai/provider-<ref>` package exists anywhere in the repository**,
|
|
18
|
+
* while both dogfood applications declare `@wildo-ai/providers`. So the prefix above matched
|
|
19
|
+
* nothing, at both production call sites, on every run — the service executed, found zero declared
|
|
20
|
+
* providers, and reported success. An application adding its first catalogue provider through
|
|
21
|
+
* `wildo compose add-provider` got the dependency and no override, and its next `pnpm install`
|
|
22
|
+
* could not resolve the package. That is not hypothetical: it is what made the ten providers
|
|
23
|
+
* declared in Wonder Todos on 2026-09-09 need a hand-written override.
|
|
24
|
+
*
|
|
25
|
+
* The PREFIX is kept rather than replaced. It still answers the question this service exists for —
|
|
26
|
+
* "is this a provider package an application declared" — for an application-owned or future
|
|
27
|
+
* per-vendor package, and the two forms are matched by one predicate so neither call site has to
|
|
28
|
+
* remember both.
|
|
29
|
+
*/
|
|
30
|
+
export declare const PROVIDER_CATALOGUE_PACKAGE_NAME = "@wildo-ai/providers";
|
|
31
|
+
/**
|
|
32
|
+
* Whether a declared dependency name is a provider package this service links.
|
|
33
|
+
*
|
|
34
|
+
* A PREDICATE rather than a prefix test, because there are now two shapes and a call site that
|
|
35
|
+
* remembers only one is exactly how this service came to match nothing.
|
|
36
|
+
*/
|
|
37
|
+
export declare function isProviderPackageName(name: string): boolean;
|
|
38
|
+
/** A framework workspace member: its package name and its absolute root. */
|
|
39
|
+
export interface FrameworkWorkspacePackage {
|
|
40
|
+
name: string;
|
|
41
|
+
root: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Resolve every framework workspace member's package name → absolute root.
|
|
45
|
+
*
|
|
46
|
+
* Lives here rather than in `saas-skeleton.service.ts` because two callers now need it — the
|
|
47
|
+
* scaffolder, and the provider-link reconciliation `wildo compose` runs — and a second copy of a
|
|
48
|
+
* workspace reader is a second answer to "what packages does the framework carry".
|
|
49
|
+
*
|
|
50
|
+
* The one-level trailing glob stays supported here even though `pnpm-workspace.yaml` uses explicit
|
|
51
|
+
* entries today: that file records the measurement (two repo-root readers refuse or silently drop a
|
|
52
|
+
* wildcard), and when they are fixed this reader must not be the thing that has to change too.
|
|
53
|
+
*/
|
|
54
|
+
export declare function readFrameworkWorkspacePackages(frameworkPath: string): Map<string, FrameworkWorkspacePackage>;
|
|
55
|
+
/** One provider override the reconciliation added or found already correct. */
|
|
56
|
+
export interface ProviderPackageLinkOutcome {
|
|
57
|
+
packageName: string;
|
|
58
|
+
/** `file:<relative path>` in framework-developer mode, the framework version otherwise. */
|
|
59
|
+
overrideValue: string;
|
|
60
|
+
}
|
|
61
|
+
export interface ProviderPackageLinkReconciliation {
|
|
62
|
+
/** Providers the application's manifests declare, sorted. */
|
|
63
|
+
declared: string[];
|
|
64
|
+
/** Overrides written (or that would be written on a dry run). */
|
|
65
|
+
added: ProviderPackageLinkOutcome[];
|
|
66
|
+
/** Declared providers whose override already carries exactly this value. */
|
|
67
|
+
alreadyLinked: ProviderPackageLinkOutcome[];
|
|
68
|
+
/**
|
|
69
|
+
* Declared providers that could not be resolved — no workspace member of that name in
|
|
70
|
+
* framework-developer mode. Reported, never thrown: a declaration for a provider that has not
|
|
71
|
+
* been generated yet is a state an operator can be in, and refusing the whole reconciliation
|
|
72
|
+
* would take every OTHER provider's link down with it.
|
|
73
|
+
*/
|
|
74
|
+
unresolved: string[];
|
|
75
|
+
/**
|
|
76
|
+
* Provider overrides present in the root manifest that no manifest declares any more. Reported
|
|
77
|
+
* only — see the header: this service never removes an override.
|
|
78
|
+
*/
|
|
79
|
+
surplus: string[];
|
|
80
|
+
}
|
|
81
|
+
export declare class ProviderPackageLinksService {
|
|
82
|
+
/**
|
|
83
|
+
* The provider package names an application's own workspace manifests declare.
|
|
84
|
+
*
|
|
85
|
+
* Every dependency field is scanned, not just `dependencies`: a provider reached only from a
|
|
86
|
+
* test or a build step is declared as a devDependency and still has to resolve.
|
|
87
|
+
*/
|
|
88
|
+
static discoverDeclaredProviderPackages(applicationRoot: string): string[];
|
|
89
|
+
/**
|
|
90
|
+
* The application's own workspace members, plus its root.
|
|
91
|
+
*
|
|
92
|
+
* `.wildo-saas/` members are skipped for the same reason the standalone alignment service skips
|
|
93
|
+
* them: the companion drop's manifest is REWRITTEN on every start, so anything reconciled into it
|
|
94
|
+
* is erased and the reconciler would report the same drift forever.
|
|
95
|
+
*/
|
|
96
|
+
static discoverApplicationWorkspaceMembers(applicationRoot: string): string[];
|
|
97
|
+
/**
|
|
98
|
+
* Compute the provider overrides an application needs, given what it declares.
|
|
99
|
+
*
|
|
100
|
+
* `frameworkWorkspacePackages` is the framework checkout's member map in framework-developer
|
|
101
|
+
* mode; pass `null` for app-creator mode, where a provider resolves to the framework version like
|
|
102
|
+
* every other `@wildo-ai/*` package.
|
|
103
|
+
*/
|
|
104
|
+
static resolveProviderOverrides(input: {
|
|
105
|
+
applicationRoot: string;
|
|
106
|
+
frameworkWorkspacePackages: Map<string, {
|
|
107
|
+
root: string;
|
|
108
|
+
}> | null;
|
|
109
|
+
frameworkVersion: string;
|
|
110
|
+
}): {
|
|
111
|
+
overrides: Record<string, string>;
|
|
112
|
+
declared: string[];
|
|
113
|
+
unresolved: string[];
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Merge the resolved provider overrides into the application ROOT manifest.
|
|
117
|
+
*
|
|
118
|
+
* Merge, never replace, and sorted like every other writer of this block (`wildo init`, `wildo
|
|
119
|
+
* align-deps`, the framework alignment script) so a later reconciliation reorders nothing and the
|
|
120
|
+
* diff stays reviewable.
|
|
121
|
+
*/
|
|
122
|
+
static reconcileApplicationProviderLinks(input: {
|
|
123
|
+
applicationRoot: string;
|
|
124
|
+
frameworkWorkspacePackages: Map<string, {
|
|
125
|
+
root: string;
|
|
126
|
+
}> | null;
|
|
127
|
+
frameworkVersion: string;
|
|
128
|
+
write: boolean;
|
|
129
|
+
}): ProviderPackageLinkReconciliation;
|
|
130
|
+
/**
|
|
131
|
+
* The host-facing entry: reconcile and REPORT, resolving the framework layout itself.
|
|
132
|
+
*
|
|
133
|
+
* `frameworkPath` null means app-creator mode — no checkout to link into, so a declared provider
|
|
134
|
+
* resolves to the framework version. The version comes from `wildo-framework.info.json` in a
|
|
135
|
+
* checkout and from the application's own existing `@wildo-ai/*` pin otherwise, because that is
|
|
136
|
+
* the release the application actually has.
|
|
137
|
+
*/
|
|
138
|
+
static reconcileAndReport(input: {
|
|
139
|
+
applicationRoot: string;
|
|
140
|
+
frameworkPath: string | null;
|
|
141
|
+
log: {
|
|
142
|
+
info: (message: string) => void;
|
|
143
|
+
warn: (message: string) => void;
|
|
144
|
+
};
|
|
145
|
+
}): ProviderPackageLinkReconciliation;
|
|
146
|
+
/**
|
|
147
|
+
* The version a provider package pins to in app-creator mode.
|
|
148
|
+
*
|
|
149
|
+
* Read from the checkout's `wildo-framework.info.json` when there is one; otherwise from the
|
|
150
|
+
* application's OWN `pnpm.overrides`, taking the version it already pins for a framework package.
|
|
151
|
+
* Deriving it from the application rather than defaulting is deliberate: a provider must land on
|
|
152
|
+
* the release whose contract it was built against, and the application's existing pins are the
|
|
153
|
+
* only statement of which release that is. With neither available the reconciliation refuses,
|
|
154
|
+
* because inventing a version here would produce an override that installs the wrong engine.
|
|
155
|
+
*/
|
|
156
|
+
private static resolveFrameworkVersionForApplication;
|
|
157
|
+
private static readManifest;
|
|
158
|
+
private static readDirectoryNames;
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=provider-package-links.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-package-links.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/provider-package-links.service.ts"],"names":[],"mappings":"AA0CA;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,wBAAwB,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,+BAA+B,wBAAwB,CAAC;AAErE;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED,4EAA4E;AAC5E,MAAM,WAAW,yB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C,KAAK,EAAE;QAC9C,eAAe,EAAE,MAAM,CAAC;QACxB,0BAA0B,EAAE,GAAG,CAAC,MAAM,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC,GAAG,IAAI,CAAC;QACjE,gBAAgB,EAAE,MAAM,CAAC;QACzB,KAAK,EAAE,OAAO,CAAC;KAChB,GAAG,iCAAiC;IAoCrC;;;;;;;OAOG;IACH,MAAM,CAAC,kBAAkB,CAAC,KAAK,EAAE;QAC/B,eAAe,EAAE,MAAM,CAAC;QACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,GAAG,EAAE;YAAE,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;YAAC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;SAAE,CAAC;KAC3E,GAAG,iCAAiC;IAuCrC;;;;;;;;;OASG;IACH,OAAO,CAAC,MAAM,CAAC,qCAAqC;IAwBpD,OAAO,CAAC,MAAM,CAAC,YAAY;IAK3B,OAAO,CAAC,MAAM,CAAC,kBAAkB;CAGlC"}
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProviderPackageLinksService — resolve an application's DECLARED provider packages, and nothing
|
|
3
|
+
* else (plan D7, slice S6, issue #334).
|
|
4
|
+
*
|
|
5
|
+
* ## The problem this closes
|
|
6
|
+
*
|
|
7
|
+
* `frameworkFileLinkPackages` is the set of framework packages every scaffolded application links,
|
|
8
|
+
* and in framework-developer mode every name in it becomes a `file:` override in the application's
|
|
9
|
+
* root manifest. That is correct for the framework core — an application uses all of it — and it
|
|
10
|
+
* does not survive the provider population: at two hundred provider packages every scaffolded
|
|
11
|
+
* application would carry two hundred `file:` links to packages it never imports, and
|
|
12
|
+
* `saas-skeleton.service.ts` would THROW for any name the workspace could not produce.
|
|
13
|
+
*
|
|
14
|
+
* So the two populations are resolved differently, and the difference is not a size optimisation —
|
|
15
|
+
* it is what each list MEANS:
|
|
16
|
+
*
|
|
17
|
+
* - the framework core is a CURATION: the packages an application always has. It stays authored in
|
|
18
|
+
* `propagated-engine-overrides.json`, because "which of them" is a decision;
|
|
19
|
+
* - the providers are a POPULATION: `@wildo-ai/provider-<ref>`, one per provider, generated by the
|
|
20
|
+
* packager. "Which of them does THIS application link" has exactly one honest answer — the ones
|
|
21
|
+
* its own manifests declare. Nothing needs to list them, and a list would rot the way issue #161
|
|
22
|
+
* measured (a hand-kept sibling list at 37 of 155 names).
|
|
23
|
+
*
|
|
24
|
+
* ## Why the DECLARATION is the source
|
|
25
|
+
*
|
|
26
|
+
* A provider reaches an application by exactly one route: a dependency in one of the application's
|
|
27
|
+
* own package manifests, written by `wildo compose add-provider` (the `package-dependency-add`
|
|
28
|
+
* composition edit kind). Deriving the link set from those declarations means the application says
|
|
29
|
+
* what it uses once, in the place npm itself reads, and the override follows mechanically. The
|
|
30
|
+
* alternative — a second per-application list of "linked providers" — would be a copy that can
|
|
31
|
+
* disagree with the manifests, which is the defect this slice removes rather than relocates.
|
|
32
|
+
*
|
|
33
|
+
* ## What it never does
|
|
34
|
+
*
|
|
35
|
+
* It never REMOVES an override. An override the application authored, or one left behind by a
|
|
36
|
+
* provider it has since dropped, is authored content; removing it silently is how a reconciler
|
|
37
|
+
* becomes an outage. Surplus is reported by the caller, never repaired here.
|
|
38
|
+
*/
|
|
39
|
+
import { existsSync, readFileSync, readdirSync, writeFileSync } from 'fs';
|
|
40
|
+
import { join, relative, sep } from 'path';
|
|
41
|
+
import { parse as parseYaml } from 'yaml';
|
|
42
|
+
/**
|
|
43
|
+
* The npm-name prefix of a provider package (plan D3). Deliberately duplicated from the publish
|
|
44
|
+
* lane's `PUBLISHED_PROVIDER_PACKAGE_NAME_PREFIX` rather than imported: that constant answers "does
|
|
45
|
+
* this package publish", this one answers "is this a provider an application declared". They are
|
|
46
|
+
* equal today and are allowed to stop being — a package that stops publishing is still linked.
|
|
47
|
+
*/
|
|
48
|
+
export const PROVIDER_PACKAGE_NAME_PREFIX = '@wildo-ai/provider-';
|
|
49
|
+
/**
|
|
50
|
+
* The SCRAPED CATALOGUE package — one name, hundreds of vendors behind subpath exports.
|
|
51
|
+
*
|
|
52
|
+
* This service was built (issue #334, slice S6) against a population of `@wildo-ai/provider-<ref>`
|
|
53
|
+
* packages, one per vendor, and its whole design argument is that population's size: *"at two
|
|
54
|
+
* hundred provider packages every scaffolded application would carry two hundred `file:` links to
|
|
55
|
+
* packages it never imports."* That shape was REVERSED on 2026-09-06 in favour of one package with
|
|
56
|
+
* a subpath per vendor, and nothing here followed.
|
|
57
|
+
*
|
|
58
|
+
* Measured 2026-09-09: **no `@wildo-ai/provider-<ref>` package exists anywhere in the repository**,
|
|
59
|
+
* while both dogfood applications declare `@wildo-ai/providers`. So the prefix above matched
|
|
60
|
+
* nothing, at both production call sites, on every run — the service executed, found zero declared
|
|
61
|
+
* providers, and reported success. An application adding its first catalogue provider through
|
|
62
|
+
* `wildo compose add-provider` got the dependency and no override, and its next `pnpm install`
|
|
63
|
+
* could not resolve the package. That is not hypothetical: it is what made the ten providers
|
|
64
|
+
* declared in Wonder Todos on 2026-09-09 need a hand-written override.
|
|
65
|
+
*
|
|
66
|
+
* The PREFIX is kept rather than replaced. It still answers the question this service exists for —
|
|
67
|
+
* "is this a provider package an application declared" — for an application-owned or future
|
|
68
|
+
* per-vendor package, and the two forms are matched by one predicate so neither call site has to
|
|
69
|
+
* remember both.
|
|
70
|
+
*/
|
|
71
|
+
export const PROVIDER_CATALOGUE_PACKAGE_NAME = '@wildo-ai/providers';
|
|
72
|
+
/**
|
|
73
|
+
* Whether a declared dependency name is a provider package this service links.
|
|
74
|
+
*
|
|
75
|
+
* A PREDICATE rather than a prefix test, because there are now two shapes and a call site that
|
|
76
|
+
* remembers only one is exactly how this service came to match nothing.
|
|
77
|
+
*/
|
|
78
|
+
export function isProviderPackageName(name) {
|
|
79
|
+
return name === PROVIDER_CATALOGUE_PACKAGE_NAME || name.startsWith(PROVIDER_PACKAGE_NAME_PREFIX);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Resolve every framework workspace member's package name → absolute root.
|
|
83
|
+
*
|
|
84
|
+
* Lives here rather than in `saas-skeleton.service.ts` because two callers now need it — the
|
|
85
|
+
* scaffolder, and the provider-link reconciliation `wildo compose` runs — and a second copy of a
|
|
86
|
+
* workspace reader is a second answer to "what packages does the framework carry".
|
|
87
|
+
*
|
|
88
|
+
* The one-level trailing glob stays supported here even though `pnpm-workspace.yaml` uses explicit
|
|
89
|
+
* entries today: that file records the measurement (two repo-root readers refuse or silently drop a
|
|
90
|
+
* wildcard), and when they are fixed this reader must not be the thing that has to change too.
|
|
91
|
+
*/
|
|
92
|
+
export function readFrameworkWorkspacePackages(frameworkPath) {
|
|
93
|
+
const workspace = parseYaml(readFileSync(join(frameworkPath, 'pnpm-workspace.yaml'), 'utf8'));
|
|
94
|
+
const packages = new Map();
|
|
95
|
+
for (const memberPattern of workspace.packages ?? []) {
|
|
96
|
+
const candidates = memberPattern.endsWith('/*')
|
|
97
|
+
? (existsSync(join(frameworkPath, memberPattern.slice(0, -2)))
|
|
98
|
+
? readdirSync(join(frameworkPath, memberPattern.slice(0, -2)), { withFileTypes: true })
|
|
99
|
+
.filter((entry) => entry.isDirectory())
|
|
100
|
+
.map((entry) => join(memberPattern.slice(0, -2), entry.name))
|
|
101
|
+
: [])
|
|
102
|
+
: [memberPattern];
|
|
103
|
+
for (const memberRelative of candidates) {
|
|
104
|
+
const manifestPath = join(frameworkPath, memberRelative, 'package.json');
|
|
105
|
+
if (!existsSync(manifestPath))
|
|
106
|
+
continue;
|
|
107
|
+
const manifest = JSON.parse(readFileSync(manifestPath, 'utf8'));
|
|
108
|
+
if (manifest.name)
|
|
109
|
+
packages.set(manifest.name, { name: manifest.name, root: join(frameworkPath, memberRelative) });
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return packages;
|
|
113
|
+
}
|
|
114
|
+
export class ProviderPackageLinksService {
|
|
115
|
+
/**
|
|
116
|
+
* The provider package names an application's own workspace manifests declare.
|
|
117
|
+
*
|
|
118
|
+
* Every dependency field is scanned, not just `dependencies`: a provider reached only from a
|
|
119
|
+
* test or a build step is declared as a devDependency and still has to resolve.
|
|
120
|
+
*/
|
|
121
|
+
static discoverDeclaredProviderPackages(applicationRoot) {
|
|
122
|
+
const declared = new Set();
|
|
123
|
+
for (const member of ProviderPackageLinksService.discoverApplicationWorkspaceMembers(applicationRoot)) {
|
|
124
|
+
const manifest = ProviderPackageLinksService.readManifest(join(applicationRoot, member, 'package.json'));
|
|
125
|
+
if (!manifest)
|
|
126
|
+
continue;
|
|
127
|
+
for (const field of ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies']) {
|
|
128
|
+
for (const name of Object.keys(manifest[field] ?? {})) {
|
|
129
|
+
if (isProviderPackageName(name))
|
|
130
|
+
declared.add(name);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return [...declared].sort();
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* The application's own workspace members, plus its root.
|
|
138
|
+
*
|
|
139
|
+
* `.wildo-saas/` members are skipped for the same reason the standalone alignment service skips
|
|
140
|
+
* them: the companion drop's manifest is REWRITTEN on every start, so anything reconciled into it
|
|
141
|
+
* is erased and the reconciler would report the same drift forever.
|
|
142
|
+
*/
|
|
143
|
+
static discoverApplicationWorkspaceMembers(applicationRoot) {
|
|
144
|
+
const workspacePath = join(applicationRoot, 'pnpm-workspace.yaml');
|
|
145
|
+
const declared = existsSync(workspacePath)
|
|
146
|
+
? (parseYaml(readFileSync(workspacePath, 'utf8'))?.packages ?? [])
|
|
147
|
+
: [];
|
|
148
|
+
const expanded = ['.'];
|
|
149
|
+
for (const member of declared) {
|
|
150
|
+
if (member.startsWith('.wildo-saas/'))
|
|
151
|
+
continue;
|
|
152
|
+
// A trailing one-level glob is the only glob shape an application workspace uses.
|
|
153
|
+
if (member.endsWith('/*')) {
|
|
154
|
+
const base = join(applicationRoot, member.slice(0, -2));
|
|
155
|
+
if (!existsSync(base))
|
|
156
|
+
continue;
|
|
157
|
+
for (const entry of ProviderPackageLinksService.readDirectoryNames(base))
|
|
158
|
+
expanded.push(`${member.slice(0, -2)}/${entry}`);
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
expanded.push(member);
|
|
162
|
+
}
|
|
163
|
+
return expanded.filter((member) => existsSync(join(applicationRoot, member, 'package.json')));
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Compute the provider overrides an application needs, given what it declares.
|
|
167
|
+
*
|
|
168
|
+
* `frameworkWorkspacePackages` is the framework checkout's member map in framework-developer
|
|
169
|
+
* mode; pass `null` for app-creator mode, where a provider resolves to the framework version like
|
|
170
|
+
* every other `@wildo-ai/*` package.
|
|
171
|
+
*/
|
|
172
|
+
static resolveProviderOverrides(input) {
|
|
173
|
+
const declared = ProviderPackageLinksService.discoverDeclaredProviderPackages(input.applicationRoot);
|
|
174
|
+
const overrides = {};
|
|
175
|
+
const unresolved = [];
|
|
176
|
+
for (const packageName of declared) {
|
|
177
|
+
if (input.frameworkWorkspacePackages === null) {
|
|
178
|
+
overrides[packageName] = input.frameworkVersion;
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
const workspacePackage = input.frameworkWorkspacePackages.get(packageName);
|
|
182
|
+
if (!workspacePackage) {
|
|
183
|
+
unresolved.push(packageName);
|
|
184
|
+
continue;
|
|
185
|
+
}
|
|
186
|
+
const relativePath = relative(input.applicationRoot, workspacePackage.root);
|
|
187
|
+
// pnpm reads a POSIX specifier; `relative` yields the host separator on Windows.
|
|
188
|
+
overrides[packageName] = `file:${relativePath.split(sep).join('/')}`;
|
|
189
|
+
}
|
|
190
|
+
return { overrides, declared, unresolved };
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Merge the resolved provider overrides into the application ROOT manifest.
|
|
194
|
+
*
|
|
195
|
+
* Merge, never replace, and sorted like every other writer of this block (`wildo init`, `wildo
|
|
196
|
+
* align-deps`, the framework alignment script) so a later reconciliation reorders nothing and the
|
|
197
|
+
* diff stays reviewable.
|
|
198
|
+
*/
|
|
199
|
+
static reconcileApplicationProviderLinks(input) {
|
|
200
|
+
const { overrides, declared, unresolved } = ProviderPackageLinksService.resolveProviderOverrides(input);
|
|
201
|
+
const rootManifestPath = join(input.applicationRoot, 'package.json');
|
|
202
|
+
const rootManifest = ProviderPackageLinksService.readManifest(rootManifestPath);
|
|
203
|
+
if (!rootManifest) {
|
|
204
|
+
throw new Error(`No package.json at ${rootManifestPath} — provider links are written into the application ROOT manifest.`);
|
|
205
|
+
}
|
|
206
|
+
const existing = rootManifest.pnpm?.overrides ?? {};
|
|
207
|
+
const added = [];
|
|
208
|
+
const alreadyLinked = [];
|
|
209
|
+
for (const [packageName, overrideValue] of Object.entries(overrides)) {
|
|
210
|
+
if (existing[packageName] === overrideValue) {
|
|
211
|
+
alreadyLinked.push({ packageName, overrideValue });
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
214
|
+
added.push({ packageName, overrideValue });
|
|
215
|
+
}
|
|
216
|
+
const surplus = Object.keys(existing)
|
|
217
|
+
.filter((name) => isProviderPackageName(name))
|
|
218
|
+
.filter((name) => !(name in overrides))
|
|
219
|
+
.sort();
|
|
220
|
+
if (input.write && added.length > 0) {
|
|
221
|
+
const merged = { ...existing, ...overrides };
|
|
222
|
+
rootManifest.pnpm = {
|
|
223
|
+
...(rootManifest.pnpm ?? {}),
|
|
224
|
+
overrides: Object.fromEntries(Object.keys(merged).sort().map((name) => [name, merged[name]])),
|
|
225
|
+
};
|
|
226
|
+
writeFileSync(rootManifestPath, `${JSON.stringify(rootManifest, null, 2)}\n`, 'utf8');
|
|
227
|
+
}
|
|
228
|
+
return { declared, added, alreadyLinked, unresolved, surplus };
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* The host-facing entry: reconcile and REPORT, resolving the framework layout itself.
|
|
232
|
+
*
|
|
233
|
+
* `frameworkPath` null means app-creator mode — no checkout to link into, so a declared provider
|
|
234
|
+
* resolves to the framework version. The version comes from `wildo-framework.info.json` in a
|
|
235
|
+
* checkout and from the application's own existing `@wildo-ai/*` pin otherwise, because that is
|
|
236
|
+
* the release the application actually has.
|
|
237
|
+
*/
|
|
238
|
+
static reconcileAndReport(input) {
|
|
239
|
+
/*
|
|
240
|
+
* Nothing declared means nothing to reconcile, and the early return matters: this runs after
|
|
241
|
+
* EVERY scenario, and `resolveFrameworkVersionForApplication` REFUSES rather than inventing a
|
|
242
|
+
* version. Without this guard an application that declares no provider at all could have
|
|
243
|
+
* `wildo compose add-locale` fail on a version it never needed.
|
|
244
|
+
*/
|
|
245
|
+
const declaredProviders = ProviderPackageLinksService.discoverDeclaredProviderPackages(input.applicationRoot);
|
|
246
|
+
if (declaredProviders.length === 0) {
|
|
247
|
+
return { declared: [], added: [], alreadyLinked: [], unresolved: [], surplus: [] };
|
|
248
|
+
}
|
|
249
|
+
const frameworkWorkspacePackages = input.frameworkPath === null
|
|
250
|
+
? null
|
|
251
|
+
: readFrameworkWorkspacePackages(input.frameworkPath);
|
|
252
|
+
const frameworkVersion = ProviderPackageLinksService.resolveFrameworkVersionForApplication(input);
|
|
253
|
+
const result = ProviderPackageLinksService.reconcileApplicationProviderLinks({
|
|
254
|
+
applicationRoot: input.applicationRoot,
|
|
255
|
+
frameworkWorkspacePackages,
|
|
256
|
+
frameworkVersion,
|
|
257
|
+
write: true,
|
|
258
|
+
});
|
|
259
|
+
for (const link of result.added) {
|
|
260
|
+
input.log.info(` ~ package.json (pnpm.overrides ${link.packageName} → ${link.overrideValue})`);
|
|
261
|
+
}
|
|
262
|
+
for (const packageName of result.unresolved) {
|
|
263
|
+
input.log.warn(` ! ${packageName} is declared but no framework workspace member carries that name — `
|
|
264
|
+
+ 'generate the provider package, or remove the declaration.');
|
|
265
|
+
}
|
|
266
|
+
if (result.added.length > 0) {
|
|
267
|
+
input.log.info(' → run `pnpm install` so the new provider link resolves.');
|
|
268
|
+
}
|
|
269
|
+
return result;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* The version a provider package pins to in app-creator mode.
|
|
273
|
+
*
|
|
274
|
+
* Read from the checkout's `wildo-framework.info.json` when there is one; otherwise from the
|
|
275
|
+
* application's OWN `pnpm.overrides`, taking the version it already pins for a framework package.
|
|
276
|
+
* Deriving it from the application rather than defaulting is deliberate: a provider must land on
|
|
277
|
+
* the release whose contract it was built against, and the application's existing pins are the
|
|
278
|
+
* only statement of which release that is. With neither available the reconciliation refuses,
|
|
279
|
+
* because inventing a version here would produce an override that installs the wrong engine.
|
|
280
|
+
*/
|
|
281
|
+
static resolveFrameworkVersionForApplication(input) {
|
|
282
|
+
if (input.frameworkPath !== null) {
|
|
283
|
+
const infoPath = join(input.frameworkPath, 'wildo-framework.info.json');
|
|
284
|
+
if (existsSync(infoPath)) {
|
|
285
|
+
const info = JSON.parse(readFileSync(infoPath, 'utf8'));
|
|
286
|
+
if (typeof info.version === 'string' && info.version.length > 0)
|
|
287
|
+
return info.version;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
const rootManifest = ProviderPackageLinksService.readManifest(join(input.applicationRoot, 'package.json'));
|
|
291
|
+
for (const [name, version] of Object.entries(rootManifest?.pnpm?.overrides ?? {})) {
|
|
292
|
+
if (!name.startsWith('@wildo-ai/'))
|
|
293
|
+
continue;
|
|
294
|
+
if (isProviderPackageName(name))
|
|
295
|
+
continue;
|
|
296
|
+
if (version.startsWith('file:') || version.startsWith('link:'))
|
|
297
|
+
continue;
|
|
298
|
+
return version;
|
|
299
|
+
}
|
|
300
|
+
throw new Error('Cannot resolve which framework release a provider package should pin to: no framework checkout, and the '
|
|
301
|
+
+ "application's pnpm.overrides names no @wildo-ai/* version. Run `wildo align-deps` first.");
|
|
302
|
+
}
|
|
303
|
+
static readManifest(manifestPath) {
|
|
304
|
+
if (!existsSync(manifestPath))
|
|
305
|
+
return null;
|
|
306
|
+
return JSON.parse(readFileSync(manifestPath, 'utf8'));
|
|
307
|
+
}
|
|
308
|
+
static readDirectoryNames(base) {
|
|
309
|
+
return readdirSync(base, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => entry.name);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
//# sourceMappingURL=provider-package-links.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-package-links.service.js","sourceRoot":"","sources":["../../../../src/services/application/provider-package-links.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,qBAAqB,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,qBAAqB,CAAC;AAErE;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAY;IAChD,OAAO,IAAI,KAAK,+BAA+B,IAAI,IAAI,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC;AACnG,CAAC;AAQD;;;;;;;;;;GAUG;AACH,MAAM,UAAU,8BAA8B,CAAC,aAAqB;IAClE,MAAM,SAAS,GAAG,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,aAAa,EAAE,qBAAqB,CAAC,EAAE,MAAM,CAAC,CAA4B,CAAC;IACzH,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAqC,CAAC;IAC9D,KAAK,MAAM,aAAa,IAAI,SAAS,CAAC,QAAQ,IAAI,EAAE,EAAE,CAAC;QACrD,MAAM,UAAU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E,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACtH,CAAC;CACF","sourcesContent":["/**\n * ProviderPackageLinksService — resolve an application's DECLARED provider packages, and nothing\n * else (plan D7, slice S6, issue #334).\n *\n * ## The problem this closes\n *\n * `frameworkFileLinkPackages` is the set of framework packages every scaffolded application links,\n * and in framework-developer mode every name in it becomes a `file:` override in the application's\n * root manifest. That is correct for the framework core — an application uses all of it — and it\n * does not survive the provider population: at two hundred provider packages every scaffolded\n * application would carry two hundred `file:` links to packages it never imports, and\n * `saas-skeleton.service.ts` would THROW for any name the workspace could not produce.\n *\n * So the two populations are resolved differently, and the difference is not a size optimisation —\n * it is what each list MEANS:\n *\n * - the framework core is a CURATION: the packages an application always has. It stays authored in\n * `propagated-engine-overrides.json`, because \"which of them\" is a decision;\n * - the providers are a POPULATION: `@wildo-ai/provider-<ref>`, one per provider, generated by the\n * packager. \"Which of them does THIS application link\" has exactly one honest answer — the ones\n * its own manifests declare. Nothing needs to list them, and a list would rot the way issue #161\n * measured (a hand-kept sibling list at 37 of 155 names).\n *\n * ## Why the DECLARATION is the source\n *\n * A provider reaches an application by exactly one route: a dependency in one of the application's\n * own package manifests, written by `wildo compose add-provider` (the `package-dependency-add`\n * composition edit kind). Deriving the link set from those declarations means the application says\n * what it uses once, in the place npm itself reads, and the override follows mechanically. The\n * alternative — a second per-application list of \"linked providers\" — would be a copy that can\n * disagree with the manifests, which is the defect this slice removes rather than relocates.\n *\n * ## What it never does\n *\n * It never REMOVES an override. An override the application authored, or one left behind by a\n * provider it has since dropped, is authored content; removing it silently is how a reconciler\n * becomes an outage. Surplus is reported by the caller, never repaired here.\n */\nimport { existsSync, readFileSync, readdirSync, writeFileSync } from 'fs';\nimport { join, relative, sep } from 'path';\nimport { parse as parseYaml } from 'yaml';\n\n/**\n * The npm-name prefix of a provider package (plan D3). Deliberately duplicated from the publish\n * lane's `PUBLISHED_PROVIDER_PACKAGE_NAME_PREFIX` rather than imported: that constant answers \"does\n * this package publish\", this one answers \"is this a provider an application declared\". They are\n * equal today and are allowed to stop being — a package that stops publishing is still linked.\n */\nexport const PROVIDER_PACKAGE_NAME_PREFIX = '@wildo-ai/provider-';\n\n/**\n * The SCRAPED CATALOGUE package — one name, hundreds of vendors behind subpath exports.\n *\n * This service was built (issue #334, slice S6) against a population of `@wildo-ai/provider-<ref>`\n * packages, one per vendor, and its whole design argument is that population's size: *\"at two\n * hundred provider packages every scaffolded application would carry two hundred `file:` links to\n * packages it never imports.\"* That shape was REVERSED on 2026-09-06 in favour of one package with\n * a subpath per vendor, and nothing here followed.\n *\n * Measured 2026-09-09: **no `@wildo-ai/provider-<ref>` package exists anywhere in the repository**,\n * while both dogfood applications declare `@wildo-ai/providers`. So the prefix above matched\n * nothing, at both production call sites, on every run — the service executed, found zero declared\n * providers, and reported success. An application adding its first catalogue provider through\n * `wildo compose add-provider` got the dependency and no override, and its next `pnpm install`\n * could not resolve the package. That is not hypothetical: it is what made the ten providers\n * declared in Wonder Todos on 2026-09-09 need a hand-written override.\n *\n * The PREFIX is kept rather than replaced. It still answers the question this service exists for —\n * \"is this a provider package an application declared\" — for an application-owned or future\n * per-vendor package, and the two forms are matched by one predicate so neither call site has to\n * remember both.\n */\nexport const PROVIDER_CATALOGUE_PACKAGE_NAME = '@wildo-ai/providers';\n\n/**\n * Whether a declared dependency name is a provider package this service links.\n *\n * A PREDICATE rather than a prefix test, because there are now two shapes and a call site that\n * remembers only one is exactly how this service came to match nothing.\n */\nexport function isProviderPackageName(name: string): boolean {\n return name === PROVIDER_CATALOGUE_PACKAGE_NAME || name.startsWith(PROVIDER_PACKAGE_NAME_PREFIX);\n}\n\n/** A framework workspace member: its package name and its absolute root. */\nexport interface FrameworkWorkspacePackage {\n name: string;\n root: string;\n}\n\n/**\n * Resolve every framework workspace member's package name → absolute root.\n *\n * Lives here rather than in `saas-skeleton.service.ts` because two callers now need it — the\n * scaffolder, and the provider-link reconciliation `wildo compose` runs — and a second copy of a\n * workspace reader is a second answer to \"what packages does the framework carry\".\n *\n * The one-level trailing glob stays supported here even though `pnpm-workspace.yaml` uses explicit\n * entries today: that file records the measurement (two repo-root readers refuse or silently drop a\n * wildcard), and when they are fixed this reader must not be the thing that has to change too.\n */\nexport function readFrameworkWorkspacePackages(frameworkPath: string): Map<string, FrameworkWorkspacePackage> {\n const workspace = parseYaml(readFileSync(join(frameworkPath, 'pnpm-workspace.yaml'), 'utf8')) as { packages?: string[] };\n const packages = new Map<string, FrameworkWorkspacePackage>();\n for (const memberPattern of workspace.packages ?? []) {\n const candidates = memberPattern.endsWith('/*')\n ? (existsSync(join(frameworkPath, memberPattern.slice(0, -2)))\n ? readdirSync(join(frameworkPath, memberPattern.slice(0, -2)), { withFileTypes: true })\n .filter((entry) => entry.isDirectory())\n .map((entry) => join(memberPattern.slice(0, -2), entry.name))\n : [])\n : [memberPattern];\n for (const memberRelative of candidates) {\n const manifestPath = join(frameworkPath, memberRelative, 'package.json');\n if (!existsSync(manifestPath)) continue;\n const manifest = JSON.parse(readFileSync(manifestPath, 'utf8')) as { name?: string };\n if (manifest.name) packages.set(manifest.name, { name: manifest.name, root: join(frameworkPath, memberRelative) });\n }\n }\n return packages;\n}\n\ninterface PackageManifestShape {\n name?: string;\n dependencies?: Record<string, string>;\n devDependencies?: Record<string, string>;\n peerDependencies?: Record<string, string>;\n optionalDependencies?: Record<string, string>;\n pnpm?: { overrides?: Record<string, string> };\n [key: string]: unknown;\n}\n\n/** One provider override the reconciliation added or found already correct. */\nexport interface ProviderPackageLinkOutcome {\n packageName: string;\n /** `file:<relative path>` in framework-developer mode, the framework version otherwise. */\n overrideValue: string;\n}\n\nexport interface ProviderPackageLinkReconciliation {\n /** Providers the application's manifests declare, sorted. */\n declared: string[];\n /** Overrides written (or that would be written on a dry run). */\n added: ProviderPackageLinkOutcome[];\n /** Declared providers whose override already carries exactly this value. */\n alreadyLinked: ProviderPackageLinkOutcome[];\n /**\n * Declared providers that could not be resolved — no workspace member of that name in\n * framework-developer mode. Reported, never thrown: a declaration for a provider that has not\n * been generated yet is a state an operator can be in, and refusing the whole reconciliation\n * would take every OTHER provider's link down with it.\n */\n unresolved: string[];\n /**\n * Provider overrides present in the root manifest that no manifest declares any more. Reported\n * only — see the header: this service never removes an override.\n */\n surplus: string[];\n}\n\nexport class ProviderPackageLinksService {\n /**\n * The provider package names an application's own workspace manifests declare.\n *\n * Every dependency field is scanned, not just `dependencies`: a provider reached only from a\n * test or a build step is declared as a devDependency and still has to resolve.\n */\n static discoverDeclaredProviderPackages(applicationRoot: string): string[] {\n const declared = new Set<string>();\n for (const member of ProviderPackageLinksService.discoverApplicationWorkspaceMembers(applicationRoot)) {\n const manifest = ProviderPackageLinksService.readManifest(join(applicationRoot, member, 'package.json'));\n if (!manifest) continue;\n for (const field of ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'] as const) {\n for (const name of Object.keys(manifest[field] ?? {})) {\n if (isProviderPackageName(name)) declared.add(name);\n }\n }\n }\n return [...declared].sort();\n }\n\n /**\n * The application's own workspace members, plus its root.\n *\n * `.wildo-saas/` members are skipped for the same reason the standalone alignment service skips\n * them: the companion drop's manifest is REWRITTEN on every start, so anything reconciled into it\n * is erased and the reconciler would report the same drift forever.\n */\n static discoverApplicationWorkspaceMembers(applicationRoot: string): string[] {\n const workspacePath = join(applicationRoot, 'pnpm-workspace.yaml');\n const declared = existsSync(workspacePath)\n ? ((parseYaml(readFileSync(workspacePath, 'utf8')) as { packages?: string[] } | null)?.packages ?? [])\n : [];\n const expanded: string[] = ['.'];\n for (const member of declared) {\n if (member.startsWith('.wildo-saas/')) continue;\n // A trailing one-level glob is the only glob shape an application workspace uses.\n if (member.endsWith('/*')) {\n const base = join(applicationRoot, member.slice(0, -2));\n if (!existsSync(base)) continue;\n for (const entry of ProviderPackageLinksService.readDirectoryNames(base)) expanded.push(`${member.slice(0, -2)}/${entry}`);\n continue;\n }\n expanded.push(member);\n }\n return expanded.filter((member) => existsSync(join(applicationRoot, member, 'package.json')));\n }\n\n /**\n * Compute the provider overrides an application needs, given what it declares.\n *\n * `frameworkWorkspacePackages` is the framework checkout's member map in framework-developer\n * mode; pass `null` for app-creator mode, where a provider resolves to the framework version like\n * every other `@wildo-ai/*` package.\n */\n static resolveProviderOverrides(input: {\n applicationRoot: string;\n frameworkWorkspacePackages: Map<string, { root: string }> | null;\n frameworkVersion: string;\n }): { overrides: Record<string, string>; declared: string[]; unresolved: string[] } {\n const declared = ProviderPackageLinksService.discoverDeclaredProviderPackages(input.applicationRoot);\n const overrides: Record<string, string> = {};\n const unresolved: string[] = [];\n\n for (const packageName of declared) {\n if (input.frameworkWorkspacePackages === null) {\n overrides[packageName] = input.frameworkVersion;\n continue;\n }\n const workspacePackage = input.frameworkWorkspacePackages.get(packageName);\n if (!workspacePackage) {\n unresolved.push(packageName);\n continue;\n }\n const relativePath = relative(input.applicationRoot, workspacePackage.root);\n // pnpm reads a POSIX specifier; `relative` yields the host separator on Windows.\n overrides[packageName] = `file:${relativePath.split(sep).join('/')}`;\n }\n\n return { overrides, declared, unresolved };\n }\n\n /**\n * Merge the resolved provider overrides into the application ROOT manifest.\n *\n * Merge, never replace, and sorted like every other writer of this block (`wildo init`, `wildo\n * align-deps`, the framework alignment script) so a later reconciliation reorders nothing and the\n * diff stays reviewable.\n */\n static reconcileApplicationProviderLinks(input: {\n applicationRoot: string;\n frameworkWorkspacePackages: Map<string, { root: string }> | null;\n frameworkVersion: string;\n write: boolean;\n }): ProviderPackageLinkReconciliation {\n const { overrides, declared, unresolved } = ProviderPackageLinksService.resolveProviderOverrides(input);\n const rootManifestPath = join(input.applicationRoot, 'package.json');\n const rootManifest = ProviderPackageLinksService.readManifest(rootManifestPath);\n if (!rootManifest) {\n throw new Error(`No package.json at ${rootManifestPath} — provider links are written into the application ROOT manifest.`);\n }\n\n const existing = rootManifest.pnpm?.overrides ?? {};\n const added: ProviderPackageLinkOutcome[] = [];\n const alreadyLinked: ProviderPackageLinkOutcome[] = [];\n for (const [packageName, overrideValue] of Object.entries(overrides)) {\n if (existing[packageName] === overrideValue) {\n alreadyLinked.push({ packageName, overrideValue });\n continue;\n }\n added.push({ packageName, overrideValue });\n }\n\n const surplus = Object.keys(existing)\n .filter((name) => isProviderPackageName(name))\n .filter((name) => !(name in overrides))\n .sort();\n\n if (input.write && added.length > 0) {\n const merged = { ...existing, ...overrides };\n rootManifest.pnpm = {\n ...(rootManifest.pnpm ?? {}),\n overrides: Object.fromEntries(Object.keys(merged).sort().map((name) => [name, merged[name]])),\n };\n writeFileSync(rootManifestPath, `${JSON.stringify(rootManifest, null, 2)}\\n`, 'utf8');\n }\n\n return { declared, added, alreadyLinked, unresolved, surplus };\n }\n\n /**\n * The host-facing entry: reconcile and REPORT, resolving the framework layout itself.\n *\n * `frameworkPath` null means app-creator mode — no checkout to link into, so a declared provider\n * resolves to the framework version. The version comes from `wildo-framework.info.json` in a\n * checkout and from the application's own existing `@wildo-ai/*` pin otherwise, because that is\n * the release the application actually has.\n */\n static reconcileAndReport(input: {\n applicationRoot: string;\n frameworkPath: string | null;\n log: { info: (message: string) => void; warn: (message: string) => void };\n }): ProviderPackageLinkReconciliation {\n /*\n * Nothing declared means nothing to reconcile, and the early return matters: this runs after\n * EVERY scenario, and `resolveFrameworkVersionForApplication` REFUSES rather than inventing a\n * version. Without this guard an application that declares no provider at all could have\n * `wildo compose add-locale` fail on a version it never needed.\n */\n const declaredProviders = ProviderPackageLinksService.discoverDeclaredProviderPackages(input.applicationRoot);\n if (declaredProviders.length === 0) {\n return { declared: [], added: [], alreadyLinked: [], unresolved: [], surplus: [] };\n }\n\n const frameworkWorkspacePackages = input.frameworkPath === null\n ? null\n : readFrameworkWorkspacePackages(input.frameworkPath);\n const frameworkVersion = ProviderPackageLinksService.resolveFrameworkVersionForApplication(input);\n\n const result = ProviderPackageLinksService.reconcileApplicationProviderLinks({\n applicationRoot: input.applicationRoot,\n frameworkWorkspacePackages,\n frameworkVersion,\n write: true,\n });\n\n for (const link of result.added) {\n input.log.info(` ~ package.json (pnpm.overrides ${link.packageName} → ${link.overrideValue})`);\n }\n for (const packageName of result.unresolved) {\n input.log.warn(\n ` ! ${packageName} is declared but no framework workspace member carries that name — `\n + 'generate the provider package, or remove the declaration.',\n );\n }\n if (result.added.length > 0) {\n input.log.info(' → run `pnpm install` so the new provider link resolves.');\n }\n return result;\n }\n\n /**\n * The version a provider package pins to in app-creator mode.\n *\n * Read from the checkout's `wildo-framework.info.json` when there is one; otherwise from the\n * application's OWN `pnpm.overrides`, taking the version it already pins for a framework package.\n * Deriving it from the application rather than defaulting is deliberate: a provider must land on\n * the release whose contract it was built against, and the application's existing pins are the\n * only statement of which release that is. With neither available the reconciliation refuses,\n * because inventing a version here would produce an override that installs the wrong engine.\n */\n private static resolveFrameworkVersionForApplication(input: {\n applicationRoot: string;\n frameworkPath: string | null;\n }): string {\n if (input.frameworkPath !== null) {\n const infoPath = join(input.frameworkPath, 'wildo-framework.info.json');\n if (existsSync(infoPath)) {\n const info = JSON.parse(readFileSync(infoPath, 'utf8')) as { version?: string };\n if (typeof info.version === 'string' && info.version.length > 0) return info.version;\n }\n }\n const rootManifest = ProviderPackageLinksService.readManifest(join(input.applicationRoot, 'package.json'));\n for (const [name, version] of Object.entries(rootManifest?.pnpm?.overrides ?? {})) {\n if (!name.startsWith('@wildo-ai/')) continue;\n if (isProviderPackageName(name)) continue;\n if (version.startsWith('file:') || version.startsWith('link:')) continue;\n return version;\n }\n throw new Error(\n 'Cannot resolve which framework release a provider package should pin to: no framework checkout, and the '\n + \"application's pnpm.overrides names no @wildo-ai/* version. Run `wildo align-deps` first.\",\n );\n }\n\n private static readManifest(manifestPath: string): PackageManifestShape | null {\n if (!existsSync(manifestPath)) return null;\n return JSON.parse(readFileSync(manifestPath, 'utf8')) as PackageManifestShape;\n }\n\n private static readDirectoryNames(base: string): string[] {\n return readdirSync(base, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => entry.name);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-runtime-sync.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"provider-runtime-sync.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/provider-runtime-sync.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAKL,cAAc,EAcf,MAAM,+BAA+B,CAAC;AASvC,OAAO,KAAK,EAGV,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AAwBvC,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,4GAA4G;IAC5G,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;;;OAMG;IACH,0BAA0B,EAAE,MAAM,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,EACtD,YAAY,EAAE,wBAAwB,GAAG,SAAS,GACjD,MAAM,GAAG,IAAI,CAgDf;AAED,wBAAsB,kCAAkC,CACtD,GAAG,EAAE,sBAAsB,EAC3B,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,yBAAyB,CAAC,CAmGpC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,+CAA+C,CACnE,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,EAAE,CAAC,CAqBnB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { dirname, join, sep } from 'path';
|
|
2
2
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, rmdirSync, writeFileSync } from 'fs';
|
|
3
|
-
import { buildDiscoveredProviderCatalog,
|
|
3
|
+
import { buildDiscoveredProviderCatalog, InfraCapability, LEGACY_PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS, loadMinionConfigs, loadSaasConfig, loadWorkerConfigs, materializeInfraSection, materializeSaasProviderRuntimeArtifacts, PROVIDER_CATALOG_TYPES_RELATIVE_PATH, PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS, PROVIDER_RUNTIME_GENERATED_ENV_FILE_NAME, PROVIDER_RUNTIME_GENERATED_MODULE_RELATIVE_PATH, renderDiscoveredProviderCatalogTypes, renderProviderRuntimeEnvFile, renderProviderRuntimeGeneratedModule, resolveAppLayout, SaasLockfileEnvelopeSchema, selectScopedProviderRuntimeArtifact, } from '@wildo-ai/platform-config-lib';
|
|
4
|
+
import { resolveAndRegisterSaasProviderContributions } from '../credentials/composed-provider-catalogue.js';
|
|
4
5
|
import { EngineCapability } from '@wildo-ai/saas-models';
|
|
5
6
|
// Slice 2.5c-1 of `infra-provider-planner.md`: CLI builds the
|
|
6
7
|
// `InfraProvider → InfraProviderModule` map from the canonical
|
|
@@ -74,22 +75,15 @@ export function checkAuditProviderImmudbBacking(saasConfig, infraSection) {
|
|
|
74
75
|
export async function syncProviderRuntimeArtifactsForApp(log, saasRoot) {
|
|
75
76
|
try {
|
|
76
77
|
const saasConfig = await loadSaasConfig(join(saasRoot, 'wildo.saas.config.ts'));
|
|
77
|
-
const discoveredProviderContributions = await
|
|
78
|
-
|
|
79
|
-
saasConfig,
|
|
80
|
-
});
|
|
81
|
-
validateDiscoveredSaasProviderContributions({
|
|
82
|
-
saasConfig,
|
|
83
|
-
discoveredContributions: discoveredProviderContributions.contributions,
|
|
84
|
-
});
|
|
85
|
-
syncProviderCatalogTypeArtifact(saasRoot, buildDiscoveredProviderCatalog(discoveredProviderContributions.contributions));
|
|
78
|
+
const discoveredProviderContributions = await resolveAndRegisterSaasProviderContributions({ saasRoot, saasConfig });
|
|
79
|
+
syncProviderCatalogTypeArtifact(saasRoot, buildDiscoveredProviderCatalog(discoveredProviderContributions));
|
|
86
80
|
const minionConfigs = await loadMinionConfigs(saasRoot, saasConfig);
|
|
87
81
|
const workerConfigs = await loadWorkerConfigs(saasRoot, saasConfig);
|
|
88
82
|
const nodeWorkerKeys = workerConfigs
|
|
89
83
|
.filter((entry) => isNodeWorkerRuntimeLanguage(entry.config.runtime.language))
|
|
90
84
|
.map((entry) => entry.key);
|
|
91
85
|
const { artifacts, lockSection } = materializeSaasProviderRuntimeArtifacts(saasConfig, {
|
|
92
|
-
discoveredContributions: discoveredProviderContributions
|
|
86
|
+
discoveredContributions: discoveredProviderContributions,
|
|
93
87
|
nodeWorkerKeys,
|
|
94
88
|
});
|
|
95
89
|
syncProviderRuntimeJsonArtifacts(saasRoot, artifacts);
|
|
@@ -181,21 +175,14 @@ export async function syncProviderRuntimeArtifactsForApp(log, saasRoot) {
|
|
|
181
175
|
*/
|
|
182
176
|
export async function resolveExpectedProviderRuntimeSourceModulePaths(saasRoot) {
|
|
183
177
|
const saasConfig = await loadSaasConfig(join(saasRoot, 'wildo.saas.config.ts'));
|
|
184
|
-
const discoveredProviderContributions = await
|
|
185
|
-
saasRoot,
|
|
186
|
-
saasConfig,
|
|
187
|
-
});
|
|
188
|
-
validateDiscoveredSaasProviderContributions({
|
|
189
|
-
saasConfig,
|
|
190
|
-
discoveredContributions: discoveredProviderContributions.contributions,
|
|
191
|
-
});
|
|
178
|
+
const discoveredProviderContributions = await resolveAndRegisterSaasProviderContributions({ saasRoot, saasConfig });
|
|
192
179
|
const minionConfigs = await loadMinionConfigs(saasRoot, saasConfig);
|
|
193
180
|
const workerConfigs = await loadWorkerConfigs(saasRoot, saasConfig);
|
|
194
181
|
const nodeWorkerKeys = workerConfigs
|
|
195
182
|
.filter((entry) => isNodeWorkerRuntimeLanguage(entry.config.runtime.language))
|
|
196
183
|
.map((entry) => entry.key);
|
|
197
184
|
const { artifacts } = materializeSaasProviderRuntimeArtifacts(saasConfig, {
|
|
198
|
-
discoveredContributions: discoveredProviderContributions
|
|
185
|
+
discoveredContributions: discoveredProviderContributions,
|
|
199
186
|
nodeWorkerKeys,
|
|
200
187
|
});
|
|
201
188
|
return resolveProviderRuntimeSourceModuleTargets({
|