@cleocode/cleo 2026.3.59 → 2026.3.61
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/commander-shim.d.ts +112 -0
- package/dist/cli/commander-shim.d.ts.map +1 -0
- package/dist/cli/commander-shim.js +233 -0
- package/dist/cli/commander-shim.js.map +1 -0
- package/dist/cli/commands/add.d.ts +12 -0
- package/dist/cli/commands/add.d.ts.map +1 -0
- package/dist/cli/commands/add.js +91 -0
- package/dist/cli/commands/add.js.map +1 -0
- package/dist/cli/commands/adr.d.ts +27 -0
- package/dist/cli/commands/adr.d.ts.map +1 -0
- package/dist/cli/commands/adr.js +79 -0
- package/dist/cli/commands/adr.js.map +1 -0
- package/dist/cli/commands/analyze.d.ts +12 -0
- package/dist/cli/commands/analyze.d.ts.map +1 -0
- package/dist/cli/commands/analyze.js +20 -0
- package/dist/cli/commands/analyze.js.map +1 -0
- package/dist/cli/commands/archive-stats.d.ts +18 -0
- package/dist/cli/commands/archive-stats.d.ts.map +1 -0
- package/dist/cli/commands/archive-stats.js +49 -0
- package/dist/cli/commands/archive-stats.js.map +1 -0
- package/dist/cli/commands/archive.d.ts +12 -0
- package/dist/cli/commands/archive.d.ts.map +1 -0
- package/dist/cli/commands/archive.js +32 -0
- package/dist/cli/commands/archive.js.map +1 -0
- package/dist/cli/commands/backup.d.ts +8 -0
- package/dist/cli/commands/backup.d.ts.map +1 -0
- package/dist/cli/commands/backup.js +35 -0
- package/dist/cli/commands/backup.js.map +1 -0
- package/dist/cli/commands/blockers.d.ts +7 -0
- package/dist/cli/commands/blockers.d.ts.map +1 -0
- package/dist/cli/commands/blockers.js +16 -0
- package/dist/cli/commands/blockers.js.map +1 -0
- package/dist/cli/commands/briefing.d.ts +22 -0
- package/dist/cli/commands/briefing.d.ts.map +1 -0
- package/dist/cli/commands/briefing.js +45 -0
- package/dist/cli/commands/briefing.js.map +1 -0
- package/dist/cli/commands/bug.d.ts +12 -0
- package/dist/cli/commands/bug.d.ts.map +1 -0
- package/dist/cli/commands/bug.js +81 -0
- package/dist/cli/commands/bug.js.map +1 -0
- package/dist/cli/commands/checkpoint.d.ts +15 -0
- package/dist/cli/commands/checkpoint.d.ts.map +1 -0
- package/dist/cli/commands/checkpoint.js +91 -0
- package/dist/cli/commands/checkpoint.js.map +1 -0
- package/dist/cli/commands/commands.d.ts +13 -0
- package/dist/cli/commands/commands.d.ts.map +1 -0
- package/dist/cli/commands/commands.js +30 -0
- package/dist/cli/commands/commands.js.map +1 -0
- package/dist/cli/commands/complete.d.ts +12 -0
- package/dist/cli/commands/complete.d.ts.map +1 -0
- package/dist/cli/commands/complete.js +43 -0
- package/dist/cli/commands/complete.js.map +1 -0
- package/dist/cli/commands/compliance.d.ts +8 -0
- package/dist/cli/commands/compliance.d.ts.map +1 -0
- package/dist/cli/commands/compliance.js +85 -0
- package/dist/cli/commands/compliance.js.map +1 -0
- package/dist/cli/commands/config.d.ts +9 -0
- package/dist/cli/commands/config.d.ts.map +1 -0
- package/dist/cli/commands/config.js +43 -0
- package/dist/cli/commands/config.js.map +1 -0
- package/dist/cli/commands/consensus.d.ts +13 -0
- package/dist/cli/commands/consensus.d.ts.map +1 -0
- package/dist/cli/commands/consensus.js +45 -0
- package/dist/cli/commands/consensus.js.map +1 -0
- package/dist/cli/commands/context.d.ts +8 -0
- package/dist/cli/commands/context.d.ts.map +1 -0
- package/dist/cli/commands/context.js +40 -0
- package/dist/cli/commands/context.js.map +1 -0
- package/dist/cli/commands/contribution.d.ts +13 -0
- package/dist/cli/commands/contribution.d.ts.map +1 -0
- package/dist/cli/commands/contribution.js +41 -0
- package/dist/cli/commands/contribution.js.map +1 -0
- package/dist/cli/commands/current.d.ts +13 -0
- package/dist/cli/commands/current.d.ts.map +1 -0
- package/dist/cli/commands/current.js +20 -0
- package/dist/cli/commands/current.js.map +1 -0
- package/dist/cli/commands/dash.d.ts +12 -0
- package/dist/cli/commands/dash.d.ts.map +1 -0
- package/dist/cli/commands/dash.js +24 -0
- package/dist/cli/commands/dash.js.map +1 -0
- package/dist/cli/commands/decomposition.d.ts +13 -0
- package/dist/cli/commands/decomposition.d.ts.map +1 -0
- package/dist/cli/commands/decomposition.js +45 -0
- package/dist/cli/commands/decomposition.js.map +1 -0
- package/dist/cli/commands/delete.d.ts +12 -0
- package/dist/cli/commands/delete.d.ts.map +1 -0
- package/dist/cli/commands/delete.js +37 -0
- package/dist/cli/commands/delete.js.map +1 -0
- package/dist/cli/commands/deps.d.ts +9 -0
- package/dist/cli/commands/deps.d.ts.map +1 -0
- package/dist/cli/commands/deps.js +73 -0
- package/dist/cli/commands/deps.js.map +1 -0
- package/dist/cli/commands/detect-drift.d.ts +15 -0
- package/dist/cli/commands/detect-drift.d.ts.map +1 -0
- package/dist/cli/commands/detect-drift.js +386 -0
- package/dist/cli/commands/detect-drift.js.map +1 -0
- package/dist/cli/commands/detect.d.ts +10 -0
- package/dist/cli/commands/detect.d.ts.map +1 -0
- package/dist/cli/commands/detect.js +24 -0
- package/dist/cli/commands/detect.js.map +1 -0
- package/dist/cli/commands/docs.d.ts +13 -0
- package/dist/cli/commands/docs.d.ts.map +1 -0
- package/dist/cli/commands/docs.js +169 -0
- package/dist/cli/commands/docs.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +11 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/doctor.js +54 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/dynamic.d.ts +24 -0
- package/dist/cli/commands/dynamic.d.ts.map +1 -0
- package/dist/cli/commands/dynamic.js +27 -0
- package/dist/cli/commands/dynamic.js.map +1 -0
- package/dist/cli/commands/env.d.ts +12 -0
- package/dist/cli/commands/env.d.ts.map +1 -0
- package/dist/cli/commands/env.js +44 -0
- package/dist/cli/commands/env.js.map +1 -0
- package/dist/cli/commands/exists.d.ts +7 -0
- package/dist/cli/commands/exists.d.ts.map +1 -0
- package/dist/cli/commands/exists.js +33 -0
- package/dist/cli/commands/exists.js.map +1 -0
- package/dist/cli/commands/export-tasks.d.ts +10 -0
- package/dist/cli/commands/export-tasks.d.ts.map +1 -0
- package/dist/cli/commands/export-tasks.js +47 -0
- package/dist/cli/commands/export-tasks.js.map +1 -0
- package/dist/cli/commands/export.d.ts +9 -0
- package/dist/cli/commands/export.d.ts.map +1 -0
- package/dist/cli/commands/export.js +46 -0
- package/dist/cli/commands/export.js.map +1 -0
- package/dist/cli/commands/find.d.ts +14 -0
- package/dist/cli/commands/find.d.ts.map +1 -0
- package/dist/cli/commands/find.js +70 -0
- package/dist/cli/commands/find.js.map +1 -0
- package/dist/cli/commands/generate-changelog.d.ts +14 -0
- package/dist/cli/commands/generate-changelog.d.ts.map +1 -0
- package/dist/cli/commands/generate-changelog.js +252 -0
- package/dist/cli/commands/generate-changelog.js.map +1 -0
- package/dist/cli/commands/grade.d.ts +13 -0
- package/dist/cli/commands/grade.d.ts.map +1 -0
- package/dist/cli/commands/grade.js +26 -0
- package/dist/cli/commands/grade.js.map +1 -0
- package/dist/cli/commands/history.d.ts +9 -0
- package/dist/cli/commands/history.d.ts.map +1 -0
- package/dist/cli/commands/history.js +30 -0
- package/dist/cli/commands/history.js.map +1 -0
- package/dist/cli/commands/implementation.d.ts +13 -0
- package/dist/cli/commands/implementation.d.ts.map +1 -0
- package/dist/cli/commands/implementation.js +41 -0
- package/dist/cli/commands/implementation.js.map +1 -0
- package/dist/cli/commands/import-tasks.d.ts +10 -0
- package/dist/cli/commands/import-tasks.d.ts.map +1 -0
- package/dist/cli/commands/import-tasks.js +38 -0
- package/dist/cli/commands/import-tasks.js.map +1 -0
- package/dist/cli/commands/import.d.ts +9 -0
- package/dist/cli/commands/import.d.ts.map +1 -0
- package/dist/cli/commands/import.js +28 -0
- package/dist/cli/commands/import.js.map +1 -0
- package/dist/cli/commands/init.d.ts +34 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +89 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/inject.d.ts +8 -0
- package/dist/cli/commands/inject.d.ts.map +1 -0
- package/dist/cli/commands/inject.js +28 -0
- package/dist/cli/commands/inject.js.map +1 -0
- package/dist/cli/commands/install-global.d.ts +19 -0
- package/dist/cli/commands/install-global.d.ts.map +1 -0
- package/dist/cli/commands/install-global.js +50 -0
- package/dist/cli/commands/install-global.js.map +1 -0
- package/dist/cli/commands/issue.d.ts +14 -0
- package/dist/cli/commands/issue.d.ts.map +1 -0
- package/dist/cli/commands/issue.js +105 -0
- package/dist/cli/commands/issue.js.map +1 -0
- package/dist/cli/commands/labels.d.ts +13 -0
- package/dist/cli/commands/labels.d.ts.map +1 -0
- package/dist/cli/commands/labels.js +44 -0
- package/dist/cli/commands/labels.js.map +1 -0
- package/dist/cli/commands/lifecycle.d.ts +8 -0
- package/dist/cli/commands/lifecycle.d.ts.map +1 -0
- package/dist/cli/commands/lifecycle.js +72 -0
- package/dist/cli/commands/lifecycle.js.map +1 -0
- package/dist/cli/commands/list.d.ts +14 -0
- package/dist/cli/commands/list.d.ts.map +1 -0
- package/dist/cli/commands/list.js +71 -0
- package/dist/cli/commands/list.js.map +1 -0
- package/dist/cli/commands/log.d.ts +12 -0
- package/dist/cli/commands/log.d.ts.map +1 -0
- package/dist/cli/commands/log.js +30 -0
- package/dist/cli/commands/log.js.map +1 -0
- package/dist/cli/commands/map.d.ts +10 -0
- package/dist/cli/commands/map.d.ts.map +1 -0
- package/dist/cli/commands/map.js +23 -0
- package/dist/cli/commands/map.js.map +1 -0
- package/dist/cli/commands/mcp-install.d.ts +17 -0
- package/dist/cli/commands/mcp-install.d.ts.map +1 -0
- package/dist/cli/commands/mcp-install.js +128 -0
- package/dist/cli/commands/mcp-install.js.map +1 -0
- package/dist/cli/commands/memory-brain.d.ts +14 -0
- package/dist/cli/commands/memory-brain.d.ts.map +1 -0
- package/dist/cli/commands/memory-brain.js +151 -0
- package/dist/cli/commands/memory-brain.js.map +1 -0
- package/dist/cli/commands/migrate-claude-mem.d.ts +18 -0
- package/dist/cli/commands/migrate-claude-mem.d.ts.map +1 -0
- package/dist/cli/commands/migrate-claude-mem.js +60 -0
- package/dist/cli/commands/migrate-claude-mem.js.map +1 -0
- package/dist/cli/commands/next.d.ts +9 -0
- package/dist/cli/commands/next.d.ts.map +1 -0
- package/dist/cli/commands/next.js +20 -0
- package/dist/cli/commands/next.js.map +1 -0
- package/dist/cli/commands/nexus.d.ts +16 -0
- package/dist/cli/commands/nexus.d.ts.map +1 -0
- package/dist/cli/commands/nexus.js +155 -0
- package/dist/cli/commands/nexus.js.map +1 -0
- package/dist/cli/commands/observe.d.ts +9 -0
- package/dist/cli/commands/observe.d.ts.map +1 -0
- package/dist/cli/commands/observe.js +39 -0
- package/dist/cli/commands/observe.js.map +1 -0
- package/dist/cli/commands/ops.d.ts +10 -0
- package/dist/cli/commands/ops.d.ts.map +1 -0
- package/dist/cli/commands/ops.js +19 -0
- package/dist/cli/commands/ops.js.map +1 -0
- package/dist/cli/commands/orchestrate.d.ts +8 -0
- package/dist/cli/commands/orchestrate.d.ts.map +1 -0
- package/dist/cli/commands/orchestrate.js +58 -0
- package/dist/cli/commands/orchestrate.js.map +1 -0
- package/dist/cli/commands/otel.d.ts +12 -0
- package/dist/cli/commands/otel.d.ts.map +1 -0
- package/dist/cli/commands/otel.js +128 -0
- package/dist/cli/commands/otel.js.map +1 -0
- package/dist/cli/commands/phase.d.ts +12 -0
- package/dist/cli/commands/phase.d.ts.map +1 -0
- package/dist/cli/commands/phase.js +88 -0
- package/dist/cli/commands/phase.js.map +1 -0
- package/dist/cli/commands/phases.d.ts +12 -0
- package/dist/cli/commands/phases.d.ts.map +1 -0
- package/dist/cli/commands/phases.js +37 -0
- package/dist/cli/commands/phases.js.map +1 -0
- package/dist/cli/commands/plan.d.ts +8 -0
- package/dist/cli/commands/plan.d.ts.map +1 -0
- package/dist/cli/commands/plan.js +15 -0
- package/dist/cli/commands/plan.js.map +1 -0
- package/dist/cli/commands/promote.d.ts +7 -0
- package/dist/cli/commands/promote.d.ts.map +1 -0
- package/dist/cli/commands/promote.js +15 -0
- package/dist/cli/commands/promote.js.map +1 -0
- package/dist/cli/commands/refresh-memory.d.ts +9 -0
- package/dist/cli/commands/refresh-memory.d.ts.map +1 -0
- package/dist/cli/commands/refresh-memory.js +24 -0
- package/dist/cli/commands/refresh-memory.js.map +1 -0
- package/dist/cli/commands/relates.d.ts +12 -0
- package/dist/cli/commands/relates.d.ts.map +1 -0
- package/dist/cli/commands/relates.js +53 -0
- package/dist/cli/commands/relates.js.map +1 -0
- package/dist/cli/commands/release.d.ts +8 -0
- package/dist/cli/commands/release.d.ts.map +1 -0
- package/dist/cli/commands/release.js +72 -0
- package/dist/cli/commands/release.js.map +1 -0
- package/dist/cli/commands/remote.d.ts +12 -0
- package/dist/cli/commands/remote.d.ts.map +1 -0
- package/dist/cli/commands/remote.js +207 -0
- package/dist/cli/commands/remote.js.map +1 -0
- package/dist/cli/commands/reorder.d.ts +7 -0
- package/dist/cli/commands/reorder.d.ts.map +1 -0
- package/dist/cli/commands/reorder.js +20 -0
- package/dist/cli/commands/reorder.js.map +1 -0
- package/dist/cli/commands/reparent.d.ts +10 -0
- package/dist/cli/commands/reparent.d.ts.map +1 -0
- package/dist/cli/commands/reparent.js +19 -0
- package/dist/cli/commands/reparent.js.map +1 -0
- package/dist/cli/commands/research.d.ts +8 -0
- package/dist/cli/commands/research.d.ts.map +1 -0
- package/dist/cli/commands/research.js +129 -0
- package/dist/cli/commands/research.js.map +1 -0
- package/dist/cli/commands/restore.d.ts +11 -0
- package/dist/cli/commands/restore.d.ts.map +1 -0
- package/dist/cli/commands/restore.js +224 -0
- package/dist/cli/commands/restore.js.map +1 -0
- package/dist/cli/commands/roadmap.d.ts +8 -0
- package/dist/cli/commands/roadmap.d.ts.map +1 -0
- package/dist/cli/commands/roadmap.js +21 -0
- package/dist/cli/commands/roadmap.js.map +1 -0
- package/dist/cli/commands/safestop.d.ts +14 -0
- package/dist/cli/commands/safestop.d.ts.map +1 -0
- package/dist/cli/commands/safestop.js +32 -0
- package/dist/cli/commands/safestop.js.map +1 -0
- package/dist/cli/commands/self-update.d.ts +15 -0
- package/dist/cli/commands/self-update.d.ts.map +1 -0
- package/dist/cli/commands/self-update.js +329 -0
- package/dist/cli/commands/self-update.js.map +1 -0
- package/dist/cli/commands/sequence.d.ts +8 -0
- package/dist/cli/commands/sequence.d.ts.map +1 -0
- package/dist/cli/commands/sequence.js +30 -0
- package/dist/cli/commands/sequence.js.map +1 -0
- package/dist/cli/commands/session.d.ts +12 -0
- package/dist/cli/commands/session.d.ts.map +1 -0
- package/dist/cli/commands/session.js +160 -0
- package/dist/cli/commands/session.js.map +1 -0
- package/dist/cli/commands/show.d.ts +13 -0
- package/dist/cli/commands/show.d.ts.map +1 -0
- package/dist/cli/commands/show.js +20 -0
- package/dist/cli/commands/show.js.map +1 -0
- package/dist/cli/commands/skills.d.ts +13 -0
- package/dist/cli/commands/skills.d.ts.map +1 -0
- package/dist/cli/commands/skills.js +131 -0
- package/dist/cli/commands/skills.js.map +1 -0
- package/dist/cli/commands/snapshot.d.ts +9 -0
- package/dist/cli/commands/snapshot.d.ts.map +1 -0
- package/dist/cli/commands/snapshot.js +50 -0
- package/dist/cli/commands/snapshot.js.map +1 -0
- package/dist/cli/commands/specification.d.ts +13 -0
- package/dist/cli/commands/specification.d.ts.map +1 -0
- package/dist/cli/commands/specification.js +45 -0
- package/dist/cli/commands/specification.js.map +1 -0
- package/dist/cli/commands/start.d.ts +13 -0
- package/dist/cli/commands/start.d.ts.map +1 -0
- package/dist/cli/commands/start.js +20 -0
- package/dist/cli/commands/start.js.map +1 -0
- package/dist/cli/commands/stats.d.ts +12 -0
- package/dist/cli/commands/stats.d.ts.map +1 -0
- package/dist/cli/commands/stats.js +23 -0
- package/dist/cli/commands/stats.js.map +1 -0
- package/dist/cli/commands/sticky.d.ts +16 -0
- package/dist/cli/commands/sticky.d.ts.map +1 -0
- package/dist/cli/commands/sticky.js +211 -0
- package/dist/cli/commands/sticky.js.map +1 -0
- package/dist/cli/commands/stop.d.ts +13 -0
- package/dist/cli/commands/stop.d.ts.map +1 -0
- package/dist/cli/commands/stop.js +20 -0
- package/dist/cli/commands/stop.js.map +1 -0
- package/dist/cli/commands/testing.d.ts +13 -0
- package/dist/cli/commands/testing.d.ts.map +1 -0
- package/dist/cli/commands/testing.js +64 -0
- package/dist/cli/commands/testing.js.map +1 -0
- package/dist/cli/commands/token.d.ts +10 -0
- package/dist/cli/commands/token.d.ts.map +1 -0
- package/dist/cli/commands/token.js +135 -0
- package/dist/cli/commands/token.js.map +1 -0
- package/dist/cli/commands/update.d.ts +12 -0
- package/dist/cli/commands/update.d.ts.map +1 -0
- package/dist/cli/commands/update.js +77 -0
- package/dist/cli/commands/update.js.map +1 -0
- package/dist/cli/commands/upgrade.d.ts +16 -0
- package/dist/cli/commands/upgrade.d.ts.map +1 -0
- package/dist/cli/commands/upgrade.js +83 -0
- package/dist/cli/commands/upgrade.js.map +1 -0
- package/dist/cli/commands/validate.d.ts +12 -0
- package/dist/cli/commands/validate.d.ts.map +1 -0
- package/dist/cli/commands/validate.js +23 -0
- package/dist/cli/commands/validate.js.map +1 -0
- package/dist/cli/commands/verify.d.ts +8 -0
- package/dist/cli/commands/verify.d.ts.map +1 -0
- package/dist/cli/commands/verify.js +28 -0
- package/dist/cli/commands/verify.js.map +1 -0
- package/dist/cli/commands/web.d.ts +13 -0
- package/dist/cli/commands/web.d.ts.map +1 -0
- package/dist/cli/commands/web.js +264 -0
- package/dist/cli/commands/web.js.map +1 -0
- package/dist/cli/field-context.d.ts +32 -0
- package/dist/cli/field-context.d.ts.map +1 -0
- package/dist/cli/field-context.js +47 -0
- package/dist/cli/field-context.js.map +1 -0
- package/dist/cli/format-context.d.ts +32 -0
- package/dist/cli/format-context.d.ts.map +1 -0
- package/dist/cli/format-context.js +50 -0
- package/dist/cli/format-context.js.map +1 -0
- package/dist/cli/index.d.ts +9 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +249 -54
- package/dist/cli/index.js.map +3 -3
- package/dist/cli/logger-bootstrap.d.ts +6 -0
- package/dist/cli/logger-bootstrap.d.ts.map +1 -0
- package/dist/cli/logger-bootstrap.js +10 -0
- package/dist/cli/logger-bootstrap.js.map +1 -0
- package/dist/cli/middleware/output-format.d.ts +30 -0
- package/dist/cli/middleware/output-format.d.ts.map +1 -0
- package/dist/cli/middleware/output-format.js +35 -0
- package/dist/cli/middleware/output-format.js.map +1 -0
- package/dist/cli/progress.d.ts +84 -0
- package/dist/cli/progress.d.ts.map +1 -0
- package/dist/cli/progress.js +169 -0
- package/dist/cli/progress.js.map +1 -0
- package/dist/cli/renderers/colors.d.ts +32 -0
- package/dist/cli/renderers/colors.d.ts.map +1 -0
- package/dist/cli/renderers/colors.js +141 -0
- package/dist/cli/renderers/colors.js.map +1 -0
- package/dist/cli/renderers/error.d.ts +13 -0
- package/dist/cli/renderers/error.d.ts.map +1 -0
- package/dist/cli/renderers/error.js +42 -0
- package/dist/cli/renderers/error.js.map +1 -0
- package/dist/cli/renderers/index.d.ts +59 -0
- package/dist/cli/renderers/index.d.ts.map +1 -0
- package/dist/cli/renderers/index.js +184 -0
- package/dist/cli/renderers/index.js.map +1 -0
- package/dist/cli/renderers/normalizer.d.ts +21 -0
- package/dist/cli/renderers/normalizer.d.ts.map +1 -0
- package/dist/cli/renderers/normalizer.js +106 -0
- package/dist/cli/renderers/normalizer.js.map +1 -0
- package/dist/cli/renderers/system.d.ts +25 -0
- package/dist/cli/renderers/system.d.ts.map +1 -0
- package/dist/cli/renderers/system.js +416 -0
- package/dist/cli/renderers/system.js.map +1 -0
- package/dist/cli/renderers/tasks.d.ts +28 -0
- package/dist/cli/renderers/tasks.d.ts.map +1 -0
- package/dist/cli/renderers/tasks.js +306 -0
- package/dist/cli/renderers/tasks.js.map +1 -0
- package/dist/dispatch/adapters/cli.d.ts +67 -0
- package/dist/dispatch/adapters/cli.d.ts.map +1 -0
- package/dist/dispatch/adapters/cli.js +205 -0
- package/dist/dispatch/adapters/cli.js.map +1 -0
- package/dist/dispatch/adapters/mcp.d.ts +37 -0
- package/dist/dispatch/adapters/mcp.d.ts.map +1 -0
- package/dist/dispatch/adapters/mcp.js +122 -0
- package/dist/dispatch/adapters/mcp.js.map +1 -0
- package/dist/dispatch/context/session-context.d.ts +54 -0
- package/dist/dispatch/context/session-context.d.ts.map +1 -0
- package/dist/dispatch/context/session-context.js +61 -0
- package/dist/dispatch/context/session-context.js.map +1 -0
- package/dist/dispatch/dispatcher.d.ts +23 -0
- package/dist/dispatch/dispatcher.d.ts.map +1 -0
- package/dist/dispatch/dispatcher.js +84 -0
- package/dist/dispatch/dispatcher.js.map +1 -0
- package/dist/dispatch/domains/_base.d.ts +59 -0
- package/dist/dispatch/domains/_base.d.ts.map +1 -0
- package/dist/dispatch/domains/_base.js +77 -0
- package/dist/dispatch/domains/_base.js.map +1 -0
- package/dist/dispatch/domains/_meta.d.ts +23 -0
- package/dist/dispatch/domains/_meta.d.ts.map +1 -0
- package/dist/dispatch/domains/_meta.js +25 -0
- package/dist/dispatch/domains/_meta.js.map +1 -0
- package/dist/dispatch/domains/_routing.d.ts +8 -0
- package/dist/dispatch/domains/_routing.d.ts.map +1 -0
- package/dist/dispatch/domains/_routing.js +20 -0
- package/dist/dispatch/domains/_routing.js.map +1 -0
- package/dist/dispatch/domains/admin.d.ts +25 -0
- package/dist/dispatch/domains/admin.d.ts.map +1 -0
- package/dist/dispatch/domains/admin.js +670 -0
- package/dist/dispatch/domains/admin.js.map +1 -0
- package/dist/dispatch/domains/check.d.ts +22 -0
- package/dist/dispatch/domains/check.d.ts.map +1 -0
- package/dist/dispatch/domains/check.js +279 -0
- package/dist/dispatch/domains/check.js.map +1 -0
- package/dist/dispatch/domains/index.d.ts +26 -0
- package/dist/dispatch/domains/index.d.ts.map +1 -0
- package/dist/dispatch/domains/index.js +38 -0
- package/dist/dispatch/domains/index.js.map +1 -0
- package/dist/dispatch/domains/memory.d.ts +22 -0
- package/dist/dispatch/domains/memory.d.ts.map +1 -0
- package/dist/dispatch/domains/memory.js +303 -0
- package/dist/dispatch/domains/memory.js.map +1 -0
- package/dist/dispatch/domains/nexus.d.ts +22 -0
- package/dist/dispatch/domains/nexus.d.ts.map +1 -0
- package/dist/dispatch/domains/nexus.js +286 -0
- package/dist/dispatch/domains/nexus.js.map +1 -0
- package/dist/dispatch/domains/orchestrate.d.ts +19 -0
- package/dist/dispatch/domains/orchestrate.d.ts.map +1 -0
- package/dist/dispatch/domains/orchestrate.js +259 -0
- package/dist/dispatch/domains/orchestrate.js.map +1 -0
- package/dist/dispatch/domains/pipeline.d.ts +35 -0
- package/dist/dispatch/domains/pipeline.d.ts.map +1 -0
- package/dist/dispatch/domains/pipeline.js +553 -0
- package/dist/dispatch/domains/pipeline.js.map +1 -0
- package/dist/dispatch/domains/session.d.ts +22 -0
- package/dist/dispatch/domains/session.d.ts.map +1 -0
- package/dist/dispatch/domains/session.js +255 -0
- package/dist/dispatch/domains/session.js.map +1 -0
- package/dist/dispatch/domains/sticky.d.ts +20 -0
- package/dist/dispatch/domains/sticky.d.ts.map +1 -0
- package/dist/dispatch/domains/sticky.js +164 -0
- package/dist/dispatch/domains/sticky.js.map +1 -0
- package/dist/dispatch/domains/tasks.d.ts +25 -0
- package/dist/dispatch/domains/tasks.d.ts.map +1 -0
- package/dist/dispatch/domains/tasks.js +323 -0
- package/dist/dispatch/domains/tasks.js.map +1 -0
- package/dist/dispatch/domains/tools.d.ts +36 -0
- package/dist/dispatch/domains/tools.d.ts.map +1 -0
- package/dist/dispatch/domains/tools.js +451 -0
- package/dist/dispatch/domains/tools.js.map +1 -0
- package/dist/dispatch/engines/_error.d.ts +42 -0
- package/dist/dispatch/engines/_error.d.ts.map +1 -0
- package/dist/dispatch/engines/_error.js +201 -0
- package/dist/dispatch/engines/_error.js.map +1 -0
- package/dist/dispatch/engines/codebase-map-engine.d.ts +17 -0
- package/dist/dispatch/engines/codebase-map-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/codebase-map-engine.js +29 -0
- package/dist/dispatch/engines/codebase-map-engine.js.map +1 -0
- package/dist/dispatch/engines/config-engine.d.ts +21 -0
- package/dist/dispatch/engines/config-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/config-engine.js +45 -0
- package/dist/dispatch/engines/config-engine.js.map +1 -0
- package/dist/dispatch/engines/hooks-engine.d.ts +47 -0
- package/dist/dispatch/engines/hooks-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/hooks-engine.js +57 -0
- package/dist/dispatch/engines/hooks-engine.js.map +1 -0
- package/dist/dispatch/engines/init-engine.d.ts +43 -0
- package/dist/dispatch/engines/init-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/init-engine.js +73 -0
- package/dist/dispatch/engines/init-engine.js.map +1 -0
- package/dist/dispatch/engines/lifecycle-engine.d.ts +66 -0
- package/dist/dispatch/engines/lifecycle-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/lifecycle-engine.js +213 -0
- package/dist/dispatch/engines/lifecycle-engine.js.map +1 -0
- package/dist/dispatch/engines/memory-engine.d.ts +10 -0
- package/dist/dispatch/engines/memory-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/memory-engine.js +10 -0
- package/dist/dispatch/engines/memory-engine.js.map +1 -0
- package/dist/dispatch/engines/nexus-engine.d.ts +167 -0
- package/dist/dispatch/engines/nexus-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/nexus-engine.js +356 -0
- package/dist/dispatch/engines/nexus-engine.js.map +1 -0
- package/dist/dispatch/engines/orchestrate-engine.d.ts +133 -0
- package/dist/dispatch/engines/orchestrate-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/orchestrate-engine.js +769 -0
- package/dist/dispatch/engines/orchestrate-engine.js.map +1 -0
- package/dist/dispatch/engines/pipeline-engine.d.ts +51 -0
- package/dist/dispatch/engines/pipeline-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/pipeline-engine.js +191 -0
- package/dist/dispatch/engines/pipeline-engine.js.map +1 -0
- package/dist/dispatch/engines/release-engine.d.ts +94 -0
- package/dist/dispatch/engines/release-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/release-engine.js +669 -0
- package/dist/dispatch/engines/release-engine.js.map +1 -0
- package/dist/dispatch/engines/session-engine.d.ts +323 -0
- package/dist/dispatch/engines/session-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/session-engine.js +865 -0
- package/dist/dispatch/engines/session-engine.js.map +1 -0
- package/dist/dispatch/engines/sticky-engine.d.ts +100 -0
- package/dist/dispatch/engines/sticky-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/sticky-engine.js +181 -0
- package/dist/dispatch/engines/sticky-engine.js.map +1 -0
- package/dist/dispatch/engines/system-engine.d.ts +377 -0
- package/dist/dispatch/engines/system-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/system-engine.js +979 -0
- package/dist/dispatch/engines/system-engine.js.map +1 -0
- package/dist/dispatch/engines/task-engine.d.ts +612 -0
- package/dist/dispatch/engines/task-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/task-engine.js +950 -0
- package/dist/dispatch/engines/task-engine.js.map +1 -0
- package/dist/dispatch/engines/template-parser.d.ts +34 -0
- package/dist/dispatch/engines/template-parser.d.ts.map +1 -0
- package/dist/dispatch/engines/template-parser.js +57 -0
- package/dist/dispatch/engines/template-parser.js.map +1 -0
- package/dist/dispatch/engines/tools-engine.d.ts +270 -0
- package/dist/dispatch/engines/tools-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/tools-engine.js +636 -0
- package/dist/dispatch/engines/tools-engine.js.map +1 -0
- package/dist/dispatch/engines/validate-engine.d.ts +154 -0
- package/dist/dispatch/engines/validate-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/validate-engine.js +524 -0
- package/dist/dispatch/engines/validate-engine.js.map +1 -0
- package/dist/dispatch/index.d.ts +20 -0
- package/dist/dispatch/index.d.ts.map +1 -0
- package/dist/dispatch/index.js +19 -0
- package/dist/dispatch/index.js.map +1 -0
- package/dist/dispatch/lib/capability-matrix.d.ts +11 -0
- package/dist/dispatch/lib/capability-matrix.d.ts.map +1 -0
- package/dist/dispatch/lib/capability-matrix.js +10 -0
- package/dist/dispatch/lib/capability-matrix.js.map +1 -0
- package/dist/dispatch/lib/config.d.ts +16 -0
- package/dist/dispatch/lib/config.d.ts.map +1 -0
- package/dist/dispatch/lib/config.js +15 -0
- package/dist/dispatch/lib/config.js.map +1 -0
- package/dist/dispatch/lib/engine.d.ts +25 -0
- package/dist/dispatch/lib/engine.d.ts.map +1 -0
- package/dist/dispatch/lib/engine.js +44 -0
- package/dist/dispatch/lib/engine.js.map +1 -0
- package/dist/dispatch/lib/meta.d.ts +26 -0
- package/dist/dispatch/lib/meta.d.ts.map +1 -0
- package/dist/dispatch/lib/meta.js +37 -0
- package/dist/dispatch/lib/meta.js.map +1 -0
- package/dist/dispatch/lib/param-utils.d.ts +11 -0
- package/dist/dispatch/lib/param-utils.d.ts.map +1 -0
- package/dist/dispatch/lib/param-utils.js +10 -0
- package/dist/dispatch/lib/param-utils.js.map +1 -0
- package/dist/dispatch/lib/projections.d.ts +23 -0
- package/dist/dispatch/lib/projections.d.ts.map +1 -0
- package/dist/dispatch/lib/projections.js +48 -0
- package/dist/dispatch/lib/projections.js.map +1 -0
- package/dist/dispatch/lib/schema-utils.d.ts +42 -0
- package/dist/dispatch/lib/schema-utils.d.ts.map +1 -0
- package/dist/dispatch/lib/schema-utils.js +93 -0
- package/dist/dispatch/lib/schema-utils.js.map +1 -0
- package/dist/dispatch/lib/security.d.ts +11 -0
- package/dist/dispatch/lib/security.d.ts.map +1 -0
- package/dist/dispatch/lib/security.js +10 -0
- package/dist/dispatch/lib/security.js.map +1 -0
- package/dist/dispatch/middleware/audit.d.ts +23 -0
- package/dist/dispatch/middleware/audit.d.ts.map +1 -0
- package/dist/dispatch/middleware/audit.js +169 -0
- package/dist/dispatch/middleware/audit.js.map +1 -0
- package/dist/dispatch/middleware/field-filter.d.ts +24 -0
- package/dist/dispatch/middleware/field-filter.d.ts.map +1 -0
- package/dist/dispatch/middleware/field-filter.js +65 -0
- package/dist/dispatch/middleware/field-filter.js.map +1 -0
- package/dist/dispatch/middleware/pipeline.d.ts +20 -0
- package/dist/dispatch/middleware/pipeline.d.ts.map +1 -0
- package/dist/dispatch/middleware/pipeline.js +47 -0
- package/dist/dispatch/middleware/pipeline.js.map +1 -0
- package/dist/dispatch/middleware/projection.d.ts +35 -0
- package/dist/dispatch/middleware/projection.d.ts.map +1 -0
- package/dist/dispatch/middleware/projection.js +145 -0
- package/dist/dispatch/middleware/projection.js.map +1 -0
- package/dist/dispatch/middleware/protocol-enforcement.d.ts +12 -0
- package/dist/dispatch/middleware/protocol-enforcement.d.ts.map +1 -0
- package/dist/dispatch/middleware/protocol-enforcement.js +30 -0
- package/dist/dispatch/middleware/protocol-enforcement.js.map +1 -0
- package/dist/dispatch/middleware/rate-limiter.d.ts +30 -0
- package/dist/dispatch/middleware/rate-limiter.d.ts.map +1 -0
- package/dist/dispatch/middleware/rate-limiter.js +101 -0
- package/dist/dispatch/middleware/rate-limiter.js.map +1 -0
- package/dist/dispatch/middleware/sanitizer.d.ts +10 -0
- package/dist/dispatch/middleware/sanitizer.d.ts.map +1 -0
- package/dist/dispatch/middleware/sanitizer.js +42 -0
- package/dist/dispatch/middleware/sanitizer.js.map +1 -0
- package/dist/dispatch/middleware/session-resolver.d.ts +26 -0
- package/dist/dispatch/middleware/session-resolver.d.ts.map +1 -0
- package/dist/dispatch/middleware/session-resolver.js +65 -0
- package/dist/dispatch/middleware/session-resolver.js.map +1 -0
- package/dist/dispatch/middleware/verification-gates.d.ts +3 -0
- package/dist/dispatch/middleware/verification-gates.d.ts.map +1 -0
- package/dist/dispatch/middleware/verification-gates.js +40 -0
- package/dist/dispatch/middleware/verification-gates.js.map +1 -0
- package/dist/dispatch/registry.d.ts +91 -0
- package/dist/dispatch/registry.d.ts.map +1 -0
- package/dist/dispatch/registry.js +2833 -0
- package/dist/dispatch/registry.js.map +1 -0
- package/dist/dispatch/types.d.ts +218 -0
- package/dist/dispatch/types.d.ts.map +1 -0
- package/dist/dispatch/types.js +25 -0
- package/dist/dispatch/types.js.map +1 -0
- package/dist/mcp/gateways/mutate.d.ts +146 -0
- package/dist/mcp/gateways/mutate.d.ts.map +1 -0
- package/dist/mcp/gateways/mutate.js +1016 -0
- package/dist/mcp/gateways/mutate.js.map +1 -0
- package/dist/mcp/gateways/query.d.ts +138 -0
- package/dist/mcp/gateways/query.d.ts.map +1 -0
- package/dist/mcp/gateways/query.js +186 -0
- package/dist/mcp/gateways/query.js.map +1 -0
- package/dist/mcp/index.d.ts +16 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +233 -38
- package/dist/mcp/index.js.map +3 -3
- package/dist/mcp/lib/background-jobs.d.ts +86 -0
- package/dist/mcp/lib/background-jobs.d.ts.map +1 -0
- package/dist/mcp/lib/background-jobs.js +183 -0
- package/dist/mcp/lib/background-jobs.js.map +1 -0
- package/dist/mcp/lib/budget.d.ts +35 -0
- package/dist/mcp/lib/budget.d.ts.map +1 -0
- package/dist/mcp/lib/budget.js +102 -0
- package/dist/mcp/lib/budget.js.map +1 -0
- package/dist/mcp/lib/cache.d.ts +78 -0
- package/dist/mcp/lib/cache.d.ts.map +1 -0
- package/dist/mcp/lib/cache.js +207 -0
- package/dist/mcp/lib/cache.js.map +1 -0
- package/dist/mcp/lib/config.d.ts +42 -0
- package/dist/mcp/lib/config.d.ts.map +1 -0
- package/dist/mcp/lib/config.js +241 -0
- package/dist/mcp/lib/config.js.map +1 -0
- package/dist/mcp/lib/defaults.d.ts +115 -0
- package/dist/mcp/lib/defaults.d.ts.map +1 -0
- package/dist/mcp/lib/defaults.js +61 -0
- package/dist/mcp/lib/defaults.js.map +1 -0
- package/dist/mcp/lib/gate-validators.d.ts +13 -0
- package/dist/mcp/lib/gate-validators.d.ts.map +1 -0
- package/dist/mcp/lib/gate-validators.js +13 -0
- package/dist/mcp/lib/gate-validators.js.map +1 -0
- package/dist/mcp/lib/gateway-meta.d.ts +37 -0
- package/dist/mcp/lib/gateway-meta.d.ts.map +1 -0
- package/dist/mcp/lib/gateway-meta.js +50 -0
- package/dist/mcp/lib/gateway-meta.js.map +1 -0
- package/dist/mcp/lib/job-manager-accessor.d.ts +10 -0
- package/dist/mcp/lib/job-manager-accessor.d.ts.map +1 -0
- package/dist/mcp/lib/job-manager-accessor.js +14 -0
- package/dist/mcp/lib/job-manager-accessor.js.map +1 -0
- package/dist/mcp/lib/protocol-enforcement.d.ts +12 -0
- package/dist/mcp/lib/protocol-enforcement.d.ts.map +1 -0
- package/dist/mcp/lib/protocol-enforcement.js +12 -0
- package/dist/mcp/lib/protocol-enforcement.js.map +1 -0
- package/dist/mcp/lib/protocol-rules.d.ts +12 -0
- package/dist/mcp/lib/protocol-rules.d.ts.map +1 -0
- package/dist/mcp/lib/protocol-rules.js +12 -0
- package/dist/mcp/lib/protocol-rules.js.map +1 -0
- package/dist/mcp/lib/rate-limiter.d.ts +110 -0
- package/dist/mcp/lib/rate-limiter.d.ts.map +1 -0
- package/dist/mcp/lib/rate-limiter.js +208 -0
- package/dist/mcp/lib/rate-limiter.js.map +1 -0
- package/dist/mcp/lib/router.d.ts +58 -0
- package/dist/mcp/lib/router.d.ts.map +1 -0
- package/dist/mcp/lib/router.js +12 -0
- package/dist/mcp/lib/router.js.map +1 -0
- package/dist/mcp/lib/security.d.ts +161 -0
- package/dist/mcp/lib/security.d.ts.map +1 -0
- package/dist/mcp/lib/security.js +360 -0
- package/dist/mcp/lib/security.js.map +1 -0
- package/dist/mcp/lib/verification-gates.d.ts +13 -0
- package/dist/mcp/lib/verification-gates.d.ts.map +1 -0
- package/dist/mcp/lib/verification-gates.js +12 -0
- package/dist/mcp/lib/verification-gates.js.map +1 -0
- package/dist/mcp/resources/budget.d.ts +22 -0
- package/dist/mcp/resources/budget.d.ts.map +1 -0
- package/dist/mcp/resources/budget.js +46 -0
- package/dist/mcp/resources/budget.js.map +1 -0
- package/dist/mcp/resources/index.d.ts +53 -0
- package/dist/mcp/resources/index.d.ts.map +1 -0
- package/dist/mcp/resources/index.js +278 -0
- package/dist/mcp/resources/index.js.map +1 -0
- package/package.json +3 -3
package/dist/cli/index.js
CHANGED
|
@@ -11229,16 +11229,33 @@ function runMigrations(nativeDb, db) {
|
|
|
11229
11229
|
);
|
|
11230
11230
|
}
|
|
11231
11231
|
}
|
|
11232
|
-
|
|
11232
|
+
if (tableExists3(nativeDb, "__drizzle_migrations") && tableExists3(nativeDb, "tasks")) {
|
|
11233
|
+
const localMigrations = readMigrationFiles({ migrationsFolder });
|
|
11234
|
+
const localHashes = new Set(localMigrations.map((m) => m.hash));
|
|
11235
|
+
const dbEntries = nativeDb.prepare('SELECT hash FROM "__drizzle_migrations"').all();
|
|
11236
|
+
const hasOrphanedEntries = dbEntries.some((e) => !localHashes.has(e.hash));
|
|
11237
|
+
if (hasOrphanedEntries) {
|
|
11238
|
+
const log11 = getLogger("sqlite");
|
|
11239
|
+
log11.warn(
|
|
11240
|
+
{ orphaned: dbEntries.filter((e) => !localHashes.has(e.hash)).length },
|
|
11241
|
+
"Detected stale migration journal entries from a previous CLEO version. Reconciling."
|
|
11242
|
+
);
|
|
11243
|
+
nativeDb.exec('DELETE FROM "__drizzle_migrations"');
|
|
11244
|
+
for (const m of localMigrations) {
|
|
11245
|
+
nativeDb.exec(
|
|
11246
|
+
`INSERT INTO "__drizzle_migrations" ("hash", "created_at") VALUES ('${m.hash}', ${m.folderMillis})`
|
|
11247
|
+
);
|
|
11248
|
+
}
|
|
11249
|
+
}
|
|
11250
|
+
}
|
|
11233
11251
|
for (let attempt = 1; attempt <= MAX_MIGRATION_RETRIES; attempt++) {
|
|
11234
11252
|
try {
|
|
11235
11253
|
migrate(db, { migrationsFolder });
|
|
11236
|
-
|
|
11254
|
+
break;
|
|
11237
11255
|
} catch (err) {
|
|
11238
11256
|
if (!isSqliteBusy(err) || attempt === MAX_MIGRATION_RETRIES) {
|
|
11239
11257
|
throw err;
|
|
11240
11258
|
}
|
|
11241
|
-
lastError = err;
|
|
11242
11259
|
const delay = Math.min(
|
|
11243
11260
|
MIGRATION_RETRY_BASE_DELAY_MS * 2 ** (attempt - 1) * (1 + Math.random() * 0.5),
|
|
11244
11261
|
MIGRATION_RETRY_MAX_DELAY_MS
|
|
@@ -11246,7 +11263,19 @@ function runMigrations(nativeDb, db) {
|
|
|
11246
11263
|
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, Math.round(delay));
|
|
11247
11264
|
}
|
|
11248
11265
|
}
|
|
11249
|
-
|
|
11266
|
+
ensureRequiredColumns(nativeDb);
|
|
11267
|
+
}
|
|
11268
|
+
function ensureRequiredColumns(nativeDb) {
|
|
11269
|
+
if (!tableExists3(nativeDb, "tasks")) return;
|
|
11270
|
+
const columns = nativeDb.prepare("PRAGMA table_info(tasks)").all();
|
|
11271
|
+
const existingCols = new Set(columns.map((c) => c.name));
|
|
11272
|
+
for (const req of REQUIRED_TASK_COLUMNS) {
|
|
11273
|
+
if (!existingCols.has(req.name)) {
|
|
11274
|
+
const log11 = getLogger("sqlite");
|
|
11275
|
+
log11.warn({ column: req.name }, `Adding missing column tasks.${req.name} via ALTER TABLE`);
|
|
11276
|
+
nativeDb.exec(`ALTER TABLE tasks ADD COLUMN ${req.name} ${req.ddl}`);
|
|
11277
|
+
}
|
|
11278
|
+
}
|
|
11250
11279
|
}
|
|
11251
11280
|
function closeDb() {
|
|
11252
11281
|
if (_nativeDb2) {
|
|
@@ -11303,7 +11332,7 @@ async function closeAllDatabases() {
|
|
|
11303
11332
|
} catch {
|
|
11304
11333
|
}
|
|
11305
11334
|
}
|
|
11306
|
-
var _require2, DatabaseSync2, DB_FILENAME3, SQLITE_SCHEMA_VERSION, SCHEMA_VERSION, _db2, _nativeDb2, _dbPath2, _initPromise2, _gitTrackingChecked, MIN_BACKUP_TASK_COUNT, MAX_MIGRATION_RETRIES, MIGRATION_RETRY_BASE_DELAY_MS, MIGRATION_RETRY_MAX_DELAY_MS;
|
|
11335
|
+
var _require2, DatabaseSync2, DB_FILENAME3, SQLITE_SCHEMA_VERSION, SCHEMA_VERSION, _db2, _nativeDb2, _dbPath2, _initPromise2, _gitTrackingChecked, MIN_BACKUP_TASK_COUNT, MAX_MIGRATION_RETRIES, MIGRATION_RETRY_BASE_DELAY_MS, MIGRATION_RETRY_MAX_DELAY_MS, REQUIRED_TASK_COLUMNS;
|
|
11307
11336
|
var init_sqlite2 = __esm({
|
|
11308
11337
|
"packages/core/src/store/sqlite.ts"() {
|
|
11309
11338
|
"use strict";
|
|
@@ -11328,6 +11357,9 @@ var init_sqlite2 = __esm({
|
|
|
11328
11357
|
MAX_MIGRATION_RETRIES = 5;
|
|
11329
11358
|
MIGRATION_RETRY_BASE_DELAY_MS = 100;
|
|
11330
11359
|
MIGRATION_RETRY_MAX_DELAY_MS = 2e3;
|
|
11360
|
+
REQUIRED_TASK_COLUMNS = [
|
|
11361
|
+
{ name: "pipeline_stage", ddl: "text" }
|
|
11362
|
+
];
|
|
11331
11363
|
}
|
|
11332
11364
|
});
|
|
11333
11365
|
|
|
@@ -35862,6 +35894,7 @@ import { execFile as execFile3 } from "node:child_process";
|
|
|
35862
35894
|
import { randomUUID } from "node:crypto";
|
|
35863
35895
|
import { existsSync as existsSync34, constants as fsConstants3, readFileSync as readFileSync22, statSync as statSync8 } from "node:fs";
|
|
35864
35896
|
import { access as access3, mkdir as mkdir5, readFile as readFile6, rm as rm2, writeFile as writeFile5 } from "node:fs/promises";
|
|
35897
|
+
import { homedir as getHomedir } from "node:os";
|
|
35865
35898
|
import { dirname as dirname8, join as join37, resolve as resolve5 } from "node:path";
|
|
35866
35899
|
import { fileURLToPath as fileURLToPath4 } from "node:url";
|
|
35867
35900
|
import { promisify as promisify3 } from "node:util";
|
|
@@ -36673,12 +36706,30 @@ function checkGlobalTemplates() {
|
|
|
36673
36706
|
fix: "cleo init (or restart MCP server)"
|
|
36674
36707
|
};
|
|
36675
36708
|
}
|
|
36709
|
+
const xdgContent = readFileSync22(injectionPath, "utf-8");
|
|
36710
|
+
const xdgVersion = xdgContent.match(/^Version:\s*(.+)$/m)?.[1]?.trim();
|
|
36711
|
+
const home = getHomedir();
|
|
36712
|
+
const legacyPath = join37(home, ".cleo", "templates", "CLEO-INJECTION.md");
|
|
36713
|
+
if (existsSync34(legacyPath)) {
|
|
36714
|
+
const legacyContent = readFileSync22(legacyPath, "utf-8");
|
|
36715
|
+
const legacyVersion = legacyContent.match(/^Version:\s*(.+)$/m)?.[1]?.trim();
|
|
36716
|
+
if (legacyVersion && xdgVersion && legacyVersion !== xdgVersion) {
|
|
36717
|
+
return {
|
|
36718
|
+
id: "global_templates",
|
|
36719
|
+
category: "global",
|
|
36720
|
+
status: "warning",
|
|
36721
|
+
message: `Legacy template version (${legacyVersion}) out of sync with XDG (${xdgVersion})`,
|
|
36722
|
+
details: { path: injectionPath, exists: true, xdgVersion, legacyVersion, legacyPath },
|
|
36723
|
+
fix: "npm install -g @cleocode/cleo (reinstall syncs both paths)"
|
|
36724
|
+
};
|
|
36725
|
+
}
|
|
36726
|
+
}
|
|
36676
36727
|
return {
|
|
36677
36728
|
id: "global_templates",
|
|
36678
36729
|
category: "global",
|
|
36679
36730
|
status: "passed",
|
|
36680
|
-
message:
|
|
36681
|
-
details: { path: injectionPath, exists: true },
|
|
36731
|
+
message: `Global injection template present (v${xdgVersion ?? "unknown"})`,
|
|
36732
|
+
details: { path: injectionPath, exists: true, version: xdgVersion },
|
|
36682
36733
|
fix: null
|
|
36683
36734
|
};
|
|
36684
36735
|
}
|
|
@@ -66979,45 +67030,67 @@ async function bootstrapGlobalCleo(options) {
|
|
|
66979
67030
|
await installSkillsGlobally(ctx);
|
|
66980
67031
|
await installAgentDefinitionGlobally(ctx);
|
|
66981
67032
|
await installProviderAdapters(ctx, options?.packageRoot);
|
|
67033
|
+
await verifyBootstrapHealth(ctx);
|
|
66982
67034
|
return ctx;
|
|
66983
67035
|
}
|
|
67036
|
+
async function writeTemplateTo(content, destPath, isDryRun) {
|
|
67037
|
+
if (isDryRun) return false;
|
|
67038
|
+
const { dirname: dirname25 } = await import("node:path");
|
|
67039
|
+
await mkdir17(dirname25(destPath), { recursive: true });
|
|
67040
|
+
await writeFile12(destPath, content);
|
|
67041
|
+
return true;
|
|
67042
|
+
}
|
|
66984
67043
|
async function ensureGlobalTemplatesBootstrap(ctx, packageRootOverride) {
|
|
66985
67044
|
const globalTemplatesDir = getCleoTemplatesDir();
|
|
66986
67045
|
if (!ctx.isDryRun) {
|
|
66987
67046
|
await mkdir17(globalTemplatesDir, { recursive: true });
|
|
66988
67047
|
}
|
|
67048
|
+
let templateContent = null;
|
|
66989
67049
|
try {
|
|
66990
67050
|
const pkgRoot = packageRootOverride ?? getPackageRoot();
|
|
66991
67051
|
const templatePath = join104(pkgRoot, "templates", "CLEO-INJECTION.md");
|
|
66992
67052
|
if (existsSync104(templatePath)) {
|
|
66993
|
-
|
|
66994
|
-
const destPath = join104(globalTemplatesDir, "CLEO-INJECTION.md");
|
|
66995
|
-
if (!ctx.isDryRun) {
|
|
66996
|
-
await writeFile12(destPath, content);
|
|
66997
|
-
}
|
|
66998
|
-
ctx.created.push(
|
|
66999
|
-
`~/.cleo/templates/CLEO-INJECTION.md (${ctx.isDryRun ? "would refresh" : "refreshed"})`
|
|
67000
|
-
);
|
|
67001
|
-
} else {
|
|
67002
|
-
try {
|
|
67003
|
-
const { getInjectionTemplateContent: getInjectionTemplateContent2 } = await Promise.resolve().then(() => (init_injection(), injection_exports));
|
|
67004
|
-
const content = getInjectionTemplateContent2();
|
|
67005
|
-
if (content) {
|
|
67006
|
-
const destPath = join104(globalTemplatesDir, "CLEO-INJECTION.md");
|
|
67007
|
-
if (!ctx.isDryRun) {
|
|
67008
|
-
await writeFile12(destPath, content);
|
|
67009
|
-
}
|
|
67010
|
-
ctx.created.push(
|
|
67011
|
-
`~/.cleo/templates/CLEO-INJECTION.md (${ctx.isDryRun ? "would refresh" : "refreshed"} from embedded)`
|
|
67012
|
-
);
|
|
67013
|
-
}
|
|
67014
|
-
} catch {
|
|
67015
|
-
ctx.warnings.push("Could not refresh CLEO-INJECTION.md template");
|
|
67016
|
-
}
|
|
67053
|
+
templateContent = readFileSync77(templatePath, "utf-8");
|
|
67017
67054
|
}
|
|
67018
67055
|
} catch {
|
|
67056
|
+
}
|
|
67057
|
+
if (!templateContent) {
|
|
67058
|
+
try {
|
|
67059
|
+
const { getInjectionTemplateContent: getInjectionTemplateContent2 } = await Promise.resolve().then(() => (init_injection(), injection_exports));
|
|
67060
|
+
templateContent = getInjectionTemplateContent2() ?? null;
|
|
67061
|
+
} catch {
|
|
67062
|
+
ctx.warnings.push("Could not refresh CLEO-INJECTION.md template");
|
|
67063
|
+
return;
|
|
67064
|
+
}
|
|
67065
|
+
}
|
|
67066
|
+
if (!templateContent) {
|
|
67019
67067
|
ctx.warnings.push("Could not refresh CLEO-INJECTION.md template");
|
|
67068
|
+
return;
|
|
67020
67069
|
}
|
|
67070
|
+
const xdgDest = join104(globalTemplatesDir, "CLEO-INJECTION.md");
|
|
67071
|
+
const xdgWritten = await writeTemplateTo(templateContent, xdgDest, ctx.isDryRun);
|
|
67072
|
+
ctx.created.push(
|
|
67073
|
+
`${getCleoTemplatesTildePath()}/CLEO-INJECTION.md (${xdgWritten ? "refreshed" : "would refresh"})`
|
|
67074
|
+
);
|
|
67075
|
+
const home = homedir6();
|
|
67076
|
+
const legacyTemplatesDir = join104(home, ".cleo", "templates");
|
|
67077
|
+
if (legacyTemplatesDir !== globalTemplatesDir && existsSync104(join104(home, ".cleo"))) {
|
|
67078
|
+
const legacyDest = join104(legacyTemplatesDir, "CLEO-INJECTION.md");
|
|
67079
|
+
const legacyWritten = await writeTemplateTo(templateContent, legacyDest, ctx.isDryRun);
|
|
67080
|
+
if (legacyWritten) {
|
|
67081
|
+
ctx.created.push("~/.cleo/templates/CLEO-INJECTION.md (legacy sync)");
|
|
67082
|
+
}
|
|
67083
|
+
}
|
|
67084
|
+
}
|
|
67085
|
+
function sanitizeCaampFile(content) {
|
|
67086
|
+
let cleaned = content.replace(/(<!-- CAAMP:END -->)\s*(<!-- CAAMP:END -->)/g, "$1");
|
|
67087
|
+
cleaned = cleaned.replace(
|
|
67088
|
+
/<!-- CAAMP:END -->\s*[A-Z][A-Za-z-]*\.md\s*(?:<!-- CAAMP:END -->)?/g,
|
|
67089
|
+
"<!-- CAAMP:END -->"
|
|
67090
|
+
);
|
|
67091
|
+
cleaned = cleaned.replace(/^[A-Z][A-Za-z-]*\.md\s*$/gm, "");
|
|
67092
|
+
cleaned = cleaned.replace(/\n{3,}/g, "\n\n");
|
|
67093
|
+
return cleaned.trim() + "\n";
|
|
67021
67094
|
}
|
|
67022
67095
|
async function injectAgentsHub(ctx) {
|
|
67023
67096
|
const globalAgentsDir = getAgentsHome();
|
|
@@ -67032,13 +67105,23 @@ async function injectAgentsHub(ctx) {
|
|
|
67032
67105
|
/\n?<!-- CLEO:START[^>]*-->[\s\S]*?<!-- CLEO:END -->\n?/g,
|
|
67033
67106
|
""
|
|
67034
67107
|
);
|
|
67035
|
-
|
|
67036
|
-
|
|
67108
|
+
const sanitized = sanitizeCaampFile(stripped);
|
|
67109
|
+
if (sanitized !== content) {
|
|
67110
|
+
await writeFile12(globalAgentsMd, sanitized, "utf8");
|
|
67111
|
+
ctx.created.push("~/.agents/AGENTS.md (sanitized CAAMP corruption)");
|
|
67037
67112
|
}
|
|
67038
67113
|
}
|
|
67039
67114
|
const templateRef = `@${getCleoTemplatesTildePath()}/CLEO-INJECTION.md`;
|
|
67040
67115
|
const action = await inject2(globalAgentsMd, templateRef);
|
|
67041
67116
|
ctx.created.push(`~/.agents/AGENTS.md (${action})`);
|
|
67117
|
+
const postContent = await readFile19(globalAgentsMd, "utf8");
|
|
67118
|
+
const caampBlocks = postContent.match(/<!-- CAAMP:START -->/g);
|
|
67119
|
+
const caampEnds = postContent.match(/<!-- CAAMP:END -->/g);
|
|
67120
|
+
if (caampBlocks && caampEnds && caampBlocks.length !== caampEnds.length) {
|
|
67121
|
+
ctx.warnings.push(
|
|
67122
|
+
`~/.agents/AGENTS.md has mismatched CAAMP markers (${caampBlocks.length} START vs ${caampEnds.length} END)`
|
|
67123
|
+
);
|
|
67124
|
+
}
|
|
67042
67125
|
} else {
|
|
67043
67126
|
ctx.created.push("~/.agents/AGENTS.md (would create/update CAAMP block)");
|
|
67044
67127
|
}
|
|
@@ -67172,6 +67255,45 @@ async function installProviderAdapters(ctx, packageRootOverride) {
|
|
|
67172
67255
|
);
|
|
67173
67256
|
}
|
|
67174
67257
|
}
|
|
67258
|
+
async function verifyBootstrapHealth(ctx) {
|
|
67259
|
+
if (ctx.isDryRun) return;
|
|
67260
|
+
try {
|
|
67261
|
+
const xdgTemplatePath = join104(getCleoTemplatesDir(), "CLEO-INJECTION.md");
|
|
67262
|
+
const agentsMd = join104(getAgentsHome(), "AGENTS.md");
|
|
67263
|
+
if (!existsSync104(xdgTemplatePath)) {
|
|
67264
|
+
ctx.warnings.push("Health: XDG template missing after bootstrap");
|
|
67265
|
+
return;
|
|
67266
|
+
}
|
|
67267
|
+
const xdgContent = await readFile19(xdgTemplatePath, "utf8");
|
|
67268
|
+
const xdgVersion = xdgContent.match(/^Version:\s*(.+)$/m)?.[1]?.trim();
|
|
67269
|
+
const home = homedir6();
|
|
67270
|
+
const legacyTemplatePath = join104(home, ".cleo", "templates", "CLEO-INJECTION.md");
|
|
67271
|
+
if (existsSync104(legacyTemplatePath)) {
|
|
67272
|
+
const legacyContent = await readFile19(legacyTemplatePath, "utf8");
|
|
67273
|
+
const legacyVersion = legacyContent.match(/^Version:\s*(.+)$/m)?.[1]?.trim();
|
|
67274
|
+
if (legacyVersion !== xdgVersion) {
|
|
67275
|
+
ctx.warnings.push(
|
|
67276
|
+
`Health: Legacy template version (${legacyVersion}) != XDG version (${xdgVersion})`
|
|
67277
|
+
);
|
|
67278
|
+
}
|
|
67279
|
+
}
|
|
67280
|
+
if (existsSync104(agentsMd)) {
|
|
67281
|
+
const agentsContent = await readFile19(agentsMd, "utf8");
|
|
67282
|
+
const expectedRef = `@${getCleoTemplatesTildePath()}/CLEO-INJECTION.md`;
|
|
67283
|
+
if (!agentsContent.includes(expectedRef)) {
|
|
67284
|
+
ctx.warnings.push(`Health: ~/.agents/AGENTS.md does not reference ${expectedRef}`);
|
|
67285
|
+
}
|
|
67286
|
+
const outsideCaamp = agentsContent.replace(
|
|
67287
|
+
/<!-- CAAMP:START -->[\s\S]*?<!-- CAAMP:END -->/g,
|
|
67288
|
+
""
|
|
67289
|
+
);
|
|
67290
|
+
if (/[A-Z][A-Za-z-]*\.md/.test(outsideCaamp)) {
|
|
67291
|
+
ctx.warnings.push("Health: ~/.agents/AGENTS.md has orphaned content outside CAAMP blocks");
|
|
67292
|
+
}
|
|
67293
|
+
}
|
|
67294
|
+
} catch {
|
|
67295
|
+
}
|
|
67296
|
+
}
|
|
67175
67297
|
var init_bootstrap = __esm({
|
|
67176
67298
|
"packages/core/src/bootstrap.ts"() {
|
|
67177
67299
|
"use strict";
|
|
@@ -67188,6 +67310,8 @@ var init_cleo = __esm({
|
|
|
67188
67310
|
"use strict";
|
|
67189
67311
|
init_export();
|
|
67190
67312
|
init_import();
|
|
67313
|
+
init_agents();
|
|
67314
|
+
init_intelligence();
|
|
67191
67315
|
init_lifecycle2();
|
|
67192
67316
|
init_brain_retrieval();
|
|
67193
67317
|
init_brain_search();
|
|
@@ -67202,6 +67326,7 @@ var init_cleo = __esm({
|
|
|
67202
67326
|
init_sessions();
|
|
67203
67327
|
init_sticky();
|
|
67204
67328
|
init_data_accessor();
|
|
67329
|
+
init_task_work();
|
|
67205
67330
|
init_add();
|
|
67206
67331
|
init_archive2();
|
|
67207
67332
|
init_complete();
|
|
@@ -67273,7 +67398,10 @@ var init_cleo = __esm({
|
|
|
67273
67398
|
),
|
|
67274
67399
|
complete: (p) => completeTask({ taskId: p.taskId, notes: p.notes }, root, store),
|
|
67275
67400
|
delete: (p) => deleteTask({ taskId: p.taskId, force: p.force }, root, store),
|
|
67276
|
-
archive: (p) => archiveTasks({ before: p?.before, taskIds: p?.taskIds, dryRun: p?.dryRun }, root, store)
|
|
67401
|
+
archive: (p) => archiveTasks({ before: p?.before, taskIds: p?.taskIds, dryRun: p?.dryRun }, root, store),
|
|
67402
|
+
start: (taskId) => startTask(taskId, root, store),
|
|
67403
|
+
stop: () => stopTask(root, store),
|
|
67404
|
+
current: () => currentTask(root, store)
|
|
67277
67405
|
};
|
|
67278
67406
|
}
|
|
67279
67407
|
// === Sessions ===
|
|
@@ -67281,7 +67409,11 @@ var init_cleo = __esm({
|
|
|
67281
67409
|
const root = this.projectRoot;
|
|
67282
67410
|
const store = this._store ?? void 0;
|
|
67283
67411
|
return {
|
|
67284
|
-
start: (p) => startSession(
|
|
67412
|
+
start: (p) => startSession(
|
|
67413
|
+
{ name: p.name, scope: p.scope, agent: p.agent, startTask: p.startTask },
|
|
67414
|
+
root,
|
|
67415
|
+
store
|
|
67416
|
+
),
|
|
67285
67417
|
end: (p) => endSession({ note: p?.note }, root, store),
|
|
67286
67418
|
status: () => sessionStatus(root, store),
|
|
67287
67419
|
resume: (id) => resumeSession(id, root, store),
|
|
@@ -67419,6 +67551,35 @@ var init_cleo = __esm({
|
|
|
67419
67551
|
sharingStatus: () => getSharingStatus()
|
|
67420
67552
|
};
|
|
67421
67553
|
}
|
|
67554
|
+
// === Agents ===
|
|
67555
|
+
get agents() {
|
|
67556
|
+
const root = this.projectRoot;
|
|
67557
|
+
return {
|
|
67558
|
+
register: (opts) => registerAgent(opts, root),
|
|
67559
|
+
deregister: (agentId) => deregisterAgent(agentId, root),
|
|
67560
|
+
health: (agentId) => checkAgentHealth2(agentId, void 0, root),
|
|
67561
|
+
detectCrashed: (thresholdMs) => detectCrashedAgents(thresholdMs, root),
|
|
67562
|
+
recordHeartbeat: (agentId) => heartbeat(agentId, root),
|
|
67563
|
+
capacity: (agentId) => getAgentCapacity(agentId, root),
|
|
67564
|
+
isOverloaded: (threshold) => isOverloaded(threshold, root),
|
|
67565
|
+
list: (p) => listAgentInstances(
|
|
67566
|
+
{
|
|
67567
|
+
status: p?.status,
|
|
67568
|
+
agentType: p?.agentType
|
|
67569
|
+
},
|
|
67570
|
+
root
|
|
67571
|
+
)
|
|
67572
|
+
};
|
|
67573
|
+
}
|
|
67574
|
+
// === Intelligence ===
|
|
67575
|
+
get intelligence() {
|
|
67576
|
+
const root = this.projectRoot;
|
|
67577
|
+
const store = this._store ?? void 0;
|
|
67578
|
+
return {
|
|
67579
|
+
predictImpact: (change) => predictImpact(change, root, store ?? void 0),
|
|
67580
|
+
blastRadius: (taskId) => calculateBlastRadius(taskId, store ?? void 0, root)
|
|
67581
|
+
};
|
|
67582
|
+
}
|
|
67422
67583
|
// === Sync (Task Reconciliation) ===
|
|
67423
67584
|
get sync() {
|
|
67424
67585
|
const root = this.projectRoot;
|
|
@@ -74504,6 +74665,7 @@ var init_migration_sqlite = __esm({
|
|
|
74504
74665
|
// packages/core/src/repair.ts
|
|
74505
74666
|
var repair_exports = {};
|
|
74506
74667
|
__export(repair_exports, {
|
|
74668
|
+
repairMissingColumns: () => repairMissingColumns,
|
|
74507
74669
|
repairMissingCompletedAt: () => repairMissingCompletedAt,
|
|
74508
74670
|
repairMissingSizes: () => repairMissingSizes,
|
|
74509
74671
|
runAllRepairs: () => runAllRepairs
|
|
@@ -74567,12 +74729,43 @@ async function repairMissingCompletedAt(cwd, dryRun) {
|
|
|
74567
74729
|
details: `Set completedAt for ${affected.length} done/cancelled task(s)`
|
|
74568
74730
|
};
|
|
74569
74731
|
}
|
|
74732
|
+
async function repairMissingColumns(cwd, dryRun) {
|
|
74733
|
+
const { getDb: getDb4 } = await Promise.resolve().then(() => (init_sqlite2(), sqlite_exports));
|
|
74734
|
+
const db = await getDb4(cwd);
|
|
74735
|
+
const { sql: sql12 } = await import("drizzle-orm");
|
|
74736
|
+
const columns = db.all(sql12`PRAGMA table_info(tasks)`);
|
|
74737
|
+
const existingCols = new Set(columns.map((c) => c.name));
|
|
74738
|
+
const missingCols = ["pipeline_stage"].filter((c) => !existingCols.has(c));
|
|
74739
|
+
if (missingCols.length === 0) {
|
|
74740
|
+
return {
|
|
74741
|
+
action: "fix_missing_columns",
|
|
74742
|
+
status: "skipped",
|
|
74743
|
+
details: "All required columns present on tasks table"
|
|
74744
|
+
};
|
|
74745
|
+
}
|
|
74746
|
+
if (dryRun) {
|
|
74747
|
+
return {
|
|
74748
|
+
action: "fix_missing_columns",
|
|
74749
|
+
status: "preview",
|
|
74750
|
+
details: `Would add missing column(s): ${missingCols.join(", ")}`
|
|
74751
|
+
};
|
|
74752
|
+
}
|
|
74753
|
+
for (const col of missingCols) {
|
|
74754
|
+
db.run(sql12.raw(`ALTER TABLE tasks ADD COLUMN ${col} text`));
|
|
74755
|
+
}
|
|
74756
|
+
return {
|
|
74757
|
+
action: "fix_missing_columns",
|
|
74758
|
+
status: "applied",
|
|
74759
|
+
details: `Added missing column(s): ${missingCols.join(", ")}`
|
|
74760
|
+
};
|
|
74761
|
+
}
|
|
74570
74762
|
async function runAllRepairs(cwd, dryRun) {
|
|
74571
|
-
const [sizes, completedAt] = await Promise.all([
|
|
74763
|
+
const [sizes, completedAt, columns] = await Promise.all([
|
|
74572
74764
|
repairMissingSizes(cwd, dryRun),
|
|
74573
|
-
repairMissingCompletedAt(cwd, dryRun)
|
|
74765
|
+
repairMissingCompletedAt(cwd, dryRun),
|
|
74766
|
+
repairMissingColumns(cwd, dryRun)
|
|
74574
74767
|
]);
|
|
74575
|
-
return [sizes, completedAt];
|
|
74768
|
+
return [sizes, completedAt, columns];
|
|
74576
74769
|
}
|
|
74577
74770
|
var init_repair = __esm({
|
|
74578
74771
|
"packages/core/src/repair.ts"() {
|
|
@@ -78188,6 +78381,7 @@ __export(internal_exports, {
|
|
|
78188
78381
|
WorkflowGateTracker: () => WorkflowGateTracker,
|
|
78189
78382
|
adapters: () => adapters_exports,
|
|
78190
78383
|
addChain: () => addChain,
|
|
78384
|
+
addIssue: () => addIssue,
|
|
78191
78385
|
addRemote: () => addRemote,
|
|
78192
78386
|
addSticky: () => addSticky,
|
|
78193
78387
|
addTask: () => addTask,
|
|
@@ -78828,6 +79022,7 @@ var init_internal = __esm({
|
|
|
78828
79022
|
init_impact();
|
|
78829
79023
|
init_patterns2();
|
|
78830
79024
|
init_prediction();
|
|
79025
|
+
init_create();
|
|
78831
79026
|
init_diagnostics();
|
|
78832
79027
|
init_retry2();
|
|
78833
79028
|
init_chain_store();
|
|
@@ -95398,23 +95593,23 @@ function registerIssueCommand(program) {
|
|
|
95398
95593
|
});
|
|
95399
95594
|
}
|
|
95400
95595
|
async function handleIssueType(issueType, opts) {
|
|
95401
|
-
|
|
95402
|
-
|
|
95403
|
-
|
|
95404
|
-
|
|
95405
|
-
|
|
95406
|
-
|
|
95407
|
-
|
|
95408
|
-
|
|
95409
|
-
|
|
95410
|
-
|
|
95411
|
-
|
|
95412
|
-
|
|
95596
|
+
let result;
|
|
95597
|
+
try {
|
|
95598
|
+
result = addIssue({
|
|
95599
|
+
issueType,
|
|
95600
|
+
title: opts["title"],
|
|
95601
|
+
body: opts["body"],
|
|
95602
|
+
severity: opts["severity"],
|
|
95603
|
+
area: opts["area"],
|
|
95604
|
+
dryRun: !!opts["dryRun"]
|
|
95605
|
+
});
|
|
95606
|
+
} catch (err) {
|
|
95607
|
+
console.error(`Failed to create issue: ${err instanceof Error ? err.message : String(err)}`);
|
|
95608
|
+
process.exitCode = 1;
|
|
95413
95609
|
return;
|
|
95414
95610
|
}
|
|
95415
|
-
|
|
95416
|
-
|
|
95417
|
-
const issueNumber = result["url"].match(/(\d+)$/)?.[1] ?? "unknown";
|
|
95611
|
+
if (opts["open"] && typeof result.url === "string" && result.url.startsWith("https://")) {
|
|
95612
|
+
const issueNumber = result.url.match(/(\d+)$/)?.[1] ?? "unknown";
|
|
95418
95613
|
try {
|
|
95419
95614
|
execFileSync15("gh", ["issue", "view", issueNumber, "--repo", CLEO_REPO2, "--web"], {
|
|
95420
95615
|
stdio: ["pipe", "pipe", "pipe"]
|
|
@@ -95422,7 +95617,7 @@ async function handleIssueType(issueType, opts) {
|
|
|
95422
95617
|
} catch {
|
|
95423
95618
|
}
|
|
95424
95619
|
}
|
|
95425
|
-
cliOutput(result, { command: "issue", operation: `tools.${
|
|
95620
|
+
cliOutput(result, { command: "issue", operation: `tools.issue.add.${issueType}` });
|
|
95426
95621
|
}
|
|
95427
95622
|
|
|
95428
95623
|
// packages/cleo/src/cli/commands/labels.ts
|