@wildo-ai/wildo-cli 1.1.10 → 1.1.11
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 +0 -0
- 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 +2 -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 +17 -1
- 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/blueprint/pack.command.d.ts +16 -0
- package/dist/src/commands/blueprint/pack.command.d.ts.map +1 -0
- package/dist/src/commands/blueprint/pack.command.js +86 -0
- package/dist/src/commands/blueprint/pack.command.js.map +1 -0
- package/dist/src/commands/blueprint/publish.command.d.ts +16 -0
- package/dist/src/commands/blueprint/publish.command.d.ts.map +1 -0
- package/dist/src/commands/blueprint/publish.command.js +114 -0
- package/dist/src/commands/blueprint/publish.command.js.map +1 -0
- package/dist/src/commands/blueprint/status.command.d.ts +14 -0
- package/dist/src/commands/blueprint/status.command.d.ts.map +1 -0
- package/dist/src/commands/blueprint/status.command.js +62 -0
- package/dist/src/commands/blueprint/status.command.js.map +1 -0
- 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.map +1 -1
- package/dist/src/commands/build/accept.command.js.map +1 -1
- package/dist/src/commands/build/dispatches.command.d.ts.map +1 -1
- package/dist/src/commands/build/dispatches.command.js +6 -1
- 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.map +1 -1
- package/dist/src/commands/build/rearm.command.d.ts +6 -4
- package/dist/src/commands/build/rearm.command.d.ts.map +1 -1
- package/dist/src/commands/build/rearm.command.js +12 -7
- 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/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.map +1 -1
- package/dist/src/commands/config/check-resources.command.js +3 -1
- 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.map +1 -1
- 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 +24 -0
- 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 +13 -0
- package/dist/src/commands/config/sync.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.js +37 -2
- package/dist/src/commands/config/sync.command.js.map +1 -1
- package/dist/src/commands/config/validate.command.d.ts +3 -2
- package/dist/src/commands/config/validate.command.d.ts.map +1 -1
- package/dist/src/commands/config/validate.command.js +35 -3
- 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 +6 -1
- package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
- package/dist/src/commands/context/context-command.utils.js +8 -2
- package/dist/src/commands/context/context-command.utils.js.map +1 -1
- package/dist/src/commands/context/elements.command.d.ts +3 -1
- package/dist/src/commands/context/elements.command.d.ts.map +1 -1
- package/dist/src/commands/context/elements.command.js +3 -1
- 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.map +1 -1
- package/dist/src/commands/context/journey.command.js +43 -6
- 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.map +1 -1
- package/dist/src/commands/context/launch-blockers.command.js +3 -2
- 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 +2 -0
- package/dist/src/commands/context/pipelines.command.d.ts.map +1 -1
- package/dist/src/commands/context/pipelines.command.js +6 -3
- 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.map +1 -1
- package/dist/src/commands/creation/answer.command.js +2 -1
- 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.map +1 -1
- 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/feed.command.d.ts.map +1 -1
- package/dist/src/commands/creation/feed.command.js +3 -2
- package/dist/src/commands/creation/feed.command.js.map +1 -1
- package/dist/src/commands/creation/loop.command.d.ts.map +1 -1
- 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 +3 -1
- package/dist/src/commands/creation/preflight.command.js.map +1 -1
- package/dist/src/commands/creation/prompt-hook.command.d.ts.map +1 -1
- 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 +2 -1
- 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.map +1 -1
- package/dist/src/commands/creation/revert.command.d.ts.map +1 -1
- 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 +2 -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.map +1 -1
- package/dist/src/commands/creation/writes.command.d.ts.map +1 -1
- package/dist/src/commands/creation/writes.command.js.map +1 -1
- package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts +17 -0
- 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 +27 -0
- 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 +33 -3
- package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
- package/dist/src/commands/db/db-schema-plan.utils.js +71 -6
- package/dist/src/commands/db/db-schema-plan.utils.js.map +1 -1
- package/dist/src/commands/db/diff.command.d.ts.map +1 -1
- package/dist/src/commands/db/diff.command.js +1 -1
- package/dist/src/commands/db/diff.command.js.map +1 -1
- package/dist/src/commands/db/generate.command.d.ts.map +1 -1
- package/dist/src/commands/db/generate.command.js +32 -5
- 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.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 +10 -0
- package/dist/src/commands/dev/design-tokens-brand.command.d.ts.map +1 -0
- package/dist/src/commands/dev/design-tokens-brand.command.js +24 -0
- package/dist/src/commands/dev/design-tokens-brand.command.js.map +1 -0
- package/dist/src/commands/dev/design-tokens-contract.command.d.ts +10 -0
- package/dist/src/commands/dev/design-tokens-contract.command.d.ts.map +1 -0
- package/dist/src/commands/dev/design-tokens-contract.command.js +24 -0
- package/dist/src/commands/dev/design-tokens-contract.command.js.map +1 -0
- package/dist/src/commands/dev/design-tokens-contrast.command.d.ts +10 -0
- package/dist/src/commands/dev/design-tokens-contrast.command.d.ts.map +1 -0
- package/dist/src/commands/dev/design-tokens-contrast.command.js +24 -0
- package/dist/src/commands/dev/design-tokens-contrast.command.js.map +1 -0
- 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 +34 -8
- 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 +25 -0
- package/dist/src/commands/docs/check.command.d.ts.map +1 -0
- package/dist/src/commands/docs/check.command.js +91 -0
- package/dist/src/commands/docs/check.command.js.map +1 -0
- 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 +26 -0
- package/dist/src/commands/frontend/look.command.d.ts.map +1 -0
- package/dist/src/commands/frontend/look.command.js +132 -0
- package/dist/src/commands/frontend/look.command.js.map +1 -0
- 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 +3 -0
- package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
- package/dist/src/commands/fwk/generate-blueprints.command.d.ts +12 -0
- package/dist/src/commands/fwk/generate-blueprints.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/generate-blueprints.command.js +75 -0
- package/dist/src/commands/fwk/generate-blueprints.command.js.map +1 -0
- 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.map +1 -1
- package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/graph.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.d.ts +4 -3
- package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.js +94 -32
- 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.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.map +1 -1
- package/dist/src/commands/fwk/publish-promote.command.d.ts +8 -0
- package/dist/src/commands/fwk/publish-promote.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/publish-promote.command.js +137 -0
- package/dist/src/commands/fwk/publish-promote.command.js.map +1 -0
- package/dist/src/commands/fwk/publish-providers.command.d.ts +19 -0
- package/dist/src/commands/fwk/publish-providers.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/publish-providers.command.js +80 -0
- package/dist/src/commands/fwk/publish-providers.command.js.map +1 -0
- package/dist/src/commands/fwk/registry-host.command.d.ts +41 -0
- package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/registry-host.command.js +393 -0
- package/dist/src/commands/fwk/registry-host.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 +1 -2
- 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.map +1 -1
- 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.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.map +1 -1
- package/dist/src/commands/generate/email.command.d.ts.map +1 -1
- 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 +21 -2
- 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 +10 -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 +30 -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 +59 -0
- package/dist/src/commands/init.command.d.ts.map +1 -1
- package/dist/src/commands/init.command.js +401 -12
- package/dist/src/commands/init.command.js.map +1 -1
- package/dist/src/commands/keys/rotate.command.d.ts +36 -0
- package/dist/src/commands/keys/rotate.command.d.ts.map +1 -0
- package/dist/src/commands/keys/rotate.command.js +140 -0
- package/dist/src/commands/keys/rotate.command.js.map +1 -0
- package/dist/src/commands/keys/thumbprint.command.d.ts +10 -0
- package/dist/src/commands/keys/thumbprint.command.d.ts.map +1 -0
- package/dist/src/commands/keys/thumbprint.command.js +64 -0
- package/dist/src/commands/keys/thumbprint.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.map +1 -1
- package/dist/src/commands/local/dev-status.command.js.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts +8 -1
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js +37 -6
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/local/doctor.command.d.ts +18 -0
- package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
- package/dist/src/commands/local/doctor.command.js +115 -1
- 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.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 +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 +2 -1
- package/dist/src/commands/local/smoke.command.js.map +1 -1
- 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 +11 -5
- package/dist/src/commands/local/up.command.d.ts.map +1 -1
- package/dist/src/commands/local/up.command.js +51 -145
- 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 +8 -6
- package/dist/src/commands/lock/check.command.d.ts.map +1 -1
- package/dist/src/commands/lock/check.command.js +12 -19
- 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 +2 -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/chat-command-registrations.utils.d.ts +32 -0
- package/dist/src/commands/providers/chat-command-registrations.utils.d.ts.map +1 -0
- package/dist/src/commands/providers/chat-command-registrations.utils.js +120 -0
- package/dist/src/commands/providers/chat-command-registrations.utils.js.map +1 -0
- package/dist/src/commands/providers/new.command.d.ts +14 -0
- package/dist/src/commands/providers/new.command.d.ts.map +1 -0
- package/dist/src/commands/providers/new.command.js +119 -0
- package/dist/src/commands/providers/new.command.js.map +1 -0
- package/dist/src/commands/providers/probe.command.d.ts +20 -0
- package/dist/src/commands/providers/probe.command.d.ts.map +1 -0
- package/dist/src/commands/providers/probe.command.js +164 -0
- package/dist/src/commands/providers/probe.command.js.map +1 -0
- package/dist/src/commands/providers/register.command.d.ts +34 -0
- package/dist/src/commands/providers/register.command.d.ts.map +1 -0
- package/dist/src/commands/providers/register.command.js +258 -0
- package/dist/src/commands/providers/register.command.js.map +1 -0
- package/dist/src/commands/providers/show.command.d.ts +1 -0
- package/dist/src/commands/providers/show.command.d.ts.map +1 -1
- package/dist/src/commands/providers/show.command.js +6 -46
- package/dist/src/commands/providers/show.command.js.map +1 -1
- package/dist/src/commands/registry/add.command.d.ts +3 -0
- package/dist/src/commands/registry/add.command.d.ts.map +1 -1
- package/dist/src/commands/registry/add.command.js +23 -212
- package/dist/src/commands/registry/add.command.js.map +1 -1
- package/dist/src/commands/registry/domain.command.d.ts +32 -0
- package/dist/src/commands/registry/domain.command.d.ts.map +1 -0
- package/dist/src/commands/registry/domain.command.js +118 -0
- package/dist/src/commands/registry/domain.command.js.map +1 -0
- 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.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 +26 -50
- 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 +16 -1
- package/dist/src/commands/registry/remove.command.js.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.d.ts +11 -1
- package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.js +145 -12
- 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 +4 -4
- 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 +22 -6
- 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.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.map +1 -1
- package/dist/src/commands/seal/dead.command.d.ts +11 -0
- package/dist/src/commands/seal/dead.command.d.ts.map +1 -0
- package/dist/src/commands/seal/dead.command.js +44 -0
- package/dist/src/commands/seal/dead.command.js.map +1 -0
- package/dist/src/commands/seal/export.command.d.ts +12 -0
- package/dist/src/commands/seal/export.command.d.ts.map +1 -0
- package/dist/src/commands/seal/export.command.js +67 -0
- package/dist/src/commands/seal/export.command.js.map +1 -0
- package/dist/src/commands/seal/log-export.command.d.ts +18 -0
- package/dist/src/commands/seal/log-export.command.d.ts.map +1 -0
- package/dist/src/commands/seal/log-export.command.js +93 -0
- package/dist/src/commands/seal/log-export.command.js.map +1 -0
- package/dist/src/commands/seal/log-verify.command.d.ts +13 -0
- package/dist/src/commands/seal/log-verify.command.d.ts.map +1 -0
- package/dist/src/commands/seal/log-verify.command.js +74 -0
- package/dist/src/commands/seal/log-verify.command.js.map +1 -0
- package/dist/src/commands/seal/retry.command.d.ts +12 -0
- package/dist/src/commands/seal/retry.command.d.ts.map +1 -0
- package/dist/src/commands/seal/retry.command.js +48 -0
- package/dist/src/commands/seal/retry.command.js.map +1 -0
- package/dist/src/commands/seal/seal-admin-door.utils.d.ts +13 -0
- package/dist/src/commands/seal/seal-admin-door.utils.d.ts.map +1 -0
- package/dist/src/commands/seal/seal-admin-door.utils.js +88 -0
- package/dist/src/commands/seal/seal-admin-door.utils.js.map +1 -0
- package/dist/src/commands/seal/signing-log-files.utils.d.ts +9 -0
- package/dist/src/commands/seal/signing-log-files.utils.d.ts.map +1 -0
- package/dist/src/commands/seal/signing-log-files.utils.js +15 -0
- package/dist/src/commands/seal/signing-log-files.utils.js.map +1 -0
- package/dist/src/commands/seal/verify.command.d.ts +18 -0
- package/dist/src/commands/seal/verify.command.d.ts.map +1 -0
- package/dist/src/commands/seal/verify.command.js +120 -0
- package/dist/src/commands/seal/verify.command.js.map +1 -0
- 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 +3 -2
- 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 +3 -2
- 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 +3 -0
- 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.map +1 -1
- package/dist/src/commands/website/look.command.d.ts +22 -0
- package/dist/src/commands/website/look.command.d.ts.map +1 -0
- package/dist/src/commands/website/look.command.js +147 -0
- package/dist/src/commands/website/look.command.js.map +1 -0
- package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
- 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 +2 -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.map +1 -1
- 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.map +1 -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 +3 -0
- package/dist/src/kernel/command-registry.js.map +1 -1
- package/dist/src/kernel/command-runner.d.ts +5 -0
- package/dist/src/kernel/command-runner.d.ts.map +1 -1
- package/dist/src/kernel/command-runner.js +13 -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 +5 -3
- package/dist/src/kernel/hooks.js.map +1 -1
- package/dist/src/kernel/json-document-output.d.ts +25 -0
- package/dist/src/kernel/json-document-output.d.ts.map +1 -0
- package/dist/src/kernel/json-document-output.js +29 -0
- package/dist/src/kernel/json-document-output.js.map +1 -0
- package/dist/src/kernel/logger.d.ts +16 -1
- package/dist/src/kernel/logger.d.ts.map +1 -1
- package/dist/src/kernel/logger.js +21 -4
- package/dist/src/kernel/logger.js.map +1 -1
- package/dist/src/kernel/types.d.ts +6 -0
- package/dist/src/kernel/types.d.ts.map +1 -1
- package/dist/src/kernel/types.js +6 -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 +5 -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 +1 -4
- 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 +89 -0
- package/dist/src/services/application/ai-use-declarations.service.d.ts.map +1 -0
- package/dist/src/services/application/ai-use-declarations.service.js +178 -0
- package/dist/src/services/application/ai-use-declarations.service.js.map +1 -0
- package/dist/src/services/application/app-bootstrap.service.d.ts +6 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js +12 -1
- 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.map +1 -1
- 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.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.js +6 -0
- 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.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.d.ts +6 -0
- package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.js +13 -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.map +1 -1
- package/dist/src/services/application/application-browser-smoke.service.js.map +1 -1
- package/dist/src/services/application/application-creation-readiness.service.d.ts +10 -2
- package/dist/src/services/application/application-creation-readiness.service.d.ts.map +1 -1
- package/dist/src/services/application/application-creation-readiness.service.js +74 -21
- package/dist/src/services/application/application-creation-readiness.service.js.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.d.ts +52 -4
- package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.js +118 -8
- 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-initialization-verification.service.d.ts.map +1 -1
- 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.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.map +1 -1
- package/dist/src/services/application/composition-provider-plan.service.js.map +1 -1
- package/dist/src/services/application/content-guardrail-classifier.service.d.ts +80 -0
- package/dist/src/services/application/content-guardrail-classifier.service.d.ts.map +1 -0
- package/dist/src/services/application/content-guardrail-classifier.service.js +199 -0
- package/dist/src/services/application/content-guardrail-classifier.service.js.map +1 -0
- package/dist/src/services/application/creation-host-readiness.service.d.ts.map +1 -1
- package/dist/src/services/application/creation-host-readiness.service.js.map +1 -1
- package/dist/src/services/application/creation-preflight.service.d.ts +2 -2
- package/dist/src/services/application/creation-preflight.service.d.ts.map +1 -1
- package/dist/src/services/application/creation-preflight.service.js +2 -2
- 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 +1 -1
- package/dist/src/services/application/dev-schema-drift.service.js.map +1 -1
- package/dist/src/services/application/environment-provider-configurations.service.d.ts.map +1 -1
- package/dist/src/services/application/environment-provider-configurations.service.js +96 -2
- 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 +23 -0
- package/dist/src/services/application/frontend-provider-sdk-declarations.service.d.ts.map +1 -0
- package/dist/src/services/application/frontend-provider-sdk-declarations.service.js +107 -0
- package/dist/src/services/application/frontend-provider-sdk-declarations.service.js.map +1 -0
- 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 +23 -0
- package/dist/src/services/application/frontend-providers-not-configured.service.d.ts.map +1 -0
- package/dist/src/services/application/frontend-providers-not-configured.service.js +62 -0
- package/dist/src/services/application/frontend-providers-not-configured.service.js.map +1 -0
- package/dist/src/services/application/frontend-public-config-secret-screen.service.d.ts +13 -2
- 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 +4 -2
- package/dist/src/services/application/frontend-public-config-secret-screen.service.js.map +1 -1
- 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/provider-package-links.service.d.ts +7 -6
- package/dist/src/services/application/provider-package-links.service.d.ts.map +1 -1
- package/dist/src/services/application/provider-package-links.service.js +7 -6
- package/dist/src/services/application/provider-package-links.service.js.map +1 -1
- package/dist/src/services/application/provider-runtime-sync.service.d.ts +68 -9
- package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
- package/dist/src/services/application/provider-runtime-sync.service.js +264 -108
- 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 +53 -0
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.js +45 -13
- 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/systems-of-record-library.service.d.ts.map +1 -1
- package/dist/src/services/application/systems-of-record-library.service.js +4 -3
- package/dist/src/services/application/systems-of-record-library.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-apply.service.d.ts +147 -0
- package/dist/src/services/blueprint/blueprint-apply.service.d.ts.map +1 -0
- package/dist/src/services/blueprint/blueprint-apply.service.js +490 -0
- package/dist/src/services/blueprint/blueprint-apply.service.js.map +1 -0
- package/dist/src/services/blueprint/blueprint-artifact.service.d.ts +33 -0
- package/dist/src/services/blueprint/blueprint-artifact.service.d.ts.map +1 -0
- package/dist/src/services/blueprint/blueprint-artifact.service.js +88 -0
- package/dist/src/services/blueprint/blueprint-artifact.service.js.map +1 -0
- package/dist/src/services/blueprint/blueprint-definition.reader.d.ts +37 -0
- package/dist/src/services/blueprint/blueprint-definition.reader.d.ts.map +1 -0
- package/dist/src/services/blueprint/blueprint-definition.reader.js +160 -0
- package/dist/src/services/blueprint/blueprint-definition.reader.js.map +1 -0
- package/dist/src/services/blueprint/blueprint-export.service.d.ts +72 -0
- package/dist/src/services/blueprint/blueprint-export.service.d.ts.map +1 -0
- package/dist/src/services/blueprint/blueprint-export.service.js +899 -0
- package/dist/src/services/blueprint/blueprint-export.service.js.map +1 -0
- package/dist/src/services/blueprint/blueprint-line.service.d.ts +76 -0
- package/dist/src/services/blueprint/blueprint-line.service.d.ts.map +1 -0
- package/dist/src/services/blueprint/blueprint-line.service.js +200 -0
- package/dist/src/services/blueprint/blueprint-line.service.js.map +1 -0
- package/dist/src/services/blueprint/blueprint-module-references.service.d.ts +81 -0
- package/dist/src/services/blueprint/blueprint-module-references.service.d.ts.map +1 -0
- package/dist/src/services/blueprint/blueprint-module-references.service.js +185 -0
- package/dist/src/services/blueprint/blueprint-module-references.service.js.map +1 -0
- package/dist/src/services/blueprint/blueprint-registry.service.d.ts +63 -0
- package/dist/src/services/blueprint/blueprint-registry.service.d.ts.map +1 -0
- package/dist/src/services/blueprint/blueprint-registry.service.js +119 -0
- package/dist/src/services/blueprint/blueprint-registry.service.js.map +1 -0
- package/dist/src/services/blueprint/blueprint-report.d.ts +8 -0
- package/dist/src/services/blueprint/blueprint-report.d.ts.map +1 -0
- package/dist/src/services/blueprint/blueprint-report.js +32 -0
- package/dist/src/services/blueprint/blueprint-report.js.map +1 -0
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.d.ts +31 -0
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.d.ts.map +1 -0
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.js +65 -0
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.js.map +1 -0
- package/dist/src/services/blueprint/framework-blueprints.service.d.ts +68 -0
- package/dist/src/services/blueprint/framework-blueprints.service.d.ts.map +1 -0
- package/dist/src/services/blueprint/framework-blueprints.service.js +239 -0
- package/dist/src/services/blueprint/framework-blueprints.service.js.map +1 -0
- package/dist/src/services/catalog/service-address-resolver.service.d.ts +6 -0
- package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.js +4 -0
- package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.d.ts +7 -3
- package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.js +24 -3
- 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 +5 -0
- package/dist/src/services/companion/agent-stop-reason-words.d.ts.map +1 -0
- package/dist/src/services/companion/agent-stop-reason-words.js +25 -0
- package/dist/src/services/companion/agent-stop-reason-words.js.map +1 -0
- package/dist/src/services/companion/agent-work-shortfall-words.d.ts +8 -0
- package/dist/src/services/companion/agent-work-shortfall-words.d.ts.map +1 -0
- package/dist/src/services/companion/agent-work-shortfall-words.js +35 -0
- package/dist/src/services/companion/agent-work-shortfall-words.js.map +1 -0
- package/dist/src/services/companion/build-console.service.d.ts +50 -1
- package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/build-console.service.js +61 -6
- 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.map +1 -1
- package/dist/src/services/companion/companion-client.service.js.map +1 -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.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-fast-path.d.ts.map +1 -1
- package/dist/src/services/companion/console-fast-path.js.map +1 -1
- package/dist/src/services/companion/console-verb.utils.d.ts.map +1 -1
- package/dist/src/services/companion/console-verb.utils.js +2 -1
- package/dist/src/services/companion/console-verb.utils.js.map +1 -1
- package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-console.service.js.map +1 -1
- 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.map +1 -1
- 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 +5 -2
- package/dist/src/services/compliance/subject-data-recipients.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/subject-data-recipients.generator.js +7 -3
- 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.map +1 -1
- 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 +5 -7
- 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 +2 -2
- package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts +5 -12
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.js +12 -0
- package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.d.ts +77 -0
- package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.js +69 -1
- package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
- package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.service.js.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.d.ts +77 -5
- package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.js +155 -1
- 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 +2 -2
- package/dist/src/services/credentials/local-defaults.service.js.map +1 -1
- package/dist/src/services/credentials/local-secrets-store.service.d.ts +14 -2
- package/dist/src/services/credentials/local-secrets-store.service.d.ts.map +1 -1
- package/dist/src/services/credentials/local-secrets-store.service.js +29 -2
- 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 +4 -0
- 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 +144 -4
- package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secret-requirements.service.js +467 -20
- 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 +6 -0
- package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-reader.service.js +13 -2
- package/dist/src/services/credentials/secrets-reader.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.js +3 -2
- package/dist/src/services/credentials/secrets-rotation.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.d.ts +2 -1
- package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.js +5 -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.server-config.d.ts +79 -0
- package/dist/src/services/data-services/platform-key-vault.server-config.d.ts.map +1 -0
- package/dist/src/services/data-services/platform-key-vault.server-config.js +157 -0
- package/dist/src/services/data-services/platform-key-vault.server-config.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.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 +4 -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 +9 -16
- 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 +67 -25
- 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 +15 -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 +19 -6
- 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/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 +1 -1
- package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
- package/dist/src/services/deployment/infra-writer.service.js +2 -2
- 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 +38 -0
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js +51 -2
- 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 +69 -0
- 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 +103 -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 +1 -2
- 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 +59 -45
- 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 +26 -20
- 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 +26 -0
- package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-operations.service.js +79 -0
- 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 +19 -2
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s.schemas.d.ts +5 -2
- package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s.schemas.js +5 -2
- package/dist/src/services/deployment/k8s/k8s.schemas.js.map +1 -1
- package/dist/src/services/deployment/k8s/kind.service.d.ts +10 -6
- package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/kind.service.js +3 -57
- 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/local-dev-log-retention.service.d.ts +45 -0
- package/dist/src/services/deployment/local-dev-log-retention.service.d.ts.map +1 -0
- package/dist/src/services/deployment/local-dev-log-retention.service.js +83 -0
- package/dist/src/services/deployment/local-dev-log-retention.service.js.map +1 -0
- 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 +2 -2
- 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 +2 -2
- 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 +20 -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 +14 -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 +42 -0
- 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.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 +60 -0
- 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 +317 -64
- 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 +21 -2
- 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 +23 -40
- 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 +20 -0
- 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 +47 -5
- 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 +28 -4
- 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 +67 -9
- 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 +63 -0
- package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.constants.js +63 -0
- package/dist/src/services/design-tokens/design-tokens.constants.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.models.d.ts +24 -0
- package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.models.js +22 -0
- 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 +30 -0
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.js +47 -1
- package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.d.ts +4 -4
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js +18 -12
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
- package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-sync.service.js +1 -1
- package/dist/src/services/environment/env-sync.service.js.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.js +201 -6
- 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 +6 -0
- package/dist/src/services/environment/environment-hydration.utils.js.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
- package/dist/src/services/environment/environment-paths.service.d.ts +5 -7
- package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-paths.service.js +5 -7
- package/dist/src/services/environment/environment-paths.service.js.map +1 -1
- package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-registry.service.js.map +1 -1
- package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.js +15 -19
- package/dist/src/services/environment/environment-setup.service.js.map +1 -1
- package/dist/src/services/environment/environment.schemas.d.ts +21 -3
- 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.map +1 -1
- 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 +36 -58
- package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.js +37 -58
- package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts +17 -12
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.js +100 -23
- package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -1
- 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-provider-skills.service.d.ts +38 -0
- package/dist/src/services/framework/application-provider-skills.service.d.ts.map +1 -0
- package/dist/src/services/framework/application-provider-skills.service.js +189 -0
- package/dist/src/services/framework/application-provider-skills.service.js.map +1 -0
- package/dist/src/services/framework/application-rule-imports.d.ts +2 -1
- package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -1
- package/dist/src/services/framework/application-rule-imports.js +25 -7
- package/dist/src/services/framework/application-rule-imports.js.map +1 -1
- package/dist/src/services/framework/auditable-event-catalog.generator.d.ts +49 -0
- package/dist/src/services/framework/auditable-event-catalog.generator.d.ts.map +1 -0
- package/dist/src/services/framework/auditable-event-catalog.generator.js +84 -0
- package/dist/src/services/framework/auditable-event-catalog.generator.js.map +1 -0
- package/dist/src/services/framework/claude-plugin-compiler.d.ts.map +1 -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 +33 -0
- package/dist/src/services/framework/enum-member-docs.reader.d.ts.map +1 -0
- package/dist/src/services/framework/enum-member-docs.reader.js +63 -0
- package/dist/src/services/framework/enum-member-docs.reader.js.map +1 -0
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.d.ts +30 -0
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.d.ts.map +1 -0
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.js +57 -0
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.js.map +1 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +6 -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 +64 -2
- package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.js +3 -2
- 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 +0 -6
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.js +11 -36
- package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts +7 -3
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.js +79 -69
- package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts +6 -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 +13 -0
- package/dist/src/services/framework/framework-knowledge-scan.constants.js.map +1 -1
- package/dist/src/services/framework/framework-npm-dist-tag.service.d.ts +81 -0
- package/dist/src/services/framework/framework-npm-dist-tag.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-npm-dist-tag.service.js +149 -0
- package/dist/src/services/framework/framework-npm-dist-tag.service.js.map +1 -0
- package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.js +7 -5
- package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts +10 -36
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-publish-manifest.service.js +15 -58
- package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
- package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-release.service.js +4 -1
- package/dist/src/services/framework/framework-release.service.js.map +1 -1
- package/dist/src/services/framework/framework-update.service.d.ts +6 -0
- package/dist/src/services/framework/framework-update.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-update.service.js +15 -1
- package/dist/src/services/framework/framework-update.service.js.map +1 -1
- package/dist/src/services/framework/framework-version.service.d.ts +2 -4
- package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-version.service.js +5 -7
- 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 +3 -3
- package/dist/src/services/framework/frontend-library-root-exports.js.map +1 -1
- package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
- 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 +9 -0
- package/dist/src/services/framework/package-install.service.d.ts.map +1 -1
- package/dist/src/services/framework/package-install.service.js +14 -0
- 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 +12 -4
- 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 +43 -0
- package/dist/src/services/framework/registry-host/registry-host-monitoring.d.ts.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host-monitoring.js +103 -0
- package/dist/src/services/framework/registry-host/registry-host-monitoring.js.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host-remote.d.ts +29 -0
- package/dist/src/services/framework/registry-host/registry-host-remote.d.ts.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host-remote.js +98 -0
- package/dist/src/services/framework/registry-host/registry-host-remote.js.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host.service.d.ts +102 -0
- package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host.service.js +318 -0
- package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -0
- package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -1
- package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -1
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-dist-uploader.service.js.map +1 -1
- package/dist/src/services/frontend/frontend-look.service.d.ts +264 -0
- package/dist/src/services/frontend/frontend-look.service.d.ts.map +1 -0
- package/dist/src/services/frontend/frontend-look.service.js +640 -0
- package/dist/src/services/frontend/frontend-look.service.js.map +1 -0
- 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/artifact-extractor.utils.d.ts +9 -4
- package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
- package/dist/src/services/registry/artifact-extractor.utils.js +16 -9
- 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 +7 -2
- 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.map +1 -1
- package/dist/src/services/registry/index.d.ts +0 -1
- package/dist/src/services/registry/index.d.ts.map +1 -1
- package/dist/src/services/registry/index.js +0 -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 +25 -0
- package/dist/src/services/registry/installed-provider-module.service.d.ts.map +1 -0
- package/dist/src/services/registry/installed-provider-module.service.js +56 -0
- package/dist/src/services/registry/installed-provider-module.service.js.map +1 -0
- package/dist/src/services/registry/local-checkout-module-source.service.d.ts +12 -10
- 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 +60 -58
- 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 +6 -0
- package/dist/src/services/registry/module-acquisition.utils.d.ts.map +1 -1
- package/dist/src/services/registry/module-acquisition.utils.js +7 -0
- 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 +70 -0
- package/dist/src/services/registry/module-install.service.d.ts.map +1 -0
- package/dist/src/services/registry/module-install.service.js +199 -0
- package/dist/src/services/registry/module-install.service.js.map +1 -0
- package/dist/src/services/registry/module-publish.service.d.ts +49 -0
- package/dist/src/services/registry/module-publish.service.d.ts.map +1 -0
- package/dist/src/services/registry/module-publish.service.js +79 -0
- package/dist/src/services/registry/module-publish.service.js.map +1 -0
- package/dist/src/services/registry/module-registration.service.d.ts +26 -0
- package/dist/src/services/registry/module-registration.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-registration.service.js +474 -20
- package/dist/src/services/registry/module-registration.service.js.map +1 -1
- package/dist/src/services/registry/module-requirements.service.d.ts +42 -2
- package/dist/src/services/registry/module-requirements.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-requirements.service.js +133 -6
- package/dist/src/services/registry/module-requirements.service.js.map +1 -1
- package/dist/src/services/registry/provider-install-step.d.ts +77 -14
- package/dist/src/services/registry/provider-install-step.d.ts.map +1 -1
- package/dist/src/services/registry/provider-install-step.js +189 -4
- package/dist/src/services/registry/provider-install-step.js.map +1 -1
- package/dist/src/services/registry/provider-module-checks.service.d.ts +27 -4
- package/dist/src/services/registry/provider-module-checks.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-checks.service.js +513 -19
- package/dist/src/services/registry/provider-module-checks.service.js.map +1 -1
- 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 +156 -0
- package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-module-scaffold.service.js +681 -0
- package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -0
- package/dist/src/services/registry/provider-module-vendor-packages.service.d.ts +84 -0
- package/dist/src/services/registry/provider-module-vendor-packages.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-module-vendor-packages.service.js +361 -0
- package/dist/src/services/registry/provider-module-vendor-packages.service.js.map +1 -0
- package/dist/src/services/registry/provider-openapi-conformance.service.d.ts +107 -0
- package/dist/src/services/registry/provider-openapi-conformance.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-openapi-conformance.service.js +484 -0
- package/dist/src/services/registry/provider-openapi-conformance.service.js.map +1 -0
- package/dist/src/services/registry/provider-probe.service.d.ts +84 -0
- package/dist/src/services/registry/provider-probe.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-probe.service.js +230 -0
- package/dist/src/services/registry/provider-probe.service.js.map +1 -0
- package/dist/src/services/registry/provider-publication.service.d.ts +35 -0
- package/dist/src/services/registry/provider-publication.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-publication.service.js +203 -0
- package/dist/src/services/registry/provider-publication.service.js.map +1 -0
- package/dist/src/services/registry/provider-vendor-registration.service.d.ts +73 -0
- package/dist/src/services/registry/provider-vendor-registration.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-vendor-registration.service.js +88 -0
- package/dist/src/services/registry/provider-vendor-registration.service.js.map +1 -0
- package/dist/src/services/registry/provider-wiring.service.d.ts +21 -2
- package/dist/src/services/registry/provider-wiring.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-wiring.service.js +90 -16
- package/dist/src/services/registry/provider-wiring.service.js.map +1 -1
- package/dist/src/services/registry/registry-command.utils.d.ts +19 -2
- package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
- package/dist/src/services/registry/registry-command.utils.js +35 -2
- 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.map +1 -1
- package/dist/src/services/security/csp-sync.service.js +11 -30
- 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.map +1 -1
- package/dist/src/services/website/website-label-pack-audit.service.js.map +1 -1
- package/dist/src/services/website/website-look.service.d.ts +167 -0
- package/dist/src/services/website/website-look.service.d.ts.map +1 -0
- package/dist/src/services/website/website-look.service.js +430 -0
- package/dist/src/services/website/website-look.service.js.map +1 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts +5 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
- package/dist/src/services/website/website-structured-data-audit.service.js +20 -0
- package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
- package/dist/src/services/website/website-workspace.service.d.ts +16 -0
- package/dist/src/services/website/website-workspace.service.d.ts.map +1 -1
- package/dist/src/services/website/website-workspace.service.js +19 -2
- package/dist/src/services/website/website-workspace.service.js.map +1 -1
- package/framework-root-package.json +9 -2
- package/package.json +26 -19
- package/scripts/app-dependency-alignment/propagated-engine-overrides.json +4 -11
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +159 -5
- package/templates/infra/docker-images/platform/Dockerfile.platform-base +23 -5
- package/templates/infra/k8s/internal/minio/deployment.yaml.hbs +6 -1
- package/templates/infra/k8s/internal/openbao/configmap.yaml.hbs +20 -0
- package/templates/infra/k8s/internal/openbao/deployment.yaml.hbs +110 -0
- package/templates/infra/k8s/internal/openbao/service.yaml.hbs +20 -0
- package/templates/infra/k8s/platform/platform-apps-manager/deployment.yaml.hbs +23 -79
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +21 -75
- package/templates/infra/k8s/platform/platform-module-registry/deployment.yaml.hbs +22 -75
- package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +27 -0
- package/templates/infra/registry-host/Caddyfile +33 -0
- package/templates/infra/registry-host/backup.sh +73 -0
- package/templates/infra/registry-host/docker-compose.yml +328 -0
- package/templates/infra/registry-host/restore-check.sh +43 -0
- package/templates/infra/registry-host/wildo-registry-backup.service +15 -0
- package/templates/infra/registry-host/wildo-registry-backup.timer +12 -0
- package/templates/saas/blueprints/b2b-saas/blueprint.json +26 -0
- package/templates/saas/blueprints/internal-tool/blueprint.json +47 -0
- package/templates/saas/blueprints/service-firm/blueprint.json +57 -0
- package/templates/saas/i18n/email/components/EmailFooter.tsx +5 -3
- package/templates/saas/i18n/email/components/labels.en.ts +14 -0
- package/templates/saas/i18n/email/components/labels.fr.ts +13 -0
- package/templates/saas/i18n/email/email-template-definitions.ts +8 -0
- package/templates/saas/i18n/email/index.ts +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/create.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applicationApiKeys/deactivate.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applicationApiKeys/reactivate.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applicationApiKeys/regenerate.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applicationApiKeys/rotate.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applicationApiKeys/update.application-administrator/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/update.application-administrator/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/update.application-administrator/template.tsx +57 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/create.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applicationOAuthClients/deactivate.application-administrator/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/deactivate.application-administrator/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/deactivate.application-administrator/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/reactivate.application-administrator/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/reactivate.application-administrator/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/reactivate.application-administrator/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/regenerate.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applicationOAuthClients/rotate.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applicationOAuthClients/update.application-administrator/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/update.application-administrator/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/update.application-administrator/template.tsx +62 -0
- package/templates/saas/i18n/email/resources/applicationVersions/create.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applicationVersions/delete.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applicationVersions/deprecate.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applicationVersions/promote.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applicationVersions/rollback.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applications/create.admin.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applications/create.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applications/delete.admin.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applications/delete.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applications/transfer.admin.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applications/transfer.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applications/update.admin.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/applications/update.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.admin.organization-administrative/template.tsx +4 -4
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.organization-administrative/template.tsx +4 -4
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.admin.organization-administrative/template.tsx +4 -4
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.organization-administrative/template.tsx +4 -4
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.admin.organization-administrative/template.tsx +4 -4
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.organization-administrative/template.tsx +4 -4
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.admin.organization-administrative/template.tsx +4 -4
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.organization-administrative/template.tsx +4 -4
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.admin.organization-administrative/template.tsx +4 -4
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.organization-administrative/template.tsx +4 -4
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.admin.organization-administrative/template.tsx +4 -4
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.organization-administrative/template.tsx +4 -4
- package/templates/saas/i18n/email/resources/organizationFeatures/disable_feature.organization-users/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationFeatures/enable_feature.organization-users/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationFeatures/reset_features.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationFeatures/update.organization-users/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationInvoiceRefs/create.organization-billing_payment-failed/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationInvoiceRefs/create.organization-billing_payment-failed/labels.fr.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationInvoiceRefs/create.organization-billing_payment-failed/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationInvoiceRefs/update.organization-billing_payment-failed/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationInvoiceRefs/update.organization-billing_payment-failed/labels.fr.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationInvoiceRefs/update.organization-billing_payment-failed/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationMembers/create.user-self/template.tsx +9 -5
- package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-administrative_representing-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-administrative_representing-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-administrative_representing-organization/template.tsx +58 -0
- package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-users/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationMembers/grantOwnership.organization-users/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationMembers/makeOwner.organization-administrative/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/organizationMembers/makeOwner.organization-administrative/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationMembers/makeOwner.organization-administrative/template.tsx +60 -0
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-administrative_representing-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-administrative_representing-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-administrative_representing-organization/template.tsx +58 -0
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-users/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.users-custom/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationMembers/resend.user-self/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_admin/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_invitee/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationMembers/stepDownAsOwner.organization-administrative/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationMembers/stepDownAsOwner.organization-administrative/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationMembers/stepDownAsOwner.organization-administrative/template.tsx +63 -0
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-administrative_representing-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-administrative_representing-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-administrative_representing-organization/template.tsx +58 -0
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-users/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.users-custom/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationMembers/update.organization-users/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.admin.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.admin.organization-administrative/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.admin.organization-administrative/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.admin.organization-administrative/template.tsx +63 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.organization-administrative/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.organization-administrative/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/deactivate.organization-administrative/template.tsx +63 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.admin.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.admin.organization-administrative/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.admin.organization-administrative/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.admin.organization-administrative/template.tsx +62 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.organization-administrative/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.organization-administrative/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/reactivate.organization-administrative/template.tsx +62 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.admin.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.admin.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationOAuthClients/setAutonomousAgents.organization-administrative/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/setAutonomousAgents.organization-administrative/labels.fr.ts +25 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/setAutonomousAgents.organization-administrative/template.tsx +72 -0
- package/templates/saas/i18n/email/resources/organizationProviderCredentials/releaseRouting.organization-users/labels.en.ts +25 -0
- package/templates/saas/i18n/email/resources/organizationProviderCredentials/releaseRouting.organization-users/labels.fr.ts +25 -0
- package/templates/saas/i18n/email/resources/organizationProviderCredentials/releaseRouting.organization-users/template.tsx +68 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/accept.organization-administrative/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/accept.organization-administrative/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/accept.organization-administrative/template.tsx +66 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/amendScope.organization-administrative/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/amendScope.organization-administrative/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/amendScope.organization-administrative/template.tsx +63 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/decline.organization-administrative/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/decline.organization-administrative/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/decline.organization-administrative/template.tsx +62 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_granting-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_granting-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_granting-organization/template.tsx +55 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_representing-organization/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_representing-organization/labels.fr.ts +20 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endForRemovedParty.organization-administrative_representing-organization/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-granting-organization/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-granting-organization/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-granting-organization/template.tsx +63 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-representing-organization/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-representing-organization/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_expired-representing-organization/template.tsx +65 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_granting-organization/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_granting-organization/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_granting-organization/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_representing-organization/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_representing-organization/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/endWithReciprocal.organization-administrative_representing-organization/template.tsx +66 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_granting-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_granting-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_granting-organization/template.tsx +56 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_representing-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_representing-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/expire.organization-administrative_representing-organization/template.tsx +63 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/propose.organization-administrative/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/propose.organization-administrative/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/propose.organization-administrative/template.tsx +66 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/propose.withOperator.organization-administrative/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/propose.withOperator.organization-administrative/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/propose.withOperator.organization-administrative/template.tsx +66 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-granting-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-granting-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-granting-organization/template.tsx +58 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-representing-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-representing-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_deleting-representing-organization/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-granting-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-granting-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-granting-organization/template.tsx +58 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-representing-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-representing-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_revived-representing-organization/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-granting-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-granting-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-granting-organization/template.tsx +58 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-representing-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-representing-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordPartyStatusStanding.organization-administrative_suspended-representing-organization/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-granting-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-granting-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-granting-organization/template.tsx +56 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-representing-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-representing-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_dormant-representing-organization/template.tsx +59 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-granting-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-granting-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-granting-organization/template.tsx +57 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-representing-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-representing-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/recordTypeChangeStanding.organization-administrative_revived-representing-organization/template.tsx +59 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/resume.organization-administrative/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/resume.organization-administrative/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/resume.organization-administrative/template.tsx +66 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/suspend.organization-administrative/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/suspend.organization-administrative/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/suspend.organization-administrative/template.tsx +66 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/terminate.organization-administrative/labels.en.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/terminate.organization-administrative/labels.fr.ts +25 -0
- package/templates/saas/i18n/email/resources/organizationRelationships/terminate.organization-administrative/template.tsx +73 -0
- package/templates/saas/i18n/email/resources/organizationRepresentations/accept.organization-administrative/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationRepresentations/accept.organization-administrative/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationRepresentations/accept.organization-administrative/template.tsx +64 -0
- package/templates/saas/i18n/email/resources/organizationRepresentations/propose.organization-administrative/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationRepresentations/propose.organization-administrative/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationRepresentations/propose.organization-administrative/template.tsx +64 -0
- package/templates/saas/i18n/email/resources/organizationRepresentations/withdraw.organization-administrative/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationRepresentations/withdraw.organization-administrative/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationRepresentations/withdraw.organization-administrative/template.tsx +64 -0
- package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_granting-organization/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_granting-organization/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_granting-organization/template.tsx +65 -0
- package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_representing-organization/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_representing-organization/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationRepresentations/withdrawOnBehalf.organization-administrative_representing-organization/template.tsx +56 -0
- package/templates/saas/i18n/email/resources/organizationSubscriptions/cancel.organization-billing_subscription-ending/labels.en.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationSubscriptions/cancel.organization-billing_subscription-ending/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationSubscriptions/cancel.organization-billing_subscription-ending/template.tsx +56 -0
- package/templates/saas/i18n/email/resources/organizationSubscriptions/create.organization-billing_subscription-started/labels.en.ts +23 -0
- package/templates/saas/i18n/email/resources/organizationSubscriptions/create.organization-billing_subscription-started/labels.fr.ts +24 -0
- package/templates/saas/i18n/email/resources/organizationSubscriptions/create.organization-billing_subscription-started/template.tsx +60 -0
- package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-ending/labels.en.ts +21 -0
- package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-ending/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-ending/template.tsx +56 -0
- package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-started/labels.en.ts +23 -0
- package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-started/labels.fr.ts +24 -0
- package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-started/template.tsx +60 -0
- package/templates/saas/i18n/email/resources/organizationUnits/archive.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationUnits/create.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationUnits/delete.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationUnits/move.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationUnits/restore.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizationUnits/update.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizations/activate.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizations/changeType.organization-administrative/labels.en.ts +26 -0
- package/templates/saas/i18n/email/resources/organizations/changeType.organization-administrative/labels.fr.ts +29 -0
- package/templates/saas/i18n/email/resources/organizations/changeType.organization-administrative/template.tsx +79 -0
- package/templates/saas/i18n/email/resources/organizations/create.admin.user-self/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizations/create.user-self/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizations/request_deletion.admin.organization-users/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizations/request_deletion.organization-users/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizations/restore.organization-users/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizations/suspend.organization-users/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizations/update.admin.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/organizations/update.organization-administrative/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/platformAccessGrants/approve.users-custom_operator/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/platformAccessGrants/approve.users-custom_operator/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/platformAccessGrants/approve.users-custom_operator/template.tsx +58 -0
- package/templates/saas/i18n/email/resources/platformAccessGrants/deny.users-custom_operator/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/platformAccessGrants/deny.users-custom_operator/labels.fr.ts +20 -0
- package/templates/saas/i18n/email/resources/platformAccessGrants/deny.users-custom_operator/template.tsx +55 -0
- package/templates/saas/i18n/email/resources/platformAccessGrants/requestAccess.organization-users/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/platformAccessGrants/revoke.users-custom_operator/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/platformAccessGrants/revoke.users-custom_operator/labels.fr.ts +20 -0
- package/templates/saas/i18n/email/resources/platformAccessGrants/revoke.users-custom_operator/template.tsx +55 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/expire.organization-administrative_expired/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/expire.organization-administrative_expired/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/expire.organization-administrative_expired/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/expire.users-custom_holder/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/expire.users-custom_holder/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/expire.users-custom_holder/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/revoke.users-custom_holder/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/revoke.users-custom_holder/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/revoke.users-custom_holder/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/verify.users-custom_holder/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/verify.users-custom_holder/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/verify.users-custom_holder/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.organization-administrative_expiring/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.organization-administrative_expiring/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.organization-administrative_expiring/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.users-custom_holder/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.users-custom_holder/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/professionalQualifications/warnExpiry.users-custom_holder/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/expire.organization-administrative/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/expire.organization-administrative/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/expire.organization-administrative/template.tsx +60 -0
- package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grant.organization-administrative/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grant.organization-administrative/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grant.organization-administrative/template.tsx +63 -0
- package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grantSecurityCritical.organization-administrative/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grantSecurityCritical.organization-administrative/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/grantSecurityCritical.organization-administrative/template.tsx +63 -0
- package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/revoke.organization-administrative/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/revoke.organization-administrative/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/relationshipCapabilityGrants/revoke.organization-administrative/template.tsx +60 -0
- package/templates/saas/i18n/email/resources/representativeAssignments/assign.organization-administrative/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/representativeAssignments/assign.organization-administrative/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/representativeAssignments/assign.organization-administrative/template.tsx +60 -0
- package/templates/saas/i18n/email/resources/representativeAssignments/settleGrantorApproval.organization-administrative/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/representativeAssignments/settleGrantorApproval.organization-administrative/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/representativeAssignments/settleGrantorApproval.organization-administrative/template.tsx +60 -0
- package/templates/saas/i18n/email/resources/representativeAssignments/unassign.organization-administrative/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/representativeAssignments/unassign.organization-administrative/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/representativeAssignments/unassign.organization-administrative/template.tsx +60 -0
- package/templates/saas/i18n/email/resources/userInvoiceRefs/create.users-custom_payment-failed/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/userInvoiceRefs/create.users-custom_payment-failed/labels.fr.ts +18 -0
- package/templates/saas/i18n/email/resources/userInvoiceRefs/create.users-custom_payment-failed/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/userInvoiceRefs/update.users-custom_payment-failed/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/userInvoiceRefs/update.users-custom_payment-failed/labels.fr.ts +18 -0
- package/templates/saas/i18n/email/resources/userInvoiceRefs/update.users-custom_payment-failed/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/userSubscriptions/cancel.users-custom_subscription-ending/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/userSubscriptions/cancel.users-custom_subscription-ending/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/userSubscriptions/cancel.users-custom_subscription-ending/template.tsx +54 -0
- package/templates/saas/i18n/email/resources/userSubscriptions/create.users-custom_subscription-started/labels.en.ts +22 -0
- package/templates/saas/i18n/email/resources/userSubscriptions/create.users-custom_subscription-started/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/userSubscriptions/create.users-custom_subscription-started/template.tsx +58 -0
- package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-ending/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-ending/labels.fr.ts +21 -0
- package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-ending/template.tsx +54 -0
- package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-started/labels.en.ts +22 -0
- package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-started/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-started/template.tsx +58 -0
- package/templates/saas/i18n/email/resources/user_self/deactivate_account.user-self/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/user_self/reactivate_account.user-self/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/users/assign_roles.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/users/create.application-administrator/template.tsx +7 -7
- package/templates/saas/i18n/email/resources/users/delete.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/users/force_password_reset.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/users/reactivate_user.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/users/reactivate_user.users-custom/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/users/revoke_roles.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/users/send_invitation.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/users/suspend_user.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/users/suspend_user.users-custom/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/users/unsuspend_user.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/users/unsuspend_user.users-custom/template.tsx +2 -2
- package/templates/saas/i18n/email/resources/users/update.application-administrator/template.tsx +2 -2
- package/templates/saas/i18n/email/system/new-device-login/labels.en.ts +6 -8
- package/templates/saas/i18n/email/system/new-device-login/labels.fr.ts +6 -8
- package/templates/saas/i18n/email/system/new-device-login/template.tsx +25 -26
- package/templates/saas/i18n/email/system/operation-approval-ended/labels.en.ts +40 -0
- package/templates/saas/i18n/email/system/operation-approval-ended/labels.fr.ts +43 -0
- package/templates/saas/i18n/email/system/operation-approval-ended/template.tsx +72 -0
- package/templates/saas/i18n/email/system/relationship-invitation/labels.en.ts +18 -0
- package/templates/saas/i18n/email/system/relationship-invitation/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/system/relationship-invitation/template.tsx +66 -0
- package/templates/saas/i18n/email/system/security-alert/labels.en.ts +5 -0
- package/templates/saas/i18n/email/system/security-alert/labels.fr.ts +13 -8
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_COMMAND_MENU.en.ts +2 -2
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_COMMAND_MENU.fr.ts +2 -2
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.ts +5 -5
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.fr.ts +5 -5
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_SIDEBAR.en.ts +3 -1
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_SIDEBAR.fr.ts +3 -1
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_STATUS_BAR.en.ts +1 -1
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_STATUS_BAR.fr.ts +1 -1
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_USER_DROPDOWN.en.ts +6 -2
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_USER_DROPDOWN.fr.ts +6 -2
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_UTILITY_PANEL.en.ts +0 -1
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_UTILITY_PANEL.fr.ts +0 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_WORK_EVALUATION_EXPORT_SETTINGS.en.ts +28 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_WORK_EVALUATION_EXPORT_SETTINGS.fr.ts +28 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS.en.ts +55 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS.fr.ts +55 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.ts +47 -10
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.fr.ts +47 -10
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.ts +12 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_INVITATIONS_SETTINGS.fr.ts +12 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS.en.ts +38 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS.fr.ts +38 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_SECURITY_SETTINGS.en.ts +11 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_SECURITY_SETTINGS.fr.ts +11 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_SETTINGS_HUB.en.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_SETTINGS_HUB.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.ts +1 -9
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.fr.ts +1 -9
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_ACTOR.en.ts +5 -10
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_ACTOR.fr.ts +5 -10
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_AGENT_CONFIG.en.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +28 -9
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +28 -9
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.fr.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION.en.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION.fr.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +92 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +92 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_DECISION.en.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_DECISION.fr.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_DIFF_BLOCK.en.ts +5 -5
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_DIFF_BLOCK.fr.ts +5 -5
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.ts +4 -7
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_PLAN.fr.ts +4 -7
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_USAGE.en.ts +21 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_USAGE.fr.ts +21 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.ts +2 -9
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_FLOW_EXECUTION.fr.ts +2 -9
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_FLOW_NODE.en.ts +1 -9
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_FLOW_NODE.fr.ts +1 -9
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_GRAPH_VIEWER.en.ts +29 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_GRAPH_VIEWER.fr.ts +29 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.ts +3 -2
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_SYSTEM_CATALOG.fr.ts +3 -2
- package/templates/saas/i18n/engine/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_BILLING_PRICING_TABLE.fr.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.ts +5 -4
- package/templates/saas/i18n/engine/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.fr.ts +5 -4
- package/templates/saas/i18n/engine/components/LOW_LEVEL_CHIPS_INPUT.en.ts +14 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_CHIPS_INPUT.fr.ts +14 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.ts +2 -3
- package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.ts +2 -3
- package/templates/saas/i18n/engine/components/LOW_LEVEL_DATEPICKER.en.ts +11 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_DATEPICKER.fr.ts +11 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_DATETIME_PICKER.en.ts +11 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_DATETIME_PICKER.fr.ts +11 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_DATETIME_RANGE_PICKER.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_DATE_RANGE_PICKER.en.ts +11 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_DATE_RANGE_PICKER.fr.ts +11 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE.fr.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.fr.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.fr.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FEATURE_LIMIT_INDICATOR.en.ts +12 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FEATURE_LIMIT_INDICATOR.fr.ts +12 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.ts +2 -2
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.fr.ts +2 -2
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FILE_UPLOAD.en.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FILE_UPLOAD.fr.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD.en.ts +14 -4
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD.fr.ts +14 -4
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_ADDRESS.fr.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_CODE.en.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_CODE.fr.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_DURATION.en.ts +11 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_DURATION.fr.ts +11 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_FILE.en.ts +5 -5
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_FILE.fr.ts +5 -5
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_MONEY.en.ts +11 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_MONEY.fr.ts +11 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_RANGE_MONEY.en.ts +11 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_RANGE_MONEY.fr.ts +11 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_MESSAGE.en.ts +6 -6
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_MESSAGE.fr.ts +6 -6
- package/templates/saas/i18n/engine/components/LOW_LEVEL_SELECT_MULTIPLE.en.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_SELECT_MULTIPLE.fr.ts +1 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_STEPPER.en.ts +12 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_STEPPER.fr.ts +12 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_TIME_RANGE_PICKER.en.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_TIME_RANGE_PICKER.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_CHAT_IDENTITY_LINK.en.ts +31 -0
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_CHAT_IDENTITY_LINK.fr.ts +31 -0
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_LEGAL_NOTICE.en.ts +29 -0
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_LEGAL_NOTICE.fr.ts +29 -0
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +5 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +5 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_INVITATION.en.ts +2 -2
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_INVITATION.fr.ts +2 -2
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.ts +2 -2
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.fr.ts +2 -2
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_REGISTER.en.ts +2 -2
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_REGISTER.fr.ts +2 -2
- package/templates/saas/i18n/engine/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.ts +5 -2
- package/templates/saas/i18n/engine/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.fr.ts +5 -2
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_ACTION.en.ts +2 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_ACTION.fr.ts +3 -2
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_CREATE.en.ts +3 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_CREATE.fr.ts +3 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.en.ts +4 -5
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.fr.ts +4 -5
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.ts +5 -5
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.fr.ts +6 -6
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.ts +6 -5
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.fr.ts +6 -5
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_RECORD_SHARING.en.ts +29 -0
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_RECORD_SHARING.fr.ts +29 -0
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_SEARCH.en.ts +0 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_SEARCH.fr.ts +0 -1
- package/templates/saas/i18n/engine/components/guidance_checklist.en.ts +1 -1
- package/templates/saas/i18n/engine/components/guidance_checklist.fr.ts +1 -1
- package/templates/saas/i18n/engine/components/progression_milestone_tracker.en.ts +1 -1
- package/templates/saas/i18n/engine/components/progression_milestone_tracker.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +334 -0
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +334 -0
- package/templates/saas/i18n/engine/resources/actorTasks.en.ts +397 -0
- package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +397 -0
- package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +55 -0
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +55 -0
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.en.ts +16 -0
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.fr.ts +16 -0
- package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +5 -2
- package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +35 -32
- package/templates/saas/i18n/engine/resources/applicationAuditLogs.en.ts +20 -4
- package/templates/saas/i18n/engine/resources/applicationAuditLogs.fr.ts +20 -4
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +405 -21
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +405 -21
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +104 -0
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +104 -0
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +16 -0
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +16 -0
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +5 -2
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +23 -20
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +14 -0
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +14 -0
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +43 -24
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +43 -24
- package/templates/saas/i18n/engine/resources/applicationWebhookConfig.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/applicationWebhookConfig.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/applications.en.ts +336 -0
- package/templates/saas/i18n/engine/resources/applications.fr.ts +336 -0
- package/templates/saas/i18n/engine/resources/auditLogs.en.ts +39 -7
- package/templates/saas/i18n/engine/resources/auditLogs.fr.ts +39 -7
- package/templates/saas/i18n/engine/resources/chatConversations.en.ts +486 -0
- package/templates/saas/i18n/engine/resources/chatConversations.fr.ts +486 -0
- package/templates/saas/i18n/engine/resources/chatIdentityLinks.en.ts +271 -0
- package/templates/saas/i18n/engine/resources/chatIdentityLinks.fr.ts +271 -0
- package/templates/saas/i18n/engine/resources/consumableTokens.en.ts +10 -2
- package/templates/saas/i18n/engine/resources/consumableTokens.fr.ts +10 -2
- package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +140 -11
- package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +140 -11
- package/templates/saas/i18n/engine/resources/documentSequenceCounters.en.ts +69 -0
- package/templates/saas/i18n/engine/resources/documentSequenceCounters.fr.ts +69 -0
- package/templates/saas/i18n/engine/resources/etlPipelineStates.en.ts +46 -1
- package/templates/saas/i18n/engine/resources/etlPipelineStates.fr.ts +46 -1
- package/templates/saas/i18n/engine/resources/evaluationDatasetExports.en.ts +16 -0
- package/templates/saas/i18n/engine/resources/evaluationDatasetExports.fr.ts +16 -0
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +72 -48
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +72 -48
- package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.en.ts +2 -1
- package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.fr.ts +2 -1
- package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.en.ts +26 -3
- package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.fr.ts +26 -3
- package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.en.ts +160 -0
- package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.fr.ts +160 -0
- package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.en.ts +180 -2
- package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.fr.ts +180 -2
- package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.en.ts +24 -0
- package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.fr.ts +24 -0
- package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.en.ts +422 -0
- package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.fr.ts +422 -0
- package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +153 -7
- package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +153 -7
- package/templates/saas/i18n/engine/resources/jobPayloadStorage.en.ts +2 -1
- package/templates/saas/i18n/engine/resources/jobPayloadStorage.fr.ts +2 -1
- package/templates/saas/i18n/engine/resources/legalHolds.en.ts +23 -0
- package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +23 -0
- 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/oauthConsentGrants.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/oauthConsentGrants.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +478 -0
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +478 -0
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.en.ts +16 -0
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.fr.ts +16 -0
- package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +5 -2
- package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +36 -33
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +16 -0
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +16 -0
- package/templates/saas/i18n/engine/resources/organizationChatSettings.en.ts +153 -0
- package/templates/saas/i18n/engine/resources/organizationChatSettings.fr.ts +153 -0
- package/templates/saas/i18n/engine/resources/organizationEmailDomains.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +0 -9
- package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +0 -9
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +405 -21
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +405 -21
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +104 -0
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +104 -0
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +16 -0
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +16 -0
- package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +13 -5
- package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +31 -23
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +5 -2
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +18 -15
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +19 -0
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +19 -0
- package/templates/saas/i18n/engine/resources/{serviceProviderRelationships.en.ts → organizationRelationships.en.ts} +220 -37
- package/templates/saas/i18n/engine/resources/{serviceProviderRelationships.fr.ts → organizationRelationships.fr.ts} +204 -21
- package/templates/saas/i18n/engine/resources/{serviceEngagements.en.ts → organizationRepresentations.en.ts} +97 -84
- package/templates/saas/i18n/engine/resources/{serviceEngagements.fr.ts → organizationRepresentations.fr.ts} +75 -62
- package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +14 -0
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +14 -0
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +68 -49
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +68 -49
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +9 -9
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/organizations.en.ts +71 -11
- package/templates/saas/i18n/engine/resources/organizations.fr.ts +71 -11
- package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +42 -0
- package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +42 -0
- package/templates/saas/i18n/engine/resources/promotions.en.ts +28 -0
- package/templates/saas/i18n/engine/resources/promotions.fr.ts +28 -0
- package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +50 -0
- package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +50 -0
- package/templates/saas/i18n/engine/resources/{serviceProviderCapabilityGrants.en.ts → relationshipCapabilityGrants.en.ts} +19 -3
- package/templates/saas/i18n/engine/resources/{serviceProviderCapabilityGrants.fr.ts → relationshipCapabilityGrants.fr.ts} +40 -24
- package/templates/saas/i18n/engine/resources/{serviceProviderActivityFeed.en.ts → relationshipInvitations.en.ts} +137 -55
- package/templates/saas/i18n/engine/resources/{serviceProviderActivityFeed.fr.ts → relationshipInvitations.fr.ts} +137 -55
- package/templates/saas/i18n/engine/resources/{clientMailboxes.en.ts → relationshipMailboxes.en.ts} +35 -35
- package/templates/saas/i18n/engine/resources/{clientMailboxes.fr.ts → relationshipMailboxes.fr.ts} +39 -39
- package/templates/saas/i18n/engine/resources/{serviceEngagementAssignments.en.ts → representativeAssignments.en.ts} +43 -6
- package/templates/saas/i18n/engine/resources/{serviceEngagementAssignments.fr.ts → representativeAssignments.fr.ts} +43 -6
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.en.ts +16 -0
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.fr.ts +16 -0
- package/templates/saas/i18n/engine/resources/userBillingAccounts.en.ts +16 -0
- package/templates/saas/i18n/engine/resources/userBillingAccounts.fr.ts +16 -0
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +405 -21
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +405 -21
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/userIdentityLinks.en.ts +19 -0
- package/templates/saas/i18n/engine/resources/userIdentityLinks.fr.ts +19 -0
- package/templates/saas/i18n/engine/resources/userPreferences.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/user_self.en.ts +112 -38
- package/templates/saas/i18n/engine/resources/user_self.fr.ts +125 -51
- package/templates/saas/i18n/engine/resources/users.en.ts +15 -15
- package/templates/saas/i18n/engine/resources/users.fr.ts +11 -11
- package/templates/saas/i18n/engine/resources/workbenchBrandLogoDirections.en.ts +27 -11
- package/templates/saas/i18n/engine/resources/workbenchBrandLogoDirections.fr.ts +27 -3
- package/templates/saas/i18n/engine/resources/workbenchBrandNameCandidates.en.ts +134 -0
- package/templates/saas/i18n/engine/resources/workbenchBrandNameCandidates.fr.ts +134 -0
- package/templates/saas/i18n/engine/resources/workbenchBrandNameJurisdictions.en.ts +134 -0
- package/templates/saas/i18n/engine/resources/workbenchBrandNameJurisdictions.fr.ts +134 -0
- package/templates/saas/i18n/engine/resources/workbenchBrandNameNiceClasses.en.ts +134 -0
- package/templates/saas/i18n/engine/resources/workbenchBrandNameNiceClasses.fr.ts +134 -0
- package/templates/saas/i18n/engine/resources/workbenchBrandNames.en.ts +27 -11
- package/templates/saas/i18n/engine/resources/workbenchBrandNames.fr.ts +27 -3
- package/templates/saas/i18n/engine/resources/workbenchBrandVisualTones.en.ts +27 -11
- package/templates/saas/i18n/engine/resources/workbenchBrandVisualTones.fr.ts +27 -3
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatchPlan.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatchPlan.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatches.en.ts +24 -0
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatches.fr.ts +24 -0
- package/templates/saas/i18n/engine/resources/workbenchBuildPlanTasks.en.ts +209 -0
- package/templates/saas/i18n/engine/resources/workbenchBuildPlanTasks.fr.ts +209 -0
- package/templates/saas/i18n/engine/resources/workbenchBuildTaskRecords.en.ts +702 -0
- package/templates/saas/i18n/engine/resources/workbenchBuildTaskRecords.fr.ts +702 -0
- package/templates/saas/i18n/engine/resources/workbenchBuildTasks.en.ts +120 -0
- package/templates/saas/i18n/engine/resources/workbenchBuildTasks.fr.ts +120 -0
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanLifecycles.en.ts +174 -0
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanLifecycles.fr.ts +174 -0
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanModules.en.ts +32 -0
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanModules.fr.ts +32 -0
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanResources.en.ts +64 -0
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanResources.fr.ts +64 -0
- package/templates/saas/i18n/engine/resources/workbenchDossierEntries.en.ts +183 -0
- package/templates/saas/i18n/engine/resources/workbenchDossierEntries.fr.ts +183 -0
- package/templates/saas/i18n/engine/resources/workbenchExperienceHomes.en.ts +254 -0
- package/templates/saas/i18n/engine/resources/workbenchExperienceHomes.fr.ts +254 -0
- package/templates/saas/i18n/engine/resources/workbenchExperienceViews.en.ts +32 -0
- package/templates/saas/i18n/engine/resources/workbenchExperienceViews.fr.ts +32 -0
- package/templates/saas/i18n/engine/resources/workbenchFunctionalRequirements.en.ts +40 -0
- package/templates/saas/i18n/engine/resources/workbenchFunctionalRequirements.fr.ts +40 -0
- package/templates/saas/i18n/engine/resources/workbenchMarketPains.en.ts +58 -34
- package/templates/saas/i18n/engine/resources/workbenchMarketPains.fr.ts +58 -26
- package/templates/saas/i18n/engine/resources/workbenchNonFunctionalRequirements.en.ts +40 -0
- package/templates/saas/i18n/engine/resources/workbenchNonFunctionalRequirements.fr.ts +40 -0
- package/templates/saas/i18n/engine/resources/workbenchPlaybookRuns.en.ts +96 -0
- package/templates/saas/i18n/engine/resources/workbenchPlaybookRuns.fr.ts +96 -0
- package/templates/saas/i18n/engine/resources/workbenchPlaybooks.en.ts +736 -0
- package/templates/saas/i18n/engine/resources/workbenchPlaybooks.fr.ts +736 -0
- package/templates/saas/i18n/engine/resources/workbenchRunWriteRecords.en.ts +40 -0
- package/templates/saas/i18n/engine/resources/workbenchRunWriteRecords.fr.ts +40 -0
- package/templates/saas/i18n/engine/resources/workbenchSpecificationArtifacts.en.ts +232 -0
- package/templates/saas/i18n/engine/resources/workbenchSpecificationArtifacts.fr.ts +232 -0
- package/templates/saas/scenarios/add-3d-layout/scenario.json +2 -2
- package/templates/saas/scenarios/add-custom-operation/files/backend-api/src/modules/__moduleDir__/resources/__resourceDir__/__resourceDir__.__operationIdentifier__.default.operation.ts.hbs +1 -1
- package/templates/saas/scenarios/add-custom-operation/scenario.json +1 -0
- package/templates/saas/scenarios/add-environment/files/infrastructure/__envName__/wildo.infra.remote.config.ts.hbs +4 -4
- package/templates/saas/scenarios/add-file-picker-provider/files/frontend/src/engine/providers/__providerRef__.frontend-app.module.ts.hbs +1 -1
- package/templates/saas/scenarios/add-file-picker-provider/scenario.json +2 -0
- package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__.json.hbs +16 -9
- package/templates/saas/scenarios/add-locale/files/website/src/pages/__localePath__/index.astro +5 -2
- package/templates/saas/scenarios/add-locale/scenario.json +5 -3
- package/templates/saas/scenarios/add-marketing-page/files/website/src/pages/__pageRef__.astro.hbs +5 -2
- package/templates/saas/scenarios/add-marketing-page/files/website/src/pages-impl/__pageRef__.bridge.tsx.hbs +2 -0
- package/templates/saas/scenarios/add-marketing-page/files/website/src/sections/__pageRef__.sections.tsx.hbs +16 -44
- package/templates/saas/scenarios/add-marketing-page/scenario.json +72 -18
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/package.json.hbs +4 -4
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/application-initialization.ts.hbs +6 -1
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/wildo.minion.config.ts.hbs +4 -4
- package/templates/saas/scenarios/add-minion/scenario.json +3 -3
- package/templates/saas/scenarios/add-module/files/frontend/src/modules/__moduleId__/app-shell.module.frontend.ts.hbs +2 -0
- package/templates/saas/scenarios/add-module/files/specifications/src/modules/__moduleId__/index.ts.hbs +2 -2
- package/templates/saas/scenarios/add-module/scenario.json +2 -0
- package/templates/saas/scenarios/add-resource/files/shared-lib/src/modules/__moduleId__/resources/__resourceDir__/__resourceDir__.schemas.ts.hbs +1 -1
- package/templates/saas/scenarios/add-resource/files/specifications/src/modules/__moduleId__/resources/__resourceDir__.resource.specification.ts.hbs +7 -7
- package/templates/saas/scenarios/add-resource/scenario.json +2 -1
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +10 -4
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/package.json.hbs +4 -3
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/scripts/substitute-api-origin.mjs +64 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +11 -1
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +2 -2
- package/templates/saas/scenarios/add-technical-doc/scenario.json +2 -2
- package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +49 -6
- package/templates/saas/scenarios/add-website/files/website/package.json.hbs +1 -1
- package/templates/saas/scenarios/add-website/files/website/src/app-origin.ts.hbs +8 -6
- package/templates/saas/scenarios/add-website/files/website/src/brand-theme.ts +66 -0
- package/templates/saas/scenarios/add-website/files/website/src/components/FooterComponent.tsx.hbs +25 -20
- package/templates/saas/scenarios/add-website/files/website/src/components/HeaderComponent.tsx +15 -100
- package/templates/saas/scenarios/add-website/files/website/src/components/index.ts +9 -7
- package/templates/saas/scenarios/add-website/files/website/src/i18n/en.json.hbs +15 -9
- package/templates/saas/scenarios/add-website/files/website/src/pages/index.astro +5 -2
- package/templates/saas/scenarios/add-website/files/website/src/pages-impl/landing.bridge.tsx +3 -1
- package/templates/saas/scenarios/add-website/files/website/src/sections/index.ts +5 -9
- package/templates/saas/scenarios/add-website/files/website/src/sections/landing.sections.tsx +22 -58
- package/templates/saas/scenarios/add-website/files/website/src/site-menu.ts +47 -0
- package/templates/saas/scenarios/add-website/files/website/src/styles/website.css +46 -411
- package/templates/saas/scenarios/add-website/files/website/src/website-root.config.ts.hbs +34 -45
- package/templates/saas/scenarios/add-website/files/website/wildo.website.config.ts.hbs +5 -4
- package/templates/saas/scenarios/add-website/scenario.json +1 -1
- package/templates/saas/scenarios/add-website-section/scenario.json +17 -7
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/package.json.hbs +2 -2
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/wildo.worker.config.ts.hbs +3 -3
- package/templates/saas/scenarios/add-worker-node/scenario.json +1 -1
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Cargo.toml.hbs +1 -1
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/main.rs.hbs +9 -2
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/wildo.worker.config.ts.hbs +3 -3
- package/templates/saas/skeleton/CLAUDE.md.hbs +8 -0
- package/templates/saas/skeleton/backend-api/Dockerfile +2 -1
- package/templates/saas/skeleton/backend-api/src/bootstrap-config.ts +13 -4
- package/templates/saas/skeleton/backend-api/src/engine/email/email-template-definitions.ts +8 -0
- package/templates/saas/skeleton/backend-api/src/engine/email/index.ts +1 -1
- package/templates/saas/skeleton/backend-api/src/engine/index.ts +2 -1
- package/templates/saas/skeleton/backend-api/src/modules-registry.backend.ts.hbs +5 -0
- package/templates/saas/skeleton/frontend/src/config/app-shell.config.ts +2 -13
- package/templates/saas/skeleton/frontend/src/config/design-system.config.ts +35 -125
- package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +14 -12
- package/templates/saas/skeleton/frontend/src/index.css.hbs +145 -130
- package/templates/saas/skeleton/frontend/src/modules-registry.frontend.ts.hbs +2 -0
- package/templates/saas/skeleton/frontend/vite.config.ts.hbs +35 -0
- package/templates/saas/skeleton/gitignore +1 -0
- package/templates/saas/skeleton/wildo.saas.config.ts.init.hbs +53 -20
- package/wildo-framework.info.json +1 -1
- package/dist/src/services/registry/registry-config-resolver.service.d.ts +0 -62
- package/dist/src/services/registry/registry-config-resolver.service.d.ts.map +0 -1
- package/dist/src/services/registry/registry-config-resolver.service.js +0 -148
- package/dist/src/services/registry/registry-config-resolver.service.js.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/templates/saas/i18n/email/system/organization-invitation/labels.en.ts +0 -15
- package/templates/saas/i18n/email/system/organization-invitation/labels.fr.ts +0 -21
- package/templates/saas/i18n/email/system/organization-invitation/template.tsx +0 -66
- package/templates/saas/i18n/email/system/payment-failed/labels.en.ts +0 -16
- package/templates/saas/i18n/email/system/payment-failed/labels.fr.ts +0 -21
- package/templates/saas/i18n/email/system/payment-failed/template.tsx +0 -59
- package/templates/saas/i18n/email/system/subscription-cancelled/labels.en.ts +0 -15
- package/templates/saas/i18n/email/system/subscription-cancelled/labels.fr.ts +0 -20
- package/templates/saas/i18n/email/system/subscription-cancelled/template.tsx +0 -56
- package/templates/saas/i18n/email/system/subscription-confirmation/labels.en.ts +0 -14
- package/templates/saas/i18n/email/system/subscription-confirmation/labels.fr.ts +0 -21
- package/templates/saas/i18n/email/system/subscription-confirmation/template.tsx +0 -60
- package/templates/saas/i18n/engine/resources/applicationScimTokens.en.ts +0 -240
- package/templates/saas/i18n/engine/resources/applicationScimTokens.fr.ts +0 -345
- package/templates/saas/i18n/engine/resources/serviceProviderActivityFeedSettings.en.ts +0 -209
- package/templates/saas/i18n/engine/resources/serviceProviderActivityFeedSettings.fr.ts +0 -209
- package/templates/saas/i18n/engine/resources/wildoApplication.en.ts +0 -590
- package/templates/saas/i18n/engine/resources/wildoApplication.fr.ts +0 -574
- package/templates/saas/i18n/engine/resources/wildoApplicationVersions.en.ts +0 -293
- package/templates/saas/i18n/engine/resources/wildoApplicationVersions.fr.ts +0 -293
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* |---|---|
|
|
7
7
|
* | `wildo creation preflight` | prints it, exits non-zero on a FAIL |
|
|
8
8
|
* | `wildo local doctor` | prints it beside the stack checks |
|
|
9
|
-
* | `wildo creation run`, `wildo creation loop` | refuses BEFORE contacting the companion on a FAIL, so nothing is spent |
|
|
9
|
+
* | `wildo creation run`, `wildo creation loop`, `wildo build run` | refuses BEFORE contacting the companion on a FAIL, so nothing is spent |
|
|
10
10
|
*
|
|
11
|
-
* One collector is what keeps them from drifting: a check added here is asked by
|
|
11
|
+
* One collector is what keeps them from drifting: a check added here is asked by every one of them, and none of them can
|
|
12
12
|
* hold a private list. The checks themselves live in two families by what they read — the application's declared
|
|
13
13
|
* configuration (`application-creation-readiness.service.ts`, each mirroring a runtime refusal and able to FAIL)
|
|
14
14
|
* and the host (`creation-host-readiness.service.ts`, advisory and only ever WARN).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creation-preflight.service.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"creation-preflight.service.js","sourceRoot":"","sources":["../../../../../../src/services/application/creation-preflight.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,O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,CAAC,MAAM,CAAC;CACvD,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAgD;IACnF,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;QACjC,GAAG,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;QAC7F,GAAG,CAAC,MAAM,CAAC,MAAM,KAAK,4BAA4B,CAAC,IAAI,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KACnH,CAAC,CAAC;AACL,CAAC","sourcesContent":["/**\n * The creation preflight (#2229): can a creation run that starts now FINISH — one function, read by every surface\n * that asks.\n *\n * | surface | what it does with the result |\n * |---|---|\n * | `wildo creation preflight` | prints it, exits non-zero on a FAIL |\n * | `wildo local doctor` | prints it beside the stack checks |\n * | `wildo creation run`, `wildo creation loop`, `wildo build run` | refuses BEFORE contacting the companion on a FAIL, so nothing is spent |\n *\n * One collector is what keeps them from drifting: a check added here is asked by every one of them, and none of them can\n * hold a private list. The checks themselves live in two families by what they read — the application's declared\n * configuration (`application-creation-readiness.service.ts`, each mirroring a runtime refusal and able to FAIL)\n * and the host (`creation-host-readiness.service.ts`, advisory and only ever WARN).\n */\n\nimport chalk from 'chalk';\n\nimport { LocalPreconditionCheckStatus } from '~wildo-cli/services/deployment/local-precondition-checks.schemas';\nimport type { LocalPreconditionCheckResult } from '~wildo-cli/services/deployment/local-precondition-checks.schemas';\nimport { collectApplicationCreationReadinessChecks } from '~wildo-cli/services/application/application-creation-readiness.service';\nimport { collectCreationHostChecks } from '~wildo-cli/services/application/creation-host-readiness.service';\nimport type { HostProbe } from '~wildo-cli/services/application/creation-host-readiness.service';\nimport type { CommandContext } from '~wildo-cli/kernel/types';\n\nexport async function collectCreationPreflightChecks(input: {\n saasRoot: string;\n envName: string;\n frameworkRoot: string | null | undefined;\n hostProbe?: HostProbe;\n}): Promise<LocalPreconditionCheckResult[]> {\n return [\n ...await collectApplicationCreationReadinessChecks({ saasRoot: input.saasRoot, envName: input.envName }),\n ...collectCreationHostChecks({ frameworkRoot: input.frameworkRoot, applicationRoot: input.saasRoot, probe: input.hostProbe }),\n ];\n}\n\n/** The flag that lets an operator past a FAIL, on the two verbs that start a run. */\nexport const SKIP_PREFLIGHT_FLAG = 'skip-preflight';\n\n/**\n * Run the preflight before a verb that STARTS a creation run, and say whether the run may start.\n *\n * Called before the verb contacts the companion, so a refusal spends nothing: no brief is composed, no model is\n * called. A WARN never stops a run — it is printed and the run goes on.\n *\n * The refusal has a door, `--skip-preflight`, for the case the preflight cannot see: a key held somewhere it does\n * not look, or a run that deliberately exercises one step whose providers are fine while another step's are not.\n * The door is explicit and per invocation, and the run it lets through is still refused by the runtime at the step\n * that genuinely lacks its provider — skipping the preflight moves the refusal, it never removes it.\n */\nexport async function admitCreationRunAfterPreflight(ctx: CommandContext, verb: string, hostProbe?: HostProbe): Promise<boolean> {\n if (ctx.flags[SKIP_PREFLIGHT_FLAG] === true) {\n ctx.log.warn(`Creation preflight skipped (--${SKIP_PREFLIGHT_FLAG}); a missing provider will be refused at the step that needs it.`);\n return true;\n }\n const saasRoot = ctx.cliContext.resolvedHomes.app.declarationRoot;\n const envName = ctx.activeEnv?.name;\n if (!saasRoot || !envName) {\n ctx.log.error(`${verb} needs an application with an active environment to check before it starts. Run \\`wildo init\\` first.`);\n return false;\n }\n const results = await collectCreationPreflightChecks({\n saasRoot,\n envName,\n frameworkRoot: ctx.cliContext.resolvedHomes.framework.repositoryRoot,\n hostProbe,\n });\n const blocking = results.filter((result) => result.status !== LocalPreconditionCheckStatus.PASS);\n if (!hasPreflightFailure(results)) {\n for (const line of renderPreflightLines(blocking)) ctx.log.warn(line);\n return true;\n }\n ctx.log.error(`${verb} refused before starting: the creation preflight found what would stop this run.`);\n for (const line of renderPreflightLines(blocking)) ctx.log.info(line);\n ctx.log.info(chalk.dim(` Fix the FAIL lines, or pass --${SKIP_PREFLIGHT_FLAG} to start anyway. Full report: wildo creation preflight`));\n return false;\n}\n\nexport function hasPreflightFailure(results: readonly LocalPreconditionCheckResult[]): boolean {\n return results.some((result) => result.status === LocalPreconditionCheckStatus.FAIL);\n}\n\nconst STATUS_LABEL: Readonly<Record<LocalPreconditionCheckStatus, string>> = {\n [LocalPreconditionCheckStatus.PASS]: chalk.green('PASS'),\n [LocalPreconditionCheckStatus.WARN]: chalk.yellow('WARN'),\n [LocalPreconditionCheckStatus.FAIL]: chalk.red('FAIL'),\n};\n\n/**\n * One line per check — `PASS|WARN|FAIL name — detail` — and the remedy under every line that is not a PASS.\n *\n * Lines, not a table: the remedy is a sentence, and a table column wide enough for it is unreadable at 80 columns.\n */\nexport function renderPreflightLines(results: readonly LocalPreconditionCheckResult[]): string[] {\n return results.flatMap((result) => [\n `${STATUS_LABEL[result.status]} ${result.name}${result.detail ? ` — ${result.detail}` : ''}`,\n ...(result.status !== LocalPreconditionCheckStatus.PASS && result.fix ? [chalk.dim(` → ${result.fix}`)] : []),\n ]);\n}\n"]}
|
package/dist/src/services/application/degraded-registration-declaration-convergence.service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"degraded-registration-declaration-convergence.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"degraded-registration-declaration-convergence.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/application/degraded-registration-declaration-convergence.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAIH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAE5G;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC,EAAE,WAAW,CAAC,MAAM,CAAmC,CAAC;AAEzG,MAAM,WAAW,+CAA+C;IAC9D,GAAG,EAAE,gCAAgC,CAAC;IACtC,WAAW,EAAE,sBAAsB,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,EAAE,0BAA0B,CAAC;IAC/C,GAAG,EAAE,MAAM,CAAC;CACb;AAED,qBAAa,iDAAiD;IAC5D;;;;;;OAMG;WACU,QAAQ,CAAC,KAAK,EAAE,+CAA+C,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAgDhG;;;;OAIG;mBACkB,QAAQ;CAU9B"}
|
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,C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AC7C,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
|
+
{"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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AA2D,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,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,OAAO,GAAG,IAAI,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;QACvD,IAAI,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;YACxB,IAAI,CAAC;gBACH,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAA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AE,MAAM,EAAE,EAAE;gBACjC,qBAAqB,EAAE,CAAC;gBACxB,IAAI,UAAU,CAAC,OAAO,CAAC;oBAAE,UAAU,CAAC,OAAO,CAAC,CAAC;gBAC7C,IAAI,eAAe,KAAK,QAAQ,IAAI,CAAC,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC;oBAClE,OAAO,CAAC,GAAG,CAAC,CAAC;oBACb,OAAO;gBACT,CAAC;gBAED,IAAI,eAAe,KAAK,SAAS,IAAI,CAAC,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC;oBACnE,OAAO,CAAC,GAAG,CAAC,CAAC;oBACb,OAAO;gBACT,CAAC;gBAED,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;oBACxB,OAAO,CAAC,GAAG,CAAC,CAAC;oBACb,OAAO;gBACT,CAAC;gBAED,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;oBACzB,OAAO,CAAC,GAAG,CAAC,CAAC;oBACb,OAAO;gBACT,CAAC;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,O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AAC;oBACnE,OAAO,CAAC,GAAG,CAAC,CAAC;oBACb,OAAO;gBACT,CAAC;gBAED,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;oBACxB,OAAO,CAAC,GAAG,CAAC,CAAC;oBACb,OAAO;gBACT,CAAC;gBAED,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;oBACzB,OAAO,CAAC,GAAG,CAAC,CAAC;oBACb,OAAO;gBACT,CAAC;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 +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"}
|
|
@@ -88,7 +88,7 @@ export async function reconcileDevelopmentSchemaDrift(input) {
|
|
|
88
88
|
+ 'artifact is worse than none. Once the watchers have caught up, run `wildo db diff` to check.',
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
const currentJson = computeCurrentLockfileJson(ctx, saasRoot);
|
|
91
|
+
const currentJson = await computeCurrentLockfileJson(ctx, saasRoot);
|
|
92
92
|
if (currentJson === undefined) {
|
|
93
93
|
return {
|
|
94
94
|
outcome: DevSchemaDriftOutcome.SKIPPED_MODEL_UNAVAILABLE,
|
|
@@ -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,kBAAkB,EAClB,oBAAoB,GAGrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,wBAAwB,EA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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 = 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":"","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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G,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"]}
|
|
@@ -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,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ProviderConfigurationCredentialField, readProviderConfigurationCredentialFields } from '@wildo-ai/external-connectors-models';
|
|
2
|
+
import { isRuntimeSecretEnvVarName, overlayEnvironmentProviderConfigurations } from '@wildo-ai/platform-config-lib';
|
|
3
|
+
import { getComposedProviderEntry, getComposedProviderSecretsCatalogue } from '../../services/credentials/composed-provider-catalogue.js';
|
|
3
4
|
import { loadAuthoredInfraEnvConfig } from '../../services/environment/authored-infra-config.utils.js';
|
|
4
5
|
/**
|
|
5
6
|
* The provider configuration an application runs with IN ONE ENVIRONMENT — the single door both environment-aware
|
|
@@ -24,12 +25,14 @@ import { loadAuthoredInfraEnvConfig } from '../../services/environment/authored-
|
|
|
24
25
|
*/
|
|
25
26
|
export async function resolveEnvironmentProviderConfigurations(input) {
|
|
26
27
|
assertNoProviderSecretKeys(input.applicationProviderConfigurations, 'wildo.saas.config.ts');
|
|
28
|
+
assertConfiguredSecretRefsDeclared(input.applicationProviderConfigurations, 'wildo.saas.config.ts');
|
|
27
29
|
if (input.environmentName === null) {
|
|
28
30
|
return overlayEnvironmentProviderConfigurations(input.applicationProviderConfigurations, undefined);
|
|
29
31
|
}
|
|
30
32
|
const authored = await loadAuthoredInfraEnvConfig(input.environmentName, input.saasRoot);
|
|
31
33
|
const environmentProviderConfigurations = authored?.config.providerConfigurations;
|
|
32
34
|
assertNoProviderSecretKeys(environmentProviderConfigurations, authored?.path ?? `infrastructure/${input.environmentName}`);
|
|
35
|
+
assertConfiguredSecretRefsDeclared(environmentProviderConfigurations, authored?.path ?? `infrastructure/${input.environmentName}`);
|
|
33
36
|
return overlayEnvironmentProviderConfigurations(input.applicationProviderConfigurations, environmentProviderConfigurations);
|
|
34
37
|
}
|
|
35
38
|
/**
|
|
@@ -67,4 +70,95 @@ function assertNoProviderSecretKeys(layer, source) {
|
|
|
67
70
|
}
|
|
68
71
|
}
|
|
69
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Refuse a provider configuration that points a provider at a secret its module does not declare (#3002), or whose ACP
|
|
75
|
+
* execution profile forwards a secret into the coding agent (#3018).
|
|
76
|
+
*
|
|
77
|
+
* The backend reads `authConfig.secretRef` as the variable sent to the vendor as the provider's key or client secret,
|
|
78
|
+
* and an ACP execution profile's `secretEnvVarName` as the variable handed to the coding agent; it admits only a slot
|
|
79
|
+
* the module's `secretsContract` declares, and refuses at startup and on every read. Refused here too, so `wildo config
|
|
80
|
+
* sync` (and creation readiness, and every other caller of this door) stops before generating anything for a
|
|
81
|
+
* configuration the backend would refuse to boot with, naming the file.
|
|
82
|
+
*
|
|
83
|
+
* The same reading as the backend: `authConfig.secretRef` names a slot by its variable or its slug; `secretEnvVarName`
|
|
84
|
+
* names the variable the agent reads, so only a declared variable. Those two slot rules need the provider's declared
|
|
85
|
+
* 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
|
|
86
|
+
* runs after discovery registered it. The inherited-environment rule needs no provider and runs for every provider,
|
|
87
|
+
* known or not ({@link assertInheritedEnvironmentVariablesAreNotSecrets}).
|
|
88
|
+
*
|
|
89
|
+
* The fields are read through `readProviderConfigurationCredentialFields` and branched on their
|
|
90
|
+
* `ProviderConfigurationCredentialField`, the vocabulary the backend registry branches on too (#3022), so the two doors
|
|
91
|
+
* cannot disagree about which fields name a credential or which bag carries execution profiles (the agent-client-protocol
|
|
92
|
+
* bag, under its wire value or its member name).
|
|
93
|
+
*
|
|
94
|
+
* 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.
|
|
95
|
+
*/
|
|
96
|
+
function assertConfiguredSecretRefsDeclared(layer, source) {
|
|
97
|
+
for (const [providerRef, protocols] of Object.entries(layer ?? {})) {
|
|
98
|
+
if (!protocols)
|
|
99
|
+
continue;
|
|
100
|
+
const entry = getComposedProviderEntry(providerRef);
|
|
101
|
+
const envVarNames = new Set((entry?.secrets ?? []).map((secret) => secret.envVarName));
|
|
102
|
+
const admitted = new Set([...envVarNames, ...(entry?.secrets ?? []).map((secret) => secret.slug)]);
|
|
103
|
+
const declared = (entry?.secrets ?? []).map((secret) => `${secret.slug} (${secret.envVarName})`).sort().join(', ') || 'none';
|
|
104
|
+
for (const [protocolKey, values] of Object.entries(protocols)) {
|
|
105
|
+
const at = (path) => `${source}: providerConfigurations.${providerRef}.${protocolKey}.${path}`;
|
|
106
|
+
for (const reading of readProviderConfigurationCredentialFields(protocolKey, values)) {
|
|
107
|
+
switch (reading.field) {
|
|
108
|
+
case ProviderConfigurationCredentialField.EXECUTION_PROFILE_INHERITED_ENVIRONMENT:
|
|
109
|
+
// A secret forwarded into the agent (#3018) is refused for every provider, known here or not: the forbidden set
|
|
110
|
+
// does not depend on the provider.
|
|
111
|
+
assertInheritedEnvironmentVariablesAreNotSecrets(reading.value, at(reading.path));
|
|
112
|
+
break;
|
|
113
|
+
case ProviderConfigurationCredentialField.AUTH_SECRET_REF:
|
|
114
|
+
// The slot rules need the provider's declared slots: a provider the catalogue does not know yet is checked on the
|
|
115
|
+
// call that runs after discovery registered it.
|
|
116
|
+
if (entry === undefined || (typeof reading.value === 'string' && admitted.has(reading.value)))
|
|
117
|
+
break;
|
|
118
|
+
throw new Error(`${at(reading.path)} names '${String(reading.value)}', which provider `
|
|
119
|
+
+ `"${providerRef}" does not declare as a secret. A configuration may point a protocol only at a slot the provider declares, by its `
|
|
120
|
+
+ `variable or its slug (${declared}); the backend refuses this configuration and reads no such variable.`);
|
|
121
|
+
case ProviderConfigurationCredentialField.EXECUTION_PROFILE_SECRET_ENV_VAR_NAME:
|
|
122
|
+
if (entry === undefined || (typeof reading.value === 'string' && envVarNames.has(reading.value)))
|
|
123
|
+
break;
|
|
124
|
+
throw new Error(`${at(reading.path)} names '${String(reading.value)}', which provider "${providerRef}" does not declare as a secret. `
|
|
125
|
+
+ `An execution profile may hand the agent only a variable the provider declares (${declared}); the backend refuses this `
|
|
126
|
+
+ 'configuration and reads no such variable.');
|
|
127
|
+
default: {
|
|
128
|
+
const exhaustive = reading.field;
|
|
129
|
+
return exhaustive;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Refuse an execution profile that forwards a secret into the coding agent (#3018), as the backend does at every read,
|
|
138
|
+
* at startup and at dispatch (`assertAgentInheritedEnvironmentVariablesAreNotSecrets`).
|
|
139
|
+
*
|
|
140
|
+
* The same question as the backend's: a secret a Wildo runtime env declares (`isRuntimeSecretEnvVarName`: the runtime
|
|
141
|
+
* env contracts' keys, every inbound endpoint secret, every system-of-record slot), or a secret any provider the CLI
|
|
142
|
+
* can see declares (the composed catalogue, engine tier and discovered packages: a superset of one runtime's). A name
|
|
143
|
+
* it admits is one the framework does not declare secret, which is not the same as harmless: a developer's own shell
|
|
144
|
+
* may carry secrets the framework cannot know.
|
|
145
|
+
*
|
|
146
|
+
* assurance-control: WILDO.SECRETS.CREDENTIAL_SCOPING — the CLI refuses an execution profile forwarding a declared secret into a coding agent, before anything is generated.
|
|
147
|
+
*/
|
|
148
|
+
function assertInheritedEnvironmentVariablesAreNotSecrets(inherited, at) {
|
|
149
|
+
if (!Array.isArray(inherited))
|
|
150
|
+
return;
|
|
151
|
+
const providerSecrets = new Set();
|
|
152
|
+
for (const entry of getComposedProviderSecretsCatalogue().values()) {
|
|
153
|
+
for (const secret of entry.secrets)
|
|
154
|
+
providerSecrets.add(secret.envVarName);
|
|
155
|
+
}
|
|
156
|
+
const forbidden = (name) => isRuntimeSecretEnvVarName(name) || providerSecrets.has(name);
|
|
157
|
+
const named = [...new Set(inherited.filter((name) => typeof name === 'string' && forbidden(name)))].sort();
|
|
158
|
+
if (named.length === 0)
|
|
159
|
+
return;
|
|
160
|
+
throw new Error(`${at} names ${named.map((name) => `'${name}'`).join(', ')}, which ${named.length === 1 ? 'is a secret' : 'are secrets'} of this platform or of a `
|
|
161
|
+
+ 'provider. A coding agent may not inherit a secret the framework declares; a provider credential the agent needs is handed to it '
|
|
162
|
+
+ 'through the execution profile\'s secretEnvVarName. The backend refuses this configuration.');
|
|
163
|
+
}
|
|
70
164
|
//# sourceMappingURL=environment-provider-configurations.service.js.map
|
|
@@ -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,wCAAwC,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AACvG,OAAO,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAC;AAIzG;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,KAAK,UAAU,wCAAwC,CAAC,KAI9D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,CAAC;gBAAE,SAAS;YAC7E,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;YACzE,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACtB,MAAM,IAAI,KAAK,CACb,GAAG,MAAM,4BAA4B,WAAW,IAAI,YAAY,UAAU,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;sBACtH,SAAS,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,iBAAiB,WAAW,uBAAuB;sBAC/G,qGAAqG,CACxG,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["import { overlayEnvironmentProviderConfigurations } from '@wildo-ai/platform-config-lib';\nimport { getComposedProviderEntry } 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 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 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"]}
|
|
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,CAA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,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 +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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"existing-app-bootstrap.service.js","sourceRoot":"","sources":["../../../../src/services/application/existing-app-bootstrap.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,GAGvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+DAA+D,CAAC;AACrG,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAC;AAEnG,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AA6C1E;;;;;;;;;GASG;AACH,MAAM,OAAO,2BAA2B;IACtC,MAAM,CAAC,KAAK,CAAC,sBAAsB,CACjC,OAAsB,EACtB,aAA4B;QAE5B,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO;QACT,CAAC;QAED,MAAM,mBAAmB,CAAC,oBAAoB,CAAC,OAAO,EAAE,KAAK,IAAI,EAAE;YACjE,MAAM,SAAS,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;YAC5C,MAAM,UAAU,GAAG,mBAAmB,CAAC,UAAU,EAAE,CAAC;YACpD,IAAI,UAAU,EAAE,CAAC;gBACf,OAAO;YACT,CAAC;YAED,MAAM,aAAa,GAAG,mBAAmB,CAAC,GAAG,CA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CAAC;YACf,MAAM,IAAI,KAAK,CACb,iCAAiC,cAAc,yCAAyC,UAAU,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,EAC/H,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;;;;;OAQG;IACK,MAAM,CAAC,KAAK,CAAC,kBAAkB,CACrC,OAAe;QAEf,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC1D,OAAO,MAAM,CAAC,CAAC,CAAC,2BAA2B,CAAC,uBAAuB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC5F,CAAC;CACF","sourcesContent":["import * as fs from 'fs';\nimport { join } from 'path';\nimport {\n BackingServiceSource,\n DatabaseEngine,\n K8S_LOCAL_DEFAULTS,\n PUBLIC_DOMAIN_DEFAULTS,\n loadConfig,\n loadInfraEnvConfig,\n resolveAppLayout,\n WildoDeploymentRuntime,\n WORKSPACE_CONFIG_NAMES,\n type BackingServicesEnvConfig,\n type WildoSaasConfig,\n} from '@wildo-ai/platform-config-lib';\nimport { RuntimeEnvironment } from '@wildo-ai/saas-models';\nimport { EnvironmentLifecycle } from '~wildo-cli/services/environment/environment-lifecycle.service';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { EnvironmentRegistry } from '~wildo-cli/services/environment/environment-registry.service';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\ninterface LocalRuntimeSeed {\n runtime?: WildoDeploymentRuntime;\n runtimeEnvironment?: RuntimeEnvironment;\n database?: {\n engine: DatabaseEngine;\n source: BackingServiceSource;\n };\n /**\n * True when {@link database} came from an EXPLICIT `database` block in\n * `wildo.infra.local.config.ts`, rather than being derived from which backing services happen to\n * be declared. Provenance matters because an explicit declaration must not be second-guessed by\n * `loadAuthoritativeDatabaseSeed`, which otherwise re-derives the engine from\n * `wildo.saas.config.ts`'s `dataServices`.\n */\n databaseIsAuthored?: boolean;\n /**\n * Top-level `publicDomain` from the authored `wildo.infra.local.config.ts`.\n * Required upstream by the schema, but the seed may carry it as\n * undefined when the legacy local config has not yet been migrated;\n * the bootstrap path then falls back to\n * `PUBLIC_DOMAIN_DEFAULTS.{LOCAL_K8S | LOCAL_COMPOSE}`.\n */\n publicDomain?: string;\n kubernetes?: {\n namespace?: string;\n };\n /**\n * Authored `backingServices` block mirrored verbatim from\n * `wildo.infra.<env>.config.ts`. Threading the entire authored map into\n * the seed so the env state surfaces the same source-of-truth that the\n * docker-compose generator, env-vars builder, and address resolver all\n * read from `env.backingServices`. Without this seed, the post-Slice 4\n * default-runtime layout silently dropped any service that is GATED on\n * `env.backingServices?.[kind]?.source === SELF` (e.g. clamav — see\n * resolveIncludeLocalClamAV in docker-compose-generator.service.ts), so\n * `wildo local up` rendered a docker-compose missing the opt-in service\n * even though the operator had authored it.\n */\n backingServices?: BackingServicesEnvConfig;\n /** The resolved infrastructure host, when the local environment runs on another application's. */\n infrastructureHost?: { applicationRoot: string; infraConfigPath: string };\n}\n\n/**\n * Bootstraps the CLI environment registry for an existing checked-in app root.\n *\n * `wildo init` creates the `local` registry entry for greenfield targeted apps,\n * but real framework/example repositories already have committed app/infra\n * configs before the CLI is first run on a given machine. In that case we still\n * need a minimal `local` environment entry so commands like `config sync`,\n * `local status`, and `dev start` can operate without requiring users to\n * recreate scaffolding.\n */\nexport class ExistingAppBootstrapService {\n static async ensureLocalEnvironment(\n appRoot: string | null,\n frameworkPath: string | null,\n ): Promise<void> {\n if (!appRoot) {\n return;\n }\n\n await EnvironmentRegistry.withSaasRootOverride(appRoot, async () => {\n const appLayout = resolveAppLayout(appRoot);\n const currentEnv = EnvironmentRegistry.getCurrent();\n if (currentEnv) {\n return;\n }\n\n const existingLocal = EnvironmentRegistry.get('local');\n if (existingLocal) {\n EnvironmentRegistry.switchTo(existingLocal.name);\n return;\n }\n\n const localInfraSeed = await ExistingAppBootstrapService.loadLocalInfraSeed(appRoot);\n const hasAuthoredLocalSecrets = fs.existsSync(\n join(appLayout.authoredInfrastructureHome, 'local', 'secrets', 'secrets.json'),\n );\n const siblingSecretsRepo = frameworkPath && !hasAuthoredLocalSecrets\n ? EnvironmentPaths.detectSiblingSecretsRepo(frameworkPath)\n : null;\n const authoritativeDatabase = await ExistingAppBootstrapService.loadAuthoritativeDatabaseSeed(\n appRoot,\n localInfraSeed?.database,\n localInfraSeed?.databaseIsAuthored,\n );\n\n const seededRuntime = localInfraSeed?.runtime ?? WildoDeploymentRuntime.DOCKER_COMPOSE;\n const seededPublicDomain =\n localInfraSeed?.publicDomain\n ?? (seededRuntime === WildoDeploymentRuntime.KUBERNETES\n ? PUBLIC_DOMAIN_DEFAULTS.LOCAL_K8S\n : PUBLIC_DOMAIN_DEFAULTS.LOCAL_COMPOSE);\n\n const overrides: Partial<PlatformEnvironmentConfiguration> = {\n runtime: seededRuntime,\n runtimeEnvironment: localInfraSeed?.runtimeEnvironment ?? RuntimeEnvironment.DEVELOPMENT,\n secretsPath: siblingSecretsRepo ?? EnvironmentPaths.resolveDefaultSecretsBase(appRoot),\n configPath: siblingSecretsRepo ?? EnvironmentPaths.resolveDefaultConfigBase(appRoot),\n infraPath: EnvironmentPaths.resolveDefaultInfraBase(appRoot),\n database: authoritativeDatabase ?? {\n engine: DatabaseEngine.MONGODB,\n source: BackingServiceSource.SELF,\n },\n publicDomain: seededPublicDomain,\n backingServices: localInfraSeed?.backingServices,\n infrastructureHost: localInfraSeed?.infrastructureHost,\n };\n\n if (seededRuntime === WildoDeploymentRuntime.KUBERNETES) {\n overrides.kubernetes = {\n namespace: localInfraSeed?.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE,\n };\n }\n\n const env = EnvironmentLifecycle.initializeLocal(overrides);\n EnvironmentRegistry.switchTo(env.name);\n });\n }\n\n private static extractLocalRuntimeSeed(raw: unknown): LocalRuntimeSeed | null {\n if (typeof raw !== 'object' || raw === null) {\n return null;\n }\n\n const candidate = raw as Record<string, unknown>;\n const deployment = typeof candidate.deployment === 'object' && candidate.deployment !== null\n ? candidate.deployment as Record<string, unknown>\n : null;\n const backingServices = typeof candidate.backingServices === 'object' && candidate.backingServices !== null\n ? candidate.backingServices as Record<string, unknown>\n : null;\n const mongodb = typeof backingServices?.mongodb === 'object' && backingServices.mongodb !== null\n ? backingServices.mongodb as Record<string, unknown>\n : null;\n const postgresql = typeof backingServices?.postgresql === 'object' && backingServices.postgresql !== null\n ? backingServices.postgresql as Record<string, unknown>\n : null;\n // Slice 4.B.0 (2026-05-07): the parser accepts the post-reshape\n // `'self' | 'managed'` enum. The legacy `'atlas'` value was migrated\n // to `(source: 'managed', provider: 'atlas')` — if a stale config\n // still authors `source: 'atlas'`, fall back to SELF so the\n // bootstrap doesn't crash; the migration warning belongs to a\n // different code path (`wildo config validate`).\n const resolveSource = (value: unknown): BackingServiceSource => (\n value === BackingServiceSource.MANAGED\n ? BackingServiceSource.MANAGED\n : BackingServiceSource.SELF\n );\n const hasMongoDb = mongodb !== null;\n const hasPostgreSql = postgresql !== null;\n /**\n * The AUTHORED `database` block, when the config carries a well-formed one.\n *\n * Read defensively — this parser takes `unknown`, so only a recognised engine value is\n * honoured and a malformed block falls through to the backing-service derivation rather than\n * seeding a nonsense engine.\n */\n const authoredDatabase = ((): LocalRuntimeSeed['database'] | null => {\n const raw = typeof candidate.database === 'object' && candidate.database !== null\n ? candidate.database as Record<string, unknown>\n : null;\n if (raw?.engine === DatabaseEngine.POSTGRESQL || raw?.engine === DatabaseEngine.MONGODB) {\n return { engine: raw.engine, source: resolveSource(raw.source) };\n }\n return null;\n })();\n const seed: LocalRuntimeSeed = {\n runtime: (candidate.runtime as WildoDeploymentRuntime | undefined)\n ?? (deployment?.runtime as WildoDeploymentRuntime | undefined),\n runtimeEnvironment: candidate.runtimeEnvironment as RuntimeEnvironment | undefined,\n /**\n * An AUTHORED `database` block wins outright; the backing-service derivation below is the\n * fallback for environments that do not author one.\n *\n * The derivation cannot express a PostgreSQL platform: `hasMongoDb === hasPostgreSql` yields\n * `undefined` precisely when BOTH are declared, and a PostgreSQL platform is required to\n * declare both (the bootstrap plane is Mongo-wired). This is the same \"which services exist\"\n * standing in for \"what engine is the platform\" collapse that\n * `inferDatabaseChoiceFromInfraConfig` carries — the two are independent implementations of\n * one question, and both had to learn about the authored field.\n *\n * Read defensively (this parser takes `unknown`): only a well-formed engine value is\n * honoured, so a malformed authored block falls through to the derivation rather than\n * seeding a nonsense engine.\n */\n databaseIsAuthored: authoredDatabase !== null,\n database: ((): LocalRuntimeSeed['database'] => {\n if (authoredDatabase) {\n return authoredDatabase;\n }\n\n return hasMongoDb === hasPostgreSql\n ? undefined\n : hasPostgreSql\n ? {\n engine: DatabaseEngine.POSTGRESQL,\n source: resolveSource(postgresql.source),\n }\n : mongodb\n ? {\n engine: DatabaseEngine.MONGODB,\n source: resolveSource(mongodb.source),\n }\n : undefined;\n })(),\n publicDomain: typeof candidate.publicDomain === 'string' && candidate.publicDomain.length > 0\n ? candidate.publicDomain\n : undefined,\n kubernetes: typeof candidate.kubernetes === 'object' && candidate.kubernetes !== null\n ? {\n namespace: (candidate.kubernetes as Record<string, unknown>).namespace as string | undefined,\n }\n : undefined,\n backingServices: backingServices !== null\n ? (backingServices as unknown as BackingServicesEnvConfig)\n : undefined,\n infrastructureHost: typeof candidate.infrastructureHost === 'object' && candidate.infrastructureHost !== null\n ? candidate.infrastructureHost as LocalRuntimeSeed['infrastructureHost']\n : undefined,\n };\n if (\n !seed.runtime\n && !seed.runtimeEnvironment\n && !seed.database\n && !seed.kubernetes\n && !seed.publicDomain\n && !seed.backingServices\n ) {\n return null;\n }\n return seed;\n }\n\n private static async loadAuthoritativeDatabaseSeed(\n appRoot: string,\n fallbackDatabase: LocalRuntimeSeed['database'],\n databaseIsAuthored = false,\n ): Promise<LocalRuntimeSeed['database'] | undefined> {\n /**\n * An EXPLICIT `database` block in `wildo.infra.local.config.ts` is the authority and is never\n * re-derived here.\n *\n * The derivation below reads `wildo.saas.config.ts`'s `dataServices` — a different file\n * answering a different question (which data services the APPLICATION uses). It also carries\n * the same collapse as the other derivations: `hasMongoDb === hasPostgreSql` gives up exactly\n * when both are declared, which is the state a PostgreSQL platform is REQUIRED to be in. Left\n * unguarded, it would quietly overrule an operator who had authored the engine explicitly.\n */\n if (databaseIsAuthored && fallbackDatabase) {\n return fallbackDatabase;\n }\n\n const saasConfigPath = join(appRoot, WORKSPACE_CONFIG_NAMES.SAAS);\n if (!fs.existsSync(saasConfigPath)) {\n return fallbackDatabase;\n }\n\n try {\n const saasConfig = await loadConfig<WildoSaasConfig>(saasConfigPath);\n const hasMongoDb = Boolean(saasConfig.dataServices?.mongodb);\n const hasPostgreSql = Boolean(saasConfig.dataServices?.postgresql);\n if (hasMongoDb === hasPostgreSql) {\n return fallbackDatabase;\n }\n\n const engine = hasPostgreSql ? DatabaseEngine.POSTGRESQL : DatabaseEngine.MONGODB;\n return {\n engine,\n source: fallbackDatabase?.engine === engine\n ? fallbackDatabase.source\n : BackingServiceSource.SELF,\n };\n } catch (error) {\n throw new Error(\n `Failed to load SaaS config at ${saasConfigPath} while seeding the local environment: ${ErrorUtils.extractErrorMessage(error)}`,\n { cause: error },\n );\n }\n }\n\n /**\n * The local environment seed, read through the SHARED loader (`loadInfraEnvConfig`).\n *\n * It used to evaluate the authored file directly, which skipped the loader's environment check and —\n * the reason it mattered — its hosted-descriptor resolution: a hosted application's first seed would\n * have recorded no runtime, no platform database and no backing-service servers, since a hosted file\n * authors none of them. The seed is the registry's FIRST copy of those facts, so it must see the same\n * resolved environment every later reader sees.\n */\n private static async loadLocalInfraSeed(\n appRoot: string,\n ): Promise<LocalRuntimeSeed | null> {\n const loaded = await loadInfraEnvConfig(appRoot, 'local');\n return loaded ? ExistingAppBootstrapService.extractLocalRuntimeSeed(loaded.config) : null;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"existing-app-bootstrap.service.js","sourceRoot":"","sources":["../../../../../../src/services/application/existing-app-bootstrap.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,GAGvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+DAA+D,CAAC;AACrG,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAC;AAEnG,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AA6C1E;;;;;;;;;GASG;AACH,MAAM,OAAO,2BAA2B;IACtC,MAAM,CAAC,KAAK,CAAC,sBAAsB,CACjC,OAAsB,EACtB,aAA4B;QAE5B,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO;QACT,CAAC;QAED,MAAM,mBAAmB,CAAC,oBAAoB,CAAC,OAAO,EAAE,KAAK,IAAI,EAAE;YACjE,MAAM,SAAS,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;YAC5C,MAAM,UAAU,GAAG,mBAAmB,CAAC,UAAU,EAAE,CAAC;YACpD,IAAI,UAAU,EAAE,CAAC;gBACf,OAAO;YACT,CAAC;YAED,MAAM,aAAa,GAAG,mBAAmB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YACvD,IAAI,aAAa,EAAE,CAAC;gBAClB,mBAAmB,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;gBACjD,OAAO;YACT,CAAC;YAED,MAAM,cAAc,GAAG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IACH,CAAC;IAED;;;;;;;;OAQG;IACK,MAAM,CAAC,KAAK,CAAC,kBAAkB,CACrC,OAAe;QAEf,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC1D,OAAO,MAAM,CAAC,CAAC,CAAC,2BAA2B,CAAC,uBAAuB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC5F,CAAC;CACF","sourcesContent":["import * as fs from 'fs';\nimport { join } from 'path';\nimport {\n BackingServiceSource,\n DatabaseEngine,\n K8S_LOCAL_DEFAULTS,\n PUBLIC_DOMAIN_DEFAULTS,\n loadConfig,\n loadInfraEnvConfig,\n resolveAppLayout,\n WildoDeploymentRuntime,\n WORKSPACE_CONFIG_NAMES,\n type BackingServicesEnvConfig,\n type WildoSaasConfig,\n} from '@wildo-ai/platform-config-lib';\nimport { RuntimeEnvironment } from '@wildo-ai/saas-models';\nimport { EnvironmentLifecycle } from '~wildo-cli/services/environment/environment-lifecycle.service';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { EnvironmentRegistry } from '~wildo-cli/services/environment/environment-registry.service';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\n\ninterface LocalRuntimeSeed {\n runtime?: WildoDeploymentRuntime;\n runtimeEnvironment?: RuntimeEnvironment;\n database?: {\n engine: DatabaseEngine;\n source: BackingServiceSource;\n };\n /**\n * True when {@link database} came from an EXPLICIT `database` block in\n * `wildo.infra.local.config.ts`, rather than being derived from which backing services happen to\n * be declared. Provenance matters because an explicit declaration must not be second-guessed by\n * `loadAuthoritativeDatabaseSeed`, which otherwise re-derives the engine from\n * `wildo.saas.config.ts`'s `dataServices`.\n */\n databaseIsAuthored?: boolean;\n /**\n * Top-level `publicDomain` from the authored `wildo.infra.local.config.ts`.\n * Required upstream by the schema, but the seed may carry it as\n * undefined when the legacy local config has not yet been migrated;\n * the bootstrap path then falls back to\n * `PUBLIC_DOMAIN_DEFAULTS.{LOCAL_K8S | LOCAL_COMPOSE}`.\n */\n publicDomain?: string;\n kubernetes?: {\n namespace?: string;\n };\n /**\n * Authored `backingServices` block mirrored verbatim from\n * `wildo.infra.<env>.config.ts`. Threading the entire authored map into\n * the seed so the env state surfaces the same source-of-truth that the\n * docker-compose generator, env-vars builder, and address resolver all\n * read from `env.backingServices`. Without this seed, the post-Slice 4\n * default-runtime layout silently dropped any service that is GATED on\n * `env.backingServices?.[kind]?.source === SELF` (e.g. clamav — see\n * resolveIncludeLocalClamAV in docker-compose-generator.service.ts), so\n * `wildo local up` rendered a docker-compose missing the opt-in service\n * even though the operator had authored it.\n */\n backingServices?: BackingServicesEnvConfig;\n /** The resolved infrastructure host, when the local environment runs on another application's. */\n infrastructureHost?: { applicationRoot: string; infraConfigPath: string };\n}\n\n/**\n * Bootstraps the CLI environment registry for an existing checked-in app root.\n *\n * `wildo init` creates the `local` registry entry for greenfield targeted apps,\n * but real framework/example repositories already have committed app/infra\n * configs before the CLI is first run on a given machine. In that case we still\n * need a minimal `local` environment entry so commands like `config sync`,\n * `local status`, and `dev start` can operate without requiring users to\n * recreate scaffolding.\n */\nexport class ExistingAppBootstrapService {\n static async ensureLocalEnvironment(\n appRoot: string | null,\n frameworkPath: string | null,\n ): Promise<void> {\n if (!appRoot) {\n return;\n }\n\n await EnvironmentRegistry.withSaasRootOverride(appRoot, async () => {\n const appLayout = resolveAppLayout(appRoot);\n const currentEnv = EnvironmentRegistry.getCurrent();\n if (currentEnv) {\n return;\n }\n\n const existingLocal = EnvironmentRegistry.get('local');\n if (existingLocal) {\n EnvironmentRegistry.switchTo(existingLocal.name);\n return;\n }\n\n const localInfraSeed = await ExistingAppBootstrapService.loadLocalInfraSeed(appRoot);\n const hasAuthoredLocalSecrets = fs.existsSync(\n join(appLayout.authoredInfrastructureHome, 'local', 'secrets', 'secrets.json'),\n );\n const siblingSecretsRepo = frameworkPath && !hasAuthoredLocalSecrets\n ? EnvironmentPaths.detectSiblingSecretsRepo(frameworkPath)\n : null;\n const authoritativeDatabase = await ExistingAppBootstrapService.loadAuthoritativeDatabaseSeed(\n appRoot,\n localInfraSeed?.database,\n localInfraSeed?.databaseIsAuthored,\n );\n\n const seededRuntime = localInfraSeed?.runtime ?? WildoDeploymentRuntime.DOCKER_COMPOSE;\n const seededPublicDomain =\n localInfraSeed?.publicDomain\n ?? (seededRuntime === WildoDeploymentRuntime.KUBERNETES\n ? PUBLIC_DOMAIN_DEFAULTS.LOCAL_K8S\n : PUBLIC_DOMAIN_DEFAULTS.LOCAL_COMPOSE);\n\n const overrides: Partial<PlatformEnvironmentConfiguration> = {\n runtime: seededRuntime,\n runtimeEnvironment: localInfraSeed?.runtimeEnvironment ?? RuntimeEnvironment.DEVELOPMENT,\n secretsPath: siblingSecretsRepo ?? EnvironmentPaths.resolveDefaultSecretsBase(appRoot),\n configPath: siblingSecretsRepo ?? EnvironmentPaths.resolveDefaultConfigBase(appRoot),\n infraPath: EnvironmentPaths.resolveDefaultInfraBase(appRoot),\n database: authoritativeDatabase ?? {\n engine: DatabaseEngine.MONGODB,\n source: BackingServiceSource.SELF,\n },\n publicDomain: seededPublicDomain,\n backingServices: localInfraSeed?.backingServices,\n infrastructureHost: localInfraSeed?.infrastructureHost,\n };\n\n if (seededRuntime === WildoDeploymentRuntime.KUBERNETES) {\n overrides.kubernetes = {\n namespace: localInfraSeed?.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE,\n };\n }\n\n const env = EnvironmentLifecycle.initializeLocal(overrides);\n EnvironmentRegistry.switchTo(env.name);\n });\n }\n\n private static extractLocalRuntimeSeed(raw: unknown): LocalRuntimeSeed | null {\n if (typeof raw !== 'object' || raw === null) {\n return null;\n }\n\n const candidate = raw as Record<string, unknown>;\n const deployment = typeof candidate.deployment === 'object' && candidate.deployment !== null\n ? candidate.deployment as Record<string, unknown>\n : null;\n const backingServices = typeof candidate.backingServices === 'object' && candidate.backingServices !== null\n ? candidate.backingServices as Record<string, unknown>\n : null;\n const mongodb = typeof backingServices?.mongodb === 'object' && backingServices.mongodb !== null\n ? backingServices.mongodb as Record<string, unknown>\n : null;\n const postgresql = typeof backingServices?.postgresql === 'object' && backingServices.postgresql !== null\n ? backingServices.postgresql as Record<string, unknown>\n : null;\n // Slice 4.B.0 (2026-05-07): the parser accepts the post-reshape\n // `'self' | 'managed'` enum. The legacy `'atlas'` value was migrated\n // to `(source: 'managed', provider: 'atlas')` — if a stale config\n // still authors `source: 'atlas'`, fall back to SELF so the\n // bootstrap doesn't crash; the migration warning belongs to a\n // different code path (`wildo config validate`).\n const resolveSource = (value: unknown): BackingServiceSource => (\n value === BackingServiceSource.MANAGED\n ? BackingServiceSource.MANAGED\n : BackingServiceSource.SELF\n );\n const hasMongoDb = mongodb !== null;\n const hasPostgreSql = postgresql !== null;\n /**\n * The AUTHORED `database` block, when the config carries a well-formed one.\n *\n * Read defensively — this parser takes `unknown`, so only a recognised engine value is\n * honoured and a malformed block falls through to the backing-service derivation rather than\n * seeding a nonsense engine.\n */\n const authoredDatabase = ((): LocalRuntimeSeed['database'] | null => {\n const raw = typeof candidate.database === 'object' && candidate.database !== null\n ? candidate.database as Record<string, unknown>\n : null;\n if (raw?.engine === DatabaseEngine.POSTGRESQL || raw?.engine === DatabaseEngine.MONGODB) {\n return { engine: raw.engine, source: resolveSource(raw.source) };\n }\n return null;\n })();\n const seed: LocalRuntimeSeed = {\n runtime: (candidate.runtime as WildoDeploymentRuntime | undefined)\n ?? (deployment?.runtime as WildoDeploymentRuntime | undefined),\n runtimeEnvironment: candidate.runtimeEnvironment as RuntimeEnvironment | undefined,\n /**\n * An AUTHORED `database` block wins outright; the backing-service derivation below is the\n * fallback for environments that do not author one.\n *\n * The derivation cannot express a PostgreSQL platform: `hasMongoDb === hasPostgreSql` yields\n * `undefined` precisely when BOTH are declared, and a PostgreSQL platform is required to\n * declare both (the bootstrap plane is Mongo-wired). This is the same \"which services exist\"\n * standing in for \"what engine is the platform\" collapse that\n * `inferDatabaseChoiceFromInfraConfig` carries — the two are independent implementations of\n * one question, and both had to learn about the authored field.\n *\n * Read defensively (this parser takes `unknown`): only a well-formed engine value is\n * honoured, so a malformed authored block falls through to the derivation rather than\n * seeding a nonsense engine.\n */\n databaseIsAuthored: authoredDatabase !== null,\n database: ((): LocalRuntimeSeed['database'] => {\n if (authoredDatabase) {\n return authoredDatabase;\n }\n\n return hasMongoDb === hasPostgreSql\n ? undefined\n : hasPostgreSql\n ? {\n engine: DatabaseEngine.POSTGRESQL,\n source: resolveSource(postgresql.source),\n }\n : mongodb\n ? {\n engine: DatabaseEngine.MONGODB,\n source: resolveSource(mongodb.source),\n }\n : undefined;\n })(),\n publicDomain: typeof candidate.publicDomain === 'string' && candidate.publicDomain.length > 0\n ? candidate.publicDomain\n : undefined,\n kubernetes: typeof candidate.kubernetes === 'object' && candidate.kubernetes !== null\n ? {\n namespace: (candidate.kubernetes as Record<string, unknown>).namespace as string | undefined,\n }\n : undefined,\n backingServices: backingServices !== null\n ? (backingServices as unknown as BackingServicesEnvConfig)\n : undefined,\n infrastructureHost: typeof candidate.infrastructureHost === 'object' && candidate.infrastructureHost !== null\n ? candidate.infrastructureHost as LocalRuntimeSeed['infrastructureHost']\n : undefined,\n };\n if (\n !seed.runtime\n && !seed.runtimeEnvironment\n && !seed.database\n && !seed.kubernetes\n && !seed.publicDomain\n && !seed.backingServices\n ) {\n return null;\n }\n return seed;\n }\n\n private static async loadAuthoritativeDatabaseSeed(\n appRoot: string,\n fallbackDatabase: LocalRuntimeSeed['database'],\n databaseIsAuthored = false,\n ): Promise<LocalRuntimeSeed['database'] | undefined> {\n /**\n * An EXPLICIT `database` block in `wildo.infra.local.config.ts` is the authority and is never\n * re-derived here.\n *\n * The derivation below reads `wildo.saas.config.ts`'s `dataServices` — a different file\n * answering a different question (which data services the APPLICATION uses). It also carries\n * the same collapse as the other derivations: `hasMongoDb === hasPostgreSql` gives up exactly\n * when both are declared, which is the state a PostgreSQL platform is REQUIRED to be in. Left\n * unguarded, it would quietly overrule an operator who had authored the engine explicitly.\n */\n if (databaseIsAuthored && fallbackDatabase) {\n return fallbackDatabase;\n }\n\n const saasConfigPath = join(appRoot, WORKSPACE_CONFIG_NAMES.SAAS);\n if (!fs.existsSync(saasConfigPath)) {\n return fallbackDatabase;\n }\n\n try {\n const saasConfig = await loadConfig<WildoSaasConfig>(saasConfigPath);\n const hasMongoDb = Boolean(saasConfig.dataServices?.mongodb);\n const hasPostgreSql = Boolean(saasConfig.dataServices?.postgresql);\n if (hasMongoDb === hasPostgreSql) {\n return fallbackDatabase;\n }\n\n const engine = hasPostgreSql ? DatabaseEngine.POSTGRESQL : DatabaseEngine.MONGODB;\n return {\n engine,\n source: fallbackDatabase?.engine === engine\n ? fallbackDatabase.source\n : BackingServiceSource.SELF,\n };\n } catch (error) {\n throw new Error(\n `Failed to load SaaS config at ${saasConfigPath} while seeding the local environment: ${ErrorUtils.extractErrorMessage(error)}`,\n { cause: error },\n );\n }\n }\n\n /**\n * The local environment seed, read through the SHARED loader (`loadInfraEnvConfig`).\n *\n * It used to evaluate the authored file directly, which skipped the loader's environment check and —\n * the reason it mattered — its hosted-descriptor resolution: a hosted application's first seed would\n * have recorded no runtime, no platform database and no backing-service servers, since a hosted file\n * authors none of them. The seed is the registry's FIRST copy of those facts, so it must see the same\n * resolved environment every later reader sees.\n */\n private static async loadLocalInfraSeed(\n appRoot: string,\n ): Promise<LocalRuntimeSeed | null> {\n const loaded = await loadInfraEnvConfig(appRoot, 'local');\n return loaded ? ExistingAppBootstrapService.extractLocalRuntimeSeed(loaded.config) : null;\n }\n}\n"]}
|