@cleocode/cleo 2026.3.59 → 2026.3.60
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 +159 -30
- 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 +159 -30
- 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/mcp/index.js
CHANGED
|
@@ -35862,6 +35862,7 @@ import { execFile as execFile3 } from "node:child_process";
|
|
|
35862
35862
|
import { randomUUID } from "node:crypto";
|
|
35863
35863
|
import { existsSync as existsSync34, constants as fsConstants3, readFileSync as readFileSync22, statSync as statSync8 } from "node:fs";
|
|
35864
35864
|
import { access as access3, mkdir as mkdir5, readFile as readFile6, rm as rm2, writeFile as writeFile5 } from "node:fs/promises";
|
|
35865
|
+
import { homedir as getHomedir } from "node:os";
|
|
35865
35866
|
import { dirname as dirname8, join as join37, resolve as resolve5 } from "node:path";
|
|
35866
35867
|
import { fileURLToPath as fileURLToPath4 } from "node:url";
|
|
35867
35868
|
import { promisify as promisify3 } from "node:util";
|
|
@@ -36673,12 +36674,30 @@ function checkGlobalTemplates() {
|
|
|
36673
36674
|
fix: "cleo init (or restart MCP server)"
|
|
36674
36675
|
};
|
|
36675
36676
|
}
|
|
36677
|
+
const xdgContent = readFileSync22(injectionPath, "utf-8");
|
|
36678
|
+
const xdgVersion = xdgContent.match(/^Version:\s*(.+)$/m)?.[1]?.trim();
|
|
36679
|
+
const home = getHomedir();
|
|
36680
|
+
const legacyPath = join37(home, ".cleo", "templates", "CLEO-INJECTION.md");
|
|
36681
|
+
if (existsSync34(legacyPath)) {
|
|
36682
|
+
const legacyContent = readFileSync22(legacyPath, "utf-8");
|
|
36683
|
+
const legacyVersion = legacyContent.match(/^Version:\s*(.+)$/m)?.[1]?.trim();
|
|
36684
|
+
if (legacyVersion && xdgVersion && legacyVersion !== xdgVersion) {
|
|
36685
|
+
return {
|
|
36686
|
+
id: "global_templates",
|
|
36687
|
+
category: "global",
|
|
36688
|
+
status: "warning",
|
|
36689
|
+
message: `Legacy template version (${legacyVersion}) out of sync with XDG (${xdgVersion})`,
|
|
36690
|
+
details: { path: injectionPath, exists: true, xdgVersion, legacyVersion, legacyPath },
|
|
36691
|
+
fix: "npm install -g @cleocode/cleo (reinstall syncs both paths)"
|
|
36692
|
+
};
|
|
36693
|
+
}
|
|
36694
|
+
}
|
|
36676
36695
|
return {
|
|
36677
36696
|
id: "global_templates",
|
|
36678
36697
|
category: "global",
|
|
36679
36698
|
status: "passed",
|
|
36680
|
-
message:
|
|
36681
|
-
details: { path: injectionPath, exists: true },
|
|
36699
|
+
message: `Global injection template present (v${xdgVersion ?? "unknown"})`,
|
|
36700
|
+
details: { path: injectionPath, exists: true, version: xdgVersion },
|
|
36682
36701
|
fix: null
|
|
36683
36702
|
};
|
|
36684
36703
|
}
|
|
@@ -66950,45 +66969,67 @@ async function bootstrapGlobalCleo(options) {
|
|
|
66950
66969
|
await installSkillsGlobally(ctx);
|
|
66951
66970
|
await installAgentDefinitionGlobally(ctx);
|
|
66952
66971
|
await installProviderAdapters(ctx, options?.packageRoot);
|
|
66972
|
+
await verifyBootstrapHealth(ctx);
|
|
66953
66973
|
return ctx;
|
|
66954
66974
|
}
|
|
66975
|
+
async function writeTemplateTo(content, destPath, isDryRun) {
|
|
66976
|
+
if (isDryRun) return false;
|
|
66977
|
+
const { dirname: dirname22 } = await import("node:path");
|
|
66978
|
+
await mkdir17(dirname22(destPath), { recursive: true });
|
|
66979
|
+
await writeFile12(destPath, content);
|
|
66980
|
+
return true;
|
|
66981
|
+
}
|
|
66955
66982
|
async function ensureGlobalTemplatesBootstrap(ctx, packageRootOverride) {
|
|
66956
66983
|
const globalTemplatesDir = getCleoTemplatesDir();
|
|
66957
66984
|
if (!ctx.isDryRun) {
|
|
66958
66985
|
await mkdir17(globalTemplatesDir, { recursive: true });
|
|
66959
66986
|
}
|
|
66987
|
+
let templateContent = null;
|
|
66960
66988
|
try {
|
|
66961
66989
|
const pkgRoot = packageRootOverride ?? getPackageRoot();
|
|
66962
66990
|
const templatePath = join104(pkgRoot, "templates", "CLEO-INJECTION.md");
|
|
66963
66991
|
if (existsSync104(templatePath)) {
|
|
66964
|
-
|
|
66965
|
-
const destPath = join104(globalTemplatesDir, "CLEO-INJECTION.md");
|
|
66966
|
-
if (!ctx.isDryRun) {
|
|
66967
|
-
await writeFile12(destPath, content);
|
|
66968
|
-
}
|
|
66969
|
-
ctx.created.push(
|
|
66970
|
-
`~/.cleo/templates/CLEO-INJECTION.md (${ctx.isDryRun ? "would refresh" : "refreshed"})`
|
|
66971
|
-
);
|
|
66972
|
-
} else {
|
|
66973
|
-
try {
|
|
66974
|
-
const { getInjectionTemplateContent: getInjectionTemplateContent2 } = await Promise.resolve().then(() => (init_injection(), injection_exports));
|
|
66975
|
-
const content = getInjectionTemplateContent2();
|
|
66976
|
-
if (content) {
|
|
66977
|
-
const destPath = join104(globalTemplatesDir, "CLEO-INJECTION.md");
|
|
66978
|
-
if (!ctx.isDryRun) {
|
|
66979
|
-
await writeFile12(destPath, content);
|
|
66980
|
-
}
|
|
66981
|
-
ctx.created.push(
|
|
66982
|
-
`~/.cleo/templates/CLEO-INJECTION.md (${ctx.isDryRun ? "would refresh" : "refreshed"} from embedded)`
|
|
66983
|
-
);
|
|
66984
|
-
}
|
|
66985
|
-
} catch {
|
|
66986
|
-
ctx.warnings.push("Could not refresh CLEO-INJECTION.md template");
|
|
66987
|
-
}
|
|
66992
|
+
templateContent = readFileSync77(templatePath, "utf-8");
|
|
66988
66993
|
}
|
|
66989
66994
|
} catch {
|
|
66995
|
+
}
|
|
66996
|
+
if (!templateContent) {
|
|
66997
|
+
try {
|
|
66998
|
+
const { getInjectionTemplateContent: getInjectionTemplateContent2 } = await Promise.resolve().then(() => (init_injection(), injection_exports));
|
|
66999
|
+
templateContent = getInjectionTemplateContent2() ?? null;
|
|
67000
|
+
} catch {
|
|
67001
|
+
ctx.warnings.push("Could not refresh CLEO-INJECTION.md template");
|
|
67002
|
+
return;
|
|
67003
|
+
}
|
|
67004
|
+
}
|
|
67005
|
+
if (!templateContent) {
|
|
66990
67006
|
ctx.warnings.push("Could not refresh CLEO-INJECTION.md template");
|
|
67007
|
+
return;
|
|
66991
67008
|
}
|
|
67009
|
+
const xdgDest = join104(globalTemplatesDir, "CLEO-INJECTION.md");
|
|
67010
|
+
const xdgWritten = await writeTemplateTo(templateContent, xdgDest, ctx.isDryRun);
|
|
67011
|
+
ctx.created.push(
|
|
67012
|
+
`${getCleoTemplatesTildePath()}/CLEO-INJECTION.md (${xdgWritten ? "refreshed" : "would refresh"})`
|
|
67013
|
+
);
|
|
67014
|
+
const home = homedir6();
|
|
67015
|
+
const legacyTemplatesDir = join104(home, ".cleo", "templates");
|
|
67016
|
+
if (legacyTemplatesDir !== globalTemplatesDir && existsSync104(join104(home, ".cleo"))) {
|
|
67017
|
+
const legacyDest = join104(legacyTemplatesDir, "CLEO-INJECTION.md");
|
|
67018
|
+
const legacyWritten = await writeTemplateTo(templateContent, legacyDest, ctx.isDryRun);
|
|
67019
|
+
if (legacyWritten) {
|
|
67020
|
+
ctx.created.push("~/.cleo/templates/CLEO-INJECTION.md (legacy sync)");
|
|
67021
|
+
}
|
|
67022
|
+
}
|
|
67023
|
+
}
|
|
67024
|
+
function sanitizeCaampFile(content) {
|
|
67025
|
+
let cleaned = content.replace(/(<!-- CAAMP:END -->)\s*(<!-- CAAMP:END -->)/g, "$1");
|
|
67026
|
+
cleaned = cleaned.replace(
|
|
67027
|
+
/<!-- CAAMP:END -->\s*[A-Z][A-Za-z-]*\.md\s*(?:<!-- CAAMP:END -->)?/g,
|
|
67028
|
+
"<!-- CAAMP:END -->"
|
|
67029
|
+
);
|
|
67030
|
+
cleaned = cleaned.replace(/^[A-Z][A-Za-z-]*\.md\s*$/gm, "");
|
|
67031
|
+
cleaned = cleaned.replace(/\n{3,}/g, "\n\n");
|
|
67032
|
+
return cleaned.trim() + "\n";
|
|
66992
67033
|
}
|
|
66993
67034
|
async function injectAgentsHub(ctx) {
|
|
66994
67035
|
const globalAgentsDir = getAgentsHome();
|
|
@@ -67003,13 +67044,23 @@ async function injectAgentsHub(ctx) {
|
|
|
67003
67044
|
/\n?<!-- CLEO:START[^>]*-->[\s\S]*?<!-- CLEO:END -->\n?/g,
|
|
67004
67045
|
""
|
|
67005
67046
|
);
|
|
67006
|
-
|
|
67007
|
-
|
|
67047
|
+
const sanitized = sanitizeCaampFile(stripped);
|
|
67048
|
+
if (sanitized !== content) {
|
|
67049
|
+
await writeFile12(globalAgentsMd, sanitized, "utf8");
|
|
67050
|
+
ctx.created.push("~/.agents/AGENTS.md (sanitized CAAMP corruption)");
|
|
67008
67051
|
}
|
|
67009
67052
|
}
|
|
67010
67053
|
const templateRef = `@${getCleoTemplatesTildePath()}/CLEO-INJECTION.md`;
|
|
67011
67054
|
const action = await inject2(globalAgentsMd, templateRef);
|
|
67012
67055
|
ctx.created.push(`~/.agents/AGENTS.md (${action})`);
|
|
67056
|
+
const postContent = await readFile19(globalAgentsMd, "utf8");
|
|
67057
|
+
const caampBlocks = postContent.match(/<!-- CAAMP:START -->/g);
|
|
67058
|
+
const caampEnds = postContent.match(/<!-- CAAMP:END -->/g);
|
|
67059
|
+
if (caampBlocks && caampEnds && caampBlocks.length !== caampEnds.length) {
|
|
67060
|
+
ctx.warnings.push(
|
|
67061
|
+
`~/.agents/AGENTS.md has mismatched CAAMP markers (${caampBlocks.length} START vs ${caampEnds.length} END)`
|
|
67062
|
+
);
|
|
67063
|
+
}
|
|
67013
67064
|
} else {
|
|
67014
67065
|
ctx.created.push("~/.agents/AGENTS.md (would create/update CAAMP block)");
|
|
67015
67066
|
}
|
|
@@ -67143,6 +67194,45 @@ async function installProviderAdapters(ctx, packageRootOverride) {
|
|
|
67143
67194
|
);
|
|
67144
67195
|
}
|
|
67145
67196
|
}
|
|
67197
|
+
async function verifyBootstrapHealth(ctx) {
|
|
67198
|
+
if (ctx.isDryRun) return;
|
|
67199
|
+
try {
|
|
67200
|
+
const xdgTemplatePath = join104(getCleoTemplatesDir(), "CLEO-INJECTION.md");
|
|
67201
|
+
const agentsMd = join104(getAgentsHome(), "AGENTS.md");
|
|
67202
|
+
if (!existsSync104(xdgTemplatePath)) {
|
|
67203
|
+
ctx.warnings.push("Health: XDG template missing after bootstrap");
|
|
67204
|
+
return;
|
|
67205
|
+
}
|
|
67206
|
+
const xdgContent = await readFile19(xdgTemplatePath, "utf8");
|
|
67207
|
+
const xdgVersion = xdgContent.match(/^Version:\s*(.+)$/m)?.[1]?.trim();
|
|
67208
|
+
const home = homedir6();
|
|
67209
|
+
const legacyTemplatePath = join104(home, ".cleo", "templates", "CLEO-INJECTION.md");
|
|
67210
|
+
if (existsSync104(legacyTemplatePath)) {
|
|
67211
|
+
const legacyContent = await readFile19(legacyTemplatePath, "utf8");
|
|
67212
|
+
const legacyVersion = legacyContent.match(/^Version:\s*(.+)$/m)?.[1]?.trim();
|
|
67213
|
+
if (legacyVersion !== xdgVersion) {
|
|
67214
|
+
ctx.warnings.push(
|
|
67215
|
+
`Health: Legacy template version (${legacyVersion}) != XDG version (${xdgVersion})`
|
|
67216
|
+
);
|
|
67217
|
+
}
|
|
67218
|
+
}
|
|
67219
|
+
if (existsSync104(agentsMd)) {
|
|
67220
|
+
const agentsContent = await readFile19(agentsMd, "utf8");
|
|
67221
|
+
const expectedRef = `@${getCleoTemplatesTildePath()}/CLEO-INJECTION.md`;
|
|
67222
|
+
if (!agentsContent.includes(expectedRef)) {
|
|
67223
|
+
ctx.warnings.push(`Health: ~/.agents/AGENTS.md does not reference ${expectedRef}`);
|
|
67224
|
+
}
|
|
67225
|
+
const outsideCaamp = agentsContent.replace(
|
|
67226
|
+
/<!-- CAAMP:START -->[\s\S]*?<!-- CAAMP:END -->/g,
|
|
67227
|
+
""
|
|
67228
|
+
);
|
|
67229
|
+
if (/[A-Z][A-Za-z-]*\.md/.test(outsideCaamp)) {
|
|
67230
|
+
ctx.warnings.push("Health: ~/.agents/AGENTS.md has orphaned content outside CAAMP blocks");
|
|
67231
|
+
}
|
|
67232
|
+
}
|
|
67233
|
+
} catch {
|
|
67234
|
+
}
|
|
67235
|
+
}
|
|
67146
67236
|
var init_bootstrap = __esm({
|
|
67147
67237
|
"packages/core/src/bootstrap.ts"() {
|
|
67148
67238
|
"use strict";
|
|
@@ -67159,6 +67249,8 @@ var init_cleo = __esm({
|
|
|
67159
67249
|
"use strict";
|
|
67160
67250
|
init_export();
|
|
67161
67251
|
init_import();
|
|
67252
|
+
init_agents();
|
|
67253
|
+
init_intelligence();
|
|
67162
67254
|
init_lifecycle2();
|
|
67163
67255
|
init_brain_retrieval();
|
|
67164
67256
|
init_brain_search();
|
|
@@ -67173,6 +67265,7 @@ var init_cleo = __esm({
|
|
|
67173
67265
|
init_sessions();
|
|
67174
67266
|
init_sticky();
|
|
67175
67267
|
init_data_accessor();
|
|
67268
|
+
init_task_work();
|
|
67176
67269
|
init_add();
|
|
67177
67270
|
init_archive2();
|
|
67178
67271
|
init_complete();
|
|
@@ -67244,7 +67337,10 @@ var init_cleo = __esm({
|
|
|
67244
67337
|
),
|
|
67245
67338
|
complete: (p) => completeTask({ taskId: p.taskId, notes: p.notes }, root, store),
|
|
67246
67339
|
delete: (p) => deleteTask({ taskId: p.taskId, force: p.force }, root, store),
|
|
67247
|
-
archive: (p) => archiveTasks({ before: p?.before, taskIds: p?.taskIds, dryRun: p?.dryRun }, root, store)
|
|
67340
|
+
archive: (p) => archiveTasks({ before: p?.before, taskIds: p?.taskIds, dryRun: p?.dryRun }, root, store),
|
|
67341
|
+
start: (taskId) => startTask(taskId, root, store),
|
|
67342
|
+
stop: () => stopTask(root, store),
|
|
67343
|
+
current: () => currentTask(root, store)
|
|
67248
67344
|
};
|
|
67249
67345
|
}
|
|
67250
67346
|
// === Sessions ===
|
|
@@ -67252,7 +67348,11 @@ var init_cleo = __esm({
|
|
|
67252
67348
|
const root = this.projectRoot;
|
|
67253
67349
|
const store = this._store ?? void 0;
|
|
67254
67350
|
return {
|
|
67255
|
-
start: (p) => startSession(
|
|
67351
|
+
start: (p) => startSession(
|
|
67352
|
+
{ name: p.name, scope: p.scope, agent: p.agent, startTask: p.startTask },
|
|
67353
|
+
root,
|
|
67354
|
+
store
|
|
67355
|
+
),
|
|
67256
67356
|
end: (p) => endSession({ note: p?.note }, root, store),
|
|
67257
67357
|
status: () => sessionStatus(root, store),
|
|
67258
67358
|
resume: (id) => resumeSession(id, root, store),
|
|
@@ -67390,6 +67490,35 @@ var init_cleo = __esm({
|
|
|
67390
67490
|
sharingStatus: () => getSharingStatus()
|
|
67391
67491
|
};
|
|
67392
67492
|
}
|
|
67493
|
+
// === Agents ===
|
|
67494
|
+
get agents() {
|
|
67495
|
+
const root = this.projectRoot;
|
|
67496
|
+
return {
|
|
67497
|
+
register: (opts) => registerAgent(opts, root),
|
|
67498
|
+
deregister: (agentId) => deregisterAgent(agentId, root),
|
|
67499
|
+
health: (agentId) => checkAgentHealth2(agentId, void 0, root),
|
|
67500
|
+
detectCrashed: (thresholdMs) => detectCrashedAgents(thresholdMs, root),
|
|
67501
|
+
recordHeartbeat: (agentId) => heartbeat(agentId, root),
|
|
67502
|
+
capacity: (agentId) => getAgentCapacity(agentId, root),
|
|
67503
|
+
isOverloaded: (threshold) => isOverloaded(threshold, root),
|
|
67504
|
+
list: (p) => listAgentInstances(
|
|
67505
|
+
{
|
|
67506
|
+
status: p?.status,
|
|
67507
|
+
agentType: p?.agentType
|
|
67508
|
+
},
|
|
67509
|
+
root
|
|
67510
|
+
)
|
|
67511
|
+
};
|
|
67512
|
+
}
|
|
67513
|
+
// === Intelligence ===
|
|
67514
|
+
get intelligence() {
|
|
67515
|
+
const root = this.projectRoot;
|
|
67516
|
+
const store = this._store ?? void 0;
|
|
67517
|
+
return {
|
|
67518
|
+
predictImpact: (change) => predictImpact(change, root, store ?? void 0),
|
|
67519
|
+
blastRadius: (taskId) => calculateBlastRadius(taskId, store ?? void 0, root)
|
|
67520
|
+
};
|
|
67521
|
+
}
|
|
67393
67522
|
// === Sync (Task Reconciliation) ===
|
|
67394
67523
|
get sync() {
|
|
67395
67524
|
const root = this.projectRoot;
|