@cleocode/cleo 2026.4.59 → 2026.4.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +1917 -314
- package/dist/cli/index.js.map +4 -4
- package/package.json +8 -8
- 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/adapter.d.ts +0 -21
- package/dist/cli/commands/adapter.d.ts.map +0 -1
- package/dist/cli/commands/adapter.js +0 -73
- package/dist/cli/commands/adapter.js.map +0 -1
- package/dist/cli/commands/add-batch.d.ts +0 -16
- package/dist/cli/commands/add-batch.d.ts.map +0 -1
- package/dist/cli/commands/add-batch.js +0 -133
- package/dist/cli/commands/add-batch.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 -238
- package/dist/cli/commands/add.js.map +0 -1
- package/dist/cli/commands/admin.d.ts +0 -15
- package/dist/cli/commands/admin.d.ts.map +0 -1
- package/dist/cli/commands/admin.js +0 -143
- 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 -41
- package/dist/cli/commands/agent.d.ts.map +0 -1
- package/dist/cli/commands/agent.js +0 -2270
- 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 -144
- package/dist/cli/commands/backfill.js.map +0 -1
- package/dist/cli/commands/backup-inspect.d.ts +0 -24
- package/dist/cli/commands/backup-inspect.d.ts.map +0 -1
- package/dist/cli/commands/backup-inspect.js +0 -417
- package/dist/cli/commands/backup-inspect.js.map +0 -1
- package/dist/cli/commands/backup.d.ts +0 -13
- package/dist/cli/commands/backup.d.ts.map +0 -1
- package/dist/cli/commands/backup.js +0 -479
- 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 -358
- 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/cancel.d.ts +0 -17
- package/dist/cli/commands/cancel.d.ts.map +0 -1
- package/dist/cli/commands/cancel.js +0 -28
- package/dist/cli/commands/cancel.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 -264
- package/dist/cli/commands/cant.js.map +0 -1
- package/dist/cli/commands/chain.d.ts +0 -16
- package/dist/cli/commands/chain.d.ts.map +0 -1
- package/dist/cli/commands/chain.js +0 -52
- package/dist/cli/commands/chain.js.map +0 -1
- package/dist/cli/commands/check.d.ts +0 -25
- package/dist/cli/commands/check.d.ts.map +0 -1
- package/dist/cli/commands/check.js +0 -193
- 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/claim.d.ts +0 -27
- package/dist/cli/commands/claim.d.ts.map +0 -1
- package/dist/cli/commands/claim.js +0 -45
- package/dist/cli/commands/claim.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/complexity.d.ts +0 -17
- package/dist/cli/commands/complexity.d.ts.map +0 -1
- package/dist/cli/commands/complexity.js +0 -25
- package/dist/cli/commands/complexity.js.map +0 -1
- package/dist/cli/commands/compliance.d.ts +0 -9
- package/dist/cli/commands/compliance.d.ts.map +0 -1
- package/dist/cli/commands/compliance.js +0 -110
- 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 -15
- package/dist/cli/commands/context.d.ts.map +0 -1
- package/dist/cli/commands/context.js +0 -76
- 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 -20
- 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 -428
- package/dist/cli/commands/detect-drift.js.map +0 -1
- package/dist/cli/commands/detect.d.ts +0 -13
- package/dist/cli/commands/detect.d.ts.map +0 -1
- package/dist/cli/commands/detect.js +0 -20
- package/dist/cli/commands/detect.js.map +0 -1
- package/dist/cli/commands/diagnostics.d.ts +0 -16
- package/dist/cli/commands/diagnostics.d.ts.map +0 -1
- package/dist/cli/commands/diagnostics.js +0 -58
- package/dist/cli/commands/diagnostics.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 -24
- package/dist/cli/commands/exists.d.ts.map +0 -1
- package/dist/cli/commands/exists.js +0 -53
- 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 -152
- 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 -33
- 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/intelligence.d.ts +0 -22
- package/dist/cli/commands/intelligence.d.ts.map +0 -1
- package/dist/cli/commands/intelligence.js +0 -72
- package/dist/cli/commands/intelligence.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 -17
- package/dist/cli/commands/labels.d.ts.map +0 -1
- package/dist/cli/commands/labels.js +0 -48
- 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 -128
- 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 -15
- package/dist/cli/commands/memory-brain.d.ts.map +0 -1
- package/dist/cli/commands/memory-brain.js +0 -436
- package/dist/cli/commands/memory-brain.js.map +0 -1
- package/dist/cli/commands/migrate-claude-mem.d.ts +0 -23
- package/dist/cli/commands/migrate-claude-mem.d.ts.map +0 -1
- package/dist/cli/commands/migrate-claude-mem.js +0 -79
- 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 -20
- package/dist/cli/commands/nexus.d.ts.map +0 -1
- package/dist/cli/commands/nexus.js +0 -2290
- package/dist/cli/commands/nexus.js.map +0 -1
- package/dist/cli/commands/observe.d.ts +0 -13
- package/dist/cli/commands/observe.d.ts.map +0 -1
- package/dist/cli/commands/observe.js +0 -30
- 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 -24
- package/dist/cli/commands/orchestrate.d.ts.map +0 -1
- package/dist/cli/commands/orchestrate.js +0 -254
- 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 -14
- package/dist/cli/commands/phases.d.ts.map +0 -1
- package/dist/cli/commands/phases.js +0 -42
- 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 -11
- package/dist/cli/commands/promote.d.ts.map +0 -1
- package/dist/cli/commands/promote.js +0 -18
- package/dist/cli/commands/promote.js.map +0 -1
- package/dist/cli/commands/provider.d.ts +0 -21
- package/dist/cli/commands/provider.d.ts.map +0 -1
- package/dist/cli/commands/provider.js +0 -88
- package/dist/cli/commands/provider.js.map +0 -1
- package/dist/cli/commands/reason.d.ts +0 -36
- package/dist/cli/commands/reason.d.ts.map +0 -1
- package/dist/cli/commands/reason.js +0 -85
- 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 -82
- 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 -17
- package/dist/cli/commands/reorder.d.ts.map +0 -1
- package/dist/cli/commands/reorder.js +0 -41
- 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 -164
- package/dist/cli/commands/research.js.map +0 -1
- package/dist/cli/commands/restore.d.ts +0 -54
- package/dist/cli/commands/restore.d.ts.map +0 -1
- package/dist/cli/commands/restore.js +0 -470
- package/dist/cli/commands/restore.js.map +0 -1
- package/dist/cli/commands/roadmap.d.ts +0 -14
- package/dist/cli/commands/roadmap.d.ts.map +0 -1
- package/dist/cli/commands/roadmap.js +0 -26
- 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 -363
- package/dist/cli/commands/self-update.js.map +0 -1
- package/dist/cli/commands/sequence.d.ts +0 -11
- package/dist/cli/commands/sequence.d.ts.map +0 -1
- package/dist/cli/commands/sequence.js +0 -40
- 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 -219
- 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 -161
- 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 -218
- 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/sync.d.ts +0 -26
- package/dist/cli/commands/sync.d.ts.map +0 -1
- package/dist/cli/commands/sync.js +0 -82
- package/dist/cli/commands/sync.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 -65
- 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 -24
- 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 -19
- package/dist/cli/commands/web.d.ts.map +0 -1
- package/dist/cli/commands/web.js +0 -371
- 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/help-renderer.d.ts +0 -28
- package/dist/cli/help-renderer.d.ts.map +0 -1
- package/dist/cli/help-renderer.js +0 -301
- package/dist/cli/help-renderer.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 -331
- 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 -791
- 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 -381
- 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 -360
- package/dist/dispatch/domains/conduit.js.map +0 -1
- package/dist/dispatch/domains/diagnostics.d.ts +0 -20
- package/dist/dispatch/domains/diagnostics.d.ts.map +0 -1
- package/dist/dispatch/domains/diagnostics.js +0 -77
- package/dist/dispatch/domains/diagnostics.js.map +0 -1
- package/dist/dispatch/domains/index.d.ts +0 -29
- package/dist/dispatch/domains/index.d.ts.map +0 -1
- package/dist/dispatch/domains/index.js +0 -45
- package/dist/dispatch/domains/index.js.map +0 -1
- package/dist/dispatch/domains/intelligence.d.ts +0 -26
- package/dist/dispatch/domains/intelligence.d.ts.map +0 -1
- package/dist/dispatch/domains/intelligence.js +0 -154
- package/dist/dispatch/domains/intelligence.js.map +0 -1
- package/dist/dispatch/domains/memory.d.ts +0 -22
- package/dist/dispatch/domains/memory.d.ts.map +0 -1
- package/dist/dispatch/domains/memory.js +0 -387
- 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 -26
- package/dist/dispatch/domains/orchestrate.d.ts.map +0 -1
- package/dist/dispatch/domains/orchestrate.js +0 -691
- 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 -267
- 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 -167
- 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 -368
- 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 -298
- 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/diagnostics-engine.d.ts +0 -57
- package/dist/dispatch/engines/diagnostics-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/diagnostics-engine.js +0 -163
- package/dist/dispatch/engines/diagnostics-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 -141
- package/dist/dispatch/engines/orchestrate-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/orchestrate-engine.js +0 -892
- 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 -387
- package/dist/dispatch/engines/session-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/session-engine.js +0 -924
- 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 -543
- package/dist/dispatch/engines/system-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/system-engine.js +0 -1273
- package/dist/dispatch/engines/system-engine.js.map +0 -1
- package/dist/dispatch/engines/task-engine.d.ts +0 -971
- package/dist/dispatch/engines/task-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/task-engine.js +0 -1255
- 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 -663
- 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/telemetry.d.ts +0 -21
- package/dist/dispatch/middleware/telemetry.d.ts.map +0 -1
- package/dist/dispatch/middleware/telemetry.js +0 -50
- package/dist/dispatch/middleware/telemetry.js.map +0 -1
- package/dist/dispatch/middleware/verification-gates.d.ts +0 -22
- package/dist/dispatch/middleware/verification-gates.d.ts.map +0 -1
- package/dist/dispatch/middleware/verification-gates.js +0 -59
- package/dist/dispatch/middleware/verification-gates.js.map +0 -1
- package/dist/dispatch/registry.d.ts +0 -91
- package/dist/dispatch/registry.d.ts.map +0 -1
- package/dist/dispatch/registry.js +0 -3535
- 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 -27
- package/dist/dispatch/types.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/exists.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAGnE;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA8B5D"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI exists command - check if a task ID exists.
|
|
3
|
-
*
|
|
4
|
-
* Intentional dispatch bypass: `tasks.exists` was removed during the T5615
|
|
5
|
-
* rationalization. The canonical replacement is `tasks.find {exact:true}` and
|
|
6
|
-
* checking `results.length > 0`. This command calls `getTask()` from core
|
|
7
|
-
* directly for simplicity and exit-code semantics (0=exists, 4=not found).
|
|
8
|
-
*
|
|
9
|
-
* @task T4454
|
|
10
|
-
*/
|
|
11
|
-
import { ExitCode } from '@cleocode/contracts';
|
|
12
|
-
import { getTask, resolveProjectRoot } from '@cleocode/core/internal';
|
|
13
|
-
import { cliOutput } from '../renderers/index.js';
|
|
14
|
-
/**
|
|
15
|
-
* Register the exists command.
|
|
16
|
-
*
|
|
17
|
-
* @param program - Root CLI program instance.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* registerExistsCommand(rootCommand);
|
|
22
|
-
* // cleo exists T001 → exit 0 if found, exit 4 if not
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export function registerExistsCommand(program) {
|
|
26
|
-
program
|
|
27
|
-
.command('exists <task-id>')
|
|
28
|
-
.description('Check if a task ID exists (exit 0=exists, 4=not found)')
|
|
29
|
-
.option('--verbose', 'Show task title and status when found')
|
|
30
|
-
.action(async (taskId, opts) => {
|
|
31
|
-
const cwd = resolveProjectRoot();
|
|
32
|
-
let task;
|
|
33
|
-
try {
|
|
34
|
-
task = await getTask(taskId, cwd);
|
|
35
|
-
}
|
|
36
|
-
catch (err) {
|
|
37
|
-
console.error(`exists: ${err instanceof Error ? err.message : String(err)}`);
|
|
38
|
-
process.exit(ExitCode.GENERAL_ERROR);
|
|
39
|
-
}
|
|
40
|
-
if (!task) {
|
|
41
|
-
const data = { exists: false, taskId };
|
|
42
|
-
cliOutput(data, { command: 'exists', operation: 'tasks.exists' });
|
|
43
|
-
process.exit(ExitCode.NOT_FOUND);
|
|
44
|
-
}
|
|
45
|
-
const data = { exists: true, taskId };
|
|
46
|
-
if (opts['verbose']) {
|
|
47
|
-
data['title'] = task.title;
|
|
48
|
-
data['status'] = task.status;
|
|
49
|
-
}
|
|
50
|
-
cliOutput(data, { command: 'exists', operation: 'tasks.exists' });
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=exists.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exists.js","sourceRoot":"","sources":["../../../src/cli/commands/exists.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;GAUG;AACH,MAAM,UAAU,qBAAqB,CAAC,OAAgB;IACpD,OAAO;SACJ,OAAO,CAAC,kBAAkB,CAAC;SAC3B,WAAW,CAAC,wDAAwD,CAAC;SACrE,MAAM,CAAC,WAAW,EAAE,uCAAuC,CAAC;SAC5D,MAAM,CAAC,KAAK,EAAE,MAAc,EAAE,IAA6B,EAAE,EAAE;QAC9D,MAAM,GAAG,GAAG,kBAAkB,EAAE,CAAC;QACjC,IAAI,IAAyC,CAAC;QAE9C,IAAI,CAAC;YACH,IAAI,GAAG,MAAM,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACpC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,WAAW,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAC7E,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QACvC,CAAC;QAED,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;YACvC,SAAS,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC;YAClE,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACnC,CAAC;QAED,MAAM,IAAI,GAA4B,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAC/D,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACpB,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YAC3B,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAC/B,CAAC;QAED,SAAS,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI export-tasks command - export tasks to portable package for cross-project transfer.
|
|
3
|
-
* Thin dispatch wrapper routing to admin.export.tasks.
|
|
4
|
-
*
|
|
5
|
-
* @task T4551, T5323, T5328
|
|
6
|
-
* @epic T4545
|
|
7
|
-
*/
|
|
8
|
-
import type { ShimCommand as Command } from '../commander-shim.js';
|
|
9
|
-
export declare function registerExportTasksCommand(program: Command): void;
|
|
10
|
-
//# sourceMappingURL=export-tasks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export-tasks.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/export-tasks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEnE,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA2CjE"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI export-tasks command - export tasks to portable package for cross-project transfer.
|
|
3
|
-
* Thin dispatch wrapper routing to admin.export.tasks.
|
|
4
|
-
*
|
|
5
|
-
* @task T4551, T5323, T5328
|
|
6
|
-
* @epic T4545
|
|
7
|
-
*/
|
|
8
|
-
import { dispatchFromCli, dispatchRaw, handleRawError } from '../../dispatch/adapters/cli.js';
|
|
9
|
-
export function registerExportTasksCommand(program) {
|
|
10
|
-
program
|
|
11
|
-
.command('export-tasks [taskIds...]')
|
|
12
|
-
.description('Export tasks to portable .cleo-export.json package for cross-project transfer')
|
|
13
|
-
.option('-o, --output <file>', 'Output file path (stdout if omitted)')
|
|
14
|
-
.option('--subtree', 'Include all descendants of specified task(s)')
|
|
15
|
-
.option('--filter <filters...>', 'Filter tasks by criteria (key=value, repeatable)')
|
|
16
|
-
.option('--include-deps', 'Auto-include task dependencies')
|
|
17
|
-
.option('--dry-run', 'Preview selection without creating export file')
|
|
18
|
-
.action(async (taskIds, opts) => {
|
|
19
|
-
const hasOutput = !!opts['output'];
|
|
20
|
-
const params = {
|
|
21
|
-
taskIds: taskIds && taskIds.length > 0 ? taskIds : undefined,
|
|
22
|
-
output: opts['output'],
|
|
23
|
-
subtree: opts['subtree'],
|
|
24
|
-
filter: opts['filter'],
|
|
25
|
-
includeDeps: opts['includeDeps'],
|
|
26
|
-
dryRun: opts['dryRun'],
|
|
27
|
-
};
|
|
28
|
-
if (hasOutput || opts['dryRun']) {
|
|
29
|
-
await dispatchFromCli('query', 'admin', 'export', { ...params, scope: 'tasks' }, { command: 'export-tasks' });
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
// No output file — write content directly to stdout for piping
|
|
33
|
-
const response = await dispatchRaw('query', 'admin', 'export', {
|
|
34
|
-
...params,
|
|
35
|
-
scope: 'tasks',
|
|
36
|
-
});
|
|
37
|
-
handleRawError(response, { command: 'export-tasks', operation: 'admin.export' });
|
|
38
|
-
const data = response.data;
|
|
39
|
-
if (data?.content) {
|
|
40
|
-
process.stdout.write(data.content);
|
|
41
|
-
if (!data.content.endsWith('\n'))
|
|
42
|
-
process.stdout.write('\n');
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=export-tasks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export-tasks.js","sourceRoot":"","sources":["../../../src/cli/commands/export-tasks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAG9F,MAAM,UAAU,0BAA0B,CAAC,OAAgB;IACzD,OAAO;SACJ,OAAO,CAAC,2BAA2B,CAAC;SACpC,WAAW,CAAC,+EAA+E,CAAC;SAC5F,MAAM,CAAC,qBAAqB,EAAE,sCAAsC,CAAC;SACrE,MAAM,CAAC,WAAW,EAAE,8CAA8C,CAAC;SACnE,MAAM,CAAC,uBAAuB,EAAE,kDAAkD,CAAC;SACnF,MAAM,CAAC,gBAAgB,EAAE,gCAAgC,CAAC;SAC1D,MAAM,CAAC,WAAW,EAAE,gDAAgD,CAAC;SACrE,MAAM,CAAC,KAAK,EAAE,OAA6B,EAAE,IAA6B,EAAE,EAAE;QAC7E,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEnC,MAAM,MAAM,GAAG;YACb,OAAO,EAAE,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;YAC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|
|
6
|
-
*/
|
|
7
|
-
import type { ShimCommand as Command } from '../commander-shim.js';
|
|
8
|
-
export declare function registerExportCommand(program: Command): void;
|
|
9
|
-
//# sourceMappingURL=export.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/export.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEnE,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA0C5D"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI export command - export tasks to various formats.
|
|
3
|
-
* Thin dispatch wrapper routing to admin.export.
|
|
4
|
-
*
|
|
5
|
-
* @task T4454, T5323, T5328
|
|
6
|
-
*/
|
|
7
|
-
import { dispatchFromCli, dispatchRaw, handleRawError } from '../../dispatch/adapters/cli.js';
|
|
8
|
-
export function registerExportCommand(program) {
|
|
9
|
-
program
|
|
10
|
-
.command('export')
|
|
11
|
-
.description('Export tasks to CSV, TSV, JSON, or markdown format')
|
|
12
|
-
.option('--export-format <format>', 'Export format: json, csv, tsv, markdown', 'json')
|
|
13
|
-
.option('--output <file>', 'Output file path (stdout if omitted)')
|
|
14
|
-
.option('--status <statuses>', 'Filter by status (comma-separated)')
|
|
15
|
-
.option('--parent <id>', 'Filter by parent task')
|
|
16
|
-
.option('--phase <phase>', 'Filter by phase')
|
|
17
|
-
.action(async (opts) => {
|
|
18
|
-
const hasOutput = !!opts['output'];
|
|
19
|
-
if (hasOutput) {
|
|
20
|
-
await dispatchFromCli('query', 'admin', 'export', {
|
|
21
|
-
format: opts['exportFormat'],
|
|
22
|
-
output: opts['output'],
|
|
23
|
-
status: opts['status'],
|
|
24
|
-
parent: opts['parent'],
|
|
25
|
-
phase: opts['phase'],
|
|
26
|
-
}, { command: 'export' });
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
// No output file — write content directly to stdout for piping
|
|
30
|
-
const response = await dispatchRaw('query', 'admin', 'export', {
|
|
31
|
-
format: opts['exportFormat'],
|
|
32
|
-
status: opts['status'],
|
|
33
|
-
parent: opts['parent'],
|
|
34
|
-
phase: opts['phase'],
|
|
35
|
-
});
|
|
36
|
-
handleRawError(response, { command: 'export', operation: 'admin.export' });
|
|
37
|
-
const data = response.data;
|
|
38
|
-
if (data?.content) {
|
|
39
|
-
process.stdout.write(data.content);
|
|
40
|
-
if (!data.content.endsWith('\n'))
|
|
41
|
-
process.stdout.write('\n');
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=export.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../../src/cli/commands/export.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAG9F,MAAM,UAAU,qBAAqB,CAAC,OAAgB;IACpD,OAAO;SACJ,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,oDAAoD,CAAC;SACjE,MAAM,CAAC,0BAA0B,EAAE,yCAAyC,EAAE,MAAM,CAAC;SACrF,MAAM,CAAC,iBAAiB,EAAE,sCAAsC,CAAC;SACjE,MAAM,CAAC,qBAAqB,EAAE,oCAAoC,CAAC;SACnE,MAAM,CAAC,eAAe,EAAE,uBAAuB,CAAC;SAChD,MAAM,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;SAC5C,MAAM,CAAC,KAAK,EAAE,IAA6B,EAAE,EAAE;QAC9C,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEnC,IAAI,SAAS,EAAE,CAAC;YACd,MAAM,eAAe,CACnB,OAAO,EACP,OAAO,EACP,QAAQ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.js';
|
|
8
|
-
/**
|
|
9
|
-
* Register the find command.
|
|
10
|
-
* @task T4460
|
|
11
|
-
* @task T4668
|
|
12
|
-
*/
|
|
13
|
-
export declare function registerFindCommand(program: Command): void;
|
|
14
|
-
//# sourceMappingURL=find.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/find.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAsFnE;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAuD1D"}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI find 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.find
|
|
14
|
-
//
|
|
15
|
-
// The registry entry for tasks.find lacks a params array (T4897 migration
|
|
16
|
-
// pending). This local definition is the CLI-visible source of truth until
|
|
17
|
-
// the upstream migration completes.
|
|
18
|
-
// ---------------------------------------------------------------------------
|
|
19
|
-
const FIND_PARAMS = [
|
|
20
|
-
{
|
|
21
|
-
name: 'query',
|
|
22
|
-
type: 'string',
|
|
23
|
-
required: false,
|
|
24
|
-
description: 'Search text (required unless --id is provided)',
|
|
25
|
-
cli: { positional: true },
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: 'id',
|
|
29
|
-
type: 'string',
|
|
30
|
-
required: false,
|
|
31
|
-
description: 'Search by ID prefix',
|
|
32
|
-
cli: { flag: 'id' },
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: 'exact',
|
|
36
|
-
type: 'boolean',
|
|
37
|
-
required: false,
|
|
38
|
-
description: 'Exact title match',
|
|
39
|
-
cli: { flag: 'exact' },
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: 'status',
|
|
43
|
-
type: 'string',
|
|
44
|
-
required: false,
|
|
45
|
-
description: 'Filter by status',
|
|
46
|
-
enum: ['pending', 'active', 'blocked', 'done', 'cancelled'],
|
|
47
|
-
cli: { flag: 'status' },
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: 'field',
|
|
51
|
-
type: 'string',
|
|
52
|
-
required: false,
|
|
53
|
-
description: 'Field to search in (title|description|notes|id)',
|
|
54
|
-
cli: { flag: 'in' },
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: 'includeArchive',
|
|
58
|
-
type: 'boolean',
|
|
59
|
-
required: false,
|
|
60
|
-
description: 'Include archived tasks',
|
|
61
|
-
cli: { flag: 'include-archive' },
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'limit',
|
|
65
|
-
type: 'number',
|
|
66
|
-
required: false,
|
|
67
|
-
description: 'Max results (default: 20)',
|
|
68
|
-
cli: { flag: 'limit', parse: parseInt },
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
name: 'offset',
|
|
72
|
-
type: 'number',
|
|
73
|
-
required: false,
|
|
74
|
-
description: 'Skip first N results',
|
|
75
|
-
cli: { flag: 'offset', parse: parseInt },
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: 'fields',
|
|
79
|
-
type: 'string',
|
|
80
|
-
required: false,
|
|
81
|
-
description: 'Comma-separated additional fields to include (e.g. labels,acceptance,notes,description)',
|
|
82
|
-
cli: { flag: 'fields' },
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: 'verbose',
|
|
86
|
-
type: 'boolean',
|
|
87
|
-
required: false,
|
|
88
|
-
description: 'Include all task fields (same as cleo list output)',
|
|
89
|
-
cli: { flag: 'verbose', short: '-v' },
|
|
90
|
-
},
|
|
91
|
-
];
|
|
92
|
-
/**
|
|
93
|
-
* Register the find command.
|
|
94
|
-
* @task T4460
|
|
95
|
-
* @task T4668
|
|
96
|
-
*/
|
|
97
|
-
export function registerFindCommand(program) {
|
|
98
|
-
const cmd = program
|
|
99
|
-
.command('find')
|
|
100
|
-
.description(buildOperationHelp('tasks.find', 'Fuzzy search tasks by title/description', FIND_PARAMS));
|
|
101
|
-
// Auto-generate [query] positional arg and flag options from the ParamDef
|
|
102
|
-
// registry. Replaces the previous hand-written .option() chain and surfaces
|
|
103
|
-
// enum values (e.g. status) in --help output.
|
|
104
|
-
applyParamDefsToCommand(cmd, FIND_PARAMS, 'tasks.find');
|
|
105
|
-
cmd.action(async (query, opts) => {
|
|
106
|
-
const limit = opts['limit'];
|
|
107
|
-
const offset = opts['offset'];
|
|
108
|
-
const params = {};
|
|
109
|
-
if (query !== undefined)
|
|
110
|
-
params['query'] = query;
|
|
111
|
-
if (opts['id'] !== undefined)
|
|
112
|
-
params['id'] = opts['id'];
|
|
113
|
-
if (opts['exact'] !== undefined)
|
|
114
|
-
params['exact'] = opts['exact'];
|
|
115
|
-
if (opts['status'] !== undefined)
|
|
116
|
-
params['status'] = opts['status'];
|
|
117
|
-
if (opts['in'] !== undefined)
|
|
118
|
-
params['field'] = opts['in'];
|
|
119
|
-
if (opts['includeArchive'] !== undefined)
|
|
120
|
-
params['includeArchive'] = opts['includeArchive'];
|
|
121
|
-
if (limit !== undefined)
|
|
122
|
-
params['limit'] = limit;
|
|
123
|
-
if (offset !== undefined)
|
|
124
|
-
params['offset'] = offset;
|
|
125
|
-
if (opts['fields'] !== undefined)
|
|
126
|
-
params['fields'] = opts['fields'];
|
|
127
|
-
if (opts['verbose'] !== undefined)
|
|
128
|
-
params['verbose'] = opts['verbose'];
|
|
129
|
-
const response = await dispatchRaw('query', 'tasks', 'find', params);
|
|
130
|
-
if (!response.success) {
|
|
131
|
-
handleRawError(response, { command: 'find', operation: 'tasks.find' });
|
|
132
|
-
}
|
|
133
|
-
const rawData = response.data;
|
|
134
|
-
const data = (Array.isArray(rawData)
|
|
135
|
-
? { results: rawData, total: rawData.length }
|
|
136
|
-
: rawData) ?? {};
|
|
137
|
-
const results = Array.isArray(data?.results) ? data.results : [];
|
|
138
|
-
if (results.length === 0) {
|
|
139
|
-
cliOutput(data, {
|
|
140
|
-
command: 'find',
|
|
141
|
-
message: 'No matching tasks found',
|
|
142
|
-
operation: 'tasks.find',
|
|
143
|
-
});
|
|
144
|
-
process.exit(ExitCode.NO_DATA);
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
const total = data?.total ?? results.length;
|
|
148
|
-
const page = createPage({ total, limit, offset });
|
|
149
|
-
cliOutput(data, { command: 'find', operation: 'tasks.find', page });
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
//# sourceMappingURL=find.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../src/cli/commands/find.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,0EAA0E;AAC1E,4EAA4E;AAC5E,oCAAoC;AACpC,8EAA8E;AAC9E,MAAM,WAAW,GAAwB;IACvC;QACE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C,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE;YAC7C,CAAC,CAAE,OAAmC,CAAC,IAAI,EAAE,CAAC;QAClD,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;QAEjE,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzB,SAAS,CAAC,IAAI,EAAE;gBACd,OAAO,EAAE,MAAM;gBACf,OAAO,EAAE,yBAAyB;gBAClC,SAAS,EAAE,YAAY;aACxB,CAAC,CAAC;YACH,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;YAC/B,OAAO;QACT,CAAC;QAED,MAAM,KAAK,GAAI,IAAI,EAAE,KAAgB,IAAI,OAAO,CAAC,MAAM,CAAC;QACxD,MAAM,IAAI,GAAG,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;QAClD,SAAS,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI generate-changelog command - generate changelog from completed tasks.
|
|
3
|
-
* Supports multiple output platforms (Mintlify, Docusaurus, plain).
|
|
4
|
-
*
|
|
5
|
-
* @task T4555
|
|
6
|
-
* @epic T4545
|
|
7
|
-
*/
|
|
8
|
-
import type { ShimCommand as Command } from '../commander-shim.js';
|
|
9
|
-
/**
|
|
10
|
-
* Register the generate-changelog command.
|
|
11
|
-
* @task T4555
|
|
12
|
-
*/
|
|
13
|
-
export declare function registerGenerateChangelogCommand(program: Command): void;
|
|
14
|
-
//# sourceMappingURL=generate-changelog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate-changelog.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/generate-changelog.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,KAAK,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAsMnE;;;GAGG;AACH,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAkFvE"}
|
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI generate-changelog command - generate changelog from completed tasks.
|
|
3
|
-
* Supports multiple output platforms (Mintlify, Docusaurus, plain).
|
|
4
|
-
*
|
|
5
|
-
* @task T4555
|
|
6
|
-
* @epic T4545
|
|
7
|
-
*/
|
|
8
|
-
import { execFileSync } from 'node:child_process';
|
|
9
|
-
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
10
|
-
import { dirname, join } from 'node:path';
|
|
11
|
-
import { ExitCode } from '@cleocode/contracts';
|
|
12
|
-
import { CleoError, formatError, getConfigPath, getProjectRoot } from '@cleocode/core';
|
|
13
|
-
import { cliOutput } from '../renderers/index.js';
|
|
14
|
-
/**
|
|
15
|
-
* Get changelog source path from config.
|
|
16
|
-
* @task T4555
|
|
17
|
-
*/
|
|
18
|
-
function getChangelogSource(cwd) {
|
|
19
|
-
const configPath = getConfigPath(cwd);
|
|
20
|
-
try {
|
|
21
|
-
const config = JSON.parse(readFileSync(configPath, 'utf-8'));
|
|
22
|
-
return config?.release?.changelog?.source ?? 'CHANGELOG.md';
|
|
23
|
-
}
|
|
24
|
-
catch {
|
|
25
|
-
return 'CHANGELOG.md';
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Get enabled output platforms from config.
|
|
30
|
-
* @task T4555
|
|
31
|
-
*/
|
|
32
|
-
function getEnabledPlatforms(cwd) {
|
|
33
|
-
const configPath = getConfigPath(cwd);
|
|
34
|
-
try {
|
|
35
|
-
const config = JSON.parse(readFileSync(configPath, 'utf-8'));
|
|
36
|
-
const outputs = config?.release?.changelog?.outputs ?? [];
|
|
37
|
-
return outputs.filter((o) => o.enabled);
|
|
38
|
-
}
|
|
39
|
-
catch {
|
|
40
|
-
return [];
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Get default output path for a platform.
|
|
45
|
-
* @task T4555
|
|
46
|
-
*/
|
|
47
|
-
function getDefaultOutputPath(platform) {
|
|
48
|
-
switch (platform) {
|
|
49
|
-
case 'mintlify':
|
|
50
|
-
return 'docs/changelog/overview.mdx';
|
|
51
|
-
case 'docusaurus':
|
|
52
|
-
return 'docs/changelog.md';
|
|
53
|
-
default:
|
|
54
|
-
return 'CHANGELOG.md';
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Get GitHub repo slug from git remote using execFileSync (no shell injection).
|
|
59
|
-
* @task T4555
|
|
60
|
-
*/
|
|
61
|
-
function getGitHubRepoSlug(cwd) {
|
|
62
|
-
const projectRoot = getProjectRoot(cwd);
|
|
63
|
-
try {
|
|
64
|
-
const remoteUrl = execFileSync('git', ['remote', 'get-url', 'origin'], {
|
|
65
|
-
cwd: projectRoot,
|
|
66
|
-
encoding: 'utf-8',
|
|
67
|
-
stdio: ['pipe', 'pipe', 'pipe'],
|
|
68
|
-
}).trim();
|
|
69
|
-
return remoteUrl.replace(/.*github\.com[:/]/, '').replace(/\.git$/, '');
|
|
70
|
-
}
|
|
71
|
-
catch {
|
|
72
|
-
return '';
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Generate changelog for a specific platform using CHANGELOG.md as source.
|
|
77
|
-
* @task T4555
|
|
78
|
-
*/
|
|
79
|
-
function generateForPlatform(platform, sourceContent, repoSlug, limit) {
|
|
80
|
-
switch (platform) {
|
|
81
|
-
case 'mintlify':
|
|
82
|
-
return generateMintlify(sourceContent, repoSlug, limit);
|
|
83
|
-
case 'docusaurus':
|
|
84
|
-
return generateDocusaurus(sourceContent, limit);
|
|
85
|
-
default:
|
|
86
|
-
return sourceContent;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Generate Mintlify MDX changelog format.
|
|
91
|
-
* @task T4555
|
|
92
|
-
*/
|
|
93
|
-
function generateMintlify(source, repoSlug, limit) {
|
|
94
|
-
const lines = [];
|
|
95
|
-
lines.push('---');
|
|
96
|
-
lines.push('title: "Changelog"');
|
|
97
|
-
lines.push('description: "CLEO release history and product updates"');
|
|
98
|
-
lines.push('icon: "clock-rotate-left"');
|
|
99
|
-
lines.push('rss: true');
|
|
100
|
-
lines.push('---');
|
|
101
|
-
lines.push('');
|
|
102
|
-
lines.push('# Changelog');
|
|
103
|
-
lines.push('');
|
|
104
|
-
// Parse version blocks from source
|
|
105
|
-
const sourceLines = source.split('\n');
|
|
106
|
-
const blocks = [];
|
|
107
|
-
let currentBlock = null;
|
|
108
|
-
for (let i = 0; i < sourceLines.length; i++) {
|
|
109
|
-
const line = sourceLines[i];
|
|
110
|
-
const vMatch = line.match(/^## \[v?(\d+\.\d+\.\d+)\] - (\d{4}-\d{2}-\d{2})/);
|
|
111
|
-
if (vMatch) {
|
|
112
|
-
if (currentBlock) {
|
|
113
|
-
blocks.push({
|
|
114
|
-
version: currentBlock.version,
|
|
115
|
-
date: currentBlock.date,
|
|
116
|
-
content: sourceLines
|
|
117
|
-
.slice(currentBlock.startLine + 1, i)
|
|
118
|
-
.join('\n')
|
|
119
|
-
.trim(),
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
currentBlock = { version: vMatch[1], date: vMatch[2], startLine: i };
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
if (currentBlock) {
|
|
126
|
-
blocks.push({
|
|
127
|
-
version: currentBlock.version,
|
|
128
|
-
date: currentBlock.date,
|
|
129
|
-
content: sourceLines
|
|
130
|
-
.slice(currentBlock.startLine + 1)
|
|
131
|
-
.join('\n')
|
|
132
|
-
.trim(),
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
for (const block of blocks.slice(0, limit)) {
|
|
136
|
-
lines.push(`## v${block.version} - ${block.date}`);
|
|
137
|
-
lines.push('');
|
|
138
|
-
lines.push(block.content);
|
|
139
|
-
lines.push('');
|
|
140
|
-
if (repoSlug) {
|
|
141
|
-
lines.push(`[View full release notes](https://github.com/${repoSlug}/releases/tag/v${block.version})`);
|
|
142
|
-
lines.push('');
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
return lines.join('\n');
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Generate Docusaurus markdown changelog format.
|
|
149
|
-
* @task T4555
|
|
150
|
-
*/
|
|
151
|
-
function generateDocusaurus(source, limit) {
|
|
152
|
-
const lines = [];
|
|
153
|
-
lines.push('---');
|
|
154
|
-
lines.push('id: changelog');
|
|
155
|
-
lines.push('title: Changelog');
|
|
156
|
-
lines.push('sidebar_label: Changelog');
|
|
157
|
-
lines.push('---');
|
|
158
|
-
lines.push('');
|
|
159
|
-
lines.push('# Changelog');
|
|
160
|
-
lines.push('');
|
|
161
|
-
const sourceLines = source.split('\n');
|
|
162
|
-
let versionCount = 0;
|
|
163
|
-
let inUnreleased = false;
|
|
164
|
-
for (const line of sourceLines) {
|
|
165
|
-
if (/^## \[Unreleased\]/.test(line)) {
|
|
166
|
-
inUnreleased = true;
|
|
167
|
-
continue;
|
|
168
|
-
}
|
|
169
|
-
if (/^## \[v?\d+\.\d+\.\d+\]/.test(line)) {
|
|
170
|
-
inUnreleased = false;
|
|
171
|
-
versionCount++;
|
|
172
|
-
if (versionCount > limit)
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
if (!inUnreleased && versionCount > 0) {
|
|
176
|
-
lines.push(line);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
return lines.join('\n');
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Register the generate-changelog command.
|
|
183
|
-
* @task T4555
|
|
184
|
-
*/
|
|
185
|
-
export function registerGenerateChangelogCommand(program) {
|
|
186
|
-
program
|
|
187
|
-
.command('generate-changelog')
|
|
188
|
-
.description('Generate platform-specific changelog from CHANGELOG.md')
|
|
189
|
-
.option('--platform <platform>', 'Target platform (mintlify, docusaurus, plain, github)')
|
|
190
|
-
.option('--limit <n>', 'Max versions to include', '15')
|
|
191
|
-
.option('--dry-run', 'Show what would be generated without writing')
|
|
192
|
-
.action(async (opts) => {
|
|
193
|
-
try {
|
|
194
|
-
const limit = Number(opts['limit'] ?? 15);
|
|
195
|
-
const targetPlatform = opts['platform'];
|
|
196
|
-
const dryRun = !!opts['dryRun'];
|
|
197
|
-
const sourceFile = getChangelogSource();
|
|
198
|
-
const sourcePath = join(getProjectRoot(), sourceFile);
|
|
199
|
-
if (!existsSync(sourcePath)) {
|
|
200
|
-
throw new CleoError(ExitCode.NOT_FOUND, `Changelog source not found: ${sourcePath}`);
|
|
201
|
-
}
|
|
202
|
-
const sourceContent = readFileSync(sourcePath, 'utf-8');
|
|
203
|
-
const repoSlug = getGitHubRepoSlug();
|
|
204
|
-
const results = [];
|
|
205
|
-
if (targetPlatform) {
|
|
206
|
-
const platforms = getEnabledPlatforms();
|
|
207
|
-
const platformConfig = platforms.find((p) => p.platform === targetPlatform);
|
|
208
|
-
const outputPath = platformConfig?.path ?? getDefaultOutputPath(targetPlatform);
|
|
209
|
-
const content = generateForPlatform(targetPlatform, sourceContent, repoSlug, limit);
|
|
210
|
-
if (!dryRun) {
|
|
211
|
-
const fullPath = join(getProjectRoot(), outputPath);
|
|
212
|
-
mkdirSync(dirname(fullPath), { recursive: true });
|
|
213
|
-
writeFileSync(fullPath, content, 'utf-8');
|
|
214
|
-
}
|
|
215
|
-
results.push({ platform: targetPlatform, path: outputPath, written: !dryRun });
|
|
216
|
-
}
|
|
217
|
-
else {
|
|
218
|
-
const platforms = getEnabledPlatforms();
|
|
219
|
-
if (platforms.length === 0) {
|
|
220
|
-
throw new CleoError(ExitCode.CONFIG_ERROR, 'No changelog output platforms configured. Configure in .cleo/config.json under release.changelog.outputs');
|
|
221
|
-
}
|
|
222
|
-
for (const platformConfig of platforms) {
|
|
223
|
-
const content = generateForPlatform(platformConfig.platform, sourceContent, repoSlug, limit);
|
|
224
|
-
if (!dryRun) {
|
|
225
|
-
const fullPath = join(getProjectRoot(), platformConfig.path);
|
|
226
|
-
mkdirSync(dirname(fullPath), { recursive: true });
|
|
227
|
-
writeFileSync(fullPath, content, 'utf-8');
|
|
228
|
-
}
|
|
229
|
-
results.push({
|
|
230
|
-
platform: platformConfig.platform,
|
|
231
|
-
path: platformConfig.path,
|
|
232
|
-
written: !dryRun,
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
cliOutput({
|
|
237
|
-
dryRun,
|
|
238
|
-
source: sourceFile,
|
|
239
|
-
repoSlug: repoSlug || null,
|
|
240
|
-
generated: results,
|
|
241
|
-
}, { command: 'generate-changelog' });
|
|
242
|
-
}
|
|
243
|
-
catch (err) {
|
|
244
|
-
if (err instanceof CleoError) {
|
|
245
|
-
console.error(formatError(err));
|
|
246
|
-
process.exit(err.code);
|
|
247
|
-
}
|
|
248
|
-
throw err;
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
//# sourceMappingURL=generate-changelog.js.map
|