@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":"generate-providers.command.js","sourceRoot":"","sources":["../../../../../../src/commands/fwk/generate-providers.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,qBAAqB,EAAE,MAAM,iFAAiF,CAAC;AACxH,OAAO,EAAE,wBAAwB,EAAE,MAA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ve } from 'node:path';\n\nimport { ProviderCatalogueSource } from '@wildo-ai/saas-models';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandMeta, CommandContext, CommandResult, FlagDefinition } from '~wildo-cli/kernel/types';\nimport { existsSync } from 'node:fs';\n\nimport { readActivepiecesPiece } from '~wildo-cli/services/framework/provider-transposition/activepieces-source.reader';\nimport { settleProviderApiVersion } from '~wildo-cli/services/framework/provider-transposition/api-version-settlement';\nimport { parse as parseYaml } from 'yaml';\n\nimport { enrichFromOpenApiDocuments, type PinnedOpenApiDescription } from '~wildo-cli/services/framework/provider-transposition/openapi-enrichment';\nimport type { CatalogueOpenApiDescription, OpenApiDocument } from '~wildo-cli/services/framework/provider-transposition/openapi-source.reader';\nimport { mergeTransposedProviders } from '~wildo-cli/services/framework/provider-transposition/provider-merge';\nimport { readSimToolFamily } from '~wildo-cli/services/framework/provider-transposition/sim-source.reader';\nimport {\n emitProvidersPackage,\n planProvidersPackage,\n resolveReportedAccountFacts,\n type VendorNotExported,\n} from '~wildo-cli/services/framework/provider-transposition/provider-package.emitter';\nimport {\n applyMergedCatalogueEntries,\n assertOpenApiDescriptionPin,\n CatalogueEntryClassification,\n CatalogueExportedAs,\n isFullBatch,\n readDecisionRefs,\n readDecisions,\n resolveCatalogueVendor,\n writeInventory,\n type InventoryEntry,\n} from '~wildo-cli/services/framework/provider-transposition/provider-catalogue-record';\nimport {\n TransposedOperationResolution,\n type TransposedOperation,\n type TransposedProvider,\n} from '~wildo-cli/services/framework/provider-transposition/transposed-provider.model';\n\n/**\n * Where the source catalogues conventionally sit: a sibling of the framework checkout.\n *\n * Not a fallback invented for convenience — it is where they already are, and the flag being\n * mandatory is what made a regeneration stall twice on a path somebody had to remember. The refusal\n * itself was right: a catalogue cannot be assumed into existence. What was missing is that the\n * ordinary case needs no assumption at all.\n */\nconst SIBLING_CATALOGUE_DIRECTORY = 'connector-scrapping-sources';\n\n/**\n * Every checkout beside the framework that IS a catalogue, identified by layout.\n *\n * By layout and never by name, which is the same rule the detector downstream applies and the one\n * that matters most here: a directory called `activepieces` belonging to an unrelated project is a\n * real Activepieces checkout at a different upstream commit, so running against it does not fail —\n * it succeeds, wrongly. Matching on `packages/pieces/community` and `apps/sim/tools` cannot make\n * that mistake.\n *\n * Returns EMPTY rather than throwing when the directory is absent, so the caller's own refusal — the\n * one that explains what a catalogue is — stays the single place that reports it.\n */\nfunction discoverSiblingCatalogues(frameworkRoot: string): readonly string[] {\n const parent = join(dirname(frameworkRoot), SIBLING_CATALOGUE_DIRECTORY);\n if (!existsSync(parent)) return [];\n\n const found: string[] = [];\n for (const entry of readdirSync(parent).sort()) {\n const candidate = join(parent, entry);\n if (!statSync(candidate).isDirectory()) continue;\n if (existsSync(join(candidate, 'packages', 'pieces', 'community'))\n || existsSync(join(candidate, 'apps', 'sim', 'tools'))) {\n found.push(candidate);\n }\n }\n return found;\n}\n\n/**\n * The OpenAPI corpus beside the framework, found by LAYOUT like the catalogues are: a checkout whose\n * `apis/openapi` holds one directory per vendor domain (the Jentic public API corpus). Returns the\n * `apis/openapi` directory itself, which is what the enrichment reads, or undefined when there is none —\n * the caller then says the batch is partial rather than inventing a path.\n */\nfunction discoverSiblingOpenApiCorpus(frameworkRoot: string): string | undefined {\n const parent = join(dirname(frameworkRoot), SIBLING_CATALOGUE_DIRECTORY);\n if (!existsSync(parent)) return undefined;\n for (const entry of readdirSync(parent).sort()) {\n const candidate = join(parent, entry, 'apis', 'openapi');\n if (existsSync(candidate) && statSync(candidate).isDirectory()) return candidate;\n }\n return undefined;\n}\n\nconst FLAG_CATALOGUE = 'catalogue';\nconst FLAG_VENDOR = 'vendor';\nconst FLAG_LIMIT = 'limit';\nconst FLAG_DRY_RUN = 'dry-run';\nconst FLAG_OPENAPI = 'openapi';\n\nconst FLAGS: Record<string, FlagDefinition> = {\n [FLAG_CATALOGUE]: {\n type: 'string',\n description: 'Comma-separated paths to source catalogue checkouts (Activepieces and/or Sim repository roots; each layout is detected). Optional when the checkouts sit in `connector-scrapping-sources` beside the framework, which is where they conventionally live; the run then names the ones it found. Passing both catalogues merges them into one provider per vendor.',\n },\n [FLAG_VENDOR]: {\n type: 'string',\n description: 'Transpose one vendor only, by directory name (e.g. `clockify`, `google-sheets`). Underscores and hyphens are interchangeable. Omit to run the whole catalogue.',\n },\n [FLAG_LIMIT]: {\n type: 'string',\n description: 'Stop after N vendors. For a smoke run over a large catalogue.',\n },\n [FLAG_OPENAPI]: {\n type: 'string',\n description:\n 'Path to an OpenAPI corpus (e.g. jentic-public-apis/apis/openapi). Optional when the corpus sits in '\n + '`connector-scrapping-sources` beside the framework; the run then names the one it found. Never a '\n + 'catalogue: a vendor document is consulted about operations the catalogues already chose, to answer '\n + 'what an operation ANSWERS and what its positionally-named path holes are called. It contributes no '\n + 'operation of its own. `policy.json` names OPENAPI_DOCUMENT, so a run without a corpus is PARTIAL: no vendor '\n + 'is withdrawn and stale record entries are not checked, but operations only a document could complete are '\n + 'emitted refused again.',\n },\n [FLAG_DRY_RUN]: {\n type: 'boolean',\n description: 'Read and report without writing any package.',\n default: false,\n },\n};\n\n/**\n * `wildo fwk generate-providers` — the transposer.\n *\n * Reads an external catalogue's SOURCE — Activepieces or Sim, detected from the checkout's layout —\n * and emits native Wildo provider packages into the ARCHIVED catalogue, `_code_archive/providers/<ref>/`: since the cut-over\n * (#2019) its output is a seed someone adopts by hand into `providers-registry/<ref>/`, never something an application\n * receives. The catalogue is a build-time input that lives OUTSIDE this repository (a\n * sibling checkout), so its path is an argument and never a default: a tool that assumed a\n * repo-relative location would break the moment anybody cloned the sources somewhere else, and\n * vendoring 21 GB of somebody else's specs is a fork, not a build input.\n *\n * What it emits is ordinary Wildo code. No third-party package becomes a runtime dependency of any\n * application and nothing third-party executes — the operations are DATA, run by the engine's own\n * HTTP client. That distinction is the reason this command exists at all: the alternative, wrapping\n * and executing published bundles, was built, measured, and deleted on 2026-09-06.\n */\nexport default class FwkGenerateProvidersCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'fwk generate-providers',\n description: 'Transpose an external catalogue (Activepieces or Sim) into the archived provider catalogue (_code_archive/providers/), as seeds to adopt from.',\n category: CommandCategory.Fwk,\n flags: FLAGS,\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const frameworkRoot = ctx.cliContext.resolvedHomes.framework.repositoryRoot;\n if (frameworkRoot === undefined || frameworkRoot === null) {\n ctx.log.error('Framework path not set. Run `wildo init` inside the framework workspace first.');\n return { success: false };\n }\n\n const cataloguePath = ctx.flags[FLAG_CATALOGUE] as string | undefined;\n const discovered = cataloguePath === undefined ? discoverSiblingCatalogues(frameworkRoot) : [];\n if (cataloguePath === undefined && discovered.length === 0) {\n ctx.log.error(\n '--catalogue is required: the source catalogues live outside this repository, so their path cannot be assumed.',\n );\n ctx.log.error(\n `Nothing was found at the conventional location either (${join(dirname(frameworkRoot), SIBLING_CATALOGUE_DIRECTORY)}). `\n + 'A catalogue is identified by its LAYOUT, never by its directory name — an Activepieces checkout contains '\n + '`packages/pieces/community`, a Sim one contains `apps/sim/tools`. Locate yours with:\\n'\n + ' find ~ -type d -path \"*/packages/pieces/community\" -not -path \"*/node_modules/*\"\\n'\n + ' find ~ -type d -path \"*/apps/sim/tools\" -not -path \"*/node_modules/*\"',\n );\n return { success: false };\n }\n\n const catalogueRoots = cataloguePath === undefined\n ? discovered\n : cataloguePath.split(',').map((entry) => resolve(entry.trim())).filter((entry) => entry.length > 0);\n\n if (cataloguePath === undefined) {\n // Say WHICH, always. A discovered path is one the caller did not type, so a run that silently\n // used the wrong checkout would be indistinguishable from one that used the right one — and\n // running against the wrong Activepieces does not fail, it succeeds at a different upstream\n // commit. Naming them is what makes the convenience auditable.\n ctx.log.info(`--catalogue not given; using the catalogues beside the framework: ${catalogueRoots.join(', ')}`);\n }\n const layouts: Array<{ readonly layout: CatalogueLayout; readonly revision: string }> = [];\n for (const root of catalogueRoots) {\n // Each catalogue announces itself by its own layout. Detecting it beats a flag the caller has\n // to remember and get right: a wrong flag reads every file and finds nothing, which looks\n // exactly like an empty catalogue.\n const layout = detectCatalogue(root);\n if (layout === undefined) {\n ctx.log.error(\n `${root} is neither an Activepieces checkout (packages/pieces/community) nor a Sim one (apps/sim/tools). Point --catalogue at each repository ROOT.`,\n );\n return { success: false };\n }\n layouts.push({ layout, revision: readRevision(root) });\n }\n\n const vendor = ctx.flags[FLAG_VENDOR] as string | undefined;\n const limit = ctx.flags[FLAG_LIMIT] as string | undefined;\n const dryRun = ctx.flags[FLAG_DRY_RUN] === true;\n // FROZEN at the cut-over (#2019, decided by Paul 2026-09-29): the generated catalogue no longer ships. It is archived,\n // and this importer keeps working only so a vendor can be re-transposed as a SEED: a starting point someone adopts\n // by hand into `providers-registry/<ref>/`. It writes nowhere else, so nothing it emits can reach an application.\n const providersRoot = join(frameworkRoot, '_code_archive', 'providers');\n\n // Read every catalogue first, merge second, emit third. The order is what makes one provider per\n // vendor possible: a per-catalogue emit could only ever produce one package per SOURCE, which is\n // exactly the shape Paul ruled out on 2026-09-06.\n const read: TransposedProvider[] = [];\n // Keyed by the catalogue ENTRY a view was read from; re-keyed to vendors by the merge join below.\n const unreadableByEntry = new Map<string, TransposedOperation[]>();\n let vendorsRead = 0;\n\n for (const { layout, revision } of layouts) {\n let entries = readdirSync(layout.vendorsRoot).filter(\n (entry) => !entry.startsWith('__') && statSync(join(layout.vendorsRoot, entry)).isDirectory(),\n );\n // Sim spells a vendor with underscores and Activepieces with hyphens; accept either spelling so\n // `--vendor google-sheets` reaches both catalogues.\n if (vendor !== undefined) entries = entries.filter((entry) => entry.replace(/_/g, '-') === vendor.replace(/_/g, '-'));\n if (limit !== undefined) entries = entries.slice(0, Number(limit));\n\n for (const entry of entries) {\n const directory = join(layout.vendorsRoot, entry);\n const result =\n layout.source === ProviderCatalogueSource.ACTIVEPIECES\n ? readActivepiecesPiece({ pieceDirectory: directory, sourceVersion: revision })\n : readSimToolFamily({ toolDirectory: directory, sourceVersion: revision });\n read.push(result.provider);\n vendorsRead += 1;\n const existing = unreadableByEntry.get(result.provider.ref) ?? [];\n unreadableByEntry.set(result.provider.ref, [...existing, ...result.unreadable]);\n }\n }\n\n if (read.length === 0) {\n ctx.log.error(vendor === undefined ? 'No vendors found in any catalogue.' : `No vendor directory named '${vendor}' in any catalogue.`);\n return { success: false };\n }\n\n // Recorded vendor-identity joins first (#993): the catalogues name some vendors differently, and the\n // merge groups by ref — so without this an Activepieces entry holding the OAuth2 endpoints never meets\n // the Sim entry holding the operations, and its auth is never even compared.\n const joined = applyMergedCatalogueEntries({ providers: read, unreadableByEntry, decisionsFor: (ref) => readDecisions(providersRoot, ref) });\n const merged = mergeTransposedProviders(joined.providers);\n // An operation the merge withdrew for sitting on another base URL (review F1) is part of the vendor's story like any\n // reader refusal, so the inventory counts it under its class instead of it silently vanishing between two views.\n const unreadableByVendor = new Map<string, readonly TransposedOperation[]>(joined.unreadableByVendor);\n for (const [ref, withdrawn] of merged.withdrawnByVendor) unreadableByVendor.set(ref, [...(unreadableByVendor.get(ref) ?? []), ...withdrawn]);\n const reports = merged.reports;\n // ONE vendor API version per provider (Paul, 2026-09-14, #1053), applied to the merged vendor: a recorded\n // `apiVersion` decision withdraws every resolved operation on another version into the same unreadable record, and\n // a vendor with no decision keeps its mix, reported by the inventory as `apiVersionsInPaths`.\n const apiVersionsInPathsByVendor = new Map<string, readonly string[]>();\n const versioned = merged.providers.map((provider) => {\n const settlement = settleProviderApiVersion(provider, readDecisions(providersRoot, provider.ref));\n if (settlement.withdrawn.length > 0) unreadableByVendor.set(provider.ref, [...(unreadableByVendor.get(provider.ref) ?? []), ...settlement.withdrawn]);\n if (settlement.versionsInPaths.length > 1) apiVersionsInPathsByVendor.set(provider.ref, settlement.versionsInPaths);\n return settlement.provider;\n });\n // Enrichment runs AFTER the merge, on the operations that survived it, because a document answers\n // a question about an operation rather than proposing one — and the merge is what decides which\n // operations exist.\n //\n // ON by default since #1572: `policy.json` names OPENAPI_DOCUMENT, so the corpus is part of a COMPLETE batch\n // exactly as each catalogue is, and it is found beside the framework by layout the same way.\n const openApiFlag = ctx.flags[FLAG_OPENAPI] as string | undefined;\n const openApiRoot = openApiFlag === undefined ? discoverSiblingOpenApiCorpus(frameworkRoot) : resolve(openApiFlag);\n if (openApiFlag === undefined) {\n if (openApiRoot === undefined) {\n ctx.log.warn(\n `No OpenAPI corpus beside the framework (${join(dirname(frameworkRoot), SIBLING_CATALOGUE_DIRECTORY)}/*/apis/openapi) and --openapi not given: `\n + 'this batch is PARTIAL — no vendor is withdrawn and stale record entries are not checked, but every operation a vendor '\n + 'document had named is emitted refused again, and its id moves to its vendor ledger\\'s `withdrawn` until a full batch restores it.',\n );\n } else {\n ctx.log.info(`--openapi not given; using the OpenAPI corpus beside the framework: ${openApiRoot}`);\n }\n } else if (!isOpenApiCorpus(openApiRoot!)) {\n // A mistyped path must not read as a corpus that describes nothing: the run would count as FULL (it did\n // \"read\" OPENAPI_DOCUMENT), revert every named operation and record every vendor as having no description.\n ctx.log.error(`--openapi ${openApiFlag} is not an OpenAPI corpus: expected a directory of vendor domains, each holding \\`openapi.json\\` documents (Jentic's \\`apis/openapi\\`).`);\n return { success: false };\n }\n const corpusRevision = openApiRoot === undefined ? undefined : readRevision(openApiRoot);\n const pinnedDescriptions = openApiRoot === undefined\n ? new Map<string, PinnedOpenApiDescription>()\n : await fetchPinnedDescriptions(providersRoot, new Set(versioned.map((provider) => provider.ref)));\n for (const [ref, pin] of pinnedDescriptions) {\n if (pin.unreadableBecause !== undefined) ctx.log.warn(`${ref}: the pinned OpenAPI description ${pin.url} could not be read — ${pin.unreadableBecause}`);\n }\n const enrichment = openApiRoot === undefined || corpusRevision === undefined\n ? undefined\n : enrichFromOpenApiDocuments(versioned, { openApiRoot, corpusRevision, pinnedDescriptions });\n if (enrichment !== undefined && enrichment.report.vendorsWithADocument === 0 && vendor === undefined && limit === undefined) {\n // The corpus layout was right and still nothing joined across the whole catalogue: that is a broken corpus\n // (an empty checkout, a moved tree), never a fact about 660 vendors. Refused rather than emitted as FULL.\n ctx.log.error(`The OpenAPI corpus at ${openApiRoot} describes none of this batch's vendors — refusing to emit a full batch from it.`);\n return { success: false };\n }\n const providers = enrichment?.providers ?? versioned;\n // What this run READ, for the full-batch test and the inventory: the catalogues by layout, and the corpus when\n // it was consulted. A run that skipped the corpus is partial by `policy.json`'s definition.\n const sourcesRead: string[] = [\n ...layouts.map(({ layout }) => layout.source),\n ...(enrichment === undefined ? [] : [ProviderCatalogueSource.OPENAPI_DOCUMENT]),\n ];\n const completed = reports.reduce((total, report) => total + report.completed, 0);\n const deduplicated = reports.reduce((total, report) => total + report.deduplicated, 0);\n\n // Collected as it is reported, so the file and the warnings can never disagree about who was\n // withheld — two passes over the same predicate is how they would drift.\n const withheld: Array<{ ref: string; pending: number; unreadable: number }> = [];\n for (const provider of providers) {\n if (provider.operations.some((o) => o.resolution === TransposedOperationResolution.RESOLVED)) continue;\n const pend = provider.operations.filter((o) => o.resolution === TransposedOperationResolution.PENDING_ENDPOINT).length;\n const unreadable = (unreadableByVendor.get(provider.ref) ?? []).length;\n withheld.push({ ref: provider.ref, pending: pend, unreadable });\n\n // A vendor somebody DECIDED to withhold is not news. This warning exists to surface an entry\n // that produced nothing UNEXPECTEDLY — a vendor whose extraction broke, which somebody might\n // fix — and a deliberate `scrape: false` is the opposite of that. Reporting both made the line\n // fire 214 times a run, and a warning that fires 214 times is read by nobody, which cost the\n // real findings their audience. The withheld entries stay in the inventory, where the question\n // they answer is \"what did we decide\" rather than \"what went wrong\".\n if (readDecisions(providersRoot, provider.ref)?.scrape === false) continue;\n\n ctx.log.warn(`${provider.ref}: no executable operation (${pend} pending, ${unreadable} unreadable) — no subpath exported.`);\n }\n\n // ONE package with a subpath per vendor (Paul, 2026-09-06). The emitter replaces the whole\n // vendor tree, so a vendor that disappears upstream disappears here rather than leaving an\n // exported subpath onto a room that was demolished.\n //\n // Which is why a FILTERED run may not emit. `--vendor` and `--limit` narrow the vendor list, and\n // the replace is unconditional, so emitting after a filter deletes every vendor the filter\n // excluded — 692 of them for `--vendor clockify` — and rewrites `package.json`, `NOTICE` and the\n // companion barrel to describe the one that survived. A partially emitted catalogue is not a\n // smaller catalogue; it is a broken one whose every manifest claims otherwise. Refusing is the\n // honest answer: merging into an existing tree is real complexity for a smoke-run flag (#393).\n const filtered = vendor !== undefined || limit !== undefined;\n if (filtered && !dryRun) {\n ctx.log.error(\n `A filtered run cannot emit: --${vendor !== undefined ? FLAG_VENDOR : FLAG_LIMIT} narrows the batch, and the emitter replaces the whole vendor tree, `\n + 'so emitting would delete every vendor the filter excluded. Add --dry-run to inspect the filtered result, or drop the filter to regenerate.',\n );\n return { success: false };\n }\n\n // Only a run that covered every catalogue the policy names, with no filter, may conclude that a\n // record entry matching nothing is stale. Everything else is a partial look, and a partial look\n // must not withdraw.\n const emitOptions = {\n packageRoot: providersRoot,\n providers,\n unreadableByVendor,\n fullBatch: isFullBatch({ packageRoot: providersRoot, sourcesRead, filtered }),\n unmatchedBeforeEmit: enrichment?.unmatchedPins ?? [],\n };\n // Both branches take their counts from the SAME plan, so a dry run predicts the emit it is a dry\n // run of. Two copies of this accounting disagreed by 856 operations (#393).\n const emitResult = dryRun ? planProvidersPackage(emitOptions) : emitProvidersPackage(emitOptions);\n const refusedTotal = [...emitResult.refusedByVendor.values()].reduce((total, byReason) => total + [...byReason.values()].reduce((sum, count) => sum + count, 0), 0);\n\n // The consolidated account of the catalogue, made durable.\n //\n // Four records existed and none answered \"where do we stand\": the ledger holds operation\n // identity, the decisions hold judgements one file at a time, each vendor's own\n // `pending-operations.json` holds that vendor's losses, and this run's summary holds totals\n // naming nobody. So \"which vendors are unjudged\" or \"which are platform internals\" meant a script\n // across all four — which is why those answers kept being re-derived and then lost.\n //\n // Guarded by the same condition as the withdrawal pass, and for the same reason: a filtered or\n // dry run has not seen every vendor, so its inventory would omit entries it never opened.\n if (!dryRun && !filtered) {\n const withheldRefs = new Map(withheld.map((row) => [row.ref, row]));\n writeInventory(providersRoot, {\n generatedOn: new Date().toISOString().slice(0, 10),\n sourcesRead,\n entries: providers.map((provider) => {\n const decisions = readDecisions(providersRoot, provider.ref);\n const lost = withheldRefs.get(provider.ref);\n const vendor = resolveCatalogueVendor(provider.ref, decisions);\n return {\n ref: provider.ref,\n // The company the ref is emitted under, when a decision names one (#1673); the same resolver the module uses.\n ...(vendor === provider.ref ? {} : { vendor }),\n classification: decisions?.classification ?? CatalogueEntryClassification.THIRD_PARTY_VENDOR,\n sources: [...new Set(provider.operations.map((operation) => operation.provenance.source))].sort(),\n // Asked, never re-derived. `vendorExportBlocker` has several clauses — nothing executable,\n // withheld by decision, a ref the ENGINE owns and cannot be augmented, and a base URL every call\n // would refuse (#1015) — and reconstructing it here once missed the third, reporting 707 exports\n // against 682 actually emitted. The emitter now reports the set it built the package from.\n exported: emitResult.exportedOperationCounts.has(provider.ref),\n // HOW it ships, asked of the emitter too: an engine-owned ref exports an augmentation, not a provider (#1673).\n ...(emitResult.augmentingRefs.has(provider.ref) ? { exportedAs: CatalogueExportedAs.AUGMENTS_ENGINE_REF } : {}),\n withheld: decisions?.scrape === false,\n // Judged, not merely decided: a `scrape: false` file is a decision about SHIPPING, and\n // reading it as an admissibility judgement would report the withheld entries as done.\n admissibilityJudged: (decisions?.admissibleConnections?.length ?? 0) > 0,\n // The count the emitter shipped, falling back to the planned count for an entry it did\n // not export — a withheld vendor still has operations, and reporting zero would read as\n // \"nothing to ship\" rather than \"we chose not to\".\n operations: emitResult.exportedOperationCounts.get(provider.ref)\n ?? provider.operations.filter((o) => o.resolution === TransposedOperationResolution.RESOLVED).length,\n pending: lost?.pending ?? provider.operations.filter((o) => o.resolution === TransposedOperationResolution.PENDING_ENDPOINT).length,\n unreadable: lost?.unreadable ?? (unreadableByVendor.get(provider.ref) ?? []).length,\n refusedAtEmit: Object.fromEntries(emitResult.refusedByVendor.get(provider.ref) ?? new Map()),\n ...(apiVersionsInPathsByVendor.has(provider.ref) ? { apiVersionsInPaths: apiVersionsInPathsByVendor.get(provider.ref) } : {}),\n // The reported account fact the source dials with no origin decision yet, and a mix of facts no\n // derivation may pick from (#1052) — both the population still owed a judgement.\n ...(provider.baseUrlReportedFact !== undefined && resolveReportedAccountFacts(provider, decisions).baseUrlConnectionFact === undefined\n ? { reportedOriginFactUnadmitted: provider.baseUrlReportedFact }\n : {}),\n ...(provider.conflictingReportedOriginFacts === undefined ? {} : { reportedOriginFactsConflicting: provider.conflictingReportedOriginFacts }),\n // The choice surface (#1045): inputs whose listing ships, and dropdowns whose listing could not be read.\n ...(countInputOptionsDeclared(provider) === 0 ? {} : { inputOptionsDeclared: countInputOptionsDeclared(provider) }),\n ...(provider.inputOptionsUnreadable === undefined || provider.inputOptionsUnreadable === 0 ? {} : { inputOptionsUnreadable: provider.inputOptionsUnreadable }),\n // The story of an entry that ships nothing, asked of the emitter rather than re-derived (Paul, 2026-09-14):\n // WHY no provider is exported, and what became of its operations, readable without re-running anything.\n ...notExportedStory(emitResult.notExported.get(provider.ref), unreadableByVendor.get(provider.ref) ?? []),\n // DERIVED (#1572): whether the vendor has an OpenAPI description agreeing with its base URL, and whether it\n // came from a URL the vendor controls. A re-run may change it — that is what makes it a column, not a decision.\n ...openApiDescriptionColumn(enrichment?.descriptionByVendor.get(provider.ref)),\n };\n }).concat([...joined.absorbedBy].map(([entry, vendor]) => {\n // An entry a join absorbed ships nothing of its own; its counts live on `vendor`. Recorded so the\n // inventory still holds every entry the batch read (#993 review F8).\n const decisions = readDecisions(providersRoot, entry);\n return {\n ref: entry,\n classification: decisions?.classification ?? CatalogueEntryClassification.THIRD_PARTY_VENDOR,\n sources: [...new Set(read.filter((view) => view.ref === entry).flatMap((view) => view.provenances.map((provenance) => provenance.source)))].sort(),\n exported: false,\n withheld: decisions?.scrape === false,\n admissibilityJudged: (decisions?.admissibleConnections?.length ?? 0) > 0,\n operations: 0,\n pending: 0,\n unreadable: 0,\n refusedAtEmit: {},\n mergedInto: vendor,\n };\n })),\n });\n }\n\n // A refusal count that moves is ordinary source movement, not a regression, so it is REPORTED\n // and never refused. Reporting it here is what stops it being noticed only by whoever reads a\n // 738-file ledger diff.\n if (emitResult.refusalMovement.size > 0) {\n const worsened = [...emitResult.refusalMovement].filter(([, byReason]) => Object.values(byReason).some((movement) => movement > 0));\n const improved = [...emitResult.refusalMovement].filter(([, byReason]) => Object.values(byReason).every((movement) => movement < 0));\n ctx.log.info(\n `Refusals moved for ${emitResult.refusalMovement.size} vendor(s): ${worsened.length} refusing MORE than last run, ${improved.length} refusing fewer. `\n + (worsened.length === 0\n ? 'Nothing got worse.'\n : `Worse: ${worsened\n .slice(0, 8)\n .map(([ref, byReason]) => `${ref} (${Object.entries(byReason).filter(([, m]) => m > 0).map(([reason, m]) => `+${m} ${reason}`).join(', ')})`)\n .join('; ')}${worsened.length > 8 ? ` and ${worsened.length - 8} more` : ''}.`),\n );\n }\n\n ctx.log.info(\n `${dryRun ? 'Would emit' : 'Emitted'} one package with ${emitResult.vendors} vendor subpath(s)${emitResult.augmentingRefs.size === 0 ? '' : ` (${emitResult.augmentingRefs.size} of them augmenting an engine provider)`}${emitResult.frontendFacets.length === 0 ? '' : ` and ${emitResult.frontendFacets.length} hand-authored frontend facet subpath(s)`}, merged from ${vendorsRead} vendor view(s) across `\n + `${layouts.map(({ layout, revision }) => `${layout.source}@${revision}`).join(' + ')}: `\n + `${emitResult.executableOperations} executable, ${emitResult.pendingOperations} pending an endpoint, ${emitResult.unreadableOperations} unreadable, `\n + `${refusedTotal} refused at emit across ${emitResult.refusedByVendor.size} vendor(s). `\n + `The merge completed ${completed} pending operation(s) from another catalogue's endpoint and collapsed ${deduplicated} duplicate(s).`\n + (enrichment === undefined\n ? ''\n : ` Vendor documents (OPENAPI_DOCUMENT@${corpusRevision}) answered ${enrichment.report.operationsMatched} operation(s) across ${enrichment.report.vendorsWithADocument} vendor(s), `\n + `adding ${enrichment.report.responseShapesAdded} response shape(s) and ${enrichment.report.summariesAdded} summary(ies), and naming `\n + `${enrichment.report.positionalHolesNamed} positional path hole(s) across ${enrichment.report.operationsNamed} operation(s); `\n + `${enrichment.report.namingDeclined} joined operation(s) kept a positional hole the document could not name.`),\n );\n return { success: true };\n }\n}\n\ninterface CatalogueLayout {\n /**\n * Typed from the engine's `ProviderCatalogueSource` rather than re-spelled, which this field's\n * own comment already said it was: two hand-written literals beside a sentence naming the enum\n * they copy. The narrowing to two members is deliberate and is not the enum's shape — the third,\n * `OPENAPI_DOCUMENT`, is not a CATALOGUE and is never produced by `detectCatalogue`. Its corpus is found by a\n * layout of its own (`apis/openapi`, {@link discoverSiblingOpenApiCorpus}) and enters after the merge through\n * `enrichFromOpenApiDocuments`, as an oracle that adds no operation.\n */\n readonly source: ProviderCatalogueSource.ACTIVEPIECES | ProviderCatalogueSource.SIM;\n /** The directory whose children are one vendor each. */\n readonly vendorsRoot: string;\n}\n\nfunction detectCatalogue(root: string): CatalogueLayout | undefined {\n const activepieces = join(root, 'packages', 'pieces', 'community');\n if (existsSync(activepieces)) return { source: ProviderCatalogueSource.ACTIVEPIECES, vendorsRoot: activepieces };\n const sim = join(root, 'apps', 'sim', 'tools');\n if (existsSync(sim)) return { source: ProviderCatalogueSource.SIM, vendorsRoot: sim };\n return undefined;\n}\n\n/**\n * The catalogue's exact revision, recorded against every operation so a regeneration is\n * attributable to a specific upstream movement. A checkout with no git metadata is named as such\n * rather than given a plausible-looking version, because an invented provenance is worse than an\n * absent one.\n */\nfunction readRevision(catalogueRoot: string): string {\n try {\n return execSync('git rev-parse --short HEAD', { cwd: catalogueRoot, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim();\n } catch {\n return 'unknown-revision';\n }\n}\n\n/**\n * The inventory fields that make an unexported entry followable: why no provider ships, which base-URL hosts no\n * allowance admits, and its unreadable operations counted by `TransposedUnreadableClass` (#1019 / #1015).\n */\n/** Inputs whose listing is among the provider's resolved operations — the ones the emitter renders `inputOptions` for. */\nfunction countInputOptionsDeclared(provider: TransposedProvider): number {\n const key = (method: string | undefined, pathTemplate: string | undefined): string => `${method} ${(pathTemplate ?? '').replace(/\\{[^}]*\\}/g, '{}')}`;\n const resultPathByEndpoint = new Map(\n provider.operations\n .filter((operation) => operation.resolution === TransposedOperationResolution.RESOLVED)\n .map((operation) => [key(operation.method, operation.pathTemplate), operation.resultPath ?? '']),\n );\n let declared = 0;\n for (const operation of provider.operations) {\n if (operation.resolution !== TransposedOperationResolution.RESOLVED || operation.derivedListing === true) continue;\n for (const field of operation.inputFields) {\n if (field.options === undefined) continue;\n // The same test the emitter applies: the shipped operation answers the list the picker maps over.\n if (resultPathByEndpoint.get(key(field.options.endpoint.method, field.options.endpoint.pathTemplate)) === (field.options.resultPath ?? '')) declared += 1;\n }\n }\n return declared;\n}\n\n/**\n * Fetch every decision's pinned OpenAPI description (#1572) — the only network read in the batch.\n *\n * A pin exists only where the corpus lacks the vendor's official description, so there is no checkout to read it\n * from. A document that cannot be fetched or parsed is RECORDED as unreadable rather than skipped: the enrichment\n * turns that into a record entry that matched nothing, so a full batch refuses with the reason instead of quietly\n * shipping the vendor's positional holes refused again. JSON first, YAML otherwise (vendors publish both).\n */\n/**\n * How long one pinned description may take to arrive. Sized by the largest pinned today — incident.io's\n * description is 7.3 MB — on a slow link, with nobody waiting but the operator running a regeneration; a vendor\n * host that accepts the connection and never answers must not hold the batch open indefinitely.\n */\nconst PINNED_DESCRIPTION_FETCH_TIMEOUT_MS = 120_000;\n\nasync function fetchPinnedDescriptions(providersRoot: string, readRefs: ReadonlySet<string>): Promise<Map<string, PinnedOpenApiDescription>> {\n const pinned = new Map<string, PinnedOpenApiDescription>();\n for (const ref of readDecisionRefs(providersRoot)) {\n const pin = readDecisions(providersRoot, ref)?.openApiDescription;\n if (pin === undefined) continue;\n assertOpenApiDescriptionPin(ref, pin);\n // Fetched only for a vendor this run read: a filtered run needs no other, and a pin naming a vendor the batch\n // did not produce is recorded without a fetch so the full-batch check still refuses it.\n if (!readRefs.has(ref)) {\n pinned.set(ref, { url: pin.url });\n continue;\n }\n try {\n const response = await fetch(pin.url, { signal: AbortSignal.timeout(PINNED_DESCRIPTION_FETCH_TIMEOUT_MS) });\n if (!response.ok) {\n pinned.set(ref, { url: pin.url, unreadableBecause: `HTTP ${response.status}` });\n continue;\n }\n const text = await response.text();\n let document: OpenApiDocument;\n try {\n document = JSON.parse(text) as OpenApiDocument;\n } catch {\n // The default alias bound stays: this is a document from the network, and unbounded alias expansion is\n // the one YAML feature that turns a small response into an arbitrarily large value.\n document = parseYaml(text) as OpenApiDocument;\n }\n const server = document?.servers?.[0]?.url;\n pinned.set(ref, typeof server === 'string' && server !== ''\n ? { url: pin.url, document }\n : { url: pin.url, unreadableBecause: 'it declares no `servers` entry, so no operation can join it' });\n } catch (error) {\n pinned.set(ref, { url: pin.url, unreadableBecause: error instanceof Error ? error.message : String(error) });\n }\n }\n return pinned;\n}\n\n/** A corpus directory: its children are vendor domains, and at least one holds an `openapi.json` within four levels. */\nfunction isOpenApiCorpus(root: string): boolean {\n if (!existsSync(root) || !statSync(root).isDirectory()) return false;\n const holdsDocument = (directory: string, depth: number): boolean => {\n if (depth > 4) return false;\n for (const entry of readdirSync(directory)) {\n const full = join(directory, entry);\n if (entry === 'openapi.json') return true;\n if (statSync(full).isDirectory() && holdsDocument(full, depth + 1)) return true;\n }\n return false;\n };\n return readdirSync(root).some((entry) => {\n const vendorDirectory = join(root, entry);\n return statSync(vendorDirectory).isDirectory() && holdsDocument(vendorDirectory, 0);\n });\n}\n\nfunction openApiDescriptionColumn(\n description: CatalogueOpenApiDescription | undefined,\n): Pick<InventoryEntry, 'openApiDescription'> {\n return description === undefined ? {} : { openApiDescription: description };\n}\n\nfunction notExportedStory(\n notExported: VendorNotExported | undefined,\n unreadable: readonly TransposedOperation[],\n): Pick<InventoryEntry, 'notExportedBecause' | 'baseUrlHostsNotAdmitted' | 'baseUrlPlaceholdersUnanswered' | 'augmentationBaseUrls' | 'unreadableByClass'> {\n const byClass: Record<string, number> = {};\n for (const operation of unreadable) {\n const key = operation.unreadableClass ?? 'UNCLASSIFIED';\n byClass[key] = (byClass[key] ?? 0) + 1;\n }\n return {\n ...(notExported === undefined ? {} : { notExportedBecause: notExported.reason }),\n ...(notExported?.baseUrlHostsNotAdmitted === undefined ? {} : { baseUrlHostsNotAdmitted: notExported.baseUrlHostsNotAdmitted }),\n ...(notExported?.baseUrlPlaceholdersUnanswered === undefined ? {} : { baseUrlPlaceholdersUnanswered: notExported.baseUrlPlaceholdersUnanswered }),\n ...(notExported?.augmentationBaseUrls === undefined ? {} : { augmentationBaseUrls: notExported.augmentationBaseUrls }),\n ...(unreadable.length === 0 ? {} : { unreadableByClass: byClass }),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"generate-providers.command.js","sourceRoot":"","sources":["../../../../src/commands/fwk/generate-providers.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,qBAAqB,EAAE,MAAM,iFAAiF,CAAC;AACxH,OAAO,EAAE,wBAAwB,EAAE,MAAM,6EAA6E,CAAC;AACvH,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,EAAE,0BAA0B,EAAiC,MAAM,yEAAyE,CAAC;AAEpJ,OAAO,EAAE,wBAAwB,EAAE,MAAM,qEAAqE,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,wEA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,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,GAAG,GAAG,SAAS,CAAC,eAAe,IAAI,cAAc,CAAC;QACxD,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACzC,CAAC;IACD,OAAO;QACL,GAAG,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC;QAChF,GAAG,CAAC,WAAW,EAAE,uBAAuB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,uBAAuB,EAAE,WAAW,CAAC,uBAAuB,EAAE,CAAC;QAC/H,GAAG,CAAC,WAAW,EAAE,6BAA6B,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,6BAA6B,EAAE,WAAW,CAAC,6BAA6B,EAAE,CAAC;QACjJ,GAAG,CAAC,WAAW,EAAE,oBAAoB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,oBAAoB,EAAE,WAAW,CAAC,oBAAoB,EAAE,CAAC;QACtH,GAAG,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,OAAO,EAAE,CAAC;KACnE,CAAC;AACJ,CAAC","sourcesContent":["import { readdirSync, statSync } from 'node:fs';\nimport { execSync } from 'node:child_process';\nimport { dirname, join, resolve } from 'node:path';\n\nimport { ProviderCatalogueSource } from '@wildo-ai/saas-models';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandMeta, CommandContext, CommandResult, FlagDefinition } from '~wildo-cli/kernel/types';\nimport { existsSync } from 'node:fs';\n\nimport { readActivepiecesPiece } from '~wildo-cli/services/framework/provider-transposition/activepieces-source.reader';\nimport { settleProviderApiVersion } from '~wildo-cli/services/framework/provider-transposition/api-version-settlement';\nimport { parse as parseYaml } from 'yaml';\n\nimport { enrichFromOpenApiDocuments, type PinnedOpenApiDescription } from '~wildo-cli/services/framework/provider-transposition/openapi-enrichment';\nimport type { CatalogueOpenApiDescription, OpenApiDocument } from '~wildo-cli/services/framework/provider-transposition/openapi-source.reader';\nimport { mergeTransposedProviders } from '~wildo-cli/services/framework/provider-transposition/provider-merge';\nimport { readSimToolFamily } from '~wildo-cli/services/framework/provider-transposition/sim-source.reader';\nimport {\n emitProvidersPackage,\n planProvidersPackage,\n resolveReportedAccountFacts,\n type VendorNotExported,\n} from '~wildo-cli/services/framework/provider-transposition/provider-package.emitter';\nimport {\n applyMergedCatalogueEntries,\n assertOpenApiDescriptionPin,\n CatalogueEntryClassification,\n CatalogueExportedAs,\n isFullBatch,\n readDecisionRefs,\n readDecisions,\n resolveCatalogueVendor,\n writeInventory,\n type InventoryEntry,\n} from '~wildo-cli/services/framework/provider-transposition/provider-catalogue-record';\nimport {\n TransposedOperationResolution,\n type TransposedOperation,\n type TransposedProvider,\n} from '~wildo-cli/services/framework/provider-transposition/transposed-provider.model';\n\n/**\n * Where the source catalogues conventionally sit: a sibling of the framework checkout.\n *\n * Not a fallback invented for convenience — it is where they already are, and the flag being\n * mandatory is what made a regeneration stall twice on a path somebody had to remember. The refusal\n * itself was right: a catalogue cannot be assumed into existence. What was missing is that the\n * ordinary case needs no assumption at all.\n */\nconst SIBLING_CATALOGUE_DIRECTORY = 'connector-scrapping-sources';\n\n/**\n * Every checkout beside the framework that IS a catalogue, identified by layout.\n *\n * By layout and never by name, which is the same rule the detector downstream applies and the one\n * that matters most here: a directory called `activepieces` belonging to an unrelated project is a\n * real Activepieces checkout at a different upstream commit, so running against it does not fail —\n * it succeeds, wrongly. Matching on `packages/pieces/community` and `apps/sim/tools` cannot make\n * that mistake.\n *\n * Returns EMPTY rather than throwing when the directory is absent, so the caller's own refusal — the\n * one that explains what a catalogue is — stays the single place that reports it.\n */\nfunction discoverSiblingCatalogues(frameworkRoot: string): readonly string[] {\n const parent = join(dirname(frameworkRoot), SIBLING_CATALOGUE_DIRECTORY);\n if (!existsSync(parent)) return [];\n\n const found: string[] = [];\n for (const entry of readdirSync(parent).sort()) {\n const candidate = join(parent, entry);\n if (!statSync(candidate).isDirectory()) continue;\n if (existsSync(join(candidate, 'packages', 'pieces', 'community'))\n || existsSync(join(candidate, 'apps', 'sim', 'tools'))) {\n found.push(candidate);\n }\n }\n return found;\n}\n\n/**\n * The OpenAPI corpus beside the framework, found by LAYOUT like the catalogues are: a checkout whose\n * `apis/openapi` holds one directory per vendor domain (the Jentic public API corpus). Returns the\n * `apis/openapi` directory itself, which is what the enrichment reads, or undefined when there is none —\n * the caller then says the batch is partial rather than inventing a path.\n */\nfunction discoverSiblingOpenApiCorpus(frameworkRoot: string): string | undefined {\n const parent = join(dirname(frameworkRoot), SIBLING_CATALOGUE_DIRECTORY);\n if (!existsSync(parent)) return undefined;\n for (const entry of readdirSync(parent).sort()) {\n const candidate = join(parent, entry, 'apis', 'openapi');\n if (existsSync(candidate) && statSync(candidate).isDirectory()) return candidate;\n }\n return undefined;\n}\n\nconst FLAG_CATALOGUE = 'catalogue';\nconst FLAG_VENDOR = 'vendor';\nconst FLAG_LIMIT = 'limit';\nconst FLAG_DRY_RUN = 'dry-run';\nconst FLAG_OPENAPI = 'openapi';\n\nconst FLAGS: Record<string, FlagDefinition> = {\n [FLAG_CATALOGUE]: {\n type: 'string',\n description: 'Comma-separated paths to source catalogue checkouts (Activepieces and/or Sim repository roots; each layout is detected). Optional when the checkouts sit in `connector-scrapping-sources` beside the framework, which is where they conventionally live; the run then names the ones it found. Passing both catalogues merges them into one provider per vendor.',\n },\n [FLAG_VENDOR]: {\n type: 'string',\n description: 'Transpose one vendor only, by directory name (e.g. `clockify`, `google-sheets`). Underscores and hyphens are interchangeable. Omit to run the whole catalogue.',\n },\n [FLAG_LIMIT]: {\n type: 'string',\n description: 'Stop after N vendors. For a smoke run over a large catalogue.',\n },\n [FLAG_OPENAPI]: {\n type: 'string',\n description:\n 'Path to an OpenAPI corpus (e.g. jentic-public-apis/apis/openapi). Optional when the corpus sits in '\n + '`connector-scrapping-sources` beside the framework; the run then names the one it found. Never a '\n + 'catalogue: a vendor document is consulted about operations the catalogues already chose, to answer '\n + 'what an operation ANSWERS and what its positionally-named path holes are called. It contributes no '\n + 'operation of its own. `policy.json` names OPENAPI_DOCUMENT, so a run without a corpus is PARTIAL: no vendor '\n + 'is withdrawn and stale record entries are not checked, but operations only a document could complete are '\n + 'emitted refused again.',\n },\n [FLAG_DRY_RUN]: {\n type: 'boolean',\n description: 'Read and report without writing any package.',\n default: false,\n },\n};\n\n/**\n * `wildo fwk generate-providers` — the transposer.\n *\n * Reads an external catalogue's SOURCE — Activepieces or Sim, detected from the checkout's layout —\n * and emits native Wildo provider packages into the ARCHIVED catalogue, `_code_archive/providers/<ref>/`: since the cut-over\n * (#2019) its output is a seed someone adopts by hand into `providers-registry/<ref>/`, never something an application\n * receives. The catalogue is a build-time input that lives OUTSIDE this repository (a\n * sibling checkout), so its path is an argument and never a default: a tool that assumed a\n * repo-relative location would break the moment anybody cloned the sources somewhere else, and\n * vendoring 21 GB of somebody else's specs is a fork, not a build input.\n *\n * What it emits is ordinary Wildo code. No third-party package becomes a runtime dependency of any\n * application and nothing third-party executes — the operations are DATA, run by the engine's own\n * HTTP client. That distinction is the reason this command exists at all: the alternative, wrapping\n * and executing published bundles, was built, measured, and deleted on 2026-09-06.\n */\nexport default class FwkGenerateProvidersCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'fwk generate-providers',\n description: 'Transpose an external catalogue (Activepieces or Sim) into the archived provider catalogue (_code_archive/providers/), as seeds to adopt from.',\n category: CommandCategory.Fwk,\n flags: FLAGS,\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const frameworkRoot = ctx.cliContext.resolvedHomes.framework.repositoryRoot;\n if (frameworkRoot === undefined || frameworkRoot === null) {\n ctx.log.error('Framework path not set. Run `wildo init` inside the framework workspace first.');\n return { success: false };\n }\n\n const cataloguePath = ctx.flags[FLAG_CATALOGUE] as string | undefined;\n const discovered = cataloguePath === undefined ? discoverSiblingCatalogues(frameworkRoot) : [];\n if (cataloguePath === undefined && discovered.length === 0) {\n ctx.log.error(\n '--catalogue is required: the source catalogues live outside this repository, so their path cannot be assumed.',\n );\n ctx.log.error(\n `Nothing was found at the conventional location either (${join(dirname(frameworkRoot), SIBLING_CATALOGUE_DIRECTORY)}). `\n + 'A catalogue is identified by its LAYOUT, never by its directory name — an Activepieces checkout contains '\n + '`packages/pieces/community`, a Sim one contains `apps/sim/tools`. Locate yours with:\\n'\n + ' find ~ -type d -path \"*/packages/pieces/community\" -not -path \"*/node_modules/*\"\\n'\n + ' find ~ -type d -path \"*/apps/sim/tools\" -not -path \"*/node_modules/*\"',\n );\n return { success: false };\n }\n\n const catalogueRoots = cataloguePath === undefined\n ? discovered\n : cataloguePath.split(',').map((entry) => resolve(entry.trim())).filter((entry) => entry.length > 0);\n\n if (cataloguePath === undefined) {\n // Say WHICH, always. A discovered path is one the caller did not type, so a run that silently\n // used the wrong checkout would be indistinguishable from one that used the right one — and\n // running against the wrong Activepieces does not fail, it succeeds at a different upstream\n // commit. Naming them is what makes the convenience auditable.\n ctx.log.info(`--catalogue not given; using the catalogues beside the framework: ${catalogueRoots.join(', ')}`);\n }\n const layouts: Array<{ readonly layout: CatalogueLayout; readonly revision: string }> = [];\n for (const root of catalogueRoots) {\n // Each catalogue announces itself by its own layout. Detecting it beats a flag the caller has\n // to remember and get right: a wrong flag reads every file and finds nothing, which looks\n // exactly like an empty catalogue.\n const layout = detectCatalogue(root);\n if (layout === undefined) {\n ctx.log.error(\n `${root} is neither an Activepieces checkout (packages/pieces/community) nor a Sim one (apps/sim/tools). Point --catalogue at each repository ROOT.`,\n );\n return { success: false };\n }\n layouts.push({ layout, revision: readRevision(root) });\n }\n\n const vendor = ctx.flags[FLAG_VENDOR] as string | undefined;\n const limit = ctx.flags[FLAG_LIMIT] as string | undefined;\n const dryRun = ctx.flags[FLAG_DRY_RUN] === true;\n // FROZEN at the cut-over (#2019, decided by Paul 2026-09-29): the generated catalogue no longer ships. It is archived,\n // and this importer keeps working only so a vendor can be re-transposed as a SEED: a starting point someone adopts\n // by hand into `providers-registry/<ref>/`. It writes nowhere else, so nothing it emits can reach an application.\n const providersRoot = join(frameworkRoot, '_code_archive', 'providers');\n\n // Read every catalogue first, merge second, emit third. The order is what makes one provider per\n // vendor possible: a per-catalogue emit could only ever produce one package per SOURCE, which is\n // exactly the shape Paul ruled out on 2026-09-06.\n const read: TransposedProvider[] = [];\n // Keyed by the catalogue ENTRY a view was read from; re-keyed to vendors by the merge join below.\n const unreadableByEntry = new Map<string, TransposedOperation[]>();\n let vendorsRead = 0;\n\n for (const { layout, revision } of layouts) {\n let entries = readdirSync(layout.vendorsRoot).filter(\n (entry) => !entry.startsWith('__') && statSync(join(layout.vendorsRoot, entry)).isDirectory(),\n );\n // Sim spells a vendor with underscores and Activepieces with hyphens; accept either spelling so\n // `--vendor google-sheets` reaches both catalogues.\n if (vendor !== undefined) entries = entries.filter((entry) => entry.replace(/_/g, '-') === vendor.replace(/_/g, '-'));\n if (limit !== undefined) entries = entries.slice(0, Number(limit));\n\n for (const entry of entries) {\n const directory = join(layout.vendorsRoot, entry);\n const result =\n layout.source === ProviderCatalogueSource.ACTIVEPIECES\n ? readActivepiecesPiece({ pieceDirectory: directory, sourceVersion: revision })\n : readSimToolFamily({ toolDirectory: directory, sourceVersion: revision });\n read.push(result.provider);\n vendorsRead += 1;\n const existing = unreadableByEntry.get(result.provider.ref) ?? [];\n unreadableByEntry.set(result.provider.ref, [...existing, ...result.unreadable]);\n }\n }\n\n if (read.length === 0) {\n ctx.log.error(vendor === undefined ? 'No vendors found in any catalogue.' : `No vendor directory named '${vendor}' in any catalogue.`);\n return { success: false };\n }\n\n // Recorded vendor-identity joins first (#993): the catalogues name some vendors differently, and the\n // merge groups by ref — so without this an Activepieces entry holding the OAuth2 endpoints never meets\n // the Sim entry holding the operations, and its auth is never even compared.\n const joined = applyMergedCatalogueEntries({ providers: read, unreadableByEntry, decisionsFor: (ref) => readDecisions(providersRoot, ref) });\n const merged = mergeTransposedProviders(joined.providers);\n // An operation the merge withdrew for sitting on another base URL (review F1) is part of the vendor's story like any\n // reader refusal, so the inventory counts it under its class instead of it silently vanishing between two views.\n const unreadableByVendor = new Map<string, readonly TransposedOperation[]>(joined.unreadableByVendor);\n for (const [ref, withdrawn] of merged.withdrawnByVendor) unreadableByVendor.set(ref, [...(unreadableByVendor.get(ref) ?? []), ...withdrawn]);\n const reports = merged.reports;\n // ONE vendor API version per provider (Paul, 2026-09-14, #1053), applied to the merged vendor: a recorded\n // `apiVersion` decision withdraws every resolved operation on another version into the same unreadable record, and\n // a vendor with no decision keeps its mix, reported by the inventory as `apiVersionsInPaths`.\n const apiVersionsInPathsByVendor = new Map<string, readonly string[]>();\n const versioned = merged.providers.map((provider) => {\n const settlement = settleProviderApiVersion(provider, readDecisions(providersRoot, provider.ref));\n if (settlement.withdrawn.length > 0) unreadableByVendor.set(provider.ref, [...(unreadableByVendor.get(provider.ref) ?? []), ...settlement.withdrawn]);\n if (settlement.versionsInPaths.length > 1) apiVersionsInPathsByVendor.set(provider.ref, settlement.versionsInPaths);\n return settlement.provider;\n });\n // Enrichment runs AFTER the merge, on the operations that survived it, because a document answers\n // a question about an operation rather than proposing one — and the merge is what decides which\n // operations exist.\n //\n // ON by default since #1572: `policy.json` names OPENAPI_DOCUMENT, so the corpus is part of a COMPLETE batch\n // exactly as each catalogue is, and it is found beside the framework by layout the same way.\n const openApiFlag = ctx.flags[FLAG_OPENAPI] as string | undefined;\n const openApiRoot = openApiFlag === undefined ? discoverSiblingOpenApiCorpus(frameworkRoot) : resolve(openApiFlag);\n if (openApiFlag === undefined) {\n if (openApiRoot === undefined) {\n ctx.log.warn(\n `No OpenAPI corpus beside the framework (${join(dirname(frameworkRoot), SIBLING_CATALOGUE_DIRECTORY)}/*/apis/openapi) and --openapi not given: `\n + 'this batch is PARTIAL — no vendor is withdrawn and stale record entries are not checked, but every operation a vendor '\n + 'document had named is emitted refused again, and its id moves to its vendor ledger\\'s `withdrawn` until a full batch restores it.',\n );\n } else {\n ctx.log.info(`--openapi not given; using the OpenAPI corpus beside the framework: ${openApiRoot}`);\n }\n } else if (!isOpenApiCorpus(openApiRoot!)) {\n // A mistyped path must not read as a corpus that describes nothing: the run would count as FULL (it did\n // \"read\" OPENAPI_DOCUMENT), revert every named operation and record every vendor as having no description.\n ctx.log.error(`--openapi ${openApiFlag} is not an OpenAPI corpus: expected a directory of vendor domains, each holding \\`openapi.json\\` documents (Jentic's \\`apis/openapi\\`).`);\n return { success: false };\n }\n const corpusRevision = openApiRoot === undefined ? undefined : readRevision(openApiRoot);\n const pinnedDescriptions = openApiRoot === undefined\n ? new Map<string, PinnedOpenApiDescription>()\n : await fetchPinnedDescriptions(providersRoot, new Set(versioned.map((provider) => provider.ref)));\n for (const [ref, pin] of pinnedDescriptions) {\n if (pin.unreadableBecause !== undefined) ctx.log.warn(`${ref}: the pinned OpenAPI description ${pin.url} could not be read — ${pin.unreadableBecause}`);\n }\n const enrichment = openApiRoot === undefined || corpusRevision === undefined\n ? undefined\n : enrichFromOpenApiDocuments(versioned, { openApiRoot, corpusRevision, pinnedDescriptions });\n if (enrichment !== undefined && enrichment.report.vendorsWithADocument === 0 && vendor === undefined && limit === undefined) {\n // The corpus layout was right and still nothing joined across the whole catalogue: that is a broken corpus\n // (an empty checkout, a moved tree), never a fact about 660 vendors. Refused rather than emitted as FULL.\n ctx.log.error(`The OpenAPI corpus at ${openApiRoot} describes none of this batch's vendors — refusing to emit a full batch from it.`);\n return { success: false };\n }\n const providers = enrichment?.providers ?? versioned;\n // What this run READ, for the full-batch test and the inventory: the catalogues by layout, and the corpus when\n // it was consulted. A run that skipped the corpus is partial by `policy.json`'s definition.\n const sourcesRead: string[] = [\n ...layouts.map(({ layout }) => layout.source),\n ...(enrichment === undefined ? [] : [ProviderCatalogueSource.OPENAPI_DOCUMENT]),\n ];\n const completed = reports.reduce((total, report) => total + report.completed, 0);\n const deduplicated = reports.reduce((total, report) => total + report.deduplicated, 0);\n\n // Collected as it is reported, so the file and the warnings can never disagree about who was\n // withheld — two passes over the same predicate is how they would drift.\n const withheld: Array<{ ref: string; pending: number; unreadable: number }> = [];\n for (const provider of providers) {\n if (provider.operations.some((o) => o.resolution === TransposedOperationResolution.RESOLVED)) continue;\n const pend = provider.operations.filter((o) => o.resolution === TransposedOperationResolution.PENDING_ENDPOINT).length;\n const unreadable = (unreadableByVendor.get(provider.ref) ?? []).length;\n withheld.push({ ref: provider.ref, pending: pend, unreadable });\n\n // A vendor somebody DECIDED to withhold is not news. This warning exists to surface an entry\n // that produced nothing UNEXPECTEDLY — a vendor whose extraction broke, which somebody might\n // fix — and a deliberate `scrape: false` is the opposite of that. Reporting both made the line\n // fire 214 times a run, and a warning that fires 214 times is read by nobody, which cost the\n // real findings their audience. The withheld entries stay in the inventory, where the question\n // they answer is \"what did we decide\" rather than \"what went wrong\".\n if (readDecisions(providersRoot, provider.ref)?.scrape === false) continue;\n\n ctx.log.warn(`${provider.ref}: no executable operation (${pend} pending, ${unreadable} unreadable) — no subpath exported.`);\n }\n\n // ONE package with a subpath per vendor (Paul, 2026-09-06). The emitter replaces the whole\n // vendor tree, so a vendor that disappears upstream disappears here rather than leaving an\n // exported subpath onto a room that was demolished.\n //\n // Which is why a FILTERED run may not emit. `--vendor` and `--limit` narrow the vendor list, and\n // the replace is unconditional, so emitting after a filter deletes every vendor the filter\n // excluded — 692 of them for `--vendor clockify` — and rewrites `package.json`, `NOTICE` and the\n // companion barrel to describe the one that survived. A partially emitted catalogue is not a\n // smaller catalogue; it is a broken one whose every manifest claims otherwise. Refusing is the\n // honest answer: merging into an existing tree is real complexity for a smoke-run flag (#393).\n const filtered = vendor !== undefined || limit !== undefined;\n if (filtered && !dryRun) {\n ctx.log.error(\n `A filtered run cannot emit: --${vendor !== undefined ? FLAG_VENDOR : FLAG_LIMIT} narrows the batch, and the emitter replaces the whole vendor tree, `\n + 'so emitting would delete every vendor the filter excluded. Add --dry-run to inspect the filtered result, or drop the filter to regenerate.',\n );\n return { success: false };\n }\n\n // Only a run that covered every catalogue the policy names, with no filter, may conclude that a\n // record entry matching nothing is stale. Everything else is a partial look, and a partial look\n // must not withdraw.\n const emitOptions = {\n packageRoot: providersRoot,\n providers,\n unreadableByVendor,\n fullBatch: isFullBatch({ packageRoot: providersRoot, sourcesRead, filtered }),\n unmatchedBeforeEmit: enrichment?.unmatchedPins ?? [],\n };\n // Both branches take their counts from the SAME plan, so a dry run predicts the emit it is a dry\n // run of. Two copies of this accounting disagreed by 856 operations (#393).\n const emitResult = dryRun ? planProvidersPackage(emitOptions) : emitProvidersPackage(emitOptions);\n const refusedTotal = [...emitResult.refusedByVendor.values()].reduce((total, byReason) => total + [...byReason.values()].reduce((sum, count) => sum + count, 0), 0);\n\n // The consolidated account of the catalogue, made durable.\n //\n // Four records existed and none answered \"where do we stand\": the ledger holds operation\n // identity, the decisions hold judgements one file at a time, each vendor's own\n // `pending-operations.json` holds that vendor's losses, and this run's summary holds totals\n // naming nobody. So \"which vendors are unjudged\" or \"which are platform internals\" meant a script\n // across all four — which is why those answers kept being re-derived and then lost.\n //\n // Guarded by the same condition as the withdrawal pass, and for the same reason: a filtered or\n // dry run has not seen every vendor, so its inventory would omit entries it never opened.\n if (!dryRun && !filtered) {\n const withheldRefs = new Map(withheld.map((row) => [row.ref, row]));\n writeInventory(providersRoot, {\n generatedOn: new Date().toISOString().slice(0, 10),\n sourcesRead,\n entries: providers.map((provider) => {\n const decisions = readDecisions(providersRoot, provider.ref);\n const lost = withheldRefs.get(provider.ref);\n const vendor = resolveCatalogueVendor(provider.ref, decisions);\n return {\n ref: provider.ref,\n // The company the ref is emitted under, when a decision names one (#1673); the same resolver the module uses.\n ...(vendor === provider.ref ? {} : { vendor }),\n classification: decisions?.classification ?? CatalogueEntryClassification.THIRD_PARTY_VENDOR,\n sources: [...new Set(provider.operations.map((operation) => operation.provenance.source))].sort(),\n // Asked, never re-derived. `vendorExportBlocker` has several clauses — nothing executable,\n // withheld by decision, a ref the ENGINE owns and cannot be augmented, and a base URL every call\n // would refuse (#1015) — and reconstructing it here once missed the third, reporting 707 exports\n // against 682 actually emitted. The emitter now reports the set it built the package from.\n exported: emitResult.exportedOperationCounts.has(provider.ref),\n // HOW it ships, asked of the emitter too: an engine-owned ref exports an augmentation, not a provider (#1673).\n ...(emitResult.augmentingRefs.has(provider.ref) ? { exportedAs: CatalogueExportedAs.AUGMENTS_ENGINE_REF } : {}),\n withheld: decisions?.scrape === false,\n // Judged, not merely decided: a `scrape: false` file is a decision about SHIPPING, and\n // reading it as an admissibility judgement would report the withheld entries as done.\n admissibilityJudged: (decisions?.admissibleConnections?.length ?? 0) > 0,\n // The count the emitter shipped, falling back to the planned count for an entry it did\n // not export — a withheld vendor still has operations, and reporting zero would read as\n // \"nothing to ship\" rather than \"we chose not to\".\n operations: emitResult.exportedOperationCounts.get(provider.ref)\n ?? provider.operations.filter((o) => o.resolution === TransposedOperationResolution.RESOLVED).length,\n pending: lost?.pending ?? provider.operations.filter((o) => o.resolution === TransposedOperationResolution.PENDING_ENDPOINT).length,\n unreadable: lost?.unreadable ?? (unreadableByVendor.get(provider.ref) ?? []).length,\n refusedAtEmit: Object.fromEntries(emitResult.refusedByVendor.get(provider.ref) ?? new Map()),\n ...(apiVersionsInPathsByVendor.has(provider.ref) ? { apiVersionsInPaths: apiVersionsInPathsByVendor.get(provider.ref) } : {}),\n // The reported account fact the source dials with no origin decision yet, and a mix of facts no\n // derivation may pick from (#1052) — both the population still owed a judgement.\n ...(provider.baseUrlReportedFact !== undefined && resolveReportedAccountFacts(provider, decisions).baseUrlConnectionFact === undefined\n ? { reportedOriginFactUnadmitted: provider.baseUrlReportedFact }\n : {}),\n ...(provider.conflictingReportedOriginFacts === undefined ? {} : { reportedOriginFactsConflicting: provider.conflictingReportedOriginFacts }),\n // The choice surface (#1045): inputs whose listing ships, and dropdowns whose listing could not be read.\n ...(countInputOptionsDeclared(provider) === 0 ? {} : { inputOptionsDeclared: countInputOptionsDeclared(provider) }),\n ...(provider.inputOptionsUnreadable === undefined || provider.inputOptionsUnreadable === 0 ? {} : { inputOptionsUnreadable: provider.inputOptionsUnreadable }),\n // The story of an entry that ships nothing, asked of the emitter rather than re-derived (Paul, 2026-09-14):\n // WHY no provider is exported, and what became of its operations, readable without re-running anything.\n ...notExportedStory(emitResult.notExported.get(provider.ref), unreadableByVendor.get(provider.ref) ?? []),\n // DERIVED (#1572): whether the vendor has an OpenAPI description agreeing with its base URL, and whether it\n // came from a URL the vendor controls. A re-run may change it — that is what makes it a column, not a decision.\n ...openApiDescriptionColumn(enrichment?.descriptionByVendor.get(provider.ref)),\n };\n }).concat([...joined.absorbedBy].map(([entry, vendor]) => {\n // An entry a join absorbed ships nothing of its own; its counts live on `vendor`. Recorded so the\n // inventory still holds every entry the batch read (#993 review F8).\n const decisions = readDecisions(providersRoot, entry);\n return {\n ref: entry,\n classification: decisions?.classification ?? CatalogueEntryClassification.THIRD_PARTY_VENDOR,\n sources: [...new Set(read.filter((view) => view.ref === entry).flatMap((view) => view.provenances.map((provenance) => provenance.source)))].sort(),\n exported: false,\n withheld: decisions?.scrape === false,\n admissibilityJudged: (decisions?.admissibleConnections?.length ?? 0) > 0,\n operations: 0,\n pending: 0,\n unreadable: 0,\n refusedAtEmit: {},\n mergedInto: vendor,\n };\n })),\n });\n }\n\n // A refusal count that moves is ordinary source movement, not a regression, so it is REPORTED\n // and never refused. Reporting it here is what stops it being noticed only by whoever reads a\n // 738-file ledger diff.\n if (emitResult.refusalMovement.size > 0) {\n const worsened = [...emitResult.refusalMovement].filter(([, byReason]) => Object.values(byReason).some((movement) => movement > 0));\n const improved = [...emitResult.refusalMovement].filter(([, byReason]) => Object.values(byReason).every((movement) => movement < 0));\n ctx.log.info(\n `Refusals moved for ${emitResult.refusalMovement.size} vendor(s): ${worsened.length} refusing MORE than last run, ${improved.length} refusing fewer. `\n + (worsened.length === 0\n ? 'Nothing got worse.'\n : `Worse: ${worsened\n .slice(0, 8)\n .map(([ref, byReason]) => `${ref} (${Object.entries(byReason).filter(([, m]) => m > 0).map(([reason, m]) => `+${m} ${reason}`).join(', ')})`)\n .join('; ')}${worsened.length > 8 ? ` and ${worsened.length - 8} more` : ''}.`),\n );\n }\n\n ctx.log.info(\n `${dryRun ? 'Would emit' : 'Emitted'} one package with ${emitResult.vendors} vendor subpath(s)${emitResult.augmentingRefs.size === 0 ? '' : ` (${emitResult.augmentingRefs.size} of them augmenting an engine provider)`}${emitResult.frontendFacets.length === 0 ? '' : ` and ${emitResult.frontendFacets.length} hand-authored frontend facet subpath(s)`}, merged from ${vendorsRead} vendor view(s) across `\n + `${layouts.map(({ layout, revision }) => `${layout.source}@${revision}`).join(' + ')}: `\n + `${emitResult.executableOperations} executable, ${emitResult.pendingOperations} pending an endpoint, ${emitResult.unreadableOperations} unreadable, `\n + `${refusedTotal} refused at emit across ${emitResult.refusedByVendor.size} vendor(s). `\n + `The merge completed ${completed} pending operation(s) from another catalogue's endpoint and collapsed ${deduplicated} duplicate(s).`\n + (enrichment === undefined\n ? ''\n : ` Vendor documents (OPENAPI_DOCUMENT@${corpusRevision}) answered ${enrichment.report.operationsMatched} operation(s) across ${enrichment.report.vendorsWithADocument} vendor(s), `\n + `adding ${enrichment.report.responseShapesAdded} response shape(s) and ${enrichment.report.summariesAdded} summary(ies), and naming `\n + `${enrichment.report.positionalHolesNamed} positional path hole(s) across ${enrichment.report.operationsNamed} operation(s); `\n + `${enrichment.report.namingDeclined} joined operation(s) kept a positional hole the document could not name.`),\n );\n return { success: true };\n }\n}\n\ninterface CatalogueLayout {\n /**\n * Typed from the engine's `ProviderCatalogueSource` rather than re-spelled, which this field's\n * own comment already said it was: two hand-written literals beside a sentence naming the enum\n * they copy. The narrowing to two members is deliberate and is not the enum's shape — the third,\n * `OPENAPI_DOCUMENT`, is not a CATALOGUE and is never produced by `detectCatalogue`. Its corpus is found by a\n * layout of its own (`apis/openapi`, {@link discoverSiblingOpenApiCorpus}) and enters after the merge through\n * `enrichFromOpenApiDocuments`, as an oracle that adds no operation.\n */\n readonly source: ProviderCatalogueSource.ACTIVEPIECES | ProviderCatalogueSource.SIM;\n /** The directory whose children are one vendor each. */\n readonly vendorsRoot: string;\n}\n\nfunction detectCatalogue(root: string): CatalogueLayout | undefined {\n const activepieces = join(root, 'packages', 'pieces', 'community');\n if (existsSync(activepieces)) return { source: ProviderCatalogueSource.ACTIVEPIECES, vendorsRoot: activepieces };\n const sim = join(root, 'apps', 'sim', 'tools');\n if (existsSync(sim)) return { source: ProviderCatalogueSource.SIM, vendorsRoot: sim };\n return undefined;\n}\n\n/**\n * The catalogue's exact revision, recorded against every operation so a regeneration is\n * attributable to a specific upstream movement. A checkout with no git metadata is named as such\n * rather than given a plausible-looking version, because an invented provenance is worse than an\n * absent one.\n */\nfunction readRevision(catalogueRoot: string): string {\n try {\n return execSync('git rev-parse --short HEAD', { cwd: catalogueRoot, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim();\n } catch {\n return 'unknown-revision';\n }\n}\n\n/**\n * The inventory fields that make an unexported entry followable: why no provider ships, which base-URL hosts no\n * allowance admits, and its unreadable operations counted by `TransposedUnreadableClass` (#1019 / #1015).\n */\n/** Inputs whose listing is among the provider's resolved operations — the ones the emitter renders `inputOptions` for. */\nfunction countInputOptionsDeclared(provider: TransposedProvider): number {\n const key = (method: string | undefined, pathTemplate: string | undefined): string => `${method} ${(pathTemplate ?? '').replace(/\\{[^}]*\\}/g, '{}')}`;\n const resultPathByEndpoint = new Map(\n provider.operations\n .filter((operation) => operation.resolution === TransposedOperationResolution.RESOLVED)\n .map((operation) => [key(operation.method, operation.pathTemplate), operation.resultPath ?? '']),\n );\n let declared = 0;\n for (const operation of provider.operations) {\n if (operation.resolution !== TransposedOperationResolution.RESOLVED || operation.derivedListing === true) continue;\n for (const field of operation.inputFields) {\n if (field.options === undefined) continue;\n // The same test the emitter applies: the shipped operation answers the list the picker maps over.\n if (resultPathByEndpoint.get(key(field.options.endpoint.method, field.options.endpoint.pathTemplate)) === (field.options.resultPath ?? '')) declared += 1;\n }\n }\n return declared;\n}\n\n/**\n * Fetch every decision's pinned OpenAPI description (#1572) — the only network read in the batch.\n *\n * A pin exists only where the corpus lacks the vendor's official description, so there is no checkout to read it\n * from. A document that cannot be fetched or parsed is RECORDED as unreadable rather than skipped: the enrichment\n * turns that into a record entry that matched nothing, so a full batch refuses with the reason instead of quietly\n * shipping the vendor's positional holes refused again. JSON first, YAML otherwise (vendors publish both).\n */\n/**\n * How long one pinned description may take to arrive. Sized by the largest pinned today — incident.io's\n * description is 7.3 MB — on a slow link, with nobody waiting but the operator running a regeneration; a vendor\n * host that accepts the connection and never answers must not hold the batch open indefinitely.\n */\nconst PINNED_DESCRIPTION_FETCH_TIMEOUT_MS = 120_000;\n\nasync function fetchPinnedDescriptions(providersRoot: string, readRefs: ReadonlySet<string>): Promise<Map<string, PinnedOpenApiDescription>> {\n const pinned = new Map<string, PinnedOpenApiDescription>();\n for (const ref of readDecisionRefs(providersRoot)) {\n const pin = readDecisions(providersRoot, ref)?.openApiDescription;\n if (pin === undefined) continue;\n assertOpenApiDescriptionPin(ref, pin);\n // Fetched only for a vendor this run read: a filtered run needs no other, and a pin naming a vendor the batch\n // did not produce is recorded without a fetch so the full-batch check still refuses it.\n if (!readRefs.has(ref)) {\n pinned.set(ref, { url: pin.url });\n continue;\n }\n try {\n const response = await fetch(pin.url, { signal: AbortSignal.timeout(PINNED_DESCRIPTION_FETCH_TIMEOUT_MS) });\n if (!response.ok) {\n pinned.set(ref, { url: pin.url, unreadableBecause: `HTTP ${response.status}` });\n continue;\n }\n const text = await response.text();\n let document: OpenApiDocument;\n try {\n document = JSON.parse(text) as OpenApiDocument;\n } catch {\n // The default alias bound stays: this is a document from the network, and unbounded alias expansion is\n // the one YAML feature that turns a small response into an arbitrarily large value.\n document = parseYaml(text) as OpenApiDocument;\n }\n const server = document?.servers?.[0]?.url;\n pinned.set(ref, typeof server === 'string' && server !== ''\n ? { url: pin.url, document }\n : { url: pin.url, unreadableBecause: 'it declares no `servers` entry, so no operation can join it' });\n } catch (error) {\n pinned.set(ref, { url: pin.url, unreadableBecause: error instanceof Error ? error.message : String(error) });\n }\n }\n return pinned;\n}\n\n/** A corpus directory: its children are vendor domains, and at least one holds an `openapi.json` within four levels. */\nfunction isOpenApiCorpus(root: string): boolean {\n if (!existsSync(root) || !statSync(root).isDirectory()) return false;\n const holdsDocument = (directory: string, depth: number): boolean => {\n if (depth > 4) return false;\n for (const entry of readdirSync(directory)) {\n const full = join(directory, entry);\n if (entry === 'openapi.json') return true;\n if (statSync(full).isDirectory() && holdsDocument(full, depth + 1)) return true;\n }\n return false;\n };\n return readdirSync(root).some((entry) => {\n const vendorDirectory = join(root, entry);\n return statSync(vendorDirectory).isDirectory() && holdsDocument(vendorDirectory, 0);\n });\n}\n\nfunction openApiDescriptionColumn(\n description: CatalogueOpenApiDescription | undefined,\n): Pick<InventoryEntry, 'openApiDescription'> {\n return description === undefined ? {} : { openApiDescription: description };\n}\n\nfunction notExportedStory(\n notExported: VendorNotExported | undefined,\n unreadable: readonly TransposedOperation[],\n): Pick<InventoryEntry, 'notExportedBecause' | 'baseUrlHostsNotAdmitted' | 'baseUrlPlaceholdersUnanswered' | 'augmentationBaseUrls' | 'unreadableByClass'> {\n const byClass: Record<string, number> = {};\n for (const operation of unreadable) {\n const key = operation.unreadableClass ?? 'UNCLASSIFIED';\n byClass[key] = (byClass[key] ?? 0) + 1;\n }\n return {\n ...(notExported === undefined ? {} : { notExportedBecause: notExported.reason }),\n ...(notExported?.baseUrlHostsNotAdmitted === undefined ? {} : { baseUrlHostsNotAdmitted: notExported.baseUrlHostsNotAdmitted }),\n ...(notExported?.baseUrlPlaceholdersUnanswered === undefined ? {} : { baseUrlPlaceholdersUnanswered: notExported.baseUrlPlaceholdersUnanswered }),\n ...(notExported?.augmentationBaseUrls === undefined ? {} : { augmentationBaseUrls: notExported.augmentationBaseUrls }),\n ...(unreadable.length === 0 ? {} : { unreadableByClass: byClass }),\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.command.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"graph.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/fwk/graph.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAkB,MAAM,yBAAyB,CAAC;AAY1G;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,WAAW;IACtD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAKxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CA2BvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.command.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"graph.command.js","sourceRoot":"","sources":["../../../../src/commands/fwk/graph.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,MAAM,UAAU,GAAG,OAAO,CAAC;AAE3B,MAAM,KAAK,GAAmC;IAC5C,CAAC,UAAU,CAAC,EAAE;QACZ,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,+EAA+E;QAC5F,OAAO,EAAE,KAAK;KACf;CACF,CAAC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O,EAAE,CAAC,CAAC;gBACnE,OAAO,CAAC,CAAC,CAAC,CAAC;YACb,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,EAAE,OAAO,EAAE,QAAQ,KAAK,CAAC,EAAE,CAAC;IACrC,CAAC;CACF","sourcesContent":["import { spawn } from 'node:child_process';\nimport { join } from 'node:path';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult, FlagDefinition } from '~wildo-cli/kernel/types';\n\nconst FLAG_CHECK = 'check';\n\nconst FLAGS: Record<string, FlagDefinition> = {\n [FLAG_CHECK]: {\n type: 'boolean',\n description: 'Exit non-zero if .claude/FRAMEWORK_KNOWLEDGE_GRAPH.md is stale (CI-suitable).',\n default: false,\n },\n};\n\n/**\n * `wildo fwk graph` — (re)build the framework-knowledge reverse-index at\n * `.claude/FRAMEWORK_KNOWLEDGE_GRAPH.md`.\n *\n * Wraps `scripts/fwk/build-knowledge-graph.sh`. Generates a flat reverse\n * index from each `@wildo_source` topic id to (a) the source file:line\n * where it's anchored and (b) the framework-knowledge skill(s) that cite\n * it via `{{REFERENCE:<id>}}`. Use before editing an anchored block.\n *\n * `CommandCategory.Fwk` — only available inside the framework workspace.\n */\nexport default class FwkGraphCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'fwk graph',\n description: '(Re)build .claude/FRAMEWORK_KNOWLEDGE_GRAPH.md — anchor topic id → source file:line + citing skills.',\n category: CommandCategory.Fwk,\n flags: FLAGS,\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const frameworkPath = ctx.cliContext.resolvedHomes.framework.repositoryRoot;\n if (!frameworkPath) {\n ctx.log.error('Framework path not set. Run this command from inside the wildo-ai monorepo.');\n return { success: false };\n }\n\n const scriptPath = join(frameworkPath, 'scripts', 'fwk', 'build-knowledge-graph.sh');\n const args = [scriptPath];\n if (ctx.flags[FLAG_CHECK] === true) {\n args.push('--check');\n }\n\n const exitCode = await new Promise<number>((resolve) => {\n const child = spawn('bash', args, {\n cwd: frameworkPath,\n stdio: 'inherit',\n });\n child.on('exit', (code) => resolve(code ?? 1));\n child.on('error', (err) => {\n ctx.log.error(`Failed to launch fwk-graph script: ${err.message}`);\n resolve(1);\n });\n });\n\n return { success: exitCode === 0 };\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-all.command.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"publish-all.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/fwk/publish-all.command.ts"],"names":[],"mappings":"AA4CA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAG7D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAgC1F;;;;GAIG;AACH,oBAAY,uBAAuB;IACjC,gHAAgH;IAChH,OAAO,IAAI;IACX,wFAAwF;IACxF,SAAS,KAAK;IACd,0EAA0E;IAC1E,WAAW,KAAK;CACjB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAenE;AAED,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,WAAW;IAC3D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAqBxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;YAkGxC,cAAc;IAW5B,OAAO,CAAC,IAAI;IAUZ;;;;;;OAMG;IACH,OAAO,CAAC,eAAe;IAevB;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,OAAO,CAAC,UAAU;IAwBlB,+FAA+F;YACjF,cAAc;YAQd,uBAAuB;IAIrC,yGAAyG;YAC3F,qBAAqB;IAKnC;;;;;;;;OAQG;IACH,OAAO,CAAC,qBAAqB;IA6B7B,2GAA2G;YAC7F,aAAa;IAQ3B;;;;OAIG;YACW,QAAQ;CAgBvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-all.command.js","sourceRoot":"","sources":["../../../../../../src/commands/fwk/publish-all.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAClG,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,GACf,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,gEAAgE,CAAC;AAExE,iHAAiH;AACjH,MAAM,oBAAoB,GAAG,QAAQ,CAAC;AAEtC,uGAAuG;AACvG,MAAM,uBAAuB,GAAG,QAAQ,CAAC;AAEzC,qGAAqG;AACrG,MAAM,0BAA0B,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAEhE;;;;GAIG;AACH,MAAM,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AC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YACjJ,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;gBAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,aAAa,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,gBAAgB,GAAG,CAAC,CAAC;;gBAC/G,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,+BAA+B,SAAS,GAAG,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * `wildo fwk publish all` — release the framework in ONE command: everything an application creator\n * installs, from a framework checkout, in the order that keeps every published artifact installable.\n *\n * wildo fwk publish all # release (bumping the patch first if this version is already out)\n * wildo fwk publish all --bump minor # bump minor first\n * wildo fwk publish all --distTag next # publish under `next`; leaves `latest`, the Docker `latest` alias and the site alone\n * wildo fwk publish all --dryRun # compile, bundle, npm + Docker + site dry runs — nothing published\n *\n * ## The order, and why each step sits where it does\n *\n * 1. VERSION. A release needs a version npm has never seen. If the checkout's framework version is\n * already published it is bumped (`--bump`, default patch) — so repeated releases need no hand edit.\n * \"Could not ask npm\" refuses the release: read as \"not published\" it would skip the bump and push\n * a Docker tag over an image that was already released.\n * 2. `fwk generate-docs`. The compiled framework knowledge is not produced by any package build, and\n * the npm lane refuses knowledge compiled for another version (#1573).\n * 3. BUNDLE the workbench (`vite build`, its `bundle` script). It is the one published package no dev\n * watcher builds, and it is deliberately not a `build` script: turbo's `build` runs on every cold CI\n * VM, where a ~55 s bundle nothing there uses would be pure cost. Built with every `VITE_*` variable\n * removed from the environment, because Vite inlines them into what every app creator downloads.\n * 4. `fwk publish npm --dryRun`. Every npm gate (stale build, stale knowledge, licensing, closure) runs\n * HERE, before anything leaves the machine: npm and Docker publication cannot be taken back.\n * 5. `fwk publish docker`. BEFORE npm, because the published CLI names `wildo-platform:<its version>`:\n * a CLI that reached npm first would send every application creator's `local up` after an image\n * that does not exist yet. The image is built from this checkout's build output, not from npm.\n * 6. `fwk publish npm`. Internally in dependency order, the CLI last.\n * 7. The installers site (`get.wildo.ai`), `latest` releases only — it serves the installers and names\n * the current version. Without the site's deploy config (`marketing/tooling/.env`) it is skipped\n * with a WARNING and the release still succeeds: npm and Docker hold the release, and the\n * installers install whatever npm's `latest` is.\n *\n * Each step runs as a child `wildo` invocation of the command that owns it, so every gate and log line\n * is exactly the one that command already has; this file only sequences them and stops at the first\n * failure. Re-running after a failure is safe: a version not yet on npm is not bumped again, and the npm\n * lane skips packages already published.\n *\n * Not included on purpose: a full `pnpm build`. The dev watchers own every package's `dist/`, and the\n * npm lane's freshness gate names any package they left stale — run `pnpm build` then and retry.\n */\nimport { spawnSync } from 'child_process';\nimport { existsSync, readFileSync, realpathSync } from 'fs';\nimport { dirname, join } from 'path';\nimport { confirm } from '@inquirer/prompts';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { forwardedGlobalFlags } from '~wildo-cli/kernel/command-runner';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { FrameworkReleaseService } from '~wildo-cli/services/framework/framework-release.service';\nimport {\n FrameworkVersionService,\n parseSemverBumpKind,\n SEMVER_BUMP_KINDS,\n SemverBumpKind,\n} from '~wildo-cli/services/framework/framework-version.service';\nimport {\n npmRegistryClient,\n PackageManagerCommand,\n RegistryVersionStatus,\n spawnPackageManager,\n WILDO_CLI_PACKAGE_NAME,\n WORKBENCH_PACKAGE_NAME,\n} from '~wildo-cli/services/framework/framework-update.service';\nimport {\n FRAMEWORK_IMAGE_CREATED_LABEL,\n FRAMEWORK_IMAGE_REVISION_LABEL,\n FrameworkDockerPublishService,\n} from '~wildo-cli/services/framework/framework-docker-publish.service';\n\n/** The dist-tag an unqualified `npm install` resolves — the only tag that moves Docker `latest` and the site. */\nconst DEFAULT_NPM_DIST_TAG = 'latest';\n\n/** The workbench script that produces its published `dist/` (see step 3 for why it is not `build`). */\nconst WORKBENCH_BUNDLE_SCRIPT = 'bundle';\n\n/** The installers site's own CLI, relative to the framework root, and the config it deploys with. */\nconst MARKETING_TOOLING_RELATIVE = join('marketing', 'tooling');\n\n/**\n * Exit codes of `wildo-marketing installers --check-live` (`CHECK_LIVE_EXIT` in\n * `marketing/tooling/src/commands/installers.ts`, a standalone project this package cannot import —\n * a test holds the two equal). Anything that is neither CURRENT nor DIFFERENT means \"could not ask\".\n */\nexport enum LiveInstallersCheckExit {\n /** get.wildo.ai serves this checkout's installers byte for byte: redeploying would change nothing users run. */\n CURRENT = 0,\n /** A script differs or is missing on the site: users only get it through a redeploy. */\n DIFFERENT = 10,\n /** The site could not be asked; nothing is known about what it serves. */\n UNREACHABLE = 11,\n}\n\n/**\n * The directory a child `wildo` step must be LAUNCHED from: the CLI's own package directory, found from the\n * entry that started this process (the directory holding the `@wildo-ai/wildo-cli` manifest above it).\n *\n * Run from source (`wildo-dev`), the CLI is started by `tsx`, which reads the `tsconfig.json` of the directory\n * it is LAUNCHED in — the CLI package's, where the `~wildo-cli/*` alias is declared — and only then does\n * `bin/wildo.ts` move into `WILDO_INVOKE_CWD`. A step launched with `cwd: frameworkRoot` got the repository\n * root's tsconfig instead, which declares no such alias, so every step died before running:\n * `Cannot find package '~wildo-cli'`. The compiled CLI resolves nothing from its working directory, which is\n * why only `wildo-dev fwk publish all` failed. Launching every step from here and naming the framework root\n * through `WILDO_INVOKE_CWD` is the same contract `wildo-dev` itself follows, and it holds in both modes.\n *\n * Falls back to this process's working directory when no such manifest is found above the entry.\n */\nexport function resolveCliLaunchDirectory(entryPath: string): string {\n let directory = dirname(realpathSync(entryPath));\n for (;;) {\n const manifestPath = join(directory, 'package.json');\n if (existsSync(manifestPath)) {\n try {\n if ((JSON.parse(readFileSync(manifestPath, 'utf8')) as { name?: string }).name === WILDO_CLI_PACKAGE_NAME) return directory;\n } catch {\n // An unreadable manifest is not the CLI's; keep walking up.\n }\n }\n const parent = dirname(directory);\n if (parent === directory) return process.cwd();\n directory = parent;\n }\n}\n\nexport default class FwkPublishAllCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'fwk publish all',\n description: 'Release the framework in one command: version, knowledge, workbench bundle, Docker image, npm packages, installers site',\n category: CommandCategory.Fwk,\n flags: {\n dryRun: { type: 'boolean', description: 'Plan only: compile knowledge, bundle the workbench, run the npm, Docker and site dry runs; publish nothing', default: false },\n bump: { type: 'string', description: `Bump kind when the current version is already published: ${SEMVER_BUMP_KINDS.join(', ')} (default ${SemverBumpKind.PATCH})`, default: undefined },\n distTag: { type: 'string', description: `npm dist-tag to publish under (default ${DEFAULT_NPM_DIST_TAG}); any other tag leaves Docker latest and the site alone`, default: undefined },\n skipSite: { type: 'boolean', description: 'Do not redeploy the installers site (get.wildo.ai), even when its installers are out of date', default: false },\n site: {\n type: 'boolean',\n description: 'Redeploy the installers site even when it already serves this checkout\\'s installers (it is otherwise left alone)',\n default: false,\n },\n skipDocker: {\n type: 'boolean',\n description: 'Resume a release whose platform image for this version is already pushed: skip the Docker step (refused if the image is absent)',\n default: false,\n },\n force: { type: 'boolean', description: 'Skip the confirmation before publishing', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const dryRun = ctx.flags.dryRun === true;\n const distTag = typeof ctx.flags.distTag === 'string' && ctx.flags.distTag.length > 0 ? ctx.flags.distTag : DEFAULT_NPM_DIST_TAG;\n const moveLatest = distTag === DEFAULT_NPM_DIST_TAG;\n const requestedBump = ctx.flags.bump === undefined ? null : parseSemverBumpKind(ctx.flags.bump);\n if (ctx.flags.bump !== undefined && requestedBump === null) {\n ctx.log.error(`--bump ${String(ctx.flags.bump)} is not one of ${SEMVER_BUMP_KINDS.join(', ')}.`);\n return { success: false };\n }\n const frameworkRoot = FrameworkReleaseService.getFrameworkRoot();\n\n try {\n // ── 1. version ──\n const current = (await FrameworkVersionService.loadFrameworkVersionState(frameworkRoot)).config.frameworkVersion;\n const currentStatus = npmRegistryClient.versionStatus(WILDO_CLI_PACKAGE_NAME, current);\n if (currentStatus === RegistryVersionStatus.UNKNOWN) {\n ctx.log.error(`Could not ask npm whether ${current} is already released (is the registry reachable?). Nothing was changed.`);\n return { success: false };\n }\n const bumpKind = requestedBump ?? (currentStatus === RegistryVersionStatus.PUBLISHED ? SemverBumpKind.PATCH : null);\n const version = bumpKind ? FrameworkVersionService.bumpSemver(current, bumpKind) : current;\n if (bumpKind && npmRegistryClient.versionStatus(WILDO_CLI_PACKAGE_NAME, version) !== RegistryVersionStatus.NOT_PUBLISHED) {\n ctx.log.error(`${version} is already released, or npm could not say. Pass a larger --bump. Nothing was changed.`);\n return { success: false };\n }\n const bumpNote = bumpKind\n ? ` (${bumpKind} bump from ${current}${currentStatus === RegistryVersionStatus.PUBLISHED ? ', which is already published' : ''})`\n : '';\n ctx.log.info(` Release ${version} under npm dist-tag \"${distTag}\"${bumpNote}.`);\n if (dryRun && bumpKind) {\n // A dry run changes nothing, so it validates the checkout AS IT IS; the real run bumps first.\n ctx.log.info(` Dry run: the version stays ${current}, so the steps below validate ${current}; the real run applies the bump first.`);\n }\n\n if (!dryRun && !(await this.confirmRelease(ctx, version))) return { success: false };\n if (bumpKind && !dryRun) {\n await FrameworkVersionService.applyFrameworkVersion(version, frameworkRoot);\n ctx.log.success(` Version set to ${version} across the framework manifests.`);\n }\n\n // Launched from the CLI's own package directory and told the framework root through WILDO_INVOKE_CWD —\n // see `resolveCliLaunchDirectory` for why the step cannot simply run with `cwd: frameworkRoot`.\n const cliLaunchDirectory = resolveCliLaunchDirectory(process.argv[1]);\n const wildo = (label: string, args: string[]): boolean =>\n this.step(ctx, label, process.execPath, [...process.execArgv, process.argv[1], ...forwardedGlobalFlags({ ...ctx.globalFlags, nonInteractive: true }), ...args], cliLaunchDirectory,\n { ...process.env, WILDO_INVOKE_CWD: frameworkRoot });\n\n // ── 2–4. inputs, then every npm gate before anything leaves the machine ──\n // A dry run builds its inputs too — both are local and reversible, and the gates it runs would\n // otherwise judge whatever knowledge and workbench bundle happened to be lying around.\n if (!wildo('compile framework knowledge', ['fwk', 'generate-docs'])) return { success: false };\n if (!this.bundleWorkbench(ctx, frameworkRoot)) return { success: false };\n if (!wildo('npm gates (dry run)', ['fwk', 'publish', 'npm', '--dryRun', ...(moveLatest ? [] : ['--distTag', distTag])])) return { success: false };\n if (dryRun) {\n if (!wildo('Docker plan (dry run)', ['fwk', 'publish', 'docker', '--dryRun', ...(moveLatest ? ['--tagLatest'] : [])])) return { success: false };\n // A site config the dry run cannot even plan with is one the real run would fail on.\n if (moveLatest && ctx.flags.skipSite !== true && this.deploySite(ctx, frameworkRoot, true, ctx.flags.site === true) === false) return { success: false };\n ctx.log.success(` Planned release ${version}. Nothing was published.`);\n return { success: true };\n }\n\n // ── 5. Docker BEFORE npm: the published CLI names wildo-platform:<version> ──\n if (ctx.flags.skipDocker === true) {\n // Resuming: the image must really be there, or the published CLI would name one that is not.\n const missing = await this.missingPlatformImages(frameworkRoot, version);\n if (missing.length > 0) {\n ctx.log.error(`--skipDocker, but ${missing.join(', ')} is not on the registry: the published CLI would name it. Run without --skipDocker.`);\n return { success: false };\n }\n ctx.log.info(`\\n ── Docker image ── already pushed for ${version}; skipped (--skipDocker).`);\n this.reportImageProvenance(ctx, frameworkRoot, await this.platformImages(frameworkRoot, version));\n // The skipped step is the one that moves `latest`, and the interrupted run may have been on\n // another channel — so a `latest` resume points the alias at this version itself (idempotent).\n if (moveLatest && !(await this.repointLatest(ctx, frameworkRoot, version))) return { success: false };\n } else if (!wildo('Docker image', ['fwk', 'publish', 'docker', '--force', ...(moveLatest ? ['--tagLatest'] : [])])) {\n return { success: false };\n }\n // ── 6. npm ──\n if (!wildo('npm packages', ['fwk', 'publish', 'npm', '--force', ...(moveLatest ? [] : ['--distTag', distTag])])) {\n // The image is pushed and immutable for this version; a retry must not rebuild it for ten minutes.\n ctx.log.info(` The platform image for ${version} is already pushed. Once the cause is fixed, resume with:`);\n ctx.log.info(` wildo fwk publish all --skipDocker${moveLatest ? '' : ` --distTag ${distTag}`}`);\n return { success: false };\n }\n // ── 7. installers site ──\n const siteDeployed = moveLatest && ctx.flags.skipSite !== true ? this.deploySite(ctx, frameworkRoot, false, ctx.flags.site === true) : null;\n if (siteDeployed === false) return { success: false };\n\n await this.readBack(ctx, frameworkRoot, version);\n ctx.log.success(` Released ${version}.`);\n ctx.log.info(` Application creators move to it with: wildo update${moveLatest ? '' : ` --tag ${distTag}`}`);\n return { success: true };\n } catch (error) {\n ctx.log.error(`Release failed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n }\n\n private async confirmRelease(ctx: CommandContext, version: string): Promise<boolean> {\n if (ctx.flags.force === true) return true;\n if (ctx.globalFlags.nonInteractive) {\n ctx.log.error('A real release in non-interactive mode requires --force.');\n return false;\n }\n const proceed = await confirm({ message: `Publish ${version} to npm and Docker Hub? Neither can be taken back.`, default: false });\n if (!proceed) ctx.log.info('Cancelled.');\n return proceed;\n }\n\n private step(ctx: CommandContext, label: string, command: string, args: string[], cwd: string, env: NodeJS.ProcessEnv = process.env): boolean {\n ctx.log.info(`\\n ── ${label} ──`);\n const result = spawnSync(command, args, { cwd, env, stdio: 'inherit' });\n if (result.status !== 0) {\n ctx.log.error(` ${label} failed (exit ${result.status ?? 'signal'}); the release stopped here.`);\n return false;\n }\n return true;\n }\n\n /**\n * Bundle the workbench with no `VITE_*` variable in the environment. Vite inlines every `VITE_*` it\n * sees into the bundle — the workbench reads `VITE_COMPANION_URL` and spreads `import.meta.env` over\n * its runtime environment — so a variable set in the publisher's shell would ship in every app\n * creator's workbench. The published bundle must fall back to its own origin, where\n * `wildo-workbench-serve` answers.\n */\n private bundleWorkbench(ctx: CommandContext, frameworkRoot: string): boolean {\n ctx.log.info('\\n ── bundle the workbench ──');\n const env = Object.fromEntries(Object.entries(process.env).filter(([name]) => !name.startsWith('VITE_')));\n const result = spawnPackageManager(PackageManagerCommand.PNPM, ['--filter', WORKBENCH_PACKAGE_NAME, 'run', WORKBENCH_BUNDLE_SCRIPT], {\n cwd: frameworkRoot,\n stdio: 'inherit',\n env,\n });\n if (result.status !== 0) {\n ctx.log.error(` Workbench bundle failed (exit ${result.status ?? 'signal'}); the release stopped here.`);\n return false;\n }\n return true;\n }\n\n /**\n * Redeploy `get.wildo.ai` only when a release changes what it serves.\n *\n * The installers are not a separate host: the marketing website's image carries them under `/get/`,\n * so the only way to ship them is `wildo-marketing deploy`, which copies `website/`, `contact-api/`\n * and the staged installers from THIS checkout, rebuilds the images on the VM and restarts the whole\n * stack. Doing that on every release (several a day) restarted the marketing site for nothing — the\n * scripts install npm's `latest`, so a new CLI needs no new script — and shipped any uncommitted\n * website edit a parallel session had in the shared checkout.\n *\n * So the release first asks `installers --check-live` whether the live scripts differ from this\n * checkout's, byte for byte, and deploys only on DIFFERENT, or when the site could not be asked (a\n * deploy is how stale installers get fixed, so not knowing leans toward it). `--site` forces a deploy;\n * `--skipSite` (checked by the caller) never deploys. The landing page's version number does not need\n * a redeploy: it reads npm's `latest` at view time (`website/src/scripts/install-version.ts`).\n *\n * This makes shipping someone else's unfinished website edit rarer, not impossible: a deploy that\n * does happen still copies the working tree. The deploy lists every uncommitted change in the trees\n * it ships before it runs (`uncommittedDeployedChanges` in the tooling), even under `--yes`.\n *\n * The deploy itself: `--yes` because the release confirmation already covered it, `--dry-run` in a dry\n * run. Its credentials live in `marketing/tooling/.env`; without that file the site is skipped with a\n * warning, louder when the installers are known to be out of date.\n *\n * @returns `null` when skipped, otherwise whether the deploy succeeded.\n */\n private deploySite(ctx: CommandContext, frameworkRoot: string, dryRun: boolean, forced: boolean): boolean | null {\n const toolingRoot = join(frameworkRoot, MARKETING_TOOLING_RELATIVE);\n let knownOutOfDate = false;\n if (!forced) {\n ctx.log.info('\\n ── installers site: compare with get.wildo.ai ──');\n const check = spawnSync(process.execPath, ['src/cli.ts', 'installers', '--check-live'], { cwd: toolingRoot, stdio: 'inherit' });\n if (check.status === LiveInstallersCheckExit.CURRENT) {\n ctx.log.info(' Installers site left alone: it already serves these installers, and they install npm latest. --site redeploys it anyway.');\n return null;\n }\n knownOutOfDate = check.status === LiveInstallersCheckExit.DIFFERENT;\n if (!knownOutOfDate) {\n ctx.log.warn(' Could not compare the installers with the live site; redeploying so they are current.');\n }\n }\n if (!existsSync(join(toolingRoot, '.env'))) {\n const config = join(MARKETING_TOOLING_RELATIVE, '.env');\n if (knownOutOfDate) ctx.log.warn(` get.wildo.ai serves OUT-OF-DATE installers, and ${config} (the site's deploy config) is missing, so it was not redeployed.`);\n else ctx.log.warn(` Installers site skipped: ${config} (the site's deploy config) is missing.`);\n return null;\n }\n return this.step(ctx, `installers site (get.wildo.ai)${dryRun ? ' (dry run)' : ''}`, process.execPath, ['src/cli.ts', 'deploy', dryRun ? '--dry-run' : '--yes'], toolingRoot);\n }\n\n /** Every configured platform image at `version`: its name, and its full registry reference. */\n private async platformImages(frameworkRoot: string, version: string): Promise<Array<{ imageName: string; reference: string }>> {\n const docker = (await FrameworkReleaseService.loadFrameworkConfig(frameworkRoot))?.publish.docker;\n return (docker?.images ?? []).map((image) => ({\n imageName: image.imageName,\n reference: `${docker?.registryHost}/${docker?.namespace}/${image.imageName}:${version}`,\n }));\n }\n\n private async platformImageReferences(frameworkRoot: string, version: string): Promise<string[]> {\n return (await this.platformImages(frameworkRoot, version)).map((image) => image.reference);\n }\n\n /** The configured platform images NOT present on the registry at `version` (inspected, never pulled). */\n private async missingPlatformImages(frameworkRoot: string, version: string): Promise<string[]> {\n return (await this.platformImageReferences(frameworkRoot, version))\n .filter((reference) => spawnSync('docker', ['buildx', 'imagetools', 'inspect', reference], { encoding: 'utf8' }).status !== 0);\n }\n\n /**\n * Say what a resumed image was built from. `--skipDocker` proves the tag exists, not that it holds the\n * source now being published — a resume hours later ships a CLI naming an image built before other\n * sessions' platform changes. So the operator sees the image's build instant, its source revision\n * (`-dirty` when its inputs held uncommitted edits) and how many commits touched ITS INPUTS since — the\n * paths its own `.dockerignore` sends (`FrameworkDockerPublishService.imageSourcePathspecs`), not the\n * whole shared tree. Informative, not a refusal: a release whose image inputs did not move must be able\n * to resume without a rebuild.\n */\n private reportImageProvenance(ctx: CommandContext, frameworkRoot: string, images: Array<{ imageName: string; reference: string }>): void {\n for (const { imageName, reference } of images) {\n const inspected = spawnSync('docker', ['buildx', 'imagetools', 'inspect', reference, '--format', '{{json .Image}}'], { encoding: 'utf8' });\n let config: { created?: string; config?: { Labels?: Record<string, string> } } | undefined;\n try {\n const parsed = JSON.parse(inspected.stdout ?? '') as Record<string, unknown>;\n // A multi-platform image answers one config per platform; they share one build.\n config = ('config' in parsed ? parsed : Object.values(parsed)[0]) as typeof config;\n } catch {\n config = undefined;\n }\n const revision = config?.config?.Labels?.[FRAMEWORK_IMAGE_REVISION_LABEL];\n const built = config?.config?.Labels?.[FRAMEWORK_IMAGE_CREATED_LABEL] ?? config?.created ?? 'unknown';\n if (!revision) {\n ctx.log.warn(` ${reference}: built ${built}; it carries no source revision, so nothing can say whether it matches this checkout.`);\n continue;\n }\n const cleanRevision = revision.replace(/-dirty$/, '');\n const pathspecs = FrameworkDockerPublishService.imageSourcePathspecs(frameworkRoot, imageName) ?? ['.'];\n const since = spawnSync('git', ['rev-list', '--count', `${cleanRevision}..HEAD`, '--', ...pathspecs], { cwd: frameworkRoot, encoding: 'utf8' });\n const commits = since.status === 0 ? Number(since.stdout.trim()) : Number.NaN;\n const detail = `${reference}: built ${built} from ${revision}`;\n if (revision.endsWith('-dirty')) ctx.log.warn(` ${detail} — its inputs held uncommitted edits, so it may not match this checkout.`);\n else if (commits > 0) ctx.log.warn(` ${detail} — ${commits} commit(s) since touched its inputs; run without --skipDocker to rebuild it.`);\n else if (commits === 0) ctx.log.success(` ${detail} — no commit since has touched its inputs.`);\n else ctx.log.warn(` ${detail} — that revision is not in this checkout's history.`);\n }\n }\n\n /** Point every configured image's `latest` alias at `version` — an alias-only step, nothing is rebuilt. */\n private async repointLatest(ctx: CommandContext, frameworkRoot: string, version: string): Promise<boolean> {\n for (const reference of await this.platformImageReferences(frameworkRoot, version)) {\n const alias = reference.replace(/:[^:/]+$/, `:${DEFAULT_NPM_DIST_TAG}`);\n if (!this.step(ctx, `Docker ${alias} → ${version}`, 'docker', ['buildx', 'imagetools', 'create', '-t', alias, reference], frameworkRoot)) return false;\n }\n return true;\n }\n\n /**\n * Read the release back from both registries, over the CONFIGURED publish sets. Reported, not\n * enforced: the publish steps already succeeded, and npm's registry can lag a few seconds behind a\n * publish, so a missing entry here is a prompt to look rather than a failed release.\n */\n private async readBack(ctx: CommandContext, frameworkRoot: string, version: string): Promise<void> {\n const config = await FrameworkReleaseService.loadFrameworkConfig(frameworkRoot);\n ctx.log.info('\\n ── read back ──');\n const packages = config?.publish.npm.packages ?? [];\n const missing = packages.filter((name) => npmRegistryClient.versionStatus(name, version) !== RegistryVersionStatus.PUBLISHED);\n if (missing.length === 0) ctx.log.success(` npm: all ${packages.length} package(s) at ${version}`);\n else ctx.log.warn(` npm: not visible yet at ${version}: ${missing.join(', ')} (the registry can lag).`);\n const docker = config?.publish.docker;\n for (const image of docker?.images ?? []) {\n const reference = `${docker?.registryHost}/${docker?.namespace}/${image.imageName}:${version}`;\n const inspected = spawnSync('docker', ['buildx', 'imagetools', 'inspect', reference], { encoding: 'utf8' });\n const platforms = [...new Set((inspected.stdout ?? '').match(/Platform:\\s+linux\\/\\w+/g)?.map((line) => line.replace(/Platform:\\s+/, '')) ?? [])];\n if (inspected.status === 0) ctx.log.success(` Docker: ${reference} (${platforms.join(', ') || 'manifest found'})`);\n else ctx.log.warn(` Docker: could not inspect ${reference}.`);\n }\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"publish-all.command.js","sourceRoot":"","sources":["../../../../src/commands/fwk/publish-all.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,UAA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AAC;QACjE,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * `wildo fwk publish all` — release the framework in ONE command: everything an application creator\n * installs, from a framework checkout, in the order that keeps every published artifact installable.\n *\n * wildo fwk publish all # release (bumping the patch first if this version is already out)\n * wildo fwk publish all --bump minor # bump minor first\n * wildo fwk publish all --distTag next # publish under `next`; leaves `latest`, the Docker `latest` alias and the site alone\n * wildo fwk publish all --dryRun # compile, bundle, npm + Docker + site dry runs — nothing published\n *\n * ## The order, and why each step sits where it does\n *\n * 1. VERSION. A release needs a version npm has never seen. If the checkout's framework version is\n * already published it is bumped (`--bump`, default patch) — so repeated releases need no hand edit.\n * \"Could not ask npm\" refuses the release: read as \"not published\" it would skip the bump and push\n * a Docker tag over an image that was already released.\n * 2. `fwk generate-docs`. The compiled framework knowledge is not produced by any package build, and\n * the npm lane refuses knowledge compiled for another version (#1573).\n * 3. BUNDLE the workbench (`vite build`, its `bundle` script). It is the one published package no dev\n * watcher builds, and it is deliberately not a `build` script: turbo's `build` runs on every cold CI\n * VM, where a ~55 s bundle nothing there uses would be pure cost. Built with every `VITE_*` variable\n * removed from the environment, because Vite inlines them into what every app creator downloads.\n * 4. `fwk publish npm --dryRun`. Every npm gate (stale build, stale knowledge, licensing, closure) runs\n * HERE, before anything leaves the machine: npm and Docker publication cannot be taken back.\n * 5. `fwk publish docker`. BEFORE npm, because the published CLI names `wildo-platform:<its version>`:\n * a CLI that reached npm first would send every application creator's `local up` after an image\n * that does not exist yet. The image is built from this checkout's build output, not from npm.\n * 6. `fwk publish npm`. Internally in dependency order, the CLI last.\n * 7. The installers site (`get.wildo.ai`), `latest` releases only — it serves the installers and names\n * the current version. Without the site's deploy config (`marketing/tooling/.env`) it is skipped\n * with a WARNING and the release still succeeds: npm and Docker hold the release, and the\n * installers install whatever npm's `latest` is.\n *\n * Each step runs as a child `wildo` invocation of the command that owns it, so every gate and log line\n * is exactly the one that command already has; this file only sequences them and stops at the first\n * failure. Re-running after a failure is safe: a version not yet on npm is not bumped again, and the npm\n * lane skips packages already published.\n *\n * Not included on purpose: a full `pnpm build`. The dev watchers own every package's `dist/`, and the\n * npm lane's freshness gate names any package they left stale — run `pnpm build` then and retry.\n */\nimport { spawnSync } from 'child_process';\nimport { existsSync, readFileSync, realpathSync } from 'fs';\nimport { dirname, join } from 'path';\nimport { confirm } from '@inquirer/prompts';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { forwardedGlobalFlags } from '~wildo-cli/kernel/command-runner';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { FrameworkReleaseService } from '~wildo-cli/services/framework/framework-release.service';\nimport {\n FrameworkVersionService,\n parseSemverBumpKind,\n SEMVER_BUMP_KINDS,\n SemverBumpKind,\n} from '~wildo-cli/services/framework/framework-version.service';\nimport {\n npmRegistryClient,\n PackageManagerCommand,\n RegistryVersionStatus,\n spawnPackageManager,\n WILDO_CLI_PACKAGE_NAME,\n WORKBENCH_PACKAGE_NAME,\n} from '~wildo-cli/services/framework/framework-update.service';\nimport {\n FRAMEWORK_IMAGE_CREATED_LABEL,\n FRAMEWORK_IMAGE_REVISION_LABEL,\n FrameworkDockerPublishService,\n} from '~wildo-cli/services/framework/framework-docker-publish.service';\n\n/** The dist-tag an unqualified `npm install` resolves — the only tag that moves Docker `latest` and the site. */\nconst DEFAULT_NPM_DIST_TAG = 'latest';\n\n/** The workbench script that produces its published `dist/` (see step 3 for why it is not `build`). */\nconst WORKBENCH_BUNDLE_SCRIPT = 'bundle';\n\n/** The installers site's own CLI, relative to the framework root, and the config it deploys with. */\nconst MARKETING_TOOLING_RELATIVE = join('marketing', 'tooling');\n\n/**\n * Exit codes of `wildo-marketing installers --check-live` (`CHECK_LIVE_EXIT` in\n * `marketing/tooling/src/commands/installers.ts`, a standalone project this package cannot import —\n * a test holds the two equal). Anything that is neither CURRENT nor DIFFERENT means \"could not ask\".\n */\nexport enum LiveInstallersCheckExit {\n /** get.wildo.ai serves this checkout's installers byte for byte: redeploying would change nothing users run. */\n CURRENT = 0,\n /** A script differs or is missing on the site: users only get it through a redeploy. */\n DIFFERENT = 10,\n /** The site could not be asked; nothing is known about what it serves. */\n UNREACHABLE = 11,\n}\n\n/**\n * The directory a child `wildo` step must be LAUNCHED from: the CLI's own package directory, found from the\n * entry that started this process (the directory holding the `@wildo-ai/wildo-cli` manifest above it).\n *\n * Run from source (`wildo-dev`), the CLI is started by `tsx`, which reads the `tsconfig.json` of the directory\n * it is LAUNCHED in — the CLI package's, where the `~wildo-cli/*` alias is declared — and only then does\n * `bin/wildo.ts` move into `WILDO_INVOKE_CWD`. A step launched with `cwd: frameworkRoot` got the repository\n * root's tsconfig instead, which declares no such alias, so every step died before running:\n * `Cannot find package '~wildo-cli'`. The compiled CLI resolves nothing from its working directory, which is\n * why only `wildo-dev fwk publish all` failed. Launching every step from here and naming the framework root\n * through `WILDO_INVOKE_CWD` is the same contract `wildo-dev` itself follows, and it holds in both modes.\n *\n * Falls back to this process's working directory when no such manifest is found above the entry.\n */\nexport function resolveCliLaunchDirectory(entryPath: string): string {\n let directory = dirname(realpathSync(entryPath));\n for (;;) {\n const manifestPath = join(directory, 'package.json');\n if (existsSync(manifestPath)) {\n try {\n if ((JSON.parse(readFileSync(manifestPath, 'utf8')) as { name?: string }).name === WILDO_CLI_PACKAGE_NAME) return directory;\n } catch {\n // An unreadable manifest is not the CLI's; keep walking up.\n }\n }\n const parent = dirname(directory);\n if (parent === directory) return process.cwd();\n directory = parent;\n }\n}\n\nexport default class FwkPublishAllCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'fwk publish all',\n description: 'Release the framework in one command: version, knowledge, workbench bundle, Docker image, npm packages, installers site',\n category: CommandCategory.Fwk,\n flags: {\n dryRun: { type: 'boolean', description: 'Plan only: compile knowledge, bundle the workbench, run the npm, Docker and site dry runs; publish nothing', default: false },\n bump: { type: 'string', description: `Bump kind when the current version is already published: ${SEMVER_BUMP_KINDS.join(', ')} (default ${SemverBumpKind.PATCH})`, default: undefined },\n distTag: { type: 'string', description: `npm dist-tag to publish under (default ${DEFAULT_NPM_DIST_TAG}); any other tag leaves Docker latest and the site alone`, default: undefined },\n skipSite: { type: 'boolean', description: 'Do not redeploy the installers site (get.wildo.ai), even when its installers are out of date', default: false },\n site: {\n type: 'boolean',\n description: 'Redeploy the installers site even when it already serves this checkout\\'s installers (it is otherwise left alone)',\n default: false,\n },\n skipDocker: {\n type: 'boolean',\n description: 'Resume a release whose platform image for this version is already pushed: skip the Docker step (refused if the image is absent)',\n default: false,\n },\n force: { type: 'boolean', description: 'Skip the confirmation before publishing', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const dryRun = ctx.flags.dryRun === true;\n const distTag = typeof ctx.flags.distTag === 'string' && ctx.flags.distTag.length > 0 ? ctx.flags.distTag : DEFAULT_NPM_DIST_TAG;\n const moveLatest = distTag === DEFAULT_NPM_DIST_TAG;\n const requestedBump = ctx.flags.bump === undefined ? null : parseSemverBumpKind(ctx.flags.bump);\n if (ctx.flags.bump !== undefined && requestedBump === null) {\n ctx.log.error(`--bump ${String(ctx.flags.bump)} is not one of ${SEMVER_BUMP_KINDS.join(', ')}.`);\n return { success: false };\n }\n const frameworkRoot = FrameworkReleaseService.getFrameworkRoot();\n\n try {\n // ── 1. version ──\n const current = (await FrameworkVersionService.loadFrameworkVersionState(frameworkRoot)).config.frameworkVersion;\n const currentStatus = npmRegistryClient.versionStatus(WILDO_CLI_PACKAGE_NAME, current);\n if (currentStatus === RegistryVersionStatus.UNKNOWN) {\n ctx.log.error(`Could not ask npm whether ${current} is already released (is the registry reachable?). Nothing was changed.`);\n return { success: false };\n }\n const bumpKind = requestedBump ?? (currentStatus === RegistryVersionStatus.PUBLISHED ? SemverBumpKind.PATCH : null);\n const version = bumpKind ? FrameworkVersionService.bumpSemver(current, bumpKind) : current;\n if (bumpKind && npmRegistryClient.versionStatus(WILDO_CLI_PACKAGE_NAME, version) !== RegistryVersionStatus.NOT_PUBLISHED) {\n ctx.log.error(`${version} is already released, or npm could not say. Pass a larger --bump. Nothing was changed.`);\n return { success: false };\n }\n const bumpNote = bumpKind\n ? ` (${bumpKind} bump from ${current}${currentStatus === RegistryVersionStatus.PUBLISHED ? ', which is already published' : ''})`\n : '';\n ctx.log.info(` Release ${version} under npm dist-tag \"${distTag}\"${bumpNote}.`);\n if (dryRun && bumpKind) {\n // A dry run changes nothing, so it validates the checkout AS IT IS; the real run bumps first.\n ctx.log.info(` Dry run: the version stays ${current}, so the steps below validate ${current}; the real run applies the bump first.`);\n }\n\n if (!dryRun && !(await this.confirmRelease(ctx, version))) return { success: false };\n if (bumpKind && !dryRun) {\n await FrameworkVersionService.applyFrameworkVersion(version, frameworkRoot);\n ctx.log.success(` Version set to ${version} across the framework manifests.`);\n }\n\n // Launched from the CLI's own package directory and told the framework root through WILDO_INVOKE_CWD —\n // see `resolveCliLaunchDirectory` for why the step cannot simply run with `cwd: frameworkRoot`.\n const cliLaunchDirectory = resolveCliLaunchDirectory(process.argv[1]);\n const wildo = (label: string, args: string[]): boolean =>\n this.step(ctx, label, process.execPath, [...process.execArgv, process.argv[1], ...forwardedGlobalFlags({ ...ctx.globalFlags, nonInteractive: true }), ...args], cliLaunchDirectory,\n { ...process.env, WILDO_INVOKE_CWD: frameworkRoot });\n\n // ── 2–4. inputs, then every npm gate before anything leaves the machine ──\n // A dry run builds its inputs too — both are local and reversible, and the gates it runs would\n // otherwise judge whatever knowledge and workbench bundle happened to be lying around.\n if (!wildo('compile framework knowledge', ['fwk', 'generate-docs'])) return { success: false };\n if (!this.bundleWorkbench(ctx, frameworkRoot)) return { success: false };\n if (!wildo('npm gates (dry run)', ['fwk', 'publish', 'npm', '--dryRun', ...(moveLatest ? [] : ['--distTag', distTag])])) return { success: false };\n if (dryRun) {\n if (!wildo('Docker plan (dry run)', ['fwk', 'publish', 'docker', '--dryRun', ...(moveLatest ? ['--tagLatest'] : [])])) return { success: false };\n // A site config the dry run cannot even plan with is one the real run would fail on.\n if (moveLatest && ctx.flags.skipSite !== true && this.deploySite(ctx, frameworkRoot, true, ctx.flags.site === true) === false) return { success: false };\n ctx.log.success(` Planned release ${version}. Nothing was published.`);\n return { success: true };\n }\n\n // ── 5. Docker BEFORE npm: the published CLI names wildo-platform:<version> ──\n if (ctx.flags.skipDocker === true) {\n // Resuming: the image must really be there, or the published CLI would name one that is not.\n const missing = await this.missingPlatformImages(frameworkRoot, version);\n if (missing.length > 0) {\n ctx.log.error(`--skipDocker, but ${missing.join(', ')} is not on the registry: the published CLI would name it. Run without --skipDocker.`);\n return { success: false };\n }\n ctx.log.info(`\\n ── Docker image ── already pushed for ${version}; skipped (--skipDocker).`);\n this.reportImageProvenance(ctx, frameworkRoot, await this.platformImages(frameworkRoot, version));\n // The skipped step is the one that moves `latest`, and the interrupted run may have been on\n // another channel — so a `latest` resume points the alias at this version itself (idempotent).\n if (moveLatest && !(await this.repointLatest(ctx, frameworkRoot, version))) return { success: false };\n } else if (!wildo('Docker image', ['fwk', 'publish', 'docker', '--force', ...(moveLatest ? ['--tagLatest'] : [])])) {\n return { success: false };\n }\n // ── 6. npm ──\n if (!wildo('npm packages', ['fwk', 'publish', 'npm', '--force', ...(moveLatest ? [] : ['--distTag', distTag])])) {\n // The image is pushed and immutable for this version; a retry must not rebuild it for ten minutes.\n ctx.log.info(` The platform image for ${version} is already pushed. Once the cause is fixed, resume with:`);\n ctx.log.info(` wildo fwk publish all --skipDocker${moveLatest ? '' : ` --distTag ${distTag}`}`);\n return { success: false };\n }\n // ── 7. installers site ──\n const siteDeployed = moveLatest && ctx.flags.skipSite !== true ? this.deploySite(ctx, frameworkRoot, false, ctx.flags.site === true) : null;\n if (siteDeployed === false) return { success: false };\n\n await this.readBack(ctx, frameworkRoot, version);\n ctx.log.success(` Released ${version}.`);\n ctx.log.info(` Application creators move to it with: wildo update${moveLatest ? '' : ` --tag ${distTag}`}`);\n return { success: true };\n } catch (error) {\n ctx.log.error(`Release failed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n }\n\n private async confirmRelease(ctx: CommandContext, version: string): Promise<boolean> {\n if (ctx.flags.force === true) return true;\n if (ctx.globalFlags.nonInteractive) {\n ctx.log.error('A real release in non-interactive mode requires --force.');\n return false;\n }\n const proceed = await confirm({ message: `Publish ${version} to npm and Docker Hub? Neither can be taken back.`, default: false });\n if (!proceed) ctx.log.info('Cancelled.');\n return proceed;\n }\n\n private step(ctx: CommandContext, label: string, command: string, args: string[], cwd: string, env: NodeJS.ProcessEnv = process.env): boolean {\n ctx.log.info(`\\n ── ${label} ──`);\n const result = spawnSync(command, args, { cwd, env, stdio: 'inherit' });\n if (result.status !== 0) {\n ctx.log.error(` ${label} failed (exit ${result.status ?? 'signal'}); the release stopped here.`);\n return false;\n }\n return true;\n }\n\n /**\n * Bundle the workbench with no `VITE_*` variable in the environment. Vite inlines every `VITE_*` it\n * sees into the bundle — the workbench reads `VITE_COMPANION_URL` and spreads `import.meta.env` over\n * its runtime environment — so a variable set in the publisher's shell would ship in every app\n * creator's workbench. The published bundle must fall back to its own origin, where\n * `wildo-workbench-serve` answers.\n */\n private bundleWorkbench(ctx: CommandContext, frameworkRoot: string): boolean {\n ctx.log.info('\\n ── bundle the workbench ──');\n const env = Object.fromEntries(Object.entries(process.env).filter(([name]) => !name.startsWith('VITE_')));\n const result = spawnPackageManager(PackageManagerCommand.PNPM, ['--filter', WORKBENCH_PACKAGE_NAME, 'run', WORKBENCH_BUNDLE_SCRIPT], {\n cwd: frameworkRoot,\n stdio: 'inherit',\n env,\n });\n if (result.status !== 0) {\n ctx.log.error(` Workbench bundle failed (exit ${result.status ?? 'signal'}); the release stopped here.`);\n return false;\n }\n return true;\n }\n\n /**\n * Redeploy `get.wildo.ai` only when a release changes what it serves.\n *\n * The installers are not a separate host: the marketing website's image carries them under `/get/`,\n * so the only way to ship them is `wildo-marketing deploy`, which copies `website/`, `contact-api/`\n * and the staged installers from THIS checkout, rebuilds the images on the VM and restarts the whole\n * stack. Doing that on every release (several a day) restarted the marketing site for nothing — the\n * scripts install npm's `latest`, so a new CLI needs no new script — and shipped any uncommitted\n * website edit a parallel session had in the shared checkout.\n *\n * So the release first asks `installers --check-live` whether the live scripts differ from this\n * checkout's, byte for byte, and deploys only on DIFFERENT, or when the site could not be asked (a\n * deploy is how stale installers get fixed, so not knowing leans toward it). `--site` forces a deploy;\n * `--skipSite` (checked by the caller) never deploys. The landing page's version number does not need\n * a redeploy: it reads npm's `latest` at view time (`website/src/scripts/install-version.ts`).\n *\n * This makes shipping someone else's unfinished website edit rarer, not impossible: a deploy that\n * does happen still copies the working tree. The deploy lists every uncommitted change in the trees\n * it ships before it runs (`uncommittedDeployedChanges` in the tooling), even under `--yes`.\n *\n * The deploy itself: `--yes` because the release confirmation already covered it, `--dry-run` in a dry\n * run. Its credentials live in `marketing/tooling/.env`; without that file the site is skipped with a\n * warning, louder when the installers are known to be out of date.\n *\n * @returns `null` when skipped, otherwise whether the deploy succeeded.\n */\n private deploySite(ctx: CommandContext, frameworkRoot: string, dryRun: boolean, forced: boolean): boolean | null {\n const toolingRoot = join(frameworkRoot, MARKETING_TOOLING_RELATIVE);\n let knownOutOfDate = false;\n if (!forced) {\n ctx.log.info('\\n ── installers site: compare with get.wildo.ai ──');\n const check = spawnSync(process.execPath, ['src/cli.ts', 'installers', '--check-live'], { cwd: toolingRoot, stdio: 'inherit' });\n if (check.status === LiveInstallersCheckExit.CURRENT) {\n ctx.log.info(' Installers site left alone: it already serves these installers, and they install npm latest. --site redeploys it anyway.');\n return null;\n }\n knownOutOfDate = check.status === LiveInstallersCheckExit.DIFFERENT;\n if (!knownOutOfDate) {\n ctx.log.warn(' Could not compare the installers with the live site; redeploying so they are current.');\n }\n }\n if (!existsSync(join(toolingRoot, '.env'))) {\n const config = join(MARKETING_TOOLING_RELATIVE, '.env');\n if (knownOutOfDate) ctx.log.warn(` get.wildo.ai serves OUT-OF-DATE installers, and ${config} (the site's deploy config) is missing, so it was not redeployed.`);\n else ctx.log.warn(` Installers site skipped: ${config} (the site's deploy config) is missing.`);\n return null;\n }\n return this.step(ctx, `installers site (get.wildo.ai)${dryRun ? ' (dry run)' : ''}`, process.execPath, ['src/cli.ts', 'deploy', dryRun ? '--dry-run' : '--yes'], toolingRoot);\n }\n\n /** Every configured platform image at `version`: its name, and its full registry reference. */\n private async platformImages(frameworkRoot: string, version: string): Promise<Array<{ imageName: string; reference: string }>> {\n const docker = (await FrameworkReleaseService.loadFrameworkConfig(frameworkRoot))?.publish.docker;\n return (docker?.images ?? []).map((image) => ({\n imageName: image.imageName,\n reference: `${docker?.registryHost}/${docker?.namespace}/${image.imageName}:${version}`,\n }));\n }\n\n private async platformImageReferences(frameworkRoot: string, version: string): Promise<string[]> {\n return (await this.platformImages(frameworkRoot, version)).map((image) => image.reference);\n }\n\n /** The configured platform images NOT present on the registry at `version` (inspected, never pulled). */\n private async missingPlatformImages(frameworkRoot: string, version: string): Promise<string[]> {\n return (await this.platformImageReferences(frameworkRoot, version))\n .filter((reference) => spawnSync('docker', ['buildx', 'imagetools', 'inspect', reference], { encoding: 'utf8' }).status !== 0);\n }\n\n /**\n * Say what a resumed image was built from. `--skipDocker` proves the tag exists, not that it holds the\n * source now being published — a resume hours later ships a CLI naming an image built before other\n * sessions' platform changes. So the operator sees the image's build instant, its source revision\n * (`-dirty` when its inputs held uncommitted edits) and how many commits touched ITS INPUTS since — the\n * paths its own `.dockerignore` sends (`FrameworkDockerPublishService.imageSourcePathspecs`), not the\n * whole shared tree. Informative, not a refusal: a release whose image inputs did not move must be able\n * to resume without a rebuild.\n */\n private reportImageProvenance(ctx: CommandContext, frameworkRoot: string, images: Array<{ imageName: string; reference: string }>): void {\n for (const { imageName, reference } of images) {\n const inspected = spawnSync('docker', ['buildx', 'imagetools', 'inspect', reference, '--format', '{{json .Image}}'], { encoding: 'utf8' });\n let config: { created?: string; config?: { Labels?: Record<string, string> } } | undefined;\n try {\n const parsed = JSON.parse(inspected.stdout ?? '') as Record<string, unknown>;\n // A multi-platform image answers one config per platform; they share one build.\n config = ('config' in parsed ? parsed : Object.values(parsed)[0]) as typeof config;\n } catch {\n config = undefined;\n }\n const revision = config?.config?.Labels?.[FRAMEWORK_IMAGE_REVISION_LABEL];\n const built = config?.config?.Labels?.[FRAMEWORK_IMAGE_CREATED_LABEL] ?? config?.created ?? 'unknown';\n if (!revision) {\n ctx.log.warn(` ${reference}: built ${built}; it carries no source revision, so nothing can say whether it matches this checkout.`);\n continue;\n }\n const cleanRevision = revision.replace(/-dirty$/, '');\n const pathspecs = FrameworkDockerPublishService.imageSourcePathspecs(frameworkRoot, imageName) ?? ['.'];\n const since = spawnSync('git', ['rev-list', '--count', `${cleanRevision}..HEAD`, '--', ...pathspecs], { cwd: frameworkRoot, encoding: 'utf8' });\n const commits = since.status === 0 ? Number(since.stdout.trim()) : Number.NaN;\n const detail = `${reference}: built ${built} from ${revision}`;\n if (revision.endsWith('-dirty')) ctx.log.warn(` ${detail} — its inputs held uncommitted edits, so it may not match this checkout.`);\n else if (commits > 0) ctx.log.warn(` ${detail} — ${commits} commit(s) since touched its inputs; run without --skipDocker to rebuild it.`);\n else if (commits === 0) ctx.log.success(` ${detail} — no commit since has touched its inputs.`);\n else ctx.log.warn(` ${detail} — that revision is not in this checkout's history.`);\n }\n }\n\n /** Point every configured image's `latest` alias at `version` — an alias-only step, nothing is rebuilt. */\n private async repointLatest(ctx: CommandContext, frameworkRoot: string, version: string): Promise<boolean> {\n for (const reference of await this.platformImageReferences(frameworkRoot, version)) {\n const alias = reference.replace(/:[^:/]+$/, `:${DEFAULT_NPM_DIST_TAG}`);\n if (!this.step(ctx, `Docker ${alias} → ${version}`, 'docker', ['buildx', 'imagetools', 'create', '-t', alias, reference], frameworkRoot)) return false;\n }\n return true;\n }\n\n /**\n * Read the release back from both registries, over the CONFIGURED publish sets. Reported, not\n * enforced: the publish steps already succeeded, and npm's registry can lag a few seconds behind a\n * publish, so a missing entry here is a prompt to look rather than a failed release.\n */\n private async readBack(ctx: CommandContext, frameworkRoot: string, version: string): Promise<void> {\n const config = await FrameworkReleaseService.loadFrameworkConfig(frameworkRoot);\n ctx.log.info('\\n ── read back ──');\n const packages = config?.publish.npm.packages ?? [];\n const missing = packages.filter((name) => npmRegistryClient.versionStatus(name, version) !== RegistryVersionStatus.PUBLISHED);\n if (missing.length === 0) ctx.log.success(` npm: all ${packages.length} package(s) at ${version}`);\n else ctx.log.warn(` npm: not visible yet at ${version}: ${missing.join(', ')} (the registry can lag).`);\n const docker = config?.publish.docker;\n for (const image of docker?.images ?? []) {\n const reference = `${docker?.registryHost}/${docker?.namespace}/${image.imageName}:${version}`;\n const inspected = spawnSync('docker', ['buildx', 'imagetools', 'inspect', reference], { encoding: 'utf8' });\n const platforms = [...new Set((inspected.stdout ?? '').match(/Platform:\\s+linux\\/\\w+/g)?.map((line) => line.replace(/Platform:\\s+/, '')) ?? [])];\n if (inspected.status === 0) ctx.log.success(` Docker: ${reference} (${platforms.join(', ') || 'manifest found'})`);\n else ctx.log.warn(` Docker: could not inspect ${reference}.`);\n }\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-docker.command.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"publish-docker.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/fwk/publish-docker.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAc1F,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,WAAW;IAC9D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAYxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;YA+CxC,cAAc;CAqB7B"}
|