@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-consent-requirement.generator.js","sourceRoot":"","sources":["../../../../src/services/compliance/service-consent-requirement.generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,+BAA+B,EAAkC,MAAM,uBAAuB,CAAC;AAExH,0FAA0F;AAC1F,MAAM,CAAC,MAAM,mDAAmD,GAAG,IAAI,CAAC,aAAa,EAAE,KAAK,EAAE,0CAA0C,CAAC,CAAC;AAE1I,uEAAuE;AACvE,MAAM,CAAC,MAAM,8CAA8C,GAAG,oCAAoC,CAAC;AAEnG,MAAM,OAAO,wCAAyC,SAAQ,KAAK;CAAG;AAEtE;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,qCAAqC,CAAC,OAAe;IACzE,MAAM,UAAU,GAAG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I,OAAO,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;QACrC,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAChD,MAAM,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,KAAK,SAAS,EAAE,OAAO,EAAE,CAAC;AAChE,CAAC;AAED,2FAA2F;AAC3F,SAAS,uBAAuB,CAAC,KAAa;IAC5C,MAAM,MAAM,GAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAAqC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,CAAC;IAC7H,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,MAAM,IAAI,wCAAwC,CAAC,GAAG,KAAK,2EAA2E,CAAC,CAAC;IAC1I,CAAC;IACD,OAAO,kBAAkB,MAAM,EAAE,CAAC;AACpC,CAAC;AAED,kFAAkF;AAClF,SAAS,KAAK,CAAC,KAAa;IAC1B,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC;AACxF,CAAC","sourcesContent":["/**\n * Carries an application's DECLARED service consent requirement into its RUNTIME config (#453).\n *\n * ## The gap this closes\n *\n * `operatorComplianceIdentity.serviceConsentRequirement` is declared in `wildo.saas.config.ts` — which\n * purposes a person must grant before the application may be used, and what that gates. Until #453 it\n * reached exactly one consumer, the compliance-document drafting brief, so the documents could state a\n * gate the running application did not have. The runtime half is `compliance.serviceConsentRequirement`,\n * which `AppLayout_AuthenticatedRoute` enforces through the consent gate.\n *\n * ## Why a generator, copied from `wildo config document-releases`\n *\n * The declaration file is not a runtime dependency of the backend, and a hand-copy into\n * `saas-config.backend.ts` is a second source that drifts — the stale copy would be a gate a legal\n * document describes and the product does not enforce, or the reverse. So the declaration is projected\n * into `backend-api/src/service-consent-requirement.generated.ts`, composed by `saas-config.backend.ts`,\n * with `--check` for CI. Same two ends and the same `.ts`-not-JSON reason: `ConsentPurpose` is a\n * nominal enum, so the module references members rather than bare strings.\n *\n * ## Absent stays absent\n *\n * An application that declares no requirement gets a module exporting `undefined`, not an empty set.\n * Both gate nothing at runtime, but the difference is the operator's ANSWER, and the documents composed\n * from the declaration keep it; the runtime projection must not manufacture a positive statement.\n */\n\nimport { existsSync } from 'node:fs';\nimport { mkdir, readFile, writeFile } from 'node:fs/promises';\nimport { dirname, join } from 'node:path';\n\nimport { loadSaasConfig } from '@wildo-ai/platform-config-lib';\nimport { ConsentPurpose, ServiceConsentRequirementSchema, type ServiceConsentRequirement } from '@wildo-ai/saas-models';\n\n/** Where the generated module lands, beside `governed-document-releases.generated.ts`. */\nexport const SERVICE_CONSENT_REQUIREMENT_GENERATED_RELATIVE_PATH = join('backend-api', 'src', 'service-consent-requirement.generated.ts');\n\n/** The constant the application's `saas-config.backend.ts` imports. */\nexport const SERVICE_CONSENT_REQUIREMENT_GENERATED_CONSTANT = 'generatedServiceConsentRequirement';\n\nexport class ServiceConsentRequirementGenerationError extends Error {}\n\n/**\n * Read and VALIDATE the declared requirement. A declaration that does not parse is refused rather than\n * projected: a malformed requirement written into the runtime would fail the application at startup,\n * far from the file the author must fix.\n */\nexport async function loadDeclaredServiceConsentRequirement(appRoot: string): Promise<ServiceConsentRequirement | undefined> {\n const configPath = join(appRoot, 'wildo.saas.config.ts');\n const config = await loadSaasConfig(configPath);\n if (config === null) {\n throw new ServiceConsentRequirementGenerationError(`Could not load ${configPath}, so the declared service consent requirement is unknown.`);\n }\n const declared = config.operatorComplianceIdentity?.serviceConsentRequirement;\n if (declared === undefined) return undefined;\n const parsed = ServiceConsentRequirementSchema.safeParse(declared);\n if (!parsed.success) {\n throw new ServiceConsentRequirementGenerationError(\n `operatorComplianceIdentity.serviceConsentRequirement in ${configPath} is invalid: ${parsed.error.issues.map((issue) => issue.message).join('; ')}`,\n );\n }\n return parsed.data;\n}\n\n/** Render the committed generated module. PURE, so it is pinned directly. */\nexport function renderServiceConsentRequirementModule(requirement: ServiceConsentRequirement | undefined): string {\n const header = [\n '/**',\n ' * GENERATED by `wildo config service-consent`. DO NOT EDIT BY HAND — re-run it to regenerate.',\n ' *',\n ' * The runtime projection of `operatorComplianceIdentity.serviceConsentRequirement` in',\n ' * `wildo.saas.config.ts`. Composed into `compliance.serviceConsentRequirement` by',\n ' * `saas-config.backend.ts`, where the consent gate enforces it before any signed-in route renders',\n ' * (#453). `undefined` means the application declared no requirement.',\n ' */',\n ].join('\\n');\n\n if (requirement === undefined) {\n return [\n \"import type { ServiceConsentRequirement } from '@wildo-ai/saas-models';\",\n '',\n header,\n `export const ${SERVICE_CONSENT_REQUIREMENT_GENERATED_CONSTANT}: ServiceConsentRequirement | undefined = undefined;`,\n '',\n ].join('\\n');\n }\n\n const purposes = requirement.requiredPurposes.map(consentPurposeMemberRef).join(', ');\n const body = [` requiredPurposes: [${purposes}],`];\n if (requirement.gatedProcessing !== undefined) body.push(` gatedProcessing: ${quote(requirement.gatedProcessing)},`);\n\n const needsEnum = requirement.requiredPurposes.length > 0;\n return [\n `import { ${needsEnum ? 'ConsentPurpose, ' : ''}ServiceConsentRequirementSchema, type ServiceConsentRequirement } from '@wildo-ai/saas-models';`,\n '',\n header,\n // Parsed at load, so a hand edit that breaks the schema's own rules (a duplicate purpose, a gate with\n // no description) fails at startup instead of reaching a person as a malformed gate.\n `export const ${SERVICE_CONSENT_REQUIREMENT_GENERATED_CONSTANT}: ServiceConsentRequirement | undefined = ServiceConsentRequirementSchema.parse({`,\n ...body,\n '});',\n '',\n ].join('\\n');\n}\n\n/** Write the module into `<appRoot>/backend-api/src/`. Returns whether the bytes changed. */\nexport async function generateServiceConsentRequirementModule(input: {\n readonly appRoot: string;\n readonly dryRun?: boolean;\n}): Promise<{ readonly path: string; readonly declared: boolean; readonly changed: boolean }> {\n if (!existsSync(join(input.appRoot, 'backend-api'))) {\n throw new ServiceConsentRequirementGenerationError(\n `No backend-api/ package under ${input.appRoot}, so there is no runtime config to carry the requirement into.`,\n );\n }\n const requirement = await loadDeclaredServiceConsentRequirement(input.appRoot);\n const content = renderServiceConsentRequirementModule(requirement);\n const path = join(input.appRoot, SERVICE_CONSENT_REQUIREMENT_GENERATED_RELATIVE_PATH);\n const previous = existsSync(path) ? await readFile(path, 'utf-8') : undefined;\n const changed = previous !== content;\n if (changed && input.dryRun !== true) {\n await mkdir(dirname(path), { recursive: true });\n await writeFile(path, content, 'utf-8');\n }\n return { path, declared: requirement !== undefined, changed };\n}\n\n/** `ConsentPurpose.<MEMBER>` for a purpose value. Refuses a value that is not a member. */\nfunction consentPurposeMemberRef(value: string): string {\n const member = (Object.keys(ConsentPurpose) as (keyof typeof ConsentPurpose)[]).find((key) => ConsentPurpose[key] === value);\n if (member === undefined) {\n throw new ServiceConsentRequirementGenerationError(`${value} is not a ConsentPurpose, so it cannot be rendered as a member reference.`);\n }\n return `ConsentPurpose.${member}`;\n}\n\n/** Single-quote a string literal for the generated source, escaping as needed. */\nfunction quote(value: string): string {\n return `'${value.replace(/\\\\/g, '\\\\\\\\').replace(/'/g, \"\\\\'\").replace(/\\n/g, '\\\\n')}'`;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"service-consent-requirement.generator.js","sourceRoot":"","sources":["../../../../../../src/services/compliance/service-consent-requirement.generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM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,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC;AACxF,CAAC","sourcesContent":["/**\n * Carries an application's DECLARED service consent requirement into its RUNTIME config (#453).\n *\n * ## The gap this closes\n *\n * `operatorComplianceIdentity.serviceConsentRequirement` is declared in `wildo.saas.config.ts` — which\n * purposes a person must grant before the application may be used, and what that gates. Until #453 it\n * reached exactly one consumer, the compliance-document drafting brief, so the documents could state a\n * gate the running application did not have. The runtime half is `compliance.serviceConsentRequirement`,\n * which `AppLayout_AuthenticatedRoute` enforces through the consent gate.\n *\n * ## Why a generator, copied from `wildo config document-releases`\n *\n * The declaration file is not a runtime dependency of the backend, and a hand-copy into\n * `saas-config.backend.ts` is a second source that drifts — the stale copy would be a gate a legal\n * document describes and the product does not enforce, or the reverse. So the declaration is projected\n * into `backend-api/src/service-consent-requirement.generated.ts`, composed by `saas-config.backend.ts`,\n * with `--check` for CI. Same two ends and the same `.ts`-not-JSON reason: `ConsentPurpose` is a\n * nominal enum, so the module references members rather than bare strings.\n *\n * ## Absent stays absent\n *\n * An application that declares no requirement gets a module exporting `undefined`, not an empty set.\n * Both gate nothing at runtime, but the difference is the operator's ANSWER, and the documents composed\n * from the declaration keep it; the runtime projection must not manufacture a positive statement.\n */\n\nimport { existsSync } from 'node:fs';\nimport { mkdir, readFile, writeFile } from 'node:fs/promises';\nimport { dirname, join } from 'node:path';\n\nimport { loadSaasConfig } from '@wildo-ai/platform-config-lib';\nimport { ConsentPurpose, ServiceConsentRequirementSchema, type ServiceConsentRequirement } from '@wildo-ai/saas-models';\n\n/** Where the generated module lands, beside `governed-document-releases.generated.ts`. */\nexport const SERVICE_CONSENT_REQUIREMENT_GENERATED_RELATIVE_PATH = join('backend-api', 'src', 'service-consent-requirement.generated.ts');\n\n/** The constant the application's `saas-config.backend.ts` imports. */\nexport const SERVICE_CONSENT_REQUIREMENT_GENERATED_CONSTANT = 'generatedServiceConsentRequirement';\n\nexport class ServiceConsentRequirementGenerationError extends Error {}\n\n/**\n * Read and VALIDATE the declared requirement. A declaration that does not parse is refused rather than\n * projected: a malformed requirement written into the runtime would fail the application at startup,\n * far from the file the author must fix.\n */\nexport async function loadDeclaredServiceConsentRequirement(appRoot: string): Promise<ServiceConsentRequirement | undefined> {\n const configPath = join(appRoot, 'wildo.saas.config.ts');\n const config = await loadSaasConfig(configPath);\n if (config === null) {\n throw new ServiceConsentRequirementGenerationError(`Could not load ${configPath}, so the declared service consent requirement is unknown.`);\n }\n const declared = config.operatorComplianceIdentity?.serviceConsentRequirement;\n if (declared === undefined) return undefined;\n const parsed = ServiceConsentRequirementSchema.safeParse(declared);\n if (!parsed.success) {\n throw new ServiceConsentRequirementGenerationError(\n `operatorComplianceIdentity.serviceConsentRequirement in ${configPath} is invalid: ${parsed.error.issues.map((issue) => issue.message).join('; ')}`,\n );\n }\n return parsed.data;\n}\n\n/** Render the committed generated module. PURE, so it is pinned directly. */\nexport function renderServiceConsentRequirementModule(requirement: ServiceConsentRequirement | undefined): string {\n const header = [\n '/**',\n ' * GENERATED by `wildo config service-consent`. DO NOT EDIT BY HAND — re-run it to regenerate.',\n ' *',\n ' * The runtime projection of `operatorComplianceIdentity.serviceConsentRequirement` in',\n ' * `wildo.saas.config.ts`. Composed into `compliance.serviceConsentRequirement` by',\n ' * `saas-config.backend.ts`, where the consent gate enforces it before any signed-in route renders',\n ' * (#453). `undefined` means the application declared no requirement.',\n ' */',\n ].join('\\n');\n\n if (requirement === undefined) {\n return [\n \"import type { ServiceConsentRequirement } from '@wildo-ai/saas-models';\",\n '',\n header,\n `export const ${SERVICE_CONSENT_REQUIREMENT_GENERATED_CONSTANT}: ServiceConsentRequirement | undefined = undefined;`,\n '',\n ].join('\\n');\n }\n\n const purposes = requirement.requiredPurposes.map(consentPurposeMemberRef).join(', ');\n const body = [` requiredPurposes: [${purposes}],`];\n if (requirement.gatedProcessing !== undefined) body.push(` gatedProcessing: ${quote(requirement.gatedProcessing)},`);\n\n const needsEnum = requirement.requiredPurposes.length > 0;\n return [\n `import { ${needsEnum ? 'ConsentPurpose, ' : ''}ServiceConsentRequirementSchema, type ServiceConsentRequirement } from '@wildo-ai/saas-models';`,\n '',\n header,\n // Parsed at load, so a hand edit that breaks the schema's own rules (a duplicate purpose, a gate with\n // no description) fails at startup instead of reaching a person as a malformed gate.\n `export const ${SERVICE_CONSENT_REQUIREMENT_GENERATED_CONSTANT}: ServiceConsentRequirement | undefined = ServiceConsentRequirementSchema.parse({`,\n ...body,\n '});',\n '',\n ].join('\\n');\n}\n\n/** Write the module into `<appRoot>/backend-api/src/`. Returns whether the bytes changed. */\nexport async function generateServiceConsentRequirementModule(input: {\n readonly appRoot: string;\n readonly dryRun?: boolean;\n}): Promise<{ readonly path: string; readonly declared: boolean; readonly changed: boolean }> {\n if (!existsSync(join(input.appRoot, 'backend-api'))) {\n throw new ServiceConsentRequirementGenerationError(\n `No backend-api/ package under ${input.appRoot}, so there is no runtime config to carry the requirement into.`,\n );\n }\n const requirement = await loadDeclaredServiceConsentRequirement(input.appRoot);\n const content = renderServiceConsentRequirementModule(requirement);\n const path = join(input.appRoot, SERVICE_CONSENT_REQUIREMENT_GENERATED_RELATIVE_PATH);\n const previous = existsSync(path) ? await readFile(path, 'utf-8') : undefined;\n const changed = previous !== content;\n if (changed && input.dryRun !== true) {\n await mkdir(dirname(path), { recursive: true });\n await writeFile(path, content, 'utf-8');\n }\n return { path, declared: requirement !== undefined, changed };\n}\n\n/** `ConsentPurpose.<MEMBER>` for a purpose value. Refuses a value that is not a member. */\nfunction consentPurposeMemberRef(value: string): string {\n const member = (Object.keys(ConsentPurpose) as (keyof typeof ConsentPurpose)[]).find((key) => ConsentPurpose[key] === value);\n if (member === undefined) {\n throw new ServiceConsentRequirementGenerationError(`${value} is not a ConsentPurpose, so it cannot be rendered as a member reference.`);\n }\n return `ConsentPurpose.${member}`;\n}\n\n/** Single-quote a string literal for the generated source, escaping as needed. */\nfunction quote(value: string): string {\n return `'${value.replace(/\\\\/g, '\\\\\\\\').replace(/'/g, \"\\\\'\").replace(/\\n/g, '\\\\n')}'`;\n}\n"]}
|
|
@@ -22,8 +22,11 @@
|
|
|
22
22
|
* export then states as such.
|
|
23
23
|
* - Typed-client imports, by `git grep` over the working tree (the companion's reader). A scan that could not run is
|
|
24
24
|
* carried as an UNSCANNED code path, never as "nothing imports it".
|
|
25
|
-
* -
|
|
26
|
-
*
|
|
25
|
+
* - A VENDOR-HOSTED system of record is a recipient (#2585); a self-hosted one is the operator's own system and is not.
|
|
26
|
+
* Its resource flows are NOT read here: they come off the materialized resource configurations, which only a built
|
|
27
|
+
* backend can produce (the `wildo db diff` runner's lane), and a stale build would describe flows nobody has. So its
|
|
28
|
+
* categories are carried as not read (`FLOWS_NOT_READ`), and an export then names it as a recipient that MAY hold any
|
|
29
|
+
* subject's records, never as one that holds none. Its erasure answer is the system of record's, not a stance.
|
|
27
30
|
*/
|
|
28
31
|
import { type SubjectDataRecipientsDeclaration } from '@wildo-ai/saas-models';
|
|
29
32
|
import { type ProviderTypedClientSite } from '@wildo-ai/saas-specifications/application-creation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subject-data-recipients.generator.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"subject-data-recipients.generator.d.ts","sourceRoot":"","sources":["../../../../../../src/services/compliance/subject-data-recipients.generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAQH,OAAO,EAGL,KAAK,gCAAgC,EACtC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAYL,KAAK,uBAAuB,EAC7B,MAAM,oDAAoD,CAAC;AAE5D,qBAAa,oCAAqC,SAAQ,KAAK;CAAG;AAoBlE;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,uBAAuB,EAAE,GAAG,SAAS,CAoBpG;AAED,yIAAyI;AACzI,wBAAsB,sCAAsC,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,gCAAgC,CAAC,CA8DvH;AAED,6FAA6F;AAC7F,wBAAsB,mCAAmC,CAAC,KAAK,EAAE;IAC/D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,OAAO,CAAC;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAcjG"}
|
|
@@ -22,8 +22,11 @@
|
|
|
22
22
|
* export then states as such.
|
|
23
23
|
* - Typed-client imports, by `git grep` over the working tree (the companion's reader). A scan that could not run is
|
|
24
24
|
* carried as an UNSCANNED code path, never as "nothing imports it".
|
|
25
|
-
* -
|
|
26
|
-
*
|
|
25
|
+
* - A VENDOR-HOSTED system of record is a recipient (#2585); a self-hosted one is the operator's own system and is not.
|
|
26
|
+
* Its resource flows are NOT read here: they come off the materialized resource configurations, which only a built
|
|
27
|
+
* backend can produce (the `wildo db diff` runner's lane), and a stale build would describe flows nobody has. So its
|
|
28
|
+
* categories are carried as not read (`FLOWS_NOT_READ`), and an export then names it as a recipient that MAY hold any
|
|
29
|
+
* subject's records, never as one that holds none. Its erasure answer is the system of record's, not a stance.
|
|
27
30
|
*/
|
|
28
31
|
import { execFileSync } from 'node:child_process';
|
|
29
32
|
import { existsSync, readFileSync } from 'node:fs';
|
|
@@ -126,7 +129,8 @@ export async function deriveApplicationSubjectDataRecipients(appRoot) {
|
|
|
126
129
|
}
|
|
127
130
|
const disclosures = deriveRecipientDisclosures({
|
|
128
131
|
population,
|
|
129
|
-
// Not read here:
|
|
132
|
+
// Not read here (see the module JSDoc): a system-of-record member's categories are then stated as not read, never as
|
|
133
|
+
// empty. With no system of record there is nothing to read, which is the empty list.
|
|
130
134
|
systemOfRecordFlows: population.members.some((member) => member.kind === RecipientPopulationMemberKind.SYSTEM_OF_RECORD) ? undefined : [],
|
|
131
135
|
providerComplianceChoices: choices?.data,
|
|
132
136
|
lawfulBases: identity?.data?.lawfulBases,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subject-data-recipients.generator.js","sourceRoot":"","sources":["../../../../src/services/compliance/subject-data-recipients.generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,0BAA0B,EAAE,cAAc,EAAE,iCAAiC,EAAE,MAAM,+BAA+B,CAAC;AAC9H,OAAO,EACL,2CAA2C,EAC3C,0CAA0C,GAE3C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,kCAAkC,EAClC,0BAA0B,EAC1B,0BAA0B,EAC1B,2BAA2B,EAC3B,8CAA8C,EAC9C,wCAAwC,EACxC,6BAA6B,EAC7B,iCAAiC,EACjC,+CAA+C,EAC/C,wBAAwB,EACxB,6BAA6B,GAE9B,MAAM,oDAAoD,CAAC;AAE5D,MAAM,OAAO,oCAAqC,SAAQ,KAAK;CAAG;AAElE;;;;GAIG;AACH,SAAS,+BAA+B,CAAC,OAAe;IACtD,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,oBAAoB,EAAE,IAAI,EAAE,8CAA8C,CAAC,EAAE;YACnJ,GAAG,EAAE,OAAO;YACZ,QAAQ,E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AAG,iCAAiC,CAAC,WAAW,CAAC,CAAC;IAC/D,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,+CAA+C,CAAC,CAAC;IAClF,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9E,MAAM,OAAO,GAAG,QAAQ,KAAK,OAAO,CAAC;IACrC,IAAI,OAAO,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;QACrC,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAChD,MAAM,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC;AAC1E,CAAC","sourcesContent":["/**\n * Carries WHO ELSE HOLDS a data subject's personal data into the application's runtime config (#1710).\n *\n * ## The gap this closes\n *\n * A subject export answers Art. 15, which names \"the recipients or categories of recipient\", and an erasure answers\n * Art. 17, after which Art. 19 asks the controller to tell each recipient. The running backend knew neither: the\n * recipient population, the processor register and the #1709 disclosures live in the application's configuration,\n * specifications and source, none of which the backend loads. This projects the one derivation that joins them —\n * `deriveSubjectDataRecipients`, the same functions the companion and the evidence collector call — into\n * `backend-api/src/subject-data-recipients.generated.ts`, which `saas-config.backend.ts` composes into\n * `compliance.subjectDataRecipients`. The `wildo config data-retention` precedent.\n *\n * ## What it reads, and how each input fails\n *\n * - `wildo.saas.config.ts`: providers, compliance choices, role allocations, lawful bases.\n * - The providers' compliance profiles, through the application's own discovery (`resolveProviderComplianceProfiles`):\n * a profile is where a vendor declares its erasure stance. An owner discovery could not read REFUSES generation —\n * a projection missing one vendor's stance would tell every erasure that vendor is unmeasured.\n * - The processor register, from the specifications package's companion exports. A package that cannot be loaded\n * refuses; an application with no register projects every operator recipient with no legal identity, which the\n * export then states as such.\n * - Typed-client imports, by `git grep` over the working tree (the companion's reader). A scan that could not run is\n * carried as an UNSCANNED code path, never as \"nothing imports it\".\n * - Systems of record are NOT recipients here: `deriveSubjectDataRecipients` excludes them, because their erasure and\n * what they hold are maintained on the systems-of-record lane. So their flows are not read either.\n */\n\nimport { execFileSync } from 'node:child_process';\nimport { existsSync, readFileSync } from 'node:fs';\nimport { mkdir, readFile, writeFile } from 'node:fs/promises';\nimport { dirname, join } from 'node:path';\n\nimport { loadPackageCompanionExport, loadSaasConfig, resolveProviderComplianceProfiles } from '@wildo-ai/platform-config-lib';\nimport {\n ApplicationOperatorComplianceIdentitySchema,\n ApplicationProviderComplianceChoicesSchema,\n type SubjectDataRecipientsDeclaration,\n} from '@wildo-ai/saas-models';\nimport {\n ApplicationProcessorRegisterSchema,\n computeRecipientPopulation,\n deriveRecipientDisclosures,\n deriveSubjectDataRecipients,\n APPLICATION_PROVIDER_PACKAGE_MANIFEST_PATHSPEC,\n applicationProviderPackagesFromManifests,\n RecipientPopulationMemberKind,\n renderSubjectDataRecipientsModule,\n SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH,\n typedClientSearchNeedles,\n typedClientSitesFromGrepLines,\n type ProviderTypedClientSite,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport class SubjectDataRecipientsGenerationError extends Error {}\n\n/**\n * The provider packages this application owns (package name → ref), from `providers/<ref>/<facet>/package.json`\n * in the working tree, untracked included (#2018). `undefined` when they could not be listed, so the scan below\n * reports itself UNSCANNED rather than reading \"no owned package\" as \"nothing imports a provider\".\n */\nfunction readApplicationProviderPackages(appRoot: string): ReadonlyMap<string, string> | undefined {\n try {\n const listed = execFileSync('git', ['ls-files', '--cached', '--others', '--exclude-standard', '--', APPLICATION_PROVIDER_PACKAGE_MANIFEST_PATHSPEC], {\n cwd: appRoot,\n encoding: 'utf8',\n stdio: ['ignore', 'pipe', 'ignore'],\n }).split('\\n').filter(Boolean);\n return applicationProviderPackagesFromManifests(listed.map((path) => ({ path, content: readFileSync(join(appRoot, path), 'utf8') })));\n } catch {\n return undefined;\n }\n}\n\n/**\n * Typed-client imports in the working tree, untracked files included: imports of the provider packages the\n * application owns (#2018). `undefined` when the scan could not run.\n */\nexport function scanTypedClientSites(appRoot: string): readonly ProviderTypedClientSite[] | undefined {\n const applicationProviderPackages = readApplicationProviderPackages(appRoot);\n if (applicationProviderPackages === undefined) return undefined;\n const needles = typedClientSearchNeedles(applicationProviderPackages).flatMap((needle) => ['-e', needle]);\n // No owned provider package, nothing a typed client could be imported from: a scan that found none. Never run\n // `git grep` with no `-e`: it would read the pathspec `.` as the PATTERN and return every line holding a dot.\n if (needles.length === 0) return [];\n try {\n const output = execFileSync('git', ['grep', '--untracked', '-n', '-F', ...needles, '--', '.'], {\n cwd: appRoot,\n encoding: 'utf8',\n stdio: ['ignore', 'pipe', 'ignore'],\n maxBuffer: 16 * 1024 * 1024,\n });\n return typedClientSitesFromGrepLines(output.split('\\n'), applicationProviderPackages);\n } catch (error) {\n // `git grep` exits 1 when nothing matches: a scan that found none, not one that failed.\n if ((error as { status?: unknown }).status === 1) return [];\n return undefined;\n }\n}\n\n/** Derive the application's recipient declaration. Throws a {@link SubjectDataRecipientsGenerationError} on an input it cannot trust. */\nexport async function deriveApplicationSubjectDataRecipients(appRoot: string): Promise<SubjectDataRecipientsDeclaration> {\n const configPath = join(appRoot, 'wildo.saas.config.ts');\n const config = await loadSaasConfig(configPath);\n if (config === null) throw new SubjectDataRecipientsGenerationError(`Could not load ${configPath}, so the application's recipients are unknown.`);\n\n const choices = config.providerComplianceChoices === undefined ? undefined : ApplicationProviderComplianceChoicesSchema.safeParse(config.providerComplianceChoices);\n if (choices !== undefined && !choices.success) {\n throw new SubjectDataRecipientsGenerationError(`providerComplianceChoices in ${configPath} is invalid: ${choices.error.issues.map((issue) => issue.message).join('; ')}`);\n }\n const identity = config.operatorComplianceIdentity === undefined ? undefined : ApplicationOperatorComplianceIdentitySchema.safeParse(config.operatorComplianceIdentity);\n if (identity !== undefined && !identity.success) {\n throw new SubjectDataRecipientsGenerationError(`operatorComplianceIdentity in ${configPath} is invalid: ${identity.error.issues.map((issue) => issue.message).join('; ')}`);\n }\n\n const profiles = await resolveProviderComplianceProfiles({ saasRoot: appRoot, saasConfig: config });\n if (profiles.unreadableOwners.length > 0) {\n throw new SubjectDataRecipientsGenerationError(\n `Provider discovery could not read ${profiles.unreadableOwners.length} owner(s), so their vendors' erasure stances are unknown. Build or install them and re-run.`,\n );\n }\n\n const population = computeRecipientPopulation({\n providers: config.providers,\n systemsOfRecord: config.systemsOfRecord,\n providerComplianceChoices: choices?.data,\n typedClientSites: scanTypedClientSites(appRoot),\n providerComplianceProfiles: profiles.profilesByProviderRef,\n });\n\n const specificationsRoot = join(appRoot, 'specifications');\n let register;\n if (existsSync(specificationsRoot)) {\n let exports: { processorRegister?: unknown };\n try {\n exports = await loadPackageCompanionExport<{ processorRegister?: unknown }>(specificationsRoot);\n } catch (error) {\n // A package that cannot be loaded is not \"no register\": that would strip every legal identity from the list.\n throw new SubjectDataRecipientsGenerationError(`Could not load the specifications package at ${specificationsRoot}: ${(error as Error).message}`);\n }\n if (exports.processorRegister !== undefined) {\n const parsed = ApplicationProcessorRegisterSchema.safeParse(exports.processorRegister);\n if (!parsed.success) throw new SubjectDataRecipientsGenerationError(`The processor register is invalid: ${parsed.error.issues.map((issue) => issue.message).join('; ')}`);\n register = parsed.data;\n }\n }\n\n const disclosures = deriveRecipientDisclosures({\n population,\n // Not read here: systems of record are excluded from this list by `deriveSubjectDataRecipients` (see the module JSDoc).\n systemOfRecordFlows: population.members.some((member) => member.kind === RecipientPopulationMemberKind.SYSTEM_OF_RECORD) ? undefined : [],\n providerComplianceChoices: choices?.data,\n lawfulBases: identity?.data?.lawfulBases,\n });\n\n return deriveSubjectDataRecipients({\n population,\n disclosures,\n register,\n providerComplianceChoices: choices?.data,\n roleAllocations: identity?.data?.roleAllocations,\n });\n}\n\n/** Write the module into `<appRoot>/backend-api/src/`. Returns whether the bytes changed. */\nexport async function generateSubjectDataRecipientsModule(input: {\n readonly appRoot: string;\n readonly dryRun?: boolean;\n}): Promise<{ readonly path: string; readonly recipientCount: number; readonly changed: boolean }> {\n if (!existsSync(join(input.appRoot, 'backend-api'))) {\n throw new SubjectDataRecipientsGenerationError(`No backend-api/ package under ${input.appRoot}, so there is no runtime config to carry the recipients into.`);\n }\n const declaration = await deriveApplicationSubjectDataRecipients(input.appRoot);\n const content = renderSubjectDataRecipientsModule(declaration);\n const path = join(input.appRoot, SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH);\n const previous = existsSync(path) ? await readFile(path, 'utf-8') : undefined;\n const changed = previous !== content;\n if (changed && input.dryRun !== true) {\n await mkdir(dirname(path), { recursive: true });\n await writeFile(path, content, 'utf-8');\n }\n return { path, recipientCount: declaration.recipients.length, changed };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"subject-data-recipients.generator.js","sourceRoot":"","sources":["../../../../../../src/services/compliance/subject-data-recipients.generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,0BAA0B,EAAE,cAAc,EAAE,iCAAiC,EAAE,MAAM,+BAA+B,CAAC;AAC9H,OAAO,EACL,2CAA2C,EAC3C,0CAA0C,GAE3C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,kCAAkC,EAClC,0BAA0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,QAAQ;QACR,yBAAyB,EAAE,OAAO,EAAE,IAAI;QACxC,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe;KACjD,CAAC,CAAC;AACL,CAAC;AAED,6FAA6F;AAC7F,MAAM,CAAC,KAAK,UAAU,mCAAmC,CAAC,KAGzD;IACC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC;QACpD,MAAM,IAAI,oCAAoC,CAAC,iCAAiC,KAAK,CAAC,OAAO,+DAA+D,CAAC,CAAC;IAChK,CAAC;IACD,MAAM,WAAW,GAAG,MAAM,sCAAsC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAChF,MAAM,OAAO,GAAG,iCAAiC,CAAC,WAAW,CAAC,CAAC;IAC/D,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,+CAA+C,CAAC,CAAC;IAClF,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9E,MAAM,OAAO,GAAG,QAAQ,KAAK,OAAO,CAAC;IACrC,IAAI,OAAO,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;QACrC,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAChD,MAAM,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC;AAC1E,CAAC","sourcesContent":["/**\n * Carries WHO ELSE HOLDS a data subject's personal data into the application's runtime config (#1710).\n *\n * ## The gap this closes\n *\n * A subject export answers Art. 15, which names \"the recipients or categories of recipient\", and an erasure answers\n * Art. 17, after which Art. 19 asks the controller to tell each recipient. The running backend knew neither: the\n * recipient population, the processor register and the #1709 disclosures live in the application's configuration,\n * specifications and source, none of which the backend loads. This projects the one derivation that joins them —\n * `deriveSubjectDataRecipients`, the same functions the companion and the evidence collector call — into\n * `backend-api/src/subject-data-recipients.generated.ts`, which `saas-config.backend.ts` composes into\n * `compliance.subjectDataRecipients`. The `wildo config data-retention` precedent.\n *\n * ## What it reads, and how each input fails\n *\n * - `wildo.saas.config.ts`: providers, compliance choices, role allocations, lawful bases.\n * - The providers' compliance profiles, through the application's own discovery (`resolveProviderComplianceProfiles`):\n * a profile is where a vendor declares its erasure stance. An owner discovery could not read REFUSES generation —\n * a projection missing one vendor's stance would tell every erasure that vendor is unmeasured.\n * - The processor register, from the specifications package's companion exports. A package that cannot be loaded\n * refuses; an application with no register projects every operator recipient with no legal identity, which the\n * export then states as such.\n * - Typed-client imports, by `git grep` over the working tree (the companion's reader). A scan that could not run is\n * carried as an UNSCANNED code path, never as \"nothing imports it\".\n * - A VENDOR-HOSTED system of record is a recipient (#2585); a self-hosted one is the operator's own system and is not.\n * Its resource flows are NOT read here: they come off the materialized resource configurations, which only a built\n * backend can produce (the `wildo db diff` runner's lane), and a stale build would describe flows nobody has. So its\n * categories are carried as not read (`FLOWS_NOT_READ`), and an export then names it as a recipient that MAY hold any\n * subject's records, never as one that holds none. Its erasure answer is the system of record's, not a stance.\n */\n\nimport { execFileSync } from 'node:child_process';\nimport { existsSync, readFileSync } from 'node:fs';\nimport { mkdir, readFile, writeFile } from 'node:fs/promises';\nimport { dirname, join } from 'node:path';\n\nimport { loadPackageCompanionExport, loadSaasConfig, resolveProviderComplianceProfiles } from '@wildo-ai/platform-config-lib';\nimport {\n ApplicationOperatorComplianceIdentitySchema,\n ApplicationProviderComplianceChoicesSchema,\n type SubjectDataRecipientsDeclaration,\n} from '@wildo-ai/saas-models';\nimport {\n ApplicationProcessorRegisterSchema,\n computeRecipientPopulation,\n deriveRecipientDisclosures,\n deriveSubjectDataRecipients,\n APPLICATION_PROVIDER_PACKAGE_MANIFEST_PATHSPEC,\n applicationProviderPackagesFromManifests,\n RecipientPopulationMemberKind,\n renderSubjectDataRecipientsModule,\n SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH,\n typedClientSearchNeedles,\n typedClientSitesFromGrepLines,\n type ProviderTypedClientSite,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport class SubjectDataRecipientsGenerationError extends Error {}\n\n/**\n * The provider packages this application owns (package name → ref), from `providers/<ref>/<facet>/package.json`\n * in the working tree, untracked included (#2018). `undefined` when they could not be listed, so the scan below\n * reports itself UNSCANNED rather than reading \"no owned package\" as \"nothing imports a provider\".\n */\nfunction readApplicationProviderPackages(appRoot: string): ReadonlyMap<string, string> | undefined {\n try {\n const listed = execFileSync('git', ['ls-files', '--cached', '--others', '--exclude-standard', '--', APPLICATION_PROVIDER_PACKAGE_MANIFEST_PATHSPEC], {\n cwd: appRoot,\n encoding: 'utf8',\n stdio: ['ignore', 'pipe', 'ignore'],\n }).split('\\n').filter(Boolean);\n return applicationProviderPackagesFromManifests(listed.map((path) => ({ path, content: readFileSync(join(appRoot, path), 'utf8') })));\n } catch {\n return undefined;\n }\n}\n\n/**\n * Typed-client imports in the working tree, untracked files included: imports of the provider packages the\n * application owns (#2018). `undefined` when the scan could not run.\n */\nexport function scanTypedClientSites(appRoot: string): readonly ProviderTypedClientSite[] | undefined {\n const applicationProviderPackages = readApplicationProviderPackages(appRoot);\n if (applicationProviderPackages === undefined) return undefined;\n const needles = typedClientSearchNeedles(applicationProviderPackages).flatMap((needle) => ['-e', needle]);\n // No owned provider package, nothing a typed client could be imported from: a scan that found none. Never run\n // `git grep` with no `-e`: it would read the pathspec `.` as the PATTERN and return every line holding a dot.\n if (needles.length === 0) return [];\n try {\n const output = execFileSync('git', ['grep', '--untracked', '-n', '-F', ...needles, '--', '.'], {\n cwd: appRoot,\n encoding: 'utf8',\n stdio: ['ignore', 'pipe', 'ignore'],\n maxBuffer: 16 * 1024 * 1024,\n });\n return typedClientSitesFromGrepLines(output.split('\\n'), applicationProviderPackages);\n } catch (error) {\n // `git grep` exits 1 when nothing matches: a scan that found none, not one that failed.\n if ((error as { status?: unknown }).status === 1) return [];\n return undefined;\n }\n}\n\n/** Derive the application's recipient declaration. Throws a {@link SubjectDataRecipientsGenerationError} on an input it cannot trust. */\nexport async function deriveApplicationSubjectDataRecipients(appRoot: string): Promise<SubjectDataRecipientsDeclaration> {\n const configPath = join(appRoot, 'wildo.saas.config.ts');\n const config = await loadSaasConfig(configPath);\n if (config === null) throw new SubjectDataRecipientsGenerationError(`Could not load ${configPath}, so the application's recipients are unknown.`);\n\n const choices = config.providerComplianceChoices === undefined ? undefined : ApplicationProviderComplianceChoicesSchema.safeParse(config.providerComplianceChoices);\n if (choices !== undefined && !choices.success) {\n throw new SubjectDataRecipientsGenerationError(`providerComplianceChoices in ${configPath} is invalid: ${choices.error.issues.map((issue) => issue.message).join('; ')}`);\n }\n const identity = config.operatorComplianceIdentity === undefined ? undefined : ApplicationOperatorComplianceIdentitySchema.safeParse(config.operatorComplianceIdentity);\n if (identity !== undefined && !identity.success) {\n throw new SubjectDataRecipientsGenerationError(`operatorComplianceIdentity in ${configPath} is invalid: ${identity.error.issues.map((issue) => issue.message).join('; ')}`);\n }\n\n const profiles = await resolveProviderComplianceProfiles({ saasRoot: appRoot, saasConfig: config });\n if (profiles.unreadableOwners.length > 0) {\n throw new SubjectDataRecipientsGenerationError(\n `Provider discovery could not read ${profiles.unreadableOwners.length} owner(s), so their vendors' erasure stances are unknown. Build or install them and re-run.`,\n );\n }\n\n const population = computeRecipientPopulation({\n providers: config.providers,\n systemsOfRecord: config.systemsOfRecord,\n providerComplianceChoices: choices?.data,\n typedClientSites: scanTypedClientSites(appRoot),\n providerComplianceProfiles: profiles.profilesByProviderRef,\n });\n\n const specificationsRoot = join(appRoot, 'specifications');\n let register;\n if (existsSync(specificationsRoot)) {\n let exports: { processorRegister?: unknown };\n try {\n exports = await loadPackageCompanionExport<{ processorRegister?: unknown }>(specificationsRoot);\n } catch (error) {\n // A package that cannot be loaded is not \"no register\": that would strip every legal identity from the list.\n throw new SubjectDataRecipientsGenerationError(`Could not load the specifications package at ${specificationsRoot}: ${(error as Error).message}`);\n }\n if (exports.processorRegister !== undefined) {\n const parsed = ApplicationProcessorRegisterSchema.safeParse(exports.processorRegister);\n if (!parsed.success) throw new SubjectDataRecipientsGenerationError(`The processor register is invalid: ${parsed.error.issues.map((issue) => issue.message).join('; ')}`);\n register = parsed.data;\n }\n }\n\n const disclosures = deriveRecipientDisclosures({\n population,\n // Not read here (see the module JSDoc): a system-of-record member's categories are then stated as not read, never as\n // empty. With no system of record there is nothing to read, which is the empty list.\n systemOfRecordFlows: population.members.some((member) => member.kind === RecipientPopulationMemberKind.SYSTEM_OF_RECORD) ? undefined : [],\n providerComplianceChoices: choices?.data,\n lawfulBases: identity?.data?.lawfulBases,\n });\n\n return deriveSubjectDataRecipients({\n population,\n disclosures,\n register,\n providerComplianceChoices: choices?.data,\n roleAllocations: identity?.data?.roleAllocations,\n });\n}\n\n/** Write the module into `<appRoot>/backend-api/src/`. Returns whether the bytes changed. */\nexport async function generateSubjectDataRecipientsModule(input: {\n readonly appRoot: string;\n readonly dryRun?: boolean;\n}): Promise<{ readonly path: string; readonly recipientCount: number; readonly changed: boolean }> {\n if (!existsSync(join(input.appRoot, 'backend-api'))) {\n throw new SubjectDataRecipientsGenerationError(`No backend-api/ package under ${input.appRoot}, so there is no runtime config to carry the recipients into.`);\n }\n const declaration = await deriveApplicationSubjectDataRecipients(input.appRoot);\n const content = renderSubjectDataRecipientsModule(declaration);\n const path = join(input.appRoot, SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH);\n const previous = existsSync(path) ? await readFile(path, 'utf-8') : undefined;\n const changed = previous !== content;\n if (changed && input.dryRun !== true) {\n await mkdir(dirname(path), { recursive: true });\n await writeFile(path, content, 'utf-8');\n }\n return { path, recipientCount: declaration.recipients.length, changed };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-manager.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"context-manager.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/context/context-manager.service.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAoB,MAAM,6CAA6C,CAAC;AACtH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sDAAsD,CAAC;AAOnG,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA2B;IAClD,OAAO,CAAC,MAAM,CAAC,YAAY,CAAuB;IAElD;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,CAAC,GAAG,GAAE,MAAsB,GAAG,UAAU;IAqCtD;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAKlC,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAYrC,MAAM,CAAC,GAAG,IAAI,UAAU;IAOxB,MAAM,CAAC,KAAK,IAAI,IAAI;IAMpB;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,gBAAgB,IAAI,UAAU,CAAC,eAAe,CAAC;IAYtD,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,sBAAsB;IA+BnE;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,+BAA+B;IAM9C,OAAO,CAAC,MAAM,CAAC,eAAe;IAiB9B;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,oBAAoB,GAAG,IAAI;IAmCrE;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,CAAC,MAAM,CAAC,yBAAyB;CAkBzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-manager.service.js","sourceRoot":"","sources":["../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AoB,KAAK,IAAI;gBAChD,aAAa,CAAC,YAAY,CAAC,iCAAiC;YAC9D,+FAA+F;YAC/F,uEAAuE;YACvE,GAAG,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,iBAAiB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACjF,CAAC;IACJ,CAAC","sourcesContent":["import { existsSync, readFileSync } from 'fs';\nimport { join } from 'path';\nimport {\n buildResolvedHomes,\n DatabaseEngine,\n resolveMachinePreferencesPath,\n resolveWorkspaceScope,\n WildoDeploymentRuntime,\n} from '@wildo-ai/platform-config-lib';\nimport { LocalDefaultsMode } from '~wildo-cli/services/credentials/local-defaults.service';\nimport type { CliContext, WildoMachineDefaults, WildoPreferences } from '~wildo-cli/services/context/context.schemas';\nimport type { PlatformRuntimeContext } from '~wildo-cli/services/deployment/docker/docker.schemas';\nimport { FILE_NAMES } from '~wildo-cli/infrastructure/io/io.schemas';\nimport { EnvironmentRegistry } from '~wildo-cli/services/environment/environment-registry.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { InfrastructureHost } from '~wildo-cli/services/environment/infrastructure-host.service';\nimport { resolveInstalledFrameworkAssetsRoot } from '~wildo-cli/services/framework/installed-framework-assets.service';\n\nexport class ContextManager {\n private static instance: CliContext | null = null;\n private static detectionCwd: string | null = null;\n\n /**\n * Resolve (and cache) the trusted CLI context for the given working directory.\n *\n * The singleton shape means the first `detect(cwd)` call wins; subsequent calls\n * with a matching `cwd` (or without one) just reuse the cache. If a caller\n * passes a `cwd` that differs from the one that built the cached context,\n * we throw instead of silently returning a context for a different root —\n * the caller must `reset()` first to opt into re-detection.\n */\n static detect(cwd: string = process.cwd()): CliContext {\n if (ContextManager.instance) {\n ContextManager.assertCachedCwdMatches(cwd);\n ContextManager.syncEnvironmentRegistryResolver();\n return ContextManager.instance;\n }\n\n const workspaceScope = resolveWorkspaceScope(cwd);\n const storedPreferences = ContextManager.loadPreferences();\n const resolvedHomes = buildResolvedHomes(workspaceScope, {\n /*\n * Ranking, lowest last: a checkout found by walking up from `cwd` (inside\n * `buildResolvedHomes`), then the operator's stored `frameworkPath`, then the\n * framework-assets root the RUNNING CLI lives in — the monorepo when the CLI runs from a\n * checkout, the published package when it was installed from npm. The last rung is what\n * lets an application creator with no checkout scaffold, render compose and pin the\n * companion; it grants no framework-developer capability (see\n * `installed-framework-assets.service.ts`).\n */\n frameworkPathHint: ContextManager.storedFrameworkPath(storedPreferences) ?? resolveInstalledFrameworkAssetsRoot(),\n isFrameworkDeveloperHint: storedPreferences?.isFrameworkDeveloper ?? false,\n });\n const preferences = ContextManager.buildEffectivePreferences(storedPreferences, resolvedHomes);\n\n ContextManager.instance = {\n resolvedHomes,\n workspaceScope: resolvedHomes.workspaceScope,\n scope: resolvedHomes.scope,\n preferences,\n hasFrameworkWorkspace: resolvedHomes.capabilities.hasFrameworkWorkspace,\n };\n ContextManager.detectionCwd = cwd;\n ContextManager.syncEnvironmentRegistryResolver();\n\n return ContextManager.instance;\n }\n\n /**\n * A stored `frameworkPath` counts only when it names something. `loadPreferences` coerces an\n * absent key to `\"\"` — and `\"\" ?? fallback` keeps the empty string, so an installer-written\n * preferences file (which always exists in app-creator mode and carries no `frameworkPath`)\n * silently disabled the installed-assets fallback: measured 2026-09-05 on the first real\n * install from get.wildo.ai, `wildo init` refused with \"no framework-assets root resolved\"\n * while the templates sat beside the CLI. Blank means absent.\n */\n private static storedFrameworkPath(preferences: WildoPreferences | null): string | null {\n const value = preferences?.frameworkPath?.trim();\n return value ? value : null;\n }\n\n private static assertCachedCwdMatches(cwd: string): void {\n if (ContextManager.detectionCwd === null || ContextManager.detectionCwd === cwd) {\n return;\n }\n\n throw new Error(\n `ContextManager.detect() was called with cwd \"${cwd}\" but a context is already cached `\n + `for cwd \"${ContextManager.detectionCwd}\". Call ContextManager.reset() before re-detecting `\n + 'from a different working directory.',\n );\n }\n\n static get(): CliContext {\n if (!ContextManager.instance) {\n throw new Error('ContextManager.detect() must be called before ContextManager.get()');\n }\n return ContextManager.instance;\n }\n\n static reset(): void {\n ContextManager.instance = null;\n ContextManager.detectionCwd = null;\n EnvironmentRegistry.setSaasRootResolver(null);\n }\n\n /**\n * Return the trusted resolved-homes snapshot for consumers that already know\n * `ContextManager.detect()` has run during CLI bootstrap.\n *\n * This intentionally throws if the singleton is cold. Earlier revisions\n * lazily called `detect(process.cwd())`, but that silently re-ran workspace\n * discovery against whatever the current working directory happened to be —\n * contradicting the Phase 5 contract that every resolved-homes read must\n * come from the single snapshot produced at bootstrap. Callers that\n * legitimately need a snapshot before bootstrap should call `detect(cwd)`\n * explicitly with an intentional working directory.\n */\n static getResolvedHomes(): CliContext['resolvedHomes'] {\n if (!ContextManager.instance) {\n throw new Error(\n 'ContextManager.getResolvedHomes() was called before ContextManager.detect(). '\n + 'Every CLI command path must route through the bootstrap detection so the '\n + 'resolved-homes snapshot is built once from an intentional cwd — never '\n + 'silently derived from process.cwd() at read time.',\n );\n }\n return ContextManager.instance.resolvedHomes;\n }\n\n static resolveInfraContext(envName: string): PlatformRuntimeContext {\n /*\n * A HOSTED environment's containers are described by its HOST's compose file — the only one that\n * names the shared project's real data directories. Every read through this context (`ps`, readiness,\n * status) therefore looks at the host's render; mutations are refused at their own guards.\n */\n const host = InfrastructureHost.resolveByName(envName);\n const composeDir = host !== null\n ? InfrastructureHost.resolveHostDockerComposeDir(host, envName)\n : EnvironmentUtils.resolveDockerComposeDir(envName);\n const composeFile = join(composeDir, FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM);\n const envFile = join(composeDir, FILE_NAMES.ENV_WILDO_PLATFORM);\n\n if (host !== null && !existsSync(composeFile)) {\n throw new Error(\n `Environment '${envName}' runs on the infrastructure of ${host.applicationRoot}, which has not rendered its Docker Compose `\n + `project yet (expected ${composeFile}). Start the host first: cd ${host.applicationRoot} && wildo local dev`,\n );\n }\n\n if (!existsSync(composeFile)) {\n throw new Error(\n `Docker Compose file not found at ${composeFile}\\n`\n + `Run 'wildo local up' to bootstrap the local Docker Compose runtime artifacts (config.json, the docker-compose file, and .env.wildo-platform are written automatically from the authored wildo.infra.<env>.config.ts).\\n`\n + `If you only want to regenerate the docker-compose manifest after editing the authored infra config, run: wildo config sync --domain manifest`,\n );\n }\n\n return { composeDir, composeFile, envFile };\n }\n\n /**\n * Keep the EnvironmentRegistry resolver aligned with the cached CLI context.\n *\n * Some test/setup flows reset the registry independently from the ContextManager\n * singleton. Re-install the resolver whenever callers reuse the cached context\n * so Phase 5's removal of cwd-based fallback discovery does not leave later\n * environment-path reads without a targeted app root.\n */\n private static syncEnvironmentRegistryResolver(): void {\n EnvironmentRegistry.setSaasRootResolver(\n () => ContextManager.instance?.resolvedHomes.app.declarationRoot ?? null,\n );\n }\n\n private static loadPreferences(\n preferencesPath: string = resolveMachinePreferencesPath(),\n ): WildoPreferences | null {\n try {\n if (!existsSync(preferencesPath)) return null;\n const raw = JSON.parse(readFileSync(preferencesPath, 'utf8'));\n const defaults = ContextManager.readMachineDefaults(raw.defaults);\n return {\n frameworkPath: raw.frameworkPath ?? '',\n isFrameworkDeveloper: raw.isFrameworkDeveloper === true,\n ...(defaults === null ? {} : { defaults }),\n };\n } catch {\n return null;\n }\n }\n\n /**\n * Read the machine-defaults block, DROPPING any member that is not a declared value.\n *\n * This file is hand-edited, so a typo is the expected failure rather than an exotic one. A\n * mistyped closed-vocabulary member must not survive as a plausible string: `\"database\":\n * \"postgres\"` (for `postgresql`) would otherwise be carried to the point where a scaffold is\n * authored against a store nobody selected, and the application would be wrong in a way no\n * message explains. Dropping it means the command ASKS, which is the behaviour the operator had\n * before they wrote the file and is always safe.\n *\n * Free-text members (the administrator identity) are taken as given — there is no vocabulary to\n * check them against, and a wrong name is visible to the person who typed it.\n *\n * PUBLIC so `wildo prefs set` can report what a LATER command will load rather than what this\n * process loaded at startup — the two differ precisely after a write, which is the one moment the\n * report is read. Sharing the function rather than re-implementing the check is what keeps the\n * report's own claim (\"an unrecognized value is dropped on read\") true of the loader it describes.\n */\n static readMachineDefaults(raw: unknown): WildoMachineDefaults | null {\n if (typeof raw !== 'object' || raw === null) return null;\n const source = raw as Record<string, unknown>;\n const text = (key: string): string | undefined => {\n const value = source[key];\n return typeof value === 'string' && value.trim().length > 0 ? value.trim() : undefined;\n };\n const member = <T extends string>(key: string, vocabulary: readonly T[]): T | undefined => {\n const value = source[key];\n return typeof value === 'string' && (vocabulary as readonly string[]).includes(value)\n ? value as T\n : undefined;\n };\n\n const defaults: WildoMachineDefaults = {\n ...(text('adminEmail') !== undefined ? { adminEmail: text('adminEmail')! } : {}),\n ...(text('adminFirstName') !== undefined ? { adminFirstName: text('adminFirstName')! } : {}),\n ...(text('adminLastName') !== undefined ? { adminLastName: text('adminLastName')! } : {}),\n ...(member('database', Object.values(DatabaseEngine)) !== undefined\n ? { database: member('database', Object.values(DatabaseEngine))! }\n : {}),\n ...(member('runtime', Object.values(WildoDeploymentRuntime)) !== undefined\n ? { runtime: member('runtime', Object.values(WildoDeploymentRuntime))! }\n : {}),\n ...(member('localDefaults', Object.values(LocalDefaultsMode)) !== undefined\n ? { localDefaults: member('localDefaults', Object.values(LocalDefaultsMode))! }\n : {}),\n ...(member('providerKeyDefaults', Object.values(LocalDefaultsMode)) !== undefined\n ? { providerKeyDefaults: member('providerKeyDefaults', Object.values(LocalDefaultsMode))! }\n : {}),\n ...(text('codingAgent') !== undefined ? { codingAgent: text('codingAgent')! } : {}),\n };\n return Object.keys(defaults).length === 0 ? null : defaults;\n }\n\n /**\n * Build the effective preferences exposed on `ctx.cliContext.preferences`.\n *\n * `frameworkPath` is derived SOLELY from the resolved-homes snapshot. Earlier\n * revisions fell back to `storedPreferences.frameworkPath` when\n * `resolvedHomes.framework.repositoryRoot` was null, but that reintroduced\n * the Phase 5 failure mode: raw preference strings leaking downstream as an\n * effective framework root, bypassing the trusted-homes resolution pipeline.\n *\n * `storedPreferences.frameworkPath` is STILL consulted by `detect()` — but\n * only as a hint (`frameworkPathHint`) that feeds into `buildResolvedHomes`,\n * where it is validated and layout-resolved before surfacing. If the hint\n * does not resolve to a real framework root, `repositoryRoot` stays null and\n * we emit an empty string here so callers fail loudly instead of silently\n * receiving a stored-preferences path that never went through layout\n * resolution.\n *\n * `isFrameworkDeveloper` still merges the stored flag with the capability\n * derived from the resolved homes, because that signal is pure metadata and\n * not a path that participates in file-system resolution.\n */\n private static buildEffectivePreferences(\n storedPreferences: WildoPreferences | null,\n resolvedHomes: CliContext['resolvedHomes'],\n ): WildoPreferences | null {\n if (!storedPreferences && !resolvedHomes.framework.repositoryRoot) {\n return null;\n }\n\n return {\n frameworkPath: resolvedHomes.framework.repositoryRoot ?? '',\n isFrameworkDeveloper:\n storedPreferences?.isFrameworkDeveloper === true ||\n resolvedHomes.capabilities.hasFrameworkDeveloperCapabilities,\n // Pure metadata, like `isFrameworkDeveloper` above: answers a command would otherwise ask for,\n // participating in no path resolution, so they pass through as stored.\n ...(storedPreferences?.defaults ? { defaults: storedPreferences.defaults } : {}),\n };\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"context-manager.service.js","sourceRoot":"","sources":["../../../../../../src/services/context/context-manager.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,6BAA6B,EAC7B,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAG3F,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAC;AACnG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAC;AACjG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B,EAAE,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAE,EAAE;gBAC3F,CAAC,CAAC,EAAE,CAAC;YACP,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,aAAa,CAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACpF,CAAC;QACF,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACK,MAAM,CAAC,yBAAyB,CACtC,iBAA0C,EAC1C,aAA0C;QAE1C,IAAI,CAAC,iBAAiB,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC;YAClE,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO;YACL,aAAa,EAAE,aAAa,CAAC,SAAS,CAAC,cAAc,IAAI,EAAE;YAC3D,oBAAoB,EAClB,iBAAiB,EAAE,oBAAoB,KAAK,IAAI;gBAChD,aAAa,CAAC,YAAY,CAAC,iCAAiC;YAC9D,+FAA+F;YAC/F,uEAAuE;YACvE,GAAG,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,iBAAiB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACjF,CAAC;IACJ,CAAC","sourcesContent":["import { existsSync, readFileSync } from 'fs';\nimport { join } from 'path';\nimport {\n buildResolvedHomes,\n DatabaseEngine,\n resolveMachinePreferencesPath,\n resolveWorkspaceScope,\n WildoDeploymentRuntime,\n} from '@wildo-ai/platform-config-lib';\nimport { LocalDefaultsMode } from '~wildo-cli/services/credentials/local-defaults.service';\nimport type { CliContext, WildoMachineDefaults, WildoPreferences } from '~wildo-cli/services/context/context.schemas';\nimport type { PlatformRuntimeContext } from '~wildo-cli/services/deployment/docker/docker.schemas';\nimport { FILE_NAMES } from '~wildo-cli/infrastructure/io/io.schemas';\nimport { EnvironmentRegistry } from '~wildo-cli/services/environment/environment-registry.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { InfrastructureHost } from '~wildo-cli/services/environment/infrastructure-host.service';\nimport { resolveInstalledFrameworkAssetsRoot } from '~wildo-cli/services/framework/installed-framework-assets.service';\n\nexport class ContextManager {\n private static instance: CliContext | null = null;\n private static detectionCwd: string | null = null;\n\n /**\n * Resolve (and cache) the trusted CLI context for the given working directory.\n *\n * The singleton shape means the first `detect(cwd)` call wins; subsequent calls\n * with a matching `cwd` (or without one) just reuse the cache. If a caller\n * passes a `cwd` that differs from the one that built the cached context,\n * we throw instead of silently returning a context for a different root —\n * the caller must `reset()` first to opt into re-detection.\n */\n static detect(cwd: string = process.cwd()): CliContext {\n if (ContextManager.instance) {\n ContextManager.assertCachedCwdMatches(cwd);\n ContextManager.syncEnvironmentRegistryResolver();\n return ContextManager.instance;\n }\n\n const workspaceScope = resolveWorkspaceScope(cwd);\n const storedPreferences = ContextManager.loadPreferences();\n const resolvedHomes = buildResolvedHomes(workspaceScope, {\n /*\n * Ranking, lowest last: a checkout found by walking up from `cwd` (inside\n * `buildResolvedHomes`), then the operator's stored `frameworkPath`, then the\n * framework-assets root the RUNNING CLI lives in — the monorepo when the CLI runs from a\n * checkout, the published package when it was installed from npm. The last rung is what\n * lets an application creator with no checkout scaffold, render compose and pin the\n * companion; it grants no framework-developer capability (see\n * `installed-framework-assets.service.ts`).\n */\n frameworkPathHint: ContextManager.storedFrameworkPath(storedPreferences) ?? resolveInstalledFrameworkAssetsRoot(),\n isFrameworkDeveloperHint: storedPreferences?.isFrameworkDeveloper ?? false,\n });\n const preferences = ContextManager.buildEffectivePreferences(storedPreferences, resolvedHomes);\n\n ContextManager.instance = {\n resolvedHomes,\n workspaceScope: resolvedHomes.workspaceScope,\n scope: resolvedHomes.scope,\n preferences,\n hasFrameworkWorkspace: resolvedHomes.capabilities.hasFrameworkWorkspace,\n };\n ContextManager.detectionCwd = cwd;\n ContextManager.syncEnvironmentRegistryResolver();\n\n return ContextManager.instance;\n }\n\n /**\n * A stored `frameworkPath` counts only when it names something. `loadPreferences` coerces an\n * absent key to `\"\"` — and `\"\" ?? fallback` keeps the empty string, so an installer-written\n * preferences file (which always exists in app-creator mode and carries no `frameworkPath`)\n * silently disabled the installed-assets fallback: measured 2026-09-05 on the first real\n * install from get.wildo.ai, `wildo init` refused with \"no framework-assets root resolved\"\n * while the templates sat beside the CLI. Blank means absent.\n */\n private static storedFrameworkPath(preferences: WildoPreferences | null): string | null {\n const value = preferences?.frameworkPath?.trim();\n return value ? value : null;\n }\n\n private static assertCachedCwdMatches(cwd: string): void {\n if (ContextManager.detectionCwd === null || ContextManager.detectionCwd === cwd) {\n return;\n }\n\n throw new Error(\n `ContextManager.detect() was called with cwd \"${cwd}\" but a context is already cached `\n + `for cwd \"${ContextManager.detectionCwd}\". Call ContextManager.reset() before re-detecting `\n + 'from a different working directory.',\n );\n }\n\n static get(): CliContext {\n if (!ContextManager.instance) {\n throw new Error('ContextManager.detect() must be called before ContextManager.get()');\n }\n return ContextManager.instance;\n }\n\n static reset(): void {\n ContextManager.instance = null;\n ContextManager.detectionCwd = null;\n EnvironmentRegistry.setSaasRootResolver(null);\n }\n\n /**\n * Return the trusted resolved-homes snapshot for consumers that already know\n * `ContextManager.detect()` has run during CLI bootstrap.\n *\n * This intentionally throws if the singleton is cold. Earlier revisions\n * lazily called `detect(process.cwd())`, but that silently re-ran workspace\n * discovery against whatever the current working directory happened to be —\n * contradicting the Phase 5 contract that every resolved-homes read must\n * come from the single snapshot produced at bootstrap. Callers that\n * legitimately need a snapshot before bootstrap should call `detect(cwd)`\n * explicitly with an intentional working directory.\n */\n static getResolvedHomes(): CliContext['resolvedHomes'] {\n if (!ContextManager.instance) {\n throw new Error(\n 'ContextManager.getResolvedHomes() was called before ContextManager.detect(). '\n + 'Every CLI command path must route through the bootstrap detection so the '\n + 'resolved-homes snapshot is built once from an intentional cwd — never '\n + 'silently derived from process.cwd() at read time.',\n );\n }\n return ContextManager.instance.resolvedHomes;\n }\n\n static resolveInfraContext(envName: string): PlatformRuntimeContext {\n /*\n * A HOSTED environment's containers are described by its HOST's compose file — the only one that\n * names the shared project's real data directories. Every read through this context (`ps`, readiness,\n * status) therefore looks at the host's render; mutations are refused at their own guards.\n */\n const host = InfrastructureHost.resolveByName(envName);\n const composeDir = host !== null\n ? InfrastructureHost.resolveHostDockerComposeDir(host, envName)\n : EnvironmentUtils.resolveDockerComposeDir(envName);\n const composeFile = join(composeDir, FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM);\n const envFile = join(composeDir, FILE_NAMES.ENV_WILDO_PLATFORM);\n\n if (host !== null && !existsSync(composeFile)) {\n throw new Error(\n `Environment '${envName}' runs on the infrastructure of ${host.applicationRoot}, which has not rendered its Docker Compose `\n + `project yet (expected ${composeFile}). Start the host first: cd ${host.applicationRoot} && wildo local dev`,\n );\n }\n\n if (!existsSync(composeFile)) {\n throw new Error(\n `Docker Compose file not found at ${composeFile}\\n`\n + `Run 'wildo local up' to bootstrap the local Docker Compose runtime artifacts (config.json, the docker-compose file, and .env.wildo-platform are written automatically from the authored wildo.infra.<env>.config.ts).\\n`\n + `If you only want to regenerate the docker-compose manifest after editing the authored infra config, run: wildo config sync --domain manifest`,\n );\n }\n\n return { composeDir, composeFile, envFile };\n }\n\n /**\n * Keep the EnvironmentRegistry resolver aligned with the cached CLI context.\n *\n * Some test/setup flows reset the registry independently from the ContextManager\n * singleton. Re-install the resolver whenever callers reuse the cached context\n * so Phase 5's removal of cwd-based fallback discovery does not leave later\n * environment-path reads without a targeted app root.\n */\n private static syncEnvironmentRegistryResolver(): void {\n EnvironmentRegistry.setSaasRootResolver(\n () => ContextManager.instance?.resolvedHomes.app.declarationRoot ?? null,\n );\n }\n\n private static loadPreferences(\n preferencesPath: string = resolveMachinePreferencesPath(),\n ): WildoPreferences | null {\n try {\n if (!existsSync(preferencesPath)) return null;\n const raw = JSON.parse(readFileSync(preferencesPath, 'utf8'));\n const defaults = ContextManager.readMachineDefaults(raw.defaults);\n return {\n frameworkPath: raw.frameworkPath ?? '',\n isFrameworkDeveloper: raw.isFrameworkDeveloper === true,\n ...(defaults === null ? {} : { defaults }),\n };\n } catch {\n return null;\n }\n }\n\n /**\n * Read the machine-defaults block, DROPPING any member that is not a declared value.\n *\n * This file is hand-edited, so a typo is the expected failure rather than an exotic one. A\n * mistyped closed-vocabulary member must not survive as a plausible string: `\"database\":\n * \"postgres\"` (for `postgresql`) would otherwise be carried to the point where a scaffold is\n * authored against a store nobody selected, and the application would be wrong in a way no\n * message explains. Dropping it means the command ASKS, which is the behaviour the operator had\n * before they wrote the file and is always safe.\n *\n * Free-text members (the administrator identity) are taken as given — there is no vocabulary to\n * check them against, and a wrong name is visible to the person who typed it.\n *\n * PUBLIC so `wildo prefs set` can report what a LATER command will load rather than what this\n * process loaded at startup — the two differ precisely after a write, which is the one moment the\n * report is read. Sharing the function rather than re-implementing the check is what keeps the\n * report's own claim (\"an unrecognized value is dropped on read\") true of the loader it describes.\n */\n static readMachineDefaults(raw: unknown): WildoMachineDefaults | null {\n if (typeof raw !== 'object' || raw === null) return null;\n const source = raw as Record<string, unknown>;\n const text = (key: string): string | undefined => {\n const value = source[key];\n return typeof value === 'string' && value.trim().length > 0 ? value.trim() : undefined;\n };\n const member = <T extends string>(key: string, vocabulary: readonly T[]): T | undefined => {\n const value = source[key];\n return typeof value === 'string' && (vocabulary as readonly string[]).includes(value)\n ? value as T\n : undefined;\n };\n\n const defaults: WildoMachineDefaults = {\n ...(text('adminEmail') !== undefined ? { adminEmail: text('adminEmail')! } : {}),\n ...(text('adminFirstName') !== undefined ? { adminFirstName: text('adminFirstName')! } : {}),\n ...(text('adminLastName') !== undefined ? { adminLastName: text('adminLastName')! } : {}),\n ...(member('database', Object.values(DatabaseEngine)) !== undefined\n ? { database: member('database', Object.values(DatabaseEngine))! }\n : {}),\n ...(member('runtime', Object.values(WildoDeploymentRuntime)) !== undefined\n ? { runtime: member('runtime', Object.values(WildoDeploymentRuntime))! }\n : {}),\n ...(member('localDefaults', Object.values(LocalDefaultsMode)) !== undefined\n ? { localDefaults: member('localDefaults', Object.values(LocalDefaultsMode))! }\n : {}),\n ...(member('providerKeyDefaults', Object.values(LocalDefaultsMode)) !== undefined\n ? { providerKeyDefaults: member('providerKeyDefaults', Object.values(LocalDefaultsMode))! }\n : {}),\n ...(text('codingAgent') !== undefined ? { codingAgent: text('codingAgent')! } : {}),\n };\n return Object.keys(defaults).length === 0 ? null : defaults;\n }\n\n /**\n * Build the effective preferences exposed on `ctx.cliContext.preferences`.\n *\n * `frameworkPath` is derived SOLELY from the resolved-homes snapshot. Earlier\n * revisions fell back to `storedPreferences.frameworkPath` when\n * `resolvedHomes.framework.repositoryRoot` was null, but that reintroduced\n * the Phase 5 failure mode: raw preference strings leaking downstream as an\n * effective framework root, bypassing the trusted-homes resolution pipeline.\n *\n * `storedPreferences.frameworkPath` is STILL consulted by `detect()` — but\n * only as a hint (`frameworkPathHint`) that feeds into `buildResolvedHomes`,\n * where it is validated and layout-resolved before surfacing. If the hint\n * does not resolve to a real framework root, `repositoryRoot` stays null and\n * we emit an empty string here so callers fail loudly instead of silently\n * receiving a stored-preferences path that never went through layout\n * resolution.\n *\n * `isFrameworkDeveloper` still merges the stored flag with the capability\n * derived from the resolved homes, because that signal is pure metadata and\n * not a path that participates in file-system resolution.\n */\n private static buildEffectivePreferences(\n storedPreferences: WildoPreferences | null,\n resolvedHomes: CliContext['resolvedHomes'],\n ): WildoPreferences | null {\n if (!storedPreferences && !resolvedHomes.framework.repositoryRoot) {\n return null;\n }\n\n return {\n frameworkPath: resolvedHomes.framework.repositoryRoot ?? '',\n isFrameworkDeveloper:\n storedPreferences?.isFrameworkDeveloper === true ||\n resolvedHomes.capabilities.hasFrameworkDeveloperCapabilities,\n // Pure metadata, like `isFrameworkDeveloper` above: answers a command would otherwise ask for,\n // participating in no path resolution, so they pass through as stored.\n ...(storedPreferences?.defaults ? { defaults: storedPreferences.defaults } : {}),\n };\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"context.schemas.d.ts","sourceRoot":"","sources":["../../../../../../src/services/context/context.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,sBAAsB,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACjJ,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAMhG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,WAAW,oBAAoB;IACnC,2FAA2F;IAC3F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,uEAAuE;IACvE,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,wGAAwG;IACxG,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,iBAAiB,CAAC;IACxC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CACjC;AAOD,MAAM,WAAW,UAAU;IACzB,0DAA0D;IAC1D,aAAa,EAAE,aAAa,CAAC;IAC7B,wDAAwD;IACxD,cAAc,EAAE,oBAAoB,CAAC;IACrC,+DAA+D;IAC/D,KAAK,EAAE,cAAc,CAAC;IAEtB,2EAA2E;IAC3E,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAErC;;;;;;;;;;;;;OAaG;IACH,qBAAqB,EAAE,OAAO,CAAC;CAChC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.schemas.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"context.schemas.js","sourceRoot":"","sources":["../../../../../../src/services/context/context.schemas.ts"],"names":[],"mappings":"","sourcesContent":["import type { DatabaseEngine, ResolvedHomes, WildoDeploymentRuntime, WorkspaceScope, WorkspaceScopeResult } from '@wildo-ai/platform-config-lib';\nimport type { LocalDefaultsMode } from '~wildo-cli/services/credentials/local-defaults.service';\n\n// ============================================================================\n// Preferences (global user config — <home>/.wildo/preferences.json)\n// ============================================================================\n\n/**\n * What this MACHINE answers when a command would otherwise ask.\n *\n * ## Why these belong on the machine and not in a flag\n *\n * Every field here has the same property: its answer is the same for every application created on\n * this machine, and typing it again is the operator restating something the machine already knows.\n * `wildo init` asked six questions whose answers never varied between two applications created an\n * hour apart, so the command a creator actually ran was seven lines long and had to be kept\n * somewhere to be re-run — which is a preferences file with no reader.\n *\n * Three kinds sit here deliberately, because all three answer that one test:\n *\n * - **identity** (`adminEmail`, `adminFirstName`, `adminLastName`) — who the operator IS. Note this\n * is the per-application platform administrator, NOT shared credential material: it is minted per\n * application precisely so two applications do not share one operator door. What the machine knows\n * is the person, not the secret.\n * - **posture** (`localDefaults`, `providerKeyDefaults`) — how this machine treats an application\n * created beside a platform that is already running, and whether it reuses the captured provider keys.\n * - **house default** (`database`, `runtime`) — a per-application choice that in practice is made\n * once and then repeated.\n *\n * ## Resolution, and why a FLAG still wins\n *\n * `flag → answer file → preference → interactive prompt → declared default`. A preference means\n * \"stop asking me\", never \"decide for me\": an explicit flag overrides it on any single run, so one\n * application can differ without the preference being edited. And nothing here is a secret — a value\n * a command must not print is credential material and belongs in `local-defaults.json` beside it,\n * which is written `0600` and holds values rather than answers.\n */\nexport interface WildoMachineDefaults {\n /** Platform-administrator identity for a newly created application's local environment. */\n adminEmail?: string;\n adminFirstName?: string;\n adminLastName?: string;\n /** The APPLICATION's own store for a newly created application. */\n database?: DatabaseEngine;\n /** The infrastructure runtime a newly created application declares. */\n runtime?: WildoDeploymentRuntime;\n /** How the SHARED platform credentials in `~/.wildo/local-defaults.json` are treated when it exists. */\n localDefaults?: LocalDefaultsMode;\n /**\n * How the PROVIDER KEYS in `~/.wildo/local-defaults.json` are treated — a separate decision from\n * {@link localDefaults}, so an application that owns its platform still gets them.\n */\n providerKeyDefaults?: LocalDefaultsMode;\n /**\n * The coding agent this machine builds applications with — a provider ref declaring an ACP agent\n * (`anthropic`, `openai`, `opencode`). A HOST decision, as the companion treats it: its login lives\n * on this machine. `WILDO_CODING_AGENT` in the environment overrides it. Stored as text and\n * validated where it is resolved (`resolveSelectedCodingAgent`), so reading preferences never loads\n * the provider registry.\n */\n codingAgent?: string;\n}\n\nexport interface WildoPreferences {\n frameworkPath: string;\n isFrameworkDeveloper: boolean;\n /** {@link WildoMachineDefaults} — absent when this machine has stated none. */\n defaults?: WildoMachineDefaults;\n}\n\n\n// ============================================================================\n// CLI Context (runtime detection)\n// ============================================================================\n\nexport interface CliContext {\n /** Trusted path/home snapshot resolved once at startup */\n resolvedHomes: ResolvedHomes;\n /** Resolved workspace scope from platform-config-lib */\n workspaceScope: WorkspaceScopeResult;\n /** Most specific scope (shorthand for workspaceScope.scope) */\n scope: WorkspaceScope;\n\n /** Effective CLI preferences from machine config or framework inference */\n preferences: WildoPreferences | null;\n\n /**\n * True when the caller's cwd is inside a framework workspace that was\n * discovered by walking up for `wildo-framework.info.json`.\n *\n * This is a convenience mirror of\n * `resolvedHomes.framework.isInFrameworkWorkspace`, narrowed for the\n * CLI category-gating code path so command registry guards do not\n * need to reach through the full resolved-homes snapshot.\n *\n * It is NOT equivalent to \"framework assets are reachable\" — that\n * signal lives on `resolvedHomes.capabilities.canUseFrameworkAssets`,\n * which is also true for SaaS apps that reference a framework via\n * `frameworkPathHint` in machine preferences.\n */\n hasFrameworkWorkspace: boolean;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine-preferences.writer.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"machine-preferences.writer.d.ts","sourceRoot":"","sources":["../../../../../../src/services/context/machine-preferences.writer.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,EAAE,IAAI,GAAE,MAAwC,GAAG,IAAI,CAW/J"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine-preferences.writer.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"machine-preferences.writer.js","sourceRoot":"","sources":["../../../../../../src/services/context/machine-preferences.writer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAE9E;;;;;;;;;GASG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAoE,EAAE,OAAe,6BAA6B,EAAE;IACvJ,MAAM,QAAQ,GAA4B,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACzG,MAAM,QAAQ,GAA4B,OAAO,QAAQ,CAAC,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,QAAQ,KAAK,IAAI;QAC3G,CAAC,CAAC,EAAE,GAAI,QAAQ,CAAC,QAAoC,EAAE;QACvD,CAAC,CAAC,EAAE,CAAC;IACP,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC;QAAE,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACpF,KAAK,MAAM,GAAG,IAAI,OAAO,CAAC,KAAK,IAAI,EAAE;QAAE,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC5D,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAC,QAAQ,CAAC;;QAC5D,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAClC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9C,aAAa,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACxE,CAAC","sourcesContent":["import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';\nimport { dirname } from 'path';\n\nimport { resolveMachinePreferencesPath } from '@wildo-ai/platform-config-lib';\n\n/**\n * Write members of `preferences.json` → `defaults`, keeping everything else.\n *\n * READ-MODIFY-WRITE the whole document, never replace it: `frameworkPath` and `isFrameworkDeveloper`\n * are written by the installer and are what every command resolves its framework root through, so\n * overwriting them to record one answer would break the CLI for every workspace on this machine.\n *\n * One writer for `wildo prefs set` and for the answers `wildo init`/`setup` record (the coding agent),\n * so the two cannot disagree about the document's shape.\n */\nexport function writeMachineDefaults(changes: { set?: Record<string, string>; unset?: readonly string[] }, path: string = resolveMachinePreferencesPath()): void {\n const document: Record<string, unknown> = existsSync(path) ? JSON.parse(readFileSync(path, 'utf8')) : {};\n const defaults: Record<string, unknown> = typeof document.defaults === 'object' && document.defaults !== null\n ? { ...(document.defaults as Record<string, unknown>) }\n : {};\n for (const [key, value] of Object.entries(changes.set ?? {})) defaults[key] = value;\n for (const key of changes.unset ?? []) delete defaults[key];\n if (Object.keys(defaults).length === 0) delete document.defaults;\n else document.defaults = defaults;\n mkdirSync(dirname(path), { recursive: true });\n writeFileSync(path, `${JSON.stringify(document, null, 2)}\\n`, 'utf8');\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-manager.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"state-manager.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/context/state-manager.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AASH,qBAAa,YAAY;IACvB,OAAO,CAAC,UAAU,CAAuB;IACzC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA0B;IAE3D;;;;OAIG;gBACS,QAAQ,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC;IAI7C;;OAEG;IACH,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,eAAe;IAOvB;;OAEG;IACH,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAKpC;;OAEG;IACH,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI;IAS9B;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAK5B;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAOzB;;OAEG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,GAAE,MAAoB,GAAG,CAAC,GAAG,SAAS;IAKnE;;OAEG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,GAAE,MAAoB,GAAG,IAAI;CAKrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-manager.service.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"state-manager.service.js","sourceRoot":"","sources":["../../../../../../src/services/context/state-manager.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AACpF,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAE/E,MAAM,OAAO,YAAY;IACf,UAAU,GAAkB,IAAI,CAAC;IACxB,gBAAgB,CAA0B;IAE3D;;;;OAIG;IACH,YAAY,QAAiC;QAC3C,IAAI,CAAC,gBAAgB,GAAG,QAAQ,CAAC;IACnC,CAAC;IAED;;OAEG;IACK,YAAY;QAClB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,IAAI,CAAC,UAAU,GAAG,OAAO,IAAI,CAAC,gBAAgB,KAAK,UAAU;gBAC3D,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE;gBACzB,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC;YAC1B,IAAI,CAAC,eAAe,EAAE,CAAC;QACzB,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAEO,eAAe;QACrB,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC;QAC5B,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5B,SAAS,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;IAED;;OAEG;IACH,IAAI,CAAI,GAAW,EAAE,KAAQ;QAC3B,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,E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GAAG,IAAI,CAAC,IAAI,CAA0B,SAAS,CAAC,IAAI,EAAE,CAAC;QAClE,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC9B,CAAC;CACF","sourcesContent":["/**\n * StateManager\n *\n * Manages typed states stored in a configurable directory.\n *\n * DEFERRED: Not wired yet. When used, prefer scoped runtime storage\n * (`.wildo-saas`, `.wildo-framework`) instead of reviving a machine-global\n * state directory for project execution.\n */\n\nimport { mkdirSync, writeFileSync, readFileSync, existsSync, unlinkSync } from 'fs';\nimport { join } from 'path';\n\n// ============================================================================\n// Implementation\n// ============================================================================\n\nexport class StateManager {\n private _statesDir: string | null = null;\n private readonly stateDirResolver: string | (() => string);\n\n /**\n * @param stateDir The directory to store state files in.\n * Can be a string path or a lazy resolver function (useful when\n * the directory depends on a targeted app root that isn't known at construction time).\n */\n constructor(stateDir: string | (() => string)) {\n this.stateDirResolver = stateDir;\n }\n\n /**\n * Get states directory (lazy initialization)\n */\n private getStatesDir(): string {\n if (!this._statesDir) {\n this._statesDir = typeof this.stateDirResolver === 'function'\n ? this.stateDirResolver()\n : this.stateDirResolver;\n this.ensureStatesDir();\n }\n return this._statesDir;\n }\n\n private ensureStatesDir(): void {\n const dir = this._statesDir;\n if (dir && !existsSync(dir)) {\n mkdirSync(dir, { recursive: true });\n }\n }\n\n /**\n * Save state\n */\n save<T>(key: string, state: T): void {\n const filePath = join(this.getStatesDir(), `${key}.json`);\n writeFileSync(filePath, JSON.stringify(state, null, 2), 'utf8');\n }\n\n /**\n * Load state\n */\n load<T>(key: string): T | null {\n const filePath = join(this.getStatesDir(), `${key}.json`);\n if (!existsSync(filePath)) {\n return null;\n }\n const content = readFileSync(filePath, 'utf8');\n return JSON.parse(content) as T;\n }\n\n /**\n * Check if state exists\n */\n exists(key: string): boolean {\n const filePath = join(this.getStatesDir(), `${key}.json`);\n return existsSync(filePath);\n }\n\n /**\n * Delete state\n */\n delete(key: string): void {\n const filePath = join(this.getStatesDir(), `${key}.json`);\n if (existsSync(filePath)) {\n unlinkSync(filePath);\n }\n }\n\n /**\n * Get a single value from a named state file (defaults to 'cli-state')\n */\n get<T>(key: string, stateFile: string = 'cli-state'): T | undefined {\n const state = this.load<Record<string, unknown>>(stateFile);\n return state?.[key] as T | undefined;\n }\n\n /**\n * Set a single value in a named state file (defaults to 'cli-state')\n */\n set<T>(key: string, value: T, stateFile: string = 'cli-state'): void {\n const state = this.load<Record<string, unknown>>(stateFile) || {};\n state[key] = value;\n this.save(stateFile, state);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-secret-owners.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-secret-owners.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/credentials/application-secret-owners.service.ts"],"names":[],"mappings":"AAuBA,OAAO,EASL,KAAK,kBAAkB,EAExB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAgD,KAAK,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAQxH,yEAAyE;AACzE,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,CAAC,EAAE;QAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,4BAA4B,CAAA;KAAE,CAAC;IACvE,+GAA+G;IAC/G,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACjD;AAED,iFAAiF;AACjF,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,SAAS,kBAAkB,EAAE,GAAG,IAAI,CAAC;IAC3D;;;;OAIG;IACH,QAAQ,CAAC,YAAY,EAAE,SAAS,kBAAkB,EAAE,GAAG,IAAI,CAAC;CAC7D;AA0DD;;;;;;;GAOG;AACH,wBAAsB,oCAAoC,CAAC,KAAK,EAAE;IAChE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,mCAAmC,CAAC,CAAC,CAAC;CAClF,GAAG,OAAO,CAAC;IAAE,QAAQ,CAAC,OAAO,EAAE,6BAA6B,EAAE,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CA6FhG;AAwBD;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,QAAQ,EAAE,MAAM,GAAG;IAAE,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE,CA0BpJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-secret-owners.service.js","sourceRoot":"","sources":["../../../../src/services/credentials/application-secret-owners.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,wCAAwC,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EACL,0CAA0C,EAC1C,iDAAiD,EACjD,oCAAoC,EACpC,qCAAqC,EACrC,kCAAkC,EAClC,kCAAkC,EAClC,6BAA6B,EAC7B,kCAAkC,GAGnC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,4CAA4C,EAAqC,MAAM,uBAAuB,CAAC;AAExH,OAAO,EACL,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;QAC5D,YAAY,EAAE,sBAAsB;QACpC,cAAc,EAAE,wBAAwB;QACxC,SAAS,EAAE,OAAO;KACnB,CAAC,CAAC;IACH,IAAI,SAAS,IAAI,GAAG,EAAE,CAAC;QACrB,UAAU,CAAC,IAAI,CAAC,mEAAmE,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC;QAC3I,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IAC5C,CAAC;IACD,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAA+B,CAAC;IAC9E,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AACtC,CAAC","sourcesContent":["/**\n * What owns the application's NON-provider secrets, read the way the backend reads it (#1637).\n *\n * `wildo secrets` lists what an application needs. Provider secrets come from the providers it scopes; the\n * other two kinds come from things only the backend fully knows:\n *\n * - a SYSTEM OF RECORD's credential slots depend on the credential kind, which the VENDOR FACET decides\n * when the declaration names none (`chooseSystemOfRecordCredentialKind`), and on the facet's offer,\n * which makes some optional slots required (`resolveSystemOfRecordInstanceSlots`). The facets are the\n * modules the backend's provider-runtime artifact names, resolved from the backend package that depends on them;\n * - an INBOUND ENDPOINT exists only as a handler the backend's modules declare in code, so it is read from\n * the BUILT backend, in its own resolution universe — the step `wildo db diff` takes to plan a schema.\n *\n * Both answer through the same shared decisions the backend runs at boot, so a listing cannot ask for a\n * secret the backend would not read, or miss one it refuses to start without. What cannot be read is\n * NAMED in `incomplete`, never silently left out: a listing that is partial must say so.\n */\nimport { existsSync, readFileSync } from 'fs';\nimport { createRequire } from 'module';\nimport { join } from 'path';\nimport { pathToFileURL } from 'url';\n\nimport { PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS } from '@wildo-ai/platform-config-lib';\nimport {\n SYSTEM_OF_RECORD_CREDENTIAL_KIND_CONTRACTS,\n SYSTEM_OF_RECORD_FACET_AUGMENTATION_RECORD_EXPORT,\n SYSTEM_OF_RECORD_FACET_RECORD_EXPORT,\n applySystemOfRecordFacetAugmentations,\n chooseSystemOfRecordCredentialKind,\n packageOfSystemOfRecordFacetModule,\n selectSystemOfRecordBaseFacet,\n resolveSystemOfRecordInstanceSlots,\n type SystemOfRecordSlot,\n type SystemOfRecordVendorFacet,\n} from '@wildo-ai/saas-models/external-data';\nimport { SYSTEM_OF_RECORD_FACET_MODULE_NOT_DISCOVERED, type SystemOfRecordCredentialKind } from '@wildo-ai/saas-models';\n\nimport {\n MODULES_REGISTRY_RELATIVE_PATH,\n assessCompiledModelCurrency,\n runInApplicationBackendWorkspace,\n} from '~wildo-cli/commands/db/db-schema-plan.utils';\n\n/** The part of an authored `systemsOfRecord` entry this module reads. */\nexport interface SystemOfRecordDeclarationForSecrets {\n readonly vendor: string;\n readonly credential?: { readonly kind?: SystemOfRecordCredentialKind };\n /** The packages whose facet augmentation the instance opted into (#1675): they may offer the kind it needs. */\n readonly facetAugmentations?: readonly string[];\n}\n\n/** One declared system of record, with the secret slots its credential needs. */\nexport interface DeclaredSystemOfRecordSecrets {\n readonly name: string;\n readonly vendor: string;\n /**\n * The credential's secret slots with the facet's required-ness applied, or `null` when they could not be\n * resolved — no facet reachable and no kind declared, or a kind the backend would refuse. `incomplete`\n * then says why.\n */\n readonly secretSlots: readonly SystemOfRecordSlot[] | null;\n /**\n * The instance's ADDRESS slots (the vendor's and the kind's), or `null` when the facet could not be read.\n * Carried because a key in `systemsOfRecordEnv` named after an address slot is not unused: the env builder\n * writes the secrets after the environment's address block, so it OVERRIDES the address the backend reads.\n */\n readonly addressSlots: readonly SystemOfRecordSlot[] | null;\n}\n\n/** The application package whose resolution universe the backend itself runs in. */\nconst BACKEND_PACKAGE_DIRECTORY = 'backend-api';\n\n/**\n * Every facet record the backend would consult, in its authority order, keyed by module specifier.\n *\n * This repeats the order of the backend's `createSystemOfRecordFacetResolver` rather than calling it, because\n * `./systems-of-record/*` of the backend library is deliberately unpublished (#1738). It is equivalent today:\n * boot passes that resolver only `facetModules`, and the engine tier of facets is empty and asserted empty.\n * One difference is stated rather than hidden: `createRequire` resolves with the `require` export condition\n * where the backend imports with `import`, so a facet subpath declaring only an `import` condition would be\n * reported here under `incomplete` rather than read (the catalogue's subpath declares `default`). A second: this\n * resolves from `backend-api`, the package discovery walked and whose dependency put the module in the artifact,\n * where the backend's bare `import()` resolves from the engine library's own install location, which pnpm's hoisting\n * normally lets reach the same package. Both read ONLY the recorded modules (#1675), so neither can import a package\n * the application did not admit to discovery. A module\n * that will not import is recorded as a note rather than thrown: the backend's own resolver treats it as\n * describing no vendor, and the refusal that matters is \"this vendor has no facet\", said per instance.\n */\nasync function loadFacetRecords(saasRoot: string, specifiers: readonly string[], incomplete: string[]): Promise<Array<FacetModuleRecords>> {\n const records: FacetModuleRecords[] = [];\n for (const specifier of specifiers) {\n const loaded = await importFacetModule(saasRoot, specifier);\n if ('unreadable' in loaded) incomplete.push(`The system-of-record facet module ${specifier} could not be loaded (${loaded.unreadable}).`);\n else records.push(loaded);\n }\n return records;\n}\n\n/** One facet module imported from where the backend imports it, or why it could not be. */\nasync function importFacetModule(saasRoot: string, specifier: string): Promise<FacetModuleRecords | { readonly unreadable: string }> {\n const requireFromBackend = createRequire(join(saasRoot, BACKEND_PACKAGE_DIRECTORY, 'package.json'));\n const asRecord = (value: unknown): Readonly<Record<string, unknown>> | undefined =>\n (typeof value === 'object' && value !== null ? (value as Record<string, unknown>) : undefined);\n try {\n const namespace = await import(pathToFileURL(requireFromBackend.resolve(specifier)).href) as Record<string, unknown>;\n return {\n specifier,\n facets: asRecord(namespace[SYSTEM_OF_RECORD_FACET_RECORD_EXPORT]),\n augmentations: asRecord(namespace[SYSTEM_OF_RECORD_FACET_AUGMENTATION_RECORD_EXPORT]),\n };\n } catch (error) {\n return { unreadable: (error as Error).message.split('\\n')[0]! };\n }\n}\n\n/** One facet module's two records — its facets and its facet augmentations (#1675). */\ninterface FacetModuleRecords {\n readonly specifier: string;\n readonly facets: Readonly<Record<string, unknown>> | undefined;\n readonly augmentations: Readonly<Record<string, unknown>> | undefined;\n}\n\n/** The backend would refuse the instance's facet (#1675): two base facets, or augmentations it cannot apply. Reported, never listed. */\nclass FacetRefusedError extends Error {}\n\n/**\n * The secret slots of every system of record the application declares.\n *\n * The facet modules come from the backend's provider-runtime artifact (`systemOfRecordFacetModules`), which\n * is exactly the list the backend resolves facets from at boot. Without it, an instance that DECLARES its\n * credential kind still gets that kind's contract slots (only the offer's required-ness is unknown); one that\n * leaves the kind to the facet cannot be listed, and says so.\n */\nexport async function resolveDeclaredSystemOfRecordSecrets(input: {\n readonly saasRoot: string;\n readonly declared: Readonly<Record<string, SystemOfRecordDeclarationForSecrets>>;\n}): Promise<{ readonly systems: DeclaredSystemOfRecordSecrets[]; readonly incomplete: string[] }> {\n const incomplete: string[] = [];\n const entries = Object.entries(input.declared);\n if (entries.length === 0) return { systems: [], incomplete };\n\n const artifactPath = join(input.saasRoot, PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS.backend);\n let facetModules: readonly string[] | null = null;\n try {\n const artifact = JSON.parse(readFileSync(artifactPath, 'utf-8')) as { systemOfRecordFacetModules?: unknown };\n if (Array.isArray(artifact.systemOfRecordFacetModules)) facetModules = artifact.systemOfRecordFacetModules.filter((entry): entry is string => typeof entry === 'string');\n } catch {\n // Absent or unreadable: handled below, per instance, with the remedy.\n }\n if (facetModules === null) {\n incomplete.push(`The backend's provider-runtime artifact (${PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS.backend}) names no system-of-record facet modules; run \\`wildo config sync --domain env-files\\`.`);\n }\n const records = facetModules === null ? [] : await loadFacetRecords(input.saasRoot, facetModules, incomplete);\n\n /*\n * The backend's resolution, reproduced through the SAME shared decisions (#1675): ONE base facet among the recorded\n * modules (two refuse, naming both), then the augmentations the instance opted into folded in by the one shared\n * merge — read only from the recorded modules, as the backend does, so a package discovery did not record is\n * reported with the backend's own sentence. A kind only an augmentation offers is listed, and a refusal the backend\n * makes is reported.\n */\n const findFacet = async (vendor: string, facetAugmentations: readonly string[] | undefined): Promise<SystemOfRecordVendorFacet | undefined> => {\n const selected = selectSystemOfRecordBaseFacet({\n vendor,\n candidates: records\n .filter((record) => record.facets?.[vendor] !== undefined)\n .map((record) => ({ source: `package ${packageOfSystemOfRecordFacetModule(record.specifier)}`, raw: record.facets![vendor] })),\n });\n if (selected === undefined) return undefined;\n if ('conflict' in selected) throw new FacetRefusedError(selected.conflict);\n if (facetAugmentations === undefined || facetAugmentations.length === 0) return selected.facet;\n const augmentations: Array<{ packageName: string; raw: unknown; unreadable?: string }> = [];\n for (const packageName of facetAugmentations) {\n const discovered = records.find((record) => packageOfSystemOfRecordFacetModule(record.specifier) === packageName);\n if (discovered !== undefined) {\n augmentations.push({ packageName, raw: discovered.augmentations?.[vendor] });\n continue;\n }\n const recorded = (facetModules ?? []).some((specifier) => packageOfSystemOfRecordFacetModule(specifier) === packageName);\n augmentations.push({\n packageName,\n raw: undefined,\n // Recorded and not loaded: the load failure is already listed above, with its error.\n unreadable: recorded ? 'its import failed (the error is listed separately)' : SYSTEM_OF_RECORD_FACET_MODULE_NOT_DISCOVERED,\n });\n }\n const result = applySystemOfRecordFacetAugmentations({ vendor, base: selected, augmentations });\n if ('refusal' in result) throw new FacetRefusedError(result.message);\n return result.facet;\n };\n\n const systems: DeclaredSystemOfRecordSecrets[] = [];\n for (const [name, declaration] of entries) {\n const declaredKind = declaration.credential?.kind;\n let facet: SystemOfRecordVendorFacet | undefined;\n let unreadable = `no facet for vendor '${declaration.vendor}' could be read`;\n let refused = false;\n try {\n facet = await findFacet(declaration.vendor, declaration.facetAugmentations);\n } catch (error) {\n // A Zod refusal's message is a JSON array of issues; one line of it is what a listing can carry.\n refused = error instanceof FacetRefusedError;\n unreadable = error instanceof FacetRefusedError\n // The backend refuses this instance at boot with the same words (#1675).\n ? `its facet is refused (${error.message})`\n : `vendor '${declaration.vendor}''s facet is malformed (${(error as Error).message.replace(/\\s+/g, ' ').slice(0, 240)})`;\n }\n if (facet === undefined) {\n if (declaredKind !== undefined) {\n // A refusal is still reported: the backend will not START this instance, whatever slots are stored for it.\n if (refused) incomplete.push(`System of record '${name}': ${unreadable}; the backend refuses to start it.`);\n // Only the offer's required-ness is unknown without the facet; the declared kind's slots are not.\n systems.push({ name, vendor: declaration.vendor, secretSlots: SYSTEM_OF_RECORD_CREDENTIAL_KIND_CONTRACTS[declaredKind].secretSlots, addressSlots: null });\n } else {\n incomplete.push(`System of record '${name}': ${unreadable}, so the credential slots it needs are not listed.`);\n systems.push({ name, vendor: declaration.vendor, secretSlots: null, addressSlots: null });\n }\n continue;\n }\n const choice = chooseSystemOfRecordCredentialKind(declaredKind, facet);\n if ('refusal' in choice) {\n incomplete.push(`System of record '${name}': the backend refuses its credential kind (${choice.refusal}; vendor '${facet.vendor}' offers ${choice.offered.join(', ')}), so its slots are not listed.`);\n systems.push({ name, vendor: declaration.vendor, secretSlots: null, addressSlots: facet.addressSlots });\n continue;\n }\n const slots = resolveSystemOfRecordInstanceSlots(facet, choice.kind);\n systems.push({ name, vendor: declaration.vendor, secretSlots: slots.secretSlots, addressSlots: slots.addressSlots });\n }\n return { systems, incomplete };\n}\n\n/**\n * The runner: build the application's initialization config and report the APPLICATION endpoints its inbound\n * handlers declare. Provider endpoints are verified by the provider's own adapter with its own secret, and a\n * channel handler has no endpoint, so neither has a secret here.\n */\nfunction buildInboundEndpointRunnerSource(): string {\n return `// GENERATED by \\`wildo secrets\\` — regenerated on every run; safe to delete.\nimport 'reflect-metadata';\nimport { pathToFileURL } from 'node:url';\nimport { writeFileSync } from 'node:fs';\nimport { InboundSourceKind } from '@wildo-ai/saas-models';\n\nconst modulesRegistry = await import(pathToFileURL(process.env.WILDO_SECRETS_MODULES_REGISTRY).href);\nconst handlers = modulesRegistry.buildApplicationInitializationConfig().inboundHandlers ?? [];\nconst endpointKeys = [...new Set(handlers\n .map((handler) => handler.source)\n .filter((source) => source?.kind === InboundSourceKind.APPLICATION_ENDPOINT)\n .map((source) => source.endpointKey))].sort();\nwriteFileSync(process.env.WILDO_SECRETS_OUTPUT, JSON.stringify({ endpointKeys }));\n`;\n}\n\n/**\n * The application inbound endpoints the backend declares, read from its BUILT modules registry — or `null`\n * when it cannot be read (not built, or the import fails), with the reason in `incomplete`.\n *\n * A stale build is still read, and says so: an endpoint added since the last compile is missing from it,\n * while every endpoint it does list is real. Refusing would hide the ones that are.\n */\nexport function readDeclaredInboundEndpointKeys(saasRoot: string): { readonly endpointKeys: readonly string[] | null; readonly incomplete: string[] } {\n const incomplete: string[] = [];\n const modulesRegistryPath = join(saasRoot, MODULES_REGISTRY_RELATIVE_PATH);\n if (!existsSync(modulesRegistryPath)) {\n incomplete.push(`${BACKEND_PACKAGE_DIRECTORY} is not built (${MODULES_REGISTRY_RELATIVE_PATH} is missing), so the inbound endpoints it declares are not listed; a secret already stored for one still is.`);\n return { endpointKeys: null, incomplete };\n }\n const currency = assessCompiledModelCurrency(saasRoot);\n if (currency.current === false) {\n incomplete.push(`${currency.stalePackage}/dist is older than its sources, so an inbound endpoint added since its last compile is not listed.`);\n }\n const run = runInApplicationBackendWorkspace({\n saasRoot,\n directoryName: '.wildo-secrets',\n runnerSource: buildInboundEndpointRunnerSource(),\n env: { WILDO_SECRETS_MODULES_REGISTRY: modulesRegistryPath },\n outputEnvKey: 'WILDO_SECRETS_OUTPUT',\n outputFileName: 'inbound-endpoints.json',\n timeoutMs: 180_000,\n });\n if ('failure' in run) {\n incomplete.push(`The inbound endpoints could not be read from the built backend: ${run.failure.trim().split('\\n').at(-1) ?? 'no output'}`);\n return { endpointKeys: null, incomplete };\n }\n const { endpointKeys } = JSON.parse(run.output) as { endpointKeys: string[] };\n return { endpointKeys, incomplete };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"application-secret-owners.service.js","sourceRoot":"","sources":["../../../../../../src/services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U,CAAC,mBAAmB,CAAC,EAAE,CAAC;QACrC,UAAU,CAAC,IAAI,CAAC,GAAG,yBAAyB,kBAAkB,8BAA8B,8GAA8G,CAAC,CAAC;QAC5M,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IAC5C,CAAC;IACD,MAAM,QAAQ,GAAG,2BAA2B,CAAC,QAAQ,CAAC,CAAC;IACvD,IAAI,QAAQ,CAAC,OAAO,KAAK,KAAK,EAAE,CAAC;QAC/B,UAAU,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,YAAY,qGAAqG,CAAC,CAAC;IACjJ,CAAC;IACD,MAAM,GAAG,GAAG,gCAAgC,CAAC;QAC3C,QAAQ;QACR,aAAa,EAAE,gBAAgB;QAC/B,YAAY,EAAE,gCAAgC,EAAE;QAChD,GAAG,EAAE,EAAE,8BAA8B,EAAE,mBAAmB,EAAE;QAC5D,YAAY,EAAE,sBAAsB;QACpC,cAAc,EAAE,wBAAwB;QACxC,SAAS,EAAE,OAAO;KACnB,CAAC,CAAC;IACH,IAAI,SAAS,IAAI,GAAG,EAAE,CAAC;QACrB,UAAU,CAAC,IAAI,CAAC,mEAAmE,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC;QAC3I,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IAC5C,CAAC;IACD,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAA+B,CAAC;IAC9E,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AACtC,CAAC","sourcesContent":["/**\n * What owns the application's NON-provider secrets, read the way the backend reads it (#1637).\n *\n * `wildo secrets` lists what an application needs. Provider secrets come from the providers it scopes; the\n * other two kinds come from things only the backend fully knows:\n *\n * - a SYSTEM OF RECORD's credential slots depend on the credential kind, which the VENDOR FACET decides\n * when the declaration names none (`chooseSystemOfRecordCredentialKind`), and on the facet's offer,\n * which makes some optional slots required (`resolveSystemOfRecordInstanceSlots`). The facets are the\n * modules the backend's provider-runtime artifact names, resolved from the backend package that depends on them;\n * - an INBOUND ENDPOINT exists only as a handler the backend's modules declare in code, so it is read from\n * the BUILT backend, in its own resolution universe — the step `wildo db diff` takes to plan a schema.\n *\n * Both answer through the same shared decisions the backend runs at boot, so a listing cannot ask for a\n * secret the backend would not read, or miss one it refuses to start without. What cannot be read is\n * NAMED in `incomplete`, never silently left out: a listing that is partial must say so.\n */\nimport { existsSync, readFileSync } from 'fs';\nimport { createRequire } from 'module';\nimport { join } from 'path';\nimport { pathToFileURL } from 'url';\n\nimport { PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS } from '@wildo-ai/platform-config-lib';\nimport {\n SYSTEM_OF_RECORD_CREDENTIAL_KIND_CONTRACTS,\n SYSTEM_OF_RECORD_FACET_AUGMENTATION_RECORD_EXPORT,\n SYSTEM_OF_RECORD_FACET_RECORD_EXPORT,\n applySystemOfRecordFacetAugmentations,\n chooseSystemOfRecordCredentialKind,\n packageOfSystemOfRecordFacetModule,\n selectSystemOfRecordBaseFacet,\n resolveSystemOfRecordInstanceSlots,\n type SystemOfRecordSlot,\n type SystemOfRecordVendorFacet,\n} from '@wildo-ai/saas-models/external-data';\nimport { SYSTEM_OF_RECORD_FACET_MODULE_NOT_DISCOVERED, type SystemOfRecordCredentialKind } from '@wildo-ai/saas-models';\n\nimport {\n MODULES_REGISTRY_RELATIVE_PATH,\n assessCompiledModelCurrency,\n runInApplicationBackendWorkspace,\n} from '~wildo-cli/commands/db/db-schema-plan.utils';\n\n/** The part of an authored `systemsOfRecord` entry this module reads. */\nexport interface SystemOfRecordDeclarationForSecrets {\n readonly vendor: string;\n readonly credential?: { readonly kind?: SystemOfRecordCredentialKind };\n /** The packages whose facet augmentation the instance opted into (#1675): they may offer the kind it needs. */\n readonly facetAugmentations?: readonly string[];\n}\n\n/** One declared system of record, with the secret slots its credential needs. */\nexport interface DeclaredSystemOfRecordSecrets {\n readonly name: string;\n readonly vendor: string;\n /**\n * The credential's secret slots with the facet's required-ness applied, or `null` when they could not be\n * resolved — no facet reachable and no kind declared, or a kind the backend would refuse. `incomplete`\n * then says why.\n */\n readonly secretSlots: readonly SystemOfRecordSlot[] | null;\n /**\n * The instance's ADDRESS slots (the vendor's and the kind's), or `null` when the facet could not be read.\n * Carried because a key in `systemsOfRecordEnv` named after an address slot is not unused: the env builder\n * writes the secrets after the environment's address block, so it OVERRIDES the address the backend reads.\n */\n readonly addressSlots: readonly SystemOfRecordSlot[] | null;\n}\n\n/** The application package whose resolution universe the backend itself runs in. */\nconst BACKEND_PACKAGE_DIRECTORY = 'backend-api';\n\n/**\n * Every facet record the backend would consult, in its authority order, keyed by module specifier.\n *\n * This repeats the order of the backend's `createSystemOfRecordFacetResolver` rather than calling it, because\n * `./systems-of-record/*` of the backend library is deliberately unpublished (#1738). It is equivalent today:\n * boot passes that resolver only `facetModules`, and the engine tier of facets is empty and asserted empty.\n * One difference is stated rather than hidden: `createRequire` resolves with the `require` export condition\n * where the backend imports with `import`, so a facet subpath declaring only an `import` condition would be\n * reported here under `incomplete` rather than read (the catalogue's subpath declares `default`). A second: this\n * resolves from `backend-api`, the package discovery walked and whose dependency put the module in the artifact,\n * where the backend's bare `import()` resolves from the engine library's own install location, which pnpm's hoisting\n * normally lets reach the same package. Both read ONLY the recorded modules (#1675), so neither can import a package\n * the application did not admit to discovery. A module\n * that will not import is recorded as a note rather than thrown: the backend's own resolver treats it as\n * describing no vendor, and the refusal that matters is \"this vendor has no facet\", said per instance.\n */\nasync function loadFacetRecords(saasRoot: string, specifiers: readonly string[], incomplete: string[]): Promise<Array<FacetModuleRecords>> {\n const records: FacetModuleRecords[] = [];\n for (const specifier of specifiers) {\n const loaded = await importFacetModule(saasRoot, specifier);\n if ('unreadable' in loaded) incomplete.push(`The system-of-record facet module ${specifier} could not be loaded (${loaded.unreadable}).`);\n else records.push(loaded);\n }\n return records;\n}\n\n/** One facet module imported from where the backend imports it, or why it could not be. */\nasync function importFacetModule(saasRoot: string, specifier: string): Promise<FacetModuleRecords | { readonly unreadable: string }> {\n const requireFromBackend = createRequire(join(saasRoot, BACKEND_PACKAGE_DIRECTORY, 'package.json'));\n const asRecord = (value: unknown): Readonly<Record<string, unknown>> | undefined =>\n (typeof value === 'object' && value !== null ? (value as Record<string, unknown>) : undefined);\n try {\n const namespace = await import(pathToFileURL(requireFromBackend.resolve(specifier)).href) as Record<string, unknown>;\n return {\n specifier,\n facets: asRecord(namespace[SYSTEM_OF_RECORD_FACET_RECORD_EXPORT]),\n augmentations: asRecord(namespace[SYSTEM_OF_RECORD_FACET_AUGMENTATION_RECORD_EXPORT]),\n };\n } catch (error) {\n return { unreadable: (error as Error).message.split('\\n')[0]! };\n }\n}\n\n/** One facet module's two records — its facets and its facet augmentations (#1675). */\ninterface FacetModuleRecords {\n readonly specifier: string;\n readonly facets: Readonly<Record<string, unknown>> | undefined;\n readonly augmentations: Readonly<Record<string, unknown>> | undefined;\n}\n\n/** The backend would refuse the instance's facet (#1675): two base facets, or augmentations it cannot apply. Reported, never listed. */\nclass FacetRefusedError extends Error {}\n\n/**\n * The secret slots of every system of record the application declares.\n *\n * The facet modules come from the backend's provider-runtime artifact (`systemOfRecordFacetModules`), which\n * is exactly the list the backend resolves facets from at boot. Without it, an instance that DECLARES its\n * credential kind still gets that kind's contract slots (only the offer's required-ness is unknown); one that\n * leaves the kind to the facet cannot be listed, and says so.\n */\nexport async function resolveDeclaredSystemOfRecordSecrets(input: {\n readonly saasRoot: string;\n readonly declared: Readonly<Record<string, SystemOfRecordDeclarationForSecrets>>;\n}): Promise<{ readonly systems: DeclaredSystemOfRecordSecrets[]; readonly incomplete: string[] }> {\n const incomplete: string[] = [];\n const entries = Object.entries(input.declared);\n if (entries.length === 0) return { systems: [], incomplete };\n\n const artifactPath = join(input.saasRoot, PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS.backend);\n let facetModules: readonly string[] | null = null;\n try {\n const artifact = JSON.parse(readFileSync(artifactPath, 'utf-8')) as { systemOfRecordFacetModules?: unknown };\n if (Array.isArray(artifact.systemOfRecordFacetModules)) facetModules = artifact.systemOfRecordFacetModules.filter((entry): entry is string => typeof entry === 'string');\n } catch {\n // Absent or unreadable: handled below, per instance, with the remedy.\n }\n if (facetModules === null) {\n incomplete.push(`The backend's provider-runtime artifact (${PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS.backend}) names no system-of-record facet modules; run \\`wildo config sync --domain env-files\\`.`);\n }\n const records = facetModules === null ? [] : await loadFacetRecords(input.saasRoot, facetModules, incomplete);\n\n /*\n * The backend's resolution, reproduced through the SAME shared decisions (#1675): ONE base facet among the recorded\n * modules (two refuse, naming both), then the augmentations the instance opted into folded in by the one shared\n * merge — read only from the recorded modules, as the backend does, so a package discovery did not record is\n * reported with the backend's own sentence. A kind only an augmentation offers is listed, and a refusal the backend\n * makes is reported.\n */\n const findFacet = async (vendor: string, facetAugmentations: readonly string[] | undefined): Promise<SystemOfRecordVendorFacet | undefined> => {\n const selected = selectSystemOfRecordBaseFacet({\n vendor,\n candidates: records\n .filter((record) => record.facets?.[vendor] !== undefined)\n .map((record) => ({ source: `package ${packageOfSystemOfRecordFacetModule(record.specifier)}`, raw: record.facets![vendor] })),\n });\n if (selected === undefined) return undefined;\n if ('conflict' in selected) throw new FacetRefusedError(selected.conflict);\n if (facetAugmentations === undefined || facetAugmentations.length === 0) return selected.facet;\n const augmentations: Array<{ packageName: string; raw: unknown; unreadable?: string }> = [];\n for (const packageName of facetAugmentations) {\n const discovered = records.find((record) => packageOfSystemOfRecordFacetModule(record.specifier) === packageName);\n if (discovered !== undefined) {\n augmentations.push({ packageName, raw: discovered.augmentations?.[vendor] });\n continue;\n }\n const recorded = (facetModules ?? []).some((specifier) => packageOfSystemOfRecordFacetModule(specifier) === packageName);\n augmentations.push({\n packageName,\n raw: undefined,\n // Recorded and not loaded: the load failure is already listed above, with its error.\n unreadable: recorded ? 'its import failed (the error is listed separately)' : SYSTEM_OF_RECORD_FACET_MODULE_NOT_DISCOVERED,\n });\n }\n const result = applySystemOfRecordFacetAugmentations({ vendor, base: selected, augmentations });\n if ('refusal' in result) throw new FacetRefusedError(result.message);\n return result.facet;\n };\n\n const systems: DeclaredSystemOfRecordSecrets[] = [];\n for (const [name, declaration] of entries) {\n const declaredKind = declaration.credential?.kind;\n let facet: SystemOfRecordVendorFacet | undefined;\n let unreadable = `no facet for vendor '${declaration.vendor}' could be read`;\n let refused = false;\n try {\n facet = await findFacet(declaration.vendor, declaration.facetAugmentations);\n } catch (error) {\n // A Zod refusal's message is a JSON array of issues; one line of it is what a listing can carry.\n refused = error instanceof FacetRefusedError;\n unreadable = error instanceof FacetRefusedError\n // The backend refuses this instance at boot with the same words (#1675).\n ? `its facet is refused (${error.message})`\n : `vendor '${declaration.vendor}''s facet is malformed (${(error as Error).message.replace(/\\s+/g, ' ').slice(0, 240)})`;\n }\n if (facet === undefined) {\n if (declaredKind !== undefined) {\n // A refusal is still reported: the backend will not START this instance, whatever slots are stored for it.\n if (refused) incomplete.push(`System of record '${name}': ${unreadable}; the backend refuses to start it.`);\n // Only the offer's required-ness is unknown without the facet; the declared kind's slots are not.\n systems.push({ name, vendor: declaration.vendor, secretSlots: SYSTEM_OF_RECORD_CREDENTIAL_KIND_CONTRACTS[declaredKind].secretSlots, addressSlots: null });\n } else {\n incomplete.push(`System of record '${name}': ${unreadable}, so the credential slots it needs are not listed.`);\n systems.push({ name, vendor: declaration.vendor, secretSlots: null, addressSlots: null });\n }\n continue;\n }\n const choice = chooseSystemOfRecordCredentialKind(declaredKind, facet);\n if ('refusal' in choice) {\n incomplete.push(`System of record '${name}': the backend refuses its credential kind (${choice.refusal}; vendor '${facet.vendor}' offers ${choice.offered.join(', ')}), so its slots are not listed.`);\n systems.push({ name, vendor: declaration.vendor, secretSlots: null, addressSlots: facet.addressSlots });\n continue;\n }\n const slots = resolveSystemOfRecordInstanceSlots(facet, choice.kind);\n systems.push({ name, vendor: declaration.vendor, secretSlots: slots.secretSlots, addressSlots: slots.addressSlots });\n }\n return { systems, incomplete };\n}\n\n/**\n * The runner: build the application's initialization config and report the APPLICATION endpoints its inbound\n * handlers declare. Provider endpoints are verified by the provider's own adapter with its own secret, and a\n * channel handler has no endpoint, so neither has a secret here.\n */\nfunction buildInboundEndpointRunnerSource(): string {\n return `// GENERATED by \\`wildo secrets\\` — regenerated on every run; safe to delete.\nimport 'reflect-metadata';\nimport { pathToFileURL } from 'node:url';\nimport { writeFileSync } from 'node:fs';\nimport { InboundSourceKind } from '@wildo-ai/saas-models';\n\nconst modulesRegistry = await import(pathToFileURL(process.env.WILDO_SECRETS_MODULES_REGISTRY).href);\nconst handlers = modulesRegistry.buildApplicationInitializationConfig().inboundHandlers ?? [];\nconst endpointKeys = [...new Set(handlers\n .map((handler) => handler.source)\n .filter((source) => source?.kind === InboundSourceKind.APPLICATION_ENDPOINT)\n .map((source) => source.endpointKey))].sort();\nwriteFileSync(process.env.WILDO_SECRETS_OUTPUT, JSON.stringify({ endpointKeys }));\n`;\n}\n\n/**\n * The application inbound endpoints the backend declares, read from its BUILT modules registry — or `null`\n * when it cannot be read (not built, or the import fails), with the reason in `incomplete`.\n *\n * A stale build is still read, and says so: an endpoint added since the last compile is missing from it,\n * while every endpoint it does list is real. Refusing would hide the ones that are.\n */\nexport function readDeclaredInboundEndpointKeys(saasRoot: string): { readonly endpointKeys: readonly string[] | null; readonly incomplete: string[] } {\n const incomplete: string[] = [];\n const modulesRegistryPath = join(saasRoot, MODULES_REGISTRY_RELATIVE_PATH);\n if (!existsSync(modulesRegistryPath)) {\n incomplete.push(`${BACKEND_PACKAGE_DIRECTORY} is not built (${MODULES_REGISTRY_RELATIVE_PATH} is missing), so the inbound endpoints it declares are not listed; a secret already stored for one still is.`);\n return { endpointKeys: null, incomplete };\n }\n const currency = assessCompiledModelCurrency(saasRoot);\n if (currency.current === false) {\n incomplete.push(`${currency.stalePackage}/dist is older than its sources, so an inbound endpoint added since its last compile is not listed.`);\n }\n const run = runInApplicationBackendWorkspace({\n saasRoot,\n directoryName: '.wildo-secrets',\n runnerSource: buildInboundEndpointRunnerSource(),\n env: { WILDO_SECRETS_MODULES_REGISTRY: modulesRegistryPath },\n outputEnvKey: 'WILDO_SECRETS_OUTPUT',\n outputFileName: 'inbound-endpoints.json',\n timeoutMs: 180_000,\n });\n if ('failure' in run) {\n incomplete.push(`The inbound endpoints could not be read from the built backend: ${run.failure.trim().split('\\n').at(-1) ?? 'no output'}`);\n return { endpointKeys: null, incomplete };\n }\n const { endpointKeys } = JSON.parse(run.output) as { endpointKeys: string[] };\n return { endpointKeys, incomplete };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-secrets.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-secrets.service.d.ts","sourceRoot":"","sources":["../../../../../../src/services/credentials/application-secrets.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAkB,iBAAiB,EAA0B,MAAM,+BAA+B,CAAC;AAC1G,OAAO,EAAE,qBAAqB,EAA6B,KAAK,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAYrI,OAAO,EAKL,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAE7B,MAAM,6DAA6D,CAAC;AAYrE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAC;IACzC,QAAQ,CAAC,YAAY,EAAE,SAAS,CAAC,iBAAiB,GAAG;QAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,4BAA4B,CAAA;KAAE,CAAC,EAAE,CAAC;IAChH;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC;AAED,iFAAiF;AACjF,wBA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AAC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAsBpE;AAED,0FAA0F;AAC1F,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG;IAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAExI;AAED,yGAAyG;AACzG,eAAO,MAAM,gCAAgC,qCAAqC,CAAC;AAmGnF;;;;;;;;;GASG;AACH,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,mBAAmB,CAAC,CAiB9B;AAED,4GAA4G;AAC5G,wBAAsB,sBAAsB,CAC1C,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,mBAAmB,CAAC,CAU9B"}
|
|
@@ -17,7 +17,7 @@ import { basename, join } from 'path';
|
|
|
17
17
|
import { loadSaasConfig, WildoLocationType, WORKSPACE_CONFIG_NAMES } from '@wildo-ai/platform-config-lib';
|
|
18
18
|
import { ApplicationSecretKind, ApplicationSecretStanding } from '@wildo-ai/platform-core-shared';
|
|
19
19
|
import { parseInboundEndpointSecretEnvVarName, parseSystemOfRecordEnvVarName } from '@wildo-ai/saas-models';
|
|
20
|
-
import {
|
|
20
|
+
import { readLocalApplicationSecretPresence, updateLocalApplicationSecrets } from '../../services/credentials/local-secrets-store.service.js';
|
|
21
21
|
import { describeSecretValueProblem } from '../../services/credentials/provider-secret-format.js';
|
|
22
22
|
import { normalizePotentialMultilineSecret } from '../../services/credentials/ci-secrets-adapter.service.js';
|
|
23
23
|
import { describeDeployWorkflowGap, listRemoteApplicationSecrets, setRemoteApplicationSecret, unsetRemoteApplicationSecret, } from '../../services/credentials/remote-secrets-store.service.js';
|
|
@@ -40,13 +40,11 @@ const APPLICATION_SECRET_KINDS = Object.values(ApplicationSecretKind);
|
|
|
40
40
|
* holds, an empty value included (`present`). A key stored as `""` is not set, but it is still there to remove.
|
|
41
41
|
*/
|
|
42
42
|
function readLocalStoredSecrets(envName) {
|
|
43
|
-
|
|
43
|
+
// Names only: the report says what is set, so no value is read into it.
|
|
44
|
+
const sections = APPLICATION_SECRET_KINDS.map((kind) => [kind, readLocalApplicationSecretPresence(envName, kind)]);
|
|
44
45
|
return {
|
|
45
|
-
stored: Object.fromEntries(sections.map(([kind,
|
|
46
|
-
|
|
47
|
-
new Set(Object.entries(values).filter(([, value]) => value.trim().length > 0).map(([name]) => name)),
|
|
48
|
-
])),
|
|
49
|
-
present: Object.fromEntries(sections.map(([kind, values]) => [kind, new Set(Object.keys(values))])),
|
|
46
|
+
stored: Object.fromEntries(sections.map(([kind, presence]) => [kind, new Set(presence.stored)])),
|
|
47
|
+
present: Object.fromEntries(sections.map(([kind, presence]) => [kind, new Set(presence.present)])),
|
|
50
48
|
};
|
|
51
49
|
}
|
|
52
50
|
/**
|