@cleocode/cleo 2026.5.4 → 2026.5.5
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/cli/index.js +61 -87
- package/dist/cli/index.js.map +3 -3
- package/package.json +9 -9
- package/dist/backfill/audit-columns.d.ts +0 -105
- package/dist/backfill/audit-columns.d.ts.map +0 -1
- package/dist/backfill/audit-columns.js +0 -258
- package/dist/backfill/audit-columns.js.map +0 -1
- package/dist/cli/commands/adapter.d.ts +0 -28
- package/dist/cli/commands/adapter.d.ts.map +0 -1
- package/dist/cli/commands/adapter.js +0 -119
- package/dist/cli/commands/adapter.js.map +0 -1
- package/dist/cli/commands/add-batch.d.ts +0 -33
- package/dist/cli/commands/add-batch.d.ts.map +0 -1
- package/dist/cli/commands/add-batch.js +0 -148
- package/dist/cli/commands/add-batch.js.map +0 -1
- package/dist/cli/commands/add.d.ts +0 -162
- package/dist/cli/commands/add.d.ts.map +0 -1
- package/dist/cli/commands/add.js +0 -279
- package/dist/cli/commands/add.js.map +0 -1
- package/dist/cli/commands/admin.d.ts +0 -24
- package/dist/cli/commands/admin.d.ts.map +0 -1
- package/dist/cli/commands/admin.js +0 -283
- package/dist/cli/commands/admin.js.map +0 -1
- package/dist/cli/commands/adr.d.ts +0 -33
- package/dist/cli/commands/adr.d.ts.map +0 -1
- package/dist/cli/commands/adr.js +0 -147
- package/dist/cli/commands/adr.js.map +0 -1
- package/dist/cli/commands/agent-profile-status.d.ts +0 -98
- package/dist/cli/commands/agent-profile-status.d.ts.map +0 -1
- package/dist/cli/commands/agent-profile-status.js +0 -71
- package/dist/cli/commands/agent-profile-status.js.map +0 -1
- package/dist/cli/commands/agent.d.ts +0 -47
- package/dist/cli/commands/agent.d.ts.map +0 -1
- package/dist/cli/commands/agent.js +0 -2976
- package/dist/cli/commands/agent.js.map +0 -1
- package/dist/cli/commands/analyze.d.ts +0 -21
- package/dist/cli/commands/analyze.d.ts.map +0 -1
- package/dist/cli/commands/analyze.js +0 -32
- package/dist/cli/commands/analyze.js.map +0 -1
- package/dist/cli/commands/archive-stats.d.ts +0 -66
- package/dist/cli/commands/archive-stats.d.ts.map +0 -1
- package/dist/cli/commands/archive-stats.js +0 -93
- package/dist/cli/commands/archive-stats.js.map +0 -1
- package/dist/cli/commands/archive.d.ts +0 -42
- package/dist/cli/commands/archive.d.ts.map +0 -1
- package/dist/cli/commands/archive.js +0 -59
- package/dist/cli/commands/archive.js.map +0 -1
- package/dist/cli/commands/audit.d.ts +0 -22
- package/dist/cli/commands/audit.d.ts.map +0 -1
- package/dist/cli/commands/audit.js +0 -137
- package/dist/cli/commands/audit.js.map +0 -1
- package/dist/cli/commands/backfill.d.ts +0 -56
- package/dist/cli/commands/backfill.d.ts.map +0 -1
- package/dist/cli/commands/backfill.js +0 -161
- package/dist/cli/commands/backfill.js.map +0 -1
- package/dist/cli/commands/backup-inspect.d.ts +0 -33
- package/dist/cli/commands/backup-inspect.d.ts.map +0 -1
- package/dist/cli/commands/backup-inspect.js +0 -430
- package/dist/cli/commands/backup-inspect.js.map +0 -1
- package/dist/cli/commands/backup.d.ts +0 -23
- package/dist/cli/commands/backup.d.ts.map +0 -1
- package/dist/cli/commands/backup.js +0 -564
- package/dist/cli/commands/backup.js.map +0 -1
- package/dist/cli/commands/blockers.d.ts +0 -20
- package/dist/cli/commands/blockers.d.ts.map +0 -1
- package/dist/cli/commands/blockers.js +0 -31
- package/dist/cli/commands/blockers.js.map +0 -1
- package/dist/cli/commands/brain.d.ts +0 -37
- package/dist/cli/commands/brain.d.ts.map +0 -1
- package/dist/cli/commands/brain.js +0 -445
- package/dist/cli/commands/brain.js.map +0 -1
- package/dist/cli/commands/briefing.d.ts +0 -52
- package/dist/cli/commands/briefing.d.ts.map +0 -1
- package/dist/cli/commands/briefing.js +0 -69
- package/dist/cli/commands/briefing.js.map +0 -1
- package/dist/cli/commands/bug.d.ts +0 -61
- package/dist/cli/commands/bug.d.ts.map +0 -1
- package/dist/cli/commands/bug.js +0 -198
- package/dist/cli/commands/bug.js.map +0 -1
- package/dist/cli/commands/cancel.d.ts +0 -26
- package/dist/cli/commands/cancel.d.ts.map +0 -1
- package/dist/cli/commands/cancel.js +0 -40
- package/dist/cli/commands/cancel.js.map +0 -1
- package/dist/cli/commands/cant.d.ts +0 -13
- package/dist/cli/commands/cant.d.ts.map +0 -1
- package/dist/cli/commands/cant.js +0 -245
- package/dist/cli/commands/cant.js.map +0 -1
- package/dist/cli/commands/chain.d.ts +0 -24
- package/dist/cli/commands/chain.d.ts.map +0 -1
- package/dist/cli/commands/chain.js +0 -116
- package/dist/cli/commands/chain.js.map +0 -1
- package/dist/cli/commands/check.d.ts +0 -18
- package/dist/cli/commands/check.d.ts.map +0 -1
- package/dist/cli/commands/check.js +0 -280
- package/dist/cli/commands/check.js.map +0 -1
- package/dist/cli/commands/checkpoint.d.ts +0 -27
- package/dist/cli/commands/checkpoint.d.ts.map +0 -1
- package/dist/cli/commands/checkpoint.js +0 -105
- package/dist/cli/commands/checkpoint.js.map +0 -1
- package/dist/cli/commands/claim.d.ts +0 -35
- package/dist/cli/commands/claim.d.ts.map +0 -1
- package/dist/cli/commands/claim.js +0 -35
- package/dist/cli/commands/claim.js.map +0 -1
- package/dist/cli/commands/code.d.ts +0 -22
- package/dist/cli/commands/code.d.ts.map +0 -1
- package/dist/cli/commands/code.js +0 -161
- package/dist/cli/commands/code.js.map +0 -1
- package/dist/cli/commands/complete.d.ts +0 -58
- package/dist/cli/commands/complete.d.ts.map +0 -1
- package/dist/cli/commands/complete.js +0 -83
- package/dist/cli/commands/complete.js.map +0 -1
- package/dist/cli/commands/complexity.d.ts +0 -13
- package/dist/cli/commands/complexity.d.ts.map +0 -1
- package/dist/cli/commands/complexity.js +0 -32
- package/dist/cli/commands/complexity.js.map +0 -1
- package/dist/cli/commands/compliance.d.ts +0 -27
- package/dist/cli/commands/compliance.d.ts.map +0 -1
- package/dist/cli/commands/compliance.js +0 -233
- package/dist/cli/commands/compliance.js.map +0 -1
- package/dist/cli/commands/conduit.d.ts +0 -28
- package/dist/cli/commands/conduit.d.ts.map +0 -1
- package/dist/cli/commands/conduit.js +0 -279
- package/dist/cli/commands/conduit.js.map +0 -1
- package/dist/cli/commands/config.d.ts +0 -25
- package/dist/cli/commands/config.d.ts.map +0 -1
- package/dist/cli/commands/config.js +0 -132
- package/dist/cli/commands/config.js.map +0 -1
- package/dist/cli/commands/consensus.d.ts +0 -21
- package/dist/cli/commands/consensus.d.ts.map +0 -1
- package/dist/cli/commands/consensus.js +0 -100
- package/dist/cli/commands/consensus.js.map +0 -1
- package/dist/cli/commands/context.d.ts +0 -19
- package/dist/cli/commands/context.d.ts.map +0 -1
- package/dist/cli/commands/context.js +0 -111
- package/dist/cli/commands/context.js.map +0 -1
- package/dist/cli/commands/contribution.d.ts +0 -21
- package/dist/cli/commands/contribution.d.ts.map +0 -1
- package/dist/cli/commands/contribution.js +0 -90
- package/dist/cli/commands/contribution.js.map +0 -1
- package/dist/cli/commands/current.d.ts +0 -18
- package/dist/cli/commands/current.d.ts.map +0 -1
- package/dist/cli/commands/current.js +0 -28
- package/dist/cli/commands/current.js.map +0 -1
- package/dist/cli/commands/daemon.d.ts +0 -36
- package/dist/cli/commands/daemon.d.ts.map +0 -1
- package/dist/cli/commands/daemon.js +0 -223
- package/dist/cli/commands/daemon.js.map +0 -1
- package/dist/cli/commands/dash.d.ts +0 -23
- package/dist/cli/commands/dash.d.ts.map +0 -1
- package/dist/cli/commands/dash.js +0 -38
- package/dist/cli/commands/dash.js.map +0 -1
- package/dist/cli/commands/decomposition.d.ts +0 -13
- package/dist/cli/commands/decomposition.d.ts.map +0 -1
- package/dist/cli/commands/decomposition.js +0 -92
- package/dist/cli/commands/decomposition.js.map +0 -1
- package/dist/cli/commands/delete.d.ts +0 -29
- package/dist/cli/commands/delete.d.ts.map +0 -1
- package/dist/cli/commands/delete.js +0 -55
- package/dist/cli/commands/delete.js.map +0 -1
- package/dist/cli/commands/deps.d.ts +0 -45
- package/dist/cli/commands/deps.d.ts.map +0 -1
- package/dist/cli/commands/deps.js +0 -170
- package/dist/cli/commands/deps.js.map +0 -1
- package/dist/cli/commands/detect-drift.d.ts +0 -23
- package/dist/cli/commands/detect-drift.d.ts.map +0 -1
- package/dist/cli/commands/detect-drift.js +0 -440
- package/dist/cli/commands/detect-drift.js.map +0 -1
- package/dist/cli/commands/detect.d.ts +0 -3
- package/dist/cli/commands/detect.d.ts.map +0 -1
- package/dist/cli/commands/detect.js +0 -14
- package/dist/cli/commands/detect.js.map +0 -1
- package/dist/cli/commands/diagnostics.d.ts +0 -19
- package/dist/cli/commands/diagnostics.d.ts.map +0 -1
- package/dist/cli/commands/diagnostics.js +0 -109
- package/dist/cli/commands/diagnostics.js.map +0 -1
- package/dist/cli/commands/docs.d.ts +0 -25
- package/dist/cli/commands/docs.d.ts.map +0 -1
- package/dist/cli/commands/docs.js +0 -798
- package/dist/cli/commands/docs.js.map +0 -1
- package/dist/cli/commands/doctor-projects.d.ts +0 -101
- package/dist/cli/commands/doctor-projects.d.ts.map +0 -1
- package/dist/cli/commands/doctor-projects.js +0 -188
- package/dist/cli/commands/doctor-projects.js.map +0 -1
- package/dist/cli/commands/doctor.d.ts +0 -66
- package/dist/cli/commands/doctor.d.ts.map +0 -1
- package/dist/cli/commands/doctor.js +0 -178
- package/dist/cli/commands/doctor.js.map +0 -1
- package/dist/cli/commands/dynamic.d.ts +0 -15
- package/dist/cli/commands/dynamic.d.ts.map +0 -1
- package/dist/cli/commands/dynamic.js +0 -21
- package/dist/cli/commands/dynamic.js.map +0 -1
- package/dist/cli/commands/exists.d.ts +0 -13
- package/dist/cli/commands/exists.d.ts.map +0 -1
- package/dist/cli/commands/exists.js +0 -40
- package/dist/cli/commands/exists.js.map +0 -1
- package/dist/cli/commands/export-tasks.d.ts +0 -46
- package/dist/cli/commands/export-tasks.d.ts.map +0 -1
- package/dist/cli/commands/export-tasks.js +0 -81
- package/dist/cli/commands/export-tasks.js.map +0 -1
- package/dist/cli/commands/export.d.ts +0 -35
- package/dist/cli/commands/export.d.ts.map +0 -1
- package/dist/cli/commands/export.js +0 -68
- package/dist/cli/commands/export.js.map +0 -1
- package/dist/cli/commands/find.d.ts +0 -54
- package/dist/cli/commands/find.d.ts.map +0 -1
- package/dist/cli/commands/find.js +0 -92
- package/dist/cli/commands/find.js.map +0 -1
- package/dist/cli/commands/gc.d.ts +0 -25
- package/dist/cli/commands/gc.d.ts.map +0 -1
- package/dist/cli/commands/gc.js +0 -165
- package/dist/cli/commands/gc.js.map +0 -1
- package/dist/cli/commands/generate-changelog.d.ts +0 -30
- package/dist/cli/commands/generate-changelog.d.ts.map +0 -1
- package/dist/cli/commands/generate-changelog.js +0 -270
- package/dist/cli/commands/generate-changelog.js.map +0 -1
- package/dist/cli/commands/grade.d.ts +0 -13
- package/dist/cli/commands/grade.d.ts.map +0 -1
- package/dist/cli/commands/grade.js +0 -27
- package/dist/cli/commands/grade.js.map +0 -1
- package/dist/cli/commands/history.d.ts +0 -13
- package/dist/cli/commands/history.d.ts.map +0 -1
- package/dist/cli/commands/history.js +0 -65
- package/dist/cli/commands/history.js.map +0 -1
- package/dist/cli/commands/import-tasks.d.ts +0 -60
- package/dist/cli/commands/import-tasks.d.ts.map +0 -1
- package/dist/cli/commands/import-tasks.js +0 -83
- package/dist/cli/commands/import-tasks.js.map +0 -1
- package/dist/cli/commands/import.d.ts +0 -42
- package/dist/cli/commands/import.d.ts.map +0 -1
- package/dist/cli/commands/import.js +0 -64
- package/dist/cli/commands/import.js.map +0 -1
- package/dist/cli/commands/init.d.ts +0 -65
- package/dist/cli/commands/init.d.ts.map +0 -1
- package/dist/cli/commands/init.js +0 -122
- package/dist/cli/commands/init.js.map +0 -1
- package/dist/cli/commands/inject.d.ts +0 -41
- package/dist/cli/commands/inject.d.ts.map +0 -1
- package/dist/cli/commands/inject.js +0 -56
- package/dist/cli/commands/inject.js.map +0 -1
- package/dist/cli/commands/install-global.d.ts +0 -48
- package/dist/cli/commands/install-global.d.ts.map +0 -1
- package/dist/cli/commands/install-global.js +0 -104
- package/dist/cli/commands/install-global.js.map +0 -1
- package/dist/cli/commands/intelligence.d.ts +0 -21
- package/dist/cli/commands/intelligence.d.ts.map +0 -1
- package/dist/cli/commands/intelligence.js +0 -145
- package/dist/cli/commands/intelligence.js.map +0 -1
- package/dist/cli/commands/issue.d.ts +0 -23
- package/dist/cli/commands/issue.d.ts.map +0 -1
- package/dist/cli/commands/issue.js +0 -152
- package/dist/cli/commands/issue.js.map +0 -1
- package/dist/cli/commands/labels.d.ts +0 -21
- package/dist/cli/commands/labels.d.ts.map +0 -1
- package/dist/cli/commands/labels.js +0 -65
- package/dist/cli/commands/labels.js.map +0 -1
- package/dist/cli/commands/lifecycle.d.ts +0 -25
- package/dist/cli/commands/lifecycle.d.ts.map +0 -1
- package/dist/cli/commands/lifecycle.js +0 -221
- package/dist/cli/commands/lifecycle.js.map +0 -1
- package/dist/cli/commands/list.d.ts +0 -28
- package/dist/cli/commands/list.d.ts.map +0 -1
- package/dist/cli/commands/list.js +0 -81
- package/dist/cli/commands/list.js.map +0 -1
- package/dist/cli/commands/log.d.ts +0 -36
- package/dist/cli/commands/log.d.ts.map +0 -1
- package/dist/cli/commands/log.js +0 -50
- package/dist/cli/commands/log.js.map +0 -1
- package/dist/cli/commands/manifest.d.ts +0 -15
- package/dist/cli/commands/manifest.d.ts.map +0 -1
- package/dist/cli/commands/manifest.js +0 -334
- package/dist/cli/commands/manifest.js.map +0 -1
- package/dist/cli/commands/map.d.ts +0 -25
- package/dist/cli/commands/map.d.ts.map +0 -1
- package/dist/cli/commands/map.js +0 -37
- package/dist/cli/commands/map.js.map +0 -1
- package/dist/cli/commands/memory.d.ts +0 -48
- package/dist/cli/commands/memory.d.ts.map +0 -1
- package/dist/cli/commands/memory.js +0 -2439
- package/dist/cli/commands/memory.js.map +0 -1
- package/dist/cli/commands/migrate-claude-mem.d.ts +0 -23
- package/dist/cli/commands/migrate-claude-mem.d.ts.map +0 -1
- package/dist/cli/commands/migrate-claude-mem.js +0 -181
- package/dist/cli/commands/migrate-claude-mem.js.map +0 -1
- package/dist/cli/commands/next.d.ts +0 -27
- package/dist/cli/commands/next.d.ts.map +0 -1
- package/dist/cli/commands/next.js +0 -40
- package/dist/cli/commands/next.js.map +0 -1
- package/dist/cli/commands/nexus.d.ts +0 -15
- package/dist/cli/commands/nexus.d.ts.map +0 -1
- package/dist/cli/commands/nexus.js +0 -3377
- package/dist/cli/commands/nexus.js.map +0 -1
- package/dist/cli/commands/ops.d.ts +0 -23
- package/dist/cli/commands/ops.d.ts.map +0 -1
- package/dist/cli/commands/ops.js +0 -35
- package/dist/cli/commands/ops.js.map +0 -1
- package/dist/cli/commands/orchestrate.d.ts +0 -48
- package/dist/cli/commands/orchestrate.d.ts.map +0 -1
- package/dist/cli/commands/orchestrate.js +0 -774
- package/dist/cli/commands/orchestrate.js.map +0 -1
- package/dist/cli/commands/otel.d.ts +0 -30
- package/dist/cli/commands/otel.d.ts.map +0 -1
- package/dist/cli/commands/otel.js +0 -193
- package/dist/cli/commands/otel.js.map +0 -1
- package/dist/cli/commands/phase.d.ts +0 -29
- package/dist/cli/commands/phase.d.ts.map +0 -1
- package/dist/cli/commands/phase.js +0 -189
- package/dist/cli/commands/phase.js.map +0 -1
- package/dist/cli/commands/pivot.d.ts +0 -34
- package/dist/cli/commands/pivot.d.ts.map +0 -1
- package/dist/cli/commands/pivot.js +0 -50
- package/dist/cli/commands/pivot.js.map +0 -1
- package/dist/cli/commands/plan.d.ts +0 -17
- package/dist/cli/commands/plan.d.ts.map +0 -1
- package/dist/cli/commands/plan.js +0 -27
- package/dist/cli/commands/plan.js.map +0 -1
- package/dist/cli/commands/playbook.d.ts +0 -26
- package/dist/cli/commands/playbook.d.ts.map +0 -1
- package/dist/cli/commands/playbook.js +0 -220
- package/dist/cli/commands/playbook.js.map +0 -1
- package/dist/cli/commands/promote.d.ts +0 -19
- package/dist/cli/commands/promote.d.ts.map +0 -1
- package/dist/cli/commands/promote.js +0 -27
- package/dist/cli/commands/promote.js.map +0 -1
- package/dist/cli/commands/provider.d.ts +0 -23
- package/dist/cli/commands/provider.d.ts.map +0 -1
- package/dist/cli/commands/provider.js +0 -168
- package/dist/cli/commands/provider.js.map +0 -1
- package/dist/cli/commands/reason.d.ts +0 -18
- package/dist/cli/commands/reason.d.ts.map +0 -1
- package/dist/cli/commands/reason.js +0 -102
- package/dist/cli/commands/reason.js.map +0 -1
- package/dist/cli/commands/reconcile.d.ts +0 -35
- package/dist/cli/commands/reconcile.d.ts.map +0 -1
- package/dist/cli/commands/reconcile.js +0 -102
- package/dist/cli/commands/reconcile.js.map +0 -1
- package/dist/cli/commands/refresh-memory.d.ts +0 -16
- package/dist/cli/commands/refresh-memory.d.ts.map +0 -1
- package/dist/cli/commands/refresh-memory.js +0 -34
- package/dist/cli/commands/refresh-memory.js.map +0 -1
- package/dist/cli/commands/relates.d.ts +0 -19
- package/dist/cli/commands/relates.d.ts.map +0 -1
- package/dist/cli/commands/relates.js +0 -129
- package/dist/cli/commands/relates.js.map +0 -1
- package/dist/cli/commands/release.d.ts +0 -27
- package/dist/cli/commands/release.d.ts.map +0 -1
- package/dist/cli/commands/release.js +0 -300
- package/dist/cli/commands/release.js.map +0 -1
- package/dist/cli/commands/remote.d.ts +0 -49
- package/dist/cli/commands/remote.d.ts.map +0 -1
- package/dist/cli/commands/remote.js +0 -265
- package/dist/cli/commands/remote.js.map +0 -1
- package/dist/cli/commands/reorder.d.ts +0 -31
- package/dist/cli/commands/reorder.d.ts.map +0 -1
- package/dist/cli/commands/reorder.js +0 -57
- package/dist/cli/commands/reorder.js.map +0 -1
- package/dist/cli/commands/reparent.d.ts +0 -27
- package/dist/cli/commands/reparent.d.ts.map +0 -1
- package/dist/cli/commands/reparent.js +0 -36
- package/dist/cli/commands/reparent.js.map +0 -1
- package/dist/cli/commands/req.d.ts +0 -37
- package/dist/cli/commands/req.d.ts.map +0 -1
- package/dist/cli/commands/req.js +0 -121
- package/dist/cli/commands/req.js.map +0 -1
- package/dist/cli/commands/research.d.ts +0 -25
- package/dist/cli/commands/research.d.ts.map +0 -1
- package/dist/cli/commands/research.js +0 -327
- package/dist/cli/commands/research.js.map +0 -1
- package/dist/cli/commands/restore.d.ts +0 -64
- package/dist/cli/commands/restore.d.ts.map +0 -1
- package/dist/cli/commands/restore.js +0 -539
- package/dist/cli/commands/restore.js.map +0 -1
- package/dist/cli/commands/revert.d.ts +0 -79
- package/dist/cli/commands/revert.d.ts.map +0 -1
- package/dist/cli/commands/revert.js +0 -300
- package/dist/cli/commands/revert.js.map +0 -1
- package/dist/cli/commands/roadmap.d.ts +0 -29
- package/dist/cli/commands/roadmap.d.ts.map +0 -1
- package/dist/cli/commands/roadmap.js +0 -43
- package/dist/cli/commands/roadmap.js.map +0 -1
- package/dist/cli/commands/safestop.d.ts +0 -41
- package/dist/cli/commands/safestop.d.ts.map +0 -1
- package/dist/cli/commands/safestop.js +0 -62
- package/dist/cli/commands/safestop.js.map +0 -1
- package/dist/cli/commands/schema.d.ts +0 -44
- package/dist/cli/commands/schema.d.ts.map +0 -1
- package/dist/cli/commands/schema.js +0 -177
- package/dist/cli/commands/schema.js.map +0 -1
- package/dist/cli/commands/self-update.d.ts +0 -81
- package/dist/cli/commands/self-update.d.ts.map +0 -1
- package/dist/cli/commands/self-update.js +0 -483
- package/dist/cli/commands/self-update.js.map +0 -1
- package/dist/cli/commands/sentient.d.ts +0 -44
- package/dist/cli/commands/sentient.d.ts.map +0 -1
- package/dist/cli/commands/sentient.js +0 -687
- package/dist/cli/commands/sentient.js.map +0 -1
- package/dist/cli/commands/sequence.d.ts +0 -15
- package/dist/cli/commands/sequence.d.ts.map +0 -1
- package/dist/cli/commands/sequence.js +0 -68
- package/dist/cli/commands/sequence.js.map +0 -1
- package/dist/cli/commands/session.d.ts +0 -32
- package/dist/cli/commands/session.d.ts.map +0 -1
- package/dist/cli/commands/session.js +0 -583
- package/dist/cli/commands/session.js.map +0 -1
- package/dist/cli/commands/show.d.ts +0 -21
- package/dist/cli/commands/show.d.ts.map +0 -1
- package/dist/cli/commands/show.js +0 -37
- package/dist/cli/commands/show.js.map +0 -1
- package/dist/cli/commands/skills.d.ts +0 -31
- package/dist/cli/commands/skills.d.ts.map +0 -1
- package/dist/cli/commands/skills.js +0 -303
- package/dist/cli/commands/skills.js.map +0 -1
- package/dist/cli/commands/snapshot.d.ts +0 -17
- package/dist/cli/commands/snapshot.d.ts.map +0 -1
- package/dist/cli/commands/snapshot.js +0 -95
- package/dist/cli/commands/snapshot.js.map +0 -1
- package/dist/cli/commands/start.d.ts +0 -21
- package/dist/cli/commands/start.d.ts.map +0 -1
- package/dist/cli/commands/start.js +0 -32
- package/dist/cli/commands/start.js.map +0 -1
- package/dist/cli/commands/stats.d.ts +0 -30
- package/dist/cli/commands/stats.d.ts.map +0 -1
- package/dist/cli/commands/stats.js +0 -71
- package/dist/cli/commands/stats.js.map +0 -1
- package/dist/cli/commands/sticky.d.ts +0 -23
- package/dist/cli/commands/sticky.d.ts.map +0 -1
- package/dist/cli/commands/sticky.js +0 -315
- package/dist/cli/commands/sticky.js.map +0 -1
- package/dist/cli/commands/stop.d.ts +0 -15
- package/dist/cli/commands/stop.d.ts.map +0 -1
- package/dist/cli/commands/stop.js +0 -25
- package/dist/cli/commands/stop.js.map +0 -1
- package/dist/cli/commands/sync.d.ts +0 -25
- package/dist/cli/commands/sync.d.ts.map +0 -1
- package/dist/cli/commands/sync.js +0 -125
- package/dist/cli/commands/sync.js.map +0 -1
- package/dist/cli/commands/testing.d.ts +0 -22
- package/dist/cli/commands/testing.d.ts.map +0 -1
- package/dist/cli/commands/testing.js +0 -111
- package/dist/cli/commands/testing.js.map +0 -1
- package/dist/cli/commands/token.d.ts +0 -22
- package/dist/cli/commands/token.d.ts.map +0 -1
- package/dist/cli/commands/token.js +0 -197
- package/dist/cli/commands/token.js.map +0 -1
- package/dist/cli/commands/transcript.d.ts +0 -32
- package/dist/cli/commands/transcript.d.ts.map +0 -1
- package/dist/cli/commands/transcript.js +0 -526
- package/dist/cli/commands/transcript.js.map +0 -1
- package/dist/cli/commands/update.d.ts +0 -164
- package/dist/cli/commands/update.d.ts.map +0 -1
- package/dist/cli/commands/update.js +0 -234
- package/dist/cli/commands/update.js.map +0 -1
- package/dist/cli/commands/upgrade.d.ts +0 -76
- package/dist/cli/commands/upgrade.d.ts.map +0 -1
- package/dist/cli/commands/upgrade.js +0 -154
- package/dist/cli/commands/upgrade.js.map +0 -1
- package/dist/cli/commands/verify.d.ts +0 -83
- package/dist/cli/commands/verify.d.ts.map +0 -1
- package/dist/cli/commands/verify.js +0 -108
- package/dist/cli/commands/verify.js.map +0 -1
- package/dist/cli/commands/web.d.ts +0 -27
- package/dist/cli/commands/web.d.ts.map +0 -1
- package/dist/cli/commands/web.js +0 -414
- package/dist/cli/commands/web.js.map +0 -1
- package/dist/cli/field-context.d.ts +0 -32
- package/dist/cli/field-context.d.ts.map +0 -1
- package/dist/cli/field-context.js +0 -47
- package/dist/cli/field-context.js.map +0 -1
- package/dist/cli/format-context.d.ts +0 -32
- package/dist/cli/format-context.d.ts.map +0 -1
- package/dist/cli/format-context.js +0 -50
- package/dist/cli/format-context.js.map +0 -1
- package/dist/cli/help-renderer.d.ts +0 -40
- package/dist/cli/help-renderer.d.ts.map +0 -1
- package/dist/cli/help-renderer.js +0 -325
- package/dist/cli/help-renderer.js.map +0 -1
- package/dist/cli/index.d.ts +0 -14
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/infer-files-via-gitnexus.d.ts +0 -12
- package/dist/cli/infer-files-via-gitnexus.d.ts.map +0 -1
- package/dist/cli/infer-files-via-gitnexus.js +0 -12
- package/dist/cli/infer-files-via-gitnexus.js.map +0 -1
- package/dist/cli/lib/did-you-mean.d.ts +0 -30
- package/dist/cli/lib/did-you-mean.d.ts.map +0 -1
- package/dist/cli/lib/did-you-mean.js +0 -63
- package/dist/cli/lib/did-you-mean.js.map +0 -1
- package/dist/cli/lib/registry-args.d.ts +0 -36
- package/dist/cli/lib/registry-args.d.ts.map +0 -1
- package/dist/cli/lib/registry-args.js +0 -37
- package/dist/cli/lib/registry-args.js.map +0 -1
- package/dist/cli/lib/subcommand-guard.d.ts +0 -45
- package/dist/cli/lib/subcommand-guard.d.ts.map +0 -1
- package/dist/cli/lib/subcommand-guard.js +0 -55
- package/dist/cli/lib/subcommand-guard.js.map +0 -1
- package/dist/cli/logger-bootstrap.d.ts +0 -6
- package/dist/cli/logger-bootstrap.d.ts.map +0 -1
- package/dist/cli/logger-bootstrap.js +0 -10
- package/dist/cli/logger-bootstrap.js.map +0 -1
- package/dist/cli/middleware/output-format.d.ts +0 -30
- package/dist/cli/middleware/output-format.d.ts.map +0 -1
- package/dist/cli/middleware/output-format.js +0 -35
- package/dist/cli/middleware/output-format.js.map +0 -1
- package/dist/cli/paths.d.ts +0 -85
- package/dist/cli/paths.d.ts.map +0 -1
- package/dist/cli/paths.js +0 -108
- package/dist/cli/paths.js.map +0 -1
- package/dist/cli/progress.d.ts +0 -89
- package/dist/cli/progress.d.ts.map +0 -1
- package/dist/cli/progress.js +0 -185
- package/dist/cli/progress.js.map +0 -1
- package/dist/cli/renderers/colors.d.ts +0 -32
- package/dist/cli/renderers/colors.d.ts.map +0 -1
- package/dist/cli/renderers/colors.js +0 -141
- package/dist/cli/renderers/colors.js.map +0 -1
- package/dist/cli/renderers/error.d.ts +0 -13
- package/dist/cli/renderers/error.d.ts.map +0 -1
- package/dist/cli/renderers/error.js +0 -42
- package/dist/cli/renderers/error.js.map +0 -1
- package/dist/cli/renderers/index.d.ts +0 -90
- package/dist/cli/renderers/index.d.ts.map +0 -1
- package/dist/cli/renderers/index.js +0 -268
- package/dist/cli/renderers/index.js.map +0 -1
- package/dist/cli/renderers/lafs-validator.d.ts +0 -91
- package/dist/cli/renderers/lafs-validator.d.ts.map +0 -1
- package/dist/cli/renderers/lafs-validator.js +0 -176
- package/dist/cli/renderers/lafs-validator.js.map +0 -1
- package/dist/cli/renderers/normalizer.d.ts +0 -21
- package/dist/cli/renderers/normalizer.d.ts.map +0 -1
- package/dist/cli/renderers/normalizer.js +0 -106
- package/dist/cli/renderers/normalizer.js.map +0 -1
- package/dist/cli/renderers/system.d.ts +0 -110
- package/dist/cli/renderers/system.d.ts.map +0 -1
- package/dist/cli/renderers/system.js +0 -662
- package/dist/cli/renderers/system.js.map +0 -1
- package/dist/cli/renderers/tasks.d.ts +0 -28
- package/dist/cli/renderers/tasks.d.ts.map +0 -1
- package/dist/cli/renderers/tasks.js +0 -306
- package/dist/cli/renderers/tasks.js.map +0 -1
- package/dist/cli/tree-context.d.ts +0 -53
- package/dist/cli/tree-context.d.ts.map +0 -1
- package/dist/cli/tree-context.js +0 -43
- package/dist/cli/tree-context.js.map +0 -1
- package/dist/dispatch/adapters/cli.d.ts +0 -67
- package/dist/dispatch/adapters/cli.d.ts.map +0 -1
- package/dist/dispatch/adapters/cli.js +0 -331
- package/dist/dispatch/adapters/cli.js.map +0 -1
- package/dist/dispatch/adapters/typed.d.ts +0 -362
- package/dist/dispatch/adapters/typed.d.ts.map +0 -1
- package/dist/dispatch/adapters/typed.js +0 -278
- package/dist/dispatch/adapters/typed.js.map +0 -1
- package/dist/dispatch/context/session-context.d.ts +0 -108
- package/dist/dispatch/context/session-context.d.ts.map +0 -1
- package/dist/dispatch/context/session-context.js +0 -111
- package/dist/dispatch/context/session-context.js.map +0 -1
- package/dist/dispatch/dispatcher.d.ts +0 -37
- package/dist/dispatch/dispatcher.d.ts.map +0 -1
- package/dist/dispatch/dispatcher.js +0 -172
- package/dist/dispatch/dispatcher.js.map +0 -1
- package/dist/dispatch/domains/_base.d.ts +0 -104
- package/dist/dispatch/domains/_base.d.ts.map +0 -1
- package/dist/dispatch/domains/_base.js +0 -147
- package/dist/dispatch/domains/_base.js.map +0 -1
- package/dist/dispatch/domains/_meta.d.ts +0 -23
- package/dist/dispatch/domains/_meta.d.ts.map +0 -1
- package/dist/dispatch/domains/_meta.js +0 -25
- package/dist/dispatch/domains/_meta.js.map +0 -1
- package/dist/dispatch/domains/_routing.d.ts +0 -8
- package/dist/dispatch/domains/_routing.d.ts.map +0 -1
- package/dist/dispatch/domains/_routing.js +0 -20
- package/dist/dispatch/domains/_routing.js.map +0 -1
- package/dist/dispatch/domains/admin/smoke-provider.d.ts +0 -54
- package/dist/dispatch/domains/admin/smoke-provider.d.ts.map +0 -1
- package/dist/dispatch/domains/admin/smoke-provider.js +0 -309
- package/dist/dispatch/domains/admin/smoke-provider.js.map +0 -1
- package/dist/dispatch/domains/admin.d.ts +0 -51
- package/dist/dispatch/domains/admin.d.ts.map +0 -1
- package/dist/dispatch/domains/admin.js +0 -1163
- package/dist/dispatch/domains/admin.js.map +0 -1
- package/dist/dispatch/domains/check/canon.d.ts +0 -65
- package/dist/dispatch/domains/check/canon.d.ts.map +0 -1
- package/dist/dispatch/domains/check/canon.js +0 -193
- package/dist/dispatch/domains/check/canon.js.map +0 -1
- package/dist/dispatch/domains/check.d.ts +0 -37
- package/dist/dispatch/domains/check.d.ts.map +0 -1
- package/dist/dispatch/domains/check.js +0 -562
- package/dist/dispatch/domains/check.js.map +0 -1
- package/dist/dispatch/domains/conduit.d.ts +0 -61
- package/dist/dispatch/domains/conduit.d.ts.map +0 -1
- package/dist/dispatch/domains/conduit.js +0 -609
- package/dist/dispatch/domains/conduit.js.map +0 -1
- package/dist/dispatch/domains/diagnostics.d.ts +0 -25
- package/dist/dispatch/domains/diagnostics.d.ts.map +0 -1
- package/dist/dispatch/domains/diagnostics.js +0 -82
- package/dist/dispatch/domains/diagnostics.js.map +0 -1
- package/dist/dispatch/domains/docs.d.ts +0 -63
- package/dist/dispatch/domains/docs.d.ts.map +0 -1
- package/dist/dispatch/domains/docs.js +0 -539
- package/dist/dispatch/domains/docs.js.map +0 -1
- package/dist/dispatch/domains/index.d.ts +0 -33
- package/dist/dispatch/domains/index.d.ts.map +0 -1
- package/dist/dispatch/domains/index.js +0 -58
- package/dist/dispatch/domains/index.js.map +0 -1
- package/dist/dispatch/domains/intelligence.d.ts +0 -26
- package/dist/dispatch/domains/intelligence.d.ts.map +0 -1
- package/dist/dispatch/domains/intelligence.js +0 -154
- package/dist/dispatch/domains/intelligence.js.map +0 -1
- package/dist/dispatch/domains/ivtr.d.ts +0 -182
- package/dist/dispatch/domains/ivtr.d.ts.map +0 -1
- package/dist/dispatch/domains/ivtr.js +0 -430
- package/dist/dispatch/domains/ivtr.js.map +0 -1
- package/dist/dispatch/domains/memory.d.ts +0 -22
- package/dist/dispatch/domains/memory.d.ts.map +0 -1
- package/dist/dispatch/domains/memory.js +0 -1281
- package/dist/dispatch/domains/memory.js.map +0 -1
- package/dist/dispatch/domains/nexus.d.ts +0 -78
- package/dist/dispatch/domains/nexus.d.ts.map +0 -1
- package/dist/dispatch/domains/nexus.js +0 -938
- package/dist/dispatch/domains/nexus.js.map +0 -1
- package/dist/dispatch/domains/orchestrate.d.ts +0 -307
- package/dist/dispatch/domains/orchestrate.d.ts.map +0 -1
- package/dist/dispatch/domains/orchestrate.js +0 -986
- package/dist/dispatch/domains/orchestrate.js.map +0 -1
- package/dist/dispatch/domains/pipeline.d.ts +0 -276
- package/dist/dispatch/domains/pipeline.d.ts.map +0 -1
- package/dist/dispatch/domains/pipeline.js +0 -689
- package/dist/dispatch/domains/pipeline.js.map +0 -1
- package/dist/dispatch/domains/playbook.d.ts +0 -131
- package/dist/dispatch/domains/playbook.d.ts.map +0 -1
- package/dist/dispatch/domains/playbook.js +0 -633
- package/dist/dispatch/domains/playbook.js.map +0 -1
- package/dist/dispatch/domains/release.d.ts +0 -97
- package/dist/dispatch/domains/release.d.ts.map +0 -1
- package/dist/dispatch/domains/release.js +0 -177
- package/dist/dispatch/domains/release.js.map +0 -1
- package/dist/dispatch/domains/sentient.d.ts +0 -60
- package/dist/dispatch/domains/sentient.d.ts.map +0 -1
- package/dist/dispatch/domains/sentient.js +0 -270
- package/dist/dispatch/domains/sentient.js.map +0 -1
- package/dist/dispatch/domains/session.d.ts +0 -49
- package/dist/dispatch/domains/session.d.ts.map +0 -1
- package/dist/dispatch/domains/session.js +0 -459
- package/dist/dispatch/domains/session.js.map +0 -1
- package/dist/dispatch/domains/sticky.d.ts +0 -82
- package/dist/dispatch/domains/sticky.d.ts.map +0 -1
- package/dist/dispatch/domains/sticky.js +0 -287
- package/dist/dispatch/domains/sticky.js.map +0 -1
- package/dist/dispatch/domains/tasks.d.ts +0 -58
- package/dist/dispatch/domains/tasks.d.ts.map +0 -1
- package/dist/dispatch/domains/tasks.js +0 -497
- package/dist/dispatch/domains/tasks.js.map +0 -1
- package/dist/dispatch/domains/tools.d.ts +0 -37
- package/dist/dispatch/domains/tools.d.ts.map +0 -1
- package/dist/dispatch/domains/tools.js +0 -481
- package/dist/dispatch/domains/tools.js.map +0 -1
- package/dist/dispatch/engines/_error.d.ts +0 -114
- package/dist/dispatch/engines/_error.d.ts.map +0 -1
- package/dist/dispatch/engines/_error.js +0 -290
- package/dist/dispatch/engines/_error.js.map +0 -1
- package/dist/dispatch/engines/admin-engine.d.ts +0 -386
- package/dist/dispatch/engines/admin-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/admin-engine.js +0 -270
- package/dist/dispatch/engines/admin-engine.js.map +0 -1
- package/dist/dispatch/engines/code-engine.d.ts +0 -14
- package/dist/dispatch/engines/code-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/code-engine.js +0 -14
- package/dist/dispatch/engines/code-engine.js.map +0 -1
- package/dist/dispatch/engines/codebase-map-engine.d.ts +0 -31
- package/dist/dispatch/engines/codebase-map-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/codebase-map-engine.js +0 -43
- package/dist/dispatch/engines/codebase-map-engine.js.map +0 -1
- package/dist/dispatch/engines/config-engine.d.ts +0 -14
- package/dist/dispatch/engines/config-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/config-engine.js +0 -14
- package/dist/dispatch/engines/config-engine.js.map +0 -1
- package/dist/dispatch/engines/diagnostics-engine.d.ts +0 -13
- package/dist/dispatch/engines/diagnostics-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/diagnostics-engine.js +0 -12
- package/dist/dispatch/engines/diagnostics-engine.js.map +0 -1
- package/dist/dispatch/engines/hooks-engine.d.ts +0 -13
- package/dist/dispatch/engines/hooks-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/hooks-engine.js +0 -12
- package/dist/dispatch/engines/hooks-engine.js.map +0 -1
- package/dist/dispatch/engines/init-engine.d.ts +0 -14
- package/dist/dispatch/engines/init-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/init-engine.js +0 -14
- package/dist/dispatch/engines/init-engine.js.map +0 -1
- package/dist/dispatch/engines/lifecycle-engine.d.ts +0 -13
- package/dist/dispatch/engines/lifecycle-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/lifecycle-engine.js +0 -12
- package/dist/dispatch/engines/lifecycle-engine.js.map +0 -1
- package/dist/dispatch/engines/memory-engine.d.ts +0 -10
- package/dist/dispatch/engines/memory-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/memory-engine.js +0 -10
- package/dist/dispatch/engines/memory-engine.js.map +0 -1
- package/dist/dispatch/engines/nexus-engine.d.ts +0 -603
- package/dist/dispatch/engines/nexus-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/nexus-engine.js +0 -1438
- package/dist/dispatch/engines/nexus-engine.js.map +0 -1
- package/dist/dispatch/engines/orchestrate-engine.d.ts +0 -252
- package/dist/dispatch/engines/orchestrate-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/orchestrate-engine.js +0 -1526
- package/dist/dispatch/engines/orchestrate-engine.js.map +0 -1
- package/dist/dispatch/engines/pipeline-engine.d.ts +0 -13
- package/dist/dispatch/engines/pipeline-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/pipeline-engine.js +0 -12
- package/dist/dispatch/engines/pipeline-engine.js.map +0 -1
- package/dist/dispatch/engines/release-engine.d.ts +0 -13
- package/dist/dispatch/engines/release-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/release-engine.js +0 -13
- package/dist/dispatch/engines/release-engine.js.map +0 -1
- package/dist/dispatch/engines/session-engine.d.ts +0 -15
- package/dist/dispatch/engines/session-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/session-engine.js +0 -12
- package/dist/dispatch/engines/session-engine.js.map +0 -1
- package/dist/dispatch/engines/sticky-engine.d.ts +0 -13
- package/dist/dispatch/engines/sticky-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/sticky-engine.js +0 -12
- package/dist/dispatch/engines/sticky-engine.js.map +0 -1
- package/dist/dispatch/engines/system-engine.d.ts +0 -543
- package/dist/dispatch/engines/system-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/system-engine.js +0 -1278
- package/dist/dispatch/engines/system-engine.js.map +0 -1
- package/dist/dispatch/engines/task-engine.d.ts +0 -1161
- package/dist/dispatch/engines/task-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/task-engine.js +0 -1599
- package/dist/dispatch/engines/task-engine.js.map +0 -1
- package/dist/dispatch/engines/template-parser.d.ts +0 -85
- package/dist/dispatch/engines/template-parser.d.ts.map +0 -1
- package/dist/dispatch/engines/template-parser.js +0 -114
- package/dist/dispatch/engines/template-parser.js.map +0 -1
- package/dist/dispatch/engines/tools-engine.d.ts +0 -13
- package/dist/dispatch/engines/tools-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/tools-engine.js +0 -12
- package/dist/dispatch/engines/tools-engine.js.map +0 -1
- package/dist/dispatch/engines/validate-engine.d.ts +0 -13
- package/dist/dispatch/engines/validate-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/validate-engine.js +0 -13
- package/dist/dispatch/engines/validate-engine.js.map +0 -1
- package/dist/dispatch/index.d.ts +0 -20
- package/dist/dispatch/index.d.ts.map +0 -1
- package/dist/dispatch/index.js +0 -19
- package/dist/dispatch/index.js.map +0 -1
- package/dist/dispatch/lib/background-jobs.d.ts +0 -162
- package/dist/dispatch/lib/background-jobs.d.ts.map +0 -1
- package/dist/dispatch/lib/background-jobs.js +0 -360
- package/dist/dispatch/lib/background-jobs.js.map +0 -1
- package/dist/dispatch/lib/budget.d.ts +0 -36
- package/dist/dispatch/lib/budget.d.ts.map +0 -1
- package/dist/dispatch/lib/budget.js +0 -109
- package/dist/dispatch/lib/budget.js.map +0 -1
- package/dist/dispatch/lib/capability-matrix.d.ts +0 -11
- package/dist/dispatch/lib/capability-matrix.d.ts.map +0 -1
- package/dist/dispatch/lib/capability-matrix.js +0 -10
- package/dist/dispatch/lib/capability-matrix.js.map +0 -1
- package/dist/dispatch/lib/config-loader.d.ts +0 -42
- package/dist/dispatch/lib/config-loader.d.ts.map +0 -1
- package/dist/dispatch/lib/config-loader.js +0 -218
- package/dist/dispatch/lib/config-loader.js.map +0 -1
- package/dist/dispatch/lib/config.d.ts +0 -11
- package/dist/dispatch/lib/config.d.ts.map +0 -1
- package/dist/dispatch/lib/config.js +0 -10
- package/dist/dispatch/lib/config.js.map +0 -1
- package/dist/dispatch/lib/defaults.d.ts +0 -115
- package/dist/dispatch/lib/defaults.d.ts.map +0 -1
- package/dist/dispatch/lib/defaults.js +0 -61
- package/dist/dispatch/lib/defaults.js.map +0 -1
- package/dist/dispatch/lib/engine.d.ts +0 -17
- package/dist/dispatch/lib/engine.d.ts.map +0 -1
- package/dist/dispatch/lib/engine.js +0 -36
- package/dist/dispatch/lib/engine.js.map +0 -1
- package/dist/dispatch/lib/exit-codes.d.ts +0 -35
- package/dist/dispatch/lib/exit-codes.d.ts.map +0 -1
- package/dist/dispatch/lib/exit-codes.js +0 -60
- package/dist/dispatch/lib/exit-codes.js.map +0 -1
- package/dist/dispatch/lib/gateway-meta.d.ts +0 -37
- package/dist/dispatch/lib/gateway-meta.d.ts.map +0 -1
- package/dist/dispatch/lib/gateway-meta.js +0 -50
- package/dist/dispatch/lib/gateway-meta.js.map +0 -1
- package/dist/dispatch/lib/job-manager-accessor.d.ts +0 -9
- package/dist/dispatch/lib/job-manager-accessor.d.ts.map +0 -1
- package/dist/dispatch/lib/job-manager-accessor.js +0 -13
- package/dist/dispatch/lib/job-manager-accessor.js.map +0 -1
- package/dist/dispatch/lib/meta.d.ts +0 -26
- package/dist/dispatch/lib/meta.d.ts.map +0 -1
- package/dist/dispatch/lib/meta.js +0 -37
- package/dist/dispatch/lib/meta.js.map +0 -1
- package/dist/dispatch/lib/param-utils.d.ts +0 -11
- package/dist/dispatch/lib/param-utils.d.ts.map +0 -1
- package/dist/dispatch/lib/param-utils.js +0 -10
- package/dist/dispatch/lib/param-utils.js.map +0 -1
- package/dist/dispatch/lib/projections.d.ts +0 -56
- package/dist/dispatch/lib/projections.d.ts.map +0 -1
- package/dist/dispatch/lib/projections.js +0 -65
- package/dist/dispatch/lib/projections.js.map +0 -1
- package/dist/dispatch/lib/proto-envelope.d.ts +0 -56
- package/dist/dispatch/lib/proto-envelope.d.ts.map +0 -1
- package/dist/dispatch/lib/proto-envelope.js +0 -17
- package/dist/dispatch/lib/proto-envelope.js.map +0 -1
- package/dist/dispatch/lib/schema-utils.d.ts +0 -39
- package/dist/dispatch/lib/schema-utils.d.ts.map +0 -1
- package/dist/dispatch/lib/schema-utils.js +0 -88
- package/dist/dispatch/lib/schema-utils.js.map +0 -1
- package/dist/dispatch/lib/security.d.ts +0 -11
- package/dist/dispatch/lib/security.d.ts.map +0 -1
- package/dist/dispatch/lib/security.js +0 -10
- package/dist/dispatch/lib/security.js.map +0 -1
- package/dist/dispatch/middleware/audit.d.ts +0 -23
- package/dist/dispatch/middleware/audit.d.ts.map +0 -1
- package/dist/dispatch/middleware/audit.js +0 -169
- package/dist/dispatch/middleware/audit.js.map +0 -1
- package/dist/dispatch/middleware/field-filter.d.ts +0 -25
- package/dist/dispatch/middleware/field-filter.d.ts.map +0 -1
- package/dist/dispatch/middleware/field-filter.js +0 -70
- package/dist/dispatch/middleware/field-filter.js.map +0 -1
- package/dist/dispatch/middleware/pipeline.d.ts +0 -33
- package/dist/dispatch/middleware/pipeline.d.ts.map +0 -1
- package/dist/dispatch/middleware/pipeline.js +0 -60
- package/dist/dispatch/middleware/pipeline.js.map +0 -1
- package/dist/dispatch/middleware/projection.d.ts +0 -35
- package/dist/dispatch/middleware/projection.d.ts.map +0 -1
- package/dist/dispatch/middleware/projection.js +0 -146
- package/dist/dispatch/middleware/projection.js.map +0 -1
- package/dist/dispatch/middleware/protocol-enforcement.d.ts +0 -30
- package/dist/dispatch/middleware/protocol-enforcement.d.ts.map +0 -1
- package/dist/dispatch/middleware/protocol-enforcement.js +0 -56
- package/dist/dispatch/middleware/protocol-enforcement.js.map +0 -1
- package/dist/dispatch/middleware/rate-limiter.d.ts +0 -72
- package/dist/dispatch/middleware/rate-limiter.d.ts.map +0 -1
- package/dist/dispatch/middleware/rate-limiter.js +0 -127
- package/dist/dispatch/middleware/rate-limiter.js.map +0 -1
- package/dist/dispatch/middleware/sanitizer.d.ts +0 -24
- package/dist/dispatch/middleware/sanitizer.d.ts.map +0 -1
- package/dist/dispatch/middleware/sanitizer.js +0 -56
- package/dist/dispatch/middleware/sanitizer.js.map +0 -1
- package/dist/dispatch/middleware/session-resolver.d.ts +0 -26
- package/dist/dispatch/middleware/session-resolver.d.ts.map +0 -1
- package/dist/dispatch/middleware/session-resolver.js +0 -65
- package/dist/dispatch/middleware/session-resolver.js.map +0 -1
- package/dist/dispatch/middleware/telemetry.d.ts +0 -21
- package/dist/dispatch/middleware/telemetry.d.ts.map +0 -1
- package/dist/dispatch/middleware/telemetry.js +0 -50
- package/dist/dispatch/middleware/telemetry.js.map +0 -1
- package/dist/dispatch/middleware/verification-gates.d.ts +0 -22
- package/dist/dispatch/middleware/verification-gates.d.ts.map +0 -1
- package/dist/dispatch/middleware/verification-gates.js +0 -59
- package/dist/dispatch/middleware/verification-gates.js.map +0 -1
- package/dist/dispatch/registry.d.ts +0 -91
- package/dist/dispatch/registry.d.ts.map +0 -1
- package/dist/dispatch/registry.js +0 -6430
- package/dist/dispatch/registry.js.map +0 -1
- package/dist/dispatch/types.d.ts +0 -150
- package/dist/dispatch/types.d.ts.map +0 -1
- package/dist/dispatch/types.js +0 -38
- package/dist/dispatch/types.js.map +0 -1
- package/dist/migrations/2026-04-25-t991-parent-link-repair.d.ts +0 -88
- package/dist/migrations/2026-04-25-t991-parent-link-repair.d.ts.map +0 -1
- package/dist/migrations/2026-04-25-t991-parent-link-repair.js +0 -76
- package/dist/migrations/2026-04-25-t991-parent-link-repair.js.map +0 -1
|
@@ -1,662 +0,0 @@
|
|
|
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
|