@cleocode/cleo 2026.4.158 → 2026.5.0
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 +49 -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 +1535 -9704
- 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
- package/templates/HANDOFF-REDIRECT-STUB.md +37 -0
- package/templates/hooks/commit-msg +146 -6
|
@@ -0,0 +1,662 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Human-readable renderers for system/utility CLI commands.
|
|
3
|
+
*
|
|
4
|
+
* Covers: doctor, stats, next, blockers, tree, start, stop, current, session, version.
|
|
5
|
+
*
|
|
6
|
+
* Tree and wave rendering is delegated to the pure core formatters
|
|
7
|
+
* (`@cleocode/core/formatters`) via a CLI-specific `colorize` adapter that
|
|
8
|
+
* injects ANSI escape codes. This keeps all presentation logic in core and
|
|
9
|
+
* the CLI renderers as thin adapters.
|
|
10
|
+
*
|
|
11
|
+
* @task T4666
|
|
12
|
+
* @epic T4663
|
|
13
|
+
*/
|
|
14
|
+
import { formatTree, formatWaves } from '@cleocode/core/formatters';
|
|
15
|
+
import { getTreeContext } from '../tree-context.js';
|
|
16
|
+
import { BLUE, BOLD, CYAN, DIM, GREEN, MAGENTA, NC, priorityColor, RED, statusColor, statusSymbol, YELLOW, } from './colors.js';
|
|
17
|
+
// ---------------------------------------------------------------------------
|
|
18
|
+
// CLI colorize adapter — maps core ColorStyle tokens to ANSI escape codes
|
|
19
|
+
// ---------------------------------------------------------------------------
|
|
20
|
+
/**
|
|
21
|
+
* Wrap `text` with the ANSI escape code for `style`, followed by a reset.
|
|
22
|
+
*
|
|
23
|
+
* This adapter is passed as the `colorize` option to {@link formatTree} and
|
|
24
|
+
* {@link formatWaves} so that all ANSI concerns stay in the CLI package while
|
|
25
|
+
* the core formatters remain presentation-agnostic.
|
|
26
|
+
*
|
|
27
|
+
* When ANSI is disabled (e.g. `NO_COLOR` is set, or stdout is not a TTY),
|
|
28
|
+
* the ANSI constants exported by `colors.ts` are empty strings, so this
|
|
29
|
+
* function effectively returns `text` unchanged — output is identical to
|
|
30
|
+
* the plain-text modes used by core tests.
|
|
31
|
+
*
|
|
32
|
+
* @param text - The text to colorize.
|
|
33
|
+
* @param style - A {@link ColorStyle} token produced by the core formatter.
|
|
34
|
+
*/
|
|
35
|
+
function cliColorize(text, style) {
|
|
36
|
+
switch (style) {
|
|
37
|
+
case 'bold':
|
|
38
|
+
return `${BOLD}${text}${NC}`;
|
|
39
|
+
case 'dim':
|
|
40
|
+
return `${DIM}${text}${NC}`;
|
|
41
|
+
case 'red':
|
|
42
|
+
return `${RED}${text}${NC}`;
|
|
43
|
+
case 'green':
|
|
44
|
+
return `${GREEN}${text}${NC}`;
|
|
45
|
+
case 'yellow':
|
|
46
|
+
return `${YELLOW}${text}${NC}`;
|
|
47
|
+
case 'blue':
|
|
48
|
+
return `${BLUE}${text}${NC}`;
|
|
49
|
+
case 'magenta':
|
|
50
|
+
return `${MAGENTA}${text}${NC}`;
|
|
51
|
+
case 'cyan':
|
|
52
|
+
return `${CYAN}${text}${NC}`;
|
|
53
|
+
case 'reset':
|
|
54
|
+
return `${NC}${text}`;
|
|
55
|
+
default:
|
|
56
|
+
return text;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
// ---------------------------------------------------------------------------
|
|
60
|
+
// doctor: diagnostic checks
|
|
61
|
+
// ---------------------------------------------------------------------------
|
|
62
|
+
export function renderDoctor(data, quiet) {
|
|
63
|
+
const healthy = data['healthy'];
|
|
64
|
+
const errors = data['errors'];
|
|
65
|
+
const warnings = data['warnings'];
|
|
66
|
+
const checks = data['checks'];
|
|
67
|
+
if (quiet) {
|
|
68
|
+
return healthy ? 'healthy' : 'unhealthy';
|
|
69
|
+
}
|
|
70
|
+
const lines = [];
|
|
71
|
+
const statusText = healthy ? `${GREEN}${BOLD}HEALTHY${NC}` : `${RED}${BOLD}UNHEALTHY${NC}`;
|
|
72
|
+
lines.push(`System Status: ${statusText}`);
|
|
73
|
+
if ((errors ?? 0) > 0)
|
|
74
|
+
lines.push(` ${RED}Errors: ${errors}${NC}`);
|
|
75
|
+
if ((warnings ?? 0) > 0)
|
|
76
|
+
lines.push(` ${YELLOW}Warnings: ${warnings}${NC}`);
|
|
77
|
+
lines.push('');
|
|
78
|
+
if (checks) {
|
|
79
|
+
for (const check of checks) {
|
|
80
|
+
const status = check['status'];
|
|
81
|
+
const message = check['message'];
|
|
82
|
+
const icon = status === 'ok'
|
|
83
|
+
? `${GREEN}\u2713${NC}`
|
|
84
|
+
: status === 'warning'
|
|
85
|
+
? `${YELLOW}\u26A0${NC}`
|
|
86
|
+
: `${RED}\u2717${NC}`;
|
|
87
|
+
lines.push(` ${icon} ${message}`);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return lines.join('\n');
|
|
91
|
+
}
|
|
92
|
+
// ---------------------------------------------------------------------------
|
|
93
|
+
// stats: project statistics
|
|
94
|
+
// ---------------------------------------------------------------------------
|
|
95
|
+
export function renderStats(data, quiet) {
|
|
96
|
+
if (quiet) {
|
|
97
|
+
const total = data['totalTasks'];
|
|
98
|
+
return String(total ?? 0);
|
|
99
|
+
}
|
|
100
|
+
const lines = [];
|
|
101
|
+
lines.push(`${BOLD}Project Statistics${NC}`);
|
|
102
|
+
lines.push('');
|
|
103
|
+
for (const [key, val] of Object.entries(data)) {
|
|
104
|
+
if (typeof val === 'object' && val !== null && !Array.isArray(val)) {
|
|
105
|
+
lines.push(` ${BOLD}${formatLabel(key)}:${NC}`);
|
|
106
|
+
for (const [subKey, subVal] of Object.entries(val)) {
|
|
107
|
+
lines.push(` ${DIM}${formatLabel(subKey)}:${NC} ${String(subVal)}`);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
lines.push(` ${DIM}${formatLabel(key)}:${NC} ${String(val)}`);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return lines.join('\n');
|
|
115
|
+
}
|
|
116
|
+
// ---------------------------------------------------------------------------
|
|
117
|
+
// next: task suggestion
|
|
118
|
+
// ---------------------------------------------------------------------------
|
|
119
|
+
export function renderNext(data, quiet) {
|
|
120
|
+
const suggestion = data['suggestion'];
|
|
121
|
+
const suggestions = data['suggestions'];
|
|
122
|
+
const totalCandidates = data['totalCandidates'];
|
|
123
|
+
// Single suggestion
|
|
124
|
+
if (suggestion !== undefined) {
|
|
125
|
+
if (suggestion === null) {
|
|
126
|
+
return quiet ? '' : 'No pending tasks with satisfied dependencies.';
|
|
127
|
+
}
|
|
128
|
+
if (quiet)
|
|
129
|
+
return String(suggestion['id']);
|
|
130
|
+
const pCol = priorityColor(String(suggestion['priority'] ?? ''));
|
|
131
|
+
const lines = [
|
|
132
|
+
`${BOLD}Next:${NC} ${BOLD}${suggestion['id']}${NC} ${pCol}[${suggestion['priority']}]${NC} ${suggestion['title']}`,
|
|
133
|
+
];
|
|
134
|
+
if (suggestion['phase'])
|
|
135
|
+
lines.push(` ${DIM}Phase:${NC} ${suggestion['phase']}`);
|
|
136
|
+
if (suggestion['reasons']) {
|
|
137
|
+
const reasons = suggestion['reasons'];
|
|
138
|
+
for (const r of reasons)
|
|
139
|
+
lines.push(` ${DIM}${r}${NC}`);
|
|
140
|
+
}
|
|
141
|
+
if (totalCandidates)
|
|
142
|
+
lines.push(` ${DIM}(${totalCandidates} candidates)${NC}`);
|
|
143
|
+
return lines.join('\n');
|
|
144
|
+
}
|
|
145
|
+
// Multiple suggestions
|
|
146
|
+
if (suggestions) {
|
|
147
|
+
if (quiet)
|
|
148
|
+
return suggestions.map((s) => String(s['id'])).join('\n');
|
|
149
|
+
const lines = [];
|
|
150
|
+
lines.push(`${BOLD}Top suggestions:${NC} ${DIM}(${totalCandidates} candidates)${NC}`);
|
|
151
|
+
for (const s of suggestions) {
|
|
152
|
+
const pCol = priorityColor(String(s['priority'] ?? ''));
|
|
153
|
+
lines.push(` ${BOLD}${s['id']}${NC} ${pCol}[${s['priority']}]${NC} ${s['title']} ${DIM}score: ${s['score']}${NC}`);
|
|
154
|
+
}
|
|
155
|
+
return lines.join('\n');
|
|
156
|
+
}
|
|
157
|
+
return 'No suggestions available.';
|
|
158
|
+
}
|
|
159
|
+
// ---------------------------------------------------------------------------
|
|
160
|
+
// blockers: blocked tasks
|
|
161
|
+
// ---------------------------------------------------------------------------
|
|
162
|
+
export function renderBlockers(data, quiet) {
|
|
163
|
+
const blockers = data['blockers'];
|
|
164
|
+
const tasks = data['tasks'];
|
|
165
|
+
const items = blockers ?? tasks;
|
|
166
|
+
if (!items || items.length === 0) {
|
|
167
|
+
return quiet ? '' : 'No blocked tasks.';
|
|
168
|
+
}
|
|
169
|
+
if (quiet) {
|
|
170
|
+
return items
|
|
171
|
+
.map((b) => String(b['id'] ?? b.id))
|
|
172
|
+
.join('\n');
|
|
173
|
+
}
|
|
174
|
+
const lines = [];
|
|
175
|
+
lines.push(`${RED}${BOLD}Blocked Tasks (${items.length})${NC}`);
|
|
176
|
+
lines.push('');
|
|
177
|
+
for (const item of items) {
|
|
178
|
+
const t = item;
|
|
179
|
+
const id = t.id ?? String(t['id']);
|
|
180
|
+
const title = t.title ?? String(t['title']);
|
|
181
|
+
const blockedBy = t.blockedBy ?? String(t['blockedBy'] ?? '');
|
|
182
|
+
lines.push(` ${RED}\u2297${NC} ${BOLD}${id}${NC} ${title}`);
|
|
183
|
+
if (blockedBy)
|
|
184
|
+
lines.push(` ${DIM}Blocked by: ${blockedBy}${NC}`);
|
|
185
|
+
}
|
|
186
|
+
return lines.join('\n');
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Render wave data from `orchestrate.waves` / `deps waves` output.
|
|
190
|
+
*
|
|
191
|
+
* Supports four output modes controlled by `opts.mode`:
|
|
192
|
+
*
|
|
193
|
+
* - **rich** (default): Terminal-friendly output with wave headers, ANSI
|
|
194
|
+
* status badges, priority-colored titles, and blocker indicators.
|
|
195
|
+
* - **json**: Returns `JSON.stringify({ waves })` — a raw passthrough for
|
|
196
|
+
* machine-readable consumers that have already obtained the data payload.
|
|
197
|
+
* - **markdown**: GitHub-flavored Markdown suitable for issue comments or
|
|
198
|
+
* documentation. Format: `## Wave N — status\n- [status] TID Title\n`.
|
|
199
|
+
* - **quiet**: One `<waveNumber>\t<taskId>` line per task across all waves,
|
|
200
|
+
* with no decoration — safe for `awk` / `cut` / shell pipelines.
|
|
201
|
+
*
|
|
202
|
+
* The function is the canonical wave renderer. {@link renderTree} delegates
|
|
203
|
+
* to it when `data.waves` is present.
|
|
204
|
+
*
|
|
205
|
+
* @param data - Normalized response payload containing `data.waves`.
|
|
206
|
+
* @param opts - Rendering options.
|
|
207
|
+
*/
|
|
208
|
+
export function renderWaves(data, opts) {
|
|
209
|
+
// Delegate to the core formatter, injecting the CLI ANSI colorize adapter.
|
|
210
|
+
// The data shape is compatible: waves.ts accepts { waves?: EnrichedWave[] }
|
|
211
|
+
// and data has the same structure (waves key).
|
|
212
|
+
return formatWaves(data, {
|
|
213
|
+
mode: opts?.mode ?? 'rich',
|
|
214
|
+
colorize: cliColorize,
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Render the task dependency tree or wave plan.
|
|
219
|
+
*
|
|
220
|
+
* Handles three data shapes returned by the `deps`/`tree` dispatcher:
|
|
221
|
+
* - `data.waves` — enriched wave array from `orchestrate.waves`
|
|
222
|
+
* - `data.tree` — recursive `FlatTreeNode[]` from `tasks.tree`
|
|
223
|
+
* - `data.tasks` — flat `Task[]` fallback
|
|
224
|
+
*
|
|
225
|
+
* When `data.waves` is present, delegates to {@link renderWaves}.
|
|
226
|
+
*
|
|
227
|
+
* @param data - Normalised response payload.
|
|
228
|
+
* @param quiet - When true, emit only IDs with no decoration.
|
|
229
|
+
*/
|
|
230
|
+
export function renderTree(data, quiet) {
|
|
231
|
+
const waves = data['waves'];
|
|
232
|
+
const tree = data['tree'];
|
|
233
|
+
const tasks = data['tasks'];
|
|
234
|
+
if (waves) {
|
|
235
|
+
const epicId = data['epicId'];
|
|
236
|
+
const totalWaves = data['totalWaves'];
|
|
237
|
+
const totalTasks = data['totalTasks'];
|
|
238
|
+
if (quiet) {
|
|
239
|
+
return renderWaves(data, { mode: 'quiet' });
|
|
240
|
+
}
|
|
241
|
+
const header = epicId
|
|
242
|
+
? `${BOLD}Waves for ${epicId}${NC} ${DIM}(${totalWaves ?? waves.length} waves, ${totalTasks ?? '?'} tasks)${NC}`
|
|
243
|
+
: `${BOLD}Execution Waves${NC}`;
|
|
244
|
+
const body = renderWaves(data, { mode: 'rich', epicId, totalWaves, totalTasks });
|
|
245
|
+
return `${header}\n\n${body}`;
|
|
246
|
+
}
|
|
247
|
+
if (tree) {
|
|
248
|
+
// Delegate to core formatTree, injecting the CLI ANSI colorize adapter.
|
|
249
|
+
// withDeps and withBlockers are read from the tree context set by treeCommand
|
|
250
|
+
// (T1205 / T1206).
|
|
251
|
+
const { withDeps, withBlockers } = getTreeContext();
|
|
252
|
+
return formatTree(tree, {
|
|
253
|
+
mode: quiet ? 'quiet' : 'rich',
|
|
254
|
+
colorize: cliColorize,
|
|
255
|
+
withDeps,
|
|
256
|
+
withBlockers,
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
// Fallback: flat task list rendered as indented tree
|
|
260
|
+
if (tasks) {
|
|
261
|
+
if (quiet)
|
|
262
|
+
return tasks.map((t) => t.id).join('\n');
|
|
263
|
+
return tasks
|
|
264
|
+
.map((t) => {
|
|
265
|
+
const sSym = statusSymbol(t.status);
|
|
266
|
+
return ` ${sSym} ${BOLD}${t.id}${NC} ${t.title}`;
|
|
267
|
+
})
|
|
268
|
+
.join('\n');
|
|
269
|
+
}
|
|
270
|
+
return quiet ? '' : 'No tree data.';
|
|
271
|
+
}
|
|
272
|
+
// ---------------------------------------------------------------------------
|
|
273
|
+
// Note: blockerIndicator and renderTreeNodes were removed in T1204.
|
|
274
|
+
// This logic now lives in @cleocode/core/formatters (tree.ts) and is
|
|
275
|
+
// invoked via formatTree() with the cliColorize adapter above.
|
|
276
|
+
// ---------------------------------------------------------------------------
|
|
277
|
+
// ---------------------------------------------------------------------------
|
|
278
|
+
// start / stop / current: task work commands
|
|
279
|
+
// ---------------------------------------------------------------------------
|
|
280
|
+
export function renderStart(data, quiet) {
|
|
281
|
+
const task = data['task'];
|
|
282
|
+
const taskId = data['taskId'];
|
|
283
|
+
const id = task?.id ?? taskId ?? String(data['currentTask'] ?? '');
|
|
284
|
+
const title = task?.title ?? String(data['title'] ?? '');
|
|
285
|
+
if (quiet)
|
|
286
|
+
return id;
|
|
287
|
+
return `${GREEN}\u25B6 Started:${NC} ${BOLD}${id}${NC} ${title}`;
|
|
288
|
+
}
|
|
289
|
+
export function renderStop(data, quiet) {
|
|
290
|
+
const task = data['task'];
|
|
291
|
+
const taskId = data['taskId'];
|
|
292
|
+
const previousTask = data['previousTask'];
|
|
293
|
+
const id = task?.id ?? taskId ?? previousTask ?? '';
|
|
294
|
+
if (quiet)
|
|
295
|
+
return id;
|
|
296
|
+
if (!id)
|
|
297
|
+
return 'No task was active.';
|
|
298
|
+
return `${YELLOW}\u25A0 Stopped:${NC} ${BOLD}${id}${NC}${task?.title ? ` ${task.title}` : ''}`;
|
|
299
|
+
}
|
|
300
|
+
export function renderCurrent(data, quiet) {
|
|
301
|
+
const task = data['task'];
|
|
302
|
+
const currentTask = data['currentTask'];
|
|
303
|
+
const id = task?.id ?? currentTask ?? '';
|
|
304
|
+
if (!id) {
|
|
305
|
+
return quiet ? '' : 'No task currently active.';
|
|
306
|
+
}
|
|
307
|
+
if (quiet)
|
|
308
|
+
return id;
|
|
309
|
+
const sCol = statusColor(task?.status ?? 'active');
|
|
310
|
+
const sSym = statusSymbol(task?.status ?? 'active');
|
|
311
|
+
return `${BOLD}Current:${NC} ${sCol}${sSym}${NC} ${BOLD}${id}${NC}${task?.title ? ` ${task.title}` : ''}`;
|
|
312
|
+
}
|
|
313
|
+
// ---------------------------------------------------------------------------
|
|
314
|
+
// session: session info
|
|
315
|
+
// ---------------------------------------------------------------------------
|
|
316
|
+
export function renderSession(data, quiet) {
|
|
317
|
+
const sessionId = data['sessionId'];
|
|
318
|
+
const status = data['status'];
|
|
319
|
+
const sessions = data['sessions'];
|
|
320
|
+
// Session list
|
|
321
|
+
if (sessions) {
|
|
322
|
+
if (quiet)
|
|
323
|
+
return sessions.map((s) => String(s['id'])).join('\n');
|
|
324
|
+
const lines = [];
|
|
325
|
+
lines.push(`${BOLD}Sessions (${sessions.length})${NC}`);
|
|
326
|
+
for (const s of sessions) {
|
|
327
|
+
const active = s['active'];
|
|
328
|
+
const icon = active ? `${GREEN}\u25CF${NC}` : `${DIM}\u25CB${NC}`;
|
|
329
|
+
lines.push(` ${icon} ${BOLD}${s['id']}${NC}${active ? ' (active)' : ''}`);
|
|
330
|
+
}
|
|
331
|
+
return lines.join('\n');
|
|
332
|
+
}
|
|
333
|
+
// Single session
|
|
334
|
+
if (!sessionId) {
|
|
335
|
+
return quiet ? '' : 'No active session.';
|
|
336
|
+
}
|
|
337
|
+
if (quiet)
|
|
338
|
+
return sessionId;
|
|
339
|
+
const lines = [];
|
|
340
|
+
lines.push(`${BOLD}Session:${NC} ${sessionId}`);
|
|
341
|
+
if (status)
|
|
342
|
+
lines.push(` ${DIM}Status:${NC} ${status}`);
|
|
343
|
+
// Render any other fields
|
|
344
|
+
for (const [key, val] of Object.entries(data)) {
|
|
345
|
+
if (key === 'sessionId' || key === 'status')
|
|
346
|
+
continue;
|
|
347
|
+
if (typeof val === 'string' || typeof val === 'number' || typeof val === 'boolean') {
|
|
348
|
+
lines.push(` ${DIM}${formatLabel(key)}:${NC} ${String(val)}`);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
return lines.join('\n');
|
|
352
|
+
}
|
|
353
|
+
// ---------------------------------------------------------------------------
|
|
354
|
+
// version
|
|
355
|
+
// ---------------------------------------------------------------------------
|
|
356
|
+
export function renderVersion(data, quiet) {
|
|
357
|
+
const version = data['version'];
|
|
358
|
+
if (quiet)
|
|
359
|
+
return version ?? '';
|
|
360
|
+
return `Cleo v${version}`;
|
|
361
|
+
}
|
|
362
|
+
// ---------------------------------------------------------------------------
|
|
363
|
+
// plan: composite planning view
|
|
364
|
+
// ---------------------------------------------------------------------------
|
|
365
|
+
export function renderPlan(data, quiet) {
|
|
366
|
+
if (quiet) {
|
|
367
|
+
const readyCount = data['ready']?.length ?? 0;
|
|
368
|
+
return String(readyCount);
|
|
369
|
+
}
|
|
370
|
+
const lines = [];
|
|
371
|
+
lines.push(`${BOLD}Planning View${NC}`);
|
|
372
|
+
lines.push('');
|
|
373
|
+
// In-Progress Epics
|
|
374
|
+
const inProgress = data['inProgress'];
|
|
375
|
+
if (inProgress && inProgress.length > 0) {
|
|
376
|
+
lines.push(`${BOLD}In-Progress Epics (${inProgress.length})${NC}`);
|
|
377
|
+
for (const epic of inProgress) {
|
|
378
|
+
const completion = epic['completionPercent'];
|
|
379
|
+
const completionBar = renderCompletionBar(completion);
|
|
380
|
+
lines.push(` ${BOLD}${epic['epicId']}${NC} ${epic['epicTitle']}`);
|
|
381
|
+
lines.push(` ${completionBar} ${completion}% (${epic['activeTasks']} active)`);
|
|
382
|
+
}
|
|
383
|
+
lines.push('');
|
|
384
|
+
}
|
|
385
|
+
// Ready Tasks
|
|
386
|
+
const ready = data['ready'];
|
|
387
|
+
if (ready && ready.length > 0) {
|
|
388
|
+
lines.push(`${BOLD}Ready Tasks (${ready.length})${NC} ${DIM}ordered by leverage score${NC}`);
|
|
389
|
+
for (const task of ready.slice(0, 10)) {
|
|
390
|
+
const pCol = priorityColor(String(task['priority'] ?? 'medium'));
|
|
391
|
+
lines.push(` ${BOLD}${task['id']}${NC} ${pCol}[${task['priority']}]${NC} ${task['title']}`);
|
|
392
|
+
lines.push(` ${DIM}leverage:${NC} ${task['leverage']} ${DIM}score:${NC} ${task['score']}`);
|
|
393
|
+
const reasons = task['reasons'];
|
|
394
|
+
if (reasons && reasons.length > 0) {
|
|
395
|
+
lines.push(` ${DIM}${reasons.join(', ')}${NC}`);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
if (ready.length > 10) {
|
|
399
|
+
lines.push(` ${DIM}... and ${ready.length - 10} more${NC}`);
|
|
400
|
+
}
|
|
401
|
+
lines.push('');
|
|
402
|
+
}
|
|
403
|
+
// Blocked Tasks
|
|
404
|
+
const blocked = data['blocked'];
|
|
405
|
+
if (blocked && blocked.length > 0) {
|
|
406
|
+
lines.push(`${RED}${BOLD}Blocked Tasks (${blocked.length})${NC}`);
|
|
407
|
+
for (const task of blocked.slice(0, 10)) {
|
|
408
|
+
lines.push(` ${RED}⊗${NC} ${BOLD}${task['id']}${NC} ${task['title']}`);
|
|
409
|
+
const blockedBy = task['blockedBy'];
|
|
410
|
+
if (blockedBy && blockedBy.length > 0) {
|
|
411
|
+
lines.push(` ${DIM}Blocked by: ${blockedBy.join(', ')}${NC}`);
|
|
412
|
+
}
|
|
413
|
+
if (task['blocksCount'] > 0) {
|
|
414
|
+
lines.push(` ${DIM}Blocks: ${task['blocksCount']} task(s)${NC}`);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
if (blocked.length > 10) {
|
|
418
|
+
lines.push(` ${DIM}... and ${blocked.length - 10} more${NC}`);
|
|
419
|
+
}
|
|
420
|
+
lines.push('');
|
|
421
|
+
}
|
|
422
|
+
// Open Bugs
|
|
423
|
+
const openBugs = data['openBugs'];
|
|
424
|
+
if (openBugs && openBugs.length > 0) {
|
|
425
|
+
lines.push(`${RED}${BOLD}Open Bugs (${openBugs.length})${NC}`);
|
|
426
|
+
for (const bug of openBugs.slice(0, 10)) {
|
|
427
|
+
const pCol = priorityColor(String(bug['priority'] ?? 'medium'));
|
|
428
|
+
lines.push(` ${RED}●${NC} ${BOLD}${bug['id']}${NC} ${pCol}[${bug['priority']}]${NC} ${bug['title']}`);
|
|
429
|
+
}
|
|
430
|
+
if (openBugs.length > 10) {
|
|
431
|
+
lines.push(` ${DIM}... and ${openBugs.length - 10} more${NC}`);
|
|
432
|
+
}
|
|
433
|
+
lines.push('');
|
|
434
|
+
}
|
|
435
|
+
// Metrics
|
|
436
|
+
const metrics = data['metrics'];
|
|
437
|
+
if (metrics) {
|
|
438
|
+
lines.push(`${BOLD}Metrics${NC}`);
|
|
439
|
+
lines.push(` ${DIM}Total Epics:${NC} ${metrics['totalEpics']} (${metrics['activeEpics']} active)`);
|
|
440
|
+
lines.push(` ${DIM}Total Tasks:${NC} ${metrics['totalTasks']}`);
|
|
441
|
+
lines.push(` ${DIM}Actionable:${NC} ${metrics['actionable']} ${DIM}Blocked:${NC} ${metrics['blocked']} ${DIM}Open Bugs:${NC} ${metrics['openBugs']}`);
|
|
442
|
+
lines.push(` ${DIM}Avg Leverage:${NC} ${metrics['avgLeverage']}`);
|
|
443
|
+
}
|
|
444
|
+
return lines.join('\n');
|
|
445
|
+
}
|
|
446
|
+
/** Render a simple ASCII progress bar for completion percentage. */
|
|
447
|
+
function renderCompletionBar(percent) {
|
|
448
|
+
const width = 20;
|
|
449
|
+
const filled = Math.round((percent / 100) * width);
|
|
450
|
+
const empty = width - filled;
|
|
451
|
+
const bar = '█'.repeat(filled) + '░'.repeat(empty);
|
|
452
|
+
const color = percent >= 75 ? GREEN : percent >= 50 ? YELLOW : '';
|
|
453
|
+
return `${color}[${bar}]${NC}`;
|
|
454
|
+
}
|
|
455
|
+
// ---------------------------------------------------------------------------
|
|
456
|
+
// briefing: composite session-start context (T1593)
|
|
457
|
+
// ---------------------------------------------------------------------------
|
|
458
|
+
/**
|
|
459
|
+
* Render a {@link SessionBriefing} payload as readable text.
|
|
460
|
+
*
|
|
461
|
+
* Source of truth is TASKS + BRAIN (`tasks.db` + `brain.db`); this renderer
|
|
462
|
+
* is a pure formatter that NEVER touches the filesystem. Sections render
|
|
463
|
+
* only when their backing data is non-empty so a quiet briefing stays quiet.
|
|
464
|
+
*
|
|
465
|
+
* Sections (in order):
|
|
466
|
+
* 1. Last session — handoff note, completed/created tasks, decisions
|
|
467
|
+
* 2. Current task
|
|
468
|
+
* 3. Active blockers
|
|
469
|
+
* 4. Next suggested
|
|
470
|
+
* 5. Open epics
|
|
471
|
+
* 6. Recent decisions / observations from BRAIN
|
|
472
|
+
*
|
|
473
|
+
* @task T1593
|
|
474
|
+
*/
|
|
475
|
+
export function renderBriefing(data, quiet) {
|
|
476
|
+
if (quiet) {
|
|
477
|
+
// Quiet mode: emit only IDs of next-suggested tasks (one per line).
|
|
478
|
+
const next = data['nextTasks'] ?? [];
|
|
479
|
+
return next.map((t) => String(t['id'] ?? '')).join('\n');
|
|
480
|
+
}
|
|
481
|
+
const lines = [];
|
|
482
|
+
lines.push(`${BOLD}CLEO Session Briefing${NC} ${DIM}(source: tasks.db + brain.db)${NC}`);
|
|
483
|
+
lines.push('');
|
|
484
|
+
// 1. Last session
|
|
485
|
+
const lastSession = data['lastSession'];
|
|
486
|
+
if (lastSession) {
|
|
487
|
+
const handoff = lastSession['handoff'] ?? {};
|
|
488
|
+
const endedAt = String(lastSession['endedAt'] ?? '');
|
|
489
|
+
const duration = lastSession['duration'];
|
|
490
|
+
lines.push(`${BOLD}Last Session${NC}`);
|
|
491
|
+
if (endedAt)
|
|
492
|
+
lines.push(` ${DIM}Ended:${NC} ${endedAt}`);
|
|
493
|
+
if (typeof duration === 'number')
|
|
494
|
+
lines.push(` ${DIM}Duration:${NC} ${duration} min`);
|
|
495
|
+
const completed = handoff['tasksCompleted'] ?? [];
|
|
496
|
+
const created = handoff['tasksCreated'] ?? [];
|
|
497
|
+
if (completed.length > 0) {
|
|
498
|
+
lines.push(` ${DIM}Completed:${NC} ${completed.length} task(s) — ${completed.join(', ')}`);
|
|
499
|
+
}
|
|
500
|
+
if (created.length > 0) {
|
|
501
|
+
lines.push(` ${DIM}Created:${NC} ${created.length} task(s) — ${created.join(', ')}`);
|
|
502
|
+
}
|
|
503
|
+
const decisions = handoff['decisionsRecorded'];
|
|
504
|
+
if (typeof decisions === 'number' && decisions > 0) {
|
|
505
|
+
lines.push(` ${DIM}Decisions recorded:${NC} ${decisions}`);
|
|
506
|
+
}
|
|
507
|
+
if (handoff['note']) {
|
|
508
|
+
lines.push(` ${DIM}Note:${NC} ${String(handoff['note'])}`);
|
|
509
|
+
}
|
|
510
|
+
if (handoff['nextAction']) {
|
|
511
|
+
lines.push(` ${DIM}Next action:${NC} ${String(handoff['nextAction'])}`);
|
|
512
|
+
}
|
|
513
|
+
lines.push('');
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
lines.push(`${BOLD}Last Session${NC} ${DIM}(none — fresh session)${NC}`);
|
|
517
|
+
lines.push('');
|
|
518
|
+
}
|
|
519
|
+
// 2. Current task
|
|
520
|
+
const currentTask = data['currentTask'];
|
|
521
|
+
if (currentTask) {
|
|
522
|
+
const sCol = statusColor(String(currentTask['status'] ?? ''));
|
|
523
|
+
const sSym = statusSymbol(String(currentTask['status'] ?? ''));
|
|
524
|
+
lines.push(`${BOLD}Current Task:${NC} ${sCol}${sSym}${NC} ${BOLD}${currentTask['id']}${NC} ${currentTask['title'] ?? ''}`);
|
|
525
|
+
const blockedBy = currentTask['blockedBy'];
|
|
526
|
+
if (blockedBy && blockedBy.length > 0) {
|
|
527
|
+
lines.push(` ${RED}Blocked by:${NC} ${blockedBy.join(', ')}`);
|
|
528
|
+
}
|
|
529
|
+
lines.push('');
|
|
530
|
+
}
|
|
531
|
+
// 3. Active blockers
|
|
532
|
+
const blockedTasks = data['blockedTasks'] ?? [];
|
|
533
|
+
if (blockedTasks.length > 0) {
|
|
534
|
+
lines.push(`${RED}${BOLD}Active Blockers (${blockedTasks.length})${NC}`);
|
|
535
|
+
for (const t of blockedTasks.slice(0, 10)) {
|
|
536
|
+
const bb = (t['blockedBy'] ?? []).join(', ');
|
|
537
|
+
lines.push(` ${RED}⊗${NC} ${BOLD}${t['id']}${NC} ${t['title'] ?? ''}`);
|
|
538
|
+
if (bb)
|
|
539
|
+
lines.push(` ${DIM}Blocked by: ${bb}${NC}`);
|
|
540
|
+
}
|
|
541
|
+
if (blockedTasks.length > 10) {
|
|
542
|
+
lines.push(` ${DIM}... and ${blockedTasks.length - 10} more${NC}`);
|
|
543
|
+
}
|
|
544
|
+
lines.push('');
|
|
545
|
+
}
|
|
546
|
+
// 4. Next suggested
|
|
547
|
+
const nextTasks = data['nextTasks'] ?? [];
|
|
548
|
+
if (nextTasks.length > 0) {
|
|
549
|
+
lines.push(`${BOLD}Next Suggested (${nextTasks.length})${NC} ${DIM}leverage-scored${NC}`);
|
|
550
|
+
for (const t of nextTasks) {
|
|
551
|
+
lines.push(` ${BOLD}${t['id']}${NC} ${t['title'] ?? ''} ${DIM}leverage: ${t['leverage'] ?? 0}, score: ${t['score'] ?? 0}${NC}`);
|
|
552
|
+
}
|
|
553
|
+
lines.push('');
|
|
554
|
+
}
|
|
555
|
+
// 5. Open epics
|
|
556
|
+
const activeEpics = data['activeEpics'] ?? [];
|
|
557
|
+
if (activeEpics.length > 0) {
|
|
558
|
+
lines.push(`${BOLD}Open Epics (${activeEpics.length})${NC}`);
|
|
559
|
+
for (const e of activeEpics) {
|
|
560
|
+
const pct = e['completionPercent'] ?? 0;
|
|
561
|
+
lines.push(` ${BOLD}${e['id']}${NC} ${e['title'] ?? ''} ${DIM}(${pct}% complete)${NC}`);
|
|
562
|
+
}
|
|
563
|
+
lines.push('');
|
|
564
|
+
}
|
|
565
|
+
// 6. Open bugs
|
|
566
|
+
const openBugs = data['openBugs'] ?? [];
|
|
567
|
+
if (openBugs.length > 0) {
|
|
568
|
+
lines.push(`${RED}${BOLD}Open Bugs (${openBugs.length})${NC}`);
|
|
569
|
+
for (const b of openBugs.slice(0, 10)) {
|
|
570
|
+
const pCol = priorityColor(String(b['priority'] ?? 'medium'));
|
|
571
|
+
lines.push(` ${RED}●${NC} ${BOLD}${b['id']}${NC} ${pCol}[${b['priority']}]${NC} ${b['title'] ?? ''}`);
|
|
572
|
+
}
|
|
573
|
+
lines.push('');
|
|
574
|
+
}
|
|
575
|
+
// 7. Memory context (recent decisions + observations from BRAIN)
|
|
576
|
+
const memoryContext = data['memoryContext'];
|
|
577
|
+
if (memoryContext) {
|
|
578
|
+
const recentDecisions = memoryContext['recentDecisions'] ?? [];
|
|
579
|
+
const recentObservations = memoryContext['recentObservations'] ?? [];
|
|
580
|
+
if (recentDecisions.length > 0) {
|
|
581
|
+
lines.push(`${BOLD}Recent Decisions (${recentDecisions.length})${NC} ${DIM}from BRAIN${NC}`);
|
|
582
|
+
for (const d of recentDecisions.slice(0, 5)) {
|
|
583
|
+
lines.push(` ${BOLD}${d['id']}${NC} ${d['title'] ?? ''} ${DIM}(${d['date'] ?? ''})${NC}`);
|
|
584
|
+
}
|
|
585
|
+
lines.push('');
|
|
586
|
+
}
|
|
587
|
+
if (recentObservations.length > 0) {
|
|
588
|
+
lines.push(`${BOLD}Recent Observations (${recentObservations.length})${NC} ${DIM}from BRAIN${NC}`);
|
|
589
|
+
for (const o of recentObservations.slice(0, 5)) {
|
|
590
|
+
lines.push(` ${BOLD}${o['id']}${NC} ${o['title'] ?? ''} ${DIM}(${o['date'] ?? ''})${NC}`);
|
|
591
|
+
}
|
|
592
|
+
lines.push('');
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
// 8. Warnings
|
|
596
|
+
const warnings = data['warnings'];
|
|
597
|
+
if (warnings && warnings.length > 0) {
|
|
598
|
+
lines.push(`${YELLOW}${BOLD}Warnings${NC}`);
|
|
599
|
+
for (const w of warnings)
|
|
600
|
+
lines.push(` ${YELLOW}!${NC} ${w}`);
|
|
601
|
+
lines.push('');
|
|
602
|
+
}
|
|
603
|
+
lines.push(`${DIM}Tip: pass --json for the full structured payload. All fields read from tasks.db + brain.db.${NC}`);
|
|
604
|
+
return lines
|
|
605
|
+
.join('\n')
|
|
606
|
+
.replace(/\n{3,}/g, '\n\n')
|
|
607
|
+
.trimEnd();
|
|
608
|
+
}
|
|
609
|
+
// ---------------------------------------------------------------------------
|
|
610
|
+
// Generic fallback renderer
|
|
611
|
+
// ---------------------------------------------------------------------------
|
|
612
|
+
/**
|
|
613
|
+
* Generic human renderer for commands that don't have a specific renderer.
|
|
614
|
+
* Renders data as indented key-value pairs.
|
|
615
|
+
*/
|
|
616
|
+
export function renderGeneric(data, quiet) {
|
|
617
|
+
if (quiet)
|
|
618
|
+
return '';
|
|
619
|
+
const lines = [];
|
|
620
|
+
for (const [key, val] of Object.entries(data)) {
|
|
621
|
+
if (val === null || val === undefined)
|
|
622
|
+
continue;
|
|
623
|
+
if (Array.isArray(val)) {
|
|
624
|
+
lines.push(`${BOLD}${formatLabel(key)}:${NC} (${val.length})`);
|
|
625
|
+
for (const item of val.slice(0, 20)) {
|
|
626
|
+
if (typeof item === 'object' && item !== null) {
|
|
627
|
+
const obj = item;
|
|
628
|
+
const id = obj['id'] ?? '';
|
|
629
|
+
const title = obj['title'] ?? obj['name'] ?? '';
|
|
630
|
+
lines.push(` ${id}${title ? ` ${title}` : ''}`);
|
|
631
|
+
}
|
|
632
|
+
else {
|
|
633
|
+
lines.push(` ${String(item)}`);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
if (val.length > 20) {
|
|
637
|
+
lines.push(` ${DIM}... and ${val.length - 20} more${NC}`);
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
else if (typeof val === 'object') {
|
|
641
|
+
lines.push(`${BOLD}${formatLabel(key)}:${NC}`);
|
|
642
|
+
for (const [subKey, subVal] of Object.entries(val)) {
|
|
643
|
+
lines.push(` ${DIM}${formatLabel(subKey)}:${NC} ${String(subVal)}`);
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
else {
|
|
647
|
+
lines.push(`${DIM}${formatLabel(key)}:${NC} ${String(val)}`);
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
return lines.join('\n') || 'OK';
|
|
651
|
+
}
|
|
652
|
+
// ---------------------------------------------------------------------------
|
|
653
|
+
// Helpers
|
|
654
|
+
// ---------------------------------------------------------------------------
|
|
655
|
+
/** Convert camelCase to Title Case for display. */
|
|
656
|
+
function formatLabel(key) {
|
|
657
|
+
return key
|
|
658
|
+
.replace(/([A-Z])/g, ' $1')
|
|
659
|
+
.replace(/^./, (s) => s.toUpperCase())
|
|
660
|
+
.trim();
|
|
661
|
+
}
|
|
662
|
+
//# sourceMappingURL=system.js.map
|