@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
|
@@ -37,8 +37,8 @@ import { existsSync } from 'node:fs';
|
|
|
37
37
|
import { mkdir, readFile, writeFile } from 'node:fs/promises';
|
|
38
38
|
import { dirname, join } from 'node:path';
|
|
39
39
|
import { resolvePlaybookOutputLandingTarget } from '@wildo-ai/application-creation-runtime';
|
|
40
|
-
import { resolvePackageCompanionEntryPath } from '@wildo-ai/platform-config-lib';
|
|
41
|
-
import { GovernedDocumentClass, GovernedDocumentInteractionKind, GovernedDocumentPublicationChannelKind, GovernedDocumentPublicDocumentKind, GovernedDocumentPublicDocumentSchema, GovernedDocumentReleaseApprovalState, PUBLIC_GOVERNED_DOCUMENT_REFS, governedDocumentReleaseIdentityKey, projectGovernedDocumentInteractionSurface, projectGovernedDocumentPublicRelease, describeCaughtError, } from '@wildo-ai/saas-models';
|
|
40
|
+
import { ConfigModuleResolution, resolvePackageCompanionEntryPath } from '@wildo-ai/platform-config-lib';
|
|
41
|
+
import { GovernedDocumentClass, GovernedDocumentInteractionKind, GovernedDocumentPublicationChannelKind, GovernedDocumentPublicDocumentKind, GovernedDocumentPublicDocumentSchema, GovernedDocumentReleaseApprovalState, PUBLIC_GOVERNED_DOCUMENT_REFS, governedDocumentReleaseIdentityKey, projectGovernedDocumentInteractionSurface, withReplacementEnd, projectGovernedDocumentPublicRelease, describeCaughtError, } from '@wildo-ai/saas-models';
|
|
42
42
|
import { ApplicationSpecificationFamilySemanticSchemaRef, } from '@wildo-ai/saas-specifications/application-creation';
|
|
43
43
|
import { composeGovernedDocumentRelease, GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH, projectComplianceDocumentCandidatePublicContent, } from '@wildo-ai/saas-specifications/assurance';
|
|
44
44
|
import { tsImport } from 'tsx/esm/api';
|
|
@@ -68,8 +68,8 @@ export class GovernedDocumentReleasesGenerationError extends Error {
|
|
|
68
68
|
*
|
|
69
69
|
* ## It reads SOURCE, and the reason is a release it nearly dropped
|
|
70
70
|
*
|
|
71
|
-
* `resolvePackageCompanionEntryPath` returns the DIST unless asked for
|
|
72
|
-
*
|
|
71
|
+
* `resolvePackageCompanionEntryPath` returns the DIST unless asked for
|
|
72
|
+
* {@link ConfigModuleResolution.FRAMEWORK_SOURCE}. The first run against Wonder CRM took the default and read ONE release where the
|
|
73
73
|
* application composed TWO — the dist predated the service terms by an hour and no watcher refreshed
|
|
74
74
|
* it. So source wins whenever it exists; a published-package layout still resolves through its export
|
|
75
75
|
* map, where the dist IS the truth.
|
|
@@ -79,7 +79,7 @@ export class GovernedDocumentReleasesGenerationError extends Error {
|
|
|
79
79
|
* from the running application — so it throws.
|
|
80
80
|
*/
|
|
81
81
|
export async function loadGovernedDocumentReleaseInputs(specificationsPackageRoot) {
|
|
82
|
-
const entryPath = resolvePackageCompanionEntryPath(specificationsPackageRoot, undefined, { moduleResolution:
|
|
82
|
+
const entryPath = resolvePackageCompanionEntryPath(specificationsPackageRoot, undefined, { moduleResolution: ConfigModuleResolution.FRAMEWORK_SOURCE });
|
|
83
83
|
const exports = await importDefaultSurface(entryPath, 'the specifications companion entry');
|
|
84
84
|
return {
|
|
85
85
|
releases: exports.documentReleaseSet?.releases ?? [],
|
|
@@ -171,7 +171,7 @@ export function projectGovernedDocumentPublicDocuments(input) {
|
|
|
171
171
|
documents.push(GovernedDocumentPublicDocumentSchema.parse({
|
|
172
172
|
schemaVersion: 1,
|
|
173
173
|
kind: GovernedDocumentPublicDocumentKind.RELEASED,
|
|
174
|
-
release: projectGovernedDocumentPublicRelease(release),
|
|
174
|
+
release: projectGovernedDocumentPublicRelease(withReplacementEnd(release, input.releases)),
|
|
175
175
|
content: release.content,
|
|
176
176
|
approvalState: release.approvalState,
|
|
177
177
|
}));
|
|
@@ -200,6 +200,16 @@ export function projectGovernedDocumentPublicDocuments(input) {
|
|
|
200
200
|
}
|
|
201
201
|
return { documents, unrenderedDrafts };
|
|
202
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* The consent surfaces the running application reads, one per recorded release. PURE.
|
|
205
|
+
*
|
|
206
|
+
* A superseded release ends where its replacement begins (`withReplacementEnd`, #3127): the record is never rewritten,
|
|
207
|
+
* its projection ends. Without it a replaced release stayed in force beside its replacement, and the acceptance gate
|
|
208
|
+
* asked for the same document twice.
|
|
209
|
+
*/
|
|
210
|
+
export function projectGovernedDocumentInteractionSurfaces(releases) {
|
|
211
|
+
return releases.map((release) => projectGovernedDocumentInteractionSurface(withReplacementEnd(release, releases)));
|
|
212
|
+
}
|
|
203
213
|
/**
|
|
204
214
|
* Render the recorded-releases data module. PURE.
|
|
205
215
|
*
|
|
@@ -284,11 +294,21 @@ export function renderGovernedDocumentReleasesModule(surfaces, publicDocuments)
|
|
|
284
294
|
return [imports, '', header, surfacesDeclaration, '', publicDocumentsDeclaration, ''].join('\n');
|
|
285
295
|
}
|
|
286
296
|
/**
|
|
287
|
-
*
|
|
297
|
+
* Whether the runtime module must exist (#3164): once it does, and whenever there is a release surface or a public
|
|
298
|
+
* document to carry. An application that records no release and holds no public draft has nothing to project, and its
|
|
299
|
+
* `saas-config.backend.ts` assigns nothing until it does, so an ABSENT module is current there and none is written. The
|
|
300
|
+
* same rule as the recorded-releases file beside it (`wantsRecordedFile`), and the rule `wildo config validate` states.
|
|
301
|
+
*/
|
|
302
|
+
export function governedDocumentReleasesModuleIsWanted(previous, surfaceCount, publicDocumentCount) {
|
|
303
|
+
return previous !== undefined || surfaceCount > 0 || publicDocumentCount > 0;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Record pending releases, then write the modules that are wanted. With `dryRun`, write nothing and report whether
|
|
288
307
|
* anything would change — which is what `--check` and the `document-releases` validate domain ask.
|
|
289
308
|
*
|
|
290
|
-
* The recorded-releases module is written only when there is something to record or it already exists,
|
|
291
|
-
* so an application that declares no release decisions
|
|
309
|
+
* The recorded-releases module is written only when there is something to record or it already exists, and the runtime
|
|
310
|
+
* module only when {@link governedDocumentReleasesModuleIsWanted}, so an application that declares no release decisions
|
|
311
|
+
* and holds no public draft gets no file it never asked for.
|
|
292
312
|
*/
|
|
293
313
|
export async function generateGovernedDocumentReleasesModule(input) {
|
|
294
314
|
const backendDir = join(input.appRoot, 'backend-api');
|
|
@@ -302,7 +322,7 @@ export async function generateGovernedDocumentReleasesModule(input) {
|
|
|
302
322
|
const recordedPrevious = existsSync(recordedReleasesPath) ? await readFile(recordedReleasesPath, 'utf-8') : undefined;
|
|
303
323
|
const wantsRecordedFile = recordedPrevious !== undefined || inputs.compositions.length > 0;
|
|
304
324
|
const recordedChanged = wantsRecordedFile && recordedPrevious !== recordedContent;
|
|
305
|
-
const surfaces = releases
|
|
325
|
+
const surfaces = projectGovernedDocumentInteractionSurfaces(releases);
|
|
306
326
|
const { documents, unrenderedDrafts } = projectGovernedDocumentPublicDocuments({
|
|
307
327
|
releases,
|
|
308
328
|
drafts: inputs.drafts,
|
|
@@ -311,7 +331,7 @@ export async function generateGovernedDocumentReleasesModule(input) {
|
|
|
311
331
|
const content = renderGovernedDocumentReleasesModule(surfaces, documents);
|
|
312
332
|
const path = join(input.appRoot, GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH);
|
|
313
333
|
const previous = existsSync(path) ? await readFile(path, 'utf-8') : undefined;
|
|
314
|
-
const moduleChanged = previous !== content;
|
|
334
|
+
const moduleChanged = governedDocumentReleasesModuleIsWanted(previous, surfaces.length, documents.length) && previous !== content;
|
|
315
335
|
if (input.dryRun !== true) {
|
|
316
336
|
if (recordedChanged) {
|
|
317
337
|
await mkdir(dirname(recordedReleasesPath), { recursive: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"governed-document-releases.generator.js","sourceRoot":"","sources":["../../../../../../src/services/compliance/governed-document-releases.generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OA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K,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,kFAAkF;AAClF,SAAS,KAAK,CAAC,KAAa;IAC1B,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;AAClE,CAAC","sourcesContent":["/**\n * Records an application's governed-document releases as DATA, and carries them — with the drafts of\n * documents never released — into its RUNTIME config (issues #860, #968).\n *\n * ## Two gaps, one command\n *\n * **#860 — nothing connected specifications to the runtime.** A release is composed in the\n * application's specifications package, and the running application reads it from\n * `compliance.governedDocumentReleases` (the registration consent control and the interaction\n * recorder) and `compliance.publicDocuments` (the public privacy and terms pages). No package in either\n * example application depends on its own `specifications` package, so the values were hand-copied, and\n * a copy nobody refreshed was a legal statement a person could be bound by.\n *\n * **#968 — a release's text was never frozen.** A release carries the text it publishes, but an\n * application that composes its releases from the live draft on every import re-captures today's\n * draft into every release. So the application declares its release DECISIONS\n * (`documentReleaseCompositions`), and this command composes each decision whose release identity is\n * not yet RECORDED and appends the finished record to `recorded-releases.generated.ts`. A recorded\n * release is never recomposed: editing the draft afterwards changes nothing about it, and publishing\n * new text is a new composition with the next `releaseVersion`. That file IS the release; git is its\n * history.\n *\n * ## Why these shapes, copied from `brandAssets` rather than invented\n *\n * `wildo brand propagate` already reads a specification SSOT and writes a `*.generated.ts` module that\n * `saas-config.backend.ts` imports. Same two ends, same boundary, same answer.\n *\n * ## The PROJECTIONS are the part that must not be skipped\n *\n * The runtime module reaches an unauthenticated browser. A full release also carries `governanceScope`\n * and `approvalDecisions` — internal custody detail. `projectGovernedDocumentInteractionSurface` and\n * `projectGovernedDocumentPublicRelease` are allow-lists, and both run on every release before a byte\n * of the runtime module is written. A draft's public text is itself an allow-list projection\n * (`projectComplianceDocumentCandidatePublicContent`): no fact refs, no source policies, no `closedBy`.\n */\n\nimport { existsSync } from 'node:fs';\nimport { mkdir, readFile, writeFile } from 'node:fs/promises';\nimport { dirname, join } from 'node:path';\n\nimport { resolvePlaybookOutputLandingTarget } from '@wildo-ai/application-creation-runtime';\nimport { resolvePackageCompanionEntryPath } from '@wildo-ai/platform-config-lib';\nimport {\n GovernedDocumentClass,\n GovernedDocumentInteractionKind,\n GovernedDocumentPublicationChannelKind,\n GovernedDocumentPublicDocumentKind,\n GovernedDocumentPublicDocumentSchema,\n GovernedDocumentReleaseApprovalState,\n PUBLIC_GOVERNED_DOCUMENT_REFS,\n governedDocumentReleaseIdentityKey,\n projectGovernedDocumentInteractionSurface,\n projectGovernedDocumentPublicRelease,\n type GovernedDocumentInteractionSurface,\n type GovernedDocumentPublicDocument,\n type GovernedDocumentRelease,\n describeCaughtError,\n} from '@wildo-ai/saas-models';\nimport {\n ApplicationSpecificationFamilySemanticSchemaRef,\n type ApplicationComplianceDocumentCandidateSet,\n type ComplianceDocumentCandidate,\n} from '@wildo-ai/saas-specifications/application-creation';\nimport {\n composeGovernedDocumentRelease,\n GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH,\n projectComplianceDocumentCandidatePublicContent,\n type AssuranceDocumentPublicationVariant,\n type GovernedDocumentReleaseComposition,\n} from '@wildo-ai/saas-specifications/assurance';\nimport { tsImport } from 'tsx/esm/api';\n\n/** The consent-surface constant the application's `saas-config.backend.ts` imports. */\nexport const GOVERNED_DOCUMENT_RELEASES_GENERATED_CONSTANT = 'generatedGovernedDocumentReleases';\n\n/** The public-document constant the application's `saas-config.backend.ts` imports. */\nexport const GOVERNED_DOCUMENT_PUBLIC_DOCUMENTS_GENERATED_CONSTANT = 'generatedPublicDocuments';\n\n/** Where recorded releases land. Relative to the SPECIFICATIONS package root, inside the release-set family's directory. */\nexport const RECORDED_DOCUMENT_RELEASES_RELATIVE_PATH = join('src', 'document-releases', 'recorded-releases.generated.ts');\n\n/** The constant the application's `document-releases/index.ts` builds its release set from. */\nexport const RECORDED_DOCUMENT_RELEASES_CONSTANT = 'recordedDocumentReleases';\n\n/*\n * The constant prefix every landing run uses — the companion's playbook runner and its controller\n * both pass `'application'`, and a draft set is only ever written by landing. Named once here so the\n * placement this command reads is the placement landing writes.\n */\nconst LANDED_CONSTANT_PREFIX = 'application';\n\nexport class GovernedDocumentReleasesGenerationError extends Error {}\n\n/** Everything the command needs from the specifications package, loaded through the companion entry. */\nexport interface GovernedDocumentReleaseInputs {\n /** The releases already recorded — what `documentReleaseSet` holds. */\n readonly releases: readonly GovernedDocumentRelease[];\n /** The release decisions the application declared; empty when it declares none. */\n readonly compositions: readonly GovernedDocumentReleaseComposition[];\n /** Every draft the application holds, read from the draft set's landing placement. */\n readonly drafts: readonly ComplianceDocumentCandidate[];\n /** The locale × jurisdiction combinations the application publishes in. */\n readonly publishedVariants: readonly AssuranceDocumentPublicationVariant[];\n}\n\n/**\n * Read the release set, the release decisions, the publication variants and the drafts.\n *\n * Through the ONE door the companion already opens — `resolvePackageCompanionEntryPath`, which reads the\n * specifications package's `./companion` export — except for the drafts, which companion exports\n * deliberately do not carry (a draft is not accepted application truth). Those are read from the\n * placement landing writes them to, resolved by landing's own resolver so the two cannot disagree.\n *\n * ## It reads SOURCE, and the reason is a release it nearly dropped\n *\n * `resolvePackageCompanionEntryPath` returns the DIST unless asked for `moduleResolution:\n * 'framework-source'`. The first run against Wonder CRM took the default and read ONE release where the\n * application composed TWO — the dist predated the service terms by an hour and no watcher refreshed\n * it. So source wins whenever it exists; a published-package layout still resolves through its export\n * map, where the dist IS the truth.\n *\n * ABSENT vs FAILED are kept apart. An application declaring no releases genuinely holds none. A package\n * that cannot be LOADED is not \"no releases\" — reporting it as empty would silently strip every release\n * from the running application — so it throws.\n */\nexport async function loadGovernedDocumentReleaseInputs(specificationsPackageRoot: string): Promise<GovernedDocumentReleaseInputs> {\n const entryPath = resolvePackageCompanionEntryPath(specificationsPackageRoot, undefined, { moduleResolution: 'framework-source' });\n const exports = await importDefaultSurface<{\n documentReleaseSet?: { releases?: readonly GovernedDocumentRelease[] };\n documentReleaseCompositions?: readonly GovernedDocumentReleaseComposition[];\n documentPublicationSpecification?: { variants?: readonly AssuranceDocumentPublicationVariant[] };\n }>(entryPath, 'the specifications companion entry');\n\n return {\n releases: exports.documentReleaseSet?.releases ?? [],\n compositions: exports.documentReleaseCompositions ?? [],\n drafts: await loadDrafts(specificationsPackageRoot),\n publishedVariants: exports.documentPublicationSpecification?.variants ?? [],\n };\n}\n\nasync function loadDrafts(specificationsPackageRoot: string): Promise<readonly ComplianceDocumentCandidate[]> {\n const target = resolvePlaybookOutputLandingTarget({\n family: 'compliance-document-candidate-set',\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.COMPLIANCE_DOCUMENT_CANDIDATE_SET,\n constantPrefix: LANDED_CONSTANT_PREFIX,\n });\n const path = join(specificationsPackageRoot, target.packageRelativePath);\n if (!existsSync(path)) return [];\n let loaded: Record<string, unknown>;\n try {\n loaded = await tsImport(path, { parentURL: import.meta.url }) as Record<string, unknown>;\n } catch (error) {\n throw new GovernedDocumentReleasesGenerationError(\n `Could not load the draft set at ${path}, so which documents have drafts is unknown. `\n + `Cause: ${describeCaughtError(error)}`,\n );\n }\n const set = loaded[target.exportedConstantName] as ApplicationComplianceDocumentCandidateSet | undefined;\n if (set === undefined) {\n throw new GovernedDocumentReleasesGenerationError(\n `The draft set at ${path} does not export ${target.exportedConstantName} — the constant landing writes — so its drafts cannot be read.`,\n );\n }\n return set.candidates;\n}\n\nasync function importDefaultSurface<T>(path: string, label: string): Promise<T> {\n let loaded: { default?: unknown };\n try {\n loaded = await tsImport(path, { parentURL: import.meta.url }) as typeof loaded;\n } catch (error) {\n throw new GovernedDocumentReleasesGenerationError(\n `Could not load ${label} at ${path}, so the composed releases are unknown. `\n + 'Refusing to write an empty module in their place — that would silently remove every release from the '\n + `running application. Cause: ${describeCaughtError(error)}`,\n );\n }\n if (!loaded.default || typeof loaded.default !== 'object') {\n throw new GovernedDocumentReleasesGenerationError(`${label} at ${path} must default-export one typed object surface.`);\n }\n return loaded.default as T;\n}\n\n/**\n * Compose every release decision whose identity is not yet recorded, and append it. PURE.\n *\n * A recorded identity is never recomposed — that is the whole of the freezing. A decision that does\n * not compose (its candidate drafts another document, its variant is not published, …) is an ISSUE: the\n * record would be false, so nothing is written. An ADVISORY (unapproved, draft-only lane) records\n * anyway, because a workflow never blocks the mechanism.\n */\nexport function recordPendingDocumentReleases(\n recorded: readonly GovernedDocumentRelease[],\n compositions: readonly GovernedDocumentReleaseComposition[],\n): { readonly releases: readonly GovernedDocumentRelease[]; readonly recordedNow: readonly string[] } {\n const known = new Set(recorded.map((release) => governedDocumentReleaseIdentityKey(release.identity)));\n const releases = [...recorded];\n const recordedNow: string[] = [];\n for (const composition of compositions) {\n const key = governedDocumentReleaseIdentityKey(composition.identity);\n if (known.has(key)) continue;\n const { release, issues } = composeGovernedDocumentRelease(composition);\n if (release === undefined) {\n throw new GovernedDocumentReleasesGenerationError(\n `The release decision ${key} does not compose, so it cannot be recorded: ${issues.map((issue) => issue.message).join('; ')}`,\n );\n }\n releases.push(release);\n known.add(key);\n recordedNow.push(key);\n }\n return { releases, recordedNow };\n}\n\n/**\n * What the public pages may serve: every release published to the public web, and — for a PUBLIC\n * document the application holds no release of — its latest draft (#968 decision 5). PURE.\n *\n * Releases are filtered by their own `publicationChannelKinds` (derived from the accepted definition),\n * drafts by the public document refs a page serves, because a candidate carries no channel. A draft's\n * language and jurisdictions come from the draft when it states both, otherwise from the application's\n * single declared variant; with several variants and none stated there is no honest choice, so the\n * draft is reported rather than rendered in a language nobody picked.\n */\nexport function projectGovernedDocumentPublicDocuments(input: {\n readonly releases: readonly GovernedDocumentRelease[];\n readonly drafts: readonly ComplianceDocumentCandidate[];\n readonly publishedVariants: readonly AssuranceDocumentPublicationVariant[];\n}): { readonly documents: readonly GovernedDocumentPublicDocument[]; readonly unrenderedDrafts: readonly string[] } {\n const documents: GovernedDocumentPublicDocument[] = [];\n const releasedDocumentRefs = new Set(input.releases.map((release) => release.identity.document.documentRef as string));\n for (const release of input.releases) {\n if (!release.publicationChannelKinds.includes(GovernedDocumentPublicationChannelKind.PUBLIC_WEB)) continue;\n documents.push(GovernedDocumentPublicDocumentSchema.parse({\n schemaVersion: 1,\n kind: GovernedDocumentPublicDocumentKind.RELEASED,\n release: projectGovernedDocumentPublicRelease(release),\n content: release.content,\n approvalState: release.approvalState,\n }));\n }\n\n const publicRefs = new Set<string>(Object.values(PUBLIC_GOVERNED_DOCUMENT_REFS));\n const unrenderedDrafts: string[] = [];\n for (const draft of input.drafts) {\n if (!publicRefs.has(draft.documentRef) || releasedDocumentRefs.has(draft.documentRef)) continue;\n const publication = draft.locale !== undefined && draft.jurisdictionRefs !== undefined\n ? { locale: draft.locale, jurisdictionRefs: [...draft.jurisdictionRefs].sort() }\n : input.publishedVariants.length === 1\n ? input.publishedVariants[0]!\n : undefined;\n if (publication === undefined) {\n unrenderedDrafts.push(\n `${draft.documentRef}: the draft states no locale and jurisdictions and the application declares `\n + `${input.publishedVariants.length} publication variants, so no language can be chosen for it`,\n );\n continue;\n }\n documents.push(GovernedDocumentPublicDocumentSchema.parse({\n schemaVersion: 1,\n kind: GovernedDocumentPublicDocumentKind.UNRELEASED_DRAFT,\n documentRef: draft.documentRef,\n content: projectComplianceDocumentCandidatePublicContent(draft, publication),\n }));\n }\n return { documents, unrenderedDrafts };\n}\n\n/**\n * Render the recorded-releases data module. PURE.\n *\n * PARSED, not annotated, because a release's refs are zod BRANDS and a string literal is not assignable\n * to one; `GovernedDocumentReleaseSchema` mints them and re-validates at load, so a hand edit that breaks\n * a record fails on import instead of reaching a page. The data is JSON, not enum member references: a\n * release is mostly prose, and `parse` takes `unknown`, so member references would buy no type safety.\n */\nexport function renderRecordedDocumentReleasesModule(releases: readonly GovernedDocumentRelease[]): string {\n const header = [\n '/**',\n ' * GENERATED by `wildo config document-releases`. DO NOT EDIT BY HAND.',\n ' *',\n ' * The governed-document releases this application has RECORDED. Each was composed once, from the',\n ' * draft as it stood, when its decision in `compositions.ts` was first recorded — and is never',\n ' * recomposed, so editing a draft changes no recorded release. Publishing new text is a new',\n ' * composition with the next `releaseVersion`; the history of a release is the history of this file.',\n ' */',\n ].join('\\n');\n if (releases.length === 0) {\n return [\n \"import type { GovernedDocumentRelease } from '@wildo-ai/saas-models';\",\n '',\n header,\n `export const ${RECORDED_DOCUMENT_RELEASES_CONSTANT}: GovernedDocumentRelease[] = [];`,\n '',\n ].join('\\n');\n }\n return [\n \"import { GovernedDocumentReleaseSchema, type GovernedDocumentRelease } from '@wildo-ai/saas-models';\",\n '',\n header,\n `export const ${RECORDED_DOCUMENT_RELEASES_CONSTANT}: GovernedDocumentRelease[] = GovernedDocumentReleaseSchema.array().parse(`\n + `${JSON.stringify(releases, null, 2)});`,\n '',\n ].join('\\n');\n}\n\n/**\n * Render the committed runtime module. PURE — no filesystem, so it is pinned directly.\n *\n * Consent surfaces keep enum MEMBER references (the #860 shape, readable in review); public documents\n * are JSON inside `GovernedDocumentPublicDocumentSchema.array().parse(…)`, because they are mostly prose\n * and the schema mints every brand and enum type at load. Imports are emitted only for what is used.\n */\nexport function renderGovernedDocumentReleasesModule(\n surfaces: readonly GovernedDocumentInteractionSurface[],\n publicDocuments: readonly GovernedDocumentPublicDocument[],\n): string {\n const header = [\n '/**',\n ' * GENERATED by `wildo config document-releases`. DO NOT EDIT BY HAND — re-run it to regenerate.',\n ' *',\n ' * The runtime projection of the governed-document releases this application recorded in',\n ' * `specifications/src/document-releases/`, and of the drafts of public documents it never released.',\n ' * `saas-config.backend.ts` composes the first constant into `compliance.governedDocumentReleases`',\n ' * (the registration consent control and the interaction recorder) and the second into',\n ' * `compliance.publicDocuments` (the public privacy and terms pages) — wildo-ai/wildo-ai#54, #860, #968.',\n ' *',\n ' * Every entry is a PROJECTION: `governanceScope` and `approvalDecisions` are withheld because this',\n ' * value reaches an unauthenticated browser.',\n ' */',\n ].join('\\n');\n\n const valueImports: string[] = [];\n const typeImports = ['type GovernedDocumentInteractionSurface', 'type GovernedDocumentPublicDocument'];\n if (surfaces.length > 0) {\n valueImports.push('GovernedDocumentClass', 'GovernedDocumentInteractionKind', 'GovernedDocumentInteractionSurfaceSchema', 'GovernedDocumentReleaseApprovalState');\n }\n if (publicDocuments.length > 0) valueImports.push('GovernedDocumentPublicDocumentSchema');\n const names = [...valueImports.sort(), ...typeImports];\n const imports = valueImports.length === 0\n ? \"import type { GovernedDocumentInteractionSurface, GovernedDocumentPublicDocument } from '@wildo-ai/saas-models';\"\n : ['import {', ...names.map((name) => ` ${name},`), \"} from '@wildo-ai/saas-models';\"].join('\\n');\n\n const surfacesDeclaration = surfaces.length === 0\n ? `export const ${GOVERNED_DOCUMENT_RELEASES_GENERATED_CONSTANT}: GovernedDocumentInteractionSurface[] = [];`\n : [\n `export const ${GOVERNED_DOCUMENT_RELEASES_GENERATED_CONSTANT}: GovernedDocumentInteractionSurface[] = GovernedDocumentInteractionSurfaceSchema.array().parse([`,\n surfaces.map(renderSurface).join('\\n'),\n ']);',\n ].join('\\n');\n\n const publicDocumentsDeclaration = publicDocuments.length === 0\n ? `export const ${GOVERNED_DOCUMENT_PUBLIC_DOCUMENTS_GENERATED_CONSTANT}: GovernedDocumentPublicDocument[] = [];`\n : `export const ${GOVERNED_DOCUMENT_PUBLIC_DOCUMENTS_GENERATED_CONSTANT}: GovernedDocumentPublicDocument[] = GovernedDocumentPublicDocumentSchema.array().parse(`\n + `${JSON.stringify(publicDocuments, null, 2)});`;\n\n return [imports, '', header, surfacesDeclaration, '', publicDocumentsDeclaration, ''].join('\\n');\n}\n\nexport interface GovernedDocumentReleasesGenerationResult {\n /** The runtime module, under the application root. */\n readonly path: string;\n /** The recorded-releases data module, under the specifications package. */\n readonly recordedReleasesPath: string;\n readonly surfaceCount: number;\n readonly publicDocumentCount: number;\n /** Release identities composed and recorded by THIS run (or that a dry run would record). */\n readonly recordedNow: readonly string[];\n /** Drafts of public documents that could not be rendered, with the reason. */\n readonly unrenderedDrafts: readonly string[];\n /** Whether either module's bytes differ from what is on disk. */\n readonly changed: boolean;\n}\n\n/**\n * Record pending releases, then write both modules. With `dryRun`, write nothing and report whether\n * anything would change — which is what `--check` and the `document-releases` validate domain ask.\n *\n * The recorded-releases module is written only when there is something to record or it already exists,\n * so an application that declares no release decisions gets no file it never asked for.\n */\nexport async function generateGovernedDocumentReleasesModule(input: {\n readonly appRoot: string;\n readonly specificationsPackageRoot: string;\n readonly dryRun?: boolean;\n}): Promise<GovernedDocumentReleasesGenerationResult> {\n const backendDir = join(input.appRoot, 'backend-api');\n if (!existsSync(backendDir)) {\n throw new GovernedDocumentReleasesGenerationError(\n `No backend-api/ package under ${input.appRoot}, so there is no runtime config to carry the releases into.`,\n );\n }\n const inputs = await loadGovernedDocumentReleaseInputs(input.specificationsPackageRoot);\n const { releases, recordedNow } = recordPendingDocumentReleases(inputs.releases, inputs.compositions);\n\n const recordedReleasesPath = join(input.specificationsPackageRoot, RECORDED_DOCUMENT_RELEASES_RELATIVE_PATH);\n const recordedContent = renderRecordedDocumentReleasesModule(releases);\n const recordedPrevious = existsSync(recordedReleasesPath) ? await readFile(recordedReleasesPath, 'utf-8') : undefined;\n const wantsRecordedFile = recordedPrevious !== undefined || inputs.compositions.length > 0;\n const recordedChanged = wantsRecordedFile && recordedPrevious !== recordedContent;\n\n const surfaces = releases.map((release) => projectGovernedDocumentInteractionSurface(release));\n const { documents, unrenderedDrafts } = projectGovernedDocumentPublicDocuments({\n releases,\n drafts: inputs.drafts,\n publishedVariants: inputs.publishedVariants,\n });\n const content = renderGovernedDocumentReleasesModule(surfaces, documents);\n const path = join(input.appRoot, GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH);\n const previous = existsSync(path) ? await readFile(path, 'utf-8') : undefined;\n const moduleChanged = previous !== content;\n\n if (input.dryRun !== true) {\n if (recordedChanged) {\n await mkdir(dirname(recordedReleasesPath), { recursive: true });\n await writeFile(recordedReleasesPath, recordedContent, 'utf-8');\n }\n if (moduleChanged) {\n await mkdir(dirname(path), { recursive: true });\n await writeFile(path, content, 'utf-8');\n }\n }\n return {\n path,\n recordedReleasesPath,\n surfaceCount: surfaces.length,\n publicDocumentCount: documents.length,\n recordedNow,\n unrenderedDrafts,\n changed: moduleChanged || recordedChanged,\n };\n}\n\n/*\n * The three enums are declared with member NAME === string VALUE, so `Enum.<value>` is a valid\n * member reference — the same property the brand renderer relies on. Asserted rather than assumed:\n * a value that is not a member would render a reference to nothing, and the application's typecheck\n * would then report it far from here.\n */\nfunction memberRef(enumName: string, enumObject: Record<string, string>, value: string): string {\n if (enumObject[value] !== value) {\n throw new GovernedDocumentReleasesGenerationError(`${value} is not a member of ${enumName}, so it cannot be rendered as ${enumName}.${value}.`);\n }\n return `${enumName}.${value}`;\n}\n\nfunction renderSurface(surface: GovernedDocumentInteractionSurface): string {\n const { identity } = surface;\n const lines = [\n ' {',\n ' schemaVersion: 1,',\n ' identity: {',\n ` document: { documentRef: ${quote(identity.document.documentRef)}, documentVersion: ${identity.document.documentVersion} },`,\n ` releaseId: ${quote(identity.releaseId)},`,\n ` releaseVersion: ${identity.releaseVersion},`,\n ' },',\n ` documentClass: ${memberRef('GovernedDocumentClass', GovernedDocumentClass, surface.documentClass)},`,\n ` locale: ${quote(surface.locale)},`,\n ` jurisdictionRefs: [${surface.jurisdictionRefs.map(quote).join(', ')}],`,\n ` allowedInteractionKinds: [${surface.allowedInteractionKinds\n .map((kind) => memberRef('GovernedDocumentInteractionKind', GovernedDocumentInteractionKind, kind))\n .join(', ')}],`,\n ` approvalState: ${memberRef('GovernedDocumentReleaseApprovalState', GovernedDocumentReleaseApprovalState, surface.approvalState)},`,\n ` effectiveAt: ${quote(surface.effectiveAt)},`,\n ];\n if (surface.expiresAt !== undefined) lines.push(` expiresAt: ${quote(surface.expiresAt)},`);\n /*\n * WHICH interactions this release says a person must perform AGAIN (#1258, Step 2), projected from its materiality\n * decision. Rendered only when there is something to say, like `expiresAt`: the schema defaults it to nothing renewed,\n * so an empty list is what its absence already means and would only add noise to every existing application's file.\n *\n * It has to be rendered AT ALL, because this file is the only way the runtime ever sees a surface: a projection that\n * carries the field and a renderer that drops it produce an application in which no release is ever material, and\n * nobody is ever asked again — with every unit test green, since each builds its surface by hand.\n */\n if (surface.renewedInteractionKinds.length > 0) {\n lines.push(` renewedInteractionKinds: [${surface.renewedInteractionKinds\n .map((kind) => memberRef('GovernedDocumentInteractionKind', GovernedDocumentInteractionKind, kind))\n .join(', ')}],`);\n }\n lines.push(' },');\n return lines.join('\\n');\n}\n\n/** Single-quote a string literal for the generated source, escaping as needed. */\nfunction quote(value: string): string {\n return `'${value.replace(/\\\\/g, '\\\\\\\\').replace(/'/g, \"\\\\'\")}'`;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"governed-document-releases.generator.js","sourceRoot":"","sources":["../../../../src/services/compliance/governed-document-releases.generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,kCAAkC,EAAE,MAAM,wCAAwC,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AACzG,OAAO,EACL,qBAAqB,EACrB,+BAA+B,EAC/B,sCAAsC,EACtC,kCAAkC,EAClC,oCAAoC,EACpC,oCAAoC,EACpC,6BAA6B,EAC7B,kCAAkC,EAClC,yCAAyC,EACzC,kBAAkB,EAClB,oCAAoC,EAIpC,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,+CAA+C,GAGhD,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EACL,8BAA8B,EAC9B,kDAAkD,EAClD,+CAA+C,GAGhD,MAAM,yCAAyC,CAAC;AACjD,OA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M,CAAC,CAAC;IACnB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,kFAAkF;AAClF,SAAS,KAAK,CAAC,KAAa;IAC1B,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;AAClE,CAAC","sourcesContent":["/**\n * Records an application's governed-document releases as DATA, and carries them — with the drafts of\n * documents never released — into its RUNTIME config (issues #860, #968).\n *\n * ## Two gaps, one command\n *\n * **#860 — nothing connected specifications to the runtime.** A release is composed in the\n * application's specifications package, and the running application reads it from\n * `compliance.governedDocumentReleases` (the registration consent control and the interaction\n * recorder) and `compliance.publicDocuments` (the public privacy and terms pages). No package in either\n * example application depends on its own `specifications` package, so the values were hand-copied, and\n * a copy nobody refreshed was a legal statement a person could be bound by.\n *\n * **#968 — a release's text was never frozen.** A release carries the text it publishes, but an\n * application that composes its releases from the live draft on every import re-captures today's\n * draft into every release. So the application declares its release DECISIONS\n * (`documentReleaseCompositions`), and this command composes each decision whose release identity is\n * not yet RECORDED and appends the finished record to `recorded-releases.generated.ts`. A recorded\n * release is never recomposed: editing the draft afterwards changes nothing about it, and publishing\n * new text is a new composition with the next `releaseVersion`. That file IS the release; git is its\n * history.\n *\n * ## Why these shapes, copied from `brandAssets` rather than invented\n *\n * `wildo brand propagate` already reads a specification SSOT and writes a `*.generated.ts` module that\n * `saas-config.backend.ts` imports. Same two ends, same boundary, same answer.\n *\n * ## The PROJECTIONS are the part that must not be skipped\n *\n * The runtime module reaches an unauthenticated browser. A full release also carries `governanceScope`\n * and `approvalDecisions` — internal custody detail. `projectGovernedDocumentInteractionSurface` and\n * `projectGovernedDocumentPublicRelease` are allow-lists, and both run on every release before a byte\n * of the runtime module is written. A draft's public text is itself an allow-list projection\n * (`projectComplianceDocumentCandidatePublicContent`): no fact refs, no source policies, no `closedBy`.\n */\n\nimport { existsSync } from 'node:fs';\nimport { mkdir, readFile, writeFile } from 'node:fs/promises';\nimport { dirname, join } from 'node:path';\n\nimport { resolvePlaybookOutputLandingTarget } from '@wildo-ai/application-creation-runtime';\nimport { ConfigModuleResolution, resolvePackageCompanionEntryPath } from '@wildo-ai/platform-config-lib';\nimport {\n GovernedDocumentClass,\n GovernedDocumentInteractionKind,\n GovernedDocumentPublicationChannelKind,\n GovernedDocumentPublicDocumentKind,\n GovernedDocumentPublicDocumentSchema,\n GovernedDocumentReleaseApprovalState,\n PUBLIC_GOVERNED_DOCUMENT_REFS,\n governedDocumentReleaseIdentityKey,\n projectGovernedDocumentInteractionSurface,\n withReplacementEnd,\n projectGovernedDocumentPublicRelease,\n type GovernedDocumentInteractionSurface,\n type GovernedDocumentPublicDocument,\n type GovernedDocumentRelease,\n describeCaughtError,\n} from '@wildo-ai/saas-models';\nimport {\n ApplicationSpecificationFamilySemanticSchemaRef,\n type ApplicationComplianceDocumentCandidateSet,\n type ComplianceDocumentCandidate,\n} from '@wildo-ai/saas-specifications/application-creation';\nimport {\n composeGovernedDocumentRelease,\n GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH,\n projectComplianceDocumentCandidatePublicContent,\n type AssuranceDocumentPublicationVariant,\n type GovernedDocumentReleaseComposition,\n} from '@wildo-ai/saas-specifications/assurance';\nimport { tsImport } from 'tsx/esm/api';\n\n/** The consent-surface constant the application's `saas-config.backend.ts` imports. */\nexport const GOVERNED_DOCUMENT_RELEASES_GENERATED_CONSTANT = 'generatedGovernedDocumentReleases';\n\n/** The public-document constant the application's `saas-config.backend.ts` imports. */\nexport const GOVERNED_DOCUMENT_PUBLIC_DOCUMENTS_GENERATED_CONSTANT = 'generatedPublicDocuments';\n\n/** Where recorded releases land. Relative to the SPECIFICATIONS package root, inside the release-set family's directory. */\nexport const RECORDED_DOCUMENT_RELEASES_RELATIVE_PATH = join('src', 'document-releases', 'recorded-releases.generated.ts');\n\n/** The constant the application's `document-releases/index.ts` builds its release set from. */\nexport const RECORDED_DOCUMENT_RELEASES_CONSTANT = 'recordedDocumentReleases';\n\n/*\n * The constant prefix every landing run uses — the companion's playbook runner and its controller\n * both pass `'application'`, and a draft set is only ever written by landing. Named once here so the\n * placement this command reads is the placement landing writes.\n */\nconst LANDED_CONSTANT_PREFIX = 'application';\n\nexport class GovernedDocumentReleasesGenerationError extends Error {}\n\n/** Everything the command needs from the specifications package, loaded through the companion entry. */\nexport interface GovernedDocumentReleaseInputs {\n /** The releases already recorded — what `documentReleaseSet` holds. */\n readonly releases: readonly GovernedDocumentRelease[];\n /** The release decisions the application declared; empty when it declares none. */\n readonly compositions: readonly GovernedDocumentReleaseComposition[];\n /** Every draft the application holds, read from the draft set's landing placement. */\n readonly drafts: readonly ComplianceDocumentCandidate[];\n /** The locale × jurisdiction combinations the application publishes in. */\n readonly publishedVariants: readonly AssuranceDocumentPublicationVariant[];\n}\n\n/**\n * Read the release set, the release decisions, the publication variants and the drafts.\n *\n * Through the ONE door the companion already opens — `resolvePackageCompanionEntryPath`, which reads the\n * specifications package's `./companion` export — except for the drafts, which companion exports\n * deliberately do not carry (a draft is not accepted application truth). Those are read from the\n * placement landing writes them to, resolved by landing's own resolver so the two cannot disagree.\n *\n * ## It reads SOURCE, and the reason is a release it nearly dropped\n *\n * `resolvePackageCompanionEntryPath` returns the DIST unless asked for\n * {@link ConfigModuleResolution.FRAMEWORK_SOURCE}. The first run against Wonder CRM took the default and read ONE release where the\n * application composed TWO — the dist predated the service terms by an hour and no watcher refreshed\n * it. So source wins whenever it exists; a published-package layout still resolves through its export\n * map, where the dist IS the truth.\n *\n * ABSENT vs FAILED are kept apart. An application declaring no releases genuinely holds none. A package\n * that cannot be LOADED is not \"no releases\" — reporting it as empty would silently strip every release\n * from the running application — so it throws.\n */\nexport async function loadGovernedDocumentReleaseInputs(specificationsPackageRoot: string): Promise<GovernedDocumentReleaseInputs> {\n const entryPath = resolvePackageCompanionEntryPath(specificationsPackageRoot, undefined, { moduleResolution: ConfigModuleResolution.FRAMEWORK_SOURCE });\n const exports = await importDefaultSurface<{\n documentReleaseSet?: { releases?: readonly GovernedDocumentRelease[] };\n documentReleaseCompositions?: readonly GovernedDocumentReleaseComposition[];\n documentPublicationSpecification?: { variants?: readonly AssuranceDocumentPublicationVariant[] };\n }>(entryPath, 'the specifications companion entry');\n\n return {\n releases: exports.documentReleaseSet?.releases ?? [],\n compositions: exports.documentReleaseCompositions ?? [],\n drafts: await loadDrafts(specificationsPackageRoot),\n publishedVariants: exports.documentPublicationSpecification?.variants ?? [],\n };\n}\n\nasync function loadDrafts(specificationsPackageRoot: string): Promise<readonly ComplianceDocumentCandidate[]> {\n const target = resolvePlaybookOutputLandingTarget({\n family: 'compliance-document-candidate-set',\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.COMPLIANCE_DOCUMENT_CANDIDATE_SET,\n constantPrefix: LANDED_CONSTANT_PREFIX,\n });\n const path = join(specificationsPackageRoot, target.packageRelativePath);\n if (!existsSync(path)) return [];\n let loaded: Record<string, unknown>;\n try {\n loaded = await tsImport(path, { parentURL: import.meta.url }) as Record<string, unknown>;\n } catch (error) {\n throw new GovernedDocumentReleasesGenerationError(\n `Could not load the draft set at ${path}, so which documents have drafts is unknown. `\n + `Cause: ${describeCaughtError(error)}`,\n );\n }\n const set = loaded[target.exportedConstantName] as ApplicationComplianceDocumentCandidateSet | undefined;\n if (set === undefined) {\n throw new GovernedDocumentReleasesGenerationError(\n `The draft set at ${path} does not export ${target.exportedConstantName} — the constant landing writes — so its drafts cannot be read.`,\n );\n }\n return set.candidates;\n}\n\nasync function importDefaultSurface<T>(path: string, label: string): Promise<T> {\n let loaded: { default?: unknown };\n try {\n loaded = await tsImport(path, { parentURL: import.meta.url }) as typeof loaded;\n } catch (error) {\n throw new GovernedDocumentReleasesGenerationError(\n `Could not load ${label} at ${path}, so the composed releases are unknown. `\n + 'Refusing to write an empty module in their place — that would silently remove every release from the '\n + `running application. Cause: ${describeCaughtError(error)}`,\n );\n }\n if (!loaded.default || typeof loaded.default !== 'object') {\n throw new GovernedDocumentReleasesGenerationError(`${label} at ${path} must default-export one typed object surface.`);\n }\n return loaded.default as T;\n}\n\n/**\n * Compose every release decision whose identity is not yet recorded, and append it. PURE.\n *\n * A recorded identity is never recomposed — that is the whole of the freezing. A decision that does\n * not compose (its candidate drafts another document, its variant is not published, …) is an ISSUE: the\n * record would be false, so nothing is written. An ADVISORY (unapproved, draft-only lane) records\n * anyway, because a workflow never blocks the mechanism.\n */\nexport function recordPendingDocumentReleases(\n recorded: readonly GovernedDocumentRelease[],\n compositions: readonly GovernedDocumentReleaseComposition[],\n): { readonly releases: readonly GovernedDocumentRelease[]; readonly recordedNow: readonly string[] } {\n const known = new Set(recorded.map((release) => governedDocumentReleaseIdentityKey(release.identity)));\n const releases = [...recorded];\n const recordedNow: string[] = [];\n for (const composition of compositions) {\n const key = governedDocumentReleaseIdentityKey(composition.identity);\n if (known.has(key)) continue;\n const { release, issues } = composeGovernedDocumentRelease(composition);\n if (release === undefined) {\n throw new GovernedDocumentReleasesGenerationError(\n `The release decision ${key} does not compose, so it cannot be recorded: ${issues.map((issue) => issue.message).join('; ')}`,\n );\n }\n releases.push(release);\n known.add(key);\n recordedNow.push(key);\n }\n return { releases, recordedNow };\n}\n\n/**\n * What the public pages may serve: every release published to the public web, and — for a PUBLIC\n * document the application holds no release of — its latest draft (#968 decision 5). PURE.\n *\n * Releases are filtered by their own `publicationChannelKinds` (derived from the accepted definition),\n * drafts by the public document refs a page serves, because a candidate carries no channel. A draft's\n * language and jurisdictions come from the draft when it states both, otherwise from the application's\n * single declared variant; with several variants and none stated there is no honest choice, so the\n * draft is reported rather than rendered in a language nobody picked.\n */\nexport function projectGovernedDocumentPublicDocuments(input: {\n readonly releases: readonly GovernedDocumentRelease[];\n readonly drafts: readonly ComplianceDocumentCandidate[];\n readonly publishedVariants: readonly AssuranceDocumentPublicationVariant[];\n}): { readonly documents: readonly GovernedDocumentPublicDocument[]; readonly unrenderedDrafts: readonly string[] } {\n const documents: GovernedDocumentPublicDocument[] = [];\n const releasedDocumentRefs = new Set(input.releases.map((release) => release.identity.document.documentRef as string));\n for (const release of input.releases) {\n if (!release.publicationChannelKinds.includes(GovernedDocumentPublicationChannelKind.PUBLIC_WEB)) continue;\n documents.push(GovernedDocumentPublicDocumentSchema.parse({\n schemaVersion: 1,\n kind: GovernedDocumentPublicDocumentKind.RELEASED,\n release: projectGovernedDocumentPublicRelease(withReplacementEnd(release, input.releases)),\n content: release.content,\n approvalState: release.approvalState,\n }));\n }\n\n const publicRefs = new Set<string>(Object.values(PUBLIC_GOVERNED_DOCUMENT_REFS));\n const unrenderedDrafts: string[] = [];\n for (const draft of input.drafts) {\n if (!publicRefs.has(draft.documentRef) || releasedDocumentRefs.has(draft.documentRef)) continue;\n const publication = draft.locale !== undefined && draft.jurisdictionRefs !== undefined\n ? { locale: draft.locale, jurisdictionRefs: [...draft.jurisdictionRefs].sort() }\n : input.publishedVariants.length === 1\n ? input.publishedVariants[0]!\n : undefined;\n if (publication === undefined) {\n unrenderedDrafts.push(\n `${draft.documentRef}: the draft states no locale and jurisdictions and the application declares `\n + `${input.publishedVariants.length} publication variants, so no language can be chosen for it`,\n );\n continue;\n }\n documents.push(GovernedDocumentPublicDocumentSchema.parse({\n schemaVersion: 1,\n kind: GovernedDocumentPublicDocumentKind.UNRELEASED_DRAFT,\n documentRef: draft.documentRef,\n content: projectComplianceDocumentCandidatePublicContent(draft, publication),\n }));\n }\n return { documents, unrenderedDrafts };\n}\n\n/**\n * The consent surfaces the running application reads, one per recorded release. PURE.\n *\n * A superseded release ends where its replacement begins (`withReplacementEnd`, #3127): the record is never rewritten,\n * its projection ends. Without it a replaced release stayed in force beside its replacement, and the acceptance gate\n * asked for the same document twice.\n */\nexport function projectGovernedDocumentInteractionSurfaces(\n releases: readonly GovernedDocumentRelease[],\n): GovernedDocumentInteractionSurface[] {\n return releases.map((release) => projectGovernedDocumentInteractionSurface(withReplacementEnd(release, releases)));\n}\n\n/**\n * Render the recorded-releases data module. PURE.\n *\n * PARSED, not annotated, because a release's refs are zod BRANDS and a string literal is not assignable\n * to one; `GovernedDocumentReleaseSchema` mints them and re-validates at load, so a hand edit that breaks\n * a record fails on import instead of reaching a page. The data is JSON, not enum member references: a\n * release is mostly prose, and `parse` takes `unknown`, so member references would buy no type safety.\n */\nexport function renderRecordedDocumentReleasesModule(releases: readonly GovernedDocumentRelease[]): string {\n const header = [\n '/**',\n ' * GENERATED by `wildo config document-releases`. DO NOT EDIT BY HAND.',\n ' *',\n ' * The governed-document releases this application has RECORDED. Each was composed once, from the',\n ' * draft as it stood, when its decision in `compositions.ts` was first recorded — and is never',\n ' * recomposed, so editing a draft changes no recorded release. Publishing new text is a new',\n ' * composition with the next `releaseVersion`; the history of a release is the history of this file.',\n ' */',\n ].join('\\n');\n if (releases.length === 0) {\n return [\n \"import type { GovernedDocumentRelease } from '@wildo-ai/saas-models';\",\n '',\n header,\n `export const ${RECORDED_DOCUMENT_RELEASES_CONSTANT}: GovernedDocumentRelease[] = [];`,\n '',\n ].join('\\n');\n }\n return [\n \"import { GovernedDocumentReleaseSchema, type GovernedDocumentRelease } from '@wildo-ai/saas-models';\",\n '',\n header,\n `export const ${RECORDED_DOCUMENT_RELEASES_CONSTANT}: GovernedDocumentRelease[] = GovernedDocumentReleaseSchema.array().parse(`\n + `${JSON.stringify(releases, null, 2)});`,\n '',\n ].join('\\n');\n}\n\n/**\n * Render the committed runtime module. PURE — no filesystem, so it is pinned directly.\n *\n * Consent surfaces keep enum MEMBER references (the #860 shape, readable in review); public documents\n * are JSON inside `GovernedDocumentPublicDocumentSchema.array().parse(…)`, because they are mostly prose\n * and the schema mints every brand and enum type at load. Imports are emitted only for what is used.\n */\nexport function renderGovernedDocumentReleasesModule(\n surfaces: readonly GovernedDocumentInteractionSurface[],\n publicDocuments: readonly GovernedDocumentPublicDocument[],\n): string {\n const header = [\n '/**',\n ' * GENERATED by `wildo config document-releases`. DO NOT EDIT BY HAND — re-run it to regenerate.',\n ' *',\n ' * The runtime projection of the governed-document releases this application recorded in',\n ' * `specifications/src/document-releases/`, and of the drafts of public documents it never released.',\n ' * `saas-config.backend.ts` composes the first constant into `compliance.governedDocumentReleases`',\n ' * (the registration consent control and the interaction recorder) and the second into',\n ' * `compliance.publicDocuments` (the public privacy and terms pages) — wildo-ai/wildo-ai#54, #860, #968.',\n ' *',\n ' * Every entry is a PROJECTION: `governanceScope` and `approvalDecisions` are withheld because this',\n ' * value reaches an unauthenticated browser.',\n ' */',\n ].join('\\n');\n\n const valueImports: string[] = [];\n const typeImports = ['type GovernedDocumentInteractionSurface', 'type GovernedDocumentPublicDocument'];\n if (surfaces.length > 0) {\n valueImports.push('GovernedDocumentClass', 'GovernedDocumentInteractionKind', 'GovernedDocumentInteractionSurfaceSchema', 'GovernedDocumentReleaseApprovalState');\n }\n if (publicDocuments.length > 0) valueImports.push('GovernedDocumentPublicDocumentSchema');\n const names = [...valueImports.sort(), ...typeImports];\n const imports = valueImports.length === 0\n ? \"import type { GovernedDocumentInteractionSurface, GovernedDocumentPublicDocument } from '@wildo-ai/saas-models';\"\n : ['import {', ...names.map((name) => ` ${name},`), \"} from '@wildo-ai/saas-models';\"].join('\\n');\n\n const surfacesDeclaration = surfaces.length === 0\n ? `export const ${GOVERNED_DOCUMENT_RELEASES_GENERATED_CONSTANT}: GovernedDocumentInteractionSurface[] = [];`\n : [\n `export const ${GOVERNED_DOCUMENT_RELEASES_GENERATED_CONSTANT}: GovernedDocumentInteractionSurface[] = GovernedDocumentInteractionSurfaceSchema.array().parse([`,\n surfaces.map(renderSurface).join('\\n'),\n ']);',\n ].join('\\n');\n\n const publicDocumentsDeclaration = publicDocuments.length === 0\n ? `export const ${GOVERNED_DOCUMENT_PUBLIC_DOCUMENTS_GENERATED_CONSTANT}: GovernedDocumentPublicDocument[] = [];`\n : `export const ${GOVERNED_DOCUMENT_PUBLIC_DOCUMENTS_GENERATED_CONSTANT}: GovernedDocumentPublicDocument[] = GovernedDocumentPublicDocumentSchema.array().parse(`\n + `${JSON.stringify(publicDocuments, null, 2)});`;\n\n return [imports, '', header, surfacesDeclaration, '', publicDocumentsDeclaration, ''].join('\\n');\n}\n\nexport interface GovernedDocumentReleasesGenerationResult {\n /** The runtime module, under the application root. */\n readonly path: string;\n /** The recorded-releases data module, under the specifications package. */\n readonly recordedReleasesPath: string;\n readonly surfaceCount: number;\n readonly publicDocumentCount: number;\n /** Release identities composed and recorded by THIS run (or that a dry run would record). */\n readonly recordedNow: readonly string[];\n /** Drafts of public documents that could not be rendered, with the reason. */\n readonly unrenderedDrafts: readonly string[];\n /** Whether a module this run would write differs from what is on disk (an unwanted, absent module is not one). */\n readonly changed: boolean;\n}\n\n/**\n * Whether the runtime module must exist (#3164): once it does, and whenever there is a release surface or a public\n * document to carry. An application that records no release and holds no public draft has nothing to project, and its\n * `saas-config.backend.ts` assigns nothing until it does, so an ABSENT module is current there and none is written. The\n * same rule as the recorded-releases file beside it (`wantsRecordedFile`), and the rule `wildo config validate` states.\n */\nexport function governedDocumentReleasesModuleIsWanted(previous: string | undefined, surfaceCount: number, publicDocumentCount: number): boolean {\n return previous !== undefined || surfaceCount > 0 || publicDocumentCount > 0;\n}\n\n/**\n * Record pending releases, then write the modules that are wanted. With `dryRun`, write nothing and report whether\n * anything would change — which is what `--check` and the `document-releases` validate domain ask.\n *\n * The recorded-releases module is written only when there is something to record or it already exists, and the runtime\n * module only when {@link governedDocumentReleasesModuleIsWanted}, so an application that declares no release decisions\n * and holds no public draft gets no file it never asked for.\n */\nexport async function generateGovernedDocumentReleasesModule(input: {\n readonly appRoot: string;\n readonly specificationsPackageRoot: string;\n readonly dryRun?: boolean;\n}): Promise<GovernedDocumentReleasesGenerationResult> {\n const backendDir = join(input.appRoot, 'backend-api');\n if (!existsSync(backendDir)) {\n throw new GovernedDocumentReleasesGenerationError(\n `No backend-api/ package under ${input.appRoot}, so there is no runtime config to carry the releases into.`,\n );\n }\n const inputs = await loadGovernedDocumentReleaseInputs(input.specificationsPackageRoot);\n const { releases, recordedNow } = recordPendingDocumentReleases(inputs.releases, inputs.compositions);\n\n const recordedReleasesPath = join(input.specificationsPackageRoot, RECORDED_DOCUMENT_RELEASES_RELATIVE_PATH);\n const recordedContent = renderRecordedDocumentReleasesModule(releases);\n const recordedPrevious = existsSync(recordedReleasesPath) ? await readFile(recordedReleasesPath, 'utf-8') : undefined;\n const wantsRecordedFile = recordedPrevious !== undefined || inputs.compositions.length > 0;\n const recordedChanged = wantsRecordedFile && recordedPrevious !== recordedContent;\n\n const surfaces = projectGovernedDocumentInteractionSurfaces(releases);\n const { documents, unrenderedDrafts } = projectGovernedDocumentPublicDocuments({\n releases,\n drafts: inputs.drafts,\n publishedVariants: inputs.publishedVariants,\n });\n const content = renderGovernedDocumentReleasesModule(surfaces, documents);\n const path = join(input.appRoot, GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH);\n const previous = existsSync(path) ? await readFile(path, 'utf-8') : undefined;\n const moduleChanged = governedDocumentReleasesModuleIsWanted(previous, surfaces.length, documents.length) && previous !== content;\n\n if (input.dryRun !== true) {\n if (recordedChanged) {\n await mkdir(dirname(recordedReleasesPath), { recursive: true });\n await writeFile(recordedReleasesPath, recordedContent, 'utf-8');\n }\n if (moduleChanged) {\n await mkdir(dirname(path), { recursive: true });\n await writeFile(path, content, 'utf-8');\n }\n }\n return {\n path,\n recordedReleasesPath,\n surfaceCount: surfaces.length,\n publicDocumentCount: documents.length,\n recordedNow,\n unrenderedDrafts,\n changed: moduleChanged || recordedChanged,\n };\n}\n\n/*\n * The three enums are declared with member NAME === string VALUE, so `Enum.<value>` is a valid\n * member reference — the same property the brand renderer relies on. Asserted rather than assumed:\n * a value that is not a member would render a reference to nothing, and the application's typecheck\n * would then report it far from here.\n */\nfunction memberRef(enumName: string, enumObject: Record<string, string>, value: string): string {\n if (enumObject[value] !== value) {\n throw new GovernedDocumentReleasesGenerationError(`${value} is not a member of ${enumName}, so it cannot be rendered as ${enumName}.${value}.`);\n }\n return `${enumName}.${value}`;\n}\n\nfunction renderSurface(surface: GovernedDocumentInteractionSurface): string {\n const { identity } = surface;\n const lines = [\n ' {',\n ' schemaVersion: 1,',\n ' identity: {',\n ` document: { documentRef: ${quote(identity.document.documentRef)}, documentVersion: ${identity.document.documentVersion} },`,\n ` releaseId: ${quote(identity.releaseId)},`,\n ` releaseVersion: ${identity.releaseVersion},`,\n ' },',\n ` documentClass: ${memberRef('GovernedDocumentClass', GovernedDocumentClass, surface.documentClass)},`,\n ` locale: ${quote(surface.locale)},`,\n ` jurisdictionRefs: [${surface.jurisdictionRefs.map(quote).join(', ')}],`,\n ` allowedInteractionKinds: [${surface.allowedInteractionKinds\n .map((kind) => memberRef('GovernedDocumentInteractionKind', GovernedDocumentInteractionKind, kind))\n .join(', ')}],`,\n ` approvalState: ${memberRef('GovernedDocumentReleaseApprovalState', GovernedDocumentReleaseApprovalState, surface.approvalState)},`,\n ` effectiveAt: ${quote(surface.effectiveAt)},`,\n ];\n if (surface.expiresAt !== undefined) lines.push(` expiresAt: ${quote(surface.expiresAt)},`);\n /*\n * WHICH interactions this release says a person must perform AGAIN (#1258, Step 2), projected from its materiality\n * decision. Rendered only when there is something to say, like `expiresAt`: the schema defaults it to nothing renewed,\n * so an empty list is what its absence already means and would only add noise to every existing application's file.\n *\n * It has to be rendered AT ALL, because this file is the only way the runtime ever sees a surface: a projection that\n * carries the field and a renderer that drops it produce an application in which no release is ever material, and\n * nobody is ever asked again — with every unit test green, since each builds its surface by hand.\n */\n if (surface.renewedInteractionKinds.length > 0) {\n lines.push(` renewedInteractionKinds: [${surface.renewedInteractionKinds\n .map((kind) => memberRef('GovernedDocumentInteractionKind', GovernedDocumentInteractionKind, kind))\n .join(', ')}],`);\n }\n lines.push(' },');\n return lines.join('\\n');\n}\n\n/** Single-quote a string literal for the generated source, escaping as needed. */\nfunction quote(value: string): string {\n return `'${value.replace(/\\\\/g, '\\\\\\\\').replace(/'/g, \"\\\\'\")}'`;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legal-notice.generator.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"legal-notice.generator.d.ts","sourceRoot":"","sources":["../../../../src/services/compliance/legal-notice.generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAOH,OAAO,EAAyG,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGhK,uEAAuE;AACvE,eAAO,MAAM,+BAA+B,yBAAyB,CAAC;AAEtE,qBAAa,0BAA2B,SAAQ,KAAK;CAAG;AAExD;;;;GAIG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAc/F;AAED,6EAA6E;AAC7E,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,MAAM,CA4B/E;AAED,6FAA6F;AAC7F,wBAAsB,yBAAyB,CAAC,KAAK,EAAE;IACrD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,OAAO,CAAC;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAcxF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legal-notice.generator.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"legal-notice.generator.js","sourceRoot":"","sources":["../../../../src/services/compliance/legal-notice.generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC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E,CAAC;QACrC,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAChD,MAAM,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,KAAK,SAAS,EAAE,OAAO,EAAE,CAAC;AACvD,CAAC","sourcesContent":["/**\n * Carries an application's LEGAL NOTICE (imprint) into its RUNTIME config (#2588).\n *\n * ## The gap this closes\n *\n * An information-society service provider established in the EU, the EEA, the UK or Switzerland must keep its identity easily,\n * directly and permanently accessible (Directive 2000/31/EC Art. 5(1); EEA Joint Committee Decision 091/2000; in the UK\n * SI 2002/2013 reg. 6(1)). The particulars are\n * declared in `operatorComplianceIdentity` in `wildo.saas.config.ts`, which is not a runtime dependency of the\n * backend, so they are projected into `backend-api/src/legal-notice.generated.ts`, composed by `saas-config.backend.ts`\n * into `compliance.legalNotice`, which the application's `/legal-notice` page renders.\n * spec-cite: Directive 2000/31/EC Art. 5(1); EEA Joint Committee Decision 091/2000; SI 2002/2013 reg. 6(1)\n *\n * Copied from `wildo config service-consent`: same two ends, same `--check`, same reason a hand-copy is refused (a stale\n * copy is a legal statement the declaration no longer makes).\n *\n * ## Absent stays absent\n *\n * An operator for whom no researched regime applies (established outside the EU, the EEA, the UK and Switzerland), or that has not\n * declared where it is established, gets a module exporting `undefined`: the application publishes no notice. The projection never invents a particular: an undeclared one is absent here and\n * MARKED on the page.\n */\n\nimport { existsSync } from 'node:fs';\nimport { mkdir, readFile, writeFile } from 'node:fs/promises';\nimport { dirname, join } from 'node:path';\n\nimport { loadSaasConfig } from '@wildo-ai/platform-config-lib';\nimport { ApplicationOperatorComplianceIdentitySchema, LEGAL_NOTICE_GENERATED_RELATIVE_PATH, projectLegalNotice, type LegalNotice } from '@wildo-ai/saas-models';\n\n\n/** The constant the application's `saas-config.backend.ts` imports. */\nexport const LEGAL_NOTICE_GENERATED_CONSTANT = 'generatedLegalNotice';\n\nexport class LegalNoticeGenerationError extends Error {}\n\n/**\n * Read and VALIDATE the declared identity, then project the notice. An identity that does not parse is refused rather\n * than projected: a malformed notice written into the runtime would fail the application at startup, far from the file\n * the author must fix.\n */\nexport async function loadDeclaredLegalNotice(appRoot: string): Promise<LegalNotice | undefined> {\n const configPath = join(appRoot, 'wildo.saas.config.ts');\n const config = await loadSaasConfig(configPath);\n if (config === null) {\n throw new LegalNoticeGenerationError(`Could not load ${configPath}, so the legal notice is unknown.`);\n }\n if (config.operatorComplianceIdentity === undefined) return undefined;\n const parsed = ApplicationOperatorComplianceIdentitySchema.safeParse(config.operatorComplianceIdentity);\n if (!parsed.success) {\n throw new LegalNoticeGenerationError(\n `operatorComplianceIdentity in ${configPath} is invalid: ${parsed.error.issues.map((issue) => issue.message).join('; ')}`,\n );\n }\n return projectLegalNotice(parsed.data);\n}\n\n/** Render the committed generated module. PURE, so it is pinned directly. */\nexport function renderLegalNoticeModule(notice: LegalNotice | undefined): string {\n const header = [\n '/**',\n ' * GENERATED by `wildo config legal-notice`. DO NOT EDIT BY HAND — re-run it to regenerate.',\n ' *',\n ' * The legal notice (imprint) projected from `operatorComplianceIdentity` in `wildo.saas.config.ts`. Composed into',\n ' * `compliance.legalNotice` by `saas-config.backend.ts` and rendered at `/legal-notice` (#2588). `undefined` means',\n ' * the application publishes no notice: no regime `legalNoticeOwed` knows applies to where the operator is',\n ' * established, or it has not declared where it is established yet.',\n ' */',\n ].join('\\n');\n if (notice === undefined) {\n return [\n \"import type { LegalNotice } from '@wildo-ai/saas-models';\",\n '',\n header,\n `export const ${LEGAL_NOTICE_GENERATED_CONSTANT}: LegalNotice | undefined = undefined;`,\n '',\n ].join('\\n');\n }\n return [\n \"import { LegalNoticeSchema, type LegalNotice } from '@wildo-ai/saas-models';\",\n '',\n header,\n // Parsed at load, so a hand edit that breaks the schema (an invalid e-mail, an unknown field) fails at startup.\n `export const ${LEGAL_NOTICE_GENERATED_CONSTANT}: LegalNotice | undefined = LegalNoticeSchema.parse(${JSON.stringify(notice, null, 2)});`,\n '',\n ].join('\\n');\n}\n\n/** Write the module into `<appRoot>/backend-api/src/`. Returns whether the bytes changed. */\nexport async function generateLegalNoticeModule(input: {\n readonly appRoot: string;\n readonly dryRun?: boolean;\n}): Promise<{ readonly path: string; readonly owed: boolean; readonly changed: boolean }> {\n if (!existsSync(join(input.appRoot, 'backend-api'))) {\n throw new LegalNoticeGenerationError(`No backend-api/ package under ${input.appRoot}, so there is no runtime config to carry the legal notice into.`);\n }\n const notice = await loadDeclaredLegalNotice(input.appRoot);\n const content = renderLegalNoticeModule(notice);\n const path = join(input.appRoot, LEGAL_NOTICE_GENERATED_RELATIVE_PATH);\n const previous = existsSync(path) ? await readFile(path, 'utf-8') : undefined;\n const changed = previous !== content;\n if (changed && input.dryRun !== true) {\n await mkdir(dirname(path), { recursive: true });\n await writeFile(path, content, 'utf-8');\n }\n return { path, owed: notice !== undefined, changed };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-consent-requirement.generator.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"service-consent-requirement.generator.d.ts","sourceRoot":"","sources":["../../../../src/services/compliance/service-consent-requirement.generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAOH,OAAO,EAAmD,KAAK,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAExH,0FAA0F;AAC1F,eAAO,MAAM,mDAAmD,QAAyE,CAAC;AAE1I,uEAAuE;AACvE,eAAO,MAAM,8CAA8C,uCAAuC,CAAC;AAEnG,qBAAa,wCAAyC,SAAQ,KAAK;CAAG;AAEtE;;;;GAIG;AACH,wBAAsB,qCAAqC,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,GAAG,SAAS,CAAC,CAe3H;AAED,6EAA6E;AAC7E,wBAAgB,qCAAqC,CAAC,WAAW,EAAE,yBAAyB,GAAG,SAAS,GAAG,MAAM,CAsChH;AAED,6FAA6F;AAC7F,wBAAsB,uCAAuC,CAAC,KAAK,EAAE;IACnE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,OAAO,CAAC;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAgB5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-consent-requirement.generator.js","sourceRoot":"","sources":["../../../../../../src/services/compliance/service-consent-requirement.generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,+BAA+B,EAAkC,MAAM,uBAAuB,CAAC;AAExH,0FAA0F;AAC1F,MAAM,CAAC,MAAM,mDAAmD,GAAG,IAAI,CAAC,aAAa,EAAE,KAAK,EAAE,0CAA0C,CAAC,CAAC;AAE1I,uEAAuE;AACvE,MAAM,CAAC,MAAM,8CAA8C,GAAG,oCAAoC,CAAC;AAEnG,MAAM,OAAO,wCAAyC,SAAQ,KAAK;CAAG;AAEtE;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,qCAAqC,CAAC,OAAe;IACzE,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC;IACzD,MA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C;QACrC,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAChD,MAAM,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,KAAK,SAAS,EAAE,OAAO,EAAE,CAAC;AAChE,CAAC;AAED,2FAA2F;AAC3F,SAAS,uBAAuB,CAAC,KAAa;IAC5C,MAAM,MAAM,GAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAAqC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,CAAC;IAC7H,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,MAAM,IAAI,wCAAwC,CAAC,GAAG,KAAK,2EAA2E,CAAC,CAAC;IAC1I,CAAC;IACD,OAAO,kBAAkB,MAAM,EAAE,CAAC;AACpC,CAAC;AAED,kFAAkF;AAClF,SAAS,KAAK,CAAC,KAAa;IAC1B,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC;AACxF,CAAC","sourcesContent":["/**\n * Carries an application's DECLARED service consent requirement into its RUNTIME config (#453).\n *\n * ## The gap this closes\n *\n * `operatorComplianceIdentity.serviceConsentRequirement` is declared in `wildo.saas.config.ts` — which\n * purposes a person must grant before the application may be used, and what that gates. Until #453 it\n * reached exactly one consumer, the compliance-document drafting brief, so the documents could state a\n * gate the running application did not have. The runtime half is `compliance.serviceConsentRequirement`,\n * which `AppLayout_AuthenticatedRoute` enforces through the consent gate.\n *\n * ## Why a generator, copied from `wildo config document-releases`\n *\n * The declaration file is not a runtime dependency of the backend, and a hand-copy into\n * `saas-config.backend.ts` is a second source that drifts — the stale copy would be a gate a legal\n * document describes and the product does not enforce, or the reverse. So the declaration is projected\n * into `backend-api/src/service-consent-requirement.generated.ts`, composed by `saas-config.backend.ts`,\n * with `--check` for CI. Same two ends and the same `.ts`-not-JSON reason: `ConsentPurpose` is a\n * nominal enum, so the module references members rather than bare strings.\n *\n * ## Absent stays absent\n *\n * An application that declares no requirement gets a module exporting `undefined`, not an empty set.\n * Both gate nothing at runtime, but the difference is the operator's ANSWER, and the documents composed\n * from the declaration keep it; the runtime projection must not manufacture a positive statement.\n */\n\nimport { existsSync } from 'node:fs';\nimport { mkdir, readFile, writeFile } from 'node:fs/promises';\nimport { dirname, join } from 'node:path';\n\nimport { loadSaasConfig } from '@wildo-ai/platform-config-lib';\nimport { ConsentPurpose, ServiceConsentRequirementSchema, type ServiceConsentRequirement } from '@wildo-ai/saas-models';\n\n/** Where the generated module lands, beside `governed-document-releases.generated.ts`. */\nexport const SERVICE_CONSENT_REQUIREMENT_GENERATED_RELATIVE_PATH = join('backend-api', 'src', 'service-consent-requirement.generated.ts');\n\n/** The constant the application's `saas-config.backend.ts` imports. */\nexport const SERVICE_CONSENT_REQUIREMENT_GENERATED_CONSTANT = 'generatedServiceConsentRequirement';\n\nexport class ServiceConsentRequirementGenerationError extends Error {}\n\n/**\n * Read and VALIDATE the declared requirement. A declaration that does not parse is refused rather than\n * projected: a malformed requirement written into the runtime would fail the application at startup,\n * far from the file the author must fix.\n */\nexport async function loadDeclaredServiceConsentRequirement(appRoot: string): Promise<ServiceConsentRequirement | undefined> {\n const configPath = join(appRoot, 'wildo.saas.config.ts');\n const config = await loadSaasConfig(configPath);\n if (config === null) {\n throw new ServiceConsentRequirementGenerationError(`Could not load ${configPath}, so the declared service consent requirement is unknown.`);\n }\n const declared = config.operatorComplianceIdentity?.serviceConsentRequirement;\n if (declared === undefined) return undefined;\n const parsed = ServiceConsentRequirementSchema.safeParse(declared);\n if (!parsed.success) {\n throw new ServiceConsentRequirementGenerationError(\n `operatorComplianceIdentity.serviceConsentRequirement in ${configPath} is invalid: ${parsed.error.issues.map((issue) => issue.message).join('; ')}`,\n );\n }\n return parsed.data;\n}\n\n/** Render the committed generated module. PURE, so it is pinned directly. */\nexport function renderServiceConsentRequirementModule(requirement: ServiceConsentRequirement | undefined): string {\n const header = [\n '/**',\n ' * GENERATED by `wildo config service-consent`. DO NOT EDIT BY HAND — re-run it to regenerate.',\n ' *',\n ' * The runtime projection of `operatorComplianceIdentity.serviceConsentRequirement` in',\n ' * `wildo.saas.config.ts`. Composed into `compliance.serviceConsentRequirement` by',\n ' * `saas-config.backend.ts`, where the consent gate enforces it before any signed-in route renders',\n ' * (#453). `undefined` means the application declared no requirement.',\n ' */',\n ].join('\\n');\n\n if (requirement === undefined) {\n return [\n \"import type { ServiceConsentRequirement } from '@wildo-ai/saas-models';\",\n '',\n header,\n `export const ${SERVICE_CONSENT_REQUIREMENT_GENERATED_CONSTANT}: ServiceConsentRequirement | undefined = undefined;`,\n '',\n ].join('\\n');\n }\n\n const purposes = requirement.requiredPurposes.map(consentPurposeMemberRef).join(', ');\n const body = [` requiredPurposes: [${purposes}],`];\n if (requirement.gatedProcessing !== undefined) body.push(` gatedProcessing: ${quote(requirement.gatedProcessing)},`);\n\n const needsEnum = requirement.requiredPurposes.length > 0;\n return [\n `import { ${needsEnum ? 'ConsentPurpose, ' : ''}ServiceConsentRequirementSchema, type ServiceConsentRequirement } from '@wildo-ai/saas-models';`,\n '',\n header,\n // Parsed at load, so a hand edit that breaks the schema's own rules (a duplicate purpose, a gate with\n // no description) fails at startup instead of reaching a person as a malformed gate.\n `export const ${SERVICE_CONSENT_REQUIREMENT_GENERATED_CONSTANT}: ServiceConsentRequirement | undefined = ServiceConsentRequirementSchema.parse({`,\n ...body,\n '});',\n '',\n ].join('\\n');\n}\n\n/** Write the module into `<appRoot>/backend-api/src/`. Returns whether the bytes changed. */\nexport async function generateServiceConsentRequirementModule(input: {\n readonly appRoot: string;\n readonly dryRun?: boolean;\n}): Promise<{ readonly path: string; readonly declared: boolean; readonly changed: boolean }> {\n if (!existsSync(join(input.appRoot, 'backend-api'))) {\n throw new ServiceConsentRequirementGenerationError(\n `No backend-api/ package under ${input.appRoot}, so there is no runtime config to carry the requirement into.`,\n );\n }\n const requirement = await loadDeclaredServiceConsentRequirement(input.appRoot);\n const content = renderServiceConsentRequirementModule(requirement);\n const path = join(input.appRoot, SERVICE_CONSENT_REQUIREMENT_GENERATED_RELATIVE_PATH);\n const previous = existsSync(path) ? await readFile(path, 'utf-8') : undefined;\n const changed = previous !== content;\n if (changed && input.dryRun !== true) {\n await mkdir(dirname(path), { recursive: true });\n await writeFile(path, content, 'utf-8');\n }\n return { path, declared: requirement !== undefined, changed };\n}\n\n/** `ConsentPurpose.<MEMBER>` for a purpose value. Refuses a value that is not a member. */\nfunction consentPurposeMemberRef(value: string): string {\n const member = (Object.keys(ConsentPurpose) as (keyof typeof ConsentPurpose)[]).find((key) => ConsentPurpose[key] === value);\n if (member === undefined) {\n throw new ServiceConsentRequirementGenerationError(`${value} is not a ConsentPurpose, so it cannot be rendered as a member reference.`);\n }\n return `ConsentPurpose.${member}`;\n}\n\n/** Single-quote a string literal for the generated source, escaping as needed. */\nfunction quote(value: string): string {\n return `'${value.replace(/\\\\/g, '\\\\\\\\').replace(/'/g, \"\\\\'\").replace(/\\n/g, '\\\\n')}'`;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"service-consent-requirement.generator.js","sourceRoot":"","sources":["../../../../src/services/compliance/service-consent-requirement.generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+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AAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC;AACxF,CAAC","sourcesContent":["/**\n * Carries an application's DECLARED service consent requirement into its RUNTIME config (#453).\n *\n * ## The gap this closes\n *\n * `operatorComplianceIdentity.serviceConsentRequirement` is declared in `wildo.saas.config.ts` — which\n * purposes a person must grant before the application may be used, and what that gates. Until #453 it\n * reached exactly one consumer, the compliance-document drafting brief, so the documents could state a\n * gate the running application did not have. The runtime half is `compliance.serviceConsentRequirement`,\n * which `AppLayout_AuthenticatedRoute` enforces through the consent gate.\n *\n * ## Why a generator, copied from `wildo config document-releases`\n *\n * The declaration file is not a runtime dependency of the backend, and a hand-copy into\n * `saas-config.backend.ts` is a second source that drifts — the stale copy would be a gate a legal\n * document describes and the product does not enforce, or the reverse. So the declaration is projected\n * into `backend-api/src/service-consent-requirement.generated.ts`, composed by `saas-config.backend.ts`,\n * with `--check` for CI. Same two ends and the same `.ts`-not-JSON reason: `ConsentPurpose` is a\n * nominal enum, so the module references members rather than bare strings.\n *\n * ## Absent stays absent\n *\n * An application that declares no requirement gets a module exporting `undefined`, not an empty set.\n * Both gate nothing at runtime, but the difference is the operator's ANSWER, and the documents composed\n * from the declaration keep it; the runtime projection must not manufacture a positive statement.\n */\n\nimport { existsSync } from 'node:fs';\nimport { mkdir, readFile, writeFile } from 'node:fs/promises';\nimport { dirname, join } from 'node:path';\n\nimport { loadSaasConfig } from '@wildo-ai/platform-config-lib';\nimport { ConsentPurpose, ServiceConsentRequirementSchema, type ServiceConsentRequirement } from '@wildo-ai/saas-models';\n\n/** Where the generated module lands, beside `governed-document-releases.generated.ts`. */\nexport const SERVICE_CONSENT_REQUIREMENT_GENERATED_RELATIVE_PATH = join('backend-api', 'src', 'service-consent-requirement.generated.ts');\n\n/** The constant the application's `saas-config.backend.ts` imports. */\nexport const SERVICE_CONSENT_REQUIREMENT_GENERATED_CONSTANT = 'generatedServiceConsentRequirement';\n\nexport class ServiceConsentRequirementGenerationError extends Error {}\n\n/**\n * Read and VALIDATE the declared requirement. A declaration that does not parse is refused rather than\n * projected: a malformed requirement written into the runtime would fail the application at startup,\n * far from the file the author must fix.\n */\nexport async function loadDeclaredServiceConsentRequirement(appRoot: string): Promise<ServiceConsentRequirement | undefined> {\n const configPath = join(appRoot, 'wildo.saas.config.ts');\n const config = await loadSaasConfig(configPath);\n if (config === null) {\n throw new ServiceConsentRequirementGenerationError(`Could not load ${configPath}, so the declared service consent requirement is unknown.`);\n }\n const declared = config.operatorComplianceIdentity?.serviceConsentRequirement;\n if (declared === undefined) return undefined;\n const parsed = ServiceConsentRequirementSchema.safeParse(declared);\n if (!parsed.success) {\n throw new ServiceConsentRequirementGenerationError(\n `operatorComplianceIdentity.serviceConsentRequirement in ${configPath} is invalid: ${parsed.error.issues.map((issue) => issue.message).join('; ')}`,\n );\n }\n return parsed.data;\n}\n\n/** Render the committed generated module. PURE, so it is pinned directly. */\nexport function renderServiceConsentRequirementModule(requirement: ServiceConsentRequirement | undefined): string {\n const header = [\n '/**',\n ' * GENERATED by `wildo config service-consent`. DO NOT EDIT BY HAND — re-run it to regenerate.',\n ' *',\n ' * The runtime projection of `operatorComplianceIdentity.serviceConsentRequirement` in',\n ' * `wildo.saas.config.ts`. Composed into `compliance.serviceConsentRequirement` by',\n ' * `saas-config.backend.ts`, where the consent gate enforces it before any signed-in route renders',\n ' * (#453). `undefined` means the application declared no requirement.',\n ' */',\n ].join('\\n');\n\n if (requirement === undefined) {\n return [\n \"import type { ServiceConsentRequirement } from '@wildo-ai/saas-models';\",\n '',\n header,\n `export const ${SERVICE_CONSENT_REQUIREMENT_GENERATED_CONSTANT}: ServiceConsentRequirement | undefined = undefined;`,\n '',\n ].join('\\n');\n }\n\n const purposes = requirement.requiredPurposes.map(consentPurposeMemberRef).join(', ');\n const body = [` requiredPurposes: [${purposes}],`];\n if (requirement.gatedProcessing !== undefined) body.push(` gatedProcessing: ${quote(requirement.gatedProcessing)},`);\n\n const needsEnum = requirement.requiredPurposes.length > 0;\n return [\n `import { ${needsEnum ? 'ConsentPurpose, ' : ''}ServiceConsentRequirementSchema, type ServiceConsentRequirement } from '@wildo-ai/saas-models';`,\n '',\n header,\n // Parsed at load, so a hand edit that breaks the schema's own rules (a duplicate purpose, a gate with\n // no description) fails at startup instead of reaching a person as a malformed gate.\n `export const ${SERVICE_CONSENT_REQUIREMENT_GENERATED_CONSTANT}: ServiceConsentRequirement | undefined = ServiceConsentRequirementSchema.parse({`,\n ...body,\n '});',\n '',\n ].join('\\n');\n}\n\n/** Write the module into `<appRoot>/backend-api/src/`. Returns whether the bytes changed. */\nexport async function generateServiceConsentRequirementModule(input: {\n readonly appRoot: string;\n readonly dryRun?: boolean;\n}): Promise<{ readonly path: string; readonly declared: boolean; readonly changed: boolean }> {\n if (!existsSync(join(input.appRoot, 'backend-api'))) {\n throw new ServiceConsentRequirementGenerationError(\n `No backend-api/ package under ${input.appRoot}, so there is no runtime config to carry the requirement into.`,\n );\n }\n const requirement = await loadDeclaredServiceConsentRequirement(input.appRoot);\n const content = renderServiceConsentRequirementModule(requirement);\n const path = join(input.appRoot, SERVICE_CONSENT_REQUIREMENT_GENERATED_RELATIVE_PATH);\n const previous = existsSync(path) ? await readFile(path, 'utf-8') : undefined;\n const changed = previous !== content;\n if (changed && input.dryRun !== true) {\n await mkdir(dirname(path), { recursive: true });\n await writeFile(path, content, 'utf-8');\n }\n return { path, declared: requirement !== undefined, changed };\n}\n\n/** `ConsentPurpose.<MEMBER>` for a purpose value. Refuses a value that is not a member. */\nfunction consentPurposeMemberRef(value: string): string {\n const member = (Object.keys(ConsentPurpose) as (keyof typeof ConsentPurpose)[]).find((key) => ConsentPurpose[key] === value);\n if (member === undefined) {\n throw new ServiceConsentRequirementGenerationError(`${value} is not a ConsentPurpose, so it cannot be rendered as a member reference.`);\n }\n return `ConsentPurpose.${member}`;\n}\n\n/** Single-quote a string literal for the generated source, escaping as needed. */\nfunction quote(value: string): string {\n return `'${value.replace(/\\\\/g, '\\\\\\\\').replace(/'/g, \"\\\\'\").replace(/\\n/g, '\\\\n')}'`;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subject-data-recipients.generator.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"subject-data-recipients.generator.d.ts","sourceRoot":"","sources":["../../../../src/services/compliance/subject-data-recipients.generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAQH,OAAO,EAGL,KAAK,gCAAgC,EACtC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAYL,KAAK,uBAAuB,EAC7B,MAAM,oDAAoD,CAAC;AAE5D,qBAAa,oCAAqC,SAAQ,KAAK;CAAG;AAoBlE;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,uBAAuB,EAAE,GAAG,SAAS,CAoBpG;AAED,yIAAyI;AACzI,wBAAsB,sCAAsC,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,gCAAgC,CAAC,CA8DvH;AAED,6FAA6F;AAC7F,wBAAsB,mCAAmC,CAAC,KAAK,EAAE;IAC/D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,OAAO,CAAC;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAcjG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subject-data-recipients.generator.js","sourceRoot":"","sources":["../../../../../../src/services/compliance/subject-data-recipients.generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;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QACrC,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAChD,MAAM,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC;AAC1E,CAAC","sourcesContent":["/**\n * Carries WHO ELSE HOLDS a data subject's personal data into the application's runtime config (#1710).\n *\n * ## The gap this closes\n *\n * A subject export answers Art. 15, which names \"the recipients or categories of recipient\", and an erasure answers\n * Art. 17, after which Art. 19 asks the controller to tell each recipient. The running backend knew neither: the\n * recipient population, the processor register and the #1709 disclosures live in the application's configuration,\n * specifications and source, none of which the backend loads. This projects the one derivation that joins them —\n * `deriveSubjectDataRecipients`, the same functions the companion and the evidence collector call — into\n * `backend-api/src/subject-data-recipients.generated.ts`, which `saas-config.backend.ts` composes into\n * `compliance.subjectDataRecipients`. The `wildo config data-retention` precedent.\n *\n * ## What it reads, and how each input fails\n *\n * - `wildo.saas.config.ts`: providers, compliance choices, role allocations, lawful bases.\n * - The providers' compliance profiles, through the application's own discovery (`resolveProviderComplianceProfiles`):\n * a profile is where a vendor declares its erasure stance. An owner discovery could not read REFUSES generation —\n * a projection missing one vendor's stance would tell every erasure that vendor is unmeasured.\n * - The processor register, from the specifications package's companion exports. A package that cannot be loaded\n * refuses; an application with no register projects every operator recipient with no legal identity, which the\n * export then states as such.\n * - Typed-client imports, by `git grep` over the working tree (the companion's reader). A scan that could not run is\n * carried as an UNSCANNED code path, never as \"nothing imports it\".\n * - A VENDOR-HOSTED system of record is a recipient (#2585); a self-hosted one is the operator's own system and is not.\n * Its resource flows are NOT read here: they come off the materialized resource configurations, which only a built\n * backend can produce (the `wildo db diff` runner's lane), and a stale build would describe flows nobody has. So its\n * categories are carried as not read (`FLOWS_NOT_READ`), and an export then names it as a recipient that MAY hold any\n * subject's records, never as one that holds none. Its erasure answer is the system of record's, not a stance.\n */\n\nimport { execFileSync } from 'node:child_process';\nimport { existsSync, readFileSync } from 'node:fs';\nimport { mkdir, readFile, writeFile } from 'node:fs/promises';\nimport { dirname, join } from 'node:path';\n\nimport { loadPackageCompanionExport, loadSaasConfig, resolveProviderComplianceProfiles } from '@wildo-ai/platform-config-lib';\nimport {\n ApplicationOperatorComplianceIdentitySchema,\n ApplicationProviderComplianceChoicesSchema,\n type SubjectDataRecipientsDeclaration,\n} from '@wildo-ai/saas-models';\nimport {\n ApplicationProcessorRegisterSchema,\n computeRecipientPopulation,\n deriveRecipientDisclosures,\n deriveSubjectDataRecipients,\n APPLICATION_PROVIDER_PACKAGE_MANIFEST_PATHSPEC,\n applicationProviderPackagesFromManifests,\n RecipientPopulationMemberKind,\n renderSubjectDataRecipientsModule,\n SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH,\n typedClientSearchNeedles,\n typedClientSitesFromGrepLines,\n type ProviderTypedClientSite,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport class SubjectDataRecipientsGenerationError extends Error {}\n\n/**\n * The provider packages this application owns (package name → ref), from `providers/<ref>/<facet>/package.json`\n * in the working tree, untracked included (#2018). `undefined` when they could not be listed, so the scan below\n * reports itself UNSCANNED rather than reading \"no owned package\" as \"nothing imports a provider\".\n */\nfunction readApplicationProviderPackages(appRoot: string): ReadonlyMap<string, string> | undefined {\n try {\n const listed = execFileSync('git', ['ls-files', '--cached', '--others', '--exclude-standard', '--', APPLICATION_PROVIDER_PACKAGE_MANIFEST_PATHSPEC], {\n cwd: appRoot,\n encoding: 'utf8',\n stdio: ['ignore', 'pipe', 'ignore'],\n }).split('\\n').filter(Boolean);\n return applicationProviderPackagesFromManifests(listed.map((path) => ({ path, content: readFileSync(join(appRoot, path), 'utf8') })));\n } catch {\n return undefined;\n }\n}\n\n/**\n * Typed-client imports in the working tree, untracked files included: imports of the provider packages the\n * application owns (#2018). `undefined` when the scan could not run.\n */\nexport function scanTypedClientSites(appRoot: string): readonly ProviderTypedClientSite[] | undefined {\n const applicationProviderPackages = readApplicationProviderPackages(appRoot);\n if (applicationProviderPackages === undefined) return undefined;\n const needles = typedClientSearchNeedles(applicationProviderPackages).flatMap((needle) => ['-e', needle]);\n // No owned provider package, nothing a typed client could be imported from: a scan that found none. Never run\n // `git grep` with no `-e`: it would read the pathspec `.` as the PATTERN and return every line holding a dot.\n if (needles.length === 0) return [];\n try {\n const output = execFileSync('git', ['grep', '--untracked', '-n', '-F', ...needles, '--', '.'], {\n cwd: appRoot,\n encoding: 'utf8',\n stdio: ['ignore', 'pipe', 'ignore'],\n maxBuffer: 16 * 1024 * 1024,\n });\n return typedClientSitesFromGrepLines(output.split('\\n'), applicationProviderPackages);\n } catch (error) {\n // `git grep` exits 1 when nothing matches: a scan that found none, not one that failed.\n if ((error as { status?: unknown }).status === 1) return [];\n return undefined;\n }\n}\n\n/** Derive the application's recipient declaration. Throws a {@link SubjectDataRecipientsGenerationError} on an input it cannot trust. */\nexport async function deriveApplicationSubjectDataRecipients(appRoot: string): Promise<SubjectDataRecipientsDeclaration> {\n const configPath = join(appRoot, 'wildo.saas.config.ts');\n const config = await loadSaasConfig(configPath);\n if (config === null) throw new SubjectDataRecipientsGenerationError(`Could not load ${configPath}, so the application's recipients are unknown.`);\n\n const choices = config.providerComplianceChoices === undefined ? undefined : ApplicationProviderComplianceChoicesSchema.safeParse(config.providerComplianceChoices);\n if (choices !== undefined && !choices.success) {\n throw new SubjectDataRecipientsGenerationError(`providerComplianceChoices in ${configPath} is invalid: ${choices.error.issues.map((issue) => issue.message).join('; ')}`);\n }\n const identity = config.operatorComplianceIdentity === undefined ? undefined : ApplicationOperatorComplianceIdentitySchema.safeParse(config.operatorComplianceIdentity);\n if (identity !== undefined && !identity.success) {\n throw new SubjectDataRecipientsGenerationError(`operatorComplianceIdentity in ${configPath} is invalid: ${identity.error.issues.map((issue) => issue.message).join('; ')}`);\n }\n\n const profiles = await resolveProviderComplianceProfiles({ saasRoot: appRoot, saasConfig: config });\n if (profiles.unreadableOwners.length > 0) {\n throw new SubjectDataRecipientsGenerationError(\n `Provider discovery could not read ${profiles.unreadableOwners.length} owner(s), so their vendors' erasure stances are unknown. Build or install them and re-run.`,\n );\n }\n\n const population = computeRecipientPopulation({\n providers: config.providers,\n systemsOfRecord: config.systemsOfRecord,\n providerComplianceChoices: choices?.data,\n typedClientSites: scanTypedClientSites(appRoot),\n providerComplianceProfiles: profiles.profilesByProviderRef,\n });\n\n const specificationsRoot = join(appRoot, 'specifications');\n let register;\n if (existsSync(specificationsRoot)) {\n let exports: { processorRegister?: unknown };\n try {\n exports = await loadPackageCompanionExport<{ processorRegister?: unknown }>(specificationsRoot);\n } catch (error) {\n // A package that cannot be loaded is not \"no register\": that would strip every legal identity from the list.\n throw new SubjectDataRecipientsGenerationError(`Could not load the specifications package at ${specificationsRoot}: ${(error as Error).message}`);\n }\n if (exports.processorRegister !== undefined) {\n const parsed = ApplicationProcessorRegisterSchema.safeParse(exports.processorRegister);\n if (!parsed.success) throw new SubjectDataRecipientsGenerationError(`The processor register is invalid: ${parsed.error.issues.map((issue) => issue.message).join('; ')}`);\n register = parsed.data;\n }\n }\n\n const disclosures = deriveRecipientDisclosures({\n population,\n // Not read here (see the module JSDoc): a system-of-record member's categories are then stated as not read, never as\n // empty. With no system of record there is nothing to read, which is the empty list.\n systemOfRecordFlows: population.members.some((member) => member.kind === RecipientPopulationMemberKind.SYSTEM_OF_RECORD) ? undefined : [],\n providerComplianceChoices: choices?.data,\n lawfulBases: identity?.data?.lawfulBases,\n });\n\n return deriveSubjectDataRecipients({\n population,\n disclosures,\n register,\n providerComplianceChoices: choices?.data,\n roleAllocations: identity?.data?.roleAllocations,\n });\n}\n\n/** Write the module into `<appRoot>/backend-api/src/`. Returns whether the bytes changed. */\nexport async function generateSubjectDataRecipientsModule(input: {\n readonly appRoot: string;\n readonly dryRun?: boolean;\n}): Promise<{ readonly path: string; readonly recipientCount: number; readonly changed: boolean }> {\n if (!existsSync(join(input.appRoot, 'backend-api'))) {\n throw new SubjectDataRecipientsGenerationError(`No backend-api/ package under ${input.appRoot}, so there is no runtime config to carry the recipients into.`);\n }\n const declaration = await deriveApplicationSubjectDataRecipients(input.appRoot);\n const content = renderSubjectDataRecipientsModule(declaration);\n const path = join(input.appRoot, SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH);\n const previous = existsSync(path) ? await readFile(path, 'utf-8') : undefined;\n const changed = previous !== content;\n if (changed && input.dryRun !== true) {\n await mkdir(dirname(path), { recursive: true });\n await writeFile(path, content, 'utf-8');\n }\n return { path, recipientCount: declaration.recipients.length, changed };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"subject-data-recipients.generator.js","sourceRoot":"","sources":["../../../../src/services/compliance/subject-data-recipients.generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,0BAA0B,EAAE,cAAc,EAAE,iCAAiC,EAAE,MAAM,+BAA+B,CAAC;AAC9H,OAAO,EACL,2CAA2C,EAC3C,0CAA0C,GAE3C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,kCAAkC,EAClC,0BAA0B,EAC1B,0BAA0B,EAC1B,2BAA2B,EAC3B,8CAA8C,EAC9C,wCAAwC,EACxC,6BAA6B,EAC7B,iCAAiC,EACjC,+CAA+C,EAC/C,wBAAwB,EACxB,6BAA6B,GAE9B,MAAM,oDAAoD,CAAC;AAE5D,MAAM,OAAO,oCAAqC,SAAQ,KAA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,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC;QACpD,MAAM,IAAI,oCAAoC,CAAC,iCAAiC,KAAK,CAAC,OAAO,+DAA+D,CAAC,CAAC;IAChK,CAAC;IACD,MAAM,WAAW,GAAG,MAAM,sCAAsC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAChF,MAAM,OAAO,GAAG,iCAAiC,CAAC,WAAW,CAAC,CAAC;IAC/D,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,+CAA+C,CAAC,CAAC;IAClF,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9E,MAAM,OAAO,GAAG,QAAQ,KAAK,OAAO,CAAC;IACrC,IAAI,OAAO,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;QACrC,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAChD,MAAM,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC;AAC1E,CAAC","sourcesContent":["/**\n * Carries WHO ELSE HOLDS a data subject's personal data into the application's runtime config (#1710).\n *\n * ## The gap this closes\n *\n * A subject export answers Art. 15, which names \"the recipients or categories of recipient\", and an erasure answers\n * Art. 17, after which Art. 19 asks the controller to tell each recipient. The running backend knew neither: the\n * recipient population, the processor register and the #1709 disclosures live in the application's configuration,\n * specifications and source, none of which the backend loads. This projects the one derivation that joins them —\n * `deriveSubjectDataRecipients`, the same functions the companion and the evidence collector call — into\n * `backend-api/src/subject-data-recipients.generated.ts`, which `saas-config.backend.ts` composes into\n * `compliance.subjectDataRecipients`. The `wildo config data-retention` precedent.\n *\n * ## What it reads, and how each input fails\n *\n * - `wildo.saas.config.ts`: providers, compliance choices, role allocations, lawful bases.\n * - The providers' compliance profiles, through the application's own discovery (`resolveProviderComplianceProfiles`):\n * a profile is where a vendor declares its erasure stance. An owner discovery could not read REFUSES generation —\n * a projection missing one vendor's stance would tell every erasure that vendor is unmeasured.\n * - The processor register, from the specifications package's companion exports. A package that cannot be loaded\n * refuses; an application with no register projects every operator recipient with no legal identity, which the\n * export then states as such.\n * - Typed-client imports, by `git grep` over the working tree (the companion's reader). A scan that could not run is\n * carried as an UNSCANNED code path, never as \"nothing imports it\".\n * - A VENDOR-HOSTED system of record is a recipient (#2585); a self-hosted one is the operator's own system and is not.\n * Its resource flows are NOT read here: they come off the materialized resource configurations, which only a built\n * backend can produce (the `wildo db diff` runner's lane), and a stale build would describe flows nobody has. So its\n * categories are carried as not read (`FLOWS_NOT_READ`), and an export then names it as a recipient that MAY hold any\n * subject's records, never as one that holds none. Its erasure answer is the system of record's, not a stance.\n */\n\nimport { execFileSync } from 'node:child_process';\nimport { existsSync, readFileSync } from 'node:fs';\nimport { mkdir, readFile, writeFile } from 'node:fs/promises';\nimport { dirname, join } from 'node:path';\n\nimport { loadPackageCompanionExport, loadSaasConfig, resolveProviderComplianceProfiles } from '@wildo-ai/platform-config-lib';\nimport {\n ApplicationOperatorComplianceIdentitySchema,\n ApplicationProviderComplianceChoicesSchema,\n type SubjectDataRecipientsDeclaration,\n} from '@wildo-ai/saas-models';\nimport {\n ApplicationProcessorRegisterSchema,\n computeRecipientPopulation,\n deriveRecipientDisclosures,\n deriveSubjectDataRecipients,\n APPLICATION_PROVIDER_PACKAGE_MANIFEST_PATHSPEC,\n applicationProviderPackagesFromManifests,\n RecipientPopulationMemberKind,\n renderSubjectDataRecipientsModule,\n SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH,\n typedClientSearchNeedles,\n typedClientSitesFromGrepLines,\n type ProviderTypedClientSite,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport class SubjectDataRecipientsGenerationError extends Error {}\n\n/**\n * The provider packages this application owns (package name → ref), from `providers/<ref>/<facet>/package.json`\n * in the working tree, untracked included (#2018). `undefined` when they could not be listed, so the scan below\n * reports itself UNSCANNED rather than reading \"no owned package\" as \"nothing imports a provider\".\n */\nfunction readApplicationProviderPackages(appRoot: string): ReadonlyMap<string, string> | undefined {\n try {\n const listed = execFileSync('git', ['ls-files', '--cached', '--others', '--exclude-standard', '--', APPLICATION_PROVIDER_PACKAGE_MANIFEST_PATHSPEC], {\n cwd: appRoot,\n encoding: 'utf8',\n stdio: ['ignore', 'pipe', 'ignore'],\n }).split('\\n').filter(Boolean);\n return applicationProviderPackagesFromManifests(listed.map((path) => ({ path, content: readFileSync(join(appRoot, path), 'utf8') })));\n } catch {\n return undefined;\n }\n}\n\n/**\n * Typed-client imports in the working tree, untracked files included: imports of the provider packages the\n * application owns (#2018). `undefined` when the scan could not run.\n */\nexport function scanTypedClientSites(appRoot: string): readonly ProviderTypedClientSite[] | undefined {\n const applicationProviderPackages = readApplicationProviderPackages(appRoot);\n if (applicationProviderPackages === undefined) return undefined;\n const needles = typedClientSearchNeedles(applicationProviderPackages).flatMap((needle) => ['-e', needle]);\n // No owned provider package, nothing a typed client could be imported from: a scan that found none. Never run\n // `git grep` with no `-e`: it would read the pathspec `.` as the PATTERN and return every line holding a dot.\n if (needles.length === 0) return [];\n try {\n const output = execFileSync('git', ['grep', '--untracked', '-n', '-F', ...needles, '--', '.'], {\n cwd: appRoot,\n encoding: 'utf8',\n stdio: ['ignore', 'pipe', 'ignore'],\n maxBuffer: 16 * 1024 * 1024,\n });\n return typedClientSitesFromGrepLines(output.split('\\n'), applicationProviderPackages);\n } catch (error) {\n // `git grep` exits 1 when nothing matches: a scan that found none, not one that failed.\n if ((error as { status?: unknown }).status === 1) return [];\n return undefined;\n }\n}\n\n/** Derive the application's recipient declaration. Throws a {@link SubjectDataRecipientsGenerationError} on an input it cannot trust. */\nexport async function deriveApplicationSubjectDataRecipients(appRoot: string): Promise<SubjectDataRecipientsDeclaration> {\n const configPath = join(appRoot, 'wildo.saas.config.ts');\n const config = await loadSaasConfig(configPath);\n if (config === null) throw new SubjectDataRecipientsGenerationError(`Could not load ${configPath}, so the application's recipients are unknown.`);\n\n const choices = config.providerComplianceChoices === undefined ? undefined : ApplicationProviderComplianceChoicesSchema.safeParse(config.providerComplianceChoices);\n if (choices !== undefined && !choices.success) {\n throw new SubjectDataRecipientsGenerationError(`providerComplianceChoices in ${configPath} is invalid: ${choices.error.issues.map((issue) => issue.message).join('; ')}`);\n }\n const identity = config.operatorComplianceIdentity === undefined ? undefined : ApplicationOperatorComplianceIdentitySchema.safeParse(config.operatorComplianceIdentity);\n if (identity !== undefined && !identity.success) {\n throw new SubjectDataRecipientsGenerationError(`operatorComplianceIdentity in ${configPath} is invalid: ${identity.error.issues.map((issue) => issue.message).join('; ')}`);\n }\n\n const profiles = await resolveProviderComplianceProfiles({ saasRoot: appRoot, saasConfig: config });\n if (profiles.unreadableOwners.length > 0) {\n throw new SubjectDataRecipientsGenerationError(\n `Provider discovery could not read ${profiles.unreadableOwners.length} owner(s), so their vendors' erasure stances are unknown. Build or install them and re-run.`,\n );\n }\n\n const population = computeRecipientPopulation({\n providers: config.providers,\n systemsOfRecord: config.systemsOfRecord,\n providerComplianceChoices: choices?.data,\n typedClientSites: scanTypedClientSites(appRoot),\n providerComplianceProfiles: profiles.profilesByProviderRef,\n });\n\n const specificationsRoot = join(appRoot, 'specifications');\n let register;\n if (existsSync(specificationsRoot)) {\n let exports: { processorRegister?: unknown };\n try {\n exports = await loadPackageCompanionExport<{ processorRegister?: unknown }>(specificationsRoot);\n } catch (error) {\n // A package that cannot be loaded is not \"no register\": that would strip every legal identity from the list.\n throw new SubjectDataRecipientsGenerationError(`Could not load the specifications package at ${specificationsRoot}: ${(error as Error).message}`);\n }\n if (exports.processorRegister !== undefined) {\n const parsed = ApplicationProcessorRegisterSchema.safeParse(exports.processorRegister);\n if (!parsed.success) throw new SubjectDataRecipientsGenerationError(`The processor register is invalid: ${parsed.error.issues.map((issue) => issue.message).join('; ')}`);\n register = parsed.data;\n }\n }\n\n const disclosures = deriveRecipientDisclosures({\n population,\n // Not read here (see the module JSDoc): a system-of-record member's categories are then stated as not read, never as\n // empty. With no system of record there is nothing to read, which is the empty list.\n systemOfRecordFlows: population.members.some((member) => member.kind === RecipientPopulationMemberKind.SYSTEM_OF_RECORD) ? undefined : [],\n providerComplianceChoices: choices?.data,\n lawfulBases: identity?.data?.lawfulBases,\n });\n\n return deriveSubjectDataRecipients({\n population,\n disclosures,\n register,\n providerComplianceChoices: choices?.data,\n roleAllocations: identity?.data?.roleAllocations,\n });\n}\n\n/** Write the module into `<appRoot>/backend-api/src/`. Returns whether the bytes changed. */\nexport async function generateSubjectDataRecipientsModule(input: {\n readonly appRoot: string;\n readonly dryRun?: boolean;\n}): Promise<{ readonly path: string; readonly recipientCount: number; readonly changed: boolean }> {\n if (!existsSync(join(input.appRoot, 'backend-api'))) {\n throw new SubjectDataRecipientsGenerationError(`No backend-api/ package under ${input.appRoot}, so there is no runtime config to carry the recipients into.`);\n }\n const declaration = await deriveApplicationSubjectDataRecipients(input.appRoot);\n const content = renderSubjectDataRecipientsModule(declaration);\n const path = join(input.appRoot, SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH);\n const previous = existsSync(path) ? await readFile(path, 'utf-8') : undefined;\n const changed = previous !== content;\n if (changed && input.dryRun !== true) {\n await mkdir(dirname(path), { recursive: true });\n await writeFile(path, content, 'utf-8');\n }\n return { path, recipientCount: declaration.recipients.length, changed };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-manager.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"context-manager.service.d.ts","sourceRoot":"","sources":["../../../../src/services/context/context-manager.service.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAoB,MAAM,6CAA6C,CAAC;AACtH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sDAAsD,CAAC;AAOnG,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA2B;IAClD,OAAO,CAAC,MAAM,CAAC,YAAY,CAAuB;IAElD;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,CAAC,GAAG,GAAE,MAAsB,GAAG,UAAU;IAqCtD;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAKlC,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAYrC,MAAM,CAAC,GAAG,IAAI,UAAU;IAOxB,MAAM,CAAC,KAAK,IAAI,IAAI;IAMpB;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,gBAAgB,IAAI,UAAU,CAAC,eAAe,CAAC;IAYtD,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,sBAAsB;IA+BnE;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,+BAA+B;IAM9C,OAAO,CAAC,MAAM,CAAC,eAAe;IAiB9B;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,oBAAoB,GAAG,IAAI;IAmCrE;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,CAAC,MAAM,CAAC,yBAAyB;CAkBzC"}
|