@cleocode/cleo 2026.4.161 → 2026.5.1
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/backfill/audit-columns.d.ts +105 -0
- package/dist/backfill/audit-columns.d.ts.map +1 -0
- package/dist/backfill/audit-columns.js +258 -0
- package/dist/backfill/audit-columns.js.map +1 -0
- package/dist/cli/commands/adapter.d.ts +28 -0
- package/dist/cli/commands/adapter.d.ts.map +1 -0
- package/dist/cli/commands/adapter.js +119 -0
- package/dist/cli/commands/adapter.js.map +1 -0
- package/dist/cli/commands/add-batch.d.ts +33 -0
- package/dist/cli/commands/add-batch.d.ts.map +1 -0
- package/dist/cli/commands/add-batch.js +148 -0
- package/dist/cli/commands/add-batch.js.map +1 -0
- package/dist/cli/commands/add.d.ts +162 -0
- package/dist/cli/commands/add.d.ts.map +1 -0
- package/dist/cli/commands/add.js +279 -0
- package/dist/cli/commands/add.js.map +1 -0
- package/dist/cli/commands/admin.d.ts +24 -0
- package/dist/cli/commands/admin.d.ts.map +1 -0
- package/dist/cli/commands/admin.js +283 -0
- package/dist/cli/commands/admin.js.map +1 -0
- package/dist/cli/commands/adr.d.ts +33 -0
- package/dist/cli/commands/adr.d.ts.map +1 -0
- package/dist/cli/commands/adr.js +147 -0
- package/dist/cli/commands/adr.js.map +1 -0
- package/dist/cli/commands/agent-profile-status.d.ts +98 -0
- package/dist/cli/commands/agent-profile-status.d.ts.map +1 -0
- package/dist/cli/commands/agent-profile-status.js +71 -0
- package/dist/cli/commands/agent-profile-status.js.map +1 -0
- package/dist/cli/commands/agent.d.ts +47 -0
- package/dist/cli/commands/agent.d.ts.map +1 -0
- package/dist/cli/commands/agent.js +2976 -0
- package/dist/cli/commands/agent.js.map +1 -0
- package/dist/cli/commands/analyze.d.ts +21 -0
- package/dist/cli/commands/analyze.d.ts.map +1 -0
- package/dist/cli/commands/analyze.js +32 -0
- package/dist/cli/commands/analyze.js.map +1 -0
- package/dist/cli/commands/archive-stats.d.ts +66 -0
- package/dist/cli/commands/archive-stats.d.ts.map +1 -0
- package/dist/cli/commands/archive-stats.js +93 -0
- package/dist/cli/commands/archive-stats.js.map +1 -0
- package/dist/cli/commands/archive.d.ts +42 -0
- package/dist/cli/commands/archive.d.ts.map +1 -0
- package/dist/cli/commands/archive.js +59 -0
- package/dist/cli/commands/archive.js.map +1 -0
- package/dist/cli/commands/audit.d.ts +22 -0
- package/dist/cli/commands/audit.d.ts.map +1 -0
- package/dist/cli/commands/audit.js +137 -0
- package/dist/cli/commands/audit.js.map +1 -0
- package/dist/cli/commands/backfill.d.ts +56 -0
- package/dist/cli/commands/backfill.d.ts.map +1 -0
- package/dist/cli/commands/backfill.js +161 -0
- package/dist/cli/commands/backfill.js.map +1 -0
- package/dist/cli/commands/backup-inspect.d.ts +33 -0
- package/dist/cli/commands/backup-inspect.d.ts.map +1 -0
- package/dist/cli/commands/backup-inspect.js +430 -0
- package/dist/cli/commands/backup-inspect.js.map +1 -0
- package/dist/cli/commands/backup.d.ts +23 -0
- package/dist/cli/commands/backup.d.ts.map +1 -0
- package/dist/cli/commands/backup.js +564 -0
- package/dist/cli/commands/backup.js.map +1 -0
- package/dist/cli/commands/blockers.d.ts +20 -0
- package/dist/cli/commands/blockers.d.ts.map +1 -0
- package/dist/cli/commands/blockers.js +31 -0
- package/dist/cli/commands/blockers.js.map +1 -0
- package/dist/cli/commands/brain.d.ts +37 -0
- package/dist/cli/commands/brain.d.ts.map +1 -0
- package/dist/cli/commands/brain.js +445 -0
- package/dist/cli/commands/brain.js.map +1 -0
- package/dist/cli/commands/briefing.d.ts +52 -0
- package/dist/cli/commands/briefing.d.ts.map +1 -0
- package/dist/cli/commands/briefing.js +69 -0
- package/dist/cli/commands/briefing.js.map +1 -0
- package/dist/cli/commands/bug.d.ts +61 -0
- package/dist/cli/commands/bug.d.ts.map +1 -0
- package/dist/cli/commands/bug.js +198 -0
- package/dist/cli/commands/bug.js.map +1 -0
- package/dist/cli/commands/cancel.d.ts +26 -0
- package/dist/cli/commands/cancel.d.ts.map +1 -0
- package/dist/cli/commands/cancel.js +40 -0
- package/dist/cli/commands/cancel.js.map +1 -0
- package/dist/cli/commands/cant.d.ts +13 -0
- package/dist/cli/commands/cant.d.ts.map +1 -0
- package/dist/cli/commands/cant.js +245 -0
- package/dist/cli/commands/cant.js.map +1 -0
- package/dist/cli/commands/chain.d.ts +24 -0
- package/dist/cli/commands/chain.d.ts.map +1 -0
- package/dist/cli/commands/chain.js +116 -0
- package/dist/cli/commands/chain.js.map +1 -0
- package/dist/cli/commands/check.d.ts +18 -0
- package/dist/cli/commands/check.d.ts.map +1 -0
- package/dist/cli/commands/check.js +280 -0
- package/dist/cli/commands/check.js.map +1 -0
- package/dist/cli/commands/checkpoint.d.ts +27 -0
- package/dist/cli/commands/checkpoint.d.ts.map +1 -0
- package/dist/cli/commands/checkpoint.js +105 -0
- package/dist/cli/commands/checkpoint.js.map +1 -0
- package/dist/cli/commands/claim.d.ts +35 -0
- package/dist/cli/commands/claim.d.ts.map +1 -0
- package/dist/cli/commands/claim.js +35 -0
- package/dist/cli/commands/claim.js.map +1 -0
- package/dist/cli/commands/code.d.ts +22 -0
- package/dist/cli/commands/code.d.ts.map +1 -0
- package/dist/cli/commands/code.js +161 -0
- package/dist/cli/commands/code.js.map +1 -0
- package/dist/cli/commands/complete.d.ts +58 -0
- package/dist/cli/commands/complete.d.ts.map +1 -0
- package/dist/cli/commands/complete.js +83 -0
- package/dist/cli/commands/complete.js.map +1 -0
- package/dist/cli/commands/complexity.d.ts +13 -0
- package/dist/cli/commands/complexity.d.ts.map +1 -0
- package/dist/cli/commands/complexity.js +32 -0
- package/dist/cli/commands/complexity.js.map +1 -0
- package/dist/cli/commands/compliance.d.ts +27 -0
- package/dist/cli/commands/compliance.d.ts.map +1 -0
- package/dist/cli/commands/compliance.js +233 -0
- package/dist/cli/commands/compliance.js.map +1 -0
- package/dist/cli/commands/conduit.d.ts +28 -0
- package/dist/cli/commands/conduit.d.ts.map +1 -0
- package/dist/cli/commands/conduit.js +279 -0
- package/dist/cli/commands/conduit.js.map +1 -0
- package/dist/cli/commands/config.d.ts +25 -0
- package/dist/cli/commands/config.d.ts.map +1 -0
- package/dist/cli/commands/config.js +132 -0
- package/dist/cli/commands/config.js.map +1 -0
- package/dist/cli/commands/consensus.d.ts +21 -0
- package/dist/cli/commands/consensus.d.ts.map +1 -0
- package/dist/cli/commands/consensus.js +100 -0
- package/dist/cli/commands/consensus.js.map +1 -0
- package/dist/cli/commands/context.d.ts +19 -0
- package/dist/cli/commands/context.d.ts.map +1 -0
- package/dist/cli/commands/context.js +111 -0
- package/dist/cli/commands/context.js.map +1 -0
- package/dist/cli/commands/contribution.d.ts +21 -0
- package/dist/cli/commands/contribution.d.ts.map +1 -0
- package/dist/cli/commands/contribution.js +90 -0
- package/dist/cli/commands/contribution.js.map +1 -0
- package/dist/cli/commands/current.d.ts +18 -0
- package/dist/cli/commands/current.d.ts.map +1 -0
- package/dist/cli/commands/current.js +28 -0
- package/dist/cli/commands/current.js.map +1 -0
- package/dist/cli/commands/daemon.d.ts +36 -0
- package/dist/cli/commands/daemon.d.ts.map +1 -0
- package/dist/cli/commands/daemon.js +223 -0
- package/dist/cli/commands/daemon.js.map +1 -0
- package/dist/cli/commands/dash.d.ts +23 -0
- package/dist/cli/commands/dash.d.ts.map +1 -0
- package/dist/cli/commands/dash.js +38 -0
- package/dist/cli/commands/dash.js.map +1 -0
- package/dist/cli/commands/decomposition.d.ts +13 -0
- package/dist/cli/commands/decomposition.d.ts.map +1 -0
- package/dist/cli/commands/decomposition.js +92 -0
- package/dist/cli/commands/decomposition.js.map +1 -0
- package/dist/cli/commands/delete.d.ts +29 -0
- package/dist/cli/commands/delete.d.ts.map +1 -0
- package/dist/cli/commands/delete.js +55 -0
- package/dist/cli/commands/delete.js.map +1 -0
- package/dist/cli/commands/deps.d.ts +45 -0
- package/dist/cli/commands/deps.d.ts.map +1 -0
- package/dist/cli/commands/deps.js +170 -0
- package/dist/cli/commands/deps.js.map +1 -0
- package/dist/cli/commands/detect-drift.d.ts +23 -0
- package/dist/cli/commands/detect-drift.d.ts.map +1 -0
- package/dist/cli/commands/detect-drift.js +440 -0
- package/dist/cli/commands/detect-drift.js.map +1 -0
- package/dist/cli/commands/detect.d.ts +3 -0
- package/dist/cli/commands/detect.d.ts.map +1 -0
- package/dist/cli/commands/detect.js +14 -0
- package/dist/cli/commands/detect.js.map +1 -0
- package/dist/cli/commands/diagnostics.d.ts +19 -0
- package/dist/cli/commands/diagnostics.d.ts.map +1 -0
- package/dist/cli/commands/diagnostics.js +109 -0
- package/dist/cli/commands/diagnostics.js.map +1 -0
- package/dist/cli/commands/docs.d.ts +25 -0
- package/dist/cli/commands/docs.d.ts.map +1 -0
- package/dist/cli/commands/docs.js +798 -0
- package/dist/cli/commands/docs.js.map +1 -0
- package/dist/cli/commands/doctor-projects.d.ts +101 -0
- package/dist/cli/commands/doctor-projects.d.ts.map +1 -0
- package/dist/cli/commands/doctor-projects.js +188 -0
- package/dist/cli/commands/doctor-projects.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +66 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/doctor.js +178 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/dynamic.d.ts +15 -0
- package/dist/cli/commands/dynamic.d.ts.map +1 -0
- package/dist/cli/commands/dynamic.js +21 -0
- package/dist/cli/commands/dynamic.js.map +1 -0
- package/dist/cli/commands/exists.d.ts +13 -0
- package/dist/cli/commands/exists.d.ts.map +1 -0
- package/dist/cli/commands/exists.js +40 -0
- package/dist/cli/commands/exists.js.map +1 -0
- package/dist/cli/commands/export-tasks.d.ts +46 -0
- package/dist/cli/commands/export-tasks.d.ts.map +1 -0
- package/dist/cli/commands/export-tasks.js +81 -0
- package/dist/cli/commands/export-tasks.js.map +1 -0
- package/dist/cli/commands/export.d.ts +35 -0
- package/dist/cli/commands/export.d.ts.map +1 -0
- package/dist/cli/commands/export.js +68 -0
- package/dist/cli/commands/export.js.map +1 -0
- package/dist/cli/commands/find.d.ts +54 -0
- package/dist/cli/commands/find.d.ts.map +1 -0
- package/dist/cli/commands/find.js +92 -0
- package/dist/cli/commands/find.js.map +1 -0
- package/dist/cli/commands/gc.d.ts +25 -0
- package/dist/cli/commands/gc.d.ts.map +1 -0
- package/dist/cli/commands/gc.js +165 -0
- package/dist/cli/commands/gc.js.map +1 -0
- package/dist/cli/commands/generate-changelog.d.ts +30 -0
- package/dist/cli/commands/generate-changelog.d.ts.map +1 -0
- package/dist/cli/commands/generate-changelog.js +270 -0
- package/dist/cli/commands/generate-changelog.js.map +1 -0
- package/dist/cli/commands/grade.d.ts +13 -0
- package/dist/cli/commands/grade.d.ts.map +1 -0
- package/dist/cli/commands/grade.js +27 -0
- package/dist/cli/commands/grade.js.map +1 -0
- package/dist/cli/commands/history.d.ts +13 -0
- package/dist/cli/commands/history.d.ts.map +1 -0
- package/dist/cli/commands/history.js +65 -0
- package/dist/cli/commands/history.js.map +1 -0
- package/dist/cli/commands/import-tasks.d.ts +60 -0
- package/dist/cli/commands/import-tasks.d.ts.map +1 -0
- package/dist/cli/commands/import-tasks.js +83 -0
- package/dist/cli/commands/import-tasks.js.map +1 -0
- package/dist/cli/commands/import.d.ts +42 -0
- package/dist/cli/commands/import.d.ts.map +1 -0
- package/dist/cli/commands/import.js +64 -0
- package/dist/cli/commands/import.js.map +1 -0
- package/dist/cli/commands/init.d.ts +65 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +122 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/inject.d.ts +41 -0
- package/dist/cli/commands/inject.d.ts.map +1 -0
- package/dist/cli/commands/inject.js +56 -0
- package/dist/cli/commands/inject.js.map +1 -0
- package/dist/cli/commands/install-global.d.ts +48 -0
- package/dist/cli/commands/install-global.d.ts.map +1 -0
- package/dist/cli/commands/install-global.js +104 -0
- package/dist/cli/commands/install-global.js.map +1 -0
- package/dist/cli/commands/intelligence.d.ts +21 -0
- package/dist/cli/commands/intelligence.d.ts.map +1 -0
- package/dist/cli/commands/intelligence.js +145 -0
- package/dist/cli/commands/intelligence.js.map +1 -0
- package/dist/cli/commands/issue.d.ts +23 -0
- package/dist/cli/commands/issue.d.ts.map +1 -0
- package/dist/cli/commands/issue.js +152 -0
- package/dist/cli/commands/issue.js.map +1 -0
- package/dist/cli/commands/labels.d.ts +21 -0
- package/dist/cli/commands/labels.d.ts.map +1 -0
- package/dist/cli/commands/labels.js +65 -0
- package/dist/cli/commands/labels.js.map +1 -0
- package/dist/cli/commands/lifecycle.d.ts +25 -0
- package/dist/cli/commands/lifecycle.d.ts.map +1 -0
- package/dist/cli/commands/lifecycle.js +221 -0
- package/dist/cli/commands/lifecycle.js.map +1 -0
- package/dist/cli/commands/list.d.ts +28 -0
- package/dist/cli/commands/list.d.ts.map +1 -0
- package/dist/cli/commands/list.js +81 -0
- package/dist/cli/commands/list.js.map +1 -0
- package/dist/cli/commands/log.d.ts +36 -0
- package/dist/cli/commands/log.d.ts.map +1 -0
- package/dist/cli/commands/log.js +50 -0
- package/dist/cli/commands/log.js.map +1 -0
- package/dist/cli/commands/manifest.d.ts +15 -0
- package/dist/cli/commands/manifest.d.ts.map +1 -0
- package/dist/cli/commands/manifest.js +334 -0
- package/dist/cli/commands/manifest.js.map +1 -0
- package/dist/cli/commands/map.d.ts +25 -0
- package/dist/cli/commands/map.d.ts.map +1 -0
- package/dist/cli/commands/map.js +37 -0
- package/dist/cli/commands/map.js.map +1 -0
- package/dist/cli/commands/memory.d.ts +48 -0
- package/dist/cli/commands/memory.d.ts.map +1 -0
- package/dist/cli/commands/memory.js +2439 -0
- package/dist/cli/commands/memory.js.map +1 -0
- package/dist/cli/commands/migrate-claude-mem.d.ts +23 -0
- package/dist/cli/commands/migrate-claude-mem.d.ts.map +1 -0
- package/dist/cli/commands/migrate-claude-mem.js +181 -0
- package/dist/cli/commands/migrate-claude-mem.js.map +1 -0
- package/dist/cli/commands/next.d.ts +27 -0
- package/dist/cli/commands/next.d.ts.map +1 -0
- package/dist/cli/commands/next.js +40 -0
- package/dist/cli/commands/next.js.map +1 -0
- package/dist/cli/commands/nexus.d.ts +15 -0
- package/dist/cli/commands/nexus.d.ts.map +1 -0
- package/dist/cli/commands/nexus.js +3377 -0
- package/dist/cli/commands/nexus.js.map +1 -0
- package/dist/cli/commands/ops.d.ts +23 -0
- package/dist/cli/commands/ops.d.ts.map +1 -0
- package/dist/cli/commands/ops.js +35 -0
- package/dist/cli/commands/ops.js.map +1 -0
- package/dist/cli/commands/orchestrate.d.ts +48 -0
- package/dist/cli/commands/orchestrate.d.ts.map +1 -0
- package/dist/cli/commands/orchestrate.js +774 -0
- package/dist/cli/commands/orchestrate.js.map +1 -0
- package/dist/cli/commands/otel.d.ts +30 -0
- package/dist/cli/commands/otel.d.ts.map +1 -0
- package/dist/cli/commands/otel.js +193 -0
- package/dist/cli/commands/otel.js.map +1 -0
- package/dist/cli/commands/phase.d.ts +29 -0
- package/dist/cli/commands/phase.d.ts.map +1 -0
- package/dist/cli/commands/phase.js +189 -0
- package/dist/cli/commands/phase.js.map +1 -0
- package/dist/cli/commands/pivot.d.ts +34 -0
- package/dist/cli/commands/pivot.d.ts.map +1 -0
- package/dist/cli/commands/pivot.js +50 -0
- package/dist/cli/commands/pivot.js.map +1 -0
- package/dist/cli/commands/plan.d.ts +17 -0
- package/dist/cli/commands/plan.d.ts.map +1 -0
- package/dist/cli/commands/plan.js +27 -0
- package/dist/cli/commands/plan.js.map +1 -0
- package/dist/cli/commands/playbook.d.ts +26 -0
- package/dist/cli/commands/playbook.d.ts.map +1 -0
- package/dist/cli/commands/playbook.js +220 -0
- package/dist/cli/commands/playbook.js.map +1 -0
- package/dist/cli/commands/promote.d.ts +19 -0
- package/dist/cli/commands/promote.d.ts.map +1 -0
- package/dist/cli/commands/promote.js +27 -0
- package/dist/cli/commands/promote.js.map +1 -0
- package/dist/cli/commands/provider.d.ts +23 -0
- package/dist/cli/commands/provider.d.ts.map +1 -0
- package/dist/cli/commands/provider.js +168 -0
- package/dist/cli/commands/provider.js.map +1 -0
- package/dist/cli/commands/reason.d.ts +18 -0
- package/dist/cli/commands/reason.d.ts.map +1 -0
- package/dist/cli/commands/reason.js +102 -0
- package/dist/cli/commands/reason.js.map +1 -0
- package/dist/cli/commands/reconcile.d.ts +35 -0
- package/dist/cli/commands/reconcile.d.ts.map +1 -0
- package/dist/cli/commands/reconcile.js +102 -0
- package/dist/cli/commands/reconcile.js.map +1 -0
- package/dist/cli/commands/refresh-memory.d.ts +16 -0
- package/dist/cli/commands/refresh-memory.d.ts.map +1 -0
- package/dist/cli/commands/refresh-memory.js +34 -0
- package/dist/cli/commands/refresh-memory.js.map +1 -0
- package/dist/cli/commands/relates.d.ts +19 -0
- package/dist/cli/commands/relates.d.ts.map +1 -0
- package/dist/cli/commands/relates.js +129 -0
- package/dist/cli/commands/relates.js.map +1 -0
- package/dist/cli/commands/release.d.ts +27 -0
- package/dist/cli/commands/release.d.ts.map +1 -0
- package/dist/cli/commands/release.js +300 -0
- package/dist/cli/commands/release.js.map +1 -0
- package/dist/cli/commands/remote.d.ts +49 -0
- package/dist/cli/commands/remote.d.ts.map +1 -0
- package/dist/cli/commands/remote.js +265 -0
- package/dist/cli/commands/remote.js.map +1 -0
- package/dist/cli/commands/reorder.d.ts +31 -0
- package/dist/cli/commands/reorder.d.ts.map +1 -0
- package/dist/cli/commands/reorder.js +57 -0
- package/dist/cli/commands/reorder.js.map +1 -0
- package/dist/cli/commands/reparent.d.ts +27 -0
- package/dist/cli/commands/reparent.d.ts.map +1 -0
- package/dist/cli/commands/reparent.js +36 -0
- package/dist/cli/commands/reparent.js.map +1 -0
- package/dist/cli/commands/req.d.ts +37 -0
- package/dist/cli/commands/req.d.ts.map +1 -0
- package/dist/cli/commands/req.js +121 -0
- package/dist/cli/commands/req.js.map +1 -0
- package/dist/cli/commands/research.d.ts +25 -0
- package/dist/cli/commands/research.d.ts.map +1 -0
- package/dist/cli/commands/research.js +327 -0
- package/dist/cli/commands/research.js.map +1 -0
- package/dist/cli/commands/restore.d.ts +64 -0
- package/dist/cli/commands/restore.d.ts.map +1 -0
- package/dist/cli/commands/restore.js +539 -0
- package/dist/cli/commands/restore.js.map +1 -0
- package/dist/cli/commands/revert.d.ts +79 -0
- package/dist/cli/commands/revert.d.ts.map +1 -0
- package/dist/cli/commands/revert.js +300 -0
- package/dist/cli/commands/revert.js.map +1 -0
- package/dist/cli/commands/roadmap.d.ts +29 -0
- package/dist/cli/commands/roadmap.d.ts.map +1 -0
- package/dist/cli/commands/roadmap.js +43 -0
- package/dist/cli/commands/roadmap.js.map +1 -0
- package/dist/cli/commands/safestop.d.ts +41 -0
- package/dist/cli/commands/safestop.d.ts.map +1 -0
- package/dist/cli/commands/safestop.js +62 -0
- package/dist/cli/commands/safestop.js.map +1 -0
- package/dist/cli/commands/schema.d.ts +44 -0
- package/dist/cli/commands/schema.d.ts.map +1 -0
- package/dist/cli/commands/schema.js +177 -0
- package/dist/cli/commands/schema.js.map +1 -0
- package/dist/cli/commands/self-update.d.ts +81 -0
- package/dist/cli/commands/self-update.d.ts.map +1 -0
- package/dist/cli/commands/self-update.js +483 -0
- package/dist/cli/commands/self-update.js.map +1 -0
- package/dist/cli/commands/sentient.d.ts +44 -0
- package/dist/cli/commands/sentient.d.ts.map +1 -0
- package/dist/cli/commands/sentient.js +687 -0
- package/dist/cli/commands/sentient.js.map +1 -0
- package/dist/cli/commands/sequence.d.ts +15 -0
- package/dist/cli/commands/sequence.d.ts.map +1 -0
- package/dist/cli/commands/sequence.js +68 -0
- package/dist/cli/commands/sequence.js.map +1 -0
- package/dist/cli/commands/session.d.ts +32 -0
- package/dist/cli/commands/session.d.ts.map +1 -0
- package/dist/cli/commands/session.js +583 -0
- package/dist/cli/commands/session.js.map +1 -0
- package/dist/cli/commands/show.d.ts +21 -0
- package/dist/cli/commands/show.d.ts.map +1 -0
- package/dist/cli/commands/show.js +37 -0
- package/dist/cli/commands/show.js.map +1 -0
- package/dist/cli/commands/skills.d.ts +31 -0
- package/dist/cli/commands/skills.d.ts.map +1 -0
- package/dist/cli/commands/skills.js +303 -0
- package/dist/cli/commands/skills.js.map +1 -0
- package/dist/cli/commands/snapshot.d.ts +17 -0
- package/dist/cli/commands/snapshot.d.ts.map +1 -0
- package/dist/cli/commands/snapshot.js +95 -0
- package/dist/cli/commands/snapshot.js.map +1 -0
- package/dist/cli/commands/start.d.ts +21 -0
- package/dist/cli/commands/start.d.ts.map +1 -0
- package/dist/cli/commands/start.js +32 -0
- package/dist/cli/commands/start.js.map +1 -0
- package/dist/cli/commands/stats.d.ts +30 -0
- package/dist/cli/commands/stats.d.ts.map +1 -0
- package/dist/cli/commands/stats.js +71 -0
- package/dist/cli/commands/stats.js.map +1 -0
- package/dist/cli/commands/sticky.d.ts +23 -0
- package/dist/cli/commands/sticky.d.ts.map +1 -0
- package/dist/cli/commands/sticky.js +315 -0
- package/dist/cli/commands/sticky.js.map +1 -0
- package/dist/cli/commands/stop.d.ts +15 -0
- package/dist/cli/commands/stop.d.ts.map +1 -0
- package/dist/cli/commands/stop.js +25 -0
- package/dist/cli/commands/stop.js.map +1 -0
- package/dist/cli/commands/sync.d.ts +25 -0
- package/dist/cli/commands/sync.d.ts.map +1 -0
- package/dist/cli/commands/sync.js +125 -0
- package/dist/cli/commands/sync.js.map +1 -0
- package/dist/cli/commands/testing.d.ts +22 -0
- package/dist/cli/commands/testing.d.ts.map +1 -0
- package/dist/cli/commands/testing.js +111 -0
- package/dist/cli/commands/testing.js.map +1 -0
- package/dist/cli/commands/token.d.ts +22 -0
- package/dist/cli/commands/token.d.ts.map +1 -0
- package/dist/cli/commands/token.js +197 -0
- package/dist/cli/commands/token.js.map +1 -0
- package/dist/cli/commands/transcript.d.ts +32 -0
- package/dist/cli/commands/transcript.d.ts.map +1 -0
- package/dist/cli/commands/transcript.js +526 -0
- package/dist/cli/commands/transcript.js.map +1 -0
- package/dist/cli/commands/update.d.ts +164 -0
- package/dist/cli/commands/update.d.ts.map +1 -0
- package/dist/cli/commands/update.js +234 -0
- package/dist/cli/commands/update.js.map +1 -0
- package/dist/cli/commands/upgrade.d.ts +76 -0
- package/dist/cli/commands/upgrade.d.ts.map +1 -0
- package/dist/cli/commands/upgrade.js +154 -0
- package/dist/cli/commands/upgrade.js.map +1 -0
- package/dist/cli/commands/verify.d.ts +83 -0
- package/dist/cli/commands/verify.d.ts.map +1 -0
- package/dist/cli/commands/verify.js +108 -0
- package/dist/cli/commands/verify.js.map +1 -0
- package/dist/cli/commands/web.d.ts +27 -0
- package/dist/cli/commands/web.d.ts.map +1 -0
- package/dist/cli/commands/web.js +414 -0
- package/dist/cli/commands/web.js.map +1 -0
- package/dist/cli/field-context.d.ts +32 -0
- package/dist/cli/field-context.d.ts.map +1 -0
- package/dist/cli/field-context.js +47 -0
- package/dist/cli/field-context.js.map +1 -0
- package/dist/cli/format-context.d.ts +32 -0
- package/dist/cli/format-context.d.ts.map +1 -0
- package/dist/cli/format-context.js +50 -0
- package/dist/cli/format-context.js.map +1 -0
- package/dist/cli/help-renderer.d.ts +40 -0
- package/dist/cli/help-renderer.d.ts.map +1 -0
- package/dist/cli/help-renderer.js +325 -0
- package/dist/cli/help-renderer.js.map +1 -0
- package/dist/cli/index.d.ts +14 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +1712 -9777
- package/dist/cli/index.js.map +4 -4
- package/dist/cli/infer-files-via-gitnexus.d.ts +12 -0
- package/dist/cli/infer-files-via-gitnexus.d.ts.map +1 -0
- package/dist/cli/infer-files-via-gitnexus.js +12 -0
- package/dist/cli/infer-files-via-gitnexus.js.map +1 -0
- package/dist/cli/lib/did-you-mean.d.ts +30 -0
- package/dist/cli/lib/did-you-mean.d.ts.map +1 -0
- package/dist/cli/lib/did-you-mean.js +63 -0
- package/dist/cli/lib/did-you-mean.js.map +1 -0
- package/dist/cli/lib/registry-args.d.ts +36 -0
- package/dist/cli/lib/registry-args.d.ts.map +1 -0
- package/dist/cli/lib/registry-args.js +37 -0
- package/dist/cli/lib/registry-args.js.map +1 -0
- package/dist/cli/lib/subcommand-guard.d.ts +45 -0
- package/dist/cli/lib/subcommand-guard.d.ts.map +1 -0
- package/dist/cli/lib/subcommand-guard.js +55 -0
- package/dist/cli/lib/subcommand-guard.js.map +1 -0
- package/dist/cli/logger-bootstrap.d.ts +6 -0
- package/dist/cli/logger-bootstrap.d.ts.map +1 -0
- package/dist/cli/logger-bootstrap.js +10 -0
- package/dist/cli/logger-bootstrap.js.map +1 -0
- package/dist/cli/middleware/output-format.d.ts +30 -0
- package/dist/cli/middleware/output-format.d.ts.map +1 -0
- package/dist/cli/middleware/output-format.js +35 -0
- package/dist/cli/middleware/output-format.js.map +1 -0
- package/dist/cli/paths.d.ts +85 -0
- package/dist/cli/paths.d.ts.map +1 -0
- package/dist/cli/paths.js +108 -0
- package/dist/cli/paths.js.map +1 -0
- package/dist/cli/progress.d.ts +89 -0
- package/dist/cli/progress.d.ts.map +1 -0
- package/dist/cli/progress.js +185 -0
- package/dist/cli/progress.js.map +1 -0
- package/dist/cli/renderers/colors.d.ts +32 -0
- package/dist/cli/renderers/colors.d.ts.map +1 -0
- package/dist/cli/renderers/colors.js +141 -0
- package/dist/cli/renderers/colors.js.map +1 -0
- package/dist/cli/renderers/error.d.ts +13 -0
- package/dist/cli/renderers/error.d.ts.map +1 -0
- package/dist/cli/renderers/error.js +42 -0
- package/dist/cli/renderers/error.js.map +1 -0
- package/dist/cli/renderers/index.d.ts +90 -0
- package/dist/cli/renderers/index.d.ts.map +1 -0
- package/dist/cli/renderers/index.js +268 -0
- package/dist/cli/renderers/index.js.map +1 -0
- package/dist/cli/renderers/lafs-validator.d.ts +91 -0
- package/dist/cli/renderers/lafs-validator.d.ts.map +1 -0
- package/dist/cli/renderers/lafs-validator.js +176 -0
- package/dist/cli/renderers/lafs-validator.js.map +1 -0
- package/dist/cli/renderers/normalizer.d.ts +21 -0
- package/dist/cli/renderers/normalizer.d.ts.map +1 -0
- package/dist/cli/renderers/normalizer.js +106 -0
- package/dist/cli/renderers/normalizer.js.map +1 -0
- package/dist/cli/renderers/system.d.ts +110 -0
- package/dist/cli/renderers/system.d.ts.map +1 -0
- package/dist/cli/renderers/system.js +662 -0
- package/dist/cli/renderers/system.js.map +1 -0
- package/dist/cli/renderers/tasks.d.ts +28 -0
- package/dist/cli/renderers/tasks.d.ts.map +1 -0
- package/dist/cli/renderers/tasks.js +306 -0
- package/dist/cli/renderers/tasks.js.map +1 -0
- package/dist/cli/tree-context.d.ts +53 -0
- package/dist/cli/tree-context.d.ts.map +1 -0
- package/dist/cli/tree-context.js +43 -0
- package/dist/cli/tree-context.js.map +1 -0
- package/dist/dispatch/adapters/cli.d.ts +67 -0
- package/dist/dispatch/adapters/cli.d.ts.map +1 -0
- package/dist/dispatch/adapters/cli.js +331 -0
- package/dist/dispatch/adapters/cli.js.map +1 -0
- package/dist/dispatch/adapters/typed.d.ts +362 -0
- package/dist/dispatch/adapters/typed.d.ts.map +1 -0
- package/dist/dispatch/adapters/typed.js +278 -0
- package/dist/dispatch/adapters/typed.js.map +1 -0
- package/dist/dispatch/context/session-context.d.ts +108 -0
- package/dist/dispatch/context/session-context.d.ts.map +1 -0
- package/dist/dispatch/context/session-context.js +111 -0
- package/dist/dispatch/context/session-context.js.map +1 -0
- package/dist/dispatch/dispatcher.d.ts +37 -0
- package/dist/dispatch/dispatcher.d.ts.map +1 -0
- package/dist/dispatch/dispatcher.js +172 -0
- package/dist/dispatch/dispatcher.js.map +1 -0
- package/dist/dispatch/domains/_base.d.ts +104 -0
- package/dist/dispatch/domains/_base.d.ts.map +1 -0
- package/dist/dispatch/domains/_base.js +147 -0
- package/dist/dispatch/domains/_base.js.map +1 -0
- package/dist/dispatch/domains/_meta.d.ts +23 -0
- package/dist/dispatch/domains/_meta.d.ts.map +1 -0
- package/dist/dispatch/domains/_meta.js +25 -0
- package/dist/dispatch/domains/_meta.js.map +1 -0
- package/dist/dispatch/domains/_routing.d.ts +8 -0
- package/dist/dispatch/domains/_routing.d.ts.map +1 -0
- package/dist/dispatch/domains/_routing.js +20 -0
- package/dist/dispatch/domains/_routing.js.map +1 -0
- package/dist/dispatch/domains/admin/smoke-provider.d.ts +54 -0
- package/dist/dispatch/domains/admin/smoke-provider.d.ts.map +1 -0
- package/dist/dispatch/domains/admin/smoke-provider.js +309 -0
- package/dist/dispatch/domains/admin/smoke-provider.js.map +1 -0
- package/dist/dispatch/domains/admin.d.ts +51 -0
- package/dist/dispatch/domains/admin.d.ts.map +1 -0
- package/dist/dispatch/domains/admin.js +1163 -0
- package/dist/dispatch/domains/admin.js.map +1 -0
- package/dist/dispatch/domains/check/canon.d.ts +65 -0
- package/dist/dispatch/domains/check/canon.d.ts.map +1 -0
- package/dist/dispatch/domains/check/canon.js +193 -0
- package/dist/dispatch/domains/check/canon.js.map +1 -0
- package/dist/dispatch/domains/check.d.ts +37 -0
- package/dist/dispatch/domains/check.d.ts.map +1 -0
- package/dist/dispatch/domains/check.js +562 -0
- package/dist/dispatch/domains/check.js.map +1 -0
- package/dist/dispatch/domains/conduit.d.ts +61 -0
- package/dist/dispatch/domains/conduit.d.ts.map +1 -0
- package/dist/dispatch/domains/conduit.js +609 -0
- package/dist/dispatch/domains/conduit.js.map +1 -0
- package/dist/dispatch/domains/diagnostics.d.ts +25 -0
- package/dist/dispatch/domains/diagnostics.d.ts.map +1 -0
- package/dist/dispatch/domains/diagnostics.js +82 -0
- package/dist/dispatch/domains/diagnostics.js.map +1 -0
- package/dist/dispatch/domains/docs.d.ts +63 -0
- package/dist/dispatch/domains/docs.d.ts.map +1 -0
- package/dist/dispatch/domains/docs.js +539 -0
- package/dist/dispatch/domains/docs.js.map +1 -0
- package/dist/dispatch/domains/index.d.ts +33 -0
- package/dist/dispatch/domains/index.d.ts.map +1 -0
- package/dist/dispatch/domains/index.js +58 -0
- package/dist/dispatch/domains/index.js.map +1 -0
- package/dist/dispatch/domains/intelligence.d.ts +26 -0
- package/dist/dispatch/domains/intelligence.d.ts.map +1 -0
- package/dist/dispatch/domains/intelligence.js +154 -0
- package/dist/dispatch/domains/intelligence.js.map +1 -0
- package/dist/dispatch/domains/ivtr.d.ts +182 -0
- package/dist/dispatch/domains/ivtr.d.ts.map +1 -0
- package/dist/dispatch/domains/ivtr.js +430 -0
- package/dist/dispatch/domains/ivtr.js.map +1 -0
- package/dist/dispatch/domains/memory.d.ts +22 -0
- package/dist/dispatch/domains/memory.d.ts.map +1 -0
- package/dist/dispatch/domains/memory.js +1281 -0
- package/dist/dispatch/domains/memory.js.map +1 -0
- package/dist/dispatch/domains/nexus.d.ts +78 -0
- package/dist/dispatch/domains/nexus.d.ts.map +1 -0
- package/dist/dispatch/domains/nexus.js +938 -0
- package/dist/dispatch/domains/nexus.js.map +1 -0
- package/dist/dispatch/domains/orchestrate.d.ts +307 -0
- package/dist/dispatch/domains/orchestrate.d.ts.map +1 -0
- package/dist/dispatch/domains/orchestrate.js +986 -0
- package/dist/dispatch/domains/orchestrate.js.map +1 -0
- package/dist/dispatch/domains/pipeline.d.ts +276 -0
- package/dist/dispatch/domains/pipeline.d.ts.map +1 -0
- package/dist/dispatch/domains/pipeline.js +689 -0
- package/dist/dispatch/domains/pipeline.js.map +1 -0
- package/dist/dispatch/domains/playbook.d.ts +131 -0
- package/dist/dispatch/domains/playbook.d.ts.map +1 -0
- package/dist/dispatch/domains/playbook.js +633 -0
- package/dist/dispatch/domains/playbook.js.map +1 -0
- package/dist/dispatch/domains/release.d.ts +97 -0
- package/dist/dispatch/domains/release.d.ts.map +1 -0
- package/dist/dispatch/domains/release.js +177 -0
- package/dist/dispatch/domains/release.js.map +1 -0
- package/dist/dispatch/domains/sentient.d.ts +60 -0
- package/dist/dispatch/domains/sentient.d.ts.map +1 -0
- package/dist/dispatch/domains/sentient.js +270 -0
- package/dist/dispatch/domains/sentient.js.map +1 -0
- package/dist/dispatch/domains/session.d.ts +49 -0
- package/dist/dispatch/domains/session.d.ts.map +1 -0
- package/dist/dispatch/domains/session.js +459 -0
- package/dist/dispatch/domains/session.js.map +1 -0
- package/dist/dispatch/domains/sticky.d.ts +82 -0
- package/dist/dispatch/domains/sticky.d.ts.map +1 -0
- package/dist/dispatch/domains/sticky.js +287 -0
- package/dist/dispatch/domains/sticky.js.map +1 -0
- package/dist/dispatch/domains/tasks.d.ts +58 -0
- package/dist/dispatch/domains/tasks.d.ts.map +1 -0
- package/dist/dispatch/domains/tasks.js +497 -0
- package/dist/dispatch/domains/tasks.js.map +1 -0
- package/dist/dispatch/domains/tools.d.ts +37 -0
- package/dist/dispatch/domains/tools.d.ts.map +1 -0
- package/dist/dispatch/domains/tools.js +481 -0
- package/dist/dispatch/domains/tools.js.map +1 -0
- package/dist/dispatch/engines/_error.d.ts +114 -0
- package/dist/dispatch/engines/_error.d.ts.map +1 -0
- package/dist/dispatch/engines/_error.js +290 -0
- package/dist/dispatch/engines/_error.js.map +1 -0
- package/dist/dispatch/engines/admin-engine.d.ts +386 -0
- package/dist/dispatch/engines/admin-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/admin-engine.js +270 -0
- package/dist/dispatch/engines/admin-engine.js.map +1 -0
- package/dist/dispatch/engines/code-engine.d.ts +14 -0
- package/dist/dispatch/engines/code-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/code-engine.js +14 -0
- package/dist/dispatch/engines/code-engine.js.map +1 -0
- package/dist/dispatch/engines/codebase-map-engine.d.ts +31 -0
- package/dist/dispatch/engines/codebase-map-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/codebase-map-engine.js +43 -0
- package/dist/dispatch/engines/codebase-map-engine.js.map +1 -0
- package/dist/dispatch/engines/config-engine.d.ts +14 -0
- package/dist/dispatch/engines/config-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/config-engine.js +14 -0
- package/dist/dispatch/engines/config-engine.js.map +1 -0
- package/dist/dispatch/engines/diagnostics-engine.d.ts +13 -0
- package/dist/dispatch/engines/diagnostics-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/diagnostics-engine.js +12 -0
- package/dist/dispatch/engines/diagnostics-engine.js.map +1 -0
- package/dist/dispatch/engines/hooks-engine.d.ts +13 -0
- package/dist/dispatch/engines/hooks-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/hooks-engine.js +12 -0
- package/dist/dispatch/engines/hooks-engine.js.map +1 -0
- package/dist/dispatch/engines/init-engine.d.ts +14 -0
- package/dist/dispatch/engines/init-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/init-engine.js +14 -0
- package/dist/dispatch/engines/init-engine.js.map +1 -0
- package/dist/dispatch/engines/lifecycle-engine.d.ts +13 -0
- package/dist/dispatch/engines/lifecycle-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/lifecycle-engine.js +12 -0
- package/dist/dispatch/engines/lifecycle-engine.js.map +1 -0
- package/dist/dispatch/engines/memory-engine.d.ts +10 -0
- package/dist/dispatch/engines/memory-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/memory-engine.js +10 -0
- package/dist/dispatch/engines/memory-engine.js.map +1 -0
- package/dist/dispatch/engines/nexus-engine.d.ts +603 -0
- package/dist/dispatch/engines/nexus-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/nexus-engine.js +1438 -0
- package/dist/dispatch/engines/nexus-engine.js.map +1 -0
- package/dist/dispatch/engines/orchestrate-engine.d.ts +252 -0
- package/dist/dispatch/engines/orchestrate-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/orchestrate-engine.js +1526 -0
- package/dist/dispatch/engines/orchestrate-engine.js.map +1 -0
- package/dist/dispatch/engines/pipeline-engine.d.ts +13 -0
- package/dist/dispatch/engines/pipeline-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/pipeline-engine.js +12 -0
- package/dist/dispatch/engines/pipeline-engine.js.map +1 -0
- package/dist/dispatch/engines/release-engine.d.ts +13 -0
- package/dist/dispatch/engines/release-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/release-engine.js +13 -0
- package/dist/dispatch/engines/release-engine.js.map +1 -0
- package/dist/dispatch/engines/session-engine.d.ts +15 -0
- package/dist/dispatch/engines/session-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/session-engine.js +12 -0
- package/dist/dispatch/engines/session-engine.js.map +1 -0
- package/dist/dispatch/engines/sticky-engine.d.ts +13 -0
- package/dist/dispatch/engines/sticky-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/sticky-engine.js +12 -0
- package/dist/dispatch/engines/sticky-engine.js.map +1 -0
- package/dist/dispatch/engines/system-engine.d.ts +543 -0
- package/dist/dispatch/engines/system-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/system-engine.js +1278 -0
- package/dist/dispatch/engines/system-engine.js.map +1 -0
- package/dist/dispatch/engines/task-engine.d.ts +1161 -0
- package/dist/dispatch/engines/task-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/task-engine.js +1599 -0
- package/dist/dispatch/engines/task-engine.js.map +1 -0
- package/dist/dispatch/engines/template-parser.d.ts +85 -0
- package/dist/dispatch/engines/template-parser.d.ts.map +1 -0
- package/dist/dispatch/engines/template-parser.js +114 -0
- package/dist/dispatch/engines/template-parser.js.map +1 -0
- package/dist/dispatch/engines/tools-engine.d.ts +13 -0
- package/dist/dispatch/engines/tools-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/tools-engine.js +12 -0
- package/dist/dispatch/engines/tools-engine.js.map +1 -0
- package/dist/dispatch/engines/validate-engine.d.ts +13 -0
- package/dist/dispatch/engines/validate-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/validate-engine.js +13 -0
- package/dist/dispatch/engines/validate-engine.js.map +1 -0
- package/dist/dispatch/index.d.ts +20 -0
- package/dist/dispatch/index.d.ts.map +1 -0
- package/dist/dispatch/index.js +19 -0
- package/dist/dispatch/index.js.map +1 -0
- package/dist/dispatch/lib/background-jobs.d.ts +162 -0
- package/dist/dispatch/lib/background-jobs.d.ts.map +1 -0
- package/dist/dispatch/lib/background-jobs.js +360 -0
- package/dist/dispatch/lib/background-jobs.js.map +1 -0
- package/dist/dispatch/lib/budget.d.ts +36 -0
- package/dist/dispatch/lib/budget.d.ts.map +1 -0
- package/dist/dispatch/lib/budget.js +109 -0
- package/dist/dispatch/lib/budget.js.map +1 -0
- package/dist/dispatch/lib/capability-matrix.d.ts +11 -0
- package/dist/dispatch/lib/capability-matrix.d.ts.map +1 -0
- package/dist/dispatch/lib/capability-matrix.js +10 -0
- package/dist/dispatch/lib/capability-matrix.js.map +1 -0
- package/dist/dispatch/lib/config-loader.d.ts +42 -0
- package/dist/dispatch/lib/config-loader.d.ts.map +1 -0
- package/dist/dispatch/lib/config-loader.js +218 -0
- package/dist/dispatch/lib/config-loader.js.map +1 -0
- package/dist/dispatch/lib/config.d.ts +11 -0
- package/dist/dispatch/lib/config.d.ts.map +1 -0
- package/dist/dispatch/lib/config.js +10 -0
- package/dist/dispatch/lib/config.js.map +1 -0
- package/dist/dispatch/lib/defaults.d.ts +115 -0
- package/dist/dispatch/lib/defaults.d.ts.map +1 -0
- package/dist/dispatch/lib/defaults.js +61 -0
- package/dist/dispatch/lib/defaults.js.map +1 -0
- package/dist/dispatch/lib/engine.d.ts +17 -0
- package/dist/dispatch/lib/engine.d.ts.map +1 -0
- package/dist/dispatch/lib/engine.js +36 -0
- package/dist/dispatch/lib/engine.js.map +1 -0
- package/dist/dispatch/lib/exit-codes.d.ts +35 -0
- package/dist/dispatch/lib/exit-codes.d.ts.map +1 -0
- package/dist/dispatch/lib/exit-codes.js +60 -0
- package/dist/dispatch/lib/exit-codes.js.map +1 -0
- package/dist/dispatch/lib/gateway-meta.d.ts +37 -0
- package/dist/dispatch/lib/gateway-meta.d.ts.map +1 -0
- package/dist/dispatch/lib/gateway-meta.js +50 -0
- package/dist/dispatch/lib/gateway-meta.js.map +1 -0
- package/dist/dispatch/lib/job-manager-accessor.d.ts +9 -0
- package/dist/dispatch/lib/job-manager-accessor.d.ts.map +1 -0
- package/dist/dispatch/lib/job-manager-accessor.js +13 -0
- package/dist/dispatch/lib/job-manager-accessor.js.map +1 -0
- package/dist/dispatch/lib/meta.d.ts +26 -0
- package/dist/dispatch/lib/meta.d.ts.map +1 -0
- package/dist/dispatch/lib/meta.js +37 -0
- package/dist/dispatch/lib/meta.js.map +1 -0
- package/dist/dispatch/lib/param-utils.d.ts +11 -0
- package/dist/dispatch/lib/param-utils.d.ts.map +1 -0
- package/dist/dispatch/lib/param-utils.js +10 -0
- package/dist/dispatch/lib/param-utils.js.map +1 -0
- package/dist/dispatch/lib/projections.d.ts +56 -0
- package/dist/dispatch/lib/projections.d.ts.map +1 -0
- package/dist/dispatch/lib/projections.js +65 -0
- package/dist/dispatch/lib/projections.js.map +1 -0
- package/dist/dispatch/lib/proto-envelope.d.ts +56 -0
- package/dist/dispatch/lib/proto-envelope.d.ts.map +1 -0
- package/dist/dispatch/lib/proto-envelope.js +17 -0
- package/dist/dispatch/lib/proto-envelope.js.map +1 -0
- package/dist/dispatch/lib/schema-utils.d.ts +39 -0
- package/dist/dispatch/lib/schema-utils.d.ts.map +1 -0
- package/dist/dispatch/lib/schema-utils.js +88 -0
- package/dist/dispatch/lib/schema-utils.js.map +1 -0
- package/dist/dispatch/lib/security.d.ts +11 -0
- package/dist/dispatch/lib/security.d.ts.map +1 -0
- package/dist/dispatch/lib/security.js +10 -0
- package/dist/dispatch/lib/security.js.map +1 -0
- package/dist/dispatch/middleware/audit.d.ts +23 -0
- package/dist/dispatch/middleware/audit.d.ts.map +1 -0
- package/dist/dispatch/middleware/audit.js +169 -0
- package/dist/dispatch/middleware/audit.js.map +1 -0
- package/dist/dispatch/middleware/field-filter.d.ts +25 -0
- package/dist/dispatch/middleware/field-filter.d.ts.map +1 -0
- package/dist/dispatch/middleware/field-filter.js +70 -0
- package/dist/dispatch/middleware/field-filter.js.map +1 -0
- package/dist/dispatch/middleware/pipeline.d.ts +33 -0
- package/dist/dispatch/middleware/pipeline.d.ts.map +1 -0
- package/dist/dispatch/middleware/pipeline.js +60 -0
- package/dist/dispatch/middleware/pipeline.js.map +1 -0
- package/dist/dispatch/middleware/projection.d.ts +35 -0
- package/dist/dispatch/middleware/projection.d.ts.map +1 -0
- package/dist/dispatch/middleware/projection.js +146 -0
- package/dist/dispatch/middleware/projection.js.map +1 -0
- package/dist/dispatch/middleware/protocol-enforcement.d.ts +30 -0
- package/dist/dispatch/middleware/protocol-enforcement.d.ts.map +1 -0
- package/dist/dispatch/middleware/protocol-enforcement.js +56 -0
- package/dist/dispatch/middleware/protocol-enforcement.js.map +1 -0
- package/dist/dispatch/middleware/rate-limiter.d.ts +72 -0
- package/dist/dispatch/middleware/rate-limiter.d.ts.map +1 -0
- package/dist/dispatch/middleware/rate-limiter.js +127 -0
- package/dist/dispatch/middleware/rate-limiter.js.map +1 -0
- package/dist/dispatch/middleware/sanitizer.d.ts +24 -0
- package/dist/dispatch/middleware/sanitizer.d.ts.map +1 -0
- package/dist/dispatch/middleware/sanitizer.js +56 -0
- package/dist/dispatch/middleware/sanitizer.js.map +1 -0
- package/dist/dispatch/middleware/session-resolver.d.ts +26 -0
- package/dist/dispatch/middleware/session-resolver.d.ts.map +1 -0
- package/dist/dispatch/middleware/session-resolver.js +65 -0
- package/dist/dispatch/middleware/session-resolver.js.map +1 -0
- package/dist/dispatch/middleware/telemetry.d.ts +21 -0
- package/dist/dispatch/middleware/telemetry.d.ts.map +1 -0
- package/dist/dispatch/middleware/telemetry.js +50 -0
- package/dist/dispatch/middleware/telemetry.js.map +1 -0
- package/dist/dispatch/middleware/verification-gates.d.ts +22 -0
- package/dist/dispatch/middleware/verification-gates.d.ts.map +1 -0
- package/dist/dispatch/middleware/verification-gates.js +59 -0
- package/dist/dispatch/middleware/verification-gates.js.map +1 -0
- package/dist/dispatch/registry.d.ts +91 -0
- package/dist/dispatch/registry.d.ts.map +1 -0
- package/dist/dispatch/registry.js +6430 -0
- package/dist/dispatch/registry.js.map +1 -0
- package/dist/dispatch/types.d.ts +150 -0
- package/dist/dispatch/types.d.ts.map +1 -0
- package/dist/dispatch/types.js +38 -0
- package/dist/dispatch/types.js.map +1 -0
- package/dist/migrations/2026-04-25-t991-parent-link-repair.d.ts +88 -0
- package/dist/migrations/2026-04-25-t991-parent-link-repair.d.ts.map +1 -0
- package/dist/migrations/2026-04-25-t991-parent-link-repair.js +76 -0
- package/dist/migrations/2026-04-25-t991-parent-link-repair.js.map +1 -0
- package/package.json +9 -9
|
@@ -0,0 +1,689 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipeline Domain Handler (Dispatch Layer)
|
|
3
|
+
*
|
|
4
|
+
* Consolidates legacy lifecycle and release domains into a single "pipeline"
|
|
5
|
+
* domain with dot-prefixed operation names. All operations delegate to
|
|
6
|
+
* native engine functions from the respective dispatch engines.
|
|
7
|
+
*
|
|
8
|
+
* Sub-domains:
|
|
9
|
+
* stage.* - RCASD-IVTR+C lifecycle stage management
|
|
10
|
+
* release.* - Release lifecycle (prepare, changelog, commit, tag, push)
|
|
11
|
+
* manifest.* - Research manifest (JSONL) operations
|
|
12
|
+
* phase.* - Project phase management
|
|
13
|
+
* chain.* - Warp-chain operations (T5405)
|
|
14
|
+
*
|
|
15
|
+
* Uses typed-handler pattern (Wave D · T975) for compile-time param narrowing.
|
|
16
|
+
* Param extraction is type-safe via OpsFromCore<typeof coreOps> inference.
|
|
17
|
+
* Zero `as string` / `as unknown` param casts in per-op code.
|
|
18
|
+
*
|
|
19
|
+
* @epic T4820
|
|
20
|
+
* @task T1441 — OpsFromCore inference migration
|
|
21
|
+
* @task T1435 — Wave 1 dispatch refactor
|
|
22
|
+
*/
|
|
23
|
+
import { execFileSync } from 'node:child_process';
|
|
24
|
+
import { addChain, advanceInstance, buildStageGuidance, channelToDistTag, createInstance, describeChannel, formatStageGuidance, getLogger, getProjectRoot, isValidStage, listChains, paginate, resolveChannelFromBranch, showChain, } from '@cleocode/core/internal';
|
|
25
|
+
import { defineTypedHandler, lafsError, lafsSuccess, typedDispatch, wrapCoreResult, } from '../adapters/typed.js';
|
|
26
|
+
import { lifecycleCheck, lifecycleGateFail, lifecycleGatePass, lifecycleHistory, lifecycleProgress, lifecycleReset, lifecycleSkip, lifecycleStatus, phaseAdvance, phaseComplete, phaseDelete, phaseList, phaseRename, phaseSet, phaseShow, phaseStart, pipelineManifestAppend, pipelineManifestArchive, pipelineManifestFind, pipelineManifestList, pipelineManifestShow, pipelineManifestStats, releaseCancel, releaseChangelogSince, releaseList, releaseRollback, releaseRollbackFull, releaseShip, releaseShow, } from '../lib/engine.js';
|
|
27
|
+
import { errorResult, getListParams, handleErrorResult } from './_base.js';
|
|
28
|
+
import { dispatchMeta } from './_meta.js';
|
|
29
|
+
// ---------------------------------------------------------------------------
|
|
30
|
+
// Core op wrappers — single-param functions for OpsFromCore inference
|
|
31
|
+
// ---------------------------------------------------------------------------
|
|
32
|
+
async function stageValidateOp(params) {
|
|
33
|
+
return lifecycleCheck(params.epicId, params.targetStage, getProjectRoot());
|
|
34
|
+
}
|
|
35
|
+
async function stageStatusOp(params) {
|
|
36
|
+
return lifecycleStatus(params.epicId, getProjectRoot());
|
|
37
|
+
}
|
|
38
|
+
async function stageHistoryOp(params) {
|
|
39
|
+
return lifecycleHistory(params.taskId, getProjectRoot());
|
|
40
|
+
}
|
|
41
|
+
async function stageGuidanceOp(params) {
|
|
42
|
+
// Perform the full guidance resolution here so OpsFromCore correctly infers
|
|
43
|
+
// params as StageGuidanceParams (not a sentinel wrapper shape).
|
|
44
|
+
let stage = params.stage;
|
|
45
|
+
const epicId = params.epicId;
|
|
46
|
+
const format = params.format ?? 'markdown';
|
|
47
|
+
const projectRoot = getProjectRoot();
|
|
48
|
+
if (!stage && epicId) {
|
|
49
|
+
const statusResult = await lifecycleStatus(epicId, projectRoot);
|
|
50
|
+
if (statusResult.success) {
|
|
51
|
+
const data = statusResult.data;
|
|
52
|
+
stage = data?.currentStage ?? data?.activeStage;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return { _stage: stage, _format: format, _projectRoot: projectRoot };
|
|
56
|
+
}
|
|
57
|
+
async function stageRecordOp(params) {
|
|
58
|
+
return lifecycleProgress(params.taskId, params.stage, params.status, params.notes, getProjectRoot());
|
|
59
|
+
}
|
|
60
|
+
async function stageSkipOp(params) {
|
|
61
|
+
return lifecycleSkip(params.taskId, params.stage, params.reason, getProjectRoot());
|
|
62
|
+
}
|
|
63
|
+
async function stageResetOp(params) {
|
|
64
|
+
return lifecycleReset(params.taskId, params.stage, params.reason, getProjectRoot());
|
|
65
|
+
}
|
|
66
|
+
async function stageGatePassOp(params) {
|
|
67
|
+
return lifecycleGatePass(params.taskId, params.gateName, params.agent, params.notes, getProjectRoot());
|
|
68
|
+
}
|
|
69
|
+
async function stageGateFailOp(params) {
|
|
70
|
+
return lifecycleGateFail(params.taskId, params.gateName, params.reason, getProjectRoot());
|
|
71
|
+
}
|
|
72
|
+
async function releaseListOp(params) {
|
|
73
|
+
return releaseList({ status: params.status, limit: params.limit, offset: params.offset }, getProjectRoot());
|
|
74
|
+
}
|
|
75
|
+
async function releaseShowOp(params) {
|
|
76
|
+
return releaseShow(params.version, getProjectRoot());
|
|
77
|
+
}
|
|
78
|
+
async function releaseChannelShowOp(_params) {
|
|
79
|
+
let currentBranch = 'unknown';
|
|
80
|
+
const projectRoot = getProjectRoot();
|
|
81
|
+
try {
|
|
82
|
+
currentBranch = execFileSync('git', ['rev-parse', '--abbrev-ref', 'HEAD'], {
|
|
83
|
+
encoding: 'utf-8',
|
|
84
|
+
stdio: 'pipe',
|
|
85
|
+
cwd: projectRoot,
|
|
86
|
+
}).trim();
|
|
87
|
+
}
|
|
88
|
+
catch {
|
|
89
|
+
// git not available or not a git repo — leave as 'unknown'
|
|
90
|
+
}
|
|
91
|
+
const resolvedChannel = resolveChannelFromBranch(currentBranch);
|
|
92
|
+
const distTag = channelToDistTag(resolvedChannel);
|
|
93
|
+
const description = describeChannel(resolvedChannel);
|
|
94
|
+
return {
|
|
95
|
+
success: true,
|
|
96
|
+
data: { branch: currentBranch, channel: resolvedChannel, distTag, description },
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
async function releaseChangelogSinceOp(params) {
|
|
100
|
+
return releaseChangelogSince(params.sinceTag, getProjectRoot());
|
|
101
|
+
}
|
|
102
|
+
async function releaseShipOp(params) {
|
|
103
|
+
return releaseShip({
|
|
104
|
+
version: params.version,
|
|
105
|
+
epicId: params.epicId,
|
|
106
|
+
remote: params.remote,
|
|
107
|
+
dryRun: params.dryRun,
|
|
108
|
+
bump: params.bump,
|
|
109
|
+
force: params.force,
|
|
110
|
+
}, getProjectRoot());
|
|
111
|
+
}
|
|
112
|
+
async function releaseCancelOp(params) {
|
|
113
|
+
return releaseCancel(params.version, getProjectRoot());
|
|
114
|
+
}
|
|
115
|
+
async function releaseRollbackOp(params) {
|
|
116
|
+
return releaseRollback(params.version, params.reason, getProjectRoot());
|
|
117
|
+
}
|
|
118
|
+
async function releaseRollbackFullOp(params) {
|
|
119
|
+
return releaseRollbackFull(params.version, { reason: params.reason, force: params.force, unpublish: params.unpublish }, getProjectRoot());
|
|
120
|
+
}
|
|
121
|
+
async function manifestShowOp(params) {
|
|
122
|
+
return pipelineManifestShow(params.entryId, getProjectRoot());
|
|
123
|
+
}
|
|
124
|
+
async function manifestListOp(params) {
|
|
125
|
+
return pipelineManifestList(params, getProjectRoot());
|
|
126
|
+
}
|
|
127
|
+
async function manifestFindOp(params) {
|
|
128
|
+
return pipelineManifestFind(params.query, { confidence: params.confidence, limit: params.limit }, getProjectRoot());
|
|
129
|
+
}
|
|
130
|
+
async function manifestStatsOp(params) {
|
|
131
|
+
return pipelineManifestStats(params.epicId, getProjectRoot());
|
|
132
|
+
}
|
|
133
|
+
async function manifestAppendOp(params) {
|
|
134
|
+
return pipelineManifestAppend(params.entry, getProjectRoot());
|
|
135
|
+
}
|
|
136
|
+
async function manifestArchiveOp(params) {
|
|
137
|
+
return pipelineManifestArchive(params.beforeDate, getProjectRoot());
|
|
138
|
+
}
|
|
139
|
+
async function phaseShowOp(params) {
|
|
140
|
+
return phaseShow(params.phaseId, getProjectRoot());
|
|
141
|
+
}
|
|
142
|
+
async function phaseListOp(_params) {
|
|
143
|
+
return phaseList(getProjectRoot());
|
|
144
|
+
}
|
|
145
|
+
async function phaseSetOp(params) {
|
|
146
|
+
const { phaseId, action, rollback, force, dryRun } = params;
|
|
147
|
+
const projectRoot = getProjectRoot();
|
|
148
|
+
if (action === 'start') {
|
|
149
|
+
return phaseStart(phaseId, projectRoot);
|
|
150
|
+
}
|
|
151
|
+
if (action === 'complete') {
|
|
152
|
+
return phaseComplete(phaseId, projectRoot);
|
|
153
|
+
}
|
|
154
|
+
return phaseSet({ phaseId, rollback, force, dryRun }, projectRoot);
|
|
155
|
+
}
|
|
156
|
+
async function phaseAdvanceOp(params) {
|
|
157
|
+
return phaseAdvance(params.force, getProjectRoot());
|
|
158
|
+
}
|
|
159
|
+
async function phaseRenameOp(params) {
|
|
160
|
+
return phaseRename(params.oldName, params.newName, getProjectRoot());
|
|
161
|
+
}
|
|
162
|
+
async function phaseDeleteOp(params) {
|
|
163
|
+
return phaseDelete(params.phaseId, { reassignTo: params.reassignTo, force: params.force }, getProjectRoot());
|
|
164
|
+
}
|
|
165
|
+
async function chainShowOp(params) {
|
|
166
|
+
const chain = await showChain(params.chainId, getProjectRoot());
|
|
167
|
+
// Return both chain and chainId so typed handler can produce E_NOT_FOUND.
|
|
168
|
+
return { _chain: chain, _chainId: params.chainId };
|
|
169
|
+
}
|
|
170
|
+
async function chainListOp(_params) {
|
|
171
|
+
// Return raw chains; outer query() applies pagination to avoid LAFSPage type conflicts.
|
|
172
|
+
const chains = await listChains(getProjectRoot());
|
|
173
|
+
return { _chains: chains };
|
|
174
|
+
}
|
|
175
|
+
async function chainAddOp(params) {
|
|
176
|
+
await addChain(params.chain, getProjectRoot());
|
|
177
|
+
return { id: params.chain.id };
|
|
178
|
+
}
|
|
179
|
+
async function chainInstantiateOp(params) {
|
|
180
|
+
return createInstance({
|
|
181
|
+
chainId: params.chainId,
|
|
182
|
+
epicId: params.epicId,
|
|
183
|
+
variables: params.variables,
|
|
184
|
+
stageToTask: params.stageToTask,
|
|
185
|
+
}, getProjectRoot());
|
|
186
|
+
}
|
|
187
|
+
async function chainAdvanceOp(params) {
|
|
188
|
+
return advanceInstance(params.instanceId, params.nextStage, params.gateResults ?? [], getProjectRoot());
|
|
189
|
+
}
|
|
190
|
+
// ---------------------------------------------------------------------------
|
|
191
|
+
// Core ops registry
|
|
192
|
+
// ---------------------------------------------------------------------------
|
|
193
|
+
const coreOps = {
|
|
194
|
+
'stage.validate': stageValidateOp,
|
|
195
|
+
'stage.status': stageStatusOp,
|
|
196
|
+
'stage.history': stageHistoryOp,
|
|
197
|
+
'stage.guidance': stageGuidanceOp,
|
|
198
|
+
'stage.record': stageRecordOp,
|
|
199
|
+
'stage.skip': stageSkipOp,
|
|
200
|
+
'stage.reset': stageResetOp,
|
|
201
|
+
'stage.gate.pass': stageGatePassOp,
|
|
202
|
+
'stage.gate.fail': stageGateFailOp,
|
|
203
|
+
'release.list': releaseListOp,
|
|
204
|
+
'release.show': releaseShowOp,
|
|
205
|
+
'release.channel.show': releaseChannelShowOp,
|
|
206
|
+
'release.changelog.since': releaseChangelogSinceOp,
|
|
207
|
+
'release.ship': releaseShipOp,
|
|
208
|
+
'release.cancel': releaseCancelOp,
|
|
209
|
+
'release.rollback': releaseRollbackOp,
|
|
210
|
+
'release.rollback.full': releaseRollbackFullOp,
|
|
211
|
+
'manifest.show': manifestShowOp,
|
|
212
|
+
'manifest.list': manifestListOp,
|
|
213
|
+
'manifest.find': manifestFindOp,
|
|
214
|
+
'manifest.stats': manifestStatsOp,
|
|
215
|
+
'manifest.append': manifestAppendOp,
|
|
216
|
+
'manifest.archive': manifestArchiveOp,
|
|
217
|
+
'phase.show': phaseShowOp,
|
|
218
|
+
'phase.list': phaseListOp,
|
|
219
|
+
'phase.set': phaseSetOp,
|
|
220
|
+
'phase.advance': phaseAdvanceOp,
|
|
221
|
+
'phase.rename': phaseRenameOp,
|
|
222
|
+
'phase.delete': phaseDeleteOp,
|
|
223
|
+
'chain.show': chainShowOp,
|
|
224
|
+
'chain.list': chainListOp,
|
|
225
|
+
'chain.add': chainAddOp,
|
|
226
|
+
'chain.instantiate': chainInstantiateOp,
|
|
227
|
+
'chain.advance': chainAdvanceOp,
|
|
228
|
+
};
|
|
229
|
+
// ---------------------------------------------------------------------------
|
|
230
|
+
// Typed inner handler (Wave D · T1441)
|
|
231
|
+
// ---------------------------------------------------------------------------
|
|
232
|
+
const _pipelineTypedHandler = defineTypedHandler('pipeline', {
|
|
233
|
+
// -------------------------------------------------------------------------
|
|
234
|
+
// Stage queries
|
|
235
|
+
// -------------------------------------------------------------------------
|
|
236
|
+
'stage.validate': async (params) => {
|
|
237
|
+
if (!params.epicId || !params.targetStage) {
|
|
238
|
+
return lafsError('E_INVALID_INPUT', 'epicId and targetStage are required', 'stage.validate');
|
|
239
|
+
}
|
|
240
|
+
return wrapCoreResult(await coreOps['stage.validate'](params), 'stage.validate');
|
|
241
|
+
},
|
|
242
|
+
'stage.status': async (params) => {
|
|
243
|
+
if (!params.epicId) {
|
|
244
|
+
return lafsError('E_INVALID_INPUT', 'epicId is required', 'stage.status');
|
|
245
|
+
}
|
|
246
|
+
return wrapCoreResult(await coreOps['stage.status'](params), 'stage.status');
|
|
247
|
+
},
|
|
248
|
+
'stage.history': async (params) => {
|
|
249
|
+
if (!params.taskId) {
|
|
250
|
+
return lafsError('E_INVALID_INPUT', 'taskId is required', 'stage.history');
|
|
251
|
+
}
|
|
252
|
+
return wrapCoreResult(await coreOps['stage.history'](params), 'stage.history');
|
|
253
|
+
},
|
|
254
|
+
// SSoT-EXEMPT: sentinel-unwrap from stageGuidanceOp + isValidStage + buildStageGuidance
|
|
255
|
+
// + formatStageGuidance — Core fn returns an intermediate sentinel shape; dispatch
|
|
256
|
+
// cannot simply delegate and wrap — ADR-058
|
|
257
|
+
'stage.guidance': async (params) => {
|
|
258
|
+
// stage.guidance — stageGuidanceOp resolves the stage from epicId and returns
|
|
259
|
+
// a { _stage, _format, _projectRoot } sentinel. Validation and guidance
|
|
260
|
+
// building happen here after unwrapping.
|
|
261
|
+
const { _stage: stage, _format: format, _projectRoot: projectRoot, } = await coreOps['stage.guidance'](params);
|
|
262
|
+
if (!stage) {
|
|
263
|
+
return lafsError('E_INVALID_INPUT', 'Either stage or epicId (with an active pipeline stage) is required', 'stage.guidance');
|
|
264
|
+
}
|
|
265
|
+
if (!isValidStage(stage)) {
|
|
266
|
+
return lafsError('E_INVALID_INPUT', `Unknown stage: ${stage}`, 'stage.guidance');
|
|
267
|
+
}
|
|
268
|
+
const guidance = buildStageGuidance(stage, projectRoot);
|
|
269
|
+
const data = format === 'json'
|
|
270
|
+
? { stage: guidance.stage, guidance }
|
|
271
|
+
: {
|
|
272
|
+
stage: guidance.stage,
|
|
273
|
+
name: guidance.name,
|
|
274
|
+
order: guidance.order,
|
|
275
|
+
primarySkill: guidance.primarySkill,
|
|
276
|
+
loadedSkills: guidance.loadedSkills,
|
|
277
|
+
requiredGates: guidance.requiredGates,
|
|
278
|
+
expectedArtifacts: guidance.expectedArtifacts,
|
|
279
|
+
source: guidance.source,
|
|
280
|
+
prompt: formatStageGuidance(guidance),
|
|
281
|
+
};
|
|
282
|
+
return lafsSuccess(data, 'stage.guidance');
|
|
283
|
+
},
|
|
284
|
+
// -------------------------------------------------------------------------
|
|
285
|
+
// Stage mutations
|
|
286
|
+
// -------------------------------------------------------------------------
|
|
287
|
+
'stage.record': async (params) => {
|
|
288
|
+
if (!params.taskId || !params.stage || !params.status) {
|
|
289
|
+
return lafsError('E_INVALID_INPUT', 'taskId, stage, and status are required', 'stage.record');
|
|
290
|
+
}
|
|
291
|
+
return wrapCoreResult(await coreOps['stage.record'](params), 'stage.record');
|
|
292
|
+
},
|
|
293
|
+
'stage.skip': async (params) => {
|
|
294
|
+
if (!params.taskId || !params.stage || !params.reason) {
|
|
295
|
+
return lafsError('E_INVALID_INPUT', 'taskId, stage, and reason are required', 'stage.skip');
|
|
296
|
+
}
|
|
297
|
+
return wrapCoreResult(await coreOps['stage.skip'](params), 'stage.skip');
|
|
298
|
+
},
|
|
299
|
+
'stage.reset': async (params) => {
|
|
300
|
+
if (!params.taskId || !params.stage || !params.reason) {
|
|
301
|
+
return lafsError('E_INVALID_INPUT', 'taskId, stage, and reason are required', 'stage.reset');
|
|
302
|
+
}
|
|
303
|
+
return wrapCoreResult(await coreOps['stage.reset'](params), 'stage.reset');
|
|
304
|
+
},
|
|
305
|
+
'stage.gate.pass': async (params) => {
|
|
306
|
+
if (!params.taskId || !params.gateName) {
|
|
307
|
+
return lafsError('E_INVALID_INPUT', 'taskId and gateName are required', 'stage.gate.pass');
|
|
308
|
+
}
|
|
309
|
+
return wrapCoreResult(await coreOps['stage.gate.pass'](params), 'stage.gate.pass');
|
|
310
|
+
},
|
|
311
|
+
'stage.gate.fail': async (params) => {
|
|
312
|
+
if (!params.taskId || !params.gateName) {
|
|
313
|
+
return lafsError('E_INVALID_INPUT', 'taskId and gateName are required', 'stage.gate.fail');
|
|
314
|
+
}
|
|
315
|
+
return wrapCoreResult(await coreOps['stage.gate.fail'](params), 'stage.gate.fail');
|
|
316
|
+
},
|
|
317
|
+
// -------------------------------------------------------------------------
|
|
318
|
+
// Release queries
|
|
319
|
+
// -------------------------------------------------------------------------
|
|
320
|
+
'release.list': async (params) => {
|
|
321
|
+
const result = await coreOps['release.list'](params);
|
|
322
|
+
if (!result.success) {
|
|
323
|
+
return lafsError(String(result.error?.code ?? 'E_INTERNAL'), result.error?.message ?? 'Unknown error', 'release.list');
|
|
324
|
+
}
|
|
325
|
+
// Embed engine page in data so outer query() can populate DispatchResponse.page.
|
|
326
|
+
return lafsSuccess({ ...result.data, _enginePage: result.page }, 'release.list');
|
|
327
|
+
},
|
|
328
|
+
'release.show': async (params) => {
|
|
329
|
+
if (!params.version) {
|
|
330
|
+
return lafsError('E_INVALID_INPUT', 'version is required', 'release.show');
|
|
331
|
+
}
|
|
332
|
+
return wrapCoreResult(await coreOps['release.show'](params), 'release.show');
|
|
333
|
+
},
|
|
334
|
+
// Always succeeds (git branch detection falls back to 'unknown') — no error path.
|
|
335
|
+
'release.channel.show': async (_params) => lafsSuccess((await coreOps['release.channel.show'](_params)).data, 'release.channel.show'),
|
|
336
|
+
'release.changelog.since': async (params) => {
|
|
337
|
+
if (!params.sinceTag) {
|
|
338
|
+
return lafsError('E_INVALID_INPUT', 'sinceTag is required', 'release.changelog.since');
|
|
339
|
+
}
|
|
340
|
+
return wrapCoreResult(await coreOps['release.changelog.since'](params), 'release.changelog.since');
|
|
341
|
+
},
|
|
342
|
+
// -------------------------------------------------------------------------
|
|
343
|
+
// Release mutations
|
|
344
|
+
// -------------------------------------------------------------------------
|
|
345
|
+
'release.ship': async (params) => {
|
|
346
|
+
if (!params.version || !params.epicId) {
|
|
347
|
+
return lafsError('E_INVALID_INPUT', 'version and epicId are required', 'release.ship');
|
|
348
|
+
}
|
|
349
|
+
return wrapCoreResult(await coreOps['release.ship'](params), 'release.ship');
|
|
350
|
+
},
|
|
351
|
+
'release.cancel': async (params) => {
|
|
352
|
+
if (!params.version) {
|
|
353
|
+
return lafsError('E_INVALID_INPUT', 'version is required', 'release.cancel');
|
|
354
|
+
}
|
|
355
|
+
return wrapCoreResult(await coreOps['release.cancel'](params), 'release.cancel');
|
|
356
|
+
},
|
|
357
|
+
'release.rollback': async (params) => {
|
|
358
|
+
if (!params.version) {
|
|
359
|
+
return lafsError('E_INVALID_INPUT', 'version is required', 'release.rollback');
|
|
360
|
+
}
|
|
361
|
+
return wrapCoreResult(await coreOps['release.rollback'](params), 'release.rollback');
|
|
362
|
+
},
|
|
363
|
+
'release.rollback.full': async (params) => {
|
|
364
|
+
if (!params.version) {
|
|
365
|
+
return lafsError('E_INVALID_INPUT', 'version is required', 'release.rollback.full');
|
|
366
|
+
}
|
|
367
|
+
return wrapCoreResult(await coreOps['release.rollback.full'](params), 'release.rollback.full');
|
|
368
|
+
},
|
|
369
|
+
// -------------------------------------------------------------------------
|
|
370
|
+
// Manifest queries
|
|
371
|
+
// -------------------------------------------------------------------------
|
|
372
|
+
'manifest.show': async (params) => {
|
|
373
|
+
if (!params.entryId) {
|
|
374
|
+
return lafsError('E_INVALID_INPUT', 'entryId is required', 'manifest.show');
|
|
375
|
+
}
|
|
376
|
+
return wrapCoreResult(await coreOps['manifest.show'](params), 'manifest.show');
|
|
377
|
+
},
|
|
378
|
+
'manifest.list': async (params) => {
|
|
379
|
+
const result = await coreOps['manifest.list'](params);
|
|
380
|
+
if (!result.success) {
|
|
381
|
+
return lafsError(String(result.error?.code ?? 'E_INTERNAL'), result.error?.message ?? 'Unknown error', 'manifest.list');
|
|
382
|
+
}
|
|
383
|
+
// Embed engine page in data so outer query() can populate DispatchResponse.page.
|
|
384
|
+
return lafsSuccess({ ...result.data, _enginePage: result.page }, 'manifest.list');
|
|
385
|
+
},
|
|
386
|
+
'manifest.find': async (params) => {
|
|
387
|
+
if (!params.query) {
|
|
388
|
+
return lafsError('E_INVALID_INPUT', 'query is required', 'manifest.find');
|
|
389
|
+
}
|
|
390
|
+
return wrapCoreResult(await coreOps['manifest.find'](params), 'manifest.find');
|
|
391
|
+
},
|
|
392
|
+
'manifest.stats': async (params) => wrapCoreResult(await coreOps['manifest.stats'](params), 'manifest.stats'),
|
|
393
|
+
// -------------------------------------------------------------------------
|
|
394
|
+
// Manifest mutations
|
|
395
|
+
// -------------------------------------------------------------------------
|
|
396
|
+
'manifest.append': async (params) => {
|
|
397
|
+
if (!params.entry) {
|
|
398
|
+
return lafsError('E_INVALID_INPUT', 'entry is required', 'manifest.append');
|
|
399
|
+
}
|
|
400
|
+
return wrapCoreResult(await coreOps['manifest.append'](params), 'manifest.append');
|
|
401
|
+
},
|
|
402
|
+
'manifest.archive': async (params) => {
|
|
403
|
+
if (!params.beforeDate) {
|
|
404
|
+
return lafsError('E_INVALID_INPUT', 'beforeDate is required (ISO-8601: YYYY-MM-DD)', 'manifest.archive');
|
|
405
|
+
}
|
|
406
|
+
return wrapCoreResult(await coreOps['manifest.archive'](params), 'manifest.archive');
|
|
407
|
+
},
|
|
408
|
+
// -------------------------------------------------------------------------
|
|
409
|
+
// Phase queries
|
|
410
|
+
// -------------------------------------------------------------------------
|
|
411
|
+
'phase.show': async (params) => wrapCoreResult(await coreOps['phase.show'](params), 'phase.show'),
|
|
412
|
+
// Pagination is applied in PipelineHandler.query() for phase.list.
|
|
413
|
+
'phase.list': async (_params) => wrapCoreResult(await coreOps['phase.list'](_params), 'phase.list'),
|
|
414
|
+
// -------------------------------------------------------------------------
|
|
415
|
+
// Phase mutations
|
|
416
|
+
// -------------------------------------------------------------------------
|
|
417
|
+
'phase.set': async (params) => {
|
|
418
|
+
if (!params.phaseId) {
|
|
419
|
+
return lafsError('E_INVALID_INPUT', 'phaseId is required', 'phase.set');
|
|
420
|
+
}
|
|
421
|
+
return wrapCoreResult(await coreOps['phase.set'](params), 'phase.set');
|
|
422
|
+
},
|
|
423
|
+
'phase.advance': async (params) => wrapCoreResult(await coreOps['phase.advance'](params), 'phase.advance'),
|
|
424
|
+
'phase.rename': async (params) => {
|
|
425
|
+
if (!params.oldName || !params.newName) {
|
|
426
|
+
return lafsError('E_INVALID_INPUT', 'oldName and newName are required', 'phase.rename');
|
|
427
|
+
}
|
|
428
|
+
return wrapCoreResult(await coreOps['phase.rename'](params), 'phase.rename');
|
|
429
|
+
},
|
|
430
|
+
'phase.delete': async (params) => {
|
|
431
|
+
if (!params.phaseId) {
|
|
432
|
+
return lafsError('E_INVALID_INPUT', 'phaseId is required', 'phase.delete');
|
|
433
|
+
}
|
|
434
|
+
return wrapCoreResult(await coreOps['phase.delete'](params), 'phase.delete');
|
|
435
|
+
},
|
|
436
|
+
// -------------------------------------------------------------------------
|
|
437
|
+
// Chain queries
|
|
438
|
+
// -------------------------------------------------------------------------
|
|
439
|
+
'chain.show': async (params) => {
|
|
440
|
+
if (!params.chainId) {
|
|
441
|
+
return lafsError('E_INVALID_INPUT', 'chainId is required', 'chain.show');
|
|
442
|
+
}
|
|
443
|
+
const { _chain, _chainId } = await coreOps['chain.show'](params);
|
|
444
|
+
if (!_chain) {
|
|
445
|
+
return lafsError('E_NOT_FOUND', `Chain "${_chainId}" not found`, 'chain.show');
|
|
446
|
+
}
|
|
447
|
+
return lafsSuccess(_chain, 'chain.show');
|
|
448
|
+
},
|
|
449
|
+
'chain.list': async (params) => {
|
|
450
|
+
// Returns raw chains; pagination is applied in PipelineHandler.query().
|
|
451
|
+
return lafsSuccess(await coreOps['chain.list'](params), 'chain.list');
|
|
452
|
+
},
|
|
453
|
+
// -------------------------------------------------------------------------
|
|
454
|
+
// Chain mutations
|
|
455
|
+
// -------------------------------------------------------------------------
|
|
456
|
+
'chain.add': async (params) => {
|
|
457
|
+
if (!params.chain) {
|
|
458
|
+
return lafsError('E_INVALID_INPUT', 'chain is required', 'chain.add');
|
|
459
|
+
}
|
|
460
|
+
return lafsSuccess(await coreOps['chain.add'](params), 'chain.add');
|
|
461
|
+
},
|
|
462
|
+
'chain.instantiate': async (params) => {
|
|
463
|
+
if (!params.chainId || !params.epicId) {
|
|
464
|
+
return lafsError('E_INVALID_INPUT', 'chainId and epicId are required', 'chain.instantiate');
|
|
465
|
+
}
|
|
466
|
+
try {
|
|
467
|
+
return lafsSuccess(await coreOps['chain.instantiate'](params), 'chain.instantiate');
|
|
468
|
+
}
|
|
469
|
+
catch (error) {
|
|
470
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
471
|
+
if (message.includes(`Chain "${params.chainId}" not found`) ||
|
|
472
|
+
message.includes('FOREIGN KEY constraint failed') ||
|
|
473
|
+
message.includes('SQLITE_CONSTRAINT_FOREIGNKEY')) {
|
|
474
|
+
return lafsError('E_NOT_FOUND', `Chain "${params.chainId}" not found`, 'chain.instantiate');
|
|
475
|
+
}
|
|
476
|
+
throw error;
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
'chain.advance': async (params) => {
|
|
480
|
+
if (!params.instanceId || !params.nextStage) {
|
|
481
|
+
return lafsError('E_INVALID_INPUT', 'instanceId and nextStage are required', 'chain.advance');
|
|
482
|
+
}
|
|
483
|
+
return lafsSuccess(await coreOps['chain.advance'](params), 'chain.advance');
|
|
484
|
+
},
|
|
485
|
+
});
|
|
486
|
+
// ---------------------------------------------------------------------------
|
|
487
|
+
// PipelineHandler post-dispatch helpers (ADR-058 thin-handler T1492/P1-1)
|
|
488
|
+
//
|
|
489
|
+
// These helpers extract the fat post-dispatch transformation blocks from
|
|
490
|
+
// PipelineHandler.query so each branch in the query method is ≤5 LOC.
|
|
491
|
+
// SSoT-EXEMPT: pagination + page-envelope lifting are dispatch-layer concerns
|
|
492
|
+
// (LAFSPage type incompatibility between @cleocode/lafs and @cleocode/contracts).
|
|
493
|
+
// ---------------------------------------------------------------------------
|
|
494
|
+
/** Apply phase.list pagination to a typed-dispatch envelope. */
|
|
495
|
+
function pipelinePhaseListResponse(envelope, params, operation, startTime) {
|
|
496
|
+
const listData = envelope.data ?? {};
|
|
497
|
+
const phases = (listData?.phases ?? []);
|
|
498
|
+
const total = listData?.summary?.total ?? phases.length;
|
|
499
|
+
const { limit, offset } = getListParams(params);
|
|
500
|
+
const page = paginate(phases, limit, offset);
|
|
501
|
+
return {
|
|
502
|
+
meta: dispatchMeta('query', 'pipeline', operation, startTime),
|
|
503
|
+
success: true,
|
|
504
|
+
data: { ...listData, phases: page.items, total, filtered: total },
|
|
505
|
+
page: page.page,
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
/** Apply chain.list pagination to a typed-dispatch envelope. */
|
|
509
|
+
function pipelineChainListResponse(envelope, params, operation, startTime) {
|
|
510
|
+
const rawData = envelope.data ?? { _chains: [] };
|
|
511
|
+
const chains = rawData._chains ?? [];
|
|
512
|
+
const { limit, offset } = getListParams(params);
|
|
513
|
+
const page = paginate(chains, limit, offset);
|
|
514
|
+
return {
|
|
515
|
+
meta: dispatchMeta('query', 'pipeline', operation, startTime),
|
|
516
|
+
success: true,
|
|
517
|
+
data: { chains: page.items, total: chains.length, filtered: chains.length },
|
|
518
|
+
page: page.page,
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
/** Extract _enginePage from typed-dispatch envelope and return DispatchResponse. */
|
|
522
|
+
function pipelineEnvelopeResponse(envelope, operation, startTime) {
|
|
523
|
+
const envelopeData = envelope.data;
|
|
524
|
+
const enginePage = envelopeData?._enginePage;
|
|
525
|
+
const responseData = envelopeData?._enginePage !== undefined
|
|
526
|
+
? (({ _enginePage: _p, ...rest }) => rest)(envelopeData)
|
|
527
|
+
: envelopeData;
|
|
528
|
+
return {
|
|
529
|
+
meta: dispatchMeta('query', 'pipeline', operation, startTime),
|
|
530
|
+
success: true,
|
|
531
|
+
data: responseData,
|
|
532
|
+
...(enginePage ? { page: enginePage } : {}),
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
// ---------------------------------------------------------------------------
|
|
536
|
+
// PipelineHandler
|
|
537
|
+
// ---------------------------------------------------------------------------
|
|
538
|
+
/**
|
|
539
|
+
* Pipeline domain handler.
|
|
540
|
+
*
|
|
541
|
+
* Delegates all operations to the typed inner handler via `typedDispatch`.
|
|
542
|
+
* Special cases:
|
|
543
|
+
* - `stage.guidance` — resolved in the typed handler (stage-from-epicId logic).
|
|
544
|
+
* - `phase.list` / `chain.list` — pagination applied in this outer handler to avoid
|
|
545
|
+
* LAFSPage type incompatibility between `@cleocode/lafs` and `@cleocode/contracts`.
|
|
546
|
+
*
|
|
547
|
+
* @task T1441 — OpsFromCore inference migration (Wave D · T1435)
|
|
548
|
+
*/
|
|
549
|
+
export class PipelineHandler {
|
|
550
|
+
// -----------------------------------------------------------------------
|
|
551
|
+
// DomainHandler interface
|
|
552
|
+
// -----------------------------------------------------------------------
|
|
553
|
+
async query(operation, params) {
|
|
554
|
+
const startTime = Date.now();
|
|
555
|
+
const queryOps = new Set([
|
|
556
|
+
'stage.validate',
|
|
557
|
+
'stage.status',
|
|
558
|
+
'stage.history',
|
|
559
|
+
'stage.guidance',
|
|
560
|
+
'manifest.show',
|
|
561
|
+
'manifest.list',
|
|
562
|
+
'manifest.find',
|
|
563
|
+
'manifest.stats',
|
|
564
|
+
'release.list',
|
|
565
|
+
'release.show',
|
|
566
|
+
'release.channel.show',
|
|
567
|
+
'release.changelog.since',
|
|
568
|
+
'phase.show',
|
|
569
|
+
'phase.list',
|
|
570
|
+
'chain.show',
|
|
571
|
+
'chain.list',
|
|
572
|
+
]);
|
|
573
|
+
if (!queryOps.has(operation)) {
|
|
574
|
+
return errorResult('query', 'pipeline', operation, 'E_INVALID_OPERATION', `Unknown pipeline query: ${operation}`, startTime);
|
|
575
|
+
}
|
|
576
|
+
try {
|
|
577
|
+
const envelope = await typedDispatch(_pipelineTypedHandler, operation, params ?? {});
|
|
578
|
+
if (!envelope.success) {
|
|
579
|
+
return {
|
|
580
|
+
meta: dispatchMeta('query', 'pipeline', operation, startTime),
|
|
581
|
+
success: false,
|
|
582
|
+
error: {
|
|
583
|
+
code: envelope.error?.code !== undefined ? String(envelope.error.code) : 'E_INTERNAL',
|
|
584
|
+
message: envelope.error?.message ?? 'Unknown error',
|
|
585
|
+
},
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
// phase.list / chain.list — pagination applied via helpers (ADR-058 T1492/P1-1)
|
|
589
|
+
if (operation === 'phase.list')
|
|
590
|
+
return pipelinePhaseListResponse(envelope, params, operation, startTime);
|
|
591
|
+
if (operation === 'chain.list')
|
|
592
|
+
return pipelineChainListResponse(envelope, params, operation, startTime);
|
|
593
|
+
// All other ops — extract _enginePage from envelope (manifest.list, release.list, etc.)
|
|
594
|
+
return pipelineEnvelopeResponse(envelope, operation, startTime);
|
|
595
|
+
}
|
|
596
|
+
catch (error) {
|
|
597
|
+
getLogger('domain:pipeline').error({ gateway: 'query', domain: 'pipeline', operation, err: error }, error instanceof Error ? error.message : String(error));
|
|
598
|
+
return handleErrorResult('query', 'pipeline', operation, error, startTime);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
async mutate(operation, params) {
|
|
602
|
+
const startTime = Date.now();
|
|
603
|
+
const mutateOps = new Set([
|
|
604
|
+
'stage.record',
|
|
605
|
+
'stage.skip',
|
|
606
|
+
'stage.reset',
|
|
607
|
+
'stage.gate.pass',
|
|
608
|
+
'stage.gate.fail',
|
|
609
|
+
'release.ship',
|
|
610
|
+
'release.cancel',
|
|
611
|
+
'release.rollback',
|
|
612
|
+
'release.rollback.full',
|
|
613
|
+
'manifest.append',
|
|
614
|
+
'manifest.archive',
|
|
615
|
+
'phase.set',
|
|
616
|
+
'phase.advance',
|
|
617
|
+
'phase.rename',
|
|
618
|
+
'phase.delete',
|
|
619
|
+
'chain.add',
|
|
620
|
+
'chain.instantiate',
|
|
621
|
+
'chain.advance',
|
|
622
|
+
]);
|
|
623
|
+
if (!mutateOps.has(operation)) {
|
|
624
|
+
return errorResult('mutate', 'pipeline', operation, 'E_INVALID_OPERATION', `Unknown pipeline mutation: ${operation}`, startTime);
|
|
625
|
+
}
|
|
626
|
+
try {
|
|
627
|
+
const envelope = await typedDispatch(_pipelineTypedHandler, operation, params ?? {});
|
|
628
|
+
return {
|
|
629
|
+
meta: dispatchMeta('mutate', 'pipeline', operation, startTime),
|
|
630
|
+
success: envelope.success,
|
|
631
|
+
...(envelope.success
|
|
632
|
+
? { data: envelope.data }
|
|
633
|
+
: {
|
|
634
|
+
error: {
|
|
635
|
+
code: envelope.error?.code !== undefined ? String(envelope.error.code) : 'E_INTERNAL',
|
|
636
|
+
message: envelope.error?.message ?? 'Unknown error',
|
|
637
|
+
},
|
|
638
|
+
}),
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
catch (error) {
|
|
642
|
+
getLogger('domain:pipeline').error({ gateway: 'mutate', domain: 'pipeline', operation, err: error }, error instanceof Error ? error.message : String(error));
|
|
643
|
+
return handleErrorResult('mutate', 'pipeline', operation, error, startTime);
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
getSupportedOperations() {
|
|
647
|
+
return {
|
|
648
|
+
query: [
|
|
649
|
+
'stage.validate',
|
|
650
|
+
'stage.status',
|
|
651
|
+
'stage.history',
|
|
652
|
+
'stage.guidance',
|
|
653
|
+
'manifest.show',
|
|
654
|
+
'manifest.list',
|
|
655
|
+
'manifest.find',
|
|
656
|
+
'manifest.stats',
|
|
657
|
+
'release.list',
|
|
658
|
+
'release.show',
|
|
659
|
+
'release.channel.show',
|
|
660
|
+
'release.changelog.since',
|
|
661
|
+
'phase.show',
|
|
662
|
+
'phase.list',
|
|
663
|
+
'chain.show',
|
|
664
|
+
'chain.list',
|
|
665
|
+
],
|
|
666
|
+
mutate: [
|
|
667
|
+
'stage.record',
|
|
668
|
+
'stage.skip',
|
|
669
|
+
'stage.reset',
|
|
670
|
+
'stage.gate.pass',
|
|
671
|
+
'stage.gate.fail',
|
|
672
|
+
'release.ship',
|
|
673
|
+
'release.cancel',
|
|
674
|
+
'release.rollback',
|
|
675
|
+
'release.rollback.full',
|
|
676
|
+
'manifest.append',
|
|
677
|
+
'manifest.archive',
|
|
678
|
+
'phase.set',
|
|
679
|
+
'phase.advance',
|
|
680
|
+
'phase.rename',
|
|
681
|
+
'phase.delete',
|
|
682
|
+
'chain.add',
|
|
683
|
+
'chain.instantiate',
|
|
684
|
+
'chain.advance',
|
|
685
|
+
],
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
//# sourceMappingURL=pipeline.js.map
|