@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/cli/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
|
}
|
|
@@ -66979,45 +66998,67 @@ async function bootstrapGlobalCleo(options) {
|
|
|
66979
66998
|
await installSkillsGlobally(ctx);
|
|
66980
66999
|
await installAgentDefinitionGlobally(ctx);
|
|
66981
67000
|
await installProviderAdapters(ctx, options?.packageRoot);
|
|
67001
|
+
await verifyBootstrapHealth(ctx);
|
|
66982
67002
|
return ctx;
|
|
66983
67003
|
}
|
|
67004
|
+
async function writeTemplateTo(content, destPath, isDryRun) {
|
|
67005
|
+
if (isDryRun) return false;
|
|
67006
|
+
const { dirname: dirname25 } = await import("node:path");
|
|
67007
|
+
await mkdir17(dirname25(destPath), { recursive: true });
|
|
67008
|
+
await writeFile12(destPath, content);
|
|
67009
|
+
return true;
|
|
67010
|
+
}
|
|
66984
67011
|
async function ensureGlobalTemplatesBootstrap(ctx, packageRootOverride) {
|
|
66985
67012
|
const globalTemplatesDir = getCleoTemplatesDir();
|
|
66986
67013
|
if (!ctx.isDryRun) {
|
|
66987
67014
|
await mkdir17(globalTemplatesDir, { recursive: true });
|
|
66988
67015
|
}
|
|
67016
|
+
let templateContent = null;
|
|
66989
67017
|
try {
|
|
66990
67018
|
const pkgRoot = packageRootOverride ?? getPackageRoot();
|
|
66991
67019
|
const templatePath = join104(pkgRoot, "templates", "CLEO-INJECTION.md");
|
|
66992
67020
|
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
|
-
}
|
|
67021
|
+
templateContent = readFileSync77(templatePath, "utf-8");
|
|
67017
67022
|
}
|
|
67018
67023
|
} catch {
|
|
67024
|
+
}
|
|
67025
|
+
if (!templateContent) {
|
|
67026
|
+
try {
|
|
67027
|
+
const { getInjectionTemplateContent: getInjectionTemplateContent2 } = await Promise.resolve().then(() => (init_injection(), injection_exports));
|
|
67028
|
+
templateContent = getInjectionTemplateContent2() ?? null;
|
|
67029
|
+
} catch {
|
|
67030
|
+
ctx.warnings.push("Could not refresh CLEO-INJECTION.md template");
|
|
67031
|
+
return;
|
|
67032
|
+
}
|
|
67033
|
+
}
|
|
67034
|
+
if (!templateContent) {
|
|
67019
67035
|
ctx.warnings.push("Could not refresh CLEO-INJECTION.md template");
|
|
67036
|
+
return;
|
|
67020
67037
|
}
|
|
67038
|
+
const xdgDest = join104(globalTemplatesDir, "CLEO-INJECTION.md");
|
|
67039
|
+
const xdgWritten = await writeTemplateTo(templateContent, xdgDest, ctx.isDryRun);
|
|
67040
|
+
ctx.created.push(
|
|
67041
|
+
`${getCleoTemplatesTildePath()}/CLEO-INJECTION.md (${xdgWritten ? "refreshed" : "would refresh"})`
|
|
67042
|
+
);
|
|
67043
|
+
const home = homedir6();
|
|
67044
|
+
const legacyTemplatesDir = join104(home, ".cleo", "templates");
|
|
67045
|
+
if (legacyTemplatesDir !== globalTemplatesDir && existsSync104(join104(home, ".cleo"))) {
|
|
67046
|
+
const legacyDest = join104(legacyTemplatesDir, "CLEO-INJECTION.md");
|
|
67047
|
+
const legacyWritten = await writeTemplateTo(templateContent, legacyDest, ctx.isDryRun);
|
|
67048
|
+
if (legacyWritten) {
|
|
67049
|
+
ctx.created.push("~/.cleo/templates/CLEO-INJECTION.md (legacy sync)");
|
|
67050
|
+
}
|
|
67051
|
+
}
|
|
67052
|
+
}
|
|
67053
|
+
function sanitizeCaampFile(content) {
|
|
67054
|
+
let cleaned = content.replace(/(<!-- CAAMP:END -->)\s*(<!-- CAAMP:END -->)/g, "$1");
|
|
67055
|
+
cleaned = cleaned.replace(
|
|
67056
|
+
/<!-- CAAMP:END -->\s*[A-Z][A-Za-z-]*\.md\s*(?:<!-- CAAMP:END -->)?/g,
|
|
67057
|
+
"<!-- CAAMP:END -->"
|
|
67058
|
+
);
|
|
67059
|
+
cleaned = cleaned.replace(/^[A-Z][A-Za-z-]*\.md\s*$/gm, "");
|
|
67060
|
+
cleaned = cleaned.replace(/\n{3,}/g, "\n\n");
|
|
67061
|
+
return cleaned.trim() + "\n";
|
|
67021
67062
|
}
|
|
67022
67063
|
async function injectAgentsHub(ctx) {
|
|
67023
67064
|
const globalAgentsDir = getAgentsHome();
|
|
@@ -67032,13 +67073,23 @@ async function injectAgentsHub(ctx) {
|
|
|
67032
67073
|
/\n?<!-- CLEO:START[^>]*-->[\s\S]*?<!-- CLEO:END -->\n?/g,
|
|
67033
67074
|
""
|
|
67034
67075
|
);
|
|
67035
|
-
|
|
67036
|
-
|
|
67076
|
+
const sanitized = sanitizeCaampFile(stripped);
|
|
67077
|
+
if (sanitized !== content) {
|
|
67078
|
+
await writeFile12(globalAgentsMd, sanitized, "utf8");
|
|
67079
|
+
ctx.created.push("~/.agents/AGENTS.md (sanitized CAAMP corruption)");
|
|
67037
67080
|
}
|
|
67038
67081
|
}
|
|
67039
67082
|
const templateRef = `@${getCleoTemplatesTildePath()}/CLEO-INJECTION.md`;
|
|
67040
67083
|
const action = await inject2(globalAgentsMd, templateRef);
|
|
67041
67084
|
ctx.created.push(`~/.agents/AGENTS.md (${action})`);
|
|
67085
|
+
const postContent = await readFile19(globalAgentsMd, "utf8");
|
|
67086
|
+
const caampBlocks = postContent.match(/<!-- CAAMP:START -->/g);
|
|
67087
|
+
const caampEnds = postContent.match(/<!-- CAAMP:END -->/g);
|
|
67088
|
+
if (caampBlocks && caampEnds && caampBlocks.length !== caampEnds.length) {
|
|
67089
|
+
ctx.warnings.push(
|
|
67090
|
+
`~/.agents/AGENTS.md has mismatched CAAMP markers (${caampBlocks.length} START vs ${caampEnds.length} END)`
|
|
67091
|
+
);
|
|
67092
|
+
}
|
|
67042
67093
|
} else {
|
|
67043
67094
|
ctx.created.push("~/.agents/AGENTS.md (would create/update CAAMP block)");
|
|
67044
67095
|
}
|
|
@@ -67172,6 +67223,45 @@ async function installProviderAdapters(ctx, packageRootOverride) {
|
|
|
67172
67223
|
);
|
|
67173
67224
|
}
|
|
67174
67225
|
}
|
|
67226
|
+
async function verifyBootstrapHealth(ctx) {
|
|
67227
|
+
if (ctx.isDryRun) return;
|
|
67228
|
+
try {
|
|
67229
|
+
const xdgTemplatePath = join104(getCleoTemplatesDir(), "CLEO-INJECTION.md");
|
|
67230
|
+
const agentsMd = join104(getAgentsHome(), "AGENTS.md");
|
|
67231
|
+
if (!existsSync104(xdgTemplatePath)) {
|
|
67232
|
+
ctx.warnings.push("Health: XDG template missing after bootstrap");
|
|
67233
|
+
return;
|
|
67234
|
+
}
|
|
67235
|
+
const xdgContent = await readFile19(xdgTemplatePath, "utf8");
|
|
67236
|
+
const xdgVersion = xdgContent.match(/^Version:\s*(.+)$/m)?.[1]?.trim();
|
|
67237
|
+
const home = homedir6();
|
|
67238
|
+
const legacyTemplatePath = join104(home, ".cleo", "templates", "CLEO-INJECTION.md");
|
|
67239
|
+
if (existsSync104(legacyTemplatePath)) {
|
|
67240
|
+
const legacyContent = await readFile19(legacyTemplatePath, "utf8");
|
|
67241
|
+
const legacyVersion = legacyContent.match(/^Version:\s*(.+)$/m)?.[1]?.trim();
|
|
67242
|
+
if (legacyVersion !== xdgVersion) {
|
|
67243
|
+
ctx.warnings.push(
|
|
67244
|
+
`Health: Legacy template version (${legacyVersion}) != XDG version (${xdgVersion})`
|
|
67245
|
+
);
|
|
67246
|
+
}
|
|
67247
|
+
}
|
|
67248
|
+
if (existsSync104(agentsMd)) {
|
|
67249
|
+
const agentsContent = await readFile19(agentsMd, "utf8");
|
|
67250
|
+
const expectedRef = `@${getCleoTemplatesTildePath()}/CLEO-INJECTION.md`;
|
|
67251
|
+
if (!agentsContent.includes(expectedRef)) {
|
|
67252
|
+
ctx.warnings.push(`Health: ~/.agents/AGENTS.md does not reference ${expectedRef}`);
|
|
67253
|
+
}
|
|
67254
|
+
const outsideCaamp = agentsContent.replace(
|
|
67255
|
+
/<!-- CAAMP:START -->[\s\S]*?<!-- CAAMP:END -->/g,
|
|
67256
|
+
""
|
|
67257
|
+
);
|
|
67258
|
+
if (/[A-Z][A-Za-z-]*\.md/.test(outsideCaamp)) {
|
|
67259
|
+
ctx.warnings.push("Health: ~/.agents/AGENTS.md has orphaned content outside CAAMP blocks");
|
|
67260
|
+
}
|
|
67261
|
+
}
|
|
67262
|
+
} catch {
|
|
67263
|
+
}
|
|
67264
|
+
}
|
|
67175
67265
|
var init_bootstrap = __esm({
|
|
67176
67266
|
"packages/core/src/bootstrap.ts"() {
|
|
67177
67267
|
"use strict";
|
|
@@ -67188,6 +67278,8 @@ var init_cleo = __esm({
|
|
|
67188
67278
|
"use strict";
|
|
67189
67279
|
init_export();
|
|
67190
67280
|
init_import();
|
|
67281
|
+
init_agents();
|
|
67282
|
+
init_intelligence();
|
|
67191
67283
|
init_lifecycle2();
|
|
67192
67284
|
init_brain_retrieval();
|
|
67193
67285
|
init_brain_search();
|
|
@@ -67202,6 +67294,7 @@ var init_cleo = __esm({
|
|
|
67202
67294
|
init_sessions();
|
|
67203
67295
|
init_sticky();
|
|
67204
67296
|
init_data_accessor();
|
|
67297
|
+
init_task_work();
|
|
67205
67298
|
init_add();
|
|
67206
67299
|
init_archive2();
|
|
67207
67300
|
init_complete();
|
|
@@ -67273,7 +67366,10 @@ var init_cleo = __esm({
|
|
|
67273
67366
|
),
|
|
67274
67367
|
complete: (p) => completeTask({ taskId: p.taskId, notes: p.notes }, root, store),
|
|
67275
67368
|
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)
|
|
67369
|
+
archive: (p) => archiveTasks({ before: p?.before, taskIds: p?.taskIds, dryRun: p?.dryRun }, root, store),
|
|
67370
|
+
start: (taskId) => startTask(taskId, root, store),
|
|
67371
|
+
stop: () => stopTask(root, store),
|
|
67372
|
+
current: () => currentTask(root, store)
|
|
67277
67373
|
};
|
|
67278
67374
|
}
|
|
67279
67375
|
// === Sessions ===
|
|
@@ -67281,7 +67377,11 @@ var init_cleo = __esm({
|
|
|
67281
67377
|
const root = this.projectRoot;
|
|
67282
67378
|
const store = this._store ?? void 0;
|
|
67283
67379
|
return {
|
|
67284
|
-
start: (p) => startSession(
|
|
67380
|
+
start: (p) => startSession(
|
|
67381
|
+
{ name: p.name, scope: p.scope, agent: p.agent, startTask: p.startTask },
|
|
67382
|
+
root,
|
|
67383
|
+
store
|
|
67384
|
+
),
|
|
67285
67385
|
end: (p) => endSession({ note: p?.note }, root, store),
|
|
67286
67386
|
status: () => sessionStatus(root, store),
|
|
67287
67387
|
resume: (id) => resumeSession(id, root, store),
|
|
@@ -67419,6 +67519,35 @@ var init_cleo = __esm({
|
|
|
67419
67519
|
sharingStatus: () => getSharingStatus()
|
|
67420
67520
|
};
|
|
67421
67521
|
}
|
|
67522
|
+
// === Agents ===
|
|
67523
|
+
get agents() {
|
|
67524
|
+
const root = this.projectRoot;
|
|
67525
|
+
return {
|
|
67526
|
+
register: (opts) => registerAgent(opts, root),
|
|
67527
|
+
deregister: (agentId) => deregisterAgent(agentId, root),
|
|
67528
|
+
health: (agentId) => checkAgentHealth2(agentId, void 0, root),
|
|
67529
|
+
detectCrashed: (thresholdMs) => detectCrashedAgents(thresholdMs, root),
|
|
67530
|
+
recordHeartbeat: (agentId) => heartbeat(agentId, root),
|
|
67531
|
+
capacity: (agentId) => getAgentCapacity(agentId, root),
|
|
67532
|
+
isOverloaded: (threshold) => isOverloaded(threshold, root),
|
|
67533
|
+
list: (p) => listAgentInstances(
|
|
67534
|
+
{
|
|
67535
|
+
status: p?.status,
|
|
67536
|
+
agentType: p?.agentType
|
|
67537
|
+
},
|
|
67538
|
+
root
|
|
67539
|
+
)
|
|
67540
|
+
};
|
|
67541
|
+
}
|
|
67542
|
+
// === Intelligence ===
|
|
67543
|
+
get intelligence() {
|
|
67544
|
+
const root = this.projectRoot;
|
|
67545
|
+
const store = this._store ?? void 0;
|
|
67546
|
+
return {
|
|
67547
|
+
predictImpact: (change) => predictImpact(change, root, store ?? void 0),
|
|
67548
|
+
blastRadius: (taskId) => calculateBlastRadius(taskId, store ?? void 0, root)
|
|
67549
|
+
};
|
|
67550
|
+
}
|
|
67422
67551
|
// === Sync (Task Reconciliation) ===
|
|
67423
67552
|
get sync() {
|
|
67424
67553
|
const root = this.projectRoot;
|