@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
package/dist/src/services/application/degraded-registration-declaration-convergence.service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"degraded-registration-declaration-convergence.service.js","sourceRoot":"","sources":["../../../../../../src/services/application/degraded-registration-declaration-convergence.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAG1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAI5F;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAwB,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;AAUzG,MAAM,OAAO,iDAAiD;IAC5D;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAsD;QAC1E,IAAI,KAAK,CAAC,GAAG,CAAC,YAAY,KAAK,iBAAiB,CAAC,KAAK,EAAE,CAAC;YACvD,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,iDAAiD,CAAC,QAAQ,CAC9E,mCAAmC,EACnC,KAAK,CAAC,OAAO,EACb,GAAG,EAAE,CAAC,mBAAmB,CAAC,6BAA6B,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,WAAW,EAAE;YACpF,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;YAC5C,MAAM,EAAE,IAAI;SACb,CAAC,CACH,CAAC;QACF,IAAI,OAAO,CAAC,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvC,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,MAAM,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,oCAAoC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;QACjH,IAAI,eAA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AE,CAC7F,CAAC;QACJ,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * Converge the stored declaration when THIS run's registration could not.\n *\n * `POST /admin/apps/:slug/initialize` reapplies `wildo.saas.config.ts` onto the stored application\n * config on every call (`convergeStoredConfigOntoDeclaration` in apps-manager), and the bootstrap\n * postcondition (`ApplicationInitializationVerificationService`) relies on that: after a successful\n * registration, any drift is a convergence that failed to hold, and it stops the run.\n *\n * A DEGRADED registration breaks that premise. When the registration POST cannot reach\n * apps-manager the bootstrap writes runtime env from the credentials already on disk and never\n * calls `/initialize`, so nothing applied the authored declaration. The postcondition then reported\n * an ordinary edit — flipping one `engineCapabilities` boolean — as \"out of generation\" and tore down\n * `wildo local dev` (measured 2026-10-01 on app-creation-test-004, 6 of 9 starts degraded). The drift\n * was not a defect; the step that removes it had simply not run.\n *\n * So this runs the missing step, and only that step. It is the SAME projection `/initialize` would\n * have applied — `reapplyManagedDeclaration`, the one owner of the declaration projection — never a\n * second comparison. It is not a relaxation of the postcondition, which still runs afterwards and\n * still fails on anything this did not converge.\n *\n * Three refusals keep it to the case that is safe to do unattended:\n *\n * - **A non-local environment** is left alone. Applying a declaration there is a deployment act with\n * its own lane (`wildo config reapply-declaration --ci`), not a side effect of starting a process.\n * - **A slice that carries runtime principals** (`minions`, `workers`) refuses, for two different\n * reasons. A changed `minions` set makes the reapply reconcile those minions' backing-service\n * credentials (mint a new one's, revoke a removed one's), while this run has ALREADY written their\n * env from the credentials on disk — so a minion would be left holding a revoked secret, or none.\n * A new WORKER's secret is minted only by registration, which this run did not reach, so a reapply\n * could not give it one at all. Both need a start that reaches apps-manager from the beginning.\n * - **Anything else** (identity display fields, frontend services, engine capabilities, providers,\n * provider configurations, organization types, systems of record) is declaration-only: it changes\n * no credential and no infrastructure, which is the contract `config reapply-declaration` states.\n *\n * Rejected alternatives, so they are not re-derived:\n * - *Make the postcondition apply instead of preview.* It is pinned as a preview on purpose: a check\n * that repairs what it reports can never fail twice.\n * - *Prompt, or add a `--reapply-declaration` flag.* `/initialize` already applies the declaration\n * unconditionally on every non-degraded start, so asking here would make the degraded start the only\n * one that needs consent for the same write.\n * - *Retry the whole registration.* The env is already written from offline credentials by the time\n * apps-manager is seen answering; re-registering would mint a second credential generation behind it.\n */\n\nimport { WildoLocationType } from '@wildo-ai/platform-config-lib';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport type { AdminAppManagedDeclaration } from '@wildo-ai/platform-config-lib';\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport { AppBootstrapService } from '~wildo-cli/services/application/app-bootstrap.service';\nimport type { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\n\n/**\n * Stale slices whose reapply reconciles runtime-principal credentials.\n *\n * semantic-literal-boundary: these are apps-manager's `updatedFields` wire values (the declaration\n * slice names `reapplyManagedDeclaration` reports), which the response schema types as open strings.\n * They name the two declaration branches `enumerateDeclaredRuntimePrincipals` derives principals from.\n */\nexport const RUNTIME_PRINCIPAL_DECLARATION_SLICES: ReadonlySet<string> = new Set(['minions', 'workers']);\n\nexport interface DegradedRegistrationDeclarationConvergenceInput {\n env: PlatformEnvironmentConfiguration;\n credentials: PlatformEnvSecretsJson;\n appSlug: string;\n managedDeclaration: AdminAppManagedDeclaration;\n log: Logger;\n}\n\nexport class DegradedRegistrationDeclarationConvergenceService {\n /**\n * Apply the declaration-only slices a degraded registration left stale. Returns the slices applied\n * (empty when the stored config already matched, or when the environment is not local).\n *\n * @throws when a stale slice carries runtime principals — see the class JSDoc for why that cannot\n * be applied after this run's env was written.\n */\n static async converge(input: DegradedRegistrationDeclarationConvergenceInput): Promise<string[]> {\n if (input.env.locationType !== WildoLocationType.LOCAL) {\n return [];\n }\n\n const preview = await DegradedRegistrationDeclarationConvergenceService.withStep(\n 'compare it with the stored config',\n input.appSlug,\n () => AppBootstrapService.reapplyApplicationDeclaration(input.env, input.credentials, {\n appSlug: input.appSlug,\n managedDeclaration: input.managedDeclaration,\n dryRun: true,\n }),\n );\n if (preview.updatedFields.length === 0) {\n return [];\n }\n\n const principalSlices = preview.updatedFields.filter((field) => RUNTIME_PRINCIPAL_DECLARATION_SLICES.has(field));\n if (principalSlices.length > 0) {\n throw new Error(\n `The stored config for '${input.appSlug}' is behind wildo.saas.config.ts on `\n + `${preview.updatedFields.join(', ')}, and this run's registration did not reach apps-manager, so `\n + `nothing applied it. ${principalSlices.join(' and ')} change runtime principals, whose credentials `\n + 'are minted and revoked by registration — and this run has already written their env from the '\n + 'credentials on disk, so it cannot apply them. Start again with `wildo local dev` once apps-manager '\n + 'answers: registration applies the declaration and mints those credentials in the same step.',\n );\n }\n\n const applied = await DegradedRegistrationDeclarationConvergenceService.withStep(\n 'apply it to the stored config',\n input.appSlug,\n () => AppBootstrapService.reapplyApplicationDeclaration(input.env, input.credentials, {\n appSlug: input.appSlug,\n managedDeclaration: input.managedDeclaration,\n }),\n );\n input.log.info(\n ` Applied wildo.saas.config.ts to the stored config of '${input.appSlug}' (registration did not reach `\n + `apps-manager, so it had not been applied in this run) — ${applied.updatedFields.length} slice(s):`,\n );\n for (const field of applied.updatedFields) {\n input.log.info(` • ${field}`);\n }\n return applied.updatedFields;\n }\n\n /**\n * Name the step a failure came from. Before this service existed, the postcondition made the first\n * apps-manager call after a degraded registration and wrapped its error; a raw \"Unable to reach\n * apps-manager\" from here would no longer say what the start was doing when it stopped.\n */\n private static async withStep<T>(step: string, appSlug: string, call: () => Promise<T>): Promise<T> {\n try {\n return await call();\n } catch (error) {\n throw new Error(\n `Registration of '${appSlug}' did not reach apps-manager, so wildo.saas.config.ts had to be applied `\n + `separately — and the attempt to ${step} failed: ${ErrorUtils.extractErrorMessage(error)}`,\n );\n }\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"degraded-registration-declaration-convergence.service.js","sourceRoot":"","sources":["../../../../src/services/application/degraded-registration-declaration-convergence.service.ts"],"names":[],"mappings":"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E,GAAG,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,+DAA+D;kBAClG,uBAAuB,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,gDAAgD;kBACpG,+FAA+F;kBAC/F,qGAAqG;kBACrG,6FAA6F,CAChG,CAAC;QACJ,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,iDAAiD,CAAC,QAAQ,CAC9E,+BAA+B,EAC/B,KAAK,CAAC,OAAO,EACb,GAAG,EAAE,CAAC,mBAAmB,CAAC,6BAA6B,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,WAAW,EAAE;YACpF,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;SAC7C,CAAC,CACH,CAAC;QACF,KAAK,CAAC,GAAG,CAAC,IAAI,CACZ,2DAA2D,KAAK,CAAC,OAAO,gCAAgC;cACtG,2DAA2D,OAAO,CAAC,aAAa,CAAC,MAAM,YAAY,CACtG,CAAC;QACF,KAAK,MAAM,KAAK,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;YAC1C,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,KAAK,EAAE,CAAC,CAAC;QACnC,CAAC;QACD,OAAO,OAAO,CAAC,aAAa,CAAC;IAC/B,CAAC;IAED;;;;OAIG;IACK,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAI,IAAY,EAAE,OAAe,EAAE,IAAsB;QACpF,IAAI,CAAC;YACH,OAAO,MAAM,IAAI,EAAE,CAAC;QACtB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CACb,oBAAoB,OAAO,0EAA0E;kBACnG,mCAAmC,IAAI,YAAY,UAAU,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAC7F,CAAC;QACJ,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * Converge the stored declaration when THIS run's registration could not.\n *\n * `POST /admin/apps/:slug/initialize` reapplies `wildo.saas.config.ts` onto the stored application\n * config on every call (`convergeStoredConfigOntoDeclaration` in apps-manager), and the bootstrap\n * postcondition (`ApplicationInitializationVerificationService`) relies on that: after a successful\n * registration, any drift is a convergence that failed to hold, and it stops the run.\n *\n * A DEGRADED registration breaks that premise. When the registration POST cannot reach\n * apps-manager the bootstrap writes runtime env from the credentials already on disk and never\n * calls `/initialize`, so nothing applied the authored declaration. The postcondition then reported\n * an ordinary edit — flipping one `engineCapabilities` boolean — as \"out of generation\" and tore down\n * `wildo local dev` (measured 2026-10-01 on app-creation-test-004, 6 of 9 starts degraded). The drift\n * was not a defect; the step that removes it had simply not run.\n *\n * So this runs the missing step, and only that step. It is the SAME projection `/initialize` would\n * have applied — `reapplyManagedDeclaration`, the one owner of the declaration projection — never a\n * second comparison. It is not a relaxation of the postcondition, which still runs afterwards and\n * still fails on anything this did not converge.\n *\n * Three refusals keep it to the case that is safe to do unattended:\n *\n * - **A non-local environment** is left alone. Applying a declaration there is a deployment act with\n * its own lane (`wildo config reapply-declaration --ci`), not a side effect of starting a process.\n * - **A slice that carries runtime principals** (`minions`, `workers`) refuses, for two different\n * reasons. A changed `minions` set makes the reapply reconcile those minions' backing-service\n * credentials (mint a new one's, revoke a removed one's), while this run has ALREADY written their\n * env from the credentials on disk — so a minion would be left holding a revoked secret, or none.\n * A new WORKER's secret is minted only by registration, which this run did not reach, so a reapply\n * could not give it one at all. Both need a start that reaches apps-manager from the beginning.\n * - **Anything else** (identity display fields, frontend services, engine capabilities, providers,\n * provider configurations, organization types, systems of record) is declaration-only: it changes\n * no credential and no infrastructure, which is the contract `config reapply-declaration` states.\n *\n * Rejected alternatives, so they are not re-derived:\n * - *Make the postcondition apply instead of preview.* It is pinned as a preview on purpose: a check\n * that repairs what it reports can never fail twice.\n * - *Prompt, or add a `--reapply-declaration` flag.* `/initialize` already applies the declaration\n * unconditionally on every non-degraded start, so asking here would make the degraded start the only\n * one that needs consent for the same write.\n * - *Retry the whole registration.* The env is already written from offline credentials by the time\n * apps-manager is seen answering; re-registering would mint a second credential generation behind it.\n */\n\nimport { WildoLocationType } from '@wildo-ai/platform-config-lib';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport type { AdminAppManagedDeclaration } from '@wildo-ai/platform-config-lib';\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport { AppBootstrapService } from '~wildo-cli/services/application/app-bootstrap.service';\nimport type { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\n\n/**\n * Stale slices whose reapply reconciles runtime-principal credentials.\n *\n * semantic-literal-boundary: these are apps-manager's `updatedFields` wire values (the declaration\n * slice names `reapplyManagedDeclaration` reports), which the response schema types as open strings.\n * They name the two declaration branches `enumerateDeclaredRuntimePrincipals` derives principals from.\n */\nexport const RUNTIME_PRINCIPAL_DECLARATION_SLICES: ReadonlySet<string> = new Set(['minions', 'workers']);\n\nexport interface DegradedRegistrationDeclarationConvergenceInput {\n env: PlatformEnvironmentConfiguration;\n credentials: PlatformEnvSecretsJson;\n appSlug: string;\n managedDeclaration: AdminAppManagedDeclaration;\n log: Logger;\n}\n\nexport class DegradedRegistrationDeclarationConvergenceService {\n /**\n * Apply the declaration-only slices a degraded registration left stale. Returns the slices applied\n * (empty when the stored config already matched, or when the environment is not local).\n *\n * @throws when a stale slice carries runtime principals — see the class JSDoc for why that cannot\n * be applied after this run's env was written.\n */\n static async converge(input: DegradedRegistrationDeclarationConvergenceInput): Promise<string[]> {\n if (input.env.locationType !== WildoLocationType.LOCAL) {\n return [];\n }\n\n const preview = await DegradedRegistrationDeclarationConvergenceService.withStep(\n 'compare it with the stored config',\n input.appSlug,\n () => AppBootstrapService.reapplyApplicationDeclaration(input.env, input.credentials, {\n appSlug: input.appSlug,\n managedDeclaration: input.managedDeclaration,\n dryRun: true,\n }),\n );\n if (preview.updatedFields.length === 0) {\n return [];\n }\n\n const principalSlices = preview.updatedFields.filter((field) => RUNTIME_PRINCIPAL_DECLARATION_SLICES.has(field));\n if (principalSlices.length > 0) {\n throw new Error(\n `The stored config for '${input.appSlug}' is behind wildo.saas.config.ts on `\n + `${preview.updatedFields.join(', ')}, and this run's registration did not reach apps-manager, so `\n + `nothing applied it. ${principalSlices.join(' and ')} change runtime principals, whose credentials `\n + 'are minted and revoked by registration — and this run has already written their env from the '\n + 'credentials on disk, so it cannot apply them. Start again with `wildo local dev` once apps-manager '\n + 'answers: registration applies the declaration and mints those credentials in the same step.',\n );\n }\n\n const applied = await DegradedRegistrationDeclarationConvergenceService.withStep(\n 'apply it to the stored config',\n input.appSlug,\n () => AppBootstrapService.reapplyApplicationDeclaration(input.env, input.credentials, {\n appSlug: input.appSlug,\n managedDeclaration: input.managedDeclaration,\n }),\n );\n input.log.info(\n ` Applied wildo.saas.config.ts to the stored config of '${input.appSlug}' (registration did not reach `\n + `apps-manager, so it had not been applied in this run) — ${applied.updatedFields.length} slice(s):`,\n );\n for (const field of applied.updatedFields) {\n input.log.info(` • ${field}`);\n }\n return applied.updatedFields;\n }\n\n /**\n * Name the step a failure came from. Before this service existed, the postcondition made the first\n * apps-manager call after a degraded registration and wrapped its error; a raw \"Unable to reach\n * apps-manager\" from here would no longer say what the start was doing when it stopped.\n */\n private static async withStep<T>(step: string, appSlug: string, call: () => Promise<T>): Promise<T> {\n try {\n return await call();\n } catch (error) {\n throw new Error(\n `Registration of '${appSlug}' did not reach apps-manager, so wildo.saas.config.ts had to be applied `\n + `separately — and the attempt to ${step} failed: ${ErrorUtils.extractErrorMessage(error)}`,\n );\n }\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-orchestrator.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"dev-orchestrator.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/dev-orchestrator.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGtD,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4FAA4F;IAC5F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAqBD,eAAO,MAAM,sBAAsB;mCACF,MAAM,mBAAmB,MAAM,GAAG,MAAM;0BAkBjD,MAAM,GAAG,SAAS;qBAYjB,MAAM,OAAO,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;oBA4BvC,MAAM,WAAW,aAAa,OAAO,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAmGpF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-orchestrator.service.js","sourceRoot":"","sources":["../../../../../../src/services/application/dev-orchestrator.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAE1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAe7F,SAAS,UAAU,CAAC,UAAkB;IACpC,OAAO,gBAAgB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AACjD,CAAC;AAED,SAAS,kCAAkC,CACzC,OAA2B;IAE3B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,SAAS,G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AAC;gBAED,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;YACrB,CAAC,CAAC,CAAC;YACH,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;gBACxB,qBAAqB,EAAE,CAAC;gBACxB,IAAI,UAAU,CAAC,OAAO,CAAC;oBAAE,UAAU,CAAC,OAAO,CAAC,CAAC;gBAC7C,MAAM,CAAC,GAAG,CAAC,CAAC;YACd,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC","sourcesContent":["/**\n * DevOrchestratorService — spawn and track the local dev process.\n *\n * Current scope:\n * - resolve the runnable script from a package.json in the chosen working directory\n * - start the process with inherited stdio\n * - track the PID from the resolved scoped root so stop commands can target the\n * same app/workspace anchor that launched the dev process\n *\n * This service does NOT yet perform preflight orchestration like env sync or app registration.\n * Those steps belong to higher-level command orchestration.\n */\n\nimport { existsSync, readFileSync, writeFileSync, unlinkSync, mkdirSync } from 'fs';\nimport { dirname, join } from 'path';\nimport { SpawnUtils } from '~wildo-cli/infrastructure/process/spawn.utils';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\n\nexport interface DevRunOptions {\n envName?: string;\n /** Directory from which the dev command should be executed. Defaults to the scoped root. */\n workingDirectory?: string;\n /** Explicit script override. When absent, package.json scripts.dev is used if available. */\n script?: string;\n}\n\nexport interface DevStatus {\n running: boolean;\n pid?: number;\n}\n\nfunction getPidPath(scopedRoot: string): string {\n return EnvironmentPaths.devPidPath(scopedRoot);\n}\n\nfunction sanitizeNodeOptionsForChildRuntime(\n current: string | undefined,\n): string | undefined {\n if (!current) {\n return undefined;\n }\n\n const sanitized = current\n .replace(/(^|\\s)--conditions(?:=|\\s+)source(?=\\s|$)/g, ' ')\n .replace(/\\s+/g, ' ')\n .trim();\n\n return sanitized.length > 0 ? sanitized : '';\n}\n\nexport const DevOrchestratorService = {\n getDevScript(workingDirectory: string, explicitScript?: string): string {\n if (explicitScript) {\n return explicitScript;\n }\n\n const pkgPath = join(workingDirectory, 'package.json');\n if (existsSync(pkgPath)) {\n try {\n const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));\n const dev = pkg.scripts?.dev;\n if (typeof dev === 'string') return dev;\n } catch {\n // fall through\n }\n }\n return 'pnpm dev';\n },\n\n getStatus(scopedRoot: string): DevStatus {\n const pidPath = getPidPath(scopedRoot);\n if (!existsSync(pidPath)) return { running: false };\n try {\n const pid = parseInt(readFileSync(pidPath, 'utf-8').trim(), 10);\n if (Number.isNaN(pid)) return { running: false };\n return { running: SpawnUtils.isProcessRunning(pid), pid };\n } catch {\n return { running: false };\n }\n },\n\n async stop(scopedRoot: string, log: Logger): Promise<boolean> {\n const status = DevOrchestratorService.getStatus(scopedRoot);\n const pidPath = getPidPath(scopedRoot);\n if (!status.running || status.pid === undefined) {\n if (existsSync(pidPath)) unlinkSync(pidPath);\n log.info('Dev process is not running');\n return true;\n }\n try {\n await SpawnUtils.terminateProcessTree(status.pid, {\n gracefulSignal: 'SIGTERM',\n forceSignal: 'SIGKILL',\n timeoutMs: 10_000,\n });\n if (existsSync(pidPath)) unlinkSync(pidPath);\n log.success('Dev process stopped');\n return true;\n } catch (err) {\n if (!SpawnUtils.isProcessRunning(status.pid)) {\n if (existsSync(pidPath)) unlinkSync(pidPath);\n log.info('Dev process was not running (stale PID file removed)');\n return true;\n }\n log.error(`Failed to stop: ${ErrorUtils.extractErrorMessage(err)}`);\n return false;\n }\n },\n\n async run(scopedRoot: string, options: DevRunOptions, log: Logger): Promise<number> {\n const workingDirectory = options.workingDirectory ?? scopedRoot;\n const script = DevOrchestratorService.getDevScript(workingDirectory, options.script);\n log.info(` Running: ${script}\\n`);\n\n const parts = script.split(/\\s+/);\n const cmd = parts[0] ?? 'pnpm';\n const args = parts.slice(1);\n const finalArgs = args.length > 0 ? args : (cmd === 'pnpm' ? ['dev'] : cmd === 'npm' ? ['run', 'dev'] : []);\n\n const needsShell = script.includes('*') || script.includes('||') || script.includes('&&');\n const sanitizedNodeOptions = sanitizeNodeOptionsForChildRuntime(process.env.NODE_OPTIONS);\n const envOverrides =\n sanitizedNodeOptions !== process.env.NODE_OPTIONS\n ? { NODE_OPTIONS: sanitizedNodeOptions ?? '' }\n : undefined;\n const child = SpawnUtils.spawnWithEnv(cmd, finalArgs, {\n cwd: workingDirectory,\n env: envOverrides,\n inheritStdio: true,\n shell: needsShell,\n detached: SpawnUtils.shouldUseProcessGroups(),\n });\n\n const pidPath = getPidPath(scopedRoot);\n const pidDir = dirname(pidPath);\n if (child.pid) {\n if (!existsSync(pidDir)) mkdirSync(pidDir, { recursive: true });\n writeFileSync(pidPath, String(child.pid), 'utf-8');\n }\n\n return new Promise<number>((resolve, reject) => {\n let forwardedSignal: NodeJS.Signals | null = null;\n let isForwardingShutdown = false;\n\n const cleanupSignalHandlers = (): void => {\n process.off('SIGINT', onSigint);\n process.off('SIGTERM', onSigterm);\n };\n\n const forwardShutdown = (signal: NodeJS.Signals): void => {\n if (isForwardingShutdown || !child.pid) {\n return;\n }\n\n isForwardingShutdown = true;\n forwardedSignal = signal;\n void SpawnUtils.terminateProcessTree(child.pid, {\n gracefulSignal: signal,\n forceSignal: 'SIGKILL',\n timeoutMs: 10_000,\n }).catch(() => {\n // The close/error handlers below remain the source of truth for completion.\n });\n };\n\n const onSigint = (): void => {\n forwardShutdown('SIGINT');\n };\n\n const onSigterm = (): void => {\n forwardShutdown('SIGTERM');\n };\n\n process.on('SIGINT', onSigint);\n process.on('SIGTERM', onSigterm);\n\n child.on('close', (code, signal) => {\n cleanupSignalHandlers();\n if (existsSync(pidPath)) unlinkSync(pidPath);\n if (forwardedSignal === 'SIGINT' && (code === null || code === 0)) {\n resolve(130);\n return;\n }\n\n if (forwardedSignal === 'SIGTERM' && (code === null || code === 0)) {\n resolve(143);\n return;\n }\n\n if (signal === 'SIGINT') {\n resolve(130);\n return;\n }\n\n if (signal === 'SIGTERM') {\n resolve(143);\n return;\n }\n\n resolve(code ?? 0);\n });\n child.on('error', (err) => {\n cleanupSignalHandlers();\n if (existsSync(pidPath)) unlinkSync(pidPath);\n reject(err);\n });\n });\n },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"dev-orchestrator.service.js","sourceRoot":"","sources":["../../../../src/services/application/dev-orchestrator.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAE1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAe7F,SAAS,UAAU,CAAC,UAAkB;IACpC,OAAO,gBAAgB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AACjD,CAAC;AAED,SAAS,kCAAkC,CACzC,OAA2B;IAE3B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,SAAS,GAAG,OAAO;SACtB,OAAO,CAAC,4CAA4C,EAAE,GAAG,CAAC;SAC1D,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;SACpB,IAAI,EAAE,CAAC;IAEV,OAAO,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;AAC/C,CAAC;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,YAAY,CAAC,gBAAwB,EAAE,cAAuB;QAC5D,IAAI,cAAc,EAAE,CAAC;YACnB,OAAO,cAAc,CAAC;QACxB,CAAC;QAED,MAAM,OAA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\n *\n * Current scope:\n * - resolve the runnable script from a package.json in the chosen working directory\n * - start the process with inherited stdio\n * - track the PID from the resolved scoped root so stop commands can target the\n * same app/workspace anchor that launched the dev process\n *\n * This service does NOT yet perform preflight orchestration like env sync or app registration.\n * Those steps belong to higher-level command orchestration.\n */\n\nimport { existsSync, readFileSync, writeFileSync, unlinkSync, mkdirSync } from 'fs';\nimport { dirname, join } from 'path';\nimport { SpawnUtils } from '~wildo-cli/infrastructure/process/spawn.utils';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\n\nexport interface DevRunOptions {\n envName?: string;\n /** Directory from which the dev command should be executed. Defaults to the scoped root. */\n workingDirectory?: string;\n /** Explicit script override. When absent, package.json scripts.dev is used if available. */\n script?: string;\n}\n\nexport interface DevStatus {\n running: boolean;\n pid?: number;\n}\n\nfunction getPidPath(scopedRoot: string): string {\n return EnvironmentPaths.devPidPath(scopedRoot);\n}\n\nfunction sanitizeNodeOptionsForChildRuntime(\n current: string | undefined,\n): string | undefined {\n if (!current) {\n return undefined;\n }\n\n const sanitized = current\n .replace(/(^|\\s)--conditions(?:=|\\s+)source(?=\\s|$)/g, ' ')\n .replace(/\\s+/g, ' ')\n .trim();\n\n return sanitized.length > 0 ? sanitized : '';\n}\n\nexport const DevOrchestratorService = {\n getDevScript(workingDirectory: string, explicitScript?: string): string {\n if (explicitScript) {\n return explicitScript;\n }\n\n const pkgPath = join(workingDirectory, 'package.json');\n if (existsSync(pkgPath)) {\n try {\n const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));\n const dev = pkg.scripts?.dev;\n if (typeof dev === 'string') return dev;\n } catch {\n // fall through\n }\n }\n return 'pnpm dev';\n },\n\n getStatus(scopedRoot: string): DevStatus {\n const pidPath = getPidPath(scopedRoot);\n if (!existsSync(pidPath)) return { running: false };\n try {\n const pid = parseInt(readFileSync(pidPath, 'utf-8').trim(), 10);\n if (Number.isNaN(pid)) return { running: false };\n return { running: SpawnUtils.isProcessRunning(pid), pid };\n } catch {\n return { running: false };\n }\n },\n\n async stop(scopedRoot: string, log: Logger): Promise<boolean> {\n const status = DevOrchestratorService.getStatus(scopedRoot);\n const pidPath = getPidPath(scopedRoot);\n if (!status.running || status.pid === undefined) {\n if (existsSync(pidPath)) unlinkSync(pidPath);\n log.info('Dev process is not running');\n return true;\n }\n try {\n await SpawnUtils.terminateProcessTree(status.pid, {\n gracefulSignal: 'SIGTERM',\n forceSignal: 'SIGKILL',\n timeoutMs: 10_000,\n });\n if (existsSync(pidPath)) unlinkSync(pidPath);\n log.success('Dev process stopped');\n return true;\n } catch (err) {\n if (!SpawnUtils.isProcessRunning(status.pid)) {\n if (existsSync(pidPath)) unlinkSync(pidPath);\n log.info('Dev process was not running (stale PID file removed)');\n return true;\n }\n log.error(`Failed to stop: ${ErrorUtils.extractErrorMessage(err)}`);\n return false;\n }\n },\n\n async run(scopedRoot: string, options: DevRunOptions, log: Logger): Promise<number> {\n const workingDirectory = options.workingDirectory ?? scopedRoot;\n const script = DevOrchestratorService.getDevScript(workingDirectory, options.script);\n log.info(` Running: ${script}\\n`);\n\n const parts = script.split(/\\s+/);\n const cmd = parts[0] ?? 'pnpm';\n const args = parts.slice(1);\n const finalArgs = args.length > 0 ? args : (cmd === 'pnpm' ? ['dev'] : cmd === 'npm' ? ['run', 'dev'] : []);\n\n const needsShell = script.includes('*') || script.includes('||') || script.includes('&&');\n const sanitizedNodeOptions = sanitizeNodeOptionsForChildRuntime(process.env.NODE_OPTIONS);\n const envOverrides =\n sanitizedNodeOptions !== process.env.NODE_OPTIONS\n ? { NODE_OPTIONS: sanitizedNodeOptions ?? '' }\n : undefined;\n const child = SpawnUtils.spawnWithEnv(cmd, finalArgs, {\n cwd: workingDirectory,\n env: envOverrides,\n inheritStdio: true,\n shell: needsShell,\n detached: SpawnUtils.shouldUseProcessGroups(),\n });\n\n const pidPath = getPidPath(scopedRoot);\n const pidDir = dirname(pidPath);\n if (child.pid) {\n if (!existsSync(pidDir)) mkdirSync(pidDir, { recursive: true });\n writeFileSync(pidPath, String(child.pid), 'utf-8');\n }\n\n return new Promise<number>((resolve, reject) => {\n let forwardedSignal: NodeJS.Signals | null = null;\n let isForwardingShutdown = false;\n\n const cleanupSignalHandlers = (): void => {\n process.off('SIGINT', onSigint);\n process.off('SIGTERM', onSigterm);\n };\n\n const forwardShutdown = (signal: NodeJS.Signals): void => {\n if (isForwardingShutdown || !child.pid) {\n return;\n }\n\n isForwardingShutdown = true;\n forwardedSignal = signal;\n void SpawnUtils.terminateProcessTree(child.pid, {\n gracefulSignal: signal,\n forceSignal: 'SIGKILL',\n timeoutMs: 10_000,\n }).catch(() => {\n // The close/error handlers below remain the source of truth for completion.\n });\n };\n\n const onSigint = (): void => {\n forwardShutdown('SIGINT');\n };\n\n const onSigterm = (): void => {\n forwardShutdown('SIGTERM');\n };\n\n process.on('SIGINT', onSigint);\n process.on('SIGTERM', onSigterm);\n\n child.on('close', (code, signal) => {\n cleanupSignalHandlers();\n if (existsSync(pidPath)) unlinkSync(pidPath);\n if (forwardedSignal === 'SIGINT' && (code === null || code === 0)) {\n resolve(130);\n return;\n }\n\n if (forwardedSignal === 'SIGTERM' && (code === null || code === 0)) {\n resolve(143);\n return;\n }\n\n if (signal === 'SIGINT') {\n resolve(130);\n return;\n }\n\n if (signal === 'SIGTERM') {\n resolve(143);\n return;\n }\n\n resolve(code ?? 0);\n });\n child.on('error', (err) => {\n cleanupSignalHandlers();\n if (existsSync(pidPath)) unlinkSync(pidPath);\n reject(err);\n });\n });\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-schema-drift.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"dev-schema-drift.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/dev-schema-drift.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAaH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAS9D,iFAAiF;AACjF,oBAAY,qBAAqB;IAC/B,sGAAsG;IACtG,WAAW,gBAAgB;IAC3B,gGAAgG;IAChG,OAAO,YAAY;IACnB,sGAAsG;IACtG,mBAAmB,wBAAwB;IAC3C,8EAA8E;IAC9E,yBAAyB,8BAA8B;IACvD,qFAAqF;IACrF,qBAAqB,0BAA0B;IAC/C,qGAAqG;IACrG,sBAAsB,2BAA2B;IACjD,0EAA0E;IAC1E,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,sFAAsF;IACtF,OAAO,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAcD;;;;;;;GAOG;AACH,wBAAsB,+BAA+B,CAAC,KAAK,EAAE;IAC3D,GAAG,EAAE,cAAc,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAuGhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-schema-drift.service.js","sourceRoot":"","sources":["../../../../../../src/services/application/dev-schema-drift.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,kBAA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AqB,CAAC,sBAAsB;YACrD,eAAe,EAAE,cAAc;YAC/B,WAAW,EAAE,OAAO,CAAC,MAAM;YAC3B,OAAO,EACL,SAAS,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC,KAAK,OAAO,CAAC,MAAM,oCAAoC;kBACnG,GAAG,WAAW,oBAAoB,aAAa,yDAAyD;kBACxG,wGAAwG;kBACxG,qCAAqC;SAC1C,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,wBAAwB,CAAC;QAC5C,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,QAAQ;QACR,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,EAAE,CAAC;QACvD,GAAG,EAAE,KAAK,CAAC,GAAG;KACf,CAAC,CAAC;IAEH,OAAO;QACL,OAAO,EAAE,qBAAqB,CAAC,qBAAqB;QACpD,eAAe,EAAE,cAAc;QAC/B,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,OAAO,EACL,kCAAkC,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC,KAAK,OAAO,CAAC,MAAM,mBAAmB;cAC3G,eAAe,MAAM,CAAC,YAAY,uEAAuE;KAC9G,CAAC;AACJ,CAAC","sourcesContent":["/**\n * The DEVELOPMENT door of the migration system: notice schema drift while a human is present.\n *\n * ## The gap this closes\n *\n * Applying migrations has always been automatic — `applyStartupPostgresMigrations` runs at every\n * boot, and `applyAppSchemaMigrations` covers the first install. GENERATING them was CLI-only, and\n * nothing in the local loop ever ran it. So adding a resource produced this sequence: the developer\n * starts the stack, every service comes up, and the backend then dies at the physical-schema gate\n * with `table \"…\" does not exist (no migration has created it)` — an accurate message that names\n * neither `wildo db generate` nor the fact that a migration was ever owed. Measured 2026-08-28 on\n * `knowledgeDocuments`; the diagnosis cost far more than the fix.\n *\n * ## Why this is not simply \"generate at startup\"\n *\n * Two reasons the door is narrow rather than automatic-in-all-cases:\n *\n * 1. **The model is a BUILD ARTIFACT.** The plan is computed by importing\n * `backend-api/dist/modules-registry.backend.js`, and under `wildo local dev` the watchers that\n * maintain it have not started yet. Generating from a stale dist would author a migration for a\n * model nobody has — silently, into the source tree, and then apply it. A wrong migration applied\n * is strictly worse than the crash this exists to prevent, so a stale artifact SKIPS\n * (see `.claude/rules/staleness-presents-as-a-logic-defect.md`).\n * 2. **Only a SAFE change set may be applied unattended.** A `DESTRUCTIVE` change destroys rows and\n * the runner refuses it without a written acknowledgement; a `REQUIRES_DATA_MIGRATION` change is\n * a generated SKELETON whose own comments say it needs review. Applying either on the developer's\n * behalf would make this door the thing that loses their data. Those sets are still GENERATED —\n * having the draft is the useful half — and the start then stops so a human reads it.\n *\n * This mirrors what the ecosystem settled on: a development-only generate-and-apply step, run from\n * the tooling, that stops and asks whenever the change set is not trivially safe. Production keeps\n * the apply-only boot door, and nothing here ever runs there.\n */\n\nimport { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';\nimport { join } from 'path';\nimport {\n diffSchemaPlanLockfiles,\n parseSchemaPlanLockfile,\n renderMigrationSql,\n SchemaPlanChangeRisk,\n type SchemaPlanChange,\n type SchemaPlanLockfile,\n} from '@wildo-ai/saas-backend-lib';\nimport { describeCaughtError } from '@wildo-ai/saas-models';\nimport type { CommandContext } from '~wildo-cli/kernel/types';\nimport {\n assessCompiledModelCurrency,\n computeCurrentLockfileJson,\n LOCKFILE_RELATIVE_PATH,\n MIGRATIONS_RELATIVE_DIR,\n} from '~wildo-cli/commands/db/db-schema-plan.utils';\nimport { applyAppSchemaMigrations } from '~wildo-cli/services/application/app-schema-bootstrap.service';\n\n/** What the door decided. Every value is reported; only some stop the caller. */\nexport enum DevSchemaDriftOutcome {\n /** No migrations directory or no committed lockfile — this application has not adopted migrations. */\n NOT_ADOPTED = 'NOT_ADOPTED',\n /** The model matches the accepted plan. The overwhelmingly common case, and it says nothing. */\n IN_SYNC = 'IN_SYNC',\n /** The compiled model is older than its sources; generating from it would author yesterday's plan. */\n SKIPPED_STALE_MODEL = 'SKIPPED_STALE_MODEL',\n /** The model could not be computed at all (no dist, or the runner failed). */\n SKIPPED_MODEL_UNAVAILABLE = 'SKIPPED_MODEL_UNAVAILABLE',\n /** Drift exists, every change is SAFE, and the migration was written AND applied. */\n GENERATED_AND_APPLIED = 'GENERATED_AND_APPLIED',\n /** The draft was written, and deliberately NOT applied — it needs a human before it touches data. */\n GENERATED_NEEDS_REVIEW = 'GENERATED_NEEDS_REVIEW',\n /** Nothing was written: the change set is one only a human may author. */\n REFUSED = 'REFUSED',\n}\n\nexport interface DevSchemaDriftReport {\n outcome: DevSchemaDriftOutcome;\n /** One sentence for the operator. Empty for {@link DevSchemaDriftOutcome.IN_SYNC}. */\n message: string;\n /** The migration folder written, when one was. */\n migrationFolder?: string;\n changeCount?: number;\n}\n\n/** `20260828T145718` — the same spelling `wildo db generate` uses, so the two doors sort together. */\nfunction migrationTimestamp(now: Date): string {\n return now.toISOString().replace(/[-:]/g, '').replace(/\\..+$/, '');\n}\n\nfunction summarizeRisk(changes: readonly SchemaPlanChange[]): { destructive: number; dataMigration: number } {\n return {\n destructive: changes.filter((change) => change.risk === SchemaPlanChangeRisk.DESTRUCTIVE).length,\n dataMigration: changes.filter((change) => change.risk === SchemaPlanChangeRisk.REQUIRES_DATA_MIGRATION).length,\n };\n}\n\n/**\n * Reconcile the application's PostgreSQL schema with its model, for a LOCAL development start.\n *\n * Never throws for a drift decision — every outcome is reported, and the caller decides which ones\n * stop the start. Throwing would make an advisory check able to break a stack over a diagnosis.\n *\n * @param appliedBy recorded in the migration ledger; forensic value only.\n */\nexport async function reconcileDevelopmentSchemaDrift(input: {\n ctx: CommandContext;\n saasRoot: string;\n envName: string;\n appliedBy: string;\n log?: (message: string) => void;\n}): Promise<DevSchemaDriftReport> {\n const { ctx, saasRoot } = input;\n\n const migrationsDirectory = join(saasRoot, MIGRATIONS_RELATIVE_DIR);\n const lockfilePath = join(saasRoot, LOCKFILE_RELATIVE_PATH);\n if (!existsSync(migrationsDirectory) || !existsSync(lockfilePath)) {\n return { outcome: DevSchemaDriftOutcome.NOT_ADOPTED, message: '' };\n }\n\n if (!assessCompiledModelCurrency(saasRoot).current) {\n return {\n outcome: DevSchemaDriftOutcome.SKIPPED_STALE_MODEL,\n message:\n 'Schema-drift check SKIPPED: backend-api/dist is older than the sources it is built from, so the model '\n + 'it describes is not the one you edited. Nothing was generated — a migration authored from a stale '\n + 'artifact is worse than none. Once the watchers have caught up, run `wildo db diff` to check.',\n };\n }\n\n const currentJson = await computeCurrentLockfileJson(ctx, saasRoot);\n if (currentJson === undefined) {\n return {\n outcome: DevSchemaDriftOutcome.SKIPPED_MODEL_UNAVAILABLE,\n message: 'Schema-drift check SKIPPED: the current schema plan could not be computed (see the error above).',\n };\n }\n\n // `parseSchemaPlanLockfile` is a STRICT parse over the JSON TEXT — an unknown key anywhere\n // refuses, which is what stops a hand-edited lockfile from silently widening the accepted plan.\n const current: SchemaPlanLockfile = parseSchemaPlanLockfile(currentJson);\n const accepted: SchemaPlanLockfile = parseSchemaPlanLockfile(readFileSync(lockfilePath, 'utf-8'));\n\n /**\n * An ENGINE upgrade, not application drift — the mapping rules changed, so the diff is full of\n * changes nobody authored. `wildo db generate` has a deliberate door for it\n * (`--accept-planner-contract`) precisely because a human must choose between realizing the\n * physical consequences and absorbing a baseline. This door does not get to choose for them.\n */\n if (accepted.plannerContractVersion !== current.plannerContractVersion) {\n return {\n outcome: DevSchemaDriftOutcome.REFUSED,\n message:\n `Planner contract mismatch (lockfile ${accepted.plannerContractVersion}, engine ${current.plannerContractVersion}) — `\n + 'an ENGINE upgrade event, not application drift, and the choice between realizing it as a migration and '\n + 'absorbing the baseline is yours. Run `wildo db generate --accept-planner-contract --name engine-upgrade`, '\n + 'or `wildo db diff --update-lockfile` if the bump changed nothing physical for this application.',\n };\n }\n\n const changes = diffSchemaPlanLockfiles(accepted, current);\n if (changes.length === 0) return { outcome: DevSchemaDriftOutcome.IN_SYNC, message: '' };\n\n let migrationSql: string;\n try {\n migrationSql = renderMigrationSql({ changes, previous: accepted, next: current });\n } catch (error) {\n // A primary-key MOVE or DROP. The renderer's own reasoning is the remedy — surface it verbatim.\n return {\n outcome: DevSchemaDriftOutcome.REFUSED,\n message: `${describeCaughtError(error)}\\n Nothing was written.`,\n changeCount: changes.length,\n };\n }\n\n const folderName = `${migrationTimestamp(new Date())}_dev-auto`;\n const migrationDir = join(migrationsDirectory, folderName);\n mkdirSync(migrationDir, { recursive: true });\n writeFileSync(join(migrationDir, 'migration.sql'), migrationSql);\n // Written in the SAME step, exactly as `wildo db generate` does: a migration without the advanced\n // lockfile (or the reverse) is the two-artifact drift the whole design exists to prevent.\n writeFileSync(lockfilePath, currentJson);\n\n const relativeFolder = join(MIGRATIONS_RELATIVE_DIR, folderName);\n const { destructive, dataMigration } = summarizeRisk(changes);\n if (destructive > 0 || dataMigration > 0) {\n return {\n outcome: DevSchemaDriftOutcome.GENERATED_NEEDS_REVIEW,\n migrationFolder: relativeFolder,\n changeCount: changes.length,\n message:\n `Wrote ${join(relativeFolder, 'migration.sql')} (${changes.length} change(s)) and did NOT apply it: `\n + `${destructive} destructive and ${dataMigration} data-migration change(s) need you to read them first. `\n + 'A destructive migration also needs its acknowledgement annotation (the instructions are in the file). '\n + 'Review it, then `wildo db migrate`.',\n };\n }\n\n const report = await applyAppSchemaMigrations({\n envName: input.envName,\n saasRoot,\n appliedBy: input.appliedBy,\n reportMissing: (message) => input.log?.(` ${message}`),\n log: input.log,\n });\n\n return {\n outcome: DevSchemaDriftOutcome.GENERATED_AND_APPLIED,\n migrationFolder: relativeFolder,\n changeCount: changes.length,\n message:\n `Schema drift reconciled: wrote ${join(relativeFolder, 'migration.sql')} (${changes.length} SAFE change(s)) `\n + `and applied ${report.appliedCount} migration(s). Commit the migration folder AND the lockfile together.`,\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"dev-schema-drift.service.js","sourceRoot":"","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AAC,YAAY,EAAE,WAAW,CAAC,CAAC;IAEzC,MAAM,cAAc,GAAG,IAAI,CAAC,uBAAuB,EAAE,UAAU,CAAC,CAAC;IACjE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9D,IAAI,WAAW,GAAG,CAAC,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC;QACzC,OAAO;YACL,OAAO,EAAE,qBAAqB,CAAC,sBAAsB;YACrD,eAAe,EAAE,cAAc;YAC/B,WAAW,EAAE,OAAO,CAAC,MAAM;YAC3B,OAAO,EACL,SAAS,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC,KAAK,OAAO,CAAC,MAAM,oCAAoC;kBACnG,GAAG,WAAW,oBAAoB,aAAa,yDAAyD;kBACxG,wGAAwG;kBACxG,qCAAqC;SAC1C,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,wBAAwB,CAAC;QAC5C,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,QAAQ;QACR,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,EAAE,CAAC;QACvD,GAAG,EAAE,KAAK,CAAC,GAAG;KACf,CAAC,CAAC;IAEH,OAAO;QACL,OAAO,EAAE,qBAAqB,CAAC,qBAAqB;QACpD,eAAe,EAAE,cAAc;QAC/B,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,OAAO,EACL,kCAAkC,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC,KAAK,OAAO,CAAC,MAAM,mBAAmB;cAC3G,eAAe,MAAM,CAAC,YAAY,uEAAuE;KAC9G,CAAC;AACJ,CAAC","sourcesContent":["/**\n * The DEVELOPMENT door of the migration system: notice schema drift while a human is present.\n *\n * ## The gap this closes\n *\n * Applying migrations has always been automatic — `applyStartupPostgresMigrations` runs at every\n * boot, and `applyAppSchemaMigrations` covers the first install. GENERATING them was CLI-only, and\n * nothing in the local loop ever ran it. So adding a resource produced this sequence: the developer\n * starts the stack, every service comes up, and the backend then dies at the physical-schema gate\n * with `table \"…\" does not exist (no migration has created it)` — an accurate message that names\n * neither `wildo db generate` nor the fact that a migration was ever owed. Measured 2026-08-28 on\n * `knowledgeDocuments`; the diagnosis cost far more than the fix.\n *\n * ## Why this is not simply \"generate at startup\"\n *\n * Two reasons the door is narrow rather than automatic-in-all-cases:\n *\n * 1. **The model is a BUILD ARTIFACT.** The plan is computed by importing\n * `backend-api/dist/modules-registry.backend.js`, and under `wildo local dev` the watchers that\n * maintain it have not started yet. Generating from a stale dist would author a migration for a\n * model nobody has — silently, into the source tree, and then apply it. A wrong migration applied\n * is strictly worse than the crash this exists to prevent, so a stale artifact SKIPS\n * (see `.claude/rules/staleness-presents-as-a-logic-defect.md`).\n * 2. **Only a SAFE change set may be applied unattended.** A `DESTRUCTIVE` change destroys rows and\n * the runner refuses it without a written acknowledgement; a `REQUIRES_DATA_MIGRATION` change is\n * a generated SKELETON whose own comments say it needs review. Applying either on the developer's\n * behalf would make this door the thing that loses their data. Those sets are still GENERATED —\n * having the draft is the useful half — and the start then stops so a human reads it.\n *\n * This mirrors what the ecosystem settled on: a development-only generate-and-apply step, run from\n * the tooling, that stops and asks whenever the change set is not trivially safe. Production keeps\n * the apply-only boot door, and nothing here ever runs there.\n */\n\nimport { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';\nimport { join } from 'path';\nimport {\n diffSchemaPlanLockfiles,\n parseSchemaPlanLockfile,\n renderMigrationSql,\n SchemaPlanChangeRisk,\n type SchemaPlanChange,\n type SchemaPlanLockfile,\n} from '@wildo-ai/saas-backend-lib';\nimport { describeCaughtError } from '@wildo-ai/saas-models';\nimport type { CommandContext } from '~wildo-cli/kernel/types';\nimport {\n assessCompiledModelCurrency,\n computeCurrentLockfileJson,\n LOCKFILE_RELATIVE_PATH,\n MIGRATIONS_RELATIVE_DIR,\n} from '~wildo-cli/commands/db/db-schema-plan.utils';\nimport { applyAppSchemaMigrations } from '~wildo-cli/services/application/app-schema-bootstrap.service';\n\n/** What the door decided. Every value is reported; only some stop the caller. */\nexport enum DevSchemaDriftOutcome {\n /** No migrations directory or no committed lockfile — this application has not adopted migrations. */\n NOT_ADOPTED = 'NOT_ADOPTED',\n /** The model matches the accepted plan. The overwhelmingly common case, and it says nothing. */\n IN_SYNC = 'IN_SYNC',\n /** The compiled model is older than its sources; generating from it would author yesterday's plan. */\n SKIPPED_STALE_MODEL = 'SKIPPED_STALE_MODEL',\n /** The model could not be computed at all (no dist, or the runner failed). */\n SKIPPED_MODEL_UNAVAILABLE = 'SKIPPED_MODEL_UNAVAILABLE',\n /** Drift exists, every change is SAFE, and the migration was written AND applied. */\n GENERATED_AND_APPLIED = 'GENERATED_AND_APPLIED',\n /** The draft was written, and deliberately NOT applied — it needs a human before it touches data. */\n GENERATED_NEEDS_REVIEW = 'GENERATED_NEEDS_REVIEW',\n /** Nothing was written: the change set is one only a human may author. */\n REFUSED = 'REFUSED',\n}\n\nexport interface DevSchemaDriftReport {\n outcome: DevSchemaDriftOutcome;\n /** One sentence for the operator. Empty for {@link DevSchemaDriftOutcome.IN_SYNC}. */\n message: string;\n /** The migration folder written, when one was. */\n migrationFolder?: string;\n changeCount?: number;\n}\n\n/** `20260828T145718` — the same spelling `wildo db generate` uses, so the two doors sort together. */\nfunction migrationTimestamp(now: Date): string {\n return now.toISOString().replace(/[-:]/g, '').replace(/\\..+$/, '');\n}\n\nfunction summarizeRisk(changes: readonly SchemaPlanChange[]): { destructive: number; dataMigration: number } {\n return {\n destructive: changes.filter((change) => change.risk === SchemaPlanChangeRisk.DESTRUCTIVE).length,\n dataMigration: changes.filter((change) => change.risk === SchemaPlanChangeRisk.REQUIRES_DATA_MIGRATION).length,\n };\n}\n\n/**\n * Reconcile the application's PostgreSQL schema with its model, for a LOCAL development start.\n *\n * Never throws for a drift decision — every outcome is reported, and the caller decides which ones\n * stop the start. Throwing would make an advisory check able to break a stack over a diagnosis.\n *\n * @param appliedBy recorded in the migration ledger; forensic value only.\n */\nexport async function reconcileDevelopmentSchemaDrift(input: {\n ctx: CommandContext;\n saasRoot: string;\n envName: string;\n appliedBy: string;\n log?: (message: string) => void;\n}): Promise<DevSchemaDriftReport> {\n const { ctx, saasRoot } = input;\n\n const migrationsDirectory = join(saasRoot, MIGRATIONS_RELATIVE_DIR);\n const lockfilePath = join(saasRoot, LOCKFILE_RELATIVE_PATH);\n if (!existsSync(migrationsDirectory) || !existsSync(lockfilePath)) {\n return { outcome: DevSchemaDriftOutcome.NOT_ADOPTED, message: '' };\n }\n\n if (!assessCompiledModelCurrency(saasRoot).current) {\n return {\n outcome: DevSchemaDriftOutcome.SKIPPED_STALE_MODEL,\n message:\n 'Schema-drift check SKIPPED: backend-api/dist is older than the sources it is built from, so the model '\n + 'it describes is not the one you edited. Nothing was generated — a migration authored from a stale '\n + 'artifact is worse than none. Once the watchers have caught up, run `wildo db diff` to check.',\n };\n }\n\n const currentJson = await computeCurrentLockfileJson(ctx, saasRoot);\n if (currentJson === undefined) {\n return {\n outcome: DevSchemaDriftOutcome.SKIPPED_MODEL_UNAVAILABLE,\n message: 'Schema-drift check SKIPPED: the current schema plan could not be computed (see the error above).',\n };\n }\n\n // `parseSchemaPlanLockfile` is a STRICT parse over the JSON TEXT — an unknown key anywhere\n // refuses, which is what stops a hand-edited lockfile from silently widening the accepted plan.\n const current: SchemaPlanLockfile = parseSchemaPlanLockfile(currentJson);\n const accepted: SchemaPlanLockfile = parseSchemaPlanLockfile(readFileSync(lockfilePath, 'utf-8'));\n\n /**\n * An ENGINE upgrade, not application drift — the mapping rules changed, so the diff is full of\n * changes nobody authored. `wildo db generate` has a deliberate door for it\n * (`--accept-planner-contract`) precisely because a human must choose between realizing the\n * physical consequences and absorbing a baseline. This door does not get to choose for them.\n */\n if (accepted.plannerContractVersion !== current.plannerContractVersion) {\n return {\n outcome: DevSchemaDriftOutcome.REFUSED,\n message:\n `Planner contract mismatch (lockfile ${accepted.plannerContractVersion}, engine ${current.plannerContractVersion}) — `\n + 'an ENGINE upgrade event, not application drift, and the choice between realizing it as a migration and '\n + 'absorbing the baseline is yours. Run `wildo db generate --accept-planner-contract --name engine-upgrade`, '\n + 'or `wildo db diff --update-lockfile` if the bump changed nothing physical for this application.',\n };\n }\n\n const changes = diffSchemaPlanLockfiles(accepted, current);\n if (changes.length === 0) return { outcome: DevSchemaDriftOutcome.IN_SYNC, message: '' };\n\n let migrationSql: string;\n try {\n migrationSql = renderMigrationSql({ changes, previous: accepted, next: current });\n } catch (error) {\n // A primary-key MOVE or DROP. The renderer's own reasoning is the remedy — surface it verbatim.\n return {\n outcome: DevSchemaDriftOutcome.REFUSED,\n message: `${describeCaughtError(error)}\\n Nothing was written.`,\n changeCount: changes.length,\n };\n }\n\n const folderName = `${migrationTimestamp(new Date())}_dev-auto`;\n const migrationDir = join(migrationsDirectory, folderName);\n mkdirSync(migrationDir, { recursive: true });\n writeFileSync(join(migrationDir, 'migration.sql'), migrationSql);\n // Written in the SAME step, exactly as `wildo db generate` does: a migration without the advanced\n // lockfile (or the reverse) is the two-artifact drift the whole design exists to prevent.\n writeFileSync(lockfilePath, currentJson);\n\n const relativeFolder = join(MIGRATIONS_RELATIVE_DIR, folderName);\n const { destructive, dataMigration } = summarizeRisk(changes);\n if (destructive > 0 || dataMigration > 0) {\n return {\n outcome: DevSchemaDriftOutcome.GENERATED_NEEDS_REVIEW,\n migrationFolder: relativeFolder,\n changeCount: changes.length,\n message:\n `Wrote ${join(relativeFolder, 'migration.sql')} (${changes.length} change(s)) and did NOT apply it: `\n + `${destructive} destructive and ${dataMigration} data-migration change(s) need you to read them first. `\n + 'A destructive migration also needs its acknowledgement annotation (the instructions are in the file). '\n + 'Review it, then `wildo db migrate`.',\n };\n }\n\n const report = await applyAppSchemaMigrations({\n envName: input.envName,\n saasRoot,\n appliedBy: input.appliedBy,\n reportMissing: (message) => input.log?.(` ${message}`),\n log: input.log,\n });\n\n return {\n outcome: DevSchemaDriftOutcome.GENERATED_AND_APPLIED,\n migrationFolder: relativeFolder,\n changeCount: changes.length,\n message:\n `Schema drift reconciled: wrote ${join(relativeFolder, 'migration.sql')} (${changes.length} SAFE change(s)) `\n + `and applied ${report.appliedCount} migration(s). Commit the migration folder AND the lockfile together.`,\n };\n}\n"]}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Seed the framework's COMPONENT label base into an application at `wildo init` and `wildo update` (#3230).
|
|
3
|
+
*
|
|
4
|
+
* ## Why at init, and not only at the first labels run
|
|
5
|
+
*
|
|
6
|
+
* The base (`templates/saas/i18n/engine`, harvested from Wonder Todos) holds English and French for every engine
|
|
7
|
+
* component: the app shell, the layouts, the fields, the auth screens. The companion's labellize run SEEDS it, and that
|
|
8
|
+
* run is the build plan's `build-task-labels-generation`, which waits on every resource specification, the milestones,
|
|
9
|
+
* the guidance and the app shell: one of the last tasks. So for the whole build (more than 40 hours on
|
|
10
|
+
* app-creation-test-007) every engine component showed raw label keys, although the words had shipped with the
|
|
11
|
+
* framework. Component words are application-INDEPENDENT (one unit per registered component, the same set in every
|
|
12
|
+
* application), so nothing a plan decides is needed to place them, and init can, exactly as it copies the email canon.
|
|
13
|
+
*
|
|
14
|
+
* Resource labels stay where they are: their key set depends on the capabilities and relationships the application
|
|
15
|
+
* plans, so they are seeded after planning, key by key (the companion's `seedPlannedResourceKeysFromFrameworkBase`).
|
|
16
|
+
*
|
|
17
|
+
* ## What this never does
|
|
18
|
+
*
|
|
19
|
+
* - **Overwrite.** A file that exists is the application's — generated, adopted or corrected by hand — and is left as
|
|
20
|
+
* it is. Only an ABSENT file is copied. Filling a missing KEY into an existing file is the labels run's job, because
|
|
21
|
+
* it fills only keys the plan still declares; done here it would put back keys the plan had dropped.
|
|
22
|
+
* - **Claim a locale the application does not serve.** Only the locales its backend configuration declares
|
|
23
|
+
* (`appPreferences.languages`, the default first) are seeded, by the same rule as the companion's
|
|
24
|
+
* `getCompanionEnabledLocaleCodes`. Declaring French later and running `wildo update` (or any labels run) seeds the
|
|
25
|
+
* French files, with no model call.
|
|
26
|
+
*
|
|
27
|
+
* A seeded file has no labels-lock entry, and that is the case the labels run already handles: a unit whose file
|
|
28
|
+
* answers every planned key is ADOPTED (its lock entry recorded, keys the plan no longer holds dropped), and one missing
|
|
29
|
+
* a key the engine has since declared falls through to generating that key alone.
|
|
30
|
+
*/
|
|
31
|
+
/** The base's bucket of ENGINE-RESOURCE labels: seeded after planning by the companion, never here. */
|
|
32
|
+
export declare const LABEL_BASE_PLAN_SEEDED_BUCKET: "resources";
|
|
33
|
+
/** Where the base sits in the framework's templates, and in an application's delivered templates. */
|
|
34
|
+
export declare const FRAMEWORK_LABEL_BASE_TEMPLATES_RELATIVE: "templates/saas/i18n/engine";
|
|
35
|
+
export declare const APPLICATION_DELIVERED_LABEL_BASE_RELATIVE: ".wildo-saas/templates/i18n/engine";
|
|
36
|
+
/** The backend's label tree, relative to the backend service root: the directory the backend scans at startup. */
|
|
37
|
+
export declare const BACKEND_LABELS_TREE_RELATIVE: "src/engine/i18n";
|
|
38
|
+
/** The backend configuration file the skeleton writes, relative to the backend service root. */
|
|
39
|
+
export declare const BACKEND_SAAS_CONFIG_RELATIVE: "src/saas-config.backend.ts";
|
|
40
|
+
/**
|
|
41
|
+
* The locales an application's backend configuration declares, its default first, read as TEXT from
|
|
42
|
+
* `saas-config.backend.ts` (the CLI cannot import the backend's configuration module).
|
|
43
|
+
*
|
|
44
|
+
* Reads the two declarations the companion reads: `defaultLanguage` and `enabledLanguages`, each written as
|
|
45
|
+
* `AvailableLanguage.<MEMBER>` or as a string literal. Answers `null` when the file is absent or declares no default
|
|
46
|
+
* this reading can see: seeding is then skipped rather than guessed, and the labels run seeds from the configuration it
|
|
47
|
+
* loads for real.
|
|
48
|
+
*/
|
|
49
|
+
export declare function readDeclaredApplicationLocales(backendRoot: string): string[] | null;
|
|
50
|
+
/** What one seeding pass did. */
|
|
51
|
+
export interface EngineLabelBaseSeedingResult {
|
|
52
|
+
/** Files copied, relative to the labels tree (`components/<slug>.<locale>.ts`). */
|
|
53
|
+
readonly seededFiles: readonly string[];
|
|
54
|
+
/** Base files for a declared locale the application already has: left untouched. */
|
|
55
|
+
readonly keptExisting: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Copy every component-label file of the base the application lacks, for its declared locales. Never overwrites.
|
|
59
|
+
*
|
|
60
|
+
* Every bucket of the base is seeded except {@link LABEL_BASE_PLAN_SEEDED_BUCKET}: the same split the companion's
|
|
61
|
+
* `seedFromFrameworkBase` makes, so init and the labels run agree on what is application-independent.
|
|
62
|
+
*/
|
|
63
|
+
export declare function seedEngineComponentLabelBase(input: {
|
|
64
|
+
/** The base: `<framework>/templates/saas/i18n/engine` or `<app>/.wildo-saas/templates/i18n/engine`. */
|
|
65
|
+
readonly labelBaseRoot: string;
|
|
66
|
+
/** The application's labels tree: `<backend>/src/engine/i18n`. */
|
|
67
|
+
readonly labelsTreeRoot: string;
|
|
68
|
+
readonly locales: readonly string[];
|
|
69
|
+
}): EngineLabelBaseSeedingResult;
|
|
70
|
+
/** Why a seeding pass did not run, when it did not. */
|
|
71
|
+
export declare enum EngineLabelBaseSeedingSkipReason {
|
|
72
|
+
/** No base where one was looked for: the framework's templates, or the application's delivered copy. */
|
|
73
|
+
NO_LABEL_BASE = "no-label-base",
|
|
74
|
+
/** The backend configuration declares no locale this reading can see. */
|
|
75
|
+
NO_DECLARED_LOCALE = "no-declared-locale"
|
|
76
|
+
}
|
|
77
|
+
/** Seed the base into the application's backend, reading its declared locales; or say why not. */
|
|
78
|
+
export declare function seedEngineComponentLabelBaseForBackend(input: {
|
|
79
|
+
readonly labelBaseRoot: string;
|
|
80
|
+
/** The backend service root (`<app>/backend-api`). */
|
|
81
|
+
readonly backendRoot: string;
|
|
82
|
+
}): EngineLabelBaseSeedingResult | {
|
|
83
|
+
readonly skipped: EngineLabelBaseSeedingSkipReason;
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=engine-label-base-seeding.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine-label-base-seeding.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/engine-label-base-seeding.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAOH,uGAAuG;AACvG,eAAO,MAAM,6BAA6B,EAAG,WAAoB,CAAC;AAElE,qGAAqG;AACrG,eAAO,MAAM,uCAAuC,EAAG,4BAAqC,CAAC;AAC7F,eAAO,MAAM,yCAAyC,EAAG,mCAA4C,CAAC;AAEtG,kHAAkH;AAClH,eAAO,MAAM,4BAA4B,EAAG,iBAA0B,CAAC;AAEvE,gGAAgG;AAChG,eAAO,MAAM,4BAA4B,EAAG,4BAAqC,CAAC;AAKlF;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAgBnF;AAED,iCAAiC;AACjC,MAAM,WAAW,4BAA4B;IAC3C,mFAAmF;IACnF,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,oFAAoF;IACpF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE;IAClD,uGAAuG;IACvG,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,kEAAkE;IAClE,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC,GAAG,4BAA4B,CAuB/B;AAED,uDAAuD;AACvD,oBAAY,gCAAgC;IAC1C,wGAAwG;IACxG,aAAa,kBAAkB;IAC/B,yEAAyE;IACzE,kBAAkB,uBAAuB;CAC1C;AAED,kGAAkG;AAClG,wBAAgB,sCAAsC,CAAC,KAAK,EAAE;IAC5D,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,sDAAsD;IACtD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B,GAAG,4BAA4B,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,gCAAgC,CAAA;CAAE,CASxF"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Seed the framework's COMPONENT label base into an application at `wildo init` and `wildo update` (#3230).
|
|
3
|
+
*
|
|
4
|
+
* ## Why at init, and not only at the first labels run
|
|
5
|
+
*
|
|
6
|
+
* The base (`templates/saas/i18n/engine`, harvested from Wonder Todos) holds English and French for every engine
|
|
7
|
+
* component: the app shell, the layouts, the fields, the auth screens. The companion's labellize run SEEDS it, and that
|
|
8
|
+
* run is the build plan's `build-task-labels-generation`, which waits on every resource specification, the milestones,
|
|
9
|
+
* the guidance and the app shell: one of the last tasks. So for the whole build (more than 40 hours on
|
|
10
|
+
* app-creation-test-007) every engine component showed raw label keys, although the words had shipped with the
|
|
11
|
+
* framework. Component words are application-INDEPENDENT (one unit per registered component, the same set in every
|
|
12
|
+
* application), so nothing a plan decides is needed to place them, and init can, exactly as it copies the email canon.
|
|
13
|
+
*
|
|
14
|
+
* Resource labels stay where they are: their key set depends on the capabilities and relationships the application
|
|
15
|
+
* plans, so they are seeded after planning, key by key (the companion's `seedPlannedResourceKeysFromFrameworkBase`).
|
|
16
|
+
*
|
|
17
|
+
* ## What this never does
|
|
18
|
+
*
|
|
19
|
+
* - **Overwrite.** A file that exists is the application's — generated, adopted or corrected by hand — and is left as
|
|
20
|
+
* it is. Only an ABSENT file is copied. Filling a missing KEY into an existing file is the labels run's job, because
|
|
21
|
+
* it fills only keys the plan still declares; done here it would put back keys the plan had dropped.
|
|
22
|
+
* - **Claim a locale the application does not serve.** Only the locales its backend configuration declares
|
|
23
|
+
* (`appPreferences.languages`, the default first) are seeded, by the same rule as the companion's
|
|
24
|
+
* `getCompanionEnabledLocaleCodes`. Declaring French later and running `wildo update` (or any labels run) seeds the
|
|
25
|
+
* French files, with no model call.
|
|
26
|
+
*
|
|
27
|
+
* A seeded file has no labels-lock entry, and that is the case the labels run already handles: a unit whose file
|
|
28
|
+
* answers every planned key is ADOPTED (its lock entry recorded, keys the plan no longer holds dropped), and one missing
|
|
29
|
+
* a key the engine has since declared falls through to generating that key alone.
|
|
30
|
+
*/
|
|
31
|
+
import { copyFileSync, existsSync, mkdirSync, readdirSync, readFileSync, statSync } from 'node:fs';
|
|
32
|
+
import { join } from 'node:path';
|
|
33
|
+
import { AvailableLanguage } from '@wildo-ai/presets-components-models';
|
|
34
|
+
import { blankSourceComments } from '@wildo-ai/saas-models/public-runtime';
|
|
35
|
+
/** The base's bucket of ENGINE-RESOURCE labels: seeded after planning by the companion, never here. */
|
|
36
|
+
export const LABEL_BASE_PLAN_SEEDED_BUCKET = 'resources';
|
|
37
|
+
/** Where the base sits in the framework's templates, and in an application's delivered templates. */
|
|
38
|
+
export const FRAMEWORK_LABEL_BASE_TEMPLATES_RELATIVE = 'templates/saas/i18n/engine';
|
|
39
|
+
export const APPLICATION_DELIVERED_LABEL_BASE_RELATIVE = '.wildo-saas/templates/i18n/engine';
|
|
40
|
+
/** The backend's label tree, relative to the backend service root: the directory the backend scans at startup. */
|
|
41
|
+
export const BACKEND_LABELS_TREE_RELATIVE = 'src/engine/i18n';
|
|
42
|
+
/** The backend configuration file the skeleton writes, relative to the backend service root. */
|
|
43
|
+
export const BACKEND_SAAS_CONFIG_RELATIVE = 'src/saas-config.backend.ts';
|
|
44
|
+
/** One per-unit label file name: `<slug>.<locale>.ts`, the shape the labels pipeline writes and the backend scans. */
|
|
45
|
+
const PER_UNIT_LABEL_FILE = /\.([a-z]{2}(?:-[A-Za-z]{2})?)\.ts$/u;
|
|
46
|
+
/**
|
|
47
|
+
* The locales an application's backend configuration declares, its default first, read as TEXT from
|
|
48
|
+
* `saas-config.backend.ts` (the CLI cannot import the backend's configuration module).
|
|
49
|
+
*
|
|
50
|
+
* Reads the two declarations the companion reads: `defaultLanguage` and `enabledLanguages`, each written as
|
|
51
|
+
* `AvailableLanguage.<MEMBER>` or as a string literal. Answers `null` when the file is absent or declares no default
|
|
52
|
+
* this reading can see: seeding is then skipped rather than guessed, and the labels run seeds from the configuration it
|
|
53
|
+
* loads for real.
|
|
54
|
+
*/
|
|
55
|
+
export function readDeclaredApplicationLocales(backendRoot) {
|
|
56
|
+
const configPath = join(backendRoot, BACKEND_SAAS_CONFIG_RELATIVE);
|
|
57
|
+
if (!existsSync(configPath))
|
|
58
|
+
return null;
|
|
59
|
+
const source = blankSourceComments(readFileSync(configPath, 'utf8'));
|
|
60
|
+
const languageOf = (expression) => {
|
|
61
|
+
const member = /^\s*AvailableLanguage\.([A-Z_]+)\s*$/u.exec(expression)?.[1];
|
|
62
|
+
if (member !== undefined)
|
|
63
|
+
return AvailableLanguage[member];
|
|
64
|
+
const literal = /^\s*(["'])([^"']+)\1\s*$/u.exec(expression)?.[2];
|
|
65
|
+
return literal !== undefined && Object.values(AvailableLanguage).includes(literal) ? literal : undefined;
|
|
66
|
+
};
|
|
67
|
+
const defaultExpression = /\bdefaultLanguage\s*:\s*([^,\n}]+)/u.exec(source)?.[1];
|
|
68
|
+
const primary = defaultExpression === undefined ? undefined : languageOf(defaultExpression);
|
|
69
|
+
if (primary === undefined)
|
|
70
|
+
return null;
|
|
71
|
+
const enabledList = /\benabledLanguages\s*:\s*\[([^\]]*)\]/u.exec(source)?.[1] ?? '';
|
|
72
|
+
const enabled = enabledList.split(',').map((entry) => languageOf(entry)).filter((locale) => locale !== undefined);
|
|
73
|
+
return [...new Set([primary, ...enabled])];
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Copy every component-label file of the base the application lacks, for its declared locales. Never overwrites.
|
|
77
|
+
*
|
|
78
|
+
* Every bucket of the base is seeded except {@link LABEL_BASE_PLAN_SEEDED_BUCKET}: the same split the companion's
|
|
79
|
+
* `seedFromFrameworkBase` makes, so init and the labels run agree on what is application-independent.
|
|
80
|
+
*/
|
|
81
|
+
export function seedEngineComponentLabelBase(input) {
|
|
82
|
+
const seededFiles = [];
|
|
83
|
+
let keptExisting = 0;
|
|
84
|
+
if (!existsSync(input.labelBaseRoot))
|
|
85
|
+
return { seededFiles, keptExisting };
|
|
86
|
+
const locales = new Set(input.locales);
|
|
87
|
+
for (const bucket of readdirSync(input.labelBaseRoot).sort()) {
|
|
88
|
+
if (bucket === LABEL_BASE_PLAN_SEEDED_BUCKET)
|
|
89
|
+
continue;
|
|
90
|
+
const bucketRoot = join(input.labelBaseRoot, bucket);
|
|
91
|
+
if (!statSync(bucketRoot).isDirectory())
|
|
92
|
+
continue;
|
|
93
|
+
for (const file of readdirSync(bucketRoot).sort()) {
|
|
94
|
+
const locale = PER_UNIT_LABEL_FILE.exec(file)?.[1];
|
|
95
|
+
if (locale === undefined || !locales.has(locale))
|
|
96
|
+
continue;
|
|
97
|
+
const target = join(input.labelsTreeRoot, bucket, file);
|
|
98
|
+
if (existsSync(target)) {
|
|
99
|
+
keptExisting += 1;
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
102
|
+
mkdirSync(join(input.labelsTreeRoot, bucket), { recursive: true });
|
|
103
|
+
copyFileSync(join(bucketRoot, file), target);
|
|
104
|
+
seededFiles.push(`${bucket}/${file}`);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return { seededFiles, keptExisting };
|
|
108
|
+
}
|
|
109
|
+
/** Why a seeding pass did not run, when it did not. */
|
|
110
|
+
export var EngineLabelBaseSeedingSkipReason;
|
|
111
|
+
(function (EngineLabelBaseSeedingSkipReason) {
|
|
112
|
+
/** No base where one was looked for: the framework's templates, or the application's delivered copy. */
|
|
113
|
+
EngineLabelBaseSeedingSkipReason["NO_LABEL_BASE"] = "no-label-base";
|
|
114
|
+
/** The backend configuration declares no locale this reading can see. */
|
|
115
|
+
EngineLabelBaseSeedingSkipReason["NO_DECLARED_LOCALE"] = "no-declared-locale";
|
|
116
|
+
})(EngineLabelBaseSeedingSkipReason || (EngineLabelBaseSeedingSkipReason = {}));
|
|
117
|
+
/** Seed the base into the application's backend, reading its declared locales; or say why not. */
|
|
118
|
+
export function seedEngineComponentLabelBaseForBackend(input) {
|
|
119
|
+
if (!existsSync(input.labelBaseRoot))
|
|
120
|
+
return { skipped: EngineLabelBaseSeedingSkipReason.NO_LABEL_BASE };
|
|
121
|
+
const locales = readDeclaredApplicationLocales(input.backendRoot);
|
|
122
|
+
if (locales === null)
|
|
123
|
+
return { skipped: EngineLabelBaseSeedingSkipReason.NO_DECLARED_LOCALE };
|
|
124
|
+
return seedEngineComponentLabelBase({
|
|
125
|
+
labelBaseRoot: input.labelBaseRoot,
|
|
126
|
+
labelsTreeRoot: join(input.backendRoot, BACKEND_LABELS_TREE_RELATIVE),
|
|
127
|
+
locales,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=engine-label-base-seeding.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine-label-base-seeding.service.js","sourceRoot":"","sources":["../../../../src/services/application/engine-label-base-seeding.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnG,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAE3E,uGAAuG;AACvG,MAAM,CAAC,MAAM,6BAA6B,GAAG,WAAoB,CAAC;AAElE,qGAAqG;AACrG,MAAM,CAAC,MAAM,uCAAuC,GAAG,4BAAqC,CAAC;AAC7F,MAAM,CAAC,MAAM,yCAAyC,GAAG,mCAA4C,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C,WAAW,EAAE,4BAA4B,CAAC;QACrE,OAAO;KACR,CAAC,CAAC;AACL,CAAC","sourcesContent":["/**\n * Seed the framework's COMPONENT label base into an application at `wildo init` and `wildo update` (#3230).\n *\n * ## Why at init, and not only at the first labels run\n *\n * The base (`templates/saas/i18n/engine`, harvested from Wonder Todos) holds English and French for every engine\n * component: the app shell, the layouts, the fields, the auth screens. The companion's labellize run SEEDS it, and that\n * run is the build plan's `build-task-labels-generation`, which waits on every resource specification, the milestones,\n * the guidance and the app shell: one of the last tasks. So for the whole build (more than 40 hours on\n * app-creation-test-007) every engine component showed raw label keys, although the words had shipped with the\n * framework. Component words are application-INDEPENDENT (one unit per registered component, the same set in every\n * application), so nothing a plan decides is needed to place them, and init can, exactly as it copies the email canon.\n *\n * Resource labels stay where they are: their key set depends on the capabilities and relationships the application\n * plans, so they are seeded after planning, key by key (the companion's `seedPlannedResourceKeysFromFrameworkBase`).\n *\n * ## What this never does\n *\n * - **Overwrite.** A file that exists is the application's — generated, adopted or corrected by hand — and is left as\n * it is. Only an ABSENT file is copied. Filling a missing KEY into an existing file is the labels run's job, because\n * it fills only keys the plan still declares; done here it would put back keys the plan had dropped.\n * - **Claim a locale the application does not serve.** Only the locales its backend configuration declares\n * (`appPreferences.languages`, the default first) are seeded, by the same rule as the companion's\n * `getCompanionEnabledLocaleCodes`. Declaring French later and running `wildo update` (or any labels run) seeds the\n * French files, with no model call.\n *\n * A seeded file has no labels-lock entry, and that is the case the labels run already handles: a unit whose file\n * answers every planned key is ADOPTED (its lock entry recorded, keys the plan no longer holds dropped), and one missing\n * a key the engine has since declared falls through to generating that key alone.\n */\n\nimport { copyFileSync, existsSync, mkdirSync, readdirSync, readFileSync, statSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { AvailableLanguage } from '@wildo-ai/presets-components-models';\nimport { blankSourceComments } from '@wildo-ai/saas-models/public-runtime';\n\n/** The base's bucket of ENGINE-RESOURCE labels: seeded after planning by the companion, never here. */\nexport const LABEL_BASE_PLAN_SEEDED_BUCKET = 'resources' as const;\n\n/** Where the base sits in the framework's templates, and in an application's delivered templates. */\nexport const FRAMEWORK_LABEL_BASE_TEMPLATES_RELATIVE = 'templates/saas/i18n/engine' as const;\nexport const APPLICATION_DELIVERED_LABEL_BASE_RELATIVE = '.wildo-saas/templates/i18n/engine' as const;\n\n/** The backend's label tree, relative to the backend service root: the directory the backend scans at startup. */\nexport const BACKEND_LABELS_TREE_RELATIVE = 'src/engine/i18n' as const;\n\n/** The backend configuration file the skeleton writes, relative to the backend service root. */\nexport const BACKEND_SAAS_CONFIG_RELATIVE = 'src/saas-config.backend.ts' as const;\n\n/** One per-unit label file name: `<slug>.<locale>.ts`, the shape the labels pipeline writes and the backend scans. */\nconst PER_UNIT_LABEL_FILE = /\\.([a-z]{2}(?:-[A-Za-z]{2})?)\\.ts$/u;\n\n/**\n * The locales an application's backend configuration declares, its default first, read as TEXT from\n * `saas-config.backend.ts` (the CLI cannot import the backend's configuration module).\n *\n * Reads the two declarations the companion reads: `defaultLanguage` and `enabledLanguages`, each written as\n * `AvailableLanguage.<MEMBER>` or as a string literal. Answers `null` when the file is absent or declares no default\n * this reading can see: seeding is then skipped rather than guessed, and the labels run seeds from the configuration it\n * loads for real.\n */\nexport function readDeclaredApplicationLocales(backendRoot: string): string[] | null {\n const configPath = join(backendRoot, BACKEND_SAAS_CONFIG_RELATIVE);\n if (!existsSync(configPath)) return null;\n const source = blankSourceComments(readFileSync(configPath, 'utf8'));\n const languageOf = (expression: string): string | undefined => {\n const member = /^\\s*AvailableLanguage\\.([A-Z_]+)\\s*$/u.exec(expression)?.[1];\n if (member !== undefined) return (AvailableLanguage as Record<string, string>)[member];\n const literal = /^\\s*([\"'])([^\"']+)\\1\\s*$/u.exec(expression)?.[2];\n return literal !== undefined && (Object.values(AvailableLanguage) as string[]).includes(literal) ? literal : undefined;\n };\n const defaultExpression = /\\bdefaultLanguage\\s*:\\s*([^,\\n}]+)/u.exec(source)?.[1];\n const primary = defaultExpression === undefined ? undefined : languageOf(defaultExpression);\n if (primary === undefined) return null;\n const enabledList = /\\benabledLanguages\\s*:\\s*\\[([^\\]]*)\\]/u.exec(source)?.[1] ?? '';\n const enabled = enabledList.split(',').map((entry) => languageOf(entry)).filter((locale): locale is string => locale !== undefined);\n return [...new Set([primary, ...enabled])];\n}\n\n/** What one seeding pass did. */\nexport interface EngineLabelBaseSeedingResult {\n /** Files copied, relative to the labels tree (`components/<slug>.<locale>.ts`). */\n readonly seededFiles: readonly string[];\n /** Base files for a declared locale the application already has: left untouched. */\n readonly keptExisting: number;\n}\n\n/**\n * Copy every component-label file of the base the application lacks, for its declared locales. Never overwrites.\n *\n * Every bucket of the base is seeded except {@link LABEL_BASE_PLAN_SEEDED_BUCKET}: the same split the companion's\n * `seedFromFrameworkBase` makes, so init and the labels run agree on what is application-independent.\n */\nexport function seedEngineComponentLabelBase(input: {\n /** The base: `<framework>/templates/saas/i18n/engine` or `<app>/.wildo-saas/templates/i18n/engine`. */\n readonly labelBaseRoot: string;\n /** The application's labels tree: `<backend>/src/engine/i18n`. */\n readonly labelsTreeRoot: string;\n readonly locales: readonly string[];\n}): EngineLabelBaseSeedingResult {\n const seededFiles: string[] = [];\n let keptExisting = 0;\n if (!existsSync(input.labelBaseRoot)) return { seededFiles, keptExisting };\n const locales = new Set(input.locales);\n for (const bucket of readdirSync(input.labelBaseRoot).sort()) {\n if (bucket === LABEL_BASE_PLAN_SEEDED_BUCKET) continue;\n const bucketRoot = join(input.labelBaseRoot, bucket);\n if (!statSync(bucketRoot).isDirectory()) continue;\n for (const file of readdirSync(bucketRoot).sort()) {\n const locale = PER_UNIT_LABEL_FILE.exec(file)?.[1];\n if (locale === undefined || !locales.has(locale)) continue;\n const target = join(input.labelsTreeRoot, bucket, file);\n if (existsSync(target)) {\n keptExisting += 1;\n continue;\n }\n mkdirSync(join(input.labelsTreeRoot, bucket), { recursive: true });\n copyFileSync(join(bucketRoot, file), target);\n seededFiles.push(`${bucket}/${file}`);\n }\n }\n return { seededFiles, keptExisting };\n}\n\n/** Why a seeding pass did not run, when it did not. */\nexport enum EngineLabelBaseSeedingSkipReason {\n /** No base where one was looked for: the framework's templates, or the application's delivered copy. */\n NO_LABEL_BASE = 'no-label-base',\n /** The backend configuration declares no locale this reading can see. */\n NO_DECLARED_LOCALE = 'no-declared-locale',\n}\n\n/** Seed the base into the application's backend, reading its declared locales; or say why not. */\nexport function seedEngineComponentLabelBaseForBackend(input: {\n readonly labelBaseRoot: string;\n /** The backend service root (`<app>/backend-api`). */\n readonly backendRoot: string;\n}): EngineLabelBaseSeedingResult | { readonly skipped: EngineLabelBaseSeedingSkipReason } {\n if (!existsSync(input.labelBaseRoot)) return { skipped: EngineLabelBaseSeedingSkipReason.NO_LABEL_BASE };\n const locales = readDeclaredApplicationLocales(input.backendRoot);\n if (locales === null) return { skipped: EngineLabelBaseSeedingSkipReason.NO_DECLARED_LOCALE };\n return seedEngineComponentLabelBase({\n labelBaseRoot: input.labelBaseRoot,\n labelsTreeRoot: join(input.backendRoot, BACKEND_LABELS_TREE_RELATIVE),\n locales,\n });\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment-provider-configurations.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"environment-provider-configurations.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/environment-provider-configurations.service.ts"],"names":[],"mappings":"AAKA,KAAK,2BAA2B,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC;AAE3G;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,wCAAwC,CAAC,KAAK,EAAE;IACpE,QAAQ,EAAE,MAAM,CAAC;IACjB,iCAAiC,EAAE,2BAA2B,GAAG,SAAS,CAAC;IAC3E,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC,CAY/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment-provider-configurations.service.js","sourceRoot":"","sources":["../../../../../../src/services/application/environment-provider-configurations.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,yCAAyC,EAAE,MAAM,sCAAsC,CAAC;AACvI,OAAO,EAAE,yBAAyB,EAAE,wCAAwC,EAAE,MAAM,+BAA+B,CAAC;AACpH,OAAO,EAAE,wBAAwB,EAAE,mCAAmC,EAAE,MAAM,6DAA6D,CAAC;AAC5I,OAAO,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAC;AAIzG;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,KAAK,UAAU,wCAAwC,CAAC,KAI9D;IACC,0BAA0B,CAAC,KAAK,CAAC,iCAAiC,EAAE,sBAAsB,CAAC,CAAC;IAC5F,kCAAkC,CAAC,KAAK,CAAC,iCAAiC,EAAE,sBAAsB,CAAC,CAAC;IACpG,IAAI,KAAK,CAAC,eAAe,KAAK,IAAI,EAAE,CAAC;QACnC,OAAO,wCAAwC,CAAC,KAAK,CAAC,iCAAiC,EAAE,SAAS,CAAC,CAAC;IACtG,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,0BAA0B,CAAC,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACzF,MAAM,iCAAiC,GAAG,QAAQ,EAAE,MAAM,CAAC,sBAAsB,CAAC;IAClF,0BAA0B,CAAC,iCAAiC,EAAE,QAAQ,EAAE,IAAI,IAAI,kBAAkB,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC;IAC3H,kCAAkC,CAAC,iCAAiC,EAAE,QAAQ,EAAE,IAAI,IAAI,kBAAkB,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC;IACnI,OAAO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AAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC;AAED;;;;;;;;;;;GAWG;AACH,SAAS,gDAAgD,CAAC,SAAkB,EAAE,EAAU;IACtF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC;QAAE,OAAO;IACtC,MAAM,eAAe,GAAG,IAAI,GAAG,EAAU,CAAC;IAC1C,KAAK,MAAM,KAAK,IAAI,mCAAmC,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC;QACnE,KAAK,MAAM,MAAM,IAAI,KAAK,CAAC,OAAO;YAAE,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC7E,CAAC;IACD,MAAM,SAAS,GAAG,CAAC,IAAY,EAAW,EAAE,CAAC,yBAAyB,CAAC,IAAI,CAAC,IAAI,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC1G,MAAM,KAAK,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC3H,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAC/B,MAAM,IAAI,KAAK,CACb,GAAG,EAAE,UAAU,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,4BAA4B;UACjJ,kIAAkI;UAClI,4FAA4F,CAC/F,CAAC;AACJ,CAAC","sourcesContent":["import { ProviderConfigurationCredentialField, readProviderConfigurationCredentialFields } from '@wildo-ai/external-connectors-models';\nimport { isRuntimeSecretEnvVarName, overlayEnvironmentProviderConfigurations } from '@wildo-ai/platform-config-lib';\nimport { getComposedProviderEntry, getComposedProviderSecretsCatalogue } from '~wildo-cli/services/credentials/composed-provider-catalogue';\nimport { loadAuthoredInfraEnvConfig } from '~wildo-cli/services/environment/authored-infra-config.utils';\n\ntype ProviderConfigurationsLayer = Readonly<Record<string, Readonly<Record<string, unknown>> | undefined>>;\n\n/**\n * The provider configuration an application runs with IN ONE ENVIRONMENT — the single door both environment-aware\n * producers go through.\n *\n * Two things carry a provider configuration out of the CLI, and before this existed both used\n * `wildo.saas.config.ts > providerConfigurations` verbatim, so every environment received one environment's values:\n *\n * | producer | consumer |\n * |---|---|\n * | the managed declaration (`AppRuntimeTargetsService.resolve`) | each environment's apps-manager, then the backend: OAuth2 client IDs, email/SMS senders, the provider registry |\n * | the provider runtime artifacts (`syncProviderRuntimeArtifactsForApp`) | baked into builds: frontend `publicConfig`, the backend's generated provider module |\n *\n * Both call this with the environment they are producing for, so the two cannot disagree about which value an\n * environment has.\n *\n * `environmentName: null` is a deliberate answer, not an omission: the caller produces nothing environment-bound (a\n * validation that reads only the services list). It yields the application layer alone.\n *\n * An environment with no authored `wildo.infra.<env>.config.ts` states no override, so it runs with the application\n * layer — the same reading every other per-environment block gets when absent.\n */\nexport async function resolveEnvironmentProviderConfigurations(input: {\n saasRoot: string;\n applicationProviderConfigurations: ProviderConfigurationsLayer | undefined;\n environmentName: string | null;\n}): Promise<Record<string, Record<string, unknown> | undefined>> {\n assertNoProviderSecretKeys(input.applicationProviderConfigurations, 'wildo.saas.config.ts');\n assertConfiguredSecretRefsDeclared(input.applicationProviderConfigurations, 'wildo.saas.config.ts');\n if (input.environmentName === null) {\n return overlayEnvironmentProviderConfigurations(input.applicationProviderConfigurations, undefined);\n }\n\n const authored = await loadAuthoredInfraEnvConfig(input.environmentName, input.saasRoot);\n const environmentProviderConfigurations = authored?.config.providerConfigurations;\n assertNoProviderSecretKeys(environmentProviderConfigurations, authored?.path ?? `infrastructure/${input.environmentName}`);\n assertConfiguredSecretRefsDeclared(environmentProviderConfigurations, authored?.path ?? `infrastructure/${input.environmentName}`);\n return overlayEnvironmentProviderConfigurations(input.applicationProviderConfigurations, environmentProviderConfigurations);\n}\n\n/**\n * Refuse a provider configuration key named like one of that provider's declared secrets.\n *\n * Both files carrying provider configuration are committed, and the key a leak would use is exactly the one an author\n * reaches for when a client ID and its client secret sit side by side in the vendor console\n * (`GOOGLE_OAUTH2_CLIENT_ID` → `GOOGLE_OAUTH2_CLIENT_SECRET`). The secret has one home, `secrets.json → providerEnv`,\n * and a value written here would be committed while the runtime kept reading the env var — a leak that also does\n * nothing.\n *\n * Matched on the secret's ENVIRONMENT-VARIABLE name only, from the composed provider catalogue — the same authority\n * the env writers use. Not on its contract slug: slugs are generic (`apiKey`), and a frontend SDK legitimately takes a\n * PUBLIC key under that same name (PostHog's `phc_` project key in `frontend_sdk.apiKey`), so a slug match would refuse\n * a correct configuration. The env-var name is the precise signal: it is exactly what an author copies out of the\n * secrets file. A provider the catalogue does not yet know (an application-owned package before discovery) is checked\n * on the call that runs after discovery — `syncProviderRuntimeArtifactsForApp` registers contributions before it\n * resolves — so `wildo config sync` covers it.\n */\nfunction assertNoProviderSecretKeys(layer: ProviderConfigurationsLayer | undefined, source: string): void {\n for (const [providerRef, protocols] of Object.entries(layer ?? {})) {\n const secrets = getComposedProviderEntry(providerRef)?.secrets ?? [];\n if (secrets.length === 0 || !protocols) continue;\n const secretNames = new Set(secrets.map((secret) => secret.envVarName));\n for (const [protocolKind, values] of Object.entries(protocols)) {\n if (!values || typeof values !== 'object' || Array.isArray(values)) continue;\n const leaked = Object.keys(values).filter((key) => secretNames.has(key));\n if (leaked.length > 0) {\n throw new Error(\n `${source}: providerConfigurations.${providerRef}.${protocolKind} names ${leaked.map((key) => `\"${key}\"`).join(', ')}, `\n + `which ${leaked.length === 1 ? 'is a secret' : 'are secrets'} of provider \"${providerRef}\". Secrets belong in `\n + '`infrastructure/<env>/secrets/secrets.json → providerEnv`, never in a committed configuration file.',\n );\n }\n }\n }\n}\n\n/**\n * Refuse a provider configuration that points a provider at a secret its module does not declare (#3002), or whose ACP\n * execution profile forwards a secret into the coding agent (#3018).\n *\n * The backend reads `authConfig.secretRef` as the variable sent to the vendor as the provider's key or client secret,\n * and an ACP execution profile's `secretEnvVarName` as the variable handed to the coding agent; it admits only a slot\n * the module's `secretsContract` declares, and refuses at startup and on every read. Refused here too, so `wildo config\n * sync` (and creation readiness, and every other caller of this door) stops before generating anything for a\n * configuration the backend would refuse to boot with, naming the file.\n *\n * The same reading as the backend: `authConfig.secretRef` names a slot by its variable or its slug; `secretEnvVarName`\n * names the variable the agent reads, so only a declared variable. Those two slot rules need the provider's declared\n * slots, so a provider the catalogue does not know yet is not held to them here, as above, and is held on the call that\n * runs after discovery registered it. The inherited-environment rule needs no provider and runs for every provider,\n * known or not ({@link assertInheritedEnvironmentVariablesAreNotSecrets}).\n *\n * The fields are read through `readProviderConfigurationCredentialFields` and branched on their\n * `ProviderConfigurationCredentialField`, the vocabulary the backend registry branches on too (#3022), so the two doors\n * cannot disagree about which fields name a credential or which bag carries execution profiles (the agent-client-protocol\n * bag, under its wire value or its member name).\n *\n * assurance-control: WILDO.SECRETS.CREDENTIAL_SCOPING — `wildo config sync`, creation readiness and every producer of an environment's provider configuration refuse a configuration naming a credential its provider module or the framework does not admit, naming the file.\n */\nfunction assertConfiguredSecretRefsDeclared(layer: ProviderConfigurationsLayer | undefined, source: string): void {\n for (const [providerRef, protocols] of Object.entries(layer ?? {})) {\n if (!protocols) continue;\n const entry = getComposedProviderEntry(providerRef);\n const envVarNames = new Set((entry?.secrets ?? []).map((secret) => secret.envVarName));\n const admitted = new Set([...envVarNames, ...(entry?.secrets ?? []).map((secret) => secret.slug)]);\n const declared = (entry?.secrets ?? []).map((secret) => `${secret.slug} (${secret.envVarName})`).sort().join(', ') || 'none';\n for (const [protocolKey, values] of Object.entries(protocols)) {\n const at = (path: string): string => `${source}: providerConfigurations.${providerRef}.${protocolKey}.${path}`;\n for (const reading of readProviderConfigurationCredentialFields(protocolKey, values)) {\n switch (reading.field) {\n case ProviderConfigurationCredentialField.EXECUTION_PROFILE_INHERITED_ENVIRONMENT:\n // A secret forwarded into the agent (#3018) is refused for every provider, known here or not: the forbidden set\n // does not depend on the provider.\n assertInheritedEnvironmentVariablesAreNotSecrets(reading.value, at(reading.path));\n break;\n case ProviderConfigurationCredentialField.AUTH_SECRET_REF:\n // The slot rules need the provider's declared slots: a provider the catalogue does not know yet is checked on the\n // call that runs after discovery registered it.\n if (entry === undefined || (typeof reading.value === 'string' && admitted.has(reading.value))) break;\n throw new Error(\n `${at(reading.path)} names '${String(reading.value)}', which provider `\n + `\"${providerRef}\" does not declare as a secret. A configuration may point a protocol only at a slot the provider declares, by its `\n + `variable or its slug (${declared}); the backend refuses this configuration and reads no such variable.`,\n );\n case ProviderConfigurationCredentialField.EXECUTION_PROFILE_SECRET_ENV_VAR_NAME:\n if (entry === undefined || (typeof reading.value === 'string' && envVarNames.has(reading.value))) break;\n throw new Error(\n `${at(reading.path)} names '${String(reading.value)}', which provider \"${providerRef}\" does not declare as a secret. `\n + `An execution profile may hand the agent only a variable the provider declares (${declared}); the backend refuses this `\n + 'configuration and reads no such variable.',\n );\n default: {\n const exhaustive: never = reading.field;\n return exhaustive;\n }\n }\n }\n }\n }\n}\n\n/**\n * Refuse an execution profile that forwards a secret into the coding agent (#3018), as the backend does at every read,\n * at startup and at dispatch (`assertAgentInheritedEnvironmentVariablesAreNotSecrets`).\n *\n * The same question as the backend's: a secret a Wildo runtime env declares (`isRuntimeSecretEnvVarName`: the runtime\n * env contracts' keys, every inbound endpoint secret, every system-of-record slot), or a secret any provider the CLI\n * can see declares (the composed catalogue, engine tier and discovered packages: a superset of one runtime's). A name\n * it admits is one the framework does not declare secret, which is not the same as harmless: a developer's own shell\n * may carry secrets the framework cannot know.\n *\n * assurance-control: WILDO.SECRETS.CREDENTIAL_SCOPING — the CLI refuses an execution profile forwarding a declared secret into a coding agent, before anything is generated.\n */\nfunction assertInheritedEnvironmentVariablesAreNotSecrets(inherited: unknown, at: string): void {\n if (!Array.isArray(inherited)) return;\n const providerSecrets = new Set<string>();\n for (const entry of getComposedProviderSecretsCatalogue().values()) {\n for (const secret of entry.secrets) providerSecrets.add(secret.envVarName);\n }\n const forbidden = (name: string): boolean => isRuntimeSecretEnvVarName(name) || providerSecrets.has(name);\n const named = [...new Set(inherited.filter((name): name is string => typeof name === 'string' && forbidden(name)))].sort();\n if (named.length === 0) return;\n throw new Error(\n `${at} names ${named.map((name) => `'${name}'`).join(', ')}, which ${named.length === 1 ? 'is a secret' : 'are secrets'} of this platform or of a `\n + 'provider. A coding agent may not inherit a secret the framework declares; a provider credential the agent needs is handed to it '\n + 'through the execution profile\\'s secretEnvVarName. The backend refuses this configuration.',\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"environment-provider-configurations.service.js","sourceRoot":"","sources":["../../../../src/services/application/environment-provider-configurations.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,yCAAyC,EAAE,MAAM,sCAAsC,CAAC;AACvI,OAAO,EAAE,yBAAyB,EAAE,wCAAwC,EAAE,MAAM,+BAA+B,CAAC;AACpH,OAAO,EAAE,wBAAwB,EAAE,mCAAmC,EAAE,MAAM,6DAA6D,CAAC;AAC5I,OAAO,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAC;AAIzG;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,KAAK,UAAU,wCAAwC,CAAC,KAI9D;IACC,0BAA0B,CAAC,KAAK,CAAC,iCAAiC,EAAE,sBAAsB,CAAC,CAAC;IAC5F,kCAAkC,CAAC,KAAK,CAAC,iCAAiC,EAAE,sBAAsB,CAAC,CAAC;IACpG,IAAI,KAAK,CAAC,eAAe,KAAK,IAAI,EAAE,CAAC;QACnC,OAAO,wCAAwC,CAAC,KAAK,CAAC,iCAAiC,EAAE,SAAS,CAAC,CAAC;IACtG,CAAC;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AAI,KAAK,CACb,GAAG,EAAE,UAAU,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,4BAA4B;UACjJ,kIAAkI;UAClI,4FAA4F,CAC/F,CAAC;AACJ,CAAC","sourcesContent":["import { ProviderConfigurationCredentialField, readProviderConfigurationCredentialFields } from '@wildo-ai/external-connectors-models';\nimport { isRuntimeSecretEnvVarName, overlayEnvironmentProviderConfigurations } from '@wildo-ai/platform-config-lib';\nimport { getComposedProviderEntry, getComposedProviderSecretsCatalogue } from '~wildo-cli/services/credentials/composed-provider-catalogue';\nimport { loadAuthoredInfraEnvConfig } from '~wildo-cli/services/environment/authored-infra-config.utils';\n\ntype ProviderConfigurationsLayer = Readonly<Record<string, Readonly<Record<string, unknown>> | undefined>>;\n\n/**\n * The provider configuration an application runs with IN ONE ENVIRONMENT — the single door both environment-aware\n * producers go through.\n *\n * Two things carry a provider configuration out of the CLI, and before this existed both used\n * `wildo.saas.config.ts > providerConfigurations` verbatim, so every environment received one environment's values:\n *\n * | producer | consumer |\n * |---|---|\n * | the managed declaration (`AppRuntimeTargetsService.resolve`) | each environment's apps-manager, then the backend: OAuth2 client IDs, email/SMS senders, the provider registry |\n * | the provider runtime artifacts (`syncProviderRuntimeArtifactsForApp`) | baked into builds: frontend `publicConfig`, the backend's generated provider module |\n *\n * Both call this with the environment they are producing for, so the two cannot disagree about which value an\n * environment has.\n *\n * `environmentName: null` is a deliberate answer, not an omission: the caller produces nothing environment-bound (a\n * validation that reads only the services list). It yields the application layer alone.\n *\n * An environment with no authored `wildo.infra.<env>.config.ts` states no override, so it runs with the application\n * layer — the same reading every other per-environment block gets when absent.\n */\nexport async function resolveEnvironmentProviderConfigurations(input: {\n saasRoot: string;\n applicationProviderConfigurations: ProviderConfigurationsLayer | undefined;\n environmentName: string | null;\n}): Promise<Record<string, Record<string, unknown> | undefined>> {\n assertNoProviderSecretKeys(input.applicationProviderConfigurations, 'wildo.saas.config.ts');\n assertConfiguredSecretRefsDeclared(input.applicationProviderConfigurations, 'wildo.saas.config.ts');\n if (input.environmentName === null) {\n return overlayEnvironmentProviderConfigurations(input.applicationProviderConfigurations, undefined);\n }\n\n const authored = await loadAuthoredInfraEnvConfig(input.environmentName, input.saasRoot);\n const environmentProviderConfigurations = authored?.config.providerConfigurations;\n assertNoProviderSecretKeys(environmentProviderConfigurations, authored?.path ?? `infrastructure/${input.environmentName}`);\n assertConfiguredSecretRefsDeclared(environmentProviderConfigurations, authored?.path ?? `infrastructure/${input.environmentName}`);\n return overlayEnvironmentProviderConfigurations(input.applicationProviderConfigurations, environmentProviderConfigurations);\n}\n\n/**\n * Refuse a provider configuration key named like one of that provider's declared secrets.\n *\n * Both files carrying provider configuration are committed, and the key a leak would use is exactly the one an author\n * reaches for when a client ID and its client secret sit side by side in the vendor console\n * (`GOOGLE_OAUTH2_CLIENT_ID` → `GOOGLE_OAUTH2_CLIENT_SECRET`). The secret has one home, `secrets.json → providerEnv`,\n * and a value written here would be committed while the runtime kept reading the env var — a leak that also does\n * nothing.\n *\n * Matched on the secret's ENVIRONMENT-VARIABLE name only, from the composed provider catalogue — the same authority\n * the env writers use. Not on its contract slug: slugs are generic (`apiKey`), and a frontend SDK legitimately takes a\n * PUBLIC key under that same name (PostHog's `phc_` project key in `frontend_sdk.apiKey`), so a slug match would refuse\n * a correct configuration. The env-var name is the precise signal: it is exactly what an author copies out of the\n * secrets file. A provider the catalogue does not yet know (an application-owned package before discovery) is checked\n * on the call that runs after discovery — `syncProviderRuntimeArtifactsForApp` registers contributions before it\n * resolves — so `wildo config sync` covers it.\n */\nfunction assertNoProviderSecretKeys(layer: ProviderConfigurationsLayer | undefined, source: string): void {\n for (const [providerRef, protocols] of Object.entries(layer ?? {})) {\n const secrets = getComposedProviderEntry(providerRef)?.secrets ?? [];\n if (secrets.length === 0 || !protocols) continue;\n const secretNames = new Set(secrets.map((secret) => secret.envVarName));\n for (const [protocolKind, values] of Object.entries(protocols)) {\n if (!values || typeof values !== 'object' || Array.isArray(values)) continue;\n const leaked = Object.keys(values).filter((key) => secretNames.has(key));\n if (leaked.length > 0) {\n throw new Error(\n `${source}: providerConfigurations.${providerRef}.${protocolKind} names ${leaked.map((key) => `\"${key}\"`).join(', ')}, `\n + `which ${leaked.length === 1 ? 'is a secret' : 'are secrets'} of provider \"${providerRef}\". Secrets belong in `\n + '`infrastructure/<env>/secrets/secrets.json → providerEnv`, never in a committed configuration file.',\n );\n }\n }\n }\n}\n\n/**\n * Refuse a provider configuration that points a provider at a secret its module does not declare (#3002), or whose ACP\n * execution profile forwards a secret into the coding agent (#3018).\n *\n * The backend reads `authConfig.secretRef` as the variable sent to the vendor as the provider's key or client secret,\n * and an ACP execution profile's `secretEnvVarName` as the variable handed to the coding agent; it admits only a slot\n * the module's `secretsContract` declares, and refuses at startup and on every read. Refused here too, so `wildo config\n * sync` (and creation readiness, and every other caller of this door) stops before generating anything for a\n * configuration the backend would refuse to boot with, naming the file.\n *\n * The same reading as the backend: `authConfig.secretRef` names a slot by its variable or its slug; `secretEnvVarName`\n * names the variable the agent reads, so only a declared variable. Those two slot rules need the provider's declared\n * slots, so a provider the catalogue does not know yet is not held to them here, as above, and is held on the call that\n * runs after discovery registered it. The inherited-environment rule needs no provider and runs for every provider,\n * known or not ({@link assertInheritedEnvironmentVariablesAreNotSecrets}).\n *\n * The fields are read through `readProviderConfigurationCredentialFields` and branched on their\n * `ProviderConfigurationCredentialField`, the vocabulary the backend registry branches on too (#3022), so the two doors\n * cannot disagree about which fields name a credential or which bag carries execution profiles (the agent-client-protocol\n * bag, under its wire value or its member name).\n *\n * assurance-control: WILDO.SECRETS.CREDENTIAL_SCOPING — `wildo config sync`, creation readiness and every producer of an environment's provider configuration refuse a configuration naming a credential its provider module or the framework does not admit, naming the file.\n */\nfunction assertConfiguredSecretRefsDeclared(layer: ProviderConfigurationsLayer | undefined, source: string): void {\n for (const [providerRef, protocols] of Object.entries(layer ?? {})) {\n if (!protocols) continue;\n const entry = getComposedProviderEntry(providerRef);\n const envVarNames = new Set((entry?.secrets ?? []).map((secret) => secret.envVarName));\n const admitted = new Set([...envVarNames, ...(entry?.secrets ?? []).map((secret) => secret.slug)]);\n const declared = (entry?.secrets ?? []).map((secret) => `${secret.slug} (${secret.envVarName})`).sort().join(', ') || 'none';\n for (const [protocolKey, values] of Object.entries(protocols)) {\n const at = (path: string): string => `${source}: providerConfigurations.${providerRef}.${protocolKey}.${path}`;\n for (const reading of readProviderConfigurationCredentialFields(protocolKey, values)) {\n switch (reading.field) {\n case ProviderConfigurationCredentialField.EXECUTION_PROFILE_INHERITED_ENVIRONMENT:\n // A secret forwarded into the agent (#3018) is refused for every provider, known here or not: the forbidden set\n // does not depend on the provider.\n assertInheritedEnvironmentVariablesAreNotSecrets(reading.value, at(reading.path));\n break;\n case ProviderConfigurationCredentialField.AUTH_SECRET_REF:\n // The slot rules need the provider's declared slots: a provider the catalogue does not know yet is checked on the\n // call that runs after discovery registered it.\n if (entry === undefined || (typeof reading.value === 'string' && admitted.has(reading.value))) break;\n throw new Error(\n `${at(reading.path)} names '${String(reading.value)}', which provider `\n + `\"${providerRef}\" does not declare as a secret. A configuration may point a protocol only at a slot the provider declares, by its `\n + `variable or its slug (${declared}); the backend refuses this configuration and reads no such variable.`,\n );\n case ProviderConfigurationCredentialField.EXECUTION_PROFILE_SECRET_ENV_VAR_NAME:\n if (entry === undefined || (typeof reading.value === 'string' && envVarNames.has(reading.value))) break;\n throw new Error(\n `${at(reading.path)} names '${String(reading.value)}', which provider \"${providerRef}\" does not declare as a secret. `\n + `An execution profile may hand the agent only a variable the provider declares (${declared}); the backend refuses this `\n + 'configuration and reads no such variable.',\n );\n default: {\n const exhaustive: never = reading.field;\n return exhaustive;\n }\n }\n }\n }\n }\n}\n\n/**\n * Refuse an execution profile that forwards a secret into the coding agent (#3018), as the backend does at every read,\n * at startup and at dispatch (`assertAgentInheritedEnvironmentVariablesAreNotSecrets`).\n *\n * The same question as the backend's: a secret a Wildo runtime env declares (`isRuntimeSecretEnvVarName`: the runtime\n * env contracts' keys, every inbound endpoint secret, every system-of-record slot), or a secret any provider the CLI\n * can see declares (the composed catalogue, engine tier and discovered packages: a superset of one runtime's). A name\n * it admits is one the framework does not declare secret, which is not the same as harmless: a developer's own shell\n * may carry secrets the framework cannot know.\n *\n * assurance-control: WILDO.SECRETS.CREDENTIAL_SCOPING — the CLI refuses an execution profile forwarding a declared secret into a coding agent, before anything is generated.\n */\nfunction assertInheritedEnvironmentVariablesAreNotSecrets(inherited: unknown, at: string): void {\n if (!Array.isArray(inherited)) return;\n const providerSecrets = new Set<string>();\n for (const entry of getComposedProviderSecretsCatalogue().values()) {\n for (const secret of entry.secrets) providerSecrets.add(secret.envVarName);\n }\n const forbidden = (name: string): boolean => isRuntimeSecretEnvVarName(name) || providerSecrets.has(name);\n const named = [...new Set(inherited.filter((name): name is string => typeof name === 'string' && forbidden(name)))].sort();\n if (named.length === 0) return;\n throw new Error(\n `${at} names ${named.map((name) => `'${name}'`).join(', ')}, which ${named.length === 1 ? 'is a secret' : 'are secrets'} of this platform or of a `\n + 'provider. A coding agent may not inherit a secret the framework declares; a provider credential the agent needs is handed to it '\n + 'through the execution profile\\'s secretEnvVarName. The backend refuses this configuration.',\n );\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"existing-app-bootstrap.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"existing-app-bootstrap.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/existing-app-bootstrap.service.ts"],"names":[],"mappings":"AAiEA;;;;;;;;;GASG;AACH,qBAAa,2BAA2B;WACzB,sBAAsB,CACjC,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,aAAa,EAAE,MAAM,GAAG,IAAI,GAC3B,OAAO,CAAC,IAAI,CAAC;IAgEhB,OAAO,CAAC,MAAM,CAAC,uBAAuB;mBAkHjB,6BAA6B;IA+ClD;;;;;;;;OAQG;mBACkB,kBAAkB;CAMxC"}
|