@wildo-ai/wildo-cli 1.1.11 → 1.1.13
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/bin/wildo.js.map +1 -1
- package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
- 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/align-deps.command.js +5 -3
- package/dist/src/commands/align-deps.command.js.map +1 -1
- package/dist/src/commands/assets/sync.command.d.ts.map +1 -1
- package/dist/src/commands/assets/sync.command.js.map +1 -1
- package/dist/src/commands/assurance/assurance-command.utils.d.ts +14 -0
- package/dist/src/commands/assurance/assurance-command.utils.d.ts.map +1 -0
- package/dist/src/commands/assurance/assurance-command.utils.js +36 -0
- package/dist/src/commands/assurance/assurance-command.utils.js.map +1 -0
- package/dist/src/commands/assurance/report.command.d.ts +14 -0
- package/dist/src/commands/assurance/report.command.d.ts.map +1 -0
- package/dist/src/commands/assurance/report.command.js +28 -0
- package/dist/src/commands/assurance/report.command.js.map +1 -0
- package/dist/src/commands/assurance/run.command.d.ts +16 -0
- package/dist/src/commands/assurance/run.command.d.ts.map +1 -0
- package/dist/src/commands/assurance/run.command.js +49 -0
- package/dist/src/commands/assurance/run.command.js.map +1 -0
- package/dist/src/commands/assurance/schedule.command.d.ts +15 -0
- package/dist/src/commands/assurance/schedule.command.d.ts.map +1 -0
- package/dist/src/commands/assurance/schedule.command.js +49 -0
- package/dist/src/commands/assurance/schedule.command.js.map +1 -0
- package/dist/src/commands/blueprint/pack.command.d.ts.map +1 -1
- package/dist/src/commands/blueprint/pack.command.js.map +1 -1
- package/dist/src/commands/blueprint/publish.command.d.ts.map +1 -1
- package/dist/src/commands/blueprint/publish.command.js.map +1 -1
- package/dist/src/commands/blueprint/status.command.d.ts.map +1 -1
- package/dist/src/commands/blueprint/status.command.js.map +1 -1
- package/dist/src/commands/brand/propagate.command.d.ts.map +1 -1
- package/dist/src/commands/brand/propagate.command.js.map +1 -1
- package/dist/src/commands/build/accept.command.d.ts +4 -0
- package/dist/src/commands/build/accept.command.d.ts.map +1 -1
- package/dist/src/commands/build/accept.command.js +10 -1
- package/dist/src/commands/build/accept.command.js.map +1 -1
- package/dist/src/commands/build/approve.command.d.ts +18 -0
- package/dist/src/commands/build/approve.command.d.ts.map +1 -0
- package/dist/src/commands/build/approve.command.js +45 -0
- package/dist/src/commands/build/approve.command.js.map +1 -0
- package/dist/src/commands/build/checkpoint.command.d.ts +18 -0
- package/dist/src/commands/build/checkpoint.command.d.ts.map +1 -0
- package/dist/src/commands/build/checkpoint.command.js +36 -0
- package/dist/src/commands/build/checkpoint.command.js.map +1 -0
- package/dist/src/commands/build/close.command.d.ts +26 -0
- package/dist/src/commands/build/close.command.d.ts.map +1 -0
- package/dist/src/commands/build/close.command.js +58 -0
- package/dist/src/commands/build/close.command.js.map +1 -0
- package/dist/src/commands/build/dispatches.command.d.ts.map +1 -1
- package/dist/src/commands/build/dispatches.command.js +10 -9
- package/dist/src/commands/build/dispatches.command.js.map +1 -1
- package/dist/src/commands/build/next.command.d.ts.map +1 -1
- package/dist/src/commands/build/next.command.js +6 -1
- package/dist/src/commands/build/next.command.js.map +1 -1
- package/dist/src/commands/build/rearm.command.d.ts.map +1 -1
- package/dist/src/commands/build/rearm.command.js.map +1 -1
- package/dist/src/commands/build/run.command.d.ts.map +1 -1
- package/dist/src/commands/build/run.command.js.map +1 -1
- package/dist/src/commands/build/settle-window.command.d.ts +17 -0
- package/dist/src/commands/build/settle-window.command.d.ts.map +1 -0
- package/dist/src/commands/build/settle-window.command.js +42 -0
- package/dist/src/commands/build/settle-window.command.js.map +1 -0
- package/dist/src/commands/build/stop.command.d.ts +23 -0
- package/dist/src/commands/build/stop.command.d.ts.map +1 -0
- package/dist/src/commands/build/stop.command.js +52 -0
- package/dist/src/commands/build/stop.command.js.map +1 -0
- package/dist/src/commands/build/tasks.command.d.ts.map +1 -1
- package/dist/src/commands/build/tasks.command.js.map +1 -1
- package/dist/src/commands/compose.command.d.ts.map +1 -1
- package/dist/src/commands/compose.command.js.map +1 -1
- package/dist/src/commands/config/check-resources.command.d.ts +20 -6
- package/dist/src/commands/config/check-resources.command.d.ts.map +1 -1
- package/dist/src/commands/config/check-resources.command.js +33 -12
- package/dist/src/commands/config/check-resources.command.js.map +1 -1
- package/dist/src/commands/config/data-retention.command.d.ts.map +1 -1
- package/dist/src/commands/config/data-retention.command.js.map +1 -1
- package/dist/src/commands/config/document-releases.command.d.ts +3 -0
- package/dist/src/commands/config/document-releases.command.d.ts.map +1 -1
- package/dist/src/commands/config/document-releases.command.js +3 -0
- package/dist/src/commands/config/document-releases.command.js.map +1 -1
- package/dist/src/commands/config/legal-notice.command.d.ts.map +1 -1
- package/dist/src/commands/config/legal-notice.command.js.map +1 -1
- package/dist/src/commands/config/mutate.command.d.ts.map +1 -1
- package/dist/src/commands/config/mutate.command.js.map +1 -1
- package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
- package/dist/src/commands/config/reapply-declaration.command.js.map +1 -1
- package/dist/src/commands/config/service-consent.command.d.ts.map +1 -1
- package/dist/src/commands/config/service-consent.command.js.map +1 -1
- package/dist/src/commands/config/subject-data-recipients.command.d.ts.map +1 -1
- package/dist/src/commands/config/subject-data-recipients.command.js.map +1 -1
- package/dist/src/commands/config/sync.command.d.ts +4 -3
- package/dist/src/commands/config/sync.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.js +51 -17
- 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/config/validate.command.js +10 -10
- package/dist/src/commands/config/validate.command.js.map +1 -1
- package/dist/src/commands/context/assurance-basis.command.d.ts.map +1 -1
- package/dist/src/commands/context/assurance-basis.command.js.map +1 -1
- package/dist/src/commands/context/coherence.command.d.ts.map +1 -1
- package/dist/src/commands/context/coherence.command.js.map +1 -1
- package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
- package/dist/src/commands/context/context-command.utils.js.map +1 -1
- package/dist/src/commands/context/elements.command.d.ts +4 -2
- package/dist/src/commands/context/elements.command.d.ts.map +1 -1
- package/dist/src/commands/context/elements.command.js +4 -2
- package/dist/src/commands/context/elements.command.js.map +1 -1
- package/dist/src/commands/context/health.command.d.ts.map +1 -1
- package/dist/src/commands/context/health.command.js.map +1 -1
- package/dist/src/commands/context/info.command.d.ts.map +1 -1
- package/dist/src/commands/context/info.command.js.map +1 -1
- package/dist/src/commands/context/journey.command.d.ts +33 -2
- package/dist/src/commands/context/journey.command.d.ts.map +1 -1
- package/dist/src/commands/context/journey.command.js +186 -34
- package/dist/src/commands/context/journey.command.js.map +1 -1
- package/dist/src/commands/context/jurisdictions.command.d.ts.map +1 -1
- package/dist/src/commands/context/jurisdictions.command.js.map +1 -1
- package/dist/src/commands/context/launch-blockers.command.d.ts +4 -2
- package/dist/src/commands/context/launch-blockers.command.d.ts.map +1 -1
- package/dist/src/commands/context/launch-blockers.command.js +6 -4
- package/dist/src/commands/context/launch-blockers.command.js.map +1 -1
- package/dist/src/commands/context/list.command.d.ts.map +1 -1
- package/dist/src/commands/context/list.command.js.map +1 -1
- package/dist/src/commands/context/pipelines.command.d.ts.map +1 -1
- package/dist/src/commands/context/pipelines.command.js.map +1 -1
- package/dist/src/commands/context/workspace.command.d.ts.map +1 -1
- package/dist/src/commands/context/workspace.command.js.map +1 -1
- package/dist/src/commands/creation/accept.command.d.ts.map +1 -1
- package/dist/src/commands/creation/accept.command.js.map +1 -1
- package/dist/src/commands/creation/answer.command.d.ts +12 -0
- package/dist/src/commands/creation/answer.command.d.ts.map +1 -1
- package/dist/src/commands/creation/answer.command.js +69 -2
- package/dist/src/commands/creation/answer.command.js.map +1 -1
- package/dist/src/commands/creation/brand-logo.command.d.ts.map +1 -1
- package/dist/src/commands/creation/brand-logo.command.js.map +1 -1
- package/dist/src/commands/creation/brief.command.d.ts +10 -3
- package/dist/src/commands/creation/brief.command.d.ts.map +1 -1
- package/dist/src/commands/creation/brief.command.js +22 -7
- package/dist/src/commands/creation/brief.command.js.map +1 -1
- package/dist/src/commands/creation/deliberate.command.d.ts.map +1 -1
- package/dist/src/commands/creation/deliberate.command.js.map +1 -1
- package/dist/src/commands/creation/depth.command.d.ts.map +1 -1
- package/dist/src/commands/creation/depth.command.js.map +1 -1
- package/dist/src/commands/creation/diff.command.d.ts.map +1 -1
- package/dist/src/commands/creation/diff.command.js.map +1 -1
- package/dist/src/commands/creation/drive.command.d.ts +19 -0
- package/dist/src/commands/creation/drive.command.d.ts.map +1 -0
- package/dist/src/commands/creation/drive.command.js +112 -0
- package/dist/src/commands/creation/drive.command.js.map +1 -0
- package/dist/src/commands/creation/feed.command.d.ts +11 -0
- package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
- package/dist/src/commands/creation/feed.command.js +75 -1
- package/dist/src/commands/creation/feed.command.js.map +1 -1
- package/dist/src/commands/creation/loop.command.d.ts +6 -0
- package/dist/src/commands/creation/loop.command.d.ts.map +1 -1
- package/dist/src/commands/creation/loop.command.js +16 -0
- package/dist/src/commands/creation/loop.command.js.map +1 -1
- package/dist/src/commands/creation/persona.command.d.ts.map +1 -1
- package/dist/src/commands/creation/persona.command.js.map +1 -1
- package/dist/src/commands/creation/preflight.command.d.ts.map +1 -1
- package/dist/src/commands/creation/preflight.command.js.map +1 -1
- package/dist/src/commands/creation/prompt-hook.command.d.ts +1 -1
- package/dist/src/commands/creation/prompt-hook.command.d.ts.map +1 -1
- package/dist/src/commands/creation/prompt-hook.command.js +7 -3
- package/dist/src/commands/creation/prompt-hook.command.js.map +1 -1
- package/dist/src/commands/creation/propose.command.d.ts.map +1 -1
- package/dist/src/commands/creation/propose.command.js.map +1 -1
- package/dist/src/commands/creation/pulse.command.d.ts.map +1 -1
- package/dist/src/commands/creation/pulse.command.js.map +1 -1
- package/dist/src/commands/creation/questions.command.d.ts.map +1 -1
- package/dist/src/commands/creation/questions.command.js +13 -0
- package/dist/src/commands/creation/questions.command.js.map +1 -1
- package/dist/src/commands/creation/reason.command.d.ts.map +1 -1
- package/dist/src/commands/creation/reason.command.js.map +1 -1
- package/dist/src/commands/creation/report.command.d.ts.map +1 -1
- package/dist/src/commands/creation/report.command.js +12 -0
- package/dist/src/commands/creation/report.command.js.map +1 -1
- package/dist/src/commands/creation/revert.command.d.ts.map +1 -1
- package/dist/src/commands/creation/revert.command.js +2 -0
- package/dist/src/commands/creation/revert.command.js.map +1 -1
- package/dist/src/commands/creation/run.command.d.ts.map +1 -1
- package/dist/src/commands/creation/run.command.js.map +1 -1
- package/dist/src/commands/creation/statusline.command.d.ts.map +1 -1
- package/dist/src/commands/creation/statusline.command.js.map +1 -1
- package/dist/src/commands/creation/watch.command.d.ts.map +1 -1
- package/dist/src/commands/creation/watch.command.js.map +1 -1
- package/dist/src/commands/creation/why.command.d.ts.map +1 -1
- package/dist/src/commands/creation/why.command.js +14 -9
- package/dist/src/commands/creation/why.command.js.map +1 -1
- package/dist/src/commands/creation/writes.command.d.ts +7 -0
- package/dist/src/commands/creation/writes.command.d.ts.map +1 -1
- package/dist/src/commands/creation/writes.command.js +21 -6
- package/dist/src/commands/creation/writes.command.js.map +1 -1
- package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts.map +1 -1
- package/dist/src/commands/db/db-schema-plan-migration.utils.js.map +1 -1
- package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
- package/dist/src/commands/db/db-schema-plan.utils.js +2 -2
- package/dist/src/commands/db/db-schema-plan.utils.js.map +1 -1
- package/dist/src/commands/db/diff.command.d.ts +1 -1
- package/dist/src/commands/db/diff.command.d.ts.map +1 -1
- package/dist/src/commands/db/diff.command.js +2 -2
- package/dist/src/commands/db/diff.command.js.map +1 -1
- package/dist/src/commands/db/generate.command.d.ts +2 -3
- package/dist/src/commands/db/generate.command.d.ts.map +1 -1
- package/dist/src/commands/db/generate.command.js +2 -3
- package/dist/src/commands/db/generate.command.js.map +1 -1
- package/dist/src/commands/db/migrate.command.d.ts.map +1 -1
- package/dist/src/commands/db/migrate.command.js +9 -1
- package/dist/src/commands/db/migrate.command.js.map +1 -1
- package/dist/src/commands/db/resolve.command.d.ts.map +1 -1
- package/dist/src/commands/db/resolve.command.js.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-brand.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-brand.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-contract.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-contract.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-contrast.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-contrast.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-generate.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-init.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-validate.command.js.map +1 -1
- package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -1
- package/dist/src/commands/dev/force-stop.command.js.map +1 -1
- package/dist/src/commands/dev/resources.command.d.ts.map +1 -1
- package/dist/src/commands/dev/resources.command.js.map +1 -1
- package/dist/src/commands/dev/start.command.d.ts.map +1 -1
- 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/stop-all.command.js.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.map +1 -1
- package/dist/src/commands/docs/check.command.d.ts.map +1 -1
- package/dist/src/commands/docs/check.command.js +12 -0
- package/dist/src/commands/docs/check.command.js.map +1 -1
- package/dist/src/commands/docs/publish.command.d.ts.map +1 -1
- package/dist/src/commands/docs/publish.command.js.map +1 -1
- package/dist/src/commands/frontend/look.command.d.ts.map +1 -1
- package/dist/src/commands/frontend/look.command.js.map +1 -1
- package/dist/src/commands/frontend/publish.command.d.ts.map +1 -1
- package/dist/src/commands/frontend/publish.command.js.map +1 -1
- package/dist/src/commands/fwk/audit.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/audit.command.js.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 +20 -0
- package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
- package/dist/src/commands/fwk/generate-blueprints.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/generate-blueprints.command.js +2 -1
- package/dist/src/commands/fwk/generate-blueprints.command.js.map +1 -1
- package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/generate-docs.command.js.map +1 -1
- package/dist/src/commands/fwk/generate-providers.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/generate-providers.command.js +2 -2
- package/dist/src/commands/fwk/generate-providers.command.js.map +1 -1
- package/dist/src/commands/fwk/graph.command.d.ts +1 -1
- package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/graph.command.js +1 -1
- package/dist/src/commands/fwk/graph.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.d.ts +53 -0
- package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.js +345 -12
- package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.js +9 -0
- package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-npm.command.js +15 -4
- package/dist/src/commands/fwk/publish-npm.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-promote.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-promote.command.js +32 -11
- package/dist/src/commands/fwk/publish-promote.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-providers.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-providers.command.js +8 -0
- package/dist/src/commands/fwk/publish-providers.command.js.map +1 -1
- package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/registry-host.command.js.map +1 -1
- package/dist/src/commands/fwk/release.command.d.ts +22 -0
- package/dist/src/commands/fwk/release.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/release.command.js +216 -0
- package/dist/src/commands/fwk/release.command.js.map +1 -0
- package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-bump.command.js.map +1 -1
- package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-set.command.js.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.map +1 -1
- package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-sync.command.js.map +1 -1
- package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/what-touches.command.js.map +1 -1
- package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-status.command.js.map +1 -1
- package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-tail.command.js.map +1 -1
- package/dist/src/commands/generate/email-command.utils.d.ts +15 -2
- package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/email-command.utils.js +20 -7
- package/dist/src/commands/generate/email-command.utils.js.map +1 -1
- package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-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-status.command.js +2 -2
- package/dist/src/commands/generate/email-status.command.js.map +1 -1
- package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-test-send.command.js.map +1 -1
- package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-translate.command.js +2 -2
- package/dist/src/commands/generate/email-translate.command.js.map +1 -1
- package/dist/src/commands/generate/email.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email.command.js +2 -2
- package/dist/src/commands/generate/email.command.js.map +1 -1
- package/dist/src/commands/generate/labelling-command.utils.d.ts +15 -0
- package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/labelling-command.utils.js +110 -12
- 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-plan.command.js.map +1 -1
- package/dist/src/commands/generate/labels.command.d.ts.map +1 -1
- package/dist/src/commands/generate/labels.command.js.map +1 -1
- package/dist/src/commands/generate/translate.command.d.ts +5 -0
- package/dist/src/commands/generate/translate.command.d.ts.map +1 -1
- package/dist/src/commands/generate/translate.command.js +9 -3
- package/dist/src/commands/generate/translate.command.js.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 +11 -3
- package/dist/src/commands/init.command.d.ts.map +1 -1
- package/dist/src/commands/init.command.js +73 -27
- package/dist/src/commands/init.command.js.map +1 -1
- package/dist/src/commands/keys/legacy-envelope-key.command.d.ts +8 -0
- package/dist/src/commands/keys/legacy-envelope-key.command.d.ts.map +1 -0
- package/dist/src/commands/keys/legacy-envelope-key.command.js +140 -0
- package/dist/src/commands/keys/legacy-envelope-key.command.js.map +1 -0
- package/dist/src/commands/keys/rotate-signing-keys.command.d.ts +8 -0
- package/dist/src/commands/keys/rotate-signing-keys.command.d.ts.map +1 -0
- package/dist/src/commands/keys/rotate-signing-keys.command.js +158 -0
- package/dist/src/commands/keys/rotate-signing-keys.command.js.map +1 -0
- package/dist/src/commands/keys/rotate.command.d.ts.map +1 -1
- package/dist/src/commands/keys/rotate.command.js.map +1 -1
- package/dist/src/commands/keys/thumbprint.command.d.ts.map +1 -1
- package/dist/src/commands/keys/thumbprint.command.js.map +1 -1
- package/dist/src/commands/keys/vault-rotate-tokens.command.d.ts +7 -0
- package/dist/src/commands/keys/vault-rotate-tokens.command.d.ts.map +1 -0
- package/dist/src/commands/keys/vault-rotate-tokens.command.js +100 -0
- package/dist/src/commands/keys/vault-rotate-tokens.command.js.map +1 -0
- package/dist/src/commands/keys/vault-rotate-unseal-key.command.d.ts +7 -0
- package/dist/src/commands/keys/vault-rotate-unseal-key.command.d.ts.map +1 -0
- package/dist/src/commands/keys/vault-rotate-unseal-key.command.js +96 -0
- package/dist/src/commands/keys/vault-rotate-unseal-key.command.js.map +1 -0
- package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
- package/dist/src/commands/local/deregister.command.js.map +1 -1
- package/dist/src/commands/local/dev-status.command.d.ts +16 -4
- package/dist/src/commands/local/dev-status.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev-status.command.js +50 -6
- package/dist/src/commands/local/dev-status.command.js.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts +80 -5
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js +273 -19
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/local/doctor.command.d.ts +22 -9
- package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
- package/dist/src/commands/local/doctor.command.js +59 -43
- 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/down.command.js +1 -2
- package/dist/src/commands/local/down.command.js.map +1 -1
- package/dist/src/commands/local/init.command.d.ts.map +1 -1
- 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/logs.command.js.map +1 -1
- package/dist/src/commands/local/reinit.command.d.ts.map +1 -1
- package/dist/src/commands/local/reinit.command.js.map +1 -1
- package/dist/src/commands/local/reset.command.d.ts.map +1 -1
- package/dist/src/commands/local/reset.command.js.map +1 -1
- package/dist/src/commands/local/restore.command.d.ts.map +1 -1
- package/dist/src/commands/local/restore.command.js.map +1 -1
- package/dist/src/commands/local/smoke.command.d.ts.map +1 -1
- package/dist/src/commands/local/smoke.command.js +1 -1
- package/dist/src/commands/local/smoke.command.js.map +1 -1
- package/dist/src/commands/local/sor-addresses.command.d.ts +20 -0
- package/dist/src/commands/local/sor-addresses.command.d.ts.map +1 -0
- package/dist/src/commands/local/sor-addresses.command.js +65 -0
- package/dist/src/commands/local/sor-addresses.command.js.map +1 -0
- package/dist/src/commands/local/sor-command.utils.d.ts +12 -0
- package/dist/src/commands/local/sor-command.utils.d.ts.map +1 -0
- package/dist/src/commands/local/sor-command.utils.js +28 -0
- package/dist/src/commands/local/sor-command.utils.js.map +1 -0
- package/dist/src/commands/local/sor-secrets.command.d.ts +20 -0
- package/dist/src/commands/local/sor-secrets.command.d.ts.map +1 -0
- package/dist/src/commands/local/sor-secrets.command.js +75 -0
- package/dist/src/commands/local/sor-secrets.command.js.map +1 -0
- package/dist/src/commands/local/sor-simulators.command.d.ts +21 -0
- package/dist/src/commands/local/sor-simulators.command.d.ts.map +1 -0
- package/dist/src/commands/local/sor-simulators.command.js +55 -0
- package/dist/src/commands/local/sor-simulators.command.js.map +1 -0
- package/dist/src/commands/local/status.command.d.ts.map +1 -1
- package/dist/src/commands/local/status.command.js.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/local-defaults/capture.command.d.ts.map +1 -1
- package/dist/src/commands/local-defaults/capture.command.js.map +1 -1
- package/dist/src/commands/lock/check.command.d.ts +7 -7
- package/dist/src/commands/lock/check.command.d.ts.map +1 -1
- package/dist/src/commands/lock/check.command.js +11 -11
- package/dist/src/commands/lock/check.command.js.map +1 -1
- package/dist/src/commands/market/generate.command.d.ts.map +1 -1
- package/dist/src/commands/market/generate.command.js.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.map +1 -1
- package/dist/src/commands/prefs/set.command.d.ts.map +1 -1
- package/dist/src/commands/prefs/set.command.js.map +1 -1
- package/dist/src/commands/providers/application-connection-session.utils.d.ts +9 -0
- package/dist/src/commands/providers/application-connection-session.utils.d.ts.map +1 -0
- package/dist/src/commands/providers/application-connection-session.utils.js +49 -0
- package/dist/src/commands/providers/application-connection-session.utils.js.map +1 -0
- package/dist/src/commands/providers/chat-command-registrations.utils.d.ts.map +1 -1
- package/dist/src/commands/providers/chat-command-registrations.utils.js +2 -1
- package/dist/src/commands/providers/chat-command-registrations.utils.js.map +1 -1
- package/dist/src/commands/providers/connect.command.d.ts +19 -0
- package/dist/src/commands/providers/connect.command.d.ts.map +1 -0
- package/dist/src/commands/providers/connect.command.js +257 -0
- package/dist/src/commands/providers/connect.command.js.map +1 -0
- package/dist/src/commands/providers/connections.command.d.ts +14 -0
- package/dist/src/commands/providers/connections.command.d.ts.map +1 -0
- package/dist/src/commands/providers/connections.command.js +74 -0
- package/dist/src/commands/providers/connections.command.js.map +1 -0
- package/dist/src/commands/providers/disconnect.command.d.ts +15 -0
- package/dist/src/commands/providers/disconnect.command.d.ts.map +1 -0
- package/dist/src/commands/providers/disconnect.command.js +91 -0
- package/dist/src/commands/providers/disconnect.command.js.map +1 -0
- package/dist/src/commands/providers/new.command.d.ts.map +1 -1
- package/dist/src/commands/providers/new.command.js +2 -2
- package/dist/src/commands/providers/new.command.js.map +1 -1
- package/dist/src/commands/providers/probe.command.d.ts +0 -1
- package/dist/src/commands/providers/probe.command.d.ts.map +1 -1
- package/dist/src/commands/providers/probe.command.js +31 -31
- package/dist/src/commands/providers/probe.command.js.map +1 -1
- package/dist/src/commands/providers/prove.command.d.ts +16 -0
- package/dist/src/commands/providers/prove.command.d.ts.map +1 -0
- package/dist/src/commands/providers/prove.command.js +174 -0
- package/dist/src/commands/providers/prove.command.js.map +1 -0
- package/dist/src/commands/providers/register.command.d.ts.map +1 -1
- package/dist/src/commands/providers/register.command.js +45 -10
- package/dist/src/commands/providers/register.command.js.map +1 -1
- package/dist/src/commands/providers/show.command.d.ts.map +1 -1
- package/dist/src/commands/providers/show.command.js.map +1 -1
- package/dist/src/commands/registry/add.command.d.ts.map +1 -1
- package/dist/src/commands/registry/add.command.js.map +1 -1
- package/dist/src/commands/registry/domain.command.d.ts.map +1 -1
- package/dist/src/commands/registry/domain.command.js.map +1 -1
- package/dist/src/commands/registry/info.command.d.ts.map +1 -1
- package/dist/src/commands/registry/info.command.js.map +1 -1
- package/dist/src/commands/registry/key.command.d.ts.map +1 -1
- package/dist/src/commands/registry/key.command.js.map +1 -1
- package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -1
- package/dist/src/commands/registry/lockfile-smoke.command.js.map +1 -1
- package/dist/src/commands/registry/login.command.d.ts.map +1 -1
- package/dist/src/commands/registry/login.command.js +4 -2
- 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/logout.command.js.map +1 -1
- package/dist/src/commands/registry/outdated.command.d.ts.map +1 -1
- package/dist/src/commands/registry/outdated.command.js.map +1 -1
- package/dist/src/commands/registry/ping.command.d.ts.map +1 -1
- package/dist/src/commands/registry/ping.command.js.map +1 -1
- package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
- package/dist/src/commands/registry/publish.command.js +14 -0
- package/dist/src/commands/registry/publish.command.js.map +1 -1
- package/dist/src/commands/registry/registry-transport.constants.d.ts.map +1 -1
- package/dist/src/commands/registry/registry-transport.constants.js.map +1 -1
- package/dist/src/commands/registry/remove.command.d.ts.map +1 -1
- package/dist/src/commands/registry/remove.command.js.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.d.ts +12 -11
- package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.js +47 -56
- package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
- package/dist/src/commands/registry/search.command.d.ts.map +1 -1
- package/dist/src/commands/registry/search.command.js.map +1 -1
- package/dist/src/commands/registry/status.command.d.ts.map +1 -1
- package/dist/src/commands/registry/status.command.js.map +1 -1
- package/dist/src/commands/registry/update.command.d.ts.map +1 -1
- package/dist/src/commands/registry/update.command.js.map +1 -1
- package/dist/src/commands/registry/whoami.command.d.ts.map +1 -1
- package/dist/src/commands/registry/whoami.command.js +4 -2
- package/dist/src/commands/registry/whoami.command.js.map +1 -1
- package/dist/src/commands/registry/yank.command.d.ts.map +1 -1
- package/dist/src/commands/registry/yank.command.js.map +1 -1
- package/dist/src/commands/remote/create.command.d.ts.map +1 -1
- package/dist/src/commands/remote/create.command.js.map +1 -1
- package/dist/src/commands/remote/list.command.d.ts.map +1 -1
- package/dist/src/commands/remote/list.command.js.map +1 -1
- package/dist/src/commands/remote/status.command.d.ts.map +1 -1
- package/dist/src/commands/remote/status.command.js.map +1 -1
- package/dist/src/commands/remote/sync.command.d.ts.map +1 -1
- package/dist/src/commands/remote/sync.command.js +1 -1
- package/dist/src/commands/remote/sync.command.js.map +1 -1
- package/dist/src/commands/seal/currency.command.d.ts +13 -0
- package/dist/src/commands/seal/currency.command.d.ts.map +1 -0
- package/dist/src/commands/seal/currency.command.js +52 -0
- package/dist/src/commands/seal/currency.command.js.map +1 -0
- package/dist/src/commands/seal/dead.command.d.ts.map +1 -1
- package/dist/src/commands/seal/dead.command.js +2 -1
- package/dist/src/commands/seal/dead.command.js.map +1 -1
- package/dist/src/commands/seal/export.command.d.ts.map +1 -1
- package/dist/src/commands/seal/export.command.js.map +1 -1
- package/dist/src/commands/seal/log-export.command.d.ts.map +1 -1
- package/dist/src/commands/seal/log-export.command.js +6 -1
- package/dist/src/commands/seal/log-export.command.js.map +1 -1
- package/dist/src/commands/seal/log-verify.command.d.ts.map +1 -1
- package/dist/src/commands/seal/log-verify.command.js +2 -1
- package/dist/src/commands/seal/log-verify.command.js.map +1 -1
- package/dist/src/commands/seal/rebuild-copy.command.d.ts +14 -0
- package/dist/src/commands/seal/rebuild-copy.command.d.ts.map +1 -0
- package/dist/src/commands/seal/rebuild-copy.command.js +48 -0
- package/dist/src/commands/seal/rebuild-copy.command.js.map +1 -0
- package/dist/src/commands/seal/retry.command.d.ts.map +1 -1
- package/dist/src/commands/seal/retry.command.js.map +1 -1
- package/dist/src/commands/seal/seal-admin-door.utils.d.ts.map +1 -1
- package/dist/src/commands/seal/seal-admin-door.utils.js +2 -0
- package/dist/src/commands/seal/seal-admin-door.utils.js.map +1 -1
- package/dist/src/commands/seal/signing-log-files.utils.d.ts.map +1 -1
- package/dist/src/commands/seal/signing-log-files.utils.js.map +1 -1
- package/dist/src/commands/seal/verify.command.d.ts +14 -0
- package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
- package/dist/src/commands/seal/verify.command.js +85 -9
- package/dist/src/commands/seal/verify.command.js.map +1 -1
- package/dist/src/commands/secrets/github.command.d.ts.map +1 -1
- package/dist/src/commands/secrets/github.command.js.map +1 -1
- package/dist/src/commands/secrets/list.command.d.ts.map +1 -1
- package/dist/src/commands/secrets/list.command.js.map +1 -1
- package/dist/src/commands/secrets/set.command.d.ts.map +1 -1
- package/dist/src/commands/secrets/set.command.js +5 -3
- package/dist/src/commands/secrets/set.command.js.map +1 -1
- package/dist/src/commands/secrets/unset.command.d.ts.map +1 -1
- package/dist/src/commands/secrets/unset.command.js.map +1 -1
- package/dist/src/commands/setup.command.d.ts.map +1 -1
- package/dist/src/commands/setup.command.js.map +1 -1
- package/dist/src/commands/update.command.d.ts.map +1 -1
- package/dist/src/commands/update.command.js +86 -7
- package/dist/src/commands/update.command.js.map +1 -1
- package/dist/src/commands/version.command.d.ts.map +1 -1
- package/dist/src/commands/version.command.js.map +1 -1
- package/dist/src/commands/website/audit.command.d.ts.map +1 -1
- package/dist/src/commands/website/audit.command.js +15 -1
- package/dist/src/commands/website/audit.command.js.map +1 -1
- package/dist/src/commands/website/look.command.d.ts.map +1 -1
- package/dist/src/commands/website/look.command.js.map +1 -1
- package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/open.command.js +12 -3
- package/dist/src/commands/workbench/open.command.js.map +1 -1
- package/dist/src/commands/workbench/parallelism.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/parallelism.command.js.map +1 -1
- package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/status.command.js.map +1 -1
- package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/errors/error.utils.js.map +1 -1
- package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/io/file.utils.js.map +1 -1
- package/dist/src/infrastructure/io/io.schemas.d.ts +4 -4
- package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/io/io.schemas.js +4 -4
- package/dist/src/infrastructure/io/io.schemas.js.map +1 -1
- package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -1
- package/dist/src/infrastructure/io/template-processor.js.map +1 -1
- package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -1
- package/dist/src/infrastructure/logger/logger.service.js.map +1 -1
- package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/process/spawn.utils.js.map +1 -1
- package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/formatting.service.js.map +1 -1
- package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/interaction-engine.service.js.map +1 -1
- package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/markdown-renderer.service.js.map +1 -1
- package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/ui.schemas.js.map +1 -1
- package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/utils/string.utils.js.map +1 -1
- package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -1
- package/dist/src/infrastructure/validation/validator.service.js.map +1 -1
- package/dist/src/kernel/base-command.d.ts.map +1 -1
- package/dist/src/kernel/base-command.js.map +1 -1
- package/dist/src/kernel/bootstrap.d.ts +10 -0
- package/dist/src/kernel/bootstrap.d.ts.map +1 -1
- package/dist/src/kernel/bootstrap.js +13 -1
- package/dist/src/kernel/bootstrap.js.map +1 -1
- package/dist/src/kernel/command-index-cache.d.ts.map +1 -1
- package/dist/src/kernel/command-index-cache.js.map +1 -1
- package/dist/src/kernel/command-registry.d.ts.map +1 -1
- package/dist/src/kernel/command-registry.js +5 -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-runner.js.map +1 -1
- package/dist/src/kernel/command-scope-utils.d.ts.map +1 -1
- package/dist/src/kernel/command-scope-utils.js.map +1 -1
- package/dist/src/kernel/flag-utils.d.ts.map +1 -1
- package/dist/src/kernel/flag-utils.js.map +1 -1
- package/dist/src/kernel/hooks.d.ts.map +1 -1
- package/dist/src/kernel/hooks.js.map +1 -1
- package/dist/src/kernel/json-document-output.d.ts.map +1 -1
- package/dist/src/kernel/json-document-output.js.map +1 -1
- package/dist/src/kernel/logger.d.ts.map +1 -1
- package/dist/src/kernel/logger.js.map +1 -1
- package/dist/src/kernel/types.d.ts +8 -1
- package/dist/src/kernel/types.d.ts.map +1 -1
- package/dist/src/kernel/types.js +7 -0
- package/dist/src/kernel/types.js.map +1 -1
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/main.js.map +1 -1
- package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/admin-user.module.js.map +1 -1
- package/dist/src/modules/domain/credentials/approver-user.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/approver-user.module.js.map +1 -1
- package/dist/src/modules/domain/credentials/creation-essentials.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/creation-essentials.module.js.map +1 -1
- package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/module.types.js.map +1 -1
- package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/database-config.module.js.map +1 -1
- package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/module.types.js.map +1 -1
- package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/paths-config.module.js.map +1 -1
- package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/runtime-selector.module.js.map +1 -1
- package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/runtime-semantics.module.js.map +1 -1
- package/dist/src/modules/domain/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/module.types.js.map +1 -1
- package/dist/src/services/application/ai-use-declarations.service.d.ts.map +1 -1
- package/dist/src/services/application/ai-use-declarations.service.js.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts +42 -3
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js +147 -42
- 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-env.service.js.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts +19 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.js +23 -5
- package/dist/src/services/application/app-local-runtime-addresses.service.js.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts +8 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.js +17 -8
- package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
- package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-schema-bootstrap.service.js +5 -1
- package/dist/src/services/application/app-schema-bootstrap.service.js.map +1 -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 +10 -1
- package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
- package/dist/src/services/application/application-browser-smoke.service.d.ts +23 -0
- package/dist/src/services/application/application-browser-smoke.service.d.ts.map +1 -1
- package/dist/src/services/application/application-browser-smoke.service.js +142 -19
- package/dist/src/services/application/application-browser-smoke.service.js.map +1 -1
- package/dist/src/services/application/application-creation-readiness.service.d.ts.map +1 -1
- package/dist/src/services/application/application-creation-readiness.service.js.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.d.ts +10 -6
- package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.js +32 -18
- package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
- package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -1
- package/dist/src/services/application/application-dev-port-offsets.js.map +1 -1
- package/dist/src/services/application/application-dev-script-migration.service.d.ts +56 -0
- package/dist/src/services/application/application-dev-script-migration.service.d.ts.map +1 -0
- package/dist/src/services/application/application-dev-script-migration.service.js +208 -0
- package/dist/src/services/application/application-dev-script-migration.service.js.map +1 -0
- package/dist/src/services/application/application-initialization-verification.service.d.ts +8 -0
- package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
- package/dist/src/services/application/application-initialization-verification.service.js +31 -11
- package/dist/src/services/application/application-initialization-verification.service.js.map +1 -1
- package/dist/src/services/application/application-root.utils.d.ts.map +1 -1
- package/dist/src/services/application/application-root.utils.js.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.js +2 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/backend-config.paths.d.ts.map +1 -1
- package/dist/src/services/application/backend-config.paths.js.map +1 -1
- package/dist/src/services/application/composition-provider-plan.service.d.ts +1 -1
- package/dist/src/services/application/composition-provider-plan.service.d.ts.map +1 -1
- package/dist/src/services/application/composition-provider-plan.service.js +53 -28
- package/dist/src/services/application/composition-provider-plan.service.js.map +1 -1
- package/dist/src/services/application/content-guardrail-classifier.service.d.ts +19 -0
- package/dist/src/services/application/content-guardrail-classifier.service.d.ts.map +1 -1
- package/dist/src/services/application/content-guardrail-classifier.service.js +76 -12
- package/dist/src/services/application/content-guardrail-classifier.service.js.map +1 -1
- package/dist/src/services/application/creation-host-readiness.service.d.ts +13 -1
- package/dist/src/services/application/creation-host-readiness.service.d.ts.map +1 -1
- package/dist/src/services/application/creation-host-readiness.service.js +44 -5
- package/dist/src/services/application/creation-host-readiness.service.js.map +1 -1
- package/dist/src/services/application/creation-preflight.service.d.ts.map +1 -1
- package/dist/src/services/application/creation-preflight.service.js.map +1 -1
- package/dist/src/services/application/degraded-registration-declaration-convergence.service.d.ts.map +1 -1
- package/dist/src/services/application/degraded-registration-declaration-convergence.service.js.map +1 -1
- package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -1
- package/dist/src/services/application/dev-orchestrator.service.js.map +1 -1
- package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
- package/dist/src/services/application/dev-schema-drift.service.js.map +1 -1
- package/dist/src/services/application/engine-label-base-seeding.service.d.ts +85 -0
- package/dist/src/services/application/engine-label-base-seeding.service.d.ts.map +1 -0
- package/dist/src/services/application/engine-label-base-seeding.service.js +130 -0
- package/dist/src/services/application/engine-label-base-seeding.service.js.map +1 -0
- package/dist/src/services/application/environment-provider-configurations.service.d.ts.map +1 -1
- package/dist/src/services/application/environment-provider-configurations.service.js.map +1 -1
- package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/existing-app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/frontend-provider-sdk-declarations.service.d.ts.map +1 -1
- package/dist/src/services/application/frontend-provider-sdk-declarations.service.js +1 -1
- package/dist/src/services/application/frontend-provider-sdk-declarations.service.js.map +1 -1
- package/dist/src/services/application/frontend-provider-source.service.d.ts.map +1 -1
- package/dist/src/services/application/frontend-provider-source.service.js.map +1 -1
- package/dist/src/services/application/frontend-providers-not-configured.service.d.ts.map +1 -1
- package/dist/src/services/application/frontend-providers-not-configured.service.js.map +1 -1
- package/dist/src/services/application/frontend-public-config-secret-screen.service.d.ts.map +1 -1
- package/dist/src/services/application/frontend-public-config-secret-screen.service.js.map +1 -1
- package/dist/src/services/application/infra-system-of-record-addresses.editor.d.ts +13 -0
- package/dist/src/services/application/infra-system-of-record-addresses.editor.d.ts.map +1 -0
- package/dist/src/services/application/infra-system-of-record-addresses.editor.js +185 -0
- package/dist/src/services/application/infra-system-of-record-addresses.editor.js.map +1 -0
- package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -1
- package/dist/src/services/application/local-app-reinit.service.js.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.map +1 -1
- package/dist/src/services/application/local-provider-doubles.service.d.ts +98 -0
- package/dist/src/services/application/local-provider-doubles.service.d.ts.map +1 -0
- package/dist/src/services/application/local-provider-doubles.service.js +214 -0
- package/dist/src/services/application/local-provider-doubles.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 +38 -10
- 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.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.d.ts +6 -2
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.js +46 -11
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
- package/dist/src/services/application/stored-declaration-currency.service.d.ts.map +1 -1
- package/dist/src/services/application/stored-declaration-currency.service.js.map +1 -1
- package/dist/src/services/application/system-of-record-simulators.service.d.ts +221 -0
- package/dist/src/services/application/system-of-record-simulators.service.d.ts.map +1 -0
- package/dist/src/services/application/system-of-record-simulators.service.js +442 -0
- package/dist/src/services/application/system-of-record-simulators.service.js.map +1 -0
- package/dist/src/services/application/systems-of-record-library.service.d.ts +1 -1
- package/dist/src/services/application/systems-of-record-library.service.d.ts.map +1 -1
- package/dist/src/services/application/systems-of-record-library.service.js +6 -3
- package/dist/src/services/application/systems-of-record-library.service.js.map +1 -1
- package/dist/src/services/assurance/assurance-cycle-location.service.d.ts +59 -0
- package/dist/src/services/assurance/assurance-cycle-location.service.d.ts.map +1 -0
- package/dist/src/services/assurance/assurance-cycle-location.service.js +139 -0
- package/dist/src/services/assurance/assurance-cycle-location.service.js.map +1 -0
- package/dist/src/services/blueprint/blueprint-apply.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-apply.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-artifact.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-artifact.service.js +2 -1
- package/dist/src/services/blueprint/blueprint-artifact.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-definition.reader.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-definition.reader.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-export.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-export.service.js +2 -1
- package/dist/src/services/blueprint/blueprint-export.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-line.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-line.service.js +5 -3
- package/dist/src/services/blueprint/blueprint-line.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-module-references.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-module-references.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-registry.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-registry.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-report.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-report.js.map +1 -1
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.d.ts +1 -1
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.js +1 -1
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.js.map +1 -1
- package/dist/src/services/blueprint/framework-blueprints.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/framework-blueprints.service.js +20 -7
- package/dist/src/services/blueprint/framework-blueprints.service.js.map +1 -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.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.d.ts +8 -33
- package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.js +23 -6
- package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -1
- 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.map +1 -1
- package/dist/src/services/coding-agents/coding-agent-login.service.d.ts.map +1 -1
- package/dist/src/services/coding-agents/coding-agent-login.service.js.map +1 -1
- package/dist/src/services/companion/agent-stop-reason-words.d.ts.map +1 -1
- package/dist/src/services/companion/agent-stop-reason-words.js.map +1 -1
- package/dist/src/services/companion/agent-work-shortfall-words.d.ts.map +1 -1
- package/dist/src/services/companion/agent-work-shortfall-words.js +21 -2
- package/dist/src/services/companion/agent-work-shortfall-words.js.map +1 -1
- package/dist/src/services/companion/build-console.service.d.ts +179 -7
- package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/build-console.service.js +184 -15
- package/dist/src/services/companion/build-console.service.js.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.map +1 -1
- package/dist/src/services/companion/companion-client.service.d.ts +25 -1
- package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client.service.js +61 -10
- package/dist/src/services/companion/companion-client.service.js.map +1 -1
- package/dist/src/services/companion/companion-health-hint.utils.d.ts +2 -1
- package/dist/src/services/companion/companion-health-hint.utils.d.ts.map +1 -1
- package/dist/src/services/companion/companion-health-hint.utils.js +8 -1
- package/dist/src/services/companion/companion-health-hint.utils.js.map +1 -1
- package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-lifecycle.service.js.map +1 -1
- package/dist/src/services/companion/companion-local-token.utils.d.ts.map +1 -1
- package/dist/src/services/companion/companion-local-token.utils.js.map +1 -1
- 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/console-agent.d.ts +50 -0
- package/dist/src/services/companion/console-agent.d.ts.map +1 -0
- package/dist/src/services/companion/console-agent.js +67 -0
- package/dist/src/services/companion/console-agent.js.map +1 -0
- package/dist/src/services/companion/console-fast-path.d.ts +6 -4
- package/dist/src/services/companion/console-fast-path.d.ts.map +1 -1
- package/dist/src/services/companion/console-fast-path.js +12 -9
- package/dist/src/services/companion/console-fast-path.js.map +1 -1
- package/dist/src/services/companion/console-verb.utils.d.ts +7 -0
- package/dist/src/services/companion/console-verb.utils.d.ts.map +1 -1
- package/dist/src/services/companion/console-verb.utils.js +22 -1
- package/dist/src/services/companion/console-verb.utils.js.map +1 -1
- package/dist/src/services/companion/creation-console.service.d.ts +44 -13
- package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-console.service.js +121 -7
- package/dist/src/services/companion/creation-console.service.js.map +1 -1
- package/dist/src/services/companion/creation-drive.service.d.ts +262 -0
- package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -0
- package/dist/src/services/companion/creation-drive.service.js +499 -0
- package/dist/src/services/companion/creation-drive.service.js.map +1 -0
- package/dist/src/services/companion/creation-run-report.models.d.ts +14 -0
- package/dist/src/services/companion/creation-run-report.models.d.ts.map +1 -1
- package/dist/src/services/companion/creation-run-report.models.js.map +1 -1
- package/dist/src/services/companion/git-helper.service.d.ts.map +1 -1
- package/dist/src/services/companion/git-helper.service.js.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.map +1 -1
- package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -1
- package/dist/src/services/companion/workbench-browser-launcher.service.js.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.map +1 -1
- package/dist/src/services/compliance/data-retention-schedule.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/data-retention-schedule.generator.js.map +1 -1
- package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts.map +1 -1
- package/dist/src/services/compliance/generated-compliance-module-wiring.js.map +1 -1
- package/dist/src/services/compliance/governed-document-releases.generator.d.ts +22 -6
- package/dist/src/services/compliance/governed-document-releases.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/governed-document-releases.generator.js +31 -11
- package/dist/src/services/compliance/governed-document-releases.generator.js.map +1 -1
- package/dist/src/services/compliance/legal-notice.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/legal-notice.generator.js.map +1 -1
- package/dist/src/services/compliance/service-consent-requirement.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/service-consent-requirement.generator.js.map +1 -1
- package/dist/src/services/compliance/subject-data-recipients.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/subject-data-recipients.generator.js.map +1 -1
- package/dist/src/services/context/context-manager.service.d.ts.map +1 -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/context.schemas.js.map +1 -1
- package/dist/src/services/context/machine-preferences.writer.d.ts.map +1 -1
- package/dist/src/services/context/machine-preferences.writer.js.map +1 -1
- package/dist/src/services/context/state-manager.service.d.ts.map +1 -1
- package/dist/src/services/context/state-manager.service.js.map +1 -1
- package/dist/src/services/credentials/application-secret-owners.service.d.ts +6 -1
- package/dist/src/services/credentials/application-secret-owners.service.d.ts.map +1 -1
- package/dist/src/services/credentials/application-secret-owners.service.js +50 -102
- package/dist/src/services/credentials/application-secret-owners.service.js.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.js +42 -13
- package/dist/src/services/credentials/application-secrets.service.js.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.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts +54 -3
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.js +77 -14
- package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.d.ts +21 -159
- package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.js +35 -18
- package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
- package/dist/src/services/credentials/credentials.service.d.ts +8 -2
- package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.service.js +11 -2
- package/dist/src/services/credentials/credentials.service.js.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.d.ts +19 -5
- package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.js +42 -14
- package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
- package/dist/src/services/credentials/local-defaults.service.d.ts.map +1 -1
- package/dist/src/services/credentials/local-defaults.service.js.map +1 -1
- package/dist/src/services/credentials/local-secrets-store.service.d.ts.map +1 -1
- package/dist/src/services/credentials/local-secrets-store.service.js.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.js +21 -5
- package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
- package/dist/src/services/credentials/provider-secret-format.d.ts.map +1 -1
- package/dist/src/services/credentials/provider-secret-format.js.map +1 -1
- package/dist/src/services/credentials/remote-secrets-store.service.d.ts.map +1 -1
- package/dist/src/services/credentials/remote-secrets-store.service.js.map +1 -1
- package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-provisioning.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-reader.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.d.ts +9 -0
- package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.js +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts +4 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.js +4 -2
- package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.d.ts +9 -0
- package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.js +9 -0
- 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/data-services/data-services.service.js.map +1 -1
- package/dist/src/services/data-services/platform-key-vault.break-glass.service.d.ts +93 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.service.d.ts.map +1 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.service.js +253 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.service.js.map +1 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.target.d.ts +22 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.target.d.ts.map +1 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.target.js +64 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.target.js.map +1 -0
- package/dist/src/services/data-services/platform-key-vault.server-config.d.ts +42 -11
- package/dist/src/services/data-services/platform-key-vault.server-config.d.ts.map +1 -1
- package/dist/src/services/data-services/platform-key-vault.server-config.js +63 -16
- package/dist/src/services/data-services/platform-key-vault.server-config.js.map +1 -1
- package/dist/src/services/deployment/application-first-run-checks.service.d.ts +131 -0
- package/dist/src/services/deployment/application-first-run-checks.service.d.ts.map +1 -0
- package/dist/src/services/deployment/application-first-run-checks.service.js +438 -0
- package/dist/src/services/deployment/application-first-run-checks.service.js.map +1 -0
- package/dist/src/services/deployment/application-runtime-environment.d.ts +93 -0
- package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -0
- package/dist/src/services/deployment/application-runtime-environment.js +116 -0
- package/dist/src/services/deployment/application-runtime-environment.js.map +1 -0
- package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -1
- package/dist/src/services/deployment/apps-manager-diagnostics.service.js.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 +14 -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.map +1 -1
- package/dist/src/services/deployment/docker/backing-service-health-watch.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/backing-service-health-watch.js.map +1 -1
- package/dist/src/services/deployment/docker/compose-service-health.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/compose-service-health.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +177 -51
- 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 +368 -93
- 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-compose-readiness.service.js.map +1 -1
- package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker.schemas.js.map +1 -1
- package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker.service.js.map +1 -1
- package/dist/src/services/deployment/docker/local-data-adoption.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/local-data-adoption.service.js.map +1 -1
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts +56 -0
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts.map +1 -0
- package/dist/src/services/deployment/framework-pod-network-membership.js +126 -0
- package/dist/src/services/deployment/framework-pod-network-membership.js.map +1 -0
- package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.js.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 +4 -4
- package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/cluster-controller-charts.constants.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/cluster-controller-charts.constants.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.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-local-infra-readiness.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +51 -10
- 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 +179 -43
- 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 +38 -2
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
- 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-operations.service.js.map +1 -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 +35 -31
- 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/k8s.schemas.js.map +1 -1
- package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/kind.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts +38 -0
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.js +84 -0
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.js.map +1 -0
- package/dist/src/services/deployment/local-dev-log-retention.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-log-retention.service.js +3 -2
- package/dist/src/services/deployment/local-dev-log-retention.service.js.map +1 -1
- package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-observer-lifecycle.js.map +1 -1
- package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-output-boundary.js.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-session-lease.service.js +22 -1
- package/dist/src/services/deployment/local-dev-session-lease.service.js.map +1 -1
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.js.map +1 -1
- package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-infrastructure-initialization.service.js.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.schemas.js.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts +53 -0
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.js +118 -1
- 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/local-runtime-process-cleanup.service.js +32 -1
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.js.map +1 -1
- package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/deployment/platform-lifecycle.service.js.map +1 -1
- package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -1
- package/dist/src/services/deployment/platform-runtime-policy.service.js.map +1 -1
- package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -1
- package/dist/src/services/deployment/version-compare.utils.js.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-command.service.js.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.service.js.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-config.template.js.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-css-block.service.js.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-paths.service.js.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.constants.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.models.js.map +1 -1
- package/dist/src/services/environment/application-backing-service-addressing.utils.d.ts.map +1 -1
- package/dist/src/services/environment/application-backing-service-addressing.utils.js.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.d.ts +9 -1
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.js +14 -1
- package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
- package/dist/src/services/environment/authored-infra-member-authority.d.ts +87 -0
- package/dist/src/services/environment/authored-infra-member-authority.d.ts.map +1 -0
- package/dist/src/services/environment/authored-infra-member-authority.js +256 -0
- package/dist/src/services/environment/authored-infra-member-authority.js.map +1 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.d.ts +56 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.d.ts.map +1 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.js +102 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.js.map +1 -0
- package/dist/src/services/environment/env-configuration-generator.service.d.ts +13 -8
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js +38 -13
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
- package/dist/src/services/environment/env-sync.service.d.ts +3 -2
- package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-sync.service.js +21 -7
- package/dist/src/services/environment/env-sync.service.js.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts +35 -4
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.js +88 -55
- 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-hydration.utils.js +29 -30
- package/dist/src/services/environment/environment-hydration.utils.js.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts +19 -0
- package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.js +35 -0
- package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
- package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-paths.service.js.map +1 -1
- package/dist/src/services/environment/environment-registry.service.d.ts +5 -6
- package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-registry.service.js +5 -6
- package/dist/src/services/environment/environment-registry.service.js.map +1 -1
- package/dist/src/services/environment/environment-service-profile.utils.d.ts +34 -0
- package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -0
- package/dist/src/services/environment/environment-service-profile.utils.js +43 -0
- package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -0
- package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.js +1 -1
- package/dist/src/services/environment/environment-setup.service.js.map +1 -1
- package/dist/src/services/environment/environment.schemas.d.ts +14 -11
- package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/environment.schemas.js.map +1 -1
- package/dist/src/services/environment/environment.service.d.ts +5 -0
- 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/hosted-infrastructure-leftovers.service.d.ts.map +1 -1
- package/dist/src/services/environment/hosted-infrastructure-leftovers.service.js.map +1 -1
- package/dist/src/services/environment/infrastructure-host.service.d.ts.map +1 -1
- package/dist/src/services/environment/infrastructure-host.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-engine-change.utils.js.map +1 -1
- package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime-state.service.js.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.d.ts +26 -0
- package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.js +28 -0
- package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts +106 -61
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.js +178 -152
- package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -1
- package/dist/src/services/framework/application-agent-hooks-console.d.ts +153 -0
- package/dist/src/services/framework/application-agent-hooks-console.d.ts.map +1 -0
- package/dist/src/services/framework/application-agent-hooks-console.js +401 -0
- package/dist/src/services/framework/application-agent-hooks-console.js.map +1 -0
- package/dist/src/services/framework/application-agent-skills-console.d.ts +78 -0
- package/dist/src/services/framework/application-agent-skills-console.d.ts.map +1 -0
- package/dist/src/services/framework/application-agent-skills-console.js +116 -0
- package/dist/src/services/framework/application-agent-skills-console.js.map +1 -0
- package/dist/src/services/framework/application-claude-settings.d.ts.map +1 -1
- package/dist/src/services/framework/application-claude-settings.js.map +1 -1
- package/dist/src/services/framework/application-console-loaders.d.ts +107 -0
- package/dist/src/services/framework/application-console-loaders.d.ts.map +1 -0
- package/dist/src/services/framework/application-console-loaders.js +221 -0
- package/dist/src/services/framework/application-console-loaders.js.map +1 -0
- package/dist/src/services/framework/application-opencode-console.d.ts +43 -0
- package/dist/src/services/framework/application-opencode-console.d.ts.map +1 -0
- package/dist/src/services/framework/application-opencode-console.js +68 -0
- package/dist/src/services/framework/application-opencode-console.js.map +1 -0
- package/dist/src/services/framework/application-provider-skills.service.d.ts.map +1 -1
- package/dist/src/services/framework/application-provider-skills.service.js.map +1 -1
- package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -1
- package/dist/src/services/framework/application-rule-imports.js.map +1 -1
- package/dist/src/services/framework/auditable-event-catalog.generator.d.ts.map +1 -1
- package/dist/src/services/framework/auditable-event-catalog.generator.js.map +1 -1
- package/dist/src/services/framework/claude-plugin-compiler.d.ts +6 -0
- package/dist/src/services/framework/claude-plugin-compiler.d.ts.map +1 -1
- package/dist/src/services/framework/claude-plugin-compiler.js +6 -1
- package/dist/src/services/framework/claude-plugin-compiler.js.map +1 -1
- package/dist/src/services/framework/dev-compile-status.paths.d.ts.map +1 -1
- package/dist/src/services/framework/dev-compile-status.paths.js.map +1 -1
- package/dist/src/services/framework/enum-member-docs.reader.d.ts.map +1 -1
- package/dist/src/services/framework/enum-member-docs.reader.js.map +1 -1
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.d.ts +5 -0
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.d.ts.map +1 -1
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.js +7 -2
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.js.map +1 -1
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +19 -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 +18 -4
- 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 +34 -2
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.js +63 -17
- 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-application-guidance.validator.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +20 -3
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.js +86 -3
- package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -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.map +1 -1
- package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-scan.constants.js.map +1 -1
- package/dist/src/services/framework/framework-npm-credential.d.ts +76 -0
- package/dist/src/services/framework/framework-npm-credential.d.ts.map +1 -0
- package/dist/src/services/framework/framework-npm-credential.js +113 -0
- package/dist/src/services/framework/framework-npm-credential.js.map +1 -0
- package/dist/src/services/framework/framework-npm-dist-tag.service.d.ts +100 -8
- package/dist/src/services/framework/framework-npm-dist-tag.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-dist-tag.service.js +147 -25
- package/dist/src/services/framework/framework-npm-dist-tag.service.js.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.d.ts +50 -4
- package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.js +128 -56
- package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
- package/dist/src/services/framework/framework-publish-cli-origin.d.ts +22 -0
- package/dist/src/services/framework/framework-publish-cli-origin.d.ts.map +1 -0
- package/dist/src/services/framework/framework-publish-cli-origin.js +49 -0
- package/dist/src/services/framework/framework-publish-cli-origin.js.map +1 -0
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts +18 -3
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-publish-manifest.service.js +43 -75
- package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
- package/dist/src/services/framework/framework-release.service.d.ts +13 -0
- package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-release.service.js +15 -2
- package/dist/src/services/framework/framework-release.service.js.map +1 -1
- package/dist/src/services/framework/framework-update.service.d.ts +7 -3
- package/dist/src/services/framework/framework-update.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-update.service.js +25 -16
- package/dist/src/services/framework/framework-update.service.js.map +1 -1
- package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-version.service.js.map +1 -1
- package/dist/src/services/framework/frontend-component-catalog.generator.d.ts.map +1 -1
- package/dist/src/services/framework/frontend-component-catalog.generator.js.map +1 -1
- package/dist/src/services/framework/frontend-library-root-exports.d.ts.map +1 -1
- package/dist/src/services/framework/frontend-library-root-exports.js.map +1 -1
- package/dist/src/services/framework/installed-framework-assets.service.d.ts +2 -2
- package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
- package/dist/src/services/framework/installed-framework-assets.service.js +4 -0
- package/dist/src/services/framework/installed-framework-assets.service.js.map +1 -1
- package/dist/src/services/framework/npm-registry-output.d.ts.map +1 -1
- package/dist/src/services/framework/npm-registry-output.js.map +1 -1
- package/dist/src/services/framework/package-install.service.d.ts +13 -3
- package/dist/src/services/framework/package-install.service.d.ts.map +1 -1
- package/dist/src/services/framework/package-install.service.js +22 -9
- package/dist/src/services/framework/package-install.service.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/api-version-settlement.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/api-version-settlement.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/base-url-settlement.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/base-url-settlement.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-merge.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-merge.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.js +3 -3
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/request-helper-url.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/request-helper-url.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/sim-source.reader.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/source-static-evaluator.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/source-static-evaluator.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/url-template.extractor.js.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host-monitoring.d.ts.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host-monitoring.js.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host-remote.d.ts.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host-remote.js.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host.service.js.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 +3 -6
- package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -1
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts +11 -3
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-dist-uploader.service.js +72 -29
- package/dist/src/services/frontend/frontend-dist-uploader.service.js.map +1 -1
- package/dist/src/services/frontend/frontend-look.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-look.service.js +2 -1
- package/dist/src/services/frontend/frontend-look.service.js.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.map +1 -1
- package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/domain-generator.service.js.map +1 -1
- package/dist/src/services/generation/generator.schemas.d.ts.map +1 -1
- package/dist/src/services/generation/generator.schemas.js.map +1 -1
- package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/operation-generator.service.js.map +1 -1
- package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/resource-generator.service.js.map +1 -1
- package/dist/src/services/generation/template-registry.service.d.ts.map +1 -1
- package/dist/src/services/generation/template-registry.service.js.map +1 -1
- package/dist/src/services/registry/application-provider-connection.service.d.ts +161 -0
- package/dist/src/services/registry/application-provider-connection.service.d.ts.map +1 -0
- package/dist/src/services/registry/application-provider-connection.service.js +337 -0
- package/dist/src/services/registry/application-provider-connection.service.js.map +1 -0
- package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
- package/dist/src/services/registry/artifact-extractor.utils.js.map +1 -1
- package/dist/src/services/registry/artifact-trust.utils.d.ts.map +1 -1
- package/dist/src/services/registry/artifact-trust.utils.js.map +1 -1
- package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -1
- package/dist/src/services/registry/boundary-fanout.utils.js.map +1 -1
- package/dist/src/services/registry/git-ignored-paths.utils.d.ts.map +1 -1
- package/dist/src/services/registry/git-ignored-paths.utils.js +13 -2
- package/dist/src/services/registry/git-ignored-paths.utils.js.map +1 -1
- package/dist/src/services/registry/index.d.ts.map +1 -1
- package/dist/src/services/registry/index.js.map +1 -1
- package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
- package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
- package/dist/src/services/registry/installed-provider-module.service.d.ts.map +1 -1
- package/dist/src/services/registry/installed-provider-module.service.js.map +1 -1
- package/dist/src/services/registry/local-checkout-module-source.service.d.ts.map +1 -1
- package/dist/src/services/registry/local-checkout-module-source.service.js.map +1 -1
- package/dist/src/services/registry/migration-obligation.utils.d.ts.map +1 -1
- package/dist/src/services/registry/migration-obligation.utils.js.map +1 -1
- package/dist/src/services/registry/module-acquisition.utils.d.ts.map +1 -1
- package/dist/src/services/registry/module-acquisition.utils.js.map +1 -1
- package/dist/src/services/registry/module-artifact-files.utils.d.ts.map +1 -1
- package/dist/src/services/registry/module-artifact-files.utils.js.map +1 -1
- package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-install.service.js.map +1 -1
- package/dist/src/services/registry/module-publish.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-publish.service.js +16 -7
- package/dist/src/services/registry/module-publish.service.js.map +1 -1
- package/dist/src/services/registry/module-registration.service.d.ts +0 -11
- package/dist/src/services/registry/module-registration.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-registration.service.js +88 -149
- package/dist/src/services/registry/module-registration.service.js.map +1 -1
- package/dist/src/services/registry/module-requirements.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-requirements.service.js +5 -5
- package/dist/src/services/registry/module-requirements.service.js.map +1 -1
- package/dist/src/services/registry/provider-configuration-checks.service.d.ts +55 -0
- package/dist/src/services/registry/provider-configuration-checks.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-configuration-checks.service.js +208 -0
- package/dist/src/services/registry/provider-configuration-checks.service.js.map +1 -0
- package/dist/src/services/registry/provider-connect.service.d.ts +300 -0
- package/dist/src/services/registry/provider-connect.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-connect.service.js +712 -0
- package/dist/src/services/registry/provider-connect.service.js.map +1 -0
- package/dist/src/services/registry/provider-graphql-schema-conformance.service.d.ts +29 -0
- package/dist/src/services/registry/provider-graphql-schema-conformance.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-graphql-schema-conformance.service.js +121 -0
- package/dist/src/services/registry/provider-graphql-schema-conformance.service.js.map +1 -0
- package/dist/src/services/registry/provider-install-step.d.ts +38 -4
- package/dist/src/services/registry/provider-install-step.d.ts.map +1 -1
- package/dist/src/services/registry/provider-install-step.js +56 -11
- package/dist/src/services/registry/provider-install-step.js.map +1 -1
- package/dist/src/services/registry/provider-module-checks.service.d.ts +12 -1
- package/dist/src/services/registry/provider-module-checks.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-checks.service.js +114 -25
- package/dist/src/services/registry/provider-module-checks.service.js.map +1 -1
- package/dist/src/services/registry/provider-module-engine-range.service.d.ts +88 -0
- package/dist/src/services/registry/provider-module-engine-range.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-module-engine-range.service.js +386 -0
- package/dist/src/services/registry/provider-module-engine-range.service.js.map +1 -0
- package/dist/src/services/registry/provider-module-identity.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-identity.service.js.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.d.ts +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.js +9 -0
- package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
- package/dist/src/services/registry/provider-module-vendor-packages.service.d.ts +2 -2
- package/dist/src/services/registry/provider-module-vendor-packages.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-vendor-packages.service.js +9 -6
- package/dist/src/services/registry/provider-module-vendor-packages.service.js.map +1 -1
- package/dist/src/services/registry/provider-openapi-conformance.service.d.ts +22 -12
- package/dist/src/services/registry/provider-openapi-conformance.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-openapi-conformance.service.js +122 -51
- package/dist/src/services/registry/provider-openapi-conformance.service.js.map +1 -1
- package/dist/src/services/registry/provider-probe-credentials.service.d.ts +94 -0
- package/dist/src/services/registry/provider-probe-credentials.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-probe-credentials.service.js +184 -0
- package/dist/src/services/registry/provider-probe-credentials.service.js.map +1 -0
- package/dist/src/services/registry/provider-probe.service.d.ts +189 -5
- package/dist/src/services/registry/provider-probe.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-probe.service.js +268 -54
- package/dist/src/services/registry/provider-probe.service.js.map +1 -1
- package/dist/src/services/registry/provider-proof.service.d.ts +206 -0
- package/dist/src/services/registry/provider-proof.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-proof.service.js +640 -0
- package/dist/src/services/registry/provider-proof.service.js.map +1 -0
- package/dist/src/services/registry/provider-publication.service.d.ts +8 -0
- package/dist/src/services/registry/provider-publication.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-publication.service.js +25 -12
- package/dist/src/services/registry/provider-publication.service.js.map +1 -1
- package/dist/src/services/registry/provider-vendor-registration.service.d.ts +10 -0
- package/dist/src/services/registry/provider-vendor-registration.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-vendor-registration.service.js +34 -0
- package/dist/src/services/registry/provider-vendor-registration.service.js.map +1 -1
- package/dist/src/services/registry/provider-wiring.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-wiring.service.js +4 -4
- package/dist/src/services/registry/provider-wiring.service.js.map +1 -1
- package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
- package/dist/src/services/registry/registry-command.utils.js.map +1 -1
- package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -1
- package/dist/src/services/registry/registry-credentials.service.js.map +1 -1
- package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -1
- package/dist/src/services/registry/saas-root-required.error.js.map +1 -1
- package/dist/src/services/security/csp-sync.service.d.ts +20 -1
- package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
- package/dist/src/services/security/csp-sync.service.js +48 -6
- 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/tools/utility-tools.service.js.map +1 -1
- package/dist/src/services/tracker/creation-run-tracker.service.d.ts.map +1 -1
- package/dist/src/services/tracker/creation-run-tracker.service.js.map +1 -1
- package/dist/src/services/website/website-label-pack-audit.service.d.ts +2 -2
- package/dist/src/services/website/website-label-pack-audit.service.d.ts.map +1 -1
- package/dist/src/services/website/website-label-pack-audit.service.js +5 -4
- package/dist/src/services/website/website-label-pack-audit.service.js.map +1 -1
- package/dist/src/services/website/website-look.service.d.ts.map +1 -1
- package/dist/src/services/website/website-look.service.js.map +1 -1
- package/dist/src/services/website/website-schema-org-catalog.worker.d.ts +18 -0
- package/dist/src/services/website/website-schema-org-catalog.worker.d.ts.map +1 -0
- package/dist/src/services/website/website-schema-org-catalog.worker.js +104 -0
- package/dist/src/services/website/website-schema-org-catalog.worker.js.map +1 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts +32 -5
- 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 +63 -36
- package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
- package/dist/src/services/website/website-workspace.service.d.ts +42 -7
- package/dist/src/services/website/website-workspace.service.d.ts.map +1 -1
- package/dist/src/services/website/website-workspace.service.js +121 -12
- package/dist/src/services/website/website-workspace.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/framework-root-package.json +121 -59
- package/package.json +180 -99
- package/scripts/app-dependency-alignment/propagated-engine-overrides.json +67 -27
- package/scripts/dev-orchestrator/local-dev-protocol.mjs +176 -7
- package/scripts/dev-orchestrator/local-dev-status.mjs +297 -31
- package/scripts/pnpm-workspace-members.mjs +146 -0
- package/scripts/pnpm-workspace-settings.mjs +418 -0
- package/templates/infra/ci/deploy-k8s.yml.hbs +1 -1
- package/templates/infra/docker-compose/docker-compose.app.yml.hbs +17 -22
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +139 -63
- package/templates/infra/docker-images/platform/Dockerfile.platform-base +2 -1
- package/templates/infra/k8s/applications/wildo-ai-application/custom-domain-reconciler.yaml.hbs +222 -0
- package/templates/infra/k8s/applications/wildo-ai-application/minion.deployment.yaml.hbs +30 -13
- package/templates/infra/k8s/ingress/cert-manager/wildcard-certificate.yaml.hbs +1 -2
- package/templates/infra/k8s/internal/clamav/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/internal/immudb/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/internal/minio/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/internal/mongodb/deployment.yaml.hbs +11 -0
- package/templates/infra/k8s/internal/mongot/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/internal/openbao/configmap.yaml.hbs +2 -2
- package/templates/infra/k8s/internal/openbao/deployment.yaml.hbs +19 -2
- package/templates/infra/k8s/internal/postgresql/deployment.yaml.hbs +2 -1
- package/templates/infra/k8s/internal/rabbitmq/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/internal/valkey/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/platform/platform-apps-manager/deployment.yaml.hbs +31 -0
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/platform/platform-module-registry/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +3 -1
- package/templates/infra/registry-host/docker-compose.yml +4 -0
- package/templates/infra/yara-service/requirements.txt +1 -1
- package/templates/saas/blueprints/b2b-saas/blueprint.json +1 -1
- package/templates/saas/blueprints/internal-tool/blueprint.json +13 -1
- package/templates/saas/blueprints/service-firm/blueprint.json +1 -1
- package/templates/saas/engine-peer-closure.json +66 -8
- package/templates/saas/i18n/email/components/labels.fr.ts +1 -1
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/organizationInvoiceRefs/create.organization-billing_payment-failed/labels.fr.ts +7 -5
- package/templates/saas/i18n/email/resources/organizationInvoiceRefs/update.organization-billing_payment-failed/labels.fr.ts +7 -5
- package/templates/saas/i18n/email/resources/organizationMembers/{update.organization-users → update.organization-user-management}/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.en.ts +23 -0
- package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/template.tsx +63 -0
- package/templates/saas/i18n/email/resources/organizationSubscriptions/cancel.organization-billing_subscription-ending/labels.fr.ts +10 -8
- package/templates/saas/i18n/email/resources/organizationSubscriptions/create.organization-billing_subscription-started/labels.fr.ts +5 -3
- package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-ending/labels.fr.ts +11 -9
- package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-started/labels.fr.ts +5 -3
- package/templates/saas/i18n/email/resources/userInvoiceRefs/create.users-custom_payment-failed/labels.fr.ts +8 -6
- package/templates/saas/i18n/email/resources/userInvoiceRefs/update.users-custom_payment-failed/labels.fr.ts +6 -4
- package/templates/saas/i18n/email/resources/userSubscriptions/cancel.users-custom_subscription-ending/labels.fr.ts +10 -8
- package/templates/saas/i18n/email/resources/userSubscriptions/create.users-custom_subscription-started/labels.fr.ts +6 -4
- package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-ending/labels.fr.ts +11 -9
- package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-started/labels.fr.ts +6 -4
- package/templates/saas/i18n/email/system/new-device-login/labels.fr.ts +5 -5
- package/templates/saas/i18n/email/system/relationship-invitation/labels.fr.ts +3 -3
- package/templates/saas/i18n/engine/README.md +8 -3
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_COMMAND_MENU.en.ts +2 -1
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_COMMAND_MENU.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_USER_DROPDOWN.en.ts +2 -1
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_USER_DROPDOWN.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.ts +3 -3
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.fr.ts +3 -3
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS.en.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.ts +4 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.fr.ts +4 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS.en.ts +4 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS.fr.ts +4 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_REPRESENTATIVE_ACTIVITY_SETTINGS.en.ts +35 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_REPRESENTATIVE_ACTIVITY_SETTINGS.fr.ts +35 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_SECURITY_SETTINGS.fr.ts +9 -9
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.ts +10 -1
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.fr.ts +10 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +18 -4
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +18 -4
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_USAGE.en.ts +4 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_USAGE.fr.ts +4 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +4 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +4 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -7
- package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -7
- package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +432 -0
- package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +432 -0
- package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +497 -0
- package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +497 -0
- package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +3 -3
- package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +2 -1
- package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +2 -1
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +57 -42
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +19 -4
- package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +113 -0
- package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +113 -0
- package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +18 -31
- package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +3 -16
- package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +223 -0
- package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +223 -0
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +64 -0
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +64 -0
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +11 -28
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +0 -17
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +10 -24
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +3 -17
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +4 -4
- package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +5 -5
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +14 -14
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +3 -3
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +44 -44
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/applications.en.ts +280 -8
- package/templates/saas/i18n/engine/resources/applications.fr.ts +279 -7
- package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +529 -0
- package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +529 -0
- package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +281 -325
- package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +120 -164
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +36 -36
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +4 -4
- package/templates/saas/i18n/engine/resources/files.en.ts +30 -1
- package/templates/saas/i18n/engine/resources/files.fr.ts +30 -1
- package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +226 -248
- package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +60 -82
- package/templates/saas/i18n/engine/resources/legalHolds.en.ts +21 -21
- package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +221 -0
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +221 -0
- package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +184 -0
- package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +184 -0
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +16 -26
- package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -12
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +24 -22
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +24 -22
- package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +64 -0
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +64 -0
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +11 -28
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +0 -17
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +12 -4
- package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +12 -4
- package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +23 -4
- package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +23 -4
- package/templates/saas/i18n/engine/resources/{workbenchParkedCodingQuestions.en.ts → organizationModelUsageCeilingState.en.ts} +75 -81
- package/templates/saas/i18n/engine/resources/{workbenchParkedCodingQuestions.fr.ts → organizationModelUsageCeilingState.fr.ts} +75 -81
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +35 -45
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -12
- package/templates/saas/i18n/engine/resources/{workbenchComplianceCandidateVariantSelections.en.ts → organizationPersonTokenCeilingState.en.ts} +70 -54
- package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +166 -0
- package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +9 -1
- package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +9 -1
- package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +27 -27
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +17 -2
- package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +17 -2
- package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +8 -2
- package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +8 -2
- package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +20 -28
- package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +1 -9
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +6 -6
- package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +6 -6
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +15 -15
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +4 -4
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +69 -69
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +169 -169
- package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +4 -4
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +19 -3
- package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +18 -2
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +9 -9
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizations.en.ts +45 -10
- package/templates/saas/i18n/engine/resources/organizations.fr.ts +45 -10
- package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +46 -46
- package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/{workbenchCreationHomeLines.en.ts → postCommitEffectOutbox.en.ts} +58 -75
- package/templates/saas/i18n/engine/resources/{workbenchCreationHomeLines.fr.ts → postCommitEffectOutbox.fr.ts} +58 -75
- package/templates/saas/i18n/engine/resources/prices.en.ts +10 -10
- package/templates/saas/i18n/engine/resources/prices.fr.ts +10 -10
- package/templates/saas/i18n/engine/resources/products.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/products.fr.ts +5 -5
- package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +345 -0
- package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +345 -0
- package/templates/saas/i18n/engine/resources/promotions.en.ts +10 -10
- package/templates/saas/i18n/engine/resources/promotions.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +19 -1
- package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +19 -1
- package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +334 -0
- package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +334 -0
- package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +24 -24
- package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +8 -2
- package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +8 -2
- package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +223 -2
- package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +223 -2
- package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/{workbenchBrandNameJurisdictions.en.ts → ssoDomainReservations.en.ts} +57 -44
- package/templates/saas/i18n/engine/resources/{workbenchMarketCategories.fr.ts → ssoDomainReservations.fr.ts} +52 -47
- package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +69 -0
- package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +69 -0
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/userBillingAccounts.en.ts +31 -31
- package/templates/saas/i18n/engine/resources/userBillingAccounts.fr.ts +31 -31
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +64 -0
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +64 -0
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +11 -28
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +0 -17
- package/templates/saas/i18n/engine/resources/userInvoiceRefs.en.ts +18 -5
- package/templates/saas/i18n/engine/resources/userInvoiceRefs.fr.ts +18 -5
- package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +5 -7
- package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +2 -4
- package/templates/saas/i18n/engine/resources/userPreferences.en.ts +15 -2
- package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +15 -2
- package/templates/saas/i18n/engine/resources/userProfiles.en.ts +15 -2
- package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +15 -2
- package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +11 -11
- package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +15 -4
- package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +15 -4
- package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +15 -4
- package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +15 -4
- package/templates/saas/i18n/engine/resources/userSubscriptions.en.ts +7 -2
- package/templates/saas/i18n/engine/resources/userSubscriptions.fr.ts +7 -2
- package/templates/saas/i18n/engine/resources/userUsageRecords.en.ts +25 -4
- package/templates/saas/i18n/engine/resources/userUsageRecords.fr.ts +25 -4
- package/templates/saas/i18n/engine/resources/user_self.en.ts +46 -5
- package/templates/saas/i18n/engine/resources/user_self.fr.ts +46 -5
- package/templates/saas/i18n/engine/resources/users.en.ts +23 -36
- package/templates/saas/i18n/engine/resources/users.fr.ts +23 -36
- package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__/landing.landing-hero.json.hbs +6 -0
- package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__.json.hbs +0 -5
- package/templates/saas/scenarios/add-locale/scenario.json +2 -2
- package/templates/saas/scenarios/add-marketing-page/files/website/src/i18n/en/__pageRef__.__pageRef__-hero.json.hbs +4 -0
- package/templates/saas/scenarios/add-marketing-page/scenario.json +3 -5
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/package.json.hbs +2 -2
- package/templates/saas/scenarios/add-resource/files/shared-lib/src/modules/__moduleId__/resources/__resourceDir__/__resourceDir__.schemas.ts.hbs +6 -0
- package/templates/saas/scenarios/add-resource/scenario.json +1 -1
- package/templates/saas/scenarios/add-technical-doc/files/patches/@docusaurus__utils@3.10.2.patch +77 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +15 -13
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/basic.conf +2 -3
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/location/cross-domain-fonts.conf.hbs +3 -5
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/sites-enabled/default.hbs +10 -19
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/package.json.hbs +1 -1
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/scripts/verify-api-reference-conservation.ts +1 -1
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/csp.config.ts +16 -3
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/documentation-site-locales.ts +29 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated/api-reference/indexes/api-reference-search.json +4 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated/consumer-documentation/indexes/search.json +4 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated/csp.generated.json.hbs +10 -2
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/search.tsx +29 -4
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +8 -5
- package/templates/saas/scenarios/add-technical-doc/scenario.json +7 -3
- package/templates/saas/scenarios/add-website/files/website/Dockerfile +2 -0
- package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -8
- package/templates/saas/scenarios/add-website/files/website/package.json.hbs +4 -4
- package/templates/saas/scenarios/add-website/files/website/src/csp.config.ts +10 -2
- package/templates/saas/scenarios/add-website/files/website/src/generated/csp.generated.json.hbs +10 -2
- package/templates/saas/scenarios/add-website/files/website/src/i18n/en/landing.landing-hero.json.hbs +6 -0
- package/templates/saas/scenarios/add-website/files/website/src/i18n/en.json.hbs +0 -5
- package/templates/saas/scenarios/add-website/scenario.json +4 -2
- package/templates/saas/scenarios/add-website-section/files/website/src/i18n/en/__pageRef__.__sectionRef__.json.hbs +10 -0
- package/templates/saas/scenarios/add-website-section/scenario.json +2 -16
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/package.json.hbs +3 -2
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/src/index.ts.hbs +2 -3
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Cargo.lock.hbs +2233 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Cargo.toml.hbs +12 -2
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Dockerfile.hbs +27 -9
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/README.md +96 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/main.rs.hbs +159 -156
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/response_integrity.rs +851 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/worker_request_keys.rs +404 -0
- package/templates/saas/scenarios/add-worker-rust/scenario.json +2 -2
- package/templates/saas/skeleton/.wildo-saas/dev-framework-scripts/sync-engine.sh +39 -7
- package/templates/saas/skeleton/backend-api/package.json.hbs +7 -2
- package/templates/saas/skeleton/backend-api/src/index.ts +7 -6
- package/templates/saas/skeleton/backend-api/src/saas-config.backend.ts.hbs +1 -3
- package/templates/saas/skeleton/backend-api/tsconfig.build.json +1 -1
- package/templates/saas/skeleton/frontend/package.json.hbs +6 -2
- package/templates/saas/skeleton/frontend/src/__tests__/setup.ts.hbs +18 -14
- package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +3 -1
- package/templates/saas/skeleton/frontend/src/csp.config.ts +10 -2
- package/templates/saas/skeleton/frontend/src/engine/component-registrations.frontend.ts +1 -1
- package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +10 -2
- package/templates/saas/skeleton/frontend/src/index.css.hbs +25 -18
- package/templates/saas/skeleton/frontend/src/modules-registry.frontend.ts.hbs +7 -2
- package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +20 -9
- package/templates/saas/skeleton/frontend/vite.config.ts.hbs +22 -3
- package/templates/saas/skeleton/gitignore +13 -0
- package/templates/saas/skeleton/shared-lib/package.json.hbs +6 -1
- package/templates/saas/skeleton/specifications/package.json.hbs +10 -1
- package/templates/saas/skeleton/tsconfig.common.json +6 -2
- package/wildo-framework.info.json +1 -1
- package/dist/src/services/application/provider-package-links.service.d.ts +0 -210
- package/dist/src/services/application/provider-package-links.service.d.ts.map +0 -1
- package/dist/src/services/application/provider-package-links.service.js +0 -421
- package/dist/src/services/application/provider-package-links.service.js.map +0 -1
- package/templates/infra/k8s/ingress/providers/scaleway-annotations.yaml.hbs +0 -39
- package/templates/saas/i18n/engine/resources/workbenchApplicationSecrets.en.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchApplicationSecrets.fr.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchAuthoredDocumentFactDeclarations.en.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchAuthoredDocumentFactDeclarations.fr.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchBrandAssets.en.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchBrandAssets.fr.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchBrandAudiences.en.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchBrandAudiences.fr.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchBrandLogoDirections.en.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBrandLogoDirections.fr.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBrandNameCandidates.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchBrandNameCandidates.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchBrandNameJurisdictions.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchBrandNameNiceClasses.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchBrandNameNiceClasses.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchBrandNames.en.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBrandNames.fr.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBrandVisualTones.en.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBrandVisualTones.fr.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatchPlan.en.ts +0 -278
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatchPlan.fr.ts +0 -278
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatches.en.ts +0 -238
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatches.fr.ts +0 -238
- package/templates/saas/i18n/engine/resources/workbenchBuildPlanTasks.en.ts +0 -515
- package/templates/saas/i18n/engine/resources/workbenchBuildPlanTasks.fr.ts +0 -515
- package/templates/saas/i18n/engine/resources/workbenchBuildTaskRecords.en.ts +0 -702
- package/templates/saas/i18n/engine/resources/workbenchBuildTaskRecords.fr.ts +0 -702
- package/templates/saas/i18n/engine/resources/workbenchBuildTasks.en.ts +0 -878
- package/templates/saas/i18n/engine/resources/workbenchBuildTasks.fr.ts +0 -878
- package/templates/saas/i18n/engine/resources/workbenchCodingLaneStatus.en.ts +0 -238
- package/templates/saas/i18n/engine/resources/workbenchCodingLaneStatus.fr.ts +0 -238
- package/templates/saas/i18n/engine/resources/workbenchComplianceApplicabilityDecisions.en.ts +0 -206
- package/templates/saas/i18n/engine/resources/workbenchComplianceApplicabilityDecisions.fr.ts +0 -206
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSections.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSections.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSetSections.en.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSetSections.fr.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateVariantSelections.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidates.en.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidates.fr.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceCoverageDecisions.en.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceCoverageDecisions.fr.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceDocumentationRequirements.en.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchComplianceDocumentationRequirements.fr.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchComplianceGaps.en.ts +0 -278
- package/templates/saas/i18n/engine/resources/workbenchComplianceGaps.fr.ts +0 -278
- package/templates/saas/i18n/engine/resources/workbenchComplianceImplementationDecisions.en.ts +0 -214
- package/templates/saas/i18n/engine/resources/workbenchComplianceImplementationDecisions.fr.ts +0 -214
- package/templates/saas/i18n/engine/resources/workbenchComplianceObligations.en.ts +0 -518
- package/templates/saas/i18n/engine/resources/workbenchComplianceObligations.fr.ts +0 -518
- package/templates/saas/i18n/engine/resources/workbenchComplianceResponsibilityAssignments.en.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceResponsibilityAssignments.fr.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceRoleAuthorities.en.ts +0 -326
- package/templates/saas/i18n/engine/resources/workbenchComplianceRoleAuthorities.fr.ts +0 -326
- package/templates/saas/i18n/engine/resources/workbenchComplianceScopeSelectors.en.ts +0 -326
- package/templates/saas/i18n/engine/resources/workbenchComplianceScopeSelectors.fr.ts +0 -326
- package/templates/saas/i18n/engine/resources/workbenchComplianceSharedResponsibilityRules.en.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceSharedResponsibilityRules.fr.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchCompositionDecisions.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchCompositionDecisions.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchCreationOutcomes.en.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchCreationOutcomes.fr.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchDocumentFactDeclarations.en.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchDocumentFactDeclarations.fr.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchDocumentPublicationVariants.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchDocumentPublicationVariants.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchDocumentReleases.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchDocumentReleases.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchDocumentationChapters.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchDocumentationChapters.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanLifecycles.en.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanLifecycles.fr.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanModules.en.ts +0 -358
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanModules.fr.ts +0 -358
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanRelationships.en.ts +0 -206
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanRelationships.fr.ts +0 -206
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanResources.en.ts +0 -430
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanResources.fr.ts +0 -430
- package/templates/saas/i18n/engine/resources/workbenchDomainResources.en.ts +0 -534
- package/templates/saas/i18n/engine/resources/workbenchDomainResources.fr.ts +0 -534
- package/templates/saas/i18n/engine/resources/workbenchDossierEntries.en.ts +0 -456
- package/templates/saas/i18n/engine/resources/workbenchDossierEntries.fr.ts +0 -456
- package/templates/saas/i18n/engine/resources/workbenchExperienceConfigurations.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchExperienceConfigurations.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchExperienceGuidance.en.ts +0 -486
- package/templates/saas/i18n/engine/resources/workbenchExperienceGuidance.fr.ts +0 -486
- package/templates/saas/i18n/engine/resources/workbenchExperienceHomes.en.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchExperienceHomes.fr.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchExperienceMilestones.en.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchExperienceMilestones.fr.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchExperienceViews.en.ts +0 -510
- package/templates/saas/i18n/engine/resources/workbenchExperienceViews.fr.ts +0 -510
- package/templates/saas/i18n/engine/resources/workbenchFeatureDrafts.en.ts +0 -390
- package/templates/saas/i18n/engine/resources/workbenchFeatureDrafts.fr.ts +0 -390
- package/templates/saas/i18n/engine/resources/workbenchFunctionalRequirements.en.ts +0 -574
- package/templates/saas/i18n/engine/resources/workbenchFunctionalRequirements.fr.ts +0 -574
- package/templates/saas/i18n/engine/resources/workbenchGovernanceDocuments.en.ts +0 -308
- package/templates/saas/i18n/engine/resources/workbenchGovernanceDocuments.fr.ts +0 -308
- package/templates/saas/i18n/engine/resources/workbenchGovernanceQuestions.en.ts +0 -230
- package/templates/saas/i18n/engine/resources/workbenchGovernanceQuestions.fr.ts +0 -230
- package/templates/saas/i18n/engine/resources/workbenchIntegrationInboundChannels.en.ts +0 -334
- package/templates/saas/i18n/engine/resources/workbenchIntegrationInboundChannels.fr.ts +0 -334
- package/templates/saas/i18n/engine/resources/workbenchIntegrationMinions.en.ts +0 -414
- package/templates/saas/i18n/engine/resources/workbenchIntegrationMinions.fr.ts +0 -414
- package/templates/saas/i18n/engine/resources/workbenchIntegrationProviderBindings.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchIntegrationProviderBindings.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchIntegrationWorkers.en.ts +0 -334
- package/templates/saas/i18n/engine/resources/workbenchIntegrationWorkers.fr.ts +0 -334
- package/templates/saas/i18n/engine/resources/workbenchMarketAlternatives.en.ts +0 -230
- package/templates/saas/i18n/engine/resources/workbenchMarketAlternatives.fr.ts +0 -222
- package/templates/saas/i18n/engine/resources/workbenchMarketBenefits.en.ts +0 -606
- package/templates/saas/i18n/engine/resources/workbenchMarketBenefits.fr.ts +0 -598
- package/templates/saas/i18n/engine/resources/workbenchMarketBuyingJourneys.en.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchMarketBuyingJourneys.fr.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchMarketCategories.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchMarketChannels.en.ts +0 -270
- package/templates/saas/i18n/engine/resources/workbenchMarketChannels.fr.ts +0 -262
- package/templates/saas/i18n/engine/resources/workbenchMarketGains.en.ts +0 -270
- package/templates/saas/i18n/engine/resources/workbenchMarketGains.fr.ts +0 -262
- package/templates/saas/i18n/engine/resources/workbenchMarketIcps.en.ts +0 -990
- package/templates/saas/i18n/engine/resources/workbenchMarketIcps.fr.ts +0 -990
- package/templates/saas/i18n/engine/resources/workbenchMarketJobs.en.ts +0 -350
- package/templates/saas/i18n/engine/resources/workbenchMarketJobs.fr.ts +0 -342
- package/templates/saas/i18n/engine/resources/workbenchMarketMessageTemplates.en.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchMarketMessageTemplates.fr.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchMarketObjections.en.ts +0 -422
- package/templates/saas/i18n/engine/resources/workbenchMarketObjections.fr.ts +0 -414
- package/templates/saas/i18n/engine/resources/workbenchMarketPains.en.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchMarketPains.fr.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchMarketPersonas.en.ts +0 -518
- package/templates/saas/i18n/engine/resources/workbenchMarketPersonas.fr.ts +0 -510
- package/templates/saas/i18n/engine/resources/workbenchMarketPositionings.en.ts +0 -342
- package/templates/saas/i18n/engine/resources/workbenchMarketPositionings.fr.ts +0 -334
- package/templates/saas/i18n/engine/resources/workbenchMarketProofs.en.ts +0 -366
- package/templates/saas/i18n/engine/resources/workbenchMarketProofs.fr.ts +0 -358
- package/templates/saas/i18n/engine/resources/workbenchMarketTonesOfVoice.en.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchMarketTonesOfVoice.fr.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchMarketTriggers.en.ts +0 -286
- package/templates/saas/i18n/engine/resources/workbenchMarketTriggers.fr.ts +0 -278
- package/templates/saas/i18n/engine/resources/workbenchNonFunctionalRequirements.en.ts +0 -574
- package/templates/saas/i18n/engine/resources/workbenchNonFunctionalRequirements.fr.ts +0 -574
- package/templates/saas/i18n/engine/resources/workbenchPlacementDecisions.en.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchPlacementDecisions.fr.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchPlacementGroups.en.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchPlacementGroups.fr.ts +0 -182
- package/templates/saas/i18n/engine/resources/workbenchPlaybookRuns.en.ts +0 -358
- package/templates/saas/i18n/engine/resources/workbenchPlaybookRuns.fr.ts +0 -358
- package/templates/saas/i18n/engine/resources/workbenchPlaybooks.en.ts +0 -1256
- package/templates/saas/i18n/engine/resources/workbenchPlaybooks.fr.ts +0 -1256
- package/templates/saas/i18n/engine/resources/workbenchPricingPlans.en.ts +0 -286
- package/templates/saas/i18n/engine/resources/workbenchPricingPlans.fr.ts +0 -286
- package/templates/saas/i18n/engine/resources/workbenchProcessorRegisterEntries.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchProcessorRegisterEntries.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchReleasePolicySelections.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchReleasePolicySelections.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchRequirementMaturities.en.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchRequirementMaturities.fr.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchRiskRegisterEntries.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchRiskRegisterEntries.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchRoadmapPhases.en.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchRoadmapPhases.fr.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchRunWriteRecords.en.ts +0 -599
- package/templates/saas/i18n/engine/resources/workbenchRunWriteRecords.fr.ts +0 -599
- package/templates/saas/i18n/engine/resources/workbenchSpecificationArtifacts.en.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchSpecificationArtifacts.fr.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchTraceSessions.en.ts +0 -394
- package/templates/saas/i18n/engine/resources/workbenchTraceSessions.fr.ts +0 -394
- package/templates/saas/i18n/engine/resources/workbenchVisionConstraints.en.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchVisionConstraints.fr.ts +0 -182
- package/templates/saas/i18n/engine/resources/workbenchVisionIdeas.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchVisionIdeas.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchVisionMissions.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchVisionMissions.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchVisionProblems.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchVisionProblems.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchVisionSuccessCriteria.en.ts +0 -390
- package/templates/saas/i18n/engine/resources/workbenchVisionSuccessCriteria.fr.ts +0 -390
- package/templates/saas/i18n/engine/resources/workbenchWaitingPlaybookRuns.en.ts +0 -214
- package/templates/saas/i18n/engine/resources/workbenchWaitingPlaybookRuns.fr.ts +0 -214
- package/templates/saas/i18n/engine/resources/workbenchWebsitePages.en.ts +0 -214
- package/templates/saas/i18n/engine/resources/workbenchWebsitePages.fr.ts +0 -214
- /package/templates/saas/i18n/email/resources/organizationMembers/{update.organization-users → update.organization-user-management}/labels.en.ts +0 -0
- /package/templates/saas/i18n/email/resources/organizationMembers/{update.organization-users → update.organization-user-management}/labels.fr.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-package.emitter.js","sourceRoot":"","sources":["../../../../../../../src/services/framework/provider-transposition/provider-package.emitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAClG,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,oHAAoH;AACpH,gHAAgH;AAChH,OAAO,EAAE,6BAA6B,EAAE,uCAAuC,EAAE,MAAM,+CAA+C,CAAC;AACvI,OAAO,EAAE,iCAAiC,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,+BAA+B,EAAE,YAAY,EAAkC,MAAM,uBAAuB,CAAC;AACtH,OAAO,EACL,0CAA0C,EAC1C,sCAAsC,EACtC,uCAAuC,EACvC,yCAAyC,EACzC,sCAAsC,EACtC,oCAAoC,EACpC,6BAA6B,EAC7B,2BAA2B,EAC3B,0CAA0C,EAC1C,sCAAsC,EACtC,kDAAkD,EAClD,wCAAwC,EACxC,gDAAgD,EAChD,yCAAyC,EACzC,sCAAsC,GAGvC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,iCAAiC,EACjC,sBAAsB,EACtB,sBAAsB,EACtB,cAAc,EACd,WAAW,EACX,wBAAwB,GAEzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,6BAA6B,EAC7B,2BAA2B,GAM5B,MAAM,6BAA6B,CAAC;AAwIrC;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,iBAiCX;AAjCD,WAAY,iBAAiB;IAC3B;;;;OAIG;IACH,sEAAiD,CAAA;IACjD,sEAAsE;IACtE,0DAAqC,CAAA;IACrC,gFAAgF;IAChF,kEAA6C,CAAA;IAC7C;;;;OAIG;IACH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C,0BAA0B,CAAC,GAAG,CAAC,CAAC;QAC1I,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YAC/C,aAAa;YACb,GAAG,CAAC,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,eAAe,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,0BAA0B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,iBAAiB,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC;YAC/M,IAAI;SACL,CAAC;KACH,CAAC;IACF,OAAO,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,KAAK,GAAG,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,MAAM,GAAG,CAAC;AAC/E,CAAC;AAED,SAAS,KAAK,CAAC,KAAa;IAC1B,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAC/B,CAAC","sourcesContent":["import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs';\nimport { join } from 'node:path';\n\nimport type { CatalogueDecisions, CatalogueLedger, CatalogueVendorRecord } from './provider-catalogue-record';\nimport { CatalogueNotExportedReason } from './provider-catalogue-record';\n// The WHOLE engine registry, for tooling: `./backend` is the door that evaluates every engine module, which is what\n// this process needs to read each engine provider's REST binding (#1673). `./companion` already pays that cost.\nimport { EngineBackendProviderRegistry, providerOperationPathTemplateIsRelative } from '@wildo-ai/external-connectors-private/backend';\nimport { PINNED_DESCRIPTION_SOURCE_VERSION } from './openapi-enrichment';\nimport { ProviderComplianceDetermination, ProviderTier, type ProviderComplianceProfile } from '@wildo-ai/saas-models';\nimport {\n ExternalProvider_Connection_DelegationMode,\n ExternalProvider_Connection_OwnerScope,\n ProviderOAuth2EndpointHostAllowanceKind,\n ProviderOAuth2EndpointPlaceholderPosition,\n ProviderOAuth2ScopePlaceholderPosition,\n ProviderOAuth2IncrementalConsentForm,\n ProviderOAuth2ValueComparison,\n ProviderProtocolRuntimeKind,\n classifyProviderOAuth2EndpointPlaceholders,\n classifyProviderOAuth2ScopePlaceholder,\n describeProviderOAuth2EndpointHostAllowanceDefects,\n describeProviderOAuth2TokenEndpointHosts,\n describeProviderOAuth2ScopeValueAllowanceDefects,\n findProviderOAuth2EndpointTemplateDefects,\n findProviderOAuth2ScopeTemplateDefects,\n type ProviderOAuth2EndpointHostAllowance,\n type ProviderOAuth2ScopeValueAllowance,\n} from '@wildo-ai/external-connectors-models';\nimport {\n applyRecord,\n ledgerRefs,\n readDecisionRefs,\n readDecisions,\n readLedger,\n readVendorRecords,\n resolveCatalogueComplianceProfile,\n resolveCatalogueVendor,\n unmatchedVendorRecords,\n withdrawVendor,\n writeLedger,\n UnmatchedRecordEntryKind,\n type UnmatchedRecordEntry,\n} from './provider-catalogue-record';\nimport {\n TransposedAuthKind,\n TransposedInputKind,\n TransposedOperationResolution,\n TransposedParameterLocation,\n type TransposedEndpointHostAllowance,\n type TransposedInputField,\n type TransposedOperation,\n type TransposedProvider,\n type TransposedShape,\n} from './transposed-provider.model';\n\n/**\n * Writes every transposed vendor into ONE package with a subpath export each.\n *\n * **Archived (#2019, epic #2012).** The package this writes, `@wildo-ai/providers`, no longer ships:\n * it lives at `_code_archive/providers/`, is not a workspace member and is not published, and the\n * importer is frozen to write only there, as seeds a person adopts from by hand into\n * `providers-registry/<ref>/`. An application reaches a provider through `wildo registry add\n * wildo/providers/<ref>`. The package name below is kept because it describes the archive. What\n * follows is the reasoning the one-package shape was built on, kept as its record.\n *\n * Decided by Paul on 2026-09-06, replacing 684 separate packages, and the deciding constraint was\n * npm rather than anything measured inside the repository:\n *\n * - **Trademark.** 684 packages meant 684 names carrying other companies' marks —\n * `@wildo-ai/provider-slack`, `-hubspot`, `-stripe`. As subpaths the vendor name appears in\n * `@wildo-ai/providers/slack`, which is a materially smaller footprint: one published name, ours.\n * - **npm's spam policy** targets bulk-published low-content package families, which is exactly the\n * SHAPE of 684 auto-generated 15 KB packages published in one run, however legitimate they are.\n * - **Publish mechanics.** One version, one tarball, one 2FA-gated publish, one security surface —\n * instead of 684 of each, rate-limited.\n *\n * What it costs, stated plainly: an application installs every vendor's definitions (5.4 MB of\n * source) rather than only the ones it declares. That is the trade, and it is affordable because the\n * cost is DISK rather than memory — nothing loads until a subpath is imported.\n *\n * ## No root barrel, deliberately\n *\n * There is no `src/index.ts`, and there must never be one. A root barrel re-exporting 684 vendors\n * would let a single careless import pull 6,518 operations into a process's module graph, which is\n * precisely what a subpath-only package exists to prevent — and it would undo the lazy catalogue\n * loading the engine contract requires. The only way in is a vendor's own subpath.\n */\n\nexport interface EmitPackageOptions {\n /** Absolute path of the package root (`<repo>/_code_archive/providers`). */\n readonly packageRoot: string;\n readonly providers: readonly TransposedProvider[];\n /** Operations the readers refused, by vendor ref, written beside each vendor's source. */\n readonly unreadableByVendor: ReadonlyMap<string, readonly TransposedOperation[]>;\n /**\n * Whether this run covered EVERY vendor of EVERY configured catalogue.\n *\n * Only a full batch may conclude that a record entry matching nothing is stale, because only a\n * full batch looked everywhere. A filtered or single-catalogue run reports and withdraws nothing.\n */\n readonly fullBatch: boolean;\n /**\n * Record entries found stale BEFORE the emitter — today the `openApiDescription` pins the enrichment judged\n * (#1572). Reconciled with every other unmatched entry, so a stale pin refuses a full batch before anything is\n * written, exactly as a stale host allowance does.\n */\n readonly unmatchedBeforeEmit?: readonly UnmatchedRecordEntry[];\n /**\n * The providers the ENGINE owns, by ref, with what an augmentation of each needs to know (#1673). Defaults to the\n * engine's own registry; a test supplies its own so the augmentation path can be exercised on a base shape the\n * engine does not ship yet.\n */\n readonly engineBases?: ReadonlyMap<string, EngineOwnedBase>;\n}\n\n/**\n * One engine-owned provider, as the catalogue sees it when an entry collides with its ref (#1673).\n *\n * `restBaseUrl` is the literal base URL of the engine provider's REST binding: an augmentation's operations run on\n * THAT base (#1672), so the catalogue entry's paths are only right when they are relative to the same one. `null`\n * when the binding names its base through the deployment (`baseUrlEnvVarName`), which no generator can compare.\n */\nexport interface EngineOwnedBase {\n readonly ref: string;\n readonly hasRestArm: boolean;\n readonly restBaseUrl: string | null;\n}\n\nexport interface EmitPackageResult {\n readonly vendors: number;\n /**\n * Which refs actually got a subpath, and how many operations each carries.\n *\n * Reported rather than left to be re-derived, because `vendorExportBlocker` has several clauses and a\n * caller reconstructing it will miss one — the inventory did, on the engine-owned clause, and\n * over-reported 707 exports against 682 emitted. The same reason the plan and the emit share one\n * predicate: a second implementation is a thing that disagrees.\n */\n readonly exportedOperationCounts: ReadonlyMap<string, number>;\n readonly executableOperations: number;\n readonly pendingOperations: number;\n readonly unreadableOperations: number;\n /**\n * Operations the coherence guard refused, by vendor ref and reason code.\n *\n * Measured 2026-09-07: this population was 856 operations across 100 vendors, and it left the\n * catalogue with no count in this result, no entry in any vendor's sidecar and no line in the\n * run's report — while the invariant table read `PATH parameters nothing feeds: 0`, which was\n * true of the survivors and true BECAUSE the guard had removed the rest. A metric satisfied by\n * the deletion it exists to detect is not a metric. See issue #392.\n */\n readonly refusedByVendor: ReadonlyMap<string, ReadonlyMap<EmitRefusalReason, number>>;\n /**\n * Vendors whose refusal count MOVED since the previous run, and by how much per reason.\n *\n * Growth is ordinary — an upstream catalogue adding an operation with a positionally-named path\n * hole produces it — so this is reported and never refused. It is here so that a change nobody\n * asked for is seen in the run rather than only in a 738-file diff.\n */\n readonly refusalMovement: ReadonlyMap<string, Readonly<Record<string, number>>>;\n /**\n * Every vendor the batch read that exports NO provider, with why (Paul, 2026-09-14: \"no operation, no providers\n * exported\", and the story persisted). The inventory copies it, so an absent subpath always has a recorded cause.\n */\n readonly notExported: ReadonlyMap<string, VendorNotExported>;\n /**\n * The exported refs that ship as an AUGMENTATION of the engine provider owning the ref rather than as a provider of\n * their own (#1673). A subset of {@link exportedOperationCounts}'s keys; the inventory marks them\n * `AUGMENTS_ENGINE_REF`.\n */\n readonly augmentingRefs: ReadonlySet<string>;\n /**\n * The hand-authored browser facets the package ships (#1700), read by the plan and the emit from the same directory\n * listing, so a dry run reports the subpaths and the count a real emit would write.\n */\n readonly frontendFacets: readonly AuthoredFrontendFacet[];\n}\n\n/** Why one vendor exports no provider. See {@link vendorExportBlocker}. */\nexport interface VendorNotExported {\n readonly reason: CatalogueNotExportedReason;\n /** AUGMENTATION_BASE_URL_DIFFERS only: the engine binding's base URL and the one this entry's paths are relative to. */\n readonly augmentationBaseUrls?: { readonly engine: string | null; readonly catalogue: string | null };\n /** BASE_URL_HOST_NOT_ADMITTED only: the base-URL host placeholders no allowance admits. */\n readonly baseUrlHostsNotAdmitted?: readonly string[];\n /** BASE_URL_NOT_ANSWERABLE only: the base-URL placeholders no connection door answers (#1097). */\n readonly baseUrlPlaceholdersUnanswered?: readonly string[];\n}\n\n/**\n * Why an otherwise-resolved operation was not emitted.\n *\n * A closed vocabulary rather than a sentence, because the ACCEPTANCE of a refusal is stored as a\n * per-vendor shrink-only baseline keyed by this code — the shape `spec-citations.baseline.json` and\n * `check:invented-display-text` already use — so that a NEW refusal stands out against an\n * understood one. The list of refused ids is deliberately NOT stored: the guard re-derives it every\n * run, and a stored copy would rot the first time a hole is named.\n */\nexport enum EmitRefusalReason {\n /**\n * A listing the reader derived from a dropdown (#1045) that no exported operation of the vendor picks from —\n * its picker's operation was itself refused, or the listing's endpoint was renamed past recognition. A listing\n * serves a picker and nothing else, so one with no picker is not an operation an application would call.\n */\n LISTING_WITHOUT_PICKER = 'LISTING_WITHOUT_PICKER',\n /** No path template at all, or `/` — there is no endpoint to call. */\n NO_PATH_TEMPLATE = 'NO_PATH_TEMPLATE',\n /** A `{hole}` in the path that the operation's own parameters never declare. */\n UNDECLARED_PATH_HOLE = 'UNDECLARED_PATH_HOLE',\n /**\n * A PATH parameter no input field feeds. Dominated by positionally-named holes (`{param1}`,\n * `{param2}`) where the source's URL expression was too complex to name, and `declareWhatTheWireNeeds`\n * declines to invent a name because an input called `param1` is a sentence no caller can act on.\n */\n UNFED_PATH_PARAMETER = 'UNFED_PATH_PARAMETER',\n /**\n * A path template that is not a PATH — it carries whitespace, so it is a query language the source\n * expressed as a URL rather than an endpoint.\n *\n * Measured 2026-09-09 across 4,328 emitted operations: THREE, all Salesforce, all SOQL —\n * `/SELECT FIELDS(ALL) FROM {object} WHERE {field} = '…' LIMIT 200`. Salesforce takes SOQL in a\n * QUERY PARAMETER (`/services/data/vXX.0/query?q=…`), never in the path, so each of the three\n * would have requested a nonsense URL. They shipped as callable and typechecked perfectly.\n *\n * Whitespace, and NOT the quotes or parentheses a first pass reached for. Eleven operations carry\n * one of those and eight are correct: OData addresses a resource as\n * `/workbook/worksheets('{sheetName}')/range(address='{address}')`, where both are legal inside a\n * path segment. A space is not legal unencoded, so it is the one character that separates a\n * malformed path from an unusual one.\n */\n PATH_TEMPLATE_IS_NOT_A_PATH = 'PATH_TEMPLATE_IS_NOT_A_PATH',\n}\n\nconst PACKAGE_NAME = '@wildo-ai/providers';\n\n/**\n * Where a HUMAN supplements a generated vendor.\n *\n * `providers/src/_authored/<ref>.authored.ts`. It lives INSIDE `src/` because the package compiles\n * with `rootDir: \"./src\"` and an `authored/` sibling would need a different dist layout and a\n * different exports map for one file — churn in the two places a mistake is most expensive.\n *\n * So the replace narrows instead: the emitter removes every child of `src/` that does not begin with\n * `_`, and everything it writes is a vendor directory or a root module. The underscore is the whole\n * convention — hand-owned, never regenerated — which is checkable in one line rather than a growing\n * list of names to remember.\n *\n * The file is TypeScript rather than JSON on purpose: an authored operation carries a Zod input\n * schema, and it is checked against the SAME contract the generated ones satisfy, by the same\n * compiler, in the same package. A JSON supplement could express neither.\n */\nconst AUTHORED_DIRECTORY = 'src/_authored';\n\nconst AUTHORED_FILE_SUFFIX = '.authored.ts';\n/** From `src/<ref>/backend.exports.ts` across to `src/_authored/`. */\nconst AUTHORED_IMPORT_PREFIX = '../_authored/';\n/** The import specifier drops `.ts`, which the emitted module resolves through the package's own tsconfig. */\nconst AUTHORED_FILE_SUFFIX_IMPORT = '.authored';\n\n/**\n * Which vendors a human has supplemented.\n *\n * Discovered by LISTING rather than by evaluating: the emitter never loads an authored file, so a\n * supplement that does not compile fails the package typecheck — where a compiler explains it — and\n * not the batch, where it would take 693 unrelated vendors down with it.\n */\nfunction readAuthoredVendors(packageRoot: string): ReadonlySet<string> {\n const directory = join(packageRoot, AUTHORED_DIRECTORY);\n if (!existsSync(directory)) return new Set();\n return new Set(\n readdirSync(directory)\n .filter((entry) => entry.endsWith(AUTHORED_FILE_SUFFIX))\n .map((entry) => entry.slice(0, -AUTHORED_FILE_SUFFIX.length)),\n );\n}\n\n/**\n * The browser facets a frontend provider may be authored for (#1700), as the file name, the package subpath segment\n * and the facet contract each one satisfies.\n *\n * Closed on purpose: a facet is one of the three browser surfaces the framework composes, each with its own contract\n * in `@wildo-ai/external-connectors-public`, and a fourth name would be a file no surface loads.\n */\nexport enum ProviderPackageFrontendFacet {\n APP = 'frontend-app',\n WEBSITE = 'frontend-website',\n TECHDOC = 'frontend-techdoc',\n}\n\n/** The `AppFrontendType` member a facet's contribution targets, written as the source text the barrel emits. */\nconst FRONTEND_FACET_SERVICE_TYPE: Readonly<Record<ProviderPackageFrontendFacet, string>> = {\n [ProviderPackageFrontendFacet.APP]: 'AppFrontendType.SAAS_APP',\n [ProviderPackageFrontendFacet.WEBSITE]: 'AppFrontendType.STATIC_WEBSITE',\n [ProviderPackageFrontendFacet.TECHDOC]: 'AppFrontendType.TECH_DOC',\n};\n\n/**\n * Where a HUMAN authors a vendor's BROWSER part (#1700): `providers/src/_frontend/<ref>/<facet>.ts`, exporting\n * `frontendFacet`.\n *\n * ## Why authored, and why this emitter only DETECTS it\n *\n * The three transposition sources — Activepieces pieces, Sim tools, vendors' OpenAPI documents — are server-side\n * integration catalogues. None carries an SDK package, a script or frame origin, or a public-key vocabulary, and a\n * facet is half CODE (`components[capability].load`, `sdk.activate`), which data cannot generate. So no regeneration\n * will ever produce one, and the record says so (`catalogue-record/frontend-facets.json`) rather than implying that a\n * later batch will fill the gap.\n *\n * Underscore-prefixed, like `_authored/`, so the WRITE step's \"delete every non-underscore\n * child of `src/`\" leaves it alone. A separate directory from `_authored/` because the two are opposite trust zones:\n * an authored supplement is BACKEND code that may reach the secrets-bound runtime, a facet is imported into a\n * browser bundle, and the package's bundle-isolation test walks `_frontend/` as the browser side.\n *\n * Discovered by LISTING, never by loading, for the same reason as `_authored/`: a facet that does not compile fails\n * the package typecheck, where a compiler explains it, and not the batch.\n */\nconst FRONTEND_FACET_DIRECTORY_NAME = '_frontend';\n\n/** One authored facet: the vendor ref (its directory) and which browser surface it serves (its file name). */\nexport interface AuthoredFrontendFacet {\n readonly ref: string;\n readonly facet: ProviderPackageFrontendFacet;\n}\n\n/** The authored frontend facets under `src/_frontend/`, sorted by ref then facet so every artifact built from them is stable. */\nexport function readAuthoredFrontendFacets(packageRoot: string): readonly AuthoredFrontendFacet[] {\n const directory = join(packageRoot, 'src', FRONTEND_FACET_DIRECTORY_NAME);\n if (!existsSync(directory)) return [];\n const facetsByFile = new Map<string, ProviderPackageFrontendFacet>(Object.values(ProviderPackageFrontendFacet).map((facet) => [`${facet}.ts`, facet]));\n const found: AuthoredFrontendFacet[] = [];\n for (const entry of readdirSync(directory, { withFileTypes: true })) {\n // `__tests__` and any other underscore-prefixed child are not vendors.\n if (!entry.isDirectory() || entry.name.startsWith('_')) continue;\n for (const file of readdirSync(join(directory, entry.name))) {\n const facet = facetsByFile.get(file);\n if (facet !== undefined) found.push({ ref: entry.name, facet });\n }\n }\n return found.sort((left, right) => left.ref.localeCompare(right.ref) || left.facet.localeCompare(right.facet));\n}\n\n/** `./<ref>/<facet>` — the subpath an application's generated frontend module imports. */\nfunction frontendFacetSubpath(facet: AuthoredFrontendFacet): string {\n return `./${facet.ref}/${facet.facet}`;\n}\n\n/** The export-map entries for every authored facet: a browser door per facet, separate from `backend.exports.ts`. */\nfunction renderFrontendFacetExports(facets: readonly AuthoredFrontendFacet[]): Record<string, unknown> {\n return Object.fromEntries(facets.map((facet) => [frontendFacetSubpath(facet), {\n source: `./src/${FRONTEND_FACET_DIRECTORY_NAME}/${facet.ref}/${facet.facet}.ts`,\n types: `./dist/esm/${FRONTEND_FACET_DIRECTORY_NAME}/${facet.ref}/${facet.facet}.d.ts`,\n default: `./dist/esm/${FRONTEND_FACET_DIRECTORY_NAME}/${facet.ref}/${facet.facet}.js`,\n }]));\n}\n\n/**\n * What the companion barrel adds for the authored facets: one import per facet, and one contribution each, built by\n * the engine's own `projectFrontendProviderContribution` — the one place a facet becomes a discovery record, which\n * also refuses a facet with no readable key list (#1705), a script its own CSP does not grant, or an unclassified\n * capability. The contribution's `runtimeImportPath` is the facet's subpath, which is what `wildo config sync`\n * writes into a service's `frontend-providers.generated.ts`.\n *\n * Empty strings when there is no facet, so a package with none is byte-identical to one written before facets existed.\n */\nfunction renderFrontendFacetCompanion(facets: readonly AuthoredFrontendFacet[]): { readonly imports: string; readonly contributions: string } {\n if (facets.length === 0) return { imports: '', contributions: '' };\n const binding = (index: number): string => `frontendFacet${index}`;\n const imports = [\n \"import { AppFrontendType } from '@wildo-ai/saas-models';\",\n \"import { projectFrontendProviderContribution } from '@wildo-ai/external-connectors-public/companion';\",\n ...facets.map((facet, index) =>\n // `.js` written out, as `operations.generated.js` is: the alias finalizer rewrites an extensionless literal in the\n // BUILT emitter only, so leaving it off made a source run and a dist run emit different bytes.\n `import { frontendFacet as ${binding(index)} } from './${FRONTEND_FACET_DIRECTORY_NAME}/${facet.ref}/${facet.facet}.js';`),\n ].join('\\n');\n const contributions = facets.map((facet, index) =>\n ` projectFrontendProviderContribution(${binding(index)}, ${FRONTEND_FACET_SERVICE_TYPE[facet.facet]}, ${quote(`${PACKAGE_NAME}/${facet.ref}/${facet.facet}`)}),`,\n ).join('\\n');\n return {\n imports: `\\n// Hand-authored BROWSER facets (#1700): detected under src/${FRONTEND_FACET_DIRECTORY_NAME}/, never generated.\\n${imports}`,\n contributions: `\\n // Hand-authored browser facets (#1700), projected by the engine so each carries exactly what its module declares.\\n${contributions}`,\n };\n}\n\n/**\n * `catalogue-record/frontend-facets.json`: how many vendors have a browser part, which ones, and WHY the number is\n * small — derived on every emit, so it cannot drift from the facets on disk.\n */\nfunction renderFrontendFacetRecord(facets: readonly AuthoredFrontendFacet[], exportedRefs: ReadonlySet<string>): string {\n const vendorsWithFacet = new Set(facets.map((facet) => facet.ref));\n return `${JSON.stringify({\n reason:\n 'No transposition source carries browser facts: Activepieces pieces, Sim tools and OpenAPI documents are server-side '\n + 'integration catalogues with no SDK package, no script or frame origin and no public-key vocabulary, and a frontend '\n + `facet is half code. Frontend facets are therefore authored by hand under src/${FRONTEND_FACET_DIRECTORY_NAME}/<ref>/, `\n + 'and a regeneration never produces one.',\n exportedVendors: exportedRefs.size,\n vendorsWithFrontendFacet: vendorsWithFacet.size,\n facets: facets.map((facet) => ({\n ref: facet.ref,\n facet: facet.facet,\n subpath: frontendFacetSubpath(facet),\n source: `src/${FRONTEND_FACET_DIRECTORY_NAME}/${facet.ref}/${facet.facet}.ts`,\n // A facet for a ref the catalogue does not export is legitimate (a browser-only vendor) and reported as such.\n hasCatalogueBackendPart: exportedRefs.has(facet.ref),\n })),\n }, null, 2)}\\n`;\n}\n\n/**\n * An operation whose declaration disagrees with its own path template is not emitted.\n *\n * The executor binds a `{token}` from a declared PATH parameter. A hole with no parameter cannot be\n * bound and the call goes out with a literal `{token}` in the URL; a path with no holes at all is a\n * template that lost its subject. Both are broken operations that TYPECHECK perfectly — the shape is\n * right and the content disagrees with itself — which is why the check has to exist here rather than\n * being left to the compiler. Measured when it was added: 18 unbound holes and 11 empty paths across\n * 6,955 operations, every one of which would have failed at the vendor rather than at the batch.\n *\n * Refused rather than repaired: the mapper cannot know what the vendor meant by a hole nobody named.\n */\n/**\n * A parameter the operation declares but its input does not — DECLARED, not dropped and not refused.\n *\n * This replaces refusing 1,334 operations, and the reconsideration is worth writing down. A parameter\n * with no feeding input field is a gap in the DOCUMENTATION, not proof that the operation is\n * impossible: the value is one the vendor's own URL asks for, the name comes from that URL, and the\n * input schema is loose, so a caller who knows to pass it already can. Refusing the operation\n * withheld a capability to punish a missing sentence.\n *\n * So the missing sentence is written instead. The field is named after what the compiler will look\n * for (`from ?? name`), required exactly when the wire position requires it — a path cannot have a\n * hole — and described as coming from the request rather than from a source that never mentioned it.\n * Nothing is guessed: every name here is one the source's own URL template or query bag states.\n *\n * What still refuses, in `refusalReason`, is the case this cannot honestly repair: a hole named\n * positionally (`param1`), where the source's expression was too complex to name. Declaring an input\n * called `param1` would be a sentence no caller can act on.\n */\nfunction declareWhatTheWireNeeds(operation: TransposedOperation): TransposedOperation {\n const declared = new Set(operation.inputFields.map((field) => field.name));\n const missing: TransposedInputField[] = [];\n\n for (const parameter of operation.parameters) {\n if (parameter.in === TransposedParameterLocation.BODY) continue;\n const feeder = parameter.from ?? parameter.name;\n if (declared.has(feeder) || /^param\\d+$/.test(feeder)) continue;\n // A credential is resolved, never asked for — except in a PATH, where the name is a resource id\n // wearing a credential's spelling and nothing but the caller can supply it.\n if (parameter.in !== TransposedParameterLocation.PATH && callerSuppliesNoCredential(feeder)) continue;\n declared.add(feeder);\n missing.push({\n name: feeder,\n kind: parameter.in === TransposedParameterLocation.PATH ? TransposedInputKind.WIRE_SCALAR : TransposedInputKind.WIRE_SCALAR_OR_LIST,\n required: parameter.in === TransposedParameterLocation.PATH,\n // A parameter carries a description only when the vendor's own document gave one (#1572); the\n // vendor's sentence is what a caller needs, and where it goes on the wire still follows it.\n description: `${parameter.description === undefined ? '' : `${parameter.description.replace(/\\s+$/, '')} `}Sent as the ${parameter.in} parameter \\`${parameter.name}\\`.`,\n });\n }\n\n return missing.length === 0 ? operation : { ...operation, inputFields: [...operation.inputFields, ...missing] };\n}\n\nfunction refusalReason(operation: TransposedOperation): EmitRefusalReason | undefined {\n const template = operation.pathTemplate ?? '';\n if (template === '' || template === '/') return EmitRefusalReason.NO_PATH_TEMPLATE;\n // Before asking anything about the HOLES, ask whether this is a path at all — see the enum member.\n if (/\\s/.test(template)) return EmitRefusalReason.PATH_TEMPLATE_IS_NOT_A_PATH;\n const pathParameters = operation.parameters.filter((parameter) => parameter.in === TransposedParameterLocation.PATH);\n const declared = new Set(pathParameters.map((parameter) => parameter.name));\n if (![...template.matchAll(/\\{([^}]+)\\}/g)].every((match) => declared.has(match[1]!))) return EmitRefusalReason.UNDECLARED_PATH_HOLE;\n\n // A PATH parameter no input field can feed makes the operation UNEXECUTABLE by anyone following its\n // own types: the compiler reads `from ?? name`, finds nothing in the input, and refuses with\n // INPUT_INCOMPLETE before a socket opens. Measured when this clause was added: 1,722 operations\n // across 313 vendors shipped in exactly that state, every one of them typechecking perfectly.\n //\n // Only checked when the operation HAS an input schema. An operation that declares no input at all\n // passes its input through unvalidated, which the contract permits, and there is nothing to\n // disagree with.\n // A POSITIONALLY-NAMED path hole is refused whatever feeds it, and BEFORE the pass-through escape\n // below. `{param2}` is not a parameter a caller can supply: the name carries no meaning, so even a\n // correctly-wired input leaves the operation uncallable by anyone who did not read the vendor's\n // own URL. This is the shape the reason code was written for, and 856 operations are refused for\n // it — but exactly one reached the package, because it declares NO input fields and the escape\n // below returned early. `ninox`'s `trigger.newRecord.poll` shipped as `GET /{param2}` with a\n // required path parameter called `param2`.\n //\n // The escape is right for a BODY or QUERY it cannot see: pass-through is a real contract, and the\n // caller supplies whatever the vendor wants. It is wrong for a PATH hole, which is structural —\n // the URL cannot be built without it, so \"unvalidated pass-through\" is not an answer, it is a\n // request the caller has no way to satisfy.\n if ([...template.matchAll(/\\{([^}]+)\\}/g)].some((match) => /^param\\d+$/.test(match[1]!))) {\n return EmitRefusalReason.UNFED_PATH_PARAMETER;\n }\n\n if (operation.inputFields.length === 0) return undefined;\n const fields = new Set(operation.inputFields.map((field) => field.name));\n return pathParameters.every((parameter) => fields.has(parameter.from ?? parameter.name)) ? undefined : EmitRefusalReason.UNFED_PATH_PARAMETER;\n}\n\nexport function emitProvidersPackage(options: EmitPackageOptions): EmitPackageResult {\n const sourceRoot = join(options.packageRoot, 'src');\n const authoredVendors = readAuthoredVendors(options.packageRoot);\n const frontendFacets = readAuthoredFrontendFacets(options.packageRoot);\n // Today's date is read ONCE, so every row a single run writes carries the same `firstEmitted` and\n // a batch spanning midnight does not produce two answers to one question.\n const today = new Date().toISOString().slice(0, 10);\n\n // ── PLAN ─────────────────────────────────────────────────────────────────────────────────────\n // Nothing is written and nothing is deleted until the record has reconciled. A refusal that fires\n // halfway through leaves a package with vendor directories and no `companion-exports.ts` — a\n // correct refusal with a broken outcome, which is worse than either alone.\n const planned: {\n readonly provider: TransposedProvider;\n readonly resolved: readonly TransposedOperation[];\n readonly pendingOperations: readonly TransposedOperation[];\n readonly refusals: ReadonlyMap<EmitRefusalReason, number>;\n readonly ledger: CatalogueLedger;\n readonly exported: boolean;\n /** Exported as an augmentation of the engine provider owning the ref, not as a provider (#1673). */\n readonly augments: boolean;\n readonly notExported: VendorNotExported | undefined;\n readonly decisions: CatalogueDecisions | undefined;\n readonly vendorRecord: CatalogueVendorRecord | undefined;\n /** Researched from the record, or UNDETERMINED (#1708). Resolved in the PLAN so a malformed record refuses before any write. */\n readonly complianceProfile: ProviderComplianceProfile;\n }[] = [];\n const refusedByVendor = new Map<string, ReadonlyMap<EmitRefusalReason, number>>();\n const seenRefs = new Set<string>();\n const unmatchedRecordEntries: UnmatchedRecordEntry[] = [...(options.unmatchedBeforeEmit ?? [])];\n const refusalMovement = new Map<string, Readonly<Record<string, number>>>();\n const engineBases = options.engineBases ?? ENGINE_OWNED_BASES;\n const vendorRecords = readVendorRecords(options.packageRoot);\n unmatchedRecordEntries.push(...unmatchedVendorRecords(options.packageRoot, vendorRecords));\n /** Per vendor whose record declines connection values and that this batch produced a ref of: the values some ref offered. */\n const declinedValuesMatchedByVendor = new Map<string, Set<string>>();\n let executable = 0;\n let pending = 0;\n let unreadable = 0;\n\n for (const recovered of options.providers) {\n // The recovered base URL is replaced by the deployment's BEFORE anything reads it, when a decision says so (F10).\n const deploymentNamed = applyBaseUrlNamedByDeployment(recovered, readDecisions(options.packageRoot, recovered.ref));\n unmatchedRecordEntries.push(...deploymentNamed.unmatched);\n // Connection values the vendor declines (#1937) leave the provider BEFORE anything reads its allowances, so no\n // emitted allowance, token-host set or derived host table can admit them.\n const recoveredVendor = resolveCatalogueVendor(recovered.ref, readDecisions(options.packageRoot, recovered.ref));\n const declined = applyVendorUnsupportedConnectionValues(deploymentNamed.provider, vendorRecords.get(recoveredVendor));\n if (vendorRecords.get(recoveredVendor)?.unsupportedConnectionValues !== undefined) {\n const matched = declinedValuesMatchedByVendor.get(recoveredVendor) ?? new Set<string>();\n for (const value of declined.matched) matched.add(value);\n declinedValuesMatchedByVendor.set(recoveredVendor, matched);\n }\n const provider = declined.provider;\n const plan = planVendor(provider);\n if (plan.refusals.size > 0) refusedByVendor.set(provider.ref, plan.refusals);\n pending += plan.pendingOperations.length;\n unreadable += (options.unreadableByVendor.get(provider.ref) ?? []).length;\n\n // IDENTITY comes from the ledger, not from this run's derivation. An id an application already\n // calls survives a source rename, a re-ordering and a new collision; only an operation the\n // ledger has never seen gets a freshly derived id. This is the whole point of #390.\n const applied = applyRecord({\n provider,\n operations: plan.resolved,\n pending: plan.pendingOperations,\n ledger: readLedger(options.packageRoot, provider.ref),\n decisions: readDecisions(options.packageRoot, provider.ref),\n refusals: plan.refusals,\n today,\n });\n unmatchedRecordEntries.push(...applied.unmatched);\n // The OAuth2 host decisions are checked in the PLAN, with the rest of the record, so a stale one\n // refuses a full batch before anything is written.\n unmatchedRecordEntries.push(...resolveOAuth2EndpointHostAllowances(provider, readDecisions(options.packageRoot, provider.ref)).unmatched);\n unmatchedRecordEntries.push(...unmatchedMergedCatalogueEntries(provider, readDecisions(options.packageRoot, provider.ref)));\n // Base-URL host decisions (#1015) are checked in the PLAN too, so a stale or unsound one refuses before any write.\n unmatchedRecordEntries.push(...resolveBaseUrlHostAllowances(provider, readDecisions(options.packageRoot, provider.ref)).unmatched);\n unmatchedRecordEntries.push(...resolveReportedAccountFacts(provider, readDecisions(options.packageRoot, provider.ref)).unmatched);\n // A RECORDED host decision is the other source of an allowance, and the vendor's declines bind it too (#1937).\n assertRecordedAllowancesHonourVendorDeclines(provider, readDecisions(options.packageRoot, provider.ref), vendorRecords.get(recoveredVendor));\n // Evaluated in the PLAN so a contradictory operation-base-URL decision refuses before the tree is replaced.\n operationBaseUrlHostEnvVarName(provider, readDecisions(options.packageRoot, provider.ref));\n // The vendor a ref is emitted under, and what that vendor's record asks of the ref (#1673) — both in the PLAN, so a\n // malformed `vendor`, or a ref its vendor's authorization server does not serve, refuses before anything is written.\n const vendor = resolveCatalogueVendor(provider.ref, readDecisions(options.packageRoot, provider.ref));\n unmatchedRecordEntries.push(...resolveVendorIncrementalConsent(provider, readDecisions(options.packageRoot, provider.ref), vendorRecords.get(vendor)).unmatched);\n if (Object.keys(applied.refusalDelta).length > 0) refusalMovement.set(provider.ref, applied.refusalDelta);\n seenRefs.add(provider.ref);\n executable += applied.operations.length;\n\n // `scrape: false` withholds the SUBPATH and nothing else. The vendor is still emitted and its\n // ledger still maintained, so re-enabling it cannot renumber ids an application called before it\n // was withheld — which is exactly the breakage this record exists to prevent.\n //\n // A vendor with nothing executable is likewise not exported: a subpath that resolves to auth and\n // no operations looks complete to everyone downstream and can do nothing.\n const decisions = readDecisions(options.packageRoot, provider.ref);\n const notExported = vendorExportBlocker(provider.ref, applied.operations.length, decisions, provider, engineBases);\n const augments = notExported === undefined && shipsAsEngineAugmentation(provider.ref, engineBases);\n // An authored supplement cannot follow an augmentation: `withAuthoredSupplement` replaces a module this package\n // OWNS and may rewrite its auth, and an augmentation owns neither (#1672). Refused in the PLAN, before the tree is\n // replaced, rather than dropped.\n if (augments) assertAugmentationPathsAreRelative(provider, applied.operations);\n if (augments && authoredVendors.has(provider.ref)) {\n throw new Error(`${AUTHORED_DIRECTORY}/${provider.ref}${AUTHORED_FILE_SUFFIX} supplements '${provider.ref}', which ships as an augmentation of the engine's provider. An augmentation carries operations only: supplement the engine provider, or remove the authored file.`);\n }\n planned.push({\n provider,\n resolved: applied.operations,\n pendingOperations: plan.pendingOperations,\n refusals: plan.refusals,\n ledger: applied.ledger,\n exported: notExported === undefined,\n augments,\n notExported,\n decisions,\n vendorRecord: vendorRecords.get(vendor),\n complianceProfile: resolveCatalogueComplianceProfile(provider.ref, decisions, vendorRecords.get(vendor)),\n });\n }\n\n unmatchedRecordEntries.push(...unmatchedVendorUnsupportedConnectionValues(vendorRecords, declinedValuesMatchedByVendor));\n reconcileRecord({\n packageRoot: options.packageRoot,\n seenRefs,\n unmatched: unmatchedRecordEntries,\n fullBatch: options.fullBatch,\n today,\n });\n\n // ── WRITE ────────────────────────────────────────────────────────────────────────────────────\n // A regeneration REPLACES the vendor tree. A vendor that disappears upstream must disappear here,\n // and leaving its directory behind would keep a subpath exported that the package no longer\n // describes — a door onto a room that was demolished.\n //\n // Everything EXCEPT an underscore-prefixed child: those are hand-owned and survive by convention\n // (`src/_authored/`). One rule, checkable in a line, rather than a list of exceptions to remember.\n mkdirSync(sourceRoot, { recursive: true });\n for (const entry of readdirSync(sourceRoot)) {\n if (entry.startsWith('_')) continue;\n rmSync(join(sourceRoot, entry), { recursive: true, force: true });\n }\n\n const emitted: TransposedProvider[] = [];\n const augmenting: { readonly provider: TransposedProvider; readonly operations: readonly TransposedOperation[] }[] = [];\n for (const entry of planned) {\n writeLedger(options.packageRoot, entry.ledger);\n if (!entry.exported) continue;\n emitted.push(entry.provider);\n\n const directory = join(sourceRoot, entry.provider.ref);\n mkdirSync(directory, { recursive: true });\n writeFileSync(join(directory, 'operations.generated.ts'), renderOperations(entry.provider, entry.resolved), 'utf8');\n if (entry.augments) {\n augmenting.push({ provider: entry.provider, operations: entry.resolved });\n writeFileSync(join(directory, 'backend.exports.ts'), renderAugmentationModule(entry.provider, entry.resolved), 'utf8');\n } else {\n writeFileSync(\n join(directory, 'backend.exports.ts'),\n renderBackendModule(entry.provider, entry.resolved, authoredVendors.has(entry.provider.ref), entry.decisions, entry.vendorRecord, entry.complianceProfile),\n 'utf8',\n );\n }\n writeFileSync(\n join(directory, 'pending-operations.json'),\n `${JSON.stringify(\n {\n provider: entry.provider.ref,\n pending: entry.pendingOperations,\n unreadable: options.unreadableByVendor.get(entry.provider.ref) ?? [],\n refusedAtEmit: Object.fromEntries(entry.refusals),\n },\n null,\n 2,\n )}\\n`,\n 'utf8',\n );\n }\n\n const augmentingRefs = new Set(augmenting.map(({ provider }) => provider.ref));\n writeFileSync(\n join(sourceRoot, 'companion-exports.ts'),\n renderCompanionExports(\n emitted.filter((provider) => !augmentingRefs.has(provider.ref)),\n new Map(planned.filter((e) => e.decisions !== undefined).map((e) => [e.provider.ref, e.decisions!])),\n augmenting,\n new Map(planned.map((e) => [e.provider.ref, e.complianceProfile])),\n frontendFacets,\n ),\n 'utf8',\n );\n writeFileSync(\n join(options.packageRoot, 'package.json'),\n renderPackageJson(emitted, readExistingPackageVersion(options.packageRoot), augmenting.length > 0, frontendFacets),\n 'utf8',\n );\n mkdirSync(join(options.packageRoot, 'catalogue-record'), { recursive: true });\n writeFileSync(\n join(options.packageRoot, 'catalogue-record', 'frontend-facets.json'),\n renderFrontendFacetRecord(frontendFacets, new Set(emitted.map((provider) => provider.ref))),\n 'utf8',\n );\n writeFileSync(join(options.packageRoot, 'tsconfig.build.json'), renderBuildTsconfig(), 'utf8');\n writeFileSync(join(options.packageRoot, 'tsconfig.json'), renderTypecheckTsconfig(), 'utf8');\n writeFileSync(join(options.packageRoot, 'NOTICE'), renderNotice(emitted), 'utf8');\n\n return {\n vendors: emitted.length,\n // Built from the same `exported` flag that decides whether a directory is written and whether the\n // ref reaches the package manifest and the companion barrel, so this cannot disagree with what\n // shipped. `emitted` itself carries no operation count, which is why this reads `planned`.\n exportedOperationCounts: new Map(\n planned.filter((entry) => entry.exported).map((entry) => [entry.provider.ref, entry.resolved.length]),\n ),\n notExported: new Map(planned.flatMap((entry) => (entry.notExported === undefined ? [] : [[entry.provider.ref, entry.notExported] as const]))),\n augmentingRefs,\n frontendFacets,\n executableOperations: executable,\n pendingOperations: pending,\n unreadableOperations: unreadable,\n refusedByVendor,\n refusalMovement,\n };\n}\n\n/**\n * What a vendor WOULD emit, computed once so that a dry run and a real emit cannot disagree.\n *\n * They did disagree, by 856 operations (~14%): the dry-run branch counted every RESOLVED operation\n * while the emit branch counted RESOLVED minus the coherence guard's refusals. A dry run exists to\n * predict an emit; two copies of the accounting is how a prediction stops predicting (#393).\n */\nfunction planVendor(provider: TransposedProvider): {\n readonly resolved: readonly TransposedOperation[];\n readonly refusals: ReadonlyMap<EmitRefusalReason, number>;\n readonly pendingOperations: readonly TransposedOperation[];\n} {\n // The guard REFUSES rather than filtering: a refusal is recorded with its reason, so that an\n // operation leaving the catalogue is a fact somebody can read afterwards. Filtering silently is\n // how 856 operations left with no count anywhere (#392).\n const refusals = new Map<EmitRefusalReason, number>();\n const resolved: TransposedOperation[] = [];\n for (const operation of provider.operations) {\n if (operation.resolution !== TransposedOperationResolution.RESOLVED) continue;\n const declared = declareWhatTheWireNeeds(operation);\n const reason = refusalReason(declared);\n if (reason === undefined) {\n resolved.push(declared);\n continue;\n }\n refusals.set(reason, (refusals.get(reason) ?? 0) + 1);\n }\n // A stable order so the committed artifact diffs as CONTENT. Neither reader sorts `readdirSync`\n // and the merge preserves read order, so without this the same source yields the same operations\n // in a filesystem-dependent order — a regeneration on another machine reads as a 6,000-line\n // rewrite, and a diff nobody can read is a record nobody can review.\n // A derived listing ships only beside a picker that reads it (#1045). Decided after every other refusal, on the\n // operations that survived them, so a listing whose picker was refused goes with it — and counted, never filtered.\n const picked = new Set(\n resolved\n .filter((operation) => operation.derivedListing !== true)\n .flatMap((operation) => operation.inputFields.map((field) => field.options))\n .filter((options): options is NonNullable<typeof options> => options !== undefined)\n .map((options) => listingEndpointKey(options.endpoint.method, options.endpoint.pathTemplate)),\n );\n for (const operation of [...resolved]) {\n if (operation.derivedListing !== true || picked.has(listingEndpointKey(operation.method, operation.pathTemplate))) continue;\n resolved.splice(resolved.indexOf(operation), 1);\n refusals.set(EmitRefusalReason.LISTING_WITHOUT_PICKER, (refusals.get(EmitRefusalReason.LISTING_WITHOUT_PICKER) ?? 0) + 1);\n }\n resolved.sort((left, right) => left.operationId.localeCompare(right.operationId));\n return {\n resolved,\n refusals,\n pendingOperations: provider.operations.filter((o) => o.resolution === TransposedOperationResolution.PENDING_ENDPOINT),\n };\n}\n\n/**\n * The providers the ENGINE owns, read from the engine's own registry — and, since #1673, what an AUGMENTATION of each\n * would run on.\n *\n * A ref is an application's whole address for a provider — `providerRef: 'stripe'` in an HTTP-API binding, `stripe:` in\n * a saas-config provider scope — so the catalogue can never ship a second PROVIDER under an engine ref: `wildo config\n * sync` refuses two owners (\"discovered runtime owners disagree on its secret-contract shape\"), and the refusal lands\n * on an application that never asked for the catalogue's copy. Installing this package for `slack` was once enough to\n * make an unrelated `openai` declaration unmaterializable.\n *\n * ## Withheld, then augmenting (#1672, #1673)\n *\n * Until #1672 the only safe answer was to withhold the entry, and its operations were dropped rather than offered.\n * #1672 gave a package a second way to contribute to a ref it does not own: an augmentation, which adds operations\n * only, spends the base's base URL and credential, and is inert until an application opts it in. So an engine-owned\n * entry now ships as an augmentation of the engine provider — when the engine provider has a `REST_API` binding\n * (config sync refuses an augmentation of a base with none) and that binding's base URL is the one the entry's paths\n * are relative to. Otherwise the inventory says which of the two is missing.\n *\n * ## Why this is DERIVED, and what it cost to learn\n *\n * The rule shipped on 2026-09-08 as NINE hand-written `scrape: false` decision files, one per colliding vendor, each\n * carrying the sentence *\"Nine of the engine's 23 providers collide this way.\"* Measured 2026-09-09: **eleven** did —\n * `openai` and `google` were missed, and every application that installed this package while declaring the engine's\n * LLM provider could not run `wildo config sync`. A list that enumerates ANOTHER party's catalogue by hand rots; this\n * one is read from the registry, so an engine provider added tomorrow — or an engine ref gaining a REST binding — is\n * reflected here by nobody remembering anything.\n */\nfunction deriveEngineOwnedBases(): ReadonlyMap<string, EngineOwnedBase> {\n const bases = new Map<string, EngineOwnedBase>();\n for (const module of EngineBackendProviderRegistry.modules.values()) {\n const rest = module.protocols.find((binding) => binding.runtimeContract.kind === ProviderProtocolRuntimeKind.REST);\n const contract = rest?.runtimeContract as { readonly baseUrl?: unknown } | undefined;\n bases.set(module.metadata.ref, {\n ref: module.metadata.ref,\n hasRestArm: rest !== undefined,\n restBaseUrl: typeof contract?.baseUrl === 'string' ? contract.baseUrl : null,\n });\n }\n return bases;\n}\n\nconst ENGINE_OWNED_BASES: ReadonlyMap<string, EngineOwnedBase> = deriveEngineOwnedBases();\n\n/** Two base URLs name the same base when they differ at most by a trailing slash. */\nfunction sameBaseUrl(left: string | null | undefined, right: string | null | undefined): boolean {\n if (typeof left !== 'string' || typeof right !== 'string') return false;\n return left.replace(/\\/+$/, '') === right.replace(/\\/+$/, '');\n}\n\n/**\n * Refuse the batch when an operation about to ship as an augmentation has a path the runtime would refuse (#1673).\n *\n * A provider's own operations are only documented as relative; an augmentation's are REQUIRED to be a plain `/…`\n * template (`providerOperationPathTemplateIsRelative`), because they are sent with the base provider's credential and\n * a template like `@evil.tld/x` would carry it to another host. The runtime refuses such an augmentation when the base's\n * catalogue first loads — after an application opted in, and taking the BASE's own operations down with it. Every path\n * this transposer emits starts with `/`, so a violation is a transposer defect, and the batch is the place to learn it.\n */\nfunction assertAugmentationPathsAreRelative(provider: TransposedProvider, operations: readonly TransposedOperation[]): void {\n const offending = operations.filter((operation) => !providerOperationPathTemplateIsRelative(operation.pathTemplate ?? ''));\n if (offending.length > 0) {\n throw new Error(`'${provider.ref}' ships as an augmentation of the engine's provider, and ${offending.map((operation) => `${operation.operationId} (${String(operation.pathTemplate)})`).join(', ')} `\n + 'is not a plain relative path, which the runtime refuses for an augmentation. Fix the reader that produced it.');\n }\n}\n\n/**\n * Whether an EXPORTED vendor ships as an augmentation of the engine provider owning its ref (#1673). Only meaningful\n * for a ref {@link vendorExportBlocker} let through, which for an engine ref means the base has a REST binding on the\n * entry's own base URL.\n */\nexport function shipsAsEngineAugmentation(ref: string, engineBases: ReadonlyMap<string, EngineOwnedBase> = ENGINE_OWNED_BASES): boolean {\n return engineBases.has(ref);\n}\n\n/**\n * The `mergedCatalogueEntries` a vendor's decision names that did NOT reach it (#993).\n *\n * Checked against PROVENANCE rather than against the join that re-keyed the views: provenance is what the\n * emitted module records, so a join that stopped applying — the source entry renamed, or the command no\n * longer calling the join — reads as unmatched here instead of silently shipping the Sim-only auth again.\n * Directory refs are compared with underscores as hyphens, the spelling both readers reduce a ref to.\n */\nexport function unmatchedMergedCatalogueEntries(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): readonly UnmatchedRecordEntry[] {\n const carried = new Set(provider.provenances.map((provenance) => provenance.sourceRef.replace(/_/g, '-')));\n return Object.keys(decisions?.mergedCatalogueEntries ?? {})\n .filter((entry) => !carried.has(entry.replace(/_/g, '-')))\n .map((entry) => ({\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.MERGED_CATALOGUE_ENTRY,\n detail: `decisions/${provider.ref}.json merges the catalogue entry '${entry}', which contributed no view to this vendor in this batch`,\n }));\n}\n\n/**\n * Whether a vendor gets a SUBPATH in the emitted package.\n *\n * One function because the answers must agree and twice already did not. `--dry-run` exists so a\n * batch can be inspected before it replaces every vendor directory in the package, which is worth\n * nothing if the plan and the emit compute different things: they disagreed by 856 operations once\n * (#393, one copy of the refusal accounting), and by 9 VENDORS until 2026-09-08 — the plan applied\n * the \"nothing executable\" half and skipped the decisions half, so a dry run promised subpaths for\n * exactly the nine vendors then withheld for colliding with an engine provider. That is the worst\n * possible set to over-report: it tells the reader the collision is back.\n *\n * The clauses:\n *\n * - **nothing executable** — a subpath resolving to auth and no operations looks complete to\n * everyone downstream and can do nothing;\n * - **the engine owns the ref and it cannot be augmented** — see `deriveEngineOwnedBases`. Derived, so it\n * cannot be short by two the way the hand-written version was. An engine ref it CAN augment gets a subpath that\n * ships an augmentation rather than a provider (#1673);\n * - **`scrape: false`** — a deliberate withholding, for a reason no rule derives. It is the door\n * that stays open for the next one-off;\n * - **every call would refuse** — see `baseUrlCallBlocker` (#1015): an unsafe base-URL template, a\n * host placeholder no allowance admits, or one no connection door answers.\n *\n * All of them withhold the SUBPATH and nothing else: the vendor is still emitted and its ledger still\n * maintained, so re-enabling it cannot renumber ids an application called before it was withheld,\n * which is exactly the breakage the record exists to prevent.\n */\nexport function vendorIsExported(\n ref: string,\n resolvedOperationCount: number,\n decisions: CatalogueDecisions | undefined,\n provider?: TransposedProvider,\n engineBases: ReadonlyMap<string, EngineOwnedBase> = ENGINE_OWNED_BASES,\n): boolean {\n return vendorExportBlocker(ref, resolvedOperationCount, decisions, provider, engineBases) === undefined;\n}\n\n/**\n * Why a vendor exports NO provider, or `undefined` when it exports one. ONE predicate for the plan, the emit and the\n * inventory, because every re-derivation of this rule has missed a clause.\n *\n * - withheld by decision (`scrape: false`);\n * - a ref the engine owns whose provider has no `REST_API` binding, so no augmentation of it can be admitted (#1673);\n * - nothing executable (Paul, 2026-09-14: \"no operation, no providers exported\");\n * - every call refused at runtime: the emitted REST base URL carries a HOST or ORIGIN placeholder that no allowance\n * admits — a recorded refusal, no decision, or a template no allowance can make safe (two placeholders in one host).\n * A provider that can dial nothing is the same as one with nothing to dial, so it is not exported either (#1015).\n *\n * An engine ref that passes the first two clauses ships as an AUGMENTATION (#1673), and for it the last clause is\n * replaced by another: its operations run on the ENGINE provider's base URL, never on the one the entry recovered, so\n * what must hold is that the two are the same base (`AUGMENTATION_BASE_URL_DIFFERS` otherwise). The entry's own base-URL\n * placeholders are moot — the augmentation does not carry a base URL at all.\n *\n * `provider` is optional so a caller asking only about the first three clauses need not build one; the plan and the\n * emit always pass it.\n */\nexport function vendorExportBlocker(\n ref: string,\n resolvedOperationCount: number,\n decisions: CatalogueDecisions | undefined,\n provider?: TransposedProvider,\n engineBases: ReadonlyMap<string, EngineOwnedBase> = ENGINE_OWNED_BASES,\n): VendorNotExported | undefined {\n if (decisions?.scrape === false) return { reason: CatalogueNotExportedReason.WITHHELD_BY_DECISION };\n const engineBase = engineBases.get(ref);\n if (engineBase !== undefined && !engineBase.hasRestArm) return { reason: CatalogueNotExportedReason.ENGINE_REF_HAS_NO_REST_ARM };\n if (resolvedOperationCount === 0) return { reason: CatalogueNotExportedReason.NO_EXECUTABLE_OPERATION };\n if (provider === undefined) return undefined;\n if (engineBase !== undefined) {\n const catalogueBase = emittedLiteralBaseUrl(provider, decisions);\n return sameBaseUrl(engineBase.restBaseUrl, catalogueBase)\n ? undefined\n : {\n reason: CatalogueNotExportedReason.AUGMENTATION_BASE_URL_DIFFERS,\n augmentationBaseUrls: { engine: engineBase.restBaseUrl, catalogue: catalogueBase ?? null },\n };\n }\n return baseUrlCallBlocker(provider, decisions);\n}\n\n/**\n * Would EVERY call through the emitted base URL be refused — and why, or `undefined` when a correctly connected account\n * can reach it (review F5 / F8).\n *\n * Mirrors the runtime path, which cannot be imported here: `provider-http-access` fills a braced `baseUrl` with\n * `resolveEndpointPlaceholders`, and that resolver lives in `@wildo-ai/saas-backend-lib` on no public entrypoint. So the\n * probe applies the SAME shared rules the resolver applies first — `findProviderOAuth2EndpointTemplateDefects`,\n * `classifyProviderOAuth2EndpointPlaceholders`, the allowance position rules through `resolveBaseUrlHostAllowances` — and\n * the one rule the resolver adds about answers: every placeholder, host or path, is answered only from a value the\n * CONNECTION stored at connect. Checked in order, each clause naming who can repair it:\n *\n * 1. a template defect, or a scheme other than `https:` → `BASE_URL_TEMPLATE_UNSAFE` (the definition);\n * 2. a host/origin placeholder no allowance admits → `BASE_URL_HOST_NOT_ADMITTED` (a recorded decision);\n * 3. a placeholder no connection door answers → `BASE_URL_NOT_ANSWERABLE`. Two doors store answers: the OAuth2 connect\n * start, for the placeholders its own endpoints and scopes carry, and — since #1097 — the typed-credential store, for\n * every placeholder of a PASTED-credential vendor's base URL (`credentialDoorConnectionParameters`). What is left\n * unanswerable is an OAuth2 vendor whose base URL carries a placeholder its endpoints and scopes do not.\n */\nexport function baseUrlCallBlocker(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): VendorNotExported | undefined {\n const baseUrl = emittedLiteralBaseUrl(provider, decisions);\n if (baseUrl === undefined) return undefined;\n const occurrences = classifyProviderOAuth2EndpointPlaceholders(baseUrl);\n if (occurrences.length === 0) return undefined;\n const names = [...new Set(occurrences.map((occurrence) => occurrence.name))];\n const hostNames = [...new Set(occurrences\n .filter((occurrence) => occurrence.position !== ProviderOAuth2EndpointPlaceholderPosition.PATH_OR_QUERY)\n .map((occurrence) => occurrence.name))];\n if (findProviderOAuth2EndpointTemplateDefects(baseUrl).length > 0) {\n return { reason: CatalogueNotExportedReason.BASE_URL_TEMPLATE_UNSAFE, ...(hostNames.length === 0 ? {} : { baseUrlHostsNotAdmitted: hostNames }) };\n }\n if (!/^https:\\/\\//i.test(baseUrl) && !/^\\{/.test(baseUrl)) return { reason: CatalogueNotExportedReason.BASE_URL_TEMPLATE_UNSAFE };\n const hosts = baseUrlHostsNotAdmitted(provider, decisions);\n if (hosts.length > 0) return { reason: CatalogueNotExportedReason.BASE_URL_HOST_NOT_ADMITTED, baseUrlHostsNotAdmitted: hosts };\n const answered = new Set([\n ...oauth2ConnectionParameters(provider, decisions),\n ...credentialDoorConnectionParameters(provider, baseUrl),\n // Derived from a connection answer (#1937): never answered by a person, always filled — the table, or its default.\n ...(connectionDerivedOperationHost(provider, decisions) === undefined ? [] : [DERIVED_OPERATION_HOST_PLACEHOLDER]),\n ]);\n const unanswered = names.filter((name) => !answered.has(name));\n return unanswered.length === 0 ? undefined : { reason: CatalogueNotExportedReason.BASE_URL_NOT_ANSWERABLE, baseUrlPlaceholdersUnanswered: unanswered };\n}\n\n/**\n * The host or origin placeholders of the emitted literal base URL that NO allowance admits, in template order — every\n * one of them makes `resolveEndpointPlaceholders` refuse every call. A template with a defect (two placeholders in one\n * host) admits none of its host placeholders, whatever is declared.\n */\nexport function baseUrlHostsNotAdmitted(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): readonly string[] {\n const baseUrl = emittedLiteralBaseUrl(provider, decisions);\n if (baseUrl === undefined) return [];\n const hostNames = classifyProviderOAuth2EndpointPlaceholders(baseUrl)\n .filter((occurrence) => occurrence.position !== ProviderOAuth2EndpointPlaceholderPosition.PATH_OR_QUERY)\n .map((occurrence) => occurrence.name);\n if (hostNames.length === 0) return [];\n if (findProviderOAuth2EndpointTemplateDefects(baseUrl).length > 0) return [...new Set(hostNames)];\n const { allowances } = resolveBaseUrlHostAllowances(provider, decisions);\n return [...new Set(hostNames.filter((name) => !allowances.has(name)))];\n}\n\n/** The emit's own accounting, without writing anything. `--dry-run` reports exactly this. */\nexport function planProvidersPackage(options: EmitPackageOptions): EmitPackageResult {\n const refusedByVendor = new Map<string, ReadonlyMap<EmitRefusalReason, number>>();\n const exportedOperationCounts = new Map<string, number>();\n const notExported = new Map<string, VendorNotExported>();\n const augmentingRefs = new Set<string>();\n const engineBases = options.engineBases ?? ENGINE_OWNED_BASES;\n let vendors = 0;\n let executable = 0;\n let pending = 0;\n let unreadable = 0;\n for (const recovered of options.providers) {\n // The SAME replacement the emit applies, so the plan's export predicate reads the base URL the emit writes.\n const { provider } = applyBaseUrlNamedByDeployment(recovered, readDecisions(options.packageRoot, recovered.ref));\n const { resolved, refusals, pendingOperations } = planVendor(provider);\n if (refusals.size > 0) refusedByVendor.set(provider.ref, refusals);\n pending += pendingOperations.length;\n unreadable += (options.unreadableByVendor.get(provider.ref) ?? []).length;\n executable += resolved.length;\n // The SAME predicate the emit applies. Counting `resolved.length > 0` alone is what made a dry\n // run promise nine subpaths the emit withholds.\n // Listings alone are not \"something executable\": a vendor whose actions were all refused exports nothing,\n // however many pickers its source declared (#1045).\n const blocker = vendorExportBlocker(provider.ref, resolved.filter((operation) => operation.derivedListing !== true).length, readDecisions(options.packageRoot, provider.ref), provider, engineBases);\n if (blocker === undefined) {\n vendors += 1;\n exportedOperationCounts.set(provider.ref, resolved.length);\n if (shipsAsEngineAugmentation(provider.ref, engineBases)) {\n assertAugmentationPathsAreRelative(provider, resolved);\n augmentingRefs.add(provider.ref);\n }\n } else {\n notExported.set(provider.ref, blocker);\n }\n }\n // A plan does not consult the ledger, so it cannot know what moved. Empty rather than absent: the\n // shape is the emit's, and a dry run that invented a movement would be reporting on a comparison\n // it never made.\n return {\n vendors,\n exportedOperationCounts,\n executableOperations: executable,\n pendingOperations: pending,\n unreadableOperations: unreadable,\n refusedByVendor,\n refusalMovement: new Map(),\n notExported,\n augmentingRefs,\n frontendFacets: readAuthoredFrontendFacets(options.packageRoot),\n };\n}\n\n/**\n * Close the record against what this run actually produced, and REFUSE anything that matched\n * nothing.\n *\n * ## Why a refusal, and not a warning\n *\n * Every correction in this lane has failed the same way: a fix that silently stops applying. A\n * succession for an endpoint that moved again, a decision for a vendor the source dropped — each is\n * a statement about a world that has moved, and each is invisible unless the run refuses. Withdrawal\n * is the explicit way to say \"this is gone\", precisely so that silence never means it.\n *\n * ## Why only on a FULL batch\n *\n * A partial run CANNOT SEE the entries it did not cover: `--vendor slack` leaves 696 vendors'\n * records matching nothing, and one catalogue alone leaves every entry the other contributed. Making\n * those fail would refuse a run for doing exactly what it was asked to do. So a partial run reports\n * and writes no withdrawals, and only a full batch may conclude that something is gone.\n */\nfunction reconcileRecord(options: {\n readonly packageRoot: string;\n readonly seenRefs: ReadonlySet<string>;\n readonly unmatched: readonly UnmatchedRecordEntry[];\n readonly fullBatch: boolean;\n readonly today: string;\n}): void {\n if (!options.fullBatch) return;\n\n /*\n * A vendor the sources stop describing is WITHDRAWN, not deleted (#500).\n *\n * This used to `removeLedger`, which was the one path in this record where an id could be lost. An\n * operation that disappears keeps its keys so a restored endpoint resurrects its id; a withheld\n * vendor keeps its whole ledger so re-enabling reuses every id. A vendor that vanishes upstream for\n * one release and returns had neither — every operation came back freshly derived, and every\n * application calling one of its ids broke silently.\n *\n * `withdrawVendor` drops refusals and moves every live operation to `withdrawn`, so a vendor whose\n * ledger held ONLY refusals reduces to nothing and `writeLedger` removes the file. That is right:\n * there were no ids to preserve, and a file asserting three empty objects records nothing.\n */\n for (const ref of ledgerRefs(options.packageRoot)) {\n if (options.seenRefs.has(ref)) continue;\n const ledger = readLedger(options.packageRoot, ref);\n if (ledger === undefined) continue;\n writeLedger(\n options.packageRoot,\n withdrawVendor(\n ledger,\n options.today,\n 'This batch produced no such vendor — the sources no longer describe it.',\n ),\n );\n }\n\n const stale = [\n ...readDecisionRefs(options.packageRoot)\n .filter((ref) => !options.seenRefs.has(ref))\n .map((ref) => `decisions/${ref}.json names a vendor this batch did not produce`),\n ...options.unmatched.map((entry) => `${entry.ref}: ${entry.detail}`),\n ];\n if (stale.length === 0) return;\n\n throw new Error(\n `The catalogue record contains ${stale.length} entr${stale.length === 1 ? 'y' : 'ies'} that matched nothing in this batch:\\n`\n + stale.map((line) => ` - ${line}`).join('\\n')\n + '\\n\\nA record entry that matches nothing is a decision that has stopped applying. Either the thing it names is genuinely gone '\n + '(delete the entry, or record the withdrawal deliberately) or it moved (follow it). Silence must never mean either.',\n );\n}\n\nconst GENERATED_BANNER = `/**\n * GENERATED by \\`wildo fwk generate-providers\\`. Do not edit by hand — a regeneration overwrites it.\n *\n * An edit made in this file is lost the next time the batch runs, and a fix that silently disappears\n * is worse than one that was never made. Corrections have three homes instead:\n * - the transposer, for a defect that spans vendors;\n * - the source catalogue, for something the vendor's own entry gets wrong;\n * - \\`src/_authored/<ref>.authored.ts\\`, for one vendor's peculiarity — an operation no source\n * describes, an operation to withhold, a credential entry, a corrected runtime fact.\n */`;\n\n/**\n * The subpath a vendor is imported through: `@wildo-ai/providers/slack`.\n *\n * The vendor's name is in the PATH, never in the package name — which is the whole point of the\n * one-package shape, and the half that cannot be quietly undone once published.\n */\nfunction subpathFor(ref: string): string {\n return `./${ref}`;\n}\n\n/**\n * One manifest, one published name, and an export map with one entry per vendor.\n *\n * `sideEffects: false` is load-bearing rather than hygiene: it tells a bundler that importing one\n * vendor's subpath can never require evaluating another's, which is what keeps an application's\n * bundle proportional to what it declares even though its `node_modules` holds every vendor.\n *\n * The version is a placeholder the publish lane sets. A generator cannot know which release a batch\n * belongs to, and inventing one would put a plausible wrong version on the whole catalogue.\n */\n/**\n * The version is CARRIED OVER, never re-rendered.\n *\n * A regeneration rewrites this manifest wholesale, and a literal here means every regeneration\n * silently un-releases the package: it reverts to `0.0.0` and the next publish either fails or\n * republishes an old number. That is not hypothetical — `providers` was released as `1.1.3` and the\n * very next regeneration, minutes later, reset it, which is how this was found.\n *\n * The version is a RELEASE decision and belongs to whoever cuts one; the transposer's business is\n * the vendor surface. `0.0.0` remains the value for a package root that does not exist yet, which\n * is the only case where nothing has decided.\n */\nfunction readExistingPackageVersion(packageRoot: string): string {\n try {\n const manifest = JSON.parse(readFileSync(join(packageRoot, 'package.json'), 'utf8')) as { version?: unknown };\n return typeof manifest.version === 'string' && manifest.version.length > 0 ? manifest.version : '0.0.0';\n } catch {\n // No manifest yet, or an unreadable one. A first emit legitimately has nothing to carry over.\n return '0.0.0';\n }\n}\n\nfunction renderPackageJson(\n providers: readonly TransposedProvider[],\n version: string,\n augmentsEngineProviders = false,\n frontendFacets: readonly AuthoredFrontendFacet[] = [],\n): string {\n const shipsFrontendFacets = frontendFacets.length > 0;\n const exportsMap: Record<string, unknown> = {\n // The ONE door discovery opens. `resolvePackageCompanionEntryPath` reads this subpath from the\n // manifest and hands the resolved path to the loader, so no application ever writes the\n // specifier — which is why it must exist even though nothing imports it by name.\n './companion': {\n // `companion-exports.ts`, hyphenated, because `resolvePackageCompanionEntryPath` hard-codes\n // exactly that filename as its source fallback and every other contributing package uses it.\n // Emitting `companion.exports.ts` resolved fine through the export map once BUILT and failed\n // the moment discovery ran against source — which is how it was found: by running the real\n // walk rather than by reading the manifest and believing it.\n source: './src/companion-exports.ts',\n types: './dist/esm/companion-exports.d.ts',\n default: './dist/esm/companion-exports.js',\n },\n /*\n * NO `./systems-of-record` door, deliberately (#2013). The system-of-record vendor facets were\n * authored inside this catalogue under `src/_systems-of-record/` (#1057) and exported here; they\n * moved to their own opt-in library, `@wildo-ai/systems-of-record`, which discovery admits by its\n * exact name. Emitting the door again would re-publish a facet module the catalogue no longer\n * carries, and if a stale copy of the tree came back with it the backend would hold two base facets\n * for one vendor and refuse the instance (`FACET_BASE_CONFLICT`).\n */\n };\n for (const provider of [...providers].sort((left, right) => left.ref.localeCompare(right.ref))) {\n exportsMap[subpathFor(provider.ref)] = {\n source: `./src/${provider.ref}/backend.exports.ts`,\n types: `./dist/esm/${provider.ref}/backend.exports.d.ts`,\n default: `./dist/esm/${provider.ref}/backend.exports.js`,\n };\n }\n // The browser doors (#1700), one per authored facet, each separate from the vendor's `backend.exports.ts` so a\n // browser bundle importing a facet never pulls a line of server code.\n Object.assign(exportsMap, renderFrontendFacetExports(frontendFacets));\n return `${JSON.stringify(\n {\n name: PACKAGE_NAME,\n version,\n type: 'module',\n description: `Wildo provider catalogue: ${providers.length} vendors transposed from open integration catalogues. Each vendor is a subpath export; there is no root barrel.`,\n license: 'MIT',\n publishConfig: { access: 'public' },\n sideEffects: false,\n files: ['dist', 'NOTICE'],\n /*\n * `watch` is what puts this package in the dev fleet, and its absence is why the catalogue's\n * `dist` went silently stale.\n *\n * `selectWatchPackages` in the dev orchestrator filters on `pkg.scripts.watch`, so a package\n * that declares only `build` is never watched — and 103 watchers were running while nothing\n * rebuilt this one. Everything that reads the catalogue at RUNTIME resolves through the\n * `exports` map to `dist`: discovery, `wildo config sync`, a booted backend. Measured\n * 2026-09-07, `dist` sat 29 minutes behind `src` and `config sync` refused against a barrel\n * that no longer existed — a wrong diagnosis until the artifact was dated.\n *\n * The alias finalizer runs on `--onSuccess` in both scripts, matching every engine package.\n * Nothing generated here uses a `~` alias, so it rewrites nothing today; it is the step that\n * marks an emitted tree PUBLISHED, and a build that skips it leaves readers looking at a dist\n * nobody finished.\n *\n * `../../scripts/`: since the #2019 cut-over this package sits two levels below the repository\n * root (`_code_archive/providers/`), as every engine package does. It sat one level below\n * (`providers/`) until then.\n */\n scripts: {\n // `pnpm -r typecheck` visits every workspace member that declares this script and SKIPS the\n // rest, so without it nothing in CI ever compiled the catalogue — every vendor and every\n // operation in it, checked by the emitter's own unit tests and by no compiler. `tsconfig.json`\n // exists for exactly this: it extends the emit config with `noEmit`, so the two cannot drift\n // into describing different programs.\n typecheck: 'tsc -p tsconfig.json',\n /*\n * The catalogue acquired HAND-OWNED LOGIC with #1057 — then `src/_systems-of-record/`, since\n * #2013 its own library; `src/_frontend/` keeps the lane — and until then it had no test lane\n * at all: generated vendors whose only check was the compiler, which is defensible for\n * transposed data and not for authored code.\n *\n * `pnpm -r test` visits every member declaring this script, so the catalogue now joins the\n * fleet's test pass rather than being the one package it skips.\n */\n test: 'vitest run',\n build: 'tsc -p tsconfig.build.json && node ../../scripts/run-tsc-alias-safe.mjs --project tsconfig.build.json --dist dist/esm',\n watch:\n 'node ../../scripts/run-tsc-watch-single-writer.mjs --dist dist/esm --exec tsc-watch -- -p tsconfig.build.json --preserveWatchOutput '\n + '--onSuccess \"node ../../scripts/run-tsc-alias-safe.mjs --project tsconfig.build.json --dist dist/esm\"',\n },\n exports: exportsMap,\n // `workspace:*` for the engine, matching every other package in this monorepo. `\"*\"` looked\n // equivalent and is not: pnpm resolved it from the REGISTRY, so the generated catalogue\n // compiled and loaded against a PUBLISHED 1.1.2 engine while the local source moved under it —\n // which is how a probe for #378 died on an export that had existed locally for a day. pnpm\n // rewrites `workspace:*` to the concrete version at publish time, so the published manifest is\n // unaffected. `zod` stays `\"*\"`, which the publish lane substitutes from the root override.\n dependencies: {\n '@wildo-ai/saas-models': 'workspace:*',\n '@wildo-ai/external-connectors-models': 'workspace:*',\n // Not a dependency while the package augments an engine provider: then it is a PEER (below), because a\n // hard `workspace:*` publishes as an exact version and installs the package its OWN engine copy, which is\n // not the engine whose provider the augmentation adds operations to (#1673 review).\n ...(augmentsEngineProviders ? {} : { '@wildo-ai/external-connectors-private': 'workspace:*' }),\n // A frontend facet is typed by, and its contribution projected through, the browser-bound facet contracts\n // (#1700). Only while a facet exists, so a catalogue without one keeps the manifest it had.\n ...(shipsFrontendFacets ? { '@wildo-ai/external-connectors-public': 'workspace:*' } : {}),\n zod: '*',\n },\n /*\n * The engine version an AUGMENTATION was written against (#1673, #1731). An augmentation's operations run on an\n * engine provider's base URL, credential and operation-id namespace, all of which move with the engine, so the\n * package states the range it admits — as a peer, because the base is the APPLICATION's engine, not a copy this\n * package brings. \\`workspace:^\\` publishes as \\`^<version>\\`. Emitted only while the package augments something,\n * so a catalogue that augments nothing keeps the manifest it had; what config sync does with the range is #1731.\n */\n ...(augmentsEngineProviders || shipsFrontendFacets\n ? {\n peerDependencies: {\n ...(augmentsEngineProviders ? { '@wildo-ai/external-connectors-private': 'workspace:^' } : {}),\n /*\n * A facet's component is a React component (#1700), reached only through the facet's lazy `load`. OPTIONAL,\n * so an application that uses no facet installs nothing for it and its REQUIRED peer closure — bounded\n * shrink-only by `enginePeerClosureCeilings` — does not grow. An application scoping a facet already has\n * React: every browser surface is a React tree. A vendor SDK a facet loads joins here the same way.\n */\n ...(shipsFrontendFacets ? { react: '*' } : {}),\n },\n ...(shipsFrontendFacets ? { peerDependenciesMeta: { react: { optional: true } } } : {}),\n }\n : {}),\n /**\n * The COMPILER, declared for the same reason every other package in this fleet declares it —\n * and its absence was not cosmetic. Measured 2026-09-09: `providers` was the ONLY workspace\n * package with no `typescript` devDependency, and consequently the only one whose `tsc`\n * resolved **7.0.2** instead of the fleet's 5.9.3. With nothing in its own `node_modules`,\n * every invocation walked up to the repository root, where the TS7 alias installed for the\n * native-compiler migration also publishes a `tsc` bin.\n *\n * So the largest emitter in the repository was on the native lane by accident. That lane is\n * OPT-IN per package by design — `wildo-compiler-runner.mjs` asserts its exact version and\n * fails closed — and this package bypassed it entirely, because its own `build` and `watch`\n * scripts call `tsc` directly rather than through the runner. Its published `dist`, which\n * every consumer resolves, was emitted by a compiler nobody chose for it.\n *\n * It also hid the defect above: TypeScript 7 does not surface `watchOptions` in\n * `--showConfig`, so the missing watch exclusions read as an inheritance failure until the\n * measurement was repeated naming 5.9.3 explicitly.\n *\n * `\"*\"` rather than a version: the pin is the root `pnpm.overrides` entry, exactly as for the\n * rest of the fleet, so a compiler bump needs no edit here.\n */\n devDependencies: {\n // The workspace link the package still compiles and tests against when the engine is only a peer.\n ...(augmentsEngineProviders ? { '@wildo-ai/external-connectors-private': 'workspace:*' } : {}),\n // What a facet's component compiles and is tested against (#1700); the optional peer above is what ships.\n ...(shipsFrontendFacets ? { '@types/react': '*', react: '*' } : {}),\n typescript: '*',\n // The runner for the `test` script above. `\"*\"` for the same reason the compiler is: the pin\n // is the root `pnpm.overrides` entry, so a bump needs no edit here.\n vitest: '*',\n },\n },\n null,\n 2,\n )}\\n`;\n}\n\n/**\n * One tsconfig for the whole catalogue, and therefore one `tsc` process.\n *\n * Measured on 2026-09-06, when the 684-package shape took a development machine down: a single `tsc`\n * peaks at ~391 MB, almost all of it the engine's `.d.ts` closure and the TypeScript lib — a fixed\n * cost per PROCESS, not per package. One process typechecking every vendor peaks at 1.23 GB in about\n * a second. The package count was never what cost anything; the process count was.\n *\n * Self-contained on purpose: no `extends` reaching outside this package, so it builds from a checkout\n * that contains only this directory.\n */\n/**\n * The EMIT config, and the one the dev fleet compiles this package with.\n *\n * `tsconfig.build.json` is not a preference — it is the watcher's package contract, hard-coded in\n * `dev-compile-status.mjs` (`projectPath: resolve(pkg.root, 'tsconfig.build.json')`, and again in\n * `emitted-artifact-validity.mjs` and the declaration-recovery path). Emitting only `tsconfig.json`\n * made the package eligible for watching and then unwatchable: the fleet spawned a watcher that died\n * on `TS5058: The specified path does not exist: 'tsconfig.build.json'`, and the application's\n * diagnostics reported `NOT_READY @wildo-ai/providers — COMPILE_WATCHER_EXITED`.\n *\n * `composite: true` matches every engine package, because the fleet's machinery is built around\n * packages that have it — interrupted-declaration recovery and emitted-artifact validity both open\n * this project by path.\n */\nfunction renderBuildTsconfig(): string {\n return `${JSON.stringify(\n {\n // The repository-wide WATCH exclusions, inherited exactly as every engine package inherits them\n // (through `engine/tsconfig.common.json`, which extends this same file). Added 2026-09-09.\n //\n // Without it this package was watched with NO `watchOptions` at all, and it is the worst one in\n // the repository to watch naively: it emits 1,380 `.d.ts` files and its `.wildo-runtime-signals/`\n // had grown to 23 MB. Those journals snapshot every emitted declaration on each compile cycle,\n // and pnpm links make the directory reachable as\n // `<consumer>/node_modules/@wildo-ai/providers/.wildo-runtime-signals/…` — so every consumer\n // installs a recursive watcher over it and reschedules a recompile on each journal write. That\n // is the compile storm `tsconfig.watch-exclusions.json` documents, aimed at the largest emitter\n // in the tree, and it went live the moment the catalogue became fleet-watched.\n //\n // It must be inherited from the REPOSITORY ROOT rather than restated here: TypeScript re-roots\n // path-like options against the file that DECLARED them, so a copy living in the package would\n // resolve its globs to the package alone and cover nothing else. Two levels up: the package sits\n // at `_code_archive/providers/` since the #2019 cut-over.\n extends: '../../tsconfig.watch-exclusions.json',\n compilerOptions: {\n target: 'ES2022',\n module: 'ESNext',\n moduleResolution: 'Bundler',\n composite: true,\n declaration: true,\n strict: false,\n skipLibCheck: true,\n esModuleInterop: true,\n outDir: './dist/esm',\n rootDir: './src',\n },\n include: ['src/**/*.ts'],\n // Tests are excluded from the EMIT, as every engine package's build excludes them: the hand-owned\n // `_*/__tests__` trees import vitest, which is a devDependency, so emitting them into\n // `dist/esm` failed the watcher on `Cannot find module 'vitest'` (4c2b9012). That commit fixed the\n // generated file by hand, and the next regeneration reverted it — the emitter is where it belongs.\n exclude: ['node_modules', 'dist', '**/*.test.ts', '**/*.spec.ts'],\n },\n null,\n 2,\n )}\\n`;\n}\n\n/**\n * The TYPECHECK config, which emits nothing.\n *\n * Extends the build config so the two cannot drift into disagreeing about what compiles — the pair\n * exists to separate emitting from checking, not to describe two different programs.\n *\n * The one deliberate difference is `exclude`: it is restored to `node_modules` / `dist`, so the tests\n * the build config keeps out of `dist` are still TYPECHECKED — the engine packages' typecheck configs\n * make the same override.\n */\nfunction renderTypecheckTsconfig(): string {\n return `${JSON.stringify(\n {\n extends: './tsconfig.build.json',\n compilerOptions: { composite: false, noEmit: true },\n include: ['src/**/*.ts'],\n exclude: ['node_modules', 'dist'],\n },\n null,\n 2,\n )}\\n`;\n}\n\nfunction renderNotice(providers: readonly TransposedProvider[]): string {\n const sources = new Map<string, Set<string>>();\n for (const provider of providers) {\n for (const provenance of provider.provenances) {\n const revisions = sources.get(provenance.source) ?? new Set<string>();\n revisions.add(provenance.sourceVersion);\n sources.set(provenance.source, revisions);\n }\n }\n const lines = [...sources.entries()].map(([source, revisions]) => `- ${source} — revision(s) ${[...revisions].join(', ')}`);\n // The vendor documents CONSULTED (#1572), attributed apart from the catalogues because they decide no\n // operation — they answer questions about operations the catalogues chose.\n const documented = providers.filter((provider) => (provider.documentedBy?.length ?? 0) > 0);\n const consulted = documented.flatMap((provider) => provider.documentedBy ?? []);\n const corpusRevisions = new Set(consulted.map((provenance) => provenance.sourceVersion).filter((version) => version !== PINNED_DESCRIPTION_SOURCE_VERSION));\n const pinnedVendors = documented.filter((provider) => (provider.documentedBy ?? []).some((provenance) => provenance.sourceVersion === PINNED_DESCRIPTION_SOURCE_VERSION));\n const documentSources = [\n ...(corpusRevisions.size === 0 ? [] : [`- OPENAPI_DOCUMENT — the Jentic public API corpus (CC0-1.0), revision(s) ${[...corpusRevisions].join(', ')}`]),\n ...(pinnedVendors.length === 0\n ? []\n : [`- OPENAPI_DOCUMENT — the vendor's own published description, pinned by URL in catalogue-record/decisions, for ${pinnedVendors.map((provider) => provider.ref).join(', ')}`]),\n ];\n const documentsNote = documented.length === 0\n ? ''\n : `\nVendor OpenAPI descriptions were consulted for ${documented.length} of these vendors, to name path parameters and\ndescribe responses of operations the catalogues above had already chosen:\n\n${documentSources.join('\\n')}\n\nThey contributed no operation. Each description remains under its publisher's terms; the documents read\nare named in each vendor's generated module.\n`;\n return `${PACKAGE_NAME}\n\nThis package's provider DEFINITIONS were derived at build time from the catalogues below, covering\n${providers.length} vendors. No code from them is redistributed here and none of it executes: what\nships is a Wildo operation catalogue — method, path template, parameters and auth shape — executed by\nWildo's own HTTP client.\n\n${lines.join('\\n')}\n\nActivepieces pieces are MIT (Activepieces Inc). Sim is Apache-2.0. Their notices apply to the source\nthat was read, not to this file. Each vendor's own provenance, down to the exact artifact read, is\nrecorded in its generated module's metadata.\n${documentsNote}`;\n}\n\n/**\n * The operation's declared input as a Zod object — the half of D4's promise the emitter used to drop.\n *\n * `requestBody: { encoding: JSON }` says a body exists and nothing about what is in it, which is not\n * enough for anything: the executor cannot validate a call, a typed client (R3) has nothing to derive\n * an argument type from, and a caller cannot discover what to pass. The sources declare it — 12,193\n * `Property.ShortText`, 3,797 `Property.Number` and so on in Activepieces, a `type` string per param\n * in Sim — so the schema is READ, never invented.\n *\n * Two decisions inside it. Optional fields stay optional rather than being given a default, because a\n * default is a decision about the VENDOR's behaviour that no catalogue states. And an input whose kind\n * could not be read is `z.unknown()` rather than `z.string()`: most inputs are strings, and typing an\n * unknown as the common case is exactly how a schema comes to lie about the one that is not.\n *\n * Absent when the source declared no input at all — an operation with no fields is passed through\n * unvalidated, which the contract permits and which is honest about carrying no contract.\n *\n * ## Every object schema is rendered `z.looseObject<z.ZodRawShape>({...})`, never bare\n *\n * The explicit type argument is what keeps the catalogue compilable, and it was measured rather than\n * reasoned about. `ProviderRestOperationCatalogue` types every schema slot as a plain `z.ZodType`, and\n * nothing anywhere derives a TypeScript type from these schemas (the typed client renders its own\n * argument types from the same field set). Yet a bare `z.looseObject({ ... })` still makes the checker\n * INFER the call's full generic result — a mapped input/output type over every field — once per call,\n * and the catalogue makes ~7,200 such calls. On 2026-09-09 that cost the package's watcher its life:\n * one compile of 689 vendors needed 3.5 GB of heap (4.0M symbols, 1.9M types, 5.8M instantiations,\n * 21 s to check), an incremental rebuild holds two programs, and `tsc-watch` died with \"JavaScript\n * heap out of memory\" at the default 4 GB limit — taking the platform watch group down with it.\n *\n * With the type argument supplied, inference has nothing to do: the argument is checked against the\n * one shared `ZodRawShape` instantiation and the result type is the same for every call. The same\n * 689 vendors then compile in 0.9 GB (0.73M symbols, 0.19M types, 0.10M instantiations, 1.5 s to\n * check). The emitted RUNTIME value is byte-identical — a type argument is erased — so validation,\n * OpenAPI projection and the executor see exactly the schemas they saw before.\n */\nfunction renderInputSchema(operation: TransposedOperation): string | undefined {\n // The SAME set the typed client renders — see `callerSuppliedInputFields`. Walking\n // `operation.inputFields` raw here is what made 1,668 operations uncallable through their own\n // client: the schema demanded a credential the client refuses to accept.\n const fields = callerSuppliedInputFields(operation);\n if (fields.length === 0) return undefined;\n const entries = fields\n .map((field) => {\n const base = zodFor(field.kind);\n const described = field.description === undefined ? base : `${base}.describe(${quote(field.description)})`;\n return ` ${quote(field.name)}: ${field.required ? described : `${described}.optional()`},`;\n })\n .join('\\n');\n // `looseObject`, deliberately: a vendor's API accepts fields no catalogue mentioned, and a strict\n // schema would refuse a legitimate call for the crime of being more complete than the source.\n return `z.looseObject<z.ZodRawShape>({\\n${entries}\\n })`;\n}\n\n/**\n * A response shape as Zod, rendered recursively.\n *\n * Every object is LOOSE and every member keeps whatever optionality its source stated. Both are\n * about the same asymmetry: a response schema exists so a caller can rely on the fields it names,\n * not so Wildo can police a vendor. A vendor that adds a field must never break a call, and a\n * vendor that omits one the source happened to describe must not either — the engine contract says\n * as much (\"authors should keep these permissive; the value is in naming the fields a caller may\n * rely on\"). A strict response schema turns every vendor release into an outage.\n */\nfunction renderShape(shape: TransposedShape, indent: number): string {\n const pad = ' '.repeat(indent);\n const described = (rendered: string): string =>\n shape.description === undefined ? rendered : `${rendered}.describe(${quote(shape.description)})`;\n // EVERY member of a response is optional, whatever the source said it was required.\n //\n // Not a weakening — a correction, and it was found by a socket rather than reasoned about. Slack's\n // `conversations.info` answers `{ ok, channel }`; the source's own output description named a\n // required `channelInfo`, so the executor refused a perfectly good vendor response with\n // \"expected object, received undefined\". A source describes what it CHOSE to surface, under its\n // own names — it is not, and never was, a statement about the vendor's wire format.\n //\n // The engine contract asks for exactly this: \"a vendor adding a field must never break a call, so\n // authors should keep these permissive; the value is in naming the fields a caller may rely on,\n // not in policing the vendor.\" Required-ness derived from a third party's summary is how a\n // generated catalogue turns a working vendor into an outage.\n const optional = (rendered: string): string => (rendered.endsWith('.optional()') ? rendered : `${rendered}.optional()`);\n\n if (shape.kind === TransposedInputKind.OBJECT && shape.fields !== undefined && Object.keys(shape.fields).length > 0) {\n const members = Object.entries(shape.fields)\n .map(([name, member]) => `${pad} ${quote(name)}: ${renderShape(member, indent + 2)},`)\n .join('\\n');\n return optional(described(`z.looseObject<z.ZodRawShape>({\\n${members}\\n${pad}})`));\n }\n if (shape.kind === TransposedInputKind.ARRAY) {\n const element = shape.items === undefined ? 'z.unknown()' : renderShape(shape.items, indent + 2);\n return optional(described(`z.array(${element})`));\n }\n return optional(described(zodFor(shape.kind)));\n}\n\nfunction zodFor(kind: TransposedInputKind): string {\n switch (kind) {\n case TransposedInputKind.STRING:\n return 'z.string()';\n case TransposedInputKind.NUMBER:\n return 'z.number()';\n case TransposedInputKind.BOOLEAN:\n return 'z.boolean()';\n case TransposedInputKind.ARRAY:\n return 'z.array(z.unknown())';\n case TransposedInputKind.OBJECT:\n return 'z.looseObject<z.ZodRawShape>({})';\n case TransposedInputKind.UNKNOWN:\n return 'z.unknown()';\n case TransposedInputKind.WIRE_SCALAR:\n return 'z.union([z.string(), z.number(), z.boolean()])';\n case TransposedInputKind.WIRE_SCALAR_OR_LIST:\n return 'z.union([z.string(), z.number(), z.boolean(), z.array(z.union([z.string(), z.number(), z.boolean()]))])';\n }\n}\n\n/** An operation's classification and method are engine enums; everything else is data. */\nfunction renderOperations(provider: TransposedProvider, operations: readonly TransposedOperation[]): string {\n // A listing is referred to by its ENDPOINT and resolved here against what this package actually ships (#1045):\n // ids are the ledger's, and a listing that was withdrawn or refused leaves its input a typed input.\n const operationByEndpoint = new Map(operations.map((operation) => [listingEndpointKey(operation.method, operation.pathTemplate), operation]));\n const entries = operations\n .map((operation) => {\n const parameters = operation.parameters\n .filter((parameter) => parameter.in !== TransposedParameterLocation.BODY)\n .map((parameter) => {\n // `from` is emitted only when the wire name and the input field DIFFER, which is what the\n // contract asks for: absent means \"the input field is spelled exactly like the wire name\".\n const from = parameter.from === undefined || parameter.from === parameter.name ? '' : `, from: ${quote(parameter.from)}`;\n return ` { name: ${quote(parameter.name)}, in: ProviderRestParameterLocation.${parameter.in.toUpperCase()}, required: ${parameter.required === true}${from} },`;\n })\n .join('\\n');\n const inputSchema = renderInputSchema(operation);\n const outputSchema = operation.outputShape === undefined ? undefined : renderShape(operation.outputShape, 6);\n const inputOptions = renderInputOptions(operation, operationByEndpoint);\n return ` ${quote(operation.operationId)}: {\n operationId: ${quote(operation.operationId)},\n domain: ${quote(operation.domain)},\n method: API_HttpMethod.${operation.method},\n pathTemplate: ${quote(operation.pathTemplate ?? '/')},\n classification: ExternalOperation_Classification.${operation.classification},${operation.summary === undefined ? '' : `\n summary: ${quote(operation.summary)},`}${parameters === '' ? '' : `\n parameters: [\n${parameters}\n ],`}${declaresRequestBody(operation) ? `\n requestBody: { encoding: ProviderRestRequestBodyEncoding.JSON },` : ''}${inputSchema === undefined ? '' : `\n inputSchema: ${inputSchema},`}${outputSchema === undefined ? '' : `\n outputSchema: ${outputSchema},`}${operation.resultPath === undefined ? '' : `\n resultPath: ${quote(operation.resultPath)},`}${inputOptions}\n },`;\n })\n .join('\\n');\n\n return `${GENERATED_BANNER}\n\nimport { z } from 'zod';\n\nimport {\n API_HttpMethod,\n ExternalOperation_Classification,\n ProviderRestParameterLocation,\n ProviderRestRequestBodyEncoding,\n type ProviderRestOperationCatalogue,\n} from '@wildo-ai/external-connectors-models';\n\n/** ${operations.length} executable operation(s) transposed for \\`${provider.ref}\\`. */\nexport const catalogue: ProviderRestOperationCatalogue = {\n domains: ['default'],\n operations: {\n${entries}\n },\n};\n`;\n}\n\n/** `GET /projects/{}` — the identity a listing is referred to by, holes normalised as the ledger normalises them. */\nfunction listingEndpointKey(method: string | undefined, pathTemplate: string | undefined): string {\n return `${method ?? 'UNKNOWN'} ${(pathTemplate ?? '').replace(/\\{[^}]*\\}/g, '{}')}`;\n}\n\n/**\n * The `inputOptions` block of an operation: every input whose choices the source lists from the connected\n * account, resolved to the listing operation this package ships (#1045). An input whose listing is not among\n * the exported operations is left out — the picker would name an operation nobody can call.\n */\nfunction renderInputOptions(operation: TransposedOperation, operationByEndpoint: ReadonlyMap<string, TransposedOperation>): string {\n const lines: string[] = [];\n for (const field of operation.inputFields) {\n if (field.options === undefined) continue;\n const listing = operationByEndpoint.get(listingEndpointKey(field.options.endpoint.method, field.options.endpoint.pathTemplate));\n // The shipped operation must answer the LIST the picker maps over: a declared action that won the endpoint but\n // reads the envelope whole would hand the executor an object, so the picker is not rendered.\n if (listing === undefined || (listing.resultPath ?? '') !== (field.options.resultPath ?? '')) continue;\n const listingId = listing.operationId;\n const dependsOn = field.options.dependsOn === undefined || Object.keys(field.options.dependsOn).length === 0\n ? ''\n : `, dependsOn: { ${Object.entries(field.options.dependsOn).map(([listingField, sourceField]) => `${quote(listingField)}: ${quote(sourceField)}`).join(', ')} }`;\n lines.push(` ${quote(field.name)}: { operationId: ${quote(listingId)}, valuePath: ${quote(field.options.valuePath)}, labelPath: ${quote(field.options.labelPath)}${dependsOn} },`);\n }\n if (lines.length === 0) return '';\n return `\n inputOptions: {\n${lines.join('\\n')}\n },`;\n}\n\n/**\n * A GET or HEAD operation NEVER declares a request body, whatever the source did.\n *\n * `fetch` refuses outright — `Request with GET/HEAD method cannot have body` — so an operation that\n * declares one is not merely unusual, it is unexecutable, and it fails at the socket with a message\n * about the method rather than about the vendor. 231 generated operations across 53 vendors carried\n * one, and every single one of them would have failed on first use.\n * spec-cite: RFC 9110 §9.3.1 — a GET's payload has no defined semantics; the Fetch standard turns\n * that into a hard refusal.\n *\n * Sources do write it: a piece passes a `body` alongside a GET because its own HTTP helper ignores\n * it, or because the vendor tolerates it. The transposer cannot carry that forward — the parameters\n * that matter are already declared as QUERY, so dropping the body loses nothing a caller can send.\n *\n * Found by executing a generated operation against a real server, which is the only thing that could\n * have found it: it typechecks, it parses, it validates against every schema, and it fails the\n * instant a socket is involved.\n */\nfunction declaresRequestBody(operation: TransposedOperation): boolean {\n if (!operation.hasRequestBody) return false;\n return operation.method !== 'GET' && operation.method !== 'HEAD';\n}\n\n/**\n * The vendor's TIER, from the record — `CATALOGUE` unless a human promoted it.\n *\n * `ProviderMetadata.tier`'s own contract says \"a recorded decision, never inferred\", and until this\n * existed the emitter hardcoded `CATALOGUE` while `CatalogueDecisions.tier` was read by nothing. A\n * declared field that nothing consumes is the exact failure the catalogue record was built to stop —\n * a decision that silently does not apply — sitting inside the record's own consumer.\n *\n * An unrecognised value REFUSES rather than falling back, because a typo that quietly leaves a vendor\n * at `CATALOGUE` is indistinguishable from not having written the decision at all.\n */\nfunction renderTier(decisions: CatalogueDecisions | undefined, ref: string): string {\n const declared = decisions?.tier;\n if (declared === undefined) return 'ProviderTier.CATALOGUE';\n const member = Object.entries(ProviderTier).find(([, value]) => value === declared)?.[0];\n if (member === undefined) {\n throw new Error(\n `decisions/${ref}.json declares tier '${declared}', which is not a ProviderTier value `\n + `(${Object.values(ProviderTier).join(', ')}).`,\n );\n }\n return `ProviderTier.${member}`;\n}\n\n/**\n * WHICH connections the vendor admits — projected from the record, never derived from the source.\n *\n * Emitting nothing is the floor (`APPLICATION` × `SERVICE`), and it is what every vendor gets until\n * someone records otherwise. The generator cannot know whether a vendor can be connected per tenant:\n * that is a fact about the vendor's product and about what somebody verified, and \"it declares OAuth2\"\n * is a fact about the scraped catalogue. Deriving one from the other would produce an unfalsifiable\n * claim that one upstream change flips silently.\n *\n * An unrecognised member REFUSES for the same reason as the tier: a typo that silently narrows a\n * vendor back to the floor reads exactly like a decision nobody made.\n */\nfunction renderAdmissibleConnections(decisions: CatalogueDecisions | undefined): string {\n const admissible = decisions?.admissibleConnections;\n if (admissible === undefined || admissible.length === 0) return '';\n const ownerScopes = Object.entries(ExternalProvider_Connection_OwnerScope);\n const delegations = Object.entries(ExternalProvider_Connection_DelegationMode);\n const rendered = admissible.map((entry) => {\n const owner = ownerScopes.find(([, value]) => value === entry.ownerScope)?.[0];\n const delegation = delegations.find(([, value]) => value === entry.delegation)?.[0];\n if (owner === undefined || delegation === undefined) {\n throw new Error(\n `decisions/${decisions?.ref}.json admits '${entry.ownerScope}' × '${entry.delegation}', `\n + `which is not a (ExternalProvider_Connection_OwnerScope × ExternalProvider_Connection_DelegationMode) pair.`,\n );\n }\n return ` { ownerScope: ExternalProvider_Connection_OwnerScope.${owner}, delegation: ExternalProvider_Connection_DelegationMode.${delegation} },`;\n });\n return `\\n admissibleConnections: [\\n${rendered.join('\\n')}\\n ],`;\n}\n\n/**\n * NOTE on `import('./operations.generated.js')` in this template — the extension is load-bearing and\n * must not be \"tidied\" away.\n *\n * That literal is DATA: the text written into every vendor module. But it is import-SHAPED, so the\n * alias finalizer rewrote it when THIS file was built — the source said `./operations.generated` and\n * the shipped generator wrote `./operations.generated.js`. The generator's OUTPUT therefore depended\n * on how the generator itself had been built, and running it from source rather than from dist would\n * emit a different catalogue.\n *\n * It went unnoticed for the worst possible reason: the rewrite was RIGHT. The emitted module compiles\n * to ESM, where the extension is required. Found 2026-09-08 by reading a regeneration diff, not by a\n * test — none pinned either form. Saying it at the source makes source and build agree. The check that\n * pinned it on the shipped catalogue retired with the catalogue (#2019); its successor, rule\n * `relative-import-without-extension` in `check-provider-modules.mjs`, pins the same thing on every\n * provider the framework distributes and every copy an application installed.\n *\n * The reasoning lives here rather than beside the line because the line is inside a template literal:\n * a comment there is emitted into every vendor module, and a backtick in it ends the template.\n */\nfunction renderBackendModule(\n provider: TransposedProvider,\n operations: readonly TransposedOperation[],\n authored: boolean,\n decisions: CatalogueDecisions | undefined,\n vendorRecord?: CatalogueVendorRecord,\n complianceProfile: ProviderComplianceProfile = resolveCatalogueComplianceProfile(provider.ref, decisions, vendorRecord),\n): string {\n // Computed once: the metadata block and the import line must agree, and rendering the enums\n // without importing them emits a module that reads correctly and does not compile.\n const admissible = renderAdmissibleConnections(decisions);\n const oauth2Block = renderOAuth2Block(provider, envPrefixFor(provider.ref), decisions, vendorRecord);\n const envPrefix = envPrefixFor(provider.ref);\n const secretEnvVar = accountSecretEnvVarFor(provider, envPrefix);\n const header = authHeaderFor(provider.auth.kind);\n const declaresRegistrationSlot = provider.baseUrl === undefined || deploymentConfiguredHostSlots(provider, decisions).length > 0;\n\n return `${GENERATED_BANNER}\n\nimport { ProviderProtocolRuntimeKind, ExternalProvider_ExchangeProtocol_Kind${declaresRegistrationSlot ? ', ExternalProvider_SecretScope' : ''}${admissible === '' ? '' : ', ExternalProvider_Connection_DelegationMode, ExternalProvider_Connection_OwnerScope'}${oauth2Block.includes('ProviderOAuth2EndpointHostAllowanceKind.') || renderBaseUrlHostAllowances(provider, decisions) !== '' ? ', ProviderOAuth2EndpointHostAllowanceKind' : ''}${oauth2Block.includes('ProviderOAuth2IncrementalConsentForm.') ? ', ProviderOAuth2IncrementalConsentForm' : ''} } from '@wildo-ai/external-connectors-models';\nimport { defineProviderMetadata, ProviderCatalogueSource, ${complianceProfileEnumImports(complianceProfile)}ProviderOriginKind, ProviderTier } from '@wildo-ai/saas-models';\nimport type { ProviderOperationExecute } from '@wildo-ai/external-connectors-models';\nimport type { ExternalProvider_ConnectionTarget } from '@wildo-ai/external-connectors-models';\nimport type { BackendProviderModule, BackendProviderRegistryFragment, ProviderRef } from '@wildo-ai/external-connectors-private/backend';\n${authored ? `import { withAuthoredSupplement } from '@wildo-ai/external-connectors-private/backend';\n\nimport { authored as authoredSupplement, authoredClient } from '${AUTHORED_IMPORT_PREFIX}${provider.ref}${AUTHORED_FILE_SUFFIX_IMPORT}';\n` : ''}\n/**\n * \\`${provider.ref}\\` — transposed from ${provider.provenances.map((p) => p.source).join(', ')}.${\n provider.documentedBy === undefined || provider.documentedBy.length === 0\n ? ''\n : `\n * Operations completed from the vendor's own OpenAPI description (#1572), which contributed no operation:\n${provider.documentedBy.map((provenance) => ` * - ${provenance.sourceRef} @ ${provenance.sourceVersion}`).join('\\n')}`\n }\n *\n * Auth shape read from the source: ${provider.auth.kind}.${\n provider.auth.kind === TransposedAuthKind.CUSTOM\n ? `\n * The source declares a vendor-specific credential bag (${(provider.auth.customFields ?? []).join(', ') || 'fields not recovered'});\n * the secrets contract below names ONE key, and completing it is a human decision the transposer\n * refuses to guess.`\n : ''\n }${\n provider.auth.kind === TransposedAuthKind.OAUTH2\n ? `\n * OAuth2 endpoints: authorize ${provider.auth.authUrl ?? '(not recovered)'}, token ${provider.auth.tokenUrl ?? '(not recovered)'}.${\n provider.auth.endpointsWithheldBecause === undefined ? '' : `\n * Endpoints WITHHELD: ${provider.auth.endpointsWithheldBecause}`\n }\n * The dance itself is Wildo's and identical for every vendor; only these endpoints and the scopes differ.`\n : ''\n }\n */\n${authored ? 'const generated' : `export const ${identifierFor(provider.ref)}BackendProvider`}: BackendProviderModule = {\n metadata: defineProviderMetadata({\n ref: ${quote(provider.ref)},\n packageName: ${quote(PACKAGE_NAME)},\n tier: ${renderTier(decisions, provider.ref)},\n vendor: ${quote(resolveCatalogueVendor(provider.ref, decisions))},\n origin: {\n kind: ProviderOriginKind.GENERATED,\n catalogue: {\n source: ProviderCatalogueSource.${provider.provenances[0]?.source ?? 'ACTIVEPIECES'},\n sourceRef: ${quote(provider.provenances[0]?.sourceRef ?? provider.ref)},\n sourceVersion: ${quote(provider.provenances[0]?.sourceVersion ?? 'unknown')},\n },\n },\n }),\n complianceProfile: ${renderComplianceProfile(complianceProfile, ' ')},\n providerCapabilities: [],${admissible}\n secretsContract: {\n${renderSecretsContract(provider, secretEnvVar, envPrefix, decisions)} },\n protocols: [\n {\n // The MEMBER NAME, not the enum value. \\`composeBackendProviders\\` indexes the enum BY this\n // string and compares the result to \\`runtimeContract.kind\\`, so the value (\"rest_api\") makes the\n // lookup \\`undefined\\` and composition refuses the provider. The binding is typed\n // \\`TProtocol extends string\\`, so the wrong one compiled — and every generated provider carried\n // it, unloadable, until the chain was walked instead of doubled.\n protocol: 'REST_API',\n runtimeContract: {\n kind: ProviderProtocolRuntimeKind.REST,\n${operationBaseUrlHostEnvVarName(provider, decisions) !== undefined ? ` // The operation base URL is https://<host>, read from the SAME deployment-configured host the OAuth2\n // token endpoint uses, so a token and the calls spending it can never target different hosts.\n baseUrlHostEnvVarName: ${quote(operationBaseUrlHostEnvVarName(provider, decisions)!)},` : provider.baseUrl === undefined ? ` // No single base URL was recovered from the source; the deployment names it.\n baseUrlEnvVarName: ${quote(`${envPrefix}_BASE_URL`)},${renderBaseUrlConnectionFact(provider, decisions)}` : ` baseUrl: ${quote(emittedLiteralBaseUrl(provider, decisions) ?? provider.baseUrl)},`}${renderBaseUrlHostAllowances(provider, decisions)}\n${oauth2Block} apiKey: { secretRef: ${quote(secretEnvVar)}, headerName: ${quote(header.name)}${header.prefix === undefined ? '' : `, prefix: ${quote(header.prefix)}`} },\n operations: async () => (await import('./operations.generated.js')).catalogue,\n },\n },\n ],\n};\n${authored ? `\n/**\n * The generated module, supplemented by hand. See the authored file for why it exists — the batch\n * regenerates everything above and never touches it.\n */\nexport const ${identifierFor(provider.ref)}BackendProvider: BackendProviderModule = withAuthoredSupplement(generated, authoredSupplement);\n` : ''}\n/**\n * The CONVENTIONAL export a host loads this vendor by.\n *\n * A host resolving \\`${PACKAGE_NAME}/${provider.ref}\\` knows the specifier and nothing else — not\n * which symbol inside is the provider. So the name is fixed for every package, and\n * \\`readBackendProviderFragment\\` refuses a namespace that does not carry it. Without this export the\n * subpath resolves, typechecks, and is unloadable.\n *\n * The key is the module's OWN declared ref, branded at this boundary exactly as\n * \\`EngineBackendProviderRegistryFragment\\` brands its own — \\`ProviderRef\\` is a compile-time facet with\n * no runtime content, and the value being branded is the identity this module already publishes.\n * That is a different act from casting a dynamically imported namespace, which asserts a shape\n * nobody checked; here the shape is the literal above.\n */\nexport const backendProviderFragment: BackendProviderRegistryFragment = {\n modules: new Map([[${identifierFor(provider.ref)}BackendProvider.metadata.ref as ProviderRef, ${identifierFor(provider.ref)}BackendProvider]]),\n};\n\n${renderTypedClient(provider, operations, authored)}`;\n}\n\n/**\n * The subpath module of an entry that ships as an AUGMENTATION of the engine provider owning its ref (#1673).\n *\n * Operations only, by construction: the module declares no protocol, base URL, OAuth2 block, secrets contract,\n * capability or connection, because an augmentation owns none of them (#1672) — its operations run on the engine\n * provider's base URL with the engine provider's credential. The entry's own recovered auth is therefore not emitted\n * at all, which keeps the reason engine refs were once withheld intact: there is still exactly one owner of the ref, and\n * installing this package still changes nothing until an application names `@wildo-ai/providers` under\n * `providers.augmentations.<ref>`.\n *\n * `operationIds` is sorted with `localeCompare`, the order `defineProviderAugmentation` checks, and the loader is the\n * same lazy catalogue a provider module points at — the runtime refuses a loader that delivers an id not named here.\n */\nfunction renderAugmentationModule(provider: TransposedProvider, operations: readonly TransposedOperation[]): string {\n const operationIds = [...operations.map((operation) => operation.operationId)].sort((left, right) => left.localeCompare(right));\n const provenance = provider.provenances[0];\n return `${GENERATED_BANNER}\n\nimport type { ExternalProvider_ConnectionTarget, ProviderOperationExecute } from '@wildo-ai/external-connectors-models';\nimport { defineProviderAugmentation } from '@wildo-ai/external-connectors-private/backend-runtime';\nimport { ProviderCatalogueSource, ProviderOriginKind, ProviderTier } from '@wildo-ai/saas-models';\n\n/**\n * \\`${provider.ref}\\` — transposed from ${provider.provenances.map((p) => p.source).join(', ')}, and shipped as an AUGMENTATION of\n * the engine's own \\`${provider.ref}\\` provider (#1673): the engine owns the ref, so this adds operations to it and owns\n * nothing else. They run on the engine provider's base URL with its credential, and only once an application names\n * \\`${PACKAGE_NAME}\\` under \\`providers.augmentations.${provider.ref}\\` in its saas config.\n */\nexport const providerAugmentations = new Map([[\n ${quote(provider.ref)},\n defineProviderAugmentation({\n augments: ${quote(provider.ref)},\n metadata: {\n packageName: ${quote(PACKAGE_NAME)},\n tier: ProviderTier.CATALOGUE,\n origin: {\n kind: ProviderOriginKind.GENERATED,\n catalogue: {\n source: ProviderCatalogueSource.${provenance?.source ?? 'ACTIVEPIECES'},\n sourceRef: ${quote(provenance?.sourceRef ?? provider.ref)},\n sourceVersion: ${quote(provenance?.sourceVersion ?? 'unknown')},\n },\n },\n },\n operationIds: [${operationIds.map((id) => quote(id)).join(', ')}],\n reason: ${quote(`Operations the open integration catalogues describe for ${provider.ref}, added to the engine's ${provider.ref} provider.`)},\n operations: async () => (await import('./operations.generated.js')).catalogue,\n }),\n]]);\n\n${renderTypedClient(provider, operations, false)}`;\n}\n\n/**\n * The typed client — R3, bought with a TYPE rather than a dependency.\n *\n * `slack.slackGetChannelInfo({ channel: 'C1' })`, with the compiler checking the parameters and no\n * runtime import of the engine: the factory takes the executor as an argument, so an application\n * wires its own. Importing the executor here would put the whole backend into the module graph of\n * anything touching a vendor — the exact weight #378 removed.\n *\n * ## Only RESOLVED operations appear\n *\n * A pending operation has no method and no path. Putting one on the client would offer a method that\n * cannot execute, which is worse than an absent one: the absent method sends a caller to look, and\n * the present one sends them to file a bug against the vendor. The emitter passes only resolved\n * operations here, and the catalogue keyed beside it contains exactly the same set.\n *\n * ## The name comes from the FINAL operation id\n *\n * Ids are already disambiguated upstream — method, then path tail, then ordinal — so deriving a name\n * from anything else re-collides the cases that pass already resolved (twenty of them in `discord`).\n * The camelCase name is ergonomics; the id travelling inside the call is identity, and the two are\n * derived one from the other so they cannot drift.\n *\n * ## Inputs are typed CLOSED, while the runtime is loose\n *\n * The input type names exactly the fields the request needs. The `inputSchema` beside it is a\n * `looseObject`, so a vendor field no catalogue mentioned is still ACCEPTED at runtime and a caller\n * who needs one passes it through a cast. Widening the type with an index signature instead would\n * make every typo compile, which is the one thing a typed client exists to prevent.\n *\n * ## The argument covers the WIRE, not only what the catalogue asked its user for\n *\n * Input fields and parameters are different populations: an input field is what the SOURCE CATALOGUE\n * asked its user for, a parameter is what the REQUEST places on the wire. A path token is routinely\n * the second without the first — an unsubscribe reads `/webhooks/{webhookId}`, and the id is one the\n * caller already holds from the subscribe rather than something a form asked for. A client typed from\n * input fields as the source left them therefore REFUSED to offer the value the executor demands.\n *\n * `declareWhatTheWireNeeds` folds the wire's parameters into `inputFields` before anything is\n * rendered, under the key `compileProviderOperationRequest` reads (`from ?? name`), so the argument\n * type and the `inputSchema` beside it stay two renderings of one set rather than two lists that can\n * disagree.\n *\n * ## Outputs are typed from the SAME shape the runtime parses with, every member optional (#367)\n *\n * An operation whose source described its answer carries an `outputShape`, rendered into the\n * `outputSchema` the executor parses the vendor's body through. The method's return type is rendered\n * from that same shape by {@link typeScriptForShape}, so the type a caller reads and the schema the\n * answer passed are two renderings of one description. Every member is optional in both — `renderShape`\n * explains why a source's required-ness is not a statement about the vendor — and the whole value may\n * be `undefined`, because the rendered schema is optional at the top too.\n *\n * The `as` is not an assertion nobody checked: `forExecution` resolves to the executor's `output`,\n * which is the body at `resultPath` after `outputSchema` accepted it. An operation with no shape keeps\n * `Promise<unknown>`, which is the honest answer when nothing described the response.\n */\nfunction renderTypedClient(provider: TransposedProvider, operations: readonly TransposedOperation[], authored: boolean): string {\n const usedNames = new Set<string>();\n const methods = operations\n .map((operation) => {\n const name = uniqueMethodName(operation.operationId, usedNames);\n const fields = callerSuppliedFields(operation)\n .map((field) => `${quote(field.key)}${field.required ? '' : '?'}: ${field.type}`)\n .join('; ');\n const shape = fields.length === 0 ? 'Record<string, never>' : `{ ${fields} }`;\n const summary = (operation.summary ?? operation.operationId).replace(/\\*\\//g, '*\\\\/');\n const output = operation.outputShape === undefined ? 'unknown' : `${typeScriptForShape(operation.outputShape)} | undefined`;\n const cast = operation.outputShape === undefined ? '' : ` as Promise<${output}>`;\n return ` /** ${summary} */\n ${name}: (input: ${shape}, connection?: ExternalProvider_ConnectionTarget): Promise<${output}> =>\n execute(${quote(provider.ref)}, ${quote(operation.operationId)}, input, connection)${cast},`;\n })\n .join('\\n');\n\n return `/**\n * Typed access to ${provider.ref}'s ${operations.length} executable operation(s).\n *\n * Takes the executor rather than importing one, so this package carries no runtime dependency on the\n * engine. Operations awaiting an endpoint are absent by construction.${authored ? `\n *\n * The authored fragment is spread LAST, so a hand-written method wins a name collision with a\n * generated one — the author saw both and chose.` : ''}\n */\nexport function create${identifierFor(provider.ref)}Client(execute: ProviderOperationExecute) {\n return {\n${methods}${authored ? `\n ...authoredClient(execute),` : ''}\n };\n}\n`;\n}\n\n\n/** One member of the typed client's argument: the key the executor reads, and how it is typed. */\ninterface CallerSuppliedField {\n readonly key: string;\n readonly required: boolean;\n readonly type: string;\n}\n\n/**\n * The fields a CALLER supplies for one operation.\n *\n * A projection of `inputFields` and nothing else, which is the point: `declareWhatTheWireNeeds` has\n * already folded every wire parameter into that list, so the client's argument type and the\n * `inputSchema` beside it are two renderings of ONE set. An earlier revision computed the union here\n * as well, and that was two mechanisms for one invariant — the second silently doing nothing, and a\n * pin written against it passing for the wrong reason.\n *\n * The one thing this must know that a name cannot tell it: which fields ride in a PATH. A credential\n * is resolved and never asked for, but nothing except the caller can fill a path token, so a token\n * whose name merely SPELLS like a credential must still be offered — `simplybookme`'s\n * `/admin/clients/{clientId}` is a client RECORD's id, and filtering it by name shipped a method\n * whose URL kept a literal hole. Requiredness comes from the same authority: the executor refuses an\n * empty path token whatever the declaration says.\n */\nfunction callerSuppliedFields(operation: TransposedOperation): readonly CallerSuppliedField[] {\n return callerSuppliedInputFields(operation).map((field) => ({\n key: field.name,\n required: field.required,\n type: typeScriptFor(field.kind),\n }));\n}\n\n/**\n * THE set — the one both the typed client and the runtime `inputSchema` render.\n *\n * Extracted 2026-09-08, because the sentence above (\"two renderings of ONE set\") was describing an\n * invariant the code did not hold. `callerSuppliedFields` filtered; `renderInputSchema` walked\n * `operation.inputFields` raw. So every generated module shipped a typed client that WITHHELD the\n * credential — correctly, it is resolved from the secrets contract — beside a Zod schema that\n * REQUIRED it, and the executor validates against the schema.\n *\n * The consequence is the worst arrangement available: the type-safe door is the one that fails. An\n * application calling `client.salesforceGetDashboard({ dashboardId })` compiles, because the client's\n * argument type does not mention `accessToken`, and is then refused at execution with\n * `INPUT_REJECTED: accessToken — Required`. Measured across the catalogue before the fix: **1,668 of\n * 5,675 operations (29.4%), across 151 of 689 vendors**, could not be called at all through their own\n * client.\n *\n * Found by driving one operation to a socket for the first time — the ETL-binding proof. No\n * typecheck could see it (the two artifacts are a `.ts` type and a Zod value), and no test did,\n * because every existing pin either read the client's TEXT or executed a vendor whose auth happens to\n * carry no input field at all.\n *\n * The PATH exemption is carried here, once, and it is not optional: nothing except the caller can\n * fill a path token, so a token that merely SPELLS like a credential must still be offered and must\n * be required. `simplybookme`'s `/admin/clients/{clientId}` is a client RECORD's id.\n */\nfunction callerSuppliedInputFields(\n operation: TransposedOperation,\n): readonly (TransposedInputField & { readonly required: boolean })[] {\n const pathKeys = new Set(\n operation.parameters\n .filter((parameter) => parameter.in === TransposedParameterLocation.PATH)\n .map((parameter) => parameter.from ?? parameter.name),\n );\n\n return operation.inputFields\n .filter((field) => pathKeys.has(field.name) || !callerSuppliesNoCredential(field.name))\n .map((field) => ({ ...field, required: field.required === true || pathKeys.has(field.name) }));\n}\n\n/**\n * Input names a CALLER never supplies, because Wildo supplies them.\n *\n * A source catalogue declares the credential alongside the operation's real parameters — a piece's\n * props carry `accessToken` and `botToken` beside `channel` — because in that catalogue the user\n * fills both in. In Wildo they are different things entirely: the credential is resolved from the\n * provider's secrets contract at execution, and the operation's parameters come from the caller. A\n * typed client that asked for both would invite an application to pass a token by hand, which is the\n * one habit the whole secrets contract exists to remove.\n *\n * **A PATH position is exempt, and the exemption is not optional** — see `callerSuppliedFields` and\n * `declareWhatTheWireNeeds`, which both carry it. Nothing except the caller can fill a path token, so\n * withholding one by NAME ships a method whose URL keeps a literal hole. `simplybookme`\n * `/admin/clients/{clientId}` is a client RECORD's id that merely spells itself like OAuth's, and a\n * name-based filter cannot see through that coincidence. Do not unify the two positions: the same\n * spelling in a QUERY really is the credential, which is why they must be decided separately.\n *\n * Matched on WHOLE names, and the omissions are deliberate. Bare `token` and `secret` are not\n * here: a vendor legitimately uses `token` for pagination, and dropping a real parameter to tidy the\n * type would make a call silently incomplete — worse than an extra field a caller can ignore.\n *\n * Compared IGNORING CASE (#2707), through {@link callerSuppliesNoCredential}, as the engine compares a declared query\n * parameter with a query-placed credential: `API_KEY` is the credential as much as `api_key` is, and an exact comparison\n * would offer it to the caller as an ordinary input.\n */\nconst CALLER_SUPPLIES_NO_CREDENTIAL = new Set([\n 'authMethod', 'auth_method',\n 'accessToken', 'access_token',\n // `authToken` joined on 2026-09-08, after the first sweep that could see the population: it is\n // unambiguous in a way bare `token` is not — nothing paginates with an `authToken` — and it was\n // Twilio's credential, sitting in the input schema of every one of its operations.\n 'authToken', 'auth_token',\n 'botToken', 'bot_token',\n 'apiKey', 'api_key',\n 'bearerToken', 'bearer_token',\n 'clientId', 'client_id',\n 'clientSecret', 'client_secret',\n 'password',\n 'refreshToken', 'refresh_token',\n].map((name) => name.toLowerCase()));\n\n/** Whether an input name is one Wildo supplies, ignoring case. See {@link CALLER_SUPPLIES_NO_CREDENTIAL}. */\nfunction callerSuppliesNoCredential(name: string): boolean {\n return CALLER_SUPPLIES_NO_CREDENTIAL.has(name.toLowerCase());\n}\n\n/** The source's declared kind, as the type a caller writes against. */\n/**\n * The TypeScript rendering of a described RESPONSE shape — the type twin of {@link renderShape}.\n *\n * Every object member is optional, exactly as the rendered `outputSchema` makes it. A member the\n * schema accepts as absent but the type promised as present would compile a caller that crashes on\n * the first vendor that omits it.\n */\nfunction typeScriptForShape(shape: TransposedShape): string {\n if (shape.kind === TransposedInputKind.OBJECT && shape.fields !== undefined && Object.keys(shape.fields).length > 0) {\n const members = Object.entries(shape.fields)\n .map(([name, member]) => `${quote(name)}?: ${typeScriptForShape(member)}`)\n .join('; ');\n return `{ ${members} }`;\n }\n if (shape.kind === TransposedInputKind.ARRAY) {\n return shape.items === undefined ? 'readonly unknown[]' : `readonly (${typeScriptForShape(shape.items)})[]`;\n }\n return typeScriptFor(shape.kind);\n}\n\nfunction typeScriptFor(kind: TransposedInputKind): string {\n switch (kind) {\n case TransposedInputKind.STRING:\n return 'string';\n case TransposedInputKind.NUMBER:\n return 'number';\n case TransposedInputKind.BOOLEAN:\n return 'boolean';\n case TransposedInputKind.ARRAY:\n return 'readonly unknown[]';\n case TransposedInputKind.OBJECT:\n return 'Record<string, unknown>';\n case TransposedInputKind.UNKNOWN:\n // The source declared the field and not its kind. `unknown` forces the caller to be explicit\n // rather than quietly accepting whatever they had — a guess here would be a lie with a type.\n return 'unknown';\n case TransposedInputKind.WIRE_SCALAR:\n return 'string | number | boolean';\n case TransposedInputKind.WIRE_SCALAR_OR_LIST:\n return 'string | number | boolean | readonly (string | number | boolean)[]';\n default: {\n const exhaustive: never = kind;\n return exhaustive;\n }\n }\n}\n\n/**\n * `slack-find-user-by-email` → `slackFindUserByEmail`; `trigger.new-lead.poll` → `triggerNewLeadPoll`.\n *\n * Collisions take an ordinal rather than overwriting each other: two methods with one name silently\n * drops an operation the catalogue shows, which is the same defect the operation-id uniqueness pass\n * exists for one layer down.\n */\nfunction uniqueMethodName(operationId: string, taken: Set<string>): string {\n const parts = operationId.split(/[^a-zA-Z0-9]+/).filter((part) => part.length > 0);\n const base = parts\n .map((part, index) => (index === 0 ? part[0]!.toLowerCase() + part.slice(1) : part[0]!.toUpperCase() + part.slice(1)))\n .join('');\n const safe = /^[a-zA-Z_]/.test(base) ? base : `operation${base}`;\n let candidate = safe;\n let ordinal = 2;\n while (taken.has(candidate)) {\n candidate = `${safe}${ordinal}`;\n ordinal += 1;\n }\n taken.add(candidate);\n return candidate;\n}\n\n/**\n * The `./companion` barrel — how discovery learns that 699 vendors exist without loading one.\n *\n * A contribution is a values-free DECLARATION: the ref, the identity, the protocols, the runtime\n * targets and the shape of the secrets a deployment must supply. The CLI reads them to build the\n * lockfile and the generated catalogue types; the companion reads them to know what an application\n * may declare. None of it loads a provider's runtime module, which is the point — the whole\n * catalogue is discoverable at a cost that does not grow with what it contains.\n *\n * `runtimeImportPath` is each vendor's SUBPATH (`@wildo-ai/providers/slack`), and that is what makes\n * the one-package shape work with on-demand loading: discovery names 699 reachable entries, and a\n * host imports exactly the one an application declared.\n *\n * `runtimeTargets` is `backend` only. These are REST providers reached by an application's own\n * services; nothing here belongs in the companion, whose LLM-provider exception exists for\n * AI-assisted development and has no analogue in a vendor catalogue.\n */\n/**\n * The token-endpoint hosts a companion contribution carries (#1725), so `wildo config sync` can refuse a shared\n * connection whose member names another authorization server without loading the member's module. Derived with\n * the SAME function the engine companion uses, from the SAME endpoint and allowances `renderOAuth2Block` emits —\n * empty for a vendor that emits no OAuth2 block.\n */\nfunction renderContributionTokenEndpointHosts(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): string {\n if (provider.auth.kind !== TransposedAuthKind.OAUTH2 || provider.auth.authUrl === undefined || provider.auth.tokenUrl === undefined) return '';\n const { allowances } = resolveOAuth2EndpointHostAllowances(provider, decisions);\n const hosts = describeProviderOAuth2TokenEndpointHosts({ tokenUrl: provider.auth.tokenUrl, endpointHostAllowances: Object.fromEntries(allowances) });\n return `\n oauth2TokenEndpointHosts: { exact: [${hosts.exact.map((host) => quote(host)).join(', ')}], suffixes: [${hosts.suffixes.map((suffix) => quote(suffix)).join(', ')}], undeterminable: ${hosts.undeterminable} },\n oauth2ClientSlotSlugs: [\"clientId\", \"clientSecret\"],`;\n}\n\n/**\n * `protocols` carries the enum MEMBER NAME, not its value.\n *\n * That is what an application authors — `protocols: ['REST_API']` — and what every engine-shipped\n * contribution declares, and discovery VALIDATES the application's scope against this list. Emitting\n * the enum value made `wildo config sync` refuse with *\"declares protocol 'REST_API' but discovery\n * does not report that protocol\"*, which reads like a missing binding and is a spelling\n * disagreement.\n *\n * The THIRD field in this emitter where the convention is the name and the value was written\n * instead, after the protocol binding and the loader fragment. The convention is stated nowhere a\n * generator can read, and every one of these types accepts a bare string — so each instance had to be\n * found by running the real thing (#397).\n */\nfunction renderCompanionExports(\n providers: readonly TransposedProvider[],\n decisionsByRef: ReadonlyMap<string, CatalogueDecisions>,\n augmenting: readonly { readonly provider: TransposedProvider; readonly operations: readonly TransposedOperation[] }[] = [],\n complianceProfilesByRef: ReadonlyMap<string, ProviderComplianceProfile> = new Map(),\n frontendFacets: readonly AuthoredFrontendFacet[] = [],\n): string {\n const facetCompanion = renderFrontendFacetCompanion(frontendFacets);\n const profileOf = (provider: TransposedProvider): ProviderComplianceProfile =>\n complianceProfilesByRef.get(provider.ref) ?? resolveCatalogueComplianceProfile(provider.ref, decisionsByRef.get(provider.ref), undefined);\n const enumImports = new Set(providers.flatMap((provider) => complianceProfileEnumNames(profileOf(provider))));\n const entries = [...providers]\n .sort((left, right) => left.ref.localeCompare(right.ref))\n .map((provider) => {\n const envPrefix = envPrefixFor(provider.ref);\n return ` {\n ref: ${quote(provider.ref)},\n identity: {\n packageName: ${quote(PACKAGE_NAME)},\n tier: ${renderTier(decisionsByRef.get(provider.ref), provider.ref)},\n vendor: ${quote(resolveCatalogueVendor(provider.ref, decisionsByRef.get(provider.ref)))},\n origin: {\n kind: ProviderOriginKind.GENERATED,\n catalogue: {\n source: ProviderCatalogueSource.${provider.provenances[0]?.source ?? 'ACTIVEPIECES'},\n sourceRef: ${quote(provider.provenances[0]?.sourceRef ?? provider.ref)},\n sourceVersion: ${quote(provider.provenances[0]?.sourceVersion ?? 'unknown')},\n },\n },\n },\n runtimeImportPath: ${quote(`${PACKAGE_NAME}/${provider.ref}`)},\n runtimeTargets: [{ kind: 'backend' }],\n engineCapabilities: [],\n providerCapabilities: [],\n protocols: ['REST_API'],\n secretsContractShape: [\n${renderContributionSecretShape(provider, envPrefix, decisionsByRef.get(provider.ref))} ],${renderContributionTokenEndpointHosts(provider, decisionsByRef.get(provider.ref))}\n complianceProfile: ${renderComplianceProfile(profileOf(provider), ' ')},\n },`;\n })\n .join('\\n');\n\n return `${GENERATED_BANNER}\n\nimport { ExternalProvider_ExchangeProtocol_Kind } from '@wildo-ai/external-connectors-models';\nimport { ProviderCatalogueSource, ${[...enumImports].sort().map((name) => `${name}, `).join('')}ProviderOriginKind, ProviderTier } from '@wildo-ai/saas-models';\nimport type { RuntimeOwnerCompanionExports } from '@wildo-ai/saas-models/companion';${facetCompanion.imports}\n\n/** ${providers.length} vendors, declared without loading any of them. */\nconst companionExports: RuntimeOwnerCompanionExports = {\n providerContributions: [\n${entries}${facetCompanion.contributions}\n ],${renderCompanionAugmentations(augmenting)}\n};\n\nexport default companionExports;\n`;\n}\n\n/**\n * The companion half of every augmentation this package ships (#1673): the DATA `wildo config sync` reads to check an\n * application's opt-in, refuse an operation-id collision and record the package, without loading any vendor code.\n * Empty — and absent from the barrel — while no engine-owned entry can be augmented, so a package that augments\n * nothing is byte-identical to one written before augmentations existed.\n */\nfunction renderCompanionAugmentations(\n augmenting: readonly { readonly provider: TransposedProvider; readonly operations: readonly TransposedOperation[] }[],\n): string {\n if (augmenting.length === 0) return '';\n const records = [...augmenting]\n .sort((left, right) => left.provider.ref.localeCompare(right.provider.ref))\n .map(({ provider, operations }) => {\n const provenance = provider.provenances[0];\n const operationIds = [...operations.map((operation) => operation.operationId)].sort((left, right) => left.localeCompare(right));\n return ` {\n augments: ${quote(provider.ref)},\n packageName: ${quote(PACKAGE_NAME)},\n tier: ProviderTier.CATALOGUE,\n origin: {\n kind: ProviderOriginKind.GENERATED,\n catalogue: {\n source: ProviderCatalogueSource.${provenance?.source ?? 'ACTIVEPIECES'},\n sourceRef: ${quote(provenance?.sourceRef ?? provider.ref)},\n sourceVersion: ${quote(provenance?.sourceVersion ?? 'unknown')},\n },\n },\n runtimeImportPath: ${quote(`${PACKAGE_NAME}/${provider.ref}`)},\n operationIds: [${operationIds.map((id) => quote(id)).join(', ')}],\n requiredScopes: [],\n },`;\n })\n .join('\\n');\n return `\n // Operations for providers the ENGINE owns (#1673): inert until an application opts in under providers.augmentations.\n providerAugmentations: [\n${records}\n ],`;\n}\n\n/**\n * The same secrets the module declares, in the discovery contract's own shape.\n *\n * It must AGREE with `renderSecretsContract` — discovery's whole job is to say what a deployment\n * owes before anything is loaded, and a contribution that disagreed with the module would be a\n * lockfile built on a promise the runtime does not keep. Sorted by slug, because the schema's\n * `superRefine` requires it and an unsorted list fails discovery at parse rather than at use.\n */\nfunction renderContributionSecretShape(provider: TransposedProvider, envPrefix: string, decisions: CatalogueDecisions | undefined): string {\n type Entry = { readonly slug: string; readonly envVarName: string; readonly required: boolean; readonly description: string };\n const render = ({ slug, envVarName, required, description }: Entry): string => ` {\n slug: ${quote(slug)},\n envVarName: ${quote(envVarName)},\n required: ${required},\n description: ${quote(description)},\n },\n`;\n const entries: Entry[] = [];\n if (provider.baseUrl === undefined && operationBaseUrlHostEnvVarName(provider, decisions) === undefined) {\n entries.push({ slug: 'baseUrl', envVarName: `${envPrefix}_BASE_URL`, required: true, description: baseUrlSlotDescription(provider, decisions) });\n }\n if (provider.auth.kind !== TransposedAuthKind.OAUTH2) {\n entries.push({ slug: 'apiKey', envVarName: accountSecretEnvVarFor(provider, envPrefix), required: true, description: `Credential for ${provider.ref}, transposed as ${provider.auth.kind}.` });\n } else {\n entries.push(\n { slug: 'accessToken', envVarName: accountSecretEnvVarFor(provider, envPrefix), required: false, description: `Access token for ${provider.ref}. Minted by the OAuth2 exchange, not authored — set it only if ${provider.ref} issues a long-lived token.` },\n { slug: 'clientId', envVarName: `${envPrefix}_CLIENT_ID`, required: true, description: `OAuth2 client id for the application's ${provider.ref} registration.` },\n { slug: 'clientSecret', envVarName: `${envPrefix}_CLIENT_SECRET`, required: true, description: `OAuth2 client secret for the application's ${provider.ref} registration.` },\n ...deploymentConfiguredHostSlots(provider, decisions).map((slot) => ({ slug: slot.slug, envVarName: slot.envVarName, required: true, description: slot.description })),\n );\n }\n // Sorted by slug with `localeCompare`, the exact comparison `ProviderSecretContractShapeSchema.superRefine`\n // enforces — so `baseUrl` sits after `apiKey`/`accessToken`/`apiHost` and before `clientId`.\n return entries.sort((left, right) => left.slug.localeCompare(right.slug)).map(render).join('');\n}\n\n/**\n * The BASE URL slot, for a vendor whose base URL the deployment names.\n *\n * ## Why a base URL is in the SECRETS contract, which is not a contradiction\n *\n * `secretsContract` is the provider's declared ENVIRONMENT surface, not a list of things that are\n * secret. The env builder says so where it matters — \"a provider whose configuration is a hostname\n * or a database name puts THAT in its contract too: immudb and odoo both do\" — and immudb declares\n * `host` and `port` there for exactly this reason.\n *\n * It has to, because that contract is the ALLOW-LIST. `filterProviderEnvToScope` admits a\n * `providerEnv` key only when some declared slot names it, and drops the rest. A base URL declared\n * ONLY as `baseUrlEnvVarName` on the runtime contract is named by nothing the builder reads, so it\n * was stripped from every runtime — measured 2026-09-10, `ASANA_BASE_URL` was authored in the\n * application's secrets and absent from the generated `.env`, while `ASANA_CLIENT_ID` and\n * `ASANA_CLIENT_SECRET` beside it came through. 465 of the 684 generated vendors declare\n * `baseUrlEnvVarName` and NONE of them declared the matching slot, so this is the whole population:\n * a connection could be minted and its operations then had no base URL to call.\n *\n * ## REGISTRATION, declared explicitly, because the derivation cannot see this one\n *\n * `getProviderSecretScope` falls back to REGISTRATION only for the two refs the OAuth2 block names,\n * and CREDENTIAL for everything else. A base URL is neither, so an undeclared slot would classify as\n * CREDENTIAL — and the `scope` field's own JSDoc names that consequence: \"a registration it cannot\n * see is one a tenant could store as if it were their own credential\". A tenant-supplied base URL is\n * the address every one of that provider's calls is sent to, so it is the last thing that may be\n * per-tenant credential material. Declared REGISTRATION, the connect leg refuses it with\n * `SECRET_SLUG_NOT_A_CREDENTIAL` and the catalogue reports it under `missingRegistration`, where an\n * operator can see what is owed.\n *\n * `required: true` is the honest statement — such a provider cannot execute an operation without it\n * — and does not gate boot: `clientId` and `clientSecret` are required on all 684 vendors and most\n * deployments configure none of them. Connectability is unaffected too; `connectabilityBlocker`\n * reads the two OAuth2 refs and nothing else.\n *\n * Emitted only when no literal `baseUrl` was recovered, which is the same condition that emits\n * `baseUrlEnvVarName` — the two are one decision and must not drift apart.\n */\nfunction renderBaseUrlSecretSlot(provider: TransposedProvider, envPrefix: string, decisions: CatalogueDecisions | undefined): string {\n // A base URL derived from a deployment-configured host needs no slot of its own: that host is declared.\n if (provider.baseUrl !== undefined || operationBaseUrlHostEnvVarName(provider, decisions) !== undefined) return '';\n return ` baseUrl: {\n envVarName: ${quote(`${envPrefix}_BASE_URL`)},\n required: true,\n scope: ExternalProvider_SecretScope.REGISTRATION,\n description: ${quote(baseUrlSlotDescription(provider, decisions))},\n },\n`;\n}\n\n/** One wording, so the module and the discovery contribution cannot describe the slot differently. */\nfunction baseUrlSlotDescription(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): string {\n const { baseUrlConnectionFact } = resolveReportedAccountFacts(provider, decisions);\n const connected = baseUrlConnectionFact === undefined\n ? ''\n : ` A CONNECTED account dials the origin ${provider.ref} reports for it in its token answer (${baseUrlConnectionFact}); this value serves the application's own account.`;\n return `API base URL for ${provider.ref}. No single base URL was recovered from the source catalogue, so the deployment names it; without it this provider's operations have no address to call.${connected}`;\n}\n\n/**\n * What the ACCOUNT slot is called — and for an OAuth2 vendor it is not an API key.\n *\n * Every vendor used to get `<PREFIX>_API_KEY`, including the 99 whose credential is a MINTED OAuth2\n * access token that no operator ever types. That name is the row's storage key and it is what a\n * person sees on their connected-accounts card, so Wonder Todos showed a delegated Asana grant as\n * `asana · ASANA_API_KEY` — and the first question anybody asked was \"why apikey? we did it with\n * oauth\". The name was answering wrongly, and a display-side relabel would have left the storage key\n * and the environment surface still saying \"API key\".\n *\n * The slot's AUTHORING slug already made the distinction — `accessToken` for OAuth2, `apiKey`\n * otherwise (see {@link renderSecretsContract}) — so this only brings the env-var name into\n * agreement with the slug beside it.\n *\n * Safe to rename for exactly the reason the slot exists: an OAuth2 vendor's account slot is\n * `required: false` and documented as \"minted by the OAuth2 exchange, not authored\", so no\n * deployment sets it and no operator instruction changes. A credential already stored under the old\n * name is keyed by it, so a tenant that connected before this reconnects once.\n */\nfunction accountSecretEnvVarFor(provider: TransposedProvider, envPrefix: string): string {\n return provider.auth.kind === TransposedAuthKind.OAUTH2\n ? `${envPrefix}_ACCESS_TOKEN`\n : `${envPrefix}_API_KEY`;\n}\n\n/** The env-var prefix a vendor's credential takes. One derivation, used by both emitted files. */\nfunction envPrefixFor(ref: string): string {\n return ref.replace(/[^a-zA-Z0-9]+/g, '_').toUpperCase();\n}\n\n/**\n * What a deployment must actually supply, which differs by credential model.\n *\n * For a pasted credential — an API key, a basic password — that is one secret and the runtime reads\n * it directly. For OAuth2 it is the APPLICATION REGISTRATION (client id and client secret), which an\n * operator genuinely does paste, plus a slot for the ACCESS TOKEN that an authorization exchange\n * mints and nobody types. Declaring the token slot as `required: false` is the honest statement:\n * absent is the normal state until an account is connected, and demanding it at boot would make\n * every OAuth2 provider un-deployable.\n */\n/**\n * The REGISTRATION slot each DEPLOYMENT_CONFIGURED host declares (#992), slug = placeholder name.\n *\n * Declared for the reason the base URL is: the provider's secrets contract is the ALLOW-LIST the runtime\n * environment builder admits a `providerEnv` key through, so a host named only on the OAuth2 allowance\n * would be stripped and every connect would report it unset. REGISTRATION, because a tenant-supplied value\n * would choose where the application's client secret is POSTed; `required: true`, because the provider\n * cannot be connected without it — the catalogue then names it under `missingRegistration`.\n */\nfunction deploymentConfiguredHostSlots(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n): readonly { readonly slug: string; readonly envVarName: string; readonly description: string }[] {\n if (provider.auth.kind !== TransposedAuthKind.OAUTH2) return [];\n const { allowances } = resolveOAuth2EndpointHostAllowances(provider, decisions);\n return [...allowances.entries()]\n .filter((entry): entry is [string, Extract<ProviderOAuth2EndpointHostAllowance, { kind: ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED }>] =>\n entry[1].kind === ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED)\n .map(([name, allowance]) => ({\n slug: name,\n envVarName: allowance.envVarName,\n description: `The ${provider.ref} host the OAuth2 '${name}' placeholder is filled with, named by this deployment. `\n + 'A bare host name (no scheme). Never supplied by a person connecting an account.',\n }));\n}\n\nfunction renderSecretsContract(provider: TransposedProvider, secretEnvVar: string, envPrefix: string, decisions: CatalogueDecisions | undefined): string {\n if (provider.auth.kind !== TransposedAuthKind.OAUTH2) {\n return ` apiKey: {\n envVarName: ${quote(secretEnvVar)},\n required: true,\n description: ${quote(`Credential for ${provider.ref}, transposed as ${provider.auth.kind}.`)},\n },\n` + renderBaseUrlSecretSlot(provider, envPrefix, decisions);\n }\n return ` clientId: {\n envVarName: ${quote(`${envPrefix}_CLIENT_ID`)},\n required: true,\n description: ${quote(`OAuth2 client id for the application's ${provider.ref} registration.`)},\n },\n clientSecret: {\n envVarName: ${quote(`${envPrefix}_CLIENT_SECRET`)},\n required: true,\n description: ${quote(`OAuth2 client secret for the application's ${provider.ref} registration.`)},\n },\n accessToken: {\n envVarName: ${quote(secretEnvVar)},\n required: false,\n description: ${quote(`Access token for ${provider.ref}. Minted by the OAuth2 exchange, not authored — set it only if ${provider.ref} issues a long-lived token.`)},\n },\n` + renderBaseUrlSecretSlot(provider, envPrefix, decisions)\n + deploymentConfiguredHostSlots(provider, decisions).map((slot) => ` ${slot.slug}: {\n envVarName: ${quote(slot.envVarName)},\n required: true,\n scope: ExternalProvider_SecretScope.REGISTRATION,\n // The runtime reads a deployment-configured host ONLY through a slot carrying this mark (#992 review L3).\n holdsDeploymentHost: true,\n description: ${quote(slot.description)},\n },\n`).join('');\n}\n\n/**\n * The OAuth2 declaration, emitted as DATA rather than as the JSDoc comment it used to be.\n *\n * These endpoints and scopes exist nowhere in this repository except the catalogue that was read.\n * Extracting them and keeping them in prose meant the delegated-authorization lane would re-derive\n * 131 vendors' worth of endpoints by hand.\n */\n/**\n * The incremental-consent behaviour an OAuth2 ref inherits from its VENDOR's record, and the record entries that could\n * not apply (#1673, following #1671).\n *\n * #1671 taught the connection to ask for one missing scope and keep what was granted before — but only for a provider\n * whose OAuth2 block declares `incrementalConsent`, and the catalogue declared it nowhere, so a re-authorization for a\n * generated Microsoft or Google ref restated the whole grant. The behaviour is the AUTHORIZATION SERVER's, which is why\n * it is written once per vendor (`catalogue-record/vendors/<vendor>.json`) rather than once per ref.\n *\n * It applies to a ref only when every host the ref's token endpoint can resolve to — computed by the SAME function the\n * companion contribution uses — is one the vendor record names as its authorization server. Anything else is\n * UNMATCHED rather than silently skipped: a Microsoft ref whose token endpoint is not a Microsoft login host is either a\n * wrong `vendor` decision or a source defect, and both want a human. `restatedScopes` are kept only as far as the ref\n * declares them (the provider contract requires it, and a ref that never asked for `offline_access` at connect should\n * not start at re-authorization).\n */\nexport function resolveVendorIncrementalConsent(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n vendorRecord: CatalogueVendorRecord | undefined,\n): { readonly consent?: { readonly form: ProviderOAuth2IncrementalConsentForm; readonly restatedScopes: readonly string[] }; readonly unmatched: readonly UnmatchedRecordEntry[] } {\n const declared = vendorRecord?.oauth2IncrementalConsent;\n if (declared === undefined) return { unmatched: [] };\n if (provider.auth.kind !== TransposedAuthKind.OAUTH2 || provider.auth.authUrl === undefined || provider.auth.tokenUrl === undefined) return { unmatched: [] };\n const form = (Object.values(ProviderOAuth2IncrementalConsentForm) as string[]).includes(declared.form)\n ? declared.form as ProviderOAuth2IncrementalConsentForm\n : undefined;\n if (form === undefined) {\n throw new Error(`vendors/${vendorRecord!.vendor}.json oauth2IncrementalConsent.form '${declared.form}' is not one of ${Object.values(ProviderOAuth2IncrementalConsentForm).join(', ')}.`);\n }\n const { allowances } = resolveOAuth2EndpointHostAllowances(provider, decisions);\n const hosts = describeProviderOAuth2TokenEndpointHosts({ tokenUrl: provider.auth.tokenUrl, endpointHostAllowances: Object.fromEntries(allowances) });\n const served = new Set(declared.authorizationServerHosts.map((host) => host.toLowerCase()));\n const foreign = hosts.exact.filter((host) => !served.has(host.toLowerCase()));\n if (hosts.undeterminable || hosts.suffixes.length > 0 || hosts.exact.length === 0 || foreign.length > 0) {\n const resolvesTo = [...hosts.exact, ...hosts.suffixes.map((suffix) => `*${suffix}`)].join(', ') || '(no host)';\n return {\n unmatched: [{\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.VENDOR_INCREMENTAL_CONSENT,\n detail: `decisions/${provider.ref}.json names vendor '${vendorRecord!.vendor}', whose authorization server is ${declared.authorizationServerHosts.join(', ')}, `\n + `but this ref's token endpoint resolves to ${resolvesTo}${hosts.undeterminable ? ' (partly undeterminable)' : ''}`,\n }],\n };\n }\n const declaredScopes = new Set(provider.auth.scopes ?? []);\n return { consent: { form, restatedScopes: (declared.restatedScopes ?? []).filter((scope) => declaredScopes.has(scope)) }, unmatched: [] };\n}\n\nfunction renderIncrementalConsent(consent: { readonly form: ProviderOAuth2IncrementalConsentForm; readonly restatedScopes: readonly string[] } | undefined): string {\n if (consent === undefined) return '';\n return `\n // How this vendor's authorization server lets a grant grow (#1671), from catalogue-record/vendors (#1673).\n incrementalConsent: { form: ProviderOAuth2IncrementalConsentForm.${consent.form}${consent.restatedScopes.length === 0 ? '' : `, restatedScopes: [${consent.restatedScopes.map((scope) => quote(scope)).join(', ')}]`} },`;\n}\n\nfunction renderOAuth2Block(\n provider: TransposedProvider,\n envPrefix: string,\n decisions: CatalogueDecisions | undefined,\n vendorRecord?: CatalogueVendorRecord,\n): string {\n if (provider.auth.kind !== TransposedAuthKind.OAUTH2 || provider.auth.authUrl === undefined || provider.auth.tokenUrl === undefined) {\n return '';\n }\n const scopes = provider.auth.scopes ?? [];\n const { allowances, scopeValueAllowances } = resolveOAuth2EndpointHostAllowances(provider, decisions);\n const connectionParameters = oauth2ConnectionParameters(provider, decisions);\n const { consent } = resolveVendorIncrementalConsent(provider, decisions, vendorRecord);\n return ` oauth2: {\n authorizeUrl: ${quote(provider.auth.authUrl)},\n tokenUrl: ${quote(provider.auth.tokenUrl)},${scopes.length === 0 ? '' : `\n scopes: [${scopes.map((scope) => quote(scope)).join(', ')}],`}\n clientIdSecretRef: ${quote(`${envPrefix}_CLIENT_ID`)},\n clientSecretSecretRef: ${quote(`${envPrefix}_CLIENT_SECRET`)},${connectionParameters.length === 0 ? '' : `\n connectionParameters: [${connectionParameters.map((name) => quote(name)).join(', ')}],`}${renderEndpointHostAllowances(allowances)}${renderScopeValueAllowances(scopeValueAllowances)}${renderReportedAccountFacts(provider, decisions)}${renderIncrementalConsent(consent)}\n },\n`;\n}\n\n/**\n * The account facts a vendor REPORTS in its token answer and the source DIALS, derived rather than authored (#1052).\n *\n * Measured 2026-09-14 over the Activepieces catalogue: Pipedrive reads `auth.data.api_domain` before every call\n * (144 reads), Salesforce `auth.data.instance_url` (10), Zoho CRM and Bigin `api_domain`; every one of them was\n * transposed as a fixed, deployment-wide base URL, so an application whose tenants connected different orgs could\n * reach at most one of them. Two vendors had the fact hand-authored in `src/_authored/`; this is where the rest come\n * from, and where those two now come from too.\n *\n * The fact itself is derived: `provider.baseUrlReportedFact` is set when every URL that opens with a\n * `<connection>.data.<field>` read names the same field and no literal origin was stated. Its ORIGIN allowance is a\n * recorded decision (`reportedAccountFactOrigins`), never read from an answer — the same vocabulary as an OAuth2\n * origin, `DECLARED_VALUES` only. With a decision the REST contract also carries `baseUrlConnectionFact`, so a\n * connected account dials the origin it reported; without one the fact is captured at connect and nothing dials it,\n * because a base URL read from an unreviewed answer would send every request under the connection wherever the\n * answer said.\n *\n * Returned keyed by the fact's CONTRACT name (`apiDomain`), the camel-cased token-answer field, which is what a\n * connection row stores it under and what `baseUrlConnectionFact` names. A decision naming a fact this vendor does\n * not dial is UNMATCHED, and a full batch refuses it like every other record entry that matches nothing.\n */\nexport function resolveReportedAccountFacts(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n): {\n readonly facts: ReadonlyMap<string, { readonly responsePath: string; readonly origin?: ProviderOAuth2EndpointHostAllowance }>;\n readonly baseUrlConnectionFact?: string;\n readonly unmatched: readonly UnmatchedRecordEntry[];\n} {\n const recorded = decisions?.reportedAccountFactOrigins ?? {};\n const decisionFile = `decisions/${provider.ref}.json`;\n const unmatched: UnmatchedRecordEntry[] = [];\n const dialled = provider.auth.kind === TransposedAuthKind.OAUTH2 && provider.auth.authUrl !== undefined && provider.auth.tokenUrl !== undefined\n ? provider.baseUrlReportedFact\n : undefined;\n for (const field of Object.keys(recorded)) {\n if (field !== dialled) {\n unmatched.push({\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.REPORTED_ACCOUNT_FACT_ORIGIN,\n detail: `${decisionFile} records reportedAccountFactOrigins.${field}, but this vendor's source does not dial '${field}' as its base URL${dialled === undefined ? '' : ` (it dials '${dialled}')`}`,\n });\n }\n }\n if (dialled === undefined) return { facts: new Map(), unmatched };\n const decision = recorded[dialled];\n let origin: ProviderOAuth2EndpointHostAllowance | undefined;\n if (decision !== undefined) {\n const where = `${decisionFile} reportedAccountFactOrigins.${dialled}`;\n if (decision.kind !== ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES) {\n throw new Error(`${where} declares kind '${decision.kind}'. A reported origin is DECLARED_VALUES only: the vendor names the origin, and the allowance says which it may name.`);\n }\n if (typeof decision.source !== 'string' || decision.source.trim() === '') throw new Error(`${where} carries no source. An allow-list for a secret-bearing request must say where its origins came from.`);\n const values = [...(decision.values ?? [])];\n const hostSuffixes = [...(decision.hostSuffixes ?? [])];\n if (values.length === 0 && hostSuffixes.length === 0) throw new Error(`${where} admits nothing: declare at least one origin or one host suffix.`);\n for (const suffix of hostSuffixes) {\n if (!suffix.startsWith('.') || suffix.length < 2) throw new Error(`${where} host suffix '${suffix}' must begin with a dot and name a domain.`);\n }\n for (const value of values) {\n if (!/^https:\\/\\/[^/?#]+$/.test(value)) throw new Error(`${where} value '${value}' is not an https origin (scheme and host, no path).`);\n }\n origin = { kind: ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES, values, ...(hostSuffixes.length === 0 ? {} : { hostSuffixes }) };\n }\n const contractName = reportedAccountFactContractName(dialled);\n return {\n facts: new Map([[contractName, { responsePath: dialled, ...(origin === undefined ? {} : { origin }) }]]),\n ...(origin === undefined ? {} : { baseUrlConnectionFact: contractName }),\n unmatched,\n };\n}\n\n/** `api_domain` → `apiDomain`: the name a connection row stores the fact under, and what the contract refers to it by. */\nexport function reportedAccountFactContractName(field: string): string {\n return field.split(/[_-]+/).filter((part) => part.length > 0).map((part, index) => (index === 0 ? part : part[0]!.toUpperCase() + part.slice(1))).join('');\n}\n\nfunction renderReportedAccountFacts(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): string {\n const { facts } = resolveReportedAccountFacts(provider, decisions);\n if (facts.size === 0) return '';\n const lines = [...facts.entries()].map(([name, fact]) => {\n const origin = fact.origin === undefined || fact.origin.kind !== ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES\n ? ''\n : `, origin: { kind: ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES, values: [${fact.origin.values.map(quote).join(', ')}]${\n fact.origin.hostSuffixes === undefined || fact.origin.hostSuffixes.length === 0 ? '' : `, hostSuffixes: [${fact.origin.hostSuffixes.map(quote).join(', ')}]`\n } }`;\n return ` ${quote(name)}: { responsePath: ${quote(fact.responsePath)}${origin} },`;\n });\n return `\n // The account facts the vendor reports in its token answer and the source dials (#1052): captured at\n // connect${[...facts.values()].some((fact) => fact.origin !== undefined) ? '; the one carrying an origin allowance is the base URL a CONNECTED account dials' : ', not dialled until a decision records the origins it may name'}.\n reportedAccountFacts: {\n${lines.join('\\n')}\n },`;\n}\n\n/** The `baseUrlConnectionFact` line of a REST contract, or nothing (#1052). */\nfunction renderBaseUrlConnectionFact(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): string {\n const { baseUrlConnectionFact } = resolveReportedAccountFacts(provider, decisions);\n if (baseUrlConnectionFact === undefined) return '';\n return `\n // The deployment base above serves the APPLICATION's own account. A CONNECTED account dials the origin its\n // vendor reported for it in the token answer, admitted only within the recorded allowance (#1052).\n baseUrlConnectionFact: ${quote(baseUrlConnectionFact)},`;\n}\n\n/**\n * The placeholders the OAuth2 connect start ASKS for and stores as answers — the only connection answers that exist\n * (#1097). Shared by the emitted `connectionParameters` and the export probe, so the two cannot disagree.\n *\n * A placeholder the DEPLOYMENT fills is never asked of a person connecting, and a value they send for it is refused —\n * so listing it would build a form field that can only fail. The SCOPES are read too (#991): `{hostUrl}/.default` names\n * a fact about the account that no endpoint carries, and a placeholder only a scope mentions was otherwise never asked for.\n */\nfunction oauth2ConnectionParameters(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): readonly string[] {\n if (provider.auth.kind !== TransposedAuthKind.OAUTH2 || provider.auth.authUrl === undefined || provider.auth.tokenUrl === undefined) return [];\n const { allowances } = resolveOAuth2EndpointHostAllowances(provider, decisions);\n return collectEndpointPlaceholders([provider.auth.authUrl, provider.auth.tokenUrl, ...(provider.auth.scopes ?? [])])\n .filter((name) => {\n const kind = allowances.get(name)?.kind;\n return kind !== ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_BASE_URL && kind !== ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED;\n });\n}\n\n/**\n * The placeholders the TYPED-CREDENTIAL door asks for and stores (#1097): every placeholder of a PASTED-credential\n * vendor's emitted base URL. The engine derives them from the emitted contract itself — the base URL's holes, admitted\n * against `baseUrlHostAllowances` — so nothing is emitted for it and this list is the same derivation. A vendor with an\n * OAuth2 block answers through the start instead; its base URL is `oauth2ConnectionParameters`'s question.\n */\nfunction credentialDoorConnectionParameters(provider: TransposedProvider, baseUrl: string): readonly string[] {\n if (provider.auth.kind === TransposedAuthKind.OAUTH2 && provider.auth.authUrl !== undefined && provider.auth.tokenUrl !== undefined) return [];\n return collectEndpointPlaceholders([baseUrl]);\n}\n\n/** `, unsupportedValues: { … }` for an allowance that declines values (#1937), or nothing. */\nfunction renderUnsupportedValues(unsupportedValues: Readonly<Record<string, string>> | undefined): string {\n if (unsupportedValues === undefined || Object.keys(unsupportedValues).length === 0) return '';\n return `, unsupportedValues: { ${Object.entries(unsupportedValues).map(([value, reason]) => `${quote(value)}: ${quote(reason)}`).join(', ')} }`;\n}\n\n/**\n * Remove the connection values the vendor record declines (#1937) from every place the provider would admit them — a host\n * placeholder's extracted values, a whole-scope placeholder's values, the table a derived operation host is looked up\n * in — and carry each as `unsupportedValues` with the record's reason, so the runtime refuses it by name.\n *\n * Applied to the TRANSPOSED provider, before any allowance is resolved, so everything derived from those allowances (the\n * emitted blocks, the token-endpoint host set a shared connection is compared by, the vendor's incremental-consent\n * check) reads the provider without them. A placeholder left admitting nothing refuses the batch: that is a record which\n * declined a whole choice, and silently shipping a provider no one can connect is the outcome a decision must not hide.\n *\n * `matched` is every declined value this ref offered, so a vendor entry no ref offers any longer is reported as\n * unmatched instead of sitting in the record looking live.\n */\nexport function applyVendorUnsupportedConnectionValues(\n provider: TransposedProvider,\n vendorRecord: CatalogueVendorRecord | undefined,\n): { readonly provider: TransposedProvider; readonly matched: ReadonlySet<string> } {\n const entries = vendorRecord?.unsupportedConnectionValues ?? [];\n const matched = new Set<string>();\n if (entries.length === 0) return { provider, matched };\n const reasonOf = (value: string, comparison: ProviderOAuth2ValueComparison): { readonly declined: string; readonly reason: string } | undefined => {\n for (const entry of entries) {\n const declined = entry.values.find((candidate) => (comparison === ProviderOAuth2ValueComparison.EXACT ? candidate === value : candidate.toLowerCase() === value.toLowerCase()));\n // Only the reason travels: it is shown to the person connecting, and who decided when stays in the record.\n if (declined !== undefined) return { declined, reason: entry.reason };\n }\n return undefined;\n };\n const filterSet = (\n where: string,\n allowance: TransposedEndpointHostAllowance,\n comparison: ProviderOAuth2ValueComparison,\n ): TransposedEndpointHostAllowance => {\n const unsupportedValues: Record<string, string> = { ...(allowance.unsupportedValues ?? {}) };\n const values = allowance.values.filter((value) => {\n const found = reasonOf(value, comparison);\n if (found === undefined) return true;\n matched.add(found.declined);\n unsupportedValues[value] = found.reason;\n return false;\n });\n if (Object.keys(unsupportedValues).length === 0) return allowance;\n if (values.length === 0) {\n throw new Error(`vendors/${vendorRecord!.vendor}.json declines every value '${provider.ref}' offers for '${where}', which would ship a provider nobody can connect.`);\n }\n return { values, unsupportedValues };\n };\n const filterRecord = (\n record: Readonly<Record<string, TransposedEndpointHostAllowance>> | undefined,\n comparison: ProviderOAuth2ValueComparison,\n ): Readonly<Record<string, TransposedEndpointHostAllowance>> | undefined =>\n record === undefined ? undefined : Object.fromEntries(Object.entries(record).map(([name, allowance]) => [name, filterSet(name, allowance, comparison)]));\n\n const endpointHostAllowances = filterRecord(provider.auth.endpointHostAllowances, ProviderOAuth2ValueComparison.CASE_INSENSITIVE);\n const scopeValueAllowances = filterRecord(provider.auth.scopeValueAllowances, ProviderOAuth2ValueComparison.EXACT);\n const table = provider.baseUrlHostFromConnectionAnswer;\n let baseUrlHostFromConnectionAnswer = table;\n if (table !== undefined) {\n const unsupportedValues: Record<string, string> = { ...(table.unsupportedValues ?? {}) };\n const hosts = Object.fromEntries(Object.entries(table.hosts).filter(([answer]) => {\n const found = reasonOf(answer, ProviderOAuth2ValueComparison.CASE_INSENSITIVE);\n if (found === undefined) return true;\n matched.add(found.declined);\n unsupportedValues[answer] = found.reason;\n return false;\n }));\n if (Object.keys(unsupportedValues).length > 0) baseUrlHostFromConnectionAnswer = { ...table, hosts, unsupportedValues };\n }\n return {\n provider: {\n ...provider,\n auth: {\n ...provider.auth,\n ...(endpointHostAllowances === undefined ? {} : { endpointHostAllowances }),\n ...(scopeValueAllowances === undefined ? {} : { scopeValueAllowances }),\n },\n ...(baseUrlHostFromConnectionAnswer === undefined ? {} : { baseUrlHostFromConnectionAnswer }),\n },\n matched,\n };\n}\n\n/**\n * Refuse a RECORDED host decision that admits a value its vendor declines (#1937).\n *\n * An allowance has two sources: the set extracted from the source, which {@link applyVendorUnsupportedConnectionValues}\n * filters, and a `decisions/<ref>.json` host decision (OAuth2 endpoint or base URL), which wins over the extracted set\n * and is never filtered. So a later decision recording `cloud` for a Microsoft ref could re-admit\n * `login.microsoftonline.us` silently. The two records contradict each other and a person must reconcile them, so the\n * batch refuses rather than choosing one; a declined value a recorded host SUFFIX would admit is the same contradiction.\n */\nexport function assertRecordedAllowancesHonourVendorDeclines(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n vendorRecord: CatalogueVendorRecord | undefined,\n): void {\n const declined = (vendorRecord?.unsupportedConnectionValues ?? []).flatMap((entry) => entry.values);\n if (declined.length === 0) return;\n const sources = [\n { field: 'oauth2EndpointHostAllowances', what: 'OAuth2 endpoint', decided: decisions?.oauth2EndpointHostAllowances ?? {}, allowances: resolveOAuth2EndpointHostAllowances(provider, decisions).allowances },\n { field: 'baseUrlHostAllowances', what: 'base URL', decided: decisions?.baseUrlHostAllowances ?? {}, allowances: resolveBaseUrlHostAllowances(provider, decisions).allowances },\n ];\n for (const { field, what, decided, allowances } of sources) {\n for (const [name, allowance] of allowances) {\n if (!Object.hasOwn(decided, name) || allowance.kind !== ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES) continue;\n for (const value of declined) {\n const lowered = value.toLowerCase().replace(/^https:\\/\\//, '');\n const exact = allowance.values.some((candidate) => candidate.toLowerCase().replace(/^https:\\/\\//, '') === lowered);\n const suffix = (allowance.hostSuffixes ?? []).find((candidate) => lowered.length > candidate.length && lowered.endsWith(candidate.toLowerCase()));\n if (exact || suffix !== undefined) {\n throw new Error(\n `decisions/${provider.ref}.json ${field}.${name} (${what} host) admits '${value}'${suffix === undefined ? '' : ` through the suffix '${suffix}'`}, `\n + `which vendors/${vendorRecord!.vendor}.json declines. Remove it from the decision, or the decline from the vendor record.`,\n );\n }\n }\n }\n }\n}\n\n/** Declined values no ref of their vendor offered in this batch (#1937). See {@link applyVendorUnsupportedConnectionValues}. */\nexport function unmatchedVendorUnsupportedConnectionValues(\n vendorRecords: ReadonlyMap<string, CatalogueVendorRecord>,\n matchedByVendor: ReadonlyMap<string, ReadonlySet<string>>,\n): readonly UnmatchedRecordEntry[] {\n const unmatched: UnmatchedRecordEntry[] = [];\n for (const [vendor, matched] of matchedByVendor) {\n for (const entry of vendorRecords.get(vendor)?.unsupportedConnectionValues ?? []) {\n for (const value of entry.values.filter((candidate) => !matched.has(candidate))) {\n unmatched.push({\n ref: vendor,\n kind: UnmatchedRecordEntryKind.VENDOR_UNSUPPORTED_CONNECTION_VALUE,\n detail: `vendors/${vendor}.json declines '${value}', which no ref of the vendor offers any longer`,\n });\n }\n }\n }\n return unmatched;\n}\n\nfunction renderScopeValueAllowances(allowances: ReadonlyMap<string, ProviderOAuth2ScopeValueAllowance>): string {\n if (allowances.size === 0) return '';\n const lines = [...allowances.entries()].map(([name, allowance]) => ` ${quote(name)}: { values: [${allowance.values.map(quote).join(', ')}]${renderUnsupportedValues(allowance.unsupportedValues)} },`);\n return `\n scopeValueAllowances: {\n${lines.join('\\n')}\n },`;\n}\n\nfunction renderEndpointHostAllowances(allowances: ReadonlyMap<string, ProviderOAuth2EndpointHostAllowance>): string {\n if (allowances.size === 0) return '';\n const lines = [...allowances.entries()].map(([name, allowance]) => {\n if (allowance.kind === ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_BASE_URL) {\n return ` ${quote(name)}: { kind: ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_BASE_URL${\n allowance.baseUrlPathSuffix === undefined ? '' : `, baseUrlPathSuffix: ${quote(allowance.baseUrlPathSuffix)}`\n } },`;\n }\n if (allowance.kind === ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED) {\n return ` ${quote(name)}: { kind: ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED, envVarName: ${quote(allowance.envVarName)} },`;\n }\n if (allowance.kind === ProviderOAuth2EndpointHostAllowanceKind.DERIVED_FROM_CONNECTION_ANSWER) {\n const hosts = Object.entries(allowance.hosts).map(([value, host]) => `${quote(value)}: ${quote(host)}`).join(', ');\n return ` ${quote(name)}: { kind: ProviderOAuth2EndpointHostAllowanceKind.DERIVED_FROM_CONNECTION_ANSWER, answer: ${quote(allowance.answer)}, hosts: { ${hosts} }${\n allowance.whenUnanswered === undefined ? '' : `, whenUnanswered: ${quote(allowance.whenUnanswered)}`\n }${renderUnsupportedValues(allowance.unsupportedValues)} },`;\n }\n return ` ${quote(name)}: { kind: ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES, values: [${allowance.values.map(quote).join(', ')}]${\n allowance.hostSuffixes === undefined || allowance.hostSuffixes.length === 0 ? '' : `, hostSuffixes: [${allowance.hostSuffixes.map(quote).join(', ')}]`\n }${allowance.originMatchesDeploymentBaseUrl === true ? ', originMatchesDeploymentBaseUrl: true' : ''}${renderUnsupportedValues(allowance.unsupportedValues)} },`;\n });\n return `\n endpointHostAllowances: {\n${lines.join('\\n')}\n },`;\n}\n\n/**\n * The base URL the REST contract EMITS as a literal, or `undefined` when the contract carries no literal base (the\n * deployment names it, or a deployment-configured host serves the operations).\n */\n/**\n * Apply a `baseUrlNamedByDeployment` decision (review F10): the recovered literal base URL is dropped, so the contract\n * carries `baseUrlEnvVarName` and an operator names the vendor's real API. A decision whose `host` is not the recovered\n * base URL applies to nothing and is UNMATCHED; one without a `reason` refuses the batch.\n */\nexport function applyBaseUrlNamedByDeployment(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n): { readonly provider: TransposedProvider; readonly unmatched: readonly UnmatchedRecordEntry[] } {\n const decision = decisions?.baseUrlNamedByDeployment;\n if (decision === undefined) return { provider, unmatched: [] };\n const where = `decisions/${provider.ref}.json baseUrlNamedByDeployment`;\n if (typeof decision.reason !== 'string' || decision.reason.trim() === '') {\n throw new Error(`${where} carries no 'reason'. Replacing the host a source names must say why it is not the vendor's API.`);\n }\n if (provider.baseUrl !== decision.host) {\n return {\n provider,\n unmatched: [{\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.BASE_URL_NAMED_BY_DEPLOYMENT,\n detail: `${where} names '${decision.host}', but this batch recovered ${provider.baseUrl === undefined ? 'no literal base URL' : `'${provider.baseUrl}'`}`,\n }],\n };\n }\n const { baseUrl: _replaced, ...rest } = provider;\n return { provider: rest, unmatched: [] };\n}\n\nfunction emittedLiteralBaseUrl(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): string | undefined {\n if (operationBaseUrlHostEnvVarName(provider, decisions) !== undefined) return undefined;\n if (connectionDerivedOperationHost(provider, decisions) !== undefined) return `https://{${DERIVED_OPERATION_HOST_PLACEHOLDER}}`;\n return provider.baseUrl;\n}\n\n/**\n * The base-URL placeholder a connection-derived operation host is emitted under (#1937). One name for every vendor:\n * a base URL has one host, and the name says whose it is — never a connection answer's, which it is derived FROM.\n */\nexport const DERIVED_OPERATION_HOST_PLACEHOLDER = 'operationHost';\n\n/**\n * The allowance that derives the operation HOST from a connect-time answer, when the source computes its base URL from\n * one (`getGraphBaseUrl(cloud)`, #1937), or `undefined`.\n *\n * Emitted only when it is sound against what the provider's OWN OAuth2 block admits for that answer: the answer must be\n * a DECLARED_VALUES host placeholder of the vendor's endpoints, and every value it admits must map to a host — an\n * admitted cloud with no Graph host would connect and then refuse every call. The literal base must be the table's\n * unanswered host, so the operations that name it literally and the ones that computed it agree. A table that fails\n * any of these refuses the batch: it was read from the source, and a source that no longer agrees with itself is a\n * regeneration someone must look at.\n */\nexport function connectionDerivedOperationHost(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n): Extract<ProviderOAuth2EndpointHostAllowance, { kind: ProviderOAuth2EndpointHostAllowanceKind.DERIVED_FROM_CONNECTION_ANSWER }> | undefined {\n const table = provider.baseUrlHostFromConnectionAnswer;\n if (table === undefined || provider.baseUrl === undefined) return undefined;\n const where = `Provider '${provider.ref}' derives its operation host from the connection's '${table.answer}'`;\n if (provider.baseUrl !== `https://${table.whenUnanswered}`) {\n throw new Error(`${where}, but its base URL '${provider.baseUrl}' is not the unanswered host 'https://${table.whenUnanswered}'.`);\n }\n const answered = provider.auth.kind === TransposedAuthKind.OAUTH2 ? resolveOAuth2EndpointHostAllowances(provider, decisions).allowances.get(table.answer) : undefined;\n if (answered?.kind !== ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES) {\n throw new Error(`${where}, which is not a DECLARED_VALUES host placeholder of its OAuth2 endpoints — nothing would answer it.`);\n }\n const unmapped = answered.values.filter((value) => !Object.keys(table.hosts).some((key) => key.toLowerCase() === value.toLowerCase()));\n if (unmapped.length > 0 || (answered.hostSuffixes ?? []).length > 0) {\n throw new Error(`${where}, and its OAuth2 endpoints admit ${[...unmapped, ...(answered.hostSuffixes ?? [])].map((value) => `'${value}'`).join(', ')} with no operation host.`);\n }\n return {\n kind: ProviderOAuth2EndpointHostAllowanceKind.DERIVED_FROM_CONNECTION_ANSWER,\n answer: table.answer,\n hosts: table.hosts,\n whenUnanswered: table.whenUnanswered,\n ...(table.unsupportedValues === undefined ? {} : { unsupportedValues: table.unsupportedValues }),\n };\n}\n\n/**\n * The host allowances a vendor's REST `baseUrl` carries, from its recorded decisions (#1015).\n *\n * Every operation sends the connection's credential to the base URL, so a host placeholder there is governed exactly as\n * an OAuth2 token host is: through `ProviderOAuth2EndpointHostAllowance`, classified by the SAME function the runtime\n * uses, and applied by the SAME resolver (`resolveEndpointPlaceholders`). Nothing is extracted from a source here — a\n * free-text account field never states which hosts are the vendor's — so only a decision can supply one.\n *\n * Refuses the batch, rather than emitting, when a decision:\n * - is not `DECLARED_VALUES` (an operator-hosted instance is `baseUrlEnvVarName`, not a host allowance);\n * - fails the position rules for where its placeholder sits in the emitted base URL;\n * - disagrees with the allowance the vendor's OAuth2 endpoints carry for the same name (one allow-list per name).\n *\n * A decision or refusal naming a placeholder the emitted base URL does not carry as a host or origin is UNMATCHED, and a\n * full batch refuses it. A host placeholder with neither is emitted with no allowance, which the runtime refuses at every\n * call — the fail-closed default, and the one the catalogue reports.\n */\nexport function resolveBaseUrlHostAllowances(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n): { readonly allowances: ReadonlyMap<string, ProviderOAuth2EndpointHostAllowance>; readonly unmatched: readonly UnmatchedRecordEntry[] } {\n const recorded = decisions?.baseUrlHostAllowances ?? {};\n const refusals = decisions?.baseUrlHostRefusals ?? {};\n const unmatched: UnmatchedRecordEntry[] = [];\n const allowances = new Map<string, ProviderOAuth2EndpointHostAllowance>();\n const baseUrl = emittedLiteralBaseUrl(provider, decisions);\n const decisionFile = `decisions/${provider.ref}.json`;\n\n const shapes = new Map<string, { position: ProviderOAuth2EndpointPlaceholderPosition; occupiesWholeHost: boolean; literalHostSuffix?: string }>();\n if (baseUrl !== undefined && findProviderOAuth2EndpointTemplateDefects(baseUrl).length === 0) {\n for (const occurrence of classifyProviderOAuth2EndpointPlaceholders(baseUrl)) {\n if (occurrence.position === ProviderOAuth2EndpointPlaceholderPosition.PATH_OR_QUERY) continue;\n shapes.set(occurrence.name, {\n position: occurrence.position,\n occupiesWholeHost: occurrence.occupiesWholeHost,\n ...(occurrence.literalHostSuffix === undefined ? {} : { literalHostSuffix: occurrence.literalHostSuffix }),\n });\n }\n }\n\n for (const name of Object.keys(recorded)) {\n if (!shapes.has(name)) {\n unmatched.push({\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.BASE_URL_HOST,\n detail: `${decisionFile} records a base-URL host allowance for '${name}', which the emitted REST base URL does not carry in a host or origin position`,\n });\n }\n }\n for (const name of Object.keys(refusals)) {\n // A refusal is matched by the base URL CARRYING the placeholder at all: a template the runtime refuses as malformed\n // (two placeholders in one authority) has no host shape to classify, and recording why it cannot connect is exactly\n // what a refusal is for.\n const carried = baseUrl !== undefined && classifyProviderOAuth2EndpointPlaceholders(baseUrl).some((occurrence) => occurrence.name === name\n && occurrence.position !== ProviderOAuth2EndpointPlaceholderPosition.PATH_OR_QUERY);\n if (!carried || Object.hasOwn(recorded, name)) {\n unmatched.push({\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.BASE_URL_HOST,\n detail: `${decisionFile} records a base-URL host refusal for '${name}', which ${Object.hasOwn(recorded, name) ? 'also has a recorded allowance' : 'the emitted REST base URL does not carry in a host or origin position'}`,\n });\n }\n if (typeof refusals[name] !== 'string' || refusals[name]!.trim() === '') {\n throw new Error(`${decisionFile} baseUrlHostRefusals.${name} carries no reason. A refusal that makes a vendor not connectable must say why.`);\n }\n }\n\n const oauth2 = provider.auth.kind === TransposedAuthKind.OAUTH2 ? resolveOAuth2EndpointHostAllowances(provider, decisions).allowances : new Map<string, ProviderOAuth2EndpointHostAllowance>();\n const derived = connectionDerivedOperationHost(provider, decisions);\n for (const [name, shape] of shapes) {\n if (derived !== undefined && name === DERIVED_OPERATION_HOST_PLACEHOLDER) {\n // Read from the source (#1937), never recorded: a decision or a refusal for it would be a second authority.\n if (Object.hasOwn(recorded, name) || Object.hasOwn(refusals, name)) {\n throw new Error(`${decisionFile} records a base-URL host decision for '${name}', which this vendor derives from the connection's '${derived.answer}'. Remove it.`);\n }\n const defects = describeProviderOAuth2EndpointHostAllowanceDefects(shape, derived);\n if (defects.length > 0) throw new Error(`Provider '${provider.ref}' cannot derive '${name}' in '${baseUrl}': ${defects.join('; ')}.`);\n allowances.set(name, derived);\n continue;\n }\n if (!Object.hasOwn(recorded, name)) {\n // No base-URL decision, but the vendor's OWN OAuth2 endpoints declare a closed set for this name (Zoho's\n // `{location}` data centres, read from the source's dropdown or recorded for its token host). One placeholder\n // name has one allow-list, and the connection already answers it at connect, so the base URL uses the same one —\n // when it is sound where the base URL puts the name. Anything else stays unguarded and refused at every call.\n const shared = oauth2.get(name);\n if (\n shared?.kind === ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES\n && !Object.hasOwn(refusals, name)\n // `originMatchesDeploymentBaseUrl` admits a value only when it matches the DEPLOYMENT's configured base URL —\n // and a base URL filled per connection has no deployment base to match, so the runtime refuses every call while\n // this shared allowance would read as admitted here (review round 3, L2). Not shared; a base-URL decision only.\n && shared.originMatchesDeploymentBaseUrl !== true\n && describeProviderOAuth2EndpointHostAllowanceDefects(shape, shared).length === 0\n ) {\n allowances.set(name, shared);\n }\n continue;\n }\n const decision = recorded[name]!;\n const where = `${decisionFile} baseUrlHostAllowances.${name}`;\n if (decision.kind !== ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES) {\n throw new Error(`${where} declares kind '${decision.kind}'. A base-URL host is DECLARED_VALUES only; an operator-hosted instance is named by the deployment base URL instead.`);\n }\n const allowance = projectHostAllowanceDecision(provider, name, decision);\n const defects = describeProviderOAuth2EndpointHostAllowanceDefects(shape, allowance);\n if (defects.length > 0) throw new Error(`${where} cannot be applied to '${baseUrl}': ${defects.join('; ')}.`);\n const shared = oauth2.get(name);\n if (shared !== undefined && JSON.stringify(shared) !== JSON.stringify(allowance)) {\n throw new Error(`${where} disagrees with the OAuth2 host allowance for '${name}'. One placeholder name has one allow-list.`);\n }\n allowances.set(name, allowance);\n }\n return { allowances, unmatched };\n}\n\n/** The `baseUrlHostAllowances` line of a REST contract, or nothing. */\nfunction renderBaseUrlHostAllowances(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): string {\n const { allowances } = resolveBaseUrlHostAllowances(provider, decisions);\n if (allowances.size === 0) return '';\n // Reuses the OAuth2 renderer and re-indents it: the SAME literal shape, so the two cannot drift.\n return renderEndpointHostAllowances(allowances)\n .replace('endpointHostAllowances: {', 'baseUrlHostAllowances: {')\n .split('\\n')\n .map((line) => (line.startsWith(' ') ? line.slice(2) : line))\n .join('\\n');\n}\n\n/**\n * The host allowances a vendor's OAuth2 block carries: what the source's dropdowns state, replaced\n * per placeholder by what a human recorded in the catalogue decisions (#623).\n *\n * Returned in placeholder first-appearance order, so the emitted block reads in the order the vendor\n * writes its URLs. Decision entries that name no host/origin placeholder of this vendor's endpoints\n * are returned as UNMATCHED — a decision that has stopped applying must refuse a full batch rather\n * than silently leave a host unguarded or a stale set in place.\n *\n * An unrecognised decision `kind`, a DECLARED_VALUES decision with no values, or a suffix without a\n * leading dot REFUSES immediately, like an unknown tier: a typo in an allow-list for a secret-bearing\n * request must never degrade to \"no allowance\" or, worse, to a looser one.\n */\nexport function resolveOAuth2EndpointHostAllowances(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n): {\n readonly allowances: ReadonlyMap<string, ProviderOAuth2EndpointHostAllowance>;\n readonly scopeValueAllowances: ReadonlyMap<string, ProviderOAuth2ScopeValueAllowance>;\n readonly unmatched: readonly UnmatchedRecordEntry[];\n} {\n const recorded = decisions?.oauth2EndpointHostAllowances ?? {};\n const refusals = decisions?.oauth2EndpointHostRefusals ?? {};\n const unmatched: UnmatchedRecordEntry[] = [];\n const allowances = new Map<string, ProviderOAuth2EndpointHostAllowance>();\n const scopeValueAllowances = new Map<string, ProviderOAuth2ScopeValueAllowance>();\n\n const hasEndpoints = provider.auth.kind === TransposedAuthKind.OAUTH2 && provider.auth.authUrl !== undefined && provider.auth.tokenUrl !== undefined;\n const urls = hasEndpoints ? [provider.auth.authUrl!, provider.auth.tokenUrl!] : [];\n // Scopes are only ever emitted beside endpoints (`renderOAuth2Block`), so only then are they checked.\n const scopes = hasEndpoints ? provider.auth.scopes ?? [] : [];\n // A template the runtime would refuse whatever is declared must not be emitted as though it could\n // connect. The Activepieces reader withholds such endpoints itself; reaching here with one means a\n // reader regressed, and the batch says so rather than shipping it.\n for (const url of urls) {\n const defects = findProviderOAuth2EndpointTemplateDefects(url);\n if (defects.length > 0) {\n throw new Error(`Provider '${provider.ref}' carries the OAuth2 endpoint '${url}', which cannot be resolved safely (${defects.join(', ')}).`);\n }\n }\n for (const scope of scopes) {\n const defects = findProviderOAuth2ScopeTemplateDefects(scope);\n if (defects.length > 0) {\n throw new Error(`Provider '${provider.ref}' carries the OAuth2 scope '${scope}', which cannot be resolved safely (${defects.join(', ')}).`);\n }\n }\n\n const hostNames: string[] = [];\n const placeholderShape = new Map<string, { position: ProviderOAuth2EndpointPlaceholderPosition; occupiesWholeHost: boolean }>();\n const recordShape = (name: string, position: ProviderOAuth2EndpointPlaceholderPosition, occupiesWholeHost: boolean): void => {\n if (!hostNames.includes(name)) hostNames.push(name);\n const seen = placeholderShape.get(name);\n if (seen !== undefined && seen.position !== position) {\n throw new Error(\n `Provider '${provider.ref}' uses '${name}' as both an ORIGIN and a HOST across its OAuth2 endpoints and scopes; no single allowance can be sound for both.`,\n );\n }\n // The STRICTEST shape across every use: a HOST suffix is admissible only if every use is a whole host.\n placeholderShape.set(name, { position, occupiesWholeHost: (seen?.occupiesWholeHost ?? true) && occupiesWholeHost });\n };\n for (const url of urls) {\n for (const occurrence of classifyProviderOAuth2EndpointPlaceholders(url)) {\n if (occurrence.position === ProviderOAuth2EndpointPlaceholderPosition.PATH_OR_QUERY) continue;\n recordShape(occurrence.name, occurrence.position, occurrence.occupiesWholeHost);\n }\n }\n // A scope beginning `{name}/` forms an ORIGIN and is governed by the same allow-list (#991).\n const wholeScopeNames: string[] = [];\n const scopeOriginNames = new Set<string>();\n for (const scope of scopes) {\n const occurrence = classifyProviderOAuth2ScopePlaceholder(scope);\n if (occurrence === undefined) continue;\n if (occurrence.position === ProviderOAuth2ScopePlaceholderPosition.ORIGIN) {\n scopeOriginNames.add(occurrence.name);\n recordShape(occurrence.name, ProviderOAuth2EndpointPlaceholderPosition.ORIGIN, false);\n } else if (!wholeScopeNames.includes(occurrence.name)) {\n wholeScopeNames.push(occurrence.name);\n }\n }\n for (const name of wholeScopeNames) {\n if (hostNames.includes(name)) {\n throw new Error(`Provider '${provider.ref}' uses '${name}' both as a whole OAuth2 scope and to form a host; no single value can be sound for both.`);\n }\n const extractedScopeSets = provider.auth.scopeValueAllowances ?? {};\n const extracted = Object.hasOwn(extractedScopeSets, name) ? extractedScopeSets[name] : undefined;\n if (extracted === undefined) continue;\n const defects = describeProviderOAuth2ScopeValueAllowanceDefects(extracted);\n if (defects.length > 0) {\n throw new Error(`The scope value set extracted from the source catalogue for '${name}' on provider '${provider.ref}' cannot be applied: ${defects.join('; ')}.`);\n }\n scopeValueAllowances.set(name, {\n values: extracted.values,\n ...(extracted.unsupportedValues === undefined ? {} : { unsupportedValues: extracted.unsupportedValues }),\n });\n }\n const assertSound = (name: string, allowance: ProviderOAuth2EndpointHostAllowance, origin: string): ProviderOAuth2EndpointHostAllowance => {\n const defects = describeProviderOAuth2EndpointHostAllowanceDefects(placeholderShape.get(name)!, allowance);\n if (defects.length > 0) {\n throw new Error(`${origin} for '${name}' on provider '${provider.ref}' cannot be applied: ${defects.join('; ')}.`);\n }\n return allowance;\n };\n\n const decisionFile = `decisions/${provider.ref}.json`;\n for (const name of Object.keys(recorded)) {\n if (!hostNames.includes(name)) {\n unmatched.push({\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.OAUTH2_ENDPOINT_HOST,\n detail: `${decisionFile} records an OAuth2 host allowance for '${name}', which no emitted OAuth2 endpoint of this vendor carries in a host or origin position`,\n });\n }\n }\n for (const name of Object.keys(refusals)) {\n if (!hostNames.includes(name) || Object.hasOwn(recorded, name)) {\n unmatched.push({\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.OAUTH2_ENDPOINT_HOST,\n detail: `${decisionFile} records an OAuth2 host refusal for '${name}', which ${Object.hasOwn(recorded, name) ? 'also has a recorded allowance' : 'no emitted OAuth2 endpoint of this vendor carries in a host or origin position'}`,\n });\n }\n }\n\n for (const name of hostNames) {\n if (Object.hasOwn(refusals, name)) continue;\n const decision = Object.hasOwn(recorded, name) ? recorded[name] : undefined;\n if (decision !== undefined) {\n allowances.set(name, assertSound(name, projectHostAllowanceDecision(provider, name, decision), `decisions/${provider.ref}.json oauth2EndpointHostAllowances`));\n continue;\n }\n const extractedSets = provider.auth.endpointHostAllowances ?? {};\n const extracted = Object.hasOwn(extractedSets, name) ? extractedSets[name] : undefined;\n if (extracted !== undefined && extracted.values.length > 0) {\n allowances.set(name, assertSound(\n name,\n {\n kind: ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES,\n values: extracted.values,\n ...(extracted.unsupportedValues === undefined ? {} : { unsupportedValues: extracted.unsupportedValues }),\n },\n 'The host set extracted from the source catalogue',\n ));\n }\n }\n // A scope's origin is resolved ONLY within declared values at runtime (`resolveProviderOAuth2Scopes`), so\n // any other kind on a name a scope uses as an origin is refused here rather than shipped as a provider\n // every connect refuses (#991 review F6).\n for (const name of scopeOriginNames) {\n const allowance = allowances.get(name);\n if (allowance !== undefined && allowance.kind !== ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES) {\n throw new Error(\n `Provider '${provider.ref}' uses '${name}' as the origin of an OAuth2 scope, which only a DECLARED_VALUES allowance can fill; `\n + `its allowance is ${allowance.kind}.`,\n );\n }\n }\n // Two placeholders deriving ONE env var (`authHost` and `auth_host` both → `…_AUTH_HOST`) would share a\n // slot the runtime reads for either, so the generator refuses the pair (#992 review F7).\n const placeholderByEnvVarName = new Map<string, string>();\n for (const [name, allowance] of allowances) {\n if (allowance.kind !== ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED) continue;\n const existing = placeholderByEnvVarName.get(allowance.envVarName);\n if (existing !== undefined) {\n throw new Error(`Provider '${provider.ref}' derives '${allowance.envVarName}' for both '${existing}' and '${name}'; each deployment-configured host needs its own variable.`);\n }\n placeholderByEnvVarName.set(allowance.envVarName, name);\n }\n return { allowances, scopeValueAllowances, unmatched };\n}\n\n/**\n * The env var an OPERATION base URL's host comes from, when the vendor's decision derives it from one of\n * its deployment-configured OAuth2 hosts (`operationBaseUrlFromOAuth2Host`, #992 review F3), or `undefined`.\n *\n * Workday's operations call `https://<apiHost>/ccx/…` — the host its token endpoint uses. The source reads\n * that host from a connection prop the reader could not follow, so the transposed base URL was the\n * unfillable `https://{auth}` and every operation failed on a vendor advertised as connectable. The decision\n * names the placeholder; the variable is the one its DEPLOYMENT_CONFIGURED allowance already derives, so\n * the operation host and the token host are one slot.\n *\n * Refuses a decision that names no DEPLOYMENT_CONFIGURED host of this vendor, or carries no `source`: it\n * could only ever emit a base URL nothing sets.\n */\nexport function operationBaseUrlHostEnvVarName(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): string | undefined {\n const decision = decisions?.operationBaseUrlFromOAuth2Host;\n if (decision === undefined) return undefined;\n const where = `decisions/${provider.ref}.json operationBaseUrlFromOAuth2Host`;\n if (typeof decision.source !== 'string' || decision.source.trim() === '') {\n throw new Error(`${where} carries no 'source'. Where every operation is sent must say why.`);\n }\n const allowance = resolveOAuth2EndpointHostAllowances(provider, decisions).allowances.get(decision.placeholder);\n if (allowance?.kind !== ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED) {\n throw new Error(`${where} names '${decision.placeholder}', which is not a DEPLOYMENT_CONFIGURED OAuth2 host of provider '${provider.ref}'.`);\n }\n return allowance.envVarName;\n}\n\n/** The secret slugs a generated module already declares — a deployment-configured host may not reuse one. */\nconst RESERVED_SECRET_SLOT_SLUGS: ReadonlySet<string> = new Set(['accessToken', 'apiKey', 'baseUrl', 'clientId', 'clientSecret']);\n\n/** `authHost` → `AUTH_HOST`, the env-var tail of a deployment-configured host (#992). */\nfunction screamingSnakeCase(name: string): string {\n return name.replace(/([a-z0-9])([A-Z])/g, '$1_$2').replace(/[^A-Za-z0-9]+/g, '_').toUpperCase();\n}\n\nfunction projectHostAllowanceDecision(\n provider: TransposedProvider,\n name: string,\n decision: NonNullable<CatalogueDecisions['oauth2EndpointHostAllowances']>[string],\n): ProviderOAuth2EndpointHostAllowance {\n const ref = provider.ref;\n const where = `decisions/${ref}.json oauth2EndpointHostAllowances.${name}`;\n if (typeof decision.source !== 'string' || decision.source.trim() === '') {\n throw new Error(`${where} carries no 'source'. An allow-list for the request that carries the client secret must say where its hosts came from.`);\n }\n switch (decision.kind) {\n case ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES: {\n const values = decision.values ?? [];\n const hostSuffixes = decision.hostSuffixes ?? [];\n if (values.length === 0 && hostSuffixes.length === 0) {\n throw new Error(`${where} is DECLARED_VALUES with no values and no host suffixes, which admits nothing. Record a refusal instead.`);\n }\n const undotted = hostSuffixes.find((suffix) => !suffix.startsWith('.'));\n if (undotted !== undefined) {\n throw new Error(`${where} declares the host suffix '${undotted}' without a leading dot, which would admit look-alike hosts.`);\n }\n if (decision.originMatchesDeploymentBaseUrl !== undefined && decision.originMatchesDeploymentBaseUrl !== true) {\n throw new Error(`${where} declares originMatchesDeploymentBaseUrl as '${String(decision.originMatchesDeploymentBaseUrl)}'; it is either true or absent.`);\n }\n return {\n kind: ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES,\n values,\n ...(hostSuffixes.length === 0 ? {} : { hostSuffixes }),\n ...(decision.originMatchesDeploymentBaseUrl === true ? { originMatchesDeploymentBaseUrl: true as const } : {}),\n };\n }\n case ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_BASE_URL:\n return {\n kind: ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_BASE_URL,\n ...(decision.baseUrlPathSuffix === undefined ? {} : { baseUrlPathSuffix: decision.baseUrlPathSuffix }),\n };\n case ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED: {\n // DERIVED, never authored: the slot this value arrives through is named by the same rule, so the two\n // cannot disagree. A collision with a slot the module already declares would read the client secret\n // (or the account token) as a host, so it refuses rather than shadowing one.\n const envPrefix = envPrefixFor(ref);\n const envVarName = `${envPrefix}_${screamingSnakeCase(name)}`;\n const taken = new Set([`${envPrefix}_CLIENT_ID`, `${envPrefix}_CLIENT_SECRET`, `${envPrefix}_BASE_URL`, accountSecretEnvVarFor(provider, envPrefix)]);\n if (RESERVED_SECRET_SLOT_SLUGS.has(name) || taken.has(envVarName)) {\n throw new Error(`${where} is DEPLOYMENT_CONFIGURED, and its slot '${name}' / '${envVarName}' collides with a secret slot the module already declares.`);\n }\n return { kind: ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED, envVarName };\n }\n case ProviderOAuth2EndpointHostAllowanceKind.DERIVED_FROM_CONNECTION_ANSWER:\n // Evaluated from the vendor's source (#1937), never recorded: a decision would be a second authority for a\n // table the source already states, and would silently disagree with it the day the source moves.\n throw new Error(`${where} records DERIVED_FROM_CONNECTION_ANSWER, which is derived from the vendor's source and never recorded. Remove it.`);\n default:\n throw new Error(\n `${where} declares kind '${decision.kind}', which is not a ProviderOAuth2EndpointHostAllowanceKind value `\n + `(${Object.values(ProviderOAuth2EndpointHostAllowanceKind).join(', ')}).`,\n );\n }\n}\n\n/**\n * The `{token}` placeholders an OAuth2 endpoint carries, deduplicated and in first-appearance order.\n *\n * Re-measured over the generated catalogue on 2026-09-12: 20 of the 99 vendors with both endpoints\n * carry at least one — `{cloud}` (18 occurrences), `{location}` (10), `{tenantId}` (6), plus\n * `{region}`, `{environment}`, `{domain}`, `{baseUrl}`, `{authHost}`, `{apiHost}`, `{tenant}`. A PATH\n * placeholder is something the person connecting supplies; a HOST/ORIGIN one is chosen from the\n * provider's declared allowance or filled by the deployment (#623) — see\n * `resolveOAuth2EndpointHostAllowances`.\n *\n * Deliberately the same brace syntax the operation path templates already use, so one vocabulary\n * covers both. Deliberately NOT a URL parse: an authorize URL with an unresolved placeholder in its\n * HOST is not a parseable URL, which is exactly the population this exists to find.\n *\n * First-appearance order rather than sorted, because the order a vendor writes them in is the order\n * they read to a person filling in a form — `{cloud}` then `{tenantId}` is how Microsoft's own\n * documentation presents them, and re-sorting to `cloud, tenantId` is luck rather than design.\n */\nfunction collectEndpointPlaceholders(urls: readonly string[]): readonly string[] {\n const names: string[] = [];\n for (const url of urls) {\n for (const match of url.matchAll(/\\{([A-Za-z_][A-Za-z0-9_]*)\\}/g)) {\n const name = match[1]!;\n if (!names.includes(name)) names.push(name);\n }\n }\n return names;\n}\n\n/**\n * Where the credential rides.\n *\n * A bearer header is the right default for SECRET_TEXT and OAUTH2 and is what the overwhelming\n * majority of the catalogue's vendors use; BASIC and CUSTOM are named honestly rather than forced\n * into it, because a wrong header placement authenticates nothing and the failure reads as a\n * credential problem rather than a transposition one.\n */\nfunction authHeaderFor(kind: TransposedAuthKind): { readonly name: string; readonly prefix?: string } {\n switch (kind) {\n case TransposedAuthKind.OAUTH2:\n case TransposedAuthKind.SECRET_TEXT:\n return { name: 'Authorization', prefix: 'Bearer ' };\n case TransposedAuthKind.BASIC:\n return { name: 'Authorization', prefix: 'Basic ' };\n case TransposedAuthKind.CUSTOM:\n case TransposedAuthKind.NONE:\n return { name: 'Authorization' };\n }\n}\n\nfunction identifierFor(ref: string): string {\n return ref\n .split(/[^a-zA-Z0-9]+/)\n .filter((part) => part.length > 0)\n .map((part) => part[0]!.toUpperCase() + part.slice(1))\n .join('');\n}\n\n/**\n * The saas-models enums a rendered compliance profile names, so the import line and the literal agree — rendering a\n * member without importing its enum emits a module that reads correctly and does not compile.\n */\nfunction complianceProfileEnumNames(profile: ProviderComplianceProfile): readonly string[] {\n if (profile.determination === ProviderComplianceDetermination.UNDETERMINED) return ['ProviderComplianceDetermination'];\n return ['ProviderComplianceDetermination', 'ProviderDeploymentModel', ...((profile.evidence ?? []).length > 0 ? ['ProviderComplianceFact'] : [])];\n}\n\nfunction complianceProfileEnumImports(profile: ProviderComplianceProfile): string {\n return [...complianceProfileEnumNames(profile)].sort().map((name) => `${name}, `).join('');\n}\n\n/**\n * A compliance profile as a TypeScript literal (#1708), enum MEMBERS rather than their values, for the reason the\n * protocol binding writes `'REST_API'`: the enum is the contract, and a value compiles only by coincidence.\n */\nfunction renderComplianceProfile(profile: ProviderComplianceProfile, indent: string): string {\n const inner = `${indent} `;\n if (profile.determination === ProviderComplianceDetermination.UNDETERMINED) {\n return `{\\n${inner}determination: ProviderComplianceDetermination.UNDETERMINED,\\n${inner}reason: ${quote(profile.reason)},\\n${indent}}`;\n }\n const lines = [\n `determination: ProviderComplianceDetermination.ESTABLISHED,`,\n `deploymentModels: [${profile.deploymentModels.map((model) => `ProviderDeploymentModel.${model}`).join(', ')}],`,\n `processingRegions: [${profile.processingRegions.map(quote).join(', ')}],`,\n ...(profile.vendorLegalEntityName === undefined ? [] : [`vendorLegalEntityName: ${quote(profile.vendorLegalEntityName)},`]),\n ...(profile.subprocessorListUrl === undefined ? [] : [`subprocessorListUrl: ${quote(profile.subprocessorListUrl)},`]),\n ...(profile.dataProcessingAgreementUrl === undefined ? [] : [`dataProcessingAgreementUrl: ${quote(profile.dataProcessingAgreementUrl)},`]),\n ...((profile.evidence ?? []).length === 0 ? [] : [\n 'evidence: [',\n ...(profile.evidence ?? []).map((entry) => ` { facts: [${entry.facts.map((fact) => `ProviderComplianceFact.${fact}`).join(', ')}], source: ${quote(entry.source)}, verifiedAt: ${quote(entry.verifiedAt)} },`),\n '],',\n ]),\n ];\n return `{\\n${lines.map((line) => `${inner}${line}`).join('\\n')}\\n${indent}}`;\n}\n\nfunction quote(value: string): string {\n return JSON.stringify(value);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"provider-package.emitter.js","sourceRoot":"","sources":["../../../../../src/services/framework/provider-transposition/provider-package.emitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAClG,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,oHAAoH;AACpH,gHAAgH;AAChH,OAAO,EAAE,6BAA6B,EAAE,uCAAuC,EAAE,MAAM,+CAA+C,CAAC;AACvI,OAAO,EAAE,iCAAiC,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,+BAA+B,EAAE,YAAY,EAAkC,MAAM,uBAAuB,CAAC;AACtH,OAAO,EACL,0CAA0C,EAC1C,sCAAsC,EACtC,uCAAuC,EACvC,yCAAyC,EACzC,sCAAsC,EACtC,oCAAoC,EACpC,6BAA6B,EAC7B,2BAA2B,EAC3B,0CAA0C,EAC1C,sCAAsC,EACtC,kDAAkD,EAClD,wCAAwC,EACxC,gDAAgD,EAChD,yCAAyC,EACzC,sCAAsC,EACtC,yBAAyB,GAG1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,iCAAiC,EACjC,sBAAsB,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AAK,CAAC,CAAC;AAC/B,CAAC","sourcesContent":["import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs';\nimport { join } from 'node:path';\n\nimport type { CatalogueDecisions, CatalogueLedger, CatalogueVendorRecord } from './provider-catalogue-record';\nimport { CatalogueNotExportedReason } from './provider-catalogue-record';\n// The WHOLE engine registry, for tooling: `./backend` is the door that evaluates every engine module, which is what\n// this process needs to read each engine provider's REST binding (#1673). `./companion` already pays that cost.\nimport { EngineBackendProviderRegistry, providerOperationPathTemplateIsRelative } from '@wildo-ai/external-connectors-private/backend';\nimport { PINNED_DESCRIPTION_SOURCE_VERSION } from './openapi-enrichment';\nimport { ProviderComplianceDetermination, ProviderTier, type ProviderComplianceProfile } from '@wildo-ai/saas-models';\nimport {\n ExternalProvider_Connection_DelegationMode,\n ExternalProvider_Connection_OwnerScope,\n ProviderOAuth2EndpointHostAllowanceKind,\n ProviderOAuth2EndpointPlaceholderPosition,\n ProviderOAuth2ScopePlaceholderPosition,\n ProviderOAuth2IncrementalConsentForm,\n ProviderOAuth2ValueComparison,\n ProviderProtocolRuntimeKind,\n classifyProviderOAuth2EndpointPlaceholders,\n classifyProviderOAuth2ScopePlaceholder,\n describeProviderOAuth2EndpointHostAllowanceDefects,\n describeProviderOAuth2TokenEndpointHosts,\n describeProviderOAuth2ScopeValueAllowanceDefects,\n findProviderOAuth2EndpointTemplateDefects,\n findProviderOAuth2ScopeTemplateDefects,\n providerHostIsUnderSuffix,\n type ProviderOAuth2EndpointHostAllowance,\n type ProviderOAuth2ScopeValueAllowance,\n} from '@wildo-ai/external-connectors-models';\nimport {\n applyRecord,\n ledgerRefs,\n readDecisionRefs,\n readDecisions,\n readLedger,\n readVendorRecords,\n resolveCatalogueComplianceProfile,\n resolveCatalogueVendor,\n unmatchedVendorRecords,\n withdrawVendor,\n writeLedger,\n UnmatchedRecordEntryKind,\n type UnmatchedRecordEntry,\n} from './provider-catalogue-record';\nimport {\n TransposedAuthKind,\n TransposedInputKind,\n TransposedOperationResolution,\n TransposedParameterLocation,\n type TransposedEndpointHostAllowance,\n type TransposedInputField,\n type TransposedOperation,\n type TransposedProvider,\n type TransposedShape,\n} from './transposed-provider.model';\n\n/**\n * Writes every transposed vendor into ONE package with a subpath export each.\n *\n * **Archived (#2019, epic #2012).** The package this writes, `@wildo-ai/providers`, no longer ships:\n * it lives at `_code_archive/providers/`, is not a workspace member and is not published, and the\n * importer is frozen to write only there, as seeds a person adopts from by hand into\n * `providers-registry/<ref>/`. An application reaches a provider through `wildo registry add\n * wildo/providers/<ref>`. The package name below is kept because it describes the archive. What\n * follows is the reasoning the one-package shape was built on, kept as its record.\n *\n * Decided by Paul on 2026-09-06, replacing 684 separate packages, and the deciding constraint was\n * npm rather than anything measured inside the repository:\n *\n * - **Trademark.** 684 packages meant 684 names carrying other companies' marks —\n * `@wildo-ai/provider-slack`, `-hubspot`, `-stripe`. As subpaths the vendor name appears in\n * `@wildo-ai/providers/slack`, which is a materially smaller footprint: one published name, ours.\n * - **npm's spam policy** targets bulk-published low-content package families, which is exactly the\n * SHAPE of 684 auto-generated 15 KB packages published in one run, however legitimate they are.\n * - **Publish mechanics.** One version, one tarball, one 2FA-gated publish, one security surface —\n * instead of 684 of each, rate-limited.\n *\n * What it costs, stated plainly: an application installs every vendor's definitions (5.4 MB of\n * source) rather than only the ones it declares. That is the trade, and it is affordable because the\n * cost is DISK rather than memory — nothing loads until a subpath is imported.\n *\n * ## No root barrel, deliberately\n *\n * There is no `src/index.ts`, and there must never be one. A root barrel re-exporting 684 vendors\n * would let a single careless import pull 6,518 operations into a process's module graph, which is\n * precisely what a subpath-only package exists to prevent — and it would undo the lazy catalogue\n * loading the engine contract requires. The only way in is a vendor's own subpath.\n */\n\nexport interface EmitPackageOptions {\n /** Absolute path of the package root (`<repo>/_code_archive/providers`). */\n readonly packageRoot: string;\n readonly providers: readonly TransposedProvider[];\n /** Operations the readers refused, by vendor ref, written beside each vendor's source. */\n readonly unreadableByVendor: ReadonlyMap<string, readonly TransposedOperation[]>;\n /**\n * Whether this run covered EVERY vendor of EVERY configured catalogue.\n *\n * Only a full batch may conclude that a record entry matching nothing is stale, because only a\n * full batch looked everywhere. A filtered or single-catalogue run reports and withdraws nothing.\n */\n readonly fullBatch: boolean;\n /**\n * Record entries found stale BEFORE the emitter — today the `openApiDescription` pins the enrichment judged\n * (#1572). Reconciled with every other unmatched entry, so a stale pin refuses a full batch before anything is\n * written, exactly as a stale host allowance does.\n */\n readonly unmatchedBeforeEmit?: readonly UnmatchedRecordEntry[];\n /**\n * The providers the ENGINE owns, by ref, with what an augmentation of each needs to know (#1673). Defaults to the\n * engine's own registry; a test supplies its own so the augmentation path can be exercised on a base shape the\n * engine does not ship yet.\n */\n readonly engineBases?: ReadonlyMap<string, EngineOwnedBase>;\n}\n\n/**\n * One engine-owned provider, as the catalogue sees it when an entry collides with its ref (#1673).\n *\n * `restBaseUrl` is the literal base URL of the engine provider's REST binding: an augmentation's operations run on\n * THAT base (#1672), so the catalogue entry's paths are only right when they are relative to the same one. `null`\n * when the binding names its base through the deployment (`baseUrlEnvVarName`), which no generator can compare.\n */\nexport interface EngineOwnedBase {\n readonly ref: string;\n readonly hasRestArm: boolean;\n readonly restBaseUrl: string | null;\n}\n\nexport interface EmitPackageResult {\n readonly vendors: number;\n /**\n * Which refs actually got a subpath, and how many operations each carries.\n *\n * Reported rather than left to be re-derived, because `vendorExportBlocker` has several clauses and a\n * caller reconstructing it will miss one — the inventory did, on the engine-owned clause, and\n * over-reported 707 exports against 682 emitted. The same reason the plan and the emit share one\n * predicate: a second implementation is a thing that disagrees.\n */\n readonly exportedOperationCounts: ReadonlyMap<string, number>;\n readonly executableOperations: number;\n readonly pendingOperations: number;\n readonly unreadableOperations: number;\n /**\n * Operations the coherence guard refused, by vendor ref and reason code.\n *\n * Measured 2026-09-07: this population was 856 operations across 100 vendors, and it left the\n * catalogue with no count in this result, no entry in any vendor's sidecar and no line in the\n * run's report — while the invariant table read `PATH parameters nothing feeds: 0`, which was\n * true of the survivors and true BECAUSE the guard had removed the rest. A metric satisfied by\n * the deletion it exists to detect is not a metric. See issue #392.\n */\n readonly refusedByVendor: ReadonlyMap<string, ReadonlyMap<EmitRefusalReason, number>>;\n /**\n * Vendors whose refusal count MOVED since the previous run, and by how much per reason.\n *\n * Growth is ordinary — an upstream catalogue adding an operation with a positionally-named path\n * hole produces it — so this is reported and never refused. It is here so that a change nobody\n * asked for is seen in the run rather than only in a 738-file diff.\n */\n readonly refusalMovement: ReadonlyMap<string, Readonly<Record<string, number>>>;\n /**\n * Every vendor the batch read that exports NO provider, with why (Paul, 2026-09-14: \"no operation, no providers\n * exported\", and the story persisted). The inventory copies it, so an absent subpath always has a recorded cause.\n */\n readonly notExported: ReadonlyMap<string, VendorNotExported>;\n /**\n * The exported refs that ship as an AUGMENTATION of the engine provider owning the ref rather than as a provider of\n * their own (#1673). A subset of {@link exportedOperationCounts}'s keys; the inventory marks them\n * `AUGMENTS_ENGINE_REF`.\n */\n readonly augmentingRefs: ReadonlySet<string>;\n /**\n * The hand-authored browser facets the package ships (#1700), read by the plan and the emit from the same directory\n * listing, so a dry run reports the subpaths and the count a real emit would write.\n */\n readonly frontendFacets: readonly AuthoredFrontendFacet[];\n}\n\n/** Why one vendor exports no provider. See {@link vendorExportBlocker}. */\nexport interface VendorNotExported {\n readonly reason: CatalogueNotExportedReason;\n /** AUGMENTATION_BASE_URL_DIFFERS only: the engine binding's base URL and the one this entry's paths are relative to. */\n readonly augmentationBaseUrls?: { readonly engine: string | null; readonly catalogue: string | null };\n /** BASE_URL_HOST_NOT_ADMITTED only: the base-URL host placeholders no allowance admits. */\n readonly baseUrlHostsNotAdmitted?: readonly string[];\n /** BASE_URL_NOT_ANSWERABLE only: the base-URL placeholders no connection door answers (#1097). */\n readonly baseUrlPlaceholdersUnanswered?: readonly string[];\n}\n\n/**\n * Why an otherwise-resolved operation was not emitted.\n *\n * A closed vocabulary rather than a sentence, because the ACCEPTANCE of a refusal is stored as a\n * per-vendor shrink-only baseline keyed by this code — the shape `spec-citations.baseline.json` and\n * `check:invented-display-text` already use — so that a NEW refusal stands out against an\n * understood one. The list of refused ids is deliberately NOT stored: the guard re-derives it every\n * run, and a stored copy would rot the first time a hole is named.\n */\nexport enum EmitRefusalReason {\n /**\n * A listing the reader derived from a dropdown (#1045) that no exported operation of the vendor picks from —\n * its picker's operation was itself refused, or the listing's endpoint was renamed past recognition. A listing\n * serves a picker and nothing else, so one with no picker is not an operation an application would call.\n */\n LISTING_WITHOUT_PICKER = 'LISTING_WITHOUT_PICKER',\n /** No path template at all, or `/` — there is no endpoint to call. */\n NO_PATH_TEMPLATE = 'NO_PATH_TEMPLATE',\n /** A `{hole}` in the path that the operation's own parameters never declare. */\n UNDECLARED_PATH_HOLE = 'UNDECLARED_PATH_HOLE',\n /**\n * A PATH parameter no input field feeds. Dominated by positionally-named holes (`{param1}`,\n * `{param2}`) where the source's URL expression was too complex to name, and `declareWhatTheWireNeeds`\n * declines to invent a name because an input called `param1` is a sentence no caller can act on.\n */\n UNFED_PATH_PARAMETER = 'UNFED_PATH_PARAMETER',\n /**\n * A path template that is not a PATH — it carries whitespace, so it is a query language the source\n * expressed as a URL rather than an endpoint.\n *\n * Measured 2026-09-09 across 4,328 emitted operations: THREE, all Salesforce, all SOQL —\n * `/SELECT FIELDS(ALL) FROM {object} WHERE {field} = '…' LIMIT 200`. Salesforce takes SOQL in a\n * QUERY PARAMETER (`/services/data/vXX.0/query?q=…`), never in the path, so each of the three\n * would have requested a nonsense URL. They shipped as callable and typechecked perfectly.\n *\n * Whitespace, and NOT the quotes or parentheses a first pass reached for. Eleven operations carry\n * one of those and eight are correct: OData addresses a resource as\n * `/workbook/worksheets('{sheetName}')/range(address='{address}')`, where both are legal inside a\n * path segment. A space is not legal unencoded, so it is the one character that separates a\n * malformed path from an unusual one.\n */\n PATH_TEMPLATE_IS_NOT_A_PATH = 'PATH_TEMPLATE_IS_NOT_A_PATH',\n}\n\nconst PACKAGE_NAME = '@wildo-ai/providers';\n\n/**\n * Where a HUMAN supplements a generated vendor.\n *\n * `providers/src/_authored/<ref>.authored.ts`. It lives INSIDE `src/` because the package compiles\n * with `rootDir: \"./src\"` and an `authored/` sibling would need a different dist layout and a\n * different exports map for one file — churn in the two places a mistake is most expensive.\n *\n * So the replace narrows instead: the emitter removes every child of `src/` that does not begin with\n * `_`, and everything it writes is a vendor directory or a root module. The underscore is the whole\n * convention — hand-owned, never regenerated — which is checkable in one line rather than a growing\n * list of names to remember.\n *\n * The file is TypeScript rather than JSON on purpose: an authored operation carries a Zod input\n * schema, and it is checked against the SAME contract the generated ones satisfy, by the same\n * compiler, in the same package. A JSON supplement could express neither.\n */\nconst AUTHORED_DIRECTORY = 'src/_authored';\n\nconst AUTHORED_FILE_SUFFIX = '.authored.ts';\n/** From `src/<ref>/backend.exports.ts` across to `src/_authored/`. */\nconst AUTHORED_IMPORT_PREFIX = '../_authored/';\n/** The import specifier drops `.ts`, which the emitted module resolves through the package's own tsconfig. */\nconst AUTHORED_FILE_SUFFIX_IMPORT = '.authored';\n\n/**\n * Which vendors a human has supplemented.\n *\n * Discovered by LISTING rather than by evaluating: the emitter never loads an authored file, so a\n * supplement that does not compile fails the package typecheck — where a compiler explains it — and\n * not the batch, where it would take 693 unrelated vendors down with it.\n */\nfunction readAuthoredVendors(packageRoot: string): ReadonlySet<string> {\n const directory = join(packageRoot, AUTHORED_DIRECTORY);\n if (!existsSync(directory)) return new Set();\n return new Set(\n readdirSync(directory)\n .filter((entry) => entry.endsWith(AUTHORED_FILE_SUFFIX))\n .map((entry) => entry.slice(0, -AUTHORED_FILE_SUFFIX.length)),\n );\n}\n\n/**\n * The browser facets a frontend provider may be authored for (#1700), as the file name, the package subpath segment\n * and the facet contract each one satisfies.\n *\n * Closed on purpose: a facet is one of the three browser surfaces the framework composes, each with its own contract\n * in `@wildo-ai/external-connectors-public`, and a fourth name would be a file no surface loads.\n */\nexport enum ProviderPackageFrontendFacet {\n APP = 'frontend-app',\n WEBSITE = 'frontend-website',\n TECHDOC = 'frontend-techdoc',\n}\n\n/** The `AppFrontendType` member a facet's contribution targets, written as the source text the barrel emits. */\nconst FRONTEND_FACET_SERVICE_TYPE: Readonly<Record<ProviderPackageFrontendFacet, string>> = {\n [ProviderPackageFrontendFacet.APP]: 'AppFrontendType.SAAS_APP',\n [ProviderPackageFrontendFacet.WEBSITE]: 'AppFrontendType.STATIC_WEBSITE',\n [ProviderPackageFrontendFacet.TECHDOC]: 'AppFrontendType.TECH_DOC',\n};\n\n/**\n * Where a HUMAN authors a vendor's BROWSER part (#1700): `providers/src/_frontend/<ref>/<facet>.ts`, exporting\n * `frontendFacet`.\n *\n * ## Why authored, and why this emitter only DETECTS it\n *\n * The three transposition sources — Activepieces pieces, Sim tools, vendors' OpenAPI documents — are server-side\n * integration catalogues. None carries an SDK package, a script or frame origin, or a public-key vocabulary, and a\n * facet is half CODE (`components[capability].load`, `sdk.activate`), which data cannot generate. So no regeneration\n * will ever produce one, and the record says so (`catalogue-record/frontend-facets.json`) rather than implying that a\n * later batch will fill the gap.\n *\n * Underscore-prefixed, like `_authored/`, so the WRITE step's \"delete every non-underscore\n * child of `src/`\" leaves it alone. A separate directory from `_authored/` because the two are opposite trust zones:\n * an authored supplement is BACKEND code that may reach the secrets-bound runtime, a facet is imported into a\n * browser bundle, and the package's bundle-isolation test walks `_frontend/` as the browser side.\n *\n * Discovered by LISTING, never by loading, for the same reason as `_authored/`: a facet that does not compile fails\n * the package typecheck, where a compiler explains it, and not the batch.\n */\nconst FRONTEND_FACET_DIRECTORY_NAME = '_frontend';\n\n/** One authored facet: the vendor ref (its directory) and which browser surface it serves (its file name). */\nexport interface AuthoredFrontendFacet {\n readonly ref: string;\n readonly facet: ProviderPackageFrontendFacet;\n}\n\n/** The authored frontend facets under `src/_frontend/`, sorted by ref then facet so every artifact built from them is stable. */\nexport function readAuthoredFrontendFacets(packageRoot: string): readonly AuthoredFrontendFacet[] {\n const directory = join(packageRoot, 'src', FRONTEND_FACET_DIRECTORY_NAME);\n if (!existsSync(directory)) return [];\n const facetsByFile = new Map<string, ProviderPackageFrontendFacet>(Object.values(ProviderPackageFrontendFacet).map((facet) => [`${facet}.ts`, facet]));\n const found: AuthoredFrontendFacet[] = [];\n for (const entry of readdirSync(directory, { withFileTypes: true })) {\n // `__tests__` and any other underscore-prefixed child are not vendors.\n if (!entry.isDirectory() || entry.name.startsWith('_')) continue;\n for (const file of readdirSync(join(directory, entry.name))) {\n const facet = facetsByFile.get(file);\n if (facet !== undefined) found.push({ ref: entry.name, facet });\n }\n }\n return found.sort((left, right) => left.ref.localeCompare(right.ref) || left.facet.localeCompare(right.facet));\n}\n\n/** `./<ref>/<facet>` — the subpath an application's generated frontend module imports. */\nfunction frontendFacetSubpath(facet: AuthoredFrontendFacet): string {\n return `./${facet.ref}/${facet.facet}`;\n}\n\n/** The export-map entries for every authored facet: a browser door per facet, separate from `backend.exports.ts`. */\nfunction renderFrontendFacetExports(facets: readonly AuthoredFrontendFacet[]): Record<string, unknown> {\n return Object.fromEntries(facets.map((facet) => [frontendFacetSubpath(facet), {\n source: `./src/${FRONTEND_FACET_DIRECTORY_NAME}/${facet.ref}/${facet.facet}.ts`,\n types: `./dist/esm/${FRONTEND_FACET_DIRECTORY_NAME}/${facet.ref}/${facet.facet}.d.ts`,\n default: `./dist/esm/${FRONTEND_FACET_DIRECTORY_NAME}/${facet.ref}/${facet.facet}.js`,\n }]));\n}\n\n/**\n * What the companion barrel adds for the authored facets: one import per facet, and one contribution each, built by\n * the engine's own `projectFrontendProviderContribution` — the one place a facet becomes a discovery record, which\n * also refuses a facet with no readable key list (#1705), a script its own CSP does not grant, or an unclassified\n * capability. The contribution's `runtimeImportPath` is the facet's subpath, which is what `wildo config sync`\n * writes into a service's `frontend-providers.generated.ts`.\n *\n * Empty strings when there is no facet, so a package with none is byte-identical to one written before facets existed.\n */\nfunction renderFrontendFacetCompanion(facets: readonly AuthoredFrontendFacet[]): { readonly imports: string; readonly contributions: string } {\n if (facets.length === 0) return { imports: '', contributions: '' };\n const binding = (index: number): string => `frontendFacet${index}`;\n const imports = [\n \"import { AppFrontendType } from '@wildo-ai/saas-models';\",\n \"import { projectFrontendProviderContribution } from '@wildo-ai/external-connectors-public/companion';\",\n ...facets.map((facet, index) =>\n // `.js` written out, as `operations.generated.js` is: the alias finalizer rewrites an extensionless literal in the\n // BUILT emitter only, so leaving it off made a source run and a dist run emit different bytes.\n `import { frontendFacet as ${binding(index)} } from './${FRONTEND_FACET_DIRECTORY_NAME}/${facet.ref}/${facet.facet}.js';`),\n ].join('\\n');\n const contributions = facets.map((facet, index) =>\n ` projectFrontendProviderContribution(${binding(index)}, ${FRONTEND_FACET_SERVICE_TYPE[facet.facet]}, ${quote(`${PACKAGE_NAME}/${facet.ref}/${facet.facet}`)}),`,\n ).join('\\n');\n return {\n imports: `\\n// Hand-authored BROWSER facets (#1700): detected under src/${FRONTEND_FACET_DIRECTORY_NAME}/, never generated.\\n${imports}`,\n contributions: `\\n // Hand-authored browser facets (#1700), projected by the engine so each carries exactly what its module declares.\\n${contributions}`,\n };\n}\n\n/**\n * `catalogue-record/frontend-facets.json`: how many vendors have a browser part, which ones, and WHY the number is\n * small — derived on every emit, so it cannot drift from the facets on disk.\n */\nfunction renderFrontendFacetRecord(facets: readonly AuthoredFrontendFacet[], exportedRefs: ReadonlySet<string>): string {\n const vendorsWithFacet = new Set(facets.map((facet) => facet.ref));\n return `${JSON.stringify({\n reason:\n 'No transposition source carries browser facts: Activepieces pieces, Sim tools and OpenAPI documents are server-side '\n + 'integration catalogues with no SDK package, no script or frame origin and no public-key vocabulary, and a frontend '\n + `facet is half code. Frontend facets are therefore authored by hand under src/${FRONTEND_FACET_DIRECTORY_NAME}/<ref>/, `\n + 'and a regeneration never produces one.',\n exportedVendors: exportedRefs.size,\n vendorsWithFrontendFacet: vendorsWithFacet.size,\n facets: facets.map((facet) => ({\n ref: facet.ref,\n facet: facet.facet,\n subpath: frontendFacetSubpath(facet),\n source: `src/${FRONTEND_FACET_DIRECTORY_NAME}/${facet.ref}/${facet.facet}.ts`,\n // A facet for a ref the catalogue does not export is legitimate (a browser-only vendor) and reported as such.\n hasCatalogueBackendPart: exportedRefs.has(facet.ref),\n })),\n }, null, 2)}\\n`;\n}\n\n/**\n * An operation whose declaration disagrees with its own path template is not emitted.\n *\n * The executor binds a `{token}` from a declared PATH parameter. A hole with no parameter cannot be\n * bound and the call goes out with a literal `{token}` in the URL; a path with no holes at all is a\n * template that lost its subject. Both are broken operations that TYPECHECK perfectly — the shape is\n * right and the content disagrees with itself — which is why the check has to exist here rather than\n * being left to the compiler. Measured when it was added: 18 unbound holes and 11 empty paths across\n * 6,955 operations, every one of which would have failed at the vendor rather than at the batch.\n *\n * Refused rather than repaired: the mapper cannot know what the vendor meant by a hole nobody named.\n */\n/**\n * A parameter the operation declares but its input does not — DECLARED, not dropped and not refused.\n *\n * This replaces refusing 1,334 operations, and the reconsideration is worth writing down. A parameter\n * with no feeding input field is a gap in the DOCUMENTATION, not proof that the operation is\n * impossible: the value is one the vendor's own URL asks for, the name comes from that URL, and the\n * input schema is loose, so a caller who knows to pass it already can. Refusing the operation\n * withheld a capability to punish a missing sentence.\n *\n * So the missing sentence is written instead. The field is named after what the compiler will look\n * for (`from ?? name`), required exactly when the wire position requires it — a path cannot have a\n * hole — and described as coming from the request rather than from a source that never mentioned it.\n * Nothing is guessed: every name here is one the source's own URL template or query bag states.\n *\n * What still refuses, in `refusalReason`, is the case this cannot honestly repair: a hole named\n * positionally (`param1`), where the source's expression was too complex to name. Declaring an input\n * called `param1` would be a sentence no caller can act on.\n */\nfunction declareWhatTheWireNeeds(operation: TransposedOperation): TransposedOperation {\n const declared = new Set(operation.inputFields.map((field) => field.name));\n const missing: TransposedInputField[] = [];\n\n for (const parameter of operation.parameters) {\n if (parameter.in === TransposedParameterLocation.BODY) continue;\n const feeder = parameter.from ?? parameter.name;\n if (declared.has(feeder) || /^param\\d+$/.test(feeder)) continue;\n // A credential is resolved, never asked for — except in a PATH, where the name is a resource id\n // wearing a credential's spelling and nothing but the caller can supply it.\n if (parameter.in !== TransposedParameterLocation.PATH && callerSuppliesNoCredential(feeder)) continue;\n declared.add(feeder);\n missing.push({\n name: feeder,\n kind: parameter.in === TransposedParameterLocation.PATH ? TransposedInputKind.WIRE_SCALAR : TransposedInputKind.WIRE_SCALAR_OR_LIST,\n required: parameter.in === TransposedParameterLocation.PATH,\n // A parameter carries a description only when the vendor's own document gave one (#1572); the\n // vendor's sentence is what a caller needs, and where it goes on the wire still follows it.\n description: `${parameter.description === undefined ? '' : `${parameter.description.replace(/\\s+$/, '')} `}Sent as the ${parameter.in} parameter \\`${parameter.name}\\`.`,\n });\n }\n\n return missing.length === 0 ? operation : { ...operation, inputFields: [...operation.inputFields, ...missing] };\n}\n\nfunction refusalReason(operation: TransposedOperation): EmitRefusalReason | undefined {\n const template = operation.pathTemplate ?? '';\n if (template === '' || template === '/') return EmitRefusalReason.NO_PATH_TEMPLATE;\n // Before asking anything about the HOLES, ask whether this is a path at all — see the enum member.\n if (/\\s/.test(template)) return EmitRefusalReason.PATH_TEMPLATE_IS_NOT_A_PATH;\n const pathParameters = operation.parameters.filter((parameter) => parameter.in === TransposedParameterLocation.PATH);\n const declared = new Set(pathParameters.map((parameter) => parameter.name));\n if (![...template.matchAll(/\\{([^}]+)\\}/g)].every((match) => declared.has(match[1]!))) return EmitRefusalReason.UNDECLARED_PATH_HOLE;\n\n // A PATH parameter no input field can feed makes the operation UNEXECUTABLE by anyone following its\n // own types: the compiler reads `from ?? name`, finds nothing in the input, and refuses with\n // INPUT_INCOMPLETE before a socket opens. Measured when this clause was added: 1,722 operations\n // across 313 vendors shipped in exactly that state, every one of them typechecking perfectly.\n //\n // Only checked when the operation HAS an input schema. An operation that declares no input at all\n // passes its input through unvalidated, which the contract permits, and there is nothing to\n // disagree with.\n // A POSITIONALLY-NAMED path hole is refused whatever feeds it, and BEFORE the pass-through escape\n // below. `{param2}` is not a parameter a caller can supply: the name carries no meaning, so even a\n // correctly-wired input leaves the operation uncallable by anyone who did not read the vendor's\n // own URL. This is the shape the reason code was written for, and 856 operations are refused for\n // it — but exactly one reached the package, because it declares NO input fields and the escape\n // below returned early. `ninox`'s `trigger.newRecord.poll` shipped as `GET /{param2}` with a\n // required path parameter called `param2`.\n //\n // The escape is right for a BODY or QUERY it cannot see: pass-through is a real contract, and the\n // caller supplies whatever the vendor wants. It is wrong for a PATH hole, which is structural —\n // the URL cannot be built without it, so \"unvalidated pass-through\" is not an answer, it is a\n // request the caller has no way to satisfy.\n if ([...template.matchAll(/\\{([^}]+)\\}/g)].some((match) => /^param\\d+$/.test(match[1]!))) {\n return EmitRefusalReason.UNFED_PATH_PARAMETER;\n }\n\n if (operation.inputFields.length === 0) return undefined;\n const fields = new Set(operation.inputFields.map((field) => field.name));\n return pathParameters.every((parameter) => fields.has(parameter.from ?? parameter.name)) ? undefined : EmitRefusalReason.UNFED_PATH_PARAMETER;\n}\n\nexport function emitProvidersPackage(options: EmitPackageOptions): EmitPackageResult {\n const sourceRoot = join(options.packageRoot, 'src');\n const authoredVendors = readAuthoredVendors(options.packageRoot);\n const frontendFacets = readAuthoredFrontendFacets(options.packageRoot);\n // Today's date is read ONCE, so every row a single run writes carries the same `firstEmitted` and\n // a batch spanning midnight does not produce two answers to one question.\n const today = new Date().toISOString().slice(0, 10);\n\n // ── PLAN ─────────────────────────────────────────────────────────────────────────────────────\n // Nothing is written and nothing is deleted until the record has reconciled. A refusal that fires\n // halfway through leaves a package with vendor directories and no `companion-exports.ts` — a\n // correct refusal with a broken outcome, which is worse than either alone.\n const planned: {\n readonly provider: TransposedProvider;\n readonly resolved: readonly TransposedOperation[];\n readonly pendingOperations: readonly TransposedOperation[];\n readonly refusals: ReadonlyMap<EmitRefusalReason, number>;\n readonly ledger: CatalogueLedger;\n readonly exported: boolean;\n /** Exported as an augmentation of the engine provider owning the ref, not as a provider (#1673). */\n readonly augments: boolean;\n readonly notExported: VendorNotExported | undefined;\n readonly decisions: CatalogueDecisions | undefined;\n readonly vendorRecord: CatalogueVendorRecord | undefined;\n /** Researched from the record, or UNDETERMINED (#1708). Resolved in the PLAN so a malformed record refuses before any write. */\n readonly complianceProfile: ProviderComplianceProfile;\n }[] = [];\n const refusedByVendor = new Map<string, ReadonlyMap<EmitRefusalReason, number>>();\n const seenRefs = new Set<string>();\n const unmatchedRecordEntries: UnmatchedRecordEntry[] = [...(options.unmatchedBeforeEmit ?? [])];\n const refusalMovement = new Map<string, Readonly<Record<string, number>>>();\n const engineBases = options.engineBases ?? ENGINE_OWNED_BASES;\n const vendorRecords = readVendorRecords(options.packageRoot);\n unmatchedRecordEntries.push(...unmatchedVendorRecords(options.packageRoot, vendorRecords));\n /** Per vendor whose record declines connection values and that this batch produced a ref of: the values some ref offered. */\n const declinedValuesMatchedByVendor = new Map<string, Set<string>>();\n let executable = 0;\n let pending = 0;\n let unreadable = 0;\n\n for (const recovered of options.providers) {\n // The recovered base URL is replaced by the deployment's BEFORE anything reads it, when a decision says so (F10).\n const deploymentNamed = applyBaseUrlNamedByDeployment(recovered, readDecisions(options.packageRoot, recovered.ref));\n unmatchedRecordEntries.push(...deploymentNamed.unmatched);\n // Connection values the vendor declines (#1937) leave the provider BEFORE anything reads its allowances, so no\n // emitted allowance, token-host set or derived host table can admit them.\n const recoveredVendor = resolveCatalogueVendor(recovered.ref, readDecisions(options.packageRoot, recovered.ref));\n const declined = applyVendorUnsupportedConnectionValues(deploymentNamed.provider, vendorRecords.get(recoveredVendor));\n if (vendorRecords.get(recoveredVendor)?.unsupportedConnectionValues !== undefined) {\n const matched = declinedValuesMatchedByVendor.get(recoveredVendor) ?? new Set<string>();\n for (const value of declined.matched) matched.add(value);\n declinedValuesMatchedByVendor.set(recoveredVendor, matched);\n }\n const provider = declined.provider;\n const plan = planVendor(provider);\n if (plan.refusals.size > 0) refusedByVendor.set(provider.ref, plan.refusals);\n pending += plan.pendingOperations.length;\n unreadable += (options.unreadableByVendor.get(provider.ref) ?? []).length;\n\n // IDENTITY comes from the ledger, not from this run's derivation. An id an application already\n // calls survives a source rename, a re-ordering and a new collision; only an operation the\n // ledger has never seen gets a freshly derived id. This is the whole point of #390.\n const applied = applyRecord({\n provider,\n operations: plan.resolved,\n pending: plan.pendingOperations,\n ledger: readLedger(options.packageRoot, provider.ref),\n decisions: readDecisions(options.packageRoot, provider.ref),\n refusals: plan.refusals,\n today,\n });\n unmatchedRecordEntries.push(...applied.unmatched);\n // The OAuth2 host decisions are checked in the PLAN, with the rest of the record, so a stale one\n // refuses a full batch before anything is written.\n unmatchedRecordEntries.push(...resolveOAuth2EndpointHostAllowances(provider, readDecisions(options.packageRoot, provider.ref)).unmatched);\n unmatchedRecordEntries.push(...unmatchedMergedCatalogueEntries(provider, readDecisions(options.packageRoot, provider.ref)));\n // Base-URL host decisions (#1015) are checked in the PLAN too, so a stale or unsound one refuses before any write.\n unmatchedRecordEntries.push(...resolveBaseUrlHostAllowances(provider, readDecisions(options.packageRoot, provider.ref)).unmatched);\n unmatchedRecordEntries.push(...resolveReportedAccountFacts(provider, readDecisions(options.packageRoot, provider.ref)).unmatched);\n // A RECORDED host decision is the other source of an allowance, and the vendor's declines bind it too (#1937).\n assertRecordedAllowancesHonourVendorDeclines(provider, readDecisions(options.packageRoot, provider.ref), vendorRecords.get(recoveredVendor));\n // Evaluated in the PLAN so a contradictory operation-base-URL decision refuses before the tree is replaced.\n operationBaseUrlHostEnvVarName(provider, readDecisions(options.packageRoot, provider.ref));\n // The vendor a ref is emitted under, and what that vendor's record asks of the ref (#1673) — both in the PLAN, so a\n // malformed `vendor`, or a ref its vendor's authorization server does not serve, refuses before anything is written.\n const vendor = resolveCatalogueVendor(provider.ref, readDecisions(options.packageRoot, provider.ref));\n unmatchedRecordEntries.push(...resolveVendorIncrementalConsent(provider, readDecisions(options.packageRoot, provider.ref), vendorRecords.get(vendor)).unmatched);\n if (Object.keys(applied.refusalDelta).length > 0) refusalMovement.set(provider.ref, applied.refusalDelta);\n seenRefs.add(provider.ref);\n executable += applied.operations.length;\n\n // `scrape: false` withholds the SUBPATH and nothing else. The vendor is still emitted and its\n // ledger still maintained, so re-enabling it cannot renumber ids an application called before it\n // was withheld — which is exactly the breakage this record exists to prevent.\n //\n // A vendor with nothing executable is likewise not exported: a subpath that resolves to auth and\n // no operations looks complete to everyone downstream and can do nothing.\n const decisions = readDecisions(options.packageRoot, provider.ref);\n const notExported = vendorExportBlocker(provider.ref, applied.operations.length, decisions, provider, engineBases);\n const augments = notExported === undefined && shipsAsEngineAugmentation(provider.ref, engineBases);\n // An authored supplement cannot follow an augmentation: `withAuthoredSupplement` replaces a module this package\n // OWNS and may rewrite its auth, and an augmentation owns neither (#1672). Refused in the PLAN, before the tree is\n // replaced, rather than dropped.\n if (augments) assertAugmentationPathsAreRelative(provider, applied.operations);\n if (augments && authoredVendors.has(provider.ref)) {\n throw new Error(`${AUTHORED_DIRECTORY}/${provider.ref}${AUTHORED_FILE_SUFFIX} supplements '${provider.ref}', which ships as an augmentation of the engine's provider. An augmentation carries operations only: supplement the engine provider, or remove the authored file.`);\n }\n planned.push({\n provider,\n resolved: applied.operations,\n pendingOperations: plan.pendingOperations,\n refusals: plan.refusals,\n ledger: applied.ledger,\n exported: notExported === undefined,\n augments,\n notExported,\n decisions,\n vendorRecord: vendorRecords.get(vendor),\n complianceProfile: resolveCatalogueComplianceProfile(provider.ref, decisions, vendorRecords.get(vendor)),\n });\n }\n\n unmatchedRecordEntries.push(...unmatchedVendorUnsupportedConnectionValues(vendorRecords, declinedValuesMatchedByVendor));\n reconcileRecord({\n packageRoot: options.packageRoot,\n seenRefs,\n unmatched: unmatchedRecordEntries,\n fullBatch: options.fullBatch,\n today,\n });\n\n // ── WRITE ────────────────────────────────────────────────────────────────────────────────────\n // A regeneration REPLACES the vendor tree. A vendor that disappears upstream must disappear here,\n // and leaving its directory behind would keep a subpath exported that the package no longer\n // describes — a door onto a room that was demolished.\n //\n // Everything EXCEPT an underscore-prefixed child: those are hand-owned and survive by convention\n // (`src/_authored/`). One rule, checkable in a line, rather than a list of exceptions to remember.\n mkdirSync(sourceRoot, { recursive: true });\n for (const entry of readdirSync(sourceRoot)) {\n if (entry.startsWith('_')) continue;\n rmSync(join(sourceRoot, entry), { recursive: true, force: true });\n }\n\n const emitted: TransposedProvider[] = [];\n const augmenting: { readonly provider: TransposedProvider; readonly operations: readonly TransposedOperation[] }[] = [];\n for (const entry of planned) {\n writeLedger(options.packageRoot, entry.ledger);\n if (!entry.exported) continue;\n emitted.push(entry.provider);\n\n const directory = join(sourceRoot, entry.provider.ref);\n mkdirSync(directory, { recursive: true });\n writeFileSync(join(directory, 'operations.generated.ts'), renderOperations(entry.provider, entry.resolved), 'utf8');\n if (entry.augments) {\n augmenting.push({ provider: entry.provider, operations: entry.resolved });\n writeFileSync(join(directory, 'backend.exports.ts'), renderAugmentationModule(entry.provider, entry.resolved), 'utf8');\n } else {\n writeFileSync(\n join(directory, 'backend.exports.ts'),\n renderBackendModule(entry.provider, entry.resolved, authoredVendors.has(entry.provider.ref), entry.decisions, entry.vendorRecord, entry.complianceProfile),\n 'utf8',\n );\n }\n writeFileSync(\n join(directory, 'pending-operations.json'),\n `${JSON.stringify(\n {\n provider: entry.provider.ref,\n pending: entry.pendingOperations,\n unreadable: options.unreadableByVendor.get(entry.provider.ref) ?? [],\n refusedAtEmit: Object.fromEntries(entry.refusals),\n },\n null,\n 2,\n )}\\n`,\n 'utf8',\n );\n }\n\n const augmentingRefs = new Set(augmenting.map(({ provider }) => provider.ref));\n writeFileSync(\n join(sourceRoot, 'companion-exports.ts'),\n renderCompanionExports(\n emitted.filter((provider) => !augmentingRefs.has(provider.ref)),\n new Map(planned.filter((e) => e.decisions !== undefined).map((e) => [e.provider.ref, e.decisions!])),\n augmenting,\n new Map(planned.map((e) => [e.provider.ref, e.complianceProfile])),\n frontendFacets,\n ),\n 'utf8',\n );\n writeFileSync(\n join(options.packageRoot, 'package.json'),\n renderPackageJson(emitted, readExistingPackageVersion(options.packageRoot), augmenting.length > 0, frontendFacets),\n 'utf8',\n );\n mkdirSync(join(options.packageRoot, 'catalogue-record'), { recursive: true });\n writeFileSync(\n join(options.packageRoot, 'catalogue-record', 'frontend-facets.json'),\n renderFrontendFacetRecord(frontendFacets, new Set(emitted.map((provider) => provider.ref))),\n 'utf8',\n );\n writeFileSync(join(options.packageRoot, 'tsconfig.build.json'), renderBuildTsconfig(), 'utf8');\n writeFileSync(join(options.packageRoot, 'tsconfig.json'), renderTypecheckTsconfig(), 'utf8');\n writeFileSync(join(options.packageRoot, 'NOTICE'), renderNotice(emitted), 'utf8');\n\n return {\n vendors: emitted.length,\n // Built from the same `exported` flag that decides whether a directory is written and whether the\n // ref reaches the package manifest and the companion barrel, so this cannot disagree with what\n // shipped. `emitted` itself carries no operation count, which is why this reads `planned`.\n exportedOperationCounts: new Map(\n planned.filter((entry) => entry.exported).map((entry) => [entry.provider.ref, entry.resolved.length]),\n ),\n notExported: new Map(planned.flatMap((entry) => (entry.notExported === undefined ? [] : [[entry.provider.ref, entry.notExported] as const]))),\n augmentingRefs,\n frontendFacets,\n executableOperations: executable,\n pendingOperations: pending,\n unreadableOperations: unreadable,\n refusedByVendor,\n refusalMovement,\n };\n}\n\n/**\n * What a vendor WOULD emit, computed once so that a dry run and a real emit cannot disagree.\n *\n * They did disagree, by 856 operations (~14%): the dry-run branch counted every RESOLVED operation\n * while the emit branch counted RESOLVED minus the coherence guard's refusals. A dry run exists to\n * predict an emit; two copies of the accounting is how a prediction stops predicting (#393).\n */\nfunction planVendor(provider: TransposedProvider): {\n readonly resolved: readonly TransposedOperation[];\n readonly refusals: ReadonlyMap<EmitRefusalReason, number>;\n readonly pendingOperations: readonly TransposedOperation[];\n} {\n // The guard REFUSES rather than filtering: a refusal is recorded with its reason, so that an\n // operation leaving the catalogue is a fact somebody can read afterwards. Filtering silently is\n // how 856 operations left with no count anywhere (#392).\n const refusals = new Map<EmitRefusalReason, number>();\n const resolved: TransposedOperation[] = [];\n for (const operation of provider.operations) {\n if (operation.resolution !== TransposedOperationResolution.RESOLVED) continue;\n const declared = declareWhatTheWireNeeds(operation);\n const reason = refusalReason(declared);\n if (reason === undefined) {\n resolved.push(declared);\n continue;\n }\n refusals.set(reason, (refusals.get(reason) ?? 0) + 1);\n }\n // A stable order so the committed artifact diffs as CONTENT. Neither reader sorts `readdirSync`\n // and the merge preserves read order, so without this the same source yields the same operations\n // in a filesystem-dependent order — a regeneration on another machine reads as a 6,000-line\n // rewrite, and a diff nobody can read is a record nobody can review.\n // A derived listing ships only beside a picker that reads it (#1045). Decided after every other refusal, on the\n // operations that survived them, so a listing whose picker was refused goes with it — and counted, never filtered.\n const picked = new Set(\n resolved\n .filter((operation) => operation.derivedListing !== true)\n .flatMap((operation) => operation.inputFields.map((field) => field.options))\n .filter((options): options is NonNullable<typeof options> => options !== undefined)\n .map((options) => listingEndpointKey(options.endpoint.method, options.endpoint.pathTemplate)),\n );\n for (const operation of [...resolved]) {\n if (operation.derivedListing !== true || picked.has(listingEndpointKey(operation.method, operation.pathTemplate))) continue;\n resolved.splice(resolved.indexOf(operation), 1);\n refusals.set(EmitRefusalReason.LISTING_WITHOUT_PICKER, (refusals.get(EmitRefusalReason.LISTING_WITHOUT_PICKER) ?? 0) + 1);\n }\n resolved.sort((left, right) => left.operationId.localeCompare(right.operationId));\n return {\n resolved,\n refusals,\n pendingOperations: provider.operations.filter((o) => o.resolution === TransposedOperationResolution.PENDING_ENDPOINT),\n };\n}\n\n/**\n * The providers the ENGINE owns, read from the engine's own registry — and, since #1673, what an AUGMENTATION of each\n * would run on.\n *\n * A ref is an application's whole address for a provider — `providerRef: 'stripe'` in an HTTP-API binding, `stripe:` in\n * a saas-config provider scope — so the catalogue can never ship a second PROVIDER under an engine ref: `wildo config\n * sync` refuses two owners (\"discovered runtime owners disagree on its secret-contract shape\"), and the refusal lands\n * on an application that never asked for the catalogue's copy. Installing this package for `slack` was once enough to\n * make an unrelated `openai` declaration unmaterializable.\n *\n * ## Withheld, then augmenting (#1672, #1673)\n *\n * Until #1672 the only safe answer was to withhold the entry, and its operations were dropped rather than offered.\n * #1672 gave a package a second way to contribute to a ref it does not own: an augmentation, which adds operations\n * only, spends the base's base URL and credential, and is inert until an application opts it in. So an engine-owned\n * entry now ships as an augmentation of the engine provider — when the engine provider has a `REST_API` binding\n * (config sync refuses an augmentation of a base with none) and that binding's base URL is the one the entry's paths\n * are relative to. Otherwise the inventory says which of the two is missing.\n *\n * ## Why this is DERIVED, and what it cost to learn\n *\n * The rule shipped on 2026-09-08 as NINE hand-written `scrape: false` decision files, one per colliding vendor, each\n * carrying the sentence *\"Nine of the engine's 23 providers collide this way.\"* Measured 2026-09-09: **eleven** did —\n * `openai` and `google` were missed, and every application that installed this package while declaring the engine's\n * LLM provider could not run `wildo config sync`. A list that enumerates ANOTHER party's catalogue by hand rots; this\n * one is read from the registry, so an engine provider added tomorrow — or an engine ref gaining a REST binding — is\n * reflected here by nobody remembering anything.\n */\nfunction deriveEngineOwnedBases(): ReadonlyMap<string, EngineOwnedBase> {\n const bases = new Map<string, EngineOwnedBase>();\n for (const module of EngineBackendProviderRegistry.modules.values()) {\n const rest = module.protocols.find((binding) => binding.runtimeContract.kind === ProviderProtocolRuntimeKind.REST);\n const contract = rest?.runtimeContract as { readonly baseUrl?: unknown } | undefined;\n bases.set(module.metadata.ref, {\n ref: module.metadata.ref,\n hasRestArm: rest !== undefined,\n restBaseUrl: typeof contract?.baseUrl === 'string' ? contract.baseUrl : null,\n });\n }\n return bases;\n}\n\nconst ENGINE_OWNED_BASES: ReadonlyMap<string, EngineOwnedBase> = deriveEngineOwnedBases();\n\n/** Two base URLs name the same base when they differ at most by a trailing slash. */\nfunction sameBaseUrl(left: string | null | undefined, right: string | null | undefined): boolean {\n if (typeof left !== 'string' || typeof right !== 'string') return false;\n return left.replace(/\\/+$/, '') === right.replace(/\\/+$/, '');\n}\n\n/**\n * Refuse the batch when an operation about to ship as an augmentation has a path the runtime would refuse (#1673).\n *\n * A provider's own operations are only documented as relative; an augmentation's are REQUIRED to be a plain `/…`\n * template (`providerOperationPathTemplateIsRelative`), because they are sent with the base provider's credential and\n * a template like `@evil.tld/x` would carry it to another host. The runtime refuses such an augmentation when the base's\n * catalogue first loads — after an application opted in, and taking the BASE's own operations down with it. Every path\n * this transposer emits starts with `/`, so a violation is a transposer defect, and the batch is the place to learn it.\n */\nfunction assertAugmentationPathsAreRelative(provider: TransposedProvider, operations: readonly TransposedOperation[]): void {\n const offending = operations.filter((operation) => !providerOperationPathTemplateIsRelative(operation.pathTemplate ?? ''));\n if (offending.length > 0) {\n throw new Error(`'${provider.ref}' ships as an augmentation of the engine's provider, and ${offending.map((operation) => `${operation.operationId} (${String(operation.pathTemplate)})`).join(', ')} `\n + 'is not a plain relative path, which the runtime refuses for an augmentation. Fix the reader that produced it.');\n }\n}\n\n/**\n * Whether an EXPORTED vendor ships as an augmentation of the engine provider owning its ref (#1673). Only meaningful\n * for a ref {@link vendorExportBlocker} let through, which for an engine ref means the base has a REST binding on the\n * entry's own base URL.\n */\nexport function shipsAsEngineAugmentation(ref: string, engineBases: ReadonlyMap<string, EngineOwnedBase> = ENGINE_OWNED_BASES): boolean {\n return engineBases.has(ref);\n}\n\n/**\n * The `mergedCatalogueEntries` a vendor's decision names that did NOT reach it (#993).\n *\n * Checked against PROVENANCE rather than against the join that re-keyed the views: provenance is what the\n * emitted module records, so a join that stopped applying — the source entry renamed, or the command no\n * longer calling the join — reads as unmatched here instead of silently shipping the Sim-only auth again.\n * Directory refs are compared with underscores as hyphens, the spelling both readers reduce a ref to.\n */\nexport function unmatchedMergedCatalogueEntries(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): readonly UnmatchedRecordEntry[] {\n const carried = new Set(provider.provenances.map((provenance) => provenance.sourceRef.replace(/_/g, '-')));\n return Object.keys(decisions?.mergedCatalogueEntries ?? {})\n .filter((entry) => !carried.has(entry.replace(/_/g, '-')))\n .map((entry) => ({\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.MERGED_CATALOGUE_ENTRY,\n detail: `decisions/${provider.ref}.json merges the catalogue entry '${entry}', which contributed no view to this vendor in this batch`,\n }));\n}\n\n/**\n * Whether a vendor gets a SUBPATH in the emitted package.\n *\n * One function because the answers must agree and twice already did not. `--dry-run` exists so a\n * batch can be inspected before it replaces every vendor directory in the package, which is worth\n * nothing if the plan and the emit compute different things: they disagreed by 856 operations once\n * (#393, one copy of the refusal accounting), and by 9 VENDORS until 2026-09-08 — the plan applied\n * the \"nothing executable\" half and skipped the decisions half, so a dry run promised subpaths for\n * exactly the nine vendors then withheld for colliding with an engine provider. That is the worst\n * possible set to over-report: it tells the reader the collision is back.\n *\n * The clauses:\n *\n * - **nothing executable** — a subpath resolving to auth and no operations looks complete to\n * everyone downstream and can do nothing;\n * - **the engine owns the ref and it cannot be augmented** — see `deriveEngineOwnedBases`. Derived, so it\n * cannot be short by two the way the hand-written version was. An engine ref it CAN augment gets a subpath that\n * ships an augmentation rather than a provider (#1673);\n * - **`scrape: false`** — a deliberate withholding, for a reason no rule derives. It is the door\n * that stays open for the next one-off;\n * - **every call would refuse** — see `baseUrlCallBlocker` (#1015): an unsafe base-URL template, a\n * host placeholder no allowance admits, or one no connection door answers.\n *\n * All of them withhold the SUBPATH and nothing else: the vendor is still emitted and its ledger still\n * maintained, so re-enabling it cannot renumber ids an application called before it was withheld,\n * which is exactly the breakage the record exists to prevent.\n */\nexport function vendorIsExported(\n ref: string,\n resolvedOperationCount: number,\n decisions: CatalogueDecisions | undefined,\n provider?: TransposedProvider,\n engineBases: ReadonlyMap<string, EngineOwnedBase> = ENGINE_OWNED_BASES,\n): boolean {\n return vendorExportBlocker(ref, resolvedOperationCount, decisions, provider, engineBases) === undefined;\n}\n\n/**\n * Why a vendor exports NO provider, or `undefined` when it exports one. ONE predicate for the plan, the emit and the\n * inventory, because every re-derivation of this rule has missed a clause.\n *\n * - withheld by decision (`scrape: false`);\n * - a ref the engine owns whose provider has no `REST_API` binding, so no augmentation of it can be admitted (#1673);\n * - nothing executable (Paul, 2026-09-14: \"no operation, no providers exported\");\n * - every call refused at runtime: the emitted REST base URL carries a HOST or ORIGIN placeholder that no allowance\n * admits — a recorded refusal, no decision, or a template no allowance can make safe (two placeholders in one host).\n * A provider that can dial nothing is the same as one with nothing to dial, so it is not exported either (#1015).\n *\n * An engine ref that passes the first two clauses ships as an AUGMENTATION (#1673), and for it the last clause is\n * replaced by another: its operations run on the ENGINE provider's base URL, never on the one the entry recovered, so\n * what must hold is that the two are the same base (`AUGMENTATION_BASE_URL_DIFFERS` otherwise). The entry's own base-URL\n * placeholders are moot — the augmentation does not carry a base URL at all.\n *\n * `provider` is optional so a caller asking only about the first three clauses need not build one; the plan and the\n * emit always pass it.\n */\nexport function vendorExportBlocker(\n ref: string,\n resolvedOperationCount: number,\n decisions: CatalogueDecisions | undefined,\n provider?: TransposedProvider,\n engineBases: ReadonlyMap<string, EngineOwnedBase> = ENGINE_OWNED_BASES,\n): VendorNotExported | undefined {\n if (decisions?.scrape === false) return { reason: CatalogueNotExportedReason.WITHHELD_BY_DECISION };\n const engineBase = engineBases.get(ref);\n if (engineBase !== undefined && !engineBase.hasRestArm) return { reason: CatalogueNotExportedReason.ENGINE_REF_HAS_NO_REST_ARM };\n if (resolvedOperationCount === 0) return { reason: CatalogueNotExportedReason.NO_EXECUTABLE_OPERATION };\n if (provider === undefined) return undefined;\n if (engineBase !== undefined) {\n const catalogueBase = emittedLiteralBaseUrl(provider, decisions);\n return sameBaseUrl(engineBase.restBaseUrl, catalogueBase)\n ? undefined\n : {\n reason: CatalogueNotExportedReason.AUGMENTATION_BASE_URL_DIFFERS,\n augmentationBaseUrls: { engine: engineBase.restBaseUrl, catalogue: catalogueBase ?? null },\n };\n }\n return baseUrlCallBlocker(provider, decisions);\n}\n\n/**\n * Would EVERY call through the emitted base URL be refused — and why, or `undefined` when a correctly connected account\n * can reach it (review F5 / F8).\n *\n * Mirrors the runtime path, which cannot be imported here: `provider-http-access` fills a braced `baseUrl` with\n * `resolveEndpointPlaceholders`, and that resolver lives in `@wildo-ai/saas-backend-lib` on no public entrypoint. So the\n * probe applies the SAME shared rules the resolver applies first — `findProviderOAuth2EndpointTemplateDefects`,\n * `classifyProviderOAuth2EndpointPlaceholders`, the allowance position rules through `resolveBaseUrlHostAllowances` — and\n * the one rule the resolver adds about answers: every placeholder, host or path, is answered only from a value the\n * CONNECTION stored at connect. Checked in order, each clause naming who can repair it:\n *\n * 1. a template defect, or a scheme other than `https:` → `BASE_URL_TEMPLATE_UNSAFE` (the definition);\n * 2. a host/origin placeholder no allowance admits → `BASE_URL_HOST_NOT_ADMITTED` (a recorded decision);\n * 3. a placeholder no connection door answers → `BASE_URL_NOT_ANSWERABLE`. Two doors store answers: the OAuth2 connect\n * start, for the placeholders its own endpoints and scopes carry, and — since #1097 — the typed-credential store, for\n * every placeholder of a PASTED-credential vendor's base URL (`credentialDoorConnectionParameters`). What is left\n * unanswerable is an OAuth2 vendor whose base URL carries a placeholder its endpoints and scopes do not.\n */\nexport function baseUrlCallBlocker(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): VendorNotExported | undefined {\n const baseUrl = emittedLiteralBaseUrl(provider, decisions);\n if (baseUrl === undefined) return undefined;\n const occurrences = classifyProviderOAuth2EndpointPlaceholders(baseUrl);\n if (occurrences.length === 0) return undefined;\n const names = [...new Set(occurrences.map((occurrence) => occurrence.name))];\n const hostNames = [...new Set(occurrences\n .filter((occurrence) => occurrence.position !== ProviderOAuth2EndpointPlaceholderPosition.PATH_OR_QUERY)\n .map((occurrence) => occurrence.name))];\n if (findProviderOAuth2EndpointTemplateDefects(baseUrl).length > 0) {\n return { reason: CatalogueNotExportedReason.BASE_URL_TEMPLATE_UNSAFE, ...(hostNames.length === 0 ? {} : { baseUrlHostsNotAdmitted: hostNames }) };\n }\n if (!/^https:\\/\\//i.test(baseUrl) && !/^\\{/.test(baseUrl)) return { reason: CatalogueNotExportedReason.BASE_URL_TEMPLATE_UNSAFE };\n const hosts = baseUrlHostsNotAdmitted(provider, decisions);\n if (hosts.length > 0) return { reason: CatalogueNotExportedReason.BASE_URL_HOST_NOT_ADMITTED, baseUrlHostsNotAdmitted: hosts };\n const answered = new Set([\n ...oauth2ConnectionParameters(provider, decisions),\n ...credentialDoorConnectionParameters(provider, baseUrl),\n // Derived from a connection answer (#1937): never answered by a person, always filled — the table, or its default.\n ...(connectionDerivedOperationHost(provider, decisions) === undefined ? [] : [DERIVED_OPERATION_HOST_PLACEHOLDER]),\n ]);\n const unanswered = names.filter((name) => !answered.has(name));\n return unanswered.length === 0 ? undefined : { reason: CatalogueNotExportedReason.BASE_URL_NOT_ANSWERABLE, baseUrlPlaceholdersUnanswered: unanswered };\n}\n\n/**\n * The host or origin placeholders of the emitted literal base URL that NO allowance admits, in template order — every\n * one of them makes `resolveEndpointPlaceholders` refuse every call. A template with a defect (two placeholders in one\n * host) admits none of its host placeholders, whatever is declared.\n */\nexport function baseUrlHostsNotAdmitted(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): readonly string[] {\n const baseUrl = emittedLiteralBaseUrl(provider, decisions);\n if (baseUrl === undefined) return [];\n const hostNames = classifyProviderOAuth2EndpointPlaceholders(baseUrl)\n .filter((occurrence) => occurrence.position !== ProviderOAuth2EndpointPlaceholderPosition.PATH_OR_QUERY)\n .map((occurrence) => occurrence.name);\n if (hostNames.length === 0) return [];\n if (findProviderOAuth2EndpointTemplateDefects(baseUrl).length > 0) return [...new Set(hostNames)];\n const { allowances } = resolveBaseUrlHostAllowances(provider, decisions);\n return [...new Set(hostNames.filter((name) => !allowances.has(name)))];\n}\n\n/** The emit's own accounting, without writing anything. `--dry-run` reports exactly this. */\nexport function planProvidersPackage(options: EmitPackageOptions): EmitPackageResult {\n const refusedByVendor = new Map<string, ReadonlyMap<EmitRefusalReason, number>>();\n const exportedOperationCounts = new Map<string, number>();\n const notExported = new Map<string, VendorNotExported>();\n const augmentingRefs = new Set<string>();\n const engineBases = options.engineBases ?? ENGINE_OWNED_BASES;\n let vendors = 0;\n let executable = 0;\n let pending = 0;\n let unreadable = 0;\n for (const recovered of options.providers) {\n // The SAME replacement the emit applies, so the plan's export predicate reads the base URL the emit writes.\n const { provider } = applyBaseUrlNamedByDeployment(recovered, readDecisions(options.packageRoot, recovered.ref));\n const { resolved, refusals, pendingOperations } = planVendor(provider);\n if (refusals.size > 0) refusedByVendor.set(provider.ref, refusals);\n pending += pendingOperations.length;\n unreadable += (options.unreadableByVendor.get(provider.ref) ?? []).length;\n executable += resolved.length;\n // The SAME predicate the emit applies. Counting `resolved.length > 0` alone is what made a dry\n // run promise nine subpaths the emit withholds.\n // Listings alone are not \"something executable\": a vendor whose actions were all refused exports nothing,\n // however many pickers its source declared (#1045).\n const blocker = vendorExportBlocker(provider.ref, resolved.filter((operation) => operation.derivedListing !== true).length, readDecisions(options.packageRoot, provider.ref), provider, engineBases);\n if (blocker === undefined) {\n vendors += 1;\n exportedOperationCounts.set(provider.ref, resolved.length);\n if (shipsAsEngineAugmentation(provider.ref, engineBases)) {\n assertAugmentationPathsAreRelative(provider, resolved);\n augmentingRefs.add(provider.ref);\n }\n } else {\n notExported.set(provider.ref, blocker);\n }\n }\n // A plan does not consult the ledger, so it cannot know what moved. Empty rather than absent: the\n // shape is the emit's, and a dry run that invented a movement would be reporting on a comparison\n // it never made.\n return {\n vendors,\n exportedOperationCounts,\n executableOperations: executable,\n pendingOperations: pending,\n unreadableOperations: unreadable,\n refusedByVendor,\n refusalMovement: new Map(),\n notExported,\n augmentingRefs,\n frontendFacets: readAuthoredFrontendFacets(options.packageRoot),\n };\n}\n\n/**\n * Close the record against what this run actually produced, and REFUSE anything that matched\n * nothing.\n *\n * ## Why a refusal, and not a warning\n *\n * Every correction in this lane has failed the same way: a fix that silently stops applying. A\n * succession for an endpoint that moved again, a decision for a vendor the source dropped — each is\n * a statement about a world that has moved, and each is invisible unless the run refuses. Withdrawal\n * is the explicit way to say \"this is gone\", precisely so that silence never means it.\n *\n * ## Why only on a FULL batch\n *\n * A partial run CANNOT SEE the entries it did not cover: `--vendor slack` leaves 696 vendors'\n * records matching nothing, and one catalogue alone leaves every entry the other contributed. Making\n * those fail would refuse a run for doing exactly what it was asked to do. So a partial run reports\n * and writes no withdrawals, and only a full batch may conclude that something is gone.\n */\nfunction reconcileRecord(options: {\n readonly packageRoot: string;\n readonly seenRefs: ReadonlySet<string>;\n readonly unmatched: readonly UnmatchedRecordEntry[];\n readonly fullBatch: boolean;\n readonly today: string;\n}): void {\n if (!options.fullBatch) return;\n\n /*\n * A vendor the sources stop describing is WITHDRAWN, not deleted (#500).\n *\n * This used to `removeLedger`, which was the one path in this record where an id could be lost. An\n * operation that disappears keeps its keys so a restored endpoint resurrects its id; a withheld\n * vendor keeps its whole ledger so re-enabling reuses every id. A vendor that vanishes upstream for\n * one release and returns had neither — every operation came back freshly derived, and every\n * application calling one of its ids broke silently.\n *\n * `withdrawVendor` drops refusals and moves every live operation to `withdrawn`, so a vendor whose\n * ledger held ONLY refusals reduces to nothing and `writeLedger` removes the file. That is right:\n * there were no ids to preserve, and a file asserting three empty objects records nothing.\n */\n for (const ref of ledgerRefs(options.packageRoot)) {\n if (options.seenRefs.has(ref)) continue;\n const ledger = readLedger(options.packageRoot, ref);\n if (ledger === undefined) continue;\n writeLedger(\n options.packageRoot,\n withdrawVendor(\n ledger,\n options.today,\n 'This batch produced no such vendor — the sources no longer describe it.',\n ),\n );\n }\n\n const stale = [\n ...readDecisionRefs(options.packageRoot)\n .filter((ref) => !options.seenRefs.has(ref))\n .map((ref) => `decisions/${ref}.json names a vendor this batch did not produce`),\n ...options.unmatched.map((entry) => `${entry.ref}: ${entry.detail}`),\n ];\n if (stale.length === 0) return;\n\n throw new Error(\n `The catalogue record contains ${stale.length} entr${stale.length === 1 ? 'y' : 'ies'} that matched nothing in this batch:\\n`\n + stale.map((line) => ` - ${line}`).join('\\n')\n + '\\n\\nA record entry that matches nothing is a decision that has stopped applying. Either the thing it names is genuinely gone '\n + '(delete the entry, or record the withdrawal deliberately) or it moved (follow it). Silence must never mean either.',\n );\n}\n\nconst GENERATED_BANNER = `/**\n * GENERATED by \\`wildo fwk generate-providers\\`. Do not edit by hand — a regeneration overwrites it.\n *\n * An edit made in this file is lost the next time the batch runs, and a fix that silently disappears\n * is worse than one that was never made. Corrections have three homes instead:\n * - the transposer, for a defect that spans vendors;\n * - the source catalogue, for something the vendor's own entry gets wrong;\n * - \\`src/_authored/<ref>.authored.ts\\`, for one vendor's peculiarity — an operation no source\n * describes, an operation to withhold, a credential entry, a corrected runtime fact.\n */`;\n\n/**\n * The subpath a vendor is imported through: `@wildo-ai/providers/slack`.\n *\n * The vendor's name is in the PATH, never in the package name — which is the whole point of the\n * one-package shape, and the half that cannot be quietly undone once published.\n */\nfunction subpathFor(ref: string): string {\n return `./${ref}`;\n}\n\n/**\n * One manifest, one published name, and an export map with one entry per vendor.\n *\n * `sideEffects: false` is load-bearing rather than hygiene: it tells a bundler that importing one\n * vendor's subpath can never require evaluating another's, which is what keeps an application's\n * bundle proportional to what it declares even though its `node_modules` holds every vendor.\n *\n * The version is a placeholder the publish lane sets. A generator cannot know which release a batch\n * belongs to, and inventing one would put a plausible wrong version on the whole catalogue.\n */\n/**\n * The version is CARRIED OVER, never re-rendered.\n *\n * A regeneration rewrites this manifest wholesale, and a literal here means every regeneration\n * silently un-releases the package: it reverts to `0.0.0` and the next publish either fails or\n * republishes an old number. That is not hypothetical — `providers` was released as `1.1.3` and the\n * very next regeneration, minutes later, reset it, which is how this was found.\n *\n * The version is a RELEASE decision and belongs to whoever cuts one; the transposer's business is\n * the vendor surface. `0.0.0` remains the value for a package root that does not exist yet, which\n * is the only case where nothing has decided.\n */\nfunction readExistingPackageVersion(packageRoot: string): string {\n try {\n const manifest = JSON.parse(readFileSync(join(packageRoot, 'package.json'), 'utf8')) as { version?: unknown };\n return typeof manifest.version === 'string' && manifest.version.length > 0 ? manifest.version : '0.0.0';\n } catch {\n // No manifest yet, or an unreadable one. A first emit legitimately has nothing to carry over.\n return '0.0.0';\n }\n}\n\nfunction renderPackageJson(\n providers: readonly TransposedProvider[],\n version: string,\n augmentsEngineProviders = false,\n frontendFacets: readonly AuthoredFrontendFacet[] = [],\n): string {\n const shipsFrontendFacets = frontendFacets.length > 0;\n const exportsMap: Record<string, unknown> = {\n // The ONE door discovery opens. `resolvePackageCompanionEntryPath` reads this subpath from the\n // manifest and hands the resolved path to the loader, so no application ever writes the\n // specifier — which is why it must exist even though nothing imports it by name.\n './companion': {\n // `companion-exports.ts`, hyphenated, because `resolvePackageCompanionEntryPath` hard-codes\n // exactly that filename as its source fallback and every other contributing package uses it.\n // Emitting `companion.exports.ts` resolved fine through the export map once BUILT and failed\n // the moment discovery ran against source — which is how it was found: by running the real\n // walk rather than by reading the manifest and believing it.\n source: './src/companion-exports.ts',\n types: './dist/esm/companion-exports.d.ts',\n default: './dist/esm/companion-exports.js',\n },\n /*\n * NO `./systems-of-record` door, deliberately (#2013). The system-of-record vendor facets were\n * authored inside this catalogue under `src/_systems-of-record/` (#1057) and exported here; they\n * moved to their own opt-in library, `@wildo-ai/systems-of-record`, which discovery admits by its\n * exact name. Emitting the door again would re-publish a facet module the catalogue no longer\n * carries, and if a stale copy of the tree came back with it the backend would hold two base facets\n * for one vendor and refuse the instance (`FACET_BASE_CONFLICT`).\n */\n };\n for (const provider of [...providers].sort((left, right) => left.ref.localeCompare(right.ref))) {\n exportsMap[subpathFor(provider.ref)] = {\n source: `./src/${provider.ref}/backend.exports.ts`,\n types: `./dist/esm/${provider.ref}/backend.exports.d.ts`,\n default: `./dist/esm/${provider.ref}/backend.exports.js`,\n };\n }\n // The browser doors (#1700), one per authored facet, each separate from the vendor's `backend.exports.ts` so a\n // browser bundle importing a facet never pulls a line of server code.\n Object.assign(exportsMap, renderFrontendFacetExports(frontendFacets));\n return `${JSON.stringify(\n {\n name: PACKAGE_NAME,\n version,\n type: 'module',\n description: `Wildo provider catalogue: ${providers.length} vendors transposed from open integration catalogues. Each vendor is a subpath export; there is no root barrel.`,\n license: 'MIT',\n publishConfig: { access: 'public' },\n sideEffects: false,\n files: ['dist', 'NOTICE'],\n /*\n * `watch` is what puts this package in the dev fleet, and its absence is why the catalogue's\n * `dist` went silently stale.\n *\n * `selectWatchPackages` in the dev orchestrator filters on `pkg.scripts.watch`, so a package\n * that declares only `build` is never watched — and 103 watchers were running while nothing\n * rebuilt this one. Everything that reads the catalogue at RUNTIME resolves through the\n * `exports` map to `dist`: discovery, `wildo config sync`, a booted backend. Measured\n * 2026-09-07, `dist` sat 29 minutes behind `src` and `config sync` refused against a barrel\n * that no longer existed — a wrong diagnosis until the artifact was dated.\n *\n * The alias finalizer runs on `--onSuccess` in both scripts, matching every engine package.\n * Nothing generated here uses a `~` alias, so it rewrites nothing today; it is the step that\n * marks an emitted tree PUBLISHED, and a build that skips it leaves readers looking at a dist\n * nobody finished.\n *\n * `../../scripts/`: since the #2019 cut-over this package sits two levels below the repository\n * root (`_code_archive/providers/`), as every engine package does. It sat one level below\n * (`providers/`) until then.\n */\n scripts: {\n // `pnpm -r typecheck` visits every workspace member that declares this script and SKIPS the\n // rest, so without it nothing in CI ever compiled the catalogue — every vendor and every\n // operation in it, checked by the emitter's own unit tests and by no compiler. `tsconfig.json`\n // exists for exactly this: it extends the emit config with `noEmit`, so the two cannot drift\n // into describing different programs.\n typecheck: 'tsc -p tsconfig.json',\n /*\n * The catalogue acquired HAND-OWNED LOGIC with #1057 — then `src/_systems-of-record/`, since\n * #2013 its own library; `src/_frontend/` keeps the lane — and until then it had no test lane\n * at all: generated vendors whose only check was the compiler, which is defensible for\n * transposed data and not for authored code.\n *\n * `pnpm -r test` visits every member declaring this script, so the catalogue now joins the\n * fleet's test pass rather than being the one package it skips.\n */\n test: 'vitest run',\n build: 'tsc -p tsconfig.build.json && node ../../scripts/run-tsc-alias-safe.mjs --project tsconfig.build.json --dist dist/esm',\n watch:\n 'node ../../scripts/run-tsc-watch-single-writer.mjs --dist dist/esm --exec tsc-watch -- -p tsconfig.build.json --preserveWatchOutput '\n + '--onSuccess \"node ../../scripts/run-tsc-alias-safe.mjs --project tsconfig.build.json --dist dist/esm\"',\n },\n exports: exportsMap,\n // `workspace:*` for the engine, matching every other package in this monorepo. `\"*\"` looked\n // equivalent and is not: pnpm resolved it from the REGISTRY, so the generated catalogue\n // compiled and loaded against a PUBLISHED 1.1.2 engine while the local source moved under it —\n // which is how a probe for #378 died on an export that had existed locally for a day. pnpm\n // rewrites `workspace:*` to the concrete version at publish time, so the published manifest is\n // unaffected. `zod` stays `\"*\"`, which the publish lane substitutes from the root override.\n dependencies: {\n '@wildo-ai/saas-models': 'workspace:*',\n '@wildo-ai/external-connectors-models': 'workspace:*',\n // Not a dependency while the package augments an engine provider: then it is a PEER (below), because a\n // hard `workspace:*` publishes as an exact version and installs the package its OWN engine copy, which is\n // not the engine whose provider the augmentation adds operations to (#1673 review).\n ...(augmentsEngineProviders ? {} : { '@wildo-ai/external-connectors-private': 'workspace:*' }),\n // A frontend facet is typed by, and its contribution projected through, the browser-bound facet contracts\n // (#1700). Only while a facet exists, so a catalogue without one keeps the manifest it had.\n ...(shipsFrontendFacets ? { '@wildo-ai/external-connectors-public': 'workspace:*' } : {}),\n zod: '*',\n },\n /*\n * The engine version an AUGMENTATION was written against (#1673, #1731). An augmentation's operations run on an\n * engine provider's base URL, credential and operation-id namespace, all of which move with the engine, so the\n * package states the range it admits — as a peer, because the base is the APPLICATION's engine, not a copy this\n * package brings. \\`workspace:^\\` publishes as \\`^<version>\\`. Emitted only while the package augments something,\n * so a catalogue that augments nothing keeps the manifest it had; what config sync does with the range is #1731.\n */\n ...(augmentsEngineProviders || shipsFrontendFacets\n ? {\n peerDependencies: {\n ...(augmentsEngineProviders ? { '@wildo-ai/external-connectors-private': 'workspace:^' } : {}),\n /*\n * A facet's component is a React component (#1700), reached only through the facet's lazy `load`. OPTIONAL,\n * so an application that uses no facet installs nothing for it and its REQUIRED peer closure — bounded\n * shrink-only by `enginePeerClosureCeilings` — does not grow. An application scoping a facet already has\n * React: every browser surface is a React tree. A vendor SDK a facet loads joins here the same way.\n */\n ...(shipsFrontendFacets ? { react: '*' } : {}),\n },\n ...(shipsFrontendFacets ? { peerDependenciesMeta: { react: { optional: true } } } : {}),\n }\n : {}),\n /**\n * The COMPILER, declared for the same reason every other package in this fleet declares it —\n * and its absence was not cosmetic. Measured 2026-09-09: `providers` was the ONLY workspace\n * package with no `typescript` devDependency, and consequently the only one whose `tsc`\n * resolved **7.0.2** instead of the fleet's 5.9.3. With nothing in its own `node_modules`,\n * every invocation walked up to the repository root, where the TS7 alias installed for the\n * native-compiler migration also publishes a `tsc` bin.\n *\n * So the largest emitter in the repository was on the native lane by accident. That lane is\n * OPT-IN per package by design — `wildo-compiler-runner.mjs` asserts its exact version and\n * fails closed — and this package bypassed it entirely, because its own `build` and `watch`\n * scripts call `tsc` directly rather than through the runner. Its published `dist`, which\n * every consumer resolves, was emitted by a compiler nobody chose for it.\n *\n * It also hid the defect above: TypeScript 7 does not surface `watchOptions` in\n * `--showConfig`, so the missing watch exclusions read as an inheritance failure until the\n * measurement was repeated naming 5.9.3 explicitly.\n *\n * `\"*\"` rather than a version: the pin is the root `pnpm.overrides` entry, exactly as for the\n * rest of the fleet, so a compiler bump needs no edit here.\n */\n devDependencies: {\n // The workspace link the package still compiles and tests against when the engine is only a peer.\n ...(augmentsEngineProviders ? { '@wildo-ai/external-connectors-private': 'workspace:*' } : {}),\n // What a facet's component compiles and is tested against (#1700); the optional peer above is what ships.\n ...(shipsFrontendFacets ? { '@types/react': '*', react: '*' } : {}),\n typescript: '*',\n // The runner for the `test` script above. `\"*\"` for the same reason the compiler is: the pin\n // is the root `pnpm.overrides` entry, so a bump needs no edit here.\n vitest: '*',\n },\n },\n null,\n 2,\n )}\\n`;\n}\n\n/**\n * One tsconfig for the whole catalogue, and therefore one `tsc` process.\n *\n * Measured on 2026-09-06, when the 684-package shape took a development machine down: a single `tsc`\n * peaks at ~391 MB, almost all of it the engine's `.d.ts` closure and the TypeScript lib — a fixed\n * cost per PROCESS, not per package. One process typechecking every vendor peaks at 1.23 GB in about\n * a second. The package count was never what cost anything; the process count was.\n *\n * Self-contained on purpose: no `extends` reaching outside this package, so it builds from a checkout\n * that contains only this directory.\n */\n/**\n * The EMIT config, and the one the dev fleet compiles this package with.\n *\n * `tsconfig.build.json` is not a preference — it is the watcher's package contract, hard-coded in\n * `dev-compile-status.mjs` (`projectPath: resolve(pkg.root, 'tsconfig.build.json')`, and again in\n * `emitted-artifact-validity.mjs` and the declaration-recovery path). Emitting only `tsconfig.json`\n * made the package eligible for watching and then unwatchable: the fleet spawned a watcher that died\n * on `TS5058: The specified path does not exist: 'tsconfig.build.json'`, and the application's\n * diagnostics reported `NOT_READY @wildo-ai/providers — COMPILE_WATCHER_EXITED`.\n *\n * `composite: true` matches every engine package, because the fleet's machinery is built around\n * packages that have it — interrupted-declaration recovery and emitted-artifact validity both open\n * this project by path.\n */\nfunction renderBuildTsconfig(): string {\n return `${JSON.stringify(\n {\n // The repository-wide WATCH exclusions, inherited exactly as every engine package inherits them\n // (through `engine/tsconfig.common.json`, which extends this same file). Added 2026-09-09.\n //\n // Without it this package was watched with NO `watchOptions` at all, and it is the worst one in\n // the repository to watch naively: it emits 1,380 `.d.ts` files and its `.wildo-runtime-signals/`\n // had grown to 23 MB. Those journals snapshot every emitted declaration on each compile cycle,\n // and pnpm links make the directory reachable as\n // `<consumer>/node_modules/@wildo-ai/providers/.wildo-runtime-signals/…` — so every consumer\n // installs a recursive watcher over it and reschedules a recompile on each journal write. That\n // is the compile storm `tsconfig.watch-exclusions.json` documents, aimed at the largest emitter\n // in the tree, and it went live the moment the catalogue became fleet-watched.\n //\n // It must be inherited from the REPOSITORY ROOT rather than restated here: TypeScript re-roots\n // path-like options against the file that DECLARED them, so a copy living in the package would\n // resolve its globs to the package alone and cover nothing else. Two levels up: the package sits\n // at `_code_archive/providers/` since the #2019 cut-over.\n extends: '../../tsconfig.watch-exclusions.json',\n compilerOptions: {\n target: 'ES2022',\n module: 'ESNext',\n moduleResolution: 'Bundler',\n composite: true,\n declaration: true,\n strict: false,\n skipLibCheck: true,\n esModuleInterop: true,\n outDir: './dist/esm',\n rootDir: './src',\n },\n include: ['src/**/*.ts'],\n // Tests are excluded from the EMIT, as every engine package's build excludes them: the hand-owned\n // `_*/__tests__` trees import vitest, which is a devDependency, so emitting them into\n // `dist/esm` failed the watcher on `Cannot find module 'vitest'` (4c2b9012). That commit fixed the\n // generated file by hand, and the next regeneration reverted it — the emitter is where it belongs.\n exclude: ['node_modules', 'dist', '**/*.test.ts', '**/*.spec.ts'],\n },\n null,\n 2,\n )}\\n`;\n}\n\n/**\n * The TYPECHECK config, which emits nothing.\n *\n * Extends the build config so the two cannot drift into disagreeing about what compiles — the pair\n * exists to separate emitting from checking, not to describe two different programs.\n *\n * The one deliberate difference is `exclude`: it is restored to `node_modules` / `dist`, so the tests\n * the build config keeps out of `dist` are still TYPECHECKED — the engine packages' typecheck configs\n * make the same override.\n */\nfunction renderTypecheckTsconfig(): string {\n return `${JSON.stringify(\n {\n extends: './tsconfig.build.json',\n compilerOptions: { composite: false, noEmit: true },\n include: ['src/**/*.ts'],\n exclude: ['node_modules', 'dist'],\n },\n null,\n 2,\n )}\\n`;\n}\n\nfunction renderNotice(providers: readonly TransposedProvider[]): string {\n const sources = new Map<string, Set<string>>();\n for (const provider of providers) {\n for (const provenance of provider.provenances) {\n const revisions = sources.get(provenance.source) ?? new Set<string>();\n revisions.add(provenance.sourceVersion);\n sources.set(provenance.source, revisions);\n }\n }\n const lines = [...sources.entries()].map(([source, revisions]) => `- ${source} — revision(s) ${[...revisions].join(', ')}`);\n // The vendor documents CONSULTED (#1572), attributed apart from the catalogues because they decide no\n // operation — they answer questions about operations the catalogues chose.\n const documented = providers.filter((provider) => (provider.documentedBy?.length ?? 0) > 0);\n const consulted = documented.flatMap((provider) => provider.documentedBy ?? []);\n const corpusRevisions = new Set(consulted.map((provenance) => provenance.sourceVersion).filter((version) => version !== PINNED_DESCRIPTION_SOURCE_VERSION));\n const pinnedVendors = documented.filter((provider) => (provider.documentedBy ?? []).some((provenance) => provenance.sourceVersion === PINNED_DESCRIPTION_SOURCE_VERSION));\n const documentSources = [\n ...(corpusRevisions.size === 0 ? [] : [`- OPENAPI_DOCUMENT — the Jentic public API corpus (CC0-1.0), revision(s) ${[...corpusRevisions].join(', ')}`]),\n ...(pinnedVendors.length === 0\n ? []\n : [`- OPENAPI_DOCUMENT — the vendor's own published description, pinned by URL in catalogue-record/decisions, for ${pinnedVendors.map((provider) => provider.ref).join(', ')}`]),\n ];\n const documentsNote = documented.length === 0\n ? ''\n : `\nVendor OpenAPI descriptions were consulted for ${documented.length} of these vendors, to name path parameters and\ndescribe responses of operations the catalogues above had already chosen:\n\n${documentSources.join('\\n')}\n\nThey contributed no operation. Each description remains under its publisher's terms; the documents read\nare named in each vendor's generated module.\n`;\n return `${PACKAGE_NAME}\n\nThis package's provider DEFINITIONS were derived at build time from the catalogues below, covering\n${providers.length} vendors. No code from them is redistributed here and none of it executes: what\nships is a Wildo operation catalogue — method, path template, parameters and auth shape — executed by\nWildo's own HTTP client.\n\n${lines.join('\\n')}\n\nActivepieces pieces are MIT (Activepieces Inc). Sim is Apache-2.0. Their notices apply to the source\nthat was read, not to this file. Each vendor's own provenance, down to the exact artifact read, is\nrecorded in its generated module's metadata.\n${documentsNote}`;\n}\n\n/**\n * The operation's declared input as a Zod object — the half of D4's promise the emitter used to drop.\n *\n * `requestBody: { encoding: JSON }` says a body exists and nothing about what is in it, which is not\n * enough for anything: the executor cannot validate a call, a typed client (R3) has nothing to derive\n * an argument type from, and a caller cannot discover what to pass. The sources declare it — 12,193\n * `Property.ShortText`, 3,797 `Property.Number` and so on in Activepieces, a `type` string per param\n * in Sim — so the schema is READ, never invented.\n *\n * Two decisions inside it. Optional fields stay optional rather than being given a default, because a\n * default is a decision about the VENDOR's behaviour that no catalogue states. And an input whose kind\n * could not be read is `z.unknown()` rather than `z.string()`: most inputs are strings, and typing an\n * unknown as the common case is exactly how a schema comes to lie about the one that is not.\n *\n * Absent when the source declared no input at all — an operation with no fields is passed through\n * unvalidated, which the contract permits and which is honest about carrying no contract.\n *\n * ## Every object schema is rendered `z.looseObject<z.ZodRawShape>({...})`, never bare\n *\n * The explicit type argument is what keeps the catalogue compilable, and it was measured rather than\n * reasoned about. `ProviderRestOperationCatalogue` types every schema slot as a plain `z.ZodType`, and\n * nothing anywhere derives a TypeScript type from these schemas (the typed client renders its own\n * argument types from the same field set). Yet a bare `z.looseObject({ ... })` still makes the checker\n * INFER the call's full generic result — a mapped input/output type over every field — once per call,\n * and the catalogue makes ~7,200 such calls. On 2026-09-09 that cost the package's watcher its life:\n * one compile of 689 vendors needed 3.5 GB of heap (4.0M symbols, 1.9M types, 5.8M instantiations,\n * 21 s to check), an incremental rebuild holds two programs, and `tsc-watch` died with \"JavaScript\n * heap out of memory\" at the default 4 GB limit — taking the platform watch group down with it.\n *\n * With the type argument supplied, inference has nothing to do: the argument is checked against the\n * one shared `ZodRawShape` instantiation and the result type is the same for every call. The same\n * 689 vendors then compile in 0.9 GB (0.73M symbols, 0.19M types, 0.10M instantiations, 1.5 s to\n * check). The emitted RUNTIME value is byte-identical — a type argument is erased — so validation,\n * OpenAPI projection and the executor see exactly the schemas they saw before.\n */\nfunction renderInputSchema(operation: TransposedOperation): string | undefined {\n // The SAME set the typed client renders — see `callerSuppliedInputFields`. Walking\n // `operation.inputFields` raw here is what made 1,668 operations uncallable through their own\n // client: the schema demanded a credential the client refuses to accept.\n const fields = callerSuppliedInputFields(operation);\n if (fields.length === 0) return undefined;\n const entries = fields\n .map((field) => {\n const base = zodFor(field.kind);\n const described = field.description === undefined ? base : `${base}.describe(${quote(field.description)})`;\n return ` ${quote(field.name)}: ${field.required ? described : `${described}.optional()`},`;\n })\n .join('\\n');\n // `looseObject`, deliberately: a vendor's API accepts fields no catalogue mentioned, and a strict\n // schema would refuse a legitimate call for the crime of being more complete than the source.\n return `z.looseObject<z.ZodRawShape>({\\n${entries}\\n })`;\n}\n\n/**\n * A response shape as Zod, rendered recursively.\n *\n * Every object is LOOSE and every member keeps whatever optionality its source stated. Both are\n * about the same asymmetry: a response schema exists so a caller can rely on the fields it names,\n * not so Wildo can police a vendor. A vendor that adds a field must never break a call, and a\n * vendor that omits one the source happened to describe must not either — the engine contract says\n * as much (\"authors should keep these permissive; the value is in naming the fields a caller may\n * rely on\"). A strict response schema turns every vendor release into an outage.\n */\nfunction renderShape(shape: TransposedShape, indent: number): string {\n const pad = ' '.repeat(indent);\n const described = (rendered: string): string =>\n shape.description === undefined ? rendered : `${rendered}.describe(${quote(shape.description)})`;\n // EVERY member of a response is optional, whatever the source said it was required.\n //\n // Not a weakening — a correction, and it was found by a socket rather than reasoned about. Slack's\n // `conversations.info` answers `{ ok, channel }`; the source's own output description named a\n // required `channelInfo`, so the executor refused a perfectly good vendor response with\n // \"expected object, received undefined\". A source describes what it CHOSE to surface, under its\n // own names — it is not, and never was, a statement about the vendor's wire format.\n //\n // The engine contract asks for exactly this: \"a vendor adding a field must never break a call, so\n // authors should keep these permissive; the value is in naming the fields a caller may rely on,\n // not in policing the vendor.\" Required-ness derived from a third party's summary is how a\n // generated catalogue turns a working vendor into an outage.\n const optional = (rendered: string): string => (rendered.endsWith('.optional()') ? rendered : `${rendered}.optional()`);\n\n if (shape.kind === TransposedInputKind.OBJECT && shape.fields !== undefined && Object.keys(shape.fields).length > 0) {\n const members = Object.entries(shape.fields)\n .map(([name, member]) => `${pad} ${quote(name)}: ${renderShape(member, indent + 2)},`)\n .join('\\n');\n return optional(described(`z.looseObject<z.ZodRawShape>({\\n${members}\\n${pad}})`));\n }\n if (shape.kind === TransposedInputKind.ARRAY) {\n const element = shape.items === undefined ? 'z.unknown()' : renderShape(shape.items, indent + 2);\n return optional(described(`z.array(${element})`));\n }\n return optional(described(zodFor(shape.kind)));\n}\n\nfunction zodFor(kind: TransposedInputKind): string {\n switch (kind) {\n case TransposedInputKind.STRING:\n return 'z.string()';\n case TransposedInputKind.NUMBER:\n return 'z.number()';\n case TransposedInputKind.BOOLEAN:\n return 'z.boolean()';\n case TransposedInputKind.ARRAY:\n return 'z.array(z.unknown())';\n case TransposedInputKind.OBJECT:\n return 'z.looseObject<z.ZodRawShape>({})';\n case TransposedInputKind.UNKNOWN:\n return 'z.unknown()';\n case TransposedInputKind.WIRE_SCALAR:\n return 'z.union([z.string(), z.number(), z.boolean()])';\n case TransposedInputKind.WIRE_SCALAR_OR_LIST:\n return 'z.union([z.string(), z.number(), z.boolean(), z.array(z.union([z.string(), z.number(), z.boolean()]))])';\n }\n}\n\n/** An operation's classification and method are engine enums; everything else is data. */\nfunction renderOperations(provider: TransposedProvider, operations: readonly TransposedOperation[]): string {\n // A listing is referred to by its ENDPOINT and resolved here against what this package actually ships (#1045):\n // ids are the ledger's, and a listing that was withdrawn or refused leaves its input a typed input.\n const operationByEndpoint = new Map(operations.map((operation) => [listingEndpointKey(operation.method, operation.pathTemplate), operation]));\n const entries = operations\n .map((operation) => {\n const parameters = operation.parameters\n .filter((parameter) => parameter.in !== TransposedParameterLocation.BODY)\n .map((parameter) => {\n // `from` is emitted only when the wire name and the input field DIFFER, which is what the\n // contract asks for: absent means \"the input field is spelled exactly like the wire name\".\n const from = parameter.from === undefined || parameter.from === parameter.name ? '' : `, from: ${quote(parameter.from)}`;\n return ` { name: ${quote(parameter.name)}, in: ProviderRestParameterLocation.${parameter.in.toUpperCase()}, required: ${parameter.required === true}${from} },`;\n })\n .join('\\n');\n const inputSchema = renderInputSchema(operation);\n const outputSchema = operation.outputShape === undefined ? undefined : renderShape(operation.outputShape, 6);\n const inputOptions = renderInputOptions(operation, operationByEndpoint);\n return ` ${quote(operation.operationId)}: {\n operationId: ${quote(operation.operationId)},\n domain: ${quote(operation.domain)},\n method: API_HttpMethod.${operation.method},\n pathTemplate: ${quote(operation.pathTemplate ?? '/')},\n classification: ExternalOperation_Classification.${operation.classification},${operation.summary === undefined ? '' : `\n summary: ${quote(operation.summary)},`}${parameters === '' ? '' : `\n parameters: [\n${parameters}\n ],`}${declaresRequestBody(operation) ? `\n requestBody: { encoding: ProviderRestRequestBodyEncoding.JSON },` : ''}${inputSchema === undefined ? '' : `\n inputSchema: ${inputSchema},`}${outputSchema === undefined ? '' : `\n outputSchema: ${outputSchema},`}${operation.resultPath === undefined ? '' : `\n resultPath: ${quote(operation.resultPath)},`}${inputOptions}\n },`;\n })\n .join('\\n');\n\n return `${GENERATED_BANNER}\n\nimport { z } from 'zod';\n\nimport {\n API_HttpMethod,\n ExternalOperation_Classification,\n ProviderRestParameterLocation,\n ProviderRestRequestBodyEncoding,\n type ProviderRestOperationCatalogue,\n} from '@wildo-ai/external-connectors-models';\n\n/** ${operations.length} executable operation(s) transposed for \\`${provider.ref}\\`. */\nexport const catalogue: ProviderRestOperationCatalogue = {\n domains: ['default'],\n operations: {\n${entries}\n },\n};\n`;\n}\n\n/** `GET /projects/{}` — the identity a listing is referred to by, holes normalised as the ledger normalises them. */\nfunction listingEndpointKey(method: string | undefined, pathTemplate: string | undefined): string {\n return `${method ?? 'UNKNOWN'} ${(pathTemplate ?? '').replace(/\\{[^}]*\\}/g, '{}')}`;\n}\n\n/**\n * The `inputOptions` block of an operation: every input whose choices the source lists from the connected\n * account, resolved to the listing operation this package ships (#1045). An input whose listing is not among\n * the exported operations is left out — the picker would name an operation nobody can call.\n */\nfunction renderInputOptions(operation: TransposedOperation, operationByEndpoint: ReadonlyMap<string, TransposedOperation>): string {\n const lines: string[] = [];\n for (const field of operation.inputFields) {\n if (field.options === undefined) continue;\n const listing = operationByEndpoint.get(listingEndpointKey(field.options.endpoint.method, field.options.endpoint.pathTemplate));\n // The shipped operation must answer the LIST the picker maps over: a declared action that won the endpoint but\n // reads the envelope whole would hand the executor an object, so the picker is not rendered.\n if (listing === undefined || (listing.resultPath ?? '') !== (field.options.resultPath ?? '')) continue;\n const listingId = listing.operationId;\n const dependsOn = field.options.dependsOn === undefined || Object.keys(field.options.dependsOn).length === 0\n ? ''\n : `, dependsOn: { ${Object.entries(field.options.dependsOn).map(([listingField, sourceField]) => `${quote(listingField)}: ${quote(sourceField)}`).join(', ')} }`;\n lines.push(` ${quote(field.name)}: { operationId: ${quote(listingId)}, valuePath: ${quote(field.options.valuePath)}, labelPath: ${quote(field.options.labelPath)}${dependsOn} },`);\n }\n if (lines.length === 0) return '';\n return `\n inputOptions: {\n${lines.join('\\n')}\n },`;\n}\n\n/**\n * A GET or HEAD operation NEVER declares a request body, whatever the source did.\n *\n * `fetch` refuses outright — `Request with GET/HEAD method cannot have body` — so an operation that\n * declares one is not merely unusual, it is unexecutable, and it fails at the socket with a message\n * about the method rather than about the vendor. 231 generated operations across 53 vendors carried\n * one, and every single one of them would have failed on first use.\n * spec-cite: RFC 9110 §9.3.1 — a GET's payload has no defined semantics; the Fetch standard turns\n * that into a hard refusal.\n *\n * Sources do write it: a piece passes a `body` alongside a GET because its own HTTP helper ignores\n * it, or because the vendor tolerates it. The transposer cannot carry that forward — the parameters\n * that matter are already declared as QUERY, so dropping the body loses nothing a caller can send.\n *\n * Found by executing a generated operation against a real server, which is the only thing that could\n * have found it: it typechecks, it parses, it validates against every schema, and it fails the\n * instant a socket is involved.\n */\nfunction declaresRequestBody(operation: TransposedOperation): boolean {\n if (!operation.hasRequestBody) return false;\n return operation.method !== 'GET' && operation.method !== 'HEAD';\n}\n\n/**\n * The vendor's TIER, from the record — `CATALOGUE` unless a human promoted it.\n *\n * `ProviderMetadata.tier`'s own contract says \"a recorded decision, never inferred\", and until this\n * existed the emitter hardcoded `CATALOGUE` while `CatalogueDecisions.tier` was read by nothing. A\n * declared field that nothing consumes is the exact failure the catalogue record was built to stop —\n * a decision that silently does not apply — sitting inside the record's own consumer.\n *\n * An unrecognised value REFUSES rather than falling back, because a typo that quietly leaves a vendor\n * at `CATALOGUE` is indistinguishable from not having written the decision at all.\n */\nfunction renderTier(decisions: CatalogueDecisions | undefined, ref: string): string {\n const declared = decisions?.tier;\n if (declared === undefined) return 'ProviderTier.CATALOGUE';\n const member = Object.entries(ProviderTier).find(([, value]) => value === declared)?.[0];\n if (member === undefined) {\n throw new Error(\n `decisions/${ref}.json declares tier '${declared}', which is not a ProviderTier value `\n + `(${Object.values(ProviderTier).join(', ')}).`,\n );\n }\n return `ProviderTier.${member}`;\n}\n\n/**\n * WHICH connections the vendor admits — projected from the record, never derived from the source.\n *\n * Emitting nothing is the floor (`APPLICATION` × `SERVICE`), and it is what every vendor gets until\n * someone records otherwise. The generator cannot know whether a vendor can be connected per tenant:\n * that is a fact about the vendor's product and about what somebody verified, and \"it declares OAuth2\"\n * is a fact about the scraped catalogue. Deriving one from the other would produce an unfalsifiable\n * claim that one upstream change flips silently.\n *\n * An unrecognised member REFUSES for the same reason as the tier: a typo that silently narrows a\n * vendor back to the floor reads exactly like a decision nobody made.\n */\nfunction renderAdmissibleConnections(decisions: CatalogueDecisions | undefined): string {\n const admissible = decisions?.admissibleConnections;\n if (admissible === undefined || admissible.length === 0) return '';\n const ownerScopes = Object.entries(ExternalProvider_Connection_OwnerScope);\n const delegations = Object.entries(ExternalProvider_Connection_DelegationMode);\n const rendered = admissible.map((entry) => {\n const owner = ownerScopes.find(([, value]) => value === entry.ownerScope)?.[0];\n const delegation = delegations.find(([, value]) => value === entry.delegation)?.[0];\n if (owner === undefined || delegation === undefined) {\n throw new Error(\n `decisions/${decisions?.ref}.json admits '${entry.ownerScope}' × '${entry.delegation}', `\n + `which is not a (ExternalProvider_Connection_OwnerScope × ExternalProvider_Connection_DelegationMode) pair.`,\n );\n }\n return ` { ownerScope: ExternalProvider_Connection_OwnerScope.${owner}, delegation: ExternalProvider_Connection_DelegationMode.${delegation} },`;\n });\n return `\\n admissibleConnections: [\\n${rendered.join('\\n')}\\n ],`;\n}\n\n/**\n * NOTE on `import('./operations.generated.js')` in this template — the extension is load-bearing and\n * must not be \"tidied\" away.\n *\n * That literal is DATA: the text written into every vendor module. But it is import-SHAPED, so the\n * alias finalizer rewrote it when THIS file was built — the source said `./operations.generated` and\n * the shipped generator wrote `./operations.generated.js`. The generator's OUTPUT therefore depended\n * on how the generator itself had been built, and running it from source rather than from dist would\n * emit a different catalogue.\n *\n * It went unnoticed for the worst possible reason: the rewrite was RIGHT. The emitted module compiles\n * to ESM, where the extension is required. Found 2026-09-08 by reading a regeneration diff, not by a\n * test — none pinned either form. Saying it at the source makes source and build agree. The check that\n * pinned it on the shipped catalogue retired with the catalogue (#2019); its successor, rule\n * `relative-import-without-extension` in `check-provider-modules.mjs`, pins the same thing on every\n * provider the framework distributes and every copy an application installed.\n *\n * The reasoning lives here rather than beside the line because the line is inside a template literal:\n * a comment there is emitted into every vendor module, and a backtick in it ends the template.\n */\nfunction renderBackendModule(\n provider: TransposedProvider,\n operations: readonly TransposedOperation[],\n authored: boolean,\n decisions: CatalogueDecisions | undefined,\n vendorRecord?: CatalogueVendorRecord,\n complianceProfile: ProviderComplianceProfile = resolveCatalogueComplianceProfile(provider.ref, decisions, vendorRecord),\n): string {\n // Computed once: the metadata block and the import line must agree, and rendering the enums\n // without importing them emits a module that reads correctly and does not compile.\n const admissible = renderAdmissibleConnections(decisions);\n const oauth2Block = renderOAuth2Block(provider, envPrefixFor(provider.ref), decisions, vendorRecord);\n const envPrefix = envPrefixFor(provider.ref);\n const secretEnvVar = accountSecretEnvVarFor(provider, envPrefix);\n const header = authHeaderFor(provider.auth.kind);\n const declaresRegistrationSlot = provider.baseUrl === undefined || deploymentConfiguredHostSlots(provider, decisions).length > 0;\n\n return `${GENERATED_BANNER}\n\nimport { ProviderProtocolRuntimeKind, ExternalProvider_ExchangeProtocol_Kind${declaresRegistrationSlot ? ', ExternalProvider_SecretScope' : ''}${admissible === '' ? '' : ', ExternalProvider_Connection_DelegationMode, ExternalProvider_Connection_OwnerScope'}${oauth2Block.includes('ProviderOAuth2EndpointHostAllowanceKind.') || renderBaseUrlHostAllowances(provider, decisions) !== '' ? ', ProviderOAuth2EndpointHostAllowanceKind' : ''}${oauth2Block.includes('ProviderOAuth2IncrementalConsentForm.') ? ', ProviderOAuth2IncrementalConsentForm' : ''} } from '@wildo-ai/external-connectors-models';\nimport { defineProviderMetadata, ProviderCatalogueSource, ${complianceProfileEnumImports(complianceProfile)}ProviderOriginKind, ProviderTier } from '@wildo-ai/saas-models';\nimport type { ProviderOperationExecute } from '@wildo-ai/external-connectors-models';\nimport type { ExternalProvider_ConnectionTarget } from '@wildo-ai/external-connectors-models';\nimport type { BackendProviderModule, BackendProviderRegistryFragment, ProviderRef } from '@wildo-ai/external-connectors-private/backend';\n${authored ? `import { withAuthoredSupplement } from '@wildo-ai/external-connectors-private/backend';\n\nimport { authored as authoredSupplement, authoredClient } from '${AUTHORED_IMPORT_PREFIX}${provider.ref}${AUTHORED_FILE_SUFFIX_IMPORT}';\n` : ''}\n/**\n * \\`${provider.ref}\\` — transposed from ${provider.provenances.map((p) => p.source).join(', ')}.${\n provider.documentedBy === undefined || provider.documentedBy.length === 0\n ? ''\n : `\n * Operations completed from the vendor's own OpenAPI description (#1572), which contributed no operation:\n${provider.documentedBy.map((provenance) => ` * - ${provenance.sourceRef} @ ${provenance.sourceVersion}`).join('\\n')}`\n }\n *\n * Auth shape read from the source: ${provider.auth.kind}.${\n provider.auth.kind === TransposedAuthKind.CUSTOM\n ? `\n * The source declares a vendor-specific credential bag (${(provider.auth.customFields ?? []).join(', ') || 'fields not recovered'});\n * the secrets contract below names ONE key, and completing it is a human decision the transposer\n * refuses to guess.`\n : ''\n }${\n provider.auth.kind === TransposedAuthKind.OAUTH2\n ? `\n * OAuth2 endpoints: authorize ${provider.auth.authUrl ?? '(not recovered)'}, token ${provider.auth.tokenUrl ?? '(not recovered)'}.${\n provider.auth.endpointsWithheldBecause === undefined ? '' : `\n * Endpoints WITHHELD: ${provider.auth.endpointsWithheldBecause}`\n }\n * The dance itself is Wildo's and identical for every vendor; only these endpoints and the scopes differ.`\n : ''\n }\n */\n${authored ? 'const generated' : `export const ${identifierFor(provider.ref)}BackendProvider`}: BackendProviderModule = {\n metadata: defineProviderMetadata({\n ref: ${quote(provider.ref)},\n packageName: ${quote(PACKAGE_NAME)},\n tier: ${renderTier(decisions, provider.ref)},\n vendor: ${quote(resolveCatalogueVendor(provider.ref, decisions))},\n origin: {\n kind: ProviderOriginKind.GENERATED,\n catalogue: {\n source: ProviderCatalogueSource.${provider.provenances[0]?.source ?? 'ACTIVEPIECES'},\n sourceRef: ${quote(provider.provenances[0]?.sourceRef ?? provider.ref)},\n sourceVersion: ${quote(provider.provenances[0]?.sourceVersion ?? 'unknown')},\n },\n },\n }),\n complianceProfile: ${renderComplianceProfile(complianceProfile, ' ')},\n providerCapabilities: [],${admissible}\n secretsContract: {\n${renderSecretsContract(provider, secretEnvVar, envPrefix, decisions)} },\n protocols: [\n {\n // The MEMBER NAME, not the enum value. \\`composeBackendProviders\\` indexes the enum BY this\n // string and compares the result to \\`runtimeContract.kind\\`, so the value (\"rest_api\") makes the\n // lookup \\`undefined\\` and composition refuses the provider. The binding is typed\n // \\`TProtocol extends string\\`, so the wrong one compiled — and every generated provider carried\n // it, unloadable, until the chain was walked instead of doubled.\n protocol: 'REST_API',\n runtimeContract: {\n kind: ProviderProtocolRuntimeKind.REST,\n${operationBaseUrlHostEnvVarName(provider, decisions) !== undefined ? ` // The operation base URL is https://<host>, read from the SAME deployment-configured host the OAuth2\n // token endpoint uses, so a token and the calls spending it can never target different hosts.\n baseUrlHostEnvVarName: ${quote(operationBaseUrlHostEnvVarName(provider, decisions)!)},` : provider.baseUrl === undefined ? ` // No single base URL was recovered from the source; the deployment names it.\n baseUrlEnvVarName: ${quote(`${envPrefix}_BASE_URL`)},${renderBaseUrlConnectionFact(provider, decisions)}` : ` baseUrl: ${quote(emittedLiteralBaseUrl(provider, decisions) ?? provider.baseUrl)},`}${renderBaseUrlHostAllowances(provider, decisions)}\n${oauth2Block} apiKey: { secretRef: ${quote(secretEnvVar)}, headerName: ${quote(header.name)}${header.prefix === undefined ? '' : `, prefix: ${quote(header.prefix)}`} },\n operations: async () => (await import('./operations.generated.js')).catalogue,\n },\n },\n ],\n};\n${authored ? `\n/**\n * The generated module, supplemented by hand. See the authored file for why it exists — the batch\n * regenerates everything above and never touches it.\n */\nexport const ${identifierFor(provider.ref)}BackendProvider: BackendProviderModule = withAuthoredSupplement(generated, authoredSupplement);\n` : ''}\n/**\n * The CONVENTIONAL export a host loads this vendor by.\n *\n * A host resolving \\`${PACKAGE_NAME}/${provider.ref}\\` knows the specifier and nothing else — not\n * which symbol inside is the provider. So the name is fixed for every package, and\n * \\`readBackendProviderFragment\\` refuses a namespace that does not carry it. Without this export the\n * subpath resolves, typechecks, and is unloadable.\n *\n * The key is the module's OWN declared ref, branded at this boundary exactly as\n * \\`EngineBackendProviderRegistryFragment\\` brands its own — \\`ProviderRef\\` is a compile-time facet with\n * no runtime content, and the value being branded is the identity this module already publishes.\n * That is a different act from casting a dynamically imported namespace, which asserts a shape\n * nobody checked; here the shape is the literal above.\n */\nexport const backendProviderFragment: BackendProviderRegistryFragment = {\n modules: new Map([[${identifierFor(provider.ref)}BackendProvider.metadata.ref as ProviderRef, ${identifierFor(provider.ref)}BackendProvider]]),\n};\n\n${renderTypedClient(provider, operations, authored)}`;\n}\n\n/**\n * The subpath module of an entry that ships as an AUGMENTATION of the engine provider owning its ref (#1673).\n *\n * Operations only, by construction: the module declares no protocol, base URL, OAuth2 block, secrets contract,\n * capability or connection, because an augmentation owns none of them (#1672) — its operations run on the engine\n * provider's base URL with the engine provider's credential. The entry's own recovered auth is therefore not emitted\n * at all, which keeps the reason engine refs were once withheld intact: there is still exactly one owner of the ref, and\n * installing this package still changes nothing until an application names `@wildo-ai/providers` under\n * `providers.augmentations.<ref>`.\n *\n * `operationIds` is sorted with `localeCompare`, the order `defineProviderAugmentation` checks, and the loader is the\n * same lazy catalogue a provider module points at — the runtime refuses a loader that delivers an id not named here.\n */\nfunction renderAugmentationModule(provider: TransposedProvider, operations: readonly TransposedOperation[]): string {\n const operationIds = [...operations.map((operation) => operation.operationId)].sort((left, right) => left.localeCompare(right));\n const provenance = provider.provenances[0];\n return `${GENERATED_BANNER}\n\nimport type { ExternalProvider_ConnectionTarget, ProviderOperationExecute } from '@wildo-ai/external-connectors-models';\nimport { defineProviderAugmentation } from '@wildo-ai/external-connectors-private/backend-runtime';\nimport { ProviderCatalogueSource, ProviderOriginKind, ProviderTier } from '@wildo-ai/saas-models';\n\n/**\n * \\`${provider.ref}\\` — transposed from ${provider.provenances.map((p) => p.source).join(', ')}, and shipped as an AUGMENTATION of\n * the engine's own \\`${provider.ref}\\` provider (#1673): the engine owns the ref, so this adds operations to it and owns\n * nothing else. They run on the engine provider's base URL with its credential, and only once an application names\n * \\`${PACKAGE_NAME}\\` under \\`providers.augmentations.${provider.ref}\\` in its saas config.\n */\nexport const providerAugmentations = new Map([[\n ${quote(provider.ref)},\n defineProviderAugmentation({\n augments: ${quote(provider.ref)},\n metadata: {\n packageName: ${quote(PACKAGE_NAME)},\n tier: ProviderTier.CATALOGUE,\n origin: {\n kind: ProviderOriginKind.GENERATED,\n catalogue: {\n source: ProviderCatalogueSource.${provenance?.source ?? 'ACTIVEPIECES'},\n sourceRef: ${quote(provenance?.sourceRef ?? provider.ref)},\n sourceVersion: ${quote(provenance?.sourceVersion ?? 'unknown')},\n },\n },\n },\n operationIds: [${operationIds.map((id) => quote(id)).join(', ')}],\n reason: ${quote(`Operations the open integration catalogues describe for ${provider.ref}, added to the engine's ${provider.ref} provider.`)},\n operations: async () => (await import('./operations.generated.js')).catalogue,\n }),\n]]);\n\n${renderTypedClient(provider, operations, false)}`;\n}\n\n/**\n * The typed client — R3, bought with a TYPE rather than a dependency.\n *\n * `slack.slackGetChannelInfo({ channel: 'C1' })`, with the compiler checking the parameters and no\n * runtime import of the engine: the factory takes the executor as an argument, so an application\n * wires its own. Importing the executor here would put the whole backend into the module graph of\n * anything touching a vendor — the exact weight #378 removed.\n *\n * ## Only RESOLVED operations appear\n *\n * A pending operation has no method and no path. Putting one on the client would offer a method that\n * cannot execute, which is worse than an absent one: the absent method sends a caller to look, and\n * the present one sends them to file a bug against the vendor. The emitter passes only resolved\n * operations here, and the catalogue keyed beside it contains exactly the same set.\n *\n * ## The name comes from the FINAL operation id\n *\n * Ids are already disambiguated upstream — method, then path tail, then ordinal — so deriving a name\n * from anything else re-collides the cases that pass already resolved (twenty of them in `discord`).\n * The camelCase name is ergonomics; the id travelling inside the call is identity, and the two are\n * derived one from the other so they cannot drift.\n *\n * ## Inputs are typed CLOSED, while the runtime is loose\n *\n * The input type names exactly the fields the request needs. The `inputSchema` beside it is a\n * `looseObject`, so a vendor field no catalogue mentioned is still ACCEPTED at runtime and a caller\n * who needs one passes it through a cast. Widening the type with an index signature instead would\n * make every typo compile, which is the one thing a typed client exists to prevent.\n *\n * ## The argument covers the WIRE, not only what the catalogue asked its user for\n *\n * Input fields and parameters are different populations: an input field is what the SOURCE CATALOGUE\n * asked its user for, a parameter is what the REQUEST places on the wire. A path token is routinely\n * the second without the first — an unsubscribe reads `/webhooks/{webhookId}`, and the id is one the\n * caller already holds from the subscribe rather than something a form asked for. A client typed from\n * input fields as the source left them therefore REFUSED to offer the value the executor demands.\n *\n * `declareWhatTheWireNeeds` folds the wire's parameters into `inputFields` before anything is\n * rendered, under the key `compileProviderOperationRequest` reads (`from ?? name`), so the argument\n * type and the `inputSchema` beside it stay two renderings of one set rather than two lists that can\n * disagree.\n *\n * ## Outputs are typed from the SAME shape the runtime parses with, every member optional (#367)\n *\n * An operation whose source described its answer carries an `outputShape`, rendered into the\n * `outputSchema` the executor parses the vendor's body through. The method's return type is rendered\n * from that same shape by {@link typeScriptForShape}, so the type a caller reads and the schema the\n * answer passed are two renderings of one description. Every member is optional in both — `renderShape`\n * explains why a source's required-ness is not a statement about the vendor — and the whole value may\n * be `undefined`, because the rendered schema is optional at the top too.\n *\n * The `as` is not an assertion nobody checked: `forExecution` resolves to the executor's `output`,\n * which is the body at `resultPath` after `outputSchema` accepted it. An operation with no shape keeps\n * `Promise<unknown>`, which is the honest answer when nothing described the response.\n */\nfunction renderTypedClient(provider: TransposedProvider, operations: readonly TransposedOperation[], authored: boolean): string {\n const usedNames = new Set<string>();\n const methods = operations\n .map((operation) => {\n const name = uniqueMethodName(operation.operationId, usedNames);\n const fields = callerSuppliedFields(operation)\n .map((field) => `${quote(field.key)}${field.required ? '' : '?'}: ${field.type}`)\n .join('; ');\n const shape = fields.length === 0 ? 'Record<string, never>' : `{ ${fields} }`;\n const summary = (operation.summary ?? operation.operationId).replace(/\\*\\//g, '*\\\\/');\n const output = operation.outputShape === undefined ? 'unknown' : `${typeScriptForShape(operation.outputShape)} | undefined`;\n const cast = operation.outputShape === undefined ? '' : ` as Promise<${output}>`;\n return ` /** ${summary} */\n ${name}: (input: ${shape}, connection?: ExternalProvider_ConnectionTarget): Promise<${output}> =>\n execute(${quote(provider.ref)}, ${quote(operation.operationId)}, input, connection)${cast},`;\n })\n .join('\\n');\n\n return `/**\n * Typed access to ${provider.ref}'s ${operations.length} executable operation(s).\n *\n * Takes the executor rather than importing one, so this package carries no runtime dependency on the\n * engine. Operations awaiting an endpoint are absent by construction.${authored ? `\n *\n * The authored fragment is spread LAST, so a hand-written method wins a name collision with a\n * generated one — the author saw both and chose.` : ''}\n */\nexport function create${identifierFor(provider.ref)}Client(execute: ProviderOperationExecute) {\n return {\n${methods}${authored ? `\n ...authoredClient(execute),` : ''}\n };\n}\n`;\n}\n\n\n/** One member of the typed client's argument: the key the executor reads, and how it is typed. */\ninterface CallerSuppliedField {\n readonly key: string;\n readonly required: boolean;\n readonly type: string;\n}\n\n/**\n * The fields a CALLER supplies for one operation.\n *\n * A projection of `inputFields` and nothing else, which is the point: `declareWhatTheWireNeeds` has\n * already folded every wire parameter into that list, so the client's argument type and the\n * `inputSchema` beside it are two renderings of ONE set. An earlier revision computed the union here\n * as well, and that was two mechanisms for one invariant — the second silently doing nothing, and a\n * pin written against it passing for the wrong reason.\n *\n * The one thing this must know that a name cannot tell it: which fields ride in a PATH. A credential\n * is resolved and never asked for, but nothing except the caller can fill a path token, so a token\n * whose name merely SPELLS like a credential must still be offered — `simplybookme`'s\n * `/admin/clients/{clientId}` is a client RECORD's id, and filtering it by name shipped a method\n * whose URL kept a literal hole. Requiredness comes from the same authority: the executor refuses an\n * empty path token whatever the declaration says.\n */\nfunction callerSuppliedFields(operation: TransposedOperation): readonly CallerSuppliedField[] {\n return callerSuppliedInputFields(operation).map((field) => ({\n key: field.name,\n required: field.required,\n type: typeScriptFor(field.kind),\n }));\n}\n\n/**\n * THE set — the one both the typed client and the runtime `inputSchema` render.\n *\n * Extracted 2026-09-08, because the sentence above (\"two renderings of ONE set\") was describing an\n * invariant the code did not hold. `callerSuppliedFields` filtered; `renderInputSchema` walked\n * `operation.inputFields` raw. So every generated module shipped a typed client that WITHHELD the\n * credential — correctly, it is resolved from the secrets contract — beside a Zod schema that\n * REQUIRED it, and the executor validates against the schema.\n *\n * The consequence is the worst arrangement available: the type-safe door is the one that fails. An\n * application calling `client.salesforceGetDashboard({ dashboardId })` compiles, because the client's\n * argument type does not mention `accessToken`, and is then refused at execution with\n * `INPUT_REJECTED: accessToken — Required`. Measured across the catalogue before the fix: **1,668 of\n * 5,675 operations (29.4%), across 151 of 689 vendors**, could not be called at all through their own\n * client.\n *\n * Found by driving one operation to a socket for the first time — the ETL-binding proof. No\n * typecheck could see it (the two artifacts are a `.ts` type and a Zod value), and no test did,\n * because every existing pin either read the client's TEXT or executed a vendor whose auth happens to\n * carry no input field at all.\n *\n * The PATH exemption is carried here, once, and it is not optional: nothing except the caller can\n * fill a path token, so a token that merely SPELLS like a credential must still be offered and must\n * be required. `simplybookme`'s `/admin/clients/{clientId}` is a client RECORD's id.\n */\nfunction callerSuppliedInputFields(\n operation: TransposedOperation,\n): readonly (TransposedInputField & { readonly required: boolean })[] {\n const pathKeys = new Set(\n operation.parameters\n .filter((parameter) => parameter.in === TransposedParameterLocation.PATH)\n .map((parameter) => parameter.from ?? parameter.name),\n );\n\n return operation.inputFields\n .filter((field) => pathKeys.has(field.name) || !callerSuppliesNoCredential(field.name))\n .map((field) => ({ ...field, required: field.required === true || pathKeys.has(field.name) }));\n}\n\n/**\n * Input names a CALLER never supplies, because Wildo supplies them.\n *\n * A source catalogue declares the credential alongside the operation's real parameters — a piece's\n * props carry `accessToken` and `botToken` beside `channel` — because in that catalogue the user\n * fills both in. In Wildo they are different things entirely: the credential is resolved from the\n * provider's secrets contract at execution, and the operation's parameters come from the caller. A\n * typed client that asked for both would invite an application to pass a token by hand, which is the\n * one habit the whole secrets contract exists to remove.\n *\n * **A PATH position is exempt, and the exemption is not optional** — see `callerSuppliedFields` and\n * `declareWhatTheWireNeeds`, which both carry it. Nothing except the caller can fill a path token, so\n * withholding one by NAME ships a method whose URL keeps a literal hole. `simplybookme`\n * `/admin/clients/{clientId}` is a client RECORD's id that merely spells itself like OAuth's, and a\n * name-based filter cannot see through that coincidence. Do not unify the two positions: the same\n * spelling in a QUERY really is the credential, which is why they must be decided separately.\n *\n * Matched on WHOLE names, and the omissions are deliberate. Bare `token` and `secret` are not\n * here: a vendor legitimately uses `token` for pagination, and dropping a real parameter to tidy the\n * type would make a call silently incomplete — worse than an extra field a caller can ignore.\n *\n * Compared IGNORING CASE (#2707), through {@link callerSuppliesNoCredential}, as the engine compares a declared query\n * parameter with a query-placed credential: `API_KEY` is the credential as much as `api_key` is, and an exact comparison\n * would offer it to the caller as an ordinary input.\n */\nconst CALLER_SUPPLIES_NO_CREDENTIAL = new Set([\n 'authMethod', 'auth_method',\n 'accessToken', 'access_token',\n // `authToken` joined on 2026-09-08, after the first sweep that could see the population: it is\n // unambiguous in a way bare `token` is not — nothing paginates with an `authToken` — and it was\n // Twilio's credential, sitting in the input schema of every one of its operations.\n 'authToken', 'auth_token',\n 'botToken', 'bot_token',\n 'apiKey', 'api_key',\n 'bearerToken', 'bearer_token',\n 'clientId', 'client_id',\n 'clientSecret', 'client_secret',\n 'password',\n 'refreshToken', 'refresh_token',\n].map((name) => name.toLowerCase()));\n\n/** Whether an input name is one Wildo supplies, ignoring case. See {@link CALLER_SUPPLIES_NO_CREDENTIAL}. */\nfunction callerSuppliesNoCredential(name: string): boolean {\n return CALLER_SUPPLIES_NO_CREDENTIAL.has(name.toLowerCase());\n}\n\n/** The source's declared kind, as the type a caller writes against. */\n/**\n * The TypeScript rendering of a described RESPONSE shape — the type twin of {@link renderShape}.\n *\n * Every object member is optional, exactly as the rendered `outputSchema` makes it. A member the\n * schema accepts as absent but the type promised as present would compile a caller that crashes on\n * the first vendor that omits it.\n */\nfunction typeScriptForShape(shape: TransposedShape): string {\n if (shape.kind === TransposedInputKind.OBJECT && shape.fields !== undefined && Object.keys(shape.fields).length > 0) {\n const members = Object.entries(shape.fields)\n .map(([name, member]) => `${quote(name)}?: ${typeScriptForShape(member)}`)\n .join('; ');\n return `{ ${members} }`;\n }\n if (shape.kind === TransposedInputKind.ARRAY) {\n return shape.items === undefined ? 'readonly unknown[]' : `readonly (${typeScriptForShape(shape.items)})[]`;\n }\n return typeScriptFor(shape.kind);\n}\n\nfunction typeScriptFor(kind: TransposedInputKind): string {\n switch (kind) {\n case TransposedInputKind.STRING:\n return 'string';\n case TransposedInputKind.NUMBER:\n return 'number';\n case TransposedInputKind.BOOLEAN:\n return 'boolean';\n case TransposedInputKind.ARRAY:\n return 'readonly unknown[]';\n case TransposedInputKind.OBJECT:\n return 'Record<string, unknown>';\n case TransposedInputKind.UNKNOWN:\n // The source declared the field and not its kind. `unknown` forces the caller to be explicit\n // rather than quietly accepting whatever they had — a guess here would be a lie with a type.\n return 'unknown';\n case TransposedInputKind.WIRE_SCALAR:\n return 'string | number | boolean';\n case TransposedInputKind.WIRE_SCALAR_OR_LIST:\n return 'string | number | boolean | readonly (string | number | boolean)[]';\n default: {\n const exhaustive: never = kind;\n return exhaustive;\n }\n }\n}\n\n/**\n * `slack-find-user-by-email` → `slackFindUserByEmail`; `trigger.new-lead.poll` → `triggerNewLeadPoll`.\n *\n * Collisions take an ordinal rather than overwriting each other: two methods with one name silently\n * drops an operation the catalogue shows, which is the same defect the operation-id uniqueness pass\n * exists for one layer down.\n */\nfunction uniqueMethodName(operationId: string, taken: Set<string>): string {\n const parts = operationId.split(/[^a-zA-Z0-9]+/).filter((part) => part.length > 0);\n const base = parts\n .map((part, index) => (index === 0 ? part[0]!.toLowerCase() + part.slice(1) : part[0]!.toUpperCase() + part.slice(1)))\n .join('');\n const safe = /^[a-zA-Z_]/.test(base) ? base : `operation${base}`;\n let candidate = safe;\n let ordinal = 2;\n while (taken.has(candidate)) {\n candidate = `${safe}${ordinal}`;\n ordinal += 1;\n }\n taken.add(candidate);\n return candidate;\n}\n\n/**\n * The `./companion` barrel — how discovery learns that 699 vendors exist without loading one.\n *\n * A contribution is a values-free DECLARATION: the ref, the identity, the protocols, the runtime\n * targets and the shape of the secrets a deployment must supply. The CLI reads them to build the\n * lockfile and the generated catalogue types; the companion reads them to know what an application\n * may declare. None of it loads a provider's runtime module, which is the point — the whole\n * catalogue is discoverable at a cost that does not grow with what it contains.\n *\n * `runtimeImportPath` is each vendor's SUBPATH (`@wildo-ai/providers/slack`), and that is what makes\n * the one-package shape work with on-demand loading: discovery names 699 reachable entries, and a\n * host imports exactly the one an application declared.\n *\n * `runtimeTargets` is `backend` only. These are REST providers reached by an application's own\n * services; nothing here belongs in the companion, whose LLM-provider exception exists for\n * AI-assisted development and has no analogue in a vendor catalogue.\n */\n/**\n * The token-endpoint hosts a companion contribution carries (#1725), so `wildo config sync` can refuse a shared\n * connection whose member names another authorization server without loading the member's module. Derived with\n * the SAME function the engine companion uses, from the SAME endpoint and allowances `renderOAuth2Block` emits —\n * empty for a vendor that emits no OAuth2 block.\n */\nfunction renderContributionTokenEndpointHosts(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): string {\n if (provider.auth.kind !== TransposedAuthKind.OAUTH2 || provider.auth.authUrl === undefined || provider.auth.tokenUrl === undefined) return '';\n const { allowances } = resolveOAuth2EndpointHostAllowances(provider, decisions);\n const hosts = describeProviderOAuth2TokenEndpointHosts({ tokenUrl: provider.auth.tokenUrl, endpointHostAllowances: Object.fromEntries(allowances) });\n return `\n oauth2TokenEndpointHosts: { exact: [${hosts.exact.map((host) => quote(host)).join(', ')}], suffixes: [${hosts.suffixes.map((suffix) => quote(suffix)).join(', ')}],${hosts.suffixMaxLabels === undefined ? '' : ` suffixMaxLabels: ${hosts.suffixMaxLabels},`} undeterminable: ${hosts.undeterminable} },\n oauth2ClientSlotSlugs: [\"clientId\", \"clientSecret\"],`;\n}\n\n/**\n * `protocols` carries the enum MEMBER NAME, not its value.\n *\n * That is what an application authors — `protocols: ['REST_API']` — and what every engine-shipped\n * contribution declares, and discovery VALIDATES the application's scope against this list. Emitting\n * the enum value made `wildo config sync` refuse with *\"declares protocol 'REST_API' but discovery\n * does not report that protocol\"*, which reads like a missing binding and is a spelling\n * disagreement.\n *\n * The THIRD field in this emitter where the convention is the name and the value was written\n * instead, after the protocol binding and the loader fragment. The convention is stated nowhere a\n * generator can read, and every one of these types accepts a bare string — so each instance had to be\n * found by running the real thing (#397).\n */\nfunction renderCompanionExports(\n providers: readonly TransposedProvider[],\n decisionsByRef: ReadonlyMap<string, CatalogueDecisions>,\n augmenting: readonly { readonly provider: TransposedProvider; readonly operations: readonly TransposedOperation[] }[] = [],\n complianceProfilesByRef: ReadonlyMap<string, ProviderComplianceProfile> = new Map(),\n frontendFacets: readonly AuthoredFrontendFacet[] = [],\n): string {\n const facetCompanion = renderFrontendFacetCompanion(frontendFacets);\n const profileOf = (provider: TransposedProvider): ProviderComplianceProfile =>\n complianceProfilesByRef.get(provider.ref) ?? resolveCatalogueComplianceProfile(provider.ref, decisionsByRef.get(provider.ref), undefined);\n const enumImports = new Set(providers.flatMap((provider) => complianceProfileEnumNames(profileOf(provider))));\n const entries = [...providers]\n .sort((left, right) => left.ref.localeCompare(right.ref))\n .map((provider) => {\n const envPrefix = envPrefixFor(provider.ref);\n return ` {\n ref: ${quote(provider.ref)},\n identity: {\n packageName: ${quote(PACKAGE_NAME)},\n tier: ${renderTier(decisionsByRef.get(provider.ref), provider.ref)},\n vendor: ${quote(resolveCatalogueVendor(provider.ref, decisionsByRef.get(provider.ref)))},\n origin: {\n kind: ProviderOriginKind.GENERATED,\n catalogue: {\n source: ProviderCatalogueSource.${provider.provenances[0]?.source ?? 'ACTIVEPIECES'},\n sourceRef: ${quote(provider.provenances[0]?.sourceRef ?? provider.ref)},\n sourceVersion: ${quote(provider.provenances[0]?.sourceVersion ?? 'unknown')},\n },\n },\n },\n runtimeImportPath: ${quote(`${PACKAGE_NAME}/${provider.ref}`)},\n runtimeTargets: [{ kind: 'backend' }],\n engineCapabilities: [],\n providerCapabilities: [],\n protocols: ['REST_API'],\n secretsContractShape: [\n${renderContributionSecretShape(provider, envPrefix, decisionsByRef.get(provider.ref))} ],${renderContributionTokenEndpointHosts(provider, decisionsByRef.get(provider.ref))}\n complianceProfile: ${renderComplianceProfile(profileOf(provider), ' ')},\n },`;\n })\n .join('\\n');\n\n return `${GENERATED_BANNER}\n\nimport { ExternalProvider_ExchangeProtocol_Kind } from '@wildo-ai/external-connectors-models';\nimport { ProviderCatalogueSource, ${[...enumImports].sort().map((name) => `${name}, `).join('')}ProviderOriginKind, ProviderTier } from '@wildo-ai/saas-models';\nimport type { RuntimeOwnerCompanionExports } from '@wildo-ai/saas-models/companion';${facetCompanion.imports}\n\n/** ${providers.length} vendors, declared without loading any of them. */\nconst companionExports: RuntimeOwnerCompanionExports = {\n providerContributions: [\n${entries}${facetCompanion.contributions}\n ],${renderCompanionAugmentations(augmenting)}\n};\n\nexport default companionExports;\n`;\n}\n\n/**\n * The companion half of every augmentation this package ships (#1673): the DATA `wildo config sync` reads to check an\n * application's opt-in, refuse an operation-id collision and record the package, without loading any vendor code.\n * Empty — and absent from the barrel — while no engine-owned entry can be augmented, so a package that augments\n * nothing is byte-identical to one written before augmentations existed.\n */\nfunction renderCompanionAugmentations(\n augmenting: readonly { readonly provider: TransposedProvider; readonly operations: readonly TransposedOperation[] }[],\n): string {\n if (augmenting.length === 0) return '';\n const records = [...augmenting]\n .sort((left, right) => left.provider.ref.localeCompare(right.provider.ref))\n .map(({ provider, operations }) => {\n const provenance = provider.provenances[0];\n const operationIds = [...operations.map((operation) => operation.operationId)].sort((left, right) => left.localeCompare(right));\n return ` {\n augments: ${quote(provider.ref)},\n packageName: ${quote(PACKAGE_NAME)},\n tier: ProviderTier.CATALOGUE,\n origin: {\n kind: ProviderOriginKind.GENERATED,\n catalogue: {\n source: ProviderCatalogueSource.${provenance?.source ?? 'ACTIVEPIECES'},\n sourceRef: ${quote(provenance?.sourceRef ?? provider.ref)},\n sourceVersion: ${quote(provenance?.sourceVersion ?? 'unknown')},\n },\n },\n runtimeImportPath: ${quote(`${PACKAGE_NAME}/${provider.ref}`)},\n operationIds: [${operationIds.map((id) => quote(id)).join(', ')}],\n requiredScopes: [],\n },`;\n })\n .join('\\n');\n return `\n // Operations for providers the ENGINE owns (#1673): inert until an application opts in under providers.augmentations.\n providerAugmentations: [\n${records}\n ],`;\n}\n\n/**\n * The same secrets the module declares, in the discovery contract's own shape.\n *\n * It must AGREE with `renderSecretsContract` — discovery's whole job is to say what a deployment\n * owes before anything is loaded, and a contribution that disagreed with the module would be a\n * lockfile built on a promise the runtime does not keep. Sorted by slug, because the schema's\n * `superRefine` requires it and an unsorted list fails discovery at parse rather than at use.\n */\nfunction renderContributionSecretShape(provider: TransposedProvider, envPrefix: string, decisions: CatalogueDecisions | undefined): string {\n type Entry = { readonly slug: string; readonly envVarName: string; readonly required: boolean; readonly description: string };\n const render = ({ slug, envVarName, required, description }: Entry): string => ` {\n slug: ${quote(slug)},\n envVarName: ${quote(envVarName)},\n required: ${required},\n description: ${quote(description)},\n },\n`;\n const entries: Entry[] = [];\n if (provider.baseUrl === undefined && operationBaseUrlHostEnvVarName(provider, decisions) === undefined) {\n entries.push({ slug: 'baseUrl', envVarName: `${envPrefix}_BASE_URL`, required: true, description: baseUrlSlotDescription(provider, decisions) });\n }\n if (provider.auth.kind !== TransposedAuthKind.OAUTH2) {\n entries.push({ slug: 'apiKey', envVarName: accountSecretEnvVarFor(provider, envPrefix), required: true, description: `Credential for ${provider.ref}, transposed as ${provider.auth.kind}.` });\n } else {\n entries.push(\n { slug: 'accessToken', envVarName: accountSecretEnvVarFor(provider, envPrefix), required: false, description: `Access token for ${provider.ref}. Minted by the OAuth2 exchange, not authored — set it only if ${provider.ref} issues a long-lived token.` },\n { slug: 'clientId', envVarName: `${envPrefix}_CLIENT_ID`, required: true, description: `OAuth2 client id for the application's ${provider.ref} registration.` },\n { slug: 'clientSecret', envVarName: `${envPrefix}_CLIENT_SECRET`, required: true, description: `OAuth2 client secret for the application's ${provider.ref} registration.` },\n ...deploymentConfiguredHostSlots(provider, decisions).map((slot) => ({ slug: slot.slug, envVarName: slot.envVarName, required: true, description: slot.description })),\n );\n }\n // Sorted by slug with `localeCompare`, the exact comparison `ProviderSecretContractShapeSchema.superRefine`\n // enforces — so `baseUrl` sits after `apiKey`/`accessToken`/`apiHost` and before `clientId`.\n return entries.sort((left, right) => left.slug.localeCompare(right.slug)).map(render).join('');\n}\n\n/**\n * The BASE URL slot, for a vendor whose base URL the deployment names.\n *\n * ## Why a base URL is in the SECRETS contract, which is not a contradiction\n *\n * `secretsContract` is the provider's declared ENVIRONMENT surface, not a list of things that are\n * secret. The env builder says so where it matters — \"a provider whose configuration is a hostname\n * or a database name puts THAT in its contract too: immudb and odoo both do\" — and immudb declares\n * `host` and `port` there for exactly this reason.\n *\n * It has to, because that contract is the ALLOW-LIST. `filterProviderEnvToScope` admits a\n * `providerEnv` key only when some declared slot names it, and drops the rest. A base URL declared\n * ONLY as `baseUrlEnvVarName` on the runtime contract is named by nothing the builder reads, so it\n * was stripped from every runtime — measured 2026-09-10, `ASANA_BASE_URL` was authored in the\n * application's secrets and absent from the generated `.env`, while `ASANA_CLIENT_ID` and\n * `ASANA_CLIENT_SECRET` beside it came through. 465 of the 684 generated vendors declare\n * `baseUrlEnvVarName` and NONE of them declared the matching slot, so this is the whole population:\n * a connection could be minted and its operations then had no base URL to call.\n *\n * ## REGISTRATION, declared explicitly, because the derivation cannot see this one\n *\n * `getProviderSecretScope` falls back to REGISTRATION only for the two refs the OAuth2 block names,\n * and CREDENTIAL for everything else. A base URL is neither, so an undeclared slot would classify as\n * CREDENTIAL — and the `scope` field's own JSDoc names that consequence: \"a registration it cannot\n * see is one a tenant could store as if it were their own credential\". A tenant-supplied base URL is\n * the address every one of that provider's calls is sent to, so it is the last thing that may be\n * per-tenant credential material. Declared REGISTRATION, the connect leg refuses it with\n * `SECRET_SLUG_NOT_A_CREDENTIAL` and the catalogue reports it under `missingRegistration`, where an\n * operator can see what is owed.\n *\n * `required: true` is the honest statement — such a provider cannot execute an operation without it\n * — and does not gate boot: `clientId` and `clientSecret` are required on all 684 vendors and most\n * deployments configure none of them. Connectability is unaffected too; `connectabilityBlocker`\n * reads the two OAuth2 refs and nothing else.\n *\n * Emitted only when no literal `baseUrl` was recovered, which is the same condition that emits\n * `baseUrlEnvVarName` — the two are one decision and must not drift apart.\n */\nfunction renderBaseUrlSecretSlot(provider: TransposedProvider, envPrefix: string, decisions: CatalogueDecisions | undefined): string {\n // A base URL derived from a deployment-configured host needs no slot of its own: that host is declared.\n if (provider.baseUrl !== undefined || operationBaseUrlHostEnvVarName(provider, decisions) !== undefined) return '';\n return ` baseUrl: {\n envVarName: ${quote(`${envPrefix}_BASE_URL`)},\n required: true,\n scope: ExternalProvider_SecretScope.REGISTRATION,\n description: ${quote(baseUrlSlotDescription(provider, decisions))},\n },\n`;\n}\n\n/** One wording, so the module and the discovery contribution cannot describe the slot differently. */\nfunction baseUrlSlotDescription(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): string {\n const { baseUrlConnectionFact } = resolveReportedAccountFacts(provider, decisions);\n const connected = baseUrlConnectionFact === undefined\n ? ''\n : ` A CONNECTED account dials the origin ${provider.ref} reports for it in its token answer (${baseUrlConnectionFact}); this value serves the application's own account.`;\n return `API base URL for ${provider.ref}. No single base URL was recovered from the source catalogue, so the deployment names it; without it this provider's operations have no address to call.${connected}`;\n}\n\n/**\n * What the ACCOUNT slot is called — and for an OAuth2 vendor it is not an API key.\n *\n * Every vendor used to get `<PREFIX>_API_KEY`, including the 99 whose credential is a MINTED OAuth2\n * access token that no operator ever types. That name is the row's storage key and it is what a\n * person sees on their connected-accounts card, so Wonder Todos showed a delegated Asana grant as\n * `asana · ASANA_API_KEY` — and the first question anybody asked was \"why apikey? we did it with\n * oauth\". The name was answering wrongly, and a display-side relabel would have left the storage key\n * and the environment surface still saying \"API key\".\n *\n * The slot's AUTHORING slug already made the distinction — `accessToken` for OAuth2, `apiKey`\n * otherwise (see {@link renderSecretsContract}) — so this only brings the env-var name into\n * agreement with the slug beside it.\n *\n * Safe to rename for exactly the reason the slot exists: an OAuth2 vendor's account slot is\n * `required: false` and documented as \"minted by the OAuth2 exchange, not authored\", so no\n * deployment sets it and no operator instruction changes. A credential already stored under the old\n * name is keyed by it, so a tenant that connected before this reconnects once.\n */\nfunction accountSecretEnvVarFor(provider: TransposedProvider, envPrefix: string): string {\n return provider.auth.kind === TransposedAuthKind.OAUTH2\n ? `${envPrefix}_ACCESS_TOKEN`\n : `${envPrefix}_API_KEY`;\n}\n\n/** The env-var prefix a vendor's credential takes. One derivation, used by both emitted files. */\nfunction envPrefixFor(ref: string): string {\n return ref.replace(/[^a-zA-Z0-9]+/g, '_').toUpperCase();\n}\n\n/**\n * What a deployment must actually supply, which differs by credential model.\n *\n * For a pasted credential — an API key, a basic password — that is one secret and the runtime reads\n * it directly. For OAuth2 it is the APPLICATION REGISTRATION (client id and client secret), which an\n * operator genuinely does paste, plus a slot for the ACCESS TOKEN that an authorization exchange\n * mints and nobody types. Declaring the token slot as `required: false` is the honest statement:\n * absent is the normal state until an account is connected, and demanding it at boot would make\n * every OAuth2 provider un-deployable.\n */\n/**\n * The REGISTRATION slot each DEPLOYMENT_CONFIGURED host declares (#992), slug = placeholder name.\n *\n * Declared for the reason the base URL is: the provider's secrets contract is the ALLOW-LIST the runtime\n * environment builder admits a `providerEnv` key through, so a host named only on the OAuth2 allowance\n * would be stripped and every connect would report it unset. REGISTRATION, because a tenant-supplied value\n * would choose where the application's client secret is POSTed; `required: true`, because the provider\n * cannot be connected without it — the catalogue then names it under `missingRegistration`.\n */\nfunction deploymentConfiguredHostSlots(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n): readonly { readonly slug: string; readonly envVarName: string; readonly description: string }[] {\n if (provider.auth.kind !== TransposedAuthKind.OAUTH2) return [];\n const { allowances } = resolveOAuth2EndpointHostAllowances(provider, decisions);\n return [...allowances.entries()]\n .filter((entry): entry is [string, Extract<ProviderOAuth2EndpointHostAllowance, { kind: ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED }>] =>\n entry[1].kind === ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED)\n .map(([name, allowance]) => ({\n slug: name,\n envVarName: allowance.envVarName,\n description: `The ${provider.ref} host the OAuth2 '${name}' placeholder is filled with, named by this deployment. `\n + 'A bare host name (no scheme). Never supplied by a person connecting an account.',\n }));\n}\n\nfunction renderSecretsContract(provider: TransposedProvider, secretEnvVar: string, envPrefix: string, decisions: CatalogueDecisions | undefined): string {\n if (provider.auth.kind !== TransposedAuthKind.OAUTH2) {\n return ` apiKey: {\n envVarName: ${quote(secretEnvVar)},\n required: true,\n description: ${quote(`Credential for ${provider.ref}, transposed as ${provider.auth.kind}.`)},\n },\n` + renderBaseUrlSecretSlot(provider, envPrefix, decisions);\n }\n return ` clientId: {\n envVarName: ${quote(`${envPrefix}_CLIENT_ID`)},\n required: true,\n description: ${quote(`OAuth2 client id for the application's ${provider.ref} registration.`)},\n },\n clientSecret: {\n envVarName: ${quote(`${envPrefix}_CLIENT_SECRET`)},\n required: true,\n description: ${quote(`OAuth2 client secret for the application's ${provider.ref} registration.`)},\n },\n accessToken: {\n envVarName: ${quote(secretEnvVar)},\n required: false,\n description: ${quote(`Access token for ${provider.ref}. Minted by the OAuth2 exchange, not authored — set it only if ${provider.ref} issues a long-lived token.`)},\n },\n` + renderBaseUrlSecretSlot(provider, envPrefix, decisions)\n + deploymentConfiguredHostSlots(provider, decisions).map((slot) => ` ${slot.slug}: {\n envVarName: ${quote(slot.envVarName)},\n required: true,\n scope: ExternalProvider_SecretScope.REGISTRATION,\n // The runtime reads a deployment-configured host ONLY through a slot carrying this mark (#992 review L3).\n holdsDeploymentHost: true,\n description: ${quote(slot.description)},\n },\n`).join('');\n}\n\n/**\n * The OAuth2 declaration, emitted as DATA rather than as the JSDoc comment it used to be.\n *\n * These endpoints and scopes exist nowhere in this repository except the catalogue that was read.\n * Extracting them and keeping them in prose meant the delegated-authorization lane would re-derive\n * 131 vendors' worth of endpoints by hand.\n */\n/**\n * The incremental-consent behaviour an OAuth2 ref inherits from its VENDOR's record, and the record entries that could\n * not apply (#1673, following #1671).\n *\n * #1671 taught the connection to ask for one missing scope and keep what was granted before — but only for a provider\n * whose OAuth2 block declares `incrementalConsent`, and the catalogue declared it nowhere, so a re-authorization for a\n * generated Microsoft or Google ref restated the whole grant. The behaviour is the AUTHORIZATION SERVER's, which is why\n * it is written once per vendor (`catalogue-record/vendors/<vendor>.json`) rather than once per ref.\n *\n * It applies to a ref only when every host the ref's token endpoint can resolve to — computed by the SAME function the\n * companion contribution uses — is one the vendor record names as its authorization server. Anything else is\n * UNMATCHED rather than silently skipped: a Microsoft ref whose token endpoint is not a Microsoft login host is either a\n * wrong `vendor` decision or a source defect, and both want a human. `restatedScopes` are kept only as far as the ref\n * declares them (the provider contract requires it, and a ref that never asked for `offline_access` at connect should\n * not start at re-authorization).\n */\nexport function resolveVendorIncrementalConsent(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n vendorRecord: CatalogueVendorRecord | undefined,\n): { readonly consent?: { readonly form: ProviderOAuth2IncrementalConsentForm; readonly restatedScopes: readonly string[] }; readonly unmatched: readonly UnmatchedRecordEntry[] } {\n const declared = vendorRecord?.oauth2IncrementalConsent;\n if (declared === undefined) return { unmatched: [] };\n if (provider.auth.kind !== TransposedAuthKind.OAUTH2 || provider.auth.authUrl === undefined || provider.auth.tokenUrl === undefined) return { unmatched: [] };\n const form = (Object.values(ProviderOAuth2IncrementalConsentForm) as string[]).includes(declared.form)\n ? declared.form as ProviderOAuth2IncrementalConsentForm\n : undefined;\n if (form === undefined) {\n throw new Error(`vendors/${vendorRecord!.vendor}.json oauth2IncrementalConsent.form '${declared.form}' is not one of ${Object.values(ProviderOAuth2IncrementalConsentForm).join(', ')}.`);\n }\n const { allowances } = resolveOAuth2EndpointHostAllowances(provider, decisions);\n const hosts = describeProviderOAuth2TokenEndpointHosts({ tokenUrl: provider.auth.tokenUrl, endpointHostAllowances: Object.fromEntries(allowances) });\n const served = new Set(declared.authorizationServerHosts.map((host) => host.toLowerCase()));\n const foreign = hosts.exact.filter((host) => !served.has(host.toLowerCase()));\n if (hosts.undeterminable || hosts.suffixes.length > 0 || hosts.exact.length === 0 || foreign.length > 0) {\n const resolvesTo = [...hosts.exact, ...hosts.suffixes.map((suffix) => `*${suffix}`)].join(', ') || '(no host)';\n return {\n unmatched: [{\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.VENDOR_INCREMENTAL_CONSENT,\n detail: `decisions/${provider.ref}.json names vendor '${vendorRecord!.vendor}', whose authorization server is ${declared.authorizationServerHosts.join(', ')}, `\n + `but this ref's token endpoint resolves to ${resolvesTo}${hosts.undeterminable ? ' (partly undeterminable)' : ''}`,\n }],\n };\n }\n const declaredScopes = new Set(provider.auth.scopes ?? []);\n return { consent: { form, restatedScopes: (declared.restatedScopes ?? []).filter((scope) => declaredScopes.has(scope)) }, unmatched: [] };\n}\n\nfunction renderIncrementalConsent(consent: { readonly form: ProviderOAuth2IncrementalConsentForm; readonly restatedScopes: readonly string[] } | undefined): string {\n if (consent === undefined) return '';\n return `\n // How this vendor's authorization server lets a grant grow (#1671), from catalogue-record/vendors (#1673).\n incrementalConsent: { form: ProviderOAuth2IncrementalConsentForm.${consent.form}${consent.restatedScopes.length === 0 ? '' : `, restatedScopes: [${consent.restatedScopes.map((scope) => quote(scope)).join(', ')}]`} },`;\n}\n\nfunction renderOAuth2Block(\n provider: TransposedProvider,\n envPrefix: string,\n decisions: CatalogueDecisions | undefined,\n vendorRecord?: CatalogueVendorRecord,\n): string {\n if (provider.auth.kind !== TransposedAuthKind.OAUTH2 || provider.auth.authUrl === undefined || provider.auth.tokenUrl === undefined) {\n return '';\n }\n const scopes = provider.auth.scopes ?? [];\n const { allowances, scopeValueAllowances } = resolveOAuth2EndpointHostAllowances(provider, decisions);\n const connectionParameters = oauth2ConnectionParameters(provider, decisions);\n const { consent } = resolveVendorIncrementalConsent(provider, decisions, vendorRecord);\n return ` oauth2: {\n authorizeUrl: ${quote(provider.auth.authUrl)},\n tokenUrl: ${quote(provider.auth.tokenUrl)},${scopes.length === 0 ? '' : `\n scopes: [${scopes.map((scope) => quote(scope)).join(', ')}],`}\n clientIdSecretRef: ${quote(`${envPrefix}_CLIENT_ID`)},\n clientSecretSecretRef: ${quote(`${envPrefix}_CLIENT_SECRET`)},${connectionParameters.length === 0 ? '' : `\n connectionParameters: [${connectionParameters.map((name) => quote(name)).join(', ')}],`}${renderEndpointHostAllowances(allowances)}${renderScopeValueAllowances(scopeValueAllowances)}${renderReportedAccountFacts(provider, decisions)}${renderIncrementalConsent(consent)}\n },\n`;\n}\n\n/**\n * The account facts a vendor REPORTS in its token answer and the source DIALS, derived rather than authored (#1052).\n *\n * Measured 2026-09-14 over the Activepieces catalogue: Pipedrive reads `auth.data.api_domain` before every call\n * (144 reads), Salesforce `auth.data.instance_url` (10), Zoho CRM and Bigin `api_domain`; every one of them was\n * transposed as a fixed, deployment-wide base URL, so an application whose tenants connected different orgs could\n * reach at most one of them. Two vendors had the fact hand-authored in `src/_authored/`; this is where the rest come\n * from, and where those two now come from too.\n *\n * The fact itself is derived: `provider.baseUrlReportedFact` is set when every URL that opens with a\n * `<connection>.data.<field>` read names the same field and no literal origin was stated. Its ORIGIN allowance is a\n * recorded decision (`reportedAccountFactOrigins`), never read from an answer — the same vocabulary as an OAuth2\n * origin, `DECLARED_VALUES` only. With a decision the REST contract also carries `baseUrlConnectionFact`, so a\n * connected account dials the origin it reported; without one the fact is captured at connect and nothing dials it,\n * because a base URL read from an unreviewed answer would send every request under the connection wherever the\n * answer said.\n *\n * Returned keyed by the fact's CONTRACT name (`apiDomain`), the camel-cased token-answer field, which is what a\n * connection row stores it under and what `baseUrlConnectionFact` names. A decision naming a fact this vendor does\n * not dial is UNMATCHED, and a full batch refuses it like every other record entry that matches nothing.\n */\nexport function resolveReportedAccountFacts(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n): {\n readonly facts: ReadonlyMap<string, { readonly responsePath: string; readonly origin?: ProviderOAuth2EndpointHostAllowance }>;\n readonly baseUrlConnectionFact?: string;\n readonly unmatched: readonly UnmatchedRecordEntry[];\n} {\n const recorded = decisions?.reportedAccountFactOrigins ?? {};\n const decisionFile = `decisions/${provider.ref}.json`;\n const unmatched: UnmatchedRecordEntry[] = [];\n const dialled = provider.auth.kind === TransposedAuthKind.OAUTH2 && provider.auth.authUrl !== undefined && provider.auth.tokenUrl !== undefined\n ? provider.baseUrlReportedFact\n : undefined;\n for (const field of Object.keys(recorded)) {\n if (field !== dialled) {\n unmatched.push({\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.REPORTED_ACCOUNT_FACT_ORIGIN,\n detail: `${decisionFile} records reportedAccountFactOrigins.${field}, but this vendor's source does not dial '${field}' as its base URL${dialled === undefined ? '' : ` (it dials '${dialled}')`}`,\n });\n }\n }\n if (dialled === undefined) return { facts: new Map(), unmatched };\n const decision = recorded[dialled];\n let origin: ProviderOAuth2EndpointHostAllowance | undefined;\n if (decision !== undefined) {\n const where = `${decisionFile} reportedAccountFactOrigins.${dialled}`;\n if (decision.kind !== ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES) {\n throw new Error(`${where} declares kind '${decision.kind}'. A reported origin is DECLARED_VALUES only: the vendor names the origin, and the allowance says which it may name.`);\n }\n if (typeof decision.source !== 'string' || decision.source.trim() === '') throw new Error(`${where} carries no source. An allow-list for a secret-bearing request must say where its origins came from.`);\n const values = [...(decision.values ?? [])];\n const hostSuffixes = [...(decision.hostSuffixes ?? [])];\n if (values.length === 0 && hostSuffixes.length === 0) throw new Error(`${where} admits nothing: declare at least one origin or one host suffix.`);\n for (const suffix of hostSuffixes) {\n if (!suffix.startsWith('.') || suffix.length < 2) throw new Error(`${where} host suffix '${suffix}' must begin with a dot and name a domain.`);\n }\n for (const value of values) {\n if (!/^https:\\/\\/[^/?#]+$/.test(value)) throw new Error(`${where} value '${value}' is not an https origin (scheme and host, no path).`);\n }\n origin = { kind: ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES, values, ...(hostSuffixes.length === 0 ? {} : { hostSuffixes }) };\n }\n const contractName = reportedAccountFactContractName(dialled);\n return {\n facts: new Map([[contractName, { responsePath: dialled, ...(origin === undefined ? {} : { origin }) }]]),\n ...(origin === undefined ? {} : { baseUrlConnectionFact: contractName }),\n unmatched,\n };\n}\n\n/** `api_domain` → `apiDomain`: the name a connection row stores the fact under, and what the contract refers to it by. */\nexport function reportedAccountFactContractName(field: string): string {\n return field.split(/[_-]+/).filter((part) => part.length > 0).map((part, index) => (index === 0 ? part : part[0]!.toUpperCase() + part.slice(1))).join('');\n}\n\nfunction renderReportedAccountFacts(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): string {\n const { facts } = resolveReportedAccountFacts(provider, decisions);\n if (facts.size === 0) return '';\n const lines = [...facts.entries()].map(([name, fact]) => {\n const origin = fact.origin === undefined || fact.origin.kind !== ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES\n ? ''\n : `, origin: { kind: ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES, values: [${fact.origin.values.map(quote).join(', ')}]${\n fact.origin.hostSuffixes === undefined || fact.origin.hostSuffixes.length === 0 ? '' : `, hostSuffixes: [${fact.origin.hostSuffixes.map(quote).join(', ')}]`\n } }`;\n return ` ${quote(name)}: { responsePath: ${quote(fact.responsePath)}${origin} },`;\n });\n return `\n // The account facts the vendor reports in its token answer and the source dials (#1052): captured at\n // connect${[...facts.values()].some((fact) => fact.origin !== undefined) ? '; the one carrying an origin allowance is the base URL a CONNECTED account dials' : ', not dialled until a decision records the origins it may name'}.\n reportedAccountFacts: {\n${lines.join('\\n')}\n },`;\n}\n\n/** The `baseUrlConnectionFact` line of a REST contract, or nothing (#1052). */\nfunction renderBaseUrlConnectionFact(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): string {\n const { baseUrlConnectionFact } = resolveReportedAccountFacts(provider, decisions);\n if (baseUrlConnectionFact === undefined) return '';\n return `\n // The deployment base above serves the APPLICATION's own account. A CONNECTED account dials the origin its\n // vendor reported for it in the token answer, admitted only within the recorded allowance (#1052).\n baseUrlConnectionFact: ${quote(baseUrlConnectionFact)},`;\n}\n\n/**\n * The placeholders the OAuth2 connect start ASKS for and stores as answers — the only connection answers that exist\n * (#1097). Shared by the emitted `connectionParameters` and the export probe, so the two cannot disagree.\n *\n * A placeholder the DEPLOYMENT fills is never asked of a person connecting, and a value they send for it is refused —\n * so listing it would build a form field that can only fail. The SCOPES are read too (#991): `{hostUrl}/.default` names\n * a fact about the account that no endpoint carries, and a placeholder only a scope mentions was otherwise never asked for.\n */\nfunction oauth2ConnectionParameters(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): readonly string[] {\n if (provider.auth.kind !== TransposedAuthKind.OAUTH2 || provider.auth.authUrl === undefined || provider.auth.tokenUrl === undefined) return [];\n const { allowances } = resolveOAuth2EndpointHostAllowances(provider, decisions);\n return collectEndpointPlaceholders([provider.auth.authUrl, provider.auth.tokenUrl, ...(provider.auth.scopes ?? [])])\n .filter((name) => {\n const kind = allowances.get(name)?.kind;\n return kind !== ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_BASE_URL && kind !== ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED;\n });\n}\n\n/**\n * The placeholders the TYPED-CREDENTIAL door asks for and stores (#1097): every placeholder of a PASTED-credential\n * vendor's emitted base URL. The engine derives them from the emitted contract itself — the base URL's holes, admitted\n * against `baseUrlHostAllowances` — so nothing is emitted for it and this list is the same derivation. A vendor with an\n * OAuth2 block answers through the start instead; its base URL is `oauth2ConnectionParameters`'s question.\n */\nfunction credentialDoorConnectionParameters(provider: TransposedProvider, baseUrl: string): readonly string[] {\n if (provider.auth.kind === TransposedAuthKind.OAUTH2 && provider.auth.authUrl !== undefined && provider.auth.tokenUrl !== undefined) return [];\n return collectEndpointPlaceholders([baseUrl]);\n}\n\n/** `, unsupportedValues: { … }` for an allowance that declines values (#1937), or nothing. */\nfunction renderUnsupportedValues(unsupportedValues: Readonly<Record<string, string>> | undefined): string {\n if (unsupportedValues === undefined || Object.keys(unsupportedValues).length === 0) return '';\n return `, unsupportedValues: { ${Object.entries(unsupportedValues).map(([value, reason]) => `${quote(value)}: ${quote(reason)}`).join(', ')} }`;\n}\n\n/**\n * Remove the connection values the vendor record declines (#1937) from every place the provider would admit them — a host\n * placeholder's extracted values, a whole-scope placeholder's values, the table a derived operation host is looked up\n * in — and carry each as `unsupportedValues` with the record's reason, so the runtime refuses it by name.\n *\n * Applied to the TRANSPOSED provider, before any allowance is resolved, so everything derived from those allowances (the\n * emitted blocks, the token-endpoint host set a shared connection is compared by, the vendor's incremental-consent\n * check) reads the provider without them. A placeholder left admitting nothing refuses the batch: that is a record which\n * declined a whole choice, and silently shipping a provider no one can connect is the outcome a decision must not hide.\n *\n * `matched` is every declined value this ref offered, so a vendor entry no ref offers any longer is reported as\n * unmatched instead of sitting in the record looking live.\n */\nexport function applyVendorUnsupportedConnectionValues(\n provider: TransposedProvider,\n vendorRecord: CatalogueVendorRecord | undefined,\n): { readonly provider: TransposedProvider; readonly matched: ReadonlySet<string> } {\n const entries = vendorRecord?.unsupportedConnectionValues ?? [];\n const matched = new Set<string>();\n if (entries.length === 0) return { provider, matched };\n const reasonOf = (value: string, comparison: ProviderOAuth2ValueComparison): { readonly declined: string; readonly reason: string } | undefined => {\n for (const entry of entries) {\n const declined = entry.values.find((candidate) => (comparison === ProviderOAuth2ValueComparison.EXACT ? candidate === value : candidate.toLowerCase() === value.toLowerCase()));\n // Only the reason travels: it is shown to the person connecting, and who decided when stays in the record.\n if (declined !== undefined) return { declined, reason: entry.reason };\n }\n return undefined;\n };\n const filterSet = (\n where: string,\n allowance: TransposedEndpointHostAllowance,\n comparison: ProviderOAuth2ValueComparison,\n ): TransposedEndpointHostAllowance => {\n const unsupportedValues: Record<string, string> = { ...(allowance.unsupportedValues ?? {}) };\n const values = allowance.values.filter((value) => {\n const found = reasonOf(value, comparison);\n if (found === undefined) return true;\n matched.add(found.declined);\n unsupportedValues[value] = found.reason;\n return false;\n });\n if (Object.keys(unsupportedValues).length === 0) return allowance;\n if (values.length === 0) {\n throw new Error(`vendors/${vendorRecord!.vendor}.json declines every value '${provider.ref}' offers for '${where}', which would ship a provider nobody can connect.`);\n }\n return { values, unsupportedValues };\n };\n const filterRecord = (\n record: Readonly<Record<string, TransposedEndpointHostAllowance>> | undefined,\n comparison: ProviderOAuth2ValueComparison,\n ): Readonly<Record<string, TransposedEndpointHostAllowance>> | undefined =>\n record === undefined ? undefined : Object.fromEntries(Object.entries(record).map(([name, allowance]) => [name, filterSet(name, allowance, comparison)]));\n\n const endpointHostAllowances = filterRecord(provider.auth.endpointHostAllowances, ProviderOAuth2ValueComparison.CASE_INSENSITIVE);\n const scopeValueAllowances = filterRecord(provider.auth.scopeValueAllowances, ProviderOAuth2ValueComparison.EXACT);\n const table = provider.baseUrlHostFromConnectionAnswer;\n let baseUrlHostFromConnectionAnswer = table;\n if (table !== undefined) {\n const unsupportedValues: Record<string, string> = { ...(table.unsupportedValues ?? {}) };\n const hosts = Object.fromEntries(Object.entries(table.hosts).filter(([answer]) => {\n const found = reasonOf(answer, ProviderOAuth2ValueComparison.CASE_INSENSITIVE);\n if (found === undefined) return true;\n matched.add(found.declined);\n unsupportedValues[answer] = found.reason;\n return false;\n }));\n if (Object.keys(unsupportedValues).length > 0) baseUrlHostFromConnectionAnswer = { ...table, hosts, unsupportedValues };\n }\n return {\n provider: {\n ...provider,\n auth: {\n ...provider.auth,\n ...(endpointHostAllowances === undefined ? {} : { endpointHostAllowances }),\n ...(scopeValueAllowances === undefined ? {} : { scopeValueAllowances }),\n },\n ...(baseUrlHostFromConnectionAnswer === undefined ? {} : { baseUrlHostFromConnectionAnswer }),\n },\n matched,\n };\n}\n\n/**\n * Refuse a RECORDED host decision that admits a value its vendor declines (#1937).\n *\n * An allowance has two sources: the set extracted from the source, which {@link applyVendorUnsupportedConnectionValues}\n * filters, and a `decisions/<ref>.json` host decision (OAuth2 endpoint or base URL), which wins over the extracted set\n * and is never filtered. So a later decision recording `cloud` for a Microsoft ref could re-admit\n * `login.microsoftonline.us` silently. The two records contradict each other and a person must reconcile them, so the\n * batch refuses rather than choosing one; a declined value a recorded host SUFFIX would admit is the same contradiction.\n */\nexport function assertRecordedAllowancesHonourVendorDeclines(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n vendorRecord: CatalogueVendorRecord | undefined,\n): void {\n const declined = (vendorRecord?.unsupportedConnectionValues ?? []).flatMap((entry) => entry.values);\n if (declined.length === 0) return;\n const sources = [\n { field: 'oauth2EndpointHostAllowances', what: 'OAuth2 endpoint', decided: decisions?.oauth2EndpointHostAllowances ?? {}, allowances: resolveOAuth2EndpointHostAllowances(provider, decisions).allowances },\n { field: 'baseUrlHostAllowances', what: 'base URL', decided: decisions?.baseUrlHostAllowances ?? {}, allowances: resolveBaseUrlHostAllowances(provider, decisions).allowances },\n ];\n for (const { field, what, decided, allowances } of sources) {\n for (const [name, allowance] of allowances) {\n if (!Object.hasOwn(decided, name) || allowance.kind !== ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES) continue;\n for (const value of declined) {\n const lowered = value.toLowerCase().replace(/^https:\\/\\//, '');\n const exact = allowance.values.some((candidate) => candidate.toLowerCase().replace(/^https:\\/\\//, '') === lowered);\n const suffix = (allowance.hostSuffixes ?? []).find((candidate) => providerHostIsUnderSuffix(lowered, candidate, allowance.hostSuffixMaxLabels));\n if (exact || suffix !== undefined) {\n throw new Error(\n `decisions/${provider.ref}.json ${field}.${name} (${what} host) admits '${value}'${suffix === undefined ? '' : ` through the suffix '${suffix}'`}, `\n + `which vendors/${vendorRecord!.vendor}.json declines. Remove it from the decision, or the decline from the vendor record.`,\n );\n }\n }\n }\n }\n}\n\n/** Declined values no ref of their vendor offered in this batch (#1937). See {@link applyVendorUnsupportedConnectionValues}. */\nexport function unmatchedVendorUnsupportedConnectionValues(\n vendorRecords: ReadonlyMap<string, CatalogueVendorRecord>,\n matchedByVendor: ReadonlyMap<string, ReadonlySet<string>>,\n): readonly UnmatchedRecordEntry[] {\n const unmatched: UnmatchedRecordEntry[] = [];\n for (const [vendor, matched] of matchedByVendor) {\n for (const entry of vendorRecords.get(vendor)?.unsupportedConnectionValues ?? []) {\n for (const value of entry.values.filter((candidate) => !matched.has(candidate))) {\n unmatched.push({\n ref: vendor,\n kind: UnmatchedRecordEntryKind.VENDOR_UNSUPPORTED_CONNECTION_VALUE,\n detail: `vendors/${vendor}.json declines '${value}', which no ref of the vendor offers any longer`,\n });\n }\n }\n }\n return unmatched;\n}\n\nfunction renderScopeValueAllowances(allowances: ReadonlyMap<string, ProviderOAuth2ScopeValueAllowance>): string {\n if (allowances.size === 0) return '';\n const lines = [...allowances.entries()].map(([name, allowance]) => ` ${quote(name)}: { values: [${allowance.values.map(quote).join(', ')}]${renderUnsupportedValues(allowance.unsupportedValues)} },`);\n return `\n scopeValueAllowances: {\n${lines.join('\\n')}\n },`;\n}\n\nfunction renderEndpointHostAllowances(allowances: ReadonlyMap<string, ProviderOAuth2EndpointHostAllowance>): string {\n if (allowances.size === 0) return '';\n const lines = [...allowances.entries()].map(([name, allowance]) => {\n if (allowance.kind === ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_BASE_URL) {\n return ` ${quote(name)}: { kind: ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_BASE_URL${\n allowance.baseUrlPathSuffix === undefined ? '' : `, baseUrlPathSuffix: ${quote(allowance.baseUrlPathSuffix)}`\n } },`;\n }\n if (allowance.kind === ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED) {\n return ` ${quote(name)}: { kind: ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED, envVarName: ${quote(allowance.envVarName)} },`;\n }\n if (allowance.kind === ProviderOAuth2EndpointHostAllowanceKind.DERIVED_FROM_CONNECTION_ANSWER) {\n const hosts = Object.entries(allowance.hosts).map(([value, host]) => `${quote(value)}: ${quote(host)}`).join(', ');\n return ` ${quote(name)}: { kind: ProviderOAuth2EndpointHostAllowanceKind.DERIVED_FROM_CONNECTION_ANSWER, answer: ${quote(allowance.answer)}, hosts: { ${hosts} }${\n allowance.whenUnanswered === undefined ? '' : `, whenUnanswered: ${quote(allowance.whenUnanswered)}`\n }${renderUnsupportedValues(allowance.unsupportedValues)} },`;\n }\n return ` ${quote(name)}: { kind: ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES, values: [${allowance.values.map(quote).join(', ')}]${\n allowance.hostSuffixes === undefined || allowance.hostSuffixes.length === 0 ? '' : `, hostSuffixes: [${allowance.hostSuffixes.map(quote).join(', ')}]`\n }${allowance.originMatchesDeploymentBaseUrl === true ? ', originMatchesDeploymentBaseUrl: true' : ''}${renderUnsupportedValues(allowance.unsupportedValues)} },`;\n });\n return `\n endpointHostAllowances: {\n${lines.join('\\n')}\n },`;\n}\n\n/**\n * The base URL the REST contract EMITS as a literal, or `undefined` when the contract carries no literal base (the\n * deployment names it, or a deployment-configured host serves the operations).\n */\n/**\n * Apply a `baseUrlNamedByDeployment` decision (review F10): the recovered literal base URL is dropped, so the contract\n * carries `baseUrlEnvVarName` and an operator names the vendor's real API. A decision whose `host` is not the recovered\n * base URL applies to nothing and is UNMATCHED; one without a `reason` refuses the batch.\n */\nexport function applyBaseUrlNamedByDeployment(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n): { readonly provider: TransposedProvider; readonly unmatched: readonly UnmatchedRecordEntry[] } {\n const decision = decisions?.baseUrlNamedByDeployment;\n if (decision === undefined) return { provider, unmatched: [] };\n const where = `decisions/${provider.ref}.json baseUrlNamedByDeployment`;\n if (typeof decision.reason !== 'string' || decision.reason.trim() === '') {\n throw new Error(`${where} carries no 'reason'. Replacing the host a source names must say why it is not the vendor's API.`);\n }\n if (provider.baseUrl !== decision.host) {\n return {\n provider,\n unmatched: [{\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.BASE_URL_NAMED_BY_DEPLOYMENT,\n detail: `${where} names '${decision.host}', but this batch recovered ${provider.baseUrl === undefined ? 'no literal base URL' : `'${provider.baseUrl}'`}`,\n }],\n };\n }\n const { baseUrl: _replaced, ...rest } = provider;\n return { provider: rest, unmatched: [] };\n}\n\nfunction emittedLiteralBaseUrl(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): string | undefined {\n if (operationBaseUrlHostEnvVarName(provider, decisions) !== undefined) return undefined;\n if (connectionDerivedOperationHost(provider, decisions) !== undefined) return `https://{${DERIVED_OPERATION_HOST_PLACEHOLDER}}`;\n return provider.baseUrl;\n}\n\n/**\n * The base-URL placeholder a connection-derived operation host is emitted under (#1937). One name for every vendor:\n * a base URL has one host, and the name says whose it is — never a connection answer's, which it is derived FROM.\n */\nexport const DERIVED_OPERATION_HOST_PLACEHOLDER = 'operationHost';\n\n/**\n * The allowance that derives the operation HOST from a connect-time answer, when the source computes its base URL from\n * one (`getGraphBaseUrl(cloud)`, #1937), or `undefined`.\n *\n * Emitted only when it is sound against what the provider's OWN OAuth2 block admits for that answer: the answer must be\n * a DECLARED_VALUES host placeholder of the vendor's endpoints, and every value it admits must map to a host — an\n * admitted cloud with no Graph host would connect and then refuse every call. The literal base must be the table's\n * unanswered host, so the operations that name it literally and the ones that computed it agree. A table that fails\n * any of these refuses the batch: it was read from the source, and a source that no longer agrees with itself is a\n * regeneration someone must look at.\n */\nexport function connectionDerivedOperationHost(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n): Extract<ProviderOAuth2EndpointHostAllowance, { kind: ProviderOAuth2EndpointHostAllowanceKind.DERIVED_FROM_CONNECTION_ANSWER }> | undefined {\n const table = provider.baseUrlHostFromConnectionAnswer;\n if (table === undefined || provider.baseUrl === undefined) return undefined;\n const where = `Provider '${provider.ref}' derives its operation host from the connection's '${table.answer}'`;\n if (provider.baseUrl !== `https://${table.whenUnanswered}`) {\n throw new Error(`${where}, but its base URL '${provider.baseUrl}' is not the unanswered host 'https://${table.whenUnanswered}'.`);\n }\n const answered = provider.auth.kind === TransposedAuthKind.OAUTH2 ? resolveOAuth2EndpointHostAllowances(provider, decisions).allowances.get(table.answer) : undefined;\n if (answered?.kind !== ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES) {\n throw new Error(`${where}, which is not a DECLARED_VALUES host placeholder of its OAuth2 endpoints — nothing would answer it.`);\n }\n const unmapped = answered.values.filter((value) => !Object.keys(table.hosts).some((key) => key.toLowerCase() === value.toLowerCase()));\n if (unmapped.length > 0 || (answered.hostSuffixes ?? []).length > 0) {\n throw new Error(`${where}, and its OAuth2 endpoints admit ${[...unmapped, ...(answered.hostSuffixes ?? [])].map((value) => `'${value}'`).join(', ')} with no operation host.`);\n }\n return {\n kind: ProviderOAuth2EndpointHostAllowanceKind.DERIVED_FROM_CONNECTION_ANSWER,\n answer: table.answer,\n hosts: table.hosts,\n whenUnanswered: table.whenUnanswered,\n ...(table.unsupportedValues === undefined ? {} : { unsupportedValues: table.unsupportedValues }),\n };\n}\n\n/**\n * The host allowances a vendor's REST `baseUrl` carries, from its recorded decisions (#1015).\n *\n * Every operation sends the connection's credential to the base URL, so a host placeholder there is governed exactly as\n * an OAuth2 token host is: through `ProviderOAuth2EndpointHostAllowance`, classified by the SAME function the runtime\n * uses, and applied by the SAME resolver (`resolveEndpointPlaceholders`). Nothing is extracted from a source here — a\n * free-text account field never states which hosts are the vendor's — so only a decision can supply one.\n *\n * Refuses the batch, rather than emitting, when a decision:\n * - is not `DECLARED_VALUES` (an operator-hosted instance is `baseUrlEnvVarName`, not a host allowance);\n * - fails the position rules for where its placeholder sits in the emitted base URL;\n * - disagrees with the allowance the vendor's OAuth2 endpoints carry for the same name (one allow-list per name).\n *\n * A decision or refusal naming a placeholder the emitted base URL does not carry as a host or origin is UNMATCHED, and a\n * full batch refuses it. A host placeholder with neither is emitted with no allowance, which the runtime refuses at every\n * call — the fail-closed default, and the one the catalogue reports.\n */\nexport function resolveBaseUrlHostAllowances(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n): { readonly allowances: ReadonlyMap<string, ProviderOAuth2EndpointHostAllowance>; readonly unmatched: readonly UnmatchedRecordEntry[] } {\n const recorded = decisions?.baseUrlHostAllowances ?? {};\n const refusals = decisions?.baseUrlHostRefusals ?? {};\n const unmatched: UnmatchedRecordEntry[] = [];\n const allowances = new Map<string, ProviderOAuth2EndpointHostAllowance>();\n const baseUrl = emittedLiteralBaseUrl(provider, decisions);\n const decisionFile = `decisions/${provider.ref}.json`;\n\n const shapes = new Map<string, { position: ProviderOAuth2EndpointPlaceholderPosition; occupiesWholeHost: boolean; literalHostSuffix?: string }>();\n if (baseUrl !== undefined && findProviderOAuth2EndpointTemplateDefects(baseUrl).length === 0) {\n for (const occurrence of classifyProviderOAuth2EndpointPlaceholders(baseUrl)) {\n if (occurrence.position === ProviderOAuth2EndpointPlaceholderPosition.PATH_OR_QUERY) continue;\n shapes.set(occurrence.name, {\n position: occurrence.position,\n occupiesWholeHost: occurrence.occupiesWholeHost,\n ...(occurrence.literalHostSuffix === undefined ? {} : { literalHostSuffix: occurrence.literalHostSuffix }),\n });\n }\n }\n\n for (const name of Object.keys(recorded)) {\n if (!shapes.has(name)) {\n unmatched.push({\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.BASE_URL_HOST,\n detail: `${decisionFile} records a base-URL host allowance for '${name}', which the emitted REST base URL does not carry in a host or origin position`,\n });\n }\n }\n for (const name of Object.keys(refusals)) {\n // A refusal is matched by the base URL CARRYING the placeholder at all: a template the runtime refuses as malformed\n // (two placeholders in one authority) has no host shape to classify, and recording why it cannot connect is exactly\n // what a refusal is for.\n const carried = baseUrl !== undefined && classifyProviderOAuth2EndpointPlaceholders(baseUrl).some((occurrence) => occurrence.name === name\n && occurrence.position !== ProviderOAuth2EndpointPlaceholderPosition.PATH_OR_QUERY);\n if (!carried || Object.hasOwn(recorded, name)) {\n unmatched.push({\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.BASE_URL_HOST,\n detail: `${decisionFile} records a base-URL host refusal for '${name}', which ${Object.hasOwn(recorded, name) ? 'also has a recorded allowance' : 'the emitted REST base URL does not carry in a host or origin position'}`,\n });\n }\n if (typeof refusals[name] !== 'string' || refusals[name]!.trim() === '') {\n throw new Error(`${decisionFile} baseUrlHostRefusals.${name} carries no reason. A refusal that makes a vendor not connectable must say why.`);\n }\n }\n\n const oauth2 = provider.auth.kind === TransposedAuthKind.OAUTH2 ? resolveOAuth2EndpointHostAllowances(provider, decisions).allowances : new Map<string, ProviderOAuth2EndpointHostAllowance>();\n const derived = connectionDerivedOperationHost(provider, decisions);\n for (const [name, shape] of shapes) {\n if (derived !== undefined && name === DERIVED_OPERATION_HOST_PLACEHOLDER) {\n // Read from the source (#1937), never recorded: a decision or a refusal for it would be a second authority.\n if (Object.hasOwn(recorded, name) || Object.hasOwn(refusals, name)) {\n throw new Error(`${decisionFile} records a base-URL host decision for '${name}', which this vendor derives from the connection's '${derived.answer}'. Remove it.`);\n }\n const defects = describeProviderOAuth2EndpointHostAllowanceDefects(shape, derived);\n if (defects.length > 0) throw new Error(`Provider '${provider.ref}' cannot derive '${name}' in '${baseUrl}': ${defects.join('; ')}.`);\n allowances.set(name, derived);\n continue;\n }\n if (!Object.hasOwn(recorded, name)) {\n // No base-URL decision, but the vendor's OWN OAuth2 endpoints declare a closed set for this name (Zoho's\n // `{location}` data centres, read from the source's dropdown or recorded for its token host). One placeholder\n // name has one allow-list, and the connection already answers it at connect, so the base URL uses the same one —\n // when it is sound where the base URL puts the name. Anything else stays unguarded and refused at every call.\n const shared = oauth2.get(name);\n if (\n shared?.kind === ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES\n && !Object.hasOwn(refusals, name)\n // `originMatchesDeploymentBaseUrl` admits a value only when it matches the DEPLOYMENT's configured base URL —\n // and a base URL filled per connection has no deployment base to match, so the runtime refuses every call while\n // this shared allowance would read as admitted here (review round 3, L2). Not shared; a base-URL decision only.\n && shared.originMatchesDeploymentBaseUrl !== true\n && describeProviderOAuth2EndpointHostAllowanceDefects(shape, shared).length === 0\n ) {\n allowances.set(name, shared);\n }\n continue;\n }\n const decision = recorded[name]!;\n const where = `${decisionFile} baseUrlHostAllowances.${name}`;\n if (decision.kind !== ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES) {\n throw new Error(`${where} declares kind '${decision.kind}'. A base-URL host is DECLARED_VALUES only; an operator-hosted instance is named by the deployment base URL instead.`);\n }\n const allowance = projectHostAllowanceDecision(provider, name, decision);\n const defects = describeProviderOAuth2EndpointHostAllowanceDefects(shape, allowance);\n if (defects.length > 0) throw new Error(`${where} cannot be applied to '${baseUrl}': ${defects.join('; ')}.`);\n const shared = oauth2.get(name);\n if (shared !== undefined && JSON.stringify(shared) !== JSON.stringify(allowance)) {\n throw new Error(`${where} disagrees with the OAuth2 host allowance for '${name}'. One placeholder name has one allow-list.`);\n }\n allowances.set(name, allowance);\n }\n return { allowances, unmatched };\n}\n\n/** The `baseUrlHostAllowances` line of a REST contract, or nothing. */\nfunction renderBaseUrlHostAllowances(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): string {\n const { allowances } = resolveBaseUrlHostAllowances(provider, decisions);\n if (allowances.size === 0) return '';\n // Reuses the OAuth2 renderer and re-indents it: the SAME literal shape, so the two cannot drift.\n return renderEndpointHostAllowances(allowances)\n .replace('endpointHostAllowances: {', 'baseUrlHostAllowances: {')\n .split('\\n')\n .map((line) => (line.startsWith(' ') ? line.slice(2) : line))\n .join('\\n');\n}\n\n/**\n * The host allowances a vendor's OAuth2 block carries: what the source's dropdowns state, replaced\n * per placeholder by what a human recorded in the catalogue decisions (#623).\n *\n * Returned in placeholder first-appearance order, so the emitted block reads in the order the vendor\n * writes its URLs. Decision entries that name no host/origin placeholder of this vendor's endpoints\n * are returned as UNMATCHED — a decision that has stopped applying must refuse a full batch rather\n * than silently leave a host unguarded or a stale set in place.\n *\n * An unrecognised decision `kind`, a DECLARED_VALUES decision with no values, or a suffix without a\n * leading dot REFUSES immediately, like an unknown tier: a typo in an allow-list for a secret-bearing\n * request must never degrade to \"no allowance\" or, worse, to a looser one.\n */\nexport function resolveOAuth2EndpointHostAllowances(\n provider: TransposedProvider,\n decisions: CatalogueDecisions | undefined,\n): {\n readonly allowances: ReadonlyMap<string, ProviderOAuth2EndpointHostAllowance>;\n readonly scopeValueAllowances: ReadonlyMap<string, ProviderOAuth2ScopeValueAllowance>;\n readonly unmatched: readonly UnmatchedRecordEntry[];\n} {\n const recorded = decisions?.oauth2EndpointHostAllowances ?? {};\n const refusals = decisions?.oauth2EndpointHostRefusals ?? {};\n const unmatched: UnmatchedRecordEntry[] = [];\n const allowances = new Map<string, ProviderOAuth2EndpointHostAllowance>();\n const scopeValueAllowances = new Map<string, ProviderOAuth2ScopeValueAllowance>();\n\n const hasEndpoints = provider.auth.kind === TransposedAuthKind.OAUTH2 && provider.auth.authUrl !== undefined && provider.auth.tokenUrl !== undefined;\n const urls = hasEndpoints ? [provider.auth.authUrl!, provider.auth.tokenUrl!] : [];\n // Scopes are only ever emitted beside endpoints (`renderOAuth2Block`), so only then are they checked.\n const scopes = hasEndpoints ? provider.auth.scopes ?? [] : [];\n // A template the runtime would refuse whatever is declared must not be emitted as though it could\n // connect. The Activepieces reader withholds such endpoints itself; reaching here with one means a\n // reader regressed, and the batch says so rather than shipping it.\n for (const url of urls) {\n const defects = findProviderOAuth2EndpointTemplateDefects(url);\n if (defects.length > 0) {\n throw new Error(`Provider '${provider.ref}' carries the OAuth2 endpoint '${url}', which cannot be resolved safely (${defects.join(', ')}).`);\n }\n }\n for (const scope of scopes) {\n const defects = findProviderOAuth2ScopeTemplateDefects(scope);\n if (defects.length > 0) {\n throw new Error(`Provider '${provider.ref}' carries the OAuth2 scope '${scope}', which cannot be resolved safely (${defects.join(', ')}).`);\n }\n }\n\n const hostNames: string[] = [];\n const placeholderShape = new Map<string, { position: ProviderOAuth2EndpointPlaceholderPosition; occupiesWholeHost: boolean }>();\n const recordShape = (name: string, position: ProviderOAuth2EndpointPlaceholderPosition, occupiesWholeHost: boolean): void => {\n if (!hostNames.includes(name)) hostNames.push(name);\n const seen = placeholderShape.get(name);\n if (seen !== undefined && seen.position !== position) {\n throw new Error(\n `Provider '${provider.ref}' uses '${name}' as both an ORIGIN and a HOST across its OAuth2 endpoints and scopes; no single allowance can be sound for both.`,\n );\n }\n // The STRICTEST shape across every use: a HOST suffix is admissible only if every use is a whole host.\n placeholderShape.set(name, { position, occupiesWholeHost: (seen?.occupiesWholeHost ?? true) && occupiesWholeHost });\n };\n for (const url of urls) {\n for (const occurrence of classifyProviderOAuth2EndpointPlaceholders(url)) {\n if (occurrence.position === ProviderOAuth2EndpointPlaceholderPosition.PATH_OR_QUERY) continue;\n recordShape(occurrence.name, occurrence.position, occurrence.occupiesWholeHost);\n }\n }\n // A scope beginning `{name}/` forms an ORIGIN and is governed by the same allow-list (#991).\n const wholeScopeNames: string[] = [];\n const scopeOriginNames = new Set<string>();\n for (const scope of scopes) {\n const occurrence = classifyProviderOAuth2ScopePlaceholder(scope);\n if (occurrence === undefined) continue;\n if (occurrence.position === ProviderOAuth2ScopePlaceholderPosition.ORIGIN) {\n scopeOriginNames.add(occurrence.name);\n recordShape(occurrence.name, ProviderOAuth2EndpointPlaceholderPosition.ORIGIN, false);\n } else if (!wholeScopeNames.includes(occurrence.name)) {\n wholeScopeNames.push(occurrence.name);\n }\n }\n for (const name of wholeScopeNames) {\n if (hostNames.includes(name)) {\n throw new Error(`Provider '${provider.ref}' uses '${name}' both as a whole OAuth2 scope and to form a host; no single value can be sound for both.`);\n }\n const extractedScopeSets = provider.auth.scopeValueAllowances ?? {};\n const extracted = Object.hasOwn(extractedScopeSets, name) ? extractedScopeSets[name] : undefined;\n if (extracted === undefined) continue;\n const defects = describeProviderOAuth2ScopeValueAllowanceDefects(extracted);\n if (defects.length > 0) {\n throw new Error(`The scope value set extracted from the source catalogue for '${name}' on provider '${provider.ref}' cannot be applied: ${defects.join('; ')}.`);\n }\n scopeValueAllowances.set(name, {\n values: extracted.values,\n ...(extracted.unsupportedValues === undefined ? {} : { unsupportedValues: extracted.unsupportedValues }),\n });\n }\n const assertSound = (name: string, allowance: ProviderOAuth2EndpointHostAllowance, origin: string): ProviderOAuth2EndpointHostAllowance => {\n const defects = describeProviderOAuth2EndpointHostAllowanceDefects(placeholderShape.get(name)!, allowance);\n if (defects.length > 0) {\n throw new Error(`${origin} for '${name}' on provider '${provider.ref}' cannot be applied: ${defects.join('; ')}.`);\n }\n return allowance;\n };\n\n const decisionFile = `decisions/${provider.ref}.json`;\n for (const name of Object.keys(recorded)) {\n if (!hostNames.includes(name)) {\n unmatched.push({\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.OAUTH2_ENDPOINT_HOST,\n detail: `${decisionFile} records an OAuth2 host allowance for '${name}', which no emitted OAuth2 endpoint of this vendor carries in a host or origin position`,\n });\n }\n }\n for (const name of Object.keys(refusals)) {\n if (!hostNames.includes(name) || Object.hasOwn(recorded, name)) {\n unmatched.push({\n ref: provider.ref,\n kind: UnmatchedRecordEntryKind.OAUTH2_ENDPOINT_HOST,\n detail: `${decisionFile} records an OAuth2 host refusal for '${name}', which ${Object.hasOwn(recorded, name) ? 'also has a recorded allowance' : 'no emitted OAuth2 endpoint of this vendor carries in a host or origin position'}`,\n });\n }\n }\n\n for (const name of hostNames) {\n if (Object.hasOwn(refusals, name)) continue;\n const decision = Object.hasOwn(recorded, name) ? recorded[name] : undefined;\n if (decision !== undefined) {\n allowances.set(name, assertSound(name, projectHostAllowanceDecision(provider, name, decision), `decisions/${provider.ref}.json oauth2EndpointHostAllowances`));\n continue;\n }\n const extractedSets = provider.auth.endpointHostAllowances ?? {};\n const extracted = Object.hasOwn(extractedSets, name) ? extractedSets[name] : undefined;\n if (extracted !== undefined && extracted.values.length > 0) {\n allowances.set(name, assertSound(\n name,\n {\n kind: ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES,\n values: extracted.values,\n ...(extracted.unsupportedValues === undefined ? {} : { unsupportedValues: extracted.unsupportedValues }),\n },\n 'The host set extracted from the source catalogue',\n ));\n }\n }\n // A scope's origin is resolved ONLY within declared values at runtime (`resolveProviderOAuth2Scopes`), so\n // any other kind on a name a scope uses as an origin is refused here rather than shipped as a provider\n // every connect refuses (#991 review F6).\n for (const name of scopeOriginNames) {\n const allowance = allowances.get(name);\n if (allowance !== undefined && allowance.kind !== ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES) {\n throw new Error(\n `Provider '${provider.ref}' uses '${name}' as the origin of an OAuth2 scope, which only a DECLARED_VALUES allowance can fill; `\n + `its allowance is ${allowance.kind}.`,\n );\n }\n }\n // Two placeholders deriving ONE env var (`authHost` and `auth_host` both → `…_AUTH_HOST`) would share a\n // slot the runtime reads for either, so the generator refuses the pair (#992 review F7).\n const placeholderByEnvVarName = new Map<string, string>();\n for (const [name, allowance] of allowances) {\n if (allowance.kind !== ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED) continue;\n const existing = placeholderByEnvVarName.get(allowance.envVarName);\n if (existing !== undefined) {\n throw new Error(`Provider '${provider.ref}' derives '${allowance.envVarName}' for both '${existing}' and '${name}'; each deployment-configured host needs its own variable.`);\n }\n placeholderByEnvVarName.set(allowance.envVarName, name);\n }\n return { allowances, scopeValueAllowances, unmatched };\n}\n\n/**\n * The env var an OPERATION base URL's host comes from, when the vendor's decision derives it from one of\n * its deployment-configured OAuth2 hosts (`operationBaseUrlFromOAuth2Host`, #992 review F3), or `undefined`.\n *\n * Workday's operations call `https://<apiHost>/ccx/…` — the host its token endpoint uses. The source reads\n * that host from a connection prop the reader could not follow, so the transposed base URL was the\n * unfillable `https://{auth}` and every operation failed on a vendor advertised as connectable. The decision\n * names the placeholder; the variable is the one its DEPLOYMENT_CONFIGURED allowance already derives, so\n * the operation host and the token host are one slot.\n *\n * Refuses a decision that names no DEPLOYMENT_CONFIGURED host of this vendor, or carries no `source`: it\n * could only ever emit a base URL nothing sets.\n */\nexport function operationBaseUrlHostEnvVarName(provider: TransposedProvider, decisions: CatalogueDecisions | undefined): string | undefined {\n const decision = decisions?.operationBaseUrlFromOAuth2Host;\n if (decision === undefined) return undefined;\n const where = `decisions/${provider.ref}.json operationBaseUrlFromOAuth2Host`;\n if (typeof decision.source !== 'string' || decision.source.trim() === '') {\n throw new Error(`${where} carries no 'source'. Where every operation is sent must say why.`);\n }\n const allowance = resolveOAuth2EndpointHostAllowances(provider, decisions).allowances.get(decision.placeholder);\n if (allowance?.kind !== ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED) {\n throw new Error(`${where} names '${decision.placeholder}', which is not a DEPLOYMENT_CONFIGURED OAuth2 host of provider '${provider.ref}'.`);\n }\n return allowance.envVarName;\n}\n\n/** The secret slugs a generated module already declares — a deployment-configured host may not reuse one. */\nconst RESERVED_SECRET_SLOT_SLUGS: ReadonlySet<string> = new Set(['accessToken', 'apiKey', 'baseUrl', 'clientId', 'clientSecret']);\n\n/** `authHost` → `AUTH_HOST`, the env-var tail of a deployment-configured host (#992). */\nfunction screamingSnakeCase(name: string): string {\n return name.replace(/([a-z0-9])([A-Z])/g, '$1_$2').replace(/[^A-Za-z0-9]+/g, '_').toUpperCase();\n}\n\nfunction projectHostAllowanceDecision(\n provider: TransposedProvider,\n name: string,\n decision: NonNullable<CatalogueDecisions['oauth2EndpointHostAllowances']>[string],\n): ProviderOAuth2EndpointHostAllowance {\n const ref = provider.ref;\n const where = `decisions/${ref}.json oauth2EndpointHostAllowances.${name}`;\n if (typeof decision.source !== 'string' || decision.source.trim() === '') {\n throw new Error(`${where} carries no 'source'. An allow-list for the request that carries the client secret must say where its hosts came from.`);\n }\n switch (decision.kind) {\n case ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES: {\n const values = decision.values ?? [];\n const hostSuffixes = decision.hostSuffixes ?? [];\n if (values.length === 0 && hostSuffixes.length === 0) {\n throw new Error(`${where} is DECLARED_VALUES with no values and no host suffixes, which admits nothing. Record a refusal instead.`);\n }\n const undotted = hostSuffixes.find((suffix) => !suffix.startsWith('.'));\n if (undotted !== undefined) {\n throw new Error(`${where} declares the host suffix '${undotted}' without a leading dot, which would admit look-alike hosts.`);\n }\n if (decision.originMatchesDeploymentBaseUrl !== undefined && decision.originMatchesDeploymentBaseUrl !== true) {\n throw new Error(`${where} declares originMatchesDeploymentBaseUrl as '${String(decision.originMatchesDeploymentBaseUrl)}'; it is either true or absent.`);\n }\n return {\n kind: ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES,\n values,\n ...(hostSuffixes.length === 0 ? {} : { hostSuffixes }),\n ...(decision.originMatchesDeploymentBaseUrl === true ? { originMatchesDeploymentBaseUrl: true as const } : {}),\n };\n }\n case ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_BASE_URL:\n return {\n kind: ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_BASE_URL,\n ...(decision.baseUrlPathSuffix === undefined ? {} : { baseUrlPathSuffix: decision.baseUrlPathSuffix }),\n };\n case ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED: {\n // DERIVED, never authored: the slot this value arrives through is named by the same rule, so the two\n // cannot disagree. A collision with a slot the module already declares would read the client secret\n // (or the account token) as a host, so it refuses rather than shadowing one.\n const envPrefix = envPrefixFor(ref);\n const envVarName = `${envPrefix}_${screamingSnakeCase(name)}`;\n const taken = new Set([`${envPrefix}_CLIENT_ID`, `${envPrefix}_CLIENT_SECRET`, `${envPrefix}_BASE_URL`, accountSecretEnvVarFor(provider, envPrefix)]);\n if (RESERVED_SECRET_SLOT_SLUGS.has(name) || taken.has(envVarName)) {\n throw new Error(`${where} is DEPLOYMENT_CONFIGURED, and its slot '${name}' / '${envVarName}' collides with a secret slot the module already declares.`);\n }\n return { kind: ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED, envVarName };\n }\n case ProviderOAuth2EndpointHostAllowanceKind.DERIVED_FROM_CONNECTION_ANSWER:\n // Evaluated from the vendor's source (#1937), never recorded: a decision would be a second authority for a\n // table the source already states, and would silently disagree with it the day the source moves.\n throw new Error(`${where} records DERIVED_FROM_CONNECTION_ANSWER, which is derived from the vendor's source and never recorded. Remove it.`);\n default:\n throw new Error(\n `${where} declares kind '${decision.kind}', which is not a ProviderOAuth2EndpointHostAllowanceKind value `\n + `(${Object.values(ProviderOAuth2EndpointHostAllowanceKind).join(', ')}).`,\n );\n }\n}\n\n/**\n * The `{token}` placeholders an OAuth2 endpoint carries, deduplicated and in first-appearance order.\n *\n * Re-measured over the generated catalogue on 2026-09-12: 20 of the 99 vendors with both endpoints\n * carry at least one — `{cloud}` (18 occurrences), `{location}` (10), `{tenantId}` (6), plus\n * `{region}`, `{environment}`, `{domain}`, `{baseUrl}`, `{authHost}`, `{apiHost}`, `{tenant}`. A PATH\n * placeholder is something the person connecting supplies; a HOST/ORIGIN one is chosen from the\n * provider's declared allowance or filled by the deployment (#623) — see\n * `resolveOAuth2EndpointHostAllowances`.\n *\n * Deliberately the same brace syntax the operation path templates already use, so one vocabulary\n * covers both. Deliberately NOT a URL parse: an authorize URL with an unresolved placeholder in its\n * HOST is not a parseable URL, which is exactly the population this exists to find.\n *\n * First-appearance order rather than sorted, because the order a vendor writes them in is the order\n * they read to a person filling in a form — `{cloud}` then `{tenantId}` is how Microsoft's own\n * documentation presents them, and re-sorting to `cloud, tenantId` is luck rather than design.\n */\nfunction collectEndpointPlaceholders(urls: readonly string[]): readonly string[] {\n const names: string[] = [];\n for (const url of urls) {\n for (const match of url.matchAll(/\\{([A-Za-z_][A-Za-z0-9_]*)\\}/g)) {\n const name = match[1]!;\n if (!names.includes(name)) names.push(name);\n }\n }\n return names;\n}\n\n/**\n * Where the credential rides.\n *\n * A bearer header is the right default for SECRET_TEXT and OAUTH2 and is what the overwhelming\n * majority of the catalogue's vendors use; BASIC and CUSTOM are named honestly rather than forced\n * into it, because a wrong header placement authenticates nothing and the failure reads as a\n * credential problem rather than a transposition one.\n */\nfunction authHeaderFor(kind: TransposedAuthKind): { readonly name: string; readonly prefix?: string } {\n switch (kind) {\n case TransposedAuthKind.OAUTH2:\n case TransposedAuthKind.SECRET_TEXT:\n return { name: 'Authorization', prefix: 'Bearer ' };\n case TransposedAuthKind.BASIC:\n return { name: 'Authorization', prefix: 'Basic ' };\n case TransposedAuthKind.CUSTOM:\n case TransposedAuthKind.NONE:\n return { name: 'Authorization' };\n }\n}\n\nfunction identifierFor(ref: string): string {\n return ref\n .split(/[^a-zA-Z0-9]+/)\n .filter((part) => part.length > 0)\n .map((part) => part[0]!.toUpperCase() + part.slice(1))\n .join('');\n}\n\n/**\n * The saas-models enums a rendered compliance profile names, so the import line and the literal agree — rendering a\n * member without importing its enum emits a module that reads correctly and does not compile.\n */\nfunction complianceProfileEnumNames(profile: ProviderComplianceProfile): readonly string[] {\n if (profile.determination === ProviderComplianceDetermination.UNDETERMINED) return ['ProviderComplianceDetermination'];\n return ['ProviderComplianceDetermination', 'ProviderDeploymentModel', ...((profile.evidence ?? []).length > 0 ? ['ProviderComplianceFact'] : [])];\n}\n\nfunction complianceProfileEnumImports(profile: ProviderComplianceProfile): string {\n return [...complianceProfileEnumNames(profile)].sort().map((name) => `${name}, `).join('');\n}\n\n/**\n * A compliance profile as a TypeScript literal (#1708), enum MEMBERS rather than their values, for the reason the\n * protocol binding writes `'REST_API'`: the enum is the contract, and a value compiles only by coincidence.\n */\nfunction renderComplianceProfile(profile: ProviderComplianceProfile, indent: string): string {\n const inner = `${indent} `;\n if (profile.determination === ProviderComplianceDetermination.UNDETERMINED) {\n return `{\\n${inner}determination: ProviderComplianceDetermination.UNDETERMINED,\\n${inner}reason: ${quote(profile.reason)},\\n${indent}}`;\n }\n const lines = [\n `determination: ProviderComplianceDetermination.ESTABLISHED,`,\n `deploymentModels: [${profile.deploymentModels.map((model) => `ProviderDeploymentModel.${model}`).join(', ')}],`,\n `processingRegions: [${profile.processingRegions.map(quote).join(', ')}],`,\n ...(profile.vendorLegalEntityName === undefined ? [] : [`vendorLegalEntityName: ${quote(profile.vendorLegalEntityName)},`]),\n ...(profile.subprocessorListUrl === undefined ? [] : [`subprocessorListUrl: ${quote(profile.subprocessorListUrl)},`]),\n ...(profile.dataProcessingAgreementUrl === undefined ? [] : [`dataProcessingAgreementUrl: ${quote(profile.dataProcessingAgreementUrl)},`]),\n ...((profile.evidence ?? []).length === 0 ? [] : [\n 'evidence: [',\n ...(profile.evidence ?? []).map((entry) => ` { facts: [${entry.facts.map((fact) => `ProviderComplianceFact.${fact}`).join(', ')}], source: ${quote(entry.source)}, verifiedAt: ${quote(entry.verifiedAt)} },`),\n '],',\n ]),\n ];\n return `{\\n${lines.map((line) => `${inner}${line}`).join('\\n')}\\n${indent}}`;\n}\n\nfunction quote(value: string): string {\n return JSON.stringify(value);\n}\n"]}
|