@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,1161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Task Engine
|
|
3
|
+
*
|
|
4
|
+
* Native TypeScript implementation of core task CRUD operations.
|
|
5
|
+
* Uses StoreProvider (via getStore()) for task/session data access,
|
|
6
|
+
* falling back to direct JSON for config and specialized operations.
|
|
7
|
+
*
|
|
8
|
+
* CRUD operations (show, list, find, exists, create, update, complete, delete, archive)
|
|
9
|
+
* delegate to src/core/tasks/*.
|
|
10
|
+
*
|
|
11
|
+
* Non-CRUD operations delegate to src/core/tasks/task-ops.ts.
|
|
12
|
+
*
|
|
13
|
+
* @task T4657
|
|
14
|
+
* @task T4790
|
|
15
|
+
* @epic T4654
|
|
16
|
+
*/
|
|
17
|
+
import type { MinimalTaskRecord, TaskRecord } from '@cleocode/core';
|
|
18
|
+
import { type CompactTask, type ComplexityFactor, type ImpactReport, type IvtrPhase, type TaskView } from '@cleocode/core/internal';
|
|
19
|
+
import { type EngineResult } from './_error.js';
|
|
20
|
+
export type { MinimalTaskRecord, TaskRecord } from '@cleocode/core';
|
|
21
|
+
export type { CompactTask } from '@cleocode/core/internal';
|
|
22
|
+
export type { EngineResult } from './_error.js';
|
|
23
|
+
/**
|
|
24
|
+
* Get a single task by ID.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Fetches the full task record from the data accessor and converts it
|
|
28
|
+
* to the backward-compatible TaskRecord format. Also computes the
|
|
29
|
+
* canonical {@link TaskView} via `computeTaskView` so the `view` field
|
|
30
|
+
* in the response includes `readyToComplete`, `nextAction`, and
|
|
31
|
+
* `lifecycleProgress` without a second round-trip.
|
|
32
|
+
*
|
|
33
|
+
* The `view` field is `null` when `computeTaskView` cannot load the
|
|
34
|
+
* task (e.g. freshly created task not yet visible to the native DB
|
|
35
|
+
* handle). Callers MUST check `result.data.task` for the primary record.
|
|
36
|
+
*
|
|
37
|
+
* @param projectRoot - Absolute path to the project root
|
|
38
|
+
* @param taskId - Task identifier (e.g. "T001")
|
|
39
|
+
* @returns EngineResult containing the task record and canonical view
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```typescript
|
|
43
|
+
* const result = await taskShow('/project', 'T42');
|
|
44
|
+
* if (result.success) {
|
|
45
|
+
* console.log(result.data.task.title);
|
|
46
|
+
* console.log(result.data.view?.nextAction); // 'verify' | 'spawn-worker' | …
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @task T4657
|
|
51
|
+
* @task T943
|
|
52
|
+
* @epic T4654
|
|
53
|
+
*/
|
|
54
|
+
export declare function taskShow(projectRoot: string, taskId: string): Promise<EngineResult<{
|
|
55
|
+
task: TaskRecord;
|
|
56
|
+
view: TaskView | null;
|
|
57
|
+
}>>;
|
|
58
|
+
/**
|
|
59
|
+
* A single lifecycle stage transition entry returned by taskShowWithHistory.
|
|
60
|
+
* Maps the `getLifecycleStatus` stage shape into a stable, typed record.
|
|
61
|
+
*
|
|
62
|
+
* @task T787
|
|
63
|
+
* @epic T769
|
|
64
|
+
*/
|
|
65
|
+
export interface LifecycleStageEntry {
|
|
66
|
+
/** Canonical stage name (e.g. "research", "implementation"). */
|
|
67
|
+
stage: string;
|
|
68
|
+
/** Current status of this stage. */
|
|
69
|
+
status: 'not_started' | 'in_progress' | 'completed' | 'skipped' | 'failed';
|
|
70
|
+
/** ISO timestamp when the stage was started, or null. */
|
|
71
|
+
startedAt: string | null;
|
|
72
|
+
/** ISO timestamp when the stage was completed, or null. */
|
|
73
|
+
completedAt: string | null;
|
|
74
|
+
/** Output file path recorded for this stage, or null. */
|
|
75
|
+
outputFile: string | null;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Get a single task by ID, optionally including its lifecycle stage history.
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* When `includeHistory` is `true`, appends a `history` array containing one
|
|
82
|
+
* {@link LifecycleStageEntry} per RCASD pipeline stage. If the task has no
|
|
83
|
+
* pipeline record the call never fails — it returns `history: []` instead.
|
|
84
|
+
*
|
|
85
|
+
* When `includeHistory` is `false` (or omitted) the return value is identical
|
|
86
|
+
* to {@link taskShow} and the `history` key is absent from `data`.
|
|
87
|
+
*
|
|
88
|
+
* @param projectRoot - Absolute path to the project root
|
|
89
|
+
* @param taskId - Task identifier (e.g. "T042")
|
|
90
|
+
* @param includeHistory - When true, append lifecycle stage array
|
|
91
|
+
* @returns EngineResult containing the task record and optional history
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* const result = await taskShowWithHistory('/project', 'T42', true);
|
|
96
|
+
* if (result.success) {
|
|
97
|
+
* console.log(result.data.task.title);
|
|
98
|
+
* console.log(result.data.history); // LifecycleStageEntry[]
|
|
99
|
+
* }
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* @task T787
|
|
103
|
+
* @epic T769
|
|
104
|
+
*/
|
|
105
|
+
export declare function taskShowWithHistory(projectRoot: string, taskId: string, includeHistory: boolean): Promise<EngineResult<{
|
|
106
|
+
task: TaskRecord;
|
|
107
|
+
history?: LifecycleStageEntry[];
|
|
108
|
+
}>>;
|
|
109
|
+
/**
|
|
110
|
+
* List tasks with optional filters.
|
|
111
|
+
*
|
|
112
|
+
* @remarks
|
|
113
|
+
* Supports filtering by parent, status, priority, type, phase, and label.
|
|
114
|
+
* When `compact` is true, returns lightweight CompactTask records.
|
|
115
|
+
* Results are paginated via `limit` and `offset` parameters.
|
|
116
|
+
*
|
|
117
|
+
* @param projectRoot - Absolute path to the project root
|
|
118
|
+
* @param params - Optional filter, pagination, and format parameters
|
|
119
|
+
* @returns EngineResult with task array, total count, and filtered count
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* ```typescript
|
|
123
|
+
* const result = await taskList('/project', { status: 'active', limit: 10 });
|
|
124
|
+
* ```
|
|
125
|
+
*
|
|
126
|
+
* @task T4657
|
|
127
|
+
* @epic T4654
|
|
128
|
+
*/
|
|
129
|
+
export declare function taskList(projectRoot: string, params?: {
|
|
130
|
+
parent?: string;
|
|
131
|
+
status?: string;
|
|
132
|
+
priority?: string;
|
|
133
|
+
type?: string;
|
|
134
|
+
phase?: string;
|
|
135
|
+
label?: string;
|
|
136
|
+
children?: boolean;
|
|
137
|
+
limit?: number;
|
|
138
|
+
offset?: number;
|
|
139
|
+
compact?: boolean;
|
|
140
|
+
}): Promise<EngineResult<{
|
|
141
|
+
tasks: TaskRecord[] | CompactTask[];
|
|
142
|
+
total: number;
|
|
143
|
+
filtered: number;
|
|
144
|
+
}>>;
|
|
145
|
+
/**
|
|
146
|
+
* Fuzzy search tasks by title/description/ID.
|
|
147
|
+
*
|
|
148
|
+
* @remarks
|
|
149
|
+
* Returns minimal task records to keep context consumption low.
|
|
150
|
+
* Supports exact matching, status filtering, and archive inclusion.
|
|
151
|
+
*
|
|
152
|
+
* @param projectRoot - Absolute path to the project root
|
|
153
|
+
* @param query - Search string to match against title, description, or ID
|
|
154
|
+
* @param limit - Maximum number of results (defaults to 20)
|
|
155
|
+
* @param options - Additional search options
|
|
156
|
+
* @returns EngineResult with matching tasks and total count
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```typescript
|
|
160
|
+
* const result = await taskFind('/project', 'authentication', 10);
|
|
161
|
+
* ```
|
|
162
|
+
*
|
|
163
|
+
* @task T4657
|
|
164
|
+
* @epic T4654
|
|
165
|
+
*/
|
|
166
|
+
export declare function taskFind(projectRoot: string, query: string, limit?: number, options?: {
|
|
167
|
+
id?: string;
|
|
168
|
+
exact?: boolean;
|
|
169
|
+
status?: string;
|
|
170
|
+
includeArchive?: boolean;
|
|
171
|
+
offset?: number;
|
|
172
|
+
/** Comma-separated extra fields to include (e.g. "labels,acceptance,notes"). @task T092 */
|
|
173
|
+
fields?: string;
|
|
174
|
+
/** Return all task fields (same as cleo list output). @task T092 */
|
|
175
|
+
verbose?: boolean;
|
|
176
|
+
/** Filter by role axis (T944). */
|
|
177
|
+
role?: string;
|
|
178
|
+
}): Promise<EngineResult<{
|
|
179
|
+
results: (MinimalTaskRecord | TaskRecord)[];
|
|
180
|
+
total: number;
|
|
181
|
+
}>>;
|
|
182
|
+
/**
|
|
183
|
+
* Check if a task exists.
|
|
184
|
+
*
|
|
185
|
+
* @remarks
|
|
186
|
+
* Returns `{ exists: true }` if the task is found, `{ exists: false }` otherwise.
|
|
187
|
+
* Never fails -- catches all errors and returns false.
|
|
188
|
+
*
|
|
189
|
+
* @param projectRoot - Absolute path to the project root
|
|
190
|
+
* @param taskId - Task identifier to check
|
|
191
|
+
* @returns EngineResult with exists flag and the queried taskId
|
|
192
|
+
*
|
|
193
|
+
* @example
|
|
194
|
+
* ```typescript
|
|
195
|
+
* const result = await taskExists('/project', 'T42');
|
|
196
|
+
* if (result.success && result.data.exists) { console.log('exists'); }
|
|
197
|
+
* ```
|
|
198
|
+
*
|
|
199
|
+
*
|
|
200
|
+
@task
|
|
201
|
+
T4657
|
|
202
|
+
* @epic T4654
|
|
203
|
+
*/
|
|
204
|
+
export declare function taskExists(projectRoot: string, taskId: string): Promise<EngineResult<{
|
|
205
|
+
exists: boolean;
|
|
206
|
+
taskId: string;
|
|
207
|
+
}>>;
|
|
208
|
+
/**
|
|
209
|
+
* Create a new task.
|
|
210
|
+
*
|
|
211
|
+
* @remarks
|
|
212
|
+
* Validates hierarchy depth, sibling limits, parent type, and circular
|
|
213
|
+
* references before creating the task. Supports dry-run mode for preview.
|
|
214
|
+
*
|
|
215
|
+
* @param projectRoot - Absolute path to the project root
|
|
216
|
+
* @param params - Task creation parameters
|
|
217
|
+
* @returns EngineResult with the created task record and duplicate flag
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
* ```typescript
|
|
221
|
+
* const result = await taskCreate('/project', {
|
|
222
|
+
* title: 'Implement auth',
|
|
223
|
+
* description: 'Add JWT-based authentication',
|
|
224
|
+
* priority: 'high',
|
|
225
|
+
* });
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
export declare function taskCreate(projectRoot: string, params: {
|
|
229
|
+
title: string;
|
|
230
|
+
description?: string;
|
|
231
|
+
parent?: string;
|
|
232
|
+
depends?: string[];
|
|
233
|
+
priority?: string;
|
|
234
|
+
labels?: string[];
|
|
235
|
+
type?: string;
|
|
236
|
+
phase?: string;
|
|
237
|
+
size?: string;
|
|
238
|
+
acceptance?: string[];
|
|
239
|
+
notes?: string;
|
|
240
|
+
files?: string[];
|
|
241
|
+
dryRun?: boolean;
|
|
242
|
+
/** Resolve parent by title substring instead of exact ID. @task T090 */
|
|
243
|
+
parentSearch?: string;
|
|
244
|
+
/** Task role axis — intent of work (T944). Alias: `kind`. */
|
|
245
|
+
role?: string;
|
|
246
|
+
/** Task scope axis — granularity of work (T944). */
|
|
247
|
+
scope?: string;
|
|
248
|
+
/** Bug severity (T944). OWNER-WRITE-ONLY. Only valid with role='bug'. */
|
|
249
|
+
severity?: string;
|
|
250
|
+
}): Promise<EngineResult<{
|
|
251
|
+
task: TaskRecord;
|
|
252
|
+
duplicate: boolean;
|
|
253
|
+
dryRun?: boolean;
|
|
254
|
+
warnings?: string[];
|
|
255
|
+
}>>;
|
|
256
|
+
/**
|
|
257
|
+
* Update a task's fields.
|
|
258
|
+
*
|
|
259
|
+
* @remarks
|
|
260
|
+
* Supports atomic label and dependency operations via addLabels/removeLabels
|
|
261
|
+
* and addDepends/removeDepends. Returns the updated task and a list of
|
|
262
|
+
* changed fields.
|
|
263
|
+
*
|
|
264
|
+
* @param projectRoot - Absolute path to the project root
|
|
265
|
+
* @param taskId - Task identifier to update
|
|
266
|
+
* @param updates - Fields to update (only provided fields are changed)
|
|
267
|
+
* @returns EngineResult with the updated task record and list of changes
|
|
268
|
+
*
|
|
269
|
+
* @example
|
|
270
|
+
* ```typescript
|
|
271
|
+
* const result = await taskUpdate('/project', 'T42', { status: 'active' });
|
|
272
|
+
* ```
|
|
273
|
+
*/
|
|
274
|
+
export declare function taskUpdate(projectRoot: string, taskId: string, updates: {
|
|
275
|
+
title?: string;
|
|
276
|
+
description?: string;
|
|
277
|
+
status?: string;
|
|
278
|
+
priority?: string;
|
|
279
|
+
notes?: string;
|
|
280
|
+
labels?: string[];
|
|
281
|
+
addLabels?: string[];
|
|
282
|
+
removeLabels?: string[];
|
|
283
|
+
depends?: string[];
|
|
284
|
+
addDepends?: string[];
|
|
285
|
+
removeDepends?: string[];
|
|
286
|
+
acceptance?: string[];
|
|
287
|
+
parent?: string | null;
|
|
288
|
+
type?: string;
|
|
289
|
+
size?: string;
|
|
290
|
+
/** File paths associated with this task (AC.files). T1014 — parity with add. */
|
|
291
|
+
files?: string[];
|
|
292
|
+
/** Pipeline stage transition target (T834 / ADR-051 Decision 4). */
|
|
293
|
+
pipelineStage?: string;
|
|
294
|
+
/** Task role axis — intent of work (T944). */
|
|
295
|
+
role?: string;
|
|
296
|
+
/** Task scope axis — granularity of work (T944). */
|
|
297
|
+
scope?: string;
|
|
298
|
+
/**
|
|
299
|
+
* Operator-supplied justification required to override the
|
|
300
|
+
* acceptance-criteria immutability guard at locked pipeline stages.
|
|
301
|
+
*
|
|
302
|
+
* @task T1590
|
|
303
|
+
*/
|
|
304
|
+
reason?: string;
|
|
305
|
+
}): Promise<EngineResult<{
|
|
306
|
+
task: TaskRecord;
|
|
307
|
+
changes?: string[];
|
|
308
|
+
}>>;
|
|
309
|
+
/**
|
|
310
|
+
* Complete a task (set status to done).
|
|
311
|
+
*
|
|
312
|
+
* @remarks
|
|
313
|
+
* May trigger auto-completion of parent tasks and unblocking of dependent
|
|
314
|
+
* tasks. Maps core exit codes to engine error codes for structured error reporting.
|
|
315
|
+
*
|
|
316
|
+
* After a successful completion, `modified_by` and `session_id` are written back
|
|
317
|
+
* to the task row via `updateTaskFields` so every completed task carries auditable
|
|
318
|
+
* provenance (T1222 / CLEO-VALID-27). `modified_by` is sourced from the
|
|
319
|
+
* `CLEO_AGENT_ID` environment variable (falls back to `"cleo"`). `session_id` is
|
|
320
|
+
* sourced from the currently-active session returned by `getActiveSession`, falling
|
|
321
|
+
* back to the `CLEO_SESSION_ID` environment variable, and finally `null`.
|
|
322
|
+
*
|
|
323
|
+
* @param projectRoot - Absolute path to the project root
|
|
324
|
+
* @param taskId - Task identifier to complete
|
|
325
|
+
* @param notes - Optional completion notes
|
|
326
|
+
* @returns EngineResult with the completed task, auto-completed parents, and unblocked tasks
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
* ```typescript
|
|
330
|
+
* const result = await taskComplete('/project', 'T42', 'All tests passing');
|
|
331
|
+
* ```
|
|
332
|
+
*
|
|
333
|
+
* @task T1222
|
|
334
|
+
*/
|
|
335
|
+
export declare function taskComplete(projectRoot: string, taskId: string, notes?: string): Promise<EngineResult<{
|
|
336
|
+
task: TaskRecord;
|
|
337
|
+
autoCompleted?: string[];
|
|
338
|
+
unblockedTasks?: Array<{
|
|
339
|
+
id: string;
|
|
340
|
+
title: string;
|
|
341
|
+
}>;
|
|
342
|
+
}>>;
|
|
343
|
+
/**
|
|
344
|
+
* A single IVTR phase entry returned by taskCompleteStrict and taskShowIvtrHistory.
|
|
345
|
+
* Surface-safe projection of IvtrPhaseEntry with renamed agentIdentity → agent.
|
|
346
|
+
*
|
|
347
|
+
* @task T815
|
|
348
|
+
* @task T817
|
|
349
|
+
* @epic T810
|
|
350
|
+
*/
|
|
351
|
+
export interface IvtrHistoryEntry {
|
|
352
|
+
/** Phase name (implement | validate | test | released). */
|
|
353
|
+
phase: IvtrPhase;
|
|
354
|
+
/** Agent identity string, or null if unknown. */
|
|
355
|
+
agent: string | null;
|
|
356
|
+
/** ISO timestamp when this phase was started. */
|
|
357
|
+
startedAt: string;
|
|
358
|
+
/** ISO timestamp when this phase was completed, or null if still active. */
|
|
359
|
+
completedAt: string | null;
|
|
360
|
+
/** Whether this phase passed. null = in-progress. */
|
|
361
|
+
passed: boolean | null;
|
|
362
|
+
/** sha256 hashes of evidence attachments for this phase. */
|
|
363
|
+
evidenceRefs: string[];
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Complete a task with strict IVTR + evidence-staleness enforcement.
|
|
367
|
+
*
|
|
368
|
+
* @remarks
|
|
369
|
+
* Enforcement path (T832 / ADR-051 Decision 3+8):
|
|
370
|
+
* 1. **Evidence staleness re-check**: every verification.evidence record is
|
|
371
|
+
* re-validated. Hard atoms (commit, files, test-run) must still match
|
|
372
|
+
* their recorded sha256 / reachability; tampering after verify → reject
|
|
373
|
+
* with {@link E_EVIDENCE_STALE}.
|
|
374
|
+
* 2. **IVTR enforcement** in strict mode: `ivtr_state.currentPhase` MUST be
|
|
375
|
+
* `released`; otherwise reject with {@link E_IVTR_INCOMPLETE}.
|
|
376
|
+
* 3. **Parent-epic lifecycle gate**: child task completion is blocked while
|
|
377
|
+
* the parent epic is still in a planning stage (research/consensus/
|
|
378
|
+
* architecture_decision/specification/decomposition). Rejects with
|
|
379
|
+
* {@link E_LIFECYCLE_GATE_FAILED}.
|
|
380
|
+
*
|
|
381
|
+
* Unlike v2026.4.77 and earlier, `--force` is no longer accepted. The
|
|
382
|
+
* dispatch layer rejects `force` with `E_FLAG_REMOVED` before we reach
|
|
383
|
+
* here. Emergency bypass lives in `cleo verify` via `CLEO_OWNER_OVERRIDE`.
|
|
384
|
+
*
|
|
385
|
+
* @param projectRoot - Absolute path to the project root
|
|
386
|
+
* @param taskId - Task identifier to complete
|
|
387
|
+
* @param notes - Optional completion notes
|
|
388
|
+
* @returns EngineResult with the completed task, auto-completed parents, and unblocked tasks
|
|
389
|
+
*
|
|
390
|
+
* @task T815
|
|
391
|
+
* @task T832
|
|
392
|
+
* @adr ADR-051
|
|
393
|
+
* @epic T810
|
|
394
|
+
*/
|
|
395
|
+
export declare function taskCompleteStrict(projectRoot: string, taskId: string, notes?: string): Promise<EngineResult<{
|
|
396
|
+
task: TaskRecord;
|
|
397
|
+
autoCompleted?: string[];
|
|
398
|
+
unblockedTasks?: Array<{
|
|
399
|
+
id: string;
|
|
400
|
+
title: string;
|
|
401
|
+
}>;
|
|
402
|
+
}>>;
|
|
403
|
+
/**
|
|
404
|
+
* Retrieve the IVTR phase history for a task.
|
|
405
|
+
*
|
|
406
|
+
* @remarks
|
|
407
|
+
* Reads `tasks.ivtr_state` JSON and extracts the `phaseHistory` array.
|
|
408
|
+
* Returns an empty `ivtrHistory` array when the task has no IVTR state —
|
|
409
|
+
* this is not an error condition.
|
|
410
|
+
*
|
|
411
|
+
* @param projectRoot - Absolute path to the project root
|
|
412
|
+
* @param taskId - Task identifier (e.g. "T042")
|
|
413
|
+
* @returns EngineResult with ivtrHistory array
|
|
414
|
+
*
|
|
415
|
+
* @example
|
|
416
|
+
* ```typescript
|
|
417
|
+
* const result = await taskShowIvtrHistory('/project', 'T42');
|
|
418
|
+
* if (result.success) console.log(result.data.ivtrHistory);
|
|
419
|
+
* ```
|
|
420
|
+
*
|
|
421
|
+
* @task T817
|
|
422
|
+
* @epic T810
|
|
423
|
+
*/
|
|
424
|
+
export declare function taskShowIvtrHistory(projectRoot: string, taskId: string): Promise<EngineResult<{
|
|
425
|
+
ivtrHistory: IvtrHistoryEntry[];
|
|
426
|
+
}>>;
|
|
427
|
+
/**
|
|
428
|
+
* Delete a task.
|
|
429
|
+
*
|
|
430
|
+
* @remarks
|
|
431
|
+
* When `force` is true, cascade-deletes child tasks. Otherwise, returns
|
|
432
|
+
* E_HAS_CHILDREN if the task has children.
|
|
433
|
+
*
|
|
434
|
+
* @param projectRoot - Absolute path to the project root
|
|
435
|
+
* @param taskId - Task identifier to delete
|
|
436
|
+
* @param force - When true, enables cascade deletion of children
|
|
437
|
+
* @returns EngineResult with the deleted task and optional cascade info
|
|
438
|
+
*
|
|
439
|
+
* @example
|
|
440
|
+
* ```typescript
|
|
441
|
+
* const result = await taskDelete('/project', 'T42', true);
|
|
442
|
+
* ```
|
|
443
|
+
*/
|
|
444
|
+
export declare function taskDelete(projectRoot: string, taskId: string, force?: boolean): Promise<EngineResult<{
|
|
445
|
+
deletedTask: TaskRecord;
|
|
446
|
+
deleted: boolean;
|
|
447
|
+
cascadeDeleted?: string[];
|
|
448
|
+
}>>;
|
|
449
|
+
/**
|
|
450
|
+
* Archive completed tasks.
|
|
451
|
+
* Moves done/cancelled tasks from active task data to archive.
|
|
452
|
+
*
|
|
453
|
+
* @remarks
|
|
454
|
+
* Archives a specific task by ID, or all tasks completed before a given date.
|
|
455
|
+
* Archived tasks are no longer returned by default queries.
|
|
456
|
+
*
|
|
457
|
+
* @param projectRoot - Absolute path to the project root
|
|
458
|
+
* @param taskId - Optional specific task ID to archive
|
|
459
|
+
* @param before - Optional ISO date string; archives tasks completed before this date
|
|
460
|
+
* @returns EngineResult with count and list of archived task IDs
|
|
461
|
+
*
|
|
462
|
+
* @example
|
|
463
|
+
* ```typescript
|
|
464
|
+
* const result = await taskArchive('/project', undefined, '2026-01-01');
|
|
465
|
+
* ```
|
|
466
|
+
*/
|
|
467
|
+
export declare function taskArchive(projectRoot: string, taskId?: string, before?: string, opts?: {
|
|
468
|
+
taskIds?: string[];
|
|
469
|
+
includeCancelled?: boolean;
|
|
470
|
+
dryRun?: boolean;
|
|
471
|
+
}): Promise<EngineResult<{
|
|
472
|
+
archivedCount: number;
|
|
473
|
+
archivedTasks: Array<{
|
|
474
|
+
id: string;
|
|
475
|
+
}>;
|
|
476
|
+
}>>;
|
|
477
|
+
/**
|
|
478
|
+
* Suggest next task to work on based on priority, phase alignment, age, and dependency readiness.
|
|
479
|
+
*
|
|
480
|
+
* @remarks
|
|
481
|
+
* Scores all pending tasks and returns ranked suggestions. When `explain`
|
|
482
|
+
* is true, includes per-task scoring reasons in the response.
|
|
483
|
+
*
|
|
484
|
+
* @param projectRoot - Absolute path to the project root
|
|
485
|
+
* @param params - Optional count limit and explain flag
|
|
486
|
+
* @returns EngineResult with scored suggestions and total candidate count
|
|
487
|
+
*
|
|
488
|
+
* @example
|
|
489
|
+
* ```typescript
|
|
490
|
+
* const result = await taskNext('/project', { count: 3, explain: true });
|
|
491
|
+
* ```
|
|
492
|
+
*
|
|
493
|
+
* @task T4657
|
|
494
|
+
* @task T4790
|
|
495
|
+
* @epic T4654
|
|
496
|
+
*/
|
|
497
|
+
export declare function taskNext(projectRoot: string, params?: {
|
|
498
|
+
count?: number;
|
|
499
|
+
explain?: boolean;
|
|
500
|
+
}): Promise<EngineResult<{
|
|
501
|
+
suggestions: Array<{
|
|
502
|
+
id: string;
|
|
503
|
+
title: string;
|
|
504
|
+
priority: string;
|
|
505
|
+
phase: string | null;
|
|
506
|
+
score: number;
|
|
507
|
+
reasons?: string[];
|
|
508
|
+
}>;
|
|
509
|
+
totalCandidates: number;
|
|
510
|
+
}>>;
|
|
511
|
+
/**
|
|
512
|
+
* Show blocked tasks and analyze blocking chains.
|
|
513
|
+
*
|
|
514
|
+
* @remarks
|
|
515
|
+
* Identifies all blocked tasks, traces their blocking chains, and highlights
|
|
516
|
+
* critical blockers (tasks that block the most other tasks).
|
|
517
|
+
*
|
|
518
|
+
* @param projectRoot - Absolute path to the project root
|
|
519
|
+
* @param params - Optional analysis and limit parameters
|
|
520
|
+
* @returns EngineResult with blocked tasks, critical blockers, and summary
|
|
521
|
+
*
|
|
522
|
+
* @example
|
|
523
|
+
* ```typescript
|
|
524
|
+
* const result = await taskBlockers('/project', { analyze: true });
|
|
525
|
+
* ```
|
|
526
|
+
*
|
|
527
|
+
* @task T4657
|
|
528
|
+
* @task T4790
|
|
529
|
+
* @epic T4654
|
|
530
|
+
*/
|
|
531
|
+
export declare function taskBlockers(projectRoot: string, params?: {
|
|
532
|
+
analyze?: boolean;
|
|
533
|
+
limit?: number;
|
|
534
|
+
}): Promise<EngineResult<{
|
|
535
|
+
blockedTasks: Array<{
|
|
536
|
+
id: string;
|
|
537
|
+
title: string;
|
|
538
|
+
status: string;
|
|
539
|
+
depends?: string[];
|
|
540
|
+
blockingChain: string[];
|
|
541
|
+
}>;
|
|
542
|
+
criticalBlockers: Array<{
|
|
543
|
+
id: string;
|
|
544
|
+
title: string;
|
|
545
|
+
blocksCount: number;
|
|
546
|
+
}>;
|
|
547
|
+
summary: string;
|
|
548
|
+
total: number;
|
|
549
|
+
limit: number;
|
|
550
|
+
}>>;
|
|
551
|
+
/**
|
|
552
|
+
* Build hierarchy tree.
|
|
553
|
+
*
|
|
554
|
+
* @remarks
|
|
555
|
+
* Returns a tree structure of tasks rooted at the given task ID, or
|
|
556
|
+
* the full project tree when no task ID is specified.
|
|
557
|
+
*
|
|
558
|
+
* When `withBlockers` is `true` each node is annotated with `blockerChain`
|
|
559
|
+
* and `leafBlockers` so the formatter can render transitive chain information.
|
|
560
|
+
*
|
|
561
|
+
* @param projectRoot - Absolute path to the project root.
|
|
562
|
+
* @param taskId - Optional root task ID for subtree.
|
|
563
|
+
* @param withBlockers - When `true`, annotate each node with blocker chain data.
|
|
564
|
+
* @returns EngineResult with the hierarchical tree data.
|
|
565
|
+
*
|
|
566
|
+
* @example
|
|
567
|
+
* ```typescript
|
|
568
|
+
* const result = await taskTree('/project', 'T1');
|
|
569
|
+
* ```
|
|
570
|
+
*
|
|
571
|
+
* @example
|
|
572
|
+
* ```typescript
|
|
573
|
+
* // With blocker chain annotations
|
|
574
|
+
* const result = await taskTree('/project', undefined, true);
|
|
575
|
+
* ```
|
|
576
|
+
*
|
|
577
|
+
* @task T4657
|
|
578
|
+
* @task T4790
|
|
579
|
+
* @task T1206
|
|
580
|
+
* @epic T4654
|
|
581
|
+
*/
|
|
582
|
+
export declare function taskTree(projectRoot: string, taskId?: string, withBlockers?: boolean): Promise<EngineResult>;
|
|
583
|
+
/**
|
|
584
|
+
* Show dependencies for a task - both what it depends on and what depends on it.
|
|
585
|
+
*
|
|
586
|
+
* @remarks
|
|
587
|
+
* Returns bidirectional dependency information including unresolved deps
|
|
588
|
+
* and a ready flag indicating whether all dependencies are satisfied.
|
|
589
|
+
*
|
|
590
|
+
* @param projectRoot - Absolute path to the project root
|
|
591
|
+
* @param taskId - Task identifier to inspect
|
|
592
|
+
* @returns EngineResult with dependency information in both directions
|
|
593
|
+
*
|
|
594
|
+
* @example
|
|
595
|
+
* ```typescript
|
|
596
|
+
* const result = await taskDeps('/project', 'T42');
|
|
597
|
+
* ```
|
|
598
|
+
*
|
|
599
|
+
* @task T4657
|
|
600
|
+
* @task T4790
|
|
601
|
+
* @epic T4654
|
|
602
|
+
*/
|
|
603
|
+
export declare function taskDeps(projectRoot: string, taskId: string): Promise<EngineResult<{
|
|
604
|
+
taskId: string;
|
|
605
|
+
dependsOn: Array<{
|
|
606
|
+
id: string;
|
|
607
|
+
title: string;
|
|
608
|
+
status: string;
|
|
609
|
+
}>;
|
|
610
|
+
dependedOnBy: Array<{
|
|
611
|
+
id: string;
|
|
612
|
+
title: string;
|
|
613
|
+
status: string;
|
|
614
|
+
}>;
|
|
615
|
+
unresolvedDeps: string[];
|
|
616
|
+
allDepsReady: boolean;
|
|
617
|
+
}>>;
|
|
618
|
+
/**
|
|
619
|
+
* Show task relations (existing relates entries).
|
|
620
|
+
*
|
|
621
|
+
* @remarks
|
|
622
|
+
* Lists all `relates` entries for a given task, including the relationship
|
|
623
|
+
* type and optional reason.
|
|
624
|
+
*
|
|
625
|
+
* @param projectRoot - Absolute path to the project root
|
|
626
|
+
* @param taskId - Task identifier to inspect
|
|
627
|
+
* @returns EngineResult with relations array and count
|
|
628
|
+
*
|
|
629
|
+
* @example
|
|
630
|
+
* ```typescript
|
|
631
|
+
* const result = await taskRelates('/project', 'T42');
|
|
632
|
+
* ```
|
|
633
|
+
*
|
|
634
|
+
* @task T4657
|
|
635
|
+
* @task T4790
|
|
636
|
+
* @epic T4654
|
|
637
|
+
*/
|
|
638
|
+
export declare function taskRelates(projectRoot: string, taskId: string): Promise<EngineResult<{
|
|
639
|
+
taskId: string;
|
|
640
|
+
relations: Array<{
|
|
641
|
+
taskId: string;
|
|
642
|
+
type: string;
|
|
643
|
+
reason?: string;
|
|
644
|
+
}>;
|
|
645
|
+
count: number;
|
|
646
|
+
}>>;
|
|
647
|
+
/**
|
|
648
|
+
* Add a relation between two tasks.
|
|
649
|
+
*
|
|
650
|
+
* @remarks
|
|
651
|
+
* Valid relation types: related, blocks, duplicates, absorbs, fixes, extends, supersedes.
|
|
652
|
+
*
|
|
653
|
+
* @param projectRoot - Absolute path to the project root
|
|
654
|
+
* @param taskId - Source task identifier
|
|
655
|
+
* @param relatedId - Target task identifier
|
|
656
|
+
* @param type - Relation type (e.g. "blocks", "related")
|
|
657
|
+
* @param reason - Optional explanation for the relation
|
|
658
|
+
* @returns EngineResult confirming the relation was added
|
|
659
|
+
*
|
|
660
|
+
* @example
|
|
661
|
+
* ```typescript
|
|
662
|
+
* const result = await taskRelatesAdd('/project', 'T42', 'T43', 'blocks', 'Needs auth first');
|
|
663
|
+
* ```
|
|
664
|
+
*
|
|
665
|
+
* @task T4790
|
|
666
|
+
*/
|
|
667
|
+
export declare function taskRelatesAdd(projectRoot: string, taskId: string, relatedId: string, type: string, reason?: string): Promise<EngineResult<{
|
|
668
|
+
from: string;
|
|
669
|
+
to: string;
|
|
670
|
+
type: string;
|
|
671
|
+
added: boolean;
|
|
672
|
+
}>>;
|
|
673
|
+
/**
|
|
674
|
+
* Analyze a task for description quality, missing fields, and dependency health.
|
|
675
|
+
*
|
|
676
|
+
* @remarks
|
|
677
|
+
* When no task ID is provided, analyzes all tasks to identify bottlenecks,
|
|
678
|
+
* leverage opportunities, and overall project health metrics.
|
|
679
|
+
*
|
|
680
|
+
* @param projectRoot - Absolute path to the project root
|
|
681
|
+
* @param taskId - Optional specific task to analyze
|
|
682
|
+
* @param params - Optional analysis parameters
|
|
683
|
+
* @returns EngineResult with recommended task, bottlenecks, tiers, and metrics
|
|
684
|
+
*
|
|
685
|
+
* @example
|
|
686
|
+
* ```typescript
|
|
687
|
+
* const result = await taskAnalyze('/project');
|
|
688
|
+
* ```
|
|
689
|
+
*
|
|
690
|
+
* @task T4657
|
|
691
|
+
* @task T4790
|
|
692
|
+
* @epic T4654
|
|
693
|
+
*/
|
|
694
|
+
export declare function taskAnalyze(projectRoot: string, taskId?: string, params?: {
|
|
695
|
+
tierLimit?: number;
|
|
696
|
+
}): Promise<EngineResult<{
|
|
697
|
+
recommended: {
|
|
698
|
+
id: string;
|
|
699
|
+
title: string;
|
|
700
|
+
leverage: number;
|
|
701
|
+
reason: string;
|
|
702
|
+
} | null;
|
|
703
|
+
bottlenecks: Array<{
|
|
704
|
+
id: string;
|
|
705
|
+
title: string;
|
|
706
|
+
blocksCount: number;
|
|
707
|
+
}>;
|
|
708
|
+
tiers: {
|
|
709
|
+
critical: Array<{
|
|
710
|
+
id: string;
|
|
711
|
+
title: string;
|
|
712
|
+
leverage: number;
|
|
713
|
+
}>;
|
|
714
|
+
high: Array<{
|
|
715
|
+
id: string;
|
|
716
|
+
title: string;
|
|
717
|
+
leverage: number;
|
|
718
|
+
}>;
|
|
719
|
+
normal: Array<{
|
|
720
|
+
id: string;
|
|
721
|
+
title: string;
|
|
722
|
+
leverage: number;
|
|
723
|
+
}>;
|
|
724
|
+
};
|
|
725
|
+
metrics: {
|
|
726
|
+
totalTasks: number;
|
|
727
|
+
actionable: number;
|
|
728
|
+
blocked: number;
|
|
729
|
+
avgLeverage: number;
|
|
730
|
+
};
|
|
731
|
+
tierLimit: number;
|
|
732
|
+
}>>;
|
|
733
|
+
/**
|
|
734
|
+
* Predict downstream impact of a free-text change description.
|
|
735
|
+
*
|
|
736
|
+
* Delegates to {@link predictImpact} from the intelligence module.
|
|
737
|
+
* Uses keyword matching against task titles/descriptions, then traces
|
|
738
|
+
* the reverse dependency graph for transitive effects.
|
|
739
|
+
*
|
|
740
|
+
* @remarks
|
|
741
|
+
* The impact report includes directly affected tasks, transitively
|
|
742
|
+
* affected tasks (through the dependency graph), and a severity assessment.
|
|
743
|
+
*
|
|
744
|
+
* @param projectRoot - Project root directory
|
|
745
|
+
* @param change - Free-text description of the proposed change
|
|
746
|
+
* @param matchLimit - Maximum seed tasks to match (default: 5)
|
|
747
|
+
* @returns Impact prediction report
|
|
748
|
+
*
|
|
749
|
+
* @example
|
|
750
|
+
* ```typescript
|
|
751
|
+
* const result = await taskImpact('/project', 'Refactor authentication module');
|
|
752
|
+
* ```
|
|
753
|
+
*
|
|
754
|
+
* @task T043
|
|
755
|
+
*/
|
|
756
|
+
export declare function taskImpact(projectRoot: string, change: string, matchLimit?: number): Promise<EngineResult<ImpactReport>>;
|
|
757
|
+
/**
|
|
758
|
+
* Restore a cancelled task back to pending.
|
|
759
|
+
*
|
|
760
|
+
* @remarks
|
|
761
|
+
* When cascade is true, also restores cancelled children.
|
|
762
|
+
*
|
|
763
|
+
* @param projectRoot - Absolute path to the project root
|
|
764
|
+
* @param taskId - Task identifier to restore
|
|
765
|
+
* @param params - Optional cascade and notes options
|
|
766
|
+
* @returns EngineResult with restored task IDs and count
|
|
767
|
+
*
|
|
768
|
+
* @example
|
|
769
|
+
* ```typescript
|
|
770
|
+
* const result = await taskRestore('/project', 'T42', { cascade: true });
|
|
771
|
+
* ```
|
|
772
|
+
*
|
|
773
|
+
* @task T4790
|
|
774
|
+
*/
|
|
775
|
+
export declare function taskRestore(projectRoot: string, taskId: string, params?: {
|
|
776
|
+
cascade?: boolean;
|
|
777
|
+
notes?: string;
|
|
778
|
+
}): Promise<EngineResult<{
|
|
779
|
+
task: string;
|
|
780
|
+
restored: string[];
|
|
781
|
+
count: number;
|
|
782
|
+
}>>;
|
|
783
|
+
/**
|
|
784
|
+
* Move an archived task back to active task data with status 'done' (or specified status).
|
|
785
|
+
*
|
|
786
|
+
* @remarks
|
|
787
|
+
* By default restores with status 'done'. Use `preserveStatus` to keep
|
|
788
|
+
* the original status, or `status` to set a specific status.
|
|
789
|
+
*
|
|
790
|
+
* @param projectRoot - Absolute path to the project root
|
|
791
|
+
* @param taskId - Archived task identifier to restore
|
|
792
|
+
* @param params - Optional status override parameters
|
|
793
|
+
* @returns EngineResult with the unarchived task info
|
|
794
|
+
*
|
|
795
|
+
* @example
|
|
796
|
+
* ```typescript
|
|
797
|
+
* const result = await taskUnarchive('/project', 'T42', { status: 'pending' });
|
|
798
|
+
* ```
|
|
799
|
+
*
|
|
800
|
+
* @task T4790
|
|
801
|
+
*/
|
|
802
|
+
export declare function taskUnarchive(projectRoot: string, taskId: string, params?: {
|
|
803
|
+
status?: string;
|
|
804
|
+
preserveStatus?: boolean;
|
|
805
|
+
}): Promise<EngineResult<{
|
|
806
|
+
task: string;
|
|
807
|
+
unarchived: boolean;
|
|
808
|
+
title: string;
|
|
809
|
+
status: string;
|
|
810
|
+
}>>;
|
|
811
|
+
/**
|
|
812
|
+
* Change task position within its sibling group.
|
|
813
|
+
*
|
|
814
|
+
* @remarks
|
|
815
|
+
* Reorders a task to the specified zero-based position among its siblings.
|
|
816
|
+
*
|
|
817
|
+
* @param projectRoot - Absolute path to the project root
|
|
818
|
+
* @param taskId - Task identifier to reorder
|
|
819
|
+
* @param position - Target zero-based position
|
|
820
|
+
* @returns EngineResult with new position and total siblings
|
|
821
|
+
*
|
|
822
|
+
* @example
|
|
823
|
+
* ```typescript
|
|
824
|
+
* const result = await taskReorder('/project', 'T42', 0); // move to first
|
|
825
|
+
* ```
|
|
826
|
+
*
|
|
827
|
+
* @task T4790
|
|
828
|
+
*/
|
|
829
|
+
export declare function taskReorder(projectRoot: string, taskId: string, position: number): Promise<EngineResult<{
|
|
830
|
+
task: string;
|
|
831
|
+
reordered: boolean;
|
|
832
|
+
newPosition: number;
|
|
833
|
+
totalSiblings: number;
|
|
834
|
+
}>>;
|
|
835
|
+
/**
|
|
836
|
+
* Move task under a different parent.
|
|
837
|
+
*
|
|
838
|
+
* @remarks
|
|
839
|
+
* Pass null as `newParentId` to promote the task to a root-level task.
|
|
840
|
+
* Validates hierarchy depth and circular reference constraints.
|
|
841
|
+
*
|
|
842
|
+
* @param projectRoot - Absolute path to the project root
|
|
843
|
+
* @param taskId - Task identifier to move
|
|
844
|
+
* @param newParentId - New parent task ID, or null for root
|
|
845
|
+
* @returns EngineResult with old and new parent information
|
|
846
|
+
*
|
|
847
|
+
* @example
|
|
848
|
+
* ```typescript
|
|
849
|
+
* const result = await taskReparent('/project', 'T42', 'T1');
|
|
850
|
+
* ```
|
|
851
|
+
*
|
|
852
|
+
* @task T4790
|
|
853
|
+
*/
|
|
854
|
+
export declare function taskReparent(projectRoot: string, taskId: string, newParentId: string | null): Promise<EngineResult<{
|
|
855
|
+
task: string;
|
|
856
|
+
reparented: boolean;
|
|
857
|
+
oldParent: string | null;
|
|
858
|
+
newParent: string | null;
|
|
859
|
+
newType?: string;
|
|
860
|
+
}>>;
|
|
861
|
+
/**
|
|
862
|
+
* Promote a subtask to task or task to root (remove parent).
|
|
863
|
+
*
|
|
864
|
+
* @remarks
|
|
865
|
+
* Removes the parent reference and may change the task type from subtask to task.
|
|
866
|
+
*
|
|
867
|
+
* @param projectRoot - Absolute path to the project root
|
|
868
|
+
* @param taskId - Task identifier to promote
|
|
869
|
+
* @returns EngineResult with promotion details
|
|
870
|
+
*
|
|
871
|
+
* @example
|
|
872
|
+
* ```typescript
|
|
873
|
+
* const result = await taskPromote('/project', 'T42');
|
|
874
|
+
* ```
|
|
875
|
+
*
|
|
876
|
+
* @task T4790
|
|
877
|
+
*/
|
|
878
|
+
export declare function taskPromote(projectRoot: string, taskId: string): Promise<EngineResult<{
|
|
879
|
+
task: string;
|
|
880
|
+
promoted: boolean;
|
|
881
|
+
previousParent: string | null;
|
|
882
|
+
typeChanged: boolean;
|
|
883
|
+
}>>;
|
|
884
|
+
/**
|
|
885
|
+
* Reopen a completed task (set status back to pending).
|
|
886
|
+
*
|
|
887
|
+
* @remarks
|
|
888
|
+
* Only works on tasks with status 'done'. Optionally sets a different
|
|
889
|
+
* target status and records a reason for reopening.
|
|
890
|
+
*
|
|
891
|
+
* @param projectRoot - Absolute path to the project root
|
|
892
|
+
* @param taskId - Task identifier to reopen
|
|
893
|
+
* @param params - Optional target status and reason
|
|
894
|
+
* @returns EngineResult with reopen details including previous and new status
|
|
895
|
+
*
|
|
896
|
+
* @example
|
|
897
|
+
* ```typescript
|
|
898
|
+
* const result = await taskReopen('/project', 'T42', { reason: 'Tests regressed' });
|
|
899
|
+
* ```
|
|
900
|
+
*
|
|
901
|
+
* @task T4790
|
|
902
|
+
*/
|
|
903
|
+
export declare function taskReopen(projectRoot: string, taskId: string, params?: {
|
|
904
|
+
status?: string;
|
|
905
|
+
reason?: string;
|
|
906
|
+
}): Promise<EngineResult<{
|
|
907
|
+
task: string;
|
|
908
|
+
reopened: boolean;
|
|
909
|
+
previousStatus: string;
|
|
910
|
+
newStatus: string;
|
|
911
|
+
}>>;
|
|
912
|
+
/**
|
|
913
|
+
* Cancel a task (soft terminal state -- reversible via restore).
|
|
914
|
+
*
|
|
915
|
+
* @remarks
|
|
916
|
+
* Sets the task status to cancelled with an optional reason. The task can
|
|
917
|
+
* be restored later via {@link taskRestore}.
|
|
918
|
+
*
|
|
919
|
+
* @param projectRoot - Absolute path to the project root
|
|
920
|
+
* @param taskId - Task identifier to cancel
|
|
921
|
+
* @param reason - Optional cancellation reason
|
|
922
|
+
* @returns EngineResult with cancellation details
|
|
923
|
+
*
|
|
924
|
+
* @example
|
|
925
|
+
* ```typescript
|
|
926
|
+
* const result = await taskCancel('/project', 'T42', 'No longer needed');
|
|
927
|
+
* ```
|
|
928
|
+
*
|
|
929
|
+
* @task T4529
|
|
930
|
+
*/
|
|
931
|
+
export declare function taskCancel(projectRoot: string, taskId: string, reason?: string): Promise<EngineResult<{
|
|
932
|
+
task: string;
|
|
933
|
+
cancelled: boolean;
|
|
934
|
+
reason?: string;
|
|
935
|
+
cancelledAt: string;
|
|
936
|
+
}>>;
|
|
937
|
+
/**
|
|
938
|
+
* Deterministic complexity scoring from task metadata.
|
|
939
|
+
*
|
|
940
|
+
* @remarks
|
|
941
|
+
* Produces a size estimate (small/medium/large) based on dependency depth,
|
|
942
|
+
* subtask count, file count, and other structural factors.
|
|
943
|
+
*
|
|
944
|
+
* @param projectRoot - Absolute path to the project root
|
|
945
|
+
* @param params - Parameters including the task ID to estimate
|
|
946
|
+
* @returns EngineResult with size, score, factors, and structural metrics
|
|
947
|
+
*
|
|
948
|
+
* @example
|
|
949
|
+
* ```typescript
|
|
950
|
+
* const result = await taskComplexityEstimate('/project', { taskId: 'T42' });
|
|
951
|
+
* ```
|
|
952
|
+
*
|
|
953
|
+
* @task T4657
|
|
954
|
+
* @task T4790
|
|
955
|
+
* @epic T4654
|
|
956
|
+
*/
|
|
957
|
+
export declare function taskComplexityEstimate(projectRoot: string, params: {
|
|
958
|
+
taskId: string;
|
|
959
|
+
}): Promise<EngineResult<{
|
|
960
|
+
size: 'small' | 'medium' | 'large';
|
|
961
|
+
score: number;
|
|
962
|
+
factors: ComplexityFactor[];
|
|
963
|
+
dependencyDepth: number;
|
|
964
|
+
subtaskCount: number;
|
|
965
|
+
fileCount: number;
|
|
966
|
+
}>>;
|
|
967
|
+
/**
|
|
968
|
+
* List dependencies for a task in a given direction.
|
|
969
|
+
* @task T4657
|
|
970
|
+
* @task T4790
|
|
971
|
+
* @epic T4654
|
|
972
|
+
*/
|
|
973
|
+
export declare function taskDepends(projectRoot: string, taskId: string, direction?: 'upstream' | 'downstream' | 'both', tree?: boolean): Promise<EngineResult>;
|
|
974
|
+
/**
|
|
975
|
+
* Overview of all dependencies across the project.
|
|
976
|
+
* @task T5157
|
|
977
|
+
*/
|
|
978
|
+
export declare function taskDepsOverview(projectRoot: string): Promise<EngineResult<{
|
|
979
|
+
totalTasks: number;
|
|
980
|
+
tasksWithDeps: number;
|
|
981
|
+
blockedTasks: Array<{
|
|
982
|
+
id: string;
|
|
983
|
+
title: string;
|
|
984
|
+
status: string;
|
|
985
|
+
unblockedBy: string[];
|
|
986
|
+
}>;
|
|
987
|
+
readyTasks: Array<{
|
|
988
|
+
id: string;
|
|
989
|
+
title: string;
|
|
990
|
+
status: string;
|
|
991
|
+
}>;
|
|
992
|
+
validation: {
|
|
993
|
+
valid: boolean;
|
|
994
|
+
errorCount: number;
|
|
995
|
+
warningCount: number;
|
|
996
|
+
};
|
|
997
|
+
}>>;
|
|
998
|
+
/**
|
|
999
|
+
* Detect circular dependencies across the project.
|
|
1000
|
+
* @task T5157
|
|
1001
|
+
*/
|
|
1002
|
+
export declare function taskDepsCycles(projectRoot: string): Promise<EngineResult<{
|
|
1003
|
+
hasCycles: boolean;
|
|
1004
|
+
cycles: Array<{
|
|
1005
|
+
path: string[];
|
|
1006
|
+
tasks: Array<{
|
|
1007
|
+
id: string;
|
|
1008
|
+
title: string;
|
|
1009
|
+
}>;
|
|
1010
|
+
}>;
|
|
1011
|
+
}>>;
|
|
1012
|
+
/**
|
|
1013
|
+
* Compute task statistics, optionally scoped to an epic.
|
|
1014
|
+
* @task T4657
|
|
1015
|
+
* @task T4790
|
|
1016
|
+
* @epic T4654
|
|
1017
|
+
*/
|
|
1018
|
+
export declare function taskStats(projectRoot: string, epicId?: string): Promise<EngineResult<{
|
|
1019
|
+
total: number;
|
|
1020
|
+
pending: number;
|
|
1021
|
+
active: number;
|
|
1022
|
+
blocked: number;
|
|
1023
|
+
done: number;
|
|
1024
|
+
cancelled: number;
|
|
1025
|
+
byPriority: Record<string, number>;
|
|
1026
|
+
byType: Record<string, number>;
|
|
1027
|
+
}>>;
|
|
1028
|
+
/**
|
|
1029
|
+
* Export tasks as JSON or CSV.
|
|
1030
|
+
* @task T4657
|
|
1031
|
+
* @task T4790
|
|
1032
|
+
* @epic T4654
|
|
1033
|
+
*/
|
|
1034
|
+
export declare function taskExport(projectRoot: string, params?: {
|
|
1035
|
+
format?: 'json' | 'csv';
|
|
1036
|
+
status?: string;
|
|
1037
|
+
parent?: string;
|
|
1038
|
+
}): Promise<EngineResult<unknown>>;
|
|
1039
|
+
/**
|
|
1040
|
+
* Get task history from the log file.
|
|
1041
|
+
* @task T4657
|
|
1042
|
+
* @task T4790
|
|
1043
|
+
* @epic T4654
|
|
1044
|
+
*/
|
|
1045
|
+
export declare function taskHistory(projectRoot: string, taskId: string, limit?: number): Promise<EngineResult<Array<Record<string, unknown>>>>;
|
|
1046
|
+
/**
|
|
1047
|
+
* Lint tasks for common issues.
|
|
1048
|
+
* @task T4657
|
|
1049
|
+
* @task T4790
|
|
1050
|
+
* @epic T4654
|
|
1051
|
+
*/
|
|
1052
|
+
export declare function taskLint(projectRoot: string, taskId?: string): Promise<EngineResult<Array<{
|
|
1053
|
+
taskId: string;
|
|
1054
|
+
severity: 'error' | 'warning';
|
|
1055
|
+
rule: string;
|
|
1056
|
+
message: string;
|
|
1057
|
+
}>>>;
|
|
1058
|
+
/**
|
|
1059
|
+
* Validate multiple tasks at once.
|
|
1060
|
+
* @task T4657
|
|
1061
|
+
* @task T4790
|
|
1062
|
+
* @epic T4654
|
|
1063
|
+
*/
|
|
1064
|
+
export declare function taskBatchValidate(projectRoot: string, taskIds: string[], checkMode?: 'full' | 'quick'): Promise<EngineResult<{
|
|
1065
|
+
results: Record<string, Array<{
|
|
1066
|
+
severity: 'error' | 'warning';
|
|
1067
|
+
rule: string;
|
|
1068
|
+
message: string;
|
|
1069
|
+
}>>;
|
|
1070
|
+
summary: {
|
|
1071
|
+
totalTasks: number;
|
|
1072
|
+
validTasks: number;
|
|
1073
|
+
invalidTasks: number;
|
|
1074
|
+
totalIssues: number;
|
|
1075
|
+
errors: number;
|
|
1076
|
+
warnings: number;
|
|
1077
|
+
};
|
|
1078
|
+
}>>;
|
|
1079
|
+
/**
|
|
1080
|
+
* Import tasks from a JSON source string or export package.
|
|
1081
|
+
* @task T4790
|
|
1082
|
+
*/
|
|
1083
|
+
export declare function taskImport(projectRoot: string, source: string, overwrite?: boolean): Promise<EngineResult<{
|
|
1084
|
+
imported: number;
|
|
1085
|
+
skipped: number;
|
|
1086
|
+
errors: string[];
|
|
1087
|
+
remapTable?: Record<string, string>;
|
|
1088
|
+
}>>;
|
|
1089
|
+
/**
|
|
1090
|
+
* Compute a ranked plan: in-progress epics, ready tasks, blockers, bugs.
|
|
1091
|
+
* @task T4815
|
|
1092
|
+
*/
|
|
1093
|
+
export declare function taskPlan(projectRoot: string): Promise<EngineResult>;
|
|
1094
|
+
/**
|
|
1095
|
+
* Find related tasks using semantic search or keyword matching.
|
|
1096
|
+
* @task T5672
|
|
1097
|
+
*/
|
|
1098
|
+
export declare function taskRelatesFind(projectRoot: string, taskId: string, params?: {
|
|
1099
|
+
mode?: 'suggest' | 'discover';
|
|
1100
|
+
threshold?: number;
|
|
1101
|
+
}): Promise<EngineResult<Record<string, unknown>>>;
|
|
1102
|
+
/**
|
|
1103
|
+
* List all labels used in tasks.
|
|
1104
|
+
* @task T5672
|
|
1105
|
+
*/
|
|
1106
|
+
export declare function taskLabelList(projectRoot: string): Promise<EngineResult<{
|
|
1107
|
+
labels: unknown[];
|
|
1108
|
+
count: number;
|
|
1109
|
+
}>>;
|
|
1110
|
+
/**
|
|
1111
|
+
* Show tasks associated with a label.
|
|
1112
|
+
* @task T5672
|
|
1113
|
+
*/
|
|
1114
|
+
export declare function taskLabelShow(projectRoot: string, label: string): Promise<EngineResult<Record<string, unknown>>>;
|
|
1115
|
+
/**
|
|
1116
|
+
* Reconcile external tasks with CLEO as SSoT.
|
|
1117
|
+
*/
|
|
1118
|
+
export declare function taskSyncReconcile(projectRoot: string, params: {
|
|
1119
|
+
providerId: string;
|
|
1120
|
+
externalTasks: Array<import('@cleocode/contracts').ExternalTask>;
|
|
1121
|
+
dryRun?: boolean;
|
|
1122
|
+
conflictPolicy?: string;
|
|
1123
|
+
defaultPhase?: string;
|
|
1124
|
+
defaultLabels?: string[];
|
|
1125
|
+
}): Promise<EngineResult<import('@cleocode/contracts').ReconcileResult>>;
|
|
1126
|
+
/**
|
|
1127
|
+
* List external task links by provider or task ID.
|
|
1128
|
+
*/
|
|
1129
|
+
export declare function taskSyncLinks(projectRoot: string, params?: {
|
|
1130
|
+
providerId?: string;
|
|
1131
|
+
taskId?: string;
|
|
1132
|
+
}): Promise<EngineResult<{
|
|
1133
|
+
links: import('@cleocode/contracts').ExternalTaskLink[];
|
|
1134
|
+
count: number;
|
|
1135
|
+
}>>;
|
|
1136
|
+
/**
|
|
1137
|
+
* Remove all external task links for a provider.
|
|
1138
|
+
*/
|
|
1139
|
+
export declare function taskSyncLinksRemove(projectRoot: string, providerId: string): Promise<EngineResult<{
|
|
1140
|
+
providerId: string;
|
|
1141
|
+
removed: number;
|
|
1142
|
+
}>>;
|
|
1143
|
+
/**
|
|
1144
|
+
* Atomically claim a task for an agent.
|
|
1145
|
+
*
|
|
1146
|
+
* Fails if the task is already claimed by a different agent.
|
|
1147
|
+
* No-op if the task is already claimed by the same agent (idempotent).
|
|
1148
|
+
*/
|
|
1149
|
+
export declare function taskClaim(projectRoot: string, taskId: string, agentId: string): Promise<EngineResult<{
|
|
1150
|
+
taskId: string;
|
|
1151
|
+
agentId: string;
|
|
1152
|
+
}>>;
|
|
1153
|
+
/**
|
|
1154
|
+
* Release an agent's claim on a task, setting assignee to null.
|
|
1155
|
+
*
|
|
1156
|
+
* No-op if the task is not currently claimed.
|
|
1157
|
+
*/
|
|
1158
|
+
export declare function taskUnclaim(projectRoot: string, taskId: string): Promise<EngineResult<{
|
|
1159
|
+
taskId: string;
|
|
1160
|
+
}>>;
|
|
1161
|
+
//# sourceMappingURL=task-engine.d.ts.map
|