@wildo-ai/wildo-cli 1.1.9 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/wildo.d.ts.map +1 -1
- package/dist/bin/wildo.js +0 -0
- package/dist/bin/wildo.js.map +1 -1
- package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
- package/dist/src/commands/acp/probe.command.js.map +1 -1
- package/dist/src/commands/align-deps.command.d.ts.map +1 -1
- package/dist/src/commands/align-deps.command.js.map +1 -1
- package/dist/src/commands/assets/sync.command.d.ts.map +1 -1
- package/dist/src/commands/assets/sync.command.js.map +1 -1
- package/dist/src/commands/brand/propagate.command.d.ts.map +1 -1
- package/dist/src/commands/brand/propagate.command.js.map +1 -1
- package/dist/src/commands/build/accept.command.d.ts.map +1 -1
- package/dist/src/commands/build/accept.command.js.map +1 -1
- package/dist/src/commands/build/dispatches.command.d.ts.map +1 -1
- package/dist/src/commands/build/dispatches.command.js.map +1 -1
- package/dist/src/commands/build/next.command.d.ts.map +1 -1
- package/dist/src/commands/build/next.command.js.map +1 -1
- package/dist/src/commands/build/rearm.command.d.ts.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/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 +50 -0
- package/dist/src/commands/config/check-resources.command.d.ts.map +1 -0
- package/dist/src/commands/config/check-resources.command.js +121 -0
- package/dist/src/commands/config/check-resources.command.js.map +1 -0
- package/dist/src/commands/config/data-retention.command.d.ts.map +1 -1
- package/dist/src/commands/config/data-retention.command.js.map +1 -1
- package/dist/src/commands/config/document-releases.command.d.ts.map +1 -1
- package/dist/src/commands/config/document-releases.command.js.map +1 -1
- package/dist/src/commands/config/legal-notice.command.d.ts +17 -0
- package/dist/src/commands/config/legal-notice.command.d.ts.map +1 -0
- package/dist/src/commands/config/legal-notice.command.js +59 -0
- package/dist/src/commands/config/legal-notice.command.js.map +1 -0
- 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.map +1 -1
- package/dist/src/commands/config/sync.command.js.map +1 -1
- package/dist/src/commands/config/validate.command.d.ts +8 -0
- package/dist/src/commands/config/validate.command.d.ts.map +1 -1
- package/dist/src/commands/config/validate.command.js +65 -4
- 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.map +1 -1
- package/dist/src/commands/context/elements.command.js.map +1 -1
- package/dist/src/commands/context/health.command.d.ts.map +1 -1
- package/dist/src/commands/context/health.command.js.map +1 -1
- package/dist/src/commands/context/info.command.d.ts.map +1 -1
- package/dist/src/commands/context/info.command.js.map +1 -1
- package/dist/src/commands/context/journey.command.d.ts +8 -2
- package/dist/src/commands/context/journey.command.d.ts.map +1 -1
- package/dist/src/commands/context/journey.command.js +102 -12
- 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 +2 -1
- package/dist/src/commands/context/launch-blockers.command.d.ts.map +1 -1
- package/dist/src/commands/context/launch-blockers.command.js +3 -2
- package/dist/src/commands/context/launch-blockers.command.js.map +1 -1
- package/dist/src/commands/context/list.command.d.ts.map +1 -1
- package/dist/src/commands/context/list.command.js.map +1 -1
- package/dist/src/commands/context/pipelines.command.d.ts.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 +4 -0
- package/dist/src/commands/creation/accept.command.d.ts.map +1 -1
- package/dist/src/commands/creation/accept.command.js +29 -4
- package/dist/src/commands/creation/accept.command.js.map +1 -1
- package/dist/src/commands/creation/answer.command.d.ts.map +1 -1
- package/dist/src/commands/creation/answer.command.js.map +1 -1
- package/dist/src/commands/creation/brand-logo.command.d.ts +18 -0
- package/dist/src/commands/creation/brand-logo.command.d.ts.map +1 -0
- package/dist/src/commands/creation/brand-logo.command.js +43 -0
- package/dist/src/commands/creation/brand-logo.command.js.map +1 -0
- package/dist/src/commands/creation/brief.command.d.ts.map +1 -1
- package/dist/src/commands/creation/brief.command.js.map +1 -1
- package/dist/src/commands/creation/deliberate.command.d.ts +2 -2
- package/dist/src/commands/creation/deliberate.command.d.ts.map +1 -1
- package/dist/src/commands/creation/deliberate.command.js +2 -2
- 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 +1 -1
- package/dist/src/commands/creation/depth.command.js.map +1 -1
- package/dist/src/commands/creation/diff.command.d.ts.map +1 -1
- package/dist/src/commands/creation/diff.command.js.map +1 -1
- package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
- package/dist/src/commands/creation/feed.command.js.map +1 -1
- package/dist/src/commands/creation/loop.command.d.ts.map +1 -1
- package/dist/src/commands/creation/loop.command.js.map +1 -1
- package/dist/src/commands/creation/persona.command.d.ts +3 -2
- package/dist/src/commands/creation/persona.command.d.ts.map +1 -1
- package/dist/src/commands/creation/persona.command.js +10 -3
- 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.map +1 -1
- package/dist/src/commands/creation/prompt-hook.command.js.map +1 -1
- package/dist/src/commands/creation/propose.command.d.ts.map +1 -1
- package/dist/src/commands/creation/propose.command.js.map +1 -1
- package/dist/src/commands/creation/pulse.command.d.ts.map +1 -1
- package/dist/src/commands/creation/pulse.command.js.map +1 -1
- package/dist/src/commands/creation/questions.command.d.ts.map +1 -1
- package/dist/src/commands/creation/questions.command.js.map +1 -1
- package/dist/src/commands/creation/reason.command.d.ts.map +1 -1
- package/dist/src/commands/creation/reason.command.js.map +1 -1
- package/dist/src/commands/creation/report.command.d.ts.map +1 -1
- package/dist/src/commands/creation/report.command.js.map +1 -1
- package/dist/src/commands/creation/revert.command.d.ts.map +1 -1
- package/dist/src/commands/creation/revert.command.js.map +1 -1
- package/dist/src/commands/creation/run.command.d.ts.map +1 -1
- package/dist/src/commands/creation/run.command.js.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 +3 -1
- package/dist/src/commands/creation/why.command.d.ts.map +1 -1
- package/dist/src/commands/creation/why.command.js +28 -9
- package/dist/src/commands/creation/why.command.js.map +1 -1
- package/dist/src/commands/creation/writes.command.d.ts.map +1 -1
- package/dist/src/commands/creation/writes.command.js.map +1 -1
- package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts.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.map +1 -1
- package/dist/src/commands/db/diff.command.d.ts.map +1 -1
- package/dist/src/commands/db/diff.command.js.map +1 -1
- package/dist/src/commands/db/generate.command.d.ts.map +1 -1
- package/dist/src/commands/db/generate.command.js.map +1 -1
- package/dist/src/commands/db/migrate.command.d.ts.map +1 -1
- package/dist/src/commands/db/migrate.command.js.map +1 -1
- package/dist/src/commands/db/resolve.command.d.ts.map +1 -1
- package/dist/src/commands/db/resolve.command.js.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-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/publish.command.d.ts.map +1 -1
- package/dist/src/commands/docs/publish.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.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.map +1 -1
- package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/graph.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-npm.command.js.map +1 -1
- package/dist/src/commands/fwk/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.map +1 -1
- package/dist/src/commands/generate/email-command.utils.js.map +1 -1
- package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-preview.command.js.map +1 -1
- package/dist/src/commands/generate/email-status.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-status.command.js.map +1 -1
- package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-test-send.command.js.map +1 -1
- package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-translate.command.js.map +1 -1
- package/dist/src/commands/generate/email.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email.command.js.map +1 -1
- package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- package/dist/src/commands/init.command.d.ts.map +1 -1
- package/dist/src/commands/init.command.js.map +1 -1
- package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
- package/dist/src/commands/local/deregister.command.js.map +1 -1
- package/dist/src/commands/local/dev-status.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev-status.command.js.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
- package/dist/src/commands/local/doctor.command.js.map +1 -1
- package/dist/src/commands/local/down.command.d.ts.map +1 -1
- package/dist/src/commands/local/down.command.js.map +1 -1
- package/dist/src/commands/local/init.command.d.ts.map +1 -1
- package/dist/src/commands/local/init.command.js.map +1 -1
- package/dist/src/commands/local/logs.command.d.ts.map +1 -1
- package/dist/src/commands/local/logs.command.js.map +1 -1
- package/dist/src/commands/local/reinit.command.d.ts.map +1 -1
- package/dist/src/commands/local/reinit.command.js.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.map +1 -1
- package/dist/src/commands/local/status.command.d.ts.map +1 -1
- package/dist/src/commands/local/status.command.js.map +1 -1
- package/dist/src/commands/local/up.command.d.ts.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.map +1 -1
- 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/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/info.command.d.ts.map +1 -1
- package/dist/src/commands/registry/info.command.js.map +1 -1
- package/dist/src/commands/registry/key.command.d.ts.map +1 -1
- package/dist/src/commands/registry/key.command.js.map +1 -1
- package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -1
- package/dist/src/commands/registry/lockfile-smoke.command.js.map +1 -1
- package/dist/src/commands/registry/login.command.d.ts.map +1 -1
- package/dist/src/commands/registry/login.command.js.map +1 -1
- package/dist/src/commands/registry/logout.command.d.ts.map +1 -1
- package/dist/src/commands/registry/logout.command.js.map +1 -1
- package/dist/src/commands/registry/outdated.command.d.ts.map +1 -1
- package/dist/src/commands/registry/outdated.command.js.map +1 -1
- package/dist/src/commands/registry/ping.command.d.ts.map +1 -1
- package/dist/src/commands/registry/ping.command.js.map +1 -1
- package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
- package/dist/src/commands/registry/publish.command.js.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.map +1 -1
- 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.map +1 -1
- package/dist/src/commands/registry/yank.command.d.ts.map +1 -1
- package/dist/src/commands/registry/yank.command.js.map +1 -1
- package/dist/src/commands/remote/create.command.d.ts.map +1 -1
- package/dist/src/commands/remote/create.command.js.map +1 -1
- package/dist/src/commands/remote/list.command.d.ts.map +1 -1
- package/dist/src/commands/remote/list.command.js.map +1 -1
- package/dist/src/commands/remote/status.command.d.ts.map +1 -1
- package/dist/src/commands/remote/status.command.js.map +1 -1
- package/dist/src/commands/remote/sync.command.d.ts.map +1 -1
- package/dist/src/commands/remote/sync.command.js.map +1 -1
- package/dist/src/commands/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.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.map +1 -1
- package/dist/src/commands/version.command.d.ts.map +1 -1
- package/dist/src/commands/version.command.js.map +1 -1
- package/dist/src/commands/website/audit.command.d.ts.map +1 -1
- package/dist/src/commands/website/audit.command.js.map +1 -1
- package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/open.command.js.map +1 -1
- package/dist/src/commands/workbench/parallelism.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/parallelism.command.js.map +1 -1
- package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/status.command.js.map +1 -1
- package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/errors/error.utils.js.map +1 -1
- package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/io/file.utils.js.map +1 -1
- package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/io/io.schemas.js.map +1 -1
- package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -1
- package/dist/src/infrastructure/io/template-processor.js.map +1 -1
- package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -1
- package/dist/src/infrastructure/logger/logger.service.js.map +1 -1
- package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/process/spawn.utils.js.map +1 -1
- package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/formatting.service.js.map +1 -1
- package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/interaction-engine.service.js.map +1 -1
- package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/markdown-renderer.service.js.map +1 -1
- package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/ui.schemas.js.map +1 -1
- package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/utils/string.utils.js.map +1 -1
- package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -1
- package/dist/src/infrastructure/validation/validator.service.js.map +1 -1
- package/dist/src/kernel/base-command.d.ts.map +1 -1
- package/dist/src/kernel/base-command.js.map +1 -1
- package/dist/src/kernel/bootstrap.d.ts.map +1 -1
- package/dist/src/kernel/bootstrap.js.map +1 -1
- package/dist/src/kernel/command-index-cache.d.ts.map +1 -1
- package/dist/src/kernel/command-index-cache.js.map +1 -1
- package/dist/src/kernel/command-registry.d.ts.map +1 -1
- package/dist/src/kernel/command-registry.js.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/logger.d.ts.map +1 -1
- package/dist/src/kernel/logger.js.map +1 -1
- package/dist/src/kernel/types.d.ts.map +1 -1
- 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/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/app-env.service.d.ts.map +1 -1
- package/dist/src/services/application/app-env.service.js.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.js.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
- package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-schema-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
- package/dist/src/services/application/application-browser-smoke.service.d.ts.map +1 -1
- package/dist/src/services/application/application-browser-smoke.service.js.map +1 -1
- package/dist/src/services/application/application-creation-readiness.service.d.ts.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.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
- package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -1
- package/dist/src/services/application/application-dev-port-offsets.js.map +1 -1
- package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
- package/dist/src/services/application/application-initialization-verification.service.js.map +1 -1
- package/dist/src/services/application/application-root.utils.d.ts.map +1 -1
- package/dist/src/services/application/application-root.utils.js.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/backend-config.paths.d.ts.map +1 -1
- package/dist/src/services/application/backend-config.paths.js.map +1 -1
- package/dist/src/services/application/composition-provider-plan.service.d.ts.map +1 -1
- package/dist/src/services/application/composition-provider-plan.service.js.map +1 -1
- package/dist/src/services/application/creation-host-readiness.service.d.ts.map +1 -1
- package/dist/src/services/application/creation-host-readiness.service.js.map +1 -1
- package/dist/src/services/application/creation-preflight.service.d.ts.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/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-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-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/local-app-reinit.service.d.ts.map +1 -1
- package/dist/src/services/application/local-app-reinit.service.js.map +1 -1
- package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -1
- package/dist/src/services/application/local-application-initialization.service.js.map +1 -1
- package/dist/src/services/application/provider-package-links.service.d.ts.map +1 -1
- package/dist/src/services/application/provider-package-links.service.js.map +1 -1
- package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
- package/dist/src/services/application/stored-declaration-currency.service.d.ts.map +1 -1
- package/dist/src/services/application/stored-declaration-currency.service.js.map +1 -1
- package/dist/src/services/application/systems-of-record-library.service.d.ts.map +1 -1
- package/dist/src/services/application/systems-of-record-library.service.js.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.map +1 -1
- 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/build-console.service.d.ts +62 -2
- package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/build-console.service.js +70 -5
- package/dist/src/services/companion/build-console.service.js.map +1 -1
- package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client-options.utils.js.map +1 -1
- package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client.service.js.map +1 -1
- package/dist/src/services/companion/companion-health-hint.utils.d.ts.map +1 -1
- package/dist/src/services/companion/companion-health-hint.utils.js.map +1 -1
- package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-lifecycle.service.js.map +1 -1
- package/dist/src/services/companion/companion-local-token.utils.d.ts.map +1 -1
- package/dist/src/services/companion/companion-local-token.utils.js.map +1 -1
- package/dist/src/services/companion/companion.schemas.d.ts.map +1 -1
- package/dist/src/services/companion/companion.schemas.js.map +1 -1
- package/dist/src/services/companion/console-fast-path.d.ts +21 -3
- package/dist/src/services/companion/console-fast-path.d.ts.map +1 -1
- package/dist/src/services/companion/console-fast-path.js +57 -12
- package/dist/src/services/companion/console-fast-path.js.map +1 -1
- package/dist/src/services/companion/console-verb.utils.d.ts.map +1 -1
- package/dist/src/services/companion/console-verb.utils.js.map +1 -1
- package/dist/src/services/companion/creation-console.service.d.ts +76 -0
- package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-console.service.js +124 -11
- package/dist/src/services/companion/creation-console.service.js.map +1 -1
- package/dist/src/services/companion/creation-run-report.models.d.ts.map +1 -1
- package/dist/src/services/companion/creation-run-report.models.js.map +1 -1
- package/dist/src/services/companion/git-helper.service.d.ts.map +1 -1
- package/dist/src/services/companion/git-helper.service.js.map +1 -1
- package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -1
- package/dist/src/services/companion/local-companion-authority.service.js.map +1 -1
- package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -1
- package/dist/src/services/companion/workbench-browser-launcher.service.js.map +1 -1
- package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -1
- package/dist/src/services/companion/workbench-cli.service.js.map +1 -1
- package/dist/src/services/compliance/data-retention-schedule.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/data-retention-schedule.generator.js.map +1 -1
- package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts +5 -3
- package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts.map +1 -1
- package/dist/src/services/compliance/generated-compliance-module-wiring.js +4 -2
- package/dist/src/services/compliance/generated-compliance-module-wiring.js.map +1 -1
- package/dist/src/services/compliance/governed-document-releases.generator.d.ts.map +1 -1
- package/dist/src/services/compliance/governed-document-releases.generator.js.map +1 -1
- package/dist/src/services/compliance/legal-notice.generator.d.ts +45 -0
- package/dist/src/services/compliance/legal-notice.generator.d.ts.map +1 -0
- package/dist/src/services/compliance/legal-notice.generator.js +97 -0
- package/dist/src/services/compliance/legal-notice.generator.js.map +1 -0
- 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.map +1 -1
- package/dist/src/services/credentials/application-secret-owners.service.js.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.js.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.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
- package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.service.js.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
- package/dist/src/services/credentials/local-defaults.service.d.ts.map +1 -1
- package/dist/src/services/credentials/local-defaults.service.js.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.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.map +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
- 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/deployment/apps-manager-diagnostics.service.d.ts.map +1 -1
- package/dist/src/services/deployment/apps-manager-diagnostics.service.js.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
- package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/backing-service-health-watch.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/backing-service-health-watch.js.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.map +1 -1
- 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/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.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.map +1 -1
- 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.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.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/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.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.map +1 -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.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.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
- package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-sync.service.js.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.js.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.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
- package/dist/src/services/environment/environment-paths.service.d.ts.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.map +1 -1
- package/dist/src/services/environment/environment-registry.service.js.map +1 -1
- package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.js.map +1 -1
- package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/environment.schemas.js.map +1 -1
- package/dist/src/services/environment/environment.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment.service.js.map +1 -1
- package/dist/src/services/environment/hosted-infrastructure-leftovers.service.d.ts.map +1 -1
- package/dist/src/services/environment/hosted-infrastructure-leftovers.service.js.map +1 -1
- package/dist/src/services/environment/infrastructure-host.service.d.ts.map +1 -1
- package/dist/src/services/environment/infrastructure-host.service.js.map +1 -1
- package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -1
- package/dist/src/services/environment/platform-engine-change.utils.js.map +1 -1
- package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime-state.service.js.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -1
- package/dist/src/services/framework/application-claude-settings.d.ts +39 -5
- package/dist/src/services/framework/application-claude-settings.d.ts.map +1 -1
- package/dist/src/services/framework/application-claude-settings.js +100 -25
- package/dist/src/services/framework/application-claude-settings.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/claude-plugin-compiler.d.ts.map +1 -1
- package/dist/src/services/framework/claude-plugin-compiler.js +3 -2
- 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/framework-development-skills-sync.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.js.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.map +1 -1
- 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-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
- package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-release.service.js.map +1 -1
- package/dist/src/services/framework/framework-update.service.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/src/services/framework/installed-framework-assets.service.js.map +1 -1
- package/dist/src/services/framework/npm-registry-output.d.ts.map +1 -1
- package/dist/src/services/framework/npm-registry-output.js.map +1 -1
- package/dist/src/services/framework/package-install.service.d.ts.map +1 -1
- 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.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/frontend/cloudflare-cdn.service.d.ts.map +1 -1
- package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -1
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-dist-uploader.service.js.map +1 -1
- package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-publish.service.js.map +1 -1
- package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/domain-generator.service.js.map +1 -1
- package/dist/src/services/generation/generator.schemas.d.ts.map +1 -1
- package/dist/src/services/generation/generator.schemas.js.map +1 -1
- package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/operation-generator.service.js.map +1 -1
- package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/resource-generator.service.js.map +1 -1
- package/dist/src/services/generation/template-registry.service.d.ts.map +1 -1
- package/dist/src/services/generation/template-registry.service.js.map +1 -1
- package/dist/src/services/registry/artifact-extractor.utils.d.ts.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.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/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-registration.service.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/src/services/registry/provider-install-step.d.ts.map +1 -1
- package/dist/src/services/registry/provider-install-step.js.map +1 -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.map +1 -1
- package/dist/src/services/registry/provider-module-identity.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-identity.service.js.map +1 -1
- package/dist/src/services/registry/provider-wiring.service.d.ts.map +1 -1
- 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-config-resolver.service.d.ts.map +1 -1
- package/dist/src/services/registry/registry-config-resolver.service.js.map +1 -1
- package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -1
- package/dist/src/services/registry/registry-credentials.service.js.map +1 -1
- package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -1
- package/dist/src/services/registry/saas-root-required.error.js.map +1 -1
- package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
- package/dist/src/services/security/csp-sync.service.js.map +1 -1
- package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -1
- package/dist/src/services/tools/utility-tools.service.js.map +1 -1
- package/dist/src/services/tracker/creation-run-tracker.service.d.ts.map +1 -1
- package/dist/src/services/tracker/creation-run-tracker.service.js.map +1 -1
- package/dist/src/services/website/website-label-pack-audit.service.d.ts.map +1 -1
- package/dist/src/services/website/website-label-pack-audit.service.js.map +1 -1
- package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
- package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
- package/dist/src/services/website/website-workspace.service.d.ts.map +1 -1
- package/dist/src/services/website/website-workspace.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +17 -17
- package/templates/saas/i18n/email/email-template-definitions.ts +5 -1
- package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__.json.hbs +21 -1
- package/templates/saas/scenarios/add-locale/files/website/src/pages/__localePath__/index.astro +1 -0
- package/templates/saas/scenarios/add-marketing-page/files/website/src/pages/__pageRef__.astro.hbs +1 -0
- package/templates/saas/scenarios/add-module/scenario.json +5 -0
- package/templates/saas/scenarios/add-website/files/website/src/components/FooterComponent.tsx.hbs +14 -6
- package/templates/saas/scenarios/add-website/files/website/src/content/llms.txt.hbs +3 -3
- package/templates/saas/scenarios/add-website/files/website/src/i18n/en.json.hbs +4 -0
- package/templates/saas/scenarios/add-website/files/website/src/pages/index.astro +1 -0
- package/templates/saas/scenarios/add-website/files/website/src/pages/llms.txt.ts +3 -1
- package/templates/saas/scenarios/add-website/files/website/src/styles/website.css +14 -0
- package/templates/saas/skeleton/backend-api/src/engine/email/email-template-definitions.ts +5 -1
- package/templates/saas/skeleton/shared-lib/src/engine/roles.ts +10 -2
- package/templates/saas/skeleton/specifications/src/companion-exports.ts +28 -3
- package/wildo-framework.info.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-toolchain-readiness.service.js","sourceRoot":"","sources":["../../../../../../src/services/deployment/host-toolchain-readiness.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAE5G;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAE/C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC;AAE7C;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,+CAA+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,mBAAmB,CAAC,KAAc;IACzC,MAAM,MAAM,GAAI,KAAqC,EAAE,MAAM,CAAC;IAC9D,MAAM,UAAU,GAAG,OAAO,MAAM,KAAK,QAAQ;QAC3C,CAAC,CAAC,MAAM;QACR,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5D,MAAM,mBAAmB,GAAG,UAAU;SACnC,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;SAC1B,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACnC,IAAI,mBAAmB;QAAE,OAAO,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAE9D,MAAM,OAAO,GAAI,KAAsC,EAAE,OAAO,CAAC;IACjE,OAAO,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC;AACnG,CAAC;AAED,SAAS,QAAQ,CAAC,IAAY;IAC5B,OAAO,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7D,CAAC;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["/**\n * Host toolchain readiness — Node, pnpm, and the C++ toolchain.\n *\n * These three sit BELOW everything else this CLI diagnoses. Docker Compose\n * being too old breaks the infrastructure; these break the machine, and every\n * one of them presents as something else entirely:\n *\n * - **Node.** The supported version had no single named source. `engines.node`\n * declared `>=18.0.0`, ~20 CI workflows pinned `22`, both installers\n * required `>=20`, and development ran `26.7.0` — four answers to one\n * question, with the LOOSEST one declared. That is not cosmetic: an\n * `engines` range advertising Node 18 covered configurations that provably\n * do not build, because `better-sqlite3` 11.x cannot compile on Node 26 at\n * all (Node 26 removed `v8::Object::GetPrototype`,\n * `v8::Context::GetIsolate` and `v8::PropertyCallbackInfo<T>::This`, which\n * its C++ uses). `SUPPORTED_NODE_MAJOR_VERSION` below is now that single\n * source; see its docblock for the sites that must be bumped with it.\n *\n * - **pnpm.** On 2026-08-08 the PATH-winning shim hardcoded pnpm 10.2.0,\n * which self-switches to the `packageManager` pin by downloading into\n * `~/Library/pnpm/.tools/`. That download had ABORTED, leaving a 4 KB\n * skeleton with no binary — so every `pnpm` invocation died `ENOENT` and\n * nothing in the repository could be installed, built or run. Note what\n * this means for the check: reading a version string would not have found\n * it, because the failure IS the inability to produce one. The probe below\n * therefore executes pnpm; the version comparison is the secondary answer,\n * not the primary one.\n *\n * - **The C++ toolchain.** The same machine reported Apple clang 21.0.0 with\n * SDK 26.5 — thoroughly modern — while\n * `CommandLineTools/usr/include/c++/v1` still held libc++ **11.0** (LLVM\n * 11, late 2020), with no `<ranges>`, `<format>` or `<coroutine>`. Every\n * native Node addon needing C++20 was unbuildable, which on Node 26 means\n * all of them, since Node's own V8 headers require C++20. The clang\n * version string was not merely unhelpful here — it was actively\n * misleading, which is why `probeCxx20Toolchain` COMPILES rather than\n * parses. That is the general rule this module follows and the baseline\n * records: verify a toolchain claim by executing it.\n *\n * Everything here is READ-ONLY and injection-friendly: each probe takes its\n * runner so a unit test can exercise the failure shapes without a host that\n * happens to be broken in the right way.\n *\n * @see `.claude/rules/toolchain-installation-baseline.md` — owns the baseline,\n * the framework-vs-application audience split, and the gap inventory these\n * probes close.\n */\n\nimport { execFileSync } from 'child_process';\nimport { readFileSync } from 'fs';\nimport { isVersionAtLeast, parseVersionTriple } from '~wildo-cli/services/deployment/version-compare.utils';\n\n/**\n * **The single named source for the supported Node major version.**\n *\n * Everything that states a Node requirement derives from this constant or is\n * pinned against it by a test. When it moves, ALL of the following move in the\n * same change — they are one decision expressed five times, and the reason the\n * baseline calls the previous state a defect is that four of them disagreed:\n *\n * 1. this constant;\n * 2. root `package.json` → `engines.node`;\n * 3. every `node-version:` in `.github/workflows/*.yml`;\n * 4. `platform/factory/scripts/install.sh` → `MIN_NODE_VERSION`;\n * 5. `platform/factory/scripts/install.ps1` → `$MIN_NODE_VERSION`.\n *\n * Sites 2, 4 and 5 are pinned to this constant by\n * `__tests__/host-toolchain-readiness.service.test.ts`; site 3 is pinned by\n * `__tests__/local-precondition-checks.service.test.ts`. Neither a shell\n * installer nor a YAML workflow can import a TypeScript constant, so a test is\n * the only mechanism available — bump one and CI fails until the rest follow.\n *\n * Recorded as TESTED, not aspirational: 26 is what development runs and what\n * CI runs. A range wider than that would be a claim nothing exercises, which\n * is precisely how `>=18.0.0` came to cover a configuration that cannot build.\n *\n * Binds BOTH audiences (framework development and application development) —\n * contrast the compiler, watcher and alias finalizer, which are\n * framework-development concerns and are never propagated into a generated\n * application. See the audience table in the baseline rule.\n */\nexport const SUPPORTED_NODE_MAJOR_VERSION = 26;\n\n/**\n * Floor for pnpm, mirroring root `package.json` → `engines.pnpm`.\n *\n * Deliberately a FLOOR rather than the exact `packageManager` pin. The pin\n * (`pnpm@10.6.4`) is enforced per-invocation by pnpm's own self-switch, so a\n * host sitting slightly off it is normal and self-correcting; a host BELOW the\n * floor is not, because the self-switch mechanism itself is what changed\n * across pnpm 9 → 10. The two are reported separately by\n * `checkPnpmToolchain` — one fails, the other warns.\n */\nexport const MINIMUM_PNPM_VERSION = '10.0.0';\n\n/**\n * The C++20 probe's translation unit.\n *\n * `<ranges>` is the discriminator, chosen because it is exactly what the\n * broken host lacked and because libc++ gained it late (LLVM 15/16), so a\n * pre-C++20 standard library fails on the `#include` itself rather than on\n * anything subtle. `<format>` and `<coroutine>` fail the same way on the same\n * hosts; one header keeps the probe near a second instead of near two.\n *\n * A feature-test macro (`__cpp_lib_ranges` via `<version>`) would be ~20x\n * faster and was rejected: it reports what the library CLAIMS, and this probe\n * exists because a toolchain's own claims about itself were the thing that\n * lied.\n */\nexport const CXX20_PROBE_SOURCE = '#include <ranges>\\nint main() { return 0; }\\n';\n\n/** Wall-clock ceiling for the C++ probe, so a wedged compiler cannot hang the diagnostic. */\nconst CXX20_PROBE_TIMEOUT_MS = 20_000;\n\n/**\n * Parse the major version out of a Node version string (`v26.7.0`, `26.7.0`).\n * Returns `null` for anything unparseable — see `parseVersionTriple` for why an\n * unknown version must never degrade to `0`.\n */\nexport function parseNodeMajorVersion(raw: string): number | null {\n const triple = parseVersionTriple(raw);\n return triple ? triple[0] : null;\n}\n\n/** `true` when `nodeVersion` is on the supported major, or a later one. */\nexport function isNodeVersionSupported(\n nodeVersion: string,\n supportedMajor: number = SUPPORTED_NODE_MAJOR_VERSION,\n): boolean {\n const major = parseNodeMajorVersion(nodeVersion);\n return major !== null && major >= supportedMajor;\n}\n\n/**\n * Read the pnpm version declared by a manifest's `packageManager` field.\n *\n * That field — not `engines.pnpm` — is the exact pin, because it is what\n * pnpm's own self-switch reads. Returns `null` when the manifest is absent,\n * unparseable, or declares a `packageManager` for some other tool; every one of\n * those is \"no declared pin\", which the caller must treat as an absence of\n * evidence rather than as a mismatch.\n */\nexport function readDeclaredPackageManagerPnpmVersion(\n manifestPath: string,\n readManifest: (path: string) => string = (path) => readFileSync(path, 'utf-8'),\n): string | null {\n let manifest: { packageManager?: unknown };\n try {\n manifest = JSON.parse(readManifest(manifestPath)) as { packageManager?: unknown };\n } catch {\n return null;\n }\n if (typeof manifest.packageManager !== 'string') return null;\n const match = manifest.packageManager.trim().match(/^pnpm@(\\d[^\\s+]*)/);\n return match ? match[1] : null;\n}\n\n/**\n * Outcome of actually running pnpm.\n *\n * `version` and `failure` are mutually exclusive, and the distinction is the\n * entire point of this probe: a host with NO usable pnpm and a host with an\n * OLD pnpm need different remediation, and the 2026-08-08 failure was the\n * former while presenting as neither.\n */\nexport interface PnpmProbeResult {\n readonly version: string | null;\n readonly failure: string | null;\n}\n\n/**\n * Execute pnpm and report what came back.\n *\n * INVOKES rather than inspects, deliberately. The recorded failure was a\n * `packageManager` self-switch whose download aborted, leaving a 4 KB skeleton\n * with no binary in `~/Library/pnpm/.tools/`; the shim was present, on PATH,\n * and reported nothing at all because every invocation died `ENOENT`. Any\n * check that read a version from a file, a lockfile, or the shim's own\n * metadata would have called that host healthy.\n *\n * Output that parses to no version is reported as a FAILURE, not as an unknown\n * version — pnpm answering `--version` with something unrecognisable is itself\n * a broken pnpm.\n */\nexport function probePnpmExecutable(\n run: () => string = () => execFileSync('pnpm', ['--version'], {\n encoding: 'utf-8',\n stdio: 'pipe',\n timeout: CXX20_PROBE_TIMEOUT_MS,\n }),\n): PnpmProbeResult {\n let output: string;\n try {\n output = run();\n } catch (error) {\n return { version: null, failure: extractProbeFailure(error) };\n }\n const version = output.trim().split(/\\s+/).pop() ?? '';\n if (!parseVersionTriple(version)) {\n return { version: null, failure: `\\`pnpm --version\\` returned unrecognisable output: ${truncate(output.trim())}` };\n }\n return { version, failure: null };\n}\n\n/**\n * What a C++20 compile probe can conclude.\n *\n * A named enum rather than a literal union because each member carries a\n * distinct remedy that only a named home can document — the repository rule in\n * `CLAUDE.md` (\"closed semantic vocabularies must have one named runtime\n * source\"), enforced by `pnpm check:semantic-string-literals`.\n */\nexport enum Cxx20ProbeStatus {\n /** The driver compiled a `<ranges>` probe at `-std=c++20`. Nothing to do. */\n OK = 'ok',\n /**\n * A compiler driver exists but cannot compile C++20. Kept apart from `ABSENT`\n * because the remedy is to REPAIR a toolchain — the recorded case was Apple\n * clang 21 sitting on a libc++ from 2020, which reports a healthy version and\n * still lacks `<ranges>`, `<format>` and `<coroutine>`.\n */\n UNSUPPORTED = 'unsupported',\n /** No compiler driver at all. The remedy is to INSTALL a toolchain. */\n ABSENT = 'absent',\n /**\n * Not attempted — Windows, where answering needs a Developer Command Prompt\n * environment the CLI does not have. Reported as a PASS with a detail string\n * rather than a warning: a permanent yellow line on every Windows machine\n * trains operators to skim past the diagnostics that do mean something.\n */\n NOT_PROBED = 'not-probed',\n}\n\nexport interface Cxx20ProbeResult {\n readonly status: Cxx20ProbeStatus;\n readonly compiler: string;\n readonly diagnostic: string | null;\n}\n\n/**\n * Compile a one-file C++20 translation unit and report whether it succeeded.\n *\n * **Never infers from a version string.** Apple clang reported 21.0.0 on a\n * host whose libc++ was from 2020, and no amount of version parsing would have\n * caught it; compiling `#include <ranges>` caught it in one step. The source\n * goes in on STDIN (`-x c++ -`) so the probe writes nothing to disk — this runs\n * inside `wildo local doctor`, which is a read-only diagnostic.\n *\n * `-fsyntax-only` stops after semantic analysis: the headers must parse, but no\n * object file is produced and no linker is involved. That is the right depth,\n * because a missing standard library header fails here while an unrelated\n * link-time problem — not this check's business — does not.\n *\n * Not probed on Windows. Establishing whether MSVC can compile C++20 requires\n * a Developer Command Prompt environment that a CLI invoked from an ordinary\n * shell does not have, and guessing would produce either a permanent false\n * warning or a false assurance. `not-probed` says so explicitly rather than\n * pretending either way.\n */\nexport function probeCxx20Toolchain(\n options: {\n platform?: NodeJS.Platform;\n compiler?: string;\n run?: (compiler: string, args: readonly string[], source: string) => void;\n } = {},\n): Cxx20ProbeResult {\n const platform = options.platform ?? process.platform;\n // `CXX` is the conventional override; `c++` is the generic driver that\n // resolves to clang++ or g++ on every POSIX host.\n const compiler = options.compiler ?? process.env.CXX ?? 'c++';\n\n if (platform === 'win32') {\n return { status: Cxx20ProbeStatus.NOT_PROBED, compiler, diagnostic: null };\n }\n\n const run = options.run ?? ((command: string, args: readonly string[], source: string) => {\n execFileSync(command, [...args], {\n input: source,\n encoding: 'utf-8',\n stdio: ['pipe', 'pipe', 'pipe'],\n timeout: CXX20_PROBE_TIMEOUT_MS,\n });\n });\n\n try {\n run(compiler, ['-std=c++20', '-fsyntax-only', '-x', 'c++', '-'], CXX20_PROBE_SOURCE);\n return { status: Cxx20ProbeStatus.OK, compiler, diagnostic: null };\n } catch (error) {\n const diagnostic = extractProbeFailure(error);\n const absent = isMissingExecutableError(error);\n return { status: absent ? Cxx20ProbeStatus.ABSENT : Cxx20ProbeStatus.UNSUPPORTED, compiler, diagnostic };\n }\n}\n\n/** `true` when the failure is \"there is no such executable\", not \"it ran and refused\". */\nfunction isMissingExecutableError(error: unknown): boolean {\n const code = (error as { code?: unknown } | null)?.code;\n return code === 'ENOENT';\n}\n\n/**\n * Best available one-line description of why a probe failed.\n *\n * Prefers the child's STDERR, because for the C++ probe that is the compiler\n * diagnostic naming the missing header — the single most useful string this\n * whole check can print. Falls back to the Error message (which carries\n * `ENOENT` for an absent executable).\n */\nfunction extractProbeFailure(error: unknown): string {\n const stderr = (error as { stderr?: unknown } | null)?.stderr;\n const stderrText = typeof stderr === 'string'\n ? stderr\n : Buffer.isBuffer(stderr) ? stderr.toString('utf-8') : '';\n const firstDiagnosticLine = stderrText\n .split('\\n')\n .map((line) => line.trim())\n .find((line) => line.length > 0);\n if (firstDiagnosticLine) return truncate(firstDiagnosticLine);\n\n const message = (error as { message?: unknown } | null)?.message;\n return typeof message === 'string' && message.length > 0 ? truncate(message) : 'unknown failure';\n}\n\nfunction truncate(text: string): string {\n return text.length > 160 ? `${text.slice(0, 160)}…` : text;\n}\n\nexport { isVersionAtLeast };\n"]}
|
|
1
|
+
{"version":3,"file":"host-toolchain-readiness.service.js","sourceRoot":"","sources":["../../../../src/services/deployment/host-toolchain-readiness.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAE5G;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,CA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These three sit BELOW everything else this CLI diagnoses. Docker Compose\n * being too old breaks the infrastructure; these break the machine, and every\n * one of them presents as something else entirely:\n *\n * - **Node.** The supported version had no single named source. `engines.node`\n * declared `>=18.0.0`, ~20 CI workflows pinned `22`, both installers\n * required `>=20`, and development ran `26.7.0` — four answers to one\n * question, with the LOOSEST one declared. That is not cosmetic: an\n * `engines` range advertising Node 18 covered configurations that provably\n * do not build, because `better-sqlite3` 11.x cannot compile on Node 26 at\n * all (Node 26 removed `v8::Object::GetPrototype`,\n * `v8::Context::GetIsolate` and `v8::PropertyCallbackInfo<T>::This`, which\n * its C++ uses). `SUPPORTED_NODE_MAJOR_VERSION` below is now that single\n * source; see its docblock for the sites that must be bumped with it.\n *\n * - **pnpm.** On 2026-08-08 the PATH-winning shim hardcoded pnpm 10.2.0,\n * which self-switches to the `packageManager` pin by downloading into\n * `~/Library/pnpm/.tools/`. That download had ABORTED, leaving a 4 KB\n * skeleton with no binary — so every `pnpm` invocation died `ENOENT` and\n * nothing in the repository could be installed, built or run. Note what\n * this means for the check: reading a version string would not have found\n * it, because the failure IS the inability to produce one. The probe below\n * therefore executes pnpm; the version comparison is the secondary answer,\n * not the primary one.\n *\n * - **The C++ toolchain.** The same machine reported Apple clang 21.0.0 with\n * SDK 26.5 — thoroughly modern — while\n * `CommandLineTools/usr/include/c++/v1` still held libc++ **11.0** (LLVM\n * 11, late 2020), with no `<ranges>`, `<format>` or `<coroutine>`. Every\n * native Node addon needing C++20 was unbuildable, which on Node 26 means\n * all of them, since Node's own V8 headers require C++20. The clang\n * version string was not merely unhelpful here — it was actively\n * misleading, which is why `probeCxx20Toolchain` COMPILES rather than\n * parses. That is the general rule this module follows and the baseline\n * records: verify a toolchain claim by executing it.\n *\n * Everything here is READ-ONLY and injection-friendly: each probe takes its\n * runner so a unit test can exercise the failure shapes without a host that\n * happens to be broken in the right way.\n *\n * @see `.claude/rules/toolchain-installation-baseline.md` — owns the baseline,\n * the framework-vs-application audience split, and the gap inventory these\n * probes close.\n */\n\nimport { execFileSync } from 'child_process';\nimport { readFileSync } from 'fs';\nimport { isVersionAtLeast, parseVersionTriple } from '~wildo-cli/services/deployment/version-compare.utils';\n\n/**\n * **The single named source for the supported Node major version.**\n *\n * Everything that states a Node requirement derives from this constant or is\n * pinned against it by a test. When it moves, ALL of the following move in the\n * same change — they are one decision expressed five times, and the reason the\n * baseline calls the previous state a defect is that four of them disagreed:\n *\n * 1. this constant;\n * 2. root `package.json` → `engines.node`;\n * 3. every `node-version:` in `.github/workflows/*.yml`;\n * 4. `platform/factory/scripts/install.sh` → `MIN_NODE_VERSION`;\n * 5. `platform/factory/scripts/install.ps1` → `$MIN_NODE_VERSION`.\n *\n * Sites 2, 4 and 5 are pinned to this constant by\n * `__tests__/host-toolchain-readiness.service.test.ts`; site 3 is pinned by\n * `__tests__/local-precondition-checks.service.test.ts`. Neither a shell\n * installer nor a YAML workflow can import a TypeScript constant, so a test is\n * the only mechanism available — bump one and CI fails until the rest follow.\n *\n * Recorded as TESTED, not aspirational: 26 is what development runs and what\n * CI runs. A range wider than that would be a claim nothing exercises, which\n * is precisely how `>=18.0.0` came to cover a configuration that cannot build.\n *\n * Binds BOTH audiences (framework development and application development) —\n * contrast the compiler, watcher and alias finalizer, which are\n * framework-development concerns and are never propagated into a generated\n * application. See the audience table in the baseline rule.\n */\nexport const SUPPORTED_NODE_MAJOR_VERSION = 26;\n\n/**\n * Floor for pnpm, mirroring root `package.json` → `engines.pnpm`.\n *\n * Deliberately a FLOOR rather than the exact `packageManager` pin. The pin\n * (`pnpm@10.6.4`) is enforced per-invocation by pnpm's own self-switch, so a\n * host sitting slightly off it is normal and self-correcting; a host BELOW the\n * floor is not, because the self-switch mechanism itself is what changed\n * across pnpm 9 → 10. The two are reported separately by\n * `checkPnpmToolchain` — one fails, the other warns.\n */\nexport const MINIMUM_PNPM_VERSION = '10.0.0';\n\n/**\n * The C++20 probe's translation unit.\n *\n * `<ranges>` is the discriminator, chosen because it is exactly what the\n * broken host lacked and because libc++ gained it late (LLVM 15/16), so a\n * pre-C++20 standard library fails on the `#include` itself rather than on\n * anything subtle. `<format>` and `<coroutine>` fail the same way on the same\n * hosts; one header keeps the probe near a second instead of near two.\n *\n * A feature-test macro (`__cpp_lib_ranges` via `<version>`) would be ~20x\n * faster and was rejected: it reports what the library CLAIMS, and this probe\n * exists because a toolchain's own claims about itself were the thing that\n * lied.\n */\nexport const CXX20_PROBE_SOURCE = '#include <ranges>\\nint main() { return 0; }\\n';\n\n/** Wall-clock ceiling for the C++ probe, so a wedged compiler cannot hang the diagnostic. */\nconst CXX20_PROBE_TIMEOUT_MS = 20_000;\n\n/**\n * Parse the major version out of a Node version string (`v26.7.0`, `26.7.0`).\n * Returns `null` for anything unparseable — see `parseVersionTriple` for why an\n * unknown version must never degrade to `0`.\n */\nexport function parseNodeMajorVersion(raw: string): number | null {\n const triple = parseVersionTriple(raw);\n return triple ? triple[0] : null;\n}\n\n/** `true` when `nodeVersion` is on the supported major, or a later one. */\nexport function isNodeVersionSupported(\n nodeVersion: string,\n supportedMajor: number = SUPPORTED_NODE_MAJOR_VERSION,\n): boolean {\n const major = parseNodeMajorVersion(nodeVersion);\n return major !== null && major >= supportedMajor;\n}\n\n/**\n * Read the pnpm version declared by a manifest's `packageManager` field.\n *\n * That field — not `engines.pnpm` — is the exact pin, because it is what\n * pnpm's own self-switch reads. Returns `null` when the manifest is absent,\n * unparseable, or declares a `packageManager` for some other tool; every one of\n * those is \"no declared pin\", which the caller must treat as an absence of\n * evidence rather than as a mismatch.\n */\nexport function readDeclaredPackageManagerPnpmVersion(\n manifestPath: string,\n readManifest: (path: string) => string = (path) => readFileSync(path, 'utf-8'),\n): string | null {\n let manifest: { packageManager?: unknown };\n try {\n manifest = JSON.parse(readManifest(manifestPath)) as { packageManager?: unknown };\n } catch {\n return null;\n }\n if (typeof manifest.packageManager !== 'string') return null;\n const match = manifest.packageManager.trim().match(/^pnpm@(\\d[^\\s+]*)/);\n return match ? match[1] : null;\n}\n\n/**\n * Outcome of actually running pnpm.\n *\n * `version` and `failure` are mutually exclusive, and the distinction is the\n * entire point of this probe: a host with NO usable pnpm and a host with an\n * OLD pnpm need different remediation, and the 2026-08-08 failure was the\n * former while presenting as neither.\n */\nexport interface PnpmProbeResult {\n readonly version: string | null;\n readonly failure: string | null;\n}\n\n/**\n * Execute pnpm and report what came back.\n *\n * INVOKES rather than inspects, deliberately. The recorded failure was a\n * `packageManager` self-switch whose download aborted, leaving a 4 KB skeleton\n * with no binary in `~/Library/pnpm/.tools/`; the shim was present, on PATH,\n * and reported nothing at all because every invocation died `ENOENT`. Any\n * check that read a version from a file, a lockfile, or the shim's own\n * metadata would have called that host healthy.\n *\n * Output that parses to no version is reported as a FAILURE, not as an unknown\n * version — pnpm answering `--version` with something unrecognisable is itself\n * a broken pnpm.\n */\nexport function probePnpmExecutable(\n run: () => string = () => execFileSync('pnpm', ['--version'], {\n encoding: 'utf-8',\n stdio: 'pipe',\n timeout: CXX20_PROBE_TIMEOUT_MS,\n }),\n): PnpmProbeResult {\n let output: string;\n try {\n output = run();\n } catch (error) {\n return { version: null, failure: extractProbeFailure(error) };\n }\n const version = output.trim().split(/\\s+/).pop() ?? '';\n if (!parseVersionTriple(version)) {\n return { version: null, failure: `\\`pnpm --version\\` returned unrecognisable output: ${truncate(output.trim())}` };\n }\n return { version, failure: null };\n}\n\n/**\n * What a C++20 compile probe can conclude.\n *\n * A named enum rather than a literal union because each member carries a\n * distinct remedy that only a named home can document — the repository rule in\n * `CLAUDE.md` (\"closed semantic vocabularies must have one named runtime\n * source\"), enforced by `pnpm check:semantic-string-literals`.\n */\nexport enum Cxx20ProbeStatus {\n /** The driver compiled a `<ranges>` probe at `-std=c++20`. Nothing to do. */\n OK = 'ok',\n /**\n * A compiler driver exists but cannot compile C++20. Kept apart from `ABSENT`\n * because the remedy is to REPAIR a toolchain — the recorded case was Apple\n * clang 21 sitting on a libc++ from 2020, which reports a healthy version and\n * still lacks `<ranges>`, `<format>` and `<coroutine>`.\n */\n UNSUPPORTED = 'unsupported',\n /** No compiler driver at all. The remedy is to INSTALL a toolchain. */\n ABSENT = 'absent',\n /**\n * Not attempted — Windows, where answering needs a Developer Command Prompt\n * environment the CLI does not have. Reported as a PASS with a detail string\n * rather than a warning: a permanent yellow line on every Windows machine\n * trains operators to skim past the diagnostics that do mean something.\n */\n NOT_PROBED = 'not-probed',\n}\n\nexport interface Cxx20ProbeResult {\n readonly status: Cxx20ProbeStatus;\n readonly compiler: string;\n readonly diagnostic: string | null;\n}\n\n/**\n * Compile a one-file C++20 translation unit and report whether it succeeded.\n *\n * **Never infers from a version string.** Apple clang reported 21.0.0 on a\n * host whose libc++ was from 2020, and no amount of version parsing would have\n * caught it; compiling `#include <ranges>` caught it in one step. The source\n * goes in on STDIN (`-x c++ -`) so the probe writes nothing to disk — this runs\n * inside `wildo local doctor`, which is a read-only diagnostic.\n *\n * `-fsyntax-only` stops after semantic analysis: the headers must parse, but no\n * object file is produced and no linker is involved. That is the right depth,\n * because a missing standard library header fails here while an unrelated\n * link-time problem — not this check's business — does not.\n *\n * Not probed on Windows. Establishing whether MSVC can compile C++20 requires\n * a Developer Command Prompt environment that a CLI invoked from an ordinary\n * shell does not have, and guessing would produce either a permanent false\n * warning or a false assurance. `not-probed` says so explicitly rather than\n * pretending either way.\n */\nexport function probeCxx20Toolchain(\n options: {\n platform?: NodeJS.Platform;\n compiler?: string;\n run?: (compiler: string, args: readonly string[], source: string) => void;\n } = {},\n): Cxx20ProbeResult {\n const platform = options.platform ?? process.platform;\n // `CXX` is the conventional override; `c++` is the generic driver that\n // resolves to clang++ or g++ on every POSIX host.\n const compiler = options.compiler ?? process.env.CXX ?? 'c++';\n\n if (platform === 'win32') {\n return { status: Cxx20ProbeStatus.NOT_PROBED, compiler, diagnostic: null };\n }\n\n const run = options.run ?? ((command: string, args: readonly string[], source: string) => {\n execFileSync(command, [...args], {\n input: source,\n encoding: 'utf-8',\n stdio: ['pipe', 'pipe', 'pipe'],\n timeout: CXX20_PROBE_TIMEOUT_MS,\n });\n });\n\n try {\n run(compiler, ['-std=c++20', '-fsyntax-only', '-x', 'c++', '-'], CXX20_PROBE_SOURCE);\n return { status: Cxx20ProbeStatus.OK, compiler, diagnostic: null };\n } catch (error) {\n const diagnostic = extractProbeFailure(error);\n const absent = isMissingExecutableError(error);\n return { status: absent ? Cxx20ProbeStatus.ABSENT : Cxx20ProbeStatus.UNSUPPORTED, compiler, diagnostic };\n }\n}\n\n/** `true` when the failure is \"there is no such executable\", not \"it ran and refused\". */\nfunction isMissingExecutableError(error: unknown): boolean {\n const code = (error as { code?: unknown } | null)?.code;\n return code === 'ENOENT';\n}\n\n/**\n * Best available one-line description of why a probe failed.\n *\n * Prefers the child's STDERR, because for the C++ probe that is the compiler\n * diagnostic naming the missing header — the single most useful string this\n * whole check can print. Falls back to the Error message (which carries\n * `ENOENT` for an absent executable).\n */\nfunction extractProbeFailure(error: unknown): string {\n const stderr = (error as { stderr?: unknown } | null)?.stderr;\n const stderrText = typeof stderr === 'string'\n ? stderr\n : Buffer.isBuffer(stderr) ? stderr.toString('utf-8') : '';\n const firstDiagnosticLine = stderrText\n .split('\\n')\n .map((line) => line.trim())\n .find((line) => line.length > 0);\n if (firstDiagnosticLine) return truncate(firstDiagnosticLine);\n\n const message = (error as { message?: unknown } | null)?.message;\n return typeof message === 'string' && message.length > 0 ? truncate(message) : 'unknown failure';\n}\n\nfunction truncate(text: string): string {\n return text.length > 160 ? `${text.slice(0, 160)}…` : text;\n}\n\nexport { isVersionAtLeast };\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infra-writer.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"infra-writer.service.d.ts","sourceRoot":"","sources":["../../../../src/services/deployment/infra-writer.service.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAC5G,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAG7F,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,mCAAmC,EACzC,MAAM,qEAAqE,CAAC;AAK7E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CACjC,GAAG,EAAE,gCAAgC,EACrC,aAAa,EAAE,MAAM,EACrB,oBAAoB,EAAE,OAAO,EAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,WAAW,EAAE,sBAAsB,EACnC,GAAG,EAAE,MAAM,EACX,mBAAmB,CAAC,EAAE,2BAA2B,EAAE,EACnD,aAAa,CAAC,EAAE,0BAA0B,EAAE,EAC5C,oBAAoB,CAAC,EAAE,mCAAmC,EAAE,GAC3D,OAAO,CAAC,IAAI,CAAC,CA2Gf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infra-writer.service.js","sourceRoot":"","sources":["../../../../../../src/services/deployment/infra-writer.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAI5B,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,wEAAwE,CAAC;AAC/I,OAAO,EACL,+BAA+B,GAIhC,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAC;AACjG,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kEAAkE,CAAC;AAG3H;;;;;;;;;GAS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AC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;QACnF,KAAK,MAAM,QAAQ,IAAI,cAAc,EAAE,CAAC;YACtC,SAAS,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACzD,CAAC;QAED,KAAK,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;YAC5D,MAAM,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAClD,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,IAAI,OAAO,CAAC,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACxE,CAAC;QACD,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,4BAA4B,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,aAAa,CAAC,CAAC,CAAC;IACtG,CAAC;AACH,CAAC","sourcesContent":["import chalk from 'chalk';\nimport { mkdirSync, rmSync, writeFileSync } from 'fs';\nimport { join } from 'path';\n\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { FILE_NAMES } from '~wildo-cli/infrastructure/io/io.schemas';\nimport { generateEnvWildoPlatform, renderDockerComposeTemplate } from '~wildo-cli/services/deployment/docker/docker-compose-generator.service';\nimport {\n generatePlatformServiceEnvFiles,\n type ApplicationBackendEnvTarget,\n type CompanionPlatformEnvTarget,\n type ApplicationFrontendEnvExampleTarget,\n} from '~wildo-cli/services/environment/env-configuration-generator.service';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { InfrastructureHost } from '~wildo-cli/services/environment/infrastructure-host.service';\nimport { WildoDeploymentRuntime } from '@wildo-ai/platform-config-lib';\nimport { generateK8sSecrets, K8sResourceCategory } from '~wildo-cli/services/deployment/k8s/k8s-secrets-generator.service';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\n/**\n * Phase 2 — infrastructure file write.\n *\n * Branches on `env.runtime`:\n * - Docker Compose → docker-compose template, .env.wildo-platform, service .env files\n * - Kubernetes → K8s secret YAMLs only (manifests are generated during bootstrap)\n *\n * Platform service .env files are generated for framework developers regardless\n * of runtime (they run services natively with hot-reload).\n */\nexport async function runInfraWrite(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n isFrameworkDeveloper: boolean,\n imageTag: string | undefined,\n credentials: PlatformEnvSecretsJson,\n log: Logger,\n applicationBackends?: ApplicationBackendEnvTarget[],\n companionApis?: CompanionPlatformEnvTarget[],\n applicationFrontends?: ApplicationFrontendEnvExampleTarget[],\n): Promise<void> {\n const runtime = env.runtime;\n /*\n * A HOSTED environment writes only the application's own runtime env below. The compose project,\n * `.env.wildo-platform` and the platform/infrastructure Secrets describe its host's substrate, and the\n * host writes them.\n */\n const hostedBy = InfrastructureHost.resolve(env);\n if (hostedBy !== null) {\n log.info(chalk.cyan(` Runs on the infrastructure of ${hostedBy.applicationRoot}: shared compose, platform env and cluster secrets are the host's.`));\n }\n\n if (runtime === WildoDeploymentRuntime.DOCKER_COMPOSE && hostedBy === null) {\n await renderDockerComposeTemplate(env, frameworkPath, isFrameworkDeveloper, imageTag);\n log.success(chalk.green(` ✓ ${FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM} rendered`));\n\n generateEnvWildoPlatform(env, isFrameworkDeveloper, credentials);\n log.success(chalk.green(' ✓ .env.wildo-platform written'));\n }\n\n /*\n * ALWAYS write the APPLICATION's own runtime env; skip only the SHARED platform-service files.\n *\n * This whole call used to sit behind `if (isFrameworkDeveloper)`, and the gate is half right: the\n * apps-manager / module-registry / crontabs `.env` files are anchored in the FRAMEWORK CHECKOUT\n * and belong to that lane — an app creator runs those services as containers fed by\n * `.env.wildo-platform`. But the application's own backend, companion and frontend targets are\n * anchored on the APPLICATION root, and the gate took them down with the platform ones.\n *\n * The consequence was silent and total: an app-creator application got NO per-service `.env` at\n * all (measured 2026-09-10 — `wonder-todos` has six, a freshly created app-creator application\n * has zero). `wildo local dev` then compiled everything and started nothing usable: the companion\n * died on `APPLICATION_ID / SERVICE_NAME / PLATFORM_ENVIRONMENT_ID` undefined, while `local init`\n * had just reported \"Application runtime materialized: 1 backend, 1 companion, 1 frontend\".\n *\n * `skipPlatformServiceEnvs` is the seam for exactly this and already existed — it was added for\n * the foreign-platform-owner case (issue #50), where the app's own targets must still be written\n * while another session owns the shared files. Same shape, second caller.\n */\n generatePlatformServiceEnvFiles(\n env,\n frameworkPath,\n credentials,\n log,\n applicationBackends,\n companionApis,\n applicationFrontends,\n undefined,\n undefined,\n undefined,\n { skipPlatformServiceEnvs: !isFrameworkDeveloper },\n );\n log.success(chalk.green(\n isFrameworkDeveloper\n ? ' ✓ Platform service .env files generated'\n : ' ✓ Application runtime .env files generated',\n ));\n\n if (runtime === WildoDeploymentRuntime.KUBERNETES && hostedBy === null) {\n // No `applicationMinions` / `applicationWorkers`, and that is a stated result rather than an\n // omission (#369): this writer is the interactive `wildo setup` lane, whose only caller passes\n // no `applicationBackends` either, so it emits platform and infrastructure Secrets and no\n // application-tier ones at all. The lane that deploys an application's runtimes is\n // `ci-deploy-generator`, and that is where the per-runtime provider Secrets are wired.\n // Threading empty target lists through here would look wired and deliver nothing.\n const k8sResources = generateK8sSecrets(env, credentials, {\n applicationBackends,\n isFrameworkDeveloper,\n });\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n const secretsOutputDir = join(infraPath, 'secrets');\n const categoryDirs: Record<K8sResourceCategory, string> = {\n [K8sResourceCategory.PLATFORM]: join(secretsOutputDir, 'platform'),\n [K8sResourceCategory.INFRASTRUCTURE]: secretsOutputDir,\n [K8sResourceCategory.APPLICATION]: join(secretsOutputDir, 'applications'),\n };\n\n // Always wipe the platform/ subdir so a previous run that emitted\n // platform-service Secrets/ConfigMaps doesn't leak stale files when\n // the framework-developer toggle (or runtime policy) flips and this\n // run no longer emits any platform-category resource. We don't wipe\n // application/ symmetrically because per-app Secret files are owned\n // jointly with apps-manager's dynamic lane and pruning belongs to a\n // dedicated reaper, not the writer.\n mkdirSync(secretsOutputDir, { recursive: true });\n rmSync(categoryDirs[K8sResourceCategory.PLATFORM], { recursive: true, force: true });\n\n // Create exactly the dirs the emitted resources need. Deriving from\n // `k8sResources` keeps the writer honest about category routing —\n // any future generator-side category relabel automatically routes\n // here without a parallel writer-side flag (the bug the M-2/HIGH-1\n // round-3 fix closed: the then-shared `providers-secret` was emitted as\n // 'platform' but landed in `secrets/platform/` only when\n // `includePlatformResources` happened to be true at the writer side —\n // that Secret no longer exists, replaced by one per runtime in #369, and\n // the routing lesson is what the derivation below preserves).\n const usedCategories = new Set(Object.values(k8sResources).map((r) => r.category));\n for (const category of usedCategories) {\n mkdirSync(categoryDirs[category], { recursive: true });\n }\n\n for (const [name, resource] of Object.entries(k8sResources)) {\n const targetDir = categoryDirs[resource.category];\n writeFileSync(join(targetDir, `${name}.yaml`), resource.yaml, 'utf8');\n }\n log.success(chalk.green(` ✓ K8s secrets written (${Object.keys(k8sResources).length} resources)`));\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"infra-writer.service.js","sourceRoot":"","sources":["../../../../src/services/deployment/infra-writer.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAI5B,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,wEAAwE,CAAC;AAC/I,OAAO,EACL,+BAA+B,GAIhC,MAAM,qEAAqE,CAAC;AAC7E,OAA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,CAAC,CAAC;QAErF,oEAAoE;QACpE,kEAAkE;QAClE,kEAAkE;QAClE,mEAAmE;QACnE,wEAAwE;QACxE,yDAAyD;QACzD,sEAAsE;QACtE,yEAAyE;QACzE,8DAA8D;QAC9D,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;QACnF,KAAK,MAAM,QAAQ,IAAI,cAAc,EAAE,CAAC;YACtC,SAAS,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACzD,CAAC;QAED,KAAK,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;YAC5D,MAAM,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAClD,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,IAAI,OAAO,CAAC,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACxE,CAAC;QACD,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,4BAA4B,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,aAAa,CAAC,CAAC,CAAC;IACtG,CAAC;AACH,CAAC","sourcesContent":["import chalk from 'chalk';\nimport { mkdirSync, rmSync, writeFileSync } from 'fs';\nimport { join } from 'path';\n\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { FILE_NAMES } from '~wildo-cli/infrastructure/io/io.schemas';\nimport { generateEnvWildoPlatform, renderDockerComposeTemplate } from '~wildo-cli/services/deployment/docker/docker-compose-generator.service';\nimport {\n generatePlatformServiceEnvFiles,\n type ApplicationBackendEnvTarget,\n type CompanionPlatformEnvTarget,\n type ApplicationFrontendEnvExampleTarget,\n} from '~wildo-cli/services/environment/env-configuration-generator.service';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { InfrastructureHost } from '~wildo-cli/services/environment/infrastructure-host.service';\nimport { WildoDeploymentRuntime } from '@wildo-ai/platform-config-lib';\nimport { generateK8sSecrets, K8sResourceCategory } from '~wildo-cli/services/deployment/k8s/k8s-secrets-generator.service';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\n/**\n * Phase 2 — infrastructure file write.\n *\n * Branches on `env.runtime`:\n * - Docker Compose → docker-compose template, .env.wildo-platform, service .env files\n * - Kubernetes → K8s secret YAMLs only (manifests are generated during bootstrap)\n *\n * Platform service .env files are generated for framework developers regardless\n * of runtime (they run services natively with hot-reload).\n */\nexport async function runInfraWrite(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n isFrameworkDeveloper: boolean,\n imageTag: string | undefined,\n credentials: PlatformEnvSecretsJson,\n log: Logger,\n applicationBackends?: ApplicationBackendEnvTarget[],\n companionApis?: CompanionPlatformEnvTarget[],\n applicationFrontends?: ApplicationFrontendEnvExampleTarget[],\n): Promise<void> {\n const runtime = env.runtime;\n /*\n * A HOSTED environment writes only the application's own runtime env below. The compose project,\n * `.env.wildo-platform` and the platform/infrastructure Secrets describe its host's substrate, and the\n * host writes them.\n */\n const hostedBy = InfrastructureHost.resolve(env);\n if (hostedBy !== null) {\n log.info(chalk.cyan(` Runs on the infrastructure of ${hostedBy.applicationRoot}: shared compose, platform env and cluster secrets are the host's.`));\n }\n\n if (runtime === WildoDeploymentRuntime.DOCKER_COMPOSE && hostedBy === null) {\n await renderDockerComposeTemplate(env, frameworkPath, isFrameworkDeveloper, imageTag);\n log.success(chalk.green(` ✓ ${FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM} rendered`));\n\n generateEnvWildoPlatform(env, isFrameworkDeveloper, credentials);\n log.success(chalk.green(' ✓ .env.wildo-platform written'));\n }\n\n /*\n * ALWAYS write the APPLICATION's own runtime env; skip only the SHARED platform-service files.\n *\n * This whole call used to sit behind `if (isFrameworkDeveloper)`, and the gate is half right: the\n * apps-manager / module-registry / crontabs `.env` files are anchored in the FRAMEWORK CHECKOUT\n * and belong to that lane — an app creator runs those services as containers fed by\n * `.env.wildo-platform`. But the application's own backend, companion and frontend targets are\n * anchored on the APPLICATION root, and the gate took them down with the platform ones.\n *\n * The consequence was silent and total: an app-creator application got NO per-service `.env` at\n * all (measured 2026-09-10 — `wonder-todos` has six, a freshly created app-creator application\n * has zero). `wildo local dev` then compiled everything and started nothing usable: the companion\n * died on `APPLICATION_ID / SERVICE_NAME / PLATFORM_ENVIRONMENT_ID` undefined, while `local init`\n * had just reported \"Application runtime materialized: 1 backend, 1 companion, 1 frontend\".\n *\n * `skipPlatformServiceEnvs` is the seam for exactly this and already existed — it was added for\n * the foreign-platform-owner case (issue #50), where the app's own targets must still be written\n * while another session owns the shared files. Same shape, second caller.\n */\n generatePlatformServiceEnvFiles(\n env,\n frameworkPath,\n credentials,\n log,\n applicationBackends,\n companionApis,\n applicationFrontends,\n undefined,\n undefined,\n undefined,\n { skipPlatformServiceEnvs: !isFrameworkDeveloper },\n );\n log.success(chalk.green(\n isFrameworkDeveloper\n ? ' ✓ Platform service .env files generated'\n : ' ✓ Application runtime .env files generated',\n ));\n\n if (runtime === WildoDeploymentRuntime.KUBERNETES && hostedBy === null) {\n // No `applicationMinions` / `applicationWorkers`, and that is a stated result rather than an\n // omission (#369): this writer is the interactive `wildo setup` lane, whose only caller passes\n // no `applicationBackends` either, so it emits platform and infrastructure Secrets and no\n // application-tier ones at all. The lane that deploys an application's runtimes is\n // `ci-deploy-generator`, and that is where the per-runtime provider Secrets are wired.\n // Threading empty target lists through here would look wired and deliver nothing.\n const k8sResources = generateK8sSecrets(env, credentials, {\n applicationBackends,\n isFrameworkDeveloper,\n });\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n const secretsOutputDir = join(infraPath, 'secrets');\n const categoryDirs: Record<K8sResourceCategory, string> = {\n [K8sResourceCategory.PLATFORM]: join(secretsOutputDir, 'platform'),\n [K8sResourceCategory.INFRASTRUCTURE]: secretsOutputDir,\n [K8sResourceCategory.APPLICATION]: join(secretsOutputDir, 'applications'),\n };\n\n // Always wipe the platform/ subdir so a previous run that emitted\n // platform-service Secrets/ConfigMaps doesn't leak stale files when\n // the framework-developer toggle (or runtime policy) flips and this\n // run no longer emits any platform-category resource. We don't wipe\n // application/ symmetrically because per-app Secret files are owned\n // jointly with apps-manager's dynamic lane and pruning belongs to a\n // dedicated reaper, not the writer.\n mkdirSync(secretsOutputDir, { recursive: true });\n rmSync(categoryDirs[K8sResourceCategory.PLATFORM], { recursive: true, force: true });\n\n // Create exactly the dirs the emitted resources need. Deriving from\n // `k8sResources` keeps the writer honest about category routing —\n // any future generator-side category relabel automatically routes\n // here without a parallel writer-side flag (the bug the M-2/HIGH-1\n // round-3 fix closed: the then-shared `providers-secret` was emitted as\n // 'platform' but landed in `secrets/platform/` only when\n // `includePlatformResources` happened to be true at the writer side —\n // that Secret no longer exists, replaced by one per runtime in #369, and\n // the routing lesson is what the derivation below preserves).\n const usedCategories = new Set(Object.values(k8sResources).map((r) => r.category));\n for (const category of usedCategories) {\n mkdirSync(categoryDirs[category], { recursive: true });\n }\n\n for (const [name, resource] of Object.entries(k8sResources)) {\n const targetDir = categoryDirs[resource.category];\n writeFileSync(join(targetDir, `${name}.yaml`), resource.yaml, 'utf8');\n }\n log.success(chalk.green(` ✓ K8s secrets written (${Object.keys(k8sResources).length} resources)`));\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cluster-controller-charts.constants.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"cluster-controller-charts.constants.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/cluster-controller-charts.constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa;IACxB,mDAAmD;;IAEnD,6DAA6D;;IAE7D,yGAAyG;;CAEjG,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cluster-controller-charts.constants.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"cluster-controller-charts.constants.js","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/cluster-controller-charts.constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,mDAAmD;IACnD,aAAa,EAAE,kCAAkC;IACjD,6DAA6D;IAC7D,SAAS,EAAE,iBAAiB;IAC5B,yGAAyG;IACzG,OAAO,EAAE,QAAQ;CACT,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,aAAa,EAAE,4BAA4B;IAC3C,SAAS,EAAE,uBAAuB;IAClC,OAAO,EAAE,SAAS;CACV,CAAC","sourcesContent":["/**\n * The Helm charts of the cluster-wide controllers every Kubernetes lane installs — Traefik and\n * cert-manager — each PINNED, and each read by both install sites (`k8s-bootstrap`, the generated CI\n * deploy workflow) from here.\n */\n\n/**\n * The Traefik Helm chart, PINNED (#1788 review, D1).\n *\n * Both install sites — `wildo`'s own cluster bootstrap and the generated CI deploy workflow — used to run\n * `helm upgrade --install traefik traefik/traefik` with no `--version`, so every deploy took whatever\n * the chart repository published that day, against a values file written for a chart from March. The\n * chart's schema forbids unknown keys, so once it moved, the rendered values were REJECTED\n * (`additional properties 'dashboard', 'logs' not allowed`, `…'redirections' not allowed`, …) and the\n * lane's Traefik could not install at all — with nothing in this repository noticing, because nothing\n * checked the values against any chart.\n *\n * Moving the chart is now a deliberate edit of this constant, and the chart test renders\n * the values and runs `helm template` against exactly this version (`cluster-controller-charts.test.ts`), so a values file the chart would\n * refuse fails there instead of in a deploy.\n */\nexport const TRAEFIK_CHART = {\n /** The Helm repository the chart is added from. */\n repositoryUrl: 'https://traefik.github.io/charts',\n /** `<repo>/<chart>` as `helm upgrade --install` names it. */\n reference: 'traefik/traefik',\n /** Chart version (app v3.7.13), verified 2026-09-27 with `helm template` against the rendered values. */\n version: '41.6.0',\n} as const;\n\n/**\n * The cert-manager Helm chart, PINNED for the same reason as {@link TRAEFIK_CHART} (#1788 review): an\n * unpinned install takes whatever the repository published that day, and its CRDs (installed with\n * `crds.enabled=true`) move across releases. Verified 2026-09-27 with `helm template`.\n */\nexport const CERT_MANAGER_CHART = {\n repositoryUrl: 'https://charts.jetstack.io',\n reference: 'jetstack/cert-manager',\n version: 'v1.21.2',\n} as const;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"k8s-bootstrap.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"k8s-bootstrap.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-bootstrap.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAatD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AA0a5G;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAwBnG;AAoOD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,wBAAsB,eAAe,CACnC,GAAG,EAAE,gCAAgC,EACrC,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,sBAAsB,EACnC,OAAO,EAAE,mBAAmB,EAC5B,GAAG,EAAE,MAAM,GACV,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAmH/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"k8s-bootstrap.service.js","sourceRoot":"","sources":["../../../../../../../src/services/deployment/k8s/k8s-bootstrap.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,cAAc,EAAkB,MAAM,gDAAgD,CAAC;AAChG,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EAEtB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,wBAAwB,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAEjI,OAAO,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,mEAAmE,CAAC;AACzG,OAAO,EAAE,yBAAyB,EAAE,MAAM,sEAAsE,CAAC;AACjH,OAAO,EAAE,oCAAoC,EAAE,MAAM,0EAA0E,CAAC;AAChI,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kEAAkE,CAAC;AAC3H,OAAO,EAAE,qCAAqC,EAAE,MAAM,gEAA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C,KAAK,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC5C,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC,CAAC;IACnE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,qCAAqC,EAAE,CAAC;AAC1E,CAAC","sourcesContent":["/**\n * K8s Bootstrap Service — 6-phase local K8s deployment via Kind.\n *\n * Phases:\n * 1. Preflight + Generate (manifests, secrets, images)\n * 2. Kind cluster\n * 3. Ingress stack (cert-manager + Traefik)\n * 4. Infra deploy (namespace, storage, internal services)\n * 5. Platform bootstrap (apps-manager INIT mode)\n * 6. Platform + Remote Application\n *\n * Supports --resume (continue from last phase) and --reset (start fresh).\n * Entry point: runK8sBootstrap(env, frameworkPath, credentials, options, log).\n * `options.saasRoot` is required so Kind local storage can resolve from the\n * targeted app runtime home instead of a second ad hoc dot-home.\n */\n\nimport { existsSync, mkdirSync, readFileSync, writeFileSync, rmSync } from 'fs';\nimport { join } from 'path';\nimport chalk from 'chalk';\n\nimport type { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\nimport { BootstrapPhase, BootstrapState } from '~wildo-cli/services/deployment/k8s/k8s.schemas';\nimport {\n AppsManagerMode,\n K8S_LOCAL_DEFAULTS,\n PUBLIC_DOMAIN_DEFAULTS,\n KIND_CLUSTER_DEFAULTS,\n PlatformAdminEnvKeys,\n PlatformWildoServices,\n resolveFrameworkLayout,\n WildoLocationType,\n} from '@wildo-ai/platform-config-lib';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { PLATFORM_SERVICE_CATALOG, getDeployableInfraServicesForK8s } from '~wildo-cli/services/catalog/service-catalog.schemas';\n\nimport { KindService } from '~wildo-cli/services/deployment/k8s/kind.service';\nimport { K8sOperations } from '~wildo-cli/services/deployment/k8s/k8s-operations.service';\nimport { K8sManifestGenerator } from '~wildo-cli/services/deployment/k8s/k8s-manifest-generator.service';\nimport { waitForLocalK8sInfraReady } from '~wildo-cli/services/deployment/k8s/k8s-local-infra-readiness.service';\nimport { pruneLegacyLocalApplicationResources } from '~wildo-cli/services/deployment/k8s/local-k8s-application-pruning.service';\nimport { generateK8sSecrets, K8sResourceCategory } from '~wildo-cli/services/deployment/k8s/k8s-secrets-generator.service';\nimport { shouldDeployPlatformServicesInRuntime } from '~wildo-cli/services/deployment/platform-runtime-policy.service';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { InfrastructureHost, SharedInfrastructureAction } from '~wildo-cli/services/environment/infrastructure-host.service';\nimport {\n AddressPerspective,\n ServiceAddressResolver,\n} from '~wildo-cli/services/catalog/service-address-resolver.service';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { CERT_MANAGER_CHART, TRAEFIK_CHART } from '~wildo-cli/services/deployment/k8s/cluster-controller-charts.constants';\n\n// ============================================================================\n// Constants\n// ============================================================================\n\nconst BOOTSTRAP_STATE_FILE = 'k8s-bootstrap-state.json';\n\nconst PLATFORM_SERVICES_EXCEPT_AM = Object.values(PlatformWildoServices)\n .filter(s => s !== PlatformWildoServices.PLATFORM_INIT && s !== PlatformWildoServices.APPS_MANAGER);\n\nfunction sleep(ms: number): Promise<void> {\n return new Promise(resolve => setTimeout(resolve, ms));\n}\n\nfunction stripAnsi(str: string): string {\n return str.replace(/\\x1B\\[[0-9;]*[mK]/g, '');\n}\n\nfunction getLocalK8sAppsManagerAccessUrl(env: PlatformEnvironmentConfiguration): string {\n const addresses = ServiceAddressResolver.resolve(\n ServiceAddressResolver.fromEnvironment(env, AddressPerspective.HOST_FACING),\n );\n return addresses.platform.appsManager.url;\n}\n\n// ============================================================================\n// State management\n// ============================================================================\n\nfunction stateFilePath(infraPath: string): string {\n const stateDir = join(infraPath, 'state');\n mkdirSync(stateDir, { recursive: true });\n return join(stateDir, BOOTSTRAP_STATE_FILE);\n}\n\nfunction loadBootstrapState(infraPath: string): BootstrapState | null {\n const path = stateFilePath(infraPath);\n if (!existsSync(path)) return null;\n try {\n return JSON.parse(readFileSync(path, 'utf8'));\n } catch {\n return null;\n }\n}\n\nfunction saveBootstrapState(infraPath: string, state: BootstrapState): void {\n writeFileSync(stateFilePath(infraPath), JSON.stringify(state, null, 2), 'utf8');\n}\n\nfunction clearBootstrapState(infraPath: string): void {\n try {\n rmSync(stateFilePath(infraPath), { force: true });\n } catch { /* ignore */ }\n}\n\n// ============================================================================\n// Phase implementations\n// ============================================================================\n\nasync function phasePrepare(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n credentials: PlatformEnvSecretsJson,\n isFrameworkDeveloper: boolean,\n state: BootstrapState,\n log: Logger,\n): Promise<boolean> {\n const isDevMode = env.locationType === WildoLocationType.LOCAL;\n const modeLabel = isDevMode ? 'dev' : 'prod';\n const includePlatformServices = shouldDeployPlatformServicesInRuntime(env, isFrameworkDeveloper);\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n\n log.info(chalk.cyan('\\n Phase 1 — Preflight + Generate\\n'));\n\n log.info(' Generating K8s secrets and configmaps...');\n // Platform + infrastructure Secrets only — this pass knows no application targets, so it emits\n // no application-tier Secret and none of the per-runtime provider Secrets (#369). Stated because\n // a call site with no recorded result is indistinguishable from one nobody examined.\n const k8sSecrets = generateK8sSecrets(env, credentials, { isFrameworkDeveloper });\n\n const secretsOutputDir = join(infraPath, 'secrets');\n const platformSecretsDir = join(secretsOutputDir, 'platform');\n mkdirSync(secretsOutputDir, { recursive: true });\n rmSync(platformSecretsDir, { recursive: true, force: true });\n if (includePlatformServices) {\n mkdirSync(platformSecretsDir, { recursive: true });\n }\n\n // Bootstrap never passes applicationBackends, so only PLATFORM and INFRASTRUCTURE\n // categories appear. If application backends are added, this needs a 3-way categoryDirs\n // map like infra-writer.service.ts uses.\n for (const [name, resource] of Object.entries(k8sSecrets)) {\n const targetDir = resource.category === K8sResourceCategory.PLATFORM ? platformSecretsDir : secretsOutputDir;\n writeFileSync(join(targetDir, `${name}.yaml`), resource.yaml, 'utf8');\n }\n log.info(` Generated ${Object.keys(k8sSecrets).length} secret/configmap files`);\n\n log.info(` Generating K8s manifests (${modeLabel} mode)...`);\n const result = K8sManifestGenerator.renderAllManifests(env, frameworkPath, { isFrameworkDeveloper });\n log.info(` Generated ${result.total} manifest files`);\n\n // No platform image is built here, on any lane (#969). Every rendered platform manifest names the\n // PUBLISHED `docker.io/wildoai/wildo-platform:<framework version>` (`platformImageIsBuiltLocally` is\n // false for Kubernetes), so the kubelet pulls it. Bootstrap used to build the checkout and push it to the\n // LOCAL Kind registry — first for every in-cluster platform (an image no app-creator manifest named, #349),\n // then only for a remote framework developer, whose manifests named the REMOTE registry, which no push\n // reached. Neither build was ever read by a pod.\n\n state.completed.push(BootstrapPhase.PREPARE);\n state.phase = 2;\n saveBootstrapState(infraPath, state);\n return true;\n}\n\nasync function phaseKindCluster(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n localDataRoot: string,\n recreateOnLocalDataMountMismatch: boolean,\n state: BootstrapState,\n log: Logger,\n): Promise<boolean> {\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n log.info(chalk.cyan('\\n Phase 2 — Kind Cluster\\n'));\n\n if (KindService.clusterExists()) {\n const mountedLocalDataRoots = KindService.getMountedLocalDataRoots();\n const localDataMountMatches = KindService.localDataMountMatches(localDataRoot);\n if (!localDataMountMatches) {\n const mountedRootsSummary = mountedLocalDataRoots.length > 0\n ? mountedLocalDataRoots.join(', ')\n : 'unknown';\n if (!recreateOnLocalDataMountMismatch) {\n log.error(\n ` Existing Kind cluster still mounts local data from [${mountedRootsSummary}] instead of '${localDataRoot}'. `\n + 'Re-run with --reset so the cluster can be recreated for the .wildo-saas/local_data cutover.',\n );\n return false;\n }\n\n log.warn(\n ` Existing Kind cluster mounts local data from [${mountedRootsSummary}] instead of '${localDataRoot}'. `\n + 'Recreating the cluster so the Phase 3 local-data cutover is applied cleanly.',\n );\n const deleteResult = KindService.deleteCluster(msg => log.info(` ${msg}`));\n if (!deleteResult.success) {\n log.error(` Failed to recreate cluster: ${deleteResult.error}`);\n return false;\n }\n }\n\n log.info(' Kind cluster already exists');\n const status = KindService.getClusterStatus();\n if (!localDataMountMatches) {\n const recreateResult = KindService.createCluster(\n frameworkPath,\n localDataRoot,\n msg => log.info(` ${msg}`),\n );\n if (!recreateResult.success) {\n log.error(` Failed to create cluster: ${recreateResult.error}`);\n return false;\n }\n } else if (!status.running) {\n log.info(' Starting existing cluster...');\n const startResult = KindService.startCluster(msg => log.info(` ${msg}`));\n if (!startResult.success) {\n log.error(` Failed to start cluster: ${startResult.error}`);\n return false;\n }\n }\n } else {\n const createResult = KindService.createCluster(\n frameworkPath,\n localDataRoot,\n msg => log.info(` ${msg}`),\n );\n if (!createResult.success) {\n log.error(` Failed to create cluster: ${createResult.error}`);\n return false;\n }\n }\n\n log.info(' Waiting for nodes to be ready...');\n const nodesReady = await KindService.waitForNodesReady(120, msg => log.info(` ${msg}`));\n if (!nodesReady) {\n log.error(' Nodes failed to become ready within 120s');\n return false;\n }\n log.info(' All nodes ready');\n\n const publicDomain = env.publicDomain ?? PUBLIC_DOMAIN_DEFAULTS.LOCAL_K8S;\n\n log.info('');\n log.warn(chalk.yellow(' DNS Setup Required'));\n log.info(chalk.dim(` All *.${publicDomain} subdomains must resolve to 127.0.0.1`));\n log.info('');\n log.info(chalk.dim(' Option A — /etc/hosts (manual, add each subdomain):'));\n log.info(` 127.0.0.1 ${publicDomain}`);\n log.info('');\n log.info(chalk.dim(' Option B — dnsmasq (recommended, wildcard):'));\n log.info(` echo \"address=/${publicDomain}/127.0.0.1\" | sudo tee /etc/resolver/${publicDomain}`);\n log.info('');\n log.info(chalk.dim(` apps-manager local K8s access stays on ${getLocalK8sAppsManagerAccessUrl(env)}`));\n log.info('');\n\n state.completed.push(BootstrapPhase.KIND_CLUSTER);\n state.phase = 3;\n saveBootstrapState(infraPath, state);\n return true;\n}\n\nasync function phaseIngressStack(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n state: BootstrapState,\n log: Logger,\n): Promise<boolean> {\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n const frameworkLayout = resolveFrameworkLayout(frameworkPath);\n log.info(chalk.cyan('\\n Phase 3 — Ingress Stack\\n'));\n\n log.info(' Installing cert-manager...');\n try {\n K8sOperations.helm(['repo', 'add', 'jetstack', CERT_MANAGER_CHART.repositoryUrl, '--force-update']);\n K8sOperations.helm(['repo', 'update', 'jetstack']);\n K8sOperations.helm([\n 'upgrade', '--install', 'cert-manager', CERT_MANAGER_CHART.reference,\n '--version', CERT_MANAGER_CHART.version,\n '--namespace', 'cert-manager', '--create-namespace',\n '--set', 'crds.enabled=true',\n '--wait',\n ]);\n log.info(' cert-manager installed');\n } catch (error) {\n log.error(` Failed to install cert-manager: ${ErrorUtils.extractErrorMessage(error)}`);\n return false;\n }\n\n log.info(' Applying local certificate issuers...');\n const issuerPath = join(\n frameworkLayout.k8sTemplatesHome,\n 'ingress',\n 'cert-manager',\n 'local',\n 'selfsigned-issuer.yaml',\n );\n if (existsSync(issuerPath)) {\n const result = K8sOperations.kubectlApply(issuerPath);\n if (!result.success) {\n log.warn(` Warning: Failed to apply issuer: ${result.error}`);\n } else {\n log.info(' Self-signed issuer applied');\n }\n }\n\n const wildcardCertPath = join(\n frameworkLayout.k8sTemplatesHome,\n 'ingress',\n 'cert-manager',\n 'local',\n 'wildcard-certificate.yaml',\n );\n if (existsSync(wildcardCertPath)) {\n const result = K8sOperations.kubectlApply(wildcardCertPath);\n if (!result.success) {\n log.warn(` Warning: Failed to apply wildcard cert: ${result.error}`);\n } else {\n log.info(' Wildcard certificate applied');\n }\n }\n\n log.info(' Installing Traefik ingress controller...');\n try {\n K8sOperations.helm(['repo', 'add', 'traefik', TRAEFIK_CHART.repositoryUrl, '--force-update']);\n K8sOperations.helm(['repo', 'update', 'traefik']);\n\n const localValuesPath = join(\n frameworkLayout.k8sTemplatesHome,\n 'ingress',\n 'traefik',\n 'local',\n 'values.yaml',\n );\n const valuesArgs = existsSync(localValuesPath) ? ['-f', localValuesPath] : [];\n\n K8sOperations.helm([\n 'upgrade', '--install', 'traefik', TRAEFIK_CHART.reference,\n // Pinned: the values file is written for this chart version, whose schema refuses unknown keys.\n '--version', TRAEFIK_CHART.version,\n '--namespace', 'traefik', '--create-namespace',\n ...valuesArgs,\n '--wait',\n ]);\n log.info(' Traefik installed');\n } catch (error) {\n log.error(` Failed to install Traefik: ${ErrorUtils.extractErrorMessage(error)}`);\n return false;\n }\n\n state.completed.push(BootstrapPhase.INGRESS_STACK);\n state.phase = 4;\n saveBootstrapState(infraPath, state);\n return true;\n}\n\nasync function phaseInfraDeploy(\n env: PlatformEnvironmentConfiguration,\n state: BootstrapState,\n log: Logger,\n): Promise<boolean> {\n log.info(chalk.cyan('\\n Phase 4 — Infrastructure Deploy\\n'));\n\n const namespace = env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE;\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n\n log.info(' Ensuring namespace exists...');\n const nsResult = K8sOperations.kubectlCreateNamespace(namespace);\n if (!nsResult.success) {\n log.error(` Failed to create namespace: ${nsResult.error}`);\n return false;\n }\n log.info(` Namespace ${namespace} ready`);\n\n log.info(' Applying secrets to cluster...');\n const secretsDir = join(infraPath, 'secrets');\n if (existsSync(secretsDir)) {\n const rootResult = K8sOperations.kubectlApply(secretsDir, { namespace });\n if (!rootResult.success) {\n log.error(` Failed to apply secrets: ${rootResult.error}`);\n return false;\n }\n\n const platformSecretsDir = join(secretsDir, 'platform');\n if (existsSync(platformSecretsDir)) {\n const platResult = K8sOperations.kubectlApply(platformSecretsDir, { namespace });\n if (!platResult.success) {\n log.error(` Failed to apply platform secrets: ${platResult.error}`);\n return false;\n }\n }\n }\n log.info(' Secrets applied');\n\n const clusterDir = join(infraPath, 'manifests', 'cluster');\n if (existsSync(clusterDir)) {\n log.info(' Applying cluster-wide infrastructure...');\n const clusterResult = K8sOperations.kubectlApply(clusterDir, { namespace });\n if (!clusterResult.success) {\n log.warn(` Warning: Failed to apply cluster infra: ${clusterResult.error}`);\n } else {\n log.info(' Cluster-wide infrastructure applied');\n }\n }\n\n const storageDir = join(infraPath, 'manifests', 'storage');\n if (existsSync(storageDir)) {\n log.info(' Applying static PersistentVolumes...');\n const pvResult = K8sOperations.kubectlApply(storageDir);\n if (!pvResult.success) {\n log.warn(` Warning: Failed to apply PVs: ${pvResult.error}`);\n } else {\n log.info(' Static PVs applied');\n }\n }\n\n const internalDir = join(infraPath, 'manifests', 'internal');\n if (existsSync(internalDir)) {\n // Slice 4 second-pass-3 review fix (MEDIUM-3) — defensively delete the\n // `mongodb-init` Job (when applicable) BEFORE re-applying the `internal/`\n // directory. K8s Jobs are effectively immutable on most `spec.template`\n // fields, so any future template edit (image bump, retry budget, init\n // script tweak) would otherwise wedge `kubectl apply` with `field is\n // immutable` on a previously-completed Job. The helper is idempotent\n // (`--ignore-not-found`) and safe to call on every bring-up; see the\n // long-form rationale on `K8sOperations.kubectlDeleteJob`.\n if (getDeployableInfraServicesForK8s(env).includes('mongodb')) {\n const jobDeleteResult = K8sOperations.kubectlDeleteJob('mongodb-init', namespace);\n if (!jobDeleteResult.success) {\n log.warn(` Warning: failed to clear previous mongodb-init Job before re-apply: ${jobDeleteResult.error}`);\n }\n }\n\n log.info(' Applying internal service manifests...');\n const applyResult = K8sOperations.kubectlApply(internalDir, { namespace });\n if (!applyResult.success) {\n log.error(` Failed to apply internal services: ${applyResult.error}`);\n return false;\n }\n log.info(' Internal services deployed');\n }\n\n // Slice 4 second-pass-3 review fix (MEDIUM-1) — readiness gates\n // extracted to `waitForLocalK8sInfraReady` so the cold-start paths\n // (`dev start`, `local up`, `local reinit`) share the EXACT same\n // contract as bootstrap (deployable list, per-service timeouts,\n // `mongodb-init` Job gate, diagnostic hints).\n const ready = await waitForLocalK8sInfraReady(env, namespace, log);\n if (!ready) {\n return false;\n }\n\n state.completed.push(BootstrapPhase.INFRA_DEPLOY);\n state.phase = 5;\n saveBootstrapState(infraPath, state);\n return true;\n}\n\n/**\n * The environment an apps-manager INIT needs, on the KUBERNETES lane.\n *\n * A named builder rather than an inline object literal, because the same mapping is hand-written\n * once per deployment lane and only one of the two was complete. `env-vars-builder.service.ts` has\n * always written all four identity keys for the compose lane; this lane wrote `ADMIN_EMAIL` and\n * `ADMIN_PASSWORD` and stopped — while `init-mode-startup.apps-manager.service.ts` refuses INIT\n * FAIL-CLOSED on a missing name:\n *\n * ADMIN_FIRST_NAME environment variable is required for INIT mode\n *\n * Nothing else on this lane supplies one. The generated platform Secret carries infrastructure\n * credentials only (`k8s-secrets-generator.service.ts` — no `PlatformAdminEnvKeys` member appears\n * in it), so a key not set HERE does not reach the container at all.\n *\n * Two things follow for whoever adds the next required key. Enumerate by asking *who states the\n * administrator identity*, not by reading the lane in front of you — two lanes for one contract is\n * the shape `.claude/rules/invariant-call-site-enumeration.md` #23 records, and it is why this was\n * invisible for as long as the compose lane was the one anyone ran. And keep the mapping in a\n * function with a pin on it: an inline literal inside a six-phase bootstrap can only be checked by\n * running a cluster, which is exactly why nobody checked it.\n */\nexport function buildAppsManagerInitEnv(credentials: PlatformEnvSecretsJson): Record<string, string> {\n return {\n APPS_MANAGER_MODE: AppsManagerMode.INIT,\n [PlatformAdminEnvKeys.ADMIN_EMAIL]: credentials.admin.email,\n [PlatformAdminEnvKeys.ADMIN_PASSWORD]: credentials.admin.password,\n [PlatformAdminEnvKeys.ADMIN_FIRST_NAME]: credentials.admin.firstName,\n [PlatformAdminEnvKeys.ADMIN_LAST_NAME]: credentials.admin.lastName,\n /*\n * The SECOND administrator, who approves an application-wide access grant (#575). Conditional\n * for the same reason as the compose lane's copy: `approver` is `.optional()` on the secrets\n * schema, so an environment predating it emits nothing and INIT warns rather than refusing.\n *\n * This is the SECOND hand-written copy of the identity mapping — the reason `e33a657e` exists —\n * so anything added to the compose lane's block belongs here in the same change.\n */\n ...(credentials.approver\n ? {\n [PlatformAdminEnvKeys.APPROVER_EMAIL]: credentials.approver.email,\n [PlatformAdminEnvKeys.APPROVER_PASSWORD]: credentials.approver.password,\n [PlatformAdminEnvKeys.APPROVER_FIRST_NAME]: credentials.approver.firstName,\n [PlatformAdminEnvKeys.APPROVER_LAST_NAME]: credentials.approver.lastName,\n }\n : {}),\n };\n}\n\nasync function phasePlatformBootstrap(\n env: PlatformEnvironmentConfiguration,\n credentials: PlatformEnvSecretsJson,\n isFrameworkDeveloper: boolean,\n state: BootstrapState,\n log: Logger,\n): Promise<boolean> {\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n if (!shouldDeployPlatformServicesInRuntime(env, isFrameworkDeveloper)) {\n log.info(chalk.cyan('\\n Phase 5 — Platform Bootstrap\\n'));\n log.info(' Skipping cluster apps-manager bootstrap because platform services run natively for framework developers.');\n state.completed.push(BootstrapPhase.PLATFORM_BOOTSTRAP);\n state.phase = 6;\n saveBootstrapState(infraPath, state);\n return true;\n }\n\n log.info(chalk.cyan('\\n Phase 5 — Platform Bootstrap (INIT Mode)\\n'));\n\n const namespace = env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE;\n const platformDir = join(infraPath, 'manifests', 'platform');\n\n const amCatalog = PLATFORM_SERVICE_CATALOG[PlatformWildoServices.APPS_MANAGER];\n const containerName = amCatalog.containerName;\n\n log.info(' Deploying apps-manager...');\n const deploymentPath = join(platformDir, `${containerName}-deployment.yaml`);\n const servicePath = join(platformDir, `${containerName}-service.yaml`);\n\n if (!existsSync(deploymentPath)) {\n log.error(` apps-manager deployment manifest not found at ${deploymentPath}`);\n return false;\n }\n\n const deployResult = K8sOperations.kubectlApply(deploymentPath, { namespace });\n if (!deployResult.success) {\n log.error(` Failed to deploy apps-manager: ${deployResult.error}`);\n return false;\n }\n if (existsSync(servicePath)) {\n K8sOperations.kubectlApply(servicePath, { namespace });\n }\n log.info(' apps-manager deployed');\n\n // TODO(D8): Replace kubectl set env with ConfigMap regeneration approach.\n log.info(' Setting apps-manager to INIT mode with admin credentials...');\n const initResult = K8sOperations.kubectlSetEnv(containerName, namespace, buildAppsManagerInitEnv(credentials));\n if (!initResult.success) {\n log.error(` Failed to set INIT mode: ${initResult.error}`);\n return false;\n }\n\n log.info(' Restarting apps-manager...');\n K8sOperations.kubectlRolloutRestart(containerName, namespace);\n\n log.info(' Waiting for apps-manager to be ready...');\n const ready = await K8sOperations.waitForDeployment(containerName, namespace, 180);\n if (!ready) {\n log.error(' apps-manager failed to become ready');\n return false;\n }\n log.info(' apps-manager is ready in INIT mode');\n\n log.info(' Waiting for initialization to complete...');\n const startTime = Date.now();\n const timeout = 300000;\n let initSucceeded = false;\n\n while (Date.now() - startTime < timeout) {\n const logs = K8sOperations.kubectlLogs(`app=${containerName}`, namespace, 100);\n const cleanLogs = stripAnsi(logs);\n\n if (cleanLogs.includes('INIT MODE COMPLETED SUCCESSFULLY')) {\n log.info(' Initialization completed successfully');\n initSucceeded = true;\n break;\n }\n\n if (cleanLogs.includes('INIT MODE COMPLETED WITH FAILURES') || cleanLogs.includes('INIT MODE FAILED')) {\n log.error(' Initialization failed. Check logs:');\n log.info(chalk.dim(` kubectl logs -n ${namespace} -l app=${containerName} -f`));\n return false;\n }\n\n if (cleanLogs.includes('FATAL [')) {\n log.error(' Fatal error detected in apps-manager logs');\n return false;\n }\n\n await sleep(5000);\n }\n\n if (!initSucceeded) {\n log.error(' Initialization timed out after 5 minutes');\n log.info(chalk.dim(` Check logs: kubectl logs -n ${namespace} -l app=${containerName} --tail=100`));\n return false;\n }\n\n log.info(' Switching apps-manager to NORMAL mode...');\n const normalResult = K8sOperations.kubectlSetEnv(containerName, namespace, {\n APPS_MANAGER_MODE: AppsManagerMode.NORMAL,\n ADMIN_EMAIL: null,\n ADMIN_PASSWORD: null,\n });\n if (!normalResult.success) {\n log.error(` Failed to set NORMAL mode: ${normalResult.error}`);\n return false;\n }\n\n K8sOperations.kubectlRolloutRestart(containerName, namespace);\n\n const normalReady = await K8sOperations.waitForDeployment(containerName, namespace, 120);\n if (!normalReady) {\n log.error(' apps-manager failed to become ready in NORMAL mode');\n return false;\n }\n log.info(' apps-manager running in NORMAL mode');\n\n state.completed.push(BootstrapPhase.PLATFORM_BOOTSTRAP);\n state.phase = 6;\n saveBootstrapState(infraPath, state);\n return true;\n}\n\nasync function phasePlatformServices(\n env: PlatformEnvironmentConfiguration,\n isFrameworkDeveloper: boolean,\n state: BootstrapState,\n log: Logger,\n): Promise<boolean> {\n log.info(chalk.cyan('\\n Phase 6 — Platform Services + Application\\n'));\n\n const namespace = env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE;\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n const platformDir = join(infraPath, 'manifests', 'platform');\n const applicationsDir = join(infraPath, 'manifests', 'applications');\n const includePlatformServices = shouldDeployPlatformServicesInRuntime(env, isFrameworkDeveloper);\n\n if (env.locationType === WildoLocationType.LOCAL) {\n const cleanupResult = pruneLegacyLocalApplicationResources(namespace);\n if (!cleanupResult.success) {\n log.error(cleanupResult.error ?? 'Failed to remove retired local application resources.');\n return false;\n }\n }\n\n if (includePlatformServices) {\n for (const service of PLATFORM_SERVICES_EXCEPT_AM) {\n const catalog = PLATFORM_SERVICE_CATALOG[service as Exclude<PlatformWildoServices, PlatformWildoServices.PLATFORM_INIT>];\n if (!catalog) continue;\n\n const containerName = catalog.containerName;\n log.info(` Deploying ${containerName}...`);\n\n const deploymentPath = join(platformDir, `${containerName}-deployment.yaml`);\n const servicePath = join(platformDir, `${containerName}-service.yaml`);\n\n if (!existsSync(deploymentPath)) {\n log.warn(` Skipping ${containerName} (no deployment manifest)`);\n continue;\n }\n\n const deployResult = K8sOperations.kubectlApply(deploymentPath, { namespace });\n if (!deployResult.success) {\n log.error(` Failed to deploy ${containerName}: ${deployResult.error}`);\n return false;\n }\n\n if (existsSync(servicePath)) {\n K8sOperations.kubectlApply(servicePath, { namespace });\n }\n\n log.info(` ${containerName} deployed`);\n }\n }\n\n if (env.locationType !== WildoLocationType.LOCAL && existsSync(applicationsDir)) {\n log.info(' Deploying wildo-ai-application...');\n const appResult = K8sOperations.kubectlApply(applicationsDir, { namespace });\n if (!appResult.success) {\n log.warn(` Warning: Failed to deploy application: ${appResult.error}`);\n } else {\n log.info(' wildo-ai-application deployed');\n }\n }\n\n log.info(' Waiting for services to be ready...');\n const failedServices: string[] = [];\n\n if (includePlatformServices) {\n for (const service of PLATFORM_SERVICES_EXCEPT_AM) {\n const catalog = PLATFORM_SERVICE_CATALOG[service as Exclude<PlatformWildoServices, PlatformWildoServices.PLATFORM_INIT>];\n if (!catalog) continue;\n\n const containerName = catalog.containerName;\n const deploymentPath = join(platformDir, `${containerName}-deployment.yaml`);\n if (!existsSync(deploymentPath)) {\n continue;\n }\n\n const ready = await K8sOperations.waitForDeployment(containerName, namespace, 120);\n if (!ready) {\n log.error(` ${containerName} failed to become ready`);\n failedServices.push(containerName);\n } else {\n log.info(` ${containerName} is ready`);\n }\n }\n }\n\n if (failedServices.length > 0) {\n log.error('\\n Some platform services failed to start:');\n for (const s of failedServices) log.error(` - ${s}`);\n log.info(chalk.dim(`\\n Check: kubectl get pods -n ${namespace}`));\n return false;\n }\n\n state.completed.push(BootstrapPhase.PLATFORM_SERVICES);\n saveBootstrapState(infraPath, state);\n return true;\n}\n\n// ============================================================================\n// Public entry point\n// ============================================================================\n\nexport interface K8sBootstrapOptions {\n saasRoot: string;\n resume?: boolean;\n reset?: boolean;\n isFrameworkDeveloper?: boolean;\n}\n\nexport async function runK8sBootstrap(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n credentials: PlatformEnvSecretsJson,\n options: K8sBootstrapOptions,\n log: Logger,\n): Promise<{ success: boolean; error?: string }> {\n // The kind cluster, its namespace and its infra workloads belong to the environment's infrastructure\n // owner; a hosted application's bootstrap would delete and recreate the host's cluster.\n const host = InfrastructureHost.resolve(env);\n if (host !== null) {\n try {\n InfrastructureHost.assertOwnsSharedInfrastructure(env, SharedInfrastructureAction.BOOTSTRAP_KUBERNETES);\n } catch (error) {\n const message = ErrorUtils.extractErrorMessage(error);\n log.error(` ${message}`);\n return { success: false, error: message };\n }\n }\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n const saasRoot = options.saasRoot?.trim();\n if (!saasRoot) {\n throw new Error('K8s bootstrap requires a targeted app root to resolve local runtime storage.');\n }\n const localDataRoot = EnvironmentPaths.resolveScopedLocalDataDir(saasRoot);\n const isDevMode = env.locationType === WildoLocationType.LOCAL;\n\n const namespace = env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE;\n const publicDomain = env.publicDomain ?? PUBLIC_DOMAIN_DEFAULTS.LOCAL_K8S;\n\n log.info('');\n log.info(chalk.bold(' K8s Bootstrap'));\n log.info(chalk.dim(` Environment: ${env.name}`));\n log.info(chalk.dim(` Namespace: ${namespace}`));\n log.info(chalk.dim(` Mode: ${isDevMode ? 'dev' : 'prod'}`));\n // Slice 4 second-pass-3 review fix (LOW-2 / MEDIUM-7) — surface where\n // the on-host bind-mount tree lives. The Kind cluster mounts this path\n // into the node at `/mnt/local-data/`, so this is also the path\n // operators back up / `.gitignore` / wipe with `wildo local reset`.\n log.info(chalk.dim(` Local data: ${localDataRoot}`));\n log.info('');\n\n if (options.reset) {\n log.info(' Resetting bootstrap state...');\n clearBootstrapState(infraPath);\n }\n\n let state = loadBootstrapState(infraPath);\n\n if (state && !options.reset && !options.resume) {\n log.warn(chalk.yellow(' Previous bootstrap detected:'));\n log.info(chalk.dim(` Started: ${state.startedAt}`));\n log.info(chalk.dim(` Phase: ${state.phase}`));\n log.info(chalk.dim(` Completed: ${state.completed.join(', ') || 'none'}`));\n log.info('');\n log.info(' Use --resume to continue or --reset to start fresh.');\n return { success: true };\n }\n\n if (!state || options.reset) {\n state = {\n phase: 1,\n completed: [],\n startedAt: new Date().toISOString(),\n envName: env.name,\n };\n saveBootstrapState(infraPath, state);\n }\n\n let success = true;\n const isFrameworkDeveloper = options.isFrameworkDeveloper ?? false;\n\n if (state.phase <= 1 && success) {\n success = await phasePrepare(env, frameworkPath, credentials, isFrameworkDeveloper, state, log);\n }\n\n if (state.phase <= 2 && success) {\n success = await phaseKindCluster(\n env,\n frameworkPath,\n localDataRoot,\n options.reset === true,\n state,\n log,\n );\n }\n\n if (state.phase <= 3 && success) {\n success = await phaseIngressStack(env, frameworkPath, state, log);\n }\n\n if (state.phase <= 4 && success) {\n success = await phaseInfraDeploy(env, state, log);\n }\n\n if (state.phase <= 5 && success) {\n success = await phasePlatformBootstrap(env, credentials, isFrameworkDeveloper, state, log);\n }\n\n if (state.phase <= 6 && success) {\n success = await phasePlatformServices(env, isFrameworkDeveloper, state, log);\n }\n\n log.info('');\n if (success) {\n clearBootstrapState(infraPath);\n log.success(chalk.green(' Bootstrap Complete!'));\n log.info('');\n log.info(' Platform is now running.');\n log.info(chalk.dim(` Verify: kubectl get pods -n ${namespace}`));\n log.info(chalk.dim(` Access: ${getLocalK8sAppsManagerAccessUrl(env)}`));\n log.info(chalk.dim(` Logs: kubectl logs -n ${namespace} -l app=platform-apps-manager -f`));\n log.info('');\n return { success: true };\n }\n\n state.error = 'Bootstrap failed';\n saveBootstrapState(infraPath, state);\n log.error(chalk.red(' Bootstrap failed!'));\n log.info(chalk.dim(' Fix the error above and run with --resume'));\n return { success: false, error: 'Bootstrap failed — see output above' };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"k8s-bootstrap.service.js","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-bootstrap.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,cAA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,IAAI,CAAC,EAAE,CAAC,CAAC;QACb,GAAG,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;QACvC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,mCAAmC,SAAS,EAAE,CAAC,CAAC,CAAC;QACpE,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,eAAe,+BAA+B,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QAC3E,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,+BAA+B,SAAS,kCAAkC,CAAC,CAAC,CAAC;QAChG,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACb,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,KAAK,GAAG,kBAAkB,CAAC;IACjC,kBAAkB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IACrC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC5C,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC,CAAC;IACnE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,qCAAqC,EAAE,CAAC;AAC1E,CAAC","sourcesContent":["/**\n * K8s Bootstrap Service — 6-phase local K8s deployment via Kind.\n *\n * Phases:\n * 1. Preflight + Generate (manifests, secrets, images)\n * 2. Kind cluster\n * 3. Ingress stack (cert-manager + Traefik)\n * 4. Infra deploy (namespace, storage, internal services)\n * 5. Platform bootstrap (apps-manager INIT mode)\n * 6. Platform + Remote Application\n *\n * Supports --resume (continue from last phase) and --reset (start fresh).\n * Entry point: runK8sBootstrap(env, frameworkPath, credentials, options, log).\n * `options.saasRoot` is required so Kind local storage can resolve from the\n * targeted app runtime home instead of a second ad hoc dot-home.\n */\n\nimport { existsSync, mkdirSync, readFileSync, writeFileSync, rmSync } from 'fs';\nimport { join } from 'path';\nimport chalk from 'chalk';\n\nimport type { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\nimport { BootstrapPhase, BootstrapState } from '~wildo-cli/services/deployment/k8s/k8s.schemas';\nimport {\n AppsManagerMode,\n K8S_LOCAL_DEFAULTS,\n PUBLIC_DOMAIN_DEFAULTS,\n KIND_CLUSTER_DEFAULTS,\n PlatformAdminEnvKeys,\n PlatformWildoServices,\n resolveFrameworkLayout,\n WildoLocationType,\n} from '@wildo-ai/platform-config-lib';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { PLATFORM_SERVICE_CATALOG, getDeployableInfraServicesForK8s } from '~wildo-cli/services/catalog/service-catalog.schemas';\n\nimport { KindService } from '~wildo-cli/services/deployment/k8s/kind.service';\nimport { K8sOperations } from '~wildo-cli/services/deployment/k8s/k8s-operations.service';\nimport { K8sManifestGenerator } from '~wildo-cli/services/deployment/k8s/k8s-manifest-generator.service';\nimport { waitForLocalK8sInfraReady } from '~wildo-cli/services/deployment/k8s/k8s-local-infra-readiness.service';\nimport { pruneLegacyLocalApplicationResources } from '~wildo-cli/services/deployment/k8s/local-k8s-application-pruning.service';\nimport { generateK8sSecrets, K8sResourceCategory } from '~wildo-cli/services/deployment/k8s/k8s-secrets-generator.service';\nimport { shouldDeployPlatformServicesInRuntime } from '~wildo-cli/services/deployment/platform-runtime-policy.service';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { InfrastructureHost, SharedInfrastructureAction } from '~wildo-cli/services/environment/infrastructure-host.service';\nimport {\n AddressPerspective,\n ServiceAddressResolver,\n} from '~wildo-cli/services/catalog/service-address-resolver.service';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { CERT_MANAGER_CHART, TRAEFIK_CHART } from '~wildo-cli/services/deployment/k8s/cluster-controller-charts.constants';\n\n// ============================================================================\n// Constants\n// ============================================================================\n\nconst BOOTSTRAP_STATE_FILE = 'k8s-bootstrap-state.json';\n\nconst PLATFORM_SERVICES_EXCEPT_AM = Object.values(PlatformWildoServices)\n .filter(s => s !== PlatformWildoServices.PLATFORM_INIT && s !== PlatformWildoServices.APPS_MANAGER);\n\nfunction sleep(ms: number): Promise<void> {\n return new Promise(resolve => setTimeout(resolve, ms));\n}\n\nfunction stripAnsi(str: string): string {\n return str.replace(/\\x1B\\[[0-9;]*[mK]/g, '');\n}\n\nfunction getLocalK8sAppsManagerAccessUrl(env: PlatformEnvironmentConfiguration): string {\n const addresses = ServiceAddressResolver.resolve(\n ServiceAddressResolver.fromEnvironment(env, AddressPerspective.HOST_FACING),\n );\n return addresses.platform.appsManager.url;\n}\n\n// ============================================================================\n// State management\n// ============================================================================\n\nfunction stateFilePath(infraPath: string): string {\n const stateDir = join(infraPath, 'state');\n mkdirSync(stateDir, { recursive: true });\n return join(stateDir, BOOTSTRAP_STATE_FILE);\n}\n\nfunction loadBootstrapState(infraPath: string): BootstrapState | null {\n const path = stateFilePath(infraPath);\n if (!existsSync(path)) return null;\n try {\n return JSON.parse(readFileSync(path, 'utf8'));\n } catch {\n return null;\n }\n}\n\nfunction saveBootstrapState(infraPath: string, state: BootstrapState): void {\n writeFileSync(stateFilePath(infraPath), JSON.stringify(state, null, 2), 'utf8');\n}\n\nfunction clearBootstrapState(infraPath: string): void {\n try {\n rmSync(stateFilePath(infraPath), { force: true });\n } catch { /* ignore */ }\n}\n\n// ============================================================================\n// Phase implementations\n// ============================================================================\n\nasync function phasePrepare(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n credentials: PlatformEnvSecretsJson,\n isFrameworkDeveloper: boolean,\n state: BootstrapState,\n log: Logger,\n): Promise<boolean> {\n const isDevMode = env.locationType === WildoLocationType.LOCAL;\n const modeLabel = isDevMode ? 'dev' : 'prod';\n const includePlatformServices = shouldDeployPlatformServicesInRuntime(env, isFrameworkDeveloper);\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n\n log.info(chalk.cyan('\\n Phase 1 — Preflight + Generate\\n'));\n\n log.info(' Generating K8s secrets and configmaps...');\n // Platform + infrastructure Secrets only — this pass knows no application targets, so it emits\n // no application-tier Secret and none of the per-runtime provider Secrets (#369). Stated because\n // a call site with no recorded result is indistinguishable from one nobody examined.\n const k8sSecrets = generateK8sSecrets(env, credentials, { isFrameworkDeveloper });\n\n const secretsOutputDir = join(infraPath, 'secrets');\n const platformSecretsDir = join(secretsOutputDir, 'platform');\n mkdirSync(secretsOutputDir, { recursive: true });\n rmSync(platformSecretsDir, { recursive: true, force: true });\n if (includePlatformServices) {\n mkdirSync(platformSecretsDir, { recursive: true });\n }\n\n // Bootstrap never passes applicationBackends, so only PLATFORM and INFRASTRUCTURE\n // categories appear. If application backends are added, this needs a 3-way categoryDirs\n // map like infra-writer.service.ts uses.\n for (const [name, resource] of Object.entries(k8sSecrets)) {\n const targetDir = resource.category === K8sResourceCategory.PLATFORM ? platformSecretsDir : secretsOutputDir;\n writeFileSync(join(targetDir, `${name}.yaml`), resource.yaml, 'utf8');\n }\n log.info(` Generated ${Object.keys(k8sSecrets).length} secret/configmap files`);\n\n log.info(` Generating K8s manifests (${modeLabel} mode)...`);\n const result = K8sManifestGenerator.renderAllManifests(env, frameworkPath, { isFrameworkDeveloper });\n log.info(` Generated ${result.total} manifest files`);\n\n // No platform image is built here, on any lane (#969). Every rendered platform manifest names the\n // PUBLISHED `docker.io/wildoai/wildo-platform:<framework version>` (`platformImageIsBuiltLocally` is\n // false for Kubernetes), so the kubelet pulls it. Bootstrap used to build the checkout and push it to the\n // LOCAL Kind registry — first for every in-cluster platform (an image no app-creator manifest named, #349),\n // then only for a remote framework developer, whose manifests named the REMOTE registry, which no push\n // reached. Neither build was ever read by a pod.\n\n state.completed.push(BootstrapPhase.PREPARE);\n state.phase = 2;\n saveBootstrapState(infraPath, state);\n return true;\n}\n\nasync function phaseKindCluster(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n localDataRoot: string,\n recreateOnLocalDataMountMismatch: boolean,\n state: BootstrapState,\n log: Logger,\n): Promise<boolean> {\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n log.info(chalk.cyan('\\n Phase 2 — Kind Cluster\\n'));\n\n if (KindService.clusterExists()) {\n const mountedLocalDataRoots = KindService.getMountedLocalDataRoots();\n const localDataMountMatches = KindService.localDataMountMatches(localDataRoot);\n if (!localDataMountMatches) {\n const mountedRootsSummary = mountedLocalDataRoots.length > 0\n ? mountedLocalDataRoots.join(', ')\n : 'unknown';\n if (!recreateOnLocalDataMountMismatch) {\n log.error(\n ` Existing Kind cluster still mounts local data from [${mountedRootsSummary}] instead of '${localDataRoot}'. `\n + 'Re-run with --reset so the cluster can be recreated for the .wildo-saas/local_data cutover.',\n );\n return false;\n }\n\n log.warn(\n ` Existing Kind cluster mounts local data from [${mountedRootsSummary}] instead of '${localDataRoot}'. `\n + 'Recreating the cluster so the Phase 3 local-data cutover is applied cleanly.',\n );\n const deleteResult = KindService.deleteCluster(msg => log.info(` ${msg}`));\n if (!deleteResult.success) {\n log.error(` Failed to recreate cluster: ${deleteResult.error}`);\n return false;\n }\n }\n\n log.info(' Kind cluster already exists');\n const status = KindService.getClusterStatus();\n if (!localDataMountMatches) {\n const recreateResult = KindService.createCluster(\n frameworkPath,\n localDataRoot,\n msg => log.info(` ${msg}`),\n );\n if (!recreateResult.success) {\n log.error(` Failed to create cluster: ${recreateResult.error}`);\n return false;\n }\n } else if (!status.running) {\n log.info(' Starting existing cluster...');\n const startResult = KindService.startCluster(msg => log.info(` ${msg}`));\n if (!startResult.success) {\n log.error(` Failed to start cluster: ${startResult.error}`);\n return false;\n }\n }\n } else {\n const createResult = KindService.createCluster(\n frameworkPath,\n localDataRoot,\n msg => log.info(` ${msg}`),\n );\n if (!createResult.success) {\n log.error(` Failed to create cluster: ${createResult.error}`);\n return false;\n }\n }\n\n log.info(' Waiting for nodes to be ready...');\n const nodesReady = await KindService.waitForNodesReady(120, msg => log.info(` ${msg}`));\n if (!nodesReady) {\n log.error(' Nodes failed to become ready within 120s');\n return false;\n }\n log.info(' All nodes ready');\n\n const publicDomain = env.publicDomain ?? PUBLIC_DOMAIN_DEFAULTS.LOCAL_K8S;\n\n log.info('');\n log.warn(chalk.yellow(' DNS Setup Required'));\n log.info(chalk.dim(` All *.${publicDomain} subdomains must resolve to 127.0.0.1`));\n log.info('');\n log.info(chalk.dim(' Option A — /etc/hosts (manual, add each subdomain):'));\n log.info(` 127.0.0.1 ${publicDomain}`);\n log.info('');\n log.info(chalk.dim(' Option B — dnsmasq (recommended, wildcard):'));\n log.info(` echo \"address=/${publicDomain}/127.0.0.1\" | sudo tee /etc/resolver/${publicDomain}`);\n log.info('');\n log.info(chalk.dim(` apps-manager local K8s access stays on ${getLocalK8sAppsManagerAccessUrl(env)}`));\n log.info('');\n\n state.completed.push(BootstrapPhase.KIND_CLUSTER);\n state.phase = 3;\n saveBootstrapState(infraPath, state);\n return true;\n}\n\nasync function phaseIngressStack(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n state: BootstrapState,\n log: Logger,\n): Promise<boolean> {\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n const frameworkLayout = resolveFrameworkLayout(frameworkPath);\n log.info(chalk.cyan('\\n Phase 3 — Ingress Stack\\n'));\n\n log.info(' Installing cert-manager...');\n try {\n K8sOperations.helm(['repo', 'add', 'jetstack', CERT_MANAGER_CHART.repositoryUrl, '--force-update']);\n K8sOperations.helm(['repo', 'update', 'jetstack']);\n K8sOperations.helm([\n 'upgrade', '--install', 'cert-manager', CERT_MANAGER_CHART.reference,\n '--version', CERT_MANAGER_CHART.version,\n '--namespace', 'cert-manager', '--create-namespace',\n '--set', 'crds.enabled=true',\n '--wait',\n ]);\n log.info(' cert-manager installed');\n } catch (error) {\n log.error(` Failed to install cert-manager: ${ErrorUtils.extractErrorMessage(error)}`);\n return false;\n }\n\n log.info(' Applying local certificate issuers...');\n const issuerPath = join(\n frameworkLayout.k8sTemplatesHome,\n 'ingress',\n 'cert-manager',\n 'local',\n 'selfsigned-issuer.yaml',\n );\n if (existsSync(issuerPath)) {\n const result = K8sOperations.kubectlApply(issuerPath);\n if (!result.success) {\n log.warn(` Warning: Failed to apply issuer: ${result.error}`);\n } else {\n log.info(' Self-signed issuer applied');\n }\n }\n\n const wildcardCertPath = join(\n frameworkLayout.k8sTemplatesHome,\n 'ingress',\n 'cert-manager',\n 'local',\n 'wildcard-certificate.yaml',\n );\n if (existsSync(wildcardCertPath)) {\n const result = K8sOperations.kubectlApply(wildcardCertPath);\n if (!result.success) {\n log.warn(` Warning: Failed to apply wildcard cert: ${result.error}`);\n } else {\n log.info(' Wildcard certificate applied');\n }\n }\n\n log.info(' Installing Traefik ingress controller...');\n try {\n K8sOperations.helm(['repo', 'add', 'traefik', TRAEFIK_CHART.repositoryUrl, '--force-update']);\n K8sOperations.helm(['repo', 'update', 'traefik']);\n\n const localValuesPath = join(\n frameworkLayout.k8sTemplatesHome,\n 'ingress',\n 'traefik',\n 'local',\n 'values.yaml',\n );\n const valuesArgs = existsSync(localValuesPath) ? ['-f', localValuesPath] : [];\n\n K8sOperations.helm([\n 'upgrade', '--install', 'traefik', TRAEFIK_CHART.reference,\n // Pinned: the values file is written for this chart version, whose schema refuses unknown keys.\n '--version', TRAEFIK_CHART.version,\n '--namespace', 'traefik', '--create-namespace',\n ...valuesArgs,\n '--wait',\n ]);\n log.info(' Traefik installed');\n } catch (error) {\n log.error(` Failed to install Traefik: ${ErrorUtils.extractErrorMessage(error)}`);\n return false;\n }\n\n state.completed.push(BootstrapPhase.INGRESS_STACK);\n state.phase = 4;\n saveBootstrapState(infraPath, state);\n return true;\n}\n\nasync function phaseInfraDeploy(\n env: PlatformEnvironmentConfiguration,\n state: BootstrapState,\n log: Logger,\n): Promise<boolean> {\n log.info(chalk.cyan('\\n Phase 4 — Infrastructure Deploy\\n'));\n\n const namespace = env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE;\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n\n log.info(' Ensuring namespace exists...');\n const nsResult = K8sOperations.kubectlCreateNamespace(namespace);\n if (!nsResult.success) {\n log.error(` Failed to create namespace: ${nsResult.error}`);\n return false;\n }\n log.info(` Namespace ${namespace} ready`);\n\n log.info(' Applying secrets to cluster...');\n const secretsDir = join(infraPath, 'secrets');\n if (existsSync(secretsDir)) {\n const rootResult = K8sOperations.kubectlApply(secretsDir, { namespace });\n if (!rootResult.success) {\n log.error(` Failed to apply secrets: ${rootResult.error}`);\n return false;\n }\n\n const platformSecretsDir = join(secretsDir, 'platform');\n if (existsSync(platformSecretsDir)) {\n const platResult = K8sOperations.kubectlApply(platformSecretsDir, { namespace });\n if (!platResult.success) {\n log.error(` Failed to apply platform secrets: ${platResult.error}`);\n return false;\n }\n }\n }\n log.info(' Secrets applied');\n\n const clusterDir = join(infraPath, 'manifests', 'cluster');\n if (existsSync(clusterDir)) {\n log.info(' Applying cluster-wide infrastructure...');\n const clusterResult = K8sOperations.kubectlApply(clusterDir, { namespace });\n if (!clusterResult.success) {\n log.warn(` Warning: Failed to apply cluster infra: ${clusterResult.error}`);\n } else {\n log.info(' Cluster-wide infrastructure applied');\n }\n }\n\n const storageDir = join(infraPath, 'manifests', 'storage');\n if (existsSync(storageDir)) {\n log.info(' Applying static PersistentVolumes...');\n const pvResult = K8sOperations.kubectlApply(storageDir);\n if (!pvResult.success) {\n log.warn(` Warning: Failed to apply PVs: ${pvResult.error}`);\n } else {\n log.info(' Static PVs applied');\n }\n }\n\n const internalDir = join(infraPath, 'manifests', 'internal');\n if (existsSync(internalDir)) {\n // Slice 4 second-pass-3 review fix (MEDIUM-3) — defensively delete the\n // `mongodb-init` Job (when applicable) BEFORE re-applying the `internal/`\n // directory. K8s Jobs are effectively immutable on most `spec.template`\n // fields, so any future template edit (image bump, retry budget, init\n // script tweak) would otherwise wedge `kubectl apply` with `field is\n // immutable` on a previously-completed Job. The helper is idempotent\n // (`--ignore-not-found`) and safe to call on every bring-up; see the\n // long-form rationale on `K8sOperations.kubectlDeleteJob`.\n if (getDeployableInfraServicesForK8s(env).includes('mongodb')) {\n const jobDeleteResult = K8sOperations.kubectlDeleteJob('mongodb-init', namespace);\n if (!jobDeleteResult.success) {\n log.warn(` Warning: failed to clear previous mongodb-init Job before re-apply: ${jobDeleteResult.error}`);\n }\n }\n\n log.info(' Applying internal service manifests...');\n const applyResult = K8sOperations.kubectlApply(internalDir, { namespace });\n if (!applyResult.success) {\n log.error(` Failed to apply internal services: ${applyResult.error}`);\n return false;\n }\n log.info(' Internal services deployed');\n }\n\n // Slice 4 second-pass-3 review fix (MEDIUM-1) — readiness gates\n // extracted to `waitForLocalK8sInfraReady` so the cold-start paths\n // (`dev start`, `local up`, `local reinit`) share the EXACT same\n // contract as bootstrap (deployable list, per-service timeouts,\n // `mongodb-init` Job gate, diagnostic hints).\n const ready = await waitForLocalK8sInfraReady(env, namespace, log);\n if (!ready) {\n return false;\n }\n\n state.completed.push(BootstrapPhase.INFRA_DEPLOY);\n state.phase = 5;\n saveBootstrapState(infraPath, state);\n return true;\n}\n\n/**\n * The environment an apps-manager INIT needs, on the KUBERNETES lane.\n *\n * A named builder rather than an inline object literal, because the same mapping is hand-written\n * once per deployment lane and only one of the two was complete. `env-vars-builder.service.ts` has\n * always written all four identity keys for the compose lane; this lane wrote `ADMIN_EMAIL` and\n * `ADMIN_PASSWORD` and stopped — while `init-mode-startup.apps-manager.service.ts` refuses INIT\n * FAIL-CLOSED on a missing name:\n *\n * ADMIN_FIRST_NAME environment variable is required for INIT mode\n *\n * Nothing else on this lane supplies one. The generated platform Secret carries infrastructure\n * credentials only (`k8s-secrets-generator.service.ts` — no `PlatformAdminEnvKeys` member appears\n * in it), so a key not set HERE does not reach the container at all.\n *\n * Two things follow for whoever adds the next required key. Enumerate by asking *who states the\n * administrator identity*, not by reading the lane in front of you — two lanes for one contract is\n * the shape `.claude/rules/invariant-call-site-enumeration.md` #23 records, and it is why this was\n * invisible for as long as the compose lane was the one anyone ran. And keep the mapping in a\n * function with a pin on it: an inline literal inside a six-phase bootstrap can only be checked by\n * running a cluster, which is exactly why nobody checked it.\n */\nexport function buildAppsManagerInitEnv(credentials: PlatformEnvSecretsJson): Record<string, string> {\n return {\n APPS_MANAGER_MODE: AppsManagerMode.INIT,\n [PlatformAdminEnvKeys.ADMIN_EMAIL]: credentials.admin.email,\n [PlatformAdminEnvKeys.ADMIN_PASSWORD]: credentials.admin.password,\n [PlatformAdminEnvKeys.ADMIN_FIRST_NAME]: credentials.admin.firstName,\n [PlatformAdminEnvKeys.ADMIN_LAST_NAME]: credentials.admin.lastName,\n /*\n * The SECOND administrator, who approves an application-wide access grant (#575). Conditional\n * for the same reason as the compose lane's copy: `approver` is `.optional()` on the secrets\n * schema, so an environment predating it emits nothing and INIT warns rather than refusing.\n *\n * This is the SECOND hand-written copy of the identity mapping — the reason `e33a657e` exists —\n * so anything added to the compose lane's block belongs here in the same change.\n */\n ...(credentials.approver\n ? {\n [PlatformAdminEnvKeys.APPROVER_EMAIL]: credentials.approver.email,\n [PlatformAdminEnvKeys.APPROVER_PASSWORD]: credentials.approver.password,\n [PlatformAdminEnvKeys.APPROVER_FIRST_NAME]: credentials.approver.firstName,\n [PlatformAdminEnvKeys.APPROVER_LAST_NAME]: credentials.approver.lastName,\n }\n : {}),\n };\n}\n\nasync function phasePlatformBootstrap(\n env: PlatformEnvironmentConfiguration,\n credentials: PlatformEnvSecretsJson,\n isFrameworkDeveloper: boolean,\n state: BootstrapState,\n log: Logger,\n): Promise<boolean> {\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n if (!shouldDeployPlatformServicesInRuntime(env, isFrameworkDeveloper)) {\n log.info(chalk.cyan('\\n Phase 5 — Platform Bootstrap\\n'));\n log.info(' Skipping cluster apps-manager bootstrap because platform services run natively for framework developers.');\n state.completed.push(BootstrapPhase.PLATFORM_BOOTSTRAP);\n state.phase = 6;\n saveBootstrapState(infraPath, state);\n return true;\n }\n\n log.info(chalk.cyan('\\n Phase 5 — Platform Bootstrap (INIT Mode)\\n'));\n\n const namespace = env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE;\n const platformDir = join(infraPath, 'manifests', 'platform');\n\n const amCatalog = PLATFORM_SERVICE_CATALOG[PlatformWildoServices.APPS_MANAGER];\n const containerName = amCatalog.containerName;\n\n log.info(' Deploying apps-manager...');\n const deploymentPath = join(platformDir, `${containerName}-deployment.yaml`);\n const servicePath = join(platformDir, `${containerName}-service.yaml`);\n\n if (!existsSync(deploymentPath)) {\n log.error(` apps-manager deployment manifest not found at ${deploymentPath}`);\n return false;\n }\n\n const deployResult = K8sOperations.kubectlApply(deploymentPath, { namespace });\n if (!deployResult.success) {\n log.error(` Failed to deploy apps-manager: ${deployResult.error}`);\n return false;\n }\n if (existsSync(servicePath)) {\n K8sOperations.kubectlApply(servicePath, { namespace });\n }\n log.info(' apps-manager deployed');\n\n // TODO(D8): Replace kubectl set env with ConfigMap regeneration approach.\n log.info(' Setting apps-manager to INIT mode with admin credentials...');\n const initResult = K8sOperations.kubectlSetEnv(containerName, namespace, buildAppsManagerInitEnv(credentials));\n if (!initResult.success) {\n log.error(` Failed to set INIT mode: ${initResult.error}`);\n return false;\n }\n\n log.info(' Restarting apps-manager...');\n K8sOperations.kubectlRolloutRestart(containerName, namespace);\n\n log.info(' Waiting for apps-manager to be ready...');\n const ready = await K8sOperations.waitForDeployment(containerName, namespace, 180);\n if (!ready) {\n log.error(' apps-manager failed to become ready');\n return false;\n }\n log.info(' apps-manager is ready in INIT mode');\n\n log.info(' Waiting for initialization to complete...');\n const startTime = Date.now();\n const timeout = 300000;\n let initSucceeded = false;\n\n while (Date.now() - startTime < timeout) {\n const logs = K8sOperations.kubectlLogs(`app=${containerName}`, namespace, 100);\n const cleanLogs = stripAnsi(logs);\n\n if (cleanLogs.includes('INIT MODE COMPLETED SUCCESSFULLY')) {\n log.info(' Initialization completed successfully');\n initSucceeded = true;\n break;\n }\n\n if (cleanLogs.includes('INIT MODE COMPLETED WITH FAILURES') || cleanLogs.includes('INIT MODE FAILED')) {\n log.error(' Initialization failed. Check logs:');\n log.info(chalk.dim(` kubectl logs -n ${namespace} -l app=${containerName} -f`));\n return false;\n }\n\n if (cleanLogs.includes('FATAL [')) {\n log.error(' Fatal error detected in apps-manager logs');\n return false;\n }\n\n await sleep(5000);\n }\n\n if (!initSucceeded) {\n log.error(' Initialization timed out after 5 minutes');\n log.info(chalk.dim(` Check logs: kubectl logs -n ${namespace} -l app=${containerName} --tail=100`));\n return false;\n }\n\n log.info(' Switching apps-manager to NORMAL mode...');\n const normalResult = K8sOperations.kubectlSetEnv(containerName, namespace, {\n APPS_MANAGER_MODE: AppsManagerMode.NORMAL,\n ADMIN_EMAIL: null,\n ADMIN_PASSWORD: null,\n });\n if (!normalResult.success) {\n log.error(` Failed to set NORMAL mode: ${normalResult.error}`);\n return false;\n }\n\n K8sOperations.kubectlRolloutRestart(containerName, namespace);\n\n const normalReady = await K8sOperations.waitForDeployment(containerName, namespace, 120);\n if (!normalReady) {\n log.error(' apps-manager failed to become ready in NORMAL mode');\n return false;\n }\n log.info(' apps-manager running in NORMAL mode');\n\n state.completed.push(BootstrapPhase.PLATFORM_BOOTSTRAP);\n state.phase = 6;\n saveBootstrapState(infraPath, state);\n return true;\n}\n\nasync function phasePlatformServices(\n env: PlatformEnvironmentConfiguration,\n isFrameworkDeveloper: boolean,\n state: BootstrapState,\n log: Logger,\n): Promise<boolean> {\n log.info(chalk.cyan('\\n Phase 6 — Platform Services + Application\\n'));\n\n const namespace = env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE;\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n const platformDir = join(infraPath, 'manifests', 'platform');\n const applicationsDir = join(infraPath, 'manifests', 'applications');\n const includePlatformServices = shouldDeployPlatformServicesInRuntime(env, isFrameworkDeveloper);\n\n if (env.locationType === WildoLocationType.LOCAL) {\n const cleanupResult = pruneLegacyLocalApplicationResources(namespace);\n if (!cleanupResult.success) {\n log.error(cleanupResult.error ?? 'Failed to remove retired local application resources.');\n return false;\n }\n }\n\n if (includePlatformServices) {\n for (const service of PLATFORM_SERVICES_EXCEPT_AM) {\n const catalog = PLATFORM_SERVICE_CATALOG[service as Exclude<PlatformWildoServices, PlatformWildoServices.PLATFORM_INIT>];\n if (!catalog) continue;\n\n const containerName = catalog.containerName;\n log.info(` Deploying ${containerName}...`);\n\n const deploymentPath = join(platformDir, `${containerName}-deployment.yaml`);\n const servicePath = join(platformDir, `${containerName}-service.yaml`);\n\n if (!existsSync(deploymentPath)) {\n log.warn(` Skipping ${containerName} (no deployment manifest)`);\n continue;\n }\n\n const deployResult = K8sOperations.kubectlApply(deploymentPath, { namespace });\n if (!deployResult.success) {\n log.error(` Failed to deploy ${containerName}: ${deployResult.error}`);\n return false;\n }\n\n if (existsSync(servicePath)) {\n K8sOperations.kubectlApply(servicePath, { namespace });\n }\n\n log.info(` ${containerName} deployed`);\n }\n }\n\n if (env.locationType !== WildoLocationType.LOCAL && existsSync(applicationsDir)) {\n log.info(' Deploying wildo-ai-application...');\n const appResult = K8sOperations.kubectlApply(applicationsDir, { namespace });\n if (!appResult.success) {\n log.warn(` Warning: Failed to deploy application: ${appResult.error}`);\n } else {\n log.info(' wildo-ai-application deployed');\n }\n }\n\n log.info(' Waiting for services to be ready...');\n const failedServices: string[] = [];\n\n if (includePlatformServices) {\n for (const service of PLATFORM_SERVICES_EXCEPT_AM) {\n const catalog = PLATFORM_SERVICE_CATALOG[service as Exclude<PlatformWildoServices, PlatformWildoServices.PLATFORM_INIT>];\n if (!catalog) continue;\n\n const containerName = catalog.containerName;\n const deploymentPath = join(platformDir, `${containerName}-deployment.yaml`);\n if (!existsSync(deploymentPath)) {\n continue;\n }\n\n const ready = await K8sOperations.waitForDeployment(containerName, namespace, 120);\n if (!ready) {\n log.error(` ${containerName} failed to become ready`);\n failedServices.push(containerName);\n } else {\n log.info(` ${containerName} is ready`);\n }\n }\n }\n\n if (failedServices.length > 0) {\n log.error('\\n Some platform services failed to start:');\n for (const s of failedServices) log.error(` - ${s}`);\n log.info(chalk.dim(`\\n Check: kubectl get pods -n ${namespace}`));\n return false;\n }\n\n state.completed.push(BootstrapPhase.PLATFORM_SERVICES);\n saveBootstrapState(infraPath, state);\n return true;\n}\n\n// ============================================================================\n// Public entry point\n// ============================================================================\n\nexport interface K8sBootstrapOptions {\n saasRoot: string;\n resume?: boolean;\n reset?: boolean;\n isFrameworkDeveloper?: boolean;\n}\n\nexport async function runK8sBootstrap(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n credentials: PlatformEnvSecretsJson,\n options: K8sBootstrapOptions,\n log: Logger,\n): Promise<{ success: boolean; error?: string }> {\n // The kind cluster, its namespace and its infra workloads belong to the environment's infrastructure\n // owner; a hosted application's bootstrap would delete and recreate the host's cluster.\n const host = InfrastructureHost.resolve(env);\n if (host !== null) {\n try {\n InfrastructureHost.assertOwnsSharedInfrastructure(env, SharedInfrastructureAction.BOOTSTRAP_KUBERNETES);\n } catch (error) {\n const message = ErrorUtils.extractErrorMessage(error);\n log.error(` ${message}`);\n return { success: false, error: message };\n }\n }\n const infraPath = EnvironmentPaths.resolveInfraDir(env.name);\n const saasRoot = options.saasRoot?.trim();\n if (!saasRoot) {\n throw new Error('K8s bootstrap requires a targeted app root to resolve local runtime storage.');\n }\n const localDataRoot = EnvironmentPaths.resolveScopedLocalDataDir(saasRoot);\n const isDevMode = env.locationType === WildoLocationType.LOCAL;\n\n const namespace = env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE;\n const publicDomain = env.publicDomain ?? PUBLIC_DOMAIN_DEFAULTS.LOCAL_K8S;\n\n log.info('');\n log.info(chalk.bold(' K8s Bootstrap'));\n log.info(chalk.dim(` Environment: ${env.name}`));\n log.info(chalk.dim(` Namespace: ${namespace}`));\n log.info(chalk.dim(` Mode: ${isDevMode ? 'dev' : 'prod'}`));\n // Slice 4 second-pass-3 review fix (LOW-2 / MEDIUM-7) — surface where\n // the on-host bind-mount tree lives. The Kind cluster mounts this path\n // into the node at `/mnt/local-data/`, so this is also the path\n // operators back up / `.gitignore` / wipe with `wildo local reset`.\n log.info(chalk.dim(` Local data: ${localDataRoot}`));\n log.info('');\n\n if (options.reset) {\n log.info(' Resetting bootstrap state...');\n clearBootstrapState(infraPath);\n }\n\n let state = loadBootstrapState(infraPath);\n\n if (state && !options.reset && !options.resume) {\n log.warn(chalk.yellow(' Previous bootstrap detected:'));\n log.info(chalk.dim(` Started: ${state.startedAt}`));\n log.info(chalk.dim(` Phase: ${state.phase}`));\n log.info(chalk.dim(` Completed: ${state.completed.join(', ') || 'none'}`));\n log.info('');\n log.info(' Use --resume to continue or --reset to start fresh.');\n return { success: true };\n }\n\n if (!state || options.reset) {\n state = {\n phase: 1,\n completed: [],\n startedAt: new Date().toISOString(),\n envName: env.name,\n };\n saveBootstrapState(infraPath, state);\n }\n\n let success = true;\n const isFrameworkDeveloper = options.isFrameworkDeveloper ?? false;\n\n if (state.phase <= 1 && success) {\n success = await phasePrepare(env, frameworkPath, credentials, isFrameworkDeveloper, state, log);\n }\n\n if (state.phase <= 2 && success) {\n success = await phaseKindCluster(\n env,\n frameworkPath,\n localDataRoot,\n options.reset === true,\n state,\n log,\n );\n }\n\n if (state.phase <= 3 && success) {\n success = await phaseIngressStack(env, frameworkPath, state, log);\n }\n\n if (state.phase <= 4 && success) {\n success = await phaseInfraDeploy(env, state, log);\n }\n\n if (state.phase <= 5 && success) {\n success = await phasePlatformBootstrap(env, credentials, isFrameworkDeveloper, state, log);\n }\n\n if (state.phase <= 6 && success) {\n success = await phasePlatformServices(env, isFrameworkDeveloper, state, log);\n }\n\n log.info('');\n if (success) {\n clearBootstrapState(infraPath);\n log.success(chalk.green(' Bootstrap Complete!'));\n log.info('');\n log.info(' Platform is now running.');\n log.info(chalk.dim(` Verify: kubectl get pods -n ${namespace}`));\n log.info(chalk.dim(` Access: ${getLocalK8sAppsManagerAccessUrl(env)}`));\n log.info(chalk.dim(` Logs: kubectl logs -n ${namespace} -l app=platform-apps-manager -f`));\n log.info('');\n return { success: true };\n }\n\n state.error = 'Bootstrap failed';\n saveBootstrapState(infraPath, state);\n log.error(chalk.red(' Bootstrap failed!'));\n log.info(chalk.dim(' Fix the error above and run with --resume'));\n return { success: false, error: 'Bootstrap failed — see output above' };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"k8s-local-infra-readiness.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"k8s-local-infra-readiness.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-local-infra-readiness.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAIH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAoC5G;;;;;;;;GAQG;AACH,wBAAsB,yBAAyB,CAC7C,GAAG,EAAE,gCAAgC,EACrC,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,OAAO,CAAC,CAoElB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"k8s-local-infra-readiness.service.js","sourceRoot":"","sources":["../../../../../../../src/services/deployment/k8s/k8s-local-infra-readiness.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAC;AAC1F,OAAO,EAAE,gCAAgC,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAC9H,OAAO,EAAE,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;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,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtB,GAAG,CAAC,KAAK,CAAC,wCAAwC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACvE,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,+CAA+C,SAAS,EAAE,CAAC,CAAC,CAAC;YAChF,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,yEAAyE,CAAC,CAAC,CAAC;YAC/F,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,2EAA2E,CAAC,CAAC,CAAC;YACjG,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["/**\n * Slice 4 second-pass-3 review fix (MEDIUM-1) — shared K8s local-infra\n * readiness gate.\n *\n * `kubectl apply -f manifests/internal/` is **non-blocking**: it submits\n * the manifests and returns immediately. The pods then need to schedule,\n * pull images, mount their hostPath PVs, and (for Mongo) wait for the\n * `mongodb-init` Job to run `rs.initiate()` before they can serve any\n * consumer that needs a primary replica set.\n *\n * Before this helper existed, three of the four CLI seams that apply\n * the local infra manifests returned success the moment `apply` returned\n * (they never waited):\n * - `dev/start.command.ts` `startK8sInfra` (cold start path)\n * - `local/up.command.ts` `runK8s` (`wildo local up`)\n * - `local-app-reinit.service.ts` `startEnvironment` (`wildo local reinit`)\n *\n * Only `k8s-bootstrap.service.ts` `phaseInfraDeploy` waited for rollouts\n * + the `mongodb-init` Job. That asymmetry caused intermittent\n * `NotPrimaryNoSecondaryOk` errors on dev cold start (apps-manager and\n * application backends started reading config from Mongo before\n * `rs.initiate()` had run).\n *\n * This helper centralises the readiness contract so all four seams share\n * the same gates, the same per-service timeouts (ClamAV needs longer for\n * cold signature DB load — see `READINESS_TIMEOUT_SECONDS_BY_SERVICE`),\n * and the same diagnostic hints when something fails.\n *\n * Per-service service list comes from `getDeployableInfraServicesForK8s`,\n * which is the SINGLE SOURCE OF TRUTH for \"what we actually deployed for\n * this env\" (Slice 4 contract — mirrors `getDockerComposeLocalDataServices`\n * for Compose). Waiting on a workload that was never deployed (e.g.\n * `mongodb` on an Atlas-backed env) would incorrectly time out.\n */\n\nimport chalk from 'chalk';\n\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { K8sOperations } from '~wildo-cli/services/deployment/k8s/k8s-operations.service';\nimport { getDeployableInfraServicesForK8s, INFRA_SERVICE_CATALOG } from '~wildo-cli/services/catalog/service-catalog.schemas';\nimport { PlatformDataServices } from '~wildo-cli/services/data-services/data-services.schemas';\n\n/**\n * Slice 4 review fix (K8s M-6) — ClamAV cold-start cost: signature DB\n * download + load can take 90-180s on a fresh Kind node, which is close\n * to the previous flat 300s ceiling. Allow a longer per-service timeout\n * for ClamAV specifically; everything else keeps the existing budget.\n */\nconst READINESS_TIMEOUT_SECONDS_BY_SERVICE: Readonly<Record<string, number>> = {\n clamav: 600,\n};\nconst DEFAULT_READINESS_TIMEOUT_SECONDS = 300;\n\n/**\n * Slice 4 second-pass-2 review fix (MEDIUM-2) — bumped from 300s → 600s.\n * The Job's per-iteration mongo-ready wait loop is ~150s and\n * `backoffLimit: 10` (see deployment.yaml.hbs), so the previous 300s\n * ceiling could elapse mid-retry on slow Kind nodes (cold-image-pull +\n * scheduling pressure) and surface as \"init failed\" while the Job was\n * still making legitimate forward progress. 600s comfortably covers 3\n * cold-start retries without inviting an infinite wait if mongod is\n * genuinely broken (the Job's `backoffLimit` still fences the worst case\n * at the kubectl level).\n */\nconst MONGODB_INIT_JOB_TIMEOUT_SECONDS = 600;\n\n/**\n * Issue #74 — the search sidecar's workload name, resolved from the catalog rather than\n * written as a literal so a rename cannot leave this readiness gate silently waiting on a\n * workload that no longer exists (which would look like a hang, not a mismatch).\n */\nconst MONGOT_SERVICE_NAME = INFRA_SERVICE_CATALOG[PlatformDataServices.MONGOT].containerName;\n\n/**\n * Wait for every internal infra workload that was just `kubectl apply`d\n * to reach a ready state, then gate on the `mongodb-init` Job (when\n * applicable) reaching `Complete=True`.\n *\n * Returns `true` if everything came up; `false` if any wait failed.\n * Callers MUST treat `false` as terminal for the bring-up step (do not\n * proceed to the platform/app phase against half-ready infra).\n */\nexport async function waitForLocalK8sInfraReady(\n env: PlatformEnvironmentConfiguration,\n namespace: string,\n log: Logger,\n context?: string,\n): Promise<boolean> {\n const deployable = getDeployableInfraServicesForK8s(env);\n\n const failed: string[] = [];\n const awaitService = async (service: string): Promise<void> => {\n const timeout = READINESS_TIMEOUT_SECONDS_BY_SERVICE[service] ?? DEFAULT_READINESS_TIMEOUT_SECONDS;\n const ready = await K8sOperations.waitForDeployment(service, namespace, timeout);\n if (!ready) {\n log.error(` ${service} failed to become ready`);\n failed.push(service);\n } else {\n log.info(` ${chalk.green('✓')} ${service} ready`);\n }\n };\n\n // Issue #74 — `mongot` is deferred PAST the `mongodb-init` gate, and this ordering is the\n // whole reason this function is no longer one flat loop.\n //\n // mongot's first action on startup is a SCRAM login as the `searchCoordinator` user that\n // `mongodb-init` creates, so it CANNOT reach Ready before that Job completes. Waiting on it\n // in the same pass as its siblings would burn the full per-service timeout against a pod\n // that is correctly CrashLoopBackOff-ing, fail the whole gate, and then never reach the Job\n // wait that would have unblocked it — a self-inflicted deadlock reported as a mongot defect.\n //\n // Everything else genuinely is independent, so the shape stays: siblings in parallel-ish\n // sequence, then the Job, then mongot.\n const preInitServices = deployable.filter((service) => service !== MONGOT_SERVICE_NAME);\n\n log.info(' Waiting for internal services to be ready...');\n for (const service of preInitServices) {\n await awaitService(service);\n }\n if (failed.length > 0) {\n log.error(` Internal services failed to start: ${failed.join(', ')}`);\n log.info(chalk.dim(` Check: kubectl get pods -n ${namespace}`));\n return false;\n }\n\n if (deployable.includes('mongodb')) {\n log.info(' Waiting for mongodb-init Job (rs.initiate) to complete...');\n const jobReady = await K8sOperations.waitForJobCompletion(\n 'mongodb-init',\n namespace,\n MONGODB_INIT_JOB_TIMEOUT_SECONDS,\n context,\n );\n if (!jobReady) {\n log.error(' mongodb-init Job did not complete (rs.initiate may have failed).');\n log.info(chalk.dim(` Check: kubectl describe job mongodb-init -n ${namespace}`));\n log.info(chalk.dim(` kubectl logs job/mongodb-init -n ${namespace}`));\n return false;\n }\n log.info(' mongodb-init Job complete (replica set initiated)');\n }\n\n if (deployable.includes(MONGOT_SERVICE_NAME)) {\n log.info(' Waiting for mongot (MongoDB Search / Vector Search) to be ready...');\n await awaitService(MONGOT_SERVICE_NAME);\n if (failed.length > 0) {\n log.error(` Internal services failed to start: ${failed.join(', ')}`);\n log.info(chalk.dim(` Check: kubectl logs statefulset/mongot -n ${namespace}`));\n log.info(chalk.dim(' A SCRAM failure here means the mongodb-init Job did not create'));\n log.info(chalk.dim(' the searchCoordinator user — check whether mongot-secret exists.'));\n return false;\n }\n }\n\n return true;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"k8s-local-infra-readiness.service.js","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-local-infra-readiness.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAC;AAC1F,OAAO,EAAE,gCAAgC,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAC9H,OAAO,EAAE,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;AAE/F;;;;;GAKG;AACH,MAAM,oCAAoC,GAAqC;IAC7E,MAAM,EAAE,GAAG;CACZ,CAAC;AACF,MAAM,iCAAiC,GAAG,GAAG,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,MAAM,gCAAgC,GAAG,GAAG,CAAC;AAE7C;;;;GAIG;AACH,MAAM,mBAAmB,GAAG,qBAAqB,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,a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CAAC,GAAG,CAAC,yEAAyE,CAAC,CAAC,CAAC;YAC/F,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,2EAA2E,CAAC,CAAC,CAAC;YACjG,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["/**\n * Slice 4 second-pass-3 review fix (MEDIUM-1) — shared K8s local-infra\n * readiness gate.\n *\n * `kubectl apply -f manifests/internal/` is **non-blocking**: it submits\n * the manifests and returns immediately. The pods then need to schedule,\n * pull images, mount their hostPath PVs, and (for Mongo) wait for the\n * `mongodb-init` Job to run `rs.initiate()` before they can serve any\n * consumer that needs a primary replica set.\n *\n * Before this helper existed, three of the four CLI seams that apply\n * the local infra manifests returned success the moment `apply` returned\n * (they never waited):\n * - `dev/start.command.ts` `startK8sInfra` (cold start path)\n * - `local/up.command.ts` `runK8s` (`wildo local up`)\n * - `local-app-reinit.service.ts` `startEnvironment` (`wildo local reinit`)\n *\n * Only `k8s-bootstrap.service.ts` `phaseInfraDeploy` waited for rollouts\n * + the `mongodb-init` Job. That asymmetry caused intermittent\n * `NotPrimaryNoSecondaryOk` errors on dev cold start (apps-manager and\n * application backends started reading config from Mongo before\n * `rs.initiate()` had run).\n *\n * This helper centralises the readiness contract so all four seams share\n * the same gates, the same per-service timeouts (ClamAV needs longer for\n * cold signature DB load — see `READINESS_TIMEOUT_SECONDS_BY_SERVICE`),\n * and the same diagnostic hints when something fails.\n *\n * Per-service service list comes from `getDeployableInfraServicesForK8s`,\n * which is the SINGLE SOURCE OF TRUTH for \"what we actually deployed for\n * this env\" (Slice 4 contract — mirrors `getDockerComposeLocalDataServices`\n * for Compose). Waiting on a workload that was never deployed (e.g.\n * `mongodb` on an Atlas-backed env) would incorrectly time out.\n */\n\nimport chalk from 'chalk';\n\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { K8sOperations } from '~wildo-cli/services/deployment/k8s/k8s-operations.service';\nimport { getDeployableInfraServicesForK8s, INFRA_SERVICE_CATALOG } from '~wildo-cli/services/catalog/service-catalog.schemas';\nimport { PlatformDataServices } from '~wildo-cli/services/data-services/data-services.schemas';\n\n/**\n * Slice 4 review fix (K8s M-6) — ClamAV cold-start cost: signature DB\n * download + load can take 90-180s on a fresh Kind node, which is close\n * to the previous flat 300s ceiling. Allow a longer per-service timeout\n * for ClamAV specifically; everything else keeps the existing budget.\n */\nconst READINESS_TIMEOUT_SECONDS_BY_SERVICE: Readonly<Record<string, number>> = {\n clamav: 600,\n};\nconst DEFAULT_READINESS_TIMEOUT_SECONDS = 300;\n\n/**\n * Slice 4 second-pass-2 review fix (MEDIUM-2) — bumped from 300s → 600s.\n * The Job's per-iteration mongo-ready wait loop is ~150s and\n * `backoffLimit: 10` (see deployment.yaml.hbs), so the previous 300s\n * ceiling could elapse mid-retry on slow Kind nodes (cold-image-pull +\n * scheduling pressure) and surface as \"init failed\" while the Job was\n * still making legitimate forward progress. 600s comfortably covers 3\n * cold-start retries without inviting an infinite wait if mongod is\n * genuinely broken (the Job's `backoffLimit` still fences the worst case\n * at the kubectl level).\n */\nconst MONGODB_INIT_JOB_TIMEOUT_SECONDS = 600;\n\n/**\n * Issue #74 — the search sidecar's workload name, resolved from the catalog rather than\n * written as a literal so a rename cannot leave this readiness gate silently waiting on a\n * workload that no longer exists (which would look like a hang, not a mismatch).\n */\nconst MONGOT_SERVICE_NAME = INFRA_SERVICE_CATALOG[PlatformDataServices.MONGOT].containerName;\n\n/**\n * Wait for every internal infra workload that was just `kubectl apply`d\n * to reach a ready state, then gate on the `mongodb-init` Job (when\n * applicable) reaching `Complete=True`.\n *\n * Returns `true` if everything came up; `false` if any wait failed.\n * Callers MUST treat `false` as terminal for the bring-up step (do not\n * proceed to the platform/app phase against half-ready infra).\n */\nexport async function waitForLocalK8sInfraReady(\n env: PlatformEnvironmentConfiguration,\n namespace: string,\n log: Logger,\n context?: string,\n): Promise<boolean> {\n const deployable = getDeployableInfraServicesForK8s(env);\n\n const failed: string[] = [];\n const awaitService = async (service: string): Promise<void> => {\n const timeout = READINESS_TIMEOUT_SECONDS_BY_SERVICE[service] ?? DEFAULT_READINESS_TIMEOUT_SECONDS;\n const ready = await K8sOperations.waitForDeployment(service, namespace, timeout);\n if (!ready) {\n log.error(` ${service} failed to become ready`);\n failed.push(service);\n } else {\n log.info(` ${chalk.green('✓')} ${service} ready`);\n }\n };\n\n // Issue #74 — `mongot` is deferred PAST the `mongodb-init` gate, and this ordering is the\n // whole reason this function is no longer one flat loop.\n //\n // mongot's first action on startup is a SCRAM login as the `searchCoordinator` user that\n // `mongodb-init` creates, so it CANNOT reach Ready before that Job completes. Waiting on it\n // in the same pass as its siblings would burn the full per-service timeout against a pod\n // that is correctly CrashLoopBackOff-ing, fail the whole gate, and then never reach the Job\n // wait that would have unblocked it — a self-inflicted deadlock reported as a mongot defect.\n //\n // Everything else genuinely is independent, so the shape stays: siblings in parallel-ish\n // sequence, then the Job, then mongot.\n const preInitServices = deployable.filter((service) => service !== MONGOT_SERVICE_NAME);\n\n log.info(' Waiting for internal services to be ready...');\n for (const service of preInitServices) {\n await awaitService(service);\n }\n if (failed.length > 0) {\n log.error(` Internal services failed to start: ${failed.join(', ')}`);\n log.info(chalk.dim(` Check: kubectl get pods -n ${namespace}`));\n return false;\n }\n\n if (deployable.includes('mongodb')) {\n log.info(' Waiting for mongodb-init Job (rs.initiate) to complete...');\n const jobReady = await K8sOperations.waitForJobCompletion(\n 'mongodb-init',\n namespace,\n MONGODB_INIT_JOB_TIMEOUT_SECONDS,\n context,\n );\n if (!jobReady) {\n log.error(' mongodb-init Job did not complete (rs.initiate may have failed).');\n log.info(chalk.dim(` Check: kubectl describe job mongodb-init -n ${namespace}`));\n log.info(chalk.dim(` kubectl logs job/mongodb-init -n ${namespace}`));\n return false;\n }\n log.info(' mongodb-init Job complete (replica set initiated)');\n }\n\n if (deployable.includes(MONGOT_SERVICE_NAME)) {\n log.info(' Waiting for mongot (MongoDB Search / Vector Search) to be ready...');\n await awaitService(MONGOT_SERVICE_NAME);\n if (failed.length > 0) {\n log.error(` Internal services failed to start: ${failed.join(', ')}`);\n log.info(chalk.dim(` Check: kubectl logs statefulset/mongot -n ${namespace}`));\n log.info(chalk.dim(' A SCRAM failure here means the mongodb-init Job did not create'));\n log.info(chalk.dim(' the searchCoordinator user — check whether mongot-secret exists.'));\n return false;\n }\n }\n\n return true;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"k8s-manifest-generator.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"k8s-manifest-generator.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-manifest-generator.service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAKL,KAAK,wBAAwB,EAC9B,MAAM,+BAA+B,CAAC;AAOvC,OAAO,EAWL,qBAAqB,EAStB,MAAM,+BAA+B,CAAC;AAOvC,OAAO,EACL,iBAAiB,EAOlB,MAAM,yDAAyD,CAAC;AACjE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AA6J5G,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAStC;;;OAGG;IACH,MAAM,CAAC,uBAAuB,CAC5B,OAAO,EAAE,qBAAqB,EAC9B,GAAG,EAAE,gCAAgC,EACrC,QAAQ,CAAC,EAAE,MAAM,EACjB,eAAe,CAAC,EAAE,MAAM,EACxB,oBAAoB,UAAQ,GAC3B,iBAAiB;IA6DpB;;OAEG;IACH,MAAM,CAAC,uBAAuB,CAC5B,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,gCAAgC,GACpC,iBAAiB;IAqFpB;;;;;OAKG;IACH,MAAM,CAAC,mBAAmB,CACxB,GAAG,EAAE,gCAAgC,EACrC,QAAQ,CAAC,EAAE,MAAM,EACjB,eAA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