@wildo-ai/wildo-cli 1.1.11 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/wildo.d.ts.map +1 -1
- package/dist/bin/wildo.js.map +1 -1
- package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
- package/dist/src/commands/acp/probe.command.js.map +1 -1
- package/dist/src/commands/align-deps.command.d.ts.map +1 -1
- package/dist/src/commands/align-deps.command.js +5 -3
- package/dist/src/commands/align-deps.command.js.map +1 -1
- package/dist/src/commands/assets/sync.command.d.ts.map +1 -1
- package/dist/src/commands/assets/sync.command.js.map +1 -1
- package/dist/src/commands/assurance/assurance-command.utils.d.ts +14 -0
- package/dist/src/commands/assurance/assurance-command.utils.d.ts.map +1 -0
- package/dist/src/commands/assurance/assurance-command.utils.js +36 -0
- package/dist/src/commands/assurance/assurance-command.utils.js.map +1 -0
- package/dist/src/commands/assurance/report.command.d.ts +14 -0
- package/dist/src/commands/assurance/report.command.d.ts.map +1 -0
- package/dist/src/commands/assurance/report.command.js +28 -0
- package/dist/src/commands/assurance/report.command.js.map +1 -0
- package/dist/src/commands/assurance/run.command.d.ts +16 -0
- package/dist/src/commands/assurance/run.command.d.ts.map +1 -0
- package/dist/src/commands/assurance/run.command.js +49 -0
- package/dist/src/commands/assurance/run.command.js.map +1 -0
- package/dist/src/commands/assurance/schedule.command.d.ts +15 -0
- package/dist/src/commands/assurance/schedule.command.d.ts.map +1 -0
- package/dist/src/commands/assurance/schedule.command.js +49 -0
- package/dist/src/commands/assurance/schedule.command.js.map +1 -0
- package/dist/src/commands/blueprint/pack.command.d.ts.map +1 -1
- package/dist/src/commands/blueprint/pack.command.js.map +1 -1
- package/dist/src/commands/blueprint/publish.command.d.ts.map +1 -1
- package/dist/src/commands/blueprint/publish.command.js.map +1 -1
- package/dist/src/commands/blueprint/status.command.d.ts.map +1 -1
- package/dist/src/commands/blueprint/status.command.js.map +1 -1
- package/dist/src/commands/brand/propagate.command.d.ts.map +1 -1
- package/dist/src/commands/brand/propagate.command.js.map +1 -1
- package/dist/src/commands/build/accept.command.d.ts +4 -0
- package/dist/src/commands/build/accept.command.d.ts.map +1 -1
- package/dist/src/commands/build/accept.command.js +10 -1
- package/dist/src/commands/build/accept.command.js.map +1 -1
- package/dist/src/commands/build/approve.command.d.ts +18 -0
- package/dist/src/commands/build/approve.command.d.ts.map +1 -0
- package/dist/src/commands/build/approve.command.js +45 -0
- package/dist/src/commands/build/approve.command.js.map +1 -0
- package/dist/src/commands/build/checkpoint.command.d.ts +18 -0
- package/dist/src/commands/build/checkpoint.command.d.ts.map +1 -0
- package/dist/src/commands/build/checkpoint.command.js +36 -0
- package/dist/src/commands/build/checkpoint.command.js.map +1 -0
- package/dist/src/commands/build/close.command.d.ts +26 -0
- package/dist/src/commands/build/close.command.d.ts.map +1 -0
- package/dist/src/commands/build/close.command.js +58 -0
- package/dist/src/commands/build/close.command.js.map +1 -0
- package/dist/src/commands/build/dispatches.command.d.ts.map +1 -1
- package/dist/src/commands/build/dispatches.command.js +10 -9
- package/dist/src/commands/build/dispatches.command.js.map +1 -1
- package/dist/src/commands/build/next.command.d.ts.map +1 -1
- package/dist/src/commands/build/next.command.js +6 -1
- package/dist/src/commands/build/next.command.js.map +1 -1
- package/dist/src/commands/build/rearm.command.d.ts.map +1 -1
- package/dist/src/commands/build/rearm.command.js.map +1 -1
- package/dist/src/commands/build/run.command.d.ts.map +1 -1
- package/dist/src/commands/build/run.command.js.map +1 -1
- package/dist/src/commands/build/settle-window.command.d.ts +17 -0
- package/dist/src/commands/build/settle-window.command.d.ts.map +1 -0
- package/dist/src/commands/build/settle-window.command.js +42 -0
- package/dist/src/commands/build/settle-window.command.js.map +1 -0
- package/dist/src/commands/build/stop.command.d.ts +23 -0
- package/dist/src/commands/build/stop.command.d.ts.map +1 -0
- package/dist/src/commands/build/stop.command.js +52 -0
- package/dist/src/commands/build/stop.command.js.map +1 -0
- package/dist/src/commands/build/tasks.command.d.ts.map +1 -1
- package/dist/src/commands/build/tasks.command.js.map +1 -1
- package/dist/src/commands/compose.command.d.ts.map +1 -1
- package/dist/src/commands/compose.command.js.map +1 -1
- package/dist/src/commands/config/check-resources.command.d.ts +20 -6
- package/dist/src/commands/config/check-resources.command.d.ts.map +1 -1
- package/dist/src/commands/config/check-resources.command.js +33 -12
- package/dist/src/commands/config/check-resources.command.js.map +1 -1
- package/dist/src/commands/config/data-retention.command.d.ts.map +1 -1
- package/dist/src/commands/config/data-retention.command.js.map +1 -1
- package/dist/src/commands/config/document-releases.command.d.ts +3 -0
- package/dist/src/commands/config/document-releases.command.d.ts.map +1 -1
- package/dist/src/commands/config/document-releases.command.js +3 -0
- package/dist/src/commands/config/document-releases.command.js.map +1 -1
- package/dist/src/commands/config/legal-notice.command.d.ts.map +1 -1
- package/dist/src/commands/config/legal-notice.command.js.map +1 -1
- package/dist/src/commands/config/mutate.command.d.ts.map +1 -1
- package/dist/src/commands/config/mutate.command.js.map +1 -1
- package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
- package/dist/src/commands/config/reapply-declaration.command.js.map +1 -1
- package/dist/src/commands/config/service-consent.command.d.ts.map +1 -1
- package/dist/src/commands/config/service-consent.command.js.map +1 -1
- package/dist/src/commands/config/subject-data-recipients.command.d.ts.map +1 -1
- package/dist/src/commands/config/subject-data-recipients.command.js.map +1 -1
- package/dist/src/commands/config/sync.command.d.ts +4 -3
- package/dist/src/commands/config/sync.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.js +51 -17
- package/dist/src/commands/config/sync.command.js.map +1 -1
- package/dist/src/commands/config/validate.command.d.ts.map +1 -1
- package/dist/src/commands/config/validate.command.js +10 -10
- package/dist/src/commands/config/validate.command.js.map +1 -1
- package/dist/src/commands/context/assurance-basis.command.d.ts.map +1 -1
- package/dist/src/commands/context/assurance-basis.command.js.map +1 -1
- package/dist/src/commands/context/coherence.command.d.ts.map +1 -1
- package/dist/src/commands/context/coherence.command.js.map +1 -1
- package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
- package/dist/src/commands/context/context-command.utils.js.map +1 -1
- package/dist/src/commands/context/elements.command.d.ts +4 -2
- package/dist/src/commands/context/elements.command.d.ts.map +1 -1
- package/dist/src/commands/context/elements.command.js +4 -2
- package/dist/src/commands/context/elements.command.js.map +1 -1
- package/dist/src/commands/context/health.command.d.ts.map +1 -1
- package/dist/src/commands/context/health.command.js.map +1 -1
- package/dist/src/commands/context/info.command.d.ts.map +1 -1
- package/dist/src/commands/context/info.command.js.map +1 -1
- package/dist/src/commands/context/journey.command.d.ts +33 -2
- package/dist/src/commands/context/journey.command.d.ts.map +1 -1
- package/dist/src/commands/context/journey.command.js +186 -34
- package/dist/src/commands/context/journey.command.js.map +1 -1
- package/dist/src/commands/context/jurisdictions.command.d.ts.map +1 -1
- package/dist/src/commands/context/jurisdictions.command.js.map +1 -1
- package/dist/src/commands/context/launch-blockers.command.d.ts +4 -2
- package/dist/src/commands/context/launch-blockers.command.d.ts.map +1 -1
- package/dist/src/commands/context/launch-blockers.command.js +6 -4
- package/dist/src/commands/context/launch-blockers.command.js.map +1 -1
- package/dist/src/commands/context/list.command.d.ts.map +1 -1
- package/dist/src/commands/context/list.command.js.map +1 -1
- package/dist/src/commands/context/pipelines.command.d.ts.map +1 -1
- package/dist/src/commands/context/pipelines.command.js.map +1 -1
- package/dist/src/commands/context/workspace.command.d.ts.map +1 -1
- package/dist/src/commands/context/workspace.command.js.map +1 -1
- package/dist/src/commands/creation/accept.command.d.ts.map +1 -1
- package/dist/src/commands/creation/accept.command.js.map +1 -1
- package/dist/src/commands/creation/answer.command.d.ts +12 -0
- package/dist/src/commands/creation/answer.command.d.ts.map +1 -1
- package/dist/src/commands/creation/answer.command.js +69 -2
- package/dist/src/commands/creation/answer.command.js.map +1 -1
- package/dist/src/commands/creation/brand-logo.command.d.ts.map +1 -1
- package/dist/src/commands/creation/brand-logo.command.js.map +1 -1
- package/dist/src/commands/creation/brief.command.d.ts +10 -3
- package/dist/src/commands/creation/brief.command.d.ts.map +1 -1
- package/dist/src/commands/creation/brief.command.js +22 -7
- package/dist/src/commands/creation/brief.command.js.map +1 -1
- package/dist/src/commands/creation/deliberate.command.d.ts.map +1 -1
- package/dist/src/commands/creation/deliberate.command.js.map +1 -1
- package/dist/src/commands/creation/depth.command.d.ts.map +1 -1
- package/dist/src/commands/creation/depth.command.js.map +1 -1
- package/dist/src/commands/creation/diff.command.d.ts.map +1 -1
- package/dist/src/commands/creation/diff.command.js.map +1 -1
- package/dist/src/commands/creation/drive.command.d.ts +19 -0
- package/dist/src/commands/creation/drive.command.d.ts.map +1 -0
- package/dist/src/commands/creation/drive.command.js +112 -0
- package/dist/src/commands/creation/drive.command.js.map +1 -0
- package/dist/src/commands/creation/feed.command.d.ts +11 -0
- package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
- package/dist/src/commands/creation/feed.command.js +75 -1
- package/dist/src/commands/creation/feed.command.js.map +1 -1
- package/dist/src/commands/creation/loop.command.d.ts +6 -0
- package/dist/src/commands/creation/loop.command.d.ts.map +1 -1
- package/dist/src/commands/creation/loop.command.js +16 -0
- package/dist/src/commands/creation/loop.command.js.map +1 -1
- package/dist/src/commands/creation/persona.command.d.ts.map +1 -1
- package/dist/src/commands/creation/persona.command.js.map +1 -1
- package/dist/src/commands/creation/preflight.command.d.ts.map +1 -1
- package/dist/src/commands/creation/preflight.command.js.map +1 -1
- package/dist/src/commands/creation/prompt-hook.command.d.ts +1 -1
- package/dist/src/commands/creation/prompt-hook.command.d.ts.map +1 -1
- package/dist/src/commands/creation/prompt-hook.command.js +7 -3
- package/dist/src/commands/creation/prompt-hook.command.js.map +1 -1
- package/dist/src/commands/creation/propose.command.d.ts.map +1 -1
- package/dist/src/commands/creation/propose.command.js.map +1 -1
- package/dist/src/commands/creation/pulse.command.d.ts.map +1 -1
- package/dist/src/commands/creation/pulse.command.js.map +1 -1
- package/dist/src/commands/creation/questions.command.d.ts.map +1 -1
- package/dist/src/commands/creation/questions.command.js +13 -0
- package/dist/src/commands/creation/questions.command.js.map +1 -1
- package/dist/src/commands/creation/reason.command.d.ts.map +1 -1
- package/dist/src/commands/creation/reason.command.js.map +1 -1
- package/dist/src/commands/creation/report.command.d.ts.map +1 -1
- package/dist/src/commands/creation/report.command.js +12 -0
- package/dist/src/commands/creation/report.command.js.map +1 -1
- package/dist/src/commands/creation/revert.command.d.ts.map +1 -1
- package/dist/src/commands/creation/revert.command.js +2 -0
- package/dist/src/commands/creation/revert.command.js.map +1 -1
- package/dist/src/commands/creation/run.command.d.ts.map +1 -1
- package/dist/src/commands/creation/run.command.js.map +1 -1
- package/dist/src/commands/creation/statusline.command.d.ts.map +1 -1
- package/dist/src/commands/creation/statusline.command.js.map +1 -1
- package/dist/src/commands/creation/watch.command.d.ts.map +1 -1
- package/dist/src/commands/creation/watch.command.js.map +1 -1
- package/dist/src/commands/creation/why.command.d.ts.map +1 -1
- package/dist/src/commands/creation/why.command.js +14 -9
- package/dist/src/commands/creation/why.command.js.map +1 -1
- package/dist/src/commands/creation/writes.command.d.ts +7 -0
- package/dist/src/commands/creation/writes.command.d.ts.map +1 -1
- package/dist/src/commands/creation/writes.command.js +21 -6
- package/dist/src/commands/creation/writes.command.js.map +1 -1
- package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts.map +1 -1
- package/dist/src/commands/db/db-schema-plan-migration.utils.js.map +1 -1
- package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
- package/dist/src/commands/db/db-schema-plan.utils.js +2 -2
- package/dist/src/commands/db/db-schema-plan.utils.js.map +1 -1
- package/dist/src/commands/db/diff.command.d.ts +1 -1
- package/dist/src/commands/db/diff.command.d.ts.map +1 -1
- package/dist/src/commands/db/diff.command.js +2 -2
- package/dist/src/commands/db/diff.command.js.map +1 -1
- package/dist/src/commands/db/generate.command.d.ts +2 -3
- package/dist/src/commands/db/generate.command.d.ts.map +1 -1
- package/dist/src/commands/db/generate.command.js +2 -3
- package/dist/src/commands/db/generate.command.js.map +1 -1
- package/dist/src/commands/db/migrate.command.d.ts.map +1 -1
- package/dist/src/commands/db/migrate.command.js +9 -1
- package/dist/src/commands/db/migrate.command.js.map +1 -1
- package/dist/src/commands/db/resolve.command.d.ts.map +1 -1
- package/dist/src/commands/db/resolve.command.js.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-brand.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-brand.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-contract.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-contract.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-contrast.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-contrast.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-generate.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-generate.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-init.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-validate.command.js.map +1 -1
- package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -1
- package/dist/src/commands/dev/force-stop.command.js.map +1 -1
- package/dist/src/commands/dev/resources.command.d.ts.map +1 -1
- package/dist/src/commands/dev/resources.command.js.map +1 -1
- package/dist/src/commands/dev/start.command.d.ts.map +1 -1
- package/dist/src/commands/dev/start.command.js.map +1 -1
- package/dist/src/commands/dev/stop-all.command.d.ts.map +1 -1
- package/dist/src/commands/dev/stop-all.command.js.map +1 -1
- package/dist/src/commands/dev/sync-csp.command.d.ts.map +1 -1
- package/dist/src/commands/dev/sync-csp.command.js.map +1 -1
- package/dist/src/commands/docs/check.command.d.ts.map +1 -1
- package/dist/src/commands/docs/check.command.js +12 -0
- package/dist/src/commands/docs/check.command.js.map +1 -1
- package/dist/src/commands/docs/publish.command.d.ts.map +1 -1
- package/dist/src/commands/docs/publish.command.js.map +1 -1
- package/dist/src/commands/frontend/look.command.d.ts.map +1 -1
- package/dist/src/commands/frontend/look.command.js.map +1 -1
- package/dist/src/commands/frontend/publish.command.d.ts.map +1 -1
- package/dist/src/commands/frontend/publish.command.js.map +1 -1
- package/dist/src/commands/fwk/audit.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/audit.command.js.map +1 -1
- package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/dev-skills.command.js +20 -0
- package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
- package/dist/src/commands/fwk/generate-blueprints.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/generate-blueprints.command.js +2 -1
- package/dist/src/commands/fwk/generate-blueprints.command.js.map +1 -1
- package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/generate-docs.command.js.map +1 -1
- package/dist/src/commands/fwk/generate-providers.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/generate-providers.command.js +2 -2
- package/dist/src/commands/fwk/generate-providers.command.js.map +1 -1
- package/dist/src/commands/fwk/graph.command.d.ts +1 -1
- package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/graph.command.js +1 -1
- package/dist/src/commands/fwk/graph.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.d.ts +53 -0
- package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.js +345 -12
- package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.js +9 -0
- package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-npm.command.js +15 -4
- package/dist/src/commands/fwk/publish-npm.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-promote.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-promote.command.js +32 -11
- package/dist/src/commands/fwk/publish-promote.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-providers.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-providers.command.js +8 -0
- package/dist/src/commands/fwk/publish-providers.command.js.map +1 -1
- package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/registry-host.command.js.map +1 -1
- package/dist/src/commands/fwk/release.command.d.ts +22 -0
- package/dist/src/commands/fwk/release.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/release.command.js +216 -0
- package/dist/src/commands/fwk/release.command.js.map +1 -0
- package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-bump.command.js.map +1 -1
- package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-set.command.js.map +1 -1
- package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-show.command.js.map +1 -1
- package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-sync.command.js.map +1 -1
- package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/what-touches.command.js.map +1 -1
- package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-status.command.js.map +1 -1
- package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-tail.command.js.map +1 -1
- package/dist/src/commands/generate/email-command.utils.d.ts +15 -2
- package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/email-command.utils.js +20 -7
- package/dist/src/commands/generate/email-command.utils.js.map +1 -1
- package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-preview.command.js.map +1 -1
- package/dist/src/commands/generate/email-status.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-status.command.js +2 -2
- package/dist/src/commands/generate/email-status.command.js.map +1 -1
- package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-test-send.command.js.map +1 -1
- package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-translate.command.js +2 -2
- package/dist/src/commands/generate/email-translate.command.js.map +1 -1
- package/dist/src/commands/generate/email.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email.command.js +2 -2
- package/dist/src/commands/generate/email.command.js.map +1 -1
- package/dist/src/commands/generate/labelling-command.utils.d.ts +15 -0
- package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/labelling-command.utils.js +110 -12
- package/dist/src/commands/generate/labelling-command.utils.js.map +1 -1
- package/dist/src/commands/generate/labels-plan.command.d.ts.map +1 -1
- package/dist/src/commands/generate/labels-plan.command.js.map +1 -1
- package/dist/src/commands/generate/labels.command.d.ts.map +1 -1
- package/dist/src/commands/generate/labels.command.js.map +1 -1
- package/dist/src/commands/generate/translate.command.d.ts +5 -0
- package/dist/src/commands/generate/translate.command.d.ts.map +1 -1
- package/dist/src/commands/generate/translate.command.js +9 -3
- package/dist/src/commands/generate/translate.command.js.map +1 -1
- package/dist/src/commands/help.command.d.ts.map +1 -1
- package/dist/src/commands/help.command.js +2 -0
- package/dist/src/commands/help.command.js.map +1 -1
- package/dist/src/commands/init.command.d.ts +11 -3
- package/dist/src/commands/init.command.d.ts.map +1 -1
- package/dist/src/commands/init.command.js +73 -27
- package/dist/src/commands/init.command.js.map +1 -1
- package/dist/src/commands/keys/legacy-envelope-key.command.d.ts +8 -0
- package/dist/src/commands/keys/legacy-envelope-key.command.d.ts.map +1 -0
- package/dist/src/commands/keys/legacy-envelope-key.command.js +140 -0
- package/dist/src/commands/keys/legacy-envelope-key.command.js.map +1 -0
- package/dist/src/commands/keys/rotate-signing-keys.command.d.ts +8 -0
- package/dist/src/commands/keys/rotate-signing-keys.command.d.ts.map +1 -0
- package/dist/src/commands/keys/rotate-signing-keys.command.js +158 -0
- package/dist/src/commands/keys/rotate-signing-keys.command.js.map +1 -0
- package/dist/src/commands/keys/rotate.command.d.ts.map +1 -1
- package/dist/src/commands/keys/rotate.command.js.map +1 -1
- package/dist/src/commands/keys/thumbprint.command.d.ts.map +1 -1
- package/dist/src/commands/keys/thumbprint.command.js.map +1 -1
- package/dist/src/commands/keys/vault-rotate-tokens.command.d.ts +7 -0
- package/dist/src/commands/keys/vault-rotate-tokens.command.d.ts.map +1 -0
- package/dist/src/commands/keys/vault-rotate-tokens.command.js +100 -0
- package/dist/src/commands/keys/vault-rotate-tokens.command.js.map +1 -0
- package/dist/src/commands/keys/vault-rotate-unseal-key.command.d.ts +7 -0
- package/dist/src/commands/keys/vault-rotate-unseal-key.command.d.ts.map +1 -0
- package/dist/src/commands/keys/vault-rotate-unseal-key.command.js +96 -0
- package/dist/src/commands/keys/vault-rotate-unseal-key.command.js.map +1 -0
- package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
- package/dist/src/commands/local/deregister.command.js.map +1 -1
- package/dist/src/commands/local/dev-status.command.d.ts +16 -4
- package/dist/src/commands/local/dev-status.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev-status.command.js +50 -6
- package/dist/src/commands/local/dev-status.command.js.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts +80 -5
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js +273 -19
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/local/doctor.command.d.ts +22 -9
- package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
- package/dist/src/commands/local/doctor.command.js +59 -43
- package/dist/src/commands/local/doctor.command.js.map +1 -1
- package/dist/src/commands/local/down.command.d.ts.map +1 -1
- package/dist/src/commands/local/down.command.js +1 -2
- package/dist/src/commands/local/down.command.js.map +1 -1
- package/dist/src/commands/local/init.command.d.ts.map +1 -1
- package/dist/src/commands/local/init.command.js.map +1 -1
- package/dist/src/commands/local/logs.command.d.ts.map +1 -1
- package/dist/src/commands/local/logs.command.js.map +1 -1
- package/dist/src/commands/local/reinit.command.d.ts.map +1 -1
- package/dist/src/commands/local/reinit.command.js.map +1 -1
- package/dist/src/commands/local/reset.command.d.ts.map +1 -1
- package/dist/src/commands/local/reset.command.js.map +1 -1
- package/dist/src/commands/local/restore.command.d.ts.map +1 -1
- package/dist/src/commands/local/restore.command.js.map +1 -1
- package/dist/src/commands/local/smoke.command.d.ts.map +1 -1
- package/dist/src/commands/local/smoke.command.js +1 -1
- package/dist/src/commands/local/smoke.command.js.map +1 -1
- package/dist/src/commands/local/sor-addresses.command.d.ts +20 -0
- package/dist/src/commands/local/sor-addresses.command.d.ts.map +1 -0
- package/dist/src/commands/local/sor-addresses.command.js +65 -0
- package/dist/src/commands/local/sor-addresses.command.js.map +1 -0
- package/dist/src/commands/local/sor-command.utils.d.ts +12 -0
- package/dist/src/commands/local/sor-command.utils.d.ts.map +1 -0
- package/dist/src/commands/local/sor-command.utils.js +28 -0
- package/dist/src/commands/local/sor-command.utils.js.map +1 -0
- package/dist/src/commands/local/sor-secrets.command.d.ts +20 -0
- package/dist/src/commands/local/sor-secrets.command.d.ts.map +1 -0
- package/dist/src/commands/local/sor-secrets.command.js +75 -0
- package/dist/src/commands/local/sor-secrets.command.js.map +1 -0
- package/dist/src/commands/local/sor-simulators.command.d.ts +21 -0
- package/dist/src/commands/local/sor-simulators.command.d.ts.map +1 -0
- package/dist/src/commands/local/sor-simulators.command.js +55 -0
- package/dist/src/commands/local/sor-simulators.command.js.map +1 -0
- package/dist/src/commands/local/status.command.d.ts.map +1 -1
- package/dist/src/commands/local/status.command.js.map +1 -1
- package/dist/src/commands/local/up.command.d.ts.map +1 -1
- package/dist/src/commands/local/up.command.js.map +1 -1
- package/dist/src/commands/local-defaults/capture.command.d.ts.map +1 -1
- package/dist/src/commands/local-defaults/capture.command.js.map +1 -1
- package/dist/src/commands/lock/check.command.d.ts +7 -7
- package/dist/src/commands/lock/check.command.d.ts.map +1 -1
- package/dist/src/commands/lock/check.command.js +11 -11
- package/dist/src/commands/lock/check.command.js.map +1 -1
- package/dist/src/commands/market/generate.command.d.ts.map +1 -1
- package/dist/src/commands/market/generate.command.js.map +1 -1
- package/dist/src/commands/market/market-command.utils.d.ts.map +1 -1
- package/dist/src/commands/market/market-command.utils.js.map +1 -1
- package/dist/src/commands/prefs/set.command.d.ts.map +1 -1
- package/dist/src/commands/prefs/set.command.js.map +1 -1
- package/dist/src/commands/providers/application-connection-session.utils.d.ts +9 -0
- package/dist/src/commands/providers/application-connection-session.utils.d.ts.map +1 -0
- package/dist/src/commands/providers/application-connection-session.utils.js +49 -0
- package/dist/src/commands/providers/application-connection-session.utils.js.map +1 -0
- package/dist/src/commands/providers/chat-command-registrations.utils.d.ts.map +1 -1
- package/dist/src/commands/providers/chat-command-registrations.utils.js +2 -1
- package/dist/src/commands/providers/chat-command-registrations.utils.js.map +1 -1
- package/dist/src/commands/providers/connect.command.d.ts +19 -0
- package/dist/src/commands/providers/connect.command.d.ts.map +1 -0
- package/dist/src/commands/providers/connect.command.js +257 -0
- package/dist/src/commands/providers/connect.command.js.map +1 -0
- package/dist/src/commands/providers/connections.command.d.ts +14 -0
- package/dist/src/commands/providers/connections.command.d.ts.map +1 -0
- package/dist/src/commands/providers/connections.command.js +74 -0
- package/dist/src/commands/providers/connections.command.js.map +1 -0
- package/dist/src/commands/providers/disconnect.command.d.ts +15 -0
- package/dist/src/commands/providers/disconnect.command.d.ts.map +1 -0
- package/dist/src/commands/providers/disconnect.command.js +91 -0
- package/dist/src/commands/providers/disconnect.command.js.map +1 -0
- package/dist/src/commands/providers/new.command.d.ts.map +1 -1
- package/dist/src/commands/providers/new.command.js +2 -2
- package/dist/src/commands/providers/new.command.js.map +1 -1
- package/dist/src/commands/providers/probe.command.d.ts +0 -1
- package/dist/src/commands/providers/probe.command.d.ts.map +1 -1
- package/dist/src/commands/providers/probe.command.js +31 -31
- package/dist/src/commands/providers/probe.command.js.map +1 -1
- package/dist/src/commands/providers/prove.command.d.ts +16 -0
- package/dist/src/commands/providers/prove.command.d.ts.map +1 -0
- package/dist/src/commands/providers/prove.command.js +174 -0
- package/dist/src/commands/providers/prove.command.js.map +1 -0
- package/dist/src/commands/providers/register.command.d.ts.map +1 -1
- package/dist/src/commands/providers/register.command.js +45 -10
- package/dist/src/commands/providers/register.command.js.map +1 -1
- package/dist/src/commands/providers/show.command.d.ts.map +1 -1
- package/dist/src/commands/providers/show.command.js.map +1 -1
- package/dist/src/commands/registry/add.command.d.ts.map +1 -1
- package/dist/src/commands/registry/add.command.js.map +1 -1
- package/dist/src/commands/registry/domain.command.d.ts.map +1 -1
- package/dist/src/commands/registry/domain.command.js.map +1 -1
- package/dist/src/commands/registry/info.command.d.ts.map +1 -1
- package/dist/src/commands/registry/info.command.js.map +1 -1
- package/dist/src/commands/registry/key.command.d.ts.map +1 -1
- package/dist/src/commands/registry/key.command.js.map +1 -1
- package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -1
- package/dist/src/commands/registry/lockfile-smoke.command.js.map +1 -1
- package/dist/src/commands/registry/login.command.d.ts.map +1 -1
- package/dist/src/commands/registry/login.command.js +4 -2
- package/dist/src/commands/registry/login.command.js.map +1 -1
- package/dist/src/commands/registry/logout.command.d.ts.map +1 -1
- package/dist/src/commands/registry/logout.command.js.map +1 -1
- package/dist/src/commands/registry/outdated.command.d.ts.map +1 -1
- package/dist/src/commands/registry/outdated.command.js.map +1 -1
- package/dist/src/commands/registry/ping.command.d.ts.map +1 -1
- package/dist/src/commands/registry/ping.command.js.map +1 -1
- package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
- package/dist/src/commands/registry/publish.command.js +14 -0
- package/dist/src/commands/registry/publish.command.js.map +1 -1
- package/dist/src/commands/registry/registry-transport.constants.d.ts.map +1 -1
- package/dist/src/commands/registry/registry-transport.constants.js.map +1 -1
- package/dist/src/commands/registry/remove.command.d.ts.map +1 -1
- package/dist/src/commands/registry/remove.command.js.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.d.ts +12 -11
- package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.js +47 -56
- package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
- package/dist/src/commands/registry/search.command.d.ts.map +1 -1
- package/dist/src/commands/registry/search.command.js.map +1 -1
- package/dist/src/commands/registry/status.command.d.ts.map +1 -1
- package/dist/src/commands/registry/status.command.js.map +1 -1
- package/dist/src/commands/registry/update.command.d.ts.map +1 -1
- package/dist/src/commands/registry/update.command.js.map +1 -1
- package/dist/src/commands/registry/whoami.command.d.ts.map +1 -1
- package/dist/src/commands/registry/whoami.command.js +4 -2
- package/dist/src/commands/registry/whoami.command.js.map +1 -1
- package/dist/src/commands/registry/yank.command.d.ts.map +1 -1
- package/dist/src/commands/registry/yank.command.js.map +1 -1
- package/dist/src/commands/remote/create.command.d.ts.map +1 -1
- package/dist/src/commands/remote/create.command.js.map +1 -1
- package/dist/src/commands/remote/list.command.d.ts.map +1 -1
- package/dist/src/commands/remote/list.command.js.map +1 -1
- package/dist/src/commands/remote/status.command.d.ts.map +1 -1
- package/dist/src/commands/remote/status.command.js.map +1 -1
- package/dist/src/commands/remote/sync.command.d.ts.map +1 -1
- package/dist/src/commands/remote/sync.command.js +1 -1
- package/dist/src/commands/remote/sync.command.js.map +1 -1
- package/dist/src/commands/seal/currency.command.d.ts +13 -0
- package/dist/src/commands/seal/currency.command.d.ts.map +1 -0
- package/dist/src/commands/seal/currency.command.js +52 -0
- package/dist/src/commands/seal/currency.command.js.map +1 -0
- package/dist/src/commands/seal/dead.command.d.ts.map +1 -1
- package/dist/src/commands/seal/dead.command.js +2 -1
- package/dist/src/commands/seal/dead.command.js.map +1 -1
- package/dist/src/commands/seal/export.command.d.ts.map +1 -1
- package/dist/src/commands/seal/export.command.js.map +1 -1
- package/dist/src/commands/seal/log-export.command.d.ts.map +1 -1
- package/dist/src/commands/seal/log-export.command.js +6 -1
- package/dist/src/commands/seal/log-export.command.js.map +1 -1
- package/dist/src/commands/seal/log-verify.command.d.ts.map +1 -1
- package/dist/src/commands/seal/log-verify.command.js +2 -1
- package/dist/src/commands/seal/log-verify.command.js.map +1 -1
- package/dist/src/commands/seal/rebuild-copy.command.d.ts +14 -0
- package/dist/src/commands/seal/rebuild-copy.command.d.ts.map +1 -0
- package/dist/src/commands/seal/rebuild-copy.command.js +48 -0
- package/dist/src/commands/seal/rebuild-copy.command.js.map +1 -0
- package/dist/src/commands/seal/retry.command.d.ts.map +1 -1
- package/dist/src/commands/seal/retry.command.js.map +1 -1
- package/dist/src/commands/seal/seal-admin-door.utils.d.ts.map +1 -1
- package/dist/src/commands/seal/seal-admin-door.utils.js +2 -0
- package/dist/src/commands/seal/seal-admin-door.utils.js.map +1 -1
- package/dist/src/commands/seal/signing-log-files.utils.d.ts.map +1 -1
- package/dist/src/commands/seal/signing-log-files.utils.js.map +1 -1
- package/dist/src/commands/seal/verify.command.d.ts +14 -0
- package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
- package/dist/src/commands/seal/verify.command.js +85 -9
- package/dist/src/commands/seal/verify.command.js.map +1 -1
- package/dist/src/commands/secrets/github.command.d.ts.map +1 -1
- package/dist/src/commands/secrets/github.command.js.map +1 -1
- package/dist/src/commands/secrets/list.command.d.ts.map +1 -1
- package/dist/src/commands/secrets/list.command.js.map +1 -1
- package/dist/src/commands/secrets/set.command.d.ts.map +1 -1
- package/dist/src/commands/secrets/set.command.js +5 -3
- package/dist/src/commands/secrets/set.command.js.map +1 -1
- package/dist/src/commands/secrets/unset.command.d.ts.map +1 -1
- package/dist/src/commands/secrets/unset.command.js.map +1 -1
- package/dist/src/commands/setup.command.d.ts.map +1 -1
- package/dist/src/commands/setup.command.js.map +1 -1
- package/dist/src/commands/update.command.d.ts.map +1 -1
- package/dist/src/commands/update.command.js +86 -7
- package/dist/src/commands/update.command.js.map +1 -1
- package/dist/src/commands/version.command.d.ts.map +1 -1
- package/dist/src/commands/version.command.js.map +1 -1
- package/dist/src/commands/website/audit.command.d.ts.map +1 -1
- package/dist/src/commands/website/audit.command.js +15 -1
- package/dist/src/commands/website/audit.command.js.map +1 -1
- package/dist/src/commands/website/look.command.d.ts.map +1 -1
- package/dist/src/commands/website/look.command.js.map +1 -1
- package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/open.command.js +12 -3
- package/dist/src/commands/workbench/open.command.js.map +1 -1
- package/dist/src/commands/workbench/parallelism.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/parallelism.command.js.map +1 -1
- package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/status.command.js.map +1 -1
- package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/errors/error.utils.js.map +1 -1
- package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/io/file.utils.js.map +1 -1
- package/dist/src/infrastructure/io/io.schemas.d.ts +4 -4
- package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/io/io.schemas.js +4 -4
- package/dist/src/infrastructure/io/io.schemas.js.map +1 -1
- package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -1
- package/dist/src/infrastructure/io/template-processor.js.map +1 -1
- package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -1
- package/dist/src/infrastructure/logger/logger.service.js.map +1 -1
- package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/process/spawn.utils.js.map +1 -1
- package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/formatting.service.js.map +1 -1
- package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/interaction-engine.service.js.map +1 -1
- package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/markdown-renderer.service.js.map +1 -1
- package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/ui.schemas.js.map +1 -1
- package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/utils/string.utils.js.map +1 -1
- package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -1
- package/dist/src/infrastructure/validation/validator.service.js.map +1 -1
- package/dist/src/kernel/base-command.d.ts.map +1 -1
- package/dist/src/kernel/base-command.js.map +1 -1
- package/dist/src/kernel/bootstrap.d.ts +10 -0
- package/dist/src/kernel/bootstrap.d.ts.map +1 -1
- package/dist/src/kernel/bootstrap.js +13 -1
- package/dist/src/kernel/bootstrap.js.map +1 -1
- package/dist/src/kernel/command-index-cache.d.ts.map +1 -1
- package/dist/src/kernel/command-index-cache.js.map +1 -1
- package/dist/src/kernel/command-registry.d.ts.map +1 -1
- package/dist/src/kernel/command-registry.js +5 -0
- package/dist/src/kernel/command-registry.js.map +1 -1
- package/dist/src/kernel/command-runner.d.ts.map +1 -1
- package/dist/src/kernel/command-runner.js.map +1 -1
- package/dist/src/kernel/command-scope-utils.d.ts.map +1 -1
- package/dist/src/kernel/command-scope-utils.js.map +1 -1
- package/dist/src/kernel/flag-utils.d.ts.map +1 -1
- package/dist/src/kernel/flag-utils.js.map +1 -1
- package/dist/src/kernel/hooks.d.ts.map +1 -1
- package/dist/src/kernel/hooks.js.map +1 -1
- package/dist/src/kernel/json-document-output.d.ts.map +1 -1
- package/dist/src/kernel/json-document-output.js.map +1 -1
- package/dist/src/kernel/logger.d.ts.map +1 -1
- package/dist/src/kernel/logger.js.map +1 -1
- package/dist/src/kernel/types.d.ts +8 -1
- package/dist/src/kernel/types.d.ts.map +1 -1
- package/dist/src/kernel/types.js +7 -0
- package/dist/src/kernel/types.js.map +1 -1
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/main.js.map +1 -1
- package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/admin-user.module.js.map +1 -1
- package/dist/src/modules/domain/credentials/approver-user.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/approver-user.module.js.map +1 -1
- package/dist/src/modules/domain/credentials/creation-essentials.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/creation-essentials.module.js.map +1 -1
- package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/module.types.js.map +1 -1
- package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/database-config.module.js.map +1 -1
- package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/module.types.js.map +1 -1
- package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/paths-config.module.js.map +1 -1
- package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/runtime-selector.module.js.map +1 -1
- package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/runtime-semantics.module.js.map +1 -1
- package/dist/src/modules/domain/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/module.types.js.map +1 -1
- package/dist/src/services/application/ai-use-declarations.service.d.ts.map +1 -1
- package/dist/src/services/application/ai-use-declarations.service.js.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts +42 -3
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js +147 -42
- package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/app-env.service.d.ts.map +1 -1
- package/dist/src/services/application/app-env.service.js.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts +19 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.js +23 -5
- package/dist/src/services/application/app-local-runtime-addresses.service.js.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts +8 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.js +17 -8
- package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
- package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-schema-bootstrap.service.js +5 -1
- package/dist/src/services/application/app-schema-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.js +10 -1
- package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
- package/dist/src/services/application/application-browser-smoke.service.d.ts +23 -0
- package/dist/src/services/application/application-browser-smoke.service.d.ts.map +1 -1
- package/dist/src/services/application/application-browser-smoke.service.js +142 -19
- package/dist/src/services/application/application-browser-smoke.service.js.map +1 -1
- package/dist/src/services/application/application-creation-readiness.service.d.ts.map +1 -1
- package/dist/src/services/application/application-creation-readiness.service.js.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.d.ts +10 -6
- package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.js +32 -18
- package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
- package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -1
- package/dist/src/services/application/application-dev-port-offsets.js.map +1 -1
- package/dist/src/services/application/application-dev-script-migration.service.d.ts +56 -0
- package/dist/src/services/application/application-dev-script-migration.service.d.ts.map +1 -0
- package/dist/src/services/application/application-dev-script-migration.service.js +208 -0
- package/dist/src/services/application/application-dev-script-migration.service.js.map +1 -0
- package/dist/src/services/application/application-initialization-verification.service.d.ts +8 -0
- package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
- package/dist/src/services/application/application-initialization-verification.service.js +31 -11
- package/dist/src/services/application/application-initialization-verification.service.js.map +1 -1
- package/dist/src/services/application/application-root.utils.d.ts.map +1 -1
- package/dist/src/services/application/application-root.utils.js.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.js +2 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/backend-config.paths.d.ts.map +1 -1
- package/dist/src/services/application/backend-config.paths.js.map +1 -1
- package/dist/src/services/application/composition-provider-plan.service.d.ts +1 -1
- package/dist/src/services/application/composition-provider-plan.service.d.ts.map +1 -1
- package/dist/src/services/application/composition-provider-plan.service.js +53 -28
- package/dist/src/services/application/composition-provider-plan.service.js.map +1 -1
- package/dist/src/services/application/content-guardrail-classifier.service.d.ts +19 -0
- package/dist/src/services/application/content-guardrail-classifier.service.d.ts.map +1 -1
- package/dist/src/services/application/content-guardrail-classifier.service.js +76 -12
- package/dist/src/services/application/content-guardrail-classifier.service.js.map +1 -1
- package/dist/src/services/application/creation-host-readiness.service.d.ts +13 -1
- package/dist/src/services/application/creation-host-readiness.service.d.ts.map +1 -1
- package/dist/src/services/application/creation-host-readiness.service.js +44 -5
- package/dist/src/services/application/creation-host-readiness.service.js.map +1 -1
- package/dist/src/services/application/creation-preflight.service.d.ts.map +1 -1
- package/dist/src/services/application/creation-preflight.service.js.map +1 -1
- package/dist/src/services/application/degraded-registration-declaration-convergence.service.d.ts.map +1 -1
- package/dist/src/services/application/degraded-registration-declaration-convergence.service.js.map +1 -1
- package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -1
- package/dist/src/services/application/dev-orchestrator.service.js.map +1 -1
- package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
- package/dist/src/services/application/dev-schema-drift.service.js.map +1 -1
- package/dist/src/services/application/engine-label-base-seeding.service.d.ts +85 -0
- package/dist/src/services/application/engine-label-base-seeding.service.d.ts.map +1 -0
- package/dist/src/services/application/engine-label-base-seeding.service.js +130 -0
- package/dist/src/services/application/engine-label-base-seeding.service.js.map +1 -0
- package/dist/src/services/application/environment-provider-configurations.service.d.ts.map +1 -1
- package/dist/src/services/application/environment-provider-configurations.service.js.map +1 -1
- package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/existing-app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/frontend-provider-sdk-declarations.service.d.ts.map +1 -1
- package/dist/src/services/application/frontend-provider-sdk-declarations.service.js +1 -1
- package/dist/src/services/application/frontend-provider-sdk-declarations.service.js.map +1 -1
- package/dist/src/services/application/frontend-provider-source.service.d.ts.map +1 -1
- package/dist/src/services/application/frontend-provider-source.service.js.map +1 -1
- package/dist/src/services/application/frontend-providers-not-configured.service.d.ts.map +1 -1
- package/dist/src/services/application/frontend-providers-not-configured.service.js.map +1 -1
- package/dist/src/services/application/frontend-public-config-secret-screen.service.d.ts.map +1 -1
- package/dist/src/services/application/frontend-public-config-secret-screen.service.js.map +1 -1
- package/dist/src/services/application/infra-system-of-record-addresses.editor.d.ts +13 -0
- package/dist/src/services/application/infra-system-of-record-addresses.editor.d.ts.map +1 -0
- package/dist/src/services/application/infra-system-of-record-addresses.editor.js +185 -0
- package/dist/src/services/application/infra-system-of-record-addresses.editor.js.map +1 -0
- package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -1
- package/dist/src/services/application/local-app-reinit.service.js.map +1 -1
- package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -1
- package/dist/src/services/application/local-application-initialization.service.js.map +1 -1
- package/dist/src/services/application/local-provider-doubles.service.d.ts +98 -0
- package/dist/src/services/application/local-provider-doubles.service.d.ts.map +1 -0
- package/dist/src/services/application/local-provider-doubles.service.js +214 -0
- package/dist/src/services/application/local-provider-doubles.service.js.map +1 -0
- package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
- package/dist/src/services/application/provider-runtime-sync.service.js +38 -10
- package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
- package/dist/src/services/application/saas-scaffold.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-scaffold.service.js.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.d.ts +6 -2
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.js +46 -11
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
- package/dist/src/services/application/stored-declaration-currency.service.d.ts.map +1 -1
- package/dist/src/services/application/stored-declaration-currency.service.js.map +1 -1
- package/dist/src/services/application/system-of-record-simulators.service.d.ts +221 -0
- package/dist/src/services/application/system-of-record-simulators.service.d.ts.map +1 -0
- package/dist/src/services/application/system-of-record-simulators.service.js +442 -0
- package/dist/src/services/application/system-of-record-simulators.service.js.map +1 -0
- package/dist/src/services/application/systems-of-record-library.service.d.ts +1 -1
- package/dist/src/services/application/systems-of-record-library.service.d.ts.map +1 -1
- package/dist/src/services/application/systems-of-record-library.service.js +6 -3
- package/dist/src/services/application/systems-of-record-library.service.js.map +1 -1
- package/dist/src/services/assurance/assurance-cycle-location.service.d.ts +59 -0
- package/dist/src/services/assurance/assurance-cycle-location.service.d.ts.map +1 -0
- package/dist/src/services/assurance/assurance-cycle-location.service.js +139 -0
- package/dist/src/services/assurance/assurance-cycle-location.service.js.map +1 -0
- package/dist/src/services/blueprint/blueprint-apply.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-apply.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-artifact.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-artifact.service.js +2 -1
- package/dist/src/services/blueprint/blueprint-artifact.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-definition.reader.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-definition.reader.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-export.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-export.service.js +2 -1
- package/dist/src/services/blueprint/blueprint-export.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-line.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-line.service.js +5 -3
- package/dist/src/services/blueprint/blueprint-line.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-module-references.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-module-references.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-registry.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-registry.service.js.map +1 -1
- package/dist/src/services/blueprint/blueprint-report.d.ts.map +1 -1
- package/dist/src/services/blueprint/blueprint-report.js.map +1 -1
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.d.ts +1 -1
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.js +1 -1
- package/dist/src/services/blueprint/framework-blueprint-catalog.service.js.map +1 -1
- package/dist/src/services/blueprint/framework-blueprints.service.d.ts.map +1 -1
- package/dist/src/services/blueprint/framework-blueprints.service.js +20 -7
- package/dist/src/services/blueprint/framework-blueprints.service.js.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.d.ts +8 -33
- package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.js +23 -6
- package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -1
- package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts.map +1 -1
- package/dist/src/services/coding-agents/acp-conformance-probe.service.js.map +1 -1
- package/dist/src/services/coding-agents/coding-agent-login.service.d.ts.map +1 -1
- package/dist/src/services/coding-agents/coding-agent-login.service.js.map +1 -1
- package/dist/src/services/companion/agent-stop-reason-words.d.ts.map +1 -1
- package/dist/src/services/companion/agent-stop-reason-words.js.map +1 -1
- package/dist/src/services/companion/agent-work-shortfall-words.d.ts.map +1 -1
- package/dist/src/services/companion/agent-work-shortfall-words.js +21 -2
- package/dist/src/services/companion/agent-work-shortfall-words.js.map +1 -1
- package/dist/src/services/companion/build-console.service.d.ts +179 -7
- package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/build-console.service.js +184 -15
- package/dist/src/services/companion/build-console.service.js.map +1 -1
- package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client-options.utils.js.map +1 -1
- package/dist/src/services/companion/companion-client.service.d.ts +25 -1
- package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client.service.js +61 -10
- package/dist/src/services/companion/companion-client.service.js.map +1 -1
- package/dist/src/services/companion/companion-health-hint.utils.d.ts +2 -1
- package/dist/src/services/companion/companion-health-hint.utils.d.ts.map +1 -1
- package/dist/src/services/companion/companion-health-hint.utils.js +8 -1
- package/dist/src/services/companion/companion-health-hint.utils.js.map +1 -1
- package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-lifecycle.service.js.map +1 -1
- package/dist/src/services/companion/companion-local-token.utils.d.ts.map +1 -1
- package/dist/src/services/companion/companion-local-token.utils.js.map +1 -1
- package/dist/src/services/companion/companion.schemas.d.ts.map +1 -1
- package/dist/src/services/companion/companion.schemas.js.map +1 -1
- package/dist/src/services/companion/console-agent.d.ts +50 -0
- package/dist/src/services/companion/console-agent.d.ts.map +1 -0
- package/dist/src/services/companion/console-agent.js +67 -0
- package/dist/src/services/companion/console-agent.js.map +1 -0
- package/dist/src/services/companion/console-fast-path.d.ts +6 -4
- package/dist/src/services/companion/console-fast-path.d.ts.map +1 -1
- package/dist/src/services/companion/console-fast-path.js +12 -9
- package/dist/src/services/companion/console-fast-path.js.map +1 -1
- package/dist/src/services/companion/console-verb.utils.d.ts +7 -0
- package/dist/src/services/companion/console-verb.utils.d.ts.map +1 -1
- package/dist/src/services/companion/console-verb.utils.js +22 -1
- package/dist/src/services/companion/console-verb.utils.js.map +1 -1
- package/dist/src/services/companion/creation-console.service.d.ts +44 -13
- package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-console.service.js +121 -7
- package/dist/src/services/companion/creation-console.service.js.map +1 -1
- package/dist/src/services/companion/creation-drive.service.d.ts +262 -0
- package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -0
- package/dist/src/services/companion/creation-drive.service.js +499 -0
- package/dist/src/services/companion/creation-drive.service.js.map +1 -0
- package/dist/src/services/companion/creation-run-report.models.d.ts +14 -0
- package/dist/src/services/companion/creation-run-report.models.d.ts.map +1 -1
- package/dist/src/services/companion/creation-run-report.models.js.map +1 -1
- package/dist/src/services/companion/git-helper.service.d.ts.map +1 -1
- package/dist/src/services/companion/git-helper.service.js.map +1 -1
- package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -1
- package/dist/src/services/companion/local-companion-authority.service.js.map +1 -1
- package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -1
- package/dist/src/services/companion/workbench-browser-launcher.service.js.map +1 -1
- package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -1
- package/dist/src/services/companion/workbench-cli.service.js.map +1 -1
- package/dist/src/services/compliance/data-retention-schedule.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/data-retention-schedule.generator.js.map +1 -1
- package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts.map +1 -1
- package/dist/src/services/compliance/generated-compliance-module-wiring.js.map +1 -1
- package/dist/src/services/compliance/governed-document-releases.generator.d.ts +22 -6
- package/dist/src/services/compliance/governed-document-releases.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/governed-document-releases.generator.js +31 -11
- package/dist/src/services/compliance/governed-document-releases.generator.js.map +1 -1
- package/dist/src/services/compliance/legal-notice.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/legal-notice.generator.js.map +1 -1
- package/dist/src/services/compliance/service-consent-requirement.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/service-consent-requirement.generator.js.map +1 -1
- package/dist/src/services/compliance/subject-data-recipients.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/subject-data-recipients.generator.js.map +1 -1
- package/dist/src/services/context/context-manager.service.d.ts.map +1 -1
- package/dist/src/services/context/context-manager.service.js.map +1 -1
- package/dist/src/services/context/context.schemas.d.ts.map +1 -1
- package/dist/src/services/context/context.schemas.js.map +1 -1
- package/dist/src/services/context/machine-preferences.writer.d.ts.map +1 -1
- package/dist/src/services/context/machine-preferences.writer.js.map +1 -1
- package/dist/src/services/context/state-manager.service.d.ts.map +1 -1
- package/dist/src/services/context/state-manager.service.js.map +1 -1
- package/dist/src/services/credentials/application-secret-owners.service.d.ts +6 -1
- package/dist/src/services/credentials/application-secret-owners.service.d.ts.map +1 -1
- package/dist/src/services/credentials/application-secret-owners.service.js +50 -102
- package/dist/src/services/credentials/application-secret-owners.service.js.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.js +42 -13
- package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
- package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -1
- package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts +54 -3
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.js +77 -14
- package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.d.ts +21 -159
- package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.js +35 -18
- package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
- package/dist/src/services/credentials/credentials.service.d.ts +8 -2
- package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.service.js +11 -2
- package/dist/src/services/credentials/credentials.service.js.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.d.ts +19 -5
- package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.js +42 -14
- package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
- package/dist/src/services/credentials/local-defaults.service.d.ts.map +1 -1
- package/dist/src/services/credentials/local-defaults.service.js.map +1 -1
- package/dist/src/services/credentials/local-secrets-store.service.d.ts.map +1 -1
- package/dist/src/services/credentials/local-secrets-store.service.js.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.js +21 -5
- package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
- package/dist/src/services/credentials/provider-secret-format.d.ts.map +1 -1
- package/dist/src/services/credentials/provider-secret-format.js.map +1 -1
- package/dist/src/services/credentials/remote-secrets-store.service.d.ts.map +1 -1
- package/dist/src/services/credentials/remote-secrets-store.service.js.map +1 -1
- package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-provisioning.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-reader.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.d.ts +9 -0
- package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.js +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts +4 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.js +4 -2
- package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.d.ts +9 -0
- package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.js +9 -0
- package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
- package/dist/src/services/data-services/data-services.service.d.ts.map +1 -1
- package/dist/src/services/data-services/data-services.service.js.map +1 -1
- package/dist/src/services/data-services/platform-key-vault.break-glass.service.d.ts +93 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.service.d.ts.map +1 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.service.js +253 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.service.js.map +1 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.target.d.ts +22 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.target.d.ts.map +1 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.target.js +64 -0
- package/dist/src/services/data-services/platform-key-vault.break-glass.target.js.map +1 -0
- package/dist/src/services/data-services/platform-key-vault.server-config.d.ts +42 -11
- package/dist/src/services/data-services/platform-key-vault.server-config.d.ts.map +1 -1
- package/dist/src/services/data-services/platform-key-vault.server-config.js +63 -16
- package/dist/src/services/data-services/platform-key-vault.server-config.js.map +1 -1
- package/dist/src/services/deployment/application-first-run-checks.service.d.ts +131 -0
- package/dist/src/services/deployment/application-first-run-checks.service.d.ts.map +1 -0
- package/dist/src/services/deployment/application-first-run-checks.service.js +438 -0
- package/dist/src/services/deployment/application-first-run-checks.service.js.map +1 -0
- package/dist/src/services/deployment/application-runtime-environment.d.ts +93 -0
- package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -0
- package/dist/src/services/deployment/application-runtime-environment.js +116 -0
- package/dist/src/services/deployment/application-runtime-environment.js.map +1 -0
- package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -1
- package/dist/src/services/deployment/apps-manager-diagnostics.service.js.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js +14 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
- package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/backing-service-health-watch.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/backing-service-health-watch.js.map +1 -1
- package/dist/src/services/deployment/docker/compose-service-health.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/compose-service-health.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +177 -51
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js +368 -93
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.js.map +1 -1
- package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker.schemas.js.map +1 -1
- package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker.service.js.map +1 -1
- package/dist/src/services/deployment/docker/local-data-adoption.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/local-data-adoption.service.js.map +1 -1
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts +56 -0
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts.map +1 -0
- package/dist/src/services/deployment/framework-pod-network-membership.js +126 -0
- package/dist/src/services/deployment/framework-pod-network-membership.js.map +1 -0
- package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
- package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
- package/dist/src/services/deployment/infra-writer.service.js +4 -4
- package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/cluster-controller-charts.constants.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/cluster-controller-charts.constants.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +51 -10
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +179 -43
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +38 -2
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-operations.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +35 -31
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s.schemas.js.map +1 -1
- package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/kind.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts +38 -0
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.js +84 -0
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.js.map +1 -0
- package/dist/src/services/deployment/local-dev-log-retention.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-log-retention.service.js +3 -2
- package/dist/src/services/deployment/local-dev-log-retention.service.js.map +1 -1
- package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-observer-lifecycle.js.map +1 -1
- package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-output-boundary.js.map +1 -1
- package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-session-lease.service.js +22 -1
- package/dist/src/services/deployment/local-dev-session-lease.service.js.map +1 -1
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.js.map +1 -1
- package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-infrastructure-initialization.service.js.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.schemas.js.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts +53 -0
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.js +118 -1
- package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.js +32 -1
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.js.map +1 -1
- package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/deployment/platform-lifecycle.service.js.map +1 -1
- package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -1
- package/dist/src/services/deployment/platform-runtime-policy.service.js.map +1 -1
- package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -1
- package/dist/src/services/deployment/version-compare.utils.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-command.service.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.service.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.template.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-css-block.service.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-paths.service.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.constants.js.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.models.js.map +1 -1
- package/dist/src/services/environment/application-backing-service-addressing.utils.d.ts.map +1 -1
- package/dist/src/services/environment/application-backing-service-addressing.utils.js.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.d.ts +9 -1
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.js +14 -1
- package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
- package/dist/src/services/environment/authored-infra-member-authority.d.ts +87 -0
- package/dist/src/services/environment/authored-infra-member-authority.d.ts.map +1 -0
- package/dist/src/services/environment/authored-infra-member-authority.js +256 -0
- package/dist/src/services/environment/authored-infra-member-authority.js.map +1 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.d.ts +56 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.d.ts.map +1 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.js +102 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.js.map +1 -0
- package/dist/src/services/environment/env-configuration-generator.service.d.ts +13 -8
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js +38 -13
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
- package/dist/src/services/environment/env-sync.service.d.ts +3 -2
- package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-sync.service.js +21 -7
- package/dist/src/services/environment/env-sync.service.js.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts +35 -4
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.js +88 -55
- package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
- package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
- package/dist/src/services/environment/environment-hydration.utils.js +29 -30
- package/dist/src/services/environment/environment-hydration.utils.js.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts +19 -0
- package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.js +35 -0
- package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
- package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-paths.service.js.map +1 -1
- package/dist/src/services/environment/environment-registry.service.d.ts +5 -6
- package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-registry.service.js +5 -6
- package/dist/src/services/environment/environment-registry.service.js.map +1 -1
- package/dist/src/services/environment/environment-service-profile.utils.d.ts +34 -0
- package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -0
- package/dist/src/services/environment/environment-service-profile.utils.js +43 -0
- package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -0
- package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.js +1 -1
- package/dist/src/services/environment/environment-setup.service.js.map +1 -1
- package/dist/src/services/environment/environment.schemas.d.ts +14 -11
- package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/environment.schemas.js.map +1 -1
- package/dist/src/services/environment/environment.service.d.ts +5 -0
- package/dist/src/services/environment/environment.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment.service.js +2 -0
- package/dist/src/services/environment/environment.service.js.map +1 -1
- package/dist/src/services/environment/hosted-infrastructure-leftovers.service.d.ts.map +1 -1
- package/dist/src/services/environment/hosted-infrastructure-leftovers.service.js.map +1 -1
- package/dist/src/services/environment/infrastructure-host.service.d.ts.map +1 -1
- package/dist/src/services/environment/infrastructure-host.service.js.map +1 -1
- package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -1
- package/dist/src/services/environment/platform-engine-change.utils.js.map +1 -1
- package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime-state.service.js.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.d.ts +26 -0
- package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.js +28 -0
- package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts +106 -61
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.js +178 -152
- package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -1
- package/dist/src/services/framework/application-agent-hooks-console.d.ts +153 -0
- package/dist/src/services/framework/application-agent-hooks-console.d.ts.map +1 -0
- package/dist/src/services/framework/application-agent-hooks-console.js +401 -0
- package/dist/src/services/framework/application-agent-hooks-console.js.map +1 -0
- package/dist/src/services/framework/application-agent-skills-console.d.ts +78 -0
- package/dist/src/services/framework/application-agent-skills-console.d.ts.map +1 -0
- package/dist/src/services/framework/application-agent-skills-console.js +116 -0
- package/dist/src/services/framework/application-agent-skills-console.js.map +1 -0
- package/dist/src/services/framework/application-claude-settings.d.ts.map +1 -1
- package/dist/src/services/framework/application-claude-settings.js.map +1 -1
- package/dist/src/services/framework/application-console-loaders.d.ts +107 -0
- package/dist/src/services/framework/application-console-loaders.d.ts.map +1 -0
- package/dist/src/services/framework/application-console-loaders.js +221 -0
- package/dist/src/services/framework/application-console-loaders.js.map +1 -0
- package/dist/src/services/framework/application-opencode-console.d.ts +43 -0
- package/dist/src/services/framework/application-opencode-console.d.ts.map +1 -0
- package/dist/src/services/framework/application-opencode-console.js +68 -0
- package/dist/src/services/framework/application-opencode-console.js.map +1 -0
- package/dist/src/services/framework/application-provider-skills.service.d.ts.map +1 -1
- package/dist/src/services/framework/application-provider-skills.service.js.map +1 -1
- package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -1
- package/dist/src/services/framework/application-rule-imports.js.map +1 -1
- package/dist/src/services/framework/auditable-event-catalog.generator.d.ts.map +1 -1
- package/dist/src/services/framework/auditable-event-catalog.generator.js.map +1 -1
- package/dist/src/services/framework/claude-plugin-compiler.d.ts +6 -0
- package/dist/src/services/framework/claude-plugin-compiler.d.ts.map +1 -1
- package/dist/src/services/framework/claude-plugin-compiler.js +6 -1
- package/dist/src/services/framework/claude-plugin-compiler.js.map +1 -1
- package/dist/src/services/framework/dev-compile-status.paths.d.ts.map +1 -1
- package/dist/src/services/framework/dev-compile-status.paths.js.map +1 -1
- package/dist/src/services/framework/enum-member-docs.reader.d.ts.map +1 -1
- package/dist/src/services/framework/enum-member-docs.reader.js.map +1 -1
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.d.ts +5 -0
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.d.ts.map +1 -1
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.js +7 -2
- package/dist/src/services/framework/flows-actors-realtime-catalog.generator.js.map +1 -1
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +19 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-development-skills-sync.service.js +18 -4
- package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.d.ts +34 -2
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.js +63 -17
- package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +20 -3
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.js +86 -3
- package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-scan.constants.js.map +1 -1
- package/dist/src/services/framework/framework-npm-credential.d.ts +76 -0
- package/dist/src/services/framework/framework-npm-credential.d.ts.map +1 -0
- package/dist/src/services/framework/framework-npm-credential.js +113 -0
- package/dist/src/services/framework/framework-npm-credential.js.map +1 -0
- package/dist/src/services/framework/framework-npm-dist-tag.service.d.ts +100 -8
- package/dist/src/services/framework/framework-npm-dist-tag.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-dist-tag.service.js +147 -25
- package/dist/src/services/framework/framework-npm-dist-tag.service.js.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.d.ts +50 -4
- package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.js +128 -56
- package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
- package/dist/src/services/framework/framework-publish-cli-origin.d.ts +22 -0
- package/dist/src/services/framework/framework-publish-cli-origin.d.ts.map +1 -0
- package/dist/src/services/framework/framework-publish-cli-origin.js +49 -0
- package/dist/src/services/framework/framework-publish-cli-origin.js.map +1 -0
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts +18 -3
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-publish-manifest.service.js +43 -75
- package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
- package/dist/src/services/framework/framework-release.service.d.ts +13 -0
- package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-release.service.js +15 -2
- package/dist/src/services/framework/framework-release.service.js.map +1 -1
- package/dist/src/services/framework/framework-update.service.d.ts +7 -3
- package/dist/src/services/framework/framework-update.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-update.service.js +25 -16
- package/dist/src/services/framework/framework-update.service.js.map +1 -1
- package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-version.service.js.map +1 -1
- package/dist/src/services/framework/frontend-component-catalog.generator.d.ts.map +1 -1
- package/dist/src/services/framework/frontend-component-catalog.generator.js.map +1 -1
- package/dist/src/services/framework/frontend-library-root-exports.d.ts.map +1 -1
- package/dist/src/services/framework/frontend-library-root-exports.js.map +1 -1
- package/dist/src/services/framework/installed-framework-assets.service.d.ts +2 -2
- package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
- package/dist/src/services/framework/installed-framework-assets.service.js +4 -0
- package/dist/src/services/framework/installed-framework-assets.service.js.map +1 -1
- package/dist/src/services/framework/npm-registry-output.d.ts.map +1 -1
- package/dist/src/services/framework/npm-registry-output.js.map +1 -1
- package/dist/src/services/framework/package-install.service.d.ts +13 -3
- package/dist/src/services/framework/package-install.service.d.ts.map +1 -1
- package/dist/src/services/framework/package-install.service.js +22 -9
- package/dist/src/services/framework/package-install.service.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/api-version-settlement.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/api-version-settlement.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/base-url-settlement.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/base-url-settlement.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-merge.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-merge.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.js +3 -3
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/request-helper-url.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/request-helper-url.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/sim-source.reader.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/source-static-evaluator.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/source-static-evaluator.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.js.map +1 -1
- package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/url-template.extractor.js.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host-monitoring.d.ts.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host-monitoring.js.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host-remote.d.ts.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host-remote.js.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -1
- package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -1
- package/dist/src/services/frontend/cloudflare-cdn.service.js +3 -6
- package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -1
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts +11 -3
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-dist-uploader.service.js +72 -29
- package/dist/src/services/frontend/frontend-dist-uploader.service.js.map +1 -1
- package/dist/src/services/frontend/frontend-look.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-look.service.js +2 -1
- package/dist/src/services/frontend/frontend-look.service.js.map +1 -1
- package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-publish.service.js.map +1 -1
- package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/domain-generator.service.js.map +1 -1
- package/dist/src/services/generation/generator.schemas.d.ts.map +1 -1
- package/dist/src/services/generation/generator.schemas.js.map +1 -1
- package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/operation-generator.service.js.map +1 -1
- package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/resource-generator.service.js.map +1 -1
- package/dist/src/services/generation/template-registry.service.d.ts.map +1 -1
- package/dist/src/services/generation/template-registry.service.js.map +1 -1
- package/dist/src/services/registry/application-provider-connection.service.d.ts +161 -0
- package/dist/src/services/registry/application-provider-connection.service.d.ts.map +1 -0
- package/dist/src/services/registry/application-provider-connection.service.js +337 -0
- package/dist/src/services/registry/application-provider-connection.service.js.map +1 -0
- package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
- package/dist/src/services/registry/artifact-extractor.utils.js.map +1 -1
- package/dist/src/services/registry/artifact-trust.utils.d.ts.map +1 -1
- package/dist/src/services/registry/artifact-trust.utils.js.map +1 -1
- package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -1
- package/dist/src/services/registry/boundary-fanout.utils.js.map +1 -1
- package/dist/src/services/registry/git-ignored-paths.utils.d.ts.map +1 -1
- package/dist/src/services/registry/git-ignored-paths.utils.js +13 -2
- package/dist/src/services/registry/git-ignored-paths.utils.js.map +1 -1
- package/dist/src/services/registry/index.d.ts.map +1 -1
- package/dist/src/services/registry/index.js.map +1 -1
- package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
- package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
- package/dist/src/services/registry/installed-provider-module.service.d.ts.map +1 -1
- package/dist/src/services/registry/installed-provider-module.service.js.map +1 -1
- package/dist/src/services/registry/local-checkout-module-source.service.d.ts.map +1 -1
- package/dist/src/services/registry/local-checkout-module-source.service.js.map +1 -1
- package/dist/src/services/registry/migration-obligation.utils.d.ts.map +1 -1
- package/dist/src/services/registry/migration-obligation.utils.js.map +1 -1
- package/dist/src/services/registry/module-acquisition.utils.d.ts.map +1 -1
- package/dist/src/services/registry/module-acquisition.utils.js.map +1 -1
- package/dist/src/services/registry/module-artifact-files.utils.d.ts.map +1 -1
- package/dist/src/services/registry/module-artifact-files.utils.js.map +1 -1
- package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-install.service.js.map +1 -1
- package/dist/src/services/registry/module-publish.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-publish.service.js +16 -7
- package/dist/src/services/registry/module-publish.service.js.map +1 -1
- package/dist/src/services/registry/module-registration.service.d.ts +0 -11
- package/dist/src/services/registry/module-registration.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-registration.service.js +88 -149
- package/dist/src/services/registry/module-registration.service.js.map +1 -1
- package/dist/src/services/registry/module-requirements.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-requirements.service.js +5 -5
- package/dist/src/services/registry/module-requirements.service.js.map +1 -1
- package/dist/src/services/registry/provider-configuration-checks.service.d.ts +55 -0
- package/dist/src/services/registry/provider-configuration-checks.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-configuration-checks.service.js +208 -0
- package/dist/src/services/registry/provider-configuration-checks.service.js.map +1 -0
- package/dist/src/services/registry/provider-connect.service.d.ts +300 -0
- package/dist/src/services/registry/provider-connect.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-connect.service.js +712 -0
- package/dist/src/services/registry/provider-connect.service.js.map +1 -0
- package/dist/src/services/registry/provider-graphql-schema-conformance.service.d.ts +29 -0
- package/dist/src/services/registry/provider-graphql-schema-conformance.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-graphql-schema-conformance.service.js +121 -0
- package/dist/src/services/registry/provider-graphql-schema-conformance.service.js.map +1 -0
- package/dist/src/services/registry/provider-install-step.d.ts +38 -4
- package/dist/src/services/registry/provider-install-step.d.ts.map +1 -1
- package/dist/src/services/registry/provider-install-step.js +56 -11
- package/dist/src/services/registry/provider-install-step.js.map +1 -1
- package/dist/src/services/registry/provider-module-checks.service.d.ts +12 -1
- package/dist/src/services/registry/provider-module-checks.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-checks.service.js +114 -25
- package/dist/src/services/registry/provider-module-checks.service.js.map +1 -1
- package/dist/src/services/registry/provider-module-engine-range.service.d.ts +88 -0
- package/dist/src/services/registry/provider-module-engine-range.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-module-engine-range.service.js +386 -0
- package/dist/src/services/registry/provider-module-engine-range.service.js.map +1 -0
- package/dist/src/services/registry/provider-module-identity.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-identity.service.js.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.d.ts +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.js +9 -0
- package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
- package/dist/src/services/registry/provider-module-vendor-packages.service.d.ts +2 -2
- package/dist/src/services/registry/provider-module-vendor-packages.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-vendor-packages.service.js +9 -6
- package/dist/src/services/registry/provider-module-vendor-packages.service.js.map +1 -1
- package/dist/src/services/registry/provider-openapi-conformance.service.d.ts +22 -12
- package/dist/src/services/registry/provider-openapi-conformance.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-openapi-conformance.service.js +122 -51
- package/dist/src/services/registry/provider-openapi-conformance.service.js.map +1 -1
- package/dist/src/services/registry/provider-probe-credentials.service.d.ts +94 -0
- package/dist/src/services/registry/provider-probe-credentials.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-probe-credentials.service.js +184 -0
- package/dist/src/services/registry/provider-probe-credentials.service.js.map +1 -0
- package/dist/src/services/registry/provider-probe.service.d.ts +189 -5
- package/dist/src/services/registry/provider-probe.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-probe.service.js +268 -54
- package/dist/src/services/registry/provider-probe.service.js.map +1 -1
- package/dist/src/services/registry/provider-proof.service.d.ts +206 -0
- package/dist/src/services/registry/provider-proof.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-proof.service.js +640 -0
- package/dist/src/services/registry/provider-proof.service.js.map +1 -0
- package/dist/src/services/registry/provider-publication.service.d.ts +8 -0
- package/dist/src/services/registry/provider-publication.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-publication.service.js +25 -12
- package/dist/src/services/registry/provider-publication.service.js.map +1 -1
- package/dist/src/services/registry/provider-vendor-registration.service.d.ts +10 -0
- package/dist/src/services/registry/provider-vendor-registration.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-vendor-registration.service.js +34 -0
- package/dist/src/services/registry/provider-vendor-registration.service.js.map +1 -1
- package/dist/src/services/registry/provider-wiring.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-wiring.service.js +4 -4
- package/dist/src/services/registry/provider-wiring.service.js.map +1 -1
- package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
- package/dist/src/services/registry/registry-command.utils.js.map +1 -1
- package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -1
- package/dist/src/services/registry/registry-credentials.service.js.map +1 -1
- package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -1
- package/dist/src/services/registry/saas-root-required.error.js.map +1 -1
- package/dist/src/services/security/csp-sync.service.d.ts +20 -1
- package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
- package/dist/src/services/security/csp-sync.service.js +48 -6
- package/dist/src/services/security/csp-sync.service.js.map +1 -1
- package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -1
- package/dist/src/services/tools/utility-tools.service.js.map +1 -1
- package/dist/src/services/tracker/creation-run-tracker.service.d.ts.map +1 -1
- package/dist/src/services/tracker/creation-run-tracker.service.js.map +1 -1
- package/dist/src/services/website/website-label-pack-audit.service.d.ts +2 -2
- package/dist/src/services/website/website-label-pack-audit.service.d.ts.map +1 -1
- package/dist/src/services/website/website-label-pack-audit.service.js +5 -4
- package/dist/src/services/website/website-label-pack-audit.service.js.map +1 -1
- package/dist/src/services/website/website-look.service.d.ts.map +1 -1
- package/dist/src/services/website/website-look.service.js.map +1 -1
- package/dist/src/services/website/website-schema-org-catalog.worker.d.ts +18 -0
- package/dist/src/services/website/website-schema-org-catalog.worker.d.ts.map +1 -0
- package/dist/src/services/website/website-schema-org-catalog.worker.js +104 -0
- package/dist/src/services/website/website-schema-org-catalog.worker.js.map +1 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts +32 -5
- package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
- package/dist/src/services/website/website-structured-data-audit.service.js +63 -36
- package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
- package/dist/src/services/website/website-workspace.service.d.ts +42 -7
- package/dist/src/services/website/website-workspace.service.d.ts.map +1 -1
- package/dist/src/services/website/website-workspace.service.js +121 -12
- package/dist/src/services/website/website-workspace.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/framework-root-package.json +121 -59
- package/package.json +180 -99
- package/scripts/app-dependency-alignment/propagated-engine-overrides.json +67 -27
- package/scripts/dev-orchestrator/local-dev-protocol.mjs +176 -7
- package/scripts/dev-orchestrator/local-dev-status.mjs +297 -31
- package/scripts/pnpm-workspace-members.mjs +146 -0
- package/scripts/pnpm-workspace-settings.mjs +418 -0
- package/templates/infra/ci/deploy-k8s.yml.hbs +1 -1
- package/templates/infra/docker-compose/docker-compose.app.yml.hbs +17 -22
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +139 -63
- package/templates/infra/docker-images/platform/Dockerfile.platform-base +2 -1
- package/templates/infra/k8s/applications/wildo-ai-application/custom-domain-reconciler.yaml.hbs +222 -0
- package/templates/infra/k8s/applications/wildo-ai-application/minion.deployment.yaml.hbs +30 -13
- package/templates/infra/k8s/ingress/cert-manager/wildcard-certificate.yaml.hbs +1 -2
- package/templates/infra/k8s/internal/clamav/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/internal/immudb/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/internal/minio/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/internal/mongodb/deployment.yaml.hbs +11 -0
- package/templates/infra/k8s/internal/mongot/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/internal/openbao/configmap.yaml.hbs +2 -2
- package/templates/infra/k8s/internal/openbao/deployment.yaml.hbs +19 -2
- package/templates/infra/k8s/internal/postgresql/deployment.yaml.hbs +2 -1
- package/templates/infra/k8s/internal/rabbitmq/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/internal/valkey/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/platform/platform-apps-manager/deployment.yaml.hbs +31 -0
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/platform/platform-module-registry/deployment.yaml.hbs +1 -0
- package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +3 -1
- package/templates/infra/registry-host/docker-compose.yml +4 -0
- package/templates/infra/yara-service/requirements.txt +1 -1
- package/templates/saas/blueprints/b2b-saas/blueprint.json +1 -1
- package/templates/saas/blueprints/internal-tool/blueprint.json +13 -1
- package/templates/saas/blueprints/service-firm/blueprint.json +1 -1
- package/templates/saas/engine-peer-closure.json +66 -8
- package/templates/saas/i18n/email/components/labels.fr.ts +1 -1
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/organizationInvoiceRefs/create.organization-billing_payment-failed/labels.fr.ts +7 -5
- package/templates/saas/i18n/email/resources/organizationInvoiceRefs/update.organization-billing_payment-failed/labels.fr.ts +7 -5
- package/templates/saas/i18n/email/resources/organizationMembers/{update.organization-users → update.organization-user-management}/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.en.ts +23 -0
- package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/template.tsx +63 -0
- package/templates/saas/i18n/email/resources/organizationSubscriptions/cancel.organization-billing_subscription-ending/labels.fr.ts +10 -8
- package/templates/saas/i18n/email/resources/organizationSubscriptions/create.organization-billing_subscription-started/labels.fr.ts +5 -3
- package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-ending/labels.fr.ts +11 -9
- package/templates/saas/i18n/email/resources/organizationSubscriptions/update.organization-billing_subscription-started/labels.fr.ts +5 -3
- package/templates/saas/i18n/email/resources/userInvoiceRefs/create.users-custom_payment-failed/labels.fr.ts +8 -6
- package/templates/saas/i18n/email/resources/userInvoiceRefs/update.users-custom_payment-failed/labels.fr.ts +6 -4
- package/templates/saas/i18n/email/resources/userSubscriptions/cancel.users-custom_subscription-ending/labels.fr.ts +10 -8
- package/templates/saas/i18n/email/resources/userSubscriptions/create.users-custom_subscription-started/labels.fr.ts +6 -4
- package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-ending/labels.fr.ts +11 -9
- package/templates/saas/i18n/email/resources/userSubscriptions/update.users-custom_subscription-started/labels.fr.ts +6 -4
- package/templates/saas/i18n/email/system/new-device-login/labels.fr.ts +5 -5
- package/templates/saas/i18n/email/system/relationship-invitation/labels.fr.ts +3 -3
- package/templates/saas/i18n/engine/README.md +8 -3
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_COMMAND_MENU.en.ts +2 -1
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_COMMAND_MENU.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_USER_DROPDOWN.en.ts +2 -1
- package/templates/saas/i18n/engine/components/APPLICATION_LEVEL_USER_DROPDOWN.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.ts +3 -3
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.fr.ts +3 -3
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS.en.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.ts +4 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.fr.ts +4 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS.en.ts +4 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS.fr.ts +4 -1
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_REPRESENTATIVE_ACTIVITY_SETTINGS.en.ts +35 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_REPRESENTATIVE_ACTIVITY_SETTINGS.fr.ts +35 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_SECURITY_SETTINGS.fr.ts +9 -9
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.ts +10 -1
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.fr.ts +10 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +18 -4
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +18 -4
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_USAGE.en.ts +4 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_EXECUTION_USAGE.fr.ts +4 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +4 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +4 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -7
- package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -7
- package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +432 -0
- package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +432 -0
- package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +497 -0
- package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +497 -0
- package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +3 -3
- package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +2 -1
- package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +2 -1
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +57 -42
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +19 -4
- package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +113 -0
- package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +113 -0
- package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +18 -31
- package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +3 -16
- package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +223 -0
- package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +223 -0
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +64 -0
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +64 -0
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +11 -28
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +0 -17
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +10 -24
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +3 -17
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +4 -4
- package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +5 -5
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +14 -14
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +3 -3
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +44 -44
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/applications.en.ts +280 -8
- package/templates/saas/i18n/engine/resources/applications.fr.ts +279 -7
- package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +529 -0
- package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +529 -0
- package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +281 -325
- package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +120 -164
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +36 -36
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +4 -4
- package/templates/saas/i18n/engine/resources/files.en.ts +30 -1
- package/templates/saas/i18n/engine/resources/files.fr.ts +30 -1
- package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +226 -248
- package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +60 -82
- package/templates/saas/i18n/engine/resources/legalHolds.en.ts +21 -21
- package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +221 -0
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +221 -0
- package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +184 -0
- package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +184 -0
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +16 -26
- package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -12
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +24 -22
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +24 -22
- package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +64 -0
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +64 -0
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +11 -28
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +0 -17
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +12 -4
- package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +12 -4
- package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +23 -4
- package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +23 -4
- package/templates/saas/i18n/engine/resources/{workbenchParkedCodingQuestions.en.ts → organizationModelUsageCeilingState.en.ts} +75 -81
- package/templates/saas/i18n/engine/resources/{workbenchParkedCodingQuestions.fr.ts → organizationModelUsageCeilingState.fr.ts} +75 -81
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +35 -45
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -12
- package/templates/saas/i18n/engine/resources/{workbenchComplianceCandidateVariantSelections.en.ts → organizationPersonTokenCeilingState.en.ts} +70 -54
- package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +166 -0
- package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +9 -1
- package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +9 -1
- package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +27 -27
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +17 -2
- package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +17 -2
- package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +8 -2
- package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +8 -2
- package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +20 -28
- package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +1 -9
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +6 -6
- package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +6 -6
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +15 -15
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +4 -4
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +69 -69
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +169 -169
- package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +4 -4
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +19 -3
- package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +18 -2
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +9 -9
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/organizations.en.ts +45 -10
- package/templates/saas/i18n/engine/resources/organizations.fr.ts +45 -10
- package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +46 -46
- package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/{workbenchCreationHomeLines.en.ts → postCommitEffectOutbox.en.ts} +58 -75
- package/templates/saas/i18n/engine/resources/{workbenchCreationHomeLines.fr.ts → postCommitEffectOutbox.fr.ts} +58 -75
- package/templates/saas/i18n/engine/resources/prices.en.ts +10 -10
- package/templates/saas/i18n/engine/resources/prices.fr.ts +10 -10
- package/templates/saas/i18n/engine/resources/products.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/products.fr.ts +5 -5
- package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +345 -0
- package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +345 -0
- package/templates/saas/i18n/engine/resources/promotions.en.ts +10 -10
- package/templates/saas/i18n/engine/resources/promotions.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +19 -1
- package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +19 -1
- package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +334 -0
- package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +334 -0
- package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +24 -24
- package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +8 -2
- package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +8 -2
- package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +223 -2
- package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +223 -2
- package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -0
- package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -0
- package/templates/saas/i18n/engine/resources/{workbenchBrandNameJurisdictions.en.ts → ssoDomainReservations.en.ts} +57 -44
- package/templates/saas/i18n/engine/resources/{workbenchMarketCategories.fr.ts → ssoDomainReservations.fr.ts} +52 -47
- package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +69 -0
- package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +69 -0
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +1 -1
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/userBillingAccounts.en.ts +31 -31
- package/templates/saas/i18n/engine/resources/userBillingAccounts.fr.ts +31 -31
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +64 -0
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +64 -0
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +11 -28
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +0 -17
- package/templates/saas/i18n/engine/resources/userInvoiceRefs.en.ts +18 -5
- package/templates/saas/i18n/engine/resources/userInvoiceRefs.fr.ts +18 -5
- package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +5 -7
- package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +2 -4
- package/templates/saas/i18n/engine/resources/userPreferences.en.ts +15 -2
- package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +15 -2
- package/templates/saas/i18n/engine/resources/userProfiles.en.ts +15 -2
- package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +15 -2
- package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +5 -5
- package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +2 -2
- package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +11 -11
- package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +1 -1
- package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +15 -4
- package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +15 -4
- package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +15 -4
- package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +15 -4
- package/templates/saas/i18n/engine/resources/userSubscriptions.en.ts +7 -2
- package/templates/saas/i18n/engine/resources/userSubscriptions.fr.ts +7 -2
- package/templates/saas/i18n/engine/resources/userUsageRecords.en.ts +25 -4
- package/templates/saas/i18n/engine/resources/userUsageRecords.fr.ts +25 -4
- package/templates/saas/i18n/engine/resources/user_self.en.ts +46 -5
- package/templates/saas/i18n/engine/resources/user_self.fr.ts +46 -5
- package/templates/saas/i18n/engine/resources/users.en.ts +23 -36
- package/templates/saas/i18n/engine/resources/users.fr.ts +23 -36
- package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__/landing.landing-hero.json.hbs +6 -0
- package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__.json.hbs +0 -5
- package/templates/saas/scenarios/add-locale/scenario.json +2 -2
- package/templates/saas/scenarios/add-marketing-page/files/website/src/i18n/en/__pageRef__.__pageRef__-hero.json.hbs +4 -0
- package/templates/saas/scenarios/add-marketing-page/scenario.json +3 -5
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/package.json.hbs +2 -2
- package/templates/saas/scenarios/add-resource/files/shared-lib/src/modules/__moduleId__/resources/__resourceDir__/__resourceDir__.schemas.ts.hbs +6 -0
- package/templates/saas/scenarios/add-resource/scenario.json +1 -1
- package/templates/saas/scenarios/add-technical-doc/files/patches/@docusaurus__utils@3.10.2.patch +77 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +15 -13
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/basic.conf +2 -3
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/location/cross-domain-fonts.conf.hbs +3 -5
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/sites-enabled/default.hbs +10 -19
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/package.json.hbs +1 -1
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/scripts/verify-api-reference-conservation.ts +1 -1
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/csp.config.ts +16 -3
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/documentation-site-locales.ts +29 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated/api-reference/indexes/api-reference-search.json +4 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated/consumer-documentation/indexes/search.json +4 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated/csp.generated.json.hbs +10 -2
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/search.tsx +29 -4
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +8 -5
- package/templates/saas/scenarios/add-technical-doc/scenario.json +7 -3
- package/templates/saas/scenarios/add-website/files/website/Dockerfile +2 -0
- package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -8
- package/templates/saas/scenarios/add-website/files/website/package.json.hbs +4 -4
- package/templates/saas/scenarios/add-website/files/website/src/csp.config.ts +10 -2
- package/templates/saas/scenarios/add-website/files/website/src/generated/csp.generated.json.hbs +10 -2
- package/templates/saas/scenarios/add-website/files/website/src/i18n/en/landing.landing-hero.json.hbs +6 -0
- package/templates/saas/scenarios/add-website/files/website/src/i18n/en.json.hbs +0 -5
- package/templates/saas/scenarios/add-website/scenario.json +4 -2
- package/templates/saas/scenarios/add-website-section/files/website/src/i18n/en/__pageRef__.__sectionRef__.json.hbs +10 -0
- package/templates/saas/scenarios/add-website-section/scenario.json +2 -16
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/package.json.hbs +3 -2
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/src/index.ts.hbs +2 -3
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Cargo.lock.hbs +2233 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Cargo.toml.hbs +12 -2
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Dockerfile.hbs +27 -9
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/README.md +96 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/main.rs.hbs +159 -156
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/response_integrity.rs +851 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/worker_request_keys.rs +404 -0
- package/templates/saas/scenarios/add-worker-rust/scenario.json +2 -2
- package/templates/saas/skeleton/.wildo-saas/dev-framework-scripts/sync-engine.sh +39 -7
- package/templates/saas/skeleton/backend-api/package.json.hbs +7 -2
- package/templates/saas/skeleton/backend-api/src/index.ts +7 -6
- package/templates/saas/skeleton/backend-api/src/saas-config.backend.ts.hbs +1 -3
- package/templates/saas/skeleton/backend-api/tsconfig.build.json +1 -1
- package/templates/saas/skeleton/frontend/package.json.hbs +6 -2
- package/templates/saas/skeleton/frontend/src/__tests__/setup.ts.hbs +18 -14
- package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +3 -1
- package/templates/saas/skeleton/frontend/src/csp.config.ts +10 -2
- package/templates/saas/skeleton/frontend/src/engine/component-registrations.frontend.ts +1 -1
- package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +10 -2
- package/templates/saas/skeleton/frontend/src/index.css.hbs +25 -18
- package/templates/saas/skeleton/frontend/src/modules-registry.frontend.ts.hbs +7 -2
- package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +20 -9
- package/templates/saas/skeleton/frontend/vite.config.ts.hbs +22 -3
- package/templates/saas/skeleton/gitignore +13 -0
- package/templates/saas/skeleton/shared-lib/package.json.hbs +6 -1
- package/templates/saas/skeleton/specifications/package.json.hbs +10 -1
- package/templates/saas/skeleton/tsconfig.common.json +6 -2
- package/wildo-framework.info.json +1 -1
- package/dist/src/services/application/provider-package-links.service.d.ts +0 -210
- package/dist/src/services/application/provider-package-links.service.d.ts.map +0 -1
- package/dist/src/services/application/provider-package-links.service.js +0 -421
- package/dist/src/services/application/provider-package-links.service.js.map +0 -1
- package/templates/infra/k8s/ingress/providers/scaleway-annotations.yaml.hbs +0 -39
- package/templates/saas/i18n/engine/resources/workbenchApplicationSecrets.en.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchApplicationSecrets.fr.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchAuthoredDocumentFactDeclarations.en.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchAuthoredDocumentFactDeclarations.fr.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchBrandAssets.en.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchBrandAssets.fr.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchBrandAudiences.en.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchBrandAudiences.fr.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchBrandLogoDirections.en.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBrandLogoDirections.fr.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBrandNameCandidates.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchBrandNameCandidates.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchBrandNameJurisdictions.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchBrandNameNiceClasses.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchBrandNameNiceClasses.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchBrandNames.en.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBrandNames.fr.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBrandVisualTones.en.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBrandVisualTones.fr.ts +0 -166
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatchPlan.en.ts +0 -278
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatchPlan.fr.ts +0 -278
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatches.en.ts +0 -238
- package/templates/saas/i18n/engine/resources/workbenchBuildDispatches.fr.ts +0 -238
- package/templates/saas/i18n/engine/resources/workbenchBuildPlanTasks.en.ts +0 -515
- package/templates/saas/i18n/engine/resources/workbenchBuildPlanTasks.fr.ts +0 -515
- package/templates/saas/i18n/engine/resources/workbenchBuildTaskRecords.en.ts +0 -702
- package/templates/saas/i18n/engine/resources/workbenchBuildTaskRecords.fr.ts +0 -702
- package/templates/saas/i18n/engine/resources/workbenchBuildTasks.en.ts +0 -878
- package/templates/saas/i18n/engine/resources/workbenchBuildTasks.fr.ts +0 -878
- package/templates/saas/i18n/engine/resources/workbenchCodingLaneStatus.en.ts +0 -238
- package/templates/saas/i18n/engine/resources/workbenchCodingLaneStatus.fr.ts +0 -238
- package/templates/saas/i18n/engine/resources/workbenchComplianceApplicabilityDecisions.en.ts +0 -206
- package/templates/saas/i18n/engine/resources/workbenchComplianceApplicabilityDecisions.fr.ts +0 -206
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSections.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSections.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSetSections.en.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateSetSections.fr.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidateVariantSelections.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidates.en.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceCandidates.fr.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceCoverageDecisions.en.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceCoverageDecisions.fr.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceDocumentationRequirements.en.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchComplianceDocumentationRequirements.fr.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchComplianceGaps.en.ts +0 -278
- package/templates/saas/i18n/engine/resources/workbenchComplianceGaps.fr.ts +0 -278
- package/templates/saas/i18n/engine/resources/workbenchComplianceImplementationDecisions.en.ts +0 -214
- package/templates/saas/i18n/engine/resources/workbenchComplianceImplementationDecisions.fr.ts +0 -214
- package/templates/saas/i18n/engine/resources/workbenchComplianceObligations.en.ts +0 -518
- package/templates/saas/i18n/engine/resources/workbenchComplianceObligations.fr.ts +0 -518
- package/templates/saas/i18n/engine/resources/workbenchComplianceResponsibilityAssignments.en.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceResponsibilityAssignments.fr.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceRoleAuthorities.en.ts +0 -326
- package/templates/saas/i18n/engine/resources/workbenchComplianceRoleAuthorities.fr.ts +0 -326
- package/templates/saas/i18n/engine/resources/workbenchComplianceScopeSelectors.en.ts +0 -326
- package/templates/saas/i18n/engine/resources/workbenchComplianceScopeSelectors.fr.ts +0 -326
- package/templates/saas/i18n/engine/resources/workbenchComplianceSharedResponsibilityRules.en.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchComplianceSharedResponsibilityRules.fr.ts +0 -246
- package/templates/saas/i18n/engine/resources/workbenchCompositionDecisions.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchCompositionDecisions.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchCreationOutcomes.en.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchCreationOutcomes.fr.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchDocumentFactDeclarations.en.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchDocumentFactDeclarations.fr.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchDocumentPublicationVariants.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchDocumentPublicationVariants.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchDocumentReleases.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchDocumentReleases.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchDocumentationChapters.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchDocumentationChapters.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanLifecycles.en.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanLifecycles.fr.ts +0 -174
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanModules.en.ts +0 -358
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanModules.fr.ts +0 -358
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanRelationships.en.ts +0 -206
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanRelationships.fr.ts +0 -206
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanResources.en.ts +0 -430
- package/templates/saas/i18n/engine/resources/workbenchDomainPlanResources.fr.ts +0 -430
- package/templates/saas/i18n/engine/resources/workbenchDomainResources.en.ts +0 -534
- package/templates/saas/i18n/engine/resources/workbenchDomainResources.fr.ts +0 -534
- package/templates/saas/i18n/engine/resources/workbenchDossierEntries.en.ts +0 -456
- package/templates/saas/i18n/engine/resources/workbenchDossierEntries.fr.ts +0 -456
- package/templates/saas/i18n/engine/resources/workbenchExperienceConfigurations.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchExperienceConfigurations.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchExperienceGuidance.en.ts +0 -486
- package/templates/saas/i18n/engine/resources/workbenchExperienceGuidance.fr.ts +0 -486
- package/templates/saas/i18n/engine/resources/workbenchExperienceHomes.en.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchExperienceHomes.fr.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchExperienceMilestones.en.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchExperienceMilestones.fr.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchExperienceViews.en.ts +0 -510
- package/templates/saas/i18n/engine/resources/workbenchExperienceViews.fr.ts +0 -510
- package/templates/saas/i18n/engine/resources/workbenchFeatureDrafts.en.ts +0 -390
- package/templates/saas/i18n/engine/resources/workbenchFeatureDrafts.fr.ts +0 -390
- package/templates/saas/i18n/engine/resources/workbenchFunctionalRequirements.en.ts +0 -574
- package/templates/saas/i18n/engine/resources/workbenchFunctionalRequirements.fr.ts +0 -574
- package/templates/saas/i18n/engine/resources/workbenchGovernanceDocuments.en.ts +0 -308
- package/templates/saas/i18n/engine/resources/workbenchGovernanceDocuments.fr.ts +0 -308
- package/templates/saas/i18n/engine/resources/workbenchGovernanceQuestions.en.ts +0 -230
- package/templates/saas/i18n/engine/resources/workbenchGovernanceQuestions.fr.ts +0 -230
- package/templates/saas/i18n/engine/resources/workbenchIntegrationInboundChannels.en.ts +0 -334
- package/templates/saas/i18n/engine/resources/workbenchIntegrationInboundChannels.fr.ts +0 -334
- package/templates/saas/i18n/engine/resources/workbenchIntegrationMinions.en.ts +0 -414
- package/templates/saas/i18n/engine/resources/workbenchIntegrationMinions.fr.ts +0 -414
- package/templates/saas/i18n/engine/resources/workbenchIntegrationProviderBindings.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchIntegrationProviderBindings.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchIntegrationWorkers.en.ts +0 -334
- package/templates/saas/i18n/engine/resources/workbenchIntegrationWorkers.fr.ts +0 -334
- package/templates/saas/i18n/engine/resources/workbenchMarketAlternatives.en.ts +0 -230
- package/templates/saas/i18n/engine/resources/workbenchMarketAlternatives.fr.ts +0 -222
- package/templates/saas/i18n/engine/resources/workbenchMarketBenefits.en.ts +0 -606
- package/templates/saas/i18n/engine/resources/workbenchMarketBenefits.fr.ts +0 -598
- package/templates/saas/i18n/engine/resources/workbenchMarketBuyingJourneys.en.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchMarketBuyingJourneys.fr.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchMarketCategories.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchMarketChannels.en.ts +0 -270
- package/templates/saas/i18n/engine/resources/workbenchMarketChannels.fr.ts +0 -262
- package/templates/saas/i18n/engine/resources/workbenchMarketGains.en.ts +0 -270
- package/templates/saas/i18n/engine/resources/workbenchMarketGains.fr.ts +0 -262
- package/templates/saas/i18n/engine/resources/workbenchMarketIcps.en.ts +0 -990
- package/templates/saas/i18n/engine/resources/workbenchMarketIcps.fr.ts +0 -990
- package/templates/saas/i18n/engine/resources/workbenchMarketJobs.en.ts +0 -350
- package/templates/saas/i18n/engine/resources/workbenchMarketJobs.fr.ts +0 -342
- package/templates/saas/i18n/engine/resources/workbenchMarketMessageTemplates.en.ts +0 -198
- package/templates/saas/i18n/engine/resources/workbenchMarketMessageTemplates.fr.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchMarketObjections.en.ts +0 -422
- package/templates/saas/i18n/engine/resources/workbenchMarketObjections.fr.ts +0 -414
- package/templates/saas/i18n/engine/resources/workbenchMarketPains.en.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchMarketPains.fr.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchMarketPersonas.en.ts +0 -518
- package/templates/saas/i18n/engine/resources/workbenchMarketPersonas.fr.ts +0 -510
- package/templates/saas/i18n/engine/resources/workbenchMarketPositionings.en.ts +0 -342
- package/templates/saas/i18n/engine/resources/workbenchMarketPositionings.fr.ts +0 -334
- package/templates/saas/i18n/engine/resources/workbenchMarketProofs.en.ts +0 -366
- package/templates/saas/i18n/engine/resources/workbenchMarketProofs.fr.ts +0 -358
- package/templates/saas/i18n/engine/resources/workbenchMarketTonesOfVoice.en.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchMarketTonesOfVoice.fr.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchMarketTriggers.en.ts +0 -286
- package/templates/saas/i18n/engine/resources/workbenchMarketTriggers.fr.ts +0 -278
- package/templates/saas/i18n/engine/resources/workbenchNonFunctionalRequirements.en.ts +0 -574
- package/templates/saas/i18n/engine/resources/workbenchNonFunctionalRequirements.fr.ts +0 -574
- package/templates/saas/i18n/engine/resources/workbenchPlacementDecisions.en.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchPlacementDecisions.fr.ts +0 -254
- package/templates/saas/i18n/engine/resources/workbenchPlacementGroups.en.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchPlacementGroups.fr.ts +0 -182
- package/templates/saas/i18n/engine/resources/workbenchPlaybookRuns.en.ts +0 -358
- package/templates/saas/i18n/engine/resources/workbenchPlaybookRuns.fr.ts +0 -358
- package/templates/saas/i18n/engine/resources/workbenchPlaybooks.en.ts +0 -1256
- package/templates/saas/i18n/engine/resources/workbenchPlaybooks.fr.ts +0 -1256
- package/templates/saas/i18n/engine/resources/workbenchPricingPlans.en.ts +0 -286
- package/templates/saas/i18n/engine/resources/workbenchPricingPlans.fr.ts +0 -286
- package/templates/saas/i18n/engine/resources/workbenchProcessorRegisterEntries.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchProcessorRegisterEntries.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchReleasePolicySelections.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchReleasePolicySelections.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchRequirementMaturities.en.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchRequirementMaturities.fr.ts +0 -294
- package/templates/saas/i18n/engine/resources/workbenchRiskRegisterEntries.en.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchRiskRegisterEntries.fr.ts +0 -134
- package/templates/saas/i18n/engine/resources/workbenchRoadmapPhases.en.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchRoadmapPhases.fr.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchRunWriteRecords.en.ts +0 -599
- package/templates/saas/i18n/engine/resources/workbenchRunWriteRecords.fr.ts +0 -599
- package/templates/saas/i18n/engine/resources/workbenchSpecificationArtifacts.en.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchSpecificationArtifacts.fr.ts +0 -478
- package/templates/saas/i18n/engine/resources/workbenchTraceSessions.en.ts +0 -394
- package/templates/saas/i18n/engine/resources/workbenchTraceSessions.fr.ts +0 -394
- package/templates/saas/i18n/engine/resources/workbenchVisionConstraints.en.ts +0 -190
- package/templates/saas/i18n/engine/resources/workbenchVisionConstraints.fr.ts +0 -182
- package/templates/saas/i18n/engine/resources/workbenchVisionIdeas.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchVisionIdeas.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchVisionMissions.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchVisionMissions.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchVisionProblems.en.ts +0 -150
- package/templates/saas/i18n/engine/resources/workbenchVisionProblems.fr.ts +0 -142
- package/templates/saas/i18n/engine/resources/workbenchVisionSuccessCriteria.en.ts +0 -390
- package/templates/saas/i18n/engine/resources/workbenchVisionSuccessCriteria.fr.ts +0 -390
- package/templates/saas/i18n/engine/resources/workbenchWaitingPlaybookRuns.en.ts +0 -214
- package/templates/saas/i18n/engine/resources/workbenchWaitingPlaybookRuns.fr.ts +0 -214
- package/templates/saas/i18n/engine/resources/workbenchWebsitePages.en.ts +0 -214
- package/templates/saas/i18n/engine/resources/workbenchWebsitePages.fr.ts +0 -214
- /package/templates/saas/i18n/email/resources/organizationMembers/{update.organization-users → update.organization-user-management}/labels.en.ts +0 -0
- /package/templates/saas/i18n/email/resources/organizationMembers/{update.organization-users → update.organization-user-management}/labels.fr.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-defaults.service.js","sourceRoot":"","sources":["../../../../../../src/services/credentials/local-defaults.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAG5E,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EACL,kCAAkC,EAClC,aAAa,EACb,2CAA2C,GAC5C,MAAM,2DAA2D,CAAC;AAEnE,iEAAiE;AACjE,6EAA6E;AAC7E,EAAE;AACF,iCAAiC;AACjC,EAAE;AACF,oGAAoG;AACpG,6FAA6F;AAC7F,gGAAgG;AAChG,qGAAqG;AACrG,mGAAmG;AACnG,qGAAqG;AACrG,kBAAkB;AAClB,EAAE;AACF,oGAAoG;AACpG,iGAAiG;AACjG,qCAAqC;AACrC,EAAE;AACF,yDAAyD;AACzD,EAAE;AACF,6FAA6F;AAC7F,qGAAqG;AACrG,mGAAmG;AACnG,6FAA6F;AAC7F,aAAa;AACb,EAAE;AACF,+CAA+C;AAC/C,EAAE;AACF,kGAAkG;AAClG,sGAAsG;AACtG,sGAAsG;AACtG,iGAAiG;AACjG,0BAA0B;AAC1B,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,gGAAgG;AAChG,6BAA6B;AAC7B,oGAAoG;AACpG,qGAAqG;AACrG,iGAAiG;AACjG,2EAA2E;AAC3E,EAAE;AACF,+BAA+B;AAC/B,EAAE;AACF,8FAA8F;AAC9F,oFAAoF;AACpF,2FAA2F;AAC3F,qGAAqG;AACrG,8FAA8F;AAC9F,oGAAoG;AACpG,kGAAkG;AAClG,EAAE;AACF,mGAAmG;AACnG,8FAA8F;AAC9F,kCAAkC;AAClC,iEAAiE;AAEjE;;;;;;;;;;;GAWG;AACH,MAAM,CAAN,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC3B,0FAA0F;IAC1F,oCAAe,CAAA;IACf,mFAAmF;IACnF,kCAAa,CAAA;IACb,0FAA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AI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9E,6FAA6F;IAC7F,6FAA6F;IAC7F,wCAAwC;IACxC,OAAO,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;AAC/D,CAAC","sourcesContent":["import fs from 'fs';\nimport path from 'path';\n\nimport { resolveMachineWildoHomePath } from '@wildo-ai/platform-config-lib';\n\nimport type { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { SecretOwner } from '~wildo-cli/services/credentials/credentials.schemas';\nimport {\n FRAMEWORK_MANAGED_SECRET_MATERIALS,\n carriedKeysOf,\n FRAMEWORK_MANAGED_SECRET_MATERIAL_OWNERSHIP,\n} from '~wildo-cli/services/credentials/framework-managed-secrets';\n\n//===============================================================\n// MACHINE-LOCAL DEFAULTS — what a new application ADOPTS instead of minting\n//\n// ## The problem this exists for\n//\n// `wildo init` could only MINT. It produced a fresh, internally-consistent secret set for every new\n// application — which is right on a clean machine and wrong on one that is already running a\n// platform, because those containers are provisioned with somebody else's credentials. Measured\n// 2026-09-17 on a scratch application created beside a running Wonder Todos: 16 of 25 shared secrets\n// diverged, so the new application could authenticate to NOTHING — not apps-manager, not postgres,\n// not rabbitmq. The visible symptom was a single line about `PLATFORM_ADMIN_SECRET`, which named one\n// of the sixteen.\n//\n// The established shape was already visible in the dogfood pair: Wonder CRM shares 34 of 37 secrets\n// with Wonder Todos and mints 3. This file makes that shape reachable by a command instead of by\n// copying values between JSON files.\n//\n// ## Why the shared set is DERIVED and never listed here\n//\n// `FRAMEWORK_MANAGED_SECRET_MATERIAL_OWNERSHIP` already answers \"is this material the shared\n// infrastructure's or this application's?\", totally, for every registered material. Reading it means\n// a material added tomorrow is carried automatically and a hand-kept list cannot rot — the failure\n// mode `invariant-call-site-enumeration.md` records for every enumeration of somebody else's\n// catalogue.\n//\n// ## Why `~/.wildo`, and why that is the point\n//\n// It sits beside `preferences.json` and `registry-credentials.json`, which is where machine-local\n// credentials already live. It is deliberately OUTSIDE every repository: nothing versions it, nothing\n// reviews it, and no backup carries it. That is a property being chosen, not a limitation — these are\n// development secrets for containers on this machine, and the blast radius of losing the file is\n// re-running one command.\n//\n// ## What it carries, and the one judgement in it\n//\n// - every `SHARED_INFRASTRUCTURE`-owned material — the reason a new application can talk to the\n// running platform at all;\n// - `providerEnv` — the third-party API keys. These are APPLICATION-owned by the ownership map, and\n// carrying them anyway is deliberate: an operator creating their fourth local application does not\n// want to re-enter an OpenAI key, and a seed is not an ownership claim. Each application still\n// receives its own copy in its own `secrets.json`, and may overwrite it.\n//\n// ## Two halves, two decisions\n//\n// Joining the running platform (the shared half) and reusing this machine's provider keys are\n// DIFFERENT decisions, and each has its own mode: `--local-defaults` for the first,\n// `--provider-key-defaults` for the second. Until 2026-10-01 one mode governed both, so an\n// application that owns its own platform (`--local-defaults skip`, which every app-creation test app\n// passes) lost the provider keys too. It then started without the OpenAI key the operator had\n// captured, and its first playbook run was refused for a missing `OPENAI_API_KEY`. Minting your own\n// platform says nothing about wanting to retype an API key, and a seed is not an ownership claim.\n//\n// What it NEVER carries: `application.adminSecret`, and the administrator and approver identities.\n// Those are the three the dogfood pair mints per application, and sharing them would give two\n// applications one operator door.\n//===============================================================\n\n/**\n * How a command treats one half of this machine's captured defaults.\n *\n * ONE named source for the posture vocabulary, shared by `wildo init` and `wildo setup`, and used by\n * BOTH decisions: `--local-defaults` (the shared platform credentials, which is joining that platform)\n * and `--provider-key-defaults` (the provider API keys). The members mean the same thing for either\n * half; what differs is which half they apply to. Two enums would be the first thing to drift, and a\n * `skip` that means different things in two commands is worse than no flag at all.\n *\n * Closed and tri-state on purpose: `--adopt` / `--no-adopt` cannot express \"ask\", and Commander's\n * `--no-` form sets a DIFFERENT key from the one the flag declares.\n */\nexport enum LocalDefaultsMode {\n /** Take them without asking — the auto-confirmation for scripted or repeated creation. */\n ADOPT = 'adopt',\n /** Ignore them; mint a fresh, self-consistent set as if the file did not exist. */\n SKIP = 'skip',\n /** Show what would be adopted and confirm. Falls back to ADOPT when nobody can answer. */\n ASK = 'ask',\n}\n\n/**\n * Refuse a mode outside {@link LocalDefaultsMode}. Without it any other string fell through to ADOPT, so a\n * mistyped opt-out (`--local-defaults skp`) adopted silently, which is the direction that must not happen.\n */\nfunction assertLocalDefaultsMode(flag: string, mode: string): void {\n if (!(Object.values(LocalDefaultsMode) as string[]).includes(mode)) {\n throw new Error(`Invalid --${flag} \"${mode}\". Valid: ${Object.values(LocalDefaultsMode).join(', ')}.`);\n }\n}\n\n/**\n * Decide whether to adopt the SHARED platform credentials, asking only when a person can answer.\n *\n * The provider keys are decided separately, by {@link resolveProviderKeyDefaultsAdoption}: the returned\n * defaults still carry `providerEnv`, and a caller must not seed it from here.\n *\n * `ASK` falls back to ADOPT without a TTY rather than to SKIP, and the direction is the whole point:\n * a headless run that silently MINTS produces an environment that cannot reach the platform already\n * running on this machine, and that failure surfaces much later as one authentication error naming\n * one secret out of sixteen. Adopting is both the recoverable choice and the one the operator meant\n * by capturing the file in the first place.\n */\nexport async function resolveLocalDefaultsAdoption(input: {\n readonly mode: string;\n readonly canAsk: boolean;\n readonly confirm: (defaults: WildoLocalDefaults) => Promise<boolean>;\n}): Promise<WildoLocalDefaults | null> {\n assertLocalDefaultsMode('local-defaults', input.mode);\n if (input.mode === LocalDefaultsMode.SKIP) return null;\n const defaults = readLocalDefaults();\n if (!defaults) return null;\n if (input.mode === LocalDefaultsMode.ASK && input.canAsk) {\n return (await input.confirm(defaults)) ? defaults : null;\n }\n return defaults;\n}\n\n/**\n * The provider-key mode when neither a flag nor the machine preference states one: ADOPT.\n *\n * Unlike the shared half, whose default is ASK, because adopting the shared half changes what the\n * application IS (it joins another application's platform), while a provider key is a seed the draft\n * and every later `wildo secrets set` may replace. The operator captured these keys so as not to\n * retype them, and asking at every `wildo init` would only add a prompt with one sensible answer.\n */\nexport const DEFAULT_PROVIDER_KEY_DEFAULTS_MODE = LocalDefaultsMode.ADOPT;\n\n/**\n * Decide whether to seed this machine's captured PROVIDER KEYS, independently of the shared half.\n *\n * Returns the keys to seed, or `null` when there are none, the mode is SKIP, or the operator declined.\n * `ASK` without a TTY falls back to ADOPT, for the same reason as {@link resolveLocalDefaultsAdoption}.\n * The confirmation is shown key NAMES only, never a value.\n */\nexport async function resolveProviderKeyDefaultsAdoption(input: {\n readonly mode: string;\n readonly canAsk: boolean;\n readonly confirm: (providerKeyNames: readonly string[]) => Promise<boolean>;\n}): Promise<Readonly<Record<string, string>> | null> {\n assertLocalDefaultsMode('provider-key-defaults', input.mode);\n if (input.mode === LocalDefaultsMode.SKIP) return null;\n const providerEnv = readLocalDefaults()?.providerEnv ?? {};\n const names = Object.keys(providerEnv).filter((name) => typeof providerEnv[name] === 'string' && providerEnv[name]!.length > 0);\n if (names.length === 0) return null;\n if (input.mode === LocalDefaultsMode.ASK && input.canAsk && !(await input.confirm(names))) return null;\n return Object.fromEntries(names.map((name) => [name, providerEnv[name]!]));\n}\n\n/** Machine-local defaults a new application may adopt at `wildo init`. */\nexport interface WildoLocalDefaults {\n /**\n * When these defaults were captured, and from what.\n *\n * Recorded so an operator reading the file can tell whether it predates the platform now running —\n * the one question that makes adopted values wrong rather than merely old.\n */\n readonly capturedAt: string;\n readonly capturedFrom: string;\n /**\n * Shared-infrastructure material, keyed by the SAME dotted paths the secrets registry declares\n * (`platform.adminSecret`, `postgresql.adminPassword`, …). Flat on purpose: the registry's\n * `secretKeys` are the vocabulary, so no second shape can drift from it.\n */\n readonly shared: Readonly<Record<string, string>>;\n /** Provider API keys by exact env-var name, the same map `ProviderKeysInput.providerEnv` uses. */\n readonly providerEnv: Readonly<Record<string, string>>;\n}\n\nexport const LOCAL_DEFAULTS_FILE_NAME = 'local-defaults.json';\n\n/**\n * Overrides where the defaults are read from. Exists for TEST ISOLATION, and it is not optional.\n *\n * Without it any test that exercises a command touching this file reads the DEVELOPER'S OWN\n * `~/.wildo`, which is wrong twice: the result depends on whose machine ran it, and a failing\n * assertion prints real third-party API keys into the output — and into CI logs. Both happened\n * within minutes of the adoption landing, which is why the seam is here rather than noted as a\n * follow-up.\n *\n * Point it at a path that does not exist to assert the no-defaults behaviour.\n */\nexport const LOCAL_DEFAULTS_PATH_ENV_KEY = 'WILDO_LOCAL_DEFAULTS_PATH';\n\n/**\n * Whatever {@link LOCAL_DEFAULTS_PATH_ENV_KEY} names, else `local-defaults.json` in the machine Wildo\n * home (`$WILDO_HOME`, else `~/.wildo` — `resolveMachineWildoHomePath`), so it sits beside the\n * `preferences.json` the launcher reads rather than in a second directory.\n */\nexport function resolveLocalDefaultsPath(): string {\n const override = process.env[LOCAL_DEFAULTS_PATH_ENV_KEY];\n if (typeof override === 'string' && override.trim().length > 0) return override.trim();\n return path.join(resolveMachineWildoHomePath(), LOCAL_DEFAULTS_FILE_NAME);\n}\n\n/** Every dotted secret key owned by the shared infrastructure, derived from the registry. */\nexport function sharedInfrastructureSecretKeys(): readonly string[] {\n return FRAMEWORK_MANAGED_SECRET_MATERIALS\n .filter((material) => FRAMEWORK_MANAGED_SECRET_MATERIAL_OWNERSHIP[material.ref] === SecretOwner.SHARED_INFRASTRUCTURE)\n .flatMap((material) => [...material.secretKeys, ...carriedKeysOf(material), ...material.identityKeys]);\n}\n\nfunction readDotted(source: unknown, dotted: string): string | undefined {\n let cursor: unknown = source;\n for (const segment of dotted.split('.')) {\n if (typeof cursor !== 'object' || cursor === null) return undefined;\n cursor = (cursor as Record<string, unknown>)[segment];\n }\n return typeof cursor === 'string' && cursor.length > 0 ? cursor : undefined;\n}\n\nfunction writeDotted(target: Record<string, unknown>, dotted: string, value: string): void {\n const segments = dotted.split('.');\n let cursor = target;\n for (const segment of segments.slice(0, -1)) {\n const next = cursor[segment];\n if (typeof next !== 'object' || next === null) cursor[segment] = {};\n cursor = cursor[segment] as Record<string, unknown>;\n }\n cursor[segments[segments.length - 1]!] = value;\n}\n\n/**\n * Capture the adoptable material out of one application's `secrets.json`.\n *\n * Absent keys are OMITTED rather than written empty: a missing material must stay missing so the\n * additive minter still mints it, and an empty string would satisfy `isFilled` nowhere but would\n * still travel.\n */\nexport function captureLocalDefaults(input: {\n readonly secrets: PlatformEnvSecretsJson;\n readonly capturedFrom: string;\n readonly capturedAt?: string;\n}): WildoLocalDefaults {\n const shared: Record<string, string> = {};\n for (const key of sharedInfrastructureSecretKeys()) {\n const value = readDotted(input.secrets, key);\n if (value !== undefined) shared[key] = value;\n }\n const providerEnv: Record<string, string> = {};\n for (const [key, value] of Object.entries((input.secrets as { providerEnv?: Record<string, unknown> }).providerEnv ?? {})) {\n if (typeof value === 'string' && value.length > 0) providerEnv[key] = value;\n }\n return {\n capturedAt: input.capturedAt ?? new Date().toISOString(),\n capturedFrom: input.capturedFrom,\n shared,\n providerEnv,\n };\n}\n\n/** Read the machine-local defaults, or `null` when there are none / the file is unreadable. */\nexport function readLocalDefaults(): WildoLocalDefaults | null {\n const filePath = resolveLocalDefaultsPath();\n try {\n if (!fs.existsSync(filePath)) return null;\n const parsed = JSON.parse(fs.readFileSync(filePath, 'utf8')) as Partial<WildoLocalDefaults>;\n if (typeof parsed !== 'object' || parsed === null) return null;\n return {\n capturedAt: typeof parsed.capturedAt === 'string' ? parsed.capturedAt : 'unknown',\n capturedFrom: typeof parsed.capturedFrom === 'string' ? parsed.capturedFrom : 'unknown',\n shared: (parsed.shared ?? {}) as Record<string, string>,\n providerEnv: (parsed.providerEnv ?? {}) as Record<string, string>,\n };\n } catch {\n /*\n * Unreadable is treated as ABSENT rather than fatal. This file is a convenience seed; a corrupt\n * one must not stop an application being created, because the minter can still produce a\n * complete self-consistent set without it.\n */\n return null;\n }\n}\n\n/** Write the defaults, creating `~/.wildo` and refusing group/world access to the file. */\nexport function writeLocalDefaults(defaults: WildoLocalDefaults): string {\n const filePath = resolveLocalDefaultsPath();\n fs.mkdirSync(path.dirname(filePath), { recursive: true });\n fs.writeFileSync(filePath, `${JSON.stringify(defaults, null, 2)}\\n`, { encoding: 'utf8', mode: 0o600 });\n // An existing file keeps its old mode through `writeFileSync`, so the permission is asserted after.\n fs.chmodSync(filePath, 0o600);\n return filePath;\n}\n\n/**\n * Seed a secrets draft with the adopted SHARED platform values, WITHOUT overwriting anything present.\n *\n * Non-destructive by construction: the draft wins. It carries the operator's explicit answers (the\n * administrator identity, a supplied password), and a machine default must never silently replace\n * something somebody typed on this run.\n *\n * Returns the keys it actually seeded, so the caller can report what was adopted rather than\n * claiming a number. The provider keys are the other half, seeded by {@link applyProviderKeyDefaults}\n * under their own decision.\n */\nexport function applySharedLocalDefaults(draft: Record<string, unknown>, defaults: WildoLocalDefaults): readonly string[] {\n const sharedKeys: string[] = [];\n for (const [key, value] of Object.entries(defaults.shared)) {\n if (readDotted(draft, key) !== undefined) continue;\n writeDotted(draft, key, value);\n sharedKeys.push(key);\n }\n return sharedKeys;\n}\n\n/** Seed a secrets draft's `providerEnv` with adopted provider keys, the draft winning. Returns the names seeded. */\nexport function applyProviderKeyDefaults(draft: Record<string, unknown>, providerEnv: Readonly<Record<string, string>>): readonly string[] {\n const providerKeys: string[] = [];\n const existingProviderEnv = (draft as { providerEnv?: Record<string, string> }).providerEnv ?? {};\n const mergedProviderEnv: Record<string, string> = { ...existingProviderEnv };\n for (const [key, value] of Object.entries(providerEnv)) {\n if (typeof mergedProviderEnv[key] === 'string' && mergedProviderEnv[key]!.length > 0) continue;\n mergedProviderEnv[key] = value;\n providerKeys.push(key);\n }\n if (providerKeys.length > 0) (draft as { providerEnv?: Record<string, string> }).providerEnv = mergedProviderEnv;\n return providerKeys;\n}\n\n/**\n * The shared half only, VALUE-FREE — for the question about joining the platform, which no longer covers\n * the provider keys (they are decided separately).\n */\nexport function describeSharedLocalDefaults(defaults: WildoLocalDefaults): string {\n return `${Object.keys(defaults.shared).length} shared infrastructure value(s), captured ${defaults.capturedAt} from ${defaults.capturedFrom}`;\n}\n\n/** A one-line, VALUE-FREE description for operator output. Never prints a secret. */\nexport function describeLocalDefaults(defaults: WildoLocalDefaults): string {\n return `${Object.keys(defaults.shared).length} shared infrastructure value(s), `\n + `${Object.keys(defaults.providerEnv).length} provider key(s), captured ${defaults.capturedAt} from ${defaults.capturedFrom}`;\n}\n\n/**\n * The APPLICATION ROOT these defaults were captured from, or `null` when it cannot be recovered.\n *\n * ## Why the credentials answer an ownership question\n *\n * Adopting this file and declaring an `infrastructureHost` are the SAME decision, made once. The\n * shared values in it authenticate to one set of running containers — the capture source's — so an\n * application that adopts them has, by that act, joined that application's platform. Minting instead\n * means intending to run a platform of one's own. There is no coherent third position: adopting the\n * credentials while declaring standalone infrastructure produces an application holding the host's\n * passwords and rendering its own compose project over the same container names, which is the\n * last-one-to-start-wins outage `infrastructureHost` exists to prevent (issue #50).\n *\n * So `wildo init` reads the host out of the adoption it already performs, rather than asking a second\n * question whose only defensible answer is implied by the first.\n *\n * ## Recovered by walking up, not by parsing the path\n *\n * `capturedFrom` is a secrets FILE, normally `<app>/infrastructure/<env>/secrets/secrets.json` — but\n * `wildo setup` lets an operator relocate `secretsPath`, and `wildo local-defaults capture --from`\n * accepts that file directly. Stripping a fixed number of segments would silently produce a wrong\n * root for exactly the operators who customized their layout. Walking up to the nearest\n * `wildo.saas.config.ts` answers for every layout in which the secrets live inside their application,\n * and answers `null` — authoring no host, the safe direction — for one in which they do not.\n */\nexport function resolveCapturedApplicationRoot(defaults: WildoLocalDefaults): string | null {\n if (!path.isAbsolute(defaults.capturedFrom)) return null;\n let current = path.dirname(defaults.capturedFrom);\n // Bounded by the filesystem root: `path.dirname('/')` is `'/'`, which ends the walk.\n for (;;) {\n if (fs.existsSync(path.join(current, 'wildo.saas.config.ts'))) return current;\n const parent = path.dirname(current);\n if (parent === current) return null;\n current = parent;\n }\n}\n\n/**\n * How a NEW application at `appRoot` should address the platform owner these defaults came from —\n * a path relative to the new application root, as `infrastructureHost.applicationRoot` takes it.\n *\n * `null` when the source root cannot be recovered, or when it IS the new application (a re-init of\n * the very application the defaults were captured from, which owns its platform and must not be\n * authored as its own host).\n */\nexport function resolveInfrastructureHostFor(appRoot: string, defaults: WildoLocalDefaults): string | null {\n const hostRoot = resolveCapturedApplicationRoot(defaults);\n if (hostRoot === null) return null;\n if (path.resolve(hostRoot) === path.resolve(appRoot)) return null;\n const relative = path.relative(path.resolve(appRoot), path.resolve(hostRoot));\n // A descriptor's `applicationRoot` is resolved against the application root, so it must LOOK\n // relative; `path.relative` emits a bare name for a sibling-of-parent, which would read as a\n // package specifier rather than a path.\n return relative.startsWith('.') ? relative : `./${relative}`;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"local-defaults.service.js","sourceRoot":"","sources":["../../../../src/services/credentials/local-defaults.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAG5E,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EACL,kCAAkC,EAClC,aAAa,EACb,2CAA2C,GAC5C,MAAM,2DAA2D,CAAC;AAEnE,iEAAiE;AACjE,6EAA6E;AAC7E,EAAE;AACF,iCAAiC;AACjC,EAAE;AACF,oGAAoG;AACpG,6FAA6F;AAC7F,gGAAgG;AAChG,qGAAqG;AACrG,mGAAmG;AACnG,qGAAqG;AACrG,kBAAkB;AAClB,EAAE;AACF,oGAAoG;AACpG,iGAAiG;AACjG,qCAAqC;AACrC,EAAE;AACF,yDAAyD;AACzD,EAAE;AACF,6FAA6F;AAC7F,qGAAqG;AACrG,mGAAmG;AACnG,6FAA6F;AAC7F,aAAa;AACb,EAAE;AACF,+CAA+C;AAC/C,EAAE;AACF,kGAAkG;AAClG,sGAAsG;AACtG,sGAAsG;AACtG,iGAAiG;AACjG,0BAA0B;AAC1B,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,gGAAgG;AAChG,6BAA6B;AAC7B,oGAAoG;AACpG,qGAAqG;A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AAED;;;;;;;GAOG;AACH,MAAM,UAAU,4BAA4B,CAAC,OAAe,EAAE,QAA4B;IACxF,MAAM,QAAQ,GAAG,8BAA8B,CAAC,QAAQ,CAAC,CAAC;IAC1D,IAAI,QAAQ,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACnC,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IAClE,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9E,6FAA6F;IAC7F,6FAA6F;IAC7F,wCAAwC;IACxC,OAAO,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;AAC/D,CAAC","sourcesContent":["import fs from 'fs';\nimport path from 'path';\n\nimport { resolveMachineWildoHomePath } from '@wildo-ai/platform-config-lib';\n\nimport type { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { SecretOwner } from '~wildo-cli/services/credentials/credentials.schemas';\nimport {\n FRAMEWORK_MANAGED_SECRET_MATERIALS,\n carriedKeysOf,\n FRAMEWORK_MANAGED_SECRET_MATERIAL_OWNERSHIP,\n} from '~wildo-cli/services/credentials/framework-managed-secrets';\n\n//===============================================================\n// MACHINE-LOCAL DEFAULTS — what a new application ADOPTS instead of minting\n//\n// ## The problem this exists for\n//\n// `wildo init` could only MINT. It produced a fresh, internally-consistent secret set for every new\n// application — which is right on a clean machine and wrong on one that is already running a\n// platform, because those containers are provisioned with somebody else's credentials. Measured\n// 2026-09-17 on a scratch application created beside a running Wonder Todos: 16 of 25 shared secrets\n// diverged, so the new application could authenticate to NOTHING — not apps-manager, not postgres,\n// not rabbitmq. The visible symptom was a single line about `PLATFORM_ADMIN_SECRET`, which named one\n// of the sixteen.\n//\n// The established shape was already visible in the dogfood pair: Wonder CRM shares 34 of 37 secrets\n// with Wonder Todos and mints 3. This file makes that shape reachable by a command instead of by\n// copying values between JSON files.\n//\n// ## Why the shared set is DERIVED and never listed here\n//\n// `FRAMEWORK_MANAGED_SECRET_MATERIAL_OWNERSHIP` already answers \"is this material the shared\n// infrastructure's or this application's?\", totally, for every registered material. Reading it means\n// a material added tomorrow is carried automatically and a hand-kept list cannot rot — the failure\n// mode `invariant-call-site-enumeration.md` records for every enumeration of somebody else's\n// catalogue.\n//\n// ## Why `~/.wildo`, and why that is the point\n//\n// It sits beside `preferences.json` and `registry-credentials.json`, which is where machine-local\n// credentials already live. It is deliberately OUTSIDE every repository: nothing versions it, nothing\n// reviews it, and no backup carries it. That is a property being chosen, not a limitation — these are\n// development secrets for containers on this machine, and the blast radius of losing the file is\n// re-running one command.\n//\n// ## What it carries, and the one judgement in it\n//\n// - every `SHARED_INFRASTRUCTURE`-owned material — the reason a new application can talk to the\n// running platform at all;\n// - `providerEnv` — the third-party API keys. These are APPLICATION-owned by the ownership map, and\n// carrying them anyway is deliberate: an operator creating their fourth local application does not\n// want to re-enter an OpenAI key, and a seed is not an ownership claim. Each application still\n// receives its own copy in its own `secrets.json`, and may overwrite it.\n//\n// ## Two halves, two decisions\n//\n// Joining the running platform (the shared half) and reusing this machine's provider keys are\n// DIFFERENT decisions, and each has its own mode: `--local-defaults` for the first,\n// `--provider-key-defaults` for the second. Until 2026-10-01 one mode governed both, so an\n// application that owns its own platform (`--local-defaults skip`, which every app-creation test app\n// passes) lost the provider keys too. It then started without the OpenAI key the operator had\n// captured, and its first playbook run was refused for a missing `OPENAI_API_KEY`. Minting your own\n// platform says nothing about wanting to retype an API key, and a seed is not an ownership claim.\n//\n// What it NEVER carries: `application.adminSecret`, and the administrator and approver identities.\n// Those are the three the dogfood pair mints per application, and sharing them would give two\n// applications one operator door.\n//===============================================================\n\n/**\n * How a command treats one half of this machine's captured defaults.\n *\n * ONE named source for the posture vocabulary, shared by `wildo init` and `wildo setup`, and used by\n * BOTH decisions: `--local-defaults` (the shared platform credentials, which is joining that platform)\n * and `--provider-key-defaults` (the provider API keys). The members mean the same thing for either\n * half; what differs is which half they apply to. Two enums would be the first thing to drift, and a\n * `skip` that means different things in two commands is worse than no flag at all.\n *\n * Closed and tri-state on purpose: `--adopt` / `--no-adopt` cannot express \"ask\", and Commander's\n * `--no-` form sets a DIFFERENT key from the one the flag declares.\n */\nexport enum LocalDefaultsMode {\n /** Take them without asking — the auto-confirmation for scripted or repeated creation. */\n ADOPT = 'adopt',\n /** Ignore them; mint a fresh, self-consistent set as if the file did not exist. */\n SKIP = 'skip',\n /** Show what would be adopted and confirm. Falls back to ADOPT when nobody can answer. */\n ASK = 'ask',\n}\n\n/**\n * Refuse a mode outside {@link LocalDefaultsMode}. Without it any other string fell through to ADOPT, so a\n * mistyped opt-out (`--local-defaults skp`) adopted silently, which is the direction that must not happen.\n */\nfunction assertLocalDefaultsMode(flag: string, mode: string): void {\n if (!(Object.values(LocalDefaultsMode) as string[]).includes(mode)) {\n throw new Error(`Invalid --${flag} \"${mode}\". Valid: ${Object.values(LocalDefaultsMode).join(', ')}.`);\n }\n}\n\n/**\n * Decide whether to adopt the SHARED platform credentials, asking only when a person can answer.\n *\n * The provider keys are decided separately, by {@link resolveProviderKeyDefaultsAdoption}: the returned\n * defaults still carry `providerEnv`, and a caller must not seed it from here.\n *\n * `ASK` falls back to ADOPT without a TTY rather than to SKIP, and the direction is the whole point:\n * a headless run that silently MINTS produces an environment that cannot reach the platform already\n * running on this machine, and that failure surfaces much later as one authentication error naming\n * one secret out of sixteen. Adopting is both the recoverable choice and the one the operator meant\n * by capturing the file in the first place.\n */\nexport async function resolveLocalDefaultsAdoption(input: {\n readonly mode: string;\n readonly canAsk: boolean;\n readonly confirm: (defaults: WildoLocalDefaults) => Promise<boolean>;\n}): Promise<WildoLocalDefaults | null> {\n assertLocalDefaultsMode('local-defaults', input.mode);\n if (input.mode === LocalDefaultsMode.SKIP) return null;\n const defaults = readLocalDefaults();\n if (!defaults) return null;\n if (input.mode === LocalDefaultsMode.ASK && input.canAsk) {\n return (await input.confirm(defaults)) ? defaults : null;\n }\n return defaults;\n}\n\n/**\n * The provider-key mode when neither a flag nor the machine preference states one: ADOPT.\n *\n * Unlike the shared half, whose default is ASK, because adopting the shared half changes what the\n * application IS (it joins another application's platform), while a provider key is a seed the draft\n * and every later `wildo secrets set` may replace. The operator captured these keys so as not to\n * retype them, and asking at every `wildo init` would only add a prompt with one sensible answer.\n */\nexport const DEFAULT_PROVIDER_KEY_DEFAULTS_MODE = LocalDefaultsMode.ADOPT;\n\n/**\n * Decide whether to seed this machine's captured PROVIDER KEYS, independently of the shared half.\n *\n * Returns the keys to seed, or `null` when there are none, the mode is SKIP, or the operator declined.\n * `ASK` without a TTY falls back to ADOPT, for the same reason as {@link resolveLocalDefaultsAdoption}.\n * The confirmation is shown key NAMES only, never a value.\n */\nexport async function resolveProviderKeyDefaultsAdoption(input: {\n readonly mode: string;\n readonly canAsk: boolean;\n readonly confirm: (providerKeyNames: readonly string[]) => Promise<boolean>;\n}): Promise<Readonly<Record<string, string>> | null> {\n assertLocalDefaultsMode('provider-key-defaults', input.mode);\n if (input.mode === LocalDefaultsMode.SKIP) return null;\n const providerEnv = readLocalDefaults()?.providerEnv ?? {};\n const names = Object.keys(providerEnv).filter((name) => typeof providerEnv[name] === 'string' && providerEnv[name]!.length > 0);\n if (names.length === 0) return null;\n if (input.mode === LocalDefaultsMode.ASK && input.canAsk && !(await input.confirm(names))) return null;\n return Object.fromEntries(names.map((name) => [name, providerEnv[name]!]));\n}\n\n/** Machine-local defaults a new application may adopt at `wildo init`. */\nexport interface WildoLocalDefaults {\n /**\n * When these defaults were captured, and from what.\n *\n * Recorded so an operator reading the file can tell whether it predates the platform now running —\n * the one question that makes adopted values wrong rather than merely old.\n */\n readonly capturedAt: string;\n readonly capturedFrom: string;\n /**\n * Shared-infrastructure material, keyed by the SAME dotted paths the secrets registry declares\n * (`platform.adminSecret`, `postgresql.adminPassword`, …). Flat on purpose: the registry's\n * `secretKeys` are the vocabulary, so no second shape can drift from it.\n */\n readonly shared: Readonly<Record<string, string>>;\n /** Provider API keys by exact env-var name, the same map `ProviderKeysInput.providerEnv` uses. */\n readonly providerEnv: Readonly<Record<string, string>>;\n}\n\nexport const LOCAL_DEFAULTS_FILE_NAME = 'local-defaults.json';\n\n/**\n * Overrides where the defaults are read from. Exists for TEST ISOLATION, and it is not optional.\n *\n * Without it any test that exercises a command touching this file reads the DEVELOPER'S OWN\n * `~/.wildo`, which is wrong twice: the result depends on whose machine ran it, and a failing\n * assertion prints real third-party API keys into the output — and into CI logs. Both happened\n * within minutes of the adoption landing, which is why the seam is here rather than noted as a\n * follow-up.\n *\n * Point it at a path that does not exist to assert the no-defaults behaviour.\n */\nexport const LOCAL_DEFAULTS_PATH_ENV_KEY = 'WILDO_LOCAL_DEFAULTS_PATH';\n\n/**\n * Whatever {@link LOCAL_DEFAULTS_PATH_ENV_KEY} names, else `local-defaults.json` in the machine Wildo\n * home (`$WILDO_HOME`, else `~/.wildo` — `resolveMachineWildoHomePath`), so it sits beside the\n * `preferences.json` the launcher reads rather than in a second directory.\n */\nexport function resolveLocalDefaultsPath(): string {\n const override = process.env[LOCAL_DEFAULTS_PATH_ENV_KEY];\n if (typeof override === 'string' && override.trim().length > 0) return override.trim();\n return path.join(resolveMachineWildoHomePath(), LOCAL_DEFAULTS_FILE_NAME);\n}\n\n/** Every dotted secret key owned by the shared infrastructure, derived from the registry. */\nexport function sharedInfrastructureSecretKeys(): readonly string[] {\n return FRAMEWORK_MANAGED_SECRET_MATERIALS\n .filter((material) => FRAMEWORK_MANAGED_SECRET_MATERIAL_OWNERSHIP[material.ref] === SecretOwner.SHARED_INFRASTRUCTURE)\n .flatMap((material) => [...material.secretKeys, ...carriedKeysOf(material), ...material.identityKeys]);\n}\n\nfunction readDotted(source: unknown, dotted: string): string | undefined {\n let cursor: unknown = source;\n for (const segment of dotted.split('.')) {\n if (typeof cursor !== 'object' || cursor === null) return undefined;\n cursor = (cursor as Record<string, unknown>)[segment];\n }\n return typeof cursor === 'string' && cursor.length > 0 ? cursor : undefined;\n}\n\nfunction writeDotted(target: Record<string, unknown>, dotted: string, value: string): void {\n const segments = dotted.split('.');\n let cursor = target;\n for (const segment of segments.slice(0, -1)) {\n const next = cursor[segment];\n if (typeof next !== 'object' || next === null) cursor[segment] = {};\n cursor = cursor[segment] as Record<string, unknown>;\n }\n cursor[segments[segments.length - 1]!] = value;\n}\n\n/**\n * Capture the adoptable material out of one application's `secrets.json`.\n *\n * Absent keys are OMITTED rather than written empty: a missing material must stay missing so the\n * additive minter still mints it, and an empty string would satisfy `isFilled` nowhere but would\n * still travel.\n */\nexport function captureLocalDefaults(input: {\n readonly secrets: PlatformEnvSecretsJson;\n readonly capturedFrom: string;\n readonly capturedAt?: string;\n}): WildoLocalDefaults {\n const shared: Record<string, string> = {};\n for (const key of sharedInfrastructureSecretKeys()) {\n const value = readDotted(input.secrets, key);\n if (value !== undefined) shared[key] = value;\n }\n const providerEnv: Record<string, string> = {};\n for (const [key, value] of Object.entries((input.secrets as { providerEnv?: Record<string, unknown> }).providerEnv ?? {})) {\n if (typeof value === 'string' && value.length > 0) providerEnv[key] = value;\n }\n return {\n capturedAt: input.capturedAt ?? new Date().toISOString(),\n capturedFrom: input.capturedFrom,\n shared,\n providerEnv,\n };\n}\n\n/** Read the machine-local defaults, or `null` when there are none / the file is unreadable. */\nexport function readLocalDefaults(): WildoLocalDefaults | null {\n const filePath = resolveLocalDefaultsPath();\n try {\n if (!fs.existsSync(filePath)) return null;\n const parsed = JSON.parse(fs.readFileSync(filePath, 'utf8')) as Partial<WildoLocalDefaults>;\n if (typeof parsed !== 'object' || parsed === null) return null;\n return {\n capturedAt: typeof parsed.capturedAt === 'string' ? parsed.capturedAt : 'unknown',\n capturedFrom: typeof parsed.capturedFrom === 'string' ? parsed.capturedFrom : 'unknown',\n shared: (parsed.shared ?? {}) as Record<string, string>,\n providerEnv: (parsed.providerEnv ?? {}) as Record<string, string>,\n };\n } catch {\n /*\n * Unreadable is treated as ABSENT rather than fatal. This file is a convenience seed; a corrupt\n * one must not stop an application being created, because the minter can still produce a\n * complete self-consistent set without it.\n */\n return null;\n }\n}\n\n/** Write the defaults, creating `~/.wildo` and refusing group/world access to the file. */\nexport function writeLocalDefaults(defaults: WildoLocalDefaults): string {\n const filePath = resolveLocalDefaultsPath();\n fs.mkdirSync(path.dirname(filePath), { recursive: true });\n fs.writeFileSync(filePath, `${JSON.stringify(defaults, null, 2)}\\n`, { encoding: 'utf8', mode: 0o600 });\n // An existing file keeps its old mode through `writeFileSync`, so the permission is asserted after.\n fs.chmodSync(filePath, 0o600);\n return filePath;\n}\n\n/**\n * Seed a secrets draft with the adopted SHARED platform values, WITHOUT overwriting anything present.\n *\n * Non-destructive by construction: the draft wins. It carries the operator's explicit answers (the\n * administrator identity, a supplied password), and a machine default must never silently replace\n * something somebody typed on this run.\n *\n * Returns the keys it actually seeded, so the caller can report what was adopted rather than\n * claiming a number. The provider keys are the other half, seeded by {@link applyProviderKeyDefaults}\n * under their own decision.\n */\nexport function applySharedLocalDefaults(draft: Record<string, unknown>, defaults: WildoLocalDefaults): readonly string[] {\n const sharedKeys: string[] = [];\n for (const [key, value] of Object.entries(defaults.shared)) {\n if (readDotted(draft, key) !== undefined) continue;\n writeDotted(draft, key, value);\n sharedKeys.push(key);\n }\n return sharedKeys;\n}\n\n/** Seed a secrets draft's `providerEnv` with adopted provider keys, the draft winning. Returns the names seeded. */\nexport function applyProviderKeyDefaults(draft: Record<string, unknown>, providerEnv: Readonly<Record<string, string>>): readonly string[] {\n const providerKeys: string[] = [];\n const existingProviderEnv = (draft as { providerEnv?: Record<string, string> }).providerEnv ?? {};\n const mergedProviderEnv: Record<string, string> = { ...existingProviderEnv };\n for (const [key, value] of Object.entries(providerEnv)) {\n if (typeof mergedProviderEnv[key] === 'string' && mergedProviderEnv[key]!.length > 0) continue;\n mergedProviderEnv[key] = value;\n providerKeys.push(key);\n }\n if (providerKeys.length > 0) (draft as { providerEnv?: Record<string, string> }).providerEnv = mergedProviderEnv;\n return providerKeys;\n}\n\n/**\n * The shared half only, VALUE-FREE — for the question about joining the platform, which no longer covers\n * the provider keys (they are decided separately).\n */\nexport function describeSharedLocalDefaults(defaults: WildoLocalDefaults): string {\n return `${Object.keys(defaults.shared).length} shared infrastructure value(s), captured ${defaults.capturedAt} from ${defaults.capturedFrom}`;\n}\n\n/** A one-line, VALUE-FREE description for operator output. Never prints a secret. */\nexport function describeLocalDefaults(defaults: WildoLocalDefaults): string {\n return `${Object.keys(defaults.shared).length} shared infrastructure value(s), `\n + `${Object.keys(defaults.providerEnv).length} provider key(s), captured ${defaults.capturedAt} from ${defaults.capturedFrom}`;\n}\n\n/**\n * The APPLICATION ROOT these defaults were captured from, or `null` when it cannot be recovered.\n *\n * ## Why the credentials answer an ownership question\n *\n * Adopting this file and declaring an `infrastructureHost` are the SAME decision, made once. The\n * shared values in it authenticate to one set of running containers — the capture source's — so an\n * application that adopts them has, by that act, joined that application's platform. Minting instead\n * means intending to run a platform of one's own. There is no coherent third position: adopting the\n * credentials while declaring standalone infrastructure produces an application holding the host's\n * passwords and rendering its own compose project over the same container names, which is the\n * last-one-to-start-wins outage `infrastructureHost` exists to prevent (issue #50).\n *\n * So `wildo init` reads the host out of the adoption it already performs, rather than asking a second\n * question whose only defensible answer is implied by the first.\n *\n * ## Recovered by walking up, not by parsing the path\n *\n * `capturedFrom` is a secrets FILE, normally `<app>/infrastructure/<env>/secrets/secrets.json` — but\n * `wildo setup` lets an operator relocate `secretsPath`, and `wildo local-defaults capture --from`\n * accepts that file directly. Stripping a fixed number of segments would silently produce a wrong\n * root for exactly the operators who customized their layout. Walking up to the nearest\n * `wildo.saas.config.ts` answers for every layout in which the secrets live inside their application,\n * and answers `null` — authoring no host, the safe direction — for one in which they do not.\n */\nexport function resolveCapturedApplicationRoot(defaults: WildoLocalDefaults): string | null {\n if (!path.isAbsolute(defaults.capturedFrom)) return null;\n let current = path.dirname(defaults.capturedFrom);\n // Bounded by the filesystem root: `path.dirname('/')` is `'/'`, which ends the walk.\n for (;;) {\n if (fs.existsSync(path.join(current, 'wildo.saas.config.ts'))) return current;\n const parent = path.dirname(current);\n if (parent === current) return null;\n current = parent;\n }\n}\n\n/**\n * How a NEW application at `appRoot` should address the platform owner these defaults came from —\n * a path relative to the new application root, as `infrastructureHost.applicationRoot` takes it.\n *\n * `null` when the source root cannot be recovered, or when it IS the new application (a re-init of\n * the very application the defaults were captured from, which owns its platform and must not be\n * authored as its own host).\n */\nexport function resolveInfrastructureHostFor(appRoot: string, defaults: WildoLocalDefaults): string | null {\n const hostRoot = resolveCapturedApplicationRoot(defaults);\n if (hostRoot === null) return null;\n if (path.resolve(hostRoot) === path.resolve(appRoot)) return null;\n const relative = path.relative(path.resolve(appRoot), path.resolve(hostRoot));\n // A descriptor's `applicationRoot` is resolved against the application root, so it must LOOK\n // relative; `path.relative` emits a bare name for a sibling-of-parent, which would read as a\n // package specifier rather than a path.\n return relative.startsWith('.') ? relative : `./${relative}`;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-secrets-store.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"local-secrets-store.service.d.ts","sourceRoot":"","sources":["../../../../src/services/credentials/local-secrets-store.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAOvE;;;GAGG;AACH,eAAO,MAAM,gCAAgC;;;;CAImC,CAAC;AAYjF;;;GAGG;AACH,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CAAE,CAMhL;AAED;;;;GAIG;AACH,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAMzJ;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,qBAAqB,EAC3B,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GACnE,IAAI,CAYN;AAED,6GAA6G;AAC7G,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,2FAA2F;AAC3F,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAA;CAAE,CAG5H;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,sBAAsB,GAAG,IAAI,GAAG,IAAI,CAa9G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-secrets-store.service.js","sourceRoot":"","sources":["../../../../../../src/services/credentials/local-secrets-store.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,OAAO,EAAE,6BAA6B,EAA+B,MAAM,qDAAqD,CA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WAAW,EAAE,CAAC;IACtC,kBAAkB,CAAC,gBAAgB,CAAC,OAAO,EAAE,6BAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1F,CAAC","sourcesContent":["/**\n * Set and unset operator-supplied application secrets in a LOCAL environment's `secrets.json`.\n *\n * The one mutation path behind `wildo secrets set/unset`, the creation essentials of `wildo init` and\n * `wildo setup`, and — through `wildo secrets` — the workbench's secrets section. It goes through\n * the existing single writer (`ConfigSecretsUtils.writeSecretsJson`), which projects a HOSTED\n * application's file to its own sections, so nothing here can copy a host's shared credentials into\n * a second file.\n *\n * Only operator-typed sections are written here — the three application-secret sections (`providerEnv`,\n * `systemsOfRecordEnv`, `inboundEndpointEnv`), and the GitHub organization integration (`github`), the one\n * shared-infrastructure section a person types. Framework-generated material (database passwords, signing\n * keys) is never set by hand — it is minted and rotated by `config sync` — and refusing it here keeps a\n * typed value from silently replacing a minted one.\n */\nimport { ApplicationSecretKind } from '@wildo-ai/platform-core-shared';\n\nimport { PlatformEnvSecretsJson_Schema, type PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { ConfigSecretsUtils } from '~wildo-cli/services/credentials/credentials.service';\nimport { EnvironmentRegistry } from '~wildo-cli/services/environment/environment-registry.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\n\n/**\n * The `secrets.json` section each kind of application secret lives in. All three are flat maps keyed by the\n * variable name a runtime reads, and all three are APPLICATION-owned (`SECRETS_SECTION_OWNERSHIP`).\n */\nexport const APPLICATION_SECRET_KIND_SECTIONS = {\n [ApplicationSecretKind.PROVIDER]: 'providerEnv',\n [ApplicationSecretKind.SYSTEM_OF_RECORD]: 'systemsOfRecordEnv',\n [ApplicationSecretKind.INBOUND_ENDPOINT]: 'inboundEndpointEnv',\n} as const satisfies Record<ApplicationSecretKind, keyof PlatformEnvSecretsJson>;\n\n/**\n * One section, values included. Not exported: no caller needs a whole section. One entitled to a few values reads them\n * by name ({@link readLocalApplicationSecretValues}); one that asks which keys are set reads\n * {@link readLocalApplicationSecretPresence}, which returns no value (`wildo init` and the secrets report do).\n */\nfunction readLocalApplicationSecrets(envName: string, kind: ApplicationSecretKind): Readonly<Record<string, string>> {\n const section = APPLICATION_SECRET_KIND_SECTIONS[kind];\n return EnvironmentUtils.loadSecretsJson(envName)?.[section] ?? {};\n}\n\n/**\n * Which keys one section holds (`present`, an empty value included) and which of them have a value (`stored`). Never a\n * value: for a caller that reports what is set, so no secret passes through it.\n */\nexport function readLocalApplicationSecretPresence(envName: string, kind: ApplicationSecretKind): { readonly present: ReadonlySet<string>; readonly stored: ReadonlySet<string> } {\n const section = readLocalApplicationSecrets(envName, kind);\n return {\n present: new Set(Object.keys(section)),\n stored: new Set(Object.entries(section).filter(([, value]) => value.trim().length > 0).map(([name]) => name)),\n };\n}\n\n/**\n * The values of the NAMED keys of one section, and of no other key: for a caller entitled to a few values, such as the\n * public identifiers `wildo providers register` hands a vendor registration (#2663). A name the section does not hold,\n * or holds empty, is absent from the answer.\n */\nexport function readLocalApplicationSecretValues(envName: string, kind: ApplicationSecretKind, names: readonly string[]): Readonly<Record<string, string>> {\n const section = readLocalApplicationSecrets(envName, kind);\n return Object.fromEntries(names.flatMap((name) => {\n const value = Object.hasOwn(section, name) ? section[name]!.trim() : '';\n return value === '' ? [] : [[name, value]];\n }));\n}\n\n/**\n * Apply changes to one application-secret section and write the file once. A section left empty is\n * removed rather than written as `{}`, as every section of the file is.\n *\n * Refuses when the environment has no `secrets.json` yet: minting one is `wildo init`/`wildo setup`'s\n * job, and a file created here would hold one key and none of the generated material the stack needs.\n */\nexport function updateLocalApplicationSecrets(\n envName: string,\n kind: ApplicationSecretKind,\n changes: { set?: Record<string, string>; unset?: readonly string[] },\n): void {\n const current = EnvironmentUtils.loadSecretsJson(envName);\n if (!current) {\n throw new Error(`No secrets for '${envName}' yet. Run \\`wildo setup\\` (or \\`wildo init\\`) first.`);\n }\n const section = APPLICATION_SECRET_KIND_SECTIONS[kind];\n const values: Record<string, string> = { ...(current[section] ?? {}) };\n for (const [name, value] of Object.entries(changes.set ?? {})) values[name] = value;\n for (const name of changes.unset ?? []) delete values[name];\n const next = { ...current, [section]: values } as PlatformEnvSecretsJson;\n if (Object.keys(values).length === 0) delete (next as Record<string, unknown>)[section];\n ConfigSecretsUtils.writeSecretsJson(envName, PlatformEnvSecretsJson_Schema.parse(next));\n}\n\n/** The GitHub organization integration apps-manager uses; a URL and a user are not secrets, the token is. */\nexport interface LocalGithubIntegration {\n readonly orgUrl: string;\n readonly adminUser: string;\n readonly adminToken: string;\n}\n\n/** Whether the environment carries a GitHub organization integration (never the token). */\nexport function readLocalGithubIntegration(envName: string): { readonly orgUrl: string | null; readonly configured: boolean } {\n const github = (EnvironmentUtils.loadSecretsJson(envName) as { github?: Partial<LocalGithubIntegration> } | null)?.github;\n return { orgUrl: github?.orgUrl ?? null, configured: Boolean(github?.orgUrl && github.adminUser && github.adminToken) };\n}\n\n/**\n * Set (or, with `null`, remove) the GitHub organization integration.\n *\n * It is SHARED INFRASTRUCTURE (`SECRETS_SECTION_OWNERSHIP.github`): the platform's apps-manager reads it,\n * so it belongs to the application that hosts the platform. A hosted application's file keeps only its own\n * sections, and the single writer would silently drop this one — so a hosted application is refused,\n * naming its host, rather than told the value was saved.\n */\nexport function updateLocalGithubIntegration(envName: string, integration: LocalGithubIntegration | null): void {\n const host = EnvironmentRegistry.resolveInfrastructureHost(envName, EnvironmentUtils.resolveConfigDir(envName));\n if (host !== null) {\n throw new Error(`'${envName}' runs on ${host.applicationRoot}'s platform, which owns the GitHub organization integration. Run this there.`);\n }\n const current = EnvironmentUtils.loadSecretsJson(envName);\n if (!current) {\n throw new Error(`No secrets for '${envName}' yet. Run \\`wildo setup\\` (or \\`wildo init\\`) first.`);\n }\n const next = { ...current } as PlatformEnvSecretsJson;\n if (integration === null) delete (next as { github?: unknown }).github;\n else next.github = { ...integration };\n ConfigSecretsUtils.writeSecretsJson(envName, PlatformEnvSecretsJson_Schema.parse(next));\n}\n"]}
|
|
1
|
+
{"version":3,"file":"local-secrets-store.service.js","sourceRoot":"","sources":["../../../../src/services/credentials/local-secrets-store.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,OAAO,EAAE,6BAA6B,EAA+B,MAAM,qDAAqD,CAAC;AACjI,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAC;AACnG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAEvF;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,aAAa;IAC/C,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,EAAE,oBAAoB;IAC9D,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,EAAE,oBAAoB;CACgB,CAAC;AAEjF;;;;GAIG;AACH,SAAS,2BAA2B,CAAC,OAAe,EAAE,IAA2B;IAC/E,MAAM,OAAO,GAAG,gCAAgC,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,gBAAgB,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;AACpE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,kCAAkC,CAAC,OAAe,EAAE,IAA2B;IAC7F,MAAM,OAAO,GAAG,2BAA2B,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC3D,OAAO;QACL,OAAO,EAAE,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,EAAE,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,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AAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,mBAAmB,OAAO,uDAAuD,CAAC,CAAC;IACrG,CAAC;IACD,MAAM,IAAI,GAAG,EAAE,GAAG,OAAO,EAA4B,CAAC;IACtD,IAAI,WAAW,KAAK,IAAI;QAAE,OAAQ,IAA6B,CAAC,MAAM,CAAC;;QAClE,IAAI,CAAC,MAAM,GAAG,EAAE,GAAG,WAAW,EAAE,CAAC;IACtC,kBAAkB,CAAC,gBAAgB,CAAC,OAAO,EAAE,6BAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1F,CAAC","sourcesContent":["/**\n * Set and unset operator-supplied application secrets in a LOCAL environment's `secrets.json`.\n *\n * The one mutation path behind `wildo secrets set/unset`, the creation essentials of `wildo init` and\n * `wildo setup`, and — through `wildo secrets` — the workbench's secrets section. It goes through\n * the existing single writer (`ConfigSecretsUtils.writeSecretsJson`), which projects a HOSTED\n * application's file to its own sections, so nothing here can copy a host's shared credentials into\n * a second file.\n *\n * Only operator-typed sections are written here — the three application-secret sections (`providerEnv`,\n * `systemsOfRecordEnv`, `inboundEndpointEnv`), and the GitHub organization integration (`github`), the one\n * shared-infrastructure section a person types. Framework-generated material (database passwords, signing\n * keys) is never set by hand — it is minted and rotated by `config sync` — and refusing it here keeps a\n * typed value from silently replacing a minted one.\n */\nimport { ApplicationSecretKind } from '@wildo-ai/platform-core-shared';\n\nimport { PlatformEnvSecretsJson_Schema, type PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { ConfigSecretsUtils } from '~wildo-cli/services/credentials/credentials.service';\nimport { EnvironmentRegistry } from '~wildo-cli/services/environment/environment-registry.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\n\n/**\n * The `secrets.json` section each kind of application secret lives in. All three are flat maps keyed by the\n * variable name a runtime reads, and all three are APPLICATION-owned (`SECRETS_SECTION_OWNERSHIP`).\n */\nexport const APPLICATION_SECRET_KIND_SECTIONS = {\n [ApplicationSecretKind.PROVIDER]: 'providerEnv',\n [ApplicationSecretKind.SYSTEM_OF_RECORD]: 'systemsOfRecordEnv',\n [ApplicationSecretKind.INBOUND_ENDPOINT]: 'inboundEndpointEnv',\n} as const satisfies Record<ApplicationSecretKind, keyof PlatformEnvSecretsJson>;\n\n/**\n * One section, values included. Not exported: no caller needs a whole section. One entitled to a few values reads them\n * by name ({@link readLocalApplicationSecretValues}); one that asks which keys are set reads\n * {@link readLocalApplicationSecretPresence}, which returns no value (`wildo init` and the secrets report do).\n */\nfunction readLocalApplicationSecrets(envName: string, kind: ApplicationSecretKind): Readonly<Record<string, string>> {\n const section = APPLICATION_SECRET_KIND_SECTIONS[kind];\n return EnvironmentUtils.loadSecretsJson(envName)?.[section] ?? {};\n}\n\n/**\n * Which keys one section holds (`present`, an empty value included) and which of them have a value (`stored`). Never a\n * value: for a caller that reports what is set, so no secret passes through it.\n */\nexport function readLocalApplicationSecretPresence(envName: string, kind: ApplicationSecretKind): { readonly present: ReadonlySet<string>; readonly stored: ReadonlySet<string> } {\n const section = readLocalApplicationSecrets(envName, kind);\n return {\n present: new Set(Object.keys(section)),\n stored: new Set(Object.entries(section).filter(([, value]) => value.trim().length > 0).map(([name]) => name)),\n };\n}\n\n/**\n * The values of the NAMED keys of one section, and of no other key: for a caller entitled to a few values, such as the\n * public identifiers `wildo providers register` hands a vendor registration (#2663). A name the section does not hold,\n * or holds empty, is absent from the answer.\n */\nexport function readLocalApplicationSecretValues(envName: string, kind: ApplicationSecretKind, names: readonly string[]): Readonly<Record<string, string>> {\n const section = readLocalApplicationSecrets(envName, kind);\n return Object.fromEntries(names.flatMap((name) => {\n const value = Object.hasOwn(section, name) ? section[name]!.trim() : '';\n return value === '' ? [] : [[name, value]];\n }));\n}\n\n/**\n * Apply changes to one application-secret section and write the file once. A section left empty is\n * removed rather than written as `{}`, as every section of the file is.\n *\n * Refuses when the environment has no `secrets.json` yet: minting one is `wildo init`/`wildo setup`'s\n * job, and a file created here would hold one key and none of the generated material the stack needs.\n */\nexport function updateLocalApplicationSecrets(\n envName: string,\n kind: ApplicationSecretKind,\n changes: { set?: Record<string, string>; unset?: readonly string[] },\n): void {\n const current = EnvironmentUtils.loadSecretsJson(envName);\n if (!current) {\n throw new Error(`No secrets for '${envName}' yet. Run \\`wildo setup\\` (or \\`wildo init\\`) first.`);\n }\n const section = APPLICATION_SECRET_KIND_SECTIONS[kind];\n const values: Record<string, string> = { ...(current[section] ?? {}) };\n for (const [name, value] of Object.entries(changes.set ?? {})) values[name] = value;\n for (const name of changes.unset ?? []) delete values[name];\n const next = { ...current, [section]: values } as PlatformEnvSecretsJson;\n if (Object.keys(values).length === 0) delete (next as Record<string, unknown>)[section];\n ConfigSecretsUtils.writeSecretsJson(envName, PlatformEnvSecretsJson_Schema.parse(next));\n}\n\n/** The GitHub organization integration apps-manager uses; a URL and a user are not secrets, the token is. */\nexport interface LocalGithubIntegration {\n readonly orgUrl: string;\n readonly adminUser: string;\n readonly adminToken: string;\n}\n\n/** Whether the environment carries a GitHub organization integration (never the token). */\nexport function readLocalGithubIntegration(envName: string): { readonly orgUrl: string | null; readonly configured: boolean } {\n const github = (EnvironmentUtils.loadSecretsJson(envName) as { github?: Partial<LocalGithubIntegration> } | null)?.github;\n return { orgUrl: github?.orgUrl ?? null, configured: Boolean(github?.orgUrl && github.adminUser && github.adminToken) };\n}\n\n/**\n * Set (or, with `null`, remove) the GitHub organization integration.\n *\n * It is SHARED INFRASTRUCTURE (`SECRETS_SECTION_OWNERSHIP.github`): the platform's apps-manager reads it,\n * so it belongs to the application that hosts the platform. A hosted application's file keeps only its own\n * sections, and the single writer would silently drop this one — so a hosted application is refused,\n * naming its host, rather than told the value was saved.\n */\nexport function updateLocalGithubIntegration(envName: string, integration: LocalGithubIntegration | null): void {\n const host = EnvironmentRegistry.resolveInfrastructureHost(envName, EnvironmentUtils.resolveConfigDir(envName));\n if (host !== null) {\n throw new Error(`'${envName}' runs on ${host.applicationRoot}'s platform, which owns the GitHub organization integration. Run this there.`);\n }\n const current = EnvironmentUtils.loadSecretsJson(envName);\n if (!current) {\n throw new Error(`No secrets for '${envName}' yet. Run \\`wildo setup\\` (or \\`wildo init\\`) first.`);\n }\n const next = { ...current } as PlatformEnvSecretsJson;\n if (integration === null) delete (next as { github?: unknown }).github;\n else next.github = { ...integration };\n ConfigSecretsUtils.writeSecretsJson(envName, PlatformEnvSecretsJson_Schema.parse(next));\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-env-vars.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"provider-env-vars.utils.d.ts","sourceRoot":"","sources":["../../../../src/services/credentials/provider-env-vars.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AASnH,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,oBAAY,wBAAwB;IAClC;;;;OAIG;IACH,2BAA2B,gCAAgC;IAC3D;;;;;OAKG;IACH,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,oBAAoB,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAC,2BAA2B,CAAA;CAAE,GACvE;IAAE,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAC,QAAQ,CAAC;IAAC,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC;AAEnG;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,GAAG,oBAAoB,CAc3F;AAED;;;;;;GAMG;AACH,wBA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;IAC7B,+EAA+E;IAC/E,iBAAiB,sBAAsB;IACvC;;;;;;;;OAQG;IACH,sBAAsB,2BAA2B;IACjD,iFAAiF;IACjF,gBAAgB,qBAAqB;IACrC,0FAA0F;IAC1F,sBAAsB,2BAA2B;CAClD;AAED,MAAM,MAAM,wBAAwB,GAChC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACxF;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,qBAAqB,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvF,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,YAAY,EAAE,oBAAoB,CAAC;IACnC,8FAA8F;IAC9F,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,6FAA6F;IAC7F,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,qBAAqB,GAAG,wBAAwB,CA+ExF"}
|
|
@@ -137,7 +137,12 @@ export function getProtocolSecretEnvBindings(providerRef, protocol, configuredPr
|
|
|
137
137
|
const runtimeContract = protocol.runtimeContract;
|
|
138
138
|
switch (runtimeContract.kind) {
|
|
139
139
|
case ProviderProtocolRuntimeKind.LLM:
|
|
140
|
-
|
|
140
|
+
// An arm that signs each request instead (#3780, Amazon Bedrock with IAM credentials) holds its two halves and an
|
|
141
|
+
// optional session token, exactly as a signed document-extraction arm does below.
|
|
142
|
+
pushSecret(runtimeContract.apiKey?.secretRef);
|
|
143
|
+
pushSecret(runtimeContract.requestSigning?.keyIdSecretRef);
|
|
144
|
+
pushSecret(runtimeContract.requestSigning?.secretKeySecretRef);
|
|
145
|
+
pushSecret(runtimeContract.requestSigning?.sessionTokenSecretRef);
|
|
141
146
|
break;
|
|
142
147
|
case ProviderProtocolRuntimeKind.REST:
|
|
143
148
|
/*
|
|
@@ -154,19 +159,30 @@ export function getProtocolSecretEnvBindings(providerRef, protocol, configuredPr
|
|
|
154
159
|
pushSecret(runtimeContract.apiKey.secretRef);
|
|
155
160
|
break;
|
|
156
161
|
case ProviderProtocolRuntimeKind.EMBEDDINGS:
|
|
157
|
-
// Embeddings transport (RAG drain/retrieval) — same
|
|
158
|
-
pushSecret(runtimeContract.apiKey
|
|
162
|
+
// Embeddings transport (RAG drain/retrieval) — same secret shape as llm, signed arms included (#3780).
|
|
163
|
+
pushSecret(runtimeContract.apiKey?.secretRef);
|
|
164
|
+
pushSecret(runtimeContract.requestSigning?.keyIdSecretRef);
|
|
165
|
+
pushSecret(runtimeContract.requestSigning?.secretKeySecretRef);
|
|
166
|
+
pushSecret(runtimeContract.requestSigning?.sessionTokenSecretRef);
|
|
159
167
|
break;
|
|
160
168
|
case ProviderProtocolRuntimeKind.DOCUMENT_EXTRACTION:
|
|
161
169
|
// Document-extraction transport (OCR) — same API-key secret shape as llm/image/embeddings,
|
|
162
170
|
// even though this family builds its own HTTPS request instead of handing the key to an SDK.
|
|
163
|
-
// What the binding needs is the env var NAME, which is identical either way.
|
|
164
|
-
|
|
171
|
+
// What the binding needs is the env var NAME, which is identical either way. A contract that signs
|
|
172
|
+
// each request instead (#3426, AWS Textract) holds its two halves and an optional session token.
|
|
173
|
+
pushSecret(runtimeContract.apiKey?.secretRef);
|
|
174
|
+
pushSecret(runtimeContract.requestSigning?.keyIdSecretRef);
|
|
175
|
+
pushSecret(runtimeContract.requestSigning?.secretKeySecretRef);
|
|
176
|
+
pushSecret(runtimeContract.requestSigning?.sessionTokenSecretRef);
|
|
165
177
|
break;
|
|
166
178
|
case ProviderProtocolRuntimeKind.CONTENT_SAFETY:
|
|
167
179
|
// A content-safety classifier (#2292): the same API-key shape as document extraction.
|
|
168
180
|
pushSecret(runtimeContract.apiKey.secretRef);
|
|
169
181
|
break;
|
|
182
|
+
case ProviderProtocolRuntimeKind.ELECTRONIC_SIGNATURE:
|
|
183
|
+
// An electronic-signature vendor (#2293): one API key in a header, like the classifier above.
|
|
184
|
+
pushSecret(runtimeContract.apiKey.secretRef);
|
|
185
|
+
break;
|
|
170
186
|
case ProviderProtocolRuntimeKind.EMAIL:
|
|
171
187
|
// The `email` runtime contract is a discriminated union on `delivery`:
|
|
172
188
|
// the network variant (real providers — Resend, Postmark, Mailgun, …)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-env-vars.utils.js","sourceRoot":"","sources":["../../../../../../src/services/credentials/provider-env-vars.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sCAAsC,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAC3H,OAAO,EACL,wBAAwB,EACxB,mCAAmC,EACnC,aAAa,EACb,oBAAoB,GACrB,MAAM,6DAA6D,CAAC;AAUrE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAN,IAAY,wBAcX;AAdD,WAAY,wBAAwB;IAClC;;;;OAIG;IACH,uFAA2D,CAAA;IAC3D;;;;;OAKG;IACH,iDAAqB,CAAA;AACvB,CAAC,EAdW,wBAAwB,KAAxB,wBAAwB,QAcnC;AAMD;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB,CAAC,YAA+B;IACnE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;QACjC,8FAA8F;QAC9F,2FAA2F;QAC3F,2FAA2F;QAC3F,2FAA2F;QAC3F,4FAA4F;QAC5F,yDAAyD;QACzD,MAAM,IAAI,KAAK,CACb,gGAAgG;cAC9F,mFAAmF,CACtF,CAAC;IACJ,CAA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AAI;QACR,WAAW;QACX,UAAU,EAAE,cAAc,CAAC,IAAI;QAC/B,UAAU,EAAE,cAAc,CAAC,UAAU;QACrC,KAAK;KACN,CAAC;AACJ,CAAC","sourcesContent":["import type { BackendProviderModule, BackendProtocolBinding } from '@wildo-ai/external-connectors-private/backend';\nimport { ExternalProvider_ExchangeProtocol_Kind, ProviderProtocolRuntimeKind } from '@wildo-ai/external-connectors-models';\nimport {\n getComposedProviderEntry,\n getComposedProviderSecretsCatalogue,\n LiveEnvKeySet,\n memoiseOverCatalogue,\n} from '~wildo-cli/services/credentials/composed-provider-catalogue';\n\nexport interface ProviderSecretEnvBinding {\n protocolKind: string;\n secretRef: string;\n envVarName: string;\n required?: boolean;\n executionProfileRef?: string;\n}\n\n/**\n * Which provider secrets a generated runtime environment is entitled to.\n *\n * ## Why this is a named vocabulary rather than `readonly string[] | null`\n *\n * The scope answers a fail-closed SECURITY question — \"may this process read the application's\n * Stripe key?\" — and the previous encoding made three distinct answers share two values:\n *\n * | Meaning | Old encoding | Problem |\n * |---|---|---|\n * | Platform tier: every provider secret | `null` | fine, but only by convention |\n * | Declares none, legitimately (`myRustWorker` authors `providers: {}`) | `[]` | — |\n * | Nobody threaded the value through | `undefined` → `?? []` | **collapses into the row above** |\n *\n * So a wiring omission and a valid configuration produced byte-identical output, and the failure\n * was invisible: a `.env` missing every provider secret looks exactly like a correctly-scoped one\n * for a runtime that needs none. That is how five of six call sites shipped without a scope, and\n * how a `wildo config sync` came to strip `STRIPE_SECRET_KEY`, `RESEND_API_KEY`, `OPENAI_API_KEY`\n * and the `IMMUDB_*` connection out of the Wonder Todos backend `.env` — the application then died\n * at startup resolving its billing provider, three layers away from the cause.\n *\n * Fail-closed is the correct posture for a DECISION. Applied to an OMISSION it is a silent outage.\n * This union removes the omission from the type system: there is no value meaning \"not stated\", so\n * a caller must decide, and a new call site cannot compile without deciding.\n *\n * @see {@link declaredProviderScope} / {@link platformTierAllProvidersScope} — the two constructors.\n */\nexport enum RuntimeProviderScopeKind {\n /**\n * Platform-tier runtime (apps-manager, the dev companion): receives every provider secret in the\n * environment. A deliberate, reviewable declaration — never the default, and never what an\n * application-tier runtime gets.\n */\n PLATFORM_TIER_ALL_PROVIDERS = 'platform_tier_all_providers',\n /**\n * Application-tier runtime: exactly the providers its `providers.scopes.{backend,workers.<name>,\n * minions.<name>}.providers` authors, and nothing else. An EMPTY set is a legitimate, explicit\n * answer here — it means the runtime declared no provider — which is precisely why it must not\n * double as the encoding for \"the caller forgot\".\n */\n DECLARED = 'declared',\n}\n\nexport type RuntimeProviderScope =\n | { readonly kind: RuntimeProviderScopeKind.PLATFORM_TIER_ALL_PROVIDERS }\n | { readonly kind: RuntimeProviderScopeKind.DECLARED; readonly providerRefs: readonly string[] };\n\n/**\n * The application-tier scope: exactly the authored provider refs.\n *\n * Pass the refs resolved from `providers.scopes.*` — an empty array is meaningful and accepted\n * (the runtime authored no provider), so this constructor deliberately does NOT treat `[]` as a\n * mistake to be corrected.\n */\nexport function declaredProviderScope(providerRefs: readonly string[]): RuntimeProviderScope {\n if (!Array.isArray(providerRefs)) {\n // The type system cannot reach every caller: env targets are built behind `as never` casts in\n // tests, and a JSON-shaped target could arrive without the field at all. In those paths an\n // absent value would flow straight through as `providerRefs: undefined` and be filtered as\n // \"declares nothing\" — reinstating, at runtime, exactly the silent-empty failure the union\n // removed from the type. Throwing keeps the two states distinguishable everywhere: an empty\n // scope has to be WRITTEN as `[]`, never merely omitted.\n throw new Error(\n 'declaredProviderScope() requires an explicit provider-ref array. Pass `[]` for a runtime that '\n + 'authors no provider — an omitted scope is not the same statement as an empty one.',\n );\n }\n return { kind: RuntimeProviderScopeKind.DECLARED, providerRefs };\n}\n\n/**\n * The platform-tier scope: every provider secret.\n *\n * A function rather than a shared constant so each call site reads as its own decision at the\n * point it is made, and so no consumer can retain a reference and hand it to an application-tier\n * builder later.\n */\nexport function platformTierAllProvidersScope(): RuntimeProviderScope {\n return { kind: RuntimeProviderScopeKind.PLATFORM_TIER_ALL_PROVIDERS };\n}\n\n/**\n * The authored `providerConfigurations` keys that can carry a provider module's declared protocol.\n *\n * Two spellings, because the two sides of this lookup name one vocabulary differently: a provider\n * module declares `protocol: 'LLM_PROVIDER'` — the enum MEMBER NAME — while an application authors\n * `[ExternalProvider_ExchangeProtocol_Kind.LLM_PROVIDER]`, which evaluates to the enum VALUE\n * `'llm_provider'`. Neither side is wrong; something has to translate.\n *\n * DERIVED from the enum rather than hand-listed, because the hand-listed table this replaces\n * drifted in both directions at once and neither direction could be seen. Typed\n * `Record<string, string[]>`, it kept a `CLI_RUNTIME` row after that kind was retired — an inert\n * entry no compiler could flag — and never gained `AGENT_CLIENT_PROTOCOL`, `IMAGE_PROVIDER` or\n * `DOCUMENT_EXTRACTION_PROVIDER`, because a missing entry resolves to `undefined` and the fallback\n * then tries only the uppercase member name, which no authored configuration ever uses. The live\n * consequence was that an ACP provider's authored `executionProfiles` were never found, so a\n * `SECRET_REF_ENV_INJECTION` profile bound no environment variable and failed at auth time with\n * nothing pointing back here.\n *\n * Reading the enum cannot omit a member and cannot retain a retired one.\n *\n * `backendProtocol` arrives as a bare `string` (`BackendProtocolBinding` is generic over it), so\n * the index cast is the boundary where an untyped value meets the enum. A string enum has no\n * reverse mapping, so a value that is not a member name reads back `undefined` — which is the\n * signal to fall back to the protocol string itself rather than to guess a second spelling.\n */\nfunction backendProtocolConfigKeys(backendProtocol: string): readonly string[] {\n const wireValue = (ExternalProvider_ExchangeProtocol_Kind as Record<string, string | undefined>)[\n backendProtocol\n ];\n return wireValue === undefined ? [backendProtocol] : [backendProtocol, wireValue];\n}\n\nfunction getConfiguredProtocol(\n configuredProtocols: Partial<Record<string, Record<string, unknown>>> | undefined,\n backendProtocol: string,\n): Record<string, unknown> | undefined {\n for (const key of backendProtocolConfigKeys(backendProtocol)) {\n const config = configuredProtocols?.[key];\n if (config) return config;\n }\n return undefined;\n}\n\n/**\n * EXPORTED since #341 so the per-protocol binding is reachable on its own.\n *\n * Since #329 the ref is resolved through the COMPOSED catalogue rather than the engine registry,\n * so a package-shipped provider's protocols reach this function as soon as discovery registers it.\n * A contribution-sourced entry carries no runtime contracts (a binding is code, a contribution is\n * data), so this function is reached for such a provider only when a caller holds a binding of its\n * own; its secret keys are attributed from the contract half instead, which is complete — see\n * `composed-provider-catalogue.ts`.\n */\nexport function getProtocolSecretEnvBindings(\n providerRef: string,\n protocol: BackendProtocolBinding,\n configuredProtocol?: Record<string, unknown>,\n): ProviderSecretEnvBinding[] {\n const bindings: ProviderSecretEnvBinding[] = [];\n\n const pushSecret = (secretRef: string | undefined) => {\n if (!secretRef) return;\n const matchingEntry = getComposedProviderEntry(providerRef)\n ?.secrets.find((entry) => entry.envVarName === secretRef);\n bindings.push({\n protocolKind: protocol.protocol,\n secretRef,\n envVarName: matchingEntry?.envVarName ?? secretRef,\n required: matchingEntry?.required,\n });\n };\n\n const runtimeContract = protocol.runtimeContract;\n\n switch (runtimeContract.kind) {\n case ProviderProtocolRuntimeKind.LLM:\n pushSecret(runtimeContract.apiKey.secretRef);\n break;\n case ProviderProtocolRuntimeKind.REST:\n /*\n * Same shape as `llm` above: the contract's `apiKey.secretRef` names the env var carrying the\n * key. Absent, this switch's `default` THREW at module load — and because these bindings are\n * computed while the module is evaluated, that killed the ENTIRE CLI: `wildo help` and\n * `wildo config validate` both died with `Unsupported provider runtime contract kind: rest`,\n * so a single unhandled provider kind made every unrelated command unusable.\n */\n pushSecret(runtimeContract.apiKey?.secretRef);\n break;\n case ProviderProtocolRuntimeKind.IMAGE:\n // Image-generation transport (gpt-image) — same API-key secret shape as llm.\n pushSecret(runtimeContract.apiKey.secretRef);\n break;\n case ProviderProtocolRuntimeKind.EMBEDDINGS:\n // Embeddings transport (RAG drain/retrieval) — same API-key secret shape as llm/image.\n pushSecret(runtimeContract.apiKey.secretRef);\n break;\n case ProviderProtocolRuntimeKind.DOCUMENT_EXTRACTION:\n // Document-extraction transport (OCR) — same API-key secret shape as llm/image/embeddings,\n // even though this family builds its own HTTPS request instead of handing the key to an SDK.\n // What the binding needs is the env var NAME, which is identical either way.\n pushSecret(runtimeContract.apiKey.secretRef);\n break;\n case ProviderProtocolRuntimeKind.CONTENT_SAFETY:\n // A content-safety classifier (#2292): the same API-key shape as document extraction.\n pushSecret(runtimeContract.apiKey.secretRef);\n break;\n case ProviderProtocolRuntimeKind.EMAIL:\n // The `email` runtime contract is a discriminated union on `delivery`:\n // the network variant (real providers — Resend, Postmark, Mailgun, …)\n // carries an `apiKey.secretRef`, while the `delivery: 'log'` variant\n // (the `email-preview` local/dev provider) intentionally carries NO\n // credentials — a log sink needs no API key. Branch on the contract\n // field, never on the provider ref: a log provider has no secret to bind.\n if (runtimeContract.delivery !== 'log') {\n pushSecret(runtimeContract.apiKey.secretRef);\n }\n break;\n case ProviderProtocolRuntimeKind.OAUTH2_SSO:\n pushSecret(runtimeContract.clientSecretRef);\n if (typeof runtimeContract.extensions?.teamIdSecretRef === 'string') {\n pushSecret(runtimeContract.extensions.teamIdSecretRef);\n }\n if (typeof runtimeContract.extensions?.keyIdSecretRef === 'string') {\n pushSecret(runtimeContract.extensions.keyIdSecretRef);\n }\n break;\n case ProviderProtocolRuntimeKind.BILLING:\n case ProviderProtocolRuntimeKind.WEBHOOK_ORIGINATOR:\n pushSecret(runtimeContract.secretRef);\n break;\n case ProviderProtocolRuntimeKind.SMS:\n // A receiving-email provider: the API key its message and attachment fetches carry (#1630).\n case ProviderProtocolRuntimeKind.EMAIL_INBOUND:\n pushSecret(runtimeContract.auth.secretRef);\n break;\n case ProviderProtocolRuntimeKind.AGENT_CLIENT_PROTOCOL:\n // A coding agent under host-managed auth (the default) declares no\n // secretRef at all — `pushSecret` is a no-op for `undefined`, which is\n // the correct outcome: nothing to bind, and nothing to warn about.\n pushSecret(runtimeContract.secretRef);\n break;\n default: {\n // Exhaustive on purpose: every engine-side switch over `runtimeContract.kind` carries this\n // `never` check, and this site was the one that did not — which is exactly how the\n // `embeddings` kind shipped without a case here and crashed `wildo local dev` at module load\n // (2026-08-27). A new kind must fail COMPILATION here, not the next developer's startup.\n const exhaustiveCheck: never = runtimeContract;\n throw new Error(`Unsupported provider runtime contract kind: ${JSON.stringify(exhaustiveCheck)}`);\n }\n }\n\n // Execution-profile secret bindings.\n //\n // NOTE this is a SECOND dispatch on the same axis as the switch above, and it\n // is an `if` rather than a `case`, so the `never` check does NOT protect it:\n // a new execution-profile-bearing kind added to the switch and forgotten here\n // compiles perfectly and silently binds no environment variable, leaving the\n // agent to fail at auth time with no indication that a secret was authored.\n // Every kind that owns execution profiles must be listed.\n if (runtimeContract.kind === ProviderProtocolRuntimeKind.AGENT_CLIENT_PROTOCOL) {\n const agentClientProtocolConfig = configuredProtocol as\n | {\n executionProfiles?: Record<\n string,\n {\n authMode?: string;\n secretRef?: string;\n secretEnvVarName?: string;\n }\n >;\n }\n | undefined;\n const executionProfiles = agentClientProtocolConfig?.executionProfiles ?? {};\n for (const [executionProfileRef, executionProfile] of Object.entries(executionProfiles)) {\n if (\n executionProfile.authMode === 'secret_ref_env_injection'\n && executionProfile.secretRef\n && executionProfile.secretEnvVarName\n ) {\n bindings.push({\n protocolKind: protocol.protocol,\n secretRef: executionProfile.secretRef,\n envVarName: executionProfile.secretEnvVarName,\n executionProfileRef,\n });\n }\n }\n }\n\n return bindings.filter((binding, index, allBindings) => (\n allBindings.findIndex((candidate) => (\n candidate.protocolKind === binding.protocolKind\n && candidate.secretRef === binding.secretRef\n && candidate.envVarName === binding.envVarName\n && candidate.executionProfileRef === binding.executionProfileRef\n )) === index\n ));\n}\n\n/**\n * Every environment variable the named provider's PROTOCOL BINDINGS require.\n *\n * Resolves through the composed catalogue (#329). A provider known only from a companion\n * contribution has no runtime contracts, so this answers `[]` for it — deliberately, and without\n * loss: its secret keys are classified and allow-listed from its `secretsContract` shape, which\n * for every engine provider measured is a superset of what the bindings name.\n */\nexport function getProviderSecretEnvBindings(\n providerRef: string,\n configuredProtocols?: Partial<Record<string, Record<string, unknown>>>,\n): ProviderSecretEnvBinding[] {\n const entry = getComposedProviderEntry(providerRef);\n if (!entry) return [];\n\n return entry.protocolBindings.flatMap((protocol) => (\n getProtocolSecretEnvBindings(\n providerRef,\n protocol,\n getConfiguredProtocol(configuredProtocols, protocol.protocol),\n )\n ));\n}\n\n/**\n * Derives the canonical env var name for a provider's generic secret binding\n * from its protocol definitions.\n *\n * This is useful for setup flows that collect one provider secret value and\n * need to store it directly in the canonical `providerEnv` map. Transport-aware\n * callers should still prefer `getProviderSecretEnvBindings()`.\n */\nexport function getProviderSecretEnvVarName(\n providerRefOrModule: string | BackendProviderModule,\n): string | undefined {\n const providerRef =\n typeof providerRefOrModule === 'string'\n ? providerRefOrModule\n : providerRefOrModule.metadata.ref;\n const bindings = getProviderSecretEnvBindings(providerRef);\n return bindings.find((binding) => !binding.executionProfileRef)?.envVarName;\n}\n\n/**\n * Every provider-related env var name that must be classified as sensitive.\n *\n * Derived from the COMPOSED catalogue (#329) — engine tier plus whatever discovery registered —\n * so a package-shipped provider's key is classified like any other. It used to enumerate\n * `EngineBackendProviderRegistry` alone, which meant a package provider's key was attributable to\n * nobody: unclassified for the Secret/ConfigMap split, and kept by the confinement filter as\n * \"configuration\".\n *\n * Recomputed whenever composition changes rather than cached once, because discovery necessarily\n * runs after this module is imported.\n */\nexport const getProviderSensitiveEnvKeys: () => ReadonlySet<string> = memoiseOverCatalogue(() => {\n const keys = new Set<string>();\n for (const entry of getComposedProviderSecretsCatalogue().values()) {\n for (const secret of entry.secrets) keys.add(secret.envVarName);\n for (const binding of getProviderSecretEnvBindings(entry.providerRef)) keys.add(binding.envVarName);\n }\n return keys;\n});\n\n/** One secret a provider declares. */\nexport interface ProviderSelectionSecret {\n envVarName: string;\n description?: string;\n /** The provider refuses to boot without this var once the provider is enabled. */\n required: boolean;\n}\n\n/** One provider that declares at least one secret, with its operator-facing label. */\nexport interface ProviderSelectionCatalogEntry {\n providerRef: string;\n /** Operator-facing label (falls back to the ref when no display name is set). */\n label: string;\n /** Every secret this provider declares, in contract order. */\n secrets: ProviderSelectionSecret[];\n}\n\n/**\n * Every provider that declares a secret, derived from the COMPOSED provider catalogue (engine tier plus\n * whatever discovery registered — #329), sorted by label. `wildo setup`'s summary names the configured\n * providers from it.\n *\n * It used to power a setup step that offered this whole catalogue for credentials, grouped by a\n * presentation category. That step was removed (#1637): setup asks only for the companion's LLM key, and\n * every other secret is asked when its feature needs it (`wildo secrets`), derived from what the\n * application scopes rather than from everything that exists. The grouping went with it.\n *\n * Providers with an empty `secretsContract` (e.g. the `email-preview` log sink) are omitted.\n */\nexport function getProviderSelectionCatalog(): ProviderSelectionCatalogEntry[] {\n const entries: ProviderSelectionCatalogEntry[] = [];\n for (const provider of getComposedProviderSecretsCatalogue().values()) {\n const secrets: ProviderSelectionSecret[] = provider.secrets.map((secret) => ({\n envVarName: secret.envVarName,\n description: secret.description,\n required: secret.required,\n }));\n if (secrets.length === 0) continue;\n entries.push({ providerRef: provider.providerRef, label: provider.label, secrets });\n }\n return entries.sort((a, b) => a.label.localeCompare(b.label));\n}\n\n/**\n * All provider env-var names classified as sensitive, as a LIVE view.\n *\n * It was a module-load snapshot until #329, and a snapshot cannot work once composition is a\n * thing that happens: this module is imported by `credentials.schemas.ts` on the CLI's first\n * touch of the credential layer, which is always before an application's provider packages have\n * been discovered. A snapshot would therefore have been permanently blind to exactly the tier\n * this slice exists to classify. The exported NAME and the `.has()` shape are unchanged, so its\n * consumers need no edit.\n */\nexport const PROVIDER_SENSITIVE_ENV_KEYS: ReadonlySet<string> = new LiveEnvKeySet(getProviderSensitiveEnvKeys);\n\n// ============================================================================\n// Provider API-key resolution over the composed catalogue (seam for #331)\n// ============================================================================\n\n/**\n * Why a provider's credential could not be resolved.\n *\n * A closed vocabulary rather than a message string, because the caller BRANCHES on it: an\n * executor surfaces `SECRET_NOT_PROVISIONED` to an operator as \"run `wildo secrets set`\", and\n * `NOT_IN_SCOPE` to a developer as \"this runtime does not declare that provider\" — two very\n * different remedies that a single \"failed to resolve\" would have flattened.\n */\nexport enum ProviderApiKeyRefusal {\n /** No entry in the composed catalogue claims the ref — engine tier or discovered. */\n UNKNOWN_PROVIDER = 'unknown_provider',\n /** The runtime's declared provider scope does not carry this provider. */\n NOT_IN_SCOPE = 'not_in_scope',\n /** An operation named `requiredScopes` slugs the provider does not declare. */\n UNDECLARED_SCOPES = 'undeclared_scopes',\n /**\n * The caller named a `secretSlug` the provider does not declare.\n *\n * Distinct from `UNDECLARED_SCOPES` on purpose, even though both mean \"a slug that is not in the\n * contract\": one says an OPERATION requires a credential the package never ships (re-generate or\n * retire the operation), the other says THIS CALL asked for the wrong slug (a caller bug). A\n * caller branches differently on each, and merging two remedies under one member is exactly the\n * vocabulary collapse this repository's closed-vocabulary rule exists to prevent.\n */\n UNDECLARED_SECRET_SLUG = 'undeclared_secret_slug',\n /** The contract declares several candidate secrets and the caller named none. */\n AMBIGUOUS_SECRET = 'ambiguous_secret',\n /** The contract is satisfied; the value is simply not provisioned in this environment. */\n SECRET_NOT_PROVISIONED = 'secret_not_provisioned',\n}\n\nexport type ProviderApiKeyResolution =\n | { ok: true; providerRef: string; secretSlug: string; envVarName: string; value: string }\n | { ok: false; providerRef: string; refusal: ProviderApiKeyRefusal; detail: string };\n\nexport interface ProviderApiKeyRequest {\n providerRef: string;\n /**\n * What the runtime asking for the key is entitled to. Positional-equivalent to the scope\n * threaded through {@link declaredProviderScope} everywhere else in this layer, and required\n * for the same reason: an optional entitlement is one nobody decides, and the whole provider\n * bag reaching every runtime is what that produced last time.\n */\n runtimeScope: RuntimeProviderScope;\n /** Where values come from. Never `process.env` read by this function — the caller decides. */\n providerEnv: Record<string, string>;\n /**\n * Secret-contract SLUGS an operation requires, checked against the provider's contract.\n *\n * These are contract slugs, NOT OAuth scopes: a delegated-authorization scope check needs a\n * connected-account store and belongs to the delegated-auth slice. What is honestly checkable\n * here is that every credential a catalogue operation names is one the provider package\n * actually declares — so a generated operation asking for a credential its package never\n * ships is refused at resolution instead of at the vendor's 401.\n */\n requiredScopes?: readonly string[];\n /** Which contract slug carries the key. Defaults to the sole required (else sole) secret. */\n secretSlug?: string;\n}\n\n/**\n * Resolve one provider credential over the COMPOSED catalogue.\n *\n * The seam #331's operation executor consumes (plan, wave-1 seam table). Three properties are\n * what make it worth having over a bare `providerEnv[secretRef]`:\n *\n * 1. It resolves over the composed catalogue, so it answers for a package-shipped provider the\n * moment discovery registers one, and refuses `UNKNOWN_PROVIDER` BY NAME before that — rather\n * than silently reading an env var nothing claims.\n * 2. It checks entitlement against the same {@link RuntimeProviderScope} the confinement filter\n * uses, so \"the executor could read it\" and \"the env var was allowed into this runtime\" can\n * never disagree.\n * 3. It never touches `process.env`. The caller supplies the source, which keeps the function a\n * pure decision and therefore testable without an ambient environment.\n */\nexport function getProviderApiKey(input: ProviderApiKeyRequest): ProviderApiKeyResolution {\n const { providerRef, runtimeScope, providerEnv, requiredScopes = [], secretSlug } = input;\n\n const entry = getComposedProviderEntry(providerRef);\n if (!entry) {\n return {\n ok: false,\n providerRef,\n refusal: ProviderApiKeyRefusal.UNKNOWN_PROVIDER,\n detail:\n `No provider '${providerRef}' in the composed catalogue. Either the application does not `\n + 'declare its package, or discovery has not registered its companion contribution.',\n };\n }\n\n if (\n runtimeScope.kind === RuntimeProviderScopeKind.DECLARED\n && !runtimeScope.providerRefs.includes(providerRef)\n ) {\n return {\n ok: false,\n providerRef,\n refusal: ProviderApiKeyRefusal.NOT_IN_SCOPE,\n detail:\n `This runtime declares [${runtimeScope.providerRefs.join(', ') || 'none'}] and not `\n + `'${providerRef}', so its credential is deliberately absent from this environment.`,\n };\n }\n\n const declaredSlugs = new Set(entry.secrets.map((secret) => secret.slug));\n const missingScopes = requiredScopes.filter((slug) => !declaredSlugs.has(slug));\n if (missingScopes.length > 0) {\n return {\n ok: false,\n providerRef,\n refusal: ProviderApiKeyRefusal.UNDECLARED_SCOPES,\n detail:\n `Provider '${providerRef}' declares no secret-contract slug [${missingScopes.join(', ')}]; `\n + `its contract holds [${[...declaredSlugs].join(', ') || 'none'}].`,\n };\n }\n\n const candidates = entry.secrets.filter((secret) => secret.required);\n const resolvedSecret = secretSlug\n ? entry.secrets.find((secret) => secret.slug === secretSlug)\n : (candidates.length === 1 ? candidates[0] : (entry.secrets.length === 1 ? entry.secrets[0] : undefined));\n\n if (!resolvedSecret) {\n return {\n ok: false,\n providerRef,\n refusal: secretSlug ? ProviderApiKeyRefusal.UNDECLARED_SECRET_SLUG : ProviderApiKeyRefusal.AMBIGUOUS_SECRET,\n detail: secretSlug\n ? `Provider '${providerRef}' declares no secret-contract slug '${secretSlug}'.`\n : `Provider '${providerRef}' declares ${entry.secrets.length} secrets and none is uniquely `\n + 'required — name the slug that carries the credential.',\n };\n }\n\n const value = providerEnv[resolvedSecret.envVarName];\n if (!value) {\n return {\n ok: false,\n providerRef,\n refusal: ProviderApiKeyRefusal.SECRET_NOT_PROVISIONED,\n detail:\n `Provider '${providerRef}' is in scope and declares '${resolvedSecret.slug}', but `\n + `${resolvedSecret.envVarName} carries no value in this environment. Provide it with `\n + `\\`wildo secrets set ${resolvedSecret.envVarName}\\`.`,\n };\n }\n\n return {\n ok: true,\n providerRef,\n secretSlug: resolvedSecret.slug,\n envVarName: resolvedSecret.envVarName,\n value,\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"provider-env-vars.utils.js","sourceRoot":"","sources":["../../../../src/services/credentials/provider-env-vars.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sCAAsC,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAC3H,OAAO,EACL,wBAAwB,EACxB,mCAAmC,EACnC,aAAa,EACb,oBAAoB,GACrB,MAAM,6DAA6D,CAAC;AAUrE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAN,IAAY,wBAcX;AAdD,WAAY,wBAAwB;IAClC;;;;OAIG;IACH,uFAA2D,CAAA;IAC3D;;;;;OAKG;IACH,iDAAqB,CAAA;AACvB,CAAC,EAdW,wBAAwB,KAAxB,wBAA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AAC;QAC5D,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAE5G,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,OAAO;YACL,EAAE,EAAE,KAAK;YACT,WAAW;YACX,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,CAAC,CAAC,qBAAqB,CAAC,gBAAgB;YAC3G,MAAM,EAAE,UAAU;gBAChB,CAAC,CAAC,aAAa,WAAW,uCAAuC,UAAU,IAAI;gBAC/E,CAAC,CAAC,aAAa,WAAW,cAAc,KAAK,CAAC,OAAO,CAAC,MAAM,gCAAgC;sBACxF,uDAAuD;SAC9D,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,GAAG,WAAW,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IACrD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO;YACL,EAAE,EAAE,KAAK;YACT,WAAW;YACX,OAAO,EAAE,qBAAqB,CAAC,sBAAsB;YACrD,MAAM,EACJ,aAAa,WAAW,+BAA+B,cAAc,CAAC,IAAI,SAAS;kBACjF,GAAG,cAAc,CAAC,UAAU,yDAAyD;kBACrF,uBAAuB,cAAc,CAAC,UAAU,KAAK;SAC1D,CAAC;IACJ,CAAC;IAED,OAAO;QACL,EAAE,EAAE,IAAI;QACR,WAAW;QACX,UAAU,EAAE,cAAc,CAAC,IAAI;QAC/B,UAAU,EAAE,cAAc,CAAC,UAAU;QACrC,KAAK;KACN,CAAC;AACJ,CAAC","sourcesContent":["import type { BackendProviderModule, BackendProtocolBinding } from '@wildo-ai/external-connectors-private/backend';\nimport { ExternalProvider_ExchangeProtocol_Kind, ProviderProtocolRuntimeKind } from '@wildo-ai/external-connectors-models';\nimport {\n getComposedProviderEntry,\n getComposedProviderSecretsCatalogue,\n LiveEnvKeySet,\n memoiseOverCatalogue,\n} from '~wildo-cli/services/credentials/composed-provider-catalogue';\n\nexport interface ProviderSecretEnvBinding {\n protocolKind: string;\n secretRef: string;\n envVarName: string;\n required?: boolean;\n executionProfileRef?: string;\n}\n\n/**\n * Which provider secrets a generated runtime environment is entitled to.\n *\n * ## Why this is a named vocabulary rather than `readonly string[] | null`\n *\n * The scope answers a fail-closed SECURITY question — \"may this process read the application's\n * Stripe key?\" — and the previous encoding made three distinct answers share two values:\n *\n * | Meaning | Old encoding | Problem |\n * |---|---|---|\n * | Platform tier: every provider secret | `null` | fine, but only by convention |\n * | Declares none, legitimately (`myRustWorker` authors `providers: {}`) | `[]` | — |\n * | Nobody threaded the value through | `undefined` → `?? []` | **collapses into the row above** |\n *\n * So a wiring omission and a valid configuration produced byte-identical output, and the failure\n * was invisible: a `.env` missing every provider secret looks exactly like a correctly-scoped one\n * for a runtime that needs none. That is how five of six call sites shipped without a scope, and\n * how a `wildo config sync` came to strip `STRIPE_SECRET_KEY`, `RESEND_API_KEY`, `OPENAI_API_KEY`\n * and the `IMMUDB_*` connection out of the Wonder Todos backend `.env` — the application then died\n * at startup resolving its billing provider, three layers away from the cause.\n *\n * Fail-closed is the correct posture for a DECISION. Applied to an OMISSION it is a silent outage.\n * This union removes the omission from the type system: there is no value meaning \"not stated\", so\n * a caller must decide, and a new call site cannot compile without deciding.\n *\n * @see {@link declaredProviderScope} / {@link platformTierAllProvidersScope} — the two constructors.\n */\nexport enum RuntimeProviderScopeKind {\n /**\n * Platform-tier runtime (apps-manager, the dev companion): receives every provider secret in the\n * environment. A deliberate, reviewable declaration — never the default, and never what an\n * application-tier runtime gets.\n */\n PLATFORM_TIER_ALL_PROVIDERS = 'platform_tier_all_providers',\n /**\n * Application-tier runtime: exactly the providers its `providers.scopes.{backend,workers.<name>,\n * minions.<name>}.providers` authors, and nothing else. An EMPTY set is a legitimate, explicit\n * answer here — it means the runtime declared no provider — which is precisely why it must not\n * double as the encoding for \"the caller forgot\".\n */\n DECLARED = 'declared',\n}\n\nexport type RuntimeProviderScope =\n | { readonly kind: RuntimeProviderScopeKind.PLATFORM_TIER_ALL_PROVIDERS }\n | { readonly kind: RuntimeProviderScopeKind.DECLARED; readonly providerRefs: readonly string[] };\n\n/**\n * The application-tier scope: exactly the authored provider refs.\n *\n * Pass the refs resolved from `providers.scopes.*` — an empty array is meaningful and accepted\n * (the runtime authored no provider), so this constructor deliberately does NOT treat `[]` as a\n * mistake to be corrected.\n */\nexport function declaredProviderScope(providerRefs: readonly string[]): RuntimeProviderScope {\n if (!Array.isArray(providerRefs)) {\n // The type system cannot reach every caller: env targets are built behind `as never` casts in\n // tests, and a JSON-shaped target could arrive without the field at all. In those paths an\n // absent value would flow straight through as `providerRefs: undefined` and be filtered as\n // \"declares nothing\" — reinstating, at runtime, exactly the silent-empty failure the union\n // removed from the type. Throwing keeps the two states distinguishable everywhere: an empty\n // scope has to be WRITTEN as `[]`, never merely omitted.\n throw new Error(\n 'declaredProviderScope() requires an explicit provider-ref array. Pass `[]` for a runtime that '\n + 'authors no provider — an omitted scope is not the same statement as an empty one.',\n );\n }\n return { kind: RuntimeProviderScopeKind.DECLARED, providerRefs };\n}\n\n/**\n * The platform-tier scope: every provider secret.\n *\n * A function rather than a shared constant so each call site reads as its own decision at the\n * point it is made, and so no consumer can retain a reference and hand it to an application-tier\n * builder later.\n */\nexport function platformTierAllProvidersScope(): RuntimeProviderScope {\n return { kind: RuntimeProviderScopeKind.PLATFORM_TIER_ALL_PROVIDERS };\n}\n\n/**\n * The authored `providerConfigurations` keys that can carry a provider module's declared protocol.\n *\n * Two spellings, because the two sides of this lookup name one vocabulary differently: a provider\n * module declares `protocol: 'LLM_PROVIDER'` — the enum MEMBER NAME — while an application authors\n * `[ExternalProvider_ExchangeProtocol_Kind.LLM_PROVIDER]`, which evaluates to the enum VALUE\n * `'llm_provider'`. Neither side is wrong; something has to translate.\n *\n * DERIVED from the enum rather than hand-listed, because the hand-listed table this replaces\n * drifted in both directions at once and neither direction could be seen. Typed\n * `Record<string, string[]>`, it kept a `CLI_RUNTIME` row after that kind was retired — an inert\n * entry no compiler could flag — and never gained `AGENT_CLIENT_PROTOCOL`, `IMAGE_PROVIDER` or\n * `DOCUMENT_EXTRACTION_PROVIDER`, because a missing entry resolves to `undefined` and the fallback\n * then tries only the uppercase member name, which no authored configuration ever uses. The live\n * consequence was that an ACP provider's authored `executionProfiles` were never found, so a\n * `SECRET_REF_ENV_INJECTION` profile bound no environment variable and failed at auth time with\n * nothing pointing back here.\n *\n * Reading the enum cannot omit a member and cannot retain a retired one.\n *\n * `backendProtocol` arrives as a bare `string` (`BackendProtocolBinding` is generic over it), so\n * the index cast is the boundary where an untyped value meets the enum. A string enum has no\n * reverse mapping, so a value that is not a member name reads back `undefined` — which is the\n * signal to fall back to the protocol string itself rather than to guess a second spelling.\n */\nfunction backendProtocolConfigKeys(backendProtocol: string): readonly string[] {\n const wireValue = (ExternalProvider_ExchangeProtocol_Kind as Record<string, string | undefined>)[\n backendProtocol\n ];\n return wireValue === undefined ? [backendProtocol] : [backendProtocol, wireValue];\n}\n\nfunction getConfiguredProtocol(\n configuredProtocols: Partial<Record<string, Record<string, unknown>>> | undefined,\n backendProtocol: string,\n): Record<string, unknown> | undefined {\n for (const key of backendProtocolConfigKeys(backendProtocol)) {\n const config = configuredProtocols?.[key];\n if (config) return config;\n }\n return undefined;\n}\n\n/**\n * EXPORTED since #341 so the per-protocol binding is reachable on its own.\n *\n * Since #329 the ref is resolved through the COMPOSED catalogue rather than the engine registry,\n * so a package-shipped provider's protocols reach this function as soon as discovery registers it.\n * A contribution-sourced entry carries no runtime contracts (a binding is code, a contribution is\n * data), so this function is reached for such a provider only when a caller holds a binding of its\n * own; its secret keys are attributed from the contract half instead, which is complete — see\n * `composed-provider-catalogue.ts`.\n */\nexport function getProtocolSecretEnvBindings(\n providerRef: string,\n protocol: BackendProtocolBinding,\n configuredProtocol?: Record<string, unknown>,\n): ProviderSecretEnvBinding[] {\n const bindings: ProviderSecretEnvBinding[] = [];\n\n const pushSecret = (secretRef: string | undefined) => {\n if (!secretRef) return;\n const matchingEntry = getComposedProviderEntry(providerRef)\n ?.secrets.find((entry) => entry.envVarName === secretRef);\n bindings.push({\n protocolKind: protocol.protocol,\n secretRef,\n envVarName: matchingEntry?.envVarName ?? secretRef,\n required: matchingEntry?.required,\n });\n };\n\n const runtimeContract = protocol.runtimeContract;\n\n switch (runtimeContract.kind) {\n case ProviderProtocolRuntimeKind.LLM:\n // An arm that signs each request instead (#3780, Amazon Bedrock with IAM credentials) holds its two halves and an\n // optional session token, exactly as a signed document-extraction arm does below.\n pushSecret(runtimeContract.apiKey?.secretRef);\n pushSecret(runtimeContract.requestSigning?.keyIdSecretRef);\n pushSecret(runtimeContract.requestSigning?.secretKeySecretRef);\n pushSecret(runtimeContract.requestSigning?.sessionTokenSecretRef);\n break;\n case ProviderProtocolRuntimeKind.REST:\n /*\n * Same shape as `llm` above: the contract's `apiKey.secretRef` names the env var carrying the\n * key. Absent, this switch's `default` THREW at module load — and because these bindings are\n * computed while the module is evaluated, that killed the ENTIRE CLI: `wildo help` and\n * `wildo config validate` both died with `Unsupported provider runtime contract kind: rest`,\n * so a single unhandled provider kind made every unrelated command unusable.\n */\n pushSecret(runtimeContract.apiKey?.secretRef);\n break;\n case ProviderProtocolRuntimeKind.IMAGE:\n // Image-generation transport (gpt-image) — same API-key secret shape as llm.\n pushSecret(runtimeContract.apiKey.secretRef);\n break;\n case ProviderProtocolRuntimeKind.EMBEDDINGS:\n // Embeddings transport (RAG drain/retrieval) — same secret shape as llm, signed arms included (#3780).\n pushSecret(runtimeContract.apiKey?.secretRef);\n pushSecret(runtimeContract.requestSigning?.keyIdSecretRef);\n pushSecret(runtimeContract.requestSigning?.secretKeySecretRef);\n pushSecret(runtimeContract.requestSigning?.sessionTokenSecretRef);\n break;\n case ProviderProtocolRuntimeKind.DOCUMENT_EXTRACTION:\n // Document-extraction transport (OCR) — same API-key secret shape as llm/image/embeddings,\n // even though this family builds its own HTTPS request instead of handing the key to an SDK.\n // What the binding needs is the env var NAME, which is identical either way. A contract that signs\n // each request instead (#3426, AWS Textract) holds its two halves and an optional session token.\n pushSecret(runtimeContract.apiKey?.secretRef);\n pushSecret(runtimeContract.requestSigning?.keyIdSecretRef);\n pushSecret(runtimeContract.requestSigning?.secretKeySecretRef);\n pushSecret(runtimeContract.requestSigning?.sessionTokenSecretRef);\n break;\n case ProviderProtocolRuntimeKind.CONTENT_SAFETY:\n // A content-safety classifier (#2292): the same API-key shape as document extraction.\n pushSecret(runtimeContract.apiKey.secretRef);\n break;\n case ProviderProtocolRuntimeKind.ELECTRONIC_SIGNATURE:\n // An electronic-signature vendor (#2293): one API key in a header, like the classifier above.\n pushSecret(runtimeContract.apiKey.secretRef);\n break;\n case ProviderProtocolRuntimeKind.EMAIL:\n // The `email` runtime contract is a discriminated union on `delivery`:\n // the network variant (real providers — Resend, Postmark, Mailgun, …)\n // carries an `apiKey.secretRef`, while the `delivery: 'log'` variant\n // (the `email-preview` local/dev provider) intentionally carries NO\n // credentials — a log sink needs no API key. Branch on the contract\n // field, never on the provider ref: a log provider has no secret to bind.\n if (runtimeContract.delivery !== 'log') {\n pushSecret(runtimeContract.apiKey.secretRef);\n }\n break;\n case ProviderProtocolRuntimeKind.OAUTH2_SSO:\n pushSecret(runtimeContract.clientSecretRef);\n if (typeof runtimeContract.extensions?.teamIdSecretRef === 'string') {\n pushSecret(runtimeContract.extensions.teamIdSecretRef);\n }\n if (typeof runtimeContract.extensions?.keyIdSecretRef === 'string') {\n pushSecret(runtimeContract.extensions.keyIdSecretRef);\n }\n break;\n case ProviderProtocolRuntimeKind.BILLING:\n case ProviderProtocolRuntimeKind.WEBHOOK_ORIGINATOR:\n pushSecret(runtimeContract.secretRef);\n break;\n case ProviderProtocolRuntimeKind.SMS:\n // A receiving-email provider: the API key its message and attachment fetches carry (#1630).\n case ProviderProtocolRuntimeKind.EMAIL_INBOUND:\n pushSecret(runtimeContract.auth.secretRef);\n break;\n case ProviderProtocolRuntimeKind.AGENT_CLIENT_PROTOCOL:\n // A coding agent under host-managed auth (the default) declares no\n // secretRef at all — `pushSecret` is a no-op for `undefined`, which is\n // the correct outcome: nothing to bind, and nothing to warn about.\n pushSecret(runtimeContract.secretRef);\n break;\n default: {\n // Exhaustive on purpose: every engine-side switch over `runtimeContract.kind` carries this\n // `never` check, and this site was the one that did not — which is exactly how the\n // `embeddings` kind shipped without a case here and crashed `wildo local dev` at module load\n // (2026-08-27). A new kind must fail COMPILATION here, not the next developer's startup.\n const exhaustiveCheck: never = runtimeContract;\n throw new Error(`Unsupported provider runtime contract kind: ${JSON.stringify(exhaustiveCheck)}`);\n }\n }\n\n // Execution-profile secret bindings.\n //\n // NOTE this is a SECOND dispatch on the same axis as the switch above, and it\n // is an `if` rather than a `case`, so the `never` check does NOT protect it:\n // a new execution-profile-bearing kind added to the switch and forgotten here\n // compiles perfectly and silently binds no environment variable, leaving the\n // agent to fail at auth time with no indication that a secret was authored.\n // Every kind that owns execution profiles must be listed.\n if (runtimeContract.kind === ProviderProtocolRuntimeKind.AGENT_CLIENT_PROTOCOL) {\n const agentClientProtocolConfig = configuredProtocol as\n | {\n executionProfiles?: Record<\n string,\n {\n authMode?: string;\n secretRef?: string;\n secretEnvVarName?: string;\n }\n >;\n }\n | undefined;\n const executionProfiles = agentClientProtocolConfig?.executionProfiles ?? {};\n for (const [executionProfileRef, executionProfile] of Object.entries(executionProfiles)) {\n if (\n executionProfile.authMode === 'secret_ref_env_injection'\n && executionProfile.secretRef\n && executionProfile.secretEnvVarName\n ) {\n bindings.push({\n protocolKind: protocol.protocol,\n secretRef: executionProfile.secretRef,\n envVarName: executionProfile.secretEnvVarName,\n executionProfileRef,\n });\n }\n }\n }\n\n return bindings.filter((binding, index, allBindings) => (\n allBindings.findIndex((candidate) => (\n candidate.protocolKind === binding.protocolKind\n && candidate.secretRef === binding.secretRef\n && candidate.envVarName === binding.envVarName\n && candidate.executionProfileRef === binding.executionProfileRef\n )) === index\n ));\n}\n\n/**\n * Every environment variable the named provider's PROTOCOL BINDINGS require.\n *\n * Resolves through the composed catalogue (#329). A provider known only from a companion\n * contribution has no runtime contracts, so this answers `[]` for it — deliberately, and without\n * loss: its secret keys are classified and allow-listed from its `secretsContract` shape, which\n * for every engine provider measured is a superset of what the bindings name.\n */\nexport function getProviderSecretEnvBindings(\n providerRef: string,\n configuredProtocols?: Partial<Record<string, Record<string, unknown>>>,\n): ProviderSecretEnvBinding[] {\n const entry = getComposedProviderEntry(providerRef);\n if (!entry) return [];\n\n return entry.protocolBindings.flatMap((protocol) => (\n getProtocolSecretEnvBindings(\n providerRef,\n protocol,\n getConfiguredProtocol(configuredProtocols, protocol.protocol),\n )\n ));\n}\n\n/**\n * Derives the canonical env var name for a provider's generic secret binding\n * from its protocol definitions.\n *\n * This is useful for setup flows that collect one provider secret value and\n * need to store it directly in the canonical `providerEnv` map. Transport-aware\n * callers should still prefer `getProviderSecretEnvBindings()`.\n */\nexport function getProviderSecretEnvVarName(\n providerRefOrModule: string | BackendProviderModule,\n): string | undefined {\n const providerRef =\n typeof providerRefOrModule === 'string'\n ? providerRefOrModule\n : providerRefOrModule.metadata.ref;\n const bindings = getProviderSecretEnvBindings(providerRef);\n return bindings.find((binding) => !binding.executionProfileRef)?.envVarName;\n}\n\n/**\n * Every provider-related env var name that must be classified as sensitive.\n *\n * Derived from the COMPOSED catalogue (#329) — engine tier plus whatever discovery registered —\n * so a package-shipped provider's key is classified like any other. It used to enumerate\n * `EngineBackendProviderRegistry` alone, which meant a package provider's key was attributable to\n * nobody: unclassified for the Secret/ConfigMap split, and kept by the confinement filter as\n * \"configuration\".\n *\n * Recomputed whenever composition changes rather than cached once, because discovery necessarily\n * runs after this module is imported.\n */\nexport const getProviderSensitiveEnvKeys: () => ReadonlySet<string> = memoiseOverCatalogue(() => {\n const keys = new Set<string>();\n for (const entry of getComposedProviderSecretsCatalogue().values()) {\n for (const secret of entry.secrets) keys.add(secret.envVarName);\n for (const binding of getProviderSecretEnvBindings(entry.providerRef)) keys.add(binding.envVarName);\n }\n return keys;\n});\n\n/** One secret a provider declares. */\nexport interface ProviderSelectionSecret {\n envVarName: string;\n description?: string;\n /** The provider refuses to boot without this var once the provider is enabled. */\n required: boolean;\n}\n\n/** One provider that declares at least one secret, with its operator-facing label. */\nexport interface ProviderSelectionCatalogEntry {\n providerRef: string;\n /** Operator-facing label (falls back to the ref when no display name is set). */\n label: string;\n /** Every secret this provider declares, in contract order. */\n secrets: ProviderSelectionSecret[];\n}\n\n/**\n * Every provider that declares a secret, derived from the COMPOSED provider catalogue (engine tier plus\n * whatever discovery registered — #329), sorted by label. `wildo setup`'s summary names the configured\n * providers from it.\n *\n * It used to power a setup step that offered this whole catalogue for credentials, grouped by a\n * presentation category. That step was removed (#1637): setup asks only for the companion's LLM key, and\n * every other secret is asked when its feature needs it (`wildo secrets`), derived from what the\n * application scopes rather than from everything that exists. The grouping went with it.\n *\n * Providers with an empty `secretsContract` (e.g. the `email-preview` log sink) are omitted.\n */\nexport function getProviderSelectionCatalog(): ProviderSelectionCatalogEntry[] {\n const entries: ProviderSelectionCatalogEntry[] = [];\n for (const provider of getComposedProviderSecretsCatalogue().values()) {\n const secrets: ProviderSelectionSecret[] = provider.secrets.map((secret) => ({\n envVarName: secret.envVarName,\n description: secret.description,\n required: secret.required,\n }));\n if (secrets.length === 0) continue;\n entries.push({ providerRef: provider.providerRef, label: provider.label, secrets });\n }\n return entries.sort((a, b) => a.label.localeCompare(b.label));\n}\n\n/**\n * All provider env-var names classified as sensitive, as a LIVE view.\n *\n * It was a module-load snapshot until #329, and a snapshot cannot work once composition is a\n * thing that happens: this module is imported by `credentials.schemas.ts` on the CLI's first\n * touch of the credential layer, which is always before an application's provider packages have\n * been discovered. A snapshot would therefore have been permanently blind to exactly the tier\n * this slice exists to classify. The exported NAME and the `.has()` shape are unchanged, so its\n * consumers need no edit.\n */\nexport const PROVIDER_SENSITIVE_ENV_KEYS: ReadonlySet<string> = new LiveEnvKeySet(getProviderSensitiveEnvKeys);\n\n// ============================================================================\n// Provider API-key resolution over the composed catalogue (seam for #331)\n// ============================================================================\n\n/**\n * Why a provider's credential could not be resolved.\n *\n * A closed vocabulary rather than a message string, because the caller BRANCHES on it: an\n * executor surfaces `SECRET_NOT_PROVISIONED` to an operator as \"run `wildo secrets set`\", and\n * `NOT_IN_SCOPE` to a developer as \"this runtime does not declare that provider\" — two very\n * different remedies that a single \"failed to resolve\" would have flattened.\n */\nexport enum ProviderApiKeyRefusal {\n /** No entry in the composed catalogue claims the ref — engine tier or discovered. */\n UNKNOWN_PROVIDER = 'unknown_provider',\n /** The runtime's declared provider scope does not carry this provider. */\n NOT_IN_SCOPE = 'not_in_scope',\n /** An operation named `requiredScopes` slugs the provider does not declare. */\n UNDECLARED_SCOPES = 'undeclared_scopes',\n /**\n * The caller named a `secretSlug` the provider does not declare.\n *\n * Distinct from `UNDECLARED_SCOPES` on purpose, even though both mean \"a slug that is not in the\n * contract\": one says an OPERATION requires a credential the package never ships (re-generate or\n * retire the operation), the other says THIS CALL asked for the wrong slug (a caller bug). A\n * caller branches differently on each, and merging two remedies under one member is exactly the\n * vocabulary collapse this repository's closed-vocabulary rule exists to prevent.\n */\n UNDECLARED_SECRET_SLUG = 'undeclared_secret_slug',\n /** The contract declares several candidate secrets and the caller named none. */\n AMBIGUOUS_SECRET = 'ambiguous_secret',\n /** The contract is satisfied; the value is simply not provisioned in this environment. */\n SECRET_NOT_PROVISIONED = 'secret_not_provisioned',\n}\n\nexport type ProviderApiKeyResolution =\n | { ok: true; providerRef: string; secretSlug: string; envVarName: string; value: string }\n | { ok: false; providerRef: string; refusal: ProviderApiKeyRefusal; detail: string };\n\nexport interface ProviderApiKeyRequest {\n providerRef: string;\n /**\n * What the runtime asking for the key is entitled to. Positional-equivalent to the scope\n * threaded through {@link declaredProviderScope} everywhere else in this layer, and required\n * for the same reason: an optional entitlement is one nobody decides, and the whole provider\n * bag reaching every runtime is what that produced last time.\n */\n runtimeScope: RuntimeProviderScope;\n /** Where values come from. Never `process.env` read by this function — the caller decides. */\n providerEnv: Record<string, string>;\n /**\n * Secret-contract SLUGS an operation requires, checked against the provider's contract.\n *\n * These are contract slugs, NOT OAuth scopes: a delegated-authorization scope check needs a\n * connected-account store and belongs to the delegated-auth slice. What is honestly checkable\n * here is that every credential a catalogue operation names is one the provider package\n * actually declares — so a generated operation asking for a credential its package never\n * ships is refused at resolution instead of at the vendor's 401.\n */\n requiredScopes?: readonly string[];\n /** Which contract slug carries the key. Defaults to the sole required (else sole) secret. */\n secretSlug?: string;\n}\n\n/**\n * Resolve one provider credential over the COMPOSED catalogue.\n *\n * The seam #331's operation executor consumes (plan, wave-1 seam table). Three properties are\n * what make it worth having over a bare `providerEnv[secretRef]`:\n *\n * 1. It resolves over the composed catalogue, so it answers for a package-shipped provider the\n * moment discovery registers one, and refuses `UNKNOWN_PROVIDER` BY NAME before that — rather\n * than silently reading an env var nothing claims.\n * 2. It checks entitlement against the same {@link RuntimeProviderScope} the confinement filter\n * uses, so \"the executor could read it\" and \"the env var was allowed into this runtime\" can\n * never disagree.\n * 3. It never touches `process.env`. The caller supplies the source, which keeps the function a\n * pure decision and therefore testable without an ambient environment.\n */\nexport function getProviderApiKey(input: ProviderApiKeyRequest): ProviderApiKeyResolution {\n const { providerRef, runtimeScope, providerEnv, requiredScopes = [], secretSlug } = input;\n\n const entry = getComposedProviderEntry(providerRef);\n if (!entry) {\n return {\n ok: false,\n providerRef,\n refusal: ProviderApiKeyRefusal.UNKNOWN_PROVIDER,\n detail:\n `No provider '${providerRef}' in the composed catalogue. Either the application does not `\n + 'declare its package, or discovery has not registered its companion contribution.',\n };\n }\n\n if (\n runtimeScope.kind === RuntimeProviderScopeKind.DECLARED\n && !runtimeScope.providerRefs.includes(providerRef)\n ) {\n return {\n ok: false,\n providerRef,\n refusal: ProviderApiKeyRefusal.NOT_IN_SCOPE,\n detail:\n `This runtime declares [${runtimeScope.providerRefs.join(', ') || 'none'}] and not `\n + `'${providerRef}', so its credential is deliberately absent from this environment.`,\n };\n }\n\n const declaredSlugs = new Set(entry.secrets.map((secret) => secret.slug));\n const missingScopes = requiredScopes.filter((slug) => !declaredSlugs.has(slug));\n if (missingScopes.length > 0) {\n return {\n ok: false,\n providerRef,\n refusal: ProviderApiKeyRefusal.UNDECLARED_SCOPES,\n detail:\n `Provider '${providerRef}' declares no secret-contract slug [${missingScopes.join(', ')}]; `\n + `its contract holds [${[...declaredSlugs].join(', ') || 'none'}].`,\n };\n }\n\n const candidates = entry.secrets.filter((secret) => secret.required);\n const resolvedSecret = secretSlug\n ? entry.secrets.find((secret) => secret.slug === secretSlug)\n : (candidates.length === 1 ? candidates[0] : (entry.secrets.length === 1 ? entry.secrets[0] : undefined));\n\n if (!resolvedSecret) {\n return {\n ok: false,\n providerRef,\n refusal: secretSlug ? ProviderApiKeyRefusal.UNDECLARED_SECRET_SLUG : ProviderApiKeyRefusal.AMBIGUOUS_SECRET,\n detail: secretSlug\n ? `Provider '${providerRef}' declares no secret-contract slug '${secretSlug}'.`\n : `Provider '${providerRef}' declares ${entry.secrets.length} secrets and none is uniquely `\n + 'required — name the slug that carries the credential.',\n };\n }\n\n const value = providerEnv[resolvedSecret.envVarName];\n if (!value) {\n return {\n ok: false,\n providerRef,\n refusal: ProviderApiKeyRefusal.SECRET_NOT_PROVISIONED,\n detail:\n `Provider '${providerRef}' is in scope and declares '${resolvedSecret.slug}', but `\n + `${resolvedSecret.envVarName} carries no value in this environment. Provide it with `\n + `\\`wildo secrets set ${resolvedSecret.envVarName}\\`.`,\n };\n }\n\n return {\n ok: true,\n providerRef,\n secretSlug: resolvedSecret.slug,\n envVarName: resolvedSecret.envVarName,\n value,\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-secret-format.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"provider-secret-format.d.ts","sourceRoot":"","sources":["../../../../src/services/credentials/provider-secret-format.ts"],"names":[],"mappings":"AAcA,sEAAsE;AACtE,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAM9G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-secret-format.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"provider-secret-format.js","sourceRoot":"","sources":["../../../../src/services/credentials/provider-secret-format.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,mBAAmB,GAAqC;IAC5D,cAAc,EAAE,KAAK;IACrB,iBAAiB,EAAE,SAAS;IAC5B,cAAc,EAAE,KAAK;CACtB,CAAC;AAEF,sEAAsE;AACtE,MAAM,UAAU,0BAA0B,CAAC,UAAkB,EAAE,KAAa,EAAE,QAAiB;IAC7F,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,IAAI,CAAC,OAAO;QAAE,OAAO,QAAQ,CAAC,CAAC,CAAC,GAAG,UAAU,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC;IACtE,MAAM,MAAM,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAC/C,IAAI,MAAM,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;QAAE,OAAO,GAAG,UAAU,sBAAsB,MAAM,GAAG,CAAC;IAC/F,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["/**\n * Paste-error checks for application secrets (provider, system-of-record, inbound endpoint), shared by every\n * place a person types one — `wildo setup`, `wildo init`, `wildo secrets set` and the workbench's secrets section (through `wildo secrets set`).\n *\n * Prefix hints are NOT a closed vocabulary: env-var names are open provider identifiers, and the value\n * is a format hint (an OpenAI key that does not start with `sk-` is almost certainly the wrong\n * paste), never behaviour selection. A key absent from this map is checked for non-emptiness only.\n */\nconst SECRET_PREFIX_HINTS: Readonly<Record<string, string>> = {\n OPENAI_API_KEY: 'sk-',\n ANTHROPIC_API_KEY: 'sk-ant-',\n RESEND_API_KEY: 're_',\n};\n\n/** `null` when the value is acceptable, else the sentence to show. */\nexport function describeSecretValueProblem(envVarName: string, value: string, required: boolean): string | null {\n const trimmed = value.trim();\n if (!trimmed) return required ? `${envVarName} needs a value.` : null;\n const prefix = SECRET_PREFIX_HINTS[envVarName];\n if (prefix && !trimmed.startsWith(prefix)) return `${envVarName} values start with ${prefix}.`;\n return null;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-secrets-store.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"remote-secrets-store.service.d.ts","sourceRoot":"","sources":["../../../../src/services/credentials/remote-secrets-store.service.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAKrG,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAC;IACrC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,4BAA4B,CAAC;IAC7C,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAwBD;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,uBAAuB,EAAE,CAWhH;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAkBlJ;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,IAAI,CAGzJ;AAED,2HAA2H;AAC3H,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,IAAI,CAE5I"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-secrets-store.service.js","sourceRoot":"","sources":["../../../../../../src/services/credentials/remote-secrets-store.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAErG,OAAO,EAAE,6BAA6B,EAAE,iCAAiC,EAAE,MAAM,4DAA4D,CAAC;AAU9I,SAAS,KAAK,CAAC,IAAc,EAAE,GAAW,EAAE,KAAc;IACxD,MAAM,MAAM,GAAG,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;IACzI,IAAK,MAAM,CAAC,KAA2C,EAAE,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC3E,MAAM,IAAI,KAAK,CAAC,0HAA0H,CAAC,CAAC;IAC9I,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;Q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CAAC,CAAC;IACpD,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;IAClE,IAAI,CAAC,IAAI,MAAM,CAAC,6BAA6B,UAAU,YAAY,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzF,OAAO,4BAA4B,OAAO,qCAAqC,OAAO,oDAAoD,UAAU,EAAE,CAAC;IACzJ,CAAC;IACD,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/C,OAAO,4BAA4B,OAAO,mBAAmB,MAAM,2DAA2D,UAAU,EAAE,CAAC;IAC7I,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CAAC,OAAe,EAAE,IAA2B,EAAE,UAAkB,EAAE,KAAa,EAAE,eAAuB;IACjJ,KAAK,CAAC,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,qCAAqC,kBAAkB,CAAC,OAAO,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,eAAe,CAAC,CAAC;IACnI,KAAK,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,6BAA6B,CAAC,IAAI,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AACtH,CAAC;AAED,2HAA2H;AAC3H,MAAM,UAAU,4BAA4B,CAAC,OAAe,EAAE,IAA2B,EAAE,UAAkB,EAAE,eAAuB;IACpI,KAAK,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,6BAA6B,CAAC,IAAI,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,eAAe,CAAC,CAAC;AAClH,CAAC","sourcesContent":["/**\n * Application secrets of a REMOTE environment, which live as GitHub Actions secrets — read and written\n * through the operator's own `gh` login, so no GitHub token is ever stored by Wildo.\n *\n * ## Where they live\n *\n * The generated deploy workflow rebuilds `secrets.json` from `WILDO_SECRET_*` secrets\n * (`reconstructSecretsFromEnv`); an application secret travels under its kind's prefix —\n * `WILDO_SECRET_PROVIDER_ENV_<NAME>`, `…_SYSTEMS_OF_RECORD_ENV_<NAME>`, `…_INBOUND_ENDPOINT_ENV_<NAME>`\n * (`applicationSecretCiSecretName`). Its job\n * declares `environment: <envName>`, so a secret set on that GitHub Environment applies to that\n * environment only, and a repository-level secret of the same name is the fallback: \"If an\n * organization, repository, and environment all have a secret with the same name, the\n * environment-level secret takes precedence.\" \"Environment secrets are read when a job referencing\n * the environment starts.\"\n * spec-cite: https://docs.github.com/en/actions/reference/security/secrets (fetched 2026-09-25)\n *\n * So `set` writes the ENVIRONMENT secret, and `list` reports both levels, saying which one holds it.\n *\n * ## What is never possible\n *\n * GitHub secrets are write-only: a value can be replaced, never read back. `list` reports names and\n * update times, and that is all any surface can show for a remote environment.\n */\nimport { spawnSync } from 'child_process';\nimport { existsSync, readFileSync } from 'fs';\nimport { join } from 'path';\n\nimport { ApplicationSecretKind, ApplicationSecretRemoteLevel } from '@wildo-ai/platform-core-shared';\n\nimport { applicationSecretCiSecretName, applicationSecretFromCiSecretName } from '~wildo-cli/services/credentials/ci-secrets-adapter.service';\n\n\nexport interface RemoteApplicationSecret {\n readonly kind: ApplicationSecretKind;\n readonly envVarName: string;\n readonly level: ApplicationSecretRemoteLevel;\n readonly updatedAt: string | null;\n}\n\nfunction runGh(args: string[], cwd: string, input?: string): string {\n const result = spawnSync('gh', args, { cwd, encoding: 'utf8', input, stdio: [input === undefined ? 'ignore' : 'pipe', 'pipe', 'pipe'] });\n if ((result.error as NodeJS.ErrnoException | undefined)?.code === 'ENOENT') {\n throw new Error('The GitHub CLI (`gh`) is not installed. Remote secrets are GitHub Actions secrets; install `gh` and run `gh auth login`.');\n }\n if (result.status !== 0) {\n throw new Error(`\\`gh ${args.slice(0, 3).join(' ')}\\` failed: ${(result.stderr || result.stdout || '').trim().split('\\n')[0]}`);\n }\n return result.stdout;\n}\n\nfunction listLevel(args: string[], cwd: string, level: ApplicationSecretRemoteLevel): RemoteApplicationSecret[] {\n const rows = JSON.parse(runGh([...args, '--json', 'name,updatedAt'], cwd) || '[]') as Array<{ name: string; updatedAt?: string }>;\n return rows.flatMap((row) => {\n const secret = applicationSecretFromCiSecretName(row.name);\n return secret === null ? [] : [{ ...secret, level, updatedAt: row.updatedAt ?? null }];\n });\n}\n\n/** Two remote secrets are the same one when they share a kind and a name — the pair a CI secret name encodes. */\nconst remoteSecretKey = (secret: Pick<RemoteApplicationSecret, 'kind' | 'envVarName'>): string => `${secret.kind}:${secret.envVarName}`;\n\n/**\n * The application secrets a remote environment's deploy would see: its GitHub Environment's, then the\n * repository's for any one the environment does not override. A GitHub Environment that does not\n * exist yet simply holds nothing.\n */\nexport function listRemoteApplicationSecrets(envName: string, applicationRoot: string): RemoteApplicationSecret[] {\n let environmentLevel: RemoteApplicationSecret[] = [];\n try {\n environmentLevel = listLevel(['secret', 'list', '--env', envName], applicationRoot, ApplicationSecretRemoteLevel.ENVIRONMENT);\n } catch (error) {\n if (!/not found|404/i.test((error as Error).message)) throw error;\n }\n const overridden = new Set(environmentLevel.map(remoteSecretKey));\n const repositoryLevel = listLevel(['secret', 'list'], applicationRoot, ApplicationSecretRemoteLevel.REPOSITORY)\n .filter((secret) => !overridden.has(remoteSecretKey(secret)));\n return [...environmentLevel, ...repositoryLevel];\n}\n\n/**\n * Why a remote environment's deploy workflow would NOT hand this secret to its deploy job, or `null` when\n * it would (#1637 review, F7).\n *\n * An Environment secret reaches a job only when the job declares `environment: <env>`, and the generated\n * workflow passes secrets to the job by an explicit `${{ secrets.X }}` list. Workflows generated before\n * the job named its environment are never rewritten without `--force`, and a secret the application came\n * to need after the workflow was generated is not in its list — in both cases the secret would be written,\n * listed as set, and never reach the deploy. Read from the file the deploy actually runs, as text: the two\n * facts are single lines the generator writes verbatim.\n *\n * The generator forwards every kind the application declares (#1650): the provider secrets it scopes, a\n * credential slot of each declared system of record, and the secret of each application endpoint the BUILT\n * backend declares. So regenerating is the remedy for all three — once the backend is built, for an endpoint.\n */\nexport function describeDeployWorkflowGap(envName: string, kind: ApplicationSecretKind, envVarName: string, applicationRoot: string): string | null {\n const workflowPath = join(applicationRoot, '.github', 'workflows', `deploy-${envName}.yml`);\n // An endpoint is read from the BUILT backend, so a workflow regenerated before it was built does not name it yet.\n const buildFirst = kind === ApplicationSecretKind.INBOUND_ENDPOINT ? 'Build backend-api, then regenerate' : 'Regenerate';\n const regenerate = `${buildFirst} it with \\`wildo config sync --domain cicd --force\\` (it overwrites ${workflowPath}), then set the secret again.`;\n const ciName = applicationSecretCiSecretName(kind, envVarName);\n if (!existsSync(workflowPath)) {\n return `Environment '${envName}' has no deploy workflow (${workflowPath}), so nothing would read this secret. Generate it with \\`wildo config sync --domain cicd\\`, then set the secret again.`;\n }\n const workflow = readFileSync(workflowPath, 'utf8');\n const escapedEnv = envName.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n if (!new RegExp(`^\\\\s+environment:\\\\s*['\"]?${escapedEnv}['\"]?\\\\s*$`, 'm').test(workflow)) {\n return `The deploy workflow for '${envName}' does not declare \\`environment: ${envName}\\`, so its job cannot see an Environment secret. ${regenerate}`;\n }\n if (!workflow.includes(`secrets.${ciName} }}`)) {\n return `The deploy workflow for '${envName}' does not pass ${ciName} to its job, so the value would never reach the deploy. ${regenerate}`;\n }\n return null;\n}\n\n/**\n * Set a remote environment's application secret on its GitHub Environment, creating the environment when\n * it does not exist (idempotent). The value goes through stdin, never argv, so it appears in no\n * process listing.\n */\nexport function setRemoteApplicationSecret(envName: string, kind: ApplicationSecretKind, envVarName: string, value: string, applicationRoot: string): void {\n runGh(['api', '--method', 'PUT', `repos/{owner}/{repo}/environments/${encodeURIComponent(envName)}`, '--silent'], applicationRoot);\n runGh(['secret', 'set', applicationSecretCiSecretName(kind, envVarName), '--env', envName], applicationRoot, value);\n}\n\n/** Remove a remote environment's application secret from its GitHub Environment (a repository-level one is left alone). */\nexport function unsetRemoteApplicationSecret(envName: string, kind: ApplicationSecretKind, envVarName: string, applicationRoot: string): void {\n runGh(['secret', 'delete', applicationSecretCiSecretName(kind, envVarName), '--env', envName], applicationRoot);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"remote-secrets-store.service.js","sourceRoot":"","sources":["../../../../src/services/credentials/remote-secrets-store.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAErG,OAAO,EAAE,6BAA6B,EAAE,iCAAiC,EAAE,MAAM,4DAA4D,CAAC;AAU9I,SAAS,KAAK,CAAC,IAAc,EAAE,GAAW,EAAE,KAAc;IACxD,MAAM,MAAM,GAAG,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;IACzI,IAAK,MAAM,CAAC,KAA2C,EAAE,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC3E,MAAM,IAAI,KAAK,CAAC,0HAA0H,CAAC,CAAC;IAC9I,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,cAA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AAM,CAAC,6BAA6B,UAAU,YAAY,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzF,OAAO,4BAA4B,OAAO,qCAAqC,OAAO,oDAAoD,UAAU,EAAE,CAAC;IACzJ,CAAC;IACD,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/C,OAAO,4BAA4B,OAAO,mBAAmB,MAAM,2DAA2D,UAAU,EAAE,CAAC;IAC7I,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CAAC,OAAe,EAAE,IAA2B,EAAE,UAAkB,EAAE,KAAa,EAAE,eAAuB;IACjJ,KAAK,CAAC,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,qCAAqC,kBAAkB,CAAC,OAAO,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,eAAe,CAAC,CAAC;IACnI,KAAK,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,6BAA6B,CAAC,IAAI,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AACtH,CAAC;AAED,2HAA2H;AAC3H,MAAM,UAAU,4BAA4B,CAAC,OAAe,EAAE,IAA2B,EAAE,UAAkB,EAAE,eAAuB;IACpI,KAAK,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,6BAA6B,CAAC,IAAI,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,eAAe,CAAC,CAAC;AAClH,CAAC","sourcesContent":["/**\n * Application secrets of a REMOTE environment, which live as GitHub Actions secrets — read and written\n * through the operator's own `gh` login, so no GitHub token is ever stored by Wildo.\n *\n * ## Where they live\n *\n * The generated deploy workflow rebuilds `secrets.json` from `WILDO_SECRET_*` secrets\n * (`reconstructSecretsFromEnv`); an application secret travels under its kind's prefix —\n * `WILDO_SECRET_PROVIDER_ENV_<NAME>`, `…_SYSTEMS_OF_RECORD_ENV_<NAME>`, `…_INBOUND_ENDPOINT_ENV_<NAME>`\n * (`applicationSecretCiSecretName`). Its job\n * declares `environment: <envName>`, so a secret set on that GitHub Environment applies to that\n * environment only, and a repository-level secret of the same name is the fallback: \"If an\n * organization, repository, and environment all have a secret with the same name, the\n * environment-level secret takes precedence.\" \"Environment secrets are read when a job referencing\n * the environment starts.\"\n * spec-cite: https://docs.github.com/en/actions/reference/security/secrets (fetched 2026-09-25)\n *\n * So `set` writes the ENVIRONMENT secret, and `list` reports both levels, saying which one holds it.\n *\n * ## What is never possible\n *\n * GitHub secrets are write-only: a value can be replaced, never read back. `list` reports names and\n * update times, and that is all any surface can show for a remote environment.\n */\nimport { spawnSync } from 'child_process';\nimport { existsSync, readFileSync } from 'fs';\nimport { join } from 'path';\n\nimport { ApplicationSecretKind, ApplicationSecretRemoteLevel } from '@wildo-ai/platform-core-shared';\n\nimport { applicationSecretCiSecretName, applicationSecretFromCiSecretName } from '~wildo-cli/services/credentials/ci-secrets-adapter.service';\n\n\nexport interface RemoteApplicationSecret {\n readonly kind: ApplicationSecretKind;\n readonly envVarName: string;\n readonly level: ApplicationSecretRemoteLevel;\n readonly updatedAt: string | null;\n}\n\nfunction runGh(args: string[], cwd: string, input?: string): string {\n const result = spawnSync('gh', args, { cwd, encoding: 'utf8', input, stdio: [input === undefined ? 'ignore' : 'pipe', 'pipe', 'pipe'] });\n if ((result.error as NodeJS.ErrnoException | undefined)?.code === 'ENOENT') {\n throw new Error('The GitHub CLI (`gh`) is not installed. Remote secrets are GitHub Actions secrets; install `gh` and run `gh auth login`.');\n }\n if (result.status !== 0) {\n throw new Error(`\\`gh ${args.slice(0, 3).join(' ')}\\` failed: ${(result.stderr || result.stdout || '').trim().split('\\n')[0]}`);\n }\n return result.stdout;\n}\n\nfunction listLevel(args: string[], cwd: string, level: ApplicationSecretRemoteLevel): RemoteApplicationSecret[] {\n const rows = JSON.parse(runGh([...args, '--json', 'name,updatedAt'], cwd) || '[]') as Array<{ name: string; updatedAt?: string }>;\n return rows.flatMap((row) => {\n const secret = applicationSecretFromCiSecretName(row.name);\n return secret === null ? [] : [{ ...secret, level, updatedAt: row.updatedAt ?? null }];\n });\n}\n\n/** Two remote secrets are the same one when they share a kind and a name — the pair a CI secret name encodes. */\nconst remoteSecretKey = (secret: Pick<RemoteApplicationSecret, 'kind' | 'envVarName'>): string => `${secret.kind}:${secret.envVarName}`;\n\n/**\n * The application secrets a remote environment's deploy would see: its GitHub Environment's, then the\n * repository's for any one the environment does not override. A GitHub Environment that does not\n * exist yet simply holds nothing.\n */\nexport function listRemoteApplicationSecrets(envName: string, applicationRoot: string): RemoteApplicationSecret[] {\n let environmentLevel: RemoteApplicationSecret[] = [];\n try {\n environmentLevel = listLevel(['secret', 'list', '--env', envName], applicationRoot, ApplicationSecretRemoteLevel.ENVIRONMENT);\n } catch (error) {\n if (!/not found|404/i.test((error as Error).message)) throw error;\n }\n const overridden = new Set(environmentLevel.map(remoteSecretKey));\n const repositoryLevel = listLevel(['secret', 'list'], applicationRoot, ApplicationSecretRemoteLevel.REPOSITORY)\n .filter((secret) => !overridden.has(remoteSecretKey(secret)));\n return [...environmentLevel, ...repositoryLevel];\n}\n\n/**\n * Why a remote environment's deploy workflow would NOT hand this secret to its deploy job, or `null` when\n * it would (#1637 review, F7).\n *\n * An Environment secret reaches a job only when the job declares `environment: <env>`, and the generated\n * workflow passes secrets to the job by an explicit `${{ secrets.X }}` list. Workflows generated before\n * the job named its environment are never rewritten without `--force`, and a secret the application came\n * to need after the workflow was generated is not in its list — in both cases the secret would be written,\n * listed as set, and never reach the deploy. Read from the file the deploy actually runs, as text: the two\n * facts are single lines the generator writes verbatim.\n *\n * The generator forwards every kind the application declares (#1650): the provider secrets it scopes, a\n * credential slot of each declared system of record, and the secret of each application endpoint the BUILT\n * backend declares. So regenerating is the remedy for all three — once the backend is built, for an endpoint.\n */\nexport function describeDeployWorkflowGap(envName: string, kind: ApplicationSecretKind, envVarName: string, applicationRoot: string): string | null {\n const workflowPath = join(applicationRoot, '.github', 'workflows', `deploy-${envName}.yml`);\n // An endpoint is read from the BUILT backend, so a workflow regenerated before it was built does not name it yet.\n const buildFirst = kind === ApplicationSecretKind.INBOUND_ENDPOINT ? 'Build backend-api, then regenerate' : 'Regenerate';\n const regenerate = `${buildFirst} it with \\`wildo config sync --domain cicd --force\\` (it overwrites ${workflowPath}), then set the secret again.`;\n const ciName = applicationSecretCiSecretName(kind, envVarName);\n if (!existsSync(workflowPath)) {\n return `Environment '${envName}' has no deploy workflow (${workflowPath}), so nothing would read this secret. Generate it with \\`wildo config sync --domain cicd\\`, then set the secret again.`;\n }\n const workflow = readFileSync(workflowPath, 'utf8');\n const escapedEnv = envName.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n if (!new RegExp(`^\\\\s+environment:\\\\s*['\"]?${escapedEnv}['\"]?\\\\s*$`, 'm').test(workflow)) {\n return `The deploy workflow for '${envName}' does not declare \\`environment: ${envName}\\`, so its job cannot see an Environment secret. ${regenerate}`;\n }\n if (!workflow.includes(`secrets.${ciName} }}`)) {\n return `The deploy workflow for '${envName}' does not pass ${ciName} to its job, so the value would never reach the deploy. ${regenerate}`;\n }\n return null;\n}\n\n/**\n * Set a remote environment's application secret on its GitHub Environment, creating the environment when\n * it does not exist (idempotent). The value goes through stdin, never argv, so it appears in no\n * process listing.\n */\nexport function setRemoteApplicationSecret(envName: string, kind: ApplicationSecretKind, envVarName: string, value: string, applicationRoot: string): void {\n runGh(['api', '--method', 'PUT', `repos/{owner}/{repo}/environments/${encodeURIComponent(envName)}`, '--silent'], applicationRoot);\n runGh(['secret', 'set', applicationSecretCiSecretName(kind, envVarName), '--env', envName], applicationRoot, value);\n}\n\n/** Remove a remote environment's application secret from its GitHub Environment (a repository-level one is left alone). */\nexport function unsetRemoteApplicationSecret(envName: string, kind: ApplicationSecretKind, envVarName: string, applicationRoot: string): void {\n runGh(['secret', 'delete', applicationSecretCiSecretName(kind, envVarName), '--env', envName], applicationRoot);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret-requirements.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"secret-requirements.service.d.ts","sourceRoot":"","sources":["../../../../src/services/credentials/secret-requirements.service.ts"],"names":[],"mappings":"AAiCA,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAClG,OAAO,EAEL,gBAAgB,EAUjB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAGL,KAAK,6BAA6B,EAClC,KAAK,mCAAmC,EACzC,MAAM,mEAAmE,CAAC;AAC3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AAKzG,MAAM,WAAW,iBAAiB;IAChC,oHAAoH;IACpH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,2FAA2F;IAC3F,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAC;IACrC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC;;;;;;;;;OASG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACnD;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,QAAQ,EAAE,yBAAyB,CAAC;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;CACrC;AAQD,yHAAyH;AACzH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,E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