@cleocode/cleo 2026.3.65 → 2026.3.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +129 -128
- package/dist/cli/index.js.map +4 -4
- package/dist/mcp/index.js +124 -127
- package/dist/mcp/index.js.map +4 -4
- package/package.json +3 -3
- package/dist/cli/commander-shim.d.ts +0 -112
- package/dist/cli/commander-shim.d.ts.map +0 -1
- package/dist/cli/commander-shim.js +0 -233
- package/dist/cli/commander-shim.js.map +0 -1
- package/dist/cli/commands/add.d.ts +0 -12
- package/dist/cli/commands/add.d.ts.map +0 -1
- package/dist/cli/commands/add.js +0 -94
- package/dist/cli/commands/add.js.map +0 -1
- package/dist/cli/commands/adr.d.ts +0 -27
- package/dist/cli/commands/adr.d.ts.map +0 -1
- package/dist/cli/commands/adr.js +0 -79
- package/dist/cli/commands/adr.js.map +0 -1
- package/dist/cli/commands/agents.d.ts +0 -31
- package/dist/cli/commands/agents.d.ts.map +0 -1
- package/dist/cli/commands/agents.js +0 -104
- package/dist/cli/commands/agents.js.map +0 -1
- package/dist/cli/commands/analyze.d.ts +0 -12
- package/dist/cli/commands/analyze.d.ts.map +0 -1
- package/dist/cli/commands/analyze.js +0 -20
- package/dist/cli/commands/analyze.js.map +0 -1
- package/dist/cli/commands/archive-stats.d.ts +0 -18
- package/dist/cli/commands/archive-stats.d.ts.map +0 -1
- package/dist/cli/commands/archive-stats.js +0 -49
- package/dist/cli/commands/archive-stats.js.map +0 -1
- package/dist/cli/commands/archive.d.ts +0 -12
- package/dist/cli/commands/archive.d.ts.map +0 -1
- package/dist/cli/commands/archive.js +0 -32
- package/dist/cli/commands/archive.js.map +0 -1
- package/dist/cli/commands/backfill.d.ts +0 -32
- package/dist/cli/commands/backfill.d.ts.map +0 -1
- package/dist/cli/commands/backfill.js +0 -101
- package/dist/cli/commands/backfill.js.map +0 -1
- package/dist/cli/commands/backup.d.ts +0 -8
- package/dist/cli/commands/backup.d.ts.map +0 -1
- package/dist/cli/commands/backup.js +0 -35
- package/dist/cli/commands/backup.js.map +0 -1
- package/dist/cli/commands/blockers.d.ts +0 -7
- package/dist/cli/commands/blockers.d.ts.map +0 -1
- package/dist/cli/commands/blockers.js +0 -16
- package/dist/cli/commands/blockers.js.map +0 -1
- package/dist/cli/commands/briefing.d.ts +0 -22
- package/dist/cli/commands/briefing.d.ts.map +0 -1
- package/dist/cli/commands/briefing.js +0 -45
- package/dist/cli/commands/briefing.js.map +0 -1
- package/dist/cli/commands/bug.d.ts +0 -12
- package/dist/cli/commands/bug.d.ts.map +0 -1
- package/dist/cli/commands/bug.js +0 -81
- package/dist/cli/commands/bug.js.map +0 -1
- package/dist/cli/commands/checkpoint.d.ts +0 -15
- package/dist/cli/commands/checkpoint.d.ts.map +0 -1
- package/dist/cli/commands/checkpoint.js +0 -91
- package/dist/cli/commands/checkpoint.js.map +0 -1
- package/dist/cli/commands/commands.d.ts +0 -13
- package/dist/cli/commands/commands.d.ts.map +0 -1
- package/dist/cli/commands/commands.js +0 -30
- package/dist/cli/commands/commands.js.map +0 -1
- package/dist/cli/commands/complete.d.ts +0 -12
- package/dist/cli/commands/complete.d.ts.map +0 -1
- package/dist/cli/commands/complete.js +0 -43
- package/dist/cli/commands/complete.js.map +0 -1
- package/dist/cli/commands/compliance.d.ts +0 -8
- package/dist/cli/commands/compliance.d.ts.map +0 -1
- package/dist/cli/commands/compliance.js +0 -85
- package/dist/cli/commands/compliance.js.map +0 -1
- package/dist/cli/commands/config.d.ts +0 -10
- package/dist/cli/commands/config.d.ts.map +0 -1
- package/dist/cli/commands/config.js +0 -69
- package/dist/cli/commands/config.js.map +0 -1
- package/dist/cli/commands/consensus.d.ts +0 -13
- package/dist/cli/commands/consensus.d.ts.map +0 -1
- package/dist/cli/commands/consensus.js +0 -45
- package/dist/cli/commands/consensus.js.map +0 -1
- package/dist/cli/commands/context.d.ts +0 -8
- package/dist/cli/commands/context.d.ts.map +0 -1
- package/dist/cli/commands/context.js +0 -40
- package/dist/cli/commands/context.js.map +0 -1
- package/dist/cli/commands/contribution.d.ts +0 -13
- package/dist/cli/commands/contribution.d.ts.map +0 -1
- package/dist/cli/commands/contribution.js +0 -41
- package/dist/cli/commands/contribution.js.map +0 -1
- package/dist/cli/commands/current.d.ts +0 -13
- package/dist/cli/commands/current.d.ts.map +0 -1
- package/dist/cli/commands/current.js +0 -20
- package/dist/cli/commands/current.js.map +0 -1
- package/dist/cli/commands/dash.d.ts +0 -12
- package/dist/cli/commands/dash.d.ts.map +0 -1
- package/dist/cli/commands/dash.js +0 -24
- package/dist/cli/commands/dash.js.map +0 -1
- package/dist/cli/commands/decomposition.d.ts +0 -13
- package/dist/cli/commands/decomposition.d.ts.map +0 -1
- package/dist/cli/commands/decomposition.js +0 -45
- package/dist/cli/commands/decomposition.js.map +0 -1
- package/dist/cli/commands/delete.d.ts +0 -12
- package/dist/cli/commands/delete.d.ts.map +0 -1
- package/dist/cli/commands/delete.js +0 -37
- package/dist/cli/commands/delete.js.map +0 -1
- package/dist/cli/commands/deps.d.ts +0 -24
- package/dist/cli/commands/deps.d.ts.map +0 -1
- package/dist/cli/commands/deps.js +0 -98
- package/dist/cli/commands/deps.js.map +0 -1
- package/dist/cli/commands/detect-drift.d.ts +0 -15
- package/dist/cli/commands/detect-drift.d.ts.map +0 -1
- package/dist/cli/commands/detect-drift.js +0 -387
- package/dist/cli/commands/detect-drift.js.map +0 -1
- package/dist/cli/commands/detect.d.ts +0 -10
- package/dist/cli/commands/detect.d.ts.map +0 -1
- package/dist/cli/commands/detect.js +0 -24
- package/dist/cli/commands/detect.js.map +0 -1
- package/dist/cli/commands/docs.d.ts +0 -13
- package/dist/cli/commands/docs.d.ts.map +0 -1
- package/dist/cli/commands/docs.js +0 -169
- package/dist/cli/commands/docs.js.map +0 -1
- package/dist/cli/commands/doctor.d.ts +0 -11
- package/dist/cli/commands/doctor.d.ts.map +0 -1
- package/dist/cli/commands/doctor.js +0 -54
- package/dist/cli/commands/doctor.js.map +0 -1
- package/dist/cli/commands/dynamic.d.ts +0 -24
- package/dist/cli/commands/dynamic.d.ts.map +0 -1
- package/dist/cli/commands/dynamic.js +0 -27
- package/dist/cli/commands/dynamic.js.map +0 -1
- package/dist/cli/commands/env.d.ts +0 -12
- package/dist/cli/commands/env.d.ts.map +0 -1
- package/dist/cli/commands/env.js +0 -44
- package/dist/cli/commands/env.js.map +0 -1
- package/dist/cli/commands/exists.d.ts +0 -22
- package/dist/cli/commands/exists.d.ts.map +0 -1
- package/dist/cli/commands/exists.js +0 -51
- package/dist/cli/commands/exists.js.map +0 -1
- package/dist/cli/commands/export-tasks.d.ts +0 -10
- package/dist/cli/commands/export-tasks.d.ts.map +0 -1
- package/dist/cli/commands/export-tasks.js +0 -47
- package/dist/cli/commands/export-tasks.js.map +0 -1
- package/dist/cli/commands/export.d.ts +0 -9
- package/dist/cli/commands/export.d.ts.map +0 -1
- package/dist/cli/commands/export.js +0 -46
- package/dist/cli/commands/export.js.map +0 -1
- package/dist/cli/commands/find.d.ts +0 -14
- package/dist/cli/commands/find.d.ts.map +0 -1
- package/dist/cli/commands/find.js +0 -70
- package/dist/cli/commands/find.js.map +0 -1
- package/dist/cli/commands/generate-changelog.d.ts +0 -14
- package/dist/cli/commands/generate-changelog.d.ts.map +0 -1
- package/dist/cli/commands/generate-changelog.js +0 -252
- package/dist/cli/commands/generate-changelog.js.map +0 -1
- package/dist/cli/commands/grade.d.ts +0 -13
- package/dist/cli/commands/grade.d.ts.map +0 -1
- package/dist/cli/commands/grade.js +0 -26
- package/dist/cli/commands/grade.js.map +0 -1
- package/dist/cli/commands/history.d.ts +0 -9
- package/dist/cli/commands/history.d.ts.map +0 -1
- package/dist/cli/commands/history.js +0 -30
- package/dist/cli/commands/history.js.map +0 -1
- package/dist/cli/commands/implementation.d.ts +0 -13
- package/dist/cli/commands/implementation.d.ts.map +0 -1
- package/dist/cli/commands/implementation.js +0 -41
- package/dist/cli/commands/implementation.js.map +0 -1
- package/dist/cli/commands/import-tasks.d.ts +0 -10
- package/dist/cli/commands/import-tasks.d.ts.map +0 -1
- package/dist/cli/commands/import-tasks.js +0 -38
- package/dist/cli/commands/import-tasks.js.map +0 -1
- package/dist/cli/commands/import.d.ts +0 -9
- package/dist/cli/commands/import.d.ts.map +0 -1
- package/dist/cli/commands/import.js +0 -28
- package/dist/cli/commands/import.js.map +0 -1
- package/dist/cli/commands/init.d.ts +0 -34
- package/dist/cli/commands/init.d.ts.map +0 -1
- package/dist/cli/commands/init.js +0 -89
- package/dist/cli/commands/init.js.map +0 -1
- package/dist/cli/commands/inject.d.ts +0 -8
- package/dist/cli/commands/inject.d.ts.map +0 -1
- package/dist/cli/commands/inject.js +0 -28
- package/dist/cli/commands/inject.js.map +0 -1
- package/dist/cli/commands/install-global.d.ts +0 -19
- package/dist/cli/commands/install-global.d.ts.map +0 -1
- package/dist/cli/commands/install-global.js +0 -50
- package/dist/cli/commands/install-global.js.map +0 -1
- package/dist/cli/commands/issue.d.ts +0 -17
- package/dist/cli/commands/issue.d.ts.map +0 -1
- package/dist/cli/commands/issue.js +0 -107
- package/dist/cli/commands/issue.js.map +0 -1
- package/dist/cli/commands/labels.d.ts +0 -13
- package/dist/cli/commands/labels.d.ts.map +0 -1
- package/dist/cli/commands/labels.js +0 -44
- package/dist/cli/commands/labels.js.map +0 -1
- package/dist/cli/commands/lifecycle.d.ts +0 -8
- package/dist/cli/commands/lifecycle.d.ts.map +0 -1
- package/dist/cli/commands/lifecycle.js +0 -72
- package/dist/cli/commands/lifecycle.js.map +0 -1
- package/dist/cli/commands/list.d.ts +0 -14
- package/dist/cli/commands/list.d.ts.map +0 -1
- package/dist/cli/commands/list.js +0 -71
- package/dist/cli/commands/list.js.map +0 -1
- package/dist/cli/commands/log.d.ts +0 -12
- package/dist/cli/commands/log.d.ts.map +0 -1
- package/dist/cli/commands/log.js +0 -30
- package/dist/cli/commands/log.js.map +0 -1
- package/dist/cli/commands/map.d.ts +0 -10
- package/dist/cli/commands/map.d.ts.map +0 -1
- package/dist/cli/commands/map.js +0 -23
- package/dist/cli/commands/map.js.map +0 -1
- package/dist/cli/commands/mcp-install.d.ts +0 -17
- package/dist/cli/commands/mcp-install.d.ts.map +0 -1
- package/dist/cli/commands/mcp-install.js +0 -128
- package/dist/cli/commands/mcp-install.js.map +0 -1
- package/dist/cli/commands/memory-brain.d.ts +0 -14
- package/dist/cli/commands/memory-brain.d.ts.map +0 -1
- package/dist/cli/commands/memory-brain.js +0 -151
- package/dist/cli/commands/memory-brain.js.map +0 -1
- package/dist/cli/commands/migrate-claude-mem.d.ts +0 -18
- package/dist/cli/commands/migrate-claude-mem.d.ts.map +0 -1
- package/dist/cli/commands/migrate-claude-mem.js +0 -60
- package/dist/cli/commands/migrate-claude-mem.js.map +0 -1
- package/dist/cli/commands/next.d.ts +0 -9
- package/dist/cli/commands/next.d.ts.map +0 -1
- package/dist/cli/commands/next.js +0 -20
- package/dist/cli/commands/next.js.map +0 -1
- package/dist/cli/commands/nexus.d.ts +0 -16
- package/dist/cli/commands/nexus.d.ts.map +0 -1
- package/dist/cli/commands/nexus.js +0 -155
- package/dist/cli/commands/nexus.js.map +0 -1
- package/dist/cli/commands/observe.d.ts +0 -9
- package/dist/cli/commands/observe.d.ts.map +0 -1
- package/dist/cli/commands/observe.js +0 -39
- package/dist/cli/commands/observe.js.map +0 -1
- package/dist/cli/commands/ops.d.ts +0 -10
- package/dist/cli/commands/ops.d.ts.map +0 -1
- package/dist/cli/commands/ops.js +0 -19
- package/dist/cli/commands/ops.js.map +0 -1
- package/dist/cli/commands/orchestrate.d.ts +0 -8
- package/dist/cli/commands/orchestrate.d.ts.map +0 -1
- package/dist/cli/commands/orchestrate.js +0 -58
- package/dist/cli/commands/orchestrate.js.map +0 -1
- package/dist/cli/commands/otel.d.ts +0 -12
- package/dist/cli/commands/otel.d.ts.map +0 -1
- package/dist/cli/commands/otel.js +0 -128
- package/dist/cli/commands/otel.js.map +0 -1
- package/dist/cli/commands/phase.d.ts +0 -12
- package/dist/cli/commands/phase.d.ts.map +0 -1
- package/dist/cli/commands/phase.js +0 -88
- package/dist/cli/commands/phase.js.map +0 -1
- package/dist/cli/commands/phases.d.ts +0 -12
- package/dist/cli/commands/phases.d.ts.map +0 -1
- package/dist/cli/commands/phases.js +0 -37
- package/dist/cli/commands/phases.js.map +0 -1
- package/dist/cli/commands/plan.d.ts +0 -8
- package/dist/cli/commands/plan.d.ts.map +0 -1
- package/dist/cli/commands/plan.js +0 -15
- package/dist/cli/commands/plan.js.map +0 -1
- package/dist/cli/commands/promote.d.ts +0 -7
- package/dist/cli/commands/promote.d.ts.map +0 -1
- package/dist/cli/commands/promote.js +0 -15
- package/dist/cli/commands/promote.js.map +0 -1
- package/dist/cli/commands/reason.d.ts +0 -35
- package/dist/cli/commands/reason.d.ts.map +0 -1
- package/dist/cli/commands/reason.js +0 -104
- package/dist/cli/commands/reason.js.map +0 -1
- package/dist/cli/commands/refresh-memory.d.ts +0 -9
- package/dist/cli/commands/refresh-memory.d.ts.map +0 -1
- package/dist/cli/commands/refresh-memory.js +0 -24
- package/dist/cli/commands/refresh-memory.js.map +0 -1
- package/dist/cli/commands/relates.d.ts +0 -12
- package/dist/cli/commands/relates.d.ts.map +0 -1
- package/dist/cli/commands/relates.js +0 -53
- package/dist/cli/commands/relates.js.map +0 -1
- package/dist/cli/commands/release.d.ts +0 -8
- package/dist/cli/commands/release.d.ts.map +0 -1
- package/dist/cli/commands/release.js +0 -72
- package/dist/cli/commands/release.js.map +0 -1
- package/dist/cli/commands/remote.d.ts +0 -12
- package/dist/cli/commands/remote.d.ts.map +0 -1
- package/dist/cli/commands/remote.js +0 -207
- package/dist/cli/commands/remote.js.map +0 -1
- package/dist/cli/commands/reorder.d.ts +0 -7
- package/dist/cli/commands/reorder.d.ts.map +0 -1
- package/dist/cli/commands/reorder.js +0 -20
- package/dist/cli/commands/reorder.js.map +0 -1
- package/dist/cli/commands/reparent.d.ts +0 -10
- package/dist/cli/commands/reparent.d.ts.map +0 -1
- package/dist/cli/commands/reparent.js +0 -19
- package/dist/cli/commands/reparent.js.map +0 -1
- package/dist/cli/commands/research.d.ts +0 -8
- package/dist/cli/commands/research.d.ts.map +0 -1
- package/dist/cli/commands/research.js +0 -129
- package/dist/cli/commands/research.js.map +0 -1
- package/dist/cli/commands/restore.d.ts +0 -11
- package/dist/cli/commands/restore.d.ts.map +0 -1
- package/dist/cli/commands/restore.js +0 -224
- package/dist/cli/commands/restore.js.map +0 -1
- package/dist/cli/commands/roadmap.d.ts +0 -8
- package/dist/cli/commands/roadmap.d.ts.map +0 -1
- package/dist/cli/commands/roadmap.js +0 -21
- package/dist/cli/commands/roadmap.js.map +0 -1
- package/dist/cli/commands/safestop.d.ts +0 -14
- package/dist/cli/commands/safestop.d.ts.map +0 -1
- package/dist/cli/commands/safestop.js +0 -32
- package/dist/cli/commands/safestop.js.map +0 -1
- package/dist/cli/commands/self-update.d.ts +0 -15
- package/dist/cli/commands/self-update.d.ts.map +0 -1
- package/dist/cli/commands/self-update.js +0 -329
- package/dist/cli/commands/self-update.js.map +0 -1
- package/dist/cli/commands/sequence.d.ts +0 -8
- package/dist/cli/commands/sequence.d.ts.map +0 -1
- package/dist/cli/commands/sequence.js +0 -30
- package/dist/cli/commands/sequence.js.map +0 -1
- package/dist/cli/commands/session.d.ts +0 -12
- package/dist/cli/commands/session.d.ts.map +0 -1
- package/dist/cli/commands/session.js +0 -175
- package/dist/cli/commands/session.js.map +0 -1
- package/dist/cli/commands/show.d.ts +0 -13
- package/dist/cli/commands/show.d.ts.map +0 -1
- package/dist/cli/commands/show.js +0 -20
- package/dist/cli/commands/show.js.map +0 -1
- package/dist/cli/commands/skills.d.ts +0 -13
- package/dist/cli/commands/skills.d.ts.map +0 -1
- package/dist/cli/commands/skills.js +0 -131
- package/dist/cli/commands/skills.js.map +0 -1
- package/dist/cli/commands/snapshot.d.ts +0 -9
- package/dist/cli/commands/snapshot.d.ts.map +0 -1
- package/dist/cli/commands/snapshot.js +0 -50
- package/dist/cli/commands/snapshot.js.map +0 -1
- package/dist/cli/commands/specification.d.ts +0 -13
- package/dist/cli/commands/specification.d.ts.map +0 -1
- package/dist/cli/commands/specification.js +0 -45
- package/dist/cli/commands/specification.js.map +0 -1
- package/dist/cli/commands/start.d.ts +0 -13
- package/dist/cli/commands/start.d.ts.map +0 -1
- package/dist/cli/commands/start.js +0 -20
- package/dist/cli/commands/start.js.map +0 -1
- package/dist/cli/commands/stats.d.ts +0 -12
- package/dist/cli/commands/stats.d.ts.map +0 -1
- package/dist/cli/commands/stats.js +0 -35
- package/dist/cli/commands/stats.js.map +0 -1
- package/dist/cli/commands/sticky.d.ts +0 -16
- package/dist/cli/commands/sticky.d.ts.map +0 -1
- package/dist/cli/commands/sticky.js +0 -211
- package/dist/cli/commands/sticky.js.map +0 -1
- package/dist/cli/commands/stop.d.ts +0 -13
- package/dist/cli/commands/stop.d.ts.map +0 -1
- package/dist/cli/commands/stop.js +0 -20
- package/dist/cli/commands/stop.js.map +0 -1
- package/dist/cli/commands/testing.d.ts +0 -13
- package/dist/cli/commands/testing.d.ts.map +0 -1
- package/dist/cli/commands/testing.js +0 -64
- package/dist/cli/commands/testing.js.map +0 -1
- package/dist/cli/commands/token.d.ts +0 -10
- package/dist/cli/commands/token.d.ts.map +0 -1
- package/dist/cli/commands/token.js +0 -135
- package/dist/cli/commands/token.js.map +0 -1
- package/dist/cli/commands/update.d.ts +0 -12
- package/dist/cli/commands/update.d.ts.map +0 -1
- package/dist/cli/commands/update.js +0 -83
- package/dist/cli/commands/update.js.map +0 -1
- package/dist/cli/commands/upgrade.d.ts +0 -16
- package/dist/cli/commands/upgrade.d.ts.map +0 -1
- package/dist/cli/commands/upgrade.js +0 -83
- package/dist/cli/commands/upgrade.js.map +0 -1
- package/dist/cli/commands/validate.d.ts +0 -12
- package/dist/cli/commands/validate.d.ts.map +0 -1
- package/dist/cli/commands/validate.js +0 -23
- package/dist/cli/commands/validate.js.map +0 -1
- package/dist/cli/commands/verify.d.ts +0 -8
- package/dist/cli/commands/verify.d.ts.map +0 -1
- package/dist/cli/commands/verify.js +0 -28
- package/dist/cli/commands/verify.js.map +0 -1
- package/dist/cli/commands/web.d.ts +0 -13
- package/dist/cli/commands/web.d.ts.map +0 -1
- package/dist/cli/commands/web.js +0 -264
- package/dist/cli/commands/web.js.map +0 -1
- package/dist/cli/field-context.d.ts +0 -32
- package/dist/cli/field-context.d.ts.map +0 -1
- package/dist/cli/field-context.js +0 -47
- package/dist/cli/field-context.js.map +0 -1
- package/dist/cli/format-context.d.ts +0 -32
- package/dist/cli/format-context.d.ts.map +0 -1
- package/dist/cli/format-context.js +0 -50
- package/dist/cli/format-context.js.map +0 -1
- package/dist/cli/index.d.ts +0 -9
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/logger-bootstrap.d.ts +0 -6
- package/dist/cli/logger-bootstrap.d.ts.map +0 -1
- package/dist/cli/logger-bootstrap.js +0 -10
- package/dist/cli/logger-bootstrap.js.map +0 -1
- package/dist/cli/middleware/output-format.d.ts +0 -30
- package/dist/cli/middleware/output-format.d.ts.map +0 -1
- package/dist/cli/middleware/output-format.js +0 -35
- package/dist/cli/middleware/output-format.js.map +0 -1
- package/dist/cli/progress.d.ts +0 -84
- package/dist/cli/progress.d.ts.map +0 -1
- package/dist/cli/progress.js +0 -169
- package/dist/cli/progress.js.map +0 -1
- package/dist/cli/renderers/colors.d.ts +0 -32
- package/dist/cli/renderers/colors.d.ts.map +0 -1
- package/dist/cli/renderers/colors.js +0 -141
- package/dist/cli/renderers/colors.js.map +0 -1
- package/dist/cli/renderers/error.d.ts +0 -13
- package/dist/cli/renderers/error.d.ts.map +0 -1
- package/dist/cli/renderers/error.js +0 -42
- package/dist/cli/renderers/error.js.map +0 -1
- package/dist/cli/renderers/index.d.ts +0 -59
- package/dist/cli/renderers/index.d.ts.map +0 -1
- package/dist/cli/renderers/index.js +0 -184
- package/dist/cli/renderers/index.js.map +0 -1
- package/dist/cli/renderers/normalizer.d.ts +0 -21
- package/dist/cli/renderers/normalizer.d.ts.map +0 -1
- package/dist/cli/renderers/normalizer.js +0 -106
- package/dist/cli/renderers/normalizer.js.map +0 -1
- package/dist/cli/renderers/system.d.ts +0 -25
- package/dist/cli/renderers/system.d.ts.map +0 -1
- package/dist/cli/renderers/system.js +0 -416
- package/dist/cli/renderers/system.js.map +0 -1
- package/dist/cli/renderers/tasks.d.ts +0 -28
- package/dist/cli/renderers/tasks.d.ts.map +0 -1
- package/dist/cli/renderers/tasks.js +0 -306
- package/dist/cli/renderers/tasks.js.map +0 -1
- package/dist/dispatch/adapters/cli.d.ts +0 -67
- package/dist/dispatch/adapters/cli.d.ts.map +0 -1
- package/dist/dispatch/adapters/cli.js +0 -205
- package/dist/dispatch/adapters/cli.js.map +0 -1
- package/dist/dispatch/adapters/mcp.d.ts +0 -37
- package/dist/dispatch/adapters/mcp.d.ts.map +0 -1
- package/dist/dispatch/adapters/mcp.js +0 -122
- package/dist/dispatch/adapters/mcp.js.map +0 -1
- package/dist/dispatch/context/session-context.d.ts +0 -54
- package/dist/dispatch/context/session-context.d.ts.map +0 -1
- package/dist/dispatch/context/session-context.js +0 -61
- package/dist/dispatch/context/session-context.js.map +0 -1
- package/dist/dispatch/dispatcher.d.ts +0 -23
- package/dist/dispatch/dispatcher.d.ts.map +0 -1
- package/dist/dispatch/dispatcher.js +0 -84
- package/dist/dispatch/dispatcher.js.map +0 -1
- package/dist/dispatch/domains/_base.d.ts +0 -59
- package/dist/dispatch/domains/_base.d.ts.map +0 -1
- package/dist/dispatch/domains/_base.js +0 -77
- package/dist/dispatch/domains/_base.js.map +0 -1
- package/dist/dispatch/domains/_meta.d.ts +0 -23
- package/dist/dispatch/domains/_meta.d.ts.map +0 -1
- package/dist/dispatch/domains/_meta.js +0 -25
- package/dist/dispatch/domains/_meta.js.map +0 -1
- package/dist/dispatch/domains/_routing.d.ts +0 -8
- package/dist/dispatch/domains/_routing.d.ts.map +0 -1
- package/dist/dispatch/domains/_routing.js +0 -20
- package/dist/dispatch/domains/_routing.js.map +0 -1
- package/dist/dispatch/domains/admin.d.ts +0 -25
- package/dist/dispatch/domains/admin.d.ts.map +0 -1
- package/dist/dispatch/domains/admin.js +0 -694
- package/dist/dispatch/domains/admin.js.map +0 -1
- package/dist/dispatch/domains/check.d.ts +0 -22
- package/dist/dispatch/domains/check.d.ts.map +0 -1
- package/dist/dispatch/domains/check.js +0 -293
- package/dist/dispatch/domains/check.js.map +0 -1
- package/dist/dispatch/domains/index.d.ts +0 -26
- package/dist/dispatch/domains/index.d.ts.map +0 -1
- package/dist/dispatch/domains/index.js +0 -38
- package/dist/dispatch/domains/index.js.map +0 -1
- package/dist/dispatch/domains/memory.d.ts +0 -22
- package/dist/dispatch/domains/memory.d.ts.map +0 -1
- package/dist/dispatch/domains/memory.js +0 -303
- package/dist/dispatch/domains/memory.js.map +0 -1
- package/dist/dispatch/domains/nexus.d.ts +0 -22
- package/dist/dispatch/domains/nexus.d.ts.map +0 -1
- package/dist/dispatch/domains/nexus.js +0 -286
- package/dist/dispatch/domains/nexus.js.map +0 -1
- package/dist/dispatch/domains/orchestrate.d.ts +0 -19
- package/dist/dispatch/domains/orchestrate.d.ts.map +0 -1
- package/dist/dispatch/domains/orchestrate.js +0 -259
- package/dist/dispatch/domains/orchestrate.js.map +0 -1
- package/dist/dispatch/domains/pipeline.d.ts +0 -35
- package/dist/dispatch/domains/pipeline.d.ts.map +0 -1
- package/dist/dispatch/domains/pipeline.js +0 -553
- package/dist/dispatch/domains/pipeline.js.map +0 -1
- package/dist/dispatch/domains/session.d.ts +0 -22
- package/dist/dispatch/domains/session.d.ts.map +0 -1
- package/dist/dispatch/domains/session.js +0 -255
- package/dist/dispatch/domains/session.js.map +0 -1
- package/dist/dispatch/domains/sticky.d.ts +0 -20
- package/dist/dispatch/domains/sticky.d.ts.map +0 -1
- package/dist/dispatch/domains/sticky.js +0 -164
- package/dist/dispatch/domains/sticky.js.map +0 -1
- package/dist/dispatch/domains/tasks.d.ts +0 -25
- package/dist/dispatch/domains/tasks.d.ts.map +0 -1
- package/dist/dispatch/domains/tasks.js +0 -339
- package/dist/dispatch/domains/tasks.js.map +0 -1
- package/dist/dispatch/domains/tools.d.ts +0 -36
- package/dist/dispatch/domains/tools.d.ts.map +0 -1
- package/dist/dispatch/domains/tools.js +0 -451
- package/dist/dispatch/domains/tools.js.map +0 -1
- package/dist/dispatch/engines/_error.d.ts +0 -42
- package/dist/dispatch/engines/_error.d.ts.map +0 -1
- package/dist/dispatch/engines/_error.js +0 -201
- package/dist/dispatch/engines/_error.js.map +0 -1
- package/dist/dispatch/engines/codebase-map-engine.d.ts +0 -17
- package/dist/dispatch/engines/codebase-map-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/codebase-map-engine.js +0 -29
- package/dist/dispatch/engines/codebase-map-engine.js.map +0 -1
- package/dist/dispatch/engines/config-engine.d.ts +0 -32
- package/dist/dispatch/engines/config-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/config-engine.js +0 -70
- package/dist/dispatch/engines/config-engine.js.map +0 -1
- package/dist/dispatch/engines/hooks-engine.d.ts +0 -47
- package/dist/dispatch/engines/hooks-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/hooks-engine.js +0 -57
- package/dist/dispatch/engines/hooks-engine.js.map +0 -1
- package/dist/dispatch/engines/init-engine.d.ts +0 -43
- package/dist/dispatch/engines/init-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/init-engine.js +0 -73
- package/dist/dispatch/engines/init-engine.js.map +0 -1
- package/dist/dispatch/engines/lifecycle-engine.d.ts +0 -66
- package/dist/dispatch/engines/lifecycle-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/lifecycle-engine.js +0 -213
- package/dist/dispatch/engines/lifecycle-engine.js.map +0 -1
- package/dist/dispatch/engines/memory-engine.d.ts +0 -10
- package/dist/dispatch/engines/memory-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/memory-engine.js +0 -10
- package/dist/dispatch/engines/memory-engine.js.map +0 -1
- package/dist/dispatch/engines/nexus-engine.d.ts +0 -167
- package/dist/dispatch/engines/nexus-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/nexus-engine.js +0 -356
- package/dist/dispatch/engines/nexus-engine.js.map +0 -1
- package/dist/dispatch/engines/orchestrate-engine.d.ts +0 -133
- package/dist/dispatch/engines/orchestrate-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/orchestrate-engine.js +0 -769
- package/dist/dispatch/engines/orchestrate-engine.js.map +0 -1
- package/dist/dispatch/engines/pipeline-engine.d.ts +0 -51
- package/dist/dispatch/engines/pipeline-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/pipeline-engine.js +0 -191
- package/dist/dispatch/engines/pipeline-engine.js.map +0 -1
- package/dist/dispatch/engines/release-engine.d.ts +0 -94
- package/dist/dispatch/engines/release-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/release-engine.js +0 -669
- package/dist/dispatch/engines/release-engine.js.map +0 -1
- package/dist/dispatch/engines/session-engine.d.ts +0 -323
- package/dist/dispatch/engines/session-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/session-engine.js +0 -869
- package/dist/dispatch/engines/session-engine.js.map +0 -1
- package/dist/dispatch/engines/sticky-engine.d.ts +0 -100
- package/dist/dispatch/engines/sticky-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/sticky-engine.js +0 -181
- package/dist/dispatch/engines/sticky-engine.js.map +0 -1
- package/dist/dispatch/engines/system-engine.d.ts +0 -382
- package/dist/dispatch/engines/system-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/system-engine.js +0 -992
- package/dist/dispatch/engines/system-engine.js.map +0 -1
- package/dist/dispatch/engines/task-engine.d.ts +0 -630
- package/dist/dispatch/engines/task-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/task-engine.js +0 -979
- package/dist/dispatch/engines/task-engine.js.map +0 -1
- package/dist/dispatch/engines/template-parser.d.ts +0 -34
- package/dist/dispatch/engines/template-parser.d.ts.map +0 -1
- package/dist/dispatch/engines/template-parser.js +0 -57
- package/dist/dispatch/engines/template-parser.js.map +0 -1
- package/dist/dispatch/engines/tools-engine.d.ts +0 -270
- package/dist/dispatch/engines/tools-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/tools-engine.js +0 -636
- package/dist/dispatch/engines/tools-engine.js.map +0 -1
- package/dist/dispatch/engines/validate-engine.d.ts +0 -154
- package/dist/dispatch/engines/validate-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/validate-engine.js +0 -524
- package/dist/dispatch/engines/validate-engine.js.map +0 -1
- package/dist/dispatch/index.d.ts +0 -20
- package/dist/dispatch/index.d.ts.map +0 -1
- package/dist/dispatch/index.js +0 -19
- package/dist/dispatch/index.js.map +0 -1
- package/dist/dispatch/lib/capability-matrix.d.ts +0 -11
- package/dist/dispatch/lib/capability-matrix.d.ts.map +0 -1
- package/dist/dispatch/lib/capability-matrix.js +0 -10
- package/dist/dispatch/lib/capability-matrix.js.map +0 -1
- package/dist/dispatch/lib/config.d.ts +0 -16
- package/dist/dispatch/lib/config.d.ts.map +0 -1
- package/dist/dispatch/lib/config.js +0 -15
- package/dist/dispatch/lib/config.js.map +0 -1
- package/dist/dispatch/lib/engine.d.ts +0 -25
- package/dist/dispatch/lib/engine.d.ts.map +0 -1
- package/dist/dispatch/lib/engine.js +0 -44
- package/dist/dispatch/lib/engine.js.map +0 -1
- package/dist/dispatch/lib/meta.d.ts +0 -26
- package/dist/dispatch/lib/meta.d.ts.map +0 -1
- package/dist/dispatch/lib/meta.js +0 -37
- package/dist/dispatch/lib/meta.js.map +0 -1
- package/dist/dispatch/lib/param-utils.d.ts +0 -11
- package/dist/dispatch/lib/param-utils.d.ts.map +0 -1
- package/dist/dispatch/lib/param-utils.js +0 -10
- package/dist/dispatch/lib/param-utils.js.map +0 -1
- package/dist/dispatch/lib/projections.d.ts +0 -23
- package/dist/dispatch/lib/projections.d.ts.map +0 -1
- package/dist/dispatch/lib/projections.js +0 -48
- package/dist/dispatch/lib/projections.js.map +0 -1
- package/dist/dispatch/lib/schema-utils.d.ts +0 -42
- package/dist/dispatch/lib/schema-utils.d.ts.map +0 -1
- package/dist/dispatch/lib/schema-utils.js +0 -93
- package/dist/dispatch/lib/schema-utils.js.map +0 -1
- package/dist/dispatch/lib/security.d.ts +0 -11
- package/dist/dispatch/lib/security.d.ts.map +0 -1
- package/dist/dispatch/lib/security.js +0 -10
- package/dist/dispatch/lib/security.js.map +0 -1
- package/dist/dispatch/middleware/audit.d.ts +0 -23
- package/dist/dispatch/middleware/audit.d.ts.map +0 -1
- package/dist/dispatch/middleware/audit.js +0 -169
- package/dist/dispatch/middleware/audit.js.map +0 -1
- package/dist/dispatch/middleware/field-filter.d.ts +0 -24
- package/dist/dispatch/middleware/field-filter.d.ts.map +0 -1
- package/dist/dispatch/middleware/field-filter.js +0 -65
- package/dist/dispatch/middleware/field-filter.js.map +0 -1
- package/dist/dispatch/middleware/pipeline.d.ts +0 -20
- package/dist/dispatch/middleware/pipeline.d.ts.map +0 -1
- package/dist/dispatch/middleware/pipeline.js +0 -47
- package/dist/dispatch/middleware/pipeline.js.map +0 -1
- package/dist/dispatch/middleware/projection.d.ts +0 -35
- package/dist/dispatch/middleware/projection.d.ts.map +0 -1
- package/dist/dispatch/middleware/projection.js +0 -145
- package/dist/dispatch/middleware/projection.js.map +0 -1
- package/dist/dispatch/middleware/protocol-enforcement.d.ts +0 -12
- package/dist/dispatch/middleware/protocol-enforcement.d.ts.map +0 -1
- package/dist/dispatch/middleware/protocol-enforcement.js +0 -30
- package/dist/dispatch/middleware/protocol-enforcement.js.map +0 -1
- package/dist/dispatch/middleware/rate-limiter.d.ts +0 -30
- package/dist/dispatch/middleware/rate-limiter.d.ts.map +0 -1
- package/dist/dispatch/middleware/rate-limiter.js +0 -101
- package/dist/dispatch/middleware/rate-limiter.js.map +0 -1
- package/dist/dispatch/middleware/sanitizer.d.ts +0 -10
- package/dist/dispatch/middleware/sanitizer.d.ts.map +0 -1
- package/dist/dispatch/middleware/sanitizer.js +0 -42
- package/dist/dispatch/middleware/sanitizer.js.map +0 -1
- package/dist/dispatch/middleware/session-resolver.d.ts +0 -26
- package/dist/dispatch/middleware/session-resolver.d.ts.map +0 -1
- package/dist/dispatch/middleware/session-resolver.js +0 -65
- package/dist/dispatch/middleware/session-resolver.js.map +0 -1
- package/dist/dispatch/middleware/verification-gates.d.ts +0 -3
- package/dist/dispatch/middleware/verification-gates.d.ts.map +0 -1
- package/dist/dispatch/middleware/verification-gates.js +0 -40
- package/dist/dispatch/middleware/verification-gates.js.map +0 -1
- package/dist/dispatch/registry.d.ts +0 -91
- package/dist/dispatch/registry.d.ts.map +0 -1
- package/dist/dispatch/registry.js +0 -2914
- package/dist/dispatch/registry.js.map +0 -1
- package/dist/dispatch/types.d.ts +0 -218
- package/dist/dispatch/types.d.ts.map +0 -1
- package/dist/dispatch/types.js +0 -25
- package/dist/dispatch/types.js.map +0 -1
- package/dist/mcp/gateways/mutate.d.ts +0 -146
- package/dist/mcp/gateways/mutate.d.ts.map +0 -1
- package/dist/mcp/gateways/mutate.js +0 -1016
- package/dist/mcp/gateways/mutate.js.map +0 -1
- package/dist/mcp/gateways/query.d.ts +0 -138
- package/dist/mcp/gateways/query.d.ts.map +0 -1
- package/dist/mcp/gateways/query.js +0 -186
- package/dist/mcp/gateways/query.js.map +0 -1
- package/dist/mcp/index.d.ts +0 -16
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/lib/background-jobs.d.ts +0 -86
- package/dist/mcp/lib/background-jobs.d.ts.map +0 -1
- package/dist/mcp/lib/background-jobs.js +0 -183
- package/dist/mcp/lib/background-jobs.js.map +0 -1
- package/dist/mcp/lib/budget.d.ts +0 -35
- package/dist/mcp/lib/budget.d.ts.map +0 -1
- package/dist/mcp/lib/budget.js +0 -102
- package/dist/mcp/lib/budget.js.map +0 -1
- package/dist/mcp/lib/cache.d.ts +0 -78
- package/dist/mcp/lib/cache.d.ts.map +0 -1
- package/dist/mcp/lib/cache.js +0 -207
- package/dist/mcp/lib/cache.js.map +0 -1
- package/dist/mcp/lib/config.d.ts +0 -42
- package/dist/mcp/lib/config.d.ts.map +0 -1
- package/dist/mcp/lib/config.js +0 -241
- package/dist/mcp/lib/config.js.map +0 -1
- package/dist/mcp/lib/defaults.d.ts +0 -115
- package/dist/mcp/lib/defaults.d.ts.map +0 -1
- package/dist/mcp/lib/defaults.js +0 -61
- package/dist/mcp/lib/defaults.js.map +0 -1
- package/dist/mcp/lib/gate-validators.d.ts +0 -13
- package/dist/mcp/lib/gate-validators.d.ts.map +0 -1
- package/dist/mcp/lib/gate-validators.js +0 -13
- package/dist/mcp/lib/gate-validators.js.map +0 -1
- package/dist/mcp/lib/gateway-meta.d.ts +0 -37
- package/dist/mcp/lib/gateway-meta.d.ts.map +0 -1
- package/dist/mcp/lib/gateway-meta.js +0 -50
- package/dist/mcp/lib/gateway-meta.js.map +0 -1
- package/dist/mcp/lib/job-manager-accessor.d.ts +0 -10
- package/dist/mcp/lib/job-manager-accessor.d.ts.map +0 -1
- package/dist/mcp/lib/job-manager-accessor.js +0 -14
- package/dist/mcp/lib/job-manager-accessor.js.map +0 -1
- package/dist/mcp/lib/protocol-enforcement.d.ts +0 -12
- package/dist/mcp/lib/protocol-enforcement.d.ts.map +0 -1
- package/dist/mcp/lib/protocol-enforcement.js +0 -12
- package/dist/mcp/lib/protocol-enforcement.js.map +0 -1
- package/dist/mcp/lib/protocol-rules.d.ts +0 -12
- package/dist/mcp/lib/protocol-rules.d.ts.map +0 -1
- package/dist/mcp/lib/protocol-rules.js +0 -12
- package/dist/mcp/lib/protocol-rules.js.map +0 -1
- package/dist/mcp/lib/rate-limiter.d.ts +0 -110
- package/dist/mcp/lib/rate-limiter.d.ts.map +0 -1
- package/dist/mcp/lib/rate-limiter.js +0 -208
- package/dist/mcp/lib/rate-limiter.js.map +0 -1
- package/dist/mcp/lib/router.d.ts +0 -58
- package/dist/mcp/lib/router.d.ts.map +0 -1
- package/dist/mcp/lib/router.js +0 -12
- package/dist/mcp/lib/router.js.map +0 -1
- package/dist/mcp/lib/security.d.ts +0 -161
- package/dist/mcp/lib/security.d.ts.map +0 -1
- package/dist/mcp/lib/security.js +0 -360
- package/dist/mcp/lib/security.js.map +0 -1
- package/dist/mcp/lib/verification-gates.d.ts +0 -13
- package/dist/mcp/lib/verification-gates.d.ts.map +0 -1
- package/dist/mcp/lib/verification-gates.js +0 -12
- package/dist/mcp/lib/verification-gates.js.map +0 -1
- package/dist/mcp/resources/budget.d.ts +0 -22
- package/dist/mcp/resources/budget.d.ts.map +0 -1
- package/dist/mcp/resources/budget.js +0 -46
- package/dist/mcp/resources/budget.js.map +0 -1
- package/dist/mcp/resources/index.d.ts +0 -53
- package/dist/mcp/resources/index.d.ts.map +0 -1
- package/dist/mcp/resources/index.js +0 -278
- package/dist/mcp/resources/index.js.map +0 -1
package/dist/cli/index.js
CHANGED
|
@@ -16783,6 +16783,63 @@ var init_health_monitor = __esm({
|
|
|
16783
16783
|
}
|
|
16784
16784
|
});
|
|
16785
16785
|
|
|
16786
|
+
// packages/core/src/lib/retry.ts
|
|
16787
|
+
var retry_exports = {};
|
|
16788
|
+
__export(retry_exports, {
|
|
16789
|
+
computeDelay: () => computeDelay,
|
|
16790
|
+
withRetry: () => withRetry
|
|
16791
|
+
});
|
|
16792
|
+
async function withRetry(fn, options) {
|
|
16793
|
+
const maxAttempts = options?.maxAttempts ?? 3;
|
|
16794
|
+
const baseDelayMs = options?.baseDelayMs ?? 2e3;
|
|
16795
|
+
const maxDelayMs = options?.maxDelayMs ?? 3e4;
|
|
16796
|
+
const retryableErrors = options?.retryableErrors;
|
|
16797
|
+
let lastError;
|
|
16798
|
+
let totalDelayMs = 0;
|
|
16799
|
+
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
16800
|
+
try {
|
|
16801
|
+
return await fn();
|
|
16802
|
+
} catch (err) {
|
|
16803
|
+
lastError = err;
|
|
16804
|
+
const isLastAttempt = attempt === maxAttempts;
|
|
16805
|
+
if (isLastAttempt) break;
|
|
16806
|
+
if (retryableErrors !== void 0 && !isRetryable(err, retryableErrors)) break;
|
|
16807
|
+
const delay = computeDelay(attempt, baseDelayMs, maxDelayMs);
|
|
16808
|
+
totalDelayMs += delay;
|
|
16809
|
+
await sleep(delay);
|
|
16810
|
+
}
|
|
16811
|
+
}
|
|
16812
|
+
const context = { attempts: maxAttempts, totalDelayMs };
|
|
16813
|
+
augmentError(lastError, context);
|
|
16814
|
+
throw lastError;
|
|
16815
|
+
}
|
|
16816
|
+
function computeDelay(attempt, baseDelayMs, maxDelayMs) {
|
|
16817
|
+
const exponential = baseDelayMs * 2 ** (attempt - 1);
|
|
16818
|
+
return Math.min(exponential, maxDelayMs);
|
|
16819
|
+
}
|
|
16820
|
+
function isRetryable(err, predicates) {
|
|
16821
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
16822
|
+
return predicates.some((predicate) => {
|
|
16823
|
+
if (predicate instanceof RegExp) return predicate.test(message);
|
|
16824
|
+
return predicate(err);
|
|
16825
|
+
});
|
|
16826
|
+
}
|
|
16827
|
+
function augmentError(err, context) {
|
|
16828
|
+
if (err instanceof Error) {
|
|
16829
|
+
const mutableErr = err;
|
|
16830
|
+
mutableErr.attempts = context.attempts;
|
|
16831
|
+
mutableErr.totalDelayMs = context.totalDelayMs;
|
|
16832
|
+
}
|
|
16833
|
+
}
|
|
16834
|
+
function sleep(ms) {
|
|
16835
|
+
return new Promise((resolve13) => setTimeout(resolve13, ms));
|
|
16836
|
+
}
|
|
16837
|
+
var init_retry = __esm({
|
|
16838
|
+
"packages/core/src/lib/retry.ts"() {
|
|
16839
|
+
"use strict";
|
|
16840
|
+
}
|
|
16841
|
+
});
|
|
16842
|
+
|
|
16786
16843
|
// packages/core/src/agents/retry.ts
|
|
16787
16844
|
function createRetryPolicy(overrides) {
|
|
16788
16845
|
return { ...DEFAULT_RETRY_POLICY, ...overrides };
|
|
@@ -16802,42 +16859,27 @@ function shouldRetry(error40, attempt, policy) {
|
|
|
16802
16859
|
if (classification === "retriable") return true;
|
|
16803
16860
|
return policy.retryOnUnknown;
|
|
16804
16861
|
}
|
|
16805
|
-
async function
|
|
16862
|
+
async function withRetry2(fn, policy) {
|
|
16806
16863
|
const effectivePolicy = createRetryPolicy(policy);
|
|
16807
|
-
|
|
16808
|
-
|
|
16809
|
-
|
|
16810
|
-
|
|
16811
|
-
|
|
16812
|
-
|
|
16813
|
-
|
|
16814
|
-
|
|
16815
|
-
|
|
16816
|
-
|
|
16817
|
-
|
|
16818
|
-
|
|
16819
|
-
|
|
16820
|
-
|
|
16821
|
-
|
|
16822
|
-
|
|
16823
|
-
|
|
16824
|
-
|
|
16825
|
-
totalDelayMs
|
|
16826
|
-
};
|
|
16827
|
-
}
|
|
16828
|
-
if (attempt < effectivePolicy.maxRetries) {
|
|
16829
|
-
const delay = calculateDelay(attempt, effectivePolicy);
|
|
16830
|
-
totalDelayMs += delay;
|
|
16831
|
-
await sleep(delay);
|
|
16832
|
-
}
|
|
16833
|
-
}
|
|
16864
|
+
const { withRetry: coreRetry } = await Promise.resolve().then(() => (init_retry(), retry_exports));
|
|
16865
|
+
try {
|
|
16866
|
+
const value = await coreRetry(fn, {
|
|
16867
|
+
maxAttempts: effectivePolicy.maxRetries + 1,
|
|
16868
|
+
baseDelayMs: effectivePolicy.baseDelayMs,
|
|
16869
|
+
maxDelayMs: effectivePolicy.maxDelayMs,
|
|
16870
|
+
retryableErrors: [(err) => shouldRetry(err, 0, effectivePolicy)]
|
|
16871
|
+
});
|
|
16872
|
+
return { success: true, value, attempts: 1, totalDelayMs: 0 };
|
|
16873
|
+
} catch (err) {
|
|
16874
|
+
const error40 = err instanceof Error ? err : new Error(String(err));
|
|
16875
|
+
const context = err;
|
|
16876
|
+
return {
|
|
16877
|
+
success: false,
|
|
16878
|
+
error: error40,
|
|
16879
|
+
attempts: context.attempts ?? effectivePolicy.maxRetries + 1,
|
|
16880
|
+
totalDelayMs: context.totalDelayMs ?? 0
|
|
16881
|
+
};
|
|
16834
16882
|
}
|
|
16835
|
-
return {
|
|
16836
|
-
success: false,
|
|
16837
|
-
error: lastError ?? new Error("Retry exhausted without error"),
|
|
16838
|
-
attempts: effectivePolicy.maxRetries + 1,
|
|
16839
|
-
totalDelayMs
|
|
16840
|
-
};
|
|
16841
16883
|
}
|
|
16842
16884
|
async function recoverCrashedAgents(thresholdMs = 3e4, cwd) {
|
|
16843
16885
|
const results = [];
|
|
@@ -16884,11 +16926,8 @@ async function recoverCrashedAgents(thresholdMs = 3e4, cwd) {
|
|
|
16884
16926
|
}
|
|
16885
16927
|
return results;
|
|
16886
16928
|
}
|
|
16887
|
-
function sleep(ms) {
|
|
16888
|
-
return new Promise((resolve13) => setTimeout(resolve13, ms));
|
|
16889
|
-
}
|
|
16890
16929
|
var DEFAULT_RETRY_POLICY;
|
|
16891
|
-
var
|
|
16930
|
+
var init_retry2 = __esm({
|
|
16892
16931
|
"packages/core/src/agents/retry.ts"() {
|
|
16893
16932
|
"use strict";
|
|
16894
16933
|
init_registry2();
|
|
@@ -16951,7 +16990,7 @@ __export(agents_exports, {
|
|
|
16951
16990
|
updateAgentSpecializations: () => updateAgentSpecializations,
|
|
16952
16991
|
updateAgentStatus: () => updateAgentStatus,
|
|
16953
16992
|
updateCapacity: () => updateCapacity,
|
|
16954
|
-
withRetry: () =>
|
|
16993
|
+
withRetry: () => withRetry2
|
|
16955
16994
|
});
|
|
16956
16995
|
var init_agents = __esm({
|
|
16957
16996
|
"packages/core/src/agents/index.ts"() {
|
|
@@ -16962,7 +17001,7 @@ var init_agents = __esm({
|
|
|
16962
17001
|
init_execution_learning();
|
|
16963
17002
|
init_health_monitor();
|
|
16964
17003
|
init_registry2();
|
|
16965
|
-
|
|
17004
|
+
init_retry2();
|
|
16966
17005
|
}
|
|
16967
17006
|
});
|
|
16968
17007
|
|
|
@@ -37172,68 +37211,16 @@ var init_issue = __esm({
|
|
|
37172
37211
|
}
|
|
37173
37212
|
});
|
|
37174
37213
|
|
|
37175
|
-
// packages/core/src/lib/retry.ts
|
|
37176
|
-
async function withRetry2(fn, options) {
|
|
37177
|
-
const maxAttempts = options?.maxAttempts ?? 3;
|
|
37178
|
-
const baseDelayMs = options?.baseDelayMs ?? 2e3;
|
|
37179
|
-
const maxDelayMs = options?.maxDelayMs ?? 3e4;
|
|
37180
|
-
const retryableErrors = options?.retryableErrors;
|
|
37181
|
-
let lastError;
|
|
37182
|
-
let totalDelayMs = 0;
|
|
37183
|
-
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
37184
|
-
try {
|
|
37185
|
-
return await fn();
|
|
37186
|
-
} catch (err) {
|
|
37187
|
-
lastError = err;
|
|
37188
|
-
const isLastAttempt = attempt === maxAttempts;
|
|
37189
|
-
if (isLastAttempt) break;
|
|
37190
|
-
if (retryableErrors !== void 0 && !isRetryable(err, retryableErrors)) break;
|
|
37191
|
-
const delay = computeDelay(attempt, baseDelayMs, maxDelayMs);
|
|
37192
|
-
totalDelayMs += delay;
|
|
37193
|
-
await sleep2(delay);
|
|
37194
|
-
}
|
|
37195
|
-
}
|
|
37196
|
-
const context = { attempts: maxAttempts, totalDelayMs };
|
|
37197
|
-
augmentError(lastError, context);
|
|
37198
|
-
throw lastError;
|
|
37199
|
-
}
|
|
37200
|
-
function computeDelay(attempt, baseDelayMs, maxDelayMs) {
|
|
37201
|
-
const exponential = baseDelayMs * 2 ** (attempt - 1);
|
|
37202
|
-
return Math.min(exponential, maxDelayMs);
|
|
37203
|
-
}
|
|
37204
|
-
function isRetryable(err, predicates) {
|
|
37205
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
37206
|
-
return predicates.some((predicate) => {
|
|
37207
|
-
if (predicate instanceof RegExp) return predicate.test(message);
|
|
37208
|
-
return predicate(err);
|
|
37209
|
-
});
|
|
37210
|
-
}
|
|
37211
|
-
function augmentError(err, context) {
|
|
37212
|
-
if (err instanceof Error) {
|
|
37213
|
-
const mutableErr = err;
|
|
37214
|
-
mutableErr.attempts = context.attempts;
|
|
37215
|
-
mutableErr.totalDelayMs = context.totalDelayMs;
|
|
37216
|
-
}
|
|
37217
|
-
}
|
|
37218
|
-
function sleep2(ms) {
|
|
37219
|
-
return new Promise((resolve13) => setTimeout(resolve13, ms));
|
|
37220
|
-
}
|
|
37221
|
-
var init_retry2 = __esm({
|
|
37222
|
-
"packages/core/src/lib/retry.ts"() {
|
|
37223
|
-
"use strict";
|
|
37224
|
-
}
|
|
37225
|
-
});
|
|
37226
|
-
|
|
37227
37214
|
// packages/core/src/lib/index.ts
|
|
37228
37215
|
var lib_exports = {};
|
|
37229
37216
|
__export(lib_exports, {
|
|
37230
37217
|
computeDelay: () => computeDelay,
|
|
37231
|
-
withRetry: () =>
|
|
37218
|
+
withRetry: () => withRetry
|
|
37232
37219
|
});
|
|
37233
37220
|
var init_lib = __esm({
|
|
37234
37221
|
"packages/core/src/lib/index.ts"() {
|
|
37235
37222
|
"use strict";
|
|
37236
|
-
|
|
37223
|
+
init_retry();
|
|
37237
37224
|
}
|
|
37238
37225
|
});
|
|
37239
37226
|
|
|
@@ -38812,6 +38799,19 @@ var init_config = __esm({
|
|
|
38812
38799
|
requireNotes: false,
|
|
38813
38800
|
multiSession: false
|
|
38814
38801
|
},
|
|
38802
|
+
enforcement: {
|
|
38803
|
+
acceptance: {
|
|
38804
|
+
mode: "block",
|
|
38805
|
+
requiredForPriorities: ["critical", "high", "medium", "low"],
|
|
38806
|
+
minimumCriteria: 3
|
|
38807
|
+
},
|
|
38808
|
+
session: { requiredForMutate: true }
|
|
38809
|
+
},
|
|
38810
|
+
verification: {
|
|
38811
|
+
enabled: true,
|
|
38812
|
+
maxRounds: 3,
|
|
38813
|
+
requiredGates: ["implemented", "testsPassed", "qaPassed"]
|
|
38814
|
+
},
|
|
38815
38815
|
lifecycle: {
|
|
38816
38816
|
mode: "strict"
|
|
38817
38817
|
},
|
|
@@ -41140,17 +41140,17 @@ function checkMin(criteria, min) {
|
|
|
41140
41140
|
}
|
|
41141
41141
|
async function createAcceptanceEnforcement(cwd) {
|
|
41142
41142
|
const isTest = !!process.env.VITEST;
|
|
41143
|
-
const
|
|
41144
|
-
const
|
|
41145
|
-
|
|
41146
|
-
|
|
41147
|
-
|
|
41148
|
-
|
|
41149
|
-
|
|
41150
|
-
|
|
41151
|
-
|
|
41152
|
-
const minCriteria =
|
|
41153
|
-
const defaultPriority =
|
|
41143
|
+
const config2 = await loadConfig(cwd);
|
|
41144
|
+
const acceptance = config2.enforcement?.acceptance;
|
|
41145
|
+
const mode = acceptance?.mode ?? (isTest ? "off" : "block");
|
|
41146
|
+
const requiredForPriorities = acceptance?.requiredForPriorities ?? [
|
|
41147
|
+
"critical",
|
|
41148
|
+
"high",
|
|
41149
|
+
"medium",
|
|
41150
|
+
"low"
|
|
41151
|
+
];
|
|
41152
|
+
const minCriteria = acceptance?.minimumCriteria ?? 3;
|
|
41153
|
+
const defaultPriority = "medium";
|
|
41154
41154
|
return {
|
|
41155
41155
|
checkMinimumCriteria: checkMin,
|
|
41156
41156
|
validateCreation(options) {
|
|
@@ -41880,8 +41880,8 @@ async function addTask(options, cwd, accessor) {
|
|
|
41880
41880
|
previewTask.completedAt = previewNow;
|
|
41881
41881
|
}
|
|
41882
41882
|
if (taskType !== "epic") {
|
|
41883
|
-
const
|
|
41884
|
-
if (
|
|
41883
|
+
const pCfg = await loadConfig(cwd);
|
|
41884
|
+
if (pCfg.verification?.enabled) {
|
|
41885
41885
|
previewTask.verification = buildDefaultVerification(previewNow);
|
|
41886
41886
|
}
|
|
41887
41887
|
}
|
|
@@ -41951,8 +41951,8 @@ async function addTask(options, cwd, accessor) {
|
|
|
41951
41951
|
task.completedAt = now2;
|
|
41952
41952
|
}
|
|
41953
41953
|
if (taskType !== "epic") {
|
|
41954
|
-
const
|
|
41955
|
-
if (
|
|
41954
|
+
const aCfg = await loadConfig(cwd);
|
|
41955
|
+
if (aCfg.verification?.enabled) {
|
|
41956
41956
|
task.verification = buildDefaultVerification(now2);
|
|
41957
41957
|
}
|
|
41958
41958
|
}
|
|
@@ -49085,21 +49085,15 @@ function isVerificationGate(value) {
|
|
|
49085
49085
|
}
|
|
49086
49086
|
async function loadCompletionEnforcement(cwd) {
|
|
49087
49087
|
const isTest = !!process.env.VITEST;
|
|
49088
|
-
const
|
|
49089
|
-
const
|
|
49090
|
-
|
|
49091
|
-
|
|
49092
|
-
);
|
|
49093
|
-
const
|
|
49094
|
-
const
|
|
49095
|
-
const
|
|
49096
|
-
const
|
|
49097
|
-
const acceptanceMode = modeRaw === "off" || modeRaw === "warn" || modeRaw === "block" ? modeRaw : isTest ? "off" : "block";
|
|
49098
|
-
const acceptanceRequiredForPriorities = Array.isArray(prioritiesRaw) ? prioritiesRaw.filter((p) => typeof p === "string") : isTest ? [] : ["critical", "high", "medium", "low"];
|
|
49099
|
-
const verificationEnabled = verificationEnabledRaw === true ? true : verificationEnabledRaw === false ? false : !isTest;
|
|
49100
|
-
const verificationRequiredGates = Array.isArray(verificationRequiredGatesRaw) ? verificationRequiredGatesRaw.filter((g) => typeof g === "string").filter(isVerificationGate) : DEFAULT_VERIFICATION_REQUIRED_GATES;
|
|
49101
|
-
const verificationMaxRounds = typeof verificationMaxRoundsRaw === "number" && Number.isInteger(verificationMaxRoundsRaw) ? verificationMaxRoundsRaw : 5;
|
|
49102
|
-
const lifecycleMode = lifecycleModeRaw === "strict" || lifecycleModeRaw === "warn" || lifecycleModeRaw === "advisory" || lifecycleModeRaw === "none" || lifecycleModeRaw === "off" ? lifecycleModeRaw : isTest ? "off" : "strict";
|
|
49088
|
+
const config2 = await loadConfig(cwd);
|
|
49089
|
+
const acceptance = config2.enforcement?.acceptance;
|
|
49090
|
+
const verificationCfg = config2.verification;
|
|
49091
|
+
const acceptanceMode = acceptance?.mode ?? (isTest ? "off" : "block");
|
|
49092
|
+
const acceptanceRequiredForPriorities = acceptance?.requiredForPriorities ?? (isTest ? [] : ["critical", "high", "medium", "low"]);
|
|
49093
|
+
const verificationEnabled = verificationCfg?.enabled ?? !isTest;
|
|
49094
|
+
const verificationRequiredGates = (verificationCfg?.requiredGates ?? []).filter(isVerificationGate).length > 0 ? (verificationCfg?.requiredGates ?? []).filter(isVerificationGate) : DEFAULT_VERIFICATION_REQUIRED_GATES;
|
|
49095
|
+
const verificationMaxRounds = verificationCfg?.maxRounds ?? 5;
|
|
49096
|
+
const lifecycleMode = config2.lifecycle?.mode ?? (isTest ? "off" : "strict");
|
|
49103
49097
|
return {
|
|
49104
49098
|
acceptanceMode,
|
|
49105
49099
|
acceptanceRequiredForPriorities,
|
|
@@ -67843,6 +67837,7 @@ __export(src_exports, {
|
|
|
67843
67837
|
getCleoDirAbsolute: () => getCleoDirAbsolute,
|
|
67844
67838
|
getCleoErrorRegistry: () => getCleoErrorRegistry,
|
|
67845
67839
|
getCleoHome: () => getCleoHome,
|
|
67840
|
+
getCleoTemplatesTildePath: () => getCleoTemplatesTildePath,
|
|
67846
67841
|
getCleoVersion: () => getCleoVersion,
|
|
67847
67842
|
getConfigPath: () => getConfigPath,
|
|
67848
67843
|
getConfigValue: () => getConfigValue,
|
|
@@ -67974,12 +67969,14 @@ __export(src_exports, {
|
|
|
67974
67969
|
tokenUsageMethodSchema: () => tokenUsageMethodSchema,
|
|
67975
67970
|
tokenUsageTransportSchema: () => tokenUsageTransportSchema,
|
|
67976
67971
|
ui: () => ui_exports,
|
|
67972
|
+
updateProjectName: () => updateProjectName,
|
|
67977
67973
|
updateTask: () => updateTask,
|
|
67978
67974
|
validateAgainstSchema: () => validateAgainstSchema,
|
|
67979
67975
|
validation: () => validation_exports
|
|
67980
67976
|
});
|
|
67981
67977
|
var init_src2 = __esm({
|
|
67982
67978
|
"packages/core/src/index.ts"() {
|
|
67979
|
+
"use strict";
|
|
67983
67980
|
init_src();
|
|
67984
67981
|
init_adapters();
|
|
67985
67982
|
init_admin();
|
|
@@ -78754,6 +78751,7 @@ __export(internal_exports, {
|
|
|
78754
78751
|
getCleoDirAbsolute: () => getCleoDirAbsolute,
|
|
78755
78752
|
getCleoErrorRegistry: () => getCleoErrorRegistry,
|
|
78756
78753
|
getCleoHome: () => getCleoHome,
|
|
78754
|
+
getCleoTemplatesTildePath: () => getCleoTemplatesTildePath,
|
|
78757
78755
|
getCleoVersion: () => getCleoVersion,
|
|
78758
78756
|
getConfigPath: () => getConfigPath,
|
|
78759
78757
|
getConfigValue: () => getConfigValue,
|
|
@@ -79120,6 +79118,7 @@ __export(internal_exports, {
|
|
|
79120
79118
|
updateAgentStatus: () => updateAgentStatus,
|
|
79121
79119
|
updateCapacity: () => updateCapacity,
|
|
79122
79120
|
updatePatternStats: () => updatePatternStats,
|
|
79121
|
+
updateProjectName: () => updateProjectName,
|
|
79123
79122
|
updateTask: () => updateTask,
|
|
79124
79123
|
validateAgainstSchema: () => validateAgainstSchema,
|
|
79125
79124
|
validateAllAdrs: () => validateAllAdrs,
|
|
@@ -79144,8 +79143,8 @@ __export(internal_exports, {
|
|
|
79144
79143
|
validateWorkflowGateStatus: () => validateWorkflowGateStatus,
|
|
79145
79144
|
validateWorkflowGateUpdate: () => validateWorkflowGateUpdate,
|
|
79146
79145
|
validation: () => validation_exports,
|
|
79147
|
-
withRetry: () =>
|
|
79148
|
-
withRetryShared: () =>
|
|
79146
|
+
withRetry: () => withRetry2,
|
|
79147
|
+
withRetryShared: () => withRetry,
|
|
79149
79148
|
writeMemoryBridge: () => writeMemoryBridge,
|
|
79150
79149
|
writeSnapshot: () => writeSnapshot
|
|
79151
79150
|
});
|
|
@@ -79171,7 +79170,7 @@ var init_internal = __esm({
|
|
|
79171
79170
|
init_prediction();
|
|
79172
79171
|
init_create();
|
|
79173
79172
|
init_diagnostics();
|
|
79174
|
-
|
|
79173
|
+
init_retry();
|
|
79175
79174
|
init_chain_store();
|
|
79176
79175
|
init_lifecycle2();
|
|
79177
79176
|
init_tessera_engine();
|
|
@@ -94633,7 +94632,9 @@ function registerDetectDriftCommand(program) {
|
|
|
94633
94632
|
userResult.summary.warnings = 1;
|
|
94634
94633
|
}
|
|
94635
94634
|
userResult.summary.exitCode = userResult.summary.errors > 0 ? 2 : userResult.summary.warnings > 0 ? 1 : 0;
|
|
94636
|
-
userResult.recommendations.push(
|
|
94635
|
+
userResult.recommendations.push(
|
|
94636
|
+
"detect-drift source checks only apply to the CLEO monorepo. Run from the cleo source tree for full analysis."
|
|
94637
|
+
);
|
|
94637
94638
|
cliOutput(userResult, { command: "detect-drift" });
|
|
94638
94639
|
process.exit(userResult.summary.exitCode);
|
|
94639
94640
|
}
|