@cleocode/cleo 2026.3.67 → 2026.3.69
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/LICENSE +21 -0
- package/README.md +0 -0
- package/bin/postinstall.js +0 -0
- package/completions/bash-completion.sh +0 -0
- package/completions/zsh-completion.zsh +0 -0
- package/dist/cli/commander-shim.d.ts +0 -0
- package/dist/cli/commander-shim.d.ts.map +0 -0
- package/dist/cli/commander-shim.js +0 -0
- package/dist/cli/commander-shim.js.map +0 -0
- package/dist/cli/commands/add.d.ts +0 -0
- package/dist/cli/commands/add.d.ts.map +0 -0
- package/dist/cli/commands/add.js +0 -0
- package/dist/cli/commands/add.js.map +0 -0
- package/dist/cli/commands/adr.d.ts +0 -0
- package/dist/cli/commands/adr.d.ts.map +0 -0
- package/dist/cli/commands/adr.js +0 -0
- package/dist/cli/commands/adr.js.map +0 -0
- package/dist/cli/commands/agents.d.ts +0 -0
- package/dist/cli/commands/agents.d.ts.map +0 -0
- package/dist/cli/commands/agents.js +0 -0
- package/dist/cli/commands/agents.js.map +0 -0
- package/dist/cli/commands/analyze.d.ts +0 -0
- package/dist/cli/commands/analyze.d.ts.map +0 -0
- package/dist/cli/commands/analyze.js +0 -0
- package/dist/cli/commands/analyze.js.map +0 -0
- package/dist/cli/commands/archive-stats.d.ts +0 -0
- package/dist/cli/commands/archive-stats.d.ts.map +0 -0
- package/dist/cli/commands/archive-stats.js +0 -0
- package/dist/cli/commands/archive-stats.js.map +0 -0
- package/dist/cli/commands/archive.d.ts +0 -0
- package/dist/cli/commands/archive.d.ts.map +0 -0
- package/dist/cli/commands/archive.js +0 -0
- package/dist/cli/commands/archive.js.map +0 -0
- package/dist/cli/commands/backfill.d.ts +0 -0
- package/dist/cli/commands/backfill.d.ts.map +0 -0
- package/dist/cli/commands/backfill.js +0 -0
- package/dist/cli/commands/backfill.js.map +0 -0
- package/dist/cli/commands/backup.d.ts +0 -0
- package/dist/cli/commands/backup.d.ts.map +0 -0
- package/dist/cli/commands/backup.js +0 -0
- package/dist/cli/commands/backup.js.map +0 -0
- package/dist/cli/commands/blockers.d.ts +0 -0
- package/dist/cli/commands/blockers.d.ts.map +0 -0
- package/dist/cli/commands/blockers.js +0 -0
- package/dist/cli/commands/blockers.js.map +0 -0
- package/dist/cli/commands/briefing.d.ts +0 -0
- package/dist/cli/commands/briefing.d.ts.map +0 -0
- package/dist/cli/commands/briefing.js +0 -0
- package/dist/cli/commands/briefing.js.map +0 -0
- package/dist/cli/commands/bug.d.ts +0 -0
- package/dist/cli/commands/bug.d.ts.map +0 -0
- package/dist/cli/commands/bug.js +0 -0
- package/dist/cli/commands/bug.js.map +0 -0
- package/dist/cli/commands/checkpoint.d.ts +0 -0
- package/dist/cli/commands/checkpoint.d.ts.map +0 -0
- package/dist/cli/commands/checkpoint.js +0 -0
- package/dist/cli/commands/checkpoint.js.map +0 -0
- package/dist/cli/commands/commands.d.ts +0 -0
- package/dist/cli/commands/commands.d.ts.map +0 -0
- package/dist/cli/commands/commands.js +0 -0
- package/dist/cli/commands/commands.js.map +0 -0
- package/dist/cli/commands/complete.d.ts +0 -0
- package/dist/cli/commands/complete.d.ts.map +0 -0
- package/dist/cli/commands/complete.js +0 -0
- package/dist/cli/commands/complete.js.map +0 -0
- package/dist/cli/commands/compliance.d.ts +0 -0
- package/dist/cli/commands/compliance.d.ts.map +0 -0
- package/dist/cli/commands/compliance.js +0 -0
- package/dist/cli/commands/compliance.js.map +0 -0
- package/dist/cli/commands/config.d.ts +0 -0
- package/dist/cli/commands/config.d.ts.map +0 -0
- package/dist/cli/commands/config.js +0 -0
- package/dist/cli/commands/config.js.map +0 -0
- package/dist/cli/commands/consensus.d.ts +0 -0
- package/dist/cli/commands/consensus.d.ts.map +0 -0
- package/dist/cli/commands/consensus.js +0 -0
- package/dist/cli/commands/consensus.js.map +0 -0
- package/dist/cli/commands/context.d.ts +0 -0
- package/dist/cli/commands/context.d.ts.map +0 -0
- package/dist/cli/commands/context.js +0 -0
- package/dist/cli/commands/context.js.map +0 -0
- package/dist/cli/commands/contribution.d.ts +0 -0
- package/dist/cli/commands/contribution.d.ts.map +0 -0
- package/dist/cli/commands/contribution.js +0 -0
- package/dist/cli/commands/contribution.js.map +0 -0
- package/dist/cli/commands/current.d.ts +0 -0
- package/dist/cli/commands/current.d.ts.map +0 -0
- package/dist/cli/commands/current.js +0 -0
- package/dist/cli/commands/current.js.map +0 -0
- package/dist/cli/commands/dash.d.ts +0 -0
- package/dist/cli/commands/dash.d.ts.map +0 -0
- package/dist/cli/commands/dash.js +0 -0
- package/dist/cli/commands/dash.js.map +0 -0
- package/dist/cli/commands/decomposition.d.ts +0 -0
- package/dist/cli/commands/decomposition.d.ts.map +0 -0
- package/dist/cli/commands/decomposition.js +0 -0
- package/dist/cli/commands/decomposition.js.map +0 -0
- package/dist/cli/commands/delete.d.ts +0 -0
- package/dist/cli/commands/delete.d.ts.map +0 -0
- package/dist/cli/commands/delete.js +0 -0
- package/dist/cli/commands/delete.js.map +0 -0
- package/dist/cli/commands/deps.d.ts +0 -0
- package/dist/cli/commands/deps.d.ts.map +0 -0
- package/dist/cli/commands/deps.js +0 -0
- package/dist/cli/commands/deps.js.map +0 -0
- package/dist/cli/commands/detect-drift.d.ts +0 -0
- package/dist/cli/commands/detect-drift.d.ts.map +1 -1
- package/dist/cli/commands/detect-drift.js +50 -8
- package/dist/cli/commands/detect-drift.js.map +1 -1
- package/dist/cli/commands/detect.d.ts +0 -0
- package/dist/cli/commands/detect.d.ts.map +0 -0
- package/dist/cli/commands/detect.js +0 -0
- package/dist/cli/commands/detect.js.map +0 -0
- package/dist/cli/commands/docs.d.ts +0 -0
- package/dist/cli/commands/docs.d.ts.map +0 -0
- package/dist/cli/commands/docs.js +0 -0
- package/dist/cli/commands/docs.js.map +0 -0
- package/dist/cli/commands/doctor.d.ts +2 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.js +17 -7
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/dynamic.d.ts +0 -0
- package/dist/cli/commands/dynamic.d.ts.map +0 -0
- package/dist/cli/commands/dynamic.js +0 -0
- package/dist/cli/commands/dynamic.js.map +0 -0
- package/dist/cli/commands/env.d.ts +0 -0
- package/dist/cli/commands/env.d.ts.map +0 -0
- package/dist/cli/commands/env.js +0 -0
- package/dist/cli/commands/env.js.map +0 -0
- package/dist/cli/commands/exists.d.ts +0 -0
- package/dist/cli/commands/exists.d.ts.map +0 -0
- package/dist/cli/commands/exists.js +0 -0
- package/dist/cli/commands/exists.js.map +0 -0
- package/dist/cli/commands/export-tasks.d.ts +0 -0
- package/dist/cli/commands/export-tasks.d.ts.map +0 -0
- package/dist/cli/commands/export-tasks.js +0 -0
- package/dist/cli/commands/export-tasks.js.map +0 -0
- package/dist/cli/commands/export.d.ts +0 -0
- package/dist/cli/commands/export.d.ts.map +0 -0
- package/dist/cli/commands/export.js +0 -0
- package/dist/cli/commands/export.js.map +0 -0
- package/dist/cli/commands/find.d.ts +0 -0
- package/dist/cli/commands/find.d.ts.map +0 -0
- package/dist/cli/commands/find.js +0 -0
- package/dist/cli/commands/find.js.map +0 -0
- package/dist/cli/commands/generate-changelog.d.ts +0 -0
- package/dist/cli/commands/generate-changelog.d.ts.map +0 -0
- package/dist/cli/commands/generate-changelog.js +0 -0
- package/dist/cli/commands/generate-changelog.js.map +0 -0
- package/dist/cli/commands/grade.d.ts +0 -0
- package/dist/cli/commands/grade.d.ts.map +0 -0
- package/dist/cli/commands/grade.js +0 -0
- package/dist/cli/commands/grade.js.map +0 -0
- package/dist/cli/commands/history.d.ts +0 -0
- package/dist/cli/commands/history.d.ts.map +0 -0
- package/dist/cli/commands/history.js +0 -0
- package/dist/cli/commands/history.js.map +0 -0
- package/dist/cli/commands/implementation.d.ts +0 -0
- package/dist/cli/commands/implementation.d.ts.map +0 -0
- package/dist/cli/commands/implementation.js +0 -0
- package/dist/cli/commands/implementation.js.map +0 -0
- package/dist/cli/commands/import-tasks.d.ts +0 -0
- package/dist/cli/commands/import-tasks.d.ts.map +0 -0
- package/dist/cli/commands/import-tasks.js +0 -0
- package/dist/cli/commands/import-tasks.js.map +0 -0
- package/dist/cli/commands/import.d.ts +0 -0
- package/dist/cli/commands/import.d.ts.map +0 -0
- package/dist/cli/commands/import.js +0 -0
- package/dist/cli/commands/import.js.map +0 -0
- package/dist/cli/commands/init.d.ts +0 -0
- package/dist/cli/commands/init.d.ts.map +0 -0
- package/dist/cli/commands/init.js +0 -0
- package/dist/cli/commands/init.js.map +0 -0
- package/dist/cli/commands/inject.d.ts +0 -0
- package/dist/cli/commands/inject.d.ts.map +0 -0
- package/dist/cli/commands/inject.js +0 -0
- package/dist/cli/commands/inject.js.map +0 -0
- package/dist/cli/commands/install-global.d.ts +0 -0
- package/dist/cli/commands/install-global.d.ts.map +0 -0
- package/dist/cli/commands/install-global.js +0 -0
- package/dist/cli/commands/install-global.js.map +0 -0
- package/dist/cli/commands/issue.d.ts +0 -0
- package/dist/cli/commands/issue.d.ts.map +0 -0
- package/dist/cli/commands/issue.js +0 -0
- package/dist/cli/commands/issue.js.map +0 -0
- package/dist/cli/commands/labels.d.ts +0 -0
- package/dist/cli/commands/labels.d.ts.map +0 -0
- package/dist/cli/commands/labels.js +0 -0
- package/dist/cli/commands/labels.js.map +0 -0
- package/dist/cli/commands/lifecycle.d.ts +0 -0
- package/dist/cli/commands/lifecycle.d.ts.map +0 -0
- package/dist/cli/commands/lifecycle.js +0 -0
- package/dist/cli/commands/lifecycle.js.map +0 -0
- package/dist/cli/commands/list.d.ts +0 -0
- package/dist/cli/commands/list.d.ts.map +0 -0
- package/dist/cli/commands/list.js +0 -0
- package/dist/cli/commands/list.js.map +0 -0
- package/dist/cli/commands/log.d.ts +0 -0
- package/dist/cli/commands/log.d.ts.map +0 -0
- package/dist/cli/commands/log.js +0 -0
- package/dist/cli/commands/log.js.map +0 -0
- package/dist/cli/commands/map.d.ts +0 -0
- package/dist/cli/commands/map.d.ts.map +0 -0
- package/dist/cli/commands/map.js +0 -0
- package/dist/cli/commands/map.js.map +0 -0
- package/dist/cli/commands/mcp-install.d.ts +0 -0
- package/dist/cli/commands/mcp-install.d.ts.map +0 -0
- package/dist/cli/commands/mcp-install.js +0 -0
- package/dist/cli/commands/mcp-install.js.map +0 -0
- package/dist/cli/commands/memory-brain.d.ts +0 -0
- package/dist/cli/commands/memory-brain.d.ts.map +0 -0
- package/dist/cli/commands/memory-brain.js +0 -0
- package/dist/cli/commands/memory-brain.js.map +0 -0
- package/dist/cli/commands/migrate-claude-mem.d.ts +0 -0
- package/dist/cli/commands/migrate-claude-mem.d.ts.map +0 -0
- package/dist/cli/commands/migrate-claude-mem.js +0 -0
- package/dist/cli/commands/migrate-claude-mem.js.map +0 -0
- package/dist/cli/commands/next.d.ts +0 -0
- package/dist/cli/commands/next.d.ts.map +0 -0
- package/dist/cli/commands/next.js +0 -0
- package/dist/cli/commands/next.js.map +0 -0
- package/dist/cli/commands/nexus.d.ts +0 -0
- package/dist/cli/commands/nexus.d.ts.map +0 -0
- package/dist/cli/commands/nexus.js +0 -0
- package/dist/cli/commands/nexus.js.map +0 -0
- package/dist/cli/commands/observe.d.ts +0 -0
- package/dist/cli/commands/observe.d.ts.map +0 -0
- package/dist/cli/commands/observe.js +0 -0
- package/dist/cli/commands/observe.js.map +0 -0
- package/dist/cli/commands/ops.d.ts +0 -0
- package/dist/cli/commands/ops.d.ts.map +0 -0
- package/dist/cli/commands/ops.js +0 -0
- package/dist/cli/commands/ops.js.map +0 -0
- package/dist/cli/commands/orchestrate.d.ts +0 -0
- package/dist/cli/commands/orchestrate.d.ts.map +0 -0
- package/dist/cli/commands/orchestrate.js +0 -0
- package/dist/cli/commands/orchestrate.js.map +0 -0
- package/dist/cli/commands/otel.d.ts +0 -0
- package/dist/cli/commands/otel.d.ts.map +0 -0
- package/dist/cli/commands/otel.js +0 -0
- package/dist/cli/commands/otel.js.map +0 -0
- package/dist/cli/commands/phase.d.ts +0 -0
- package/dist/cli/commands/phase.d.ts.map +0 -0
- package/dist/cli/commands/phase.js +0 -0
- package/dist/cli/commands/phase.js.map +0 -0
- package/dist/cli/commands/phases.d.ts +0 -0
- package/dist/cli/commands/phases.d.ts.map +0 -0
- package/dist/cli/commands/phases.js +0 -0
- package/dist/cli/commands/phases.js.map +0 -0
- package/dist/cli/commands/plan.d.ts +0 -0
- package/dist/cli/commands/plan.d.ts.map +0 -0
- package/dist/cli/commands/plan.js +0 -0
- package/dist/cli/commands/plan.js.map +0 -0
- package/dist/cli/commands/promote.d.ts +0 -0
- package/dist/cli/commands/promote.d.ts.map +0 -0
- package/dist/cli/commands/promote.js +0 -0
- package/dist/cli/commands/promote.js.map +0 -0
- package/dist/cli/commands/reason.d.ts +0 -0
- package/dist/cli/commands/reason.d.ts.map +0 -0
- package/dist/cli/commands/reason.js +0 -0
- package/dist/cli/commands/reason.js.map +0 -0
- package/dist/cli/commands/refresh-memory.d.ts +0 -0
- package/dist/cli/commands/refresh-memory.d.ts.map +0 -0
- package/dist/cli/commands/refresh-memory.js +0 -0
- package/dist/cli/commands/refresh-memory.js.map +0 -0
- package/dist/cli/commands/relates.d.ts +0 -0
- package/dist/cli/commands/relates.d.ts.map +0 -0
- package/dist/cli/commands/relates.js +0 -0
- package/dist/cli/commands/relates.js.map +0 -0
- package/dist/cli/commands/release.d.ts +0 -0
- package/dist/cli/commands/release.d.ts.map +0 -0
- package/dist/cli/commands/release.js +0 -0
- package/dist/cli/commands/release.js.map +0 -0
- package/dist/cli/commands/remote.d.ts +0 -0
- package/dist/cli/commands/remote.d.ts.map +0 -0
- package/dist/cli/commands/remote.js +0 -0
- package/dist/cli/commands/remote.js.map +0 -0
- package/dist/cli/commands/reorder.d.ts +0 -0
- package/dist/cli/commands/reorder.d.ts.map +0 -0
- package/dist/cli/commands/reorder.js +0 -0
- package/dist/cli/commands/reorder.js.map +0 -0
- package/dist/cli/commands/reparent.d.ts +0 -0
- package/dist/cli/commands/reparent.d.ts.map +0 -0
- package/dist/cli/commands/reparent.js +0 -0
- package/dist/cli/commands/reparent.js.map +0 -0
- package/dist/cli/commands/research.d.ts +0 -0
- package/dist/cli/commands/research.d.ts.map +0 -0
- package/dist/cli/commands/research.js +0 -0
- package/dist/cli/commands/research.js.map +0 -0
- package/dist/cli/commands/restore.d.ts +0 -0
- package/dist/cli/commands/restore.d.ts.map +0 -0
- package/dist/cli/commands/restore.js +0 -0
- package/dist/cli/commands/restore.js.map +0 -0
- package/dist/cli/commands/roadmap.d.ts +0 -0
- package/dist/cli/commands/roadmap.d.ts.map +0 -0
- package/dist/cli/commands/roadmap.js +0 -0
- package/dist/cli/commands/roadmap.js.map +0 -0
- package/dist/cli/commands/safestop.d.ts +0 -0
- package/dist/cli/commands/safestop.d.ts.map +0 -0
- package/dist/cli/commands/safestop.js +0 -0
- package/dist/cli/commands/safestop.js.map +0 -0
- package/dist/cli/commands/self-update.d.ts +0 -0
- package/dist/cli/commands/self-update.d.ts.map +0 -0
- package/dist/cli/commands/self-update.js +0 -0
- package/dist/cli/commands/self-update.js.map +0 -0
- package/dist/cli/commands/sequence.d.ts +0 -0
- package/dist/cli/commands/sequence.d.ts.map +0 -0
- package/dist/cli/commands/sequence.js +0 -0
- package/dist/cli/commands/sequence.js.map +0 -0
- package/dist/cli/commands/session.d.ts +0 -0
- package/dist/cli/commands/session.d.ts.map +0 -0
- package/dist/cli/commands/session.js +0 -0
- package/dist/cli/commands/session.js.map +0 -0
- package/dist/cli/commands/show.d.ts +0 -0
- package/dist/cli/commands/show.d.ts.map +0 -0
- package/dist/cli/commands/show.js +0 -0
- package/dist/cli/commands/show.js.map +0 -0
- package/dist/cli/commands/skills.d.ts +0 -0
- package/dist/cli/commands/skills.d.ts.map +0 -0
- package/dist/cli/commands/skills.js +0 -0
- package/dist/cli/commands/skills.js.map +0 -0
- package/dist/cli/commands/snapshot.d.ts +0 -0
- package/dist/cli/commands/snapshot.d.ts.map +0 -0
- package/dist/cli/commands/snapshot.js +0 -0
- package/dist/cli/commands/snapshot.js.map +0 -0
- package/dist/cli/commands/specification.d.ts +0 -0
- package/dist/cli/commands/specification.d.ts.map +0 -0
- package/dist/cli/commands/specification.js +0 -0
- package/dist/cli/commands/specification.js.map +0 -0
- package/dist/cli/commands/start.d.ts +0 -0
- package/dist/cli/commands/start.d.ts.map +0 -0
- package/dist/cli/commands/start.js +0 -0
- package/dist/cli/commands/start.js.map +0 -0
- package/dist/cli/commands/stats.d.ts +0 -0
- package/dist/cli/commands/stats.d.ts.map +0 -0
- package/dist/cli/commands/stats.js +0 -0
- package/dist/cli/commands/stats.js.map +0 -0
- package/dist/cli/commands/sticky.d.ts +0 -0
- package/dist/cli/commands/sticky.d.ts.map +0 -0
- package/dist/cli/commands/sticky.js +0 -0
- package/dist/cli/commands/sticky.js.map +0 -0
- package/dist/cli/commands/stop.d.ts +0 -0
- package/dist/cli/commands/stop.d.ts.map +0 -0
- package/dist/cli/commands/stop.js +0 -0
- package/dist/cli/commands/stop.js.map +0 -0
- package/dist/cli/commands/testing.d.ts +0 -0
- package/dist/cli/commands/testing.d.ts.map +0 -0
- package/dist/cli/commands/testing.js +0 -0
- package/dist/cli/commands/testing.js.map +0 -0
- package/dist/cli/commands/token.d.ts +0 -0
- package/dist/cli/commands/token.d.ts.map +0 -0
- package/dist/cli/commands/token.js +0 -0
- package/dist/cli/commands/token.js.map +0 -0
- package/dist/cli/commands/update.d.ts +0 -0
- package/dist/cli/commands/update.d.ts.map +0 -0
- package/dist/cli/commands/update.js +0 -0
- package/dist/cli/commands/update.js.map +0 -0
- package/dist/cli/commands/upgrade.d.ts +3 -1
- package/dist/cli/commands/upgrade.d.ts.map +1 -1
- package/dist/cli/commands/upgrade.js +32 -12
- package/dist/cli/commands/upgrade.js.map +1 -1
- package/dist/cli/commands/validate.d.ts +0 -0
- package/dist/cli/commands/validate.d.ts.map +0 -0
- package/dist/cli/commands/validate.js +0 -0
- package/dist/cli/commands/validate.js.map +0 -0
- package/dist/cli/commands/verify.d.ts +0 -0
- package/dist/cli/commands/verify.d.ts.map +0 -0
- package/dist/cli/commands/verify.js +0 -0
- package/dist/cli/commands/verify.js.map +0 -0
- package/dist/cli/commands/web.d.ts +0 -0
- package/dist/cli/commands/web.d.ts.map +0 -0
- package/dist/cli/commands/web.js +0 -0
- package/dist/cli/commands/web.js.map +0 -0
- package/dist/cli/field-context.d.ts +0 -0
- package/dist/cli/field-context.d.ts.map +0 -0
- package/dist/cli/field-context.js +0 -0
- package/dist/cli/field-context.js.map +0 -0
- package/dist/cli/format-context.d.ts +0 -0
- package/dist/cli/format-context.d.ts.map +0 -0
- package/dist/cli/format-context.js +0 -0
- package/dist/cli/format-context.js.map +0 -0
- package/dist/cli/index.d.ts +0 -0
- package/dist/cli/index.d.ts.map +0 -0
- package/dist/cli/index.js +81 -19
- package/dist/cli/index.js.map +4 -4
- package/dist/cli/logger-bootstrap.d.ts +0 -0
- package/dist/cli/logger-bootstrap.d.ts.map +0 -0
- package/dist/cli/logger-bootstrap.js +0 -0
- package/dist/cli/logger-bootstrap.js.map +0 -0
- package/dist/cli/middleware/output-format.d.ts +0 -0
- package/dist/cli/middleware/output-format.d.ts.map +0 -0
- package/dist/cli/middleware/output-format.js +0 -0
- package/dist/cli/middleware/output-format.js.map +0 -0
- package/dist/cli/progress.d.ts +0 -0
- package/dist/cli/progress.d.ts.map +0 -0
- package/dist/cli/progress.js +0 -0
- package/dist/cli/progress.js.map +0 -0
- package/dist/cli/renderers/colors.d.ts +0 -0
- package/dist/cli/renderers/colors.d.ts.map +0 -0
- package/dist/cli/renderers/colors.js +0 -0
- package/dist/cli/renderers/colors.js.map +0 -0
- package/dist/cli/renderers/error.d.ts +0 -0
- package/dist/cli/renderers/error.d.ts.map +0 -0
- package/dist/cli/renderers/error.js +0 -0
- package/dist/cli/renderers/error.js.map +0 -0
- package/dist/cli/renderers/index.d.ts +0 -0
- package/dist/cli/renderers/index.d.ts.map +0 -0
- package/dist/cli/renderers/index.js +0 -0
- package/dist/cli/renderers/index.js.map +0 -0
- package/dist/cli/renderers/normalizer.d.ts +0 -0
- package/dist/cli/renderers/normalizer.d.ts.map +0 -0
- package/dist/cli/renderers/normalizer.js +0 -0
- package/dist/cli/renderers/normalizer.js.map +0 -0
- package/dist/cli/renderers/system.d.ts +0 -0
- package/dist/cli/renderers/system.d.ts.map +0 -0
- package/dist/cli/renderers/system.js +0 -0
- package/dist/cli/renderers/system.js.map +0 -0
- package/dist/cli/renderers/tasks.d.ts +0 -0
- package/dist/cli/renderers/tasks.d.ts.map +0 -0
- package/dist/cli/renderers/tasks.js +0 -0
- package/dist/cli/renderers/tasks.js.map +0 -0
- package/dist/dispatch/adapters/cli.d.ts +0 -0
- package/dist/dispatch/adapters/cli.d.ts.map +0 -0
- package/dist/dispatch/adapters/cli.js +0 -0
- package/dist/dispatch/adapters/cli.js.map +0 -0
- package/dist/dispatch/adapters/mcp.d.ts +0 -0
- package/dist/dispatch/adapters/mcp.d.ts.map +0 -0
- package/dist/dispatch/adapters/mcp.js +0 -0
- package/dist/dispatch/adapters/mcp.js.map +0 -0
- package/dist/dispatch/context/session-context.d.ts +0 -0
- package/dist/dispatch/context/session-context.d.ts.map +0 -0
- package/dist/dispatch/context/session-context.js +0 -0
- package/dist/dispatch/context/session-context.js.map +0 -0
- package/dist/dispatch/dispatcher.d.ts +0 -0
- package/dist/dispatch/dispatcher.d.ts.map +0 -0
- package/dist/dispatch/dispatcher.js +0 -0
- package/dist/dispatch/dispatcher.js.map +0 -0
- package/dist/dispatch/domains/_base.d.ts +1 -1
- package/dist/dispatch/domains/_base.d.ts.map +0 -0
- package/dist/dispatch/domains/_base.js +1 -1
- package/dist/dispatch/domains/_base.js.map +0 -0
- package/dist/dispatch/domains/_meta.d.ts +0 -0
- package/dist/dispatch/domains/_meta.d.ts.map +0 -0
- package/dist/dispatch/domains/_meta.js +0 -0
- package/dist/dispatch/domains/_meta.js.map +0 -0
- package/dist/dispatch/domains/_routing.d.ts +1 -1
- package/dist/dispatch/domains/_routing.d.ts.map +0 -0
- package/dist/dispatch/domains/_routing.js +1 -1
- package/dist/dispatch/domains/_routing.js.map +0 -0
- package/dist/dispatch/domains/admin.d.ts +0 -0
- package/dist/dispatch/domains/admin.d.ts.map +1 -1
- package/dist/dispatch/domains/admin.js +6 -1
- package/dist/dispatch/domains/admin.js.map +1 -1
- package/dist/dispatch/domains/check.d.ts +0 -0
- package/dist/dispatch/domains/check.d.ts.map +0 -0
- package/dist/dispatch/domains/check.js +0 -0
- package/dist/dispatch/domains/check.js.map +0 -0
- package/dist/dispatch/domains/index.d.ts +0 -0
- package/dist/dispatch/domains/index.d.ts.map +0 -0
- package/dist/dispatch/domains/index.js +0 -0
- package/dist/dispatch/domains/index.js.map +0 -0
- package/dist/dispatch/domains/memory.d.ts +0 -0
- package/dist/dispatch/domains/memory.d.ts.map +0 -0
- package/dist/dispatch/domains/memory.js +0 -0
- package/dist/dispatch/domains/memory.js.map +0 -0
- package/dist/dispatch/domains/nexus.d.ts +0 -0
- package/dist/dispatch/domains/nexus.d.ts.map +0 -0
- package/dist/dispatch/domains/nexus.js +0 -0
- package/dist/dispatch/domains/nexus.js.map +0 -0
- package/dist/dispatch/domains/orchestrate.d.ts +0 -0
- package/dist/dispatch/domains/orchestrate.d.ts.map +0 -0
- package/dist/dispatch/domains/orchestrate.js +0 -0
- package/dist/dispatch/domains/orchestrate.js.map +0 -0
- package/dist/dispatch/domains/pipeline.d.ts +0 -0
- package/dist/dispatch/domains/pipeline.d.ts.map +1 -1
- package/dist/dispatch/domains/pipeline.js +5 -3
- package/dist/dispatch/domains/pipeline.js.map +1 -1
- package/dist/dispatch/domains/session.d.ts +0 -0
- package/dist/dispatch/domains/session.d.ts.map +0 -0
- package/dist/dispatch/domains/session.js +0 -0
- package/dist/dispatch/domains/session.js.map +0 -0
- package/dist/dispatch/domains/sticky.d.ts +0 -0
- package/dist/dispatch/domains/sticky.d.ts.map +0 -0
- package/dist/dispatch/domains/sticky.js +0 -0
- package/dist/dispatch/domains/sticky.js.map +0 -0
- package/dist/dispatch/domains/tasks.d.ts +0 -0
- package/dist/dispatch/domains/tasks.d.ts.map +0 -0
- package/dist/dispatch/domains/tasks.js +0 -0
- package/dist/dispatch/domains/tasks.js.map +0 -0
- package/dist/dispatch/domains/tools.d.ts +0 -0
- package/dist/dispatch/domains/tools.d.ts.map +0 -0
- package/dist/dispatch/domains/tools.js +0 -0
- package/dist/dispatch/domains/tools.js.map +0 -0
- package/dist/dispatch/engines/_error.d.ts +0 -0
- package/dist/dispatch/engines/_error.d.ts.map +0 -0
- package/dist/dispatch/engines/_error.js +0 -0
- package/dist/dispatch/engines/_error.js.map +0 -0
- package/dist/dispatch/engines/codebase-map-engine.d.ts +0 -0
- package/dist/dispatch/engines/codebase-map-engine.d.ts.map +0 -0
- package/dist/dispatch/engines/codebase-map-engine.js +0 -0
- package/dist/dispatch/engines/codebase-map-engine.js.map +0 -0
- package/dist/dispatch/engines/config-engine.d.ts +0 -0
- package/dist/dispatch/engines/config-engine.d.ts.map +0 -0
- package/dist/dispatch/engines/config-engine.js +0 -0
- package/dist/dispatch/engines/config-engine.js.map +0 -0
- package/dist/dispatch/engines/hooks-engine.d.ts +0 -0
- package/dist/dispatch/engines/hooks-engine.d.ts.map +0 -0
- package/dist/dispatch/engines/hooks-engine.js +0 -0
- package/dist/dispatch/engines/hooks-engine.js.map +0 -0
- package/dist/dispatch/engines/init-engine.d.ts +0 -0
- package/dist/dispatch/engines/init-engine.d.ts.map +0 -0
- package/dist/dispatch/engines/init-engine.js +0 -0
- package/dist/dispatch/engines/init-engine.js.map +0 -0
- package/dist/dispatch/engines/lifecycle-engine.d.ts +0 -0
- package/dist/dispatch/engines/lifecycle-engine.d.ts.map +0 -0
- package/dist/dispatch/engines/lifecycle-engine.js +0 -0
- package/dist/dispatch/engines/lifecycle-engine.js.map +0 -0
- package/dist/dispatch/engines/memory-engine.d.ts +0 -0
- package/dist/dispatch/engines/memory-engine.d.ts.map +0 -0
- package/dist/dispatch/engines/memory-engine.js +0 -0
- package/dist/dispatch/engines/memory-engine.js.map +0 -0
- package/dist/dispatch/engines/nexus-engine.d.ts +0 -0
- package/dist/dispatch/engines/nexus-engine.d.ts.map +0 -0
- package/dist/dispatch/engines/nexus-engine.js +0 -0
- package/dist/dispatch/engines/nexus-engine.js.map +0 -0
- package/dist/dispatch/engines/orchestrate-engine.d.ts +0 -0
- package/dist/dispatch/engines/orchestrate-engine.d.ts.map +0 -0
- package/dist/dispatch/engines/orchestrate-engine.js +0 -0
- package/dist/dispatch/engines/orchestrate-engine.js.map +0 -0
- package/dist/dispatch/engines/pipeline-engine.d.ts +0 -0
- package/dist/dispatch/engines/pipeline-engine.d.ts.map +0 -0
- package/dist/dispatch/engines/pipeline-engine.js +0 -0
- package/dist/dispatch/engines/pipeline-engine.js.map +0 -0
- package/dist/dispatch/engines/release-engine.d.ts +0 -0
- package/dist/dispatch/engines/release-engine.d.ts.map +0 -0
- package/dist/dispatch/engines/release-engine.js +0 -0
- package/dist/dispatch/engines/release-engine.js.map +0 -0
- package/dist/dispatch/engines/session-engine.d.ts +0 -0
- package/dist/dispatch/engines/session-engine.d.ts.map +0 -0
- package/dist/dispatch/engines/session-engine.js +0 -0
- package/dist/dispatch/engines/session-engine.js.map +0 -0
- package/dist/dispatch/engines/sticky-engine.d.ts +0 -0
- package/dist/dispatch/engines/sticky-engine.d.ts.map +0 -0
- package/dist/dispatch/engines/sticky-engine.js +0 -0
- package/dist/dispatch/engines/sticky-engine.js.map +0 -0
- package/dist/dispatch/engines/system-engine.d.ts +27 -0
- package/dist/dispatch/engines/system-engine.d.ts.map +1 -1
- package/dist/dispatch/engines/system-engine.js +188 -0
- package/dist/dispatch/engines/system-engine.js.map +1 -1
- package/dist/dispatch/engines/task-engine.d.ts +0 -0
- package/dist/dispatch/engines/task-engine.d.ts.map +0 -0
- package/dist/dispatch/engines/task-engine.js +0 -0
- package/dist/dispatch/engines/task-engine.js.map +0 -0
- package/dist/dispatch/engines/template-parser.d.ts +0 -0
- package/dist/dispatch/engines/template-parser.d.ts.map +0 -0
- package/dist/dispatch/engines/template-parser.js +0 -0
- package/dist/dispatch/engines/template-parser.js.map +0 -0
- package/dist/dispatch/engines/tools-engine.d.ts +0 -0
- package/dist/dispatch/engines/tools-engine.d.ts.map +0 -0
- package/dist/dispatch/engines/tools-engine.js +0 -0
- package/dist/dispatch/engines/tools-engine.js.map +0 -0
- package/dist/dispatch/engines/validate-engine.d.ts +0 -0
- package/dist/dispatch/engines/validate-engine.d.ts.map +0 -0
- package/dist/dispatch/engines/validate-engine.js +0 -0
- package/dist/dispatch/engines/validate-engine.js.map +0 -0
- package/dist/dispatch/index.d.ts +0 -0
- package/dist/dispatch/index.d.ts.map +0 -0
- package/dist/dispatch/index.js +0 -0
- package/dist/dispatch/index.js.map +0 -0
- package/dist/dispatch/lib/capability-matrix.d.ts +0 -0
- package/dist/dispatch/lib/capability-matrix.d.ts.map +0 -0
- package/dist/dispatch/lib/capability-matrix.js +0 -0
- package/dist/dispatch/lib/capability-matrix.js.map +0 -0
- package/dist/dispatch/lib/config.d.ts +0 -0
- package/dist/dispatch/lib/config.d.ts.map +0 -0
- package/dist/dispatch/lib/config.js +0 -0
- package/dist/dispatch/lib/config.js.map +0 -0
- package/dist/dispatch/lib/engine.d.ts +1 -1
- package/dist/dispatch/lib/engine.d.ts.map +1 -1
- package/dist/dispatch/lib/engine.js +1 -1
- package/dist/dispatch/lib/engine.js.map +1 -1
- package/dist/dispatch/lib/meta.d.ts +0 -0
- package/dist/dispatch/lib/meta.d.ts.map +0 -0
- package/dist/dispatch/lib/meta.js +0 -0
- package/dist/dispatch/lib/meta.js.map +0 -0
- package/dist/dispatch/lib/param-utils.d.ts +0 -0
- package/dist/dispatch/lib/param-utils.d.ts.map +0 -0
- package/dist/dispatch/lib/param-utils.js +0 -0
- package/dist/dispatch/lib/param-utils.js.map +0 -0
- package/dist/dispatch/lib/projections.d.ts +0 -0
- package/dist/dispatch/lib/projections.d.ts.map +0 -0
- package/dist/dispatch/lib/projections.js +0 -0
- package/dist/dispatch/lib/projections.js.map +0 -0
- package/dist/dispatch/lib/schema-utils.d.ts +0 -0
- package/dist/dispatch/lib/schema-utils.d.ts.map +0 -0
- package/dist/dispatch/lib/schema-utils.js +0 -0
- package/dist/dispatch/lib/schema-utils.js.map +0 -0
- package/dist/dispatch/lib/security.d.ts +0 -0
- package/dist/dispatch/lib/security.d.ts.map +0 -0
- package/dist/dispatch/lib/security.js +0 -0
- package/dist/dispatch/lib/security.js.map +0 -0
- package/dist/dispatch/middleware/audit.d.ts +0 -0
- package/dist/dispatch/middleware/audit.d.ts.map +0 -0
- package/dist/dispatch/middleware/audit.js +0 -0
- package/dist/dispatch/middleware/audit.js.map +0 -0
- package/dist/dispatch/middleware/field-filter.d.ts +0 -0
- package/dist/dispatch/middleware/field-filter.d.ts.map +0 -0
- package/dist/dispatch/middleware/field-filter.js +0 -0
- package/dist/dispatch/middleware/field-filter.js.map +0 -0
- package/dist/dispatch/middleware/pipeline.d.ts +0 -0
- package/dist/dispatch/middleware/pipeline.d.ts.map +0 -0
- package/dist/dispatch/middleware/pipeline.js +0 -0
- package/dist/dispatch/middleware/pipeline.js.map +0 -0
- package/dist/dispatch/middleware/projection.d.ts +0 -0
- package/dist/dispatch/middleware/projection.d.ts.map +0 -0
- package/dist/dispatch/middleware/projection.js +0 -0
- package/dist/dispatch/middleware/projection.js.map +0 -0
- package/dist/dispatch/middleware/protocol-enforcement.d.ts +0 -0
- package/dist/dispatch/middleware/protocol-enforcement.d.ts.map +0 -0
- package/dist/dispatch/middleware/protocol-enforcement.js +0 -0
- package/dist/dispatch/middleware/protocol-enforcement.js.map +0 -0
- package/dist/dispatch/middleware/rate-limiter.d.ts +0 -0
- package/dist/dispatch/middleware/rate-limiter.d.ts.map +0 -0
- package/dist/dispatch/middleware/rate-limiter.js +0 -0
- package/dist/dispatch/middleware/rate-limiter.js.map +0 -0
- package/dist/dispatch/middleware/sanitizer.d.ts +0 -0
- package/dist/dispatch/middleware/sanitizer.d.ts.map +0 -0
- package/dist/dispatch/middleware/sanitizer.js +0 -0
- package/dist/dispatch/middleware/sanitizer.js.map +0 -0
- package/dist/dispatch/middleware/session-resolver.d.ts +0 -0
- package/dist/dispatch/middleware/session-resolver.d.ts.map +0 -0
- package/dist/dispatch/middleware/session-resolver.js +0 -0
- package/dist/dispatch/middleware/session-resolver.js.map +0 -0
- package/dist/dispatch/middleware/verification-gates.d.ts +0 -0
- package/dist/dispatch/middleware/verification-gates.d.ts.map +0 -0
- package/dist/dispatch/middleware/verification-gates.js +0 -0
- package/dist/dispatch/middleware/verification-gates.js.map +0 -0
- package/dist/dispatch/registry.d.ts +0 -0
- package/dist/dispatch/registry.d.ts.map +1 -1
- package/dist/dispatch/registry.js +10 -0
- package/dist/dispatch/registry.js.map +1 -1
- package/dist/dispatch/types.d.ts +0 -0
- package/dist/dispatch/types.d.ts.map +0 -0
- package/dist/dispatch/types.js +0 -0
- package/dist/dispatch/types.js.map +0 -0
- package/dist/mcp/gateways/mutate.d.ts +0 -0
- package/dist/mcp/gateways/mutate.d.ts.map +0 -0
- package/dist/mcp/gateways/mutate.js +0 -0
- package/dist/mcp/gateways/mutate.js.map +0 -0
- package/dist/mcp/gateways/query.d.ts +0 -0
- package/dist/mcp/gateways/query.d.ts.map +0 -0
- package/dist/mcp/gateways/query.js +0 -0
- package/dist/mcp/gateways/query.js.map +0 -0
- package/dist/mcp/index.d.ts +0 -0
- package/dist/mcp/index.d.ts.map +0 -0
- package/dist/mcp/index.js +24 -18
- package/dist/mcp/index.js.map +2 -2
- package/dist/mcp/lib/background-jobs.d.ts +0 -0
- package/dist/mcp/lib/background-jobs.d.ts.map +0 -0
- package/dist/mcp/lib/background-jobs.js +0 -0
- package/dist/mcp/lib/background-jobs.js.map +0 -0
- package/dist/mcp/lib/budget.d.ts +0 -0
- package/dist/mcp/lib/budget.d.ts.map +0 -0
- package/dist/mcp/lib/budget.js +0 -0
- package/dist/mcp/lib/budget.js.map +0 -0
- package/dist/mcp/lib/cache.d.ts +0 -0
- package/dist/mcp/lib/cache.d.ts.map +0 -0
- package/dist/mcp/lib/cache.js +0 -0
- package/dist/mcp/lib/cache.js.map +0 -0
- package/dist/mcp/lib/config.d.ts +0 -0
- package/dist/mcp/lib/config.d.ts.map +0 -0
- package/dist/mcp/lib/config.js +0 -0
- package/dist/mcp/lib/config.js.map +0 -0
- package/dist/mcp/lib/defaults.d.ts +0 -0
- package/dist/mcp/lib/defaults.d.ts.map +0 -0
- package/dist/mcp/lib/defaults.js +0 -0
- package/dist/mcp/lib/defaults.js.map +0 -0
- package/dist/mcp/lib/gate-validators.d.ts +0 -0
- package/dist/mcp/lib/gate-validators.d.ts.map +0 -0
- package/dist/mcp/lib/gate-validators.js +0 -0
- package/dist/mcp/lib/gate-validators.js.map +0 -0
- package/dist/mcp/lib/gateway-meta.d.ts +0 -0
- package/dist/mcp/lib/gateway-meta.d.ts.map +0 -0
- package/dist/mcp/lib/gateway-meta.js +0 -0
- package/dist/mcp/lib/gateway-meta.js.map +0 -0
- package/dist/mcp/lib/job-manager-accessor.d.ts +0 -0
- package/dist/mcp/lib/job-manager-accessor.d.ts.map +0 -0
- package/dist/mcp/lib/job-manager-accessor.js +0 -0
- package/dist/mcp/lib/job-manager-accessor.js.map +0 -0
- package/dist/mcp/lib/protocol-enforcement.d.ts +0 -0
- package/dist/mcp/lib/protocol-enforcement.d.ts.map +0 -0
- package/dist/mcp/lib/protocol-enforcement.js +0 -0
- package/dist/mcp/lib/protocol-enforcement.js.map +0 -0
- package/dist/mcp/lib/protocol-rules.d.ts +0 -0
- package/dist/mcp/lib/protocol-rules.d.ts.map +0 -0
- package/dist/mcp/lib/protocol-rules.js +0 -0
- package/dist/mcp/lib/protocol-rules.js.map +0 -0
- package/dist/mcp/lib/rate-limiter.d.ts +0 -0
- package/dist/mcp/lib/rate-limiter.d.ts.map +0 -0
- package/dist/mcp/lib/rate-limiter.js +0 -0
- package/dist/mcp/lib/rate-limiter.js.map +0 -0
- package/dist/mcp/lib/router.d.ts +0 -0
- package/dist/mcp/lib/router.d.ts.map +0 -0
- package/dist/mcp/lib/router.js +0 -0
- package/dist/mcp/lib/router.js.map +0 -0
- package/dist/mcp/lib/security.d.ts +0 -0
- package/dist/mcp/lib/security.d.ts.map +0 -0
- package/dist/mcp/lib/security.js +0 -0
- package/dist/mcp/lib/security.js.map +0 -0
- package/dist/mcp/lib/verification-gates.d.ts +0 -0
- package/dist/mcp/lib/verification-gates.d.ts.map +0 -0
- package/dist/mcp/lib/verification-gates.js +0 -0
- package/dist/mcp/lib/verification-gates.js.map +0 -0
- package/dist/mcp/resources/budget.d.ts +0 -0
- package/dist/mcp/resources/budget.d.ts.map +0 -0
- package/dist/mcp/resources/budget.js +0 -0
- package/dist/mcp/resources/budget.js.map +0 -0
- package/dist/mcp/resources/index.d.ts +0 -0
- package/dist/mcp/resources/index.d.ts.map +0 -0
- package/dist/mcp/resources/index.js +0 -0
- package/dist/mcp/resources/index.js.map +0 -0
- package/migrations/drizzle-brain/20260318205549_initial/migration.sql +0 -0
- package/migrations/drizzle-brain/20260318205549_initial/snapshot.json +0 -0
- package/migrations/drizzle-nexus/20260318205558_initial/migration.sql +0 -0
- package/migrations/drizzle-nexus/20260318205558_initial/snapshot.json +0 -0
- package/migrations/drizzle-tasks/20260318205539_initial/migration.sql +0 -0
- package/migrations/drizzle-tasks/20260318205539_initial/snapshot.json +0 -0
- package/package.json +10 -10
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
* CLI upgrade command - unified project maintenance.
|
|
3
3
|
*
|
|
4
4
|
* Delegates to core upgrade logic. Handles:
|
|
5
|
-
* - Storage migration (JSON
|
|
5
|
+
* - Storage migration (JSON -> SQLite, automatic)
|
|
6
6
|
* - Schema version upgrades
|
|
7
7
|
* - Structural repairs (checksums, missing fields)
|
|
8
8
|
* - Global ~/.cleo data checks
|
|
9
|
+
* - Deep diagnostics via --diagnose
|
|
9
10
|
*
|
|
10
11
|
* @task T4699
|
|
11
12
|
* @task T5243
|
|
13
|
+
* @task T131
|
|
12
14
|
* @epic T4454
|
|
13
15
|
*/
|
|
14
|
-
import { CleoError, formatError, runUpgrade } from '@cleocode/core/internal';
|
|
16
|
+
import { CleoError, diagnoseUpgrade, formatError, runUpgrade } from '@cleocode/core/internal';
|
|
15
17
|
import { createUpgradeProgress } from '../progress.js';
|
|
16
18
|
import { cliOutput } from '../renderers/index.js';
|
|
17
19
|
export function registerUpgradeCommand(program) {
|
|
@@ -20,22 +22,39 @@ export function registerUpgradeCommand(program) {
|
|
|
20
22
|
.description('Unified project maintenance (storage migration, schema repair, structural fixes, doc refresh)')
|
|
21
23
|
.option('--status', 'Show what needs updating without making changes')
|
|
22
24
|
.option('--dry-run', 'Preview changes without applying')
|
|
25
|
+
.option('--diagnose', 'Deep inspection of schema, columns, and migration journals')
|
|
23
26
|
.option('--include-global', 'Also check global ~/.cleo data')
|
|
24
|
-
.option('--no-auto-migrate', 'Skip automatic JSON
|
|
27
|
+
.option('--no-auto-migrate', 'Skip automatic JSON->SQLite migration')
|
|
25
28
|
.option('--detect', 'Force re-detection of project type (ignores staleness)')
|
|
26
29
|
.option('--map-codebase', 'Run full codebase analysis and store findings to brain.db')
|
|
27
30
|
.option('--name <name>', 'Update project name in project-info and nexus registry')
|
|
28
|
-
.action(async (
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
+
.action(async (opts, command) => {
|
|
32
|
+
// Merge citty-parsed opts with global flags (--json, --human, etc.)
|
|
33
|
+
const globalOpts = command.optsWithGlobals ? command.optsWithGlobals() : command.opts();
|
|
34
|
+
const mergedOpts = { ...globalOpts, ...opts };
|
|
35
|
+
const isHuman = mergedOpts['human'] === true || (!!process.stdout.isTTY && mergedOpts['json'] !== true);
|
|
31
36
|
const progress = createUpgradeProgress(isHuman);
|
|
32
37
|
try {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
// --diagnose: deep read-only inspection
|
|
39
|
+
if (mergedOpts['diagnose']) {
|
|
40
|
+
progress.start();
|
|
41
|
+
progress.step(0, 'Running deep schema/migration diagnostics');
|
|
42
|
+
const result = await diagnoseUpgrade();
|
|
43
|
+
progress.step(4, 'Diagnostics complete');
|
|
44
|
+
cliOutput(result, { command: 'upgrade', operation: 'upgrade.diagnose' });
|
|
45
|
+
if (!result.success) {
|
|
46
|
+
progress.error(`${result.summary.errors} error(s) found`);
|
|
47
|
+
process.exit(1);
|
|
48
|
+
}
|
|
49
|
+
progress.complete(`Diagnostics complete: ${result.summary.ok} ok, ${result.summary.warnings} warning(s), ${result.summary.errors} error(s)`);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const isDryRun = !!mergedOpts['dryRun'] || !!mergedOpts['status'];
|
|
53
|
+
const includeGlobal = !!mergedOpts['includeGlobal'];
|
|
54
|
+
const autoMigrate = mergedOpts['autoMigrate'] !== false;
|
|
55
|
+
const forceDetect = !!mergedOpts['detect'];
|
|
56
|
+
const mapCodebase = !!mergedOpts['mapCodebase'];
|
|
57
|
+
const projectName = mergedOpts['name'];
|
|
39
58
|
progress.start();
|
|
40
59
|
progress.step(0, 'Analyzing current state');
|
|
41
60
|
if (includeGlobal) {
|
|
@@ -61,6 +80,7 @@ export function registerUpgradeCommand(program) {
|
|
|
61
80
|
actions: result.actions,
|
|
62
81
|
applied: result.applied,
|
|
63
82
|
errors: result.errors.length > 0 ? result.errors : undefined,
|
|
83
|
+
summary: result.summary,
|
|
64
84
|
storageMigration: result.storageMigration,
|
|
65
85
|
}, { command: 'upgrade' });
|
|
66
86
|
if (!result.success) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade.js","sourceRoot":"","sources":["../../../src/cli/commands/upgrade.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"upgrade.js","sourceRoot":"","sources":["../../../src/cli/commands/upgrade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,S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,QAAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;QACxE,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,GAAG,YAAY,SAAS,EAAE,CAAC;gBAC7B,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBAC5B,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;gBAChC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACzB,CAAC;YACD,QAAQ,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;YAClD,MAAM,GAAG,CAAC;QACZ,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/cli/commands/web.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/cli/index.d.ts
CHANGED
|
File without changes
|
package/dist/cli/index.d.ts.map
CHANGED
|
File without changes
|
package/dist/cli/index.js
CHANGED
|
@@ -41646,9 +41646,11 @@ async function addTask(options, cwd, accessor) {
|
|
|
41646
41646
|
"Title and description must be different (anti-hallucination rule)"
|
|
41647
41647
|
);
|
|
41648
41648
|
}
|
|
41649
|
-
|
|
41649
|
+
if (!options.dryRun) {
|
|
41650
|
+
await requireActiveSession("tasks.add", cwd);
|
|
41651
|
+
}
|
|
41650
41652
|
const parentId = options.parentId ?? null;
|
|
41651
|
-
if (!parentId && options.type !== "epic") {
|
|
41653
|
+
if (!options.dryRun && !parentId && options.type !== "epic") {
|
|
41652
41654
|
const lifecycleMode = await getLifecycleMode(cwd);
|
|
41653
41655
|
if (lifecycleMode === "strict") {
|
|
41654
41656
|
throw new CleoError(
|
|
@@ -41668,21 +41670,23 @@ async function addTask(options, cwd, accessor) {
|
|
|
41668
41670
|
validateStatus(status);
|
|
41669
41671
|
validateSize(size);
|
|
41670
41672
|
if (options.labels?.length) validateLabels(options.labels);
|
|
41671
|
-
|
|
41672
|
-
|
|
41673
|
-
|
|
41674
|
-
|
|
41675
|
-
|
|
41676
|
-
if (!acValidation.valid) {
|
|
41677
|
-
throw new CleoError(acValidation.exitCode ?? 6 /* VALIDATION_ERROR */, acValidation.error, {
|
|
41678
|
-
fix: acValidation.fix
|
|
41673
|
+
if (!options.dryRun) {
|
|
41674
|
+
const enforcement = await createAcceptanceEnforcement(cwd);
|
|
41675
|
+
const acValidation = enforcement.validateCreation({
|
|
41676
|
+
acceptance: options.acceptance,
|
|
41677
|
+
priority
|
|
41679
41678
|
});
|
|
41680
|
-
|
|
41681
|
-
|
|
41682
|
-
|
|
41683
|
-
|
|
41684
|
-
|
|
41685
|
-
)
|
|
41679
|
+
if (!acValidation.valid) {
|
|
41680
|
+
throw new CleoError(acValidation.exitCode ?? 6 /* VALIDATION_ERROR */, acValidation.error, {
|
|
41681
|
+
fix: acValidation.fix
|
|
41682
|
+
});
|
|
41683
|
+
}
|
|
41684
|
+
if (options.type === "epic") {
|
|
41685
|
+
await validateEpicCreation(
|
|
41686
|
+
{ acceptance: options.acceptance, description: options.description },
|
|
41687
|
+
cwd
|
|
41688
|
+
);
|
|
41689
|
+
}
|
|
41686
41690
|
}
|
|
41687
41691
|
if (options.depends?.length) {
|
|
41688
41692
|
for (const depId of options.depends) {
|
|
@@ -86112,13 +86116,15 @@ async function systemSmoke() {
|
|
|
86112
86116
|
const migrationStatus = await getMigrationStatus2(
|
|
86113
86117
|
(await Promise.resolve().then(() => (init_internal(), internal_exports))).getProjectRoot()
|
|
86114
86118
|
);
|
|
86115
|
-
const hasPending = migrationStatus.
|
|
86119
|
+
const hasPending = migrationStatus.migrations.some((m) => !m.applied);
|
|
86116
86120
|
dbChecks.push({
|
|
86117
86121
|
domain: "db",
|
|
86118
86122
|
operation: "migrations",
|
|
86119
86123
|
status: hasPending ? "fail" : "pass",
|
|
86120
86124
|
timeMs: Date.now() - start,
|
|
86121
|
-
...hasPending ? {
|
|
86125
|
+
...hasPending ? {
|
|
86126
|
+
error: `Unapplied migrations detected (${migrationStatus.from} \u2192 ${migrationStatus.to}). Run: cleo upgrade`
|
|
86127
|
+
} : {}
|
|
86122
86128
|
});
|
|
86123
86129
|
} catch (err) {
|
|
86124
86130
|
dbChecks.push({
|
|
@@ -94328,6 +94334,45 @@ function registerAddCommand(program) {
|
|
|
94328
94334
|
});
|
|
94329
94335
|
}
|
|
94330
94336
|
|
|
94337
|
+
// packages/cleo/src/cli/commands/admin.ts
|
|
94338
|
+
init_cli();
|
|
94339
|
+
function registerAdminCommand(program) {
|
|
94340
|
+
const admin = program.command("admin").description("System administration and diagnostics");
|
|
94341
|
+
admin.command("version").description("Show CLEO version").action(async () => {
|
|
94342
|
+
await dispatchFromCli("query", "admin", "version", {}, { command: "admin" });
|
|
94343
|
+
});
|
|
94344
|
+
admin.command("health").description("Run system health check").option("--detailed", "Show detailed results").action(async (opts) => {
|
|
94345
|
+
await dispatchFromCli(
|
|
94346
|
+
"query",
|
|
94347
|
+
"admin",
|
|
94348
|
+
"health",
|
|
94349
|
+
{ detailed: opts["detailed"] },
|
|
94350
|
+
{ command: "admin" }
|
|
94351
|
+
);
|
|
94352
|
+
});
|
|
94353
|
+
admin.command("stats").description("Show project statistics").option("--period <days>", "Time period in days").action(async (opts) => {
|
|
94354
|
+
await dispatchFromCli(
|
|
94355
|
+
"query",
|
|
94356
|
+
"admin",
|
|
94357
|
+
"stats",
|
|
94358
|
+
{ period: opts["period"] ? Number(opts["period"]) : void 0 },
|
|
94359
|
+
{ command: "admin" }
|
|
94360
|
+
);
|
|
94361
|
+
});
|
|
94362
|
+
admin.command("runtime").description("Show runtime diagnostics").option("--detailed", "Show detailed runtime info").action(async (opts) => {
|
|
94363
|
+
await dispatchFromCli(
|
|
94364
|
+
"query",
|
|
94365
|
+
"admin",
|
|
94366
|
+
"runtime",
|
|
94367
|
+
{ detailed: opts["detailed"] },
|
|
94368
|
+
{ command: "admin" }
|
|
94369
|
+
);
|
|
94370
|
+
});
|
|
94371
|
+
admin.command("smoke").description("Run operational smoke tests across all domains").action(async () => {
|
|
94372
|
+
await dispatchFromCli("query", "admin", "smoke", {}, { command: "admin" });
|
|
94373
|
+
});
|
|
94374
|
+
}
|
|
94375
|
+
|
|
94331
94376
|
// packages/cleo/src/cli/commands/adr.ts
|
|
94332
94377
|
init_cli();
|
|
94333
94378
|
function registerAdrCommand(program) {
|
|
@@ -94702,6 +94747,21 @@ function registerBugCommand(program) {
|
|
|
94702
94747
|
});
|
|
94703
94748
|
}
|
|
94704
94749
|
|
|
94750
|
+
// packages/cleo/src/cli/commands/check.ts
|
|
94751
|
+
init_cli();
|
|
94752
|
+
function registerCheckCommand(program) {
|
|
94753
|
+
const check2 = program.command("check").description("Validation and compliance checks");
|
|
94754
|
+
check2.command("schema <type>").description("Validate schema (type: todo, config, archive, log, sessions)").action(async (type) => {
|
|
94755
|
+
await dispatchFromCli("query", "check", "schema", { type }, { command: "check" });
|
|
94756
|
+
});
|
|
94757
|
+
check2.command("coherence").description("Run coherence check across task data").action(async () => {
|
|
94758
|
+
await dispatchFromCli("query", "check", "coherence", {}, { command: "check" });
|
|
94759
|
+
});
|
|
94760
|
+
check2.command("task <taskId>").description("Validate a specific task").action(async (taskId) => {
|
|
94761
|
+
await dispatchFromCli("query", "check", "task", { taskId }, { command: "check" });
|
|
94762
|
+
});
|
|
94763
|
+
}
|
|
94764
|
+
|
|
94705
94765
|
// packages/cleo/src/cli/commands/checkpoint.ts
|
|
94706
94766
|
init_src();
|
|
94707
94767
|
init_internal();
|
|
@@ -97373,7 +97433,7 @@ function registerOtelCommand(program) {
|
|
|
97373
97433
|
// packages/cleo/src/cli/commands/phase.ts
|
|
97374
97434
|
init_cli();
|
|
97375
97435
|
function registerPhaseCommand(program) {
|
|
97376
|
-
const phase = program.command("phase").description("Project-level phase lifecycle management");
|
|
97436
|
+
const phase = program.command("phase").alias("pipeline").description("Project-level phase lifecycle management");
|
|
97377
97437
|
phase.command("show [slug]").description("Show phase details (current phase if no slug given)").action(async (slug) => {
|
|
97378
97438
|
const params = slug ? { phaseId: slug } : {};
|
|
97379
97439
|
await dispatchFromCli("query", "pipeline", "phase.show", params, { command: "phase" });
|
|
@@ -99834,6 +99894,7 @@ registerAnalyzeCommand(rootShim);
|
|
|
99834
99894
|
registerMapCommand(rootShim);
|
|
99835
99895
|
registerBackupCommand(rootShim);
|
|
99836
99896
|
registerBlockersCommand(rootShim);
|
|
99897
|
+
registerCheckCommand(rootShim);
|
|
99837
99898
|
registerComplianceCommand(rootShim);
|
|
99838
99899
|
registerConfigCommand(rootShim);
|
|
99839
99900
|
registerConsensusCommand(rootShim);
|
|
@@ -99874,6 +99935,7 @@ registerOpsCommand(rootShim);
|
|
|
99874
99935
|
registerSnapshotCommand(rootShim);
|
|
99875
99936
|
registerRemoteCommand(rootShim);
|
|
99876
99937
|
registerGradeCommand(rootShim);
|
|
99938
|
+
registerAdminCommand(rootShim);
|
|
99877
99939
|
registerAdrCommand(rootShim);
|
|
99878
99940
|
registerBackfillCommand(rootShim);
|
|
99879
99941
|
registerMemoryBrainCommand(rootShim);
|