@cleocode/cleo 2026.4.12 → 2026.4.14
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/README.md +27 -0
- package/dist/cli/index.js +121925 -340
- package/dist/cli/index.js.map +7 -1
- package/package.json +7 -7
- package/dist/cli/commander-shim.d.ts +0 -112
- package/dist/cli/commander-shim.d.ts.map +0 -1
- package/dist/cli/commander-shim.js +0 -233
- package/dist/cli/commander-shim.js.map +0 -1
- package/dist/cli/commands/add.d.ts +0 -12
- package/dist/cli/commands/add.d.ts.map +0 -1
- package/dist/cli/commands/add.js +0 -202
- package/dist/cli/commands/add.js.map +0 -1
- package/dist/cli/commands/admin.d.ts +0 -12
- package/dist/cli/commands/admin.d.ts.map +0 -1
- package/dist/cli/commands/admin.js +0 -59
- package/dist/cli/commands/admin.js.map +0 -1
- package/dist/cli/commands/adr.d.ts +0 -27
- package/dist/cli/commands/adr.d.ts.map +0 -1
- package/dist/cli/commands/adr.js +0 -79
- 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 -38
- package/dist/cli/commands/agent.d.ts.map +0 -1
- package/dist/cli/commands/agent.js +0 -1169
- package/dist/cli/commands/agent.js.map +0 -1
- package/dist/cli/commands/agents.d.ts +0 -17
- package/dist/cli/commands/agents.d.ts.map +0 -1
- package/dist/cli/commands/agents.js +0 -20
- package/dist/cli/commands/agents.js.map +0 -1
- package/dist/cli/commands/analyze.d.ts +0 -12
- package/dist/cli/commands/analyze.d.ts.map +0 -1
- package/dist/cli/commands/analyze.js +0 -20
- package/dist/cli/commands/analyze.js.map +0 -1
- package/dist/cli/commands/archive-stats.d.ts +0 -18
- package/dist/cli/commands/archive-stats.d.ts.map +0 -1
- package/dist/cli/commands/archive-stats.js +0 -49
- package/dist/cli/commands/archive-stats.js.map +0 -1
- package/dist/cli/commands/archive.d.ts +0 -12
- package/dist/cli/commands/archive.d.ts.map +0 -1
- package/dist/cli/commands/archive.js +0 -32
- package/dist/cli/commands/archive.js.map +0 -1
- package/dist/cli/commands/backfill.d.ts +0 -38
- package/dist/cli/commands/backfill.d.ts.map +0 -1
- package/dist/cli/commands/backfill.js +0 -147
- package/dist/cli/commands/backfill.js.map +0 -1
- package/dist/cli/commands/backup.d.ts +0 -9
- package/dist/cli/commands/backup.d.ts.map +0 -1
- package/dist/cli/commands/backup.js +0 -41
- package/dist/cli/commands/backup.js.map +0 -1
- package/dist/cli/commands/blockers.d.ts +0 -7
- package/dist/cli/commands/blockers.d.ts.map +0 -1
- package/dist/cli/commands/blockers.js +0 -16
- package/dist/cli/commands/blockers.js.map +0 -1
- package/dist/cli/commands/brain.d.ts +0 -29
- package/dist/cli/commands/brain.d.ts.map +0 -1
- package/dist/cli/commands/brain.js +0 -107
- package/dist/cli/commands/brain.js.map +0 -1
- package/dist/cli/commands/briefing.d.ts +0 -22
- package/dist/cli/commands/briefing.d.ts.map +0 -1
- package/dist/cli/commands/briefing.js +0 -45
- package/dist/cli/commands/briefing.js.map +0 -1
- package/dist/cli/commands/bug.d.ts +0 -12
- package/dist/cli/commands/bug.d.ts.map +0 -1
- package/dist/cli/commands/bug.js +0 -81
- package/dist/cli/commands/bug.js.map +0 -1
- package/dist/cli/commands/cant.d.ts +0 -32
- package/dist/cli/commands/cant.d.ts.map +0 -1
- package/dist/cli/commands/cant.js +0 -281
- package/dist/cli/commands/cant.js.map +0 -1
- package/dist/cli/commands/check.d.ts +0 -22
- package/dist/cli/commands/check.d.ts.map +0 -1
- package/dist/cli/commands/check.js +0 -164
- package/dist/cli/commands/check.js.map +0 -1
- package/dist/cli/commands/checkpoint.d.ts +0 -15
- package/dist/cli/commands/checkpoint.d.ts.map +0 -1
- package/dist/cli/commands/checkpoint.js +0 -91
- package/dist/cli/commands/checkpoint.js.map +0 -1
- package/dist/cli/commands/code.d.ts +0 -11
- package/dist/cli/commands/code.d.ts.map +0 -1
- package/dist/cli/commands/code.js +0 -114
- package/dist/cli/commands/code.js.map +0 -1
- package/dist/cli/commands/commands.d.ts +0 -13
- package/dist/cli/commands/commands.d.ts.map +0 -1
- package/dist/cli/commands/commands.js +0 -29
- package/dist/cli/commands/commands.js.map +0 -1
- package/dist/cli/commands/complete.d.ts +0 -12
- package/dist/cli/commands/complete.d.ts.map +0 -1
- package/dist/cli/commands/complete.js +0 -92
- package/dist/cli/commands/complete.js.map +0 -1
- package/dist/cli/commands/compliance.d.ts +0 -8
- package/dist/cli/commands/compliance.d.ts.map +0 -1
- package/dist/cli/commands/compliance.js +0 -85
- package/dist/cli/commands/compliance.js.map +0 -1
- package/dist/cli/commands/config.d.ts +0 -10
- package/dist/cli/commands/config.d.ts.map +0 -1
- package/dist/cli/commands/config.js +0 -69
- package/dist/cli/commands/config.js.map +0 -1
- package/dist/cli/commands/consensus.d.ts +0 -13
- package/dist/cli/commands/consensus.d.ts.map +0 -1
- package/dist/cli/commands/consensus.js +0 -45
- package/dist/cli/commands/consensus.js.map +0 -1
- package/dist/cli/commands/context.d.ts +0 -8
- package/dist/cli/commands/context.d.ts.map +0 -1
- package/dist/cli/commands/context.js +0 -40
- package/dist/cli/commands/context.js.map +0 -1
- package/dist/cli/commands/contribution.d.ts +0 -13
- package/dist/cli/commands/contribution.d.ts.map +0 -1
- package/dist/cli/commands/contribution.js +0 -41
- package/dist/cli/commands/contribution.js.map +0 -1
- package/dist/cli/commands/current.d.ts +0 -13
- package/dist/cli/commands/current.d.ts.map +0 -1
- package/dist/cli/commands/current.js +0 -20
- package/dist/cli/commands/current.js.map +0 -1
- package/dist/cli/commands/dash.d.ts +0 -12
- package/dist/cli/commands/dash.d.ts.map +0 -1
- package/dist/cli/commands/dash.js +0 -24
- 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 -45
- package/dist/cli/commands/decomposition.js.map +0 -1
- package/dist/cli/commands/delete.d.ts +0 -12
- package/dist/cli/commands/delete.d.ts.map +0 -1
- package/dist/cli/commands/delete.js +0 -37
- package/dist/cli/commands/delete.js.map +0 -1
- package/dist/cli/commands/deps.d.ts +0 -24
- package/dist/cli/commands/deps.d.ts.map +0 -1
- package/dist/cli/commands/deps.js +0 -98
- package/dist/cli/commands/deps.js.map +0 -1
- package/dist/cli/commands/detect-drift.d.ts +0 -15
- package/dist/cli/commands/detect-drift.d.ts.map +0 -1
- package/dist/cli/commands/detect-drift.js +0 -424
- package/dist/cli/commands/detect-drift.js.map +0 -1
- package/dist/cli/commands/detect.d.ts +0 -10
- package/dist/cli/commands/detect.d.ts.map +0 -1
- package/dist/cli/commands/detect.js +0 -24
- package/dist/cli/commands/detect.js.map +0 -1
- package/dist/cli/commands/docs.d.ts +0 -13
- package/dist/cli/commands/docs.d.ts.map +0 -1
- package/dist/cli/commands/docs.js +0 -169
- package/dist/cli/commands/docs.js.map +0 -1
- package/dist/cli/commands/doctor.d.ts +0 -15
- package/dist/cli/commands/doctor.d.ts.map +0 -1
- package/dist/cli/commands/doctor.js +0 -133
- package/dist/cli/commands/doctor.js.map +0 -1
- package/dist/cli/commands/dynamic.d.ts +0 -24
- package/dist/cli/commands/dynamic.d.ts.map +0 -1
- package/dist/cli/commands/dynamic.js +0 -27
- package/dist/cli/commands/dynamic.js.map +0 -1
- package/dist/cli/commands/env.d.ts +0 -12
- package/dist/cli/commands/env.d.ts.map +0 -1
- package/dist/cli/commands/env.js +0 -44
- package/dist/cli/commands/env.js.map +0 -1
- package/dist/cli/commands/exists.d.ts +0 -22
- package/dist/cli/commands/exists.d.ts.map +0 -1
- package/dist/cli/commands/exists.js +0 -51
- package/dist/cli/commands/exists.js.map +0 -1
- package/dist/cli/commands/export-tasks.d.ts +0 -10
- package/dist/cli/commands/export-tasks.d.ts.map +0 -1
- package/dist/cli/commands/export-tasks.js +0 -47
- package/dist/cli/commands/export-tasks.js.map +0 -1
- package/dist/cli/commands/export.d.ts +0 -9
- package/dist/cli/commands/export.d.ts.map +0 -1
- package/dist/cli/commands/export.js +0 -46
- package/dist/cli/commands/export.js.map +0 -1
- package/dist/cli/commands/find.d.ts +0 -14
- package/dist/cli/commands/find.d.ts.map +0 -1
- package/dist/cli/commands/find.js +0 -134
- package/dist/cli/commands/find.js.map +0 -1
- package/dist/cli/commands/generate-changelog.d.ts +0 -14
- package/dist/cli/commands/generate-changelog.d.ts.map +0 -1
- package/dist/cli/commands/generate-changelog.js +0 -252
- 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 -26
- package/dist/cli/commands/grade.js.map +0 -1
- package/dist/cli/commands/history.d.ts +0 -9
- package/dist/cli/commands/history.d.ts.map +0 -1
- package/dist/cli/commands/history.js +0 -30
- package/dist/cli/commands/history.js.map +0 -1
- package/dist/cli/commands/implementation.d.ts +0 -13
- package/dist/cli/commands/implementation.d.ts.map +0 -1
- package/dist/cli/commands/implementation.js +0 -41
- package/dist/cli/commands/implementation.js.map +0 -1
- package/dist/cli/commands/import-tasks.d.ts +0 -10
- package/dist/cli/commands/import-tasks.d.ts.map +0 -1
- package/dist/cli/commands/import-tasks.js +0 -38
- package/dist/cli/commands/import-tasks.js.map +0 -1
- package/dist/cli/commands/import.d.ts +0 -9
- package/dist/cli/commands/import.d.ts.map +0 -1
- package/dist/cli/commands/import.js +0 -28
- package/dist/cli/commands/import.js.map +0 -1
- package/dist/cli/commands/init.d.ts +0 -34
- package/dist/cli/commands/init.d.ts.map +0 -1
- package/dist/cli/commands/init.js +0 -96
- package/dist/cli/commands/init.js.map +0 -1
- package/dist/cli/commands/inject.d.ts +0 -8
- package/dist/cli/commands/inject.d.ts.map +0 -1
- package/dist/cli/commands/inject.js +0 -28
- package/dist/cli/commands/inject.js.map +0 -1
- package/dist/cli/commands/issue.d.ts +0 -17
- package/dist/cli/commands/issue.d.ts.map +0 -1
- package/dist/cli/commands/issue.js +0 -107
- package/dist/cli/commands/issue.js.map +0 -1
- package/dist/cli/commands/labels.d.ts +0 -13
- package/dist/cli/commands/labels.d.ts.map +0 -1
- package/dist/cli/commands/labels.js +0 -44
- package/dist/cli/commands/labels.js.map +0 -1
- package/dist/cli/commands/lifecycle.d.ts +0 -8
- package/dist/cli/commands/lifecycle.d.ts.map +0 -1
- package/dist/cli/commands/lifecycle.js +0 -84
- package/dist/cli/commands/lifecycle.js.map +0 -1
- package/dist/cli/commands/list.d.ts +0 -14
- package/dist/cli/commands/list.d.ts.map +0 -1
- package/dist/cli/commands/list.js +0 -143
- package/dist/cli/commands/list.js.map +0 -1
- package/dist/cli/commands/log.d.ts +0 -12
- package/dist/cli/commands/log.d.ts.map +0 -1
- package/dist/cli/commands/log.js +0 -30
- package/dist/cli/commands/log.js.map +0 -1
- package/dist/cli/commands/map.d.ts +0 -10
- package/dist/cli/commands/map.d.ts.map +0 -1
- package/dist/cli/commands/map.js +0 -23
- package/dist/cli/commands/map.js.map +0 -1
- package/dist/cli/commands/memory-brain.d.ts +0 -14
- package/dist/cli/commands/memory-brain.d.ts.map +0 -1
- package/dist/cli/commands/memory-brain.js +0 -157
- package/dist/cli/commands/memory-brain.js.map +0 -1
- package/dist/cli/commands/migrate-claude-mem.d.ts +0 -18
- package/dist/cli/commands/migrate-claude-mem.d.ts.map +0 -1
- package/dist/cli/commands/migrate-claude-mem.js +0 -60
- package/dist/cli/commands/migrate-claude-mem.js.map +0 -1
- package/dist/cli/commands/next.d.ts +0 -9
- package/dist/cli/commands/next.d.ts.map +0 -1
- package/dist/cli/commands/next.js +0 -20
- package/dist/cli/commands/next.js.map +0 -1
- package/dist/cli/commands/nexus.d.ts +0 -16
- package/dist/cli/commands/nexus.d.ts.map +0 -1
- package/dist/cli/commands/nexus.js +0 -155
- package/dist/cli/commands/nexus.js.map +0 -1
- package/dist/cli/commands/observe.d.ts +0 -12
- package/dist/cli/commands/observe.d.ts.map +0 -1
- package/dist/cli/commands/observe.js +0 -42
- package/dist/cli/commands/observe.js.map +0 -1
- package/dist/cli/commands/ops.d.ts +0 -10
- package/dist/cli/commands/ops.d.ts.map +0 -1
- package/dist/cli/commands/ops.js +0 -19
- package/dist/cli/commands/ops.js.map +0 -1
- package/dist/cli/commands/orchestrate.d.ts +0 -8
- package/dist/cli/commands/orchestrate.d.ts.map +0 -1
- package/dist/cli/commands/orchestrate.js +0 -58
- package/dist/cli/commands/orchestrate.js.map +0 -1
- package/dist/cli/commands/otel.d.ts +0 -12
- package/dist/cli/commands/otel.d.ts.map +0 -1
- package/dist/cli/commands/otel.js +0 -128
- package/dist/cli/commands/otel.js.map +0 -1
- package/dist/cli/commands/phase.d.ts +0 -12
- package/dist/cli/commands/phase.d.ts.map +0 -1
- package/dist/cli/commands/phase.js +0 -91
- package/dist/cli/commands/phase.js.map +0 -1
- package/dist/cli/commands/phases.d.ts +0 -12
- package/dist/cli/commands/phases.d.ts.map +0 -1
- package/dist/cli/commands/phases.js +0 -37
- package/dist/cli/commands/phases.js.map +0 -1
- package/dist/cli/commands/plan.d.ts +0 -8
- package/dist/cli/commands/plan.d.ts.map +0 -1
- package/dist/cli/commands/plan.js +0 -15
- package/dist/cli/commands/plan.js.map +0 -1
- package/dist/cli/commands/promote.d.ts +0 -7
- package/dist/cli/commands/promote.d.ts.map +0 -1
- package/dist/cli/commands/promote.js +0 -15
- package/dist/cli/commands/promote.js.map +0 -1
- package/dist/cli/commands/reason.d.ts +0 -35
- package/dist/cli/commands/reason.d.ts.map +0 -1
- package/dist/cli/commands/reason.js +0 -104
- package/dist/cli/commands/reason.js.map +0 -1
- package/dist/cli/commands/refresh-memory.d.ts +0 -9
- package/dist/cli/commands/refresh-memory.d.ts.map +0 -1
- package/dist/cli/commands/refresh-memory.js +0 -24
- package/dist/cli/commands/refresh-memory.js.map +0 -1
- package/dist/cli/commands/relates.d.ts +0 -12
- package/dist/cli/commands/relates.d.ts.map +0 -1
- package/dist/cli/commands/relates.js +0 -53
- package/dist/cli/commands/relates.js.map +0 -1
- package/dist/cli/commands/release.d.ts +0 -8
- package/dist/cli/commands/release.d.ts.map +0 -1
- package/dist/cli/commands/release.js +0 -72
- package/dist/cli/commands/release.js.map +0 -1
- package/dist/cli/commands/remote.d.ts +0 -12
- package/dist/cli/commands/remote.d.ts.map +0 -1
- package/dist/cli/commands/remote.js +0 -207
- package/dist/cli/commands/remote.js.map +0 -1
- package/dist/cli/commands/reorder.d.ts +0 -7
- package/dist/cli/commands/reorder.d.ts.map +0 -1
- package/dist/cli/commands/reorder.js +0 -20
- package/dist/cli/commands/reorder.js.map +0 -1
- package/dist/cli/commands/reparent.d.ts +0 -10
- package/dist/cli/commands/reparent.d.ts.map +0 -1
- package/dist/cli/commands/reparent.js +0 -19
- package/dist/cli/commands/reparent.js.map +0 -1
- package/dist/cli/commands/research.d.ts +0 -8
- package/dist/cli/commands/research.d.ts.map +0 -1
- package/dist/cli/commands/research.js +0 -129
- package/dist/cli/commands/research.js.map +0 -1
- package/dist/cli/commands/restore.d.ts +0 -12
- package/dist/cli/commands/restore.d.ts.map +0 -1
- package/dist/cli/commands/restore.js +0 -228
- package/dist/cli/commands/restore.js.map +0 -1
- package/dist/cli/commands/roadmap.d.ts +0 -8
- package/dist/cli/commands/roadmap.d.ts.map +0 -1
- package/dist/cli/commands/roadmap.js +0 -21
- package/dist/cli/commands/roadmap.js.map +0 -1
- package/dist/cli/commands/safestop.d.ts +0 -14
- package/dist/cli/commands/safestop.d.ts.map +0 -1
- package/dist/cli/commands/safestop.js +0 -32
- package/dist/cli/commands/safestop.js.map +0 -1
- package/dist/cli/commands/schema.d.ts +0 -27
- package/dist/cli/commands/schema.d.ts.map +0 -1
- package/dist/cli/commands/schema.js +0 -160
- package/dist/cli/commands/schema.js.map +0 -1
- package/dist/cli/commands/self-update.d.ts +0 -15
- package/dist/cli/commands/self-update.d.ts.map +0 -1
- package/dist/cli/commands/self-update.js +0 -329
- package/dist/cli/commands/self-update.js.map +0 -1
- package/dist/cli/commands/sequence.d.ts +0 -8
- package/dist/cli/commands/sequence.d.ts.map +0 -1
- package/dist/cli/commands/sequence.js +0 -30
- package/dist/cli/commands/sequence.js.map +0 -1
- package/dist/cli/commands/session.d.ts +0 -12
- package/dist/cli/commands/session.d.ts.map +0 -1
- package/dist/cli/commands/session.js +0 -175
- package/dist/cli/commands/session.js.map +0 -1
- package/dist/cli/commands/show.d.ts +0 -13
- package/dist/cli/commands/show.d.ts.map +0 -1
- package/dist/cli/commands/show.js +0 -40
- package/dist/cli/commands/show.js.map +0 -1
- package/dist/cli/commands/skills.d.ts +0 -13
- package/dist/cli/commands/skills.d.ts.map +0 -1
- package/dist/cli/commands/skills.js +0 -131
- package/dist/cli/commands/skills.js.map +0 -1
- package/dist/cli/commands/snapshot.d.ts +0 -9
- package/dist/cli/commands/snapshot.d.ts.map +0 -1
- package/dist/cli/commands/snapshot.js +0 -50
- package/dist/cli/commands/snapshot.js.map +0 -1
- package/dist/cli/commands/specification.d.ts +0 -13
- package/dist/cli/commands/specification.d.ts.map +0 -1
- package/dist/cli/commands/specification.js +0 -45
- package/dist/cli/commands/specification.js.map +0 -1
- package/dist/cli/commands/start.d.ts +0 -13
- package/dist/cli/commands/start.d.ts.map +0 -1
- package/dist/cli/commands/start.js +0 -20
- package/dist/cli/commands/start.js.map +0 -1
- package/dist/cli/commands/stats.d.ts +0 -12
- package/dist/cli/commands/stats.d.ts.map +0 -1
- package/dist/cli/commands/stats.js +0 -35
- package/dist/cli/commands/stats.js.map +0 -1
- package/dist/cli/commands/sticky.d.ts +0 -16
- package/dist/cli/commands/sticky.d.ts.map +0 -1
- package/dist/cli/commands/sticky.js +0 -211
- package/dist/cli/commands/sticky.js.map +0 -1
- package/dist/cli/commands/stop.d.ts +0 -13
- package/dist/cli/commands/stop.d.ts.map +0 -1
- package/dist/cli/commands/stop.js +0 -20
- package/dist/cli/commands/stop.js.map +0 -1
- package/dist/cli/commands/testing.d.ts +0 -13
- package/dist/cli/commands/testing.d.ts.map +0 -1
- package/dist/cli/commands/testing.js +0 -64
- package/dist/cli/commands/testing.js.map +0 -1
- package/dist/cli/commands/token.d.ts +0 -10
- package/dist/cli/commands/token.d.ts.map +0 -1
- package/dist/cli/commands/token.js +0 -135
- package/dist/cli/commands/token.js.map +0 -1
- package/dist/cli/commands/update.d.ts +0 -12
- package/dist/cli/commands/update.d.ts.map +0 -1
- package/dist/cli/commands/update.js +0 -83
- package/dist/cli/commands/update.js.map +0 -1
- package/dist/cli/commands/upgrade.d.ts +0 -18
- package/dist/cli/commands/upgrade.d.ts.map +0 -1
- package/dist/cli/commands/upgrade.js +0 -103
- package/dist/cli/commands/upgrade.js.map +0 -1
- package/dist/cli/commands/validate.d.ts +0 -12
- package/dist/cli/commands/validate.d.ts.map +0 -1
- package/dist/cli/commands/validate.js +0 -23
- package/dist/cli/commands/validate.js.map +0 -1
- package/dist/cli/commands/verify.d.ts +0 -8
- package/dist/cli/commands/verify.d.ts.map +0 -1
- package/dist/cli/commands/verify.js +0 -28
- package/dist/cli/commands/verify.js.map +0 -1
- package/dist/cli/commands/web.d.ts +0 -13
- package/dist/cli/commands/web.d.ts.map +0 -1
- package/dist/cli/commands/web.js +0 -277
- 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-generator.d.ts +0 -74
- package/dist/cli/help-generator.d.ts.map +0 -1
- package/dist/cli/help-generator.js +0 -229
- package/dist/cli/help-generator.js.map +0 -1
- package/dist/cli/index.d.ts +0 -9
- package/dist/cli/index.d.ts.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/progress.d.ts +0 -84
- package/dist/cli/progress.d.ts.map +0 -1
- package/dist/cli/progress.js +0 -169
- 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 -87
- package/dist/cli/renderers/index.d.ts.map +0 -1
- package/dist/cli/renderers/index.js +0 -262
- 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 -25
- package/dist/cli/renderers/system.d.ts.map +0 -1
- package/dist/cli/renderers/system.js +0 -416
- 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/dispatch/adapters/cli.d.ts +0 -67
- package/dist/dispatch/adapters/cli.d.ts.map +0 -1
- package/dist/dispatch/adapters/cli.js +0 -276
- package/dist/dispatch/adapters/cli.js.map +0 -1
- package/dist/dispatch/context/session-context.d.ts +0 -54
- package/dist/dispatch/context/session-context.d.ts.map +0 -1
- package/dist/dispatch/context/session-context.js +0 -61
- package/dist/dispatch/context/session-context.js.map +0 -1
- package/dist/dispatch/dispatcher.d.ts +0 -23
- package/dist/dispatch/dispatcher.d.ts.map +0 -1
- package/dist/dispatch/dispatcher.js +0 -84
- package/dist/dispatch/dispatcher.js.map +0 -1
- package/dist/dispatch/domains/_base.d.ts +0 -59
- package/dist/dispatch/domains/_base.d.ts.map +0 -1
- package/dist/dispatch/domains/_base.js +0 -77
- 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.d.ts +0 -25
- package/dist/dispatch/domains/admin.d.ts.map +0 -1
- package/dist/dispatch/domains/admin.js +0 -719
- package/dist/dispatch/domains/admin.js.map +0 -1
- package/dist/dispatch/domains/check.d.ts +0 -22
- package/dist/dispatch/domains/check.d.ts.map +0 -1
- package/dist/dispatch/domains/check.js +0 -360
- package/dist/dispatch/domains/check.js.map +0 -1
- package/dist/dispatch/domains/conduit.d.ts +0 -38
- package/dist/dispatch/domains/conduit.d.ts.map +0 -1
- package/dist/dispatch/domains/conduit.js +0 -247
- package/dist/dispatch/domains/conduit.js.map +0 -1
- package/dist/dispatch/domains/index.d.ts +0 -27
- package/dist/dispatch/domains/index.d.ts.map +0 -1
- package/dist/dispatch/domains/index.js +0 -40
- package/dist/dispatch/domains/index.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 -303
- package/dist/dispatch/domains/memory.js.map +0 -1
- package/dist/dispatch/domains/nexus.d.ts +0 -22
- package/dist/dispatch/domains/nexus.d.ts.map +0 -1
- package/dist/dispatch/domains/nexus.js +0 -286
- package/dist/dispatch/domains/nexus.js.map +0 -1
- package/dist/dispatch/domains/orchestrate.d.ts +0 -19
- package/dist/dispatch/domains/orchestrate.d.ts.map +0 -1
- package/dist/dispatch/domains/orchestrate.js +0 -259
- package/dist/dispatch/domains/orchestrate.js.map +0 -1
- package/dist/dispatch/domains/pipeline.d.ts +0 -35
- package/dist/dispatch/domains/pipeline.d.ts.map +0 -1
- package/dist/dispatch/domains/pipeline.js +0 -593
- package/dist/dispatch/domains/pipeline.js.map +0 -1
- package/dist/dispatch/domains/session.d.ts +0 -22
- package/dist/dispatch/domains/session.d.ts.map +0 -1
- package/dist/dispatch/domains/session.js +0 -257
- package/dist/dispatch/domains/session.js.map +0 -1
- package/dist/dispatch/domains/sticky.d.ts +0 -20
- package/dist/dispatch/domains/sticky.d.ts.map +0 -1
- package/dist/dispatch/domains/sticky.js +0 -164
- package/dist/dispatch/domains/sticky.js.map +0 -1
- package/dist/dispatch/domains/tasks.d.ts +0 -25
- package/dist/dispatch/domains/tasks.d.ts.map +0 -1
- package/dist/dispatch/domains/tasks.js +0 -361
- 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 -119
- package/dist/dispatch/engines/_error.d.ts.map +0 -1
- package/dist/dispatch/engines/_error.js +0 -288
- package/dist/dispatch/engines/_error.js.map +0 -1
- package/dist/dispatch/engines/code-engine.d.ts +0 -18
- package/dist/dispatch/engines/code-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/code-engine.js +0 -71
- 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 -32
- package/dist/dispatch/engines/config-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/config-engine.js +0 -70
- package/dist/dispatch/engines/config-engine.js.map +0 -1
- package/dist/dispatch/engines/hooks-engine.d.ts +0 -96
- package/dist/dispatch/engines/hooks-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/hooks-engine.js +0 -144
- package/dist/dispatch/engines/hooks-engine.js.map +0 -1
- package/dist/dispatch/engines/init-engine.d.ts +0 -56
- package/dist/dispatch/engines/init-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/init-engine.js +0 -78
- package/dist/dispatch/engines/init-engine.js.map +0 -1
- package/dist/dispatch/engines/lifecycle-engine.d.ts +0 -66
- package/dist/dispatch/engines/lifecycle-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/lifecycle-engine.js +0 -224
- 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 -167
- package/dist/dispatch/engines/nexus-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/nexus-engine.js +0 -356
- package/dist/dispatch/engines/nexus-engine.js.map +0 -1
- package/dist/dispatch/engines/orchestrate-engine.d.ts +0 -133
- package/dist/dispatch/engines/orchestrate-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/orchestrate-engine.js +0 -769
- package/dist/dispatch/engines/orchestrate-engine.js.map +0 -1
- package/dist/dispatch/engines/pipeline-engine.d.ts +0 -51
- package/dist/dispatch/engines/pipeline-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/pipeline-engine.js +0 -191
- package/dist/dispatch/engines/pipeline-engine.js.map +0 -1
- package/dist/dispatch/engines/release-engine.d.ts +0 -94
- package/dist/dispatch/engines/release-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/release-engine.js +0 -763
- package/dist/dispatch/engines/release-engine.js.map +0 -1
- package/dist/dispatch/engines/session-engine.d.ts +0 -383
- package/dist/dispatch/engines/session-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/session-engine.js +0 -910
- package/dist/dispatch/engines/session-engine.js.map +0 -1
- package/dist/dispatch/engines/sticky-engine.d.ts +0 -100
- package/dist/dispatch/engines/sticky-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/sticky-engine.js +0 -181
- package/dist/dispatch/engines/sticky-engine.js.map +0 -1
- package/dist/dispatch/engines/system-engine.d.ts +0 -539
- package/dist/dispatch/engines/system-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/system-engine.js +0 -1258
- package/dist/dispatch/engines/system-engine.js.map +0 -1
- package/dist/dispatch/engines/task-engine.d.ts +0 -1055
- package/dist/dispatch/engines/task-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/task-engine.js +0 -1193
- 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 -108
- package/dist/dispatch/engines/template-parser.js.map +0 -1
- package/dist/dispatch/engines/tools-engine.d.ts +0 -270
- package/dist/dispatch/engines/tools-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/tools-engine.js +0 -636
- package/dist/dispatch/engines/tools-engine.js.map +0 -1
- package/dist/dispatch/engines/validate-engine.d.ts +0 -218
- package/dist/dispatch/engines/validate-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/validate-engine.js +0 -737
- 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 -86
- package/dist/dispatch/lib/background-jobs.d.ts.map +0 -1
- package/dist/dispatch/lib/background-jobs.js +0 -183
- 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 -217
- 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 -26
- package/dist/dispatch/lib/engine.d.ts.map +0 -1
- package/dist/dispatch/lib/engine.js +0 -46
- 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/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 -3133
- package/dist/dispatch/registry.js.map +0 -1
- package/dist/dispatch/types.d.ts +0 -206
- package/dist/dispatch/types.d.ts.map +0 -1
- package/dist/dispatch/types.js +0 -26
- package/dist/dispatch/types.js.map +0 -1
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI lifecycle command group.
|
|
3
|
-
* @task T4467
|
|
4
|
-
* @epic T4454
|
|
5
|
-
*/
|
|
6
|
-
import { dispatchFromCli, dispatchRaw, handleRawError } from '../../dispatch/adapters/cli.js';
|
|
7
|
-
export function registerLifecycleCommand(program) {
|
|
8
|
-
const lifecycle = program
|
|
9
|
-
.command('lifecycle')
|
|
10
|
-
.description('RCASD-IVTR+C lifecycle pipeline management');
|
|
11
|
-
lifecycle
|
|
12
|
-
.command('show <epicId>')
|
|
13
|
-
.description('Show lifecycle state for an epic')
|
|
14
|
-
.action(async (epicId) => {
|
|
15
|
-
await dispatchFromCli('query', 'pipeline', 'stage.status', { epicId }, { command: 'lifecycle' });
|
|
16
|
-
});
|
|
17
|
-
lifecycle
|
|
18
|
-
.command('start <epicId> <stage>')
|
|
19
|
-
.description('Start a lifecycle stage')
|
|
20
|
-
.action(async (epicId, stage) => {
|
|
21
|
-
await dispatchFromCli('mutate', 'pipeline', 'stage.record', {
|
|
22
|
-
taskId: epicId,
|
|
23
|
-
stage,
|
|
24
|
-
status: 'in_progress',
|
|
25
|
-
}, { command: 'lifecycle' });
|
|
26
|
-
});
|
|
27
|
-
lifecycle
|
|
28
|
-
.command('complete <epicId> <stage>')
|
|
29
|
-
.description('Complete a lifecycle stage')
|
|
30
|
-
.option('--artifacts <artifacts>', 'Comma-separated artifact paths')
|
|
31
|
-
.option('--notes <notes>', 'Completion notes')
|
|
32
|
-
.action(async (epicId, stage, opts) => {
|
|
33
|
-
await dispatchFromCli('mutate', 'pipeline', 'stage.record', {
|
|
34
|
-
taskId: epicId,
|
|
35
|
-
stage,
|
|
36
|
-
status: 'completed',
|
|
37
|
-
notes: opts['notes'],
|
|
38
|
-
}, { command: 'lifecycle' });
|
|
39
|
-
});
|
|
40
|
-
lifecycle
|
|
41
|
-
.command('skip <epicId> <stage>')
|
|
42
|
-
.description('Skip a lifecycle stage')
|
|
43
|
-
.requiredOption('--reason <reason>', 'Reason for skipping')
|
|
44
|
-
.action(async (epicId, stage, opts) => {
|
|
45
|
-
await dispatchFromCli('mutate', 'pipeline', 'stage.skip', {
|
|
46
|
-
taskId: epicId,
|
|
47
|
-
stage,
|
|
48
|
-
reason: opts['reason'],
|
|
49
|
-
}, { command: 'lifecycle' });
|
|
50
|
-
});
|
|
51
|
-
lifecycle
|
|
52
|
-
.command('gate <epicId> <stage>')
|
|
53
|
-
.description('Check lifecycle gate for a stage')
|
|
54
|
-
.action(async (epicId, stage) => {
|
|
55
|
-
const result = await dispatchRaw('query', 'pipeline', 'stage.validate', {
|
|
56
|
-
epicId,
|
|
57
|
-
targetStage: stage,
|
|
58
|
-
});
|
|
59
|
-
if (result.success) {
|
|
60
|
-
const { cliOutput } = await import('../renderers/index.js');
|
|
61
|
-
cliOutput(result.data, { command: 'lifecycle' });
|
|
62
|
-
const data = result.data;
|
|
63
|
-
if (data && !data['canProgress']) {
|
|
64
|
-
process.exit(80);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
handleRawError(result, { command: 'lifecycle', operation: 'pipeline.stage.validate' });
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
lifecycle
|
|
72
|
-
.command('guidance [stage]')
|
|
73
|
-
.description('Get stage-aware LLM prompt guidance (Phase 2). Pi extensions shell out to this on before_agent_start.')
|
|
74
|
-
.option('--epicId <id>', 'Resolve stage from current epic pipeline status if no stage arg')
|
|
75
|
-
.option('--format <fmt>', 'Output format: markdown | json', 'markdown')
|
|
76
|
-
.action(async (stage, opts) => {
|
|
77
|
-
await dispatchFromCli('query', 'pipeline', 'stage.guidance', {
|
|
78
|
-
stage,
|
|
79
|
-
epicId: opts['epicId'],
|
|
80
|
-
format: opts['format'],
|
|
81
|
-
}, { command: 'lifecycle' });
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=lifecycle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.js","sourceRoot":"","sources":["../../../src/cli/commands/lifecycle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAG9F,MAAM,UAAU,wBAAwB,CAAC,OAAgB;IACvD,MAAM,SAAS,GAAG,OAAO;SACtB,OAAO,CAAC,WAAW,CAAC;SACpB,WAAW,CAAC,4CAA4C,CAAC,CAAC;IAE7D,SAAS;SACN,OAAO,CAAC,eAAe,CAAC;SACxB,WAAW,CAAC,kCAAkC,CAAC;SAC/C,MAAM,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;QAC/B,MAAM,eAAe,CACnB,OAAO,EACP,UAAU,EACV,cAAc,EACd,EAAE,MAAM,EAAE,EACV,EAAE,OAAO,EAAE,WAAW,EAAE,CACzB,CAAC;IACJ,CAAC,CAAC,CAAC;IAEL,SAAS;SACN,OAAO,CAAC,wBAAwB,CAAC;SACjC,WAAW,CAAC,yBAAyB,CAAC;SACtC,MAAM,CAAC,KAAK,EAAE,MAAc,EAAE,KAAa,EAAE,EAAE;QAC9C,MAAM,eAAe,CACnB,QAAQ,EACR,UAAU,EACV,cAAc,EACd;YACE,MAAM,EAAE,MAAM;YACd,KAAK;YACL,MAAM,EAAE,aAAa;SACtB,EACD,EAAE,OAAO,EAAE,WAAW,EAAE,CACzB,CAAC;IACJ,CAAC,CAAC,CAAC;IAEL,SAAS;SACN,OAAO,CAAC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AuB,CAAC,CAAC;YAC5D,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;YACjD,MAAM,IAAI,GAAG,MAAM,CAAC,IAA2C,CAAC;YAChE,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC;gBACjC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACnB,CAAC;QACH,CAAC;aAAM,CAAC;YACN,cAAc,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,yBAAyB,EAAE,CAAC,CAAC;QACzF,CAAC;IACH,CAAC,CAAC,CAAC;IAEL,SAAS;SACN,OAAO,CAAC,kBAAkB,CAAC;SAC3B,WAAW,CACV,uGAAuG,CACxG;SACA,MAAM,CAAC,eAAe,EAAE,iEAAiE,CAAC;SAC1F,MAAM,CAAC,gBAAgB,EAAE,gCAAgC,EAAE,UAAU,CAAC;SACtE,MAAM,CAAC,KAAK,EAAE,KAAyB,EAAE,IAA6B,EAAE,EAAE;QACzE,MAAM,eAAe,CACnB,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB;YACE,KAAK;YACL,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;YACtB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;SACvB,EACD,EAAE,OAAO,EAAE,WAAW,EAAE,CACzB,CAAC;IACJ,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI list command.
|
|
3
|
-
* @task T4460
|
|
4
|
-
* @task T4668
|
|
5
|
-
* @epic T4454
|
|
6
|
-
*/
|
|
7
|
-
import type { ShimCommand as Command } from '../commander-shim.js';
|
|
8
|
-
/**
|
|
9
|
-
* Register the list command.
|
|
10
|
-
* @task T4460
|
|
11
|
-
* @task T4668
|
|
12
|
-
*/
|
|
13
|
-
export declare function registerListCommand(program: Command): void;
|
|
14
|
-
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/list.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAiFnE;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAiD1D"}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI list command.
|
|
3
|
-
* @task T4460
|
|
4
|
-
* @task T4668
|
|
5
|
-
* @epic T4454
|
|
6
|
-
*/
|
|
7
|
-
import { ExitCode } from '@cleocode/contracts';
|
|
8
|
-
import { createPage } from '@cleocode/core';
|
|
9
|
-
import { dispatchRaw, handleRawError } from '../../dispatch/adapters/cli.js';
|
|
10
|
-
import { applyParamDefsToCommand, buildOperationHelp } from '../help-generator.js';
|
|
11
|
-
import { cliOutput } from '../renderers/index.js';
|
|
12
|
-
// ---------------------------------------------------------------------------
|
|
13
|
-
// ParamDef array for tasks.list
|
|
14
|
-
//
|
|
15
|
-
// The registry entry for tasks.list has a params array (already migrated in
|
|
16
|
-
// T4897 partial work), but it is reproduced here as ParamDef objects so that
|
|
17
|
-
// applyParamDefsToCommand can wire the CLI flags with short aliases and parse
|
|
18
|
-
// functions that the plain registry entry omits.
|
|
19
|
-
// ---------------------------------------------------------------------------
|
|
20
|
-
const LIST_PARAMS = [
|
|
21
|
-
{
|
|
22
|
-
name: 'status',
|
|
23
|
-
type: 'string',
|
|
24
|
-
required: false,
|
|
25
|
-
description: 'Filter by status',
|
|
26
|
-
enum: ['pending', 'active', 'blocked', 'done', 'cancelled'],
|
|
27
|
-
cli: { flag: 'status' },
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: 'priority',
|
|
31
|
-
type: 'string',
|
|
32
|
-
required: false,
|
|
33
|
-
description: 'Filter by priority',
|
|
34
|
-
enum: ['low', 'medium', 'high', 'critical'],
|
|
35
|
-
cli: { flag: 'priority' },
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: 'type',
|
|
39
|
-
type: 'string',
|
|
40
|
-
required: false,
|
|
41
|
-
description: 'Filter by task type',
|
|
42
|
-
enum: ['epic', 'task', 'subtask', 'bug'],
|
|
43
|
-
cli: { flag: 'type' },
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: 'parent',
|
|
47
|
-
type: 'string',
|
|
48
|
-
required: false,
|
|
49
|
-
description: 'Filter by parent task ID',
|
|
50
|
-
cli: { flag: 'parent' },
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: 'phase',
|
|
54
|
-
type: 'string',
|
|
55
|
-
required: false,
|
|
56
|
-
description: 'Filter by phase slug',
|
|
57
|
-
cli: { flag: 'phase' },
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: 'label',
|
|
61
|
-
type: 'string',
|
|
62
|
-
required: false,
|
|
63
|
-
description: 'Filter by label',
|
|
64
|
-
cli: { flag: 'label' },
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
name: 'children',
|
|
68
|
-
type: 'boolean',
|
|
69
|
-
required: false,
|
|
70
|
-
description: 'Show direct children only (requires --parent)',
|
|
71
|
-
cli: { flag: 'children' },
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
name: 'limit',
|
|
75
|
-
type: 'number',
|
|
76
|
-
required: false,
|
|
77
|
-
description: 'Limit number of results',
|
|
78
|
-
cli: { flag: 'limit', parse: parseInt },
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: 'offset',
|
|
82
|
-
type: 'number',
|
|
83
|
-
required: false,
|
|
84
|
-
description: 'Skip first N results',
|
|
85
|
-
cli: { flag: 'offset', parse: parseInt },
|
|
86
|
-
},
|
|
87
|
-
];
|
|
88
|
-
/**
|
|
89
|
-
* Register the list command.
|
|
90
|
-
* @task T4460
|
|
91
|
-
* @task T4668
|
|
92
|
-
*/
|
|
93
|
-
export function registerListCommand(program) {
|
|
94
|
-
const cmd = program
|
|
95
|
-
.command('list')
|
|
96
|
-
.alias('ls')
|
|
97
|
-
.description(buildOperationHelp('tasks.list', 'List tasks with optional filters', LIST_PARAMS));
|
|
98
|
-
// Auto-generate flag options from the ParamDef registry. Replaces the
|
|
99
|
-
// previous hand-written .option() chain and surfaces enum values (status,
|
|
100
|
-
// priority, type) in --help output.
|
|
101
|
-
applyParamDefsToCommand(cmd, LIST_PARAMS, 'tasks.list');
|
|
102
|
-
cmd.action(async (opts) => {
|
|
103
|
-
const limit = opts['limit'];
|
|
104
|
-
const offset = opts['offset'];
|
|
105
|
-
const params = {};
|
|
106
|
-
if (opts['status'] !== undefined)
|
|
107
|
-
params['status'] = opts['status'];
|
|
108
|
-
if (opts['priority'] !== undefined)
|
|
109
|
-
params['priority'] = opts['priority'];
|
|
110
|
-
if (opts['type'] !== undefined)
|
|
111
|
-
params['type'] = opts['type'];
|
|
112
|
-
if (opts['parent'] !== undefined)
|
|
113
|
-
params['parent'] = opts['parent'];
|
|
114
|
-
if (opts['phase'] !== undefined)
|
|
115
|
-
params['phase'] = opts['phase'];
|
|
116
|
-
if (opts['label'] !== undefined)
|
|
117
|
-
params['label'] = opts['label'];
|
|
118
|
-
if (opts['children'] !== undefined)
|
|
119
|
-
params['children'] = opts['children'];
|
|
120
|
-
if (limit !== undefined)
|
|
121
|
-
params['limit'] = limit;
|
|
122
|
-
if (offset !== undefined)
|
|
123
|
-
params['offset'] = offset;
|
|
124
|
-
const response = await dispatchRaw('query', 'tasks', 'list', params);
|
|
125
|
-
if (!response.success) {
|
|
126
|
-
handleRawError(response, { command: 'list', operation: 'tasks.list' });
|
|
127
|
-
}
|
|
128
|
-
const rawData = response.data;
|
|
129
|
-
const data = (Array.isArray(rawData)
|
|
130
|
-
? { tasks: rawData, total: rawData.length }
|
|
131
|
-
: rawData) ?? {};
|
|
132
|
-
const tasks = Array.isArray(data?.tasks) ? data.tasks : [];
|
|
133
|
-
if (tasks.length === 0) {
|
|
134
|
-
cliOutput(data, { command: 'list', message: 'No tasks found', operation: 'tasks.list' });
|
|
135
|
-
process.exit(ExitCode.NO_DATA);
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
const filtered = data?.filtered ?? tasks.length;
|
|
139
|
-
const page = response.page ?? createPage({ total: filtered, limit, offset });
|
|
140
|
-
cliOutput(data, { command: 'list', operation: 'tasks.list', page });
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
//# sourceMappingURL=list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/cli/commands/list.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAG7E,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,8EAA8E;AAC9E,gCAAgC;AAChC,EAAE;AACF,4EAA4E;AAC5E,6EAA6E;AAC7E,8EAA8E;AAC9E,iDAAiD;AACjD,8EAA8E;AAC9E,MAAM,WAAW,GAAwB;IACvC;QACE,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,CAAU;QACpE,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KACxB;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,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AAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC,CAAC;YACzF,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;YAC/B,OAAO;QACT,CAAC;QAED,MAAM,QAAQ,GAAI,IAAI,EAAE,QAAmB,IAAI,KAAK,CAAC,MAAM,CAAC;QAC5D,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;QAC7E,SAAS,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI log command - view audit log entries.
|
|
3
|
-
* @task T4538
|
|
4
|
-
* @epic T4454
|
|
5
|
-
*/
|
|
6
|
-
import type { ShimCommand as Command } from '../commander-shim.js';
|
|
7
|
-
/**
|
|
8
|
-
* Register the log command.
|
|
9
|
-
* @task T4538
|
|
10
|
-
*/
|
|
11
|
-
export declare function registerLogCommand(program: Command): void;
|
|
12
|
-
//# sourceMappingURL=log.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/log.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEnE;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAwBzD"}
|
package/dist/cli/commands/log.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI log command - view audit log entries.
|
|
3
|
-
* @task T4538
|
|
4
|
-
* @epic T4454
|
|
5
|
-
*/
|
|
6
|
-
import { dispatchFromCli } from '../../dispatch/adapters/cli.js';
|
|
7
|
-
/**
|
|
8
|
-
* Register the log command.
|
|
9
|
-
* @task T4538
|
|
10
|
-
*/
|
|
11
|
-
export function registerLogCommand(program) {
|
|
12
|
-
program
|
|
13
|
-
.command('log')
|
|
14
|
-
.description('View audit log entries (operations, timestamps, changes)')
|
|
15
|
-
.option('--limit <n>', 'Maximum entries to show', '20')
|
|
16
|
-
.option('--offset <n>', 'Skip N entries', '0')
|
|
17
|
-
.option('--operation <op>', 'Filter by operation type')
|
|
18
|
-
.option('--task <id>', 'Filter by task ID')
|
|
19
|
-
.option('--since <date>', 'Filter entries since date')
|
|
20
|
-
.action(async (opts) => {
|
|
21
|
-
await dispatchFromCli('query', 'admin', 'log', {
|
|
22
|
-
limit: opts['limit'] ? Number(opts['limit']) : 20,
|
|
23
|
-
offset: opts['offset'] ? Number(opts['offset']) : 0,
|
|
24
|
-
operation: opts['operation'],
|
|
25
|
-
taskId: opts['task'],
|
|
26
|
-
since: opts['since'],
|
|
27
|
-
}, { command: 'log', operation: 'admin.log' });
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=log.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../src/cli/commands/log.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAGjE;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAgB;IACjD,OAAO;SACJ,OAAO,CAAC,KAAK,CAAC;SACd,WAAW,CAAC,0DAA0D,CAAC;SACvE,MAAM,CAAC,aAAa,EAAE,yBAAyB,EAAE,IAAI,CAAC;SACtD,MAAM,CAAC,cAAc,EAAE,gBAAgB,EAAE,GAAG,CAAC;SAC7C,MAAM,CAAC,kBAAkB,EAAE,0BAA0B,CAAC;SACtD,MAAM,CAAC,aAAa,EAAE,mBAAmB,CAAC;SAC1C,MAAM,CAAC,gBAAgB,EAAE,2BAA2B,CAAC;SACrD,MAAM,CAAC,KAAK,EAAE,IAA6B,EAAE,EAAE;QAC9C,MAAM,eAAe,CACnB,OAAO,EACP,OAAO,EACP,KAAK,EACL;YACE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;YACjD,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACnD,SAAS,EAAE,IAAI,CAAC,WAAW,CAAuB;YAClD,MAAM,EAAE,IAAI,CAAC,MAAM,CAAuB;YAC1C,KAAK,EAAE,IAAI,CAAC,OAAO,CAAuB;SAC3C,EACD,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,CAC3C,CAAC;IACJ,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI map command - codebase analysis and mapping.
|
|
3
|
-
* @epic cognitive-cleo
|
|
4
|
-
*/
|
|
5
|
-
import type { ShimCommand as Command } from '../commander-shim.js';
|
|
6
|
-
/**
|
|
7
|
-
* Register the map command.
|
|
8
|
-
*/
|
|
9
|
-
export declare function registerMapCommand(program: Command): void;
|
|
10
|
-
//# sourceMappingURL=map.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/map.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEnE;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAgBzD"}
|
package/dist/cli/commands/map.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI map command - codebase analysis and mapping.
|
|
3
|
-
* @epic cognitive-cleo
|
|
4
|
-
*/
|
|
5
|
-
import { dispatchFromCli } from '../../dispatch/adapters/cli.js';
|
|
6
|
-
/**
|
|
7
|
-
* Register the map command.
|
|
8
|
-
*/
|
|
9
|
-
export function registerMapCommand(program) {
|
|
10
|
-
program
|
|
11
|
-
.command('map')
|
|
12
|
-
.description('Analyze codebase structure and return structured mapping')
|
|
13
|
-
.option('--store', 'Store findings to brain.db')
|
|
14
|
-
.option('--focus <area>', 'Focus on one area: stack, architecture, structure, conventions, testing, integrations, concerns')
|
|
15
|
-
.action(async (opts) => {
|
|
16
|
-
const gateway = opts['store'] ? 'mutate' : 'query';
|
|
17
|
-
const params = {};
|
|
18
|
-
if (opts['focus'])
|
|
19
|
-
params.focus = opts['focus'];
|
|
20
|
-
await dispatchFromCli(gateway, 'admin', 'map', params, { command: 'map' });
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=map.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"map.js","sourceRoot":"","sources":["../../../src/cli/commands/map.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAGjE;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAgB;IACjD,OAAO;SACJ,OAAO,CAAC,KAAK,CAAC;SACd,WAAW,CAAC,0DAA0D,CAAC;SACvE,MAAM,CAAC,SAAS,EAAE,4BAA4B,CAAC;SAC/C,MAAM,CACL,gBAAgB,EAChB,iGAAiG,CAClG;SACA,MAAM,CAAC,KAAK,EAAE,IAA6B,EAAE,EAAE;QAC9C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;QACnD,MAAM,MAAM,GAA4B,EAAE,CAAC;QAC3C,IAAI,IAAI,CAAC,OAAO,CAAC;YAAE,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;QAEhD,MAAM,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI memory commands for BRAIN pattern and learning memory.
|
|
3
|
-
*
|
|
4
|
-
* Commands:
|
|
5
|
-
* cleo memory store --type <type> --content <text> --context <text>
|
|
6
|
-
* cleo memory find <query> [--type pattern|learning]
|
|
7
|
-
* cleo memory stats
|
|
8
|
-
*
|
|
9
|
-
* @task T4770
|
|
10
|
-
* @epic T4763
|
|
11
|
-
*/
|
|
12
|
-
import type { ShimCommand as Command } from '../commander-shim.js';
|
|
13
|
-
export declare function registerMemoryBrainCommand(program: Command): void;
|
|
14
|
-
//# sourceMappingURL=memory-brain.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memory-brain.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/memory-brain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAGnE,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAyMjE"}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI memory commands for BRAIN pattern and learning memory.
|
|
3
|
-
*
|
|
4
|
-
* Commands:
|
|
5
|
-
* cleo memory store --type <type> --content <text> --context <text>
|
|
6
|
-
* cleo memory find <query> [--type pattern|learning]
|
|
7
|
-
* cleo memory stats
|
|
8
|
-
*
|
|
9
|
-
* @task T4770
|
|
10
|
-
* @epic T4763
|
|
11
|
-
*/
|
|
12
|
-
import { dispatchFromCli, dispatchRaw, handleRawError } from '../../dispatch/adapters/cli.js';
|
|
13
|
-
import { cliOutput } from '../renderers/index.js';
|
|
14
|
-
export function registerMemoryBrainCommand(program) {
|
|
15
|
-
const memory = program
|
|
16
|
-
.command('memory')
|
|
17
|
-
.description('BRAIN memory operations (patterns, learnings)');
|
|
18
|
-
// -- store --
|
|
19
|
-
memory
|
|
20
|
-
.command('store')
|
|
21
|
-
.description('Store a pattern or learning to BRAIN memory')
|
|
22
|
-
.requiredOption('--type <type>', 'Memory type: pattern or learning')
|
|
23
|
-
.requiredOption('--content <text>', 'Content of the memory entry')
|
|
24
|
-
.option('--context <text>', 'Context in which the pattern/learning was observed')
|
|
25
|
-
.option('--source <text>', 'Source of the learning')
|
|
26
|
-
.option('--pattern-type <type>', 'Pattern type: workflow, blocker, success, failure, optimization')
|
|
27
|
-
.option('--impact <level>', 'Impact level: low, medium, high')
|
|
28
|
-
.option('--confidence <n>', 'Confidence score 0.0-1.0 (for learnings)', parseFloat)
|
|
29
|
-
.option('--actionable', 'Mark learning as actionable')
|
|
30
|
-
.option('--linked-task <id>', 'Task ID to link this memory to')
|
|
31
|
-
.option('--json', 'Output as JSON')
|
|
32
|
-
.action(async (opts) => {
|
|
33
|
-
const memType = opts['type'];
|
|
34
|
-
if (memType === 'pattern') {
|
|
35
|
-
await dispatchFromCli('mutate', 'memory', 'pattern.store', {
|
|
36
|
-
type: opts['patternType'] || 'workflow',
|
|
37
|
-
pattern: opts['content'],
|
|
38
|
-
context: opts['context'] || 'Unspecified context',
|
|
39
|
-
impact: opts['impact'],
|
|
40
|
-
examples: opts['linkedTask'] ? [opts['linkedTask']] : [],
|
|
41
|
-
}, { command: 'memory', operation: 'memory.pattern.store' });
|
|
42
|
-
}
|
|
43
|
-
else if (memType === 'learning') {
|
|
44
|
-
await dispatchFromCli('mutate', 'memory', 'learning.store', {
|
|
45
|
-
insight: opts['content'],
|
|
46
|
-
source: opts['source'] || 'manual',
|
|
47
|
-
confidence: opts['confidence'] ?? 0.5,
|
|
48
|
-
actionable: !!opts['actionable'],
|
|
49
|
-
applicableTypes: opts['linkedTask'] ? [opts['linkedTask']] : [],
|
|
50
|
-
}, { command: 'memory', operation: 'memory.learning.store' });
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
console.error(`Unknown memory type: ${memType}. Use 'pattern' or 'learning'.`);
|
|
54
|
-
process.exit(1);
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
// -- find (cross-table FTS5 search, or type-specific with --type) --
|
|
58
|
-
memory
|
|
59
|
-
.command('find <query>')
|
|
60
|
-
.description('Search BRAIN memory (all tables, or filter by --type pattern|learning)')
|
|
61
|
-
.option('--type <type>', 'Filter by memory type: pattern or learning (default: all)')
|
|
62
|
-
.option('--pattern-type <type>', 'Filter patterns by type: workflow, blocker, success, failure, optimization')
|
|
63
|
-
.option('--min-confidence <n>', 'Minimum confidence for learnings', parseFloat)
|
|
64
|
-
.option('--actionable', 'Only show actionable learnings')
|
|
65
|
-
.option('--limit <n>', 'Maximum results', parseInt)
|
|
66
|
-
.option('--json', 'Output as JSON')
|
|
67
|
-
.action(async (query, opts) => {
|
|
68
|
-
const memType = opts['type'];
|
|
69
|
-
if (memType === 'pattern') {
|
|
70
|
-
await dispatchFromCli('query', 'memory', 'pattern.find', {
|
|
71
|
-
query,
|
|
72
|
-
type: opts['patternType'],
|
|
73
|
-
limit: opts['limit'],
|
|
74
|
-
}, { command: 'memory', operation: 'memory.find' });
|
|
75
|
-
}
|
|
76
|
-
else if (memType === 'learning') {
|
|
77
|
-
await dispatchFromCli('query', 'memory', 'learning.find', {
|
|
78
|
-
query,
|
|
79
|
-
minConfidence: opts['minConfidence'],
|
|
80
|
-
actionableOnly: !!opts['actionable'],
|
|
81
|
-
limit: opts['limit'],
|
|
82
|
-
}, { command: 'memory', operation: 'memory.find' });
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
await dispatchFromCli('query', 'memory', 'find', {
|
|
86
|
-
query,
|
|
87
|
-
limit: opts['limit'],
|
|
88
|
-
}, { command: 'memory', operation: 'memory.find' });
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
// -- stats (delegates to pattern.find + learning.find with empty query) --
|
|
92
|
-
memory
|
|
93
|
-
.command('stats')
|
|
94
|
-
.description('Show BRAIN memory statistics')
|
|
95
|
-
.option('--json', 'Output as JSON')
|
|
96
|
-
.action(async () => {
|
|
97
|
-
// Fetch both pattern and learning summaries via find with empty query
|
|
98
|
-
const pResponse = await dispatchRaw('query', 'memory', 'pattern.find', {
|
|
99
|
-
query: '',
|
|
100
|
-
limit: 0,
|
|
101
|
-
});
|
|
102
|
-
const lResponse = await dispatchRaw('query', 'memory', 'learning.find', {
|
|
103
|
-
query: '',
|
|
104
|
-
limit: 0,
|
|
105
|
-
});
|
|
106
|
-
const result = {};
|
|
107
|
-
if (pResponse.success)
|
|
108
|
-
result['patterns'] = pResponse.data;
|
|
109
|
-
if (lResponse.success)
|
|
110
|
-
result['learnings'] = lResponse.data;
|
|
111
|
-
if (!pResponse.success && !lResponse.success) {
|
|
112
|
-
handleRawError(pResponse, { command: 'memory', operation: 'memory.stats' });
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
cliOutput(result, { command: 'memory', operation: 'memory.stats' });
|
|
116
|
-
});
|
|
117
|
-
// -- observe (save observation to brain.db) --
|
|
118
|
-
memory
|
|
119
|
-
.command('observe <text>')
|
|
120
|
-
.description('Save an observation to brain.db')
|
|
121
|
-
.option('--title <title>', 'Short title for the observation')
|
|
122
|
-
.action(async (text, opts) => {
|
|
123
|
-
await dispatchFromCli('mutate', 'memory', 'observe', {
|
|
124
|
-
text,
|
|
125
|
-
title: opts['title'],
|
|
126
|
-
}, { command: 'memory', operation: 'memory.observe' });
|
|
127
|
-
});
|
|
128
|
-
// -- timeline (chronological context around an anchor observation ID) --
|
|
129
|
-
memory
|
|
130
|
-
.command('timeline <anchor>')
|
|
131
|
-
.description('Show chronological context around an anchor observation ID')
|
|
132
|
-
.option('--before <n>', 'Number of entries before anchor', parseInt)
|
|
133
|
-
.option('--after <n>', 'Number of entries after anchor', parseInt)
|
|
134
|
-
.option('--json', 'Output as JSON')
|
|
135
|
-
.action(async (anchor, opts) => {
|
|
136
|
-
await dispatchFromCli('query', 'memory', 'timeline', {
|
|
137
|
-
anchor,
|
|
138
|
-
depthBefore: opts['before'],
|
|
139
|
-
depthAfter: opts['after'],
|
|
140
|
-
}, { command: 'memory', operation: 'memory.timeline' });
|
|
141
|
-
});
|
|
142
|
-
// -- fetch (retrieve full details for specific observation IDs) --
|
|
143
|
-
// Note: citty doesn't support variadic positional args, so we accept a single
|
|
144
|
-
// positional and split on commas/spaces to support: `cleo memory fetch ID1,ID2`
|
|
145
|
-
memory
|
|
146
|
-
.command('fetch <ids>')
|
|
147
|
-
.description('Fetch full details for specific observation IDs')
|
|
148
|
-
.option('--json', 'Output as JSON')
|
|
149
|
-
.action(async (idsRaw, _opts) => {
|
|
150
|
-
const ids = idsRaw
|
|
151
|
-
.split(/[,\s]+/)
|
|
152
|
-
.map((s) => s.trim())
|
|
153
|
-
.filter(Boolean);
|
|
154
|
-
await dispatchFromCli('query', 'memory', 'fetch', { ids }, { command: 'memory', operation: 'memory.fetch' });
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
//# sourceMappingURL=memory-brain.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memory-brain.js","sourceRoot":"","sources":["../../../src/cli/commands/memory-brain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAE9F,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,UAAU,0BAA0B,CAAC,OAAgB;IACzD,MAAM,MAAM,GAAG,OA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,EAAE,gCAAgC,EAAE,QAAQ,CAAC;SACjE,MAAM,CAAC,QAAQ,EAAE,gBAAgB,CAAC;SAClC,MAAM,CAAC,KAAK,EAAE,MAAc,EAAE,IAA6B,EAAE,EAAE;QAC9D,MAAM,eAAe,CACnB,OAAO,EACP,QAAQ,EACR,UAAU,EACV;YACE,MAAM;YACN,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC;YAC3B,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC;SAC1B,EACD,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,iBAAiB,EAAE,CACpD,CAAC;IACJ,CAAC,CAAC,CAAC;IAEL,mEAAmE;IACnE,8EAA8E;IAC9E,gFAAgF;IAChF,MAAM;SACH,OAAO,CAAC,aAAa,CAAC;SACtB,WAAW,CAAC,iDAAiD,CAAC;SAC9D,MAAM,CAAC,QAAQ,EAAE,gBAAgB,CAAC;SAClC,MAAM,CAAC,KAAK,EAAE,MAAc,EAAE,KAA8B,EAAE,EAAE;QAC/D,MAAM,GAAG,GAAG,MAAM;aACf,KAAK,CAAC,QAAQ,CAAC;aACf,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;aACpB,MAAM,CAAC,OAAO,CAAC,CAAC;QACnB,MAAM,eAAe,CACnB,OAAO,EACP,QAAQ,EACR,OAAO,EACP,EAAE,GAAG,EAAE,EACP,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,CACjD,CAAC;IACJ,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI command: cleo migrate claude-mem
|
|
3
|
-
*
|
|
4
|
-
* Migrates observations from the external claude-mem plugin's SQLite
|
|
5
|
-
* database (~/.claude-mem/claude-mem.db) into CLEO's native brain.db.
|
|
6
|
-
*
|
|
7
|
-
* @epic T5149
|
|
8
|
-
* @task T5143
|
|
9
|
-
*/
|
|
10
|
-
import type { ShimCommand as Command } from '../commander-shim.js';
|
|
11
|
-
/**
|
|
12
|
-
* Register the `migrate claude-mem` command under a migrate parent command.
|
|
13
|
-
*
|
|
14
|
-
* Usage:
|
|
15
|
-
* cleo migrate claude-mem [--dry-run] [--source <path>] [--project <name>]
|
|
16
|
-
*/
|
|
17
|
-
export declare function registerMigrateClaudeMemCommand(program: Command): void;
|
|
18
|
-
//# sourceMappingURL=migrate-claude-mem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-claude-mem.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/migrate-claude-mem.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEnE;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAgDtE"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI command: cleo migrate claude-mem
|
|
3
|
-
*
|
|
4
|
-
* Migrates observations from the external claude-mem plugin's SQLite
|
|
5
|
-
* database (~/.claude-mem/claude-mem.db) into CLEO's native brain.db.
|
|
6
|
-
*
|
|
7
|
-
* @epic T5149
|
|
8
|
-
* @task T5143
|
|
9
|
-
*/
|
|
10
|
-
import { getProjectRoot, migrateClaudeMem } from '@cleocode/core/internal';
|
|
11
|
-
/**
|
|
12
|
-
* Register the `migrate claude-mem` command under a migrate parent command.
|
|
13
|
-
*
|
|
14
|
-
* Usage:
|
|
15
|
-
* cleo migrate claude-mem [--dry-run] [--source <path>] [--project <name>]
|
|
16
|
-
*/
|
|
17
|
-
export function registerMigrateClaudeMemCommand(program) {
|
|
18
|
-
// Find or create the 'migrate' parent command
|
|
19
|
-
let migrateCmd = program.commands.find((c) => c.name() === 'migrate');
|
|
20
|
-
if (!migrateCmd) {
|
|
21
|
-
migrateCmd = program.command('migrate').description('Data migration utilities');
|
|
22
|
-
}
|
|
23
|
-
migrateCmd
|
|
24
|
-
.command('claude-mem')
|
|
25
|
-
.description('Import observations from claude-mem into brain.db')
|
|
26
|
-
.option('--dry-run', 'Show what would be imported without making changes')
|
|
27
|
-
.option('--source <path>', 'Path to claude-mem.db (default: ~/.claude-mem/claude-mem.db)')
|
|
28
|
-
.option('--project <name>', 'Project tag for imported entries')
|
|
29
|
-
.option('--batch-size <n>', 'Rows per transaction batch (default: 100)', parseInt)
|
|
30
|
-
.action(async (opts) => {
|
|
31
|
-
const root = getProjectRoot();
|
|
32
|
-
try {
|
|
33
|
-
const result = await migrateClaudeMem(root, {
|
|
34
|
-
sourcePath: opts['source'],
|
|
35
|
-
project: opts['project'],
|
|
36
|
-
dryRun: !!opts['dryRun'],
|
|
37
|
-
batchSize: opts['batchSize'] || undefined,
|
|
38
|
-
});
|
|
39
|
-
if (result.dryRun) {
|
|
40
|
-
console.log('[dry run] No changes made.');
|
|
41
|
-
}
|
|
42
|
-
console.log(`Imported ${result.observationsImported} observations, ` +
|
|
43
|
-
`${result.learningsImported} learnings, ` +
|
|
44
|
-
`${result.decisionsImported} decisions ` +
|
|
45
|
-
`(${result.observationsSkipped} skipped)`);
|
|
46
|
-
if (result.errors.length > 0) {
|
|
47
|
-
console.error(`\n${result.errors.length} error(s):`);
|
|
48
|
-
for (const err of result.errors) {
|
|
49
|
-
console.error(` - ${err}`);
|
|
50
|
-
}
|
|
51
|
-
process.exit(1);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
catch (err) {
|
|
55
|
-
console.error(`Error: ${err.message}`);
|
|
56
|
-
process.exit(1);
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=migrate-claude-mem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-claude-mem.js","sourceRoot":"","sources":["../../../src/cli/commands/migrate-claude-mem.ts"],"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