@wildo-ai/wildo-cli 1.1.11 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/wildo.d.ts.map +1 -1
- package/dist/bin/wildo.js.map +1 -1
- package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
- package/dist/src/commands/acp/probe.command.js.map +1 -1
- package/dist/src/commands/align-deps.command.d.ts.map +1 -1
- package/dist/src/commands/align-deps.command.js +5 -3
- package/dist/src/commands/align-deps.command.js.map +1 -1
- package/dist/src/commands/assets/sync.command.d.ts.map +1 -1
- package/dist/src/commands/assets/sync.command.js.map +1 -1
- package/dist/src/commands/assurance/assurance-command.utils.d.ts +14 -0
- package/dist/src/commands/assurance/assurance-command.utils.d.ts.map +1 -0
- package/dist/src/commands/assurance/assurance-command.utils.js +36 -0
- package/dist/src/commands/assurance/assurance-command.utils.js.map +1 -0
- package/dist/src/commands/assurance/report.command.d.ts +14 -0
- package/dist/src/commands/assurance/report.command.d.ts.map +1 -0
- package/dist/src/commands/assurance/report.command.js +28 -0
- package/dist/src/commands/assurance/report.command.js.map +1 -0
- package/dist/src/commands/assurance/run.command.d.ts +16 -0
- package/dist/src/commands/assurance/run.command.d.ts.map +1 -0
- package/dist/src/commands/assurance/run.command.js +49 -0
- package/dist/src/commands/assurance/run.command.js.map +1 -0
- package/dist/src/commands/assurance/schedule.command.d.ts +15 -0
- package/dist/src/commands/assurance/schedule.command.d.ts.map +1 -0
- package/dist/src/commands/assurance/schedule.command.js +49 -0
- package/dist/src/commands/assurance/schedule.command.js.map +1 -0
- package/dist/src/commands/blueprint/pack.command.d.ts.map +1 -1
- package/dist/src/commands/blueprint/pack.command.js.map +1 -1
- package/dist/src/commands/blueprint/publish.command.d.ts.map +1 -1
- package/dist/src/commands/blueprint/publish.command.js.map +1 -1
- package/dist/src/commands/blueprint/status.command.d.ts.map +1 -1
- package/dist/src/commands/blueprint/status.command.js.map +1 -1
- package/dist/src/commands/brand/propagate.command.d.ts.map +1 -1
- package/dist/src/commands/brand/propagate.command.js.map +1 -1
- package/dist/src/commands/build/accept.command.d.ts +4 -0
- package/dist/src/commands/build/accept.command.d.ts.map +1 -1
- package/dist/src/commands/build/accept.command.js +10 -1
- package/dist/src/commands/build/accept.command.js.map +1 -1
- package/dist/src/commands/build/approve.command.d.ts +18 -0
- package/dist/src/commands/build/approve.command.d.ts.map +1 -0
- package/dist/src/commands/build/approve.command.js +45 -0
- package/dist/src/commands/build/approve.command.js.map +1 -0
- package/dist/src/commands/build/checkpoint.command.d.ts +18 -0
- package/dist/src/commands/build/checkpoint.command.d.ts.map +1 -0
- package/dist/src/commands/build/checkpoint.command.js +36 -0
- package/dist/src/commands/build/checkpoint.command.js.map +1 -0
- package/dist/src/commands/build/close.command.d.ts +26 -0
- package/dist/src/commands/build/close.command.d.ts.map +1 -0
- package/dist/src/commands/build/close.command.js +58 -0
- package/dist/src/commands/build/close.command.js.map +1 -0
- package/dist/src/commands/build/dispatches.command.d.ts.map +1 -1
- package/dist/src/commands/build/dispatches.command.js +10 -9
- package/dist/src/commands/build/dispatches.command.js.map +1 -1
- package/dist/src/commands/build/next.command.d.ts.map +1 -1
- package/dist/src/commands/build/next.command.js +6 -1
- package/dist/src/commands/build/next.command.js.map +1 -1
- package/dist/src/commands/build/rearm.command.d.ts.map +1 -1
- package/dist/src/commands/build/rearm.command.js.map +1 -1
- package/dist/src/commands/build/run.command.d.ts.map +1 -1
- package/dist/src/commands/build/run.command.js.map +1 -1
- package/dist/src/commands/build/settle-window.command.d.ts +17 -0
- package/dist/src/commands/build/settle-window.command.d.ts.map +1 -0
- package/dist/src/commands/build/settle-window.command.js +42 -0
- package/dist/src/commands/build/settle-window.command.js.map +1 -0
- package/dist/src/commands/build/stop.command.d.ts +23 -0
- package/dist/src/commands/build/stop.command.d.ts.map +1 -0
- package/dist/src/commands/build/stop.command.js +52 -0
- package/dist/src/commands/build/stop.command.js.map +1 -0
- package/dist/src/commands/build/tasks.command.d.ts.map +1 -1
- package/dist/src/commands/build/tasks.command.js.map +1 -1
- package/dist/src/commands/compose.command.d.ts.map +1 -1
- package/dist/src/commands/compose.command.js.map +1 -1
- package/dist/src/commands/config/check-resources.command.d.ts +20 -6
- package/dist/src/commands/config/check-resources.command.d.ts.map +1 -1
- package/dist/src/commands/config/check-resources.command.js +33 -12
- package/dist/src/commands/config/check-resources.command.js.map +1 -1
- package/dist/src/commands/config/data-retention.command.d.ts.map +1 -1
- package/dist/src/commands/config/data-retention.command.js.map +1 -1
- package/dist/src/commands/config/document-releases.command.d.ts +3 -0
- package/dist/src/commands/config/document-releases.command.d.ts.map +1 -1
- package/dist/src/commands/config/document-releases.command.js +3 -0
- package/dist/src/commands/config/document-releases.command.js.map +1 -1
- package/dist/src/commands/config/legal-notice.command.d.ts.map +1 -1
- package/dist/src/commands/config/legal-notice.command.js.map +1 -1
- package/dist/src/commands/config/mutate.command.d.ts.map +1 -1
- package/dist/src/commands/config/mutate.command.js.map +1 -1
- package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
- package/dist/src/commands/config/reapply-declaration.command.js.map +1 -1
- package/dist/src/commands/config/service-consent.command.d.ts.map +1 -1
- package/dist/src/commands/config/service-consent.command.js.map +1 -1
- package/dist/src/commands/config/subject-data-recipients.command.d.ts.map +1 -1
- package/dist/src/commands/config/subject-data-recipients.command.js.map +1 -1
- package/dist/src/commands/config/sync.command.d.ts +4 -3
- package/dist/src/commands/config/sync.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.js +51 -17
- package/dist/src/commands/config/sync.command.js.map +1 -1
- package/dist/src/commands/config/validate.command.d.ts.map +1 -1
- package/dist/src/commands/config/validate.command.js +10 -10
- package/dist/src/commands/config/validate.command.js.map +1 -1
- package/dist/src/commands/context/assurance-basis.command.d.ts.map +1 -1
- package/dist/src/commands/context/assurance-basis.command.js.map +1 -1
- package/dist/src/commands/context/coherence.command.d.ts.map +1 -1
- package/dist/src/commands/context/coherence.command.js.map +1 -1
- package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
- package/dist/src/commands/context/context-command.utils.js.map +1 -1
- package/dist/src/commands/context/elements.command.d.ts +4 -2
- package/dist/src/commands/context/elements.command.d.ts.map +1 -1
- package/dist/src/commands/context/elements.command.js +4 -2
- package/dist/src/commands/context/elements.command.js.map +1 -1
- package/dist/src/commands/context/health.command.d.ts.map +1 -1
- package/dist/src/commands/context/health.command.js.map +1 -1
- package/dist/src/commands/context/info.command.d.ts.map +1 -1
- package/dist/src/commands/context/info.command.js.map +1 -1
- package/dist/src/commands/context/journey.command.d.ts +33 -2
- package/dist/src/commands/context/journey.command.d.ts.map +1 -1
- package/dist/src/commands/context/journey.command.js +186 -34
- package/dist/src/commands/context/journey.command.js.map +1 -1
- package/dist/src/commands/context/jurisdictions.command.d.ts.map +1 -1
- package/dist/src/commands/context/jurisdictions.command.js.map +1 -1
- package/dist/src/commands/context/launch-blockers.command.d.ts +4 -2
- package/dist/src/commands/context/launch-blockers.command.d.ts.map +1 -1
- package/dist/src/commands/context/launch-blockers.command.js +6 -4
- package/dist/src/commands/context/launch-blockers.command.js.map +1 -1
- package/dist/src/commands/context/list.command.d.ts.map +1 -1
- package/dist/src/commands/context/list.command.js.map +1 -1
- package/dist/src/commands/context/pipelines.command.d.ts.map +1 -1
- package/dist/src/commands/context/pipelines.command.js.map +1 -1
- package/dist/src/commands/context/workspace.command.d.ts.map +1 -1
- package/dist/src/commands/context/workspace.command.js.map +1 -1
- package/dist/src/commands/creation/accept.command.d.ts.map +1 -1
- package/dist/src/commands/creation/accept.command.js.map +1 -1
- package/dist/src/commands/creation/answer.command.d.ts +12 -0
- package/dist/src/commands/creation/answer.command.d.ts.map +1 -1
- package/dist/src/commands/creation/answer.command.js +69 -2
- package/dist/src/commands/creation/answer.command.js.map +1 -1
- package/dist/src/commands/creation/brand-logo.command.d.ts.map +1 -1
- package/dist/src/commands/creation/brand-logo.command.js.map +1 -1
- package/dist/src/commands/creation/brief.command.d.ts +10 -3
- package/dist/src/commands/creation/brief.command.d.ts.map +1 -1
- package/dist/src/commands/creation/brief.command.js +22 -7
- package/dist/src/commands/creation/brief.command.js.map +1 -1
- package/dist/src/commands/creation/deliberate.command.d.ts.map +1 -1
- package/dist/src/commands/creation/deliberate.command.js.map +1 -1
- package/dist/src/commands/creation/depth.command.d.ts.map +1 -1
- package/dist/src/commands/creation/depth.command.js.map +1 -1
- package/dist/src/commands/creation/diff.command.d.ts.map +1 -1
- package/dist/src/commands/creation/diff.command.js.map +1 -1
- package/dist/src/commands/creation/drive.command.d.ts +19 -0
- package/dist/src/commands/creation/drive.command.d.ts.map +1 -0
- package/dist/src/commands/creation/drive.command.js +112 -0
- package/dist/src/commands/creation/drive.command.js.map +1 -0
- package/dist/src/commands/creation/feed.command.d.ts +11 -0
- package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
- package/dist/src/commands/creation/feed.command.js +75 -1
- package/dist/src/commands/creation/feed.command.js.map +1 -1
- package/dist/src/commands/creation/loop.command.d.ts +6 -0
- package/dist/src/commands/creation/loop.command.d.ts.map +1 -1
- package/dist/src/commands/creation/loop.command.js +16 -0
- package/dist/src/commands/creation/loop.command.js.map +1 -1
- package/dist/src/commands/creation/persona.command.d.ts.map +1 -1
- package/dist/src/commands/creation/persona.command.js.map +1 -1
- package/dist/src/commands/creation/preflight.command.d.ts.map +1 -1
- package/dist/src/commands/creation/preflight.command.js.map +1 -1
- package/dist/src/commands/creation/prompt-hook.command.d.ts +1 -1
- package/dist/src/commands/creation/prompt-hook.command.d.ts.map +1 -1
- package/dist/src/commands/creation/prompt-hook.command.js +7 -3
- package/dist/src/commands/creation/prompt-hook.command.js.map +1 -1
- package/dist/src/commands/creation/propose.command.d.ts.map +1 -1
- package/dist/src/commands/creation/propose.command.js.map +1 -1
- package/dist/src/commands/creation/pulse.command.d.ts.map +1 -1
- package/dist/src/commands/creation/pulse.command.js.map +1 -1
- package/dist/src/commands/creation/questions.command.d.ts.map +1 -1
- package/dist/src/commands/creation/questions.command.js +13 -0
- package/dist/src/commands/creation/questions.command.js.map +1 -1
- package/dist/src/commands/creation/reason.command.d.ts.map +1 -1
- package/dist/src/commands/creation/reason.command.js.map +1 -1
- package/dist/src/commands/creation/report.command.d.ts.map +1 -1
- package/dist/src/commands/creation/report.command.js +12 -0
- package/dist/src/commands/creation/report.command.js.map +1 -1
- package/dist/src/commands/creation/revert.command.d.ts.map +1 -1
- package/dist/src/commands/creation/revert.command.js +2 -0
- package/dist/src/commands/creation/revert.command.js.map +1 -1
- package/dist/src/commands/creation/run.command.d.ts.map +1 -1
- package/dist/src/commands/creation/run.command.js.map +1 -1
- package/dist/src/commands/creation/statusline.command.d.ts.map +1 -1
- package/dist/src/commands/creation/statusline.command.js.map +1 -1
- package/dist/src/commands/creation/watch.command.d.ts.map +1 -1
- package/dist/src/commands/creation/watch.command.js.map +1 -1
- package/dist/src/commands/creation/why.command.d.ts.map +1 -1
- package/dist/src/commands/creation/why.command.js +14 -9
- package/dist/src/commands/creation/why.command.js.map +1 -1
- package/dist/src/commands/creation/writes.command.d.ts +7 -0
- package/dist/src/commands/creation/writes.command.d.ts.map +1 -1
- package/dist/src/commands/creation/writes.command.js +21 -6
- package/dist/src/commands/creation/writes.command.js.map +1 -1
- package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts.map +1 -1
- package/dist/src/commands/db/db-schema-plan-migration.utils.js.map +1 -1
- package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
- package/dist/src/commands/db/db-schema-plan.utils.js +2 -2
- package/dist/src/commands/db/db-schema-plan.utils.js.map +1 -1
- package/dist/src/commands/db/diff.command.d.ts +1 -1
- package/dist/src/commands/db/diff.command.d.ts.map +1 -1
- package/dist/src/commands/db/diff.command.js +2 -2
- package/dist/src/commands/db/diff.command.js.map +1 -1
- package/dist/src/commands/db/generate.command.d.ts +2 -3
- package/dist/src/commands/db/generate.command.d.ts.map +1 -1
- package/dist/src/commands/db/generate.command.js +2 -3
- package/dist/src/commands/db/generate.command.js.map +1 -1
- package/dist/src/commands/db/migrate.command.d.ts.map +1 -1
- package/dist/src/commands/db/migrate.command.js +9 -1
- package/dist/src/commands/db/migrate.command.js.map +1 -1
- package/dist/src/commands/db/resolve.command.d.ts.map +1 -1
- package/dist/src/commands/db/resolve.command.js.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-brand.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-brand.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-contract.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-contract.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-contrast.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-contrast.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-generate.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-generate.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-init.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-validate.command.js.map +1 -1
- package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -1
- package/dist/src/commands/dev/force-stop.command.js.map +1 -1
- package/dist/src/commands/dev/resources.command.d.ts.map +1 -1
- package/dist/src/commands/dev/resources.command.js.map +1 -1
- package/dist/src/commands/dev/start.command.d.ts.map +1 -1
- package/dist/src/commands/dev/start.command.js.map +1 -1
- package/dist/src/commands/dev/stop-all.command.d.ts.map +1 -1
- package/dist/src/commands/dev/stop-all.command.js.map +1 -1
- package/dist/src/commands/dev/sync-csp.command.d.ts.map +1 -1
- package/dist/src/commands/dev/sync-csp.command.js.map +1 -1
- package/dist/src/commands/docs/check.command.d.ts.map +1 -1
- package/dist/src/commands/docs/check.command.js +12 -0
- package/dist/src/commands/docs/check.command.js.map +1 -1
- package/dist/src/commands/docs/publish.command.d.ts.map +1 -1
- package/dist/src/commands/docs/publish.command.js.map +1 -1
- package/dist/src/commands/frontend/look.command.d.ts.map +1 -1
- package/dist/src/commands/frontend/look.command.js.map +1 -1
- package/dist/src/commands/frontend/publish.command.d.ts.map +1 -1
- package/dist/src/commands/frontend/publish.command.js.map +1 -1
- package/dist/src/commands/fwk/audit.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/audit.command.js.map +1 -1
- package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/dev-skills.command.js +20 -0
- package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
- package/dist/src/commands/fwk/generate-blueprints.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/generate-blueprints.command.js +2 -1
- package/dist/src/commands/fwk/generate-blueprints.command.js.map +1 -1
- package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/generate-docs.command.js.map +1 -1
- package/dist/src/commands/fwk/generate-providers.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/generate-providers.command.js +2 -2
- package/dist/src/commands/fwk/generate-providers.command.js.map +1 -1
- package/dist/src/commands/fwk/graph.command.d.ts +1 -1
- package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/graph.command.js +1 -1
- package/dist/src/commands/fwk/graph.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.d.ts +53 -0
- package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.js +345 -12
- package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.js +9 -0
- package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-npm.command.js +15 -4
- package/dist/src/commands/fwk/publish-npm.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-promote.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-promote.command.js +32 -11
- package/dist/src/commands/fwk/publish-promote.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-providers.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-providers.command.js +8 -0
- package/dist/src/commands/fwk/publish-providers.command.js.map +1 -1
- package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/registry-host.command.js.map +1 -1
- package/dist/src/commands/fwk/release.command.d.ts +22 -0
- package/dist/src/commands/fwk/release.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/release.command.js +216 -0
- package/dist/src/commands/fwk/release.command.js.map +1 -0
- package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-bump.command.js.map +1 -1
- package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-set.command.js.map +1 -1
- package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-show.command.js.map +1 -1
- package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-sync.command.js.map +1 -1
- package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/what-touches.command.js.map +1 -1
- package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-status.command.js.map +1 -1
- package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-tail.command.js.map +1 -1
- package/dist/src/commands/generate/email-command.utils.d.ts +15 -2
- package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/email-command.utils.js +20 -7
- package/dist/src/commands/generate/email-command.utils.js.map +1 -1
- package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-preview.command.js.map +1 -1
- package/dist/src/commands/generate/email-status.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-status.command.js +2 -2
- package/dist/src/commands/generate/email-status.command.js.map +1 -1
- package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-test-send.command.js.map +1 -1
- package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-translate.command.js +2 -2
- package/dist/src/commands/generate/email-translate.command.js.map +1 -1
- package/dist/src/commands/generate/email.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email.command.js +2 -2
- package/dist/src/commands/generate/email.command.js.map +1 -1
- package/dist/src/commands/generate/labelling-command.utils.d.ts +15 -0
- package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/labelling-command.utils.js +110 -12
- package/dist/src/commands/generate/labelling-command.utils.js.map +1 -1
- package/dist/src/commands/generate/labels-plan.command.d.ts.map +1 -1
- package/dist/src/commands/generate/labels-plan.command.js.map +1 -1
- package/dist/src/commands/generate/labels.command.d.ts.map +1 -1
- package/dist/src/commands/generate/labels.command.js.map +1 -1
- package/dist/src/commands/generate/translate.command.d.ts +5 -0
- package/dist/src/commands/generate/translate.command.d.ts.map +1 -1
- package/dist/src/commands/generate/translate.command.js +9 -3
- package/dist/src/commands/generate/translate.command.js.map +1 -1
- package/dist/src/commands/help.command.d.ts.map +1 -1
- package/dist/src/commands/help.command.js +2 -0
- package/dist/src/commands/help.command.js.map +1 -1
- package/dist/src/commands/init.command.d.ts +11 -3
- package/dist/src/commands/init.command.d.ts.map +1 -1
- package/dist/src/commands/init.command.js +73 -27
- package/dist/src/commands/init.command.js.map +1 -1
- package/dist/src/commands/keys/legacy-envelope-key.command.d.ts +8 -0
- package/dist/src/commands/keys/legacy-envelope-key.command.d.ts.map +1 -0
- package/dist/src/commands/keys/legacy-envelope-key.command.js +140 -0
- package/dist/src/commands/keys/legacy-envelope-key.command.js.map +1 -0
- package/dist/src/commands/keys/rotate-signing-keys.command.d.ts +8 -0
- package/dist/src/commands/keys/rotate-signing-keys.command.d.ts.map +1 -0
- package/dist/src/commands/keys/rotate-signing-keys.command.js +158 -0
- package/dist/src/commands/keys/rotate-signing-keys.command.js.map +1 -0
- package/dist/src/commands/keys/rotate.command.d.ts.map +1 -1
- package/dist/src/commands/keys/rotate.command.js.map +1 -1
- package/dist/src/commands/keys/thumbprint.command.d.ts.map +1 -1
- package/dist/src/commands/keys/thumbprint.command.js.map +1 -1
- package/dist/src/commands/keys/vault-rotate-tokens.command.d.ts +7 -0
- package/dist/src/commands/keys/vault-rotate-tokens.command.d.ts.map +1 -0
- package/dist/src/commands/keys/vault-rotate-tokens.command.js +100 -0
- package/dist/src/commands/keys/vault-rotate-tokens.command.js.map +1 -0
- package/dist/src/commands/keys/vault-rotate-unseal-key.command.d.ts +7 -0
- package/dist/src/commands/keys/vault-rotate-unseal-key.command.d.ts.map +1 -0
- package/dist/src/commands/keys/vault-rotate-unseal-key.command.js +96 -0
- package/dist/src/commands/keys/vault-rotate-unseal-key.command.js.map +1 -0
- package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
- package/dist/src/commands/local/deregister.command.js.map +1 -1
- package/dist/src/commands/local/dev-status.command.d.ts +16 -4
- package/dist/src/commands/local/dev-status.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev-status.command.js +50 -6
- package/dist/src/commands/local/dev-status.command.js.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts +80 -5
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js +273 -19
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/local/doctor.command.d.ts +22 -9
- package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
- package/dist/src/commands/local/doctor.command.js +59 -43
- package/dist/src/commands/local/doctor.command.js.map +1 -1
- package/dist/src/commands/local/down.command.d.ts.map +1 -1
- package/dist/src/commands/local/down.command.js +1 -2
- package/dist/src/commands/local/down.command.js.map +1 -1
- package/dist/src/commands/local/init.command.d.ts.map +1 -1
- package/dist/src/commands/local/init.command.js.map +1 -1
- package/dist/src/commands/local/logs.command.d.ts.map +1 -1
- package/dist/src/commands/local/logs.command.js.map +1 -1
- package/dist/src/commands/local/reinit.command.d.ts.map +1 -1
- package/dist/src/commands/local/reinit.command.js.map +1 -1
- package/dist/src/commands/local/reset.command.d.ts.map +1 -1
- package/dist/src/commands/local/reset.command.js.map +1 -1
- package/dist/src/commands/local/restore.command.d.ts.map +1 -1
- package/dist/src/commands/local/restore.command.js.map +1 -1
- package/dist/src/commands/local/smoke.command.d.ts.map +1 -1
- package/dist/src/commands/local/smoke.command.js +1 -1
- package/dist/src/commands/local/smoke.command.js.map +1 -1
- package/dist/src/commands/local/sor-addresses.command.d.ts +20 -0
- package/dist/src/commands/local/sor-addresses.command.d.ts.map +1 -0
- package/dist/src/commands/local/sor-addresses.command.js +65 -0
- package/dist/src/commands/local/sor-addresses.command.js.map +1 -0
- package/dist/src/commands/local/sor-command.utils.d.ts +12 -0
- package/dist/src/commands/local/sor-command.utils.d.ts.map +1 -0
- package/dist/src/commands/local/sor-command.utils.js +28 -0
- package/dist/src/commands/local/sor-command.utils.js.map +1 -0
- package/dist/src/commands/local/sor-secrets.command.d.ts +20 -0
- package/dist/src/commands/local/sor-secrets.command.d.ts.map +1 -0
- package/dist/src/commands/local/sor-secrets.command.js +75 -0
- package/dist/src/commands/local/sor-secrets.command.js.map +1 -0
- package/dist/src/commands/local/sor-simulators.command.d.ts +21 -0
- package/dist/src/commands/local/sor-simulators.command.d.ts.map +1 -0
- package/dist/src/commands/local/sor-simulators.command.js +55 -0
- package/dist/src/commands/local/sor-simulators.command.js.map +1 -0
- package/dist/src/commands/local/status.command.d.ts.map +1 -1
- package/dist/src/commands/local/status.command.js.map +1 -1
- package/dist/src/commands/local/up.command.d.ts.map +1 -1
- package/dist/src/commands/local/up.command.js.map +1 -1
- package/dist/src/commands/local-defaults/capture.command.d.ts.map +1 -1
- package/dist/src/commands/local-defaults/capture.command.js.map +1 -1
- package/dist/src/commands/lock/check.command.d.ts +7 -7
- package/dist/src/commands/lock/check.command.d.ts.map +1 -1
- package/dist/src/commands/lock/check.command.js +11 -11
- package/dist/src/commands/lock/check.command.js.map +1 -1
- package/dist/src/commands/market/generate.command.d.ts.map +1 -1
- package/dist/src/commands/market/generate.command.js.map +1 -1
- package/dist/src/commands/market/market-command.utils.d.ts.map +1 -1
- package/dist/src/commands/market/market-command.utils.js.map +1 -1
- package/dist/src/commands/prefs/set.command.d.ts.map +1 -1
- package/dist/src/commands/prefs/set.command.js.map +1 -1
- package/dist/src/commands/providers/application-connection-session.utils.d.ts +9 -0
- package/dist/src/commands/providers/application-connection-session.utils.d.ts.map +1 -0
- package/dist/src/commands/providers/application-connection-session.utils.js +49 -0
- package/dist/src/commands/providers/application-connection-session.utils.js.map +1 -0
- package/dist/src/commands/providers/chat-command-registrations.utils.d.ts.map +1 -1
- package/dist/src/commands/providers/chat-command-registrations.utils.js +2 -1
- package/dist/src/commands/providers/chat-command-registrations.utils.js.map +1 -1
- package/dist/src/commands/providers/connect.command.d.ts +19 -0
- package/dist/src/commands/providers/connect.command.d.ts.map +1 -0
- package/dist/src/commands/providers/connect.command.js +257 -0
- package/dist/src/commands/providers/connect.command.js.map +1 -0
- package/dist/src/commands/providers/connections.command.d.ts +14 -0
- package/dist/src/commands/providers/connections.command.d.ts.map +1 -0
- package/dist/src/commands/providers/connections.command.js +74 -0
- package/dist/src/commands/providers/connections.command.js.map +1 -0
- package/dist/src/commands/providers/disconnect.command.d.ts +15 -0
- package/dist/src/commands/providers/disconnect.command.d.ts.map +1 -0
- package/dist/src/commands/providers/disconnect.command.js +91 -0
- package/dist/src/commands/providers/disconnect.command.js.map +1 -0
- package/dist/src/commands/providers/new.command.d.ts.map +1 -1
- package/dist/src/commands/providers/new.command.js +2 -2
- package/dist/src/commands/providers/new.command.js.map +1 -1
- package/dist/src/commands/providers/probe.command.d.ts +0 -1
- package/dist/src/commands/providers/probe.command.d.ts.map +1 -1
- package/dist/src/commands/providers/probe.command.js +31 -31
- package/dist/src/commands/providers/probe.command.js.map +1 -1
- package/dist/src/commands/providers/prove.command.d.ts +16 -0
- package/dist/src/commands/providers/prove.command.d.ts.map +1 -0
- package/dist/src/commands/providers/prove.command.js +174 -0
- package/dist/src/commands/providers/prove.command.js.map +1 -0
- package/dist/src/commands/providers/register.command.d.ts.map +1 -1
- package/dist/src/commands/providers/register.command.js +45 -10
- package/dist/src/commands/providers/register.command.js.map +1 -1
- package/dist/src/commands/providers/show.command.d.ts.map +1 -1
- package/dist/src/commands/providers/show.command.js.map +1 -1
- package/dist/src/commands/registry/add.command.d.ts.map +1 -1
- package/dist/src/commands/registry/add.command.js.map +1 -1
- package/dist/src/commands/registry/domain.command.d.ts.map +1 -1
- package/dist/src/commands/registry/domain.command.js.map +1 -1
- package/dist/src/commands/registry/info.command.d.ts.map +1 -1
- package/dist/src/commands/registry/info.command.js.map +1 -1
- package/dist/src/commands/registry/key.command.d.ts.map +1 -1
- package/dist/src/commands/registry/key.command.js.map +1 -1
- package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -1
- package/dist/src/commands/registry/lockfile-smoke.command.js.map +1 -1
- package/dist/src/commands/registry/login.command.d.ts.map +1 -1
- package/dist/src/commands/registry/login.command.js +4 -2
- package/dist/src/commands/registry/login.command.js.map +1 -1
- package/dist/src/commands/registry/logout.command.d.ts.map +1 -1
- package/dist/src/commands/registry/logout.command.js.map +1 -1
- package/dist/src/commands/registry/outdated.command.d.ts.map +1 -1
- package/dist/src/commands/registry/outdated.command.js.map +1 -1
- package/dist/src/commands/registry/ping.command.d.ts.map +1 -1
- package/dist/src/commands/registry/ping.command.js.map +1 -1
- package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
- package/dist/src/commands/registry/publish.command.js +14 -0
- package/dist/src/commands/registry/publish.command.js.map +1 -1
- package/dist/src/commands/registry/registry-transport.constants.d.ts.map +1 -1
- package/dist/src/commands/registry/registry-transport.constants.js.map +1 -1
- package/dist/src/commands/registry/remove.command.d.ts.map +1 -1
- package/dist/src/commands/registry/remove.command.js.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.d.ts +12 -11
- package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.js +47 -56
- package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
- package/dist/src/commands/registry/search.command.d.ts.map +1 -1
- package/dist/src/commands/registry/search.command.js.map +1 -1
- package/dist/src/commands/registry/status.command.d.ts.map +1 -1
- package/dist/src/commands/registry/status.command.js.map +1 -1
- package/dist/src/commands/registry/update.command.d.ts.map +1 -1
- package/dist/src/commands/registry/update.command.js.map +1 -1
- package/dist/src/commands/registry/whoami.command.d.ts.map +1 -1
- package/dist/src/commands/registry/whoami.command.js +4 -2
- package/dist/src/commands/registry/whoami.command.js.map +1 -1
- package/dist/src/commands/registry/yank.command.d.ts.map +1 -1
- package/dist/src/commands/registry/yank.command.js.map +1 -1
- package/dist/src/commands/remote/create.command.d.ts.map +1 -1
- package/dist/src/commands/remote/create.command.js.map +1 -1
- package/dist/src/commands/remote/list.command.d.ts.map +1 -1
- package/dist/src/commands/remote/list.command.js.map +1 -1
- package/dist/src/commands/remote/status.command.d.ts.map +1 -1
- package/dist/src/commands/remote/status.command.js.map +1 -1
- package/dist/src/commands/remote/sync.command.d.ts.map +1 -1
- package/dist/src/commands/remote/sync.command.js +1 -1
- package/dist/src/commands/remote/sync.command.js.map +1 -1
- package/dist/src/commands/seal/currency.command.d.ts +13 -0
- package/dist/src/commands/seal/currency.command.d.ts.map +1 -0
- package/dist/src/commands/seal/currency.command.js +52 -0
- package/dist/src/commands/seal/currency.command.js.map +1 -0
- package/dist/src/commands/seal/dead.command.d.ts.map +1 -1
- package/dist/src/commands/seal/dead.command.js +2 -1
- package/dist/src/commands/seal/dead.command.js.map +1 -1
- package/dist/src/commands/seal/export.command.d.ts.map +1 -1
- package/dist/src/commands/seal/export.command.js.map +1 -1
- package/dist/src/commands/seal/log-export.command.d.ts.map +1 -1
- package/dist/src/commands/seal/log-export.command.js +6 -1
- package/dist/src/commands/seal/log-export.command.js.map +1 -1
- package/dist/src/commands/seal/log-verify.command.d.ts.map +1 -1
- package/dist/src/commands/seal/log-verify.command.js +2 -1
- package/dist/src/commands/seal/log-verify.command.js.map +1 -1
- package/dist/src/commands/seal/rebuild-copy.command.d.ts +14 -0
- package/dist/src/commands/seal/rebuild-copy.command.d.ts.map +1 -0
- package/dist/src/commands/seal/rebuild-copy.command.js +48 -0
- package/dist/src/commands/seal/rebuild-copy.command.js.map +1 -0
- package/dist/src/commands/seal/retry.command.d.ts.map +1 -1
- package/dist/src/commands/seal/retry.command.js.map +1 -1
- package/dist/src/commands/seal/seal-admin-door.utils.d.ts.map +1 -1
- package/dist/src/commands/seal/seal-admin-door.utils.js +2 -0
- package/dist/src/commands/seal/seal-admin-door.utils.js.map +1 -1
- package/dist/src/commands/seal/signing-log-files.utils.d.ts.map +1 -1
- package/dist/src/commands/seal/signing-log-files.utils.js.map +1 -1
- package/dist/src/commands/seal/verify.command.d.ts +14 -0
- package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
- package/dist/src/commands/seal/verify.command.js +85 -9
- package/dist/src/commands/seal/verify.command.js.map +1 -1
- package/dist/src/commands/secrets/github.command.d.ts.map +1 -1
- package/dist/src/commands/secrets/github.command.js.map +1 -1
- package/dist/src/commands/secrets/list.command.d.ts.map +1 -1
- package/dist/src/commands/secrets/list.command.js.map +1 -1
- package/dist/src/commands/secrets/set.command.d.ts.map +1 -1
- package/dist/src/commands/secrets/set.command.js +5 -3
- package/dist/src/commands/secrets/set.command.js.map +1 -1
- package/dist/src/commands/secrets/unset.command.d.ts.map +1 -1
- package/dist/src/commands/secrets/unset.command.js.map +1 -1
- package/dist/src/commands/setup.command.d.ts.map +1 -1
- package/dist/src/commands/setup.command.js.map +1 -1
- package/dist/src/commands/update.command.d.ts.map +1 -1
- package/dist/src/commands/update.command.js +86 -7
- package/dist/src/commands/update.command.js.map +1 -1
- package/dist/src/commands/version.command.d.ts.map +1 -1
- package/dist/src/commands/version.command.js.map +1 -1
- package/dist/src/commands/website/audit.command.d.ts.map +1 -1
- package/dist/src/commands/website/audit.command.js +15 -1
- package/dist/src/commands/website/audit.command.js.map +1 -1
- package/dist/src/commands/website/look.command.d.ts.map +1 -1
- package/dist/src/commands/website/look.command.js.map +1 -1
- package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/open.command.js +12 -3
- package/dist/src/commands/workbench/open.command.js.map +1 -1
- package/dist/src/commands/workbench/parallelism.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/parallelism.command.js.map +1 -1
- package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/status.command.js.map +1 -1
- package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/errors/error.utils.js.map +1 -1
- package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/io/file.utils.js.map +1 -1
- package/dist/src/infrastructure/io/io.schemas.d.ts +4 -4
- package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/io/io.schemas.js +4 -4
- package/dist/src/infrastructure/io/io.schemas.js.map +1 -1
- package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -1
- package/dist/src/infrastructure/io/template-processor.js.map +1 -1
- package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -1
- package/dist/src/infrastructure/logger/logger.service.js.map +1 -1
- package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/process/spawn.utils.js.map +1 -1
- package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/formatting.service.js.map +1 -1
- package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/interaction-engine.service.js.map +1 -1
- package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/markdown-renderer.service.js.map +1 -1
- package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/ui.schemas.js.map +1 -1
- package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/utils/string.utils.js.map +1 -1
- package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -1
- package/dist/src/infrastructure/validation/validator.service.js.map +1 -1
- package/dist/src/kernel/base-command.d.ts.map +1 -1
- package/dist/src/kernel/base-command.js.map +1 -1
- package/dist/src/kernel/bootstrap.d.ts +10 -0
- package/dist/src/kernel/bootstrap.d.ts.map +1 -1
- package/dist/src/kernel/bootstrap.js +13 -1
- package/dist/src/kernel/bootstrap.js.map +1 -1
- package/dist/src/kernel/command-index-cache.d.ts.map +1 -1
- package/dist/src/kernel/command-index-cache.js.map +1 -1
- package/dist/src/kernel/command-registry.d.ts.map +1 -1
- package/dist/src/kernel/command-registry.js +5 -0
- package/dist/src/kernel/command-registry.js.map +1 -1
- package/dist/src/kernel/command-runner.d.ts.map +1 -1
- package/dist/src/kernel/command-runner.js.map +1 -1
- package/dist/src/kernel/command-scope-utils.d.ts.map +1 -1
- package/dist/src/kernel/command-scope-utils.js.map +1 -1
- package/dist/src/kernel/flag-utils.d.ts.map +1 -1
- package/dist/src/kernel/flag-utils.js.map +1 -1
- package/dist/src/kernel/hooks.d.ts.map +1 -1
- package/dist/src/kernel/hooks.js.map +1 -1
- package/dist/src/kernel/json-document-output.d.ts.map +1 -1
- package/dist/src/kernel/json-document-output.js.map +1 -1
- package/dist/src/kernel/logger.d.ts.map +1 -1
- package/dist/src/kernel/logger.js.map +1 -1
- package/dist/src/kernel/types.d.ts +8 -1
- package/dist/src/kernel/types.d.ts.map +1 -1
- package/dist/src/kernel/types.js +7 -0
- package/dist/src/kernel/types.js.map +1 -1
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/main.js.map +1 -1
- package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/admin-user.module.js.map +1 -1
- package/dist/src/modules/domain/credentials/approver-user.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/approver-user.module.js.map +1 -1
- package/dist/src/modules/domain/credentials/creation-essentials.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/creation-essentials.module.js.map +1 -1
- package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/module.types.js.map +1 -1
- package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/database-config.module.js.map +1 -1
- package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/module.types.js.map +1 -1
- package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/paths-config.module.js.map +1 -1
- package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/runtime-selector.module.js.map +1 -1
- package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/runtime-semantics.module.js.map +1 -1
- package/dist/src/modules/domain/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/module.types.js.map +1 -1
- package/dist/src/services/application/ai-use-declarations.service.d.ts.map +1 -1
- package/dist/src/services/application/ai-use-declarations.service.js.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts +42 -3
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js +147 -42
- package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/app-env.service.d.ts.map +1 -1
- package/dist/src/services/application/app-env.service.js.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts +19 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.js +23 -5
- package/dist/src/services/application/app-local-runtime-addresses.service.js.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts +8 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.js +17 -8
- package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
- package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-schema-bootstrap.service.js +5 -1
- package/dist/src/services/application/app-schema-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.js +10 -1
- package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
- package/dist/src/services/application/application-browser-smoke.service.d.ts +23 -0
- package/dist/src/services/application/application-browser-smoke.service.d.ts.map +1 -1
- package/dist/src/services/application/application-browser-smoke.service.js +142 -19
- package/dist/src/services/application/application-browser-smoke.service.js.map +1 -1
- package/dist/src/services/application/application-creation-readiness.service.d.ts.map +1 -1
- package/dist/src/services/application/application-creation-readiness.service.js.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.d.ts +10 -6
- package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.js +32 -18
- package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
- package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -1
- package/dist/src/services/application/application-dev-port-offsets.js.map +1 -1
- package/dist/src/services/application/application-dev-script-migration.service.d.ts +56 -0
- package/dist/src/services/application/application-dev-script-migration.service.d.ts.map +1 -0
- package/dist/src/services/application/application-dev-script-migration.service.js +208 -0
- package/dist/src/services/application/application-dev-script-migration.service.js.map +1 -0
- package/dist/src/services/application/application-initialization-verification.service.d.ts +8 -0
- package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
- package/dist/src/services/application/application-initialization-verification.service.js +31 -11
- package/dist/src/services/application/application-initialization-verification.service.js.map +1 -1
- package/dist/src/services/application/application-root.utils.d.ts.map +1 -1
- package/dist/src/services/application/application-root.utils.js.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.js +2 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/backend-config.paths.d.ts.map +1 -1
- package/dist/src/services/application/backend-config.paths.js.map +1 -1
- package/dist/src/services/application/composition-provider-plan.service.d.ts +1 -1
- package/dist/src/services/application/composition-provider-plan.service.d.ts.map +1 -1
- package/dist/src/services/application/composition-provider-plan.service.js +53 -28
- package/dist/src/services/application/composition-provider-plan.service.js.map +1 -1
- package/dist/src/services/application/content-guardrail-classifier.service.d.ts +19 -0
- package/dist/src/services/application/content-guardrail-classifier.service.d.ts.map +1 -1
- package/dist/src/services/application/content-guardrail-classifier.service.js +76 -12
- package/dist/src/services/application/content-guardrail-classifier.service.js.map +1 -1
- package/dist/src/services/application/creation-host-readiness.service.d.ts +13 -1
- package/dist/src/services/application/creation-host-readiness.service.d.ts.map +1 -1
- package/dist/src/services/application/creation-host-readiness.service.js +44 -5
- package/dist/src/services/application/creation-host-readiness.service.js.map +1 -1
- package/dist/src/services/application/creation-preflight.service.d.ts.map +1 -1
- package/dist/src/services/application/creation-preflight.service.js.map +1 -1
- package/dist/src/services/application/degraded-registration-declaration-convergence.service.d.ts.map +1 -1
- package/dist/src/services/application/degraded-registration-declaration-convergence.service.js.map +1 -1
- package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -1
- package/dist/src/services/application/dev-orchestrator.service.js.map +1 -1
- package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
- package/dist/src/services/application/dev-schema-drift.service.js.map +1 -1
- package/dist/src/services/application/engine-label-base-seeding.service.d.ts +85 -0
- package/dist/src/services/application/engine-label-base-seeding.service.d.ts.map +1 -0
- package/dist/src/services/application/engine-label-base-seeding.service.js +130 -0
- package/dist/src/services/application/engine-label-base-seeding.service.js.map +1 -0
- package/dist/src/services/application/environment-provider-configurations.service.d.ts.map +1 -1
- package/dist/src/services/application/environment-provider-configurations.service.js.map +1 -1
- package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/existing-app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/frontend-provider-sdk-declarations.service.d.ts.map +1 -1
- package/dist/src/services/application/frontend-provider-sdk-declarations.service.js +1 -1
- package/dist/src/services/application/frontend-provider-sdk-declarations.service.js.map +1 -1
- package/dist/src/services/application/frontend-provider-source.service.d.ts.map +1 -1
- package/dist/src/services/application/frontend-provider-source.service.js.map +1 -1
- package/dist/src/services/application/frontend-providers-not-configured.service.d.ts.map +1 -1
- package/dist/src/services/application/frontend-providers-not-configured.service.js.map +1 -1
- package/dist/src/services/application/frontend-public-config-secret-screen.service.d.ts.map +1 -1
- package/dist/src/services/application/frontend-public-config-secret-screen.service.js.map +1 -1
- package/dist/src/services/application/infra-system-of-record-addresses.editor.d.ts +13 -0
- package/dist/src/services/application/infra-system-of-record-addresses.editor.d.ts.map +1 -0
- package/dist/src/services/application/infra-system-of-record-addresses.editor.js +185 -0
- package/dist/src/services/application/infra-system-of-record-addresses.editor.js.map +1 -0
- package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -1
- package/dist/src/services/application/local-app-reinit.service.js.map +1 -1
- package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -1
- package/dist/src/services/application/local-application-initialization.service.js.map +1 -1
- package/dist/src/services/application/local-provider-doubles.service.d.ts +98 -0
- package/dist/src/services/application/local-provider-doubles.service.d.ts.map +1 -0
- package/dist/src/services/application/local-provider-doubles.service.js +214 -0
- package/dist/src/services/application/local-provider-doubles.service.js.map +1 -0
- package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
- package/dist/src/services/application/provider-runtime-sync.service.js +38 -10
- package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
- package/dist/src/services/application/saas-scaffold.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-scaffold.service.js.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.d.ts +6 -2
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.js +46 -11
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
- package/dist/src/services/application/stored-declaration-currency.service.d.ts.map +1 -1
- package/dist/src/services/application/stored-declaration-currency.service.js.map +1 -1
- package/dist/src/services/application/system-of-record-simulators.service.d.ts +221 -0
- package/dist/src/services/application/system-of-record-simulators.service.d.ts.map +1 -0
- package/dist/src/services/application/system-of-record-simulators.service.js +442 -0
- package/dist/src/services/application/system-of-record-simulators.service.js.map +1 -0
- package/dist/src/services/application/systems-of-record-library.service.d.ts +1 -1
- package/dist/src/services/application/systems-of-record-library.service.d.ts.map +1 -1
- package/dist/src/services/application/systems-of-record-library.service.js +6 -3
- package/dist/src/services/application/systems-of-record-library.service.js.map +1 -1
- package/dist/src/services/assurance/assurance-cycle-location.service.d.ts +59 -0
- package/dist/src/services/assurance/assurance-cycle-location.service.d.ts.map +1 -0
- package/dist/src/services/assurance/assurance-cycle-location.service.js +139 -0
- package/dist/src/services/assurance/assurance-cycle-location.service.js.map +1 -0
- package/dist/src/services/blueprint/blueprint-apply.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-apply.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-artifact.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-artifact.service.js +2 -1
- package/dist/src/services/blueprint/blueprint-artifact.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-definition.reader.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-definition.reader.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-export.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-export.service.js +2 -1
- package/dist/src/services/blueprint/blueprint-export.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-line.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-line.service.js +5 -3
- package/dist/src/services/blueprint/blueprint-line.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-module-references.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-module-references.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-registry.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-registry.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-report.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-report.js.map +1 -1
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.d.ts +1 -1
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.js +1 -1
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.js.map +1 -1
- package/dist/src/services/blueprint/framework-blueprints.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/framework-blueprints.service.js +20 -7
- package/dist/src/services/blueprint/framework-blueprints.service.js.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.d.ts +8 -33
- package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.js +23 -6
- package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -1
- package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts.map +1 -1
- package/dist/src/services/coding-agents/acp-conformance-probe.service.js.map +1 -1
- package/dist/src/services/coding-agents/coding-agent-login.service.d.ts.map +1 -1
- package/dist/src/services/coding-agents/coding-agent-login.service.js.map +1 -1
- package/dist/src/services/companion/agent-stop-reason-words.d.ts.map +1 -1
- package/dist/src/services/companion/agent-stop-reason-words.js.map +1 -1
- package/dist/src/services/companion/agent-work-shortfall-words.d.ts.map +1 -1
- package/dist/src/services/companion/agent-work-shortfall-words.js +21 -2
- package/dist/src/services/companion/agent-work-shortfall-words.js.map +1 -1
- package/dist/src/services/companion/build-console.service.d.ts +179 -7
- package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/build-console.service.js +184 -15
- package/dist/src/services/companion/build-console.service.js.map +1 -1
- package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client-options.utils.js.map +1 -1
- package/dist/src/services/companion/companion-client.service.d.ts +25 -1
- package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client.service.js +61 -10
- package/dist/src/services/companion/companion-client.service.js.map +1 -1
- package/dist/src/services/companion/companion-health-hint.utils.d.ts +2 -1
- package/dist/src/services/companion/companion-health-hint.utils.d.ts.map +1 -1
- package/dist/src/services/companion/companion-health-hint.utils.js +8 -1
- package/dist/src/services/companion/companion-health-hint.utils.js.map +1 -1
- package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-lifecycle.service.js.map +1 -1
- package/dist/src/services/companion/companion-local-token.utils.d.ts.map +1 -1
- package/dist/src/services/companion/companion-local-token.utils.js.map +1 -1
- package/dist/src/services/companion/companion.schemas.d.ts.map +1 -1
- package/dist/src/services/companion/companion.schemas.js.map +1 -1
- package/dist/src/services/companion/console-agent.d.ts +50 -0
- package/dist/src/services/companion/console-agent.d.ts.map +1 -0
- package/dist/src/services/companion/console-agent.js +67 -0
- package/dist/src/services/companion/console-agent.js.map +1 -0
- package/dist/src/services/companion/console-fast-path.d.ts +6 -4
- package/dist/src/services/companion/console-fast-path.d.ts.map +1 -1
- package/dist/src/services/companion/console-fast-path.js +12 -9
- package/dist/src/services/companion/console-fast-path.js.map +1 -1
- package/dist/src/services/companion/console-verb.utils.d.ts +7 -0
- package/dist/src/services/companion/console-verb.utils.d.ts.map +1 -1
- package/dist/src/services/companion/console-verb.utils.js +22 -1
- package/dist/src/services/companion/console-verb.utils.js.map +1 -1
- package/dist/src/services/companion/creation-console.service.d.ts +44 -13
- package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-console.service.js +121 -7
- package/dist/src/services/companion/creation-console.service.js.map +1 -1
- package/dist/src/services/companion/creation-drive.service.d.ts +262 -0
- package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -0
- package/dist/src/services/companion/creation-drive.service.js +499 -0
- package/dist/src/services/companion/creation-drive.service.js.map +1 -0
- package/dist/src/services/companion/creation-run-report.models.d.ts +14 -0
- package/dist/src/services/companion/creation-run-report.models.d.ts.map +1 -1
- package/dist/src/services/companion/creation-run-report.models.js.map +1 -1
- package/dist/src/services/companion/git-helper.service.d.ts.map +1 -1
- package/dist/src/services/companion/git-helper.service.js.map +1 -1
- package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -1
- package/dist/src/services/companion/local-companion-authority.service.js.map +1 -1
- package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -1
- package/dist/src/services/companion/workbench-browser-launcher.service.js.map +1 -1
- package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -1
- package/dist/src/services/companion/workbench-cli.service.js.map +1 -1
- package/dist/src/services/compliance/data-retention-schedule.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/data-retention-schedule.generator.js.map +1 -1
- package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts.map +1 -1
- package/dist/src/services/compliance/generated-compliance-module-wiring.js.map +1 -1
- package/dist/src/services/compliance/governed-document-releases.generator.d.ts +22 -6
- package/dist/src/services/compliance/governed-document-releases.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/governed-document-releases.generator.js +31 -11
- package/dist/src/services/compliance/governed-document-releases.generator.js.map +1 -1
- package/dist/src/services/compliance/legal-notice.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/legal-notice.generator.js.map +1 -1
- package/dist/src/services/compliance/service-consent-requirement.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/service-consent-requirement.generator.js.map +1 -1
- package/dist/src/services/compliance/subject-data-recipients.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/subject-data-recipients.generator.js.map +1 -1
- package/dist/src/services/context/context-manager.service.d.ts.map +1 -1
- package/dist/src/services/context/context-manager.service.js.map +1 -1
- package/dist/src/services/context/context.schemas.d.ts.map +1 -1
- package/dist/src/services/context/context.schemas.js.map +1 -1
- package/dist/src/services/context/machine-preferences.writer.d.ts.map +1 -1
- package/dist/src/services/context/machine-preferences.writer.js.map +1 -1
- package/dist/src/services/context/state-manager.service.d.ts.map +1 -1
- package/dist/src/services/context/state-manager.service.js.map +1 -1
- package/dist/src/services/credentials/application-secret-owners.service.d.ts +6 -1
- package/dist/src/services/credentials/application-secret-owners.service.d.ts.map +1 -1
- package/dist/src/services/credentials/application-secret-owners.service.js +50 -102
- package/dist/src/services/credentials/application-secret-owners.service.js.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.js +42 -13
- package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
- package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -1
- package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts +54 -3
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.js +77 -14
- package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.d.ts +21 -159
- package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.js +35 -18
- package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
- package/dist/src/services/credentials/credentials.service.d.ts +8 -2
- package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.service.js +11 -2
- package/dist/src/services/credentials/credentials.service.js.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.d.ts +19 -5
- package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.js +42 -14
- package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
- package/dist/src/services/credentials/local-defaults.service.d.ts.map +1 -1
- package/dist/src/services/credentials/local-defaults.service.js.map +1 -1
- package/dist/src/services/credentials/local-secrets-store.service.d.ts.map +1 -1
- package/dist/src/services/credentials/local-secrets-store.service.js.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.js +21 -5
- package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
- package/dist/src/services/credentials/provider-secret-format.d.ts.map +1 -1
- package/dist/src/services/credentials/provider-secret-format.js.map +1 -1
- package/dist/src/services/credentials/remote-secrets-store.service.d.ts.map +1 -1
- package/dist/src/services/credentials/remote-secrets-store.service.js.map +1 -1
- package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-provisioning.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-reader.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.d.ts +9 -0
- package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.js +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts +4 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.js +4 -2
- package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.d.ts +9 -0
- package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.js +9 -0
- package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
- package/dist/src/services/data-services/data-services.service.d.ts.map +1 -1
- package/dist/src/services/data-services/data-services.service.js.map +1 -1
- package/dist/src/services/data-services/platform-key-vault.break-glass.service.d.ts +93 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.service.d.ts.map +1 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.service.js +253 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.service.js.map +1 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.target.d.ts +22 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.target.d.ts.map +1 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.target.js +64 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.target.js.map +1 -0
- package/dist/src/services/data-services/platform-key-vault.server-config.d.ts +42 -11
- package/dist/src/services/data-services/platform-key-vault.server-config.d.ts.map +1 -1
- package/dist/src/services/data-services/platform-key-vault.server-config.js +63 -16
- package/dist/src/services/data-services/platform-key-vault.server-config.js.map +1 -1
- package/dist/src/services/deployment/application-first-run-checks.service.d.ts +131 -0
- package/dist/src/services/deployment/application-first-run-checks.service.d.ts.map +1 -0
- package/dist/src/services/deployment/application-first-run-checks.service.js +438 -0
- package/dist/src/services/deployment/application-first-run-checks.service.js.map +1 -0
- package/dist/src/services/deployment/application-runtime-environment.d.ts +93 -0
- package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -0
- package/dist/src/services/deployment/application-runtime-environment.js +116 -0
- package/dist/src/services/deployment/application-runtime-environment.js.map +1 -0
- package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -1
- package/dist/src/services/deployment/apps-manager-diagnostics.service.js.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js +14 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
- package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/backing-service-health-watch.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/backing-service-health-watch.js.map +1 -1
- package/dist/src/services/deployment/docker/compose-service-health.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/compose-service-health.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +177 -51
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js +368 -93
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.js.map +1 -1
- package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker.schemas.js.map +1 -1
- package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker.service.js.map +1 -1
- package/dist/src/services/deployment/docker/local-data-adoption.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/local-data-adoption.service.js.map +1 -1
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts +56 -0
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts.map +1 -0
- package/dist/src/services/deployment/framework-pod-network-membership.js +126 -0
- package/dist/src/services/deployment/framework-pod-network-membership.js.map +1 -0
- package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
- package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
- package/dist/src/services/deployment/infra-writer.service.js +4 -4
- package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/cluster-controller-charts.constants.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/cluster-controller-charts.constants.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +51 -10
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +179 -43
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +38 -2
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-operations.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +35 -31
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s.schemas.js.map +1 -1
- package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/kind.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts +38 -0
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.js +84 -0
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.js.map +1 -0
- package/dist/src/services/deployment/local-dev-log-retention.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-log-retention.service.js +3 -2
- package/dist/src/services/deployment/local-dev-log-retention.service.js.map +1 -1
- package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-observer-lifecycle.js.map +1 -1
- package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-output-boundary.js.map +1 -1
- package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-session-lease.service.js +22 -1
- package/dist/src/services/deployment/local-dev-session-lease.service.js.map +1 -1
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.js.map +1 -1
- package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-infrastructure-initialization.service.js.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.schemas.js.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts +53 -0
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.js +118 -1
- package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.js +32 -1
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.js.map +1 -1
- package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/deployment/platform-lifecycle.service.js.map +1 -1
- package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -1
- package/dist/src/services/deployment/platform-runtime-policy.service.js.map +1 -1
- package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -1
- package/dist/src/services/deployment/version-compare.utils.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-command.service.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.service.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.template.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-css-block.service.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-paths.service.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.constants.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.models.js.map +1 -1
- package/dist/src/services/environment/application-backing-service-addressing.utils.d.ts.map +1 -1
- package/dist/src/services/environment/application-backing-service-addressing.utils.js.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.d.ts +9 -1
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.js +14 -1
- package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
- package/dist/src/services/environment/authored-infra-member-authority.d.ts +87 -0
- package/dist/src/services/environment/authored-infra-member-authority.d.ts.map +1 -0
- package/dist/src/services/environment/authored-infra-member-authority.js +256 -0
- package/dist/src/services/environment/authored-infra-member-authority.js.map +1 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.d.ts +56 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.d.ts.map +1 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.js +102 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.js.map +1 -0
- package/dist/src/services/environment/env-configuration-generator.service.d.ts +13 -8
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js +38 -13
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
- package/dist/src/services/environment/env-sync.service.d.ts +3 -2
- package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-sync.service.js +21 -7
- package/dist/src/services/environment/env-sync.service.js.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts +35 -4
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.js +88 -55
- package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
- package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
- package/dist/src/services/environment/environment-hydration.utils.js +29 -30
- package/dist/src/services/environment/environment-hydration.utils.js.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts +19 -0
- package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.js +35 -0
- package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
- package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-paths.service.js.map +1 -1
- package/dist/src/services/environment/environment-registry.service.d.ts +5 -6
- package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-registry.service.js +5 -6
- package/dist/src/services/environment/environment-registry.service.js.map +1 -1
- package/dist/src/services/environment/environment-service-profile.utils.d.ts +34 -0
- package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -0
- package/dist/src/services/environment/environment-service-profile.utils.js +43 -0
- package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -0
- package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.js +1 -1
- package/dist/src/services/environment/environment-setup.service.js.map +1 -1
- package/dist/src/services/environment/environment.schemas.d.ts +14 -11
- package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/environment.schemas.js.map +1 -1
- package/dist/src/services/environment/environment.service.d.ts +5 -0
- package/dist/src/services/environment/environment.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment.service.js +2 -0
- package/dist/src/services/environment/environment.service.js.map +1 -1
- package/dist/src/services/environment/hosted-infrastructure-leftovers.service.d.ts.map +1 -1
- package/dist/src/services/environment/hosted-infrastructure-leftovers.service.js.map +1 -1
- package/dist/src/services/environment/infrastructure-host.service.d.ts.map +1 -1
- package/dist/src/services/environment/infrastructure-host.service.js.map +1 -1
- package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -1
- package/dist/src/services/environment/platform-engine-change.utils.js.map +1 -1
- package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime-state.service.js.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.d.ts +26 -0
- package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.js +28 -0
- package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts +106 -61
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.js +178 -152
- package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -1
- package/dist/src/services/framework/application-agent-hooks-console.d.ts +153 -0
- package/dist/src/services/framework/application-agent-hooks-console.d.ts.map +1 -0
- package/dist/src/services/framework/application-agent-hooks-console.js +401 -0
- package/dist/src/services/framework/application-agent-hooks-console.js.map +1 -0
- package/dist/src/services/framework/application-agent-skills-console.d.ts +78 -0
- package/dist/src/services/framework/application-agent-skills-console.d.ts.map +1 -0
- package/dist/src/services/framework/application-agent-skills-console.js +116 -0
- package/dist/src/services/framework/application-agent-skills-console.js.map +1 -0
- package/dist/src/services/framework/application-claude-settings.d.ts.map +1 -1
- package/dist/src/services/framework/application-claude-settings.js.map +1 -1
- package/dist/src/services/framework/application-console-loaders.d.ts +107 -0
- package/dist/src/services/framework/application-console-loaders.d.ts.map +1 -0
- package/dist/src/services/framework/application-console-loaders.js +221 -0
- package/dist/src/services/framework/application-console-loaders.js.map +1 -0
- package/dist/src/services/framework/application-opencode-console.d.ts +43 -0
- package/dist/src/services/framework/application-opencode-console.d.ts.map +1 -0
- package/dist/src/services/framework/application-opencode-console.js +68 -0
- package/dist/src/services/framework/application-opencode-console.js.map +1 -0
- package/dist/src/services/framework/application-provider-skills.service.d.ts.map +1 -1
- package/dist/src/services/framework/application-provider-skills.service.js.map +1 -1
- package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -1
- package/dist/src/services/framework/application-rule-imports.js.map +1 -1
- package/dist/src/services/framework/auditable-event-catalog.generator.d.ts.map +1 -1
- package/dist/src/services/framework/auditable-event-catalog.generator.js.map +1 -1
- package/dist/src/services/framework/claude-plugin-compiler.d.ts +6 -0
- package/dist/src/services/framework/claude-plugin-compiler.d.ts.map +1 -1
- package/dist/src/services/framework/claude-plugin-compiler.js +6 -1
- package/dist/src/services/framework/claude-plugin-compiler.js.map +1 -1
- package/dist/src/services/framework/dev-compile-status.paths.d.ts.map +1 -1
- package/dist/src/services/framework/dev-compile-status.paths.js.map +1 -1
- package/dist/src/services/framework/enum-member-docs.reader.d.ts.map +1 -1
- package/dist/src/services/framework/enum-member-docs.reader.js.map +1 -1
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.d.ts +5 -0
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.d.ts.map +1 -1
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.js +7 -2
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.js.map +1 -1
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +19 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-development-skills-sync.service.js +18 -4
- package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.d.ts +34 -2
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.js +63 -17
- package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +20 -3
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.js +86 -3
- package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-scan.constants.js.map +1 -1
- package/dist/src/services/framework/framework-npm-credential.d.ts +76 -0
- package/dist/src/services/framework/framework-npm-credential.d.ts.map +1 -0
- package/dist/src/services/framework/framework-npm-credential.js +113 -0
- package/dist/src/services/framework/framework-npm-credential.js.map +1 -0
- package/dist/src/services/framework/framework-npm-dist-tag.service.d.ts +100 -8
- package/dist/src/services/framework/framework-npm-dist-tag.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-dist-tag.service.js +147 -25
- package/dist/src/services/framework/framework-npm-dist-tag.service.js.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.d.ts +50 -4
- package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.js +128 -56
- package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
- package/dist/src/services/framework/framework-publish-cli-origin.d.ts +22 -0
- package/dist/src/services/framework/framework-publish-cli-origin.d.ts.map +1 -0
- package/dist/src/services/framework/framework-publish-cli-origin.js +49 -0
- package/dist/src/services/framework/framework-publish-cli-origin.js.map +1 -0
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts +18 -3
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-publish-manifest.service.js +43 -75
- package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
- package/dist/src/services/framework/framework-release.service.d.ts +13 -0
- package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-release.service.js +15 -2
- package/dist/src/services/framework/framework-release.service.js.map +1 -1
- package/dist/src/services/framework/framework-update.service.d.ts +7 -3
- package/dist/src/services/framework/framework-update.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-update.service.js +25 -16
- package/dist/src/services/framework/framework-update.service.js.map +1 -1
- package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-version.service.js.map +1 -1
- package/dist/src/services/framework/frontend-component-catalog.generator.d.ts.map +1 -1
- package/dist/src/services/framework/frontend-component-catalog.generator.js.map +1 -1
- package/dist/src/services/framework/frontend-library-root-exports.d.ts.map +1 -1
- package/dist/src/services/framework/frontend-library-root-exports.js.map +1 -1
- package/dist/src/services/framework/installed-framework-assets.service.d.ts +2 -2
- package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
- package/dist/src/services/framework/installed-framework-assets.service.js +4 -0
- package/dist/src/services/framework/installed-framework-assets.service.js.map +1 -1
- package/dist/src/services/framework/npm-registry-output.d.ts.map +1 -1
- package/dist/src/services/framework/npm-registry-output.js.map +1 -1
- package/dist/src/services/framework/package-install.service.d.ts +13 -3
- package/dist/src/services/framework/package-install.service.d.ts.map +1 -1
- package/dist/src/services/framework/package-install.service.js +22 -9
- package/dist/src/services/framework/package-install.service.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/api-version-settlement.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/api-version-settlement.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/base-url-settlement.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/base-url-settlement.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-merge.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-merge.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.js +3 -3
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/request-helper-url.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/request-helper-url.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/sim-source.reader.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/source-static-evaluator.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/source-static-evaluator.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/url-template.extractor.js.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host-monitoring.d.ts.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host-monitoring.js.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host-remote.d.ts.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host-remote.js.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -1
- package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -1
- package/dist/src/services/frontend/cloudflare-cdn.service.js +3 -6
- package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -1
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts +11 -3
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-dist-uploader.service.js +72 -29
- package/dist/src/services/frontend/frontend-dist-uploader.service.js.map +1 -1
- package/dist/src/services/frontend/frontend-look.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-look.service.js +2 -1
- package/dist/src/services/frontend/frontend-look.service.js.map +1 -1
- package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-publish.service.js.map +1 -1
- package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/domain-generator.service.js.map +1 -1
- package/dist/src/services/generation/generator.schemas.d.ts.map +1 -1
- package/dist/src/services/generation/generator.schemas.js.map +1 -1
- package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/operation-generator.service.js.map +1 -1
- package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/resource-generator.service.js.map +1 -1
- package/dist/src/services/generation/template-registry.service.d.ts.map +1 -1
- package/dist/src/services/generation/template-registry.service.js.map +1 -1
- package/dist/src/services/registry/application-provider-connection.service.d.ts +161 -0
- package/dist/src/services/registry/application-provider-connection.service.d.ts.map +1 -0
- package/dist/src/services/registry/application-provider-connection.service.js +337 -0
- package/dist/src/services/registry/application-provider-connection.service.js.map +1 -0
- package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
- package/dist/src/services/registry/artifact-extractor.utils.js.map +1 -1
- package/dist/src/services/registry/artifact-trust.utils.d.ts.map +1 -1
- package/dist/src/services/registry/artifact-trust.utils.js.map +1 -1
- package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -1
- package/dist/src/services/registry/boundary-fanout.utils.js.map +1 -1
- package/dist/src/services/registry/git-ignored-paths.utils.d.ts.map +1 -1
- package/dist/src/services/registry/git-ignored-paths.utils.js +13 -2
- package/dist/src/services/registry/git-ignored-paths.utils.js.map +1 -1
- package/dist/src/services/registry/index.d.ts.map +1 -1
- package/dist/src/services/registry/index.js.map +1 -1
- package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
- package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
- package/dist/src/services/registry/installed-provider-module.service.d.ts.map +1 -1
- package/dist/src/services/registry/installed-provider-module.service.js.map +1 -1
- package/dist/src/services/registry/local-checkout-module-source.service.d.ts.map +1 -1
- package/dist/src/services/registry/local-checkout-module-source.service.js.map +1 -1
- package/dist/src/services/registry/migration-obligation.utils.d.ts.map +1 -1
- package/dist/src/services/registry/migration-obligation.utils.js.map +1 -1
- package/dist/src/services/registry/module-acquisition.utils.d.ts.map +1 -1
- package/dist/src/services/registry/module-acquisition.utils.js.map +1 -1
- package/dist/src/services/registry/module-artifact-files.utils.d.ts.map +1 -1
- package/dist/src/services/registry/module-artifact-files.utils.js.map +1 -1
- package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-install.service.js.map +1 -1
- package/dist/src/services/registry/module-publish.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-publish.service.js +16 -7
- package/dist/src/services/registry/module-publish.service.js.map +1 -1
- package/dist/src/services/registry/module-registration.service.d.ts +0 -11
- package/dist/src/services/registry/module-registration.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-registration.service.js +88 -149
- package/dist/src/services/registry/module-registration.service.js.map +1 -1
- package/dist/src/services/registry/module-requirements.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-requirements.service.js +5 -5
- package/dist/src/services/registry/module-requirements.service.js.map +1 -1
- package/dist/src/services/registry/provider-configuration-checks.service.d.ts +55 -0
- package/dist/src/services/registry/provider-configuration-checks.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-configuration-checks.service.js +208 -0
- package/dist/src/services/registry/provider-configuration-checks.service.js.map +1 -0
- package/dist/src/services/registry/provider-connect.service.d.ts +300 -0
- package/dist/src/services/registry/provider-connect.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-connect.service.js +712 -0
- package/dist/src/services/registry/provider-connect.service.js.map +1 -0
- package/dist/src/services/registry/provider-graphql-schema-conformance.service.d.ts +29 -0
- package/dist/src/services/registry/provider-graphql-schema-conformance.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-graphql-schema-conformance.service.js +121 -0
- package/dist/src/services/registry/provider-graphql-schema-conformance.service.js.map +1 -0
- package/dist/src/services/registry/provider-install-step.d.ts +38 -4
- package/dist/src/services/registry/provider-install-step.d.ts.map +1 -1
- package/dist/src/services/registry/provider-install-step.js +56 -11
- package/dist/src/services/registry/provider-install-step.js.map +1 -1
- package/dist/src/services/registry/provider-module-checks.service.d.ts +12 -1
- package/dist/src/services/registry/provider-module-checks.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-checks.service.js +114 -25
- package/dist/src/services/registry/provider-module-checks.service.js.map +1 -1
- package/dist/src/services/registry/provider-module-engine-range.service.d.ts +88 -0
- package/dist/src/services/registry/provider-module-engine-range.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-module-engine-range.service.js +386 -0
- package/dist/src/services/registry/provider-module-engine-range.service.js.map +1 -0
- package/dist/src/services/registry/provider-module-identity.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-identity.service.js.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.d.ts +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.js +9 -0
- package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
- package/dist/src/services/registry/provider-module-vendor-packages.service.d.ts +2 -2
- package/dist/src/services/registry/provider-module-vendor-packages.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-vendor-packages.service.js +9 -6
- package/dist/src/services/registry/provider-module-vendor-packages.service.js.map +1 -1
- package/dist/src/services/registry/provider-openapi-conformance.service.d.ts +22 -12
- package/dist/src/services/registry/provider-openapi-conformance.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-openapi-conformance.service.js +122 -51
- package/dist/src/services/registry/provider-openapi-conformance.service.js.map +1 -1
- package/dist/src/services/registry/provider-probe-credentials.service.d.ts +94 -0
- package/dist/src/services/registry/provider-probe-credentials.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-probe-credentials.service.js +184 -0
- package/dist/src/services/registry/provider-probe-credentials.service.js.map +1 -0
- package/dist/src/services/registry/provider-probe.service.d.ts +189 -5
- package/dist/src/services/registry/provider-probe.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-probe.service.js +268 -54
- package/dist/src/services/registry/provider-probe.service.js.map +1 -1
- package/dist/src/services/registry/provider-proof.service.d.ts +206 -0
- package/dist/src/services/registry/provider-proof.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-proof.service.js +640 -0
- package/dist/src/services/registry/provider-proof.service.js.map +1 -0
- package/dist/src/services/registry/provider-publication.service.d.ts +8 -0
- package/dist/src/services/registry/provider-publication.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-publication.service.js +25 -12
- package/dist/src/services/registry/provider-publication.service.js.map +1 -1
- package/dist/src/services/registry/provider-vendor-registration.service.d.ts +10 -0
- package/dist/src/services/registry/provider-vendor-registration.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-vendor-registration.service.js +34 -0
- package/dist/src/services/registry/provider-vendor-registration.service.js.map +1 -1
- package/dist/src/services/registry/provider-wiring.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-wiring.service.js +4 -4
- package/dist/src/services/registry/provider-wiring.service.js.map +1 -1
- package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
- package/dist/src/services/registry/registry-command.utils.js.map +1 -1
- package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -1
- package/dist/src/services/registry/registry-credentials.service.js.map +1 -1
- package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -1
- package/dist/src/services/registry/saas-root-required.error.js.map +1 -1
- package/dist/src/services/security/csp-sync.service.d.ts +20 -1
- package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
- package/dist/src/services/security/csp-sync.service.js +48 -6
- package/dist/src/services/security/csp-sync.service.js.map +1 -1
- package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -1
- package/dist/src/services/tools/utility-tools.service.js.map +1 -1
- package/dist/src/services/tracker/creation-run-tracker.service.d.ts.map +1 -1
- package/dist/src/services/tracker/creation-run-tracker.service.js.map +1 -1
- package/dist/src/services/website/website-label-pack-audit.service.d.ts +2 -2
- package/dist/src/services/website/website-label-pack-audit.service.d.ts.map +1 -1
- package/dist/src/services/website/website-label-pack-audit.service.js +5 -4
- package/dist/src/services/website/website-label-pack-audit.service.js.map +1 -1
- package/dist/src/services/website/website-look.service.d.ts.map +1 -1
- package/dist/src/services/website/website-look.service.js.map +1 -1
- package/dist/src/services/website/website-schema-org-catalog.worker.d.ts +18 -0
- package/dist/src/services/website/website-schema-org-catalog.worker.d.ts.map +1 -0
- package/dist/src/services/website/website-schema-org-catalog.worker.js +104 -0
- package/dist/src/services/website/website-schema-org-catalog.worker.js.map +1 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts +32 -5
- package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
- package/dist/src/services/website/website-structured-data-audit.service.js +63 -36
- package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
- package/dist/src/services/website/website-workspace.service.d.ts +42 -7
- package/dist/src/services/website/website-workspace.service.d.ts.map +1 -1
- package/dist/src/services/website/website-workspace.service.js +121 -12
- package/dist/src/services/website/website-workspace.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/framework-root-package.json +121 -59
- package/package.json +180 -99
- package/scripts/app-dependency-alignment/propagated-engine-overrides.json +67 -27
- package/scripts/dev-orchestrator/local-dev-protocol.mjs +176 -7
- package/scripts/dev-orchestrator/local-dev-status.mjs +297 -31
- package/scripts/pnpm-workspace-members.mjs +146 -0
- package/scripts/pnpm-workspace-settings.mjs +418 -0
- package/templates/infra/ci/deploy-k8s.yml.hbs +1 -1
- package/templates/infra/docker-compose/docker-compose.app.yml.hbs +17 -22
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +139 -63
- package/templates/infra/docker-images/platform/Dockerfile.platform-base +2 -1
- package/templates/infra/k8s/applications/wildo-ai-application/custom-domain-reconciler.yaml.hbs +222 -0
- package/templates/infra/k8s/applications/wildo-ai-application/minion.deployment.yaml.hbs +30 -13
- package/templates/infra/k8s/ingress/cert-manager/wildcard-certificate.yaml.hbs +1 -2
- package/templates/infra/k8s/internal/clamav/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/internal/immudb/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/internal/minio/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/internal/mongodb/deployment.yaml.hbs +11 -0
- package/templates/infra/k8s/internal/mongot/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/internal/openbao/configmap.yaml.hbs +2 -2
- package/templates/infra/k8s/internal/openbao/deployment.yaml.hbs +19 -2
- package/templates/infra/k8s/internal/postgresql/deployment.yaml.hbs +2 -1
- package/templates/infra/k8s/internal/rabbitmq/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/internal/valkey/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/platform/platform-apps-manager/deployment.yaml.hbs +31 -0
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/platform/platform-module-registry/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +3 -1
- package/templates/infra/registry-host/docker-compose.yml +4 -0
- package/templates/infra/yara-service/requirements.txt +1 -1
- package/templates/saas/blueprints/b2b-saas/blueprint.json +1 -1
- package/templates/saas/blueprints/internal-tool/blueprint.json +13 -1
- package/templates/saas/blueprints/service-firm/blueprint.json +1 -1
- package/templates/saas/engine-peer-closure.json +66 -8
- package/templates/saas/i18n/email/components/labels.fr.ts +1 -1
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/organizationInvoiceRefs/create.organization-billing_payment-failed/labels.fr.ts +7 -5
- package/templates/saas/i18n/email/resources/organizationInvoiceRefs/update.organization-billing_payment-failed/labels.fr.ts +7 -5
- package/templates/saas/i18n/email/resources/organizationMembers/{update.organization-users → update.organization-user-management}/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.en.ts +23 -0
- package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/template.tsx +63 -0
- package/templates/saas/i18n/email/resources/organizationSubscriptions/cancel.organization-billing_subscription-ending/labels.fr.ts +10 -8
- package/templates/saas/i18n/email/resources/organizationSubscriptions/create.organization-billing_subscription-started/labels.fr.ts +5 -3
- package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-ending/labels.fr.ts +11 -9
- package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-started/labels.fr.ts +5 -3
- package/templates/saas/i18n/email/resources/userInvoiceRefs/create.users-custom_payment-failed/labels.fr.ts +8 -6
- package/templates/saas/i18n/email/resources/userInvoiceRefs/update.users-custom_payment-failed/labels.fr.ts +6 -4
- package/templates/saas/i18n/email/resources/userSubscriptions/cancel.users-custom_subscription-ending/labels.fr.ts +10 -8
- package/templates/saas/i18n/email/resources/userSubscriptions/create.users-custom_subscription-started/labels.fr.ts +6 -4
- package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-ending/labels.fr.ts +11 -9
- package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-started/labels.fr.ts +6 -4
- package/templates/saas/i18n/email/system/new-device-login/labels.fr.ts +5 -5
- package/templates/saas/i18n/email/system/relationship-invitation/labels.fr.ts +3 -3
- package/templates/saas/i18n/engine/README.md +8 -3
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_COMMAND_MENU.en.ts +2 -1
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_COMMAND_MENU.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_USER_DROPDOWN.en.ts +2 -1
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_USER_DROPDOWN.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.ts +3 -3
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.fr.ts +3 -3
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS.en.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.ts +4 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.fr.ts +4 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS.en.ts +4 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS.fr.ts +4 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_REPRESENTATIVE_ACTIVITY_SETTINGS.en.ts +35 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_REPRESENTATIVE_ACTIVITY_SETTINGS.fr.ts +35 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_SECURITY_SETTINGS.fr.ts +9 -9
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.ts +10 -1
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.fr.ts +10 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +18 -4
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +18 -4
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_USAGE.en.ts +4 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_USAGE.fr.ts +4 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +4 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +4 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -7
- package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -7
- package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +432 -0
- package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +432 -0
- package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +497 -0
- package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +497 -0
- package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +3 -3
- package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +2 -1
- package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +2 -1
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +57 -42
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +19 -4
- package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +113 -0
- package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +113 -0
- package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +18 -31
- package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +3 -16
- package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +223 -0
- package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +223 -0
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +64 -0
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +64 -0
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +11 -28
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +0 -17
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +10 -24
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +3 -17
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +4 -4
- package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +5 -5
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +14 -14
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +3 -3
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +44 -44
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/applications.en.ts +280 -8
- package/templates/saas/i18n/engine/resources/applications.fr.ts +279 -7
- package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +529 -0
- package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +529 -0
- package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +281 -325
- package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +120 -164
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +36 -36
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +4 -4
- package/templates/saas/i18n/engine/resources/files.en.ts +30 -1
- package/templates/saas/i18n/engine/resources/files.fr.ts +30 -1
- package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +226 -248
- package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +60 -82
- package/templates/saas/i18n/engine/resources/legalHolds.en.ts +21 -21
- package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +221 -0
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +221 -0
- package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +184 -0
- package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +184 -0
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +16 -26
- package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -12
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +24 -22
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +24 -22
- package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +64 -0
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +64 -0
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +11 -28
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +0 -17
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +12 -4
- package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +12 -4
- package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +23 -4
- package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +23 -4
- package/templates/saas/i18n/engine/resources/{workbenchParkedCodingQuestions.en.ts → organizationModelUsageCeilingState.en.ts} +75 -81
- package/templates/saas/i18n/engine/resources/{workbenchParkedCodingQuestions.fr.ts → organizationModelUsageCeilingState.fr.ts} +75 -81
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +35 -45
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -12
- package/templates/saas/i18n/engine/resources/{workbenchComplianceCandidateVariantSelections.en.ts → organizationPersonTokenCeilingState.en.ts} +70 -54
- package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +166 -0
- package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +9 -1
- package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +9 -1
- package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +27 -27
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +17 -2
- package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +17 -2
- package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +8 -2
- package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +8 -2
- package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +20 -28
- package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +1 -9
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +6 -6
- package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +6 -6
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +15 -15
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +4 -4
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +69 -69
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +169 -169
- package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +4 -4
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +19 -3
- package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +18 -2
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +9 -9
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizations.en.ts +45 -10
- package/templates/saas/i18n/engine/resources/organizations.fr.ts +45 -10
- package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +46 -46
- package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/{workbenchCreationHomeLines.en.ts → postCommitEffectOutbox.en.ts} +58 -75
- package/templates/saas/i18n/engine/resources/{workbenchCreationHomeLines.fr.ts → postCommitEffectOutbox.fr.ts} +58 -75
- package/templates/saas/i18n/engine/resources/prices.en.ts +10 -10
- package/templates/saas/i18n/engine/resources/prices.fr.ts +10 -10
- package/templates/saas/i18n/engine/resources/products.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/products.fr.ts +5 -5
- package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +345 -0
- package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +345 -0
- package/templates/saas/i18n/engine/resources/promotions.en.ts +10 -10
- package/templates/saas/i18n/engine/resources/promotions.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +19 -1
- package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +19 -1
- package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +334 -0
- package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +334 -0
- package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +24 -24
- package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +8 -2
- package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +8 -2
- package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +223 -2
- package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +223 -2
- package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/{workbenchBrandNameJurisdictions.en.ts → ssoDomainReservations.en.ts} +57 -44
- package/templates/saas/i18n/engine/resources/{workbenchMarketCategories.fr.ts → ssoDomainReservations.fr.ts} +52 -47
- package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +69 -0
- package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +69 -0
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/userBillingAccounts.en.ts +31 -31
- package/templates/saas/i18n/engine/resources/userBillingAccounts.fr.ts +31 -31
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +64 -0
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +64 -0
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +11 -28
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +0 -17
- package/templates/saas/i18n/engine/resources/userInvoiceRefs.en.ts +18 -5
- package/templates/saas/i18n/engine/resources/userInvoiceRefs.fr.ts +18 -5
- package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +5 -7
- package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +2 -4
- package/templates/saas/i18n/engine/resources/userPreferences.en.ts +15 -2
- package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +15 -2
- package/templates/saas/i18n/engine/resources/userProfiles.en.ts +15 -2
- package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +15 -2
- package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +11 -11
- package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +15 -4
- package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +15 -4
- package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +15 -4
- package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +15 -4
- package/templates/saas/i18n/engine/resources/userSubscriptions.en.ts +7 -2
- package/templates/saas/i18n/engine/resources/userSubscriptions.fr.ts +7 -2
- package/templates/saas/i18n/engine/resources/userUsageRecords.en.ts +25 -4
- package/templates/saas/i18n/engine/resources/userUsageRecords.fr.ts +25 -4
- package/templates/saas/i18n/engine/resources/user_self.en.ts +46 -5
- package/templates/saas/i18n/engine/resources/user_self.fr.ts +46 -5
- package/templates/saas/i18n/engine/resources/users.en.ts +23 -36
- package/templates/saas/i18n/engine/resources/users.fr.ts +23 -36
- package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__/landing.landing-hero.json.hbs +6 -0
- package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__.json.hbs +0 -5
- package/templates/saas/scenarios/add-locale/scenario.json +2 -2
- package/templates/saas/scenarios/add-marketing-page/files/website/src/i18n/en/__pageRef__.__pageRef__-hero.json.hbs +4 -0
- package/templates/saas/scenarios/add-marketing-page/scenario.json +3 -5
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/package.json.hbs +2 -2
- package/templates/saas/scenarios/add-resource/files/shared-lib/src/modules/__moduleId__/resources/__resourceDir__/__resourceDir__.schemas.ts.hbs +6 -0
- package/templates/saas/scenarios/add-resource/scenario.json +1 -1
- package/templates/saas/scenarios/add-technical-doc/files/patches/@docusaurus__utils@3.10.2.patch +77 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +15 -13
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/basic.conf +2 -3
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/location/cross-domain-fonts.conf.hbs +3 -5
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/sites-enabled/default.hbs +10 -19
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/package.json.hbs +1 -1
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/scripts/verify-api-reference-conservation.ts +1 -1
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/csp.config.ts +16 -3
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/documentation-site-locales.ts +29 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated/api-reference/indexes/api-reference-search.json +4 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated/consumer-documentation/indexes/search.json +4 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated/csp.generated.json.hbs +10 -2
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/search.tsx +29 -4
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +8 -5
- package/templates/saas/scenarios/add-technical-doc/scenario.json +7 -3
- package/templates/saas/scenarios/add-website/files/website/Dockerfile +2 -0
- package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -8
- package/templates/saas/scenarios/add-website/files/website/package.json.hbs +4 -4
- package/templates/saas/scenarios/add-website/files/website/src/csp.config.ts +10 -2
- package/templates/saas/scenarios/add-website/files/website/src/generated/csp.generated.json.hbs +10 -2
- package/templates/saas/scenarios/add-website/files/website/src/i18n/en/landing.landing-hero.json.hbs +6 -0
- package/templates/saas/scenarios/add-website/files/website/src/i18n/en.json.hbs +0 -5
- package/templates/saas/scenarios/add-website/scenario.json +4 -2
- package/templates/saas/scenarios/add-website-section/files/website/src/i18n/en/__pageRef__.__sectionRef__.json.hbs +10 -0
- package/templates/saas/scenarios/add-website-section/scenario.json +2 -16
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/package.json.hbs +3 -2
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/src/index.ts.hbs +2 -3
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Cargo.lock.hbs +2233 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Cargo.toml.hbs +12 -2
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Dockerfile.hbs +27 -9
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/README.md +96 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/main.rs.hbs +159 -156
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/response_integrity.rs +851 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/worker_request_keys.rs +404 -0
- package/templates/saas/scenarios/add-worker-rust/scenario.json +2 -2
- package/templates/saas/skeleton/.wildo-saas/dev-framework-scripts/sync-engine.sh +39 -7
- package/templates/saas/skeleton/backend-api/package.json.hbs +7 -2
- package/templates/saas/skeleton/backend-api/src/index.ts +7 -6
- package/templates/saas/skeleton/backend-api/src/saas-config.backend.ts.hbs +1 -3
- package/templates/saas/skeleton/backend-api/tsconfig.build.json +1 -1
- package/templates/saas/skeleton/frontend/package.json.hbs +6 -2
- package/templates/saas/skeleton/frontend/src/__tests__/setup.ts.hbs +18 -14
- package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +3 -1
- package/templates/saas/skeleton/frontend/src/csp.config.ts +10 -2
- package/templates/saas/skeleton/frontend/src/engine/component-registrations.frontend.ts +1 -1
- package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +10 -2
- package/templates/saas/skeleton/frontend/src/index.css.hbs +25 -18
- package/templates/saas/skeleton/frontend/src/modules-registry.frontend.ts.hbs +7 -2
- package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +20 -9
- package/templates/saas/skeleton/frontend/vite.config.ts.hbs +22 -3
- package/templates/saas/skeleton/gitignore +13 -0
- package/templates/saas/skeleton/shared-lib/package.json.hbs +6 -1
- package/templates/saas/skeleton/specifications/package.json.hbs +10 -1
- package/templates/saas/skeleton/tsconfig.common.json +6 -2
- package/wildo-framework.info.json +1 -1
- package/dist/src/services/application/provider-package-links.service.d.ts +0 -210
- package/dist/src/services/application/provider-package-links.service.d.ts.map +0 -1
- package/dist/src/services/application/provider-package-links.service.js +0 -421
- package/dist/src/services/application/provider-package-links.service.js.map +0 -1
- package/templates/infra/k8s/ingress/providers/scaleway-annotations.yaml.hbs +0 -39
- package/templates/saas/i18n/engine/resources/workbenchApplicationSecrets.en.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchApplicationSecrets.fr.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchAuthoredDocumentFactDeclarations.en.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchAuthoredDocumentFactDeclarations.fr.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchBrandAssets.en.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchBrandAssets.fr.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchBrandAudiences.en.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchBrandAudiences.fr.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchBrandLogoDirections.en.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBrandLogoDirections.fr.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBrandNameCandidates.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchBrandNameCandidates.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchBrandNameJurisdictions.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchBrandNameNiceClasses.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchBrandNameNiceClasses.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchBrandNames.en.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBrandNames.fr.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBrandVisualTones.en.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBrandVisualTones.fr.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatchPlan.en.ts +0 -278
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatchPlan.fr.ts +0 -278
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatches.en.ts +0 -238
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatches.fr.ts +0 -238
- package/templates/saas/i18n/engine/resources/workbenchBuildPlanTasks.en.ts +0 -515
- package/templates/saas/i18n/engine/resources/workbenchBuildPlanTasks.fr.ts +0 -515
- package/templates/saas/i18n/engine/resources/workbenchBuildTaskRecords.en.ts +0 -702
- package/templates/saas/i18n/engine/resources/workbenchBuildTaskRecords.fr.ts +0 -702
- package/templates/saas/i18n/engine/resources/workbenchBuildTasks.en.ts +0 -878
- package/templates/saas/i18n/engine/resources/workbenchBuildTasks.fr.ts +0 -878
- package/templates/saas/i18n/engine/resources/workbenchCodingLaneStatus.en.ts +0 -238
- package/templates/saas/i18n/engine/resources/workbenchCodingLaneStatus.fr.ts +0 -238
- package/templates/saas/i18n/engine/resources/workbenchComplianceApplicabilityDecisions.en.ts +0 -206
- package/templates/saas/i18n/engine/resources/workbenchComplianceApplicabilityDecisions.fr.ts +0 -206
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSections.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSections.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSetSections.en.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSetSections.fr.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateVariantSelections.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidates.en.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidates.fr.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceCoverageDecisions.en.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceCoverageDecisions.fr.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceDocumentationRequirements.en.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchComplianceDocumentationRequirements.fr.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchComplianceGaps.en.ts +0 -278
- package/templates/saas/i18n/engine/resources/workbenchComplianceGaps.fr.ts +0 -278
- package/templates/saas/i18n/engine/resources/workbenchComplianceImplementationDecisions.en.ts +0 -214
- package/templates/saas/i18n/engine/resources/workbenchComplianceImplementationDecisions.fr.ts +0 -214
- package/templates/saas/i18n/engine/resources/workbenchComplianceObligations.en.ts +0 -518
- package/templates/saas/i18n/engine/resources/workbenchComplianceObligations.fr.ts +0 -518
- package/templates/saas/i18n/engine/resources/workbenchComplianceResponsibilityAssignments.en.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceResponsibilityAssignments.fr.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceRoleAuthorities.en.ts +0 -326
- package/templates/saas/i18n/engine/resources/workbenchComplianceRoleAuthorities.fr.ts +0 -326
- package/templates/saas/i18n/engine/resources/workbenchComplianceScopeSelectors.en.ts +0 -326
- package/templates/saas/i18n/engine/resources/workbenchComplianceScopeSelectors.fr.ts +0 -326
- package/templates/saas/i18n/engine/resources/workbenchComplianceSharedResponsibilityRules.en.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceSharedResponsibilityRules.fr.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchCompositionDecisions.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchCompositionDecisions.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchCreationOutcomes.en.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchCreationOutcomes.fr.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchDocumentFactDeclarations.en.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchDocumentFactDeclarations.fr.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchDocumentPublicationVariants.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchDocumentPublicationVariants.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchDocumentReleases.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchDocumentReleases.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchDocumentationChapters.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchDocumentationChapters.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanLifecycles.en.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanLifecycles.fr.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanModules.en.ts +0 -358
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanModules.fr.ts +0 -358
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanRelationships.en.ts +0 -206
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanRelationships.fr.ts +0 -206
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanResources.en.ts +0 -430
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanResources.fr.ts +0 -430
- package/templates/saas/i18n/engine/resources/workbenchDomainResources.en.ts +0 -534
- package/templates/saas/i18n/engine/resources/workbenchDomainResources.fr.ts +0 -534
- package/templates/saas/i18n/engine/resources/workbenchDossierEntries.en.ts +0 -456
- package/templates/saas/i18n/engine/resources/workbenchDossierEntries.fr.ts +0 -456
- package/templates/saas/i18n/engine/resources/workbenchExperienceConfigurations.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchExperienceConfigurations.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchExperienceGuidance.en.ts +0 -486
- package/templates/saas/i18n/engine/resources/workbenchExperienceGuidance.fr.ts +0 -486
- package/templates/saas/i18n/engine/resources/workbenchExperienceHomes.en.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchExperienceHomes.fr.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchExperienceMilestones.en.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchExperienceMilestones.fr.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchExperienceViews.en.ts +0 -510
- package/templates/saas/i18n/engine/resources/workbenchExperienceViews.fr.ts +0 -510
- package/templates/saas/i18n/engine/resources/workbenchFeatureDrafts.en.ts +0 -390
- package/templates/saas/i18n/engine/resources/workbenchFeatureDrafts.fr.ts +0 -390
- package/templates/saas/i18n/engine/resources/workbenchFunctionalRequirements.en.ts +0 -574
- package/templates/saas/i18n/engine/resources/workbenchFunctionalRequirements.fr.ts +0 -574
- package/templates/saas/i18n/engine/resources/workbenchGovernanceDocuments.en.ts +0 -308
- package/templates/saas/i18n/engine/resources/workbenchGovernanceDocuments.fr.ts +0 -308
- package/templates/saas/i18n/engine/resources/workbenchGovernanceQuestions.en.ts +0 -230
- package/templates/saas/i18n/engine/resources/workbenchGovernanceQuestions.fr.ts +0 -230
- package/templates/saas/i18n/engine/resources/workbenchIntegrationInboundChannels.en.ts +0 -334
- package/templates/saas/i18n/engine/resources/workbenchIntegrationInboundChannels.fr.ts +0 -334
- package/templates/saas/i18n/engine/resources/workbenchIntegrationMinions.en.ts +0 -414
- package/templates/saas/i18n/engine/resources/workbenchIntegrationMinions.fr.ts +0 -414
- package/templates/saas/i18n/engine/resources/workbenchIntegrationProviderBindings.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchIntegrationProviderBindings.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchIntegrationWorkers.en.ts +0 -334
- package/templates/saas/i18n/engine/resources/workbenchIntegrationWorkers.fr.ts +0 -334
- package/templates/saas/i18n/engine/resources/workbenchMarketAlternatives.en.ts +0 -230
- package/templates/saas/i18n/engine/resources/workbenchMarketAlternatives.fr.ts +0 -222
- package/templates/saas/i18n/engine/resources/workbenchMarketBenefits.en.ts +0 -606
- package/templates/saas/i18n/engine/resources/workbenchMarketBenefits.fr.ts +0 -598
- package/templates/saas/i18n/engine/resources/workbenchMarketBuyingJourneys.en.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchMarketBuyingJourneys.fr.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchMarketCategories.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchMarketChannels.en.ts +0 -270
- package/templates/saas/i18n/engine/resources/workbenchMarketChannels.fr.ts +0 -262
- package/templates/saas/i18n/engine/resources/workbenchMarketGains.en.ts +0 -270
- package/templates/saas/i18n/engine/resources/workbenchMarketGains.fr.ts +0 -262
- package/templates/saas/i18n/engine/resources/workbenchMarketIcps.en.ts +0 -990
- package/templates/saas/i18n/engine/resources/workbenchMarketIcps.fr.ts +0 -990
- package/templates/saas/i18n/engine/resources/workbenchMarketJobs.en.ts +0 -350
- package/templates/saas/i18n/engine/resources/workbenchMarketJobs.fr.ts +0 -342
- package/templates/saas/i18n/engine/resources/workbenchMarketMessageTemplates.en.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchMarketMessageTemplates.fr.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchMarketObjections.en.ts +0 -422
- package/templates/saas/i18n/engine/resources/workbenchMarketObjections.fr.ts +0 -414
- package/templates/saas/i18n/engine/resources/workbenchMarketPains.en.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchMarketPains.fr.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchMarketPersonas.en.ts +0 -518
- package/templates/saas/i18n/engine/resources/workbenchMarketPersonas.fr.ts +0 -510
- package/templates/saas/i18n/engine/resources/workbenchMarketPositionings.en.ts +0 -342
- package/templates/saas/i18n/engine/resources/workbenchMarketPositionings.fr.ts +0 -334
- package/templates/saas/i18n/engine/resources/workbenchMarketProofs.en.ts +0 -366
- package/templates/saas/i18n/engine/resources/workbenchMarketProofs.fr.ts +0 -358
- package/templates/saas/i18n/engine/resources/workbenchMarketTonesOfVoice.en.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchMarketTonesOfVoice.fr.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchMarketTriggers.en.ts +0 -286
- package/templates/saas/i18n/engine/resources/workbenchMarketTriggers.fr.ts +0 -278
- package/templates/saas/i18n/engine/resources/workbenchNonFunctionalRequirements.en.ts +0 -574
- package/templates/saas/i18n/engine/resources/workbenchNonFunctionalRequirements.fr.ts +0 -574
- package/templates/saas/i18n/engine/resources/workbenchPlacementDecisions.en.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchPlacementDecisions.fr.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchPlacementGroups.en.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchPlacementGroups.fr.ts +0 -182
- package/templates/saas/i18n/engine/resources/workbenchPlaybookRuns.en.ts +0 -358
- package/templates/saas/i18n/engine/resources/workbenchPlaybookRuns.fr.ts +0 -358
- package/templates/saas/i18n/engine/resources/workbenchPlaybooks.en.ts +0 -1256
- package/templates/saas/i18n/engine/resources/workbenchPlaybooks.fr.ts +0 -1256
- package/templates/saas/i18n/engine/resources/workbenchPricingPlans.en.ts +0 -286
- package/templates/saas/i18n/engine/resources/workbenchPricingPlans.fr.ts +0 -286
- package/templates/saas/i18n/engine/resources/workbenchProcessorRegisterEntries.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchProcessorRegisterEntries.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchReleasePolicySelections.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchReleasePolicySelections.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchRequirementMaturities.en.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchRequirementMaturities.fr.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchRiskRegisterEntries.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchRiskRegisterEntries.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchRoadmapPhases.en.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchRoadmapPhases.fr.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchRunWriteRecords.en.ts +0 -599
- package/templates/saas/i18n/engine/resources/workbenchRunWriteRecords.fr.ts +0 -599
- package/templates/saas/i18n/engine/resources/workbenchSpecificationArtifacts.en.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchSpecificationArtifacts.fr.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchTraceSessions.en.ts +0 -394
- package/templates/saas/i18n/engine/resources/workbenchTraceSessions.fr.ts +0 -394
- package/templates/saas/i18n/engine/resources/workbenchVisionConstraints.en.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchVisionConstraints.fr.ts +0 -182
- package/templates/saas/i18n/engine/resources/workbenchVisionIdeas.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchVisionIdeas.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchVisionMissions.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchVisionMissions.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchVisionProblems.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchVisionProblems.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchVisionSuccessCriteria.en.ts +0 -390
- package/templates/saas/i18n/engine/resources/workbenchVisionSuccessCriteria.fr.ts +0 -390
- package/templates/saas/i18n/engine/resources/workbenchWaitingPlaybookRuns.en.ts +0 -214
- package/templates/saas/i18n/engine/resources/workbenchWaitingPlaybookRuns.fr.ts +0 -214
- package/templates/saas/i18n/engine/resources/workbenchWebsitePages.en.ts +0 -214
- package/templates/saas/i18n/engine/resources/workbenchWebsitePages.fr.ts +0 -214
- /package/templates/saas/i18n/email/resources/organizationMembers/{update.organization-users → update.organization-user-management}/labels.en.ts +0 -0
- /package/templates/saas/i18n/email/resources/organizationMembers/{update.organization-users → update.organization-user-management}/labels.fr.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint-line.service.js","sourceRoot":"","sources":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qB,CAAC;QAClH,MAAM,IAAI,KAAK,CAAC,cAAc,EAAE,CAAC,EAAE,cAAc,KAAK,CAAC,QAAQ,CAAC,IAAI,oEAAoE,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC;IAChK,CAAC;IACD,MAAM,QAAQ,GAAG,6BAA6B,CAAC,yBAAyB,CAAC,WAAW,CAAC,CAAC;IACtF,IAAI,QAAQ,KAAK,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,4CAA4C,yBAAyB,CAAC,WAAW,0CAA0C,CAAC,CAAC;IACpK,MAAM,sBAAsB,CAAC;QAC3B,yBAAyB,EAAE,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,gCAAgC,CAAC;QACxF,cAAc,EAAE,oCAAoC;QACpD,QAAQ,EAAE,0BAA0B,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAC7D,OAAO;QACP,WAAW,EAAE,yBAAyB,CAAC,WAAW;QAClD,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI;QAC1B,aAAa,EAAE,sBAAsB,CAAC,EAAE,CAAC;QACzC,UAAU,EAAE,KAAK,CAAC,UAAU;KAC7B,CAAC,CAAC;IACH,OAAO,oBAAoB,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;AACnD,CAAC","sourcesContent":["/**\n * A blueprint's APPLICATION LINE (#2863): the kind of application it makes, carried from the defining application to\n * every application `wildo init` creates from it.\n *\n * ## Where the line lives, and why nowhere else\n *\n * An application's line is its dossier's answer to the entry playbook's line question\n * (`APPLICATION_LINE_QUESTION`); `resolveApplicationLineDeclaration` reads it from there and nothing else does. So a\n * blueprint does not invent a second record. `wildo blueprint pack` reads the DEFINING application's answer (the\n * definition only selects it, `include.line`), the manifest carries the value, and `wildo init` writes it as the new\n * application's answer through the same landing the interview uses (`landCreatorInputAnswer`), which validates it\n * against the question and wires the dossier into `companion-exports.ts`. Every reader of the line (the active set,\n * the eligibility board, the dossier listing, the run gate, the foundation executor) then sees an answered question and\n * asks nothing. The scaffold record already names the blueprints applied, which is the provenance; a copy of the line\n * there would disagree the first time the creator answers the question again.\n *\n * ## Why the vocabulary is checked here\n *\n * `ApplicationLine` belongs to `@wildo-ai/saas-specifications`, beside the line definitions. The manifest schema lives\n * in `@wildo-ai/platform-config-lib`, which sits below that package and cannot import it, so it types the line as a\n * string. This CLI depends on both, so it checks the value whenever it reads or writes one.\n */\n\nimport { existsSync, readFileSync } from 'node:fs';\nimport { join } from 'node:path';\nimport ts from 'typescript';\nimport {\n getFamilyPackageRelativePath,\n LANDED_SPECIFICATION_CONSTANT_PREFIX,\n landCreatorInputAnswer,\n} from '@wildo-ai/application-creation-runtime';\nimport { getFrameworkKnowledgePlaybook } from '@wildo-ai/framework-knowledge';\nimport {\n APPLICATION_LINE_QUESTION,\n ApplicationCreatorInputsSchema,\n ApplicationLine,\n ApplicationLineDeclarationState,\n ApplicationSpecificationFamily,\n MetaWorkflowPlaybookSchema,\n resolveApplicationLineDeclaration,\n type ApplicationCreatorInputs,\n} from '@wildo-ai/saas-specifications/application-creation';\nimport type { LoadedBlueprintArtifact } from './blueprint-artifact.service';\n\n/** The specifications package of an application built on the skeleton: where the base puts it, and where a blueprint's files assume it. */\nconst SPECIFICATIONS_PACKAGE_DIRECTORY = 'specifications';\n\nconst APPLICATION_LINE_VALUES: ReadonlySet<string> = new Set(Object.values(ApplicationLine));\n\n/** The `answeredByRef` of a line a blueprint answered: which blueprint, at which version, decided it. */\nexport function blueprintLineAnswerRef(layer: Pick<LoadedBlueprintArtifact['manifest'], 'id' | 'version'>): string {\n return `blueprint:${layer.id}@${layer.version}`;\n}\n\n/** A manifest's line as the vocabulary member, refusing a value that is not one. */\nexport function assertBlueprintLine(value: string, where: string): ApplicationLine {\n if (!APPLICATION_LINE_VALUES.has(value)) {\n throw new Error(`${where} names the application line '${value}', which is not one (${[...APPLICATION_LINE_VALUES].join(', ')}).`);\n }\n return value as ApplicationLine;\n}\n\n/** A line, and the blueprint (by id and version) that makes it: what recording its answer needs. */\nexport interface BlueprintLineDeclaration {\n readonly line: ApplicationLine;\n readonly declaredBy: { readonly manifest: Pick<LoadedBlueprintArtifact['manifest'], 'id' | 'version'> };\n}\n\n/** The line a stack of layers makes, and the lowest layer that names it. */\nexport interface ResolvedBlueprintLine extends BlueprintLineDeclaration {\n readonly declaredBy: LoadedBlueprintArtifact;\n}\n\n/**\n * The line a stack of layers makes, or `undefined` when no layer names one. A stack makes ONE kind of application: an\n * upper layer may leave the line to the layers below it or repeat it, and is refused when it names a different one,\n * because the second answer would silently replace the first one's whole set of playbooks.\n */\nexport function resolveBlueprintLine(layers: readonly LoadedBlueprintArtifact[]): ResolvedBlueprintLine | undefined {\n let resolved: ResolvedBlueprintLine | undefined;\n for (const layer of layers) {\n if (layer.manifest.line === undefined) continue;\n const line = assertBlueprintLine(layer.manifest.line, `Blueprint '${layer.manifest.id}'`);\n if (resolved === undefined) {\n resolved = { line, declaredBy: layer };\n continue;\n }\n if (resolved.line !== line) {\n throw new Error(\n `Blueprint '${layer.manifest.id}' makes a '${line}' application and '${resolved.declaredBy.manifest.id}', below it, makes a '${resolved.line}' one: `\n + 'an application has one line, so a stack may name at most one.',\n );\n }\n }\n return resolved;\n}\n\n/** Where the dossier lands, relative to the application root (POSIX-separated, as the residual lists paths). */\nexport function creatorInputsAppRelativePath(): string {\n const relativePath = getFamilyPackageRelativePath(ApplicationSpecificationFamily.CREATOR_INPUTS);\n if (relativePath === undefined) throw new Error('The creator-inputs family has no landing placement; the dossier cannot be located.');\n return `${SPECIFICATIONS_PACKAGE_DIRECTORY}/${relativePath}`;\n}\n\ntype DossierLiteral = string | number | boolean | null | readonly DossierLiteral[] | { readonly [key: string]: DossierLiteral };\n\n/**\n * Evaluate the dossier's argument as DATA: string, number, boolean and null literals, arrays and object literals with\n * plain keys. Anything else (a spread, a reference, a call) refuses. Formatting does not matter, so a dossier an editor\n * reformatted (unquoted keys, trailing commas) reads exactly like the one the landing wrote.\n */\nfunction evaluateDossierLiteral(sourceFile: ts.SourceFile, node: ts.Expression): DossierLiteral {\n let expression = node;\n while (ts.isParenthesizedExpression(expression) || ts.isAsExpression(expression) || ts.isSatisfiesExpression(expression)) expression = expression.expression;\n if (ts.isStringLiteral(expression) || ts.isNoSubstitutionTemplateLiteral(expression)) return expression.text;\n if (ts.isNumericLiteral(expression)) return Number(expression.text);\n if (expression.kind === ts.SyntaxKind.TrueKeyword) return true;\n if (expression.kind === ts.SyntaxKind.FalseKeyword) return false;\n if (expression.kind === ts.SyntaxKind.NullKeyword) return null;\n if (ts.isArrayLiteralExpression(expression)) {\n return expression.elements.map((element) => {\n if (ts.isSpreadElement(element) || ts.isOmittedExpression(element)) throw new Error(`a spread or a hole at ${describeDossierPosition(sourceFile, element)}`);\n return evaluateDossierLiteral(sourceFile, element);\n });\n }\n if (ts.isObjectLiteralExpression(expression)) {\n const result: Record<string, DossierLiteral> = {};\n for (const property of expression.properties) {\n if (!ts.isPropertyAssignment(property)) throw new Error(`a spread, a shorthand or a method at ${describeDossierPosition(sourceFile, property)}`);\n const name = property.name;\n if (!ts.isIdentifier(name) && !ts.isStringLiteral(name) && !ts.isNumericLiteral(name)) throw new Error(`a computed key at ${describeDossierPosition(sourceFile, name)}`);\n result[name.text] = evaluateDossierLiteral(sourceFile, property.initializer);\n }\n return result;\n }\n throw new Error(`the expression \\`${expression.getText(sourceFile).slice(0, 60)}\\` at ${describeDossierPosition(sourceFile, expression)}`);\n}\n\nfunction describeDossierPosition(sourceFile: ts.SourceFile, node: ts.Node): string {\n return `line ${sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile)).line + 1}`;\n}\n\n/**\n * Read an application's dossier off disk WITHOUT executing it, or `undefined` when it has none.\n *\n * The landing writes the dossier as `export const … = ApplicationCreatorInputsSchema.parse(<object>);`, so the value is\n * that call's argument, evaluated as data and validated, never run. A dossier in any other form is refused, naming\n * the file: the exporter reads defining applications it must not execute, and init must not replace a dossier it\n * could not read.\n */\nexport function readApplicationCreatorInputsFile(applicationRoot: string): ApplicationCreatorInputs | undefined {\n const filePath = join(applicationRoot, creatorInputsAppRelativePath());\n if (!existsSync(filePath)) return undefined;\n const sourceFile = ts.createSourceFile(filePath, readFileSync(filePath, 'utf8'), ts.ScriptTarget.Latest, true);\n const parseCalls: ts.CallExpression[] = [];\n const visit = (node: ts.Node): void => {\n if (ts.isCallExpression(node) && ts.isPropertyAccessExpression(node.expression) && node.expression.name.text === 'parse'\n && node.expression.expression.getText(sourceFile) === 'ApplicationCreatorInputsSchema') {\n parseCalls.push(node);\n }\n ts.forEachChild(node, visit);\n };\n visit(sourceFile);\n const argument = parseCalls.length === 1 ? parseCalls[0]!.arguments[0] : undefined;\n let raw: DossierLiteral;\n try {\n if (argument === undefined) throw new Error('no single `ApplicationCreatorInputsSchema.parse(…)` call');\n raw = evaluateDossierLiteral(sourceFile, argument);\n } catch (error) {\n throw new Error(\n `${filePath} is not in the form the dossier landing writes (\\`ApplicationCreatorInputsSchema.parse(<object literal>)\\`): `\n + `it holds ${error instanceof Error ? error.message : String(error)}. It is read as data and never executed.`,\n );\n }\n const parsed = ApplicationCreatorInputsSchema.safeParse(raw);\n if (!parsed.success) {\n throw new Error(`${filePath} does not satisfy the dossier schema: ${parsed.error.issues.map((issue) => `${issue.path.join('.') || '(root)'}: ${issue.message}`).join('; ')}`);\n }\n return parsed.data;\n}\n\n/**\n * The line the DEFINING application declares, for `wildo blueprint pack`. Refuses when it declares none, or one the\n * vocabulary no longer holds: a blueprint that selects the line carries a real one or is not packed.\n */\nexport function readDefiningApplicationLine(applicationRoot: string): ApplicationLine {\n const declaration = resolveApplicationLineDeclaration(readApplicationCreatorInputsFile(applicationRoot));\n if (declaration.state === ApplicationLineDeclarationState.DECLARED) return declaration.line;\n if (declaration.state === ApplicationLineDeclarationState.UNRECOGNIZED) {\n throw new Error(`The blueprint carries the application line, and this application's dossier answers the line question with '${declaration.value}', which is not a line.`);\n }\n throw new Error(\n 'The blueprint carries the application line (`include.line`), and this application has not declared one: its dossier does not answer '\n + `${APPLICATION_LINE_QUESTION.playbookRef}#${APPLICATION_LINE_QUESTION.questionRef}. Answer it (\\`wildo creation answer\\`), or stop selecting the line.`,\n );\n}\n\n/**\n * Record the line a blueprint makes as the new application's answer to the line question, so the question is never\n * asked. Written through the interview's own landing: the value is checked against the question's options, the dossier\n * file is written and `companion-exports.ts` exports it. Not committed here; the caller's layer commit carries it.\n *\n * Leaves a dossier that already answers with the same line alone, and refuses one that answers with another: a\n * blueprint's files that carried a dossier would otherwise be overruled without anyone seeing it.\n */\nexport async function recordBlueprintLineAnswer(input: {\n readonly applicationRoot: string;\n readonly resolved: BlueprintLineDeclaration;\n /** ISO instant; supplied by the caller so the write is a function of its inputs. */\n readonly answeredAt: string;\n}): Promise<string> {\n const current = readApplicationCreatorInputsFile(input.applicationRoot);\n const declaration = resolveApplicationLineDeclaration(current);\n const by = input.resolved.declaredBy.manifest;\n if (declaration.state === ApplicationLineDeclarationState.DECLARED) {\n if (declaration.line === input.resolved.line) return `application line ${input.resolved.line} (already declared)`;\n throw new Error(`Blueprint '${by.id}' makes a '${input.resolved.line}' application, and the dossier its layers wrote already answers '${declaration.line}'.`);\n }\n const hydrated = getFrameworkKnowledgePlaybook(APPLICATION_LINE_QUESTION.playbookRef);\n if (hydrated === null) throw new Error(`The installed framework knowledge has no ${APPLICATION_LINE_QUESTION.playbookRef} playbook, which asks the line question.`);\n await landCreatorInputAnswer({\n specificationsPackageRoot: join(input.applicationRoot, SPECIFICATIONS_PACKAGE_DIRECTORY),\n constantPrefix: LANDED_SPECIFICATION_CONSTANT_PREFIX,\n playbook: MetaWorkflowPlaybookSchema.parse(hydrated.playbook),\n current,\n questionRef: APPLICATION_LINE_QUESTION.questionRef,\n value: input.resolved.line,\n answeredByRef: blueprintLineAnswerRef(by),\n answeredAt: input.answeredAt,\n });\n return `application line ${input.resolved.line}`;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"blueprint-line.service.js","sourceRoot":"","sources":["../../../../src/services/bl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,MAAM,IAAI,KAAK,CAAC,cAAc,EAAE,CAAC,EAAE,cAAc,KAAK,CAAC,QAAQ,CAAC,IAAI,oEAAoE,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC;IAChK,CAAC;IACD,MAAM,QAAQ,GAAG,6BAA6B,CAAC,yBAAyB,CAAC,WAAW,CAAC,CAAC;IACtF,IAAI,QAAQ,KAAK,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,4CAA4C,yBAAyB,CAAC,WAAW,0CAA0C,CAAC,CAAC;IACpK,MAAM,sBAAsB,CAAC;QAC3B,4GAA4G;QAC5G,IAAI,EAAE,0BAA0B,CAAC,OAAO,CAAC;QACzC,yBAAyB,EAAE,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,gCAAgC,CAAC;QACxF,cAAc,EAAE,oCAAoC;QACpD,QAAQ,EAAE,0BAA0B,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAC7D,WAAW,EAAE,yBAAyB,CAAC,WAAW;QAClD,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI;QAC1B,aAAa,EAAE,sBAAsB,CAAC,EAAE,CAAC;QACzC,UAAU,EAAE,KAAK,CAAC,UAAU;KAC7B,CAAC,CAAC;IACH,OAAO,oBAAoB,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;AACnD,CAAC","sourcesContent":["/**\n * A blueprint's APPLICATION LINE (#2863): the kind of application it makes, carried from the defining application to\n * every application `wildo init` creates from it.\n *\n * ## Where the line lives, and why nowhere else\n *\n * An application's line is its dossier's answer to the entry playbook's line question\n * (`APPLICATION_LINE_QUESTION`); `resolveApplicationLineDeclaration` reads it from there and nothing else does. So a\n * blueprint does not invent a second record. `wildo blueprint pack` reads the DEFINING application's answer (the\n * definition only selects it, `include.line`), the manifest carries the value, and `wildo init` writes it as the new\n * application's answer through the same landing the interview uses (`landCreatorInputAnswer`), which validates it\n * against the question and wires the dossier into `companion-exports.ts`. Every reader of the line (the active set,\n * the eligibility board, the dossier listing, the run gate, the foundation executor) then sees an answered question and\n * asks nothing. The scaffold record already names the blueprints applied, which is the provenance; a copy of the line\n * there would disagree the first time the creator answers the question again.\n *\n * ## Why the vocabulary is checked here\n *\n * `ApplicationLine` belongs to `@wildo-ai/saas-specifications`, beside the line definitions. The manifest schema lives\n * in `@wildo-ai/platform-config-lib`, which sits below that package and cannot import it, so it types the line as a\n * string. This CLI depends on both, so it checks the value whenever it reads or writes one.\n */\n\nimport { existsSync, readFileSync } from 'node:fs';\nimport { join } from 'node:path';\nimport ts from 'typescript';\nimport {\n getFamilyPackageRelativePath,\n LANDED_SPECIFICATION_CONSTANT_PREFIX,\n landCreatorInputAnswer,\n specificationReadOfTheFile,\n} from '@wildo-ai/application-creation-runtime';\nimport { getFrameworkKnowledgePlaybook } from '@wildo-ai/framework-knowledge';\nimport {\n APPLICATION_LINE_QUESTION,\n ApplicationCreatorInputsSchema,\n ApplicationLine,\n ApplicationLineDeclarationState,\n ApplicationSpecificationFamily,\n MetaWorkflowPlaybookSchema,\n resolveApplicationLineDeclaration,\n type ApplicationCreatorInputs,\n} from '@wildo-ai/saas-specifications/application-creation';\nimport type { LoadedBlueprintArtifact } from './blueprint-artifact.service';\nimport { describeCaughtError } from '@wildo-ai/saas-models';\n\n/** The specifications package of an application built on the skeleton: where the base puts it, and where a blueprint's files assume it. */\nconst SPECIFICATIONS_PACKAGE_DIRECTORY = 'specifications';\n\nconst APPLICATION_LINE_VALUES: ReadonlySet<string> = new Set(Object.values(ApplicationLine));\n\n/** The `answeredByRef` of a line a blueprint answered: which blueprint, at which version, decided it. */\nexport function blueprintLineAnswerRef(layer: Pick<LoadedBlueprintArtifact['manifest'], 'id' | 'version'>): string {\n return `blueprint:${layer.id}@${layer.version}`;\n}\n\n/** A manifest's line as the vocabulary member, refusing a value that is not one. */\nexport function assertBlueprintLine(value: string, where: string): ApplicationLine {\n if (!APPLICATION_LINE_VALUES.has(value)) {\n throw new Error(`${where} names the application line '${value}', which is not one (${[...APPLICATION_LINE_VALUES].join(', ')}).`);\n }\n return value as ApplicationLine;\n}\n\n/** A line, and the blueprint (by id and version) that makes it: what recording its answer needs. */\nexport interface BlueprintLineDeclaration {\n readonly line: ApplicationLine;\n readonly declaredBy: { readonly manifest: Pick<LoadedBlueprintArtifact['manifest'], 'id' | 'version'> };\n}\n\n/** The line a stack of layers makes, and the lowest layer that names it. */\nexport interface ResolvedBlueprintLine extends BlueprintLineDeclaration {\n readonly declaredBy: LoadedBlueprintArtifact;\n}\n\n/**\n * The line a stack of layers makes, or `undefined` when no layer names one. A stack makes ONE kind of application: an\n * upper layer may leave the line to the layers below it or repeat it, and is refused when it names a different one,\n * because the second answer would silently replace the first one's whole set of playbooks.\n */\nexport function resolveBlueprintLine(layers: readonly LoadedBlueprintArtifact[]): ResolvedBlueprintLine | undefined {\n let resolved: ResolvedBlueprintLine | undefined;\n for (const layer of layers) {\n if (layer.manifest.line === undefined) continue;\n const line = assertBlueprintLine(layer.manifest.line, `Blueprint '${layer.manifest.id}'`);\n if (resolved === undefined) {\n resolved = { line, declaredBy: layer };\n continue;\n }\n if (resolved.line !== line) {\n throw new Error(\n `Blueprint '${layer.manifest.id}' makes a '${line}' application and '${resolved.declaredBy.manifest.id}', below it, makes a '${resolved.line}' one: `\n + 'an application has one line, so a stack may name at most one.',\n );\n }\n }\n return resolved;\n}\n\n/** Where the dossier lands, relative to the application root (POSIX-separated, as the residual lists paths). */\nexport function creatorInputsAppRelativePath(): string {\n const relativePath = getFamilyPackageRelativePath(ApplicationSpecificationFamily.CREATOR_INPUTS);\n if (relativePath === undefined) throw new Error('The creator-inputs family has no landing placement; the dossier cannot be located.');\n return `${SPECIFICATIONS_PACKAGE_DIRECTORY}/${relativePath}`;\n}\n\ntype DossierLiteral = string | number | boolean | null | readonly DossierLiteral[] | { readonly [key: string]: DossierLiteral };\n\n/**\n * Evaluate the dossier's argument as DATA: string, number, boolean and null literals, arrays and object literals with\n * plain keys. Anything else (a spread, a reference, a call) refuses. Formatting does not matter, so a dossier an editor\n * reformatted (unquoted keys, trailing commas) reads exactly like the one the landing wrote.\n */\nfunction evaluateDossierLiteral(sourceFile: ts.SourceFile, node: ts.Expression): DossierLiteral {\n let expression = node;\n while (ts.isParenthesizedExpression(expression) || ts.isAsExpression(expression) || ts.isSatisfiesExpression(expression)) expression = expression.expression;\n if (ts.isStringLiteral(expression) || ts.isNoSubstitutionTemplateLiteral(expression)) return expression.text;\n if (ts.isNumericLiteral(expression)) return Number(expression.text);\n if (expression.kind === ts.SyntaxKind.TrueKeyword) return true;\n if (expression.kind === ts.SyntaxKind.FalseKeyword) return false;\n if (expression.kind === ts.SyntaxKind.NullKeyword) return null;\n if (ts.isArrayLiteralExpression(expression)) {\n return expression.elements.map((element) => {\n if (ts.isSpreadElement(element) || ts.isOmittedExpression(element)) throw new Error(`a spread or a hole at ${describeDossierPosition(sourceFile, element)}`);\n return evaluateDossierLiteral(sourceFile, element);\n });\n }\n if (ts.isObjectLiteralExpression(expression)) {\n const result: Record<string, DossierLiteral> = {};\n for (const property of expression.properties) {\n if (!ts.isPropertyAssignment(property)) throw new Error(`a spread, a shorthand or a method at ${describeDossierPosition(sourceFile, property)}`);\n const name = property.name;\n if (!ts.isIdentifier(name) && !ts.isStringLiteral(name) && !ts.isNumericLiteral(name)) throw new Error(`a computed key at ${describeDossierPosition(sourceFile, name)}`);\n result[name.text] = evaluateDossierLiteral(sourceFile, property.initializer);\n }\n return result;\n }\n throw new Error(`the expression \\`${expression.getText(sourceFile).slice(0, 60)}\\` at ${describeDossierPosition(sourceFile, expression)}`);\n}\n\nfunction describeDossierPosition(sourceFile: ts.SourceFile, node: ts.Node): string {\n return `line ${sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile)).line + 1}`;\n}\n\n/**\n * Read an application's dossier off disk WITHOUT executing it, or `undefined` when it has none.\n *\n * The landing writes the dossier as `export const … = ApplicationCreatorInputsSchema.parse(<object>);`, so the value is\n * that call's argument, evaluated as data and validated, never run. A dossier in any other form is refused, naming\n * the file: the exporter reads defining applications it must not execute, and init must not replace a dossier it\n * could not read.\n */\nexport function readApplicationCreatorInputsFile(applicationRoot: string): ApplicationCreatorInputs | undefined {\n const filePath = join(applicationRoot, creatorInputsAppRelativePath());\n if (!existsSync(filePath)) return undefined;\n const sourceFile = ts.createSourceFile(filePath, readFileSync(filePath, 'utf8'), ts.ScriptTarget.Latest, true);\n const parseCalls: ts.CallExpression[] = [];\n const visit = (node: ts.Node): void => {\n if (ts.isCallExpression(node) && ts.isPropertyAccessExpression(node.expression) && node.expression.name.text === 'parse'\n && node.expression.expression.getText(sourceFile) === 'ApplicationCreatorInputsSchema') {\n parseCalls.push(node);\n }\n ts.forEachChild(node, visit);\n };\n visit(sourceFile);\n const argument = parseCalls.length === 1 ? parseCalls[0]!.arguments[0] : undefined;\n let raw: DossierLiteral;\n try {\n if (argument === undefined) throw new Error('no single `ApplicationCreatorInputsSchema.parse(…)` call');\n raw = evaluateDossierLiteral(sourceFile, argument);\n } catch (error) {\n throw new Error(\n `${filePath} is not in the form the dossier landing writes (\\`ApplicationCreatorInputsSchema.parse(<object literal>)\\`): `\n + `it holds ${describeCaughtError(error)}. It is read as data and never executed.`,\n );\n }\n const parsed = ApplicationCreatorInputsSchema.safeParse(raw);\n if (!parsed.success) {\n throw new Error(`${filePath} does not satisfy the dossier schema: ${parsed.error.issues.map((issue) => `${issue.path.join('.') || '(root)'}: ${issue.message}`).join('; ')}`);\n }\n return parsed.data;\n}\n\n/**\n * The line the DEFINING application declares, for `wildo blueprint pack`. Refuses when it declares none, or one the\n * vocabulary no longer holds: a blueprint that selects the line carries a real one or is not packed.\n */\nexport function readDefiningApplicationLine(applicationRoot: string): ApplicationLine {\n const declaration = resolveApplicationLineDeclaration(readApplicationCreatorInputsFile(applicationRoot));\n if (declaration.state === ApplicationLineDeclarationState.DECLARED) return declaration.line;\n if (declaration.state === ApplicationLineDeclarationState.UNRECOGNIZED) {\n throw new Error(`The blueprint carries the application line, and this application's dossier answers the line question with '${declaration.value}', which is not a line.`);\n }\n throw new Error(\n 'The blueprint carries the application line (`include.line`), and this application has not declared one: its dossier does not answer '\n + `${APPLICATION_LINE_QUESTION.playbookRef}#${APPLICATION_LINE_QUESTION.questionRef}. Answer it (\\`wildo creation answer\\`), or stop selecting the line.`,\n );\n}\n\n/**\n * Record the line a blueprint makes as the new application's answer to the line question, so the question is never\n * asked. Written through the interview's own landing: the value is checked against the question's options, the dossier\n * file is written and `companion-exports.ts` exports it. Not committed here; the caller's layer commit carries it.\n *\n * Leaves a dossier that already answers with the same line alone, and refuses one that answers with another: a\n * blueprint's files that carried a dossier would otherwise be overruled without anyone seeing it.\n */\nexport async function recordBlueprintLineAnswer(input: {\n readonly applicationRoot: string;\n readonly resolved: BlueprintLineDeclaration;\n /** ISO instant; supplied by the caller so the write is a function of its inputs. */\n readonly answeredAt: string;\n}): Promise<string> {\n const current = readApplicationCreatorInputsFile(input.applicationRoot);\n const declaration = resolveApplicationLineDeclaration(current);\n const by = input.resolved.declaredBy.manifest;\n if (declaration.state === ApplicationLineDeclarationState.DECLARED) {\n if (declaration.line === input.resolved.line) return `application line ${input.resolved.line} (already declared)`;\n throw new Error(`Blueprint '${by.id}' makes a '${input.resolved.line}' application, and the dossier its layers wrote already answers '${declaration.line}'.`);\n }\n const hydrated = getFrameworkKnowledgePlaybook(APPLICATION_LINE_QUESTION.playbookRef);\n if (hydrated === null) throw new Error(`The installed framework knowledge has no ${APPLICATION_LINE_QUESTION.playbookRef} playbook, which asks the line question.`);\n await landCreatorInputAnswer({\n // `current` was read from the file itself, as data, by a reader that refuses anything it cannot read whole.\n read: specificationReadOfTheFile(current),\n specificationsPackageRoot: join(input.applicationRoot, SPECIFICATIONS_PACKAGE_DIRECTORY),\n constantPrefix: LANDED_SPECIFICATION_CONSTANT_PREFIX,\n playbook: MetaWorkflowPlaybookSchema.parse(hydrated.playbook),\n questionRef: APPLICATION_LINE_QUESTION.questionRef,\n value: input.resolved.line,\n answeredByRef: blueprintLineAnswerRef(by),\n answeredAt: input.answeredAt,\n });\n return `application line ${input.resolved.line}`;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint-module-references.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"blueprint-module-references.service.d.ts","sourceRoot":"","sources":["../../../../src/services/blueprint/blueprint-module-references.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAKH,OAAO,EAIL,KAAK,wBAAwB,EAE9B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAM9D,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAO5E,+IAA+I;AAC/I,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,UAAU,EAAE,SAAS,wBAAwB,EAAE,CAAC;IACzD,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACzC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AASD;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,aAAa,CAAC;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,IAAI,CAOjI;AAED;;;;;GAKG;AACH,wBAAsB,+BAA+B,CAAC,eAAe,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,uBAAuB,CAAC,CA4B7I;AAED,4FAA4F;AAC5F,wBAAsB,sBAAsB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAM1G;AAqCD;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAAC,KAAK,EAAE;IACpD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,SAAS,EAAE,wBAAwB,CAAC;CAC9C,GAAG,OAAO,CAAC,IAAI,CAAC,CAchB;AAID;;;;;;;;;GASG;AACH,wBAAsB,gCAAgC,CACpD,GAAG,EAAE,cAAc,EACnB,MAAM,EAAE,SAAS,uBAAuB,EAAE,EAC1C,KAAK,EAAE;IAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GACpD,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAU9C;AAED,6HAA6H;AAC7H,wBAAsB,gCAAgC,CAAC,KAAK,EAAE;IAC5D,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,uBAAuB,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACvD,QAAQ,CAAC,GAAG,CAAC,EAAE,gBAAgB,CAAC;CACjC,GAAG,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAe7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint-module-references.service.js","sourceRoot":"","sources":["../../../../../../src/services/blueprint/blueprint-module-references.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,O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CAAC;IAC3B,KAAK,MAAM,SAAS,IAAI,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC;QAC9D,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACxD,IAAI,QAAQ,KAAK,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,cAAc,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,gBAAgB,SAAS,CAAC,QAAQ,0BAA0B,CAAC,CAAC;QAC/I,MAAM,OAAO,GAAG,MAAM,qBAAqB,CAAC;YAC1C,QAAQ,EAAE,KAAK,CAAC,eAAe;YAC/B,aAAa,EAAE,KAAK,CAAC,aAAa;YAClC,QAAQ;YACR,KAAK,EAAE,KAAK;YACZ,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,eAAe;SAClC,CAAC,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,mBAAmB,SAAS,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["/**\n * Registry modules a blueprint REFERENCES (#2879), on both sides of a blueprint.\n *\n * A module the defining application installed from the module registry is never copied into a blueprint: its files\n * are recorded in that application's lockfile with their install hashes, and `wildo registry update` / `remove` act on\n * them. A copy would carry the files without the record, and the new application would hold a module it does not know\n * it installed. So a blueprint carries `{ domain, moduleId, range }`, and `wildo init` installs the module through the\n * same pipeline as `wildo registry add` (`module-install.service.ts`), which writes the same lockfile entry.\n *\n * - PACK (`deriveBlueprintModuleReferences`): one reference per module the definition names, from the defining\n * application's lockfile; the range is the one it asked for, and its held version must satisfy it.\n * - PROOF (`installHeldModuleVersion`): the reference tree an export is proven against installs the version the\n * defining application HOLDS — from its own staged artifact when its digest still matches, otherwise from the\n * registry at that exact version, or from the framework checkout for a checkout-served module — so the tree is the\n * defining application's, module for module, and the residual compares like with like.\n * - INIT (`acquireBlueprintModuleReferences`, `installBlueprintModuleReferences`): every reference is resolved and\n * fetched ONCE, before anything is written, so a reference that does not resolve refuses in an untouched directory;\n * the same fetched bytes are then installed into the rehearsal and into the application, layer by layer, before each\n * layer's own content (which may import them).\n */\n\nimport { createHash } from 'node:crypto';\nimport { existsSync, readFileSync } from 'node:fs';\nimport semver from 'semver';\nimport {\n assertRegistryTransportIsSafe,\n DEFAULT_REGISTRY_ID,\n ModuleDistribution,\n type BlueprintModuleReference,\n type RegistryModulesLockEntry,\n} from '@wildo-ai/platform-config-lib';\nimport { RegistryLockfileService, RegistryServerClient } from '@wildo-ai/wildo-module-client';\nimport type { CommandContext } from '~wildo-cli/kernel/types';\nimport { RegistryCredentialsService } from '~wildo-cli/services/registry/registry-credentials.service';\nimport { moduleArtifactPaths } from '~wildo-cli/services/registry/module-artifact-files.utils';\nimport { loadModuleRegistries } from '~wildo-cli/services/registry/registry-command.utils';\nimport { resolveLocalCheckoutModule } from '~wildo-cli/services/registry/local-checkout-module-source.service';\nimport type { ModuleAcquisition } from '~wildo-cli/services/registry/module-acquisition.utils';\nimport {\n acquireModuleForInstall,\n installAcquiredModule,\n type AcquiredModule,\n type ModuleInstallLog,\n} from '~wildo-cli/services/registry/module-install.service';\nimport type { LoadedBlueprintArtifact } from './blueprint-artifact.service';\n\n/** A log that says nothing: the reference tree is a scratch directory nobody reads the install of. */\nconst quietInstallLog: ModuleInstallLog = { info: () => undefined, success: () => undefined, warn: () => undefined, error: () => undefined };\n\n// ── Pack ──────────────────────────────────────────────────────────────────────────────────────────────\n\n/** The references a definition carries, every application file the referenced modules own (never carried), and what the author should know. */\nexport interface DerivedModuleReferences {\n readonly references: readonly BlueprintModuleReference[];\n readonly ownedFiles: ReadonlySet<string>;\n readonly notices: readonly string[];\n}\n\n/** Refuse a held version outside the range a reference records: the new application would get something else. */\nfunction assertHeldVersionSatisfies(moduleId: string, heldVersion: string, range: string): void {\n if (semver.validRange(range) !== null && !semver.satisfies(heldVersion, range, { includePrerelease: true })) {\n throw new Error(`${moduleId}@${heldVersion} is held outside the range the blueprint references (${range}). Run \\`wildo registry update ${moduleId}\\` first, or reference a range the held version satisfies.`);\n }\n}\n\n/**\n * Refuse a module referenced twice across a stack (two layers, or a lower layer and the definition being packed): the\n * second install would meet the first one's lockfile entry, and which range wins is not something to guess.\n */\nexport function assertNoModuleReferencedTwice(references: ReadonlyArray<{ readonly by: string; readonly moduleId: string }>): void {\n const referencedBy = new Map<string, string>();\n for (const { by, moduleId } of references) {\n const earlier = referencedBy.get(moduleId);\n if (earlier !== undefined) throw new Error(`Blueprints '${earlier}' and '${by}' both reference ${moduleId}. A module is installed once; reference it from one layer.`);\n referencedBy.set(moduleId, by);\n }\n}\n\n/**\n * One reference per module id the definition names, read from the defining application's lockfile. Refuses a module\n * the application did not install from the registry, and a held version outside the range the application asked for\n * (a lockfile edited by hand, or an install forced past its range): the new application would resolve something the\n * defining one does not hold.\n */\nexport async function deriveBlueprintModuleReferences(applicationRoot: string, moduleIds: readonly string[]): Promise<DerivedModuleReferences> {\n const installed = (await RegistryLockfileService.read(applicationRoot)).installed;\n const references: BlueprintModuleReference[] = [];\n const ownedFiles = new Set<string>();\n const notices: string[] = [];\n for (const moduleId of moduleIds) {\n const entry = installed[moduleId];\n if (entry === undefined) {\n throw new Error(`include.registryModules names ${moduleId}, which this application did not install from the module registry (it is not in its lockfile).`);\n }\n const range = entry.requestedRange ?? entry.version;\n assertHeldVersionSatisfies(moduleId, entry.version, range);\n if (semver.validRange(range) === null) {\n notices.push(`registry module ${moduleId}: range '${range}' is a tag, not a version range, so the version a new application gets is whatever the tag points at that day.`);\n }\n if (entry.distribution === ModuleDistribution.LOCAL_CHECKOUT && entry.checkoutDirty === true) {\n notices.push(`registry module ${moduleId}: installed from a framework checkout with uncommitted changes; a new application gets what the checkout (or the registry) holds when it is created.`);\n }\n if (entry.registration !== undefined) {\n notices.push(\n `registry module ${moduleId} is registered in the application's module registries, and \\`wildo init\\` installs it BEFORE this layer's own content. `\n + 'Where this application installed it after its own modules, those lists (and `applicationModules`) read in another order in a new application; the residual names the files.',\n );\n }\n references.push({ domain: entry.domain, moduleId, range });\n for (const file of entry.files) ownedFiles.add(file);\n }\n return { references, ownedFiles, notices };\n}\n\n/** Every application file a registry module owns, by path, with the module that owns it. */\nexport async function readRegistryOwnedFiles(applicationRoot: string): Promise<ReadonlyMap<string, string>> {\n const owners = new Map<string, string>();\n for (const entry of Object.values((await RegistryLockfileService.read(applicationRoot)).installed)) {\n for (const file of entry.files) owners.set(file, entry.moduleId);\n }\n return owners;\n}\n\n// ── Proof ─────────────────────────────────────────────────────────────────────────────────────────────\n\nfunction sha256Digest(bytes: Uint8Array): string {\n return `sha256:${createHash('sha256').update(bytes).digest('hex')}`;\n}\n\n/** The version of `entry` the defining application holds, fetched without trusting anything that does not prove it. */\nasync function acquireHeldVersion(definingRoot: string, frameworkRoot: string, entry: RegistryModulesLockEntry): Promise<ModuleAcquisition> {\n if (entry.distribution === ModuleDistribution.LOCAL_CHECKOUT) {\n const local = await resolveLocalCheckoutModule({ frameworkRoot, domain: entry.domain, moduleId: entry.moduleId, range: entry.version });\n return { distribution: ModuleDistribution.LOCAL_CHECKOUT, version: local.version, local };\n }\n const registryUrl = entry.registryUrl;\n const artifactDigest = entry.artifactDigest;\n if (registryUrl === undefined || artifactDigest === undefined) {\n throw new Error(`${entry.moduleId} is recorded as registry-distributed without its registry or digest; repair the lockfile (\\`wildo registry repair-lockfile\\`).`);\n }\n // The artifact the defining application staged when it installed, when its bytes still prove the recorded digest.\n const cached = moduleArtifactPaths(definingRoot, entry.domain, entry.moduleId, entry.version).zip;\n if (existsSync(cached)) {\n const bytes = readFileSync(cached);\n if (sha256Digest(bytes) === artifactDigest) {\n return { distribution: ModuleDistribution.REGISTRY, version: entry.version, artifactDigest, bytes, registry: { url: registryUrl, id: entry.registryId ?? DEFAULT_REGISTRY_ID } };\n }\n }\n // The same transport check every registry call makes (#1764): a lockfile naming plain `http://` must not receive a key.\n assertRegistryTransportIsSafe(registryUrl, await loadModuleRegistries(definingRoot));\n const credential = await RegistryCredentialsService.get(registryUrl);\n const { bytes } = await RegistryServerClient.download(\n { baseUrl: registryUrl, authToken: credential?.rawToken },\n { domain: entry.domain, moduleId: entry.moduleId, version: entry.version, expectedDigest: artifactDigest },\n );\n return { distribution: ModuleDistribution.REGISTRY, version: entry.version, artifactDigest, bytes, registry: { url: registryUrl, id: entry.registryId ?? DEFAULT_REGISTRY_ID } };\n}\n\n/**\n * Install into `targetRoot` (a reference tree) the version of `reference.moduleId` the defining application holds.\n * Refuses a module the defining application does not hold, and a held version outside the reference's range: a proof\n * against that version would certify something `wildo init` does not install. This matters for a LOWER layer's\n * reference, whose range was recorded when that layer was packed, not read from this application's lockfile.\n */\nexport async function installHeldModuleVersion(input: {\n readonly definingRoot: string;\n readonly targetRoot: string;\n readonly frameworkRoot: string;\n readonly reference: BlueprintModuleReference;\n}): Promise<void> {\n const entry = (await RegistryLockfileService.read(input.definingRoot)).installed[input.reference.moduleId];\n if (entry === undefined) {\n throw new Error(`A blueprint references ${input.reference.moduleId}, which this application does not hold. Install it (\\`wildo registry add\\`) before packing.`);\n }\n assertHeldVersionSatisfies(entry.moduleId, entry.version, input.reference.range);\n const acquisition = await acquireHeldVersion(input.definingRoot, input.frameworkRoot, entry);\n await installAcquiredModule({\n saasRoot: input.targetRoot,\n frameworkRoot: input.frameworkRoot,\n acquired: { parsed: { domain: entry.domain, moduleId: entry.moduleId, range: entry.version }, acquisition },\n force: false,\n log: quietInstallLog,\n });\n}\n\n// ── Init ──────────────────────────────────────────────────────────────────────────────────────────────\n\n/**\n * Resolve and fetch every module the layers reference, once, before anything is written. Refuses a module referenced\n * by two layers (`assertNoModuleReferencedTwice`).\n *\n * Every reference resolves on the registry `registryFlag` names (`--blueprint-registry`), else the machine's default —\n * the registry the blueprint itself comes from, decided once for the whole stack. A reference records no registry on\n * purpose: a registry id is a machine-local alias, and the URL the defining application used may not be reachable, or\n * trusted, where the blueprint is applied. Each resolution is logged with its registry, and the lockfile entry records\n * the one used.\n */\nexport async function acquireBlueprintModuleReferences(\n ctx: CommandContext,\n layers: readonly LoadedBlueprintArtifact[],\n input: { readonly registryFlag?: string | undefined },\n): Promise<ReadonlyMap<string, AcquiredModule>> {\n // Checked before anything is fetched, so a refusal costs no download.\n assertNoModuleReferencedTwice(layers.flatMap((layer) => layer.manifest.moduleReferences.map((reference) => ({ by: layer.manifest.id, moduleId: reference.moduleId }))));\n const acquired = new Map<string, AcquiredModule>();\n for (const layer of layers) {\n for (const reference of layer.manifest.moduleReferences) {\n acquired.set(reference.moduleId, await acquireModuleForInstall(ctx, reference, { ...input, label: `blueprint ${layer.manifest.id}` }));\n }\n }\n return acquired;\n}\n\n/** Install one layer's references into `applicationRoot`, in order, from what `acquireBlueprintModuleReferences` fetched. */\nexport async function installBlueprintModuleReferences(input: {\n readonly applicationRoot: string;\n readonly frameworkRoot: string | null;\n readonly layer: LoadedBlueprintArtifact;\n readonly acquired: ReadonlyMap<string, AcquiredModule>;\n readonly log?: ModuleInstallLog;\n}): Promise<readonly string[]> {\n const lines: string[] = [];\n for (const reference of input.layer.manifest.moduleReferences) {\n const acquired = input.acquired.get(reference.moduleId);\n if (acquired === undefined) throw new Error(`Blueprint '${input.layer.manifest.id}' references ${reference.moduleId}, which was not fetched.`);\n const outcome = await installAcquiredModule({\n saasRoot: input.applicationRoot,\n frameworkRoot: input.frameworkRoot,\n acquired,\n force: false,\n log: input.log ?? quietInstallLog,\n });\n lines.push(`registry module ${reference.moduleId}@${outcome.version}`);\n }\n return lines;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"blueprint-module-references.service.js","sourceRoot":"","sources":["../../../../src/services/blueprint/blueprint-module-references.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,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,UAAU,gCAAgC,CAAC,KAMtD;IACC,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,SAAS,IAAI,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC;QAC9D,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACxD,IAAI,QAAQ,KAAK,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,cAAc,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,gBAAgB,SAAS,CAAC,QAAQ,0BAA0B,CAAC,CAAC;QAC/I,MAAM,OAAO,GAAG,MAAM,qBAAqB,CAAC;YAC1C,QAAQ,EAAE,KAAK,CAAC,eAAe;YAC/B,aAAa,EAAE,KAAK,CAAC,aAAa;YAClC,QAAQ;YACR,KAAK,EAAE,KAAK;YACZ,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,eAAe;SAClC,CAAC,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,mBAAmB,SAAS,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["/**\n * Registry modules a blueprint REFERENCES (#2879), on both sides of a blueprint.\n *\n * A module the defining application installed from the module registry is never copied into a blueprint: its files\n * are recorded in that application's lockfile with their install hashes, and `wildo registry update` / `remove` act on\n * them. A copy would carry the files without the record, and the new application would hold a module it does not know\n * it installed. So a blueprint carries `{ domain, moduleId, range }`, and `wildo init` installs the module through the\n * same pipeline as `wildo registry add` (`module-install.service.ts`), which writes the same lockfile entry.\n *\n * - PACK (`deriveBlueprintModuleReferences`): one reference per module the definition names, from the defining\n * application's lockfile; the range is the one it asked for, and its held version must satisfy it.\n * - PROOF (`installHeldModuleVersion`): the reference tree an export is proven against installs the version the\n * defining application HOLDS — from its own staged artifact when its digest still matches, otherwise from the\n * registry at that exact version, or from the framework checkout for a checkout-served module — so the tree is the\n * defining application's, module for module, and the residual compares like with like.\n * - INIT (`acquireBlueprintModuleReferences`, `installBlueprintModuleReferences`): every reference is resolved and\n * fetched ONCE, before anything is written, so a reference that does not resolve refuses in an untouched directory;\n * the same fetched bytes are then installed into the rehearsal and into the application, layer by layer, before each\n * layer's own content (which may import them).\n */\n\nimport { createHash } from 'node:crypto';\nimport { existsSync, readFileSync } from 'node:fs';\nimport semver from 'semver';\nimport {\n assertRegistryTransportIsSafe,\n DEFAULT_REGISTRY_ID,\n ModuleDistribution,\n type BlueprintModuleReference,\n type RegistryModulesLockEntry,\n} from '@wildo-ai/platform-config-lib';\nimport { RegistryLockfileService, RegistryServerClient } from '@wildo-ai/wildo-module-client';\nimport type { CommandContext } from '~wildo-cli/kernel/types';\nimport { RegistryCredentialsService } from '~wildo-cli/services/registry/registry-credentials.service';\nimport { moduleArtifactPaths } from '~wildo-cli/services/registry/module-artifact-files.utils';\nimport { loadModuleRegistries } from '~wildo-cli/services/registry/registry-command.utils';\nimport { resolveLocalCheckoutModule } from '~wildo-cli/services/registry/local-checkout-module-source.service';\nimport type { ModuleAcquisition } from '~wildo-cli/services/registry/module-acquisition.utils';\nimport {\n acquireModuleForInstall,\n installAcquiredModule,\n type AcquiredModule,\n type ModuleInstallLog,\n} from '~wildo-cli/services/registry/module-install.service';\nimport type { LoadedBlueprintArtifact } from './blueprint-artifact.service';\n\n/** A log that says nothing: the reference tree is a scratch directory nobody reads the install of. */\nconst quietInstallLog: ModuleInstallLog = { info: () => undefined, success: () => undefined, warn: () => undefined, error: () => undefined };\n\n// ── Pack ──────────────────────────────────────────────────────────────────────────────────────────────\n\n/** The references a definition carries, every application file the referenced modules own (never carried), and what the author should know. */\nexport interface DerivedModuleReferences {\n readonly references: readonly BlueprintModuleReference[];\n readonly ownedFiles: ReadonlySet<string>;\n readonly notices: readonly string[];\n}\n\n/** Refuse a held version outside the range a reference records: the new application would get something else. */\nfunction assertHeldVersionSatisfies(moduleId: string, heldVersion: string, range: string): void {\n if (semver.validRange(range) !== null && !semver.satisfies(heldVersion, range, { includePrerelease: true })) {\n throw new Error(`${moduleId}@${heldVersion} is held outside the range the blueprint references (${range}). Run \\`wildo registry update ${moduleId}\\` first, or reference a range the held version satisfies.`);\n }\n}\n\n/**\n * Refuse a module referenced twice across a stack (two layers, or a lower layer and the definition being packed): the\n * second install would meet the first one's lockfile entry, and which range wins is not something to guess.\n */\nexport function assertNoModuleReferencedTwice(references: ReadonlyArray<{ readonly by: string; readonly moduleId: string }>): void {\n const referencedBy = new Map<string, string>();\n for (const { by, moduleId } of references) {\n const earlier = referencedBy.get(moduleId);\n if (earlier !== undefined) throw new Error(`Blueprints '${earlier}' and '${by}' both reference ${moduleId}. A module is installed once; reference it from one layer.`);\n referencedBy.set(moduleId, by);\n }\n}\n\n/**\n * One reference per module id the definition names, read from the defining application's lockfile. Refuses a module\n * the application did not install from the registry, and a held version outside the range the application asked for\n * (a lockfile edited by hand, or an install forced past its range): the new application would resolve something the\n * defining one does not hold.\n */\nexport async function deriveBlueprintModuleReferences(applicationRoot: string, moduleIds: readonly string[]): Promise<DerivedModuleReferences> {\n const installed = (await RegistryLockfileService.read(applicationRoot)).installed;\n const references: BlueprintModuleReference[] = [];\n const ownedFiles = new Set<string>();\n const notices: string[] = [];\n for (const moduleId of moduleIds) {\n const entry = installed[moduleId];\n if (entry === undefined) {\n throw new Error(`include.registryModules names ${moduleId}, which this application did not install from the module registry (it is not in its lockfile).`);\n }\n const range = entry.requestedRange ?? entry.version;\n assertHeldVersionSatisfies(moduleId, entry.version, range);\n if (semver.validRange(range) === null) {\n notices.push(`registry module ${moduleId}: range '${range}' is a tag, not a version range, so the version a new application gets is whatever the tag points at that day.`);\n }\n if (entry.distribution === ModuleDistribution.LOCAL_CHECKOUT && entry.checkoutDirty === true) {\n notices.push(`registry module ${moduleId}: installed from a framework checkout with uncommitted changes; a new application gets what the checkout (or the registry) holds when it is created.`);\n }\n if (entry.registration !== undefined) {\n notices.push(\n `registry module ${moduleId} is registered in the application's module registries, and \\`wildo init\\` installs it BEFORE this layer's own content. `\n + 'Where this application installed it after its own modules, those lists (and `applicationModules`) read in another order in a new application; the residual names the files.',\n );\n }\n references.push({ domain: entry.domain, moduleId, range });\n for (const file of entry.files) ownedFiles.add(file);\n }\n return { references, ownedFiles, notices };\n}\n\n/** Every application file a registry module owns, by path, with the module that owns it. */\nexport async function readRegistryOwnedFiles(applicationRoot: string): Promise<ReadonlyMap<string, string>> {\n const owners = new Map<string, string>();\n for (const entry of Object.values((await RegistryLockfileService.read(applicationRoot)).installed)) {\n for (const file of entry.files) owners.set(file, entry.moduleId);\n }\n return owners;\n}\n\n// ── Proof ─────────────────────────────────────────────────────────────────────────────────────────────\n\nfunction sha256Digest(bytes: Uint8Array): string {\n return `sha256:${createHash('sha256').update(bytes).digest('hex')}`;\n}\n\n/** The version of `entry` the defining application holds, fetched without trusting anything that does not prove it. */\nasync function acquireHeldVersion(definingRoot: string, frameworkRoot: string, entry: RegistryModulesLockEntry): Promise<ModuleAcquisition> {\n if (entry.distribution === ModuleDistribution.LOCAL_CHECKOUT) {\n const local = await resolveLocalCheckoutModule({ frameworkRoot, domain: entry.domain, moduleId: entry.moduleId, range: entry.version });\n return { distribution: ModuleDistribution.LOCAL_CHECKOUT, version: local.version, local };\n }\n const registryUrl = entry.registryUrl;\n const artifactDigest = entry.artifactDigest;\n if (registryUrl === undefined || artifactDigest === undefined) {\n throw new Error(`${entry.moduleId} is recorded as registry-distributed without its registry or digest; repair the lockfile (\\`wildo registry repair-lockfile\\`).`);\n }\n // The artifact the defining application staged when it installed, when its bytes still prove the recorded digest.\n const cached = moduleArtifactPaths(definingRoot, entry.domain, entry.moduleId, entry.version).zip;\n if (existsSync(cached)) {\n const bytes = readFileSync(cached);\n if (sha256Digest(bytes) === artifactDigest) {\n return { distribution: ModuleDistribution.REGISTRY, version: entry.version, artifactDigest, bytes, registry: { url: registryUrl, id: entry.registryId ?? DEFAULT_REGISTRY_ID } };\n }\n }\n // The same transport check every registry call makes (#1764): a lockfile naming plain `http://` must not receive a key.\n assertRegistryTransportIsSafe(registryUrl, await loadModuleRegistries(definingRoot));\n const credential = await RegistryCredentialsService.get(registryUrl);\n const { bytes } = await RegistryServerClient.download(\n { baseUrl: registryUrl, authToken: credential?.rawToken },\n { domain: entry.domain, moduleId: entry.moduleId, version: entry.version, expectedDigest: artifactDigest },\n );\n return { distribution: ModuleDistribution.REGISTRY, version: entry.version, artifactDigest, bytes, registry: { url: registryUrl, id: entry.registryId ?? DEFAULT_REGISTRY_ID } };\n}\n\n/**\n * Install into `targetRoot` (a reference tree) the version of `reference.moduleId` the defining application holds.\n * Refuses a module the defining application does not hold, and a held version outside the reference's range: a proof\n * against that version would certify something `wildo init` does not install. This matters for a LOWER layer's\n * reference, whose range was recorded when that layer was packed, not read from this application's lockfile.\n */\nexport async function installHeldModuleVersion(input: {\n readonly definingRoot: string;\n readonly targetRoot: string;\n readonly frameworkRoot: string;\n readonly reference: BlueprintModuleReference;\n}): Promise<void> {\n const entry = (await RegistryLockfileService.read(input.definingRoot)).installed[input.reference.moduleId];\n if (entry === undefined) {\n throw new Error(`A blueprint references ${input.reference.moduleId}, which this application does not hold. Install it (\\`wildo registry add\\`) before packing.`);\n }\n assertHeldVersionSatisfies(entry.moduleId, entry.version, input.reference.range);\n const acquisition = await acquireHeldVersion(input.definingRoot, input.frameworkRoot, entry);\n await installAcquiredModule({\n saasRoot: input.targetRoot,\n frameworkRoot: input.frameworkRoot,\n acquired: { parsed: { domain: entry.domain, moduleId: entry.moduleId, range: entry.version }, acquisition },\n force: false,\n log: quietInstallLog,\n });\n}\n\n// ── Init ──────────────────────────────────────────────────────────────────────────────────────────────\n\n/**\n * Resolve and fetch every module the layers reference, once, before anything is written. Refuses a module referenced\n * by two layers (`assertNoModuleReferencedTwice`).\n *\n * Every reference resolves on the registry `registryFlag` names (`--blueprint-registry`), else the machine's default —\n * the registry the blueprint itself comes from, decided once for the whole stack. A reference records no registry on\n * purpose: a registry id is a machine-local alias, and the URL the defining application used may not be reachable, or\n * trusted, where the blueprint is applied. Each resolution is logged with its registry, and the lockfile entry records\n * the one used.\n */\nexport async function acquireBlueprintModuleReferences(\n ctx: CommandContext,\n layers: readonly LoadedBlueprintArtifact[],\n input: { readonly registryFlag?: string | undefined },\n): Promise<ReadonlyMap<string, AcquiredModule>> {\n // Checked before anything is fetched, so a refusal costs no download.\n assertNoModuleReferencedTwice(layers.flatMap((layer) => layer.manifest.moduleReferences.map((reference) => ({ by: layer.manifest.id, moduleId: reference.moduleId }))));\n const acquired = new Map<string, AcquiredModule>();\n for (const layer of layers) {\n for (const reference of layer.manifest.moduleReferences) {\n acquired.set(reference.moduleId, await acquireModuleForInstall(ctx, reference, { ...input, label: `blueprint ${layer.manifest.id}` }));\n }\n }\n return acquired;\n}\n\n/** Install one layer's references into `applicationRoot`, in order, from what `acquireBlueprintModuleReferences` fetched. */\nexport async function installBlueprintModuleReferences(input: {\n readonly applicationRoot: string;\n readonly frameworkRoot: string | null;\n readonly layer: LoadedBlueprintArtifact;\n readonly acquired: ReadonlyMap<string, AcquiredModule>;\n readonly log?: ModuleInstallLog;\n}): Promise<readonly string[]> {\n const lines: string[] = [];\n for (const reference of input.layer.manifest.moduleReferences) {\n const acquired = input.acquired.get(reference.moduleId);\n if (acquired === undefined) throw new Error(`Blueprint '${input.layer.manifest.id}' references ${reference.moduleId}, which was not fetched.`);\n const outcome = await installAcquiredModule({\n saasRoot: input.applicationRoot,\n frameworkRoot: input.frameworkRoot,\n acquired,\n force: false,\n log: input.log ?? quietInstallLog,\n });\n lines.push(`registry module ${reference.moduleId}@${outcome.version}`);\n }\n return lines;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint-registry.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"blueprint-registry.service.d.ts","sourceRoot":"","sources":["../../../../src/services/blueprint/blueprint-registry.service.ts"],"names":[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AQ,CAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAC,CAyBjJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint-registry.service.js","sourceRoot":"","sources":["../../../../../../src/services/blueprint/blueprint-registry.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,UAAU,EACV,yBAAyB,EACzB,UAAU,EACV,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,GAGlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAC;AAC1G,OAAO,EAAE,eAAe,EAAyB,MAAM,qDAAqD,CAAC;AAC7G,OAAO,EAAE,qBAAqB,EAAgC,MAAM,8BAA8B,CAAC;AAEnG;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAAa,EAAE,eAA0C,UAAU;IACzG,IAAI,YAAY,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACtC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;QACtC,OAAO,wBAAwB,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAClG,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,oHAAoH;AACpH,MAAM,UAAU,4BAA4B,CAAC,QAA2B;IACtE,OAAO,oBAAoB,CAAC,KA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,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;IAC/C,OAAO,EAAE,QAAQ,EAAE,gCAAgC,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;AAC5J,CAAC","sourcesContent":["/**\n * Blueprints on the module registry (epic #2856, #2861): published and fetched exactly like modules (decision D4).\n *\n * A published blueprint is a registry module of kind `blueprint`: its zip holds the registry manifest\n * (`wildo.module.json`, `kind: \"blueprint\"`) beside the packed blueprint (`blueprint.json` + `files/`). The registry\n * keeps doing what it does for every module — the domain, the visibility, the immutable digested version, dist-tags,\n * yank — and nothing on the server knows what a blueprint contains. The CLI is what reads one, and it re-checks every\n * path against `isBlueprintArtifactPathAllowed` when it does (`readBlueprintArtifact`), so a zip assembled by hand\n * cannot plant what `wildo blueprint pack` would never have packed.\n *\n * A blueprint is never INSTALLED into an existing application: `wildo registry add` refuses the kind, and the only\n * door that applies one is `wildo init --blueprint` (decision D2).\n */\n\nimport { existsSync, readFileSync, writeFileSync } from 'node:fs';\nimport { join, relative, resolve } from 'node:path';\nimport { z } from 'zod';\nimport {\n isModuleId,\n MODULE_MANIFEST_FILE_NAME,\n ModuleKind,\n ModuleManifestSchema,\n RegistryDomainSlugSchema,\n SemverExactSchema,\n type BlueprintManifest,\n type ModuleManifest,\n} from '@wildo-ai/platform-config-lib';\nimport { RegistryServerClient } from '@wildo-ai/wildo-module-client';\nimport { createZipFromDir, extractZipToDir } from '~wildo-cli/services/registry/artifact-extractor.utils';\nimport { parseModuleSpec, type ParsedModuleSpec } from '~wildo-cli/services/registry/registry-command.utils';\nimport { readBlueprintArtifact, type LoadedBlueprintArtifact } from './blueprint-artifact.service';\n\n/**\n * Whether a `--blueprint` entry names a registry blueprint (`<domain>/<scope>/<name>[@range]`) rather than a packed\n * directory. A path that exists on disk is always a directory, whatever it looks like, so a local pack can never be\n * shadowed by a registry name; and every segment must be a registry name segment, so a relative path that does not\n * exist (`./packed/x`, a typo) is reported as a missing directory rather than sent to the registry.\n */\nexport function isRegistryBlueprintSpec(entry: string, existsOnDisk: (path: string) => boolean = existsSync): boolean {\n if (existsOnDisk(entry)) return false;\n try {\n const parsed = parseModuleSpec(entry);\n return RegistryDomainSlugSchema.safeParse(parsed.domain).success && isModuleId(parsed.moduleId);\n } catch {\n return false;\n }\n}\n\n/** The registry manifest a published blueprint carries: its identity, and nothing a module install would act on. */\nexport function registryManifestForBlueprint(manifest: BlueprintManifest): ModuleManifest {\n return ModuleManifestSchema.parse({\n id: manifest.id,\n version: manifest.version,\n kind: ModuleKind.BLUEPRINT,\n description: manifest.description,\n });\n}\n\n/**\n * Zip a packed blueprint for publication: its directory plus the registry manifest. Refuses a directory that is not\n * a packed blueprint, so nothing else can be published under the kind.\n */\nexport async function zipPackedBlueprintForRegistry(packedDirectory: string): Promise<{ manifest: ModuleManifest; bytes: Uint8Array }> {\n const artifact = readBlueprintArtifact(packedDirectory);\n const manifest = registryManifestForBlueprint(artifact.manifest);\n writeFileSync(join(packedDirectory, MODULE_MANIFEST_FILE_NAME), `${JSON.stringify(manifest, null, 2)}\\n`, 'utf8');\n return { manifest, bytes: await createZipFromDir(packedDirectory) };\n}\n\n/**\n * The checks a downloaded blueprint must pass before anything reads it: the registry manifest says `blueprint`, and\n * names the very id and version that were asked for and that the packed blueprint itself declares. Exported for\n * the pins: a mismatch here is a zip the registry did not get from `wildo blueprint publish`.\n */\nexport function assertDownloadedBlueprintMatches(extractDirectory: string, requested: { readonly moduleId: string; readonly version: string }): LoadedBlueprintArtifact {\n const manifestPath = join(extractDirectory, MODULE_MANIFEST_FILE_NAME);\n if (!existsSync(manifestPath)) throw new Error(`The downloaded artifact for ${requested.moduleId}@${requested.version} has no ${MODULE_MANIFEST_FILE_NAME}.`);\n const parsedManifest = ModuleManifestSchema.safeParse(JSON.parse(readFileSync(manifestPath, 'utf8')));\n if (!parsedManifest.success) {\n throw new Error(`The ${MODULE_MANIFEST_FILE_NAME} of ${requested.moduleId}@${requested.version} is not one this CLI can read:\\n${z.prettifyError(parsedManifest.error)}`);\n }\n const registryManifest = parsedManifest.data;\n if (registryManifest.kind !== ModuleKind.BLUEPRINT) {\n throw new Error(`${requested.moduleId} is a ${registryManifest.kind} module, not a blueprint. Install a module with \\`wildo registry add\\`.`);\n }\n const artifact = readBlueprintArtifact(extractDirectory);\n for (const [label, value] of [['registry manifest', registryManifest], ['blueprint manifest', artifact.manifest]] as const) {\n if (value.id !== requested.moduleId || value.version !== requested.version) {\n throw new Error(`The downloaded ${label} names ${value.id}@${value.version}, and ${requested.moduleId}@${requested.version} was asked for.`);\n }\n }\n return artifact;\n}\n\n/**\n * Resolve, download (integrity-checked against the registry's digest), extract and validate one registry blueprint.\n * `scratchDirectory` receives the extracted artifact and must outlive the apply.\n *\n * Every name the extract path is built from is checked BEFORE the path exists: the domain and module id from the\n * spec, and the version the registry ANSWERED. A registry is a remote party; a version such as `../../x` would\n * otherwise place the extraction outside the scratch directory, and the zip-slip guard, being relative to the extract\n * directory, could not see it. Same rule as `moduleArtifactPaths` for a module install.\n */\nexport async function acquireRegistryBlueprint(input: {\n readonly spec: string;\n readonly registryUrl: string;\n readonly authToken?: string | undefined;\n readonly scratchDirectory: string;\n}): Promise<{ readonly artifact: LoadedBlueprintArtifact; readonly parsed: ParsedModuleSpec; readonly version: string; readonly yanked: boolean }> {\n const parsed = parseModuleSpec(input.spec);\n if (!RegistryDomainSlugSchema.safeParse(parsed.domain).success || !isModuleId(parsed.moduleId)) {\n throw new Error(`'${input.spec}' is not <domain>/<scope>/<name>[@range] with registry names.`);\n }\n const clientOptions = { baseUrl: input.registryUrl, authToken: input.authToken };\n const { version, artifactDigest, yanked } = await RegistryServerClient.resolve(clientOptions, {\n domain: parsed.domain,\n moduleId: parsed.moduleId,\n range: parsed.range,\n });\n if (!SemverExactSchema.safeParse(version).success) {\n throw new Error(`The registry resolved ${parsed.domain}/${parsed.moduleId} to '${version}', which is not an exact version. Nothing was downloaded.`);\n }\n const { bytes } = await RegistryServerClient.download(clientOptions, {\n domain: parsed.domain,\n moduleId: parsed.moduleId,\n version,\n expectedDigest: artifactDigest,\n });\n const extractDirectory = join(input.scratchDirectory, `${parsed.domain}__${parsed.moduleId.replace('/', '__')}@${version}`);\n const fromScratch = relative(resolve(input.scratchDirectory), resolve(extractDirectory));\n if (fromScratch === '' || fromScratch.startsWith('..')) throw new Error(`Refusing to extract ${input.spec} outside its scratch directory.`);\n await extractZipToDir(bytes, extractDirectory);\n return { artifact: assertDownloadedBlueprintMatches(extractDirectory, { moduleId: parsed.moduleId, version }), parsed, version, yanked: Boolean(yanked) };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"blueprint-registry.service.js","sourceRoot":"","sources":["../../../../src/services/blueprint/blueprint-registry.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,UAAU,EACV,yBAAyB,EACzB,UAAU,EACV,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,GAGlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAC;AAC1G,OAAO,EAAE,eAAe,EAAyB,MAAM,qDAAqD,CAAC;AAC7G,OAAO,EAAE,qBAAqB,EAAgC,MAAM,8BAA8B,CAAC;AAEnG;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAAa,EAAE,eAA0C,UAAU;IACzG,IAAI,YAAY,CA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AAM,KAAK,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,OAAO,EAAE,CAAC,CAAC;IAC5H,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACzF,IAAI,WAAW,KAAK,EAAE,IAAI,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,uBAAuB,KAAK,CAAC,IAAI,iCAAiC,CAAC,CAAC;IAC5I,MAAM,eAAe,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;IAC/C,OAAO,EAAE,QAAQ,EAAE,gCAAgC,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;AAC5J,CAAC","sourcesContent":["/**\n * Blueprints on the module registry (epic #2856, #2861): published and fetched exactly like modules (decision D4).\n *\n * A published blueprint is a registry module of kind `blueprint`: its zip holds the registry manifest\n * (`wildo.module.json`, `kind: \"blueprint\"`) beside the packed blueprint (`blueprint.json` + `files/`). The registry\n * keeps doing what it does for every module — the domain, the visibility, the immutable digested version, dist-tags,\n * yank — and nothing on the server knows what a blueprint contains. The CLI is what reads one, and it re-checks every\n * path against `isBlueprintArtifactPathAllowed` when it does (`readBlueprintArtifact`), so a zip assembled by hand\n * cannot plant what `wildo blueprint pack` would never have packed.\n *\n * A blueprint is never INSTALLED into an existing application: `wildo registry add` refuses the kind, and the only\n * door that applies one is `wildo init --blueprint` (decision D2).\n */\n\nimport { existsSync, readFileSync, writeFileSync } from 'node:fs';\nimport { join, relative, resolve } from 'node:path';\nimport { z } from 'zod';\nimport {\n isModuleId,\n MODULE_MANIFEST_FILE_NAME,\n ModuleKind,\n ModuleManifestSchema,\n RegistryDomainSlugSchema,\n SemverExactSchema,\n type BlueprintManifest,\n type ModuleManifest,\n} from '@wildo-ai/platform-config-lib';\nimport { RegistryServerClient } from '@wildo-ai/wildo-module-client';\nimport { createZipFromDir, extractZipToDir } from '~wildo-cli/services/registry/artifact-extractor.utils';\nimport { parseModuleSpec, type ParsedModuleSpec } from '~wildo-cli/services/registry/registry-command.utils';\nimport { readBlueprintArtifact, type LoadedBlueprintArtifact } from './blueprint-artifact.service';\n\n/**\n * Whether a `--blueprint` entry names a registry blueprint (`<domain>/<scope>/<name>[@range]`) rather than a packed\n * directory. A path that exists on disk is always a directory, whatever it looks like, so a local pack can never be\n * shadowed by a registry name; and every segment must be a registry name segment, so a relative path that does not\n * exist (`./packed/x`, a typo) is reported as a missing directory rather than sent to the registry.\n */\nexport function isRegistryBlueprintSpec(entry: string, existsOnDisk: (path: string) => boolean = existsSync): boolean {\n if (existsOnDisk(entry)) return false;\n try {\n const parsed = parseModuleSpec(entry);\n return RegistryDomainSlugSchema.safeParse(parsed.domain).success && isModuleId(parsed.moduleId);\n } catch {\n return false;\n }\n}\n\n/** The registry manifest a published blueprint carries: its identity, and nothing a module install would act on. */\nexport function registryManifestForBlueprint(manifest: BlueprintManifest): ModuleManifest {\n return ModuleManifestSchema.parse({\n id: manifest.id,\n version: manifest.version,\n kind: ModuleKind.BLUEPRINT,\n description: manifest.description,\n });\n}\n\n/**\n * Zip a packed blueprint for publication: its directory plus the registry manifest. Refuses a directory that is not\n * a packed blueprint, so nothing else can be published under the kind.\n */\nexport async function zipPackedBlueprintForRegistry(packedDirectory: string): Promise<{ manifest: ModuleManifest; bytes: Uint8Array }> {\n const artifact = readBlueprintArtifact(packedDirectory);\n const manifest = registryManifestForBlueprint(artifact.manifest);\n writeFileSync(join(packedDirectory, MODULE_MANIFEST_FILE_NAME), `${JSON.stringify(manifest, null, 2)}\\n`, 'utf8');\n return { manifest, bytes: await createZipFromDir(packedDirectory) };\n}\n\n/**\n * The checks a downloaded blueprint must pass before anything reads it: the registry manifest says `blueprint`, and\n * names the very id and version that were asked for and that the packed blueprint itself declares. Exported for\n * the pins: a mismatch here is a zip the registry did not get from `wildo blueprint publish`.\n */\nexport function assertDownloadedBlueprintMatches(extractDirectory: string, requested: { readonly moduleId: string; readonly version: string }): LoadedBlueprintArtifact {\n const manifestPath = join(extractDirectory, MODULE_MANIFEST_FILE_NAME);\n if (!existsSync(manifestPath)) throw new Error(`The downloaded artifact for ${requested.moduleId}@${requested.version} has no ${MODULE_MANIFEST_FILE_NAME}.`);\n const parsedManifest = ModuleManifestSchema.safeParse(JSON.parse(readFileSync(manifestPath, 'utf8')));\n if (!parsedManifest.success) {\n throw new Error(`The ${MODULE_MANIFEST_FILE_NAME} of ${requested.moduleId}@${requested.version} is not one this CLI can read:\\n${z.prettifyError(parsedManifest.error)}`);\n }\n const registryManifest = parsedManifest.data;\n if (registryManifest.kind !== ModuleKind.BLUEPRINT) {\n throw new Error(`${requested.moduleId} is a ${registryManifest.kind} module, not a blueprint. Install a module with \\`wildo registry add\\`.`);\n }\n const artifact = readBlueprintArtifact(extractDirectory);\n for (const [label, value] of [['registry manifest', registryManifest], ['blueprint manifest', artifact.manifest]] as const) {\n if (value.id !== requested.moduleId || value.version !== requested.version) {\n throw new Error(`The downloaded ${label} names ${value.id}@${value.version}, and ${requested.moduleId}@${requested.version} was asked for.`);\n }\n }\n return artifact;\n}\n\n/**\n * Resolve, download (integrity-checked against the registry's digest), extract and validate one registry blueprint.\n * `scratchDirectory` receives the extracted artifact and must outlive the apply.\n *\n * Every name the extract path is built from is checked BEFORE the path exists: the domain and module id from the\n * spec, and the version the registry ANSWERED. A registry is a remote party; a version such as `../../x` would\n * otherwise place the extraction outside the scratch directory, and the zip-slip guard, being relative to the extract\n * directory, could not see it. Same rule as `moduleArtifactPaths` for a module install.\n */\nexport async function acquireRegistryBlueprint(input: {\n readonly spec: string;\n readonly registryUrl: string;\n readonly authToken?: string | undefined;\n readonly scratchDirectory: string;\n}): Promise<{ readonly artifact: LoadedBlueprintArtifact; readonly parsed: ParsedModuleSpec; readonly version: string; readonly yanked: boolean }> {\n const parsed = parseModuleSpec(input.spec);\n if (!RegistryDomainSlugSchema.safeParse(parsed.domain).success || !isModuleId(parsed.moduleId)) {\n throw new Error(`'${input.spec}' is not <domain>/<scope>/<name>[@range] with registry names.`);\n }\n const clientOptions = { baseUrl: input.registryUrl, authToken: input.authToken };\n const { version, artifactDigest, yanked } = await RegistryServerClient.resolve(clientOptions, {\n domain: parsed.domain,\n moduleId: parsed.moduleId,\n range: parsed.range,\n });\n if (!SemverExactSchema.safeParse(version).success) {\n throw new Error(`The registry resolved ${parsed.domain}/${parsed.moduleId} to '${version}', which is not an exact version. Nothing was downloaded.`);\n }\n const { bytes } = await RegistryServerClient.download(clientOptions, {\n domain: parsed.domain,\n moduleId: parsed.moduleId,\n version,\n expectedDigest: artifactDigest,\n });\n const extractDirectory = join(input.scratchDirectory, `${parsed.domain}__${parsed.moduleId.replace('/', '__')}@${version}`);\n const fromScratch = relative(resolve(input.scratchDirectory), resolve(extractDirectory));\n if (fromScratch === '' || fromScratch.startsWith('..')) throw new Error(`Refusing to extract ${input.spec} outside its scratch directory.`);\n await extractZipToDir(bytes, extractDirectory);\n return { artifact: assertDownloadedBlueprintMatches(extractDirectory, { moduleId: parsed.moduleId, version }), parsed, version, yanked: Boolean(yanked) };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint-report.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"blueprint-report.d.ts","sourceRoot":"","sources":["../../../../src/services/blueprint/blueprint-report.ts"],"names":[],"mappings":"AAAA,wGAAwG;AAExG,OAAO,EAAqD,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAWzH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE;IAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,EACpC,MAAM,EAAE,mBAAmB,EAC3B,OAAO,EAAE;IAAE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;CAAE,GACvC,IAAI,CAgBN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint-report.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"blueprint-report.js","sourceRoot":"","sources":["../../../../src/services/blueprint/blueprint-report.ts"],"names":[],"mappings":"AAAA,wGAAwG;AAExG,OAAO,EAAE,qBAAqB,EAAE,0BAA0B,EAA4B,MAAM,4BAA4B,CAAC;AAEzH,MAAM,cAAc,GAAoD;IACtE,CAAC,qBAAqB,CAAC,YAAY,CAAC,EAAE,wCAAwC;IAC9E,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,EAAE,2EAA2E;IACtH,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,EAAE,mEAAmE;CAC/G,CAAC;AAEF,0FAA0F;AAC1F,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEhC,MAAM,UAAU,wBAAwB,CACtC,GAAoC,EACpC,MAA2B,EAC3B,OAAwC;IAExC,GAAG,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,EAAE,IAAI,MAAM,CAAC,QAAQ,CAAC,OAAO,MAAM,MAAM,CAAC,KAAK,CAAC,IAAI,iBAAiB,CAAC,CAAC;IACnG,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,QAAQ;QAAE,GAAG,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;IAC5D,KAAK,MAAM,MAAM,IAAI,MAAM,CAAC,OAAO;QAAE,GAAG,CAAC,IAAI,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC;IAC/D,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjC,GAAG,CAAC,IAAI,CAAC,0EAA0E,CAAC,CAAC;QACrF,OAAO;IACT,CAAC;IACD,GAAG,CAAC,IAAI,CAAC,mCAAmC,MAAM,CAAC,QAAQ,CAAC,MAAM,UAAU,CAAC,CAAC;IAC9E,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;QACtB,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,QAAQ;YAAE,GAAG,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,IAAI,MAAM,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACnG,OAAO;IACT,CAAC;IACD,MAAM,OAAO,GAAG,0BAA0B,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC5D,KAAK,MAAM,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,oBAAoB,CAAC;QAAE,GAAG,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,KAAK,KAAK,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1I,IAAI,OAAO,CAAC,MAAM,GAAG,oBAAoB;QAAE,GAAG,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,MAAM,GAAG,oBAAoB,+CAA+C,CAAC,CAAC;AACrJ,CAAC","sourcesContent":["/** Printing a blueprint pack report — shared by `wildo blueprint pack` and `wildo blueprint status`. */\n\nimport { BlueprintResidualKind, summarizeBlueprintResidual, type BlueprintPackReport } from './blueprint-export.service';\n\nconst RESIDUAL_WORDS: Readonly<Record<BlueprintResidualKind, string>> = {\n [BlueprintResidualKind.NOT_EXPORTED]: 'only in this application, not exported',\n [BlueprintResidualKind.CHANGED_BASE_FILE]: 'base file this application changed — a blueprint cannot carry that change',\n [BlueprintResidualKind.REMOVED_BASE_FILE]: 'base file this application removed — a blueprint cannot remove it',\n};\n\n/** How many residual areas the short form lists before saying how many more there are. */\nconst RESIDUAL_AREAS_SHOWN = 12;\n\nexport function printBlueprintPackReport(\n log: { info(message: string): void },\n report: BlueprintPackReport,\n options: { readonly listFiles: boolean },\n): void {\n log.info(`${report.manifest.id}@${report.manifest.version} — ${report.files.size} packed file(s)`);\n for (const line of report.exported) log.info(` + ${line}`);\n for (const notice of report.notices) log.info(` · ${notice}`);\n if (report.residual.length === 0) {\n log.info(' Everything this application holds beyond the base is in the blueprint.');\n return;\n }\n log.info(` Not carried by the blueprint: ${report.residual.length} file(s)`);\n if (options.listFiles) {\n for (const entry of report.residual) log.info(` ${entry.path} — ${RESIDUAL_WORDS[entry.kind]}`);\n return;\n }\n const summary = summarizeBlueprintResidual(report.residual);\n for (const entry of summary.slice(0, RESIDUAL_AREAS_SHOWN)) log.info(` ${entry.area}: ${entry.count} (${RESIDUAL_WORDS[entry.kind]})`);\n if (summary.length > RESIDUAL_AREAS_SHOWN) log.info(` … ${summary.length - RESIDUAL_AREAS_SHOWN} more area(s); --list-files lists every file.`);\n}\n"]}
|
|
@@ -14,7 +14,7 @@ export declare const FRAMEWORK_BLUEPRINTS_RELATIVE_DIRECTORY = "templates/saas/b
|
|
|
14
14
|
* changes what a blueprint carries, so a corporate blueprint's `extends` range decides deliberately whether it takes
|
|
15
15
|
* the new posture. Not the framework version: that moves on every release whether or not any posture did.
|
|
16
16
|
*/
|
|
17
|
-
export declare const FRAMEWORK_BLUEPRINT_VERSION = "1.
|
|
17
|
+
export declare const FRAMEWORK_BLUEPRINT_VERSION = "1.2.0";
|
|
18
18
|
/** The blueprint name of a line: its value in kebab case (`internal_tool` → `internal-tool`). */
|
|
19
19
|
export declare function frameworkBlueprintName(line: ApplicationLine): string;
|
|
20
20
|
/** The framework blueprint id of a line: `wildo/<name>`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-blueprint-catalog.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"framework-blueprint-catalog.service.d.ts","sourceRoot":"","sources":["../../../../src/services/blueprint/framework-blueprint-catalog.service.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AACrF,OAAO,EAAyB,KAAK,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEnG,oJAAoJ;AACpJ,eAAO,MAAM,yBAAyB,UAAU,CAAC;AAEjD,kFAAkF;AAClF,eAAO,MAAM,uCAAuC,8BAA8B,CAAC;AAEnF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,UAAU,CAAC;AAEnD,iGAAiG;AACjG,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAEpE;AAED,4DAA4D;AAC5D,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAElE;AAKD,mHAAmH;AACnH,wBAAgB,4BAA4B,IAAI,SAAS,MAAM,EAAE,CAEhE;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,uBAAuB,GAAG,SAAS,CAoB1H"}
|
|
@@ -17,7 +17,7 @@ export const FRAMEWORK_BLUEPRINTS_RELATIVE_DIRECTORY = 'templates/saas/blueprint
|
|
|
17
17
|
* changes what a blueprint carries, so a corporate blueprint's `extends` range decides deliberately whether it takes
|
|
18
18
|
* the new posture. Not the framework version: that moves on every release whether or not any posture did.
|
|
19
19
|
*/
|
|
20
|
-
export const FRAMEWORK_BLUEPRINT_VERSION = '1.
|
|
20
|
+
export const FRAMEWORK_BLUEPRINT_VERSION = '1.2.0';
|
|
21
21
|
/** The blueprint name of a line: its value in kebab case (`internal_tool` → `internal-tool`). */
|
|
22
22
|
export function frameworkBlueprintName(line) {
|
|
23
23
|
return line.replaceAll('_', '-');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-blueprint-catalog.service.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"framework-blueprint-catalog.service.js","sourceRoot":"","sources":["../../../../src/services/blueprint/framework-blueprint-catalog.service.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAA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I,EAAE,CAAC;IAClD,MAAM,OAAO,GAAG,4BAA4B,EAAE,CAAC;IAC/C,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,qCAAqC,EAAE,gBAAgB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACzH,IAAI,aAAa,KAAK,IAAI,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,0FAA0F,CAAC,CAAC;IACvH,CAAC;IACD,MAAM,SAAS,GAAG,IAAI,CAAC,aAAa,EAAE,uCAAuC,EAAE,IAAK,CAAC,CAAC;IACtF,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,aAAa,aAAa,EAAE,sEAAsE,CAAC,CAAC;IACjJ,CAAC;IACD,MAAM,QAAQ,GAAG,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAClD,IAAI,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,GAAG,SAAS,qBAAqB,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;IACzH,IAAI,KAAK,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QAC5G,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,cAAc,KAAK,6BAA6B,EAAE,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAC;IAC/G,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["/**\n * Naming and finding the blueprints the framework ships: one per application line, `wildo/<name>` (#2863). Kept apart\n * from their generation (`framework-blueprints.service.ts`), which packs through the exporter, because the exporter\n * itself resolves them as lower layers.\n */\n\nimport { existsSync } from 'node:fs';\nimport { join } from 'node:path';\nimport semver from 'semver';\nimport { ApplicationLine } from '@wildo-ai/saas-specifications/application-creation';\nimport { readBlueprintArtifact, type LoadedBlueprintArtifact } from './blueprint-artifact.service';\n\n/** The module-id scope of every framework blueprint: `wildo/internal-tool`. No registry spec has two segments, so it cannot be mistaken for one. */\nexport const FRAMEWORK_BLUEPRINT_SCOPE = 'wildo';\n\n/** Where the framework blueprints live, relative to the framework assets root. */\nexport const FRAMEWORK_BLUEPRINTS_RELATIVE_DIRECTORY = 'templates/saas/blueprints';\n\n/**\n * The version every framework blueprint is packed at. Raised by hand, in the same change, when a line's posture\n * changes what a blueprint carries, so a corporate blueprint's `extends` range decides deliberately whether it takes\n * the new posture. Not the framework version: that moves on every release whether or not any posture did.\n */\nexport const FRAMEWORK_BLUEPRINT_VERSION = '1.2.0';\n\n/** The blueprint name of a line: its value in kebab case (`internal_tool` → `internal-tool`). */\nexport function frameworkBlueprintName(line: ApplicationLine): string {\n return line.replaceAll('_', '-');\n}\n\n/** The framework blueprint id of a line: `wildo/<name>`. */\nexport function frameworkBlueprintId(line: ApplicationLine): string {\n return `${FRAMEWORK_BLUEPRINT_SCOPE}/${frameworkBlueprintName(line)}`;\n}\n\n/** `wildo/<name>`, optionally `@<range>`. The name is checked against the vocabulary, not against what is on disk. */\nconst FRAMEWORK_BLUEPRINT_SPEC = new RegExp(`^${FRAMEWORK_BLUEPRINT_SCOPE}/([a-z0-9]+(?:-[a-z0-9]+)*)(?:@(.+))?$`);\n\n/** The framework blueprint ids the line vocabulary produces: total over it, so a line added tomorrow ships one. */\nexport function shippedFrameworkBlueprintIds(): readonly string[] {\n return Object.values(ApplicationLine).map(frameworkBlueprintId);\n}\n\n/**\n * The framework blueprint an id names (`wildo/internal-tool`, or `wildo/internal-tool@^1`), read from the framework\n * assets, or `undefined` when the entry is not of that form. Refuses a name the line vocabulary does not produce\n * (a directory left behind by a removed line does not resolve), a range the shipped version does not satisfy, and a\n * directory whose manifest carries another id.\n */\nexport function resolveFrameworkBlueprint(entry: string, frameworkRoot: string | null): LoadedBlueprintArtifact | undefined {\n const match = FRAMEWORK_BLUEPRINT_SPEC.exec(entry);\n if (match === null) return undefined;\n const [, name, range] = match;\n const id = `${FRAMEWORK_BLUEPRINT_SCOPE}/${name}`;\n const shipped = shippedFrameworkBlueprintIds();\n if (!shipped.includes(id)) throw new Error(`The framework ships no blueprint '${id}'. It ships: ${shipped.join(', ')}.`);\n if (frameworkRoot === null) {\n throw new Error(`'${entry}' names a framework blueprint, and no framework assets root is resolved to read it from.`);\n }\n const directory = join(frameworkRoot, FRAMEWORK_BLUEPRINTS_RELATIVE_DIRECTORY, name!);\n if (!existsSync(directory)) {\n throw new Error(`The framework assets at ${frameworkRoot} hold no '${id}' blueprint; regenerate them with \\`wildo fwk generate-blueprints\\`.`);\n }\n const artifact = readBlueprintArtifact(directory);\n if (artifact.manifest.id !== id) throw new Error(`${directory} holds blueprint '${artifact.manifest.id}', not '${id}'.`);\n if (range !== undefined && !semver.satisfies(artifact.manifest.version, range, { includePrerelease: true })) {\n throw new Error(`'${entry}' asks for ${range}, and the framework ships ${id}@${artifact.manifest.version}.`);\n }\n return artifact;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-blueprints.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"framework-blueprints.service.d.ts","sourceRoot":"","sources":["../../../../src/services/blueprint/framework-blueprints.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAkBH,OAAO,EAAgC,eAAe,EAA4D,MAAM,oDAAoD,CAAC;AAM7K,OAAO,EAAiB,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAkErF;;;GAGG;AACH,wBAAsB,0BAA0B,CAAC,KAAK,EAAE;IACtD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC,GAAG,OAAO,CAAC,mBAAmB,CAAC,CA4E/B;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,kBAAkB,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,GAAG,MAAM,EAAE,CAgBvG;AAED;;;;;GAKG;AACH,wBAAgB,oCAAoC,CAAC,kBAAkB,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAWjH;AAED,yIAAyI;AACzI,wBAAgB,yCAAyC,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,EAAE,CAKzF;AAED;;;GAGG;AACH,wBAAsB,2BAA2B,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,mBAAmB,CAAA;CAAE,CAAC,CAAC,CAiB1K"}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
import { cpSync, existsSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
34
34
|
import { tmpdir } from 'node:os';
|
|
35
35
|
import { dirname, join } from 'node:path';
|
|
36
|
-
import { deriveEngineCapabilityPlan, listSaasConfigOrganizationTypeRefs, OPERATOR_WITH_CLIENTS_CLIENT_TYPE_TEXT, OPERATOR_WITH_CLIENTS_FIRM_TYPE_TEXT, OPERATOR_WITH_CLIENTS_RELATIONSHIP_KEY, serviceRelationshipText, setConfigObjectProperty, setEngineCapabilityEnabled, setOrganizationTypeOwnsApplication, } from '@wildo-ai/application-creation-runtime';
|
|
36
|
+
import { applyLineAccessPosture, deriveEngineCapabilityPlan, listSaasConfigOrganizationTypeRefs, OPERATOR_WITH_CLIENTS_CLIENT_TYPE_TEXT, OPERATOR_WITH_CLIENTS_FIRM_TYPE_TEXT, OPERATOR_WITH_CLIENTS_RELATIONSHIP_KEY, serviceRelationshipText, setConfigObjectProperty, setEngineCapabilityEnabled, setOrganizationTypeOwnsApplication, } from '@wildo-ai/application-creation-runtime';
|
|
37
37
|
import { BLUEPRINT_DEFINITION_FILE_NAME, BLUEPRINT_DEFINITIONS_DIRECTORY, BlueprintDeclarationFile, DatabaseEngine } from '@wildo-ai/platform-config-lib';
|
|
38
38
|
import { APPLICATION_LINE_DEFINITIONS, ApplicationLine, ApplicationOrganizationStructure } from '@wildo-ai/saas-specifications/application-creation';
|
|
39
39
|
import { SaasSkeletonService, SkeletonMode } from '../../services/application/saas-skeleton.service.js';
|
|
@@ -78,10 +78,10 @@ function writeNewFirmOrganizations(root) {
|
|
|
78
78
|
writeFileSync(filePath, content, 'utf8');
|
|
79
79
|
}
|
|
80
80
|
/** The definition a line's blueprint is packed from: it selects the line and every value its posture set on the base. */
|
|
81
|
-
function renderDefinition(line,
|
|
82
|
-
const declarations =
|
|
81
|
+
function renderDefinition(line, postureDeclarations) {
|
|
82
|
+
const declarations = postureDeclarations.length === 0
|
|
83
83
|
? ''
|
|
84
|
-
: `\n declarations: [\n${
|
|
84
|
+
: `\n declarations: [\n${postureDeclarations.map((declaration) => ` { file: '${declaration.file}', ${declaration.declaration === undefined ? '' : `declaration: '${declaration.declaration}', `}path: ${JSON.stringify(declaration.path).replaceAll('"', "'")} },`).join('\n')}\n ],`;
|
|
85
85
|
return `import { type BlueprintDefinitionInput } from '@wildo-ai/platform-config-lib';
|
|
86
86
|
|
|
87
87
|
export const blueprintDefinition = {
|
|
@@ -126,12 +126,12 @@ export async function generateFrameworkBlueprint(input) {
|
|
|
126
126
|
const plan = deriveEngineCapabilityPlan({ primaryScope: decidedTenancy, businessModel: undefined, elicitationAnswers: [], applicationLine: input.line });
|
|
127
127
|
for (const change of plan.engineCapabilityChanges) {
|
|
128
128
|
setEngineCapabilityEnabled({ applicationRoot: root, capability: change.capability, enabled: true });
|
|
129
|
-
declarationPaths.push(['engineCapabilities', `EngineCapability.${change.capability}`, 'enabled']);
|
|
129
|
+
declarationPaths.push({ file: BlueprintDeclarationFile.SAAS_CONFIG, path: ['engineCapabilities', `EngineCapability.${change.capability}`, 'enabled'] });
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
if (definition.organizationStructure === ApplicationOrganizationStructure.OPERATOR_WITH_CLIENTS) {
|
|
133
133
|
writeNewFirmOrganizations(root);
|
|
134
|
-
declarationPaths.push(['organizationTypes'], ['organizationRelationships']);
|
|
134
|
+
declarationPaths.push({ file: BlueprintDeclarationFile.SAAS_CONFIG, path: ['organizationTypes'] }, { file: BlueprintDeclarationFile.SAAS_CONFIG, path: ['organizationRelationships'] });
|
|
135
135
|
}
|
|
136
136
|
if (definition.organizationStructure === ApplicationOrganizationStructure.SINGLE_OWNER) {
|
|
137
137
|
// Exactly as the foundation executor applies it: on the single organization type the configuration declares.
|
|
@@ -140,7 +140,20 @@ export async function generateFrameworkBlueprint(input) {
|
|
|
140
140
|
throw new Error(`The base declares ${organizationTypeRefs.length} organization types (${organizationTypeRefs.join(', ')}); the ${input.line} line needs exactly one to own the application.`);
|
|
141
141
|
}
|
|
142
142
|
setOrganizationTypeOwnsApplication({ applicationRoot: root, organizationTypeRef: organizationTypeRefs[0], ownsApplication: true });
|
|
143
|
-
declarationPaths.push(['organizationTypes', organizationTypeRefs[0], 'ownsApplication']);
|
|
143
|
+
declarationPaths.push({ file: BlueprintDeclarationFile.SAAS_CONFIG, path: ['organizationTypes', organizationTypeRefs[0], 'ownsApplication'] });
|
|
144
|
+
}
|
|
145
|
+
/*
|
|
146
|
+
* The line's access posture (#3037), exactly as the foundation applies it: an internal tool's people are invited or
|
|
147
|
+
* provisioned, never self-registered. The corporate identity is the company's answer to the foundation interview,
|
|
148
|
+
* which a blueprint applied at `wildo init` has not been given, so only the registration mode is laid down here.
|
|
149
|
+
* Values equal to the base's are not selected (the blueprint does not restate them).
|
|
150
|
+
*/
|
|
151
|
+
const posture = applyLineAccessPosture({ applicationRoot: root, line: input.line });
|
|
152
|
+
if (posture.owed.length > 0)
|
|
153
|
+
throw new Error(`The ${input.line} line's access posture could not be laid on the base: ${posture.owed.join(' ')}`);
|
|
154
|
+
for (const write of posture.writes) {
|
|
155
|
+
if (write.changed)
|
|
156
|
+
declarationPaths.push({ file: write.file, ...(write.declaration === undefined ? {} : { declaration: write.declaration }), path: write.path });
|
|
144
157
|
}
|
|
145
158
|
// The defining application's own answer: the value `include.line` carries.
|
|
146
159
|
await recordBlueprintLineAnswer({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-blueprints.service.js","sourceRoot":"","sources":["../../../../../../src/services/blueprint/framework-blueprints.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACvH,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EACL,0BAA0B,EAC1B,kCAAkC,EAClC,sCAAsC,EACtC,oCAAoC,EACpC,sCAAsC,EACtC,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,kCAAkC,GACnC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC1J,OAAO,EAAE,4BAA4B,EAAE,eAAe,EAAE,gCAAgC,EAA0B,MAAM,oDAAoD,CAAC;AAC7K,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,uDAAuD,CAAC;AAC1G,OAAO,EAAE,yBAAyB,EAAE,MAAM,8DAA8D,CAAC;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,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC;QAClD,MAAM,SAAS,GAAG,IAAI,CAAC,aAAa,EAAE,uCAAuC,EAAE,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC;QAC7G,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,sCAAsC,CAAC,CAAC,CAAC;QACpF,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC1C,MAAM,MAAM,GAAG,MAAM,0BAA0B,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC;YAClG,oCAAoC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;YAC3D,MAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;YACpD,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YAClD,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;QAC9C,CAAC;gBAAS,CAAC;YACT,MAAM,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["/**\n * The blueprints the FRAMEWORK ships: one per application line, `wildo/<line>` (#2863).\n *\n * A line's static posture (what an application of that kind is before any domain exists) used to have one consumer:\n * the foundation executor, which applies it after `wildo init`, once the creator has answered the line question. A\n * blueprint is applied AT `wildo init`, before any boot. So the framework packs one blueprint per line, and an\n * application created from it (or from a corporate blueprint layered on it) starts with its line answered and its\n * posture in place.\n *\n * ## One source for the posture\n *\n * The posture is the line's `ApplicationLineDefinition`, read here exactly as the executor reads it:\n * its organization structure (a single owner marks the base's single type `ownsApplication` through the same\n * `setOrganizationTypeOwnsApplication` the executor calls; an operator with clients writes a firm type, a client type\n * and the `service` relationship, #2305), its decided tenancy (ORGANIZATIONS through the foundation's own derivation)\n * and its line. Billing and marketing email are off on every line because\n * the base declares them off and nothing on the line turns them on; a value equal to the base's is not exported, so\n * the blueprint does not restate them. A posture member added to the definition is a change to this generator, and\n * the currency test (`framework-blueprints.test.ts`) fails until the committed artifacts are regenerated.\n *\n * ## Values come from a defining application, like every blueprint's\n *\n * Nothing here writes a manifest by hand. The generator scaffolds the base in a scratch directory, applies the\n * posture, answers the line question there, writes a definition that SELECTS those values, and packs it with the\n * same exporter and reproduction proof an application author uses (decision D5).\n *\n * ## Where they live\n *\n * Committed under `templates/saas/blueprints/<name>/`, inside the framework assets, which reach both audiences: a\n * framework checkout, and the templates the npm-installed CLI ships. `wildo init --blueprint wildo/<name>` reads\n * them there, and `wildo blueprint pack` finds them as a lower layer by id.\n */\n\nimport { cpSync, existsSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';\nimport { tmpdir } from 'node:os';\nimport { dirname, join } from 'node:path';\nimport {\n deriveEngineCapabilityPlan,\n listSaasConfigOrganizationTypeRefs,\n OPERATOR_WITH_CLIENTS_CLIENT_TYPE_TEXT,\n OPERATOR_WITH_CLIENTS_FIRM_TYPE_TEXT,\n OPERATOR_WITH_CLIENTS_RELATIONSHIP_KEY,\n serviceRelationshipText,\n setConfigObjectProperty,\n setEngineCapabilityEnabled,\n setOrganizationTypeOwnsApplication,\n} from '@wildo-ai/application-creation-runtime';\nimport { BLUEPRINT_DEFINITION_FILE_NAME, BLUEPRINT_DEFINITIONS_DIRECTORY, BlueprintDeclarationFile, DatabaseEngine } from '@wildo-ai/platform-config-lib';\nimport { APPLICATION_LINE_DEFINITIONS, ApplicationLine, ApplicationOrganizationStructure, DomainPlanTenancyModel } from '@wildo-ai/saas-specifications/application-creation';\nimport { SaasSkeletonService, SkeletonMode } from '~wildo-cli/services/application/saas-skeleton.service';\nimport { installValidationWorkflow } from '~wildo-cli/services/deployment/ci-workflow-generator.service';\nimport { BLUEPRINT_MANIFEST_FILE_NAME } from '@wildo-ai/platform-config-lib';\nimport { listFilesRecursively } from './blueprint-artifact.service';\nimport { FRAMEWORK_BLUEPRINT_VERSION, FRAMEWORK_BLUEPRINTS_RELATIVE_DIRECTORY, frameworkBlueprintId, frameworkBlueprintName, shippedFrameworkBlueprintIds } from './framework-blueprint-catalog.service';\nimport { packBlueprint, type BlueprintPackReport } from './blueprint-export.service';\nimport { recordBlueprintLineAnswer } from './blueprint-line.service';\n\n/** The identity of the scratch application a framework blueprint is packed from. Carried files have none, so it never reaches an application. */\nconst DEFINING_IDENTITY = { slug: 'wildo-line-posture', displayName: 'Wildo Line Posture' } as const;\n\n/**\n * The organizations of an operator serving its clients (#2305), written into the scratch defining application: the\n * shape Wonder Ledger runs, without its own roles. `firm` owns the application (seeded for the first administrator, its\n * staff invited); `client` is created when a member registers; the `service` relationship lets the firm represent a\n * client that grants it, conferring the representative role, which the client therefore offers. The shapes are the\n * runtime's, the ones an existing application acquires beside its own types (#2968), so both start from one source.\n */\nconst OPERATOR_WITH_CLIENTS_ORGANIZATION_TYPES = `{\n firm: ${OPERATOR_WITH_CLIENTS_FIRM_TYPE_TEXT},\n client: ${OPERATOR_WITH_CLIENTS_CLIENT_TYPE_TEXT},\n }`;\nconst OPERATOR_WITH_CLIENTS_RELATIONSHIPS = `{\n ${OPERATOR_WITH_CLIENTS_RELATIONSHIP_KEY}: ${serviceRelationshipText('firm', ['client'])},\n }`;\nconst BASE_MODELS_IMPORT = \"import { EngineCapability } from '@wildo-ai/saas-models';\";\n\n/**\n * Write a NEW firm's structure into the scratch defining application: it REPLACES the base's types, which only a scratch\n * application may do. An existing application acquires the same shapes additively through the runtime's\n * `layDownOperatorWithClients` instead (#2968). The import is merged into the base's `EngineCapability` import rather\n * than added beside it, which keeps the committed blueprints byte-identical.\n */\nfunction writeNewFirmOrganizations(root: string): void {\n const filePath = join(root, BlueprintDeclarationFile.SAAS_CONFIG);\n let content = readFileSync(filePath, 'utf8');\n if (!content.includes(BASE_MODELS_IMPORT)) {\n throw new Error(`The base ${BlueprintDeclarationFile.SAAS_CONFIG} no longer imports \\`${BASE_MODELS_IMPORT}\\` as the service-firm posture expects; update the generator.`);\n }\n content = content.replace(BASE_MODELS_IMPORT, \"import { CORE_ORG_ROLES, EngineCapability, OrganizationNameSource, TenantRecordVisibility } from '@wildo-ai/saas-models';\");\n content = setConfigObjectProperty({ filePath, content, target: { path: ['organizationTypes'] }, valueText: OPERATOR_WITH_CLIENTS_ORGANIZATION_TYPES }).newContent;\n content = setConfigObjectProperty({ filePath, content, target: { path: ['organizationRelationships'] }, valueText: OPERATOR_WITH_CLIENTS_RELATIONSHIPS, createIfMissing: {} }).newContent;\n writeFileSync(filePath, content, 'utf8');\n}\n\n/** The definition a line's blueprint is packed from: it selects the line and every value its posture set on the base. */\nfunction renderDefinition(line: ApplicationLine, declarationPaths: readonly (readonly string[])[]): string {\n const declarations = declarationPaths.length === 0\n ? ''\n : `\\n declarations: [\\n${declarationPaths.map((path) => ` { file: '${BlueprintDeclarationFile.SAAS_CONFIG}', path: ${JSON.stringify(path).replaceAll('\"', \"'\")} },`).join('\\n')}\\n ],`;\n return `import { type BlueprintDefinitionInput } from '@wildo-ai/platform-config-lib';\n\nexport const blueprintDefinition = {\n id: '${frameworkBlueprintId(line)}',\n version: '${FRAMEWORK_BLUEPRINT_VERSION}',\n description: 'The ${line} application line, answered, with the posture the line gives an application before any domain exists.',\n include: {\n line: true,${declarations}\n },\n} satisfies BlueprintDefinitionInput;\n`;\n}\n\n/**\n * Pack the framework blueprint of one line, from a scratch defining application. Writes it to `outDirectory` when\n * given; returns the pack report either way.\n */\nexport async function generateFrameworkBlueprint(input: {\n readonly frameworkRoot: string;\n readonly line: ApplicationLine;\n readonly outDirectory?: string;\n}): Promise<BlueprintPackReport> {\n const scratch = mkdtempSync(join(tmpdir(), 'wildo-framework-blueprint-'));\n try {\n const root = join(scratch, DEFINING_IDENTITY.slug);\n // The base an application creator gets. No database is selected, so none is locked: the blueprint carries no `init`.\n SaasSkeletonService.scaffold(root, {\n name: DEFINING_IDENTITY.slug,\n frameworkPath: input.frameworkRoot,\n mode: SkeletonMode.APP_CREATOR,\n database: DatabaseEngine.POSTGRESQL,\n skipInstall: true,\n deliverCompanion: false,\n log: { info: () => undefined, warn: () => undefined },\n });\n installValidationWorkflow(root, input.frameworkRoot, { appName: DEFINING_IDENTITY.slug });\n\n const definition = APPLICATION_LINE_DEFINITIONS[input.line];\n const declarationPaths: string[][] = [];\n /*\n * The capabilities the line's own decisions imply, through the foundation's derivation (#1605): an internal tool's\n * tenancy is decided as organizations, so ORGANIZATIONS is on from the first boot. Only what needs no provider is\n * written here; a capability that needs one (transactional email) is enabled with its provider by the foundation or\n * the build lane, which can declare it.\n */\n const decidedTenancy = definition.decidedAnswers.find((decided) => decided.playbookRef === 'bottom_up.domain-plan' && decided.questionRef === 'tenancy')?.value;\n if (decidedTenancy !== undefined) {\n const plan = deriveEngineCapabilityPlan({ primaryScope: decidedTenancy as DomainPlanTenancyModel, businessModel: undefined, elicitationAnswers: [], applicationLine: input.line });\n for (const change of plan.engineCapabilityChanges) {\n setEngineCapabilityEnabled({ applicationRoot: root, capability: change.capability, enabled: true });\n declarationPaths.push(['engineCapabilities', `EngineCapability.${change.capability}`, 'enabled']);\n }\n }\n if (definition.organizationStructure === ApplicationOrganizationStructure.OPERATOR_WITH_CLIENTS) {\n writeNewFirmOrganizations(root);\n declarationPaths.push(['organizationTypes'], ['organizationRelationships']);\n }\n if (definition.organizationStructure === ApplicationOrganizationStructure.SINGLE_OWNER) {\n // Exactly as the foundation executor applies it: on the single organization type the configuration declares.\n const organizationTypeRefs = listSaasConfigOrganizationTypeRefs({ applicationRoot: root });\n if (organizationTypeRefs.length !== 1) {\n throw new Error(`The base declares ${organizationTypeRefs.length} organization types (${organizationTypeRefs.join(', ')}); the ${input.line} line needs exactly one to own the application.`);\n }\n setOrganizationTypeOwnsApplication({ applicationRoot: root, organizationTypeRef: organizationTypeRefs[0]!, ownsApplication: true });\n declarationPaths.push(['organizationTypes', organizationTypeRefs[0]!, 'ownsApplication']);\n }\n // The defining application's own answer: the value `include.line` carries.\n await recordBlueprintLineAnswer({\n applicationRoot: root,\n resolved: { line: input.line, declaredBy: { manifest: { id: frameworkBlueprintId(input.line), version: FRAMEWORK_BLUEPRINT_VERSION } } },\n answeredAt: new Date(0).toISOString(),\n });\n\n const name = frameworkBlueprintName(input.line);\n const definitionPath = join(root, BLUEPRINT_DEFINITIONS_DIRECTORY, name, BLUEPRINT_DEFINITION_FILE_NAME);\n mkdirSync(dirname(definitionPath), { recursive: true });\n writeFileSync(definitionPath, renderDefinition(input.line, declarationPaths), 'utf8');\n return await packBlueprint({\n applicationRoot: root,\n frameworkRoot: input.frameworkRoot,\n name,\n ...(input.outDirectory === undefined ? {} : { outDirectory: input.outDirectory }),\n });\n } finally {\n rmSync(scratch, { recursive: true, force: true });\n }\n}\n\n/**\n * Where a committed framework blueprint differs from what the generator produces now, ignoring the manifest's\n * `frameworkVersion` (it records the release a pack ran on, and moves on every release whether or not a posture did).\n * Empty when the committed one is current.\n */\nexport function diffFrameworkBlueprint(committedDirectory: string, generatedDirectory: string): string[] {\n if (!existsSync(join(committedDirectory, BLUEPRINT_MANIFEST_FILE_NAME))) return [`${committedDirectory} holds no packed blueprint`];\n const manifestOf = (directory: string): unknown => {\n const { frameworkVersion: _frameworkVersion, ...rest } = JSON.parse(readFileSync(join(directory, BLUEPRINT_MANIFEST_FILE_NAME), 'utf8')) as Record<string, unknown>;\n return rest;\n };\n const differences: string[] = [];\n if (JSON.stringify(manifestOf(committedDirectory)) !== JSON.stringify(manifestOf(generatedDirectory))) differences.push(BLUEPRINT_MANIFEST_FILE_NAME);\n const committedFiles = listFilesRecursively(join(committedDirectory, 'files'));\n const generatedFiles = listFilesRecursively(join(generatedDirectory, 'files'));\n for (const path of new Set([...committedFiles, ...generatedFiles])) {\n const committed = join(committedDirectory, 'files', path);\n const generated = join(generatedDirectory, 'files', path);\n if (!existsSync(committed) || !existsSync(generated) || !readFileSync(committed).equals(readFileSync(generated))) differences.push(`files/${path}`);\n }\n return differences.sort();\n}\n\n/**\n * Refuse a regenerated blueprint whose content changed while its version did not (#2863 review F5). The version is\n * what a corporate blueprint's `extends` range reads, so two different postures under one version would reach every\n * blueprint layered on it without its range deciding anything. The currency diff cannot see it: both sides read the\n * same {@link FRAMEWORK_BLUEPRINT_VERSION}.\n */\nexport function assertFrameworkBlueprintVersionMoved(committedDirectory: string, generatedDirectory: string): void {\n const manifestPath = join(committedDirectory, BLUEPRINT_MANIFEST_FILE_NAME);\n if (!existsSync(manifestPath)) return;\n const differences = diffFrameworkBlueprint(committedDirectory, generatedDirectory);\n const versionOf = (directory: string): string => (JSON.parse(readFileSync(join(directory, BLUEPRINT_MANIFEST_FILE_NAME), 'utf8')) as { version: string }).version;\n if (differences.length > 0 && versionOf(committedDirectory) === versionOf(generatedDirectory)) {\n throw new Error(\n `${committedDirectory} would change (${differences.join(', ')}) at the same version ${versionOf(committedDirectory)}. `\n + 'Raise FRAMEWORK_BLUEPRINT_VERSION in the same change, so the blueprints layered on it decide through their range whether they take the new posture.',\n );\n }\n}\n\n/** Directories under the framework blueprints home that no line of the vocabulary produces: left behind by a removed or renamed line. */\nexport function listOrphanedFrameworkBlueprintDirectories(frameworkRoot: string): string[] {\n const home = join(frameworkRoot, FRAMEWORK_BLUEPRINTS_RELATIVE_DIRECTORY);\n if (!existsSync(home)) return [];\n const produced = new Set(shippedFrameworkBlueprintIds().map((id) => id.split('/')[1]));\n return readdirSync(home, { withFileTypes: true }).filter((entry) => entry.isDirectory() && !produced.has(entry.name)).map((entry) => join(home, entry.name));\n}\n\n/**\n * Regenerate every line's framework blueprint into the framework assets. Total over the vocabulary: a line added\n * tomorrow gets one. Each is generated into scratch first and refused when its content moved without its version.\n */\nexport async function generateFrameworkBlueprints(frameworkRoot: string): Promise<ReadonlyArray<{ line: ApplicationLine; directory: string; report: BlueprintPackReport }>> {\n const generated: Array<{ line: ApplicationLine; directory: string; report: BlueprintPackReport }> = [];\n for (const line of Object.values(ApplicationLine)) {\n const directory = join(frameworkRoot, FRAMEWORK_BLUEPRINTS_RELATIVE_DIRECTORY, frameworkBlueprintName(line));\n const scratch = mkdtempSync(join(tmpdir(), 'wildo-framework-blueprint-candidate-'));\n try {\n const candidate = join(scratch, 'packed');\n const report = await generateFrameworkBlueprint({ frameworkRoot, line, outDirectory: candidate });\n assertFrameworkBlueprintVersionMoved(directory, candidate);\n rmSync(directory, { recursive: true, force: true });\n cpSync(candidate, directory, { recursive: true });\n generated.push({ line, directory, report });\n } finally {\n rmSync(scratch, { recursive: true, force: true });\n }\n }\n return generated;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"framework-blueprints.service.js","sourceRoot":"","sources":["../../../../src/services/blueprint/framework-blueprints.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACvH,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,kCAAkC,EAClC,sCAAsC,EACtC,oCAAoC,EACpC,sCAAsC,EACtC,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,kCAAkC,GACnC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC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GAAqF,EAAE,CAAC;IACvG,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC;QAClD,MAAM,SAAS,GAAG,IAAI,CAAC,aAAa,EAAE,uCAAuC,EAAE,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC;QAC7G,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,sCAAsC,CAAC,CAAC,CAAC;QACpF,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC1C,MAAM,MAAM,GAAG,MAAM,0BAA0B,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC;YAClG,oCAAoC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;YAC3D,MAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;YACpD,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YAClD,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;QAC9C,CAAC;gBAAS,CAAC;YACT,MAAM,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["/**\n * The blueprints the FRAMEWORK ships: one per application line, `wildo/<line>` (#2863).\n *\n * A line's static posture (what an application of that kind is before any domain exists) used to have one consumer:\n * the foundation executor, which applies it after `wildo init`, once the creator has answered the line question. A\n * blueprint is applied AT `wildo init`, before any boot. So the framework packs one blueprint per line, and an\n * application created from it (or from a corporate blueprint layered on it) starts with its line answered and its\n * posture in place.\n *\n * ## One source for the posture\n *\n * The posture is the line's `ApplicationLineDefinition`, read here exactly as the executor reads it:\n * its organization structure (a single owner marks the base's single type `ownsApplication` through the same\n * `setOrganizationTypeOwnsApplication` the executor calls; an operator with clients writes a firm type, a client type\n * and the `service` relationship, #2305), its decided tenancy (ORGANIZATIONS through the foundation's own derivation)\n * and its line. Billing and marketing email are off on every line because\n * the base declares them off and nothing on the line turns them on; a value equal to the base's is not exported, so\n * the blueprint does not restate them. A posture member added to the definition is a change to this generator, and\n * the currency test (`framework-blueprints.test.ts`) fails until the committed artifacts are regenerated.\n *\n * ## Values come from a defining application, like every blueprint's\n *\n * Nothing here writes a manifest by hand. The generator scaffolds the base in a scratch directory, applies the\n * posture, answers the line question there, writes a definition that SELECTS those values, and packs it with the\n * same exporter and reproduction proof an application author uses (decision D5).\n *\n * ## Where they live\n *\n * Committed under `templates/saas/blueprints/<name>/`, inside the framework assets, which reach both audiences: a\n * framework checkout, and the templates the npm-installed CLI ships. `wildo init --blueprint wildo/<name>` reads\n * them there, and `wildo blueprint pack` finds them as a lower layer by id.\n */\n\nimport { cpSync, existsSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';\nimport { tmpdir } from 'node:os';\nimport { dirname, join } from 'node:path';\nimport {\n applyLineAccessPosture,\n deriveEngineCapabilityPlan,\n listSaasConfigOrganizationTypeRefs,\n OPERATOR_WITH_CLIENTS_CLIENT_TYPE_TEXT,\n OPERATOR_WITH_CLIENTS_FIRM_TYPE_TEXT,\n OPERATOR_WITH_CLIENTS_RELATIONSHIP_KEY,\n serviceRelationshipText,\n setConfigObjectProperty,\n setEngineCapabilityEnabled,\n setOrganizationTypeOwnsApplication,\n} from '@wildo-ai/application-creation-runtime';\nimport { BLUEPRINT_DEFINITION_FILE_NAME, BLUEPRINT_DEFINITIONS_DIRECTORY, BlueprintDeclarationFile, DatabaseEngine } from '@wildo-ai/platform-config-lib';\nimport { APPLICATION_LINE_DEFINITIONS, ApplicationLine, ApplicationOrganizationStructure, DomainPlanTenancyModel } from '@wildo-ai/saas-specifications/application-creation';\nimport { SaasSkeletonService, SkeletonMode } from '~wildo-cli/services/application/saas-skeleton.service';\nimport { installValidationWorkflow } from '~wildo-cli/services/deployment/ci-workflow-generator.service';\nimport { BLUEPRINT_MANIFEST_FILE_NAME } from '@wildo-ai/platform-config-lib';\nimport { listFilesRecursively } from './blueprint-artifact.service';\nimport { FRAMEWORK_BLUEPRINT_VERSION, FRAMEWORK_BLUEPRINTS_RELATIVE_DIRECTORY, frameworkBlueprintId, frameworkBlueprintName, shippedFrameworkBlueprintIds } from './framework-blueprint-catalog.service';\nimport { packBlueprint, type BlueprintPackReport } from './blueprint-export.service';\nimport { recordBlueprintLineAnswer } from './blueprint-line.service';\n\n/** The identity of the scratch application a framework blueprint is packed from. Carried files have none, so it never reaches an application. */\nconst DEFINING_IDENTITY = { slug: 'wildo-line-posture', displayName: 'Wildo Line Posture' } as const;\n\n/**\n * The organizations of an operator serving its clients (#2305), written into the scratch defining application: the\n * shape Wonder Ledger runs, without its own roles. `firm` owns the application (seeded for the first administrator, its\n * staff invited); `client` is created when a member registers; the `service` relationship lets the firm represent a\n * client that grants it, conferring the representative role, which the client therefore offers. The shapes are the\n * runtime's, the ones an existing application acquires beside its own types (#2968), so both start from one source.\n */\nconst OPERATOR_WITH_CLIENTS_ORGANIZATION_TYPES = `{\n firm: ${OPERATOR_WITH_CLIENTS_FIRM_TYPE_TEXT},\n client: ${OPERATOR_WITH_CLIENTS_CLIENT_TYPE_TEXT},\n }`;\nconst OPERATOR_WITH_CLIENTS_RELATIONSHIPS = `{\n ${OPERATOR_WITH_CLIENTS_RELATIONSHIP_KEY}: ${serviceRelationshipText('firm', ['client'])},\n }`;\nconst BASE_MODELS_IMPORT = \"import { EngineCapability } from '@wildo-ai/saas-models';\";\n\n/**\n * Write a NEW firm's structure into the scratch defining application: it REPLACES the base's types, which only a scratch\n * application may do. An existing application acquires the same shapes additively through the runtime's\n * `layDownOperatorWithClients` instead (#2968). The import is merged into the base's `EngineCapability` import rather\n * than added beside it, which keeps the committed blueprints byte-identical.\n */\nfunction writeNewFirmOrganizations(root: string): void {\n const filePath = join(root, BlueprintDeclarationFile.SAAS_CONFIG);\n let content = readFileSync(filePath, 'utf8');\n if (!content.includes(BASE_MODELS_IMPORT)) {\n throw new Error(`The base ${BlueprintDeclarationFile.SAAS_CONFIG} no longer imports \\`${BASE_MODELS_IMPORT}\\` as the service-firm posture expects; update the generator.`);\n }\n content = content.replace(BASE_MODELS_IMPORT, \"import { CORE_ORG_ROLES, EngineCapability, OrganizationNameSource, TenantRecordVisibility } from '@wildo-ai/saas-models';\");\n content = setConfigObjectProperty({ filePath, content, target: { path: ['organizationTypes'] }, valueText: OPERATOR_WITH_CLIENTS_ORGANIZATION_TYPES }).newContent;\n content = setConfigObjectProperty({ filePath, content, target: { path: ['organizationRelationships'] }, valueText: OPERATOR_WITH_CLIENTS_RELATIONSHIPS, createIfMissing: {} }).newContent;\n writeFileSync(filePath, content, 'utf8');\n}\n\n/** One value a line's posture set on the base, as the blueprint definition selects it. */\ninterface PostureDeclaration {\n readonly file: BlueprintDeclarationFile;\n /** The top-level variable the path starts from; absent: the file's `export default`. */\n readonly declaration?: string;\n readonly path: readonly string[];\n}\n\n/** The definition a line's blueprint is packed from: it selects the line and every value its posture set on the base. */\nfunction renderDefinition(line: ApplicationLine, postureDeclarations: readonly PostureDeclaration[]): string {\n const declarations = postureDeclarations.length === 0\n ? ''\n : `\\n declarations: [\\n${postureDeclarations.map((declaration) => ` { file: '${declaration.file}', ${declaration.declaration === undefined ? '' : `declaration: '${declaration.declaration}', `}path: ${JSON.stringify(declaration.path).replaceAll('\"', \"'\")} },`).join('\\n')}\\n ],`;\n return `import { type BlueprintDefinitionInput } from '@wildo-ai/platform-config-lib';\n\nexport const blueprintDefinition = {\n id: '${frameworkBlueprintId(line)}',\n version: '${FRAMEWORK_BLUEPRINT_VERSION}',\n description: 'The ${line} application line, answered, with the posture the line gives an application before any domain exists.',\n include: {\n line: true,${declarations}\n },\n} satisfies BlueprintDefinitionInput;\n`;\n}\n\n/**\n * Pack the framework blueprint of one line, from a scratch defining application. Writes it to `outDirectory` when\n * given; returns the pack report either way.\n */\nexport async function generateFrameworkBlueprint(input: {\n readonly frameworkRoot: string;\n readonly line: ApplicationLine;\n readonly outDirectory?: string;\n}): Promise<BlueprintPackReport> {\n const scratch = mkdtempSync(join(tmpdir(), 'wildo-framework-blueprint-'));\n try {\n const root = join(scratch, DEFINING_IDENTITY.slug);\n // The base an application creator gets. No database is selected, so none is locked: the blueprint carries no `init`.\n SaasSkeletonService.scaffold(root, {\n name: DEFINING_IDENTITY.slug,\n frameworkPath: input.frameworkRoot,\n mode: SkeletonMode.APP_CREATOR,\n database: DatabaseEngine.POSTGRESQL,\n skipInstall: true,\n deliverCompanion: false,\n log: { info: () => undefined, warn: () => undefined },\n });\n installValidationWorkflow(root, input.frameworkRoot, { appName: DEFINING_IDENTITY.slug });\n\n const definition = APPLICATION_LINE_DEFINITIONS[input.line];\n const declarationPaths: PostureDeclaration[] = [];\n /*\n * The capabilities the line's own decisions imply, through the foundation's derivation (#1605): an internal tool's\n * tenancy is decided as organizations, so ORGANIZATIONS is on from the first boot. Only what needs no provider is\n * written here; a capability that needs one (transactional email) is enabled with its provider by the foundation or\n * the build lane, which can declare it.\n */\n const decidedTenancy = definition.decidedAnswers.find((decided) => decided.playbookRef === 'bottom_up.domain-plan' && decided.questionRef === 'tenancy')?.value;\n if (decidedTenancy !== undefined) {\n const plan = deriveEngineCapabilityPlan({ primaryScope: decidedTenancy as DomainPlanTenancyModel, businessModel: undefined, elicitationAnswers: [], applicationLine: input.line });\n for (const change of plan.engineCapabilityChanges) {\n setEngineCapabilityEnabled({ applicationRoot: root, capability: change.capability, enabled: true });\n declarationPaths.push({ file: BlueprintDeclarationFile.SAAS_CONFIG, path: ['engineCapabilities', `EngineCapability.${change.capability}`, 'enabled'] });\n }\n }\n if (definition.organizationStructure === ApplicationOrganizationStructure.OPERATOR_WITH_CLIENTS) {\n writeNewFirmOrganizations(root);\n declarationPaths.push({ file: BlueprintDeclarationFile.SAAS_CONFIG, path: ['organizationTypes'] }, { file: BlueprintDeclarationFile.SAAS_CONFIG, path: ['organizationRelationships'] });\n }\n if (definition.organizationStructure === ApplicationOrganizationStructure.SINGLE_OWNER) {\n // Exactly as the foundation executor applies it: on the single organization type the configuration declares.\n const organizationTypeRefs = listSaasConfigOrganizationTypeRefs({ applicationRoot: root });\n if (organizationTypeRefs.length !== 1) {\n throw new Error(`The base declares ${organizationTypeRefs.length} organization types (${organizationTypeRefs.join(', ')}); the ${input.line} line needs exactly one to own the application.`);\n }\n setOrganizationTypeOwnsApplication({ applicationRoot: root, organizationTypeRef: organizationTypeRefs[0]!, ownsApplication: true });\n declarationPaths.push({ file: BlueprintDeclarationFile.SAAS_CONFIG, path: ['organizationTypes', organizationTypeRefs[0]!, 'ownsApplication'] });\n }\n /*\n * The line's access posture (#3037), exactly as the foundation applies it: an internal tool's people are invited or\n * provisioned, never self-registered. The corporate identity is the company's answer to the foundation interview,\n * which a blueprint applied at `wildo init` has not been given, so only the registration mode is laid down here.\n * Values equal to the base's are not selected (the blueprint does not restate them).\n */\n const posture = applyLineAccessPosture({ applicationRoot: root, line: input.line });\n if (posture.owed.length > 0) throw new Error(`The ${input.line} line's access posture could not be laid on the base: ${posture.owed.join(' ')}`);\n for (const write of posture.writes) {\n if (write.changed) declarationPaths.push({ file: write.file, ...(write.declaration === undefined ? {} : { declaration: write.declaration }), path: write.path });\n }\n // The defining application's own answer: the value `include.line` carries.\n await recordBlueprintLineAnswer({\n applicationRoot: root,\n resolved: { line: input.line, declaredBy: { manifest: { id: frameworkBlueprintId(input.line), version: FRAMEWORK_BLUEPRINT_VERSION } } },\n answeredAt: new Date(0).toISOString(),\n });\n\n const name = frameworkBlueprintName(input.line);\n const definitionPath = join(root, BLUEPRINT_DEFINITIONS_DIRECTORY, name, BLUEPRINT_DEFINITION_FILE_NAME);\n mkdirSync(dirname(definitionPath), { recursive: true });\n writeFileSync(definitionPath, renderDefinition(input.line, declarationPaths), 'utf8');\n return await packBlueprint({\n applicationRoot: root,\n frameworkRoot: input.frameworkRoot,\n name,\n ...(input.outDirectory === undefined ? {} : { outDirectory: input.outDirectory }),\n });\n } finally {\n rmSync(scratch, { recursive: true, force: true });\n }\n}\n\n/**\n * Where a committed framework blueprint differs from what the generator produces now, ignoring the manifest's\n * `frameworkVersion` (it records the release a pack ran on, and moves on every release whether or not a posture did).\n * Empty when the committed one is current.\n */\nexport function diffFrameworkBlueprint(committedDirectory: string, generatedDirectory: string): string[] {\n if (!existsSync(join(committedDirectory, BLUEPRINT_MANIFEST_FILE_NAME))) return [`${committedDirectory} holds no packed blueprint`];\n const manifestOf = (directory: string): unknown => {\n const { frameworkVersion: _frameworkVersion, ...rest } = JSON.parse(readFileSync(join(directory, BLUEPRINT_MANIFEST_FILE_NAME), 'utf8')) as Record<string, unknown>;\n return rest;\n };\n const differences: string[] = [];\n if (JSON.stringify(manifestOf(committedDirectory)) !== JSON.stringify(manifestOf(generatedDirectory))) differences.push(BLUEPRINT_MANIFEST_FILE_NAME);\n const committedFiles = listFilesRecursively(join(committedDirectory, 'files'));\n const generatedFiles = listFilesRecursively(join(generatedDirectory, 'files'));\n for (const path of new Set([...committedFiles, ...generatedFiles])) {\n const committed = join(committedDirectory, 'files', path);\n const generated = join(generatedDirectory, 'files', path);\n if (!existsSync(committed) || !existsSync(generated) || !readFileSync(committed).equals(readFileSync(generated))) differences.push(`files/${path}`);\n }\n return differences.sort();\n}\n\n/**\n * Refuse a regenerated blueprint whose content changed while its version did not (#2863 review F5). The version is\n * what a corporate blueprint's `extends` range reads, so two different postures under one version would reach every\n * blueprint layered on it without its range deciding anything. The currency diff cannot see it: both sides read the\n * same {@link FRAMEWORK_BLUEPRINT_VERSION}.\n */\nexport function assertFrameworkBlueprintVersionMoved(committedDirectory: string, generatedDirectory: string): void {\n const manifestPath = join(committedDirectory, BLUEPRINT_MANIFEST_FILE_NAME);\n if (!existsSync(manifestPath)) return;\n const differences = diffFrameworkBlueprint(committedDirectory, generatedDirectory);\n const versionOf = (directory: string): string => (JSON.parse(readFileSync(join(directory, BLUEPRINT_MANIFEST_FILE_NAME), 'utf8')) as { version: string }).version;\n if (differences.length > 0 && versionOf(committedDirectory) === versionOf(generatedDirectory)) {\n throw new Error(\n `${committedDirectory} would change (${differences.join(', ')}) at the same version ${versionOf(committedDirectory)}. `\n + 'Raise FRAMEWORK_BLUEPRINT_VERSION in the same change, so the blueprints layered on it decide through their range whether they take the new posture.',\n );\n }\n}\n\n/** Directories under the framework blueprints home that no line of the vocabulary produces: left behind by a removed or renamed line. */\nexport function listOrphanedFrameworkBlueprintDirectories(frameworkRoot: string): string[] {\n const home = join(frameworkRoot, FRAMEWORK_BLUEPRINTS_RELATIVE_DIRECTORY);\n if (!existsSync(home)) return [];\n const produced = new Set(shippedFrameworkBlueprintIds().map((id) => id.split('/')[1]));\n return readdirSync(home, { withFileTypes: true }).filter((entry) => entry.isDirectory() && !produced.has(entry.name)).map((entry) => join(home, entry.name));\n}\n\n/**\n * Regenerate every line's framework blueprint into the framework assets. Total over the vocabulary: a line added\n * tomorrow gets one. Each is generated into scratch first and refused when its content moved without its version.\n */\nexport async function generateFrameworkBlueprints(frameworkRoot: string): Promise<ReadonlyArray<{ line: ApplicationLine; directory: string; report: BlueprintPackReport }>> {\n const generated: Array<{ line: ApplicationLine; directory: string; report: BlueprintPackReport }> = [];\n for (const line of Object.values(ApplicationLine)) {\n const directory = join(frameworkRoot, FRAMEWORK_BLUEPRINTS_RELATIVE_DIRECTORY, frameworkBlueprintName(line));\n const scratch = mkdtempSync(join(tmpdir(), 'wildo-framework-blueprint-candidate-'));\n try {\n const candidate = join(scratch, 'packed');\n const report = await generateFrameworkBlueprint({ frameworkRoot, line, outDirectory: candidate });\n assertFrameworkBlueprintVersionMoved(directory, candidate);\n rmSync(directory, { recursive: true, force: true });\n cpSync(candidate, directory, { recursive: true });\n generated.push({ line, directory, report });\n } finally {\n rmSync(scratch, { recursive: true, force: true });\n }\n }\n return generated;\n}\n"]}
|