@cleocode/cleo 2026.2.5

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.
Files changed (1524) hide show
  1. package/LICENSE +107 -0
  2. package/README.md +1266 -0
  3. package/completions/bash-completion.sh +362 -0
  4. package/completions/zsh-completion.zsh +305 -0
  5. package/dist/cli/commands/add.d.ts +12 -0
  6. package/dist/cli/commands/add.d.ts.map +1 -0
  7. package/dist/cli/commands/add.js +74 -0
  8. package/dist/cli/commands/add.js.map +1 -0
  9. package/dist/cli/commands/analyze.d.ts +12 -0
  10. package/dist/cli/commands/analyze.d.ts.map +1 -0
  11. package/dist/cli/commands/analyze.js +37 -0
  12. package/dist/cli/commands/analyze.js.map +1 -0
  13. package/dist/cli/commands/archive-stats.d.ts +26 -0
  14. package/dist/cli/commands/archive-stats.d.ts.map +1 -0
  15. package/dist/cli/commands/archive-stats.js +291 -0
  16. package/dist/cli/commands/archive-stats.js.map +1 -0
  17. package/dist/cli/commands/archive.d.ts +12 -0
  18. package/dist/cli/commands/archive.d.ts.map +1 -0
  19. package/dist/cli/commands/archive.js +43 -0
  20. package/dist/cli/commands/archive.js.map +1 -0
  21. package/dist/cli/commands/backup.d.ts +7 -0
  22. package/dist/cli/commands/backup.d.ts.map +1 -0
  23. package/dist/cli/commands/backup.js +122 -0
  24. package/dist/cli/commands/backup.js.map +1 -0
  25. package/dist/cli/commands/blockers.d.ts +7 -0
  26. package/dist/cli/commands/blockers.d.ts.map +1 -0
  27. package/dist/cli/commands/blockers.js +107 -0
  28. package/dist/cli/commands/blockers.js.map +1 -0
  29. package/dist/cli/commands/checkpoint.d.ts +13 -0
  30. package/dist/cli/commands/checkpoint.d.ts.map +1 -0
  31. package/dist/cli/commands/checkpoint.js +185 -0
  32. package/dist/cli/commands/checkpoint.js.map +1 -0
  33. package/dist/cli/commands/claude-migrate.d.ts +13 -0
  34. package/dist/cli/commands/claude-migrate.d.ts.map +1 -0
  35. package/dist/cli/commands/claude-migrate.js +355 -0
  36. package/dist/cli/commands/claude-migrate.js.map +1 -0
  37. package/dist/cli/commands/commands.d.ts +13 -0
  38. package/dist/cli/commands/commands.d.ts.map +1 -0
  39. package/dist/cli/commands/commands.js +114 -0
  40. package/dist/cli/commands/commands.js.map +1 -0
  41. package/dist/cli/commands/complete.d.ts +12 -0
  42. package/dist/cli/commands/complete.d.ts.map +1 -0
  43. package/dist/cli/commands/complete.js +45 -0
  44. package/dist/cli/commands/complete.js.map +1 -0
  45. package/dist/cli/commands/compliance.d.ts +12 -0
  46. package/dist/cli/commands/compliance.d.ts.map +1 -0
  47. package/dist/cli/commands/compliance.js +152 -0
  48. package/dist/cli/commands/compliance.js.map +1 -0
  49. package/dist/cli/commands/config.d.ts +7 -0
  50. package/dist/cli/commands/config.d.ts.map +1 -0
  51. package/dist/cli/commands/config.js +107 -0
  52. package/dist/cli/commands/config.js.map +1 -0
  53. package/dist/cli/commands/consensus.d.ts +12 -0
  54. package/dist/cli/commands/consensus.d.ts.map +1 -0
  55. package/dist/cli/commands/consensus.js +61 -0
  56. package/dist/cli/commands/consensus.js.map +1 -0
  57. package/dist/cli/commands/context.d.ts +12 -0
  58. package/dist/cli/commands/context.d.ts.map +1 -0
  59. package/dist/cli/commands/context.js +76 -0
  60. package/dist/cli/commands/context.js.map +1 -0
  61. package/dist/cli/commands/contribution.d.ts +12 -0
  62. package/dist/cli/commands/contribution.d.ts.map +1 -0
  63. package/dist/cli/commands/contribution.js +57 -0
  64. package/dist/cli/commands/contribution.js.map +1 -0
  65. package/dist/cli/commands/current.d.ts +13 -0
  66. package/dist/cli/commands/current.d.ts.map +1 -0
  67. package/dist/cli/commands/current.js +35 -0
  68. package/dist/cli/commands/current.js.map +1 -0
  69. package/dist/cli/commands/dash.d.ts +12 -0
  70. package/dist/cli/commands/dash.d.ts.map +1 -0
  71. package/dist/cli/commands/dash.js +44 -0
  72. package/dist/cli/commands/dash.js.map +1 -0
  73. package/dist/cli/commands/decomposition.d.ts +12 -0
  74. package/dist/cli/commands/decomposition.d.ts.map +1 -0
  75. package/dist/cli/commands/decomposition.js +61 -0
  76. package/dist/cli/commands/decomposition.js.map +1 -0
  77. package/dist/cli/commands/delete.d.ts +12 -0
  78. package/dist/cli/commands/delete.d.ts.map +1 -0
  79. package/dist/cli/commands/delete.js +45 -0
  80. package/dist/cli/commands/delete.js.map +1 -0
  81. package/dist/cli/commands/deps.d.ts +17 -0
  82. package/dist/cli/commands/deps.d.ts.map +1 -0
  83. package/dist/cli/commands/deps.js +139 -0
  84. package/dist/cli/commands/deps.js.map +1 -0
  85. package/dist/cli/commands/detect-drift.d.ts +8 -0
  86. package/dist/cli/commands/detect-drift.d.ts.map +1 -0
  87. package/dist/cli/commands/detect-drift.js +202 -0
  88. package/dist/cli/commands/detect-drift.js.map +1 -0
  89. package/dist/cli/commands/docs.d.ts +13 -0
  90. package/dist/cli/commands/docs.d.ts.map +1 -0
  91. package/dist/cli/commands/docs.js +167 -0
  92. package/dist/cli/commands/docs.js.map +1 -0
  93. package/dist/cli/commands/doctor.d.ts +7 -0
  94. package/dist/cli/commands/doctor.d.ts.map +1 -0
  95. package/dist/cli/commands/doctor.js +215 -0
  96. package/dist/cli/commands/doctor.js.map +1 -0
  97. package/dist/cli/commands/env.d.ts +12 -0
  98. package/dist/cli/commands/env.d.ts.map +1 -0
  99. package/dist/cli/commands/env.js +167 -0
  100. package/dist/cli/commands/env.js.map +1 -0
  101. package/dist/cli/commands/exists.d.ts +7 -0
  102. package/dist/cli/commands/exists.d.ts.map +1 -0
  103. package/dist/cli/commands/exists.js +78 -0
  104. package/dist/cli/commands/exists.js.map +1 -0
  105. package/dist/cli/commands/export-tasks.d.ts +13 -0
  106. package/dist/cli/commands/export-tasks.d.ts.map +1 -0
  107. package/dist/cli/commands/export-tasks.js +214 -0
  108. package/dist/cli/commands/export-tasks.js.map +1 -0
  109. package/dist/cli/commands/export.d.ts +7 -0
  110. package/dist/cli/commands/export.d.ts.map +1 -0
  111. package/dist/cli/commands/export.js +144 -0
  112. package/dist/cli/commands/export.js.map +1 -0
  113. package/dist/cli/commands/extract.d.ts +13 -0
  114. package/dist/cli/commands/extract.d.ts.map +1 -0
  115. package/dist/cli/commands/extract.js +208 -0
  116. package/dist/cli/commands/extract.js.map +1 -0
  117. package/dist/cli/commands/find.d.ts +14 -0
  118. package/dist/cli/commands/find.d.ts.map +1 -0
  119. package/dist/cli/commands/find.js +62 -0
  120. package/dist/cli/commands/find.js.map +1 -0
  121. package/dist/cli/commands/focus.d.ts +19 -0
  122. package/dist/cli/commands/focus.d.ts.map +1 -0
  123. package/dist/cli/commands/focus.js +95 -0
  124. package/dist/cli/commands/focus.js.map +1 -0
  125. package/dist/cli/commands/generate-changelog.d.ts +14 -0
  126. package/dist/cli/commands/generate-changelog.d.ts.map +1 -0
  127. package/dist/cli/commands/generate-changelog.js +252 -0
  128. package/dist/cli/commands/generate-changelog.js.map +1 -0
  129. package/dist/cli/commands/history.d.ts +12 -0
  130. package/dist/cli/commands/history.d.ts.map +1 -0
  131. package/dist/cli/commands/history.js +40 -0
  132. package/dist/cli/commands/history.js.map +1 -0
  133. package/dist/cli/commands/implementation.d.ts +12 -0
  134. package/dist/cli/commands/implementation.d.ts.map +1 -0
  135. package/dist/cli/commands/implementation.js +57 -0
  136. package/dist/cli/commands/implementation.js.map +1 -0
  137. package/dist/cli/commands/import-tasks.d.ts +13 -0
  138. package/dist/cli/commands/import-tasks.d.ts.map +1 -0
  139. package/dist/cli/commands/import-tasks.js +219 -0
  140. package/dist/cli/commands/import-tasks.js.map +1 -0
  141. package/dist/cli/commands/import.d.ts +7 -0
  142. package/dist/cli/commands/import.d.ts.map +1 -0
  143. package/dist/cli/commands/import.js +162 -0
  144. package/dist/cli/commands/import.js.map +1 -0
  145. package/dist/cli/commands/init.d.ts +34 -0
  146. package/dist/cli/commands/init.d.ts.map +1 -0
  147. package/dist/cli/commands/init.js +88 -0
  148. package/dist/cli/commands/init.js.map +1 -0
  149. package/dist/cli/commands/inject.d.ts +12 -0
  150. package/dist/cli/commands/inject.d.ts.map +1 -0
  151. package/dist/cli/commands/inject.js +45 -0
  152. package/dist/cli/commands/inject.js.map +1 -0
  153. package/dist/cli/commands/issue.d.ts +14 -0
  154. package/dist/cli/commands/issue.d.ts.map +1 -0
  155. package/dist/cli/commands/issue.js +256 -0
  156. package/dist/cli/commands/issue.js.map +1 -0
  157. package/dist/cli/commands/labels.d.ts +12 -0
  158. package/dist/cli/commands/labels.d.ts.map +1 -0
  159. package/dist/cli/commands/labels.js +89 -0
  160. package/dist/cli/commands/labels.js.map +1 -0
  161. package/dist/cli/commands/lifecycle.d.ts +12 -0
  162. package/dist/cli/commands/lifecycle.d.ts.map +1 -0
  163. package/dist/cli/commands/lifecycle.js +108 -0
  164. package/dist/cli/commands/lifecycle.js.map +1 -0
  165. package/dist/cli/commands/list.d.ts +14 -0
  166. package/dist/cli/commands/list.d.ts.map +1 -0
  167. package/dist/cli/commands/list.js +65 -0
  168. package/dist/cli/commands/list.js.map +1 -0
  169. package/dist/cli/commands/log.d.ts +12 -0
  170. package/dist/cli/commands/log.d.ts.map +1 -0
  171. package/dist/cli/commands/log.js +43 -0
  172. package/dist/cli/commands/log.js.map +1 -0
  173. package/dist/cli/commands/mcp-install.d.ts +17 -0
  174. package/dist/cli/commands/mcp-install.d.ts.map +1 -0
  175. package/dist/cli/commands/mcp-install.js +125 -0
  176. package/dist/cli/commands/mcp-install.js.map +1 -0
  177. package/dist/cli/commands/migrate-storage.d.ts +19 -0
  178. package/dist/cli/commands/migrate-storage.d.ts.map +1 -0
  179. package/dist/cli/commands/migrate-storage.js +494 -0
  180. package/dist/cli/commands/migrate-storage.js.map +1 -0
  181. package/dist/cli/commands/migrate.d.ts +12 -0
  182. package/dist/cli/commands/migrate.d.ts.map +1 -0
  183. package/dist/cli/commands/migrate.js +62 -0
  184. package/dist/cli/commands/migrate.js.map +1 -0
  185. package/dist/cli/commands/next.d.ts +7 -0
  186. package/dist/cli/commands/next.d.ts.map +1 -0
  187. package/dist/cli/commands/next.js +124 -0
  188. package/dist/cli/commands/next.js.map +1 -0
  189. package/dist/cli/commands/nexus.d.ts +19 -0
  190. package/dist/cli/commands/nexus.d.ts.map +1 -0
  191. package/dist/cli/commands/nexus.js +440 -0
  192. package/dist/cli/commands/nexus.js.map +1 -0
  193. package/dist/cli/commands/orchestrate.d.ts +12 -0
  194. package/dist/cli/commands/orchestrate.d.ts.map +1 -0
  195. package/dist/cli/commands/orchestrate.js +141 -0
  196. package/dist/cli/commands/orchestrate.js.map +1 -0
  197. package/dist/cli/commands/otel.d.ts +12 -0
  198. package/dist/cli/commands/otel.d.ts.map +1 -0
  199. package/dist/cli/commands/otel.js +130 -0
  200. package/dist/cli/commands/otel.js.map +1 -0
  201. package/dist/cli/commands/phase.d.ts +12 -0
  202. package/dist/cli/commands/phase.d.ts.map +1 -0
  203. package/dist/cli/commands/phase.js +161 -0
  204. package/dist/cli/commands/phase.js.map +1 -0
  205. package/dist/cli/commands/phases.d.ts +12 -0
  206. package/dist/cli/commands/phases.d.ts.map +1 -0
  207. package/dist/cli/commands/phases.js +67 -0
  208. package/dist/cli/commands/phases.js.map +1 -0
  209. package/dist/cli/commands/promote.d.ts +7 -0
  210. package/dist/cli/commands/promote.d.ts.map +1 -0
  211. package/dist/cli/commands/promote.js +64 -0
  212. package/dist/cli/commands/promote.js.map +1 -0
  213. package/dist/cli/commands/relates.d.ts +12 -0
  214. package/dist/cli/commands/relates.d.ts.map +1 -0
  215. package/dist/cli/commands/relates.js +91 -0
  216. package/dist/cli/commands/relates.js.map +1 -0
  217. package/dist/cli/commands/release.d.ts +12 -0
  218. package/dist/cli/commands/release.d.ts.map +1 -0
  219. package/dist/cli/commands/release.js +142 -0
  220. package/dist/cli/commands/release.js.map +1 -0
  221. package/dist/cli/commands/reopen.d.ts +7 -0
  222. package/dist/cli/commands/reopen.d.ts.map +1 -0
  223. package/dist/cli/commands/reopen.js +83 -0
  224. package/dist/cli/commands/reopen.js.map +1 -0
  225. package/dist/cli/commands/reorder.d.ts +7 -0
  226. package/dist/cli/commands/reorder.d.ts.map +1 -0
  227. package/dist/cli/commands/reorder.js +106 -0
  228. package/dist/cli/commands/reorder.js.map +1 -0
  229. package/dist/cli/commands/reparent.d.ts +10 -0
  230. package/dist/cli/commands/reparent.d.ts.map +1 -0
  231. package/dist/cli/commands/reparent.js +53 -0
  232. package/dist/cli/commands/reparent.js.map +1 -0
  233. package/dist/cli/commands/research.d.ts +12 -0
  234. package/dist/cli/commands/research.d.ts.map +1 -0
  235. package/dist/cli/commands/research.js +220 -0
  236. package/dist/cli/commands/research.js.map +1 -0
  237. package/dist/cli/commands/restore.d.ts +7 -0
  238. package/dist/cli/commands/restore.d.ts.map +1 -0
  239. package/dist/cli/commands/restore.js +202 -0
  240. package/dist/cli/commands/restore.js.map +1 -0
  241. package/dist/cli/commands/roadmap.d.ts +12 -0
  242. package/dist/cli/commands/roadmap.d.ts.map +1 -0
  243. package/dist/cli/commands/roadmap.js +37 -0
  244. package/dist/cli/commands/roadmap.js.map +1 -0
  245. package/dist/cli/commands/safestop.d.ts +13 -0
  246. package/dist/cli/commands/safestop.d.ts.map +1 -0
  247. package/dist/cli/commands/safestop.js +217 -0
  248. package/dist/cli/commands/safestop.js.map +1 -0
  249. package/dist/cli/commands/self-update.d.ts +15 -0
  250. package/dist/cli/commands/self-update.d.ts.map +1 -0
  251. package/dist/cli/commands/self-update.js +195 -0
  252. package/dist/cli/commands/self-update.js.map +1 -0
  253. package/dist/cli/commands/sequence.d.ts +12 -0
  254. package/dist/cli/commands/sequence.d.ts.map +1 -0
  255. package/dist/cli/commands/sequence.js +67 -0
  256. package/dist/cli/commands/sequence.js.map +1 -0
  257. package/dist/cli/commands/session.d.ts +12 -0
  258. package/dist/cli/commands/session.d.ts.map +1 -0
  259. package/dist/cli/commands/session.js +150 -0
  260. package/dist/cli/commands/session.js.map +1 -0
  261. package/dist/cli/commands/show.d.ts +13 -0
  262. package/dist/cli/commands/show.d.ts.map +1 -0
  263. package/dist/cli/commands/show.js +35 -0
  264. package/dist/cli/commands/show.js.map +1 -0
  265. package/dist/cli/commands/skills.d.ts +13 -0
  266. package/dist/cli/commands/skills.d.ts.map +1 -0
  267. package/dist/cli/commands/skills.js +215 -0
  268. package/dist/cli/commands/skills.js.map +1 -0
  269. package/dist/cli/commands/specification.d.ts +12 -0
  270. package/dist/cli/commands/specification.d.ts.map +1 -0
  271. package/dist/cli/commands/specification.js +61 -0
  272. package/dist/cli/commands/specification.js.map +1 -0
  273. package/dist/cli/commands/start.d.ts +13 -0
  274. package/dist/cli/commands/start.d.ts.map +1 -0
  275. package/dist/cli/commands/start.js +35 -0
  276. package/dist/cli/commands/start.js.map +1 -0
  277. package/dist/cli/commands/stats.d.ts +12 -0
  278. package/dist/cli/commands/stats.d.ts.map +1 -0
  279. package/dist/cli/commands/stats.js +37 -0
  280. package/dist/cli/commands/stats.js.map +1 -0
  281. package/dist/cli/commands/stop.d.ts +13 -0
  282. package/dist/cli/commands/stop.d.ts.map +1 -0
  283. package/dist/cli/commands/stop.js +35 -0
  284. package/dist/cli/commands/stop.js.map +1 -0
  285. package/dist/cli/commands/sync.d.ts +13 -0
  286. package/dist/cli/commands/sync.d.ts.map +1 -0
  287. package/dist/cli/commands/sync.js +129 -0
  288. package/dist/cli/commands/sync.js.map +1 -0
  289. package/dist/cli/commands/testing.d.ts +13 -0
  290. package/dist/cli/commands/testing.d.ts.map +1 -0
  291. package/dist/cli/commands/testing.js +160 -0
  292. package/dist/cli/commands/testing.js.map +1 -0
  293. package/dist/cli/commands/unarchive.d.ts +7 -0
  294. package/dist/cli/commands/unarchive.d.ts.map +1 -0
  295. package/dist/cli/commands/unarchive.js +93 -0
  296. package/dist/cli/commands/unarchive.js.map +1 -0
  297. package/dist/cli/commands/uncancel.d.ts +7 -0
  298. package/dist/cli/commands/uncancel.d.ts.map +1 -0
  299. package/dist/cli/commands/uncancel.js +93 -0
  300. package/dist/cli/commands/uncancel.js.map +1 -0
  301. package/dist/cli/commands/update.d.ts +12 -0
  302. package/dist/cli/commands/update.d.ts.map +1 -0
  303. package/dist/cli/commands/update.js +74 -0
  304. package/dist/cli/commands/update.js.map +1 -0
  305. package/dist/cli/commands/upgrade.d.ts +15 -0
  306. package/dist/cli/commands/upgrade.d.ts.map +1 -0
  307. package/dist/cli/commands/upgrade.js +59 -0
  308. package/dist/cli/commands/upgrade.js.map +1 -0
  309. package/dist/cli/commands/validate.d.ts +9 -0
  310. package/dist/cli/commands/validate.d.ts.map +1 -0
  311. package/dist/cli/commands/validate.js +211 -0
  312. package/dist/cli/commands/validate.js.map +1 -0
  313. package/dist/cli/commands/verify.d.ts +7 -0
  314. package/dist/cli/commands/verify.d.ts.map +1 -0
  315. package/dist/cli/commands/verify.js +153 -0
  316. package/dist/cli/commands/verify.js.map +1 -0
  317. package/dist/cli/commands/web.d.ts +13 -0
  318. package/dist/cli/commands/web.d.ts.map +1 -0
  319. package/dist/cli/commands/web.js +281 -0
  320. package/dist/cli/commands/web.js.map +1 -0
  321. package/dist/cli/format-context.d.ts +32 -0
  322. package/dist/cli/format-context.d.ts.map +1 -0
  323. package/dist/cli/format-context.js +50 -0
  324. package/dist/cli/format-context.js.map +1 -0
  325. package/dist/cli/index.d.ts +7 -0
  326. package/dist/cli/index.d.ts.map +1 -0
  327. package/dist/cli/index.js +34903 -0
  328. package/dist/cli/index.js.map +7 -0
  329. package/dist/cli/middleware/output-format.d.ts +30 -0
  330. package/dist/cli/middleware/output-format.d.ts.map +1 -0
  331. package/dist/cli/middleware/output-format.js +35 -0
  332. package/dist/cli/middleware/output-format.js.map +1 -0
  333. package/dist/cli/renderers/colors.d.ts +41 -0
  334. package/dist/cli/renderers/colors.d.ts.map +1 -0
  335. package/dist/cli/renderers/colors.js +120 -0
  336. package/dist/cli/renderers/colors.js.map +1 -0
  337. package/dist/cli/renderers/index.d.ts +47 -0
  338. package/dist/cli/renderers/index.d.ts.map +1 -0
  339. package/dist/cli/renderers/index.js +103 -0
  340. package/dist/cli/renderers/index.js.map +1 -0
  341. package/dist/cli/renderers/system.d.ts +24 -0
  342. package/dist/cli/renderers/system.d.ts.map +1 -0
  343. package/dist/cli/renderers/system.js +317 -0
  344. package/dist/cli/renderers/system.js.map +1 -0
  345. package/dist/cli/renderers/tasks.d.ts +28 -0
  346. package/dist/cli/renderers/tasks.d.ts.map +1 -0
  347. package/dist/cli/renderers/tasks.js +307 -0
  348. package/dist/cli/renderers/tasks.js.map +1 -0
  349. package/dist/core/caamp/adapter.d.ts +141 -0
  350. package/dist/core/caamp/adapter.d.ts.map +1 -0
  351. package/dist/core/caamp/adapter.js +437 -0
  352. package/dist/core/caamp/adapter.js.map +1 -0
  353. package/dist/core/caamp/index.d.ts +11 -0
  354. package/dist/core/caamp/index.d.ts.map +1 -0
  355. package/dist/core/caamp/index.js +21 -0
  356. package/dist/core/caamp/index.js.map +1 -0
  357. package/dist/core/compliance/index.d.ts +38 -0
  358. package/dist/core/compliance/index.d.ts.map +1 -0
  359. package/dist/core/compliance/index.js +229 -0
  360. package/dist/core/compliance/index.js.map +1 -0
  361. package/dist/core/config.d.ts +20 -0
  362. package/dist/core/config.d.ts.map +1 -0
  363. package/dist/core/config.js +179 -0
  364. package/dist/core/config.js.map +1 -0
  365. package/dist/core/context/index.d.ts +20 -0
  366. package/dist/core/context/index.d.ts.map +1 -0
  367. package/dist/core/context/index.js +137 -0
  368. package/dist/core/context/index.js.map +1 -0
  369. package/dist/core/error-registry.d.ts +54 -0
  370. package/dist/core/error-registry.d.ts.map +1 -0
  371. package/dist/core/error-registry.js +109 -0
  372. package/dist/core/error-registry.js.map +1 -0
  373. package/dist/core/errors.d.ts +38 -0
  374. package/dist/core/errors.d.ts.map +1 -0
  375. package/dist/core/errors.js +105 -0
  376. package/dist/core/errors.js.map +1 -0
  377. package/dist/core/focus/index.d.ts +46 -0
  378. package/dist/core/focus/index.d.ts.map +1 -0
  379. package/dist/core/focus/index.js +118 -0
  380. package/dist/core/focus/index.js.map +1 -0
  381. package/dist/core/index.d.ts +14 -0
  382. package/dist/core/index.d.ts.map +1 -0
  383. package/dist/core/index.js +12 -0
  384. package/dist/core/index.js.map +1 -0
  385. package/dist/core/init.d.ts +76 -0
  386. package/dist/core/init.d.ts.map +1 -0
  387. package/dist/core/init.js +730 -0
  388. package/dist/core/init.js.map +1 -0
  389. package/dist/core/inject/index.d.ts +24 -0
  390. package/dist/core/inject/index.d.ts.map +1 -0
  391. package/dist/core/inject/index.js +84 -0
  392. package/dist/core/inject/index.js.map +1 -0
  393. package/dist/core/issue/index.d.ts +9 -0
  394. package/dist/core/issue/index.d.ts.map +1 -0
  395. package/dist/core/issue/index.js +8 -0
  396. package/dist/core/issue/index.js.map +1 -0
  397. package/dist/core/issue/template-parser.d.ts +45 -0
  398. package/dist/core/issue/template-parser.d.ts.map +1 -0
  399. package/dist/core/issue/template-parser.js +178 -0
  400. package/dist/core/issue/template-parser.js.map +1 -0
  401. package/dist/core/lifecycle/index.d.ts +71 -0
  402. package/dist/core/lifecycle/index.d.ts.map +1 -0
  403. package/dist/core/lifecycle/index.js +213 -0
  404. package/dist/core/lifecycle/index.js.map +1 -0
  405. package/dist/core/log/index.d.ts +15 -0
  406. package/dist/core/log/index.d.ts.map +1 -0
  407. package/dist/core/log/index.js +33 -0
  408. package/dist/core/log/index.js.map +1 -0
  409. package/dist/core/mcp/index.d.ts +37 -0
  410. package/dist/core/mcp/index.d.ts.map +1 -0
  411. package/dist/core/mcp/index.js +73 -0
  412. package/dist/core/mcp/index.js.map +1 -0
  413. package/dist/core/metrics/ab-test.d.ts +52 -0
  414. package/dist/core/metrics/ab-test.d.ts.map +1 -0
  415. package/dist/core/metrics/ab-test.js +261 -0
  416. package/dist/core/metrics/ab-test.js.map +1 -0
  417. package/dist/core/metrics/aggregation.d.ts +41 -0
  418. package/dist/core/metrics/aggregation.d.ts.map +1 -0
  419. package/dist/core/metrics/aggregation.js +353 -0
  420. package/dist/core/metrics/aggregation.js.map +1 -0
  421. package/dist/core/metrics/common.d.ts +30 -0
  422. package/dist/core/metrics/common.d.ts.map +1 -0
  423. package/dist/core/metrics/common.js +64 -0
  424. package/dist/core/metrics/common.js.map +1 -0
  425. package/dist/core/metrics/enums.d.ts +68 -0
  426. package/dist/core/metrics/enums.d.ts.map +1 -0
  427. package/dist/core/metrics/enums.js +78 -0
  428. package/dist/core/metrics/enums.js.map +1 -0
  429. package/dist/core/metrics/index.d.ts +17 -0
  430. package/dist/core/metrics/index.d.ts.map +1 -0
  431. package/dist/core/metrics/index.js +19 -0
  432. package/dist/core/metrics/index.js.map +1 -0
  433. package/dist/core/metrics/otel-integration.d.ts +49 -0
  434. package/dist/core/metrics/otel-integration.d.ts.map +1 -0
  435. package/dist/core/metrics/otel-integration.js +261 -0
  436. package/dist/core/metrics/otel-integration.js.map +1 -0
  437. package/dist/core/metrics/token-estimation.d.ts +70 -0
  438. package/dist/core/metrics/token-estimation.d.ts.map +1 -0
  439. package/dist/core/metrics/token-estimation.js +253 -0
  440. package/dist/core/metrics/token-estimation.js.map +1 -0
  441. package/dist/core/migration/checksum.d.ts +55 -0
  442. package/dist/core/migration/checksum.d.ts.map +1 -0
  443. package/dist/core/migration/checksum.js +90 -0
  444. package/dist/core/migration/checksum.js.map +1 -0
  445. package/dist/core/migration/index.d.ts +77 -0
  446. package/dist/core/migration/index.d.ts.map +1 -0
  447. package/dist/core/migration/index.js +278 -0
  448. package/dist/core/migration/index.js.map +1 -0
  449. package/dist/core/migration/logger.d.ts +161 -0
  450. package/dist/core/migration/logger.d.ts.map +1 -0
  451. package/dist/core/migration/logger.js +364 -0
  452. package/dist/core/migration/logger.js.map +1 -0
  453. package/dist/core/migration/preflight.d.ts +43 -0
  454. package/dist/core/migration/preflight.d.ts.map +1 -0
  455. package/dist/core/migration/preflight.js +164 -0
  456. package/dist/core/migration/preflight.js.map +1 -0
  457. package/dist/core/migration/state.d.ts +186 -0
  458. package/dist/core/migration/state.d.ts.map +1 -0
  459. package/dist/core/migration/state.js +419 -0
  460. package/dist/core/migration/state.js.map +1 -0
  461. package/dist/core/migration/validate.d.ts +57 -0
  462. package/dist/core/migration/validate.d.ts.map +1 -0
  463. package/dist/core/migration/validate.js +242 -0
  464. package/dist/core/migration/validate.js.map +1 -0
  465. package/dist/core/nexus/deps.d.ts +112 -0
  466. package/dist/core/nexus/deps.d.ts.map +1 -0
  467. package/dist/core/nexus/deps.js +394 -0
  468. package/dist/core/nexus/deps.js.map +1 -0
  469. package/dist/core/nexus/index.d.ts +14 -0
  470. package/dist/core/nexus/index.d.ts.map +1 -0
  471. package/dist/core/nexus/index.js +36 -0
  472. package/dist/core/nexus/index.js.map +1 -0
  473. package/dist/core/nexus/permissions.d.ts +75 -0
  474. package/dist/core/nexus/permissions.d.ts.map +1 -0
  475. package/dist/core/nexus/permissions.js +126 -0
  476. package/dist/core/nexus/permissions.js.map +1 -0
  477. package/dist/core/nexus/query.d.ts +55 -0
  478. package/dist/core/nexus/query.d.ts.map +1 -0
  479. package/dist/core/nexus/query.js +181 -0
  480. package/dist/core/nexus/query.js.map +1 -0
  481. package/dist/core/nexus/registry.d.ts +135 -0
  482. package/dist/core/nexus/registry.d.ts.map +1 -0
  483. package/dist/core/nexus/registry.js +296 -0
  484. package/dist/core/nexus/registry.js.map +1 -0
  485. package/dist/core/orchestration/index.d.ts +114 -0
  486. package/dist/core/orchestration/index.d.ts.map +1 -0
  487. package/dist/core/orchestration/index.js +295 -0
  488. package/dist/core/orchestration/index.js.map +1 -0
  489. package/dist/core/orchestration/protocol-validators.d.ts +94 -0
  490. package/dist/core/orchestration/protocol-validators.d.ts.map +1 -0
  491. package/dist/core/orchestration/protocol-validators.js +510 -0
  492. package/dist/core/orchestration/protocol-validators.js.map +1 -0
  493. package/dist/core/otel/index.d.ts +27 -0
  494. package/dist/core/otel/index.d.ts.map +1 -0
  495. package/dist/core/otel/index.js +126 -0
  496. package/dist/core/otel/index.js.map +1 -0
  497. package/dist/core/output.d.ts +64 -0
  498. package/dist/core/output.d.ts.map +1 -0
  499. package/dist/core/output.js +134 -0
  500. package/dist/core/output.js.map +1 -0
  501. package/dist/core/pagination.d.ts +45 -0
  502. package/dist/core/pagination.d.ts.map +1 -0
  503. package/dist/core/pagination.js +61 -0
  504. package/dist/core/pagination.js.map +1 -0
  505. package/dist/core/paths.d.ts +122 -0
  506. package/dist/core/paths.d.ts.map +1 -0
  507. package/dist/core/paths.js +269 -0
  508. package/dist/core/paths.js.map +1 -0
  509. package/dist/core/phases/deps.d.ts +142 -0
  510. package/dist/core/phases/deps.d.ts.map +1 -0
  511. package/dist/core/phases/deps.js +390 -0
  512. package/dist/core/phases/deps.js.map +1 -0
  513. package/dist/core/phases/index.d.ts +123 -0
  514. package/dist/core/phases/index.d.ts.map +1 -0
  515. package/dist/core/phases/index.js +409 -0
  516. package/dist/core/phases/index.js.map +1 -0
  517. package/dist/core/platform.d.ts +55 -0
  518. package/dist/core/platform.d.ts.map +1 -0
  519. package/dist/core/platform.js +117 -0
  520. package/dist/core/platform.js.map +1 -0
  521. package/dist/core/release/artifacts.d.ts +71 -0
  522. package/dist/core/release/artifacts.d.ts.map +1 -0
  523. package/dist/core/release/artifacts.js +412 -0
  524. package/dist/core/release/artifacts.js.map +1 -0
  525. package/dist/core/release/ci.d.ts +35 -0
  526. package/dist/core/release/ci.d.ts.map +1 -0
  527. package/dist/core/release/ci.js +162 -0
  528. package/dist/core/release/ci.js.map +1 -0
  529. package/dist/core/release/guards.d.ts +47 -0
  530. package/dist/core/release/guards.d.ts.map +1 -0
  531. package/dist/core/release/guards.js +110 -0
  532. package/dist/core/release/guards.js.map +1 -0
  533. package/dist/core/release/index.d.ts +97 -0
  534. package/dist/core/release/index.d.ts.map +1 -0
  535. package/dist/core/release/index.js +459 -0
  536. package/dist/core/release/index.js.map +1 -0
  537. package/dist/core/release/provenance.d.ts +75 -0
  538. package/dist/core/release/provenance.d.ts.map +1 -0
  539. package/dist/core/release/provenance.js +213 -0
  540. package/dist/core/release/provenance.js.map +1 -0
  541. package/dist/core/release/release-config.d.ts +55 -0
  542. package/dist/core/release/release-config.d.ts.map +1 -0
  543. package/dist/core/release/release-config.js +105 -0
  544. package/dist/core/release/release-config.js.map +1 -0
  545. package/dist/core/release/version-bump.d.ts +51 -0
  546. package/dist/core/release/version-bump.d.ts.map +1 -0
  547. package/dist/core/release/version-bump.js +251 -0
  548. package/dist/core/release/version-bump.js.map +1 -0
  549. package/dist/core/research/index.d.ts +129 -0
  550. package/dist/core/research/index.d.ts.map +1 -0
  551. package/dist/core/research/index.js +251 -0
  552. package/dist/core/research/index.js.map +1 -0
  553. package/dist/core/roadmap/index.d.ts +13 -0
  554. package/dist/core/roadmap/index.d.ts.map +1 -0
  555. package/dist/core/roadmap/index.js +63 -0
  556. package/dist/core/roadmap/index.js.map +1 -0
  557. package/dist/core/schema.d.ts +20 -0
  558. package/dist/core/schema.d.ts.map +1 -0
  559. package/dist/core/schema.js +75 -0
  560. package/dist/core/schema.js.map +1 -0
  561. package/dist/core/sequence/index.d.ts +21 -0
  562. package/dist/core/sequence/index.d.ts.map +1 -0
  563. package/dist/core/sequence/index.js +108 -0
  564. package/dist/core/sequence/index.js.map +1 -0
  565. package/dist/core/sessions/context-alert.d.ts +48 -0
  566. package/dist/core/sessions/context-alert.d.ts.map +1 -0
  567. package/dist/core/sessions/context-alert.js +222 -0
  568. package/dist/core/sessions/context-alert.js.map +1 -0
  569. package/dist/core/sessions/context-monitor.d.ts +31 -0
  570. package/dist/core/sessions/context-monitor.d.ts.map +1 -0
  571. package/dist/core/sessions/context-monitor.js +83 -0
  572. package/dist/core/sessions/context-monitor.js.map +1 -0
  573. package/dist/core/sessions/hitl-warnings.d.ts +58 -0
  574. package/dist/core/sessions/hitl-warnings.d.ts.map +1 -0
  575. package/dist/core/sessions/hitl-warnings.js +253 -0
  576. package/dist/core/sessions/hitl-warnings.js.map +1 -0
  577. package/dist/core/sessions/index.d.ts +65 -0
  578. package/dist/core/sessions/index.d.ts.map +1 -0
  579. package/dist/core/sessions/index.js +244 -0
  580. package/dist/core/sessions/index.js.map +1 -0
  581. package/dist/core/sessions/session-enforcement.d.ts +50 -0
  582. package/dist/core/sessions/session-enforcement.d.ts.map +1 -0
  583. package/dist/core/sessions/session-enforcement.js +139 -0
  584. package/dist/core/sessions/session-enforcement.js.map +1 -0
  585. package/dist/core/sessions/session-migration.d.ts +31 -0
  586. package/dist/core/sessions/session-migration.d.ts.map +1 -0
  587. package/dist/core/sessions/session-migration.js +122 -0
  588. package/dist/core/sessions/session-migration.js.map +1 -0
  589. package/dist/core/sessions/statusline-setup.d.ts +24 -0
  590. package/dist/core/sessions/statusline-setup.d.ts.map +1 -0
  591. package/dist/core/sessions/statusline-setup.js +82 -0
  592. package/dist/core/sessions/statusline-setup.js.map +1 -0
  593. package/dist/core/skills/agents/config.d.ts +39 -0
  594. package/dist/core/skills/agents/config.d.ts.map +1 -0
  595. package/dist/core/skills/agents/config.js +94 -0
  596. package/dist/core/skills/agents/config.js.map +1 -0
  597. package/dist/core/skills/agents/install.d.ts +33 -0
  598. package/dist/core/skills/agents/install.d.ts.map +1 -0
  599. package/dist/core/skills/agents/install.js +105 -0
  600. package/dist/core/skills/agents/install.js.map +1 -0
  601. package/dist/core/skills/agents/registry.d.ts +56 -0
  602. package/dist/core/skills/agents/registry.d.ts.map +1 -0
  603. package/dist/core/skills/agents/registry.js +161 -0
  604. package/dist/core/skills/agents/registry.js.map +1 -0
  605. package/dist/core/skills/discovery.d.ts +102 -0
  606. package/dist/core/skills/discovery.d.ts.map +1 -0
  607. package/dist/core/skills/discovery.js +331 -0
  608. package/dist/core/skills/discovery.js.map +1 -0
  609. package/dist/core/skills/dispatch.d.ts +67 -0
  610. package/dist/core/skills/dispatch.d.ts.map +1 -0
  611. package/dist/core/skills/dispatch.js +327 -0
  612. package/dist/core/skills/dispatch.js.map +1 -0
  613. package/dist/core/skills/index.d.ts +39 -0
  614. package/dist/core/skills/index.d.ts.map +1 -0
  615. package/dist/core/skills/index.js +44 -0
  616. package/dist/core/skills/index.js.map +1 -0
  617. package/dist/core/skills/injection/subagent.d.ts +47 -0
  618. package/dist/core/skills/injection/subagent.d.ts.map +1 -0
  619. package/dist/core/skills/injection/subagent.js +143 -0
  620. package/dist/core/skills/injection/subagent.js.map +1 -0
  621. package/dist/core/skills/injection/token.d.ts +121 -0
  622. package/dist/core/skills/injection/token.d.ts.map +1 -0
  623. package/dist/core/skills/injection/token.js +255 -0
  624. package/dist/core/skills/injection/token.js.map +1 -0
  625. package/dist/core/skills/install.d.ts +42 -0
  626. package/dist/core/skills/install.d.ts.map +1 -0
  627. package/dist/core/skills/install.js +129 -0
  628. package/dist/core/skills/install.js.map +1 -0
  629. package/dist/core/skills/manifests/contribution.d.ts +74 -0
  630. package/dist/core/skills/manifests/contribution.d.ts.map +1 -0
  631. package/dist/core/skills/manifests/contribution.js +180 -0
  632. package/dist/core/skills/manifests/contribution.js.map +1 -0
  633. package/dist/core/skills/manifests/research.d.ts +73 -0
  634. package/dist/core/skills/manifests/research.d.ts.map +1 -0
  635. package/dist/core/skills/manifests/research.js +264 -0
  636. package/dist/core/skills/manifests/research.js.map +1 -0
  637. package/dist/core/skills/manifests/resolver.d.ts +40 -0
  638. package/dist/core/skills/manifests/resolver.d.ts.map +1 -0
  639. package/dist/core/skills/manifests/resolver.js +146 -0
  640. package/dist/core/skills/manifests/resolver.js.map +1 -0
  641. package/dist/core/skills/marketplace.d.ts +45 -0
  642. package/dist/core/skills/marketplace.d.ts.map +1 -0
  643. package/dist/core/skills/marketplace.js +90 -0
  644. package/dist/core/skills/marketplace.js.map +1 -0
  645. package/dist/core/skills/orchestrator/spawn.d.ts +66 -0
  646. package/dist/core/skills/orchestrator/spawn.d.ts.map +1 -0
  647. package/dist/core/skills/orchestrator/spawn.js +186 -0
  648. package/dist/core/skills/orchestrator/spawn.js.map +1 -0
  649. package/dist/core/skills/orchestrator/startup.d.ts +89 -0
  650. package/dist/core/skills/orchestrator/startup.d.ts.map +1 -0
  651. package/dist/core/skills/orchestrator/startup.js +434 -0
  652. package/dist/core/skills/orchestrator/startup.js.map +1 -0
  653. package/dist/core/skills/orchestrator/validator.d.ts +40 -0
  654. package/dist/core/skills/orchestrator/validator.d.ts.map +1 -0
  655. package/dist/core/skills/orchestrator/validator.js +297 -0
  656. package/dist/core/skills/orchestrator/validator.js.map +1 -0
  657. package/dist/core/skills/skill-paths.d.ts +79 -0
  658. package/dist/core/skills/skill-paths.d.ts.map +1 -0
  659. package/dist/core/skills/skill-paths.js +220 -0
  660. package/dist/core/skills/skill-paths.js.map +1 -0
  661. package/dist/core/skills/test-utility.d.ts +39 -0
  662. package/dist/core/skills/test-utility.d.ts.map +1 -0
  663. package/dist/core/skills/test-utility.js +55 -0
  664. package/dist/core/skills/test-utility.js.map +1 -0
  665. package/dist/core/skills/types.d.ts +290 -0
  666. package/dist/core/skills/types.d.ts.map +1 -0
  667. package/dist/core/skills/types.js +86 -0
  668. package/dist/core/skills/types.js.map +1 -0
  669. package/dist/core/skills/validation.d.ts +46 -0
  670. package/dist/core/skills/validation.d.ts.map +1 -0
  671. package/dist/core/skills/validation.js +176 -0
  672. package/dist/core/skills/validation.js.map +1 -0
  673. package/dist/core/skills/version.d.ts +87 -0
  674. package/dist/core/skills/version.d.ts.map +1 -0
  675. package/dist/core/skills/version.js +241 -0
  676. package/dist/core/skills/version.js.map +1 -0
  677. package/dist/core/stats/index.d.ts +30 -0
  678. package/dist/core/stats/index.d.ts.map +1 -0
  679. package/dist/core/stats/index.js +152 -0
  680. package/dist/core/stats/index.js.map +1 -0
  681. package/dist/core/task-work/index.d.ts +66 -0
  682. package/dist/core/task-work/index.d.ts.map +1 -0
  683. package/dist/core/task-work/index.js +148 -0
  684. package/dist/core/task-work/index.js.map +1 -0
  685. package/dist/core/tasks/add.d.ts +125 -0
  686. package/dist/core/tasks/add.d.ts.map +1 -0
  687. package/dist/core/tasks/add.js +489 -0
  688. package/dist/core/tasks/add.js.map +1 -0
  689. package/dist/core/tasks/analyze.d.ts +49 -0
  690. package/dist/core/tasks/analyze.d.ts.map +1 -0
  691. package/dist/core/tasks/analyze.js +94 -0
  692. package/dist/core/tasks/analyze.js.map +1 -0
  693. package/dist/core/tasks/archive.d.ts +31 -0
  694. package/dist/core/tasks/archive.d.ts.map +1 -0
  695. package/dist/core/tasks/archive.js +126 -0
  696. package/dist/core/tasks/archive.js.map +1 -0
  697. package/dist/core/tasks/cancel-ops.d.ts +42 -0
  698. package/dist/core/tasks/cancel-ops.d.ts.map +1 -0
  699. package/dist/core/tasks/cancel-ops.js +83 -0
  700. package/dist/core/tasks/cancel-ops.js.map +1 -0
  701. package/dist/core/tasks/complete.d.ts +25 -0
  702. package/dist/core/tasks/complete.d.ts.map +1 -0
  703. package/dist/core/tasks/complete.js +109 -0
  704. package/dist/core/tasks/complete.js.map +1 -0
  705. package/dist/core/tasks/crossref-extract.d.ts +39 -0
  706. package/dist/core/tasks/crossref-extract.d.ts.map +1 -0
  707. package/dist/core/tasks/crossref-extract.js +75 -0
  708. package/dist/core/tasks/crossref-extract.js.map +1 -0
  709. package/dist/core/tasks/delete-preview.d.ts +69 -0
  710. package/dist/core/tasks/delete-preview.d.ts.map +1 -0
  711. package/dist/core/tasks/delete-preview.js +192 -0
  712. package/dist/core/tasks/delete-preview.js.map +1 -0
  713. package/dist/core/tasks/delete.d.ts +24 -0
  714. package/dist/core/tasks/delete.d.ts.map +1 -0
  715. package/dist/core/tasks/delete.js +130 -0
  716. package/dist/core/tasks/delete.js.map +1 -0
  717. package/dist/core/tasks/deletion-strategy.d.ts +46 -0
  718. package/dist/core/tasks/deletion-strategy.d.ts.map +1 -0
  719. package/dist/core/tasks/deletion-strategy.js +200 -0
  720. package/dist/core/tasks/deletion-strategy.js.map +1 -0
  721. package/dist/core/tasks/dependency-check.d.ts +70 -0
  722. package/dist/core/tasks/dependency-check.d.ts.map +1 -0
  723. package/dist/core/tasks/dependency-check.js +226 -0
  724. package/dist/core/tasks/dependency-check.js.map +1 -0
  725. package/dist/core/tasks/find.d.ts +48 -0
  726. package/dist/core/tasks/find.d.ts.map +1 -0
  727. package/dist/core/tasks/find.js +155 -0
  728. package/dist/core/tasks/find.js.map +1 -0
  729. package/dist/core/tasks/graph-cache.d.ts +70 -0
  730. package/dist/core/tasks/graph-cache.d.ts.map +1 -0
  731. package/dist/core/tasks/graph-cache.js +127 -0
  732. package/dist/core/tasks/graph-cache.js.map +1 -0
  733. package/dist/core/tasks/graph-ops.d.ts +36 -0
  734. package/dist/core/tasks/graph-ops.d.ts.map +1 -0
  735. package/dist/core/tasks/graph-ops.js +173 -0
  736. package/dist/core/tasks/graph-ops.js.map +1 -0
  737. package/dist/core/tasks/graph-rag.d.ts +49 -0
  738. package/dist/core/tasks/graph-rag.d.ts.map +1 -0
  739. package/dist/core/tasks/graph-rag.js +253 -0
  740. package/dist/core/tasks/graph-rag.js.map +1 -0
  741. package/dist/core/tasks/hierarchy.d.ts +82 -0
  742. package/dist/core/tasks/hierarchy.d.ts.map +1 -0
  743. package/dist/core/tasks/hierarchy.js +188 -0
  744. package/dist/core/tasks/hierarchy.js.map +1 -0
  745. package/dist/core/tasks/index.d.ts +15 -0
  746. package/dist/core/tasks/index.d.ts.map +1 -0
  747. package/dist/core/tasks/index.js +15 -0
  748. package/dist/core/tasks/index.js.map +1 -0
  749. package/dist/core/tasks/labels.d.ts +19 -0
  750. package/dist/core/tasks/labels.d.ts.map +1 -0
  751. package/dist/core/tasks/labels.js +56 -0
  752. package/dist/core/tasks/labels.js.map +1 -0
  753. package/dist/core/tasks/list.d.ts +36 -0
  754. package/dist/core/tasks/list.d.ts.map +1 -0
  755. package/dist/core/tasks/list.js +72 -0
  756. package/dist/core/tasks/list.js.map +1 -0
  757. package/dist/core/tasks/phase-tracking.d.ts +61 -0
  758. package/dist/core/tasks/phase-tracking.d.ts.map +1 -0
  759. package/dist/core/tasks/phase-tracking.js +133 -0
  760. package/dist/core/tasks/phase-tracking.js.map +1 -0
  761. package/dist/core/tasks/relates.d.ts +18 -0
  762. package/dist/core/tasks/relates.d.ts.map +1 -0
  763. package/dist/core/tasks/relates.js +115 -0
  764. package/dist/core/tasks/relates.js.map +1 -0
  765. package/dist/core/tasks/show.d.ts +25 -0
  766. package/dist/core/tasks/show.d.ts.map +1 -0
  767. package/dist/core/tasks/show.js +79 -0
  768. package/dist/core/tasks/show.js.map +1 -0
  769. package/dist/core/tasks/size-weighting.d.ts +38 -0
  770. package/dist/core/tasks/size-weighting.d.ts.map +1 -0
  771. package/dist/core/tasks/size-weighting.js +86 -0
  772. package/dist/core/tasks/size-weighting.js.map +1 -0
  773. package/dist/core/tasks/staleness.d.ts +56 -0
  774. package/dist/core/tasks/staleness.d.ts.map +1 -0
  775. package/dist/core/tasks/staleness.js +91 -0
  776. package/dist/core/tasks/staleness.js.map +1 -0
  777. package/dist/core/tasks/todowrite-integration.d.ts +46 -0
  778. package/dist/core/tasks/todowrite-integration.d.ts.map +1 -0
  779. package/dist/core/tasks/todowrite-integration.js +172 -0
  780. package/dist/core/tasks/todowrite-integration.js.map +1 -0
  781. package/dist/core/tasks/update.d.ts +41 -0
  782. package/dist/core/tasks/update.d.ts.map +1 -0
  783. package/dist/core/tasks/update.js +178 -0
  784. package/dist/core/tasks/update.js.map +1 -0
  785. package/dist/core/ui/aliases.d.ts +43 -0
  786. package/dist/core/ui/aliases.d.ts.map +1 -0
  787. package/dist/core/ui/aliases.js +150 -0
  788. package/dist/core/ui/aliases.js.map +1 -0
  789. package/dist/core/ui/changelog.d.ts +58 -0
  790. package/dist/core/ui/changelog.d.ts.map +1 -0
  791. package/dist/core/ui/changelog.js +195 -0
  792. package/dist/core/ui/changelog.js.map +1 -0
  793. package/dist/core/ui/command-registry.d.ts +44 -0
  794. package/dist/core/ui/command-registry.d.ts.map +1 -0
  795. package/dist/core/ui/command-registry.js +156 -0
  796. package/dist/core/ui/command-registry.js.map +1 -0
  797. package/dist/core/ui/flags.d.ts +34 -0
  798. package/dist/core/ui/flags.d.ts.map +1 -0
  799. package/dist/core/ui/flags.js +94 -0
  800. package/dist/core/ui/flags.js.map +1 -0
  801. package/dist/core/ui/index.d.ts +18 -0
  802. package/dist/core/ui/index.d.ts.map +1 -0
  803. package/dist/core/ui/index.js +28 -0
  804. package/dist/core/ui/index.js.map +1 -0
  805. package/dist/core/ui/injection-legacy.d.ts +26 -0
  806. package/dist/core/ui/injection-legacy.d.ts.map +1 -0
  807. package/dist/core/ui/injection-legacy.js +42 -0
  808. package/dist/core/ui/injection-legacy.js.map +1 -0
  809. package/dist/core/ui/injection-registry.d.ts +56 -0
  810. package/dist/core/ui/injection-registry.d.ts.map +1 -0
  811. package/dist/core/ui/injection-registry.js +68 -0
  812. package/dist/core/ui/injection-registry.js.map +1 -0
  813. package/dist/core/ui/injection.d.ts +51 -0
  814. package/dist/core/ui/injection.d.ts.map +1 -0
  815. package/dist/core/ui/injection.js +125 -0
  816. package/dist/core/ui/injection.js.map +1 -0
  817. package/dist/core/ui/mcp-config.d.ts +40 -0
  818. package/dist/core/ui/mcp-config.d.ts.map +1 -0
  819. package/dist/core/ui/mcp-config.js +173 -0
  820. package/dist/core/ui/mcp-config.js.map +1 -0
  821. package/dist/core/ui/version-check.d.ts +31 -0
  822. package/dist/core/ui/version-check.d.ts.map +1 -0
  823. package/dist/core/ui/version-check.js +121 -0
  824. package/dist/core/ui/version-check.js.map +1 -0
  825. package/dist/core/upgrade.d.ts +59 -0
  826. package/dist/core/upgrade.d.ts.map +1 -0
  827. package/dist/core/upgrade.js +649 -0
  828. package/dist/core/upgrade.js.map +1 -0
  829. package/dist/core/validation/compliance.d.ts +94 -0
  830. package/dist/core/validation/compliance.d.ts.map +1 -0
  831. package/dist/core/validation/compliance.js +157 -0
  832. package/dist/core/validation/compliance.js.map +1 -0
  833. package/dist/core/validation/docs-sync.d.ts +66 -0
  834. package/dist/core/validation/docs-sync.d.ts.map +1 -0
  835. package/dist/core/validation/docs-sync.js +204 -0
  836. package/dist/core/validation/docs-sync.js.map +1 -0
  837. package/dist/core/validation/doctor/checks.d.ts +61 -0
  838. package/dist/core/validation/doctor/checks.d.ts.map +1 -0
  839. package/dist/core/validation/doctor/checks.js +457 -0
  840. package/dist/core/validation/doctor/checks.js.map +1 -0
  841. package/dist/core/validation/doctor/index.d.ts +9 -0
  842. package/dist/core/validation/doctor/index.d.ts.map +1 -0
  843. package/dist/core/validation/doctor/index.js +9 -0
  844. package/dist/core/validation/doctor/index.js.map +1 -0
  845. package/dist/core/validation/doctor/project-cache.d.ts +79 -0
  846. package/dist/core/validation/doctor/project-cache.d.ts.map +1 -0
  847. package/dist/core/validation/doctor/project-cache.js +164 -0
  848. package/dist/core/validation/doctor/project-cache.js.map +1 -0
  849. package/dist/core/validation/doctor/utils.d.ts +68 -0
  850. package/dist/core/validation/doctor/utils.d.ts.map +1 -0
  851. package/dist/core/validation/doctor/utils.js +162 -0
  852. package/dist/core/validation/doctor/utils.js.map +1 -0
  853. package/dist/core/validation/engine.d.ts +172 -0
  854. package/dist/core/validation/engine.d.ts.map +1 -0
  855. package/dist/core/validation/engine.js +791 -0
  856. package/dist/core/validation/engine.js.map +1 -0
  857. package/dist/core/validation/gap-check.d.ts +74 -0
  858. package/dist/core/validation/gap-check.d.ts.map +1 -0
  859. package/dist/core/validation/gap-check.js +175 -0
  860. package/dist/core/validation/gap-check.js.map +1 -0
  861. package/dist/core/validation/index.d.ts +17 -0
  862. package/dist/core/validation/index.d.ts.map +1 -0
  863. package/dist/core/validation/index.js +25 -0
  864. package/dist/core/validation/index.js.map +1 -0
  865. package/dist/core/validation/manifest.d.ts +81 -0
  866. package/dist/core/validation/manifest.d.ts.map +1 -0
  867. package/dist/core/validation/manifest.js +225 -0
  868. package/dist/core/validation/manifest.js.map +1 -0
  869. package/dist/core/validation/protocol-common.d.ts +77 -0
  870. package/dist/core/validation/protocol-common.d.ts.map +1 -0
  871. package/dist/core/validation/protocol-common.js +240 -0
  872. package/dist/core/validation/protocol-common.js.map +1 -0
  873. package/dist/core/validation/protocols/consensus.d.ts +28 -0
  874. package/dist/core/validation/protocols/consensus.d.ts.map +1 -0
  875. package/dist/core/validation/protocols/consensus.js +70 -0
  876. package/dist/core/validation/protocols/consensus.js.map +1 -0
  877. package/dist/core/validation/protocols/contribution.d.ts +26 -0
  878. package/dist/core/validation/protocols/contribution.d.ts.map +1 -0
  879. package/dist/core/validation/protocols/contribution.js +58 -0
  880. package/dist/core/validation/protocols/contribution.js.map +1 -0
  881. package/dist/core/validation/protocols/decomposition.d.ts +28 -0
  882. package/dist/core/validation/protocols/decomposition.d.ts.map +1 -0
  883. package/dist/core/validation/protocols/decomposition.js +58 -0
  884. package/dist/core/validation/protocols/decomposition.js.map +1 -0
  885. package/dist/core/validation/protocols/implementation.d.ts +26 -0
  886. package/dist/core/validation/protocols/implementation.d.ts.map +1 -0
  887. package/dist/core/validation/protocols/implementation.js +58 -0
  888. package/dist/core/validation/protocols/implementation.js.map +1 -0
  889. package/dist/core/validation/protocols/specification.d.ts +28 -0
  890. package/dist/core/validation/protocols/specification.d.ts.map +1 -0
  891. package/dist/core/validation/protocols/specification.js +83 -0
  892. package/dist/core/validation/protocols/specification.js.map +1 -0
  893. package/dist/core/validation/verification.d.ts +153 -0
  894. package/dist/core/validation/verification.d.ts.map +1 -0
  895. package/dist/core/validation/verification.js +311 -0
  896. package/dist/core/validation/verification.js.map +1 -0
  897. package/dist/dispatch/dispatcher.d.ts +23 -0
  898. package/dist/dispatch/dispatcher.d.ts.map +1 -0
  899. package/dist/dispatch/dispatcher.js +90 -0
  900. package/dist/dispatch/dispatcher.js.map +1 -0
  901. package/dist/dispatch/domains/_meta.d.ts +23 -0
  902. package/dist/dispatch/domains/_meta.d.ts.map +1 -0
  903. package/dist/dispatch/domains/_meta.js +25 -0
  904. package/dist/dispatch/domains/_meta.js.map +1 -0
  905. package/dist/dispatch/domains/admin.d.ts +29 -0
  906. package/dist/dispatch/domains/admin.d.ts.map +1 -0
  907. package/dist/dispatch/domains/admin.js +200 -0
  908. package/dist/dispatch/domains/admin.js.map +1 -0
  909. package/dist/dispatch/domains/check.d.ts +28 -0
  910. package/dist/dispatch/domains/check.d.ts.map +1 -0
  911. package/dist/dispatch/domains/check.js +170 -0
  912. package/dist/dispatch/domains/check.js.map +1 -0
  913. package/dist/dispatch/domains/index.d.ts +26 -0
  914. package/dist/dispatch/domains/index.d.ts.map +1 -0
  915. package/dist/dispatch/domains/index.js +36 -0
  916. package/dist/dispatch/domains/index.js.map +1 -0
  917. package/dist/dispatch/domains/memory.d.ts +27 -0
  918. package/dist/dispatch/domains/memory.d.ts.map +1 -0
  919. package/dist/dispatch/domains/memory.js +169 -0
  920. package/dist/dispatch/domains/memory.js.map +1 -0
  921. package/dist/dispatch/domains/nexus.d.ts +18 -0
  922. package/dist/dispatch/domains/nexus.d.ts.map +1 -0
  923. package/dist/dispatch/domains/nexus.js +34 -0
  924. package/dist/dispatch/domains/nexus.js.map +1 -0
  925. package/dist/dispatch/domains/orchestrate.d.ts +24 -0
  926. package/dist/dispatch/domains/orchestrate.d.ts.map +1 -0
  927. package/dist/dispatch/domains/orchestrate.js +199 -0
  928. package/dist/dispatch/domains/orchestrate.js.map +1 -0
  929. package/dist/dispatch/domains/pipeline.d.ts +31 -0
  930. package/dist/dispatch/domains/pipeline.d.ts.map +1 -0
  931. package/dist/dispatch/domains/pipeline.js +284 -0
  932. package/dist/dispatch/domains/pipeline.js.map +1 -0
  933. package/dist/dispatch/domains/session.d.ts +27 -0
  934. package/dist/dispatch/domains/session.d.ts.map +1 -0
  935. package/dist/dispatch/domains/session.js +180 -0
  936. package/dist/dispatch/domains/session.js.map +1 -0
  937. package/dist/dispatch/domains/tools.d.ts +39 -0
  938. package/dist/dispatch/domains/tools.d.ts.map +1 -0
  939. package/dist/dispatch/domains/tools.js +314 -0
  940. package/dist/dispatch/domains/tools.js.map +1 -0
  941. package/dist/dispatch/index.d.ts +20 -0
  942. package/dist/dispatch/index.d.ts.map +1 -0
  943. package/dist/dispatch/index.js +19 -0
  944. package/dist/dispatch/index.js.map +1 -0
  945. package/dist/dispatch/lib/meta.d.ts +24 -0
  946. package/dist/dispatch/lib/meta.d.ts.map +1 -0
  947. package/dist/dispatch/lib/meta.js +34 -0
  948. package/dist/dispatch/lib/meta.js.map +1 -0
  949. package/dist/dispatch/middleware/audit.d.ts +123 -0
  950. package/dist/dispatch/middleware/audit.d.ts.map +1 -0
  951. package/dist/dispatch/middleware/audit.js +345 -0
  952. package/dist/dispatch/middleware/audit.js.map +1 -0
  953. package/dist/dispatch/middleware/pipeline.d.ts +20 -0
  954. package/dist/dispatch/middleware/pipeline.d.ts.map +1 -0
  955. package/dist/dispatch/middleware/pipeline.js +47 -0
  956. package/dist/dispatch/middleware/pipeline.js.map +1 -0
  957. package/dist/dispatch/middleware/protocol-enforcement.d.ts +6 -0
  958. package/dist/dispatch/middleware/protocol-enforcement.d.ts.map +1 -0
  959. package/dist/dispatch/middleware/protocol-enforcement.js +12 -0
  960. package/dist/dispatch/middleware/protocol-enforcement.js.map +1 -0
  961. package/dist/dispatch/middleware/rate-limiter.d.ts +30 -0
  962. package/dist/dispatch/middleware/rate-limiter.d.ts.map +1 -0
  963. package/dist/dispatch/middleware/rate-limiter.js +101 -0
  964. package/dist/dispatch/middleware/rate-limiter.js.map +1 -0
  965. package/dist/dispatch/middleware/sanitizer.d.ts +10 -0
  966. package/dist/dispatch/middleware/sanitizer.d.ts.map +1 -0
  967. package/dist/dispatch/middleware/sanitizer.js +39 -0
  968. package/dist/dispatch/middleware/sanitizer.js.map +1 -0
  969. package/dist/dispatch/middleware/verification-gates.d.ts +3 -0
  970. package/dist/dispatch/middleware/verification-gates.d.ts.map +1 -0
  971. package/dist/dispatch/middleware/verification-gates.js +40 -0
  972. package/dist/dispatch/middleware/verification-gates.js.map +1 -0
  973. package/dist/dispatch/registry.d.ts +89 -0
  974. package/dist/dispatch/registry.d.ts.map +1 -0
  975. package/dist/dispatch/registry.js +1591 -0
  976. package/dist/dispatch/registry.js.map +1 -0
  977. package/dist/dispatch/types.d.ts +137 -0
  978. package/dist/dispatch/types.d.ts.map +1 -0
  979. package/dist/dispatch/types.js +24 -0
  980. package/dist/dispatch/types.js.map +1 -0
  981. package/dist/index.d.ts +22 -0
  982. package/dist/index.d.ts.map +1 -0
  983. package/dist/index.js +30 -0
  984. package/dist/index.js.map +1 -0
  985. package/dist/mcp/domains/index.d.ts +19 -0
  986. package/dist/mcp/domains/index.d.ts.map +1 -0
  987. package/dist/mcp/domains/index.js +19 -0
  988. package/dist/mcp/domains/index.js.map +1 -0
  989. package/dist/mcp/domains/issues.d.ts +69 -0
  990. package/dist/mcp/domains/issues.d.ts.map +1 -0
  991. package/dist/mcp/domains/issues.js +260 -0
  992. package/dist/mcp/domains/issues.js.map +1 -0
  993. package/dist/mcp/domains/lifecycle.d.ts +154 -0
  994. package/dist/mcp/domains/lifecycle.d.ts.map +1 -0
  995. package/dist/mcp/domains/lifecycle.js +508 -0
  996. package/dist/mcp/domains/lifecycle.js.map +1 -0
  997. package/dist/mcp/domains/orchestrate.d.ts +140 -0
  998. package/dist/mcp/domains/orchestrate.d.ts.map +1 -0
  999. package/dist/mcp/domains/orchestrate.js +542 -0
  1000. package/dist/mcp/domains/orchestrate.js.map +1 -0
  1001. package/dist/mcp/domains/providers.d.ts +28 -0
  1002. package/dist/mcp/domains/providers.d.ts.map +1 -0
  1003. package/dist/mcp/domains/providers.js +108 -0
  1004. package/dist/mcp/domains/providers.js.map +1 -0
  1005. package/dist/mcp/domains/release.d.ts +121 -0
  1006. package/dist/mcp/domains/release.d.ts.map +1 -0
  1007. package/dist/mcp/domains/release.js +486 -0
  1008. package/dist/mcp/domains/release.js.map +1 -0
  1009. package/dist/mcp/domains/research.d.ts +158 -0
  1010. package/dist/mcp/domains/research.d.ts.map +1 -0
  1011. package/dist/mcp/domains/research.js +698 -0
  1012. package/dist/mcp/domains/research.js.map +1 -0
  1013. package/dist/mcp/domains/session.d.ts +136 -0
  1014. package/dist/mcp/domains/session.d.ts.map +1 -0
  1015. package/dist/mcp/domains/session.js +583 -0
  1016. package/dist/mcp/domains/session.js.map +1 -0
  1017. package/dist/mcp/domains/skills.d.ts +129 -0
  1018. package/dist/mcp/domains/skills.d.ts.map +1 -0
  1019. package/dist/mcp/domains/skills.js +691 -0
  1020. package/dist/mcp/domains/skills.js.map +1 -0
  1021. package/dist/mcp/domains/system.d.ts +166 -0
  1022. package/dist/mcp/domains/system.d.ts.map +1 -0
  1023. package/dist/mcp/domains/system.js +1000 -0
  1024. package/dist/mcp/domains/system.js.map +1 -0
  1025. package/dist/mcp/domains/tasks.d.ts +241 -0
  1026. package/dist/mcp/domains/tasks.d.ts.map +1 -0
  1027. package/dist/mcp/domains/tasks.js +1152 -0
  1028. package/dist/mcp/domains/tasks.js.map +1 -0
  1029. package/dist/mcp/domains/validate.d.ts +163 -0
  1030. package/dist/mcp/domains/validate.d.ts.map +1 -0
  1031. package/dist/mcp/domains/validate.js +787 -0
  1032. package/dist/mcp/domains/validate.js.map +1 -0
  1033. package/dist/mcp/engine/caamp-adapter.d.ts +12 -0
  1034. package/dist/mcp/engine/caamp-adapter.d.ts.map +1 -0
  1035. package/dist/mcp/engine/caamp-adapter.js +23 -0
  1036. package/dist/mcp/engine/caamp-adapter.js.map +1 -0
  1037. package/dist/mcp/engine/caamp-verify.d.ts +2 -0
  1038. package/dist/mcp/engine/caamp-verify.d.ts.map +1 -0
  1039. package/dist/mcp/engine/caamp-verify.js +15 -0
  1040. package/dist/mcp/engine/caamp-verify.js.map +1 -0
  1041. package/dist/mcp/engine/capability-matrix.d.ts +67 -0
  1042. package/dist/mcp/engine/capability-matrix.d.ts.map +1 -0
  1043. package/dist/mcp/engine/capability-matrix.js +243 -0
  1044. package/dist/mcp/engine/capability-matrix.js.map +1 -0
  1045. package/dist/mcp/engine/config-engine.d.ts +29 -0
  1046. package/dist/mcp/engine/config-engine.d.ts.map +1 -0
  1047. package/dist/mcp/engine/config-engine.js +110 -0
  1048. package/dist/mcp/engine/config-engine.js.map +1 -0
  1049. package/dist/mcp/engine/id-generator.d.ts +34 -0
  1050. package/dist/mcp/engine/id-generator.d.ts.map +1 -0
  1051. package/dist/mcp/engine/id-generator.js +91 -0
  1052. package/dist/mcp/engine/id-generator.js.map +1 -0
  1053. package/dist/mcp/engine/index.d.ts +25 -0
  1054. package/dist/mcp/engine/index.d.ts.map +1 -0
  1055. package/dist/mcp/engine/index.js +42 -0
  1056. package/dist/mcp/engine/index.js.map +1 -0
  1057. package/dist/mcp/engine/init-engine.d.ts +52 -0
  1058. package/dist/mcp/engine/init-engine.d.ts.map +1 -0
  1059. package/dist/mcp/engine/init-engine.js +222 -0
  1060. package/dist/mcp/engine/init-engine.js.map +1 -0
  1061. package/dist/mcp/engine/lifecycle-engine.d.ts +119 -0
  1062. package/dist/mcp/engine/lifecycle-engine.d.ts.map +1 -0
  1063. package/dist/mcp/engine/lifecycle-engine.js +564 -0
  1064. package/dist/mcp/engine/lifecycle-engine.js.map +1 -0
  1065. package/dist/mcp/engine/orchestrate-engine.d.ts +127 -0
  1066. package/dist/mcp/engine/orchestrate-engine.d.ts.map +1 -0
  1067. package/dist/mcp/engine/orchestrate-engine.js +1233 -0
  1068. package/dist/mcp/engine/orchestrate-engine.js.map +1 -0
  1069. package/dist/mcp/engine/release-engine.d.ts +71 -0
  1070. package/dist/mcp/engine/release-engine.d.ts.map +1 -0
  1071. package/dist/mcp/engine/release-engine.js +515 -0
  1072. package/dist/mcp/engine/release-engine.js.map +1 -0
  1073. package/dist/mcp/engine/research-engine.d.ts +182 -0
  1074. package/dist/mcp/engine/research-engine.d.ts.map +1 -0
  1075. package/dist/mcp/engine/research-engine.js +747 -0
  1076. package/dist/mcp/engine/research-engine.js.map +1 -0
  1077. package/dist/mcp/engine/schema-validator.d.ts +47 -0
  1078. package/dist/mcp/engine/schema-validator.d.ts.map +1 -0
  1079. package/dist/mcp/engine/schema-validator.js +219 -0
  1080. package/dist/mcp/engine/schema-validator.js.map +1 -0
  1081. package/dist/mcp/engine/session-engine.d.ts +340 -0
  1082. package/dist/mcp/engine/session-engine.d.ts.map +1 -0
  1083. package/dist/mcp/engine/session-engine.js +1355 -0
  1084. package/dist/mcp/engine/session-engine.js.map +1 -0
  1085. package/dist/mcp/engine/store.d.ts +86 -0
  1086. package/dist/mcp/engine/store.d.ts.map +1 -0
  1087. package/dist/mcp/engine/store.js +393 -0
  1088. package/dist/mcp/engine/store.js.map +1 -0
  1089. package/dist/mcp/engine/system-engine.d.ts +458 -0
  1090. package/dist/mcp/engine/system-engine.d.ts.map +1 -0
  1091. package/dist/mcp/engine/system-engine.js +1568 -0
  1092. package/dist/mcp/engine/system-engine.js.map +1 -0
  1093. package/dist/mcp/engine/task-engine.d.ts +501 -0
  1094. package/dist/mcp/engine/task-engine.d.ts.map +1 -0
  1095. package/dist/mcp/engine/task-engine.js +1840 -0
  1096. package/dist/mcp/engine/task-engine.js.map +1 -0
  1097. package/dist/mcp/engine/template-parser.d.ts +83 -0
  1098. package/dist/mcp/engine/template-parser.d.ts.map +1 -0
  1099. package/dist/mcp/engine/template-parser.js +255 -0
  1100. package/dist/mcp/engine/template-parser.js.map +1 -0
  1101. package/dist/mcp/engine/validate-engine.d.ts +120 -0
  1102. package/dist/mcp/engine/validate-engine.d.ts.map +1 -0
  1103. package/dist/mcp/engine/validate-engine.js +828 -0
  1104. package/dist/mcp/engine/validate-engine.js.map +1 -0
  1105. package/dist/mcp/engine/validation-rules.d.ts +85 -0
  1106. package/dist/mcp/engine/validation-rules.d.ts.map +1 -0
  1107. package/dist/mcp/engine/validation-rules.js +220 -0
  1108. package/dist/mcp/engine/validation-rules.js.map +1 -0
  1109. package/dist/mcp/gateways/mutate.d.ts +100 -0
  1110. package/dist/mcp/gateways/mutate.d.ts.map +1 -0
  1111. package/dist/mcp/gateways/mutate.js +1070 -0
  1112. package/dist/mcp/gateways/mutate.js.map +1 -0
  1113. package/dist/mcp/gateways/query.d.ts +91 -0
  1114. package/dist/mcp/gateways/query.d.ts.map +1 -0
  1115. package/dist/mcp/gateways/query.js +278 -0
  1116. package/dist/mcp/gateways/query.js.map +1 -0
  1117. package/dist/mcp/index.d.ts +20 -0
  1118. package/dist/mcp/index.d.ts.map +1 -0
  1119. package/dist/mcp/index.js +20993 -0
  1120. package/dist/mcp/index.js.map +7 -0
  1121. package/dist/mcp/lib/audit.d.ts +118 -0
  1122. package/dist/mcp/lib/audit.d.ts.map +1 -0
  1123. package/dist/mcp/lib/audit.js +310 -0
  1124. package/dist/mcp/lib/audit.js.map +1 -0
  1125. package/dist/mcp/lib/background-jobs.d.ts +86 -0
  1126. package/dist/mcp/lib/background-jobs.d.ts.map +1 -0
  1127. package/dist/mcp/lib/background-jobs.js +183 -0
  1128. package/dist/mcp/lib/background-jobs.js.map +1 -0
  1129. package/dist/mcp/lib/budget.d.ts +35 -0
  1130. package/dist/mcp/lib/budget.d.ts.map +1 -0
  1131. package/dist/mcp/lib/budget.js +101 -0
  1132. package/dist/mcp/lib/budget.js.map +1 -0
  1133. package/dist/mcp/lib/cache.d.ts +78 -0
  1134. package/dist/mcp/lib/cache.d.ts.map +1 -0
  1135. package/dist/mcp/lib/cache.js +204 -0
  1136. package/dist/mcp/lib/cache.js.map +1 -0
  1137. package/dist/mcp/lib/command-builder.d.ts +52 -0
  1138. package/dist/mcp/lib/command-builder.d.ts.map +1 -0
  1139. package/dist/mcp/lib/command-builder.js +269 -0
  1140. package/dist/mcp/lib/command-builder.js.map +1 -0
  1141. package/dist/mcp/lib/config.d.ts +42 -0
  1142. package/dist/mcp/lib/config.d.ts.map +1 -0
  1143. package/dist/mcp/lib/config.js +248 -0
  1144. package/dist/mcp/lib/config.js.map +1 -0
  1145. package/dist/mcp/lib/defaults.d.ts +115 -0
  1146. package/dist/mcp/lib/defaults.d.ts.map +1 -0
  1147. package/dist/mcp/lib/defaults.js +61 -0
  1148. package/dist/mcp/lib/defaults.js.map +1 -0
  1149. package/dist/mcp/lib/error-handler.d.ts +101 -0
  1150. package/dist/mcp/lib/error-handler.d.ts.map +1 -0
  1151. package/dist/mcp/lib/error-handler.js +277 -0
  1152. package/dist/mcp/lib/error-handler.js.map +1 -0
  1153. package/dist/mcp/lib/executor.d.ts +122 -0
  1154. package/dist/mcp/lib/executor.d.ts.map +1 -0
  1155. package/dist/mcp/lib/executor.js +391 -0
  1156. package/dist/mcp/lib/executor.js.map +1 -0
  1157. package/dist/mcp/lib/exit-codes.d.ts +192 -0
  1158. package/dist/mcp/lib/exit-codes.d.ts.map +1 -0
  1159. package/dist/mcp/lib/exit-codes.js +1029 -0
  1160. package/dist/mcp/lib/exit-codes.js.map +1 -0
  1161. package/dist/mcp/lib/formatter.d.ts +196 -0
  1162. package/dist/mcp/lib/formatter.d.ts.map +1 -0
  1163. package/dist/mcp/lib/formatter.js +260 -0
  1164. package/dist/mcp/lib/formatter.js.map +1 -0
  1165. package/dist/mcp/lib/gate-validators.d.ts +104 -0
  1166. package/dist/mcp/lib/gate-validators.d.ts.map +1 -0
  1167. package/dist/mcp/lib/gate-validators.js +709 -0
  1168. package/dist/mcp/lib/gate-validators.js.map +1 -0
  1169. package/dist/mcp/lib/gateway-meta.d.ts +37 -0
  1170. package/dist/mcp/lib/gateway-meta.d.ts.map +1 -0
  1171. package/dist/mcp/lib/gateway-meta.js +50 -0
  1172. package/dist/mcp/lib/gateway-meta.js.map +1 -0
  1173. package/dist/mcp/lib/manifest-parser.d.ts +61 -0
  1174. package/dist/mcp/lib/manifest-parser.d.ts.map +1 -0
  1175. package/dist/mcp/lib/manifest-parser.js +338 -0
  1176. package/dist/mcp/lib/manifest-parser.js.map +1 -0
  1177. package/dist/mcp/lib/manifest.d.ts +177 -0
  1178. package/dist/mcp/lib/manifest.d.ts.map +1 -0
  1179. package/dist/mcp/lib/manifest.js +301 -0
  1180. package/dist/mcp/lib/manifest.js.map +1 -0
  1181. package/dist/mcp/lib/mode-detector.d.ts +71 -0
  1182. package/dist/mcp/lib/mode-detector.d.ts.map +1 -0
  1183. package/dist/mcp/lib/mode-detector.js +184 -0
  1184. package/dist/mcp/lib/mode-detector.js.map +1 -0
  1185. package/dist/mcp/lib/protocol-enforcement.d.ts +105 -0
  1186. package/dist/mcp/lib/protocol-enforcement.d.ts.map +1 -0
  1187. package/dist/mcp/lib/protocol-enforcement.js +331 -0
  1188. package/dist/mcp/lib/protocol-enforcement.js.map +1 -0
  1189. package/dist/mcp/lib/protocol-rules.d.ts +55 -0
  1190. package/dist/mcp/lib/protocol-rules.d.ts.map +1 -0
  1191. package/dist/mcp/lib/protocol-rules.js +760 -0
  1192. package/dist/mcp/lib/protocol-rules.js.map +1 -0
  1193. package/dist/mcp/lib/rate-limiter.d.ts +110 -0
  1194. package/dist/mcp/lib/rate-limiter.d.ts.map +1 -0
  1195. package/dist/mcp/lib/rate-limiter.js +208 -0
  1196. package/dist/mcp/lib/rate-limiter.js.map +1 -0
  1197. package/dist/mcp/lib/router.d.ts +136 -0
  1198. package/dist/mcp/lib/router.d.ts.map +1 -0
  1199. package/dist/mcp/lib/router.js +298 -0
  1200. package/dist/mcp/lib/router.js.map +1 -0
  1201. package/dist/mcp/lib/schema.d.ts +55 -0
  1202. package/dist/mcp/lib/schema.d.ts.map +1 -0
  1203. package/dist/mcp/lib/schema.js +70 -0
  1204. package/dist/mcp/lib/schema.js.map +1 -0
  1205. package/dist/mcp/lib/security.d.ts +158 -0
  1206. package/dist/mcp/lib/security.d.ts.map +1 -0
  1207. package/dist/mcp/lib/security.js +353 -0
  1208. package/dist/mcp/lib/security.js.map +1 -0
  1209. package/dist/mcp/lib/verification-gates.d.ts +287 -0
  1210. package/dist/mcp/lib/verification-gates.d.ts.map +1 -0
  1211. package/dist/mcp/lib/verification-gates.js +547 -0
  1212. package/dist/mcp/lib/verification-gates.js.map +1 -0
  1213. package/dist/mcp/types/domain.d.ts +29 -0
  1214. package/dist/mcp/types/domain.d.ts.map +1 -0
  1215. package/dist/mcp/types/domain.js +7 -0
  1216. package/dist/mcp/types/domain.js.map +1 -0
  1217. package/dist/mcp/types/error.d.ts +101 -0
  1218. package/dist/mcp/types/error.d.ts.map +1 -0
  1219. package/dist/mcp/types/error.js +148 -0
  1220. package/dist/mcp/types/error.js.map +1 -0
  1221. package/dist/mcp/types/gateway.d.ts +78 -0
  1222. package/dist/mcp/types/gateway.d.ts.map +1 -0
  1223. package/dist/mcp/types/gateway.js +7 -0
  1224. package/dist/mcp/types/gateway.js.map +1 -0
  1225. package/dist/mcp/types/index.d.ts +23 -0
  1226. package/dist/mcp/types/index.d.ts.map +1 -0
  1227. package/dist/mcp/types/index.js +11 -0
  1228. package/dist/mcp/types/index.js.map +1 -0
  1229. package/dist/mcp/types/operations/issues.d.ts +3 -0
  1230. package/dist/mcp/types/operations/issues.d.ts.map +1 -0
  1231. package/dist/mcp/types/operations/issues.js +3 -0
  1232. package/dist/mcp/types/operations/issues.js.map +1 -0
  1233. package/dist/mcp/types/operations/lifecycle.d.ts +3 -0
  1234. package/dist/mcp/types/operations/lifecycle.d.ts.map +1 -0
  1235. package/dist/mcp/types/operations/lifecycle.js +3 -0
  1236. package/dist/mcp/types/operations/lifecycle.js.map +1 -0
  1237. package/dist/mcp/types/operations/orchestrate.d.ts +3 -0
  1238. package/dist/mcp/types/operations/orchestrate.d.ts.map +1 -0
  1239. package/dist/mcp/types/operations/orchestrate.js +3 -0
  1240. package/dist/mcp/types/operations/orchestrate.js.map +1 -0
  1241. package/dist/mcp/types/operations/release.d.ts +3 -0
  1242. package/dist/mcp/types/operations/release.d.ts.map +1 -0
  1243. package/dist/mcp/types/operations/release.js +3 -0
  1244. package/dist/mcp/types/operations/release.js.map +1 -0
  1245. package/dist/mcp/types/operations/research.d.ts +3 -0
  1246. package/dist/mcp/types/operations/research.d.ts.map +1 -0
  1247. package/dist/mcp/types/operations/research.js +3 -0
  1248. package/dist/mcp/types/operations/research.js.map +1 -0
  1249. package/dist/mcp/types/operations/session.d.ts +3 -0
  1250. package/dist/mcp/types/operations/session.d.ts.map +1 -0
  1251. package/dist/mcp/types/operations/session.js +3 -0
  1252. package/dist/mcp/types/operations/session.js.map +1 -0
  1253. package/dist/mcp/types/operations/skills.d.ts +3 -0
  1254. package/dist/mcp/types/operations/skills.d.ts.map +1 -0
  1255. package/dist/mcp/types/operations/skills.js +3 -0
  1256. package/dist/mcp/types/operations/skills.js.map +1 -0
  1257. package/dist/mcp/types/operations/system.d.ts +3 -0
  1258. package/dist/mcp/types/operations/system.d.ts.map +1 -0
  1259. package/dist/mcp/types/operations/system.js +3 -0
  1260. package/dist/mcp/types/operations/system.js.map +1 -0
  1261. package/dist/mcp/types/operations/tasks.d.ts +3 -0
  1262. package/dist/mcp/types/operations/tasks.d.ts.map +1 -0
  1263. package/dist/mcp/types/operations/tasks.js +3 -0
  1264. package/dist/mcp/types/operations/tasks.js.map +1 -0
  1265. package/dist/mcp/types/operations/validate.d.ts +3 -0
  1266. package/dist/mcp/types/operations/validate.d.ts.map +1 -0
  1267. package/dist/mcp/types/operations/validate.js +3 -0
  1268. package/dist/mcp/types/operations/validate.js.map +1 -0
  1269. package/dist/scripts/migrate-todo-to-tasks.d.ts +46 -0
  1270. package/dist/scripts/migrate-todo-to-tasks.d.ts.map +1 -0
  1271. package/dist/scripts/migrate-todo-to-tasks.js +379 -0
  1272. package/dist/scripts/migrate-todo-to-tasks.js.map +1 -0
  1273. package/dist/store/atomic.d.ts +75 -0
  1274. package/dist/store/atomic.d.ts.map +1 -0
  1275. package/dist/store/atomic.js +167 -0
  1276. package/dist/store/atomic.js.map +1 -0
  1277. package/dist/store/backup.d.ts +21 -0
  1278. package/dist/store/backup.d.ts.map +1 -0
  1279. package/dist/store/backup.js +94 -0
  1280. package/dist/store/backup.js.map +1 -0
  1281. package/dist/store/cache.d.ts +67 -0
  1282. package/dist/store/cache.d.ts.map +1 -0
  1283. package/dist/store/cache.js +168 -0
  1284. package/dist/store/cache.js.map +1 -0
  1285. package/dist/store/data-accessor.d.ts +77 -0
  1286. package/dist/store/data-accessor.d.ts.map +1 -0
  1287. package/dist/store/data-accessor.js +149 -0
  1288. package/dist/store/data-accessor.js.map +1 -0
  1289. package/dist/store/data-safety-central.d.ts +103 -0
  1290. package/dist/store/data-safety-central.d.ts.map +1 -0
  1291. package/dist/store/data-safety-central.js +291 -0
  1292. package/dist/store/data-safety-central.js.map +1 -0
  1293. package/dist/store/data-safety.d.ts +93 -0
  1294. package/dist/store/data-safety.d.ts.map +1 -0
  1295. package/dist/store/data-safety.js +298 -0
  1296. package/dist/store/data-safety.js.map +1 -0
  1297. package/dist/store/export.d.ts +87 -0
  1298. package/dist/store/export.d.ts.map +1 -0
  1299. package/dist/store/export.js +153 -0
  1300. package/dist/store/export.js.map +1 -0
  1301. package/dist/store/git-checkpoint.d.ts +65 -0
  1302. package/dist/store/git-checkpoint.d.ts.map +1 -0
  1303. package/dist/store/git-checkpoint.js +304 -0
  1304. package/dist/store/git-checkpoint.js.map +1 -0
  1305. package/dist/store/import-logging.d.ts +58 -0
  1306. package/dist/store/import-logging.d.ts.map +1 -0
  1307. package/dist/store/import-logging.js +139 -0
  1308. package/dist/store/import-logging.js.map +1 -0
  1309. package/dist/store/import-remap.d.ts +50 -0
  1310. package/dist/store/import-remap.d.ts.map +1 -0
  1311. package/dist/store/import-remap.js +145 -0
  1312. package/dist/store/import-remap.js.map +1 -0
  1313. package/dist/store/import-sort.d.ts +35 -0
  1314. package/dist/store/import-sort.d.ts.map +1 -0
  1315. package/dist/store/import-sort.js +123 -0
  1316. package/dist/store/import-sort.js.map +1 -0
  1317. package/dist/store/index.d.ts +28 -0
  1318. package/dist/store/index.d.ts.map +1 -0
  1319. package/dist/store/index.js +28 -0
  1320. package/dist/store/index.js.map +1 -0
  1321. package/dist/store/json-data-accessor.d.ts +16 -0
  1322. package/dist/store/json-data-accessor.d.ts.map +1 -0
  1323. package/dist/store/json-data-accessor.js +68 -0
  1324. package/dist/store/json-data-accessor.js.map +1 -0
  1325. package/dist/store/json-provider.d.ts +23 -0
  1326. package/dist/store/json-provider.d.ts.map +1 -0
  1327. package/dist/store/json-provider.js +263 -0
  1328. package/dist/store/json-provider.js.map +1 -0
  1329. package/dist/store/json.d.ts +57 -0
  1330. package/dist/store/json.d.ts.map +1 -0
  1331. package/dist/store/json.js +198 -0
  1332. package/dist/store/json.js.map +1 -0
  1333. package/dist/store/lock.d.ts +29 -0
  1334. package/dist/store/lock.d.ts.map +1 -0
  1335. package/dist/store/lock.js +70 -0
  1336. package/dist/store/lock.js.map +1 -0
  1337. package/dist/store/migration-sqlite.d.ts +68 -0
  1338. package/dist/store/migration-sqlite.d.ts.map +1 -0
  1339. package/dist/store/migration-sqlite.js +742 -0
  1340. package/dist/store/migration-sqlite.js.map +1 -0
  1341. package/dist/store/project-detect.d.ts +24 -0
  1342. package/dist/store/project-detect.d.ts.map +1 -0
  1343. package/dist/store/project-detect.js +93 -0
  1344. package/dist/store/project-detect.js.map +1 -0
  1345. package/dist/store/project-registry.d.ts +113 -0
  1346. package/dist/store/project-registry.d.ts.map +1 -0
  1347. package/dist/store/project-registry.js +194 -0
  1348. package/dist/store/project-registry.js.map +1 -0
  1349. package/dist/store/provider.d.ts +162 -0
  1350. package/dist/store/provider.d.ts.map +1 -0
  1351. package/dist/store/provider.js +319 -0
  1352. package/dist/store/provider.js.map +1 -0
  1353. package/dist/store/safety-data-accessor.d.ts +99 -0
  1354. package/dist/store/safety-data-accessor.d.ts.map +1 -0
  1355. package/dist/store/safety-data-accessor.js +167 -0
  1356. package/dist/store/safety-data-accessor.js.map +1 -0
  1357. package/dist/store/schema.d.ts +1094 -0
  1358. package/dist/store/schema.d.ts.map +1 -0
  1359. package/dist/store/schema.js +114 -0
  1360. package/dist/store/schema.js.map +1 -0
  1361. package/dist/store/session-store.d.ts +42 -0
  1362. package/dist/store/session-store.d.ts.map +1 -0
  1363. package/dist/store/session-store.js +227 -0
  1364. package/dist/store/session-store.js.map +1 -0
  1365. package/dist/store/sqlite-data-accessor.d.ts +24 -0
  1366. package/dist/store/sqlite-data-accessor.d.ts.map +1 -0
  1367. package/dist/store/sqlite-data-accessor.js +564 -0
  1368. package/dist/store/sqlite-data-accessor.js.map +1 -0
  1369. package/dist/store/sqlite.d.ts +51 -0
  1370. package/dist/store/sqlite.d.ts.map +1 -0
  1371. package/dist/store/sqlite.js +235 -0
  1372. package/dist/store/sqlite.js.map +1 -0
  1373. package/dist/store/task-store.d.ts +70 -0
  1374. package/dist/store/task-store.d.ts.map +1 -0
  1375. package/dist/store/task-store.js +401 -0
  1376. package/dist/store/task-store.js.map +1 -0
  1377. package/dist/types/config.d.ts +59 -0
  1378. package/dist/types/config.d.ts.map +1 -0
  1379. package/dist/types/config.js +8 -0
  1380. package/dist/types/config.js.map +1 -0
  1381. package/dist/types/exit-codes.d.ts +102 -0
  1382. package/dist/types/exit-codes.d.ts.map +1 -0
  1383. package/dist/types/exit-codes.js +150 -0
  1384. package/dist/types/exit-codes.js.map +1 -0
  1385. package/dist/types/index.d.ts +11 -0
  1386. package/dist/types/index.d.ts.map +1 -0
  1387. package/dist/types/index.js +11 -0
  1388. package/dist/types/index.js.map +1 -0
  1389. package/dist/types/lafs.d.ts +77 -0
  1390. package/dist/types/lafs.d.ts.map +1 -0
  1391. package/dist/types/lafs.js +28 -0
  1392. package/dist/types/lafs.js.map +1 -0
  1393. package/dist/types/operations/issues.d.ts +75 -0
  1394. package/dist/types/operations/issues.d.ts.map +1 -0
  1395. package/dist/types/operations/issues.js +10 -0
  1396. package/dist/types/operations/issues.js.map +1 -0
  1397. package/dist/types/operations/lifecycle.d.ts +140 -0
  1398. package/dist/types/operations/lifecycle.d.ts.map +1 -0
  1399. package/dist/types/operations/lifecycle.js +8 -0
  1400. package/dist/types/operations/lifecycle.js.map +1 -0
  1401. package/dist/types/operations/orchestrate.d.ts +187 -0
  1402. package/dist/types/operations/orchestrate.d.ts.map +1 -0
  1403. package/dist/types/operations/orchestrate.js +8 -0
  1404. package/dist/types/operations/orchestrate.js.map +1 -0
  1405. package/dist/types/operations/release.d.ts +97 -0
  1406. package/dist/types/operations/release.d.ts.map +1 -0
  1407. package/dist/types/operations/release.js +7 -0
  1408. package/dist/types/operations/release.js.map +1 -0
  1409. package/dist/types/operations/research.d.ts +122 -0
  1410. package/dist/types/operations/research.d.ts.map +1 -0
  1411. package/dist/types/operations/research.js +8 -0
  1412. package/dist/types/operations/research.js.map +1 -0
  1413. package/dist/types/operations/session.d.ts +93 -0
  1414. package/dist/types/operations/session.d.ts.map +1 -0
  1415. package/dist/types/operations/session.js +12 -0
  1416. package/dist/types/operations/session.js.map +1 -0
  1417. package/dist/types/operations/skills.d.ts +182 -0
  1418. package/dist/types/operations/skills.d.ts.map +1 -0
  1419. package/dist/types/operations/skills.js +10 -0
  1420. package/dist/types/operations/skills.js.map +1 -0
  1421. package/dist/types/operations/system.d.ts +147 -0
  1422. package/dist/types/operations/system.d.ts.map +1 -0
  1423. package/dist/types/operations/system.js +8 -0
  1424. package/dist/types/operations/system.js.map +1 -0
  1425. package/dist/types/operations/tasks.d.ts +219 -0
  1426. package/dist/types/operations/tasks.d.ts.map +1 -0
  1427. package/dist/types/operations/tasks.js +13 -0
  1428. package/dist/types/operations/tasks.js.map +1 -0
  1429. package/dist/types/operations/validate.d.ts +170 -0
  1430. package/dist/types/operations/validate.d.ts.map +1 -0
  1431. package/dist/types/operations/validate.js +8 -0
  1432. package/dist/types/operations/validate.js.map +1 -0
  1433. package/dist/types/session.d.ts +48 -0
  1434. package/dist/types/session.d.ts.map +1 -0
  1435. package/dist/types/session.js +8 -0
  1436. package/dist/types/session.js.map +1 -0
  1437. package/dist/types/task.d.ts +160 -0
  1438. package/dist/types/task.d.ts.map +1 -0
  1439. package/dist/types/task.js +7 -0
  1440. package/dist/types/task.js.map +1 -0
  1441. package/package.json +88 -0
  1442. package/schemas/agent-configs.schema.json +120 -0
  1443. package/schemas/agent-registry.json +243 -0
  1444. package/schemas/agent-registry.schema.json +132 -0
  1445. package/schemas/archive.schema.json +450 -0
  1446. package/schemas/claudedocs-frontmatter.schema.json +162 -0
  1447. package/schemas/commands-index.schema.json +158 -0
  1448. package/schemas/config.schema.json +2552 -0
  1449. package/schemas/context-state.schema.json +137 -0
  1450. package/schemas/contribution.schema.json +722 -0
  1451. package/schemas/critical-path.schema.json +246 -0
  1452. package/schemas/deps-cache.schema.json +97 -0
  1453. package/schemas/doctor-output.schema.json +283 -0
  1454. package/schemas/error.schema.json +161 -0
  1455. package/schemas/export-package.schema.json +375 -0
  1456. package/schemas/global-config.schema.json +219 -0
  1457. package/schemas/log.schema.json +250 -0
  1458. package/schemas/metrics.schema.json +328 -0
  1459. package/schemas/migrations.schema.json +150 -0
  1460. package/schemas/nexus-registry.schema.json +90 -0
  1461. package/schemas/output.schema.json +164 -0
  1462. package/schemas/project-context.schema.json +164 -0
  1463. package/schemas/project-info.schema.json +170 -0
  1464. package/schemas/projects-registry.schema.json +107 -0
  1465. package/schemas/rcsd-consensus-report.schema.json +491 -0
  1466. package/schemas/rcsd-hitl-resolution.schema.json +216 -0
  1467. package/schemas/rcsd-index.schema.json +384 -0
  1468. package/schemas/rcsd-manifest.schema.json +264 -0
  1469. package/schemas/rcsd-research-output.schema.json +564 -0
  1470. package/schemas/rcsd-spec-frontmatter.schema.json +225 -0
  1471. package/schemas/releases.schema.json +267 -0
  1472. package/schemas/research-manifest.schema.json +257 -0
  1473. package/schemas/sessions.schema.json +406 -0
  1474. package/schemas/skills-manifest.schema.json +91 -0
  1475. package/schemas/skillsmp.schema.json +208 -0
  1476. package/schemas/spec-index.schema.json +196 -0
  1477. package/schemas/todo.schema.json +994 -0
  1478. package/server.json +57 -0
  1479. package/skills/_shared/cleo-style-guide.md +84 -0
  1480. package/skills/_shared/manifest-operations.md +810 -0
  1481. package/skills/_shared/placeholders.json +433 -0
  1482. package/skills/_shared/skill-chaining-patterns.md +240 -0
  1483. package/skills/_shared/subagent-protocol-base.md +221 -0
  1484. package/skills/_shared/task-system-integration.md +232 -0
  1485. package/skills/_shared/testing-framework-config.md +110 -0
  1486. package/skills/agentskills-integrate.md +104 -0
  1487. package/skills/agentskills-specs.md +255 -0
  1488. package/skills/agentskills-what-are-skills.md +75 -0
  1489. package/skills/manifest.json +510 -0
  1490. package/templates/AGENT-INJECTION.md +166 -0
  1491. package/templates/CLEO-INJECTION.md +470 -0
  1492. package/templates/CONTRIBUTION-INJECTION.md +19 -0
  1493. package/templates/CONTRIBUTION-PROTOCOL.template.md +224 -0
  1494. package/templates/README.md +110 -0
  1495. package/templates/agent-registry.json +305 -0
  1496. package/templates/agents/BASE-SUBAGENT-PROTOCOL.md +115 -0
  1497. package/templates/agents/README.md +197 -0
  1498. package/templates/agents/cleo-subagent.md +147 -0
  1499. package/templates/archive.template.json +24 -0
  1500. package/templates/backups/archive/.gitkeep +0 -0
  1501. package/templates/backups/incremental/.gitkeep +0 -0
  1502. package/templates/backups/migration/.gitkeep +0 -0
  1503. package/templates/backups/safety/.gitkeep +0 -0
  1504. package/templates/backups/snapshot/.gitkeep +0 -0
  1505. package/templates/ci/circleci/config.yml +96 -0
  1506. package/templates/ci/github-actions/release.yml +91 -0
  1507. package/templates/ci/gitlab-ci/release.yml +61 -0
  1508. package/templates/cleo-gitignore +62 -0
  1509. package/templates/config.template.json +187 -0
  1510. package/templates/global-config.template.json +56 -0
  1511. package/templates/hooks/precompact-safestop.sh +89 -0
  1512. package/templates/log.template.json +13 -0
  1513. package/templates/migrations.template.json +8 -0
  1514. package/templates/orchestrator-protocol/PLACEHOLDER-REGISTRY.md +150 -0
  1515. package/templates/orchestrator-protocol/README.md +162 -0
  1516. package/templates/sessions.template.json +20 -0
  1517. package/templates/skillsmp.json.example +28 -0
  1518. package/templates/skillsmp.json.example.md +214 -0
  1519. package/templates/subagent-protocol/INJECT.md +32 -0
  1520. package/templates/subagent-protocol/MANIFEST.jsonl +0 -0
  1521. package/templates/subagent-protocol/README.md +76 -0
  1522. package/templates/subagent-protocol/SUBAGENT_PROTOCOL.md +135 -0
  1523. package/templates/subagent-protocol/install.sh +41 -0
  1524. package/templates/todo.template.json +68 -0
@@ -0,0 +1,1029 @@
1
+ /**
2
+ * Exit code mapping for CLEO CLI operations
3
+ *
4
+ * @task T2913
5
+ * @epic T2908
6
+ *
7
+ * SYNC: Source of truth is CLI at src/types/exit-codes.ts
8
+ * This file maintains MCP-specific metadata (ERROR_MAP, fix templates)
9
+ * but numeric values and semantics must stay aligned with CLI.
10
+ *
11
+ * Maps all CLEO exit codes (1-100+) to error metadata with automatic
12
+ * fix command generation and contextual suggestions.
13
+ */
14
+ /**
15
+ * Exit code enumeration (complete mapping 0-100+)
16
+ */
17
+ export var ExitCode;
18
+ (function (ExitCode) {
19
+ // Success (0)
20
+ ExitCode[ExitCode["SUCCESS"] = 0] = "SUCCESS";
21
+ // General Errors (1-9)
22
+ ExitCode[ExitCode["E_GENERAL_ERROR"] = 1] = "E_GENERAL_ERROR";
23
+ ExitCode[ExitCode["E_INVALID_INPUT"] = 2] = "E_INVALID_INPUT";
24
+ ExitCode[ExitCode["E_FILE_ERROR"] = 3] = "E_FILE_ERROR";
25
+ ExitCode[ExitCode["E_NOT_FOUND"] = 4] = "E_NOT_FOUND";
26
+ ExitCode[ExitCode["E_DEPENDENCY_ERROR"] = 5] = "E_DEPENDENCY_ERROR";
27
+ ExitCode[ExitCode["E_VALIDATION_ERROR"] = 6] = "E_VALIDATION_ERROR";
28
+ ExitCode[ExitCode["E_LOCK_TIMEOUT"] = 7] = "E_LOCK_TIMEOUT";
29
+ ExitCode[ExitCode["E_CONFIG_ERROR"] = 8] = "E_CONFIG_ERROR";
30
+ // Hierarchy Errors (10-19)
31
+ ExitCode[ExitCode["E_PARENT_NOT_FOUND"] = 10] = "E_PARENT_NOT_FOUND";
32
+ ExitCode[ExitCode["E_DEPTH_EXCEEDED"] = 11] = "E_DEPTH_EXCEEDED";
33
+ ExitCode[ExitCode["E_SIBLING_LIMIT"] = 12] = "E_SIBLING_LIMIT";
34
+ ExitCode[ExitCode["E_INVALID_PARENT_TYPE"] = 13] = "E_INVALID_PARENT_TYPE";
35
+ ExitCode[ExitCode["E_CIRCULAR_REFERENCE"] = 14] = "E_CIRCULAR_REFERENCE";
36
+ ExitCode[ExitCode["E_ORPHAN_DETECTED"] = 15] = "E_ORPHAN_DETECTED";
37
+ ExitCode[ExitCode["E_HAS_CHILDREN"] = 16] = "E_HAS_CHILDREN";
38
+ ExitCode[ExitCode["E_TASK_COMPLETED"] = 17] = "E_TASK_COMPLETED";
39
+ ExitCode[ExitCode["E_CASCADE_FAILED"] = 18] = "E_CASCADE_FAILED";
40
+ ExitCode[ExitCode["E_HAS_DEPENDENTS"] = 19] = "E_HAS_DEPENDENTS";
41
+ // Concurrency Errors (20-29)
42
+ ExitCode[ExitCode["E_CHECKSUM_MISMATCH"] = 20] = "E_CHECKSUM_MISMATCH";
43
+ ExitCode[ExitCode["E_CONCURRENT_MODIFICATION"] = 21] = "E_CONCURRENT_MODIFICATION";
44
+ ExitCode[ExitCode["E_ID_COLLISION"] = 22] = "E_ID_COLLISION";
45
+ // Session Errors (30-39)
46
+ ExitCode[ExitCode["E_SESSION_EXISTS"] = 30] = "E_SESSION_EXISTS";
47
+ ExitCode[ExitCode["E_SESSION_NOT_FOUND"] = 31] = "E_SESSION_NOT_FOUND";
48
+ ExitCode[ExitCode["E_SCOPE_CONFLICT"] = 32] = "E_SCOPE_CONFLICT";
49
+ ExitCode[ExitCode["E_SCOPE_INVALID"] = 33] = "E_SCOPE_INVALID";
50
+ ExitCode[ExitCode["E_TASK_NOT_IN_SCOPE"] = 34] = "E_TASK_NOT_IN_SCOPE";
51
+ ExitCode[ExitCode["E_TASK_CLAIMED"] = 35] = "E_TASK_CLAIMED";
52
+ ExitCode[ExitCode["E_SESSION_REQUIRED"] = 36] = "E_SESSION_REQUIRED";
53
+ ExitCode[ExitCode["E_SESSION_CLOSE_BLOCKED"] = 37] = "E_SESSION_CLOSE_BLOCKED";
54
+ ExitCode[ExitCode["E_FOCUS_REQUIRED"] = 38] = "E_FOCUS_REQUIRED";
55
+ ExitCode[ExitCode["E_NOTES_REQUIRED"] = 39] = "E_NOTES_REQUIRED";
56
+ // Verification Errors (40-49)
57
+ ExitCode[ExitCode["E_VERIFICATION_INIT_FAILED"] = 40] = "E_VERIFICATION_INIT_FAILED";
58
+ ExitCode[ExitCode["E_GATE_UPDATE_FAILED"] = 41] = "E_GATE_UPDATE_FAILED";
59
+ ExitCode[ExitCode["E_INVALID_GATE"] = 42] = "E_INVALID_GATE";
60
+ ExitCode[ExitCode["E_INVALID_AGENT"] = 43] = "E_INVALID_AGENT";
61
+ ExitCode[ExitCode["E_MAX_ROUNDS_EXCEEDED"] = 44] = "E_MAX_ROUNDS_EXCEEDED";
62
+ ExitCode[ExitCode["E_GATE_DEPENDENCY"] = 45] = "E_GATE_DEPENDENCY";
63
+ ExitCode[ExitCode["E_VERIFICATION_LOCKED"] = 46] = "E_VERIFICATION_LOCKED";
64
+ ExitCode[ExitCode["E_ROUND_MISMATCH"] = 47] = "E_ROUND_MISMATCH";
65
+ // Context Safeguard Errors (50-59)
66
+ ExitCode[ExitCode["E_CONTEXT_WARNING"] = 50] = "E_CONTEXT_WARNING";
67
+ ExitCode[ExitCode["E_CONTEXT_CAUTION"] = 51] = "E_CONTEXT_CAUTION";
68
+ ExitCode[ExitCode["E_CONTEXT_CRITICAL"] = 52] = "E_CONTEXT_CRITICAL";
69
+ ExitCode[ExitCode["E_CONTEXT_EMERGENCY"] = 53] = "E_CONTEXT_EMERGENCY";
70
+ ExitCode[ExitCode["E_CONTEXT_STALE"] = 54] = "E_CONTEXT_STALE";
71
+ // Protocol Violations (60-70)
72
+ ExitCode[ExitCode["E_PROTOCOL_RESEARCH"] = 60] = "E_PROTOCOL_RESEARCH";
73
+ ExitCode[ExitCode["E_PROTOCOL_CONSENSUS"] = 61] = "E_PROTOCOL_CONSENSUS";
74
+ ExitCode[ExitCode["E_PROTOCOL_SPECIFICATION"] = 62] = "E_PROTOCOL_SPECIFICATION";
75
+ ExitCode[ExitCode["E_PROTOCOL_DECOMPOSITION"] = 63] = "E_PROTOCOL_DECOMPOSITION";
76
+ ExitCode[ExitCode["E_PROTOCOL_IMPLEMENTATION"] = 64] = "E_PROTOCOL_IMPLEMENTATION";
77
+ ExitCode[ExitCode["E_PROTOCOL_CONTRIBUTION"] = 65] = "E_PROTOCOL_CONTRIBUTION";
78
+ ExitCode[ExitCode["E_PROTOCOL_RELEASE"] = 66] = "E_PROTOCOL_RELEASE";
79
+ ExitCode[ExitCode["E_PROTOCOL_GENERIC"] = 67] = "E_PROTOCOL_GENERIC";
80
+ ExitCode[ExitCode["E_PROTOCOL_VALIDATION"] = 68] = "E_PROTOCOL_VALIDATION";
81
+ ExitCode[ExitCode["E_TESTS_SKIPPED"] = 69] = "E_TESTS_SKIPPED";
82
+ ExitCode[ExitCode["E_COVERAGE_INSUFFICIENT"] = 70] = "E_COVERAGE_INSUFFICIENT";
83
+ // Nexus Errors (71-79)
84
+ ExitCode[ExitCode["E_NEXUS_NOT_INITIALIZED"] = 71] = "E_NEXUS_NOT_INITIALIZED";
85
+ ExitCode[ExitCode["E_NEXUS_PROJECT_NOT_FOUND"] = 72] = "E_NEXUS_PROJECT_NOT_FOUND";
86
+ ExitCode[ExitCode["E_NEXUS_PERMISSION_DENIED"] = 73] = "E_NEXUS_PERMISSION_DENIED";
87
+ ExitCode[ExitCode["E_NEXUS_INVALID_SYNTAX"] = 74] = "E_NEXUS_INVALID_SYNTAX";
88
+ ExitCode[ExitCode["E_NEXUS_SYNC_FAILED"] = 75] = "E_NEXUS_SYNC_FAILED";
89
+ ExitCode[ExitCode["E_NEXUS_REGISTRY_CORRUPT"] = 76] = "E_NEXUS_REGISTRY_CORRUPT";
90
+ ExitCode[ExitCode["E_NEXUS_PROJECT_EXISTS"] = 77] = "E_NEXUS_PROJECT_EXISTS";
91
+ ExitCode[ExitCode["E_NEXUS_QUERY_FAILED"] = 78] = "E_NEXUS_QUERY_FAILED";
92
+ ExitCode[ExitCode["E_NEXUS_GRAPH_ERROR"] = 79] = "E_NEXUS_GRAPH_ERROR";
93
+ // Lifecycle Enforcement Errors (80-84)
94
+ ExitCode[ExitCode["E_LIFECYCLE_GATE_FAILED"] = 80] = "E_LIFECYCLE_GATE_FAILED";
95
+ ExitCode[ExitCode["E_AUDIT_MISSING"] = 81] = "E_AUDIT_MISSING";
96
+ ExitCode[ExitCode["E_CIRCULAR_VALIDATION"] = 82] = "E_CIRCULAR_VALIDATION";
97
+ ExitCode[ExitCode["E_LIFECYCLE_TRANSITION_INVALID"] = 83] = "E_LIFECYCLE_TRANSITION_INVALID";
98
+ ExitCode[ExitCode["E_PROVENANCE_REQUIRED"] = 84] = "E_PROVENANCE_REQUIRED";
99
+ // Special Codes (100+)
100
+ ExitCode[ExitCode["E_NO_DATA"] = 100] = "E_NO_DATA";
101
+ ExitCode[ExitCode["E_ALREADY_EXISTS"] = 101] = "E_ALREADY_EXISTS";
102
+ ExitCode[ExitCode["E_NO_CHANGE"] = 102] = "E_NO_CHANGE";
103
+ })(ExitCode || (ExitCode = {}));
104
+ /**
105
+ * Error severity levels
106
+ */
107
+ export var ErrorSeverity;
108
+ (function (ErrorSeverity) {
109
+ ErrorSeverity["INFO"] = "info";
110
+ ErrorSeverity["WARNING"] = "warning";
111
+ ErrorSeverity["ERROR"] = "error";
112
+ ErrorSeverity["CRITICAL"] = "critical";
113
+ })(ErrorSeverity || (ErrorSeverity = {}));
114
+ /**
115
+ * Error category for grouping
116
+ */
117
+ export var ErrorCategory;
118
+ (function (ErrorCategory) {
119
+ ErrorCategory["GENERAL"] = "general";
120
+ ErrorCategory["HIERARCHY"] = "hierarchy";
121
+ ErrorCategory["CONCURRENCY"] = "concurrency";
122
+ ErrorCategory["SESSION"] = "session";
123
+ ErrorCategory["VERIFICATION"] = "verification";
124
+ ErrorCategory["CONTEXT"] = "context";
125
+ ErrorCategory["PROTOCOL"] = "protocol";
126
+ ErrorCategory["NEXUS"] = "nexus";
127
+ ErrorCategory["LIFECYCLE"] = "lifecycle";
128
+ ErrorCategory["SPECIAL"] = "special";
129
+ })(ErrorCategory || (ErrorCategory = {}));
130
+ /**
131
+ * Complete exit code to error mapping
132
+ */
133
+ export const ERROR_MAP = {
134
+ // Success
135
+ [ExitCode.SUCCESS]: {
136
+ code: 'SUCCESS',
137
+ name: 'Success',
138
+ description: 'Operation completed successfully',
139
+ category: ErrorCategory.SPECIAL,
140
+ severity: ErrorSeverity.INFO,
141
+ retryable: false,
142
+ },
143
+ // General Errors (1-9)
144
+ [ExitCode.E_GENERAL_ERROR]: {
145
+ code: 'E_GENERAL_ERROR',
146
+ name: 'General Error',
147
+ description: 'Unspecified error occurred',
148
+ category: ErrorCategory.GENERAL,
149
+ severity: ErrorSeverity.ERROR,
150
+ retryable: true,
151
+ fixTemplate: 'Check command syntax and parameters',
152
+ },
153
+ [ExitCode.E_INVALID_INPUT]: {
154
+ code: 'E_INVALID_INPUT',
155
+ name: 'Invalid Input',
156
+ description: 'Invalid user input or command-line arguments',
157
+ category: ErrorCategory.GENERAL,
158
+ severity: ErrorSeverity.ERROR,
159
+ retryable: false,
160
+ fixTemplate: 'Verify command parameters: {details}',
161
+ alternatives: [
162
+ { action: 'Show command help', command: 'cleo help {command}' },
163
+ ],
164
+ },
165
+ [ExitCode.E_FILE_ERROR]: {
166
+ code: 'E_FILE_ERROR',
167
+ name: 'File Error',
168
+ description: 'File system operation failed',
169
+ category: ErrorCategory.GENERAL,
170
+ severity: ErrorSeverity.ERROR,
171
+ retryable: false,
172
+ fixTemplate: 'Check file permissions and disk space',
173
+ },
174
+ [ExitCode.E_NOT_FOUND]: {
175
+ code: 'E_NOT_FOUND',
176
+ name: 'Not Found',
177
+ description: 'Requested resource not found',
178
+ category: ErrorCategory.GENERAL,
179
+ severity: ErrorSeverity.ERROR,
180
+ retryable: false,
181
+ fixTemplate: 'Verify resource exists: {resource}',
182
+ alternatives: [
183
+ { action: 'List available resources', command: 'cleo list' },
184
+ { action: 'Search for resource', command: 'cleo find "{query}"' },
185
+ ],
186
+ },
187
+ [ExitCode.E_DEPENDENCY_ERROR]: {
188
+ code: 'E_DEPENDENCY_ERROR',
189
+ name: 'Dependency Error',
190
+ description: 'Missing required dependency',
191
+ category: ErrorCategory.GENERAL,
192
+ severity: ErrorSeverity.CRITICAL,
193
+ retryable: false,
194
+ fixTemplate: 'Install required dependency: {dependency}',
195
+ },
196
+ [ExitCode.E_VALIDATION_ERROR]: {
197
+ code: 'E_VALIDATION_ERROR',
198
+ name: 'Validation Error',
199
+ description: 'Data validation failed',
200
+ category: ErrorCategory.GENERAL,
201
+ severity: ErrorSeverity.ERROR,
202
+ retryable: false,
203
+ fixTemplate: 'Fix validation errors: {violations}',
204
+ },
205
+ [ExitCode.E_LOCK_TIMEOUT]: {
206
+ code: 'E_LOCK_TIMEOUT',
207
+ name: 'Lock Timeout',
208
+ description: 'Failed to acquire file lock within timeout',
209
+ category: ErrorCategory.CONCURRENCY,
210
+ severity: ErrorSeverity.WARNING,
211
+ retryable: true,
212
+ fixTemplate: 'Wait for concurrent operation to complete, then retry',
213
+ },
214
+ [ExitCode.E_CONFIG_ERROR]: {
215
+ code: 'E_CONFIG_ERROR',
216
+ name: 'Configuration Error',
217
+ description: 'Configuration error',
218
+ category: ErrorCategory.GENERAL,
219
+ severity: ErrorSeverity.ERROR,
220
+ retryable: false,
221
+ fixTemplate: 'Check configuration file: .cleo/config.json',
222
+ alternatives: [
223
+ { action: 'Show config', command: 'cleo config show' },
224
+ { action: 'Validate config', command: 'cleo --validate' },
225
+ ],
226
+ },
227
+ // Hierarchy Errors (10-19)
228
+ [ExitCode.E_PARENT_NOT_FOUND]: {
229
+ code: 'E_PARENT_NOT_FOUND',
230
+ name: 'Parent Not Found',
231
+ description: 'Parent task does not exist',
232
+ category: ErrorCategory.HIERARCHY,
233
+ severity: ErrorSeverity.ERROR,
234
+ retryable: false,
235
+ fixTemplate: 'Create parent task first or remove --parent flag',
236
+ alternatives: [
237
+ { action: 'List tasks', command: 'cleo list' },
238
+ { action: 'Check task exists', command: 'cleo exists {parentId}' },
239
+ ],
240
+ },
241
+ [ExitCode.E_DEPTH_EXCEEDED]: {
242
+ code: 'E_DEPTH_EXCEEDED',
243
+ name: 'Depth Exceeded',
244
+ description: 'Maximum hierarchy depth (3) would be exceeded',
245
+ category: ErrorCategory.HIERARCHY,
246
+ severity: ErrorSeverity.ERROR,
247
+ retryable: false,
248
+ fixTemplate: 'Create task at higher level (max depth: epic→task→subtask)',
249
+ alternatives: [
250
+ { action: 'View hierarchy', command: 'cleo tree {parentId}' },
251
+ { action: 'Create as sibling', command: 'Remove --parent flag' },
252
+ ],
253
+ },
254
+ [ExitCode.E_SIBLING_LIMIT]: {
255
+ code: 'E_SIBLING_LIMIT',
256
+ name: 'Sibling Limit',
257
+ description: 'Maximum siblings (7) would be exceeded',
258
+ category: ErrorCategory.HIERARCHY,
259
+ severity: ErrorSeverity.ERROR,
260
+ retryable: false,
261
+ fixTemplate: 'Create new parent to group related tasks',
262
+ alternatives: [
263
+ { action: 'List siblings', command: 'cleo list --parent {parentId}' },
264
+ { action: 'Create new epic', command: 'cleo add "New Group" --parent {grandparentId}' },
265
+ ],
266
+ },
267
+ [ExitCode.E_INVALID_PARENT_TYPE]: {
268
+ code: 'E_INVALID_PARENT_TYPE',
269
+ name: 'Invalid Parent Type',
270
+ description: 'Subtask cannot have children',
271
+ category: ErrorCategory.HIERARCHY,
272
+ severity: ErrorSeverity.ERROR,
273
+ retryable: false,
274
+ fixTemplate: 'Promote subtask to task first: cleo promote {parentId}',
275
+ },
276
+ [ExitCode.E_CIRCULAR_REFERENCE]: {
277
+ code: 'E_CIRCULAR_REFERENCE',
278
+ name: 'Circular Reference',
279
+ description: 'Operation would create circular reference',
280
+ category: ErrorCategory.HIERARCHY,
281
+ severity: ErrorSeverity.ERROR,
282
+ retryable: false,
283
+ fixTemplate: 'Cannot create circular dependency: {cycle}',
284
+ alternatives: [
285
+ { action: 'View dependencies', command: 'cleo deps {taskId}' },
286
+ ],
287
+ },
288
+ [ExitCode.E_ORPHAN_DETECTED]: {
289
+ code: 'E_ORPHAN_DETECTED',
290
+ name: 'Orphan Detected',
291
+ description: 'Task has invalid parentId (orphan detected)',
292
+ category: ErrorCategory.HIERARCHY,
293
+ severity: ErrorSeverity.ERROR,
294
+ retryable: false,
295
+ fixTemplate: 'Remove parent reference or restore parent task',
296
+ alternatives: [
297
+ { action: 'Remove parent', command: 'cleo update {taskId} --no-parent' },
298
+ { action: 'Unarchive parent', command: 'cleo unarchive {parentId}' },
299
+ ],
300
+ },
301
+ [ExitCode.E_HAS_CHILDREN]: {
302
+ code: 'E_HAS_CHILDREN',
303
+ name: 'Has Children',
304
+ description: 'Task has children, cannot delete without strategy',
305
+ category: ErrorCategory.HIERARCHY,
306
+ severity: ErrorSeverity.ERROR,
307
+ retryable: false,
308
+ fixTemplate: 'Specify deletion strategy: --cascade, --reparent, or --orphan',
309
+ alternatives: [
310
+ { action: 'List children', command: 'cleo list --parent {taskId}' },
311
+ { action: 'Cascade delete', command: 'cleo delete {taskId} --cascade' },
312
+ { action: 'Reparent children', command: 'cleo delete {taskId} --reparent {newParentId}' },
313
+ ],
314
+ },
315
+ [ExitCode.E_TASK_COMPLETED]: {
316
+ code: 'E_TASK_COMPLETED',
317
+ name: 'Task Completed',
318
+ description: 'Task is completed, should use archive instead',
319
+ category: ErrorCategory.HIERARCHY,
320
+ severity: ErrorSeverity.WARNING,
321
+ retryable: false,
322
+ fixTemplate: 'Archive completed task: cleo archive {taskId}',
323
+ },
324
+ [ExitCode.E_CASCADE_FAILED]: {
325
+ code: 'E_CASCADE_FAILED',
326
+ name: 'Cascade Failed',
327
+ description: 'Cascade deletion partially failed',
328
+ category: ErrorCategory.HIERARCHY,
329
+ severity: ErrorSeverity.ERROR,
330
+ retryable: false,
331
+ fixTemplate: 'Some child tasks failed to delete: {failures}',
332
+ },
333
+ [ExitCode.E_HAS_DEPENDENTS]: {
334
+ code: 'E_HAS_DEPENDENTS',
335
+ name: 'Has Dependents',
336
+ description: 'Task has dependents, cannot delete without --orphan flag',
337
+ category: ErrorCategory.HIERARCHY,
338
+ severity: ErrorSeverity.ERROR,
339
+ retryable: false,
340
+ fixTemplate: 'Other tasks depend on this: cleo delete {taskId} --orphan',
341
+ alternatives: [
342
+ { action: 'List dependents', command: 'cleo deps {taskId} --reverse' },
343
+ { action: 'Force delete', command: 'cleo delete {taskId} --orphan' },
344
+ ],
345
+ },
346
+ // Concurrency Errors (20-29)
347
+ [ExitCode.E_CHECKSUM_MISMATCH]: {
348
+ code: 'E_CHECKSUM_MISMATCH',
349
+ name: 'Checksum Mismatch',
350
+ description: 'File was modified externally between read and write',
351
+ category: ErrorCategory.CONCURRENCY,
352
+ severity: ErrorSeverity.WARNING,
353
+ retryable: true,
354
+ fixTemplate: 'File modified by another process, retrying operation',
355
+ },
356
+ [ExitCode.E_CONCURRENT_MODIFICATION]: {
357
+ code: 'E_CONCURRENT_MODIFICATION',
358
+ name: 'Concurrent Modification',
359
+ description: 'Concurrent modification detected during multi-agent operation',
360
+ category: ErrorCategory.CONCURRENCY,
361
+ severity: ErrorSeverity.WARNING,
362
+ retryable: true,
363
+ fixTemplate: 'Wait for concurrent agent to complete, then retry',
364
+ },
365
+ [ExitCode.E_ID_COLLISION]: {
366
+ code: 'E_ID_COLLISION',
367
+ name: 'ID Collision',
368
+ description: 'ID generation collision',
369
+ category: ErrorCategory.CONCURRENCY,
370
+ severity: ErrorSeverity.WARNING,
371
+ retryable: true,
372
+ fixTemplate: 'ID collision detected, regenerating unique ID',
373
+ },
374
+ // Session Errors (30-39)
375
+ [ExitCode.E_SESSION_EXISTS]: {
376
+ code: 'E_SESSION_EXISTS',
377
+ name: 'Session Exists',
378
+ description: 'Session already active for this scope',
379
+ category: ErrorCategory.SESSION,
380
+ severity: ErrorSeverity.ERROR,
381
+ retryable: false,
382
+ fixTemplate: 'Resume existing session: cleo session resume {sessionId}',
383
+ alternatives: [
384
+ { action: 'List sessions', command: 'cleo session list' },
385
+ { action: 'Resume session', command: 'cleo session resume {sessionId}' },
386
+ ],
387
+ },
388
+ [ExitCode.E_SESSION_NOT_FOUND]: {
389
+ code: 'E_SESSION_NOT_FOUND',
390
+ name: 'Session Not Found',
391
+ description: 'Session ID not found',
392
+ category: ErrorCategory.SESSION,
393
+ severity: ErrorSeverity.ERROR,
394
+ retryable: false,
395
+ fixTemplate: 'Start new session: cleo session start --scope epic:{epicId}',
396
+ alternatives: [
397
+ { action: 'List sessions', command: 'cleo session list' },
398
+ { action: 'Start session', command: 'cleo session start --scope epic:{epicId}' },
399
+ ],
400
+ },
401
+ [ExitCode.E_SCOPE_CONFLICT]: {
402
+ code: 'E_SCOPE_CONFLICT',
403
+ name: 'Scope Conflict',
404
+ description: 'Session scope conflicts with existing session',
405
+ category: ErrorCategory.SESSION,
406
+ severity: ErrorSeverity.ERROR,
407
+ retryable: false,
408
+ fixTemplate: 'Another session is active for this epic',
409
+ alternatives: [
410
+ { action: 'List active sessions', command: 'cleo session list --active' },
411
+ { action: 'End conflicting session', command: 'cleo session end --session {conflictingId}' },
412
+ ],
413
+ },
414
+ [ExitCode.E_SCOPE_INVALID]: {
415
+ code: 'E_SCOPE_INVALID',
416
+ name: 'Scope Invalid',
417
+ description: 'Invalid session scope (no epic, empty, etc.)',
418
+ category: ErrorCategory.SESSION,
419
+ severity: ErrorSeverity.ERROR,
420
+ retryable: false,
421
+ fixTemplate: 'Specify valid epic scope: --scope epic:{epicId}',
422
+ alternatives: [
423
+ { action: 'List epics', command: 'cleo list --type epic' },
424
+ ],
425
+ },
426
+ [ExitCode.E_TASK_NOT_IN_SCOPE]: {
427
+ code: 'E_TASK_NOT_IN_SCOPE',
428
+ name: 'Task Not In Scope',
429
+ description: 'Task is not within session scope',
430
+ category: ErrorCategory.SESSION,
431
+ severity: ErrorSeverity.ERROR,
432
+ retryable: false,
433
+ fixTemplate: 'Task {taskId} is not in current session scope',
434
+ alternatives: [
435
+ { action: 'View session scope', command: 'cleo session status' },
436
+ { action: 'View task tree', command: 'cleo tree {taskId}' },
437
+ ],
438
+ },
439
+ [ExitCode.E_TASK_CLAIMED]: {
440
+ code: 'E_TASK_CLAIMED',
441
+ name: 'Task Claimed',
442
+ description: 'Task is already claimed by another agent',
443
+ category: ErrorCategory.SESSION,
444
+ severity: ErrorSeverity.ERROR,
445
+ retryable: false,
446
+ fixTemplate: 'Task claimed by another session: {claimingSession}',
447
+ alternatives: [
448
+ { action: 'List active sessions', command: 'cleo session list --active' },
449
+ { action: 'Choose different task', command: 'cleo next' },
450
+ ],
451
+ },
452
+ [ExitCode.E_SESSION_REQUIRED]: {
453
+ code: 'E_SESSION_REQUIRED',
454
+ name: 'Session Required',
455
+ description: 'Operation requires an active session',
456
+ category: ErrorCategory.SESSION,
457
+ severity: ErrorSeverity.ERROR,
458
+ retryable: false,
459
+ fixTemplate: 'Start session first: cleo session start --scope epic:{epicId} --auto-start',
460
+ alternatives: [
461
+ { action: 'Start session', command: 'cleo session start --scope epic:{epicId} --auto-start' },
462
+ { action: 'Resume session', command: 'cleo session resume {sessionId}' },
463
+ ],
464
+ },
465
+ [ExitCode.E_SESSION_CLOSE_BLOCKED]: {
466
+ code: 'E_SESSION_CLOSE_BLOCKED',
467
+ name: 'Session Close Blocked',
468
+ description: 'Cannot close session with incomplete tasks',
469
+ category: ErrorCategory.SESSION,
470
+ severity: ErrorSeverity.ERROR,
471
+ retryable: false,
472
+ fixTemplate: 'Complete pending tasks before closing session',
473
+ alternatives: [
474
+ { action: 'List pending tasks', command: 'cleo list --status pending --parent {epicId}' },
475
+ { action: 'Suspend session', command: 'cleo session suspend --note "Reason"' },
476
+ ],
477
+ },
478
+ [ExitCode.E_FOCUS_REQUIRED]: {
479
+ code: 'E_FOCUS_REQUIRED',
480
+ name: 'Focus Required',
481
+ description: 'Operation requires a focused task',
482
+ category: ErrorCategory.SESSION,
483
+ severity: ErrorSeverity.ERROR,
484
+ retryable: false,
485
+ fixTemplate: 'Set focus first: cleo focus set {taskId}',
486
+ alternatives: [
487
+ { action: 'Get next task', command: 'cleo next' },
488
+ { action: 'Set focus', command: 'cleo focus set {taskId}' },
489
+ ],
490
+ },
491
+ [ExitCode.E_NOTES_REQUIRED]: {
492
+ code: 'E_NOTES_REQUIRED',
493
+ name: 'Notes Required',
494
+ description: 'Session notes required for operation',
495
+ category: ErrorCategory.SESSION,
496
+ severity: ErrorSeverity.ERROR,
497
+ retryable: false,
498
+ fixTemplate: 'Add notes: --note "Session summary"',
499
+ },
500
+ // Verification Errors (40-49)
501
+ [ExitCode.E_VERIFICATION_INIT_FAILED]: {
502
+ code: 'E_VERIFICATION_INIT_FAILED',
503
+ name: 'Verification Init Failed',
504
+ description: 'Verification initialization failed',
505
+ category: ErrorCategory.VERIFICATION,
506
+ severity: ErrorSeverity.ERROR,
507
+ retryable: false,
508
+ fixTemplate: 'Cannot initialize verification object for task {taskId}',
509
+ },
510
+ [ExitCode.E_GATE_UPDATE_FAILED]: {
511
+ code: 'E_GATE_UPDATE_FAILED',
512
+ name: 'Gate Update Failed',
513
+ description: 'Gate update failed',
514
+ category: ErrorCategory.VERIFICATION,
515
+ severity: ErrorSeverity.ERROR,
516
+ retryable: false,
517
+ fixTemplate: 'Cannot update gate {gateName}: {reason}',
518
+ },
519
+ [ExitCode.E_INVALID_GATE]: {
520
+ code: 'E_INVALID_GATE',
521
+ name: 'Invalid Gate',
522
+ description: 'Invalid gate name',
523
+ category: ErrorCategory.VERIFICATION,
524
+ severity: ErrorSeverity.ERROR,
525
+ retryable: false,
526
+ fixTemplate: 'Unknown gate: {gateName}',
527
+ alternatives: [
528
+ { action: 'List valid gates', command: 'cleo gate list' },
529
+ ],
530
+ },
531
+ [ExitCode.E_INVALID_AGENT]: {
532
+ code: 'E_INVALID_AGENT',
533
+ name: 'Invalid Agent',
534
+ description: 'Invalid agent name',
535
+ category: ErrorCategory.VERIFICATION,
536
+ severity: ErrorSeverity.ERROR,
537
+ retryable: false,
538
+ fixTemplate: 'Unknown agent: {agentName}',
539
+ alternatives: [
540
+ { action: 'List valid agents', command: 'skill list' },
541
+ ],
542
+ },
543
+ [ExitCode.E_MAX_ROUNDS_EXCEEDED]: {
544
+ code: 'E_MAX_ROUNDS_EXCEEDED',
545
+ name: 'Max Rounds Exceeded',
546
+ description: 'Maximum implementation rounds exceeded',
547
+ category: ErrorCategory.VERIFICATION,
548
+ severity: ErrorSeverity.ERROR,
549
+ retryable: false,
550
+ fixTemplate: 'Exceeded max rounds ({maxRounds}), escalating to HITL',
551
+ },
552
+ [ExitCode.E_GATE_DEPENDENCY]: {
553
+ code: 'E_GATE_DEPENDENCY',
554
+ name: 'Gate Dependency',
555
+ description: 'Gate dependency not met',
556
+ category: ErrorCategory.VERIFICATION,
557
+ severity: ErrorSeverity.ERROR,
558
+ retryable: false,
559
+ fixTemplate: 'Complete prerequisite gate first: {prerequisiteGate}',
560
+ alternatives: [
561
+ { action: 'View gate status', command: 'cleo lifecycle gates {taskId}' },
562
+ ],
563
+ },
564
+ [ExitCode.E_VERIFICATION_LOCKED]: {
565
+ code: 'E_VERIFICATION_LOCKED',
566
+ name: 'Verification Locked',
567
+ description: 'Verification is locked (cannot modify)',
568
+ category: ErrorCategory.VERIFICATION,
569
+ severity: ErrorSeverity.ERROR,
570
+ retryable: false,
571
+ fixTemplate: 'Verification locked, cannot modify gates',
572
+ },
573
+ [ExitCode.E_ROUND_MISMATCH]: {
574
+ code: 'E_ROUND_MISMATCH',
575
+ name: 'Round Mismatch',
576
+ description: 'Round number mismatch',
577
+ category: ErrorCategory.VERIFICATION,
578
+ severity: ErrorSeverity.ERROR,
579
+ retryable: false,
580
+ fixTemplate: 'Round mismatch: expected {expectedRound}, got {actualRound}',
581
+ },
582
+ // Context Safeguard Errors (50-59)
583
+ [ExitCode.E_CONTEXT_WARNING]: {
584
+ code: 'E_CONTEXT_WARNING',
585
+ name: 'Context Warning',
586
+ description: 'Context warning threshold reached (70-84%)',
587
+ category: ErrorCategory.CONTEXT,
588
+ severity: ErrorSeverity.WARNING,
589
+ retryable: false,
590
+ fixTemplate: 'Context usage at {percentage}%, consider using cleo safestop',
591
+ alternatives: [
592
+ { action: 'Check context', command: 'cleo context' },
593
+ { action: 'Safe stop', command: 'cleo safestop' },
594
+ ],
595
+ },
596
+ [ExitCode.E_CONTEXT_CAUTION]: {
597
+ code: 'E_CONTEXT_CAUTION',
598
+ name: 'Context Caution',
599
+ description: 'Context caution threshold reached (85-89%)',
600
+ category: ErrorCategory.CONTEXT,
601
+ severity: ErrorSeverity.WARNING,
602
+ retryable: false,
603
+ fixTemplate: 'Context usage at {percentage}%, recommend using cleo safestop',
604
+ alternatives: [
605
+ { action: 'Check context', command: 'cleo context' },
606
+ { action: 'Safe stop', command: 'cleo safestop' },
607
+ ],
608
+ },
609
+ [ExitCode.E_CONTEXT_CRITICAL]: {
610
+ code: 'E_CONTEXT_CRITICAL',
611
+ name: 'Context Critical',
612
+ description: 'Context critical threshold reached (90-94%)',
613
+ category: ErrorCategory.CONTEXT,
614
+ severity: ErrorSeverity.CRITICAL,
615
+ retryable: false,
616
+ fixTemplate: 'Context usage at {percentage}%, MUST use cleo safestop now',
617
+ alternatives: [
618
+ { action: 'Safe stop', command: 'cleo safestop' },
619
+ ],
620
+ },
621
+ [ExitCode.E_CONTEXT_EMERGENCY]: {
622
+ code: 'E_CONTEXT_EMERGENCY',
623
+ name: 'Context Emergency',
624
+ description: 'Context emergency threshold reached (95%+)',
625
+ category: ErrorCategory.CONTEXT,
626
+ severity: ErrorSeverity.CRITICAL,
627
+ retryable: false,
628
+ fixTemplate: 'Context usage at {percentage}%, EMERGENCY - use cleo safestop immediately',
629
+ alternatives: [
630
+ { action: 'Safe stop', command: 'cleo safestop' },
631
+ ],
632
+ },
633
+ [ExitCode.E_CONTEXT_STALE]: {
634
+ code: 'E_CONTEXT_STALE',
635
+ name: 'Context Stale',
636
+ description: 'Context state file is stale or missing',
637
+ category: ErrorCategory.CONTEXT,
638
+ severity: ErrorSeverity.WARNING,
639
+ retryable: true,
640
+ fixTemplate: 'Context state file is stale, refresh with cleo context',
641
+ },
642
+ // Protocol Violations (60-70)
643
+ [ExitCode.E_PROTOCOL_RESEARCH]: {
644
+ code: 'E_PROTOCOL_RESEARCH',
645
+ name: 'Research Protocol Violation',
646
+ description: 'Research protocol requirements not met',
647
+ category: ErrorCategory.PROTOCOL,
648
+ severity: ErrorSeverity.ERROR,
649
+ retryable: true,
650
+ fixTemplate: 'Fix research protocol violations: {violations}',
651
+ documentation: 'protocols/research.md',
652
+ },
653
+ [ExitCode.E_PROTOCOL_CONSENSUS]: {
654
+ code: 'E_PROTOCOL_CONSENSUS',
655
+ name: 'Consensus Protocol Violation',
656
+ description: 'Consensus protocol requirements not met',
657
+ category: ErrorCategory.PROTOCOL,
658
+ severity: ErrorSeverity.ERROR,
659
+ retryable: true,
660
+ fixTemplate: 'Fix consensus protocol violations: {violations}',
661
+ documentation: 'protocols/consensus.md',
662
+ },
663
+ [ExitCode.E_PROTOCOL_SPECIFICATION]: {
664
+ code: 'E_PROTOCOL_SPECIFICATION',
665
+ name: 'Specification Protocol Violation',
666
+ description: 'Specification protocol requirements not met',
667
+ category: ErrorCategory.PROTOCOL,
668
+ severity: ErrorSeverity.ERROR,
669
+ retryable: true,
670
+ fixTemplate: 'Fix specification protocol violations: {violations}',
671
+ documentation: 'protocols/specification.md',
672
+ },
673
+ [ExitCode.E_PROTOCOL_DECOMPOSITION]: {
674
+ code: 'E_PROTOCOL_DECOMPOSITION',
675
+ name: 'Decomposition Protocol Violation',
676
+ description: 'Decomposition protocol requirements not met',
677
+ category: ErrorCategory.PROTOCOL,
678
+ severity: ErrorSeverity.ERROR,
679
+ retryable: true,
680
+ fixTemplate: 'Fix decomposition protocol violations: {violations}',
681
+ documentation: 'protocols/decomposition.md',
682
+ },
683
+ [ExitCode.E_PROTOCOL_IMPLEMENTATION]: {
684
+ code: 'E_PROTOCOL_IMPLEMENTATION',
685
+ name: 'Implementation Protocol Violation',
686
+ description: 'Implementation protocol requirements not met',
687
+ category: ErrorCategory.PROTOCOL,
688
+ severity: ErrorSeverity.ERROR,
689
+ retryable: false,
690
+ fixTemplate: 'Fix implementation protocol violations: {violations}',
691
+ documentation: 'protocols/implementation.md',
692
+ },
693
+ [ExitCode.E_PROTOCOL_CONTRIBUTION]: {
694
+ code: 'E_PROTOCOL_CONTRIBUTION',
695
+ name: 'Contribution Protocol Violation',
696
+ description: 'Contribution protocol requirements not met',
697
+ category: ErrorCategory.PROTOCOL,
698
+ severity: ErrorSeverity.ERROR,
699
+ retryable: false,
700
+ fixTemplate: 'Fix contribution protocol violations: {violations}',
701
+ documentation: 'protocols/contribution.md',
702
+ },
703
+ [ExitCode.E_PROTOCOL_RELEASE]: {
704
+ code: 'E_PROTOCOL_RELEASE',
705
+ name: 'Release Protocol Violation',
706
+ description: 'Release protocol requirements not met',
707
+ category: ErrorCategory.PROTOCOL,
708
+ severity: ErrorSeverity.ERROR,
709
+ retryable: false,
710
+ fixTemplate: 'Fix release protocol violations: {violations}',
711
+ documentation: 'protocols/release.md',
712
+ },
713
+ [ExitCode.E_PROTOCOL_GENERIC]: {
714
+ code: 'E_PROTOCOL_GENERIC',
715
+ name: 'Generic Protocol Violation',
716
+ description: 'Generic protocol violation or unknown protocol type',
717
+ category: ErrorCategory.PROTOCOL,
718
+ severity: ErrorSeverity.ERROR,
719
+ retryable: false,
720
+ fixTemplate: 'Fix protocol violations: {violations}',
721
+ },
722
+ [ExitCode.E_PROTOCOL_VALIDATION]: {
723
+ code: 'E_PROTOCOL_VALIDATION',
724
+ name: 'Validation Protocol Violation',
725
+ description: 'Validation protocol requirements not met',
726
+ category: ErrorCategory.PROTOCOL,
727
+ severity: ErrorSeverity.ERROR,
728
+ retryable: false,
729
+ fixTemplate: 'Fix validation protocol violations: {violations}',
730
+ documentation: 'protocols/validation.md',
731
+ },
732
+ [ExitCode.E_TESTS_SKIPPED]: {
733
+ code: 'E_TESTS_SKIPPED',
734
+ name: 'Tests Skipped',
735
+ description: 'Tests not run or incomplete',
736
+ category: ErrorCategory.PROTOCOL,
737
+ severity: ErrorSeverity.ERROR,
738
+ retryable: false,
739
+ fixTemplate: 'Run complete test suite: cleo test run',
740
+ alternatives: [
741
+ { action: 'Run tests', command: 'cleo test run' },
742
+ { action: 'Check test status', command: 'cleo test status' },
743
+ ],
744
+ },
745
+ [ExitCode.E_COVERAGE_INSUFFICIENT]: {
746
+ code: 'E_COVERAGE_INSUFFICIENT',
747
+ name: 'Coverage Insufficient',
748
+ description: 'Test coverage below threshold',
749
+ category: ErrorCategory.PROTOCOL,
750
+ severity: ErrorSeverity.ERROR,
751
+ retryable: false,
752
+ fixTemplate: 'Increase test coverage to meet threshold',
753
+ alternatives: [
754
+ { action: 'View coverage', command: 'cleo test coverage' },
755
+ ],
756
+ },
757
+ // Nexus Errors (71-79)
758
+ [ExitCode.E_NEXUS_NOT_INITIALIZED]: {
759
+ code: 'E_NEXUS_NOT_INITIALIZED',
760
+ name: 'Nexus Not Initialized',
761
+ description: 'Nexus not initialized',
762
+ category: ErrorCategory.NEXUS,
763
+ severity: ErrorSeverity.ERROR,
764
+ retryable: false,
765
+ fixTemplate: 'Initialize Nexus: cleo nexus init',
766
+ },
767
+ [ExitCode.E_NEXUS_PROJECT_NOT_FOUND]: {
768
+ code: 'E_NEXUS_PROJECT_NOT_FOUND',
769
+ name: 'Nexus Project Not Found',
770
+ description: 'Project not found in global registry',
771
+ category: ErrorCategory.NEXUS,
772
+ severity: ErrorSeverity.ERROR,
773
+ retryable: false,
774
+ fixTemplate: 'Register project: cleo nexus register {projectPath}',
775
+ },
776
+ [ExitCode.E_NEXUS_PERMISSION_DENIED]: {
777
+ code: 'E_NEXUS_PERMISSION_DENIED',
778
+ name: 'Nexus Permission Denied',
779
+ description: 'Insufficient permission for cross-project operation',
780
+ category: ErrorCategory.NEXUS,
781
+ severity: ErrorSeverity.ERROR,
782
+ retryable: false,
783
+ fixTemplate: 'Check Nexus permissions for project {projectName}',
784
+ },
785
+ [ExitCode.E_NEXUS_INVALID_SYNTAX]: {
786
+ code: 'E_NEXUS_INVALID_SYNTAX',
787
+ name: 'Nexus Invalid Syntax',
788
+ description: 'Invalid task reference syntax',
789
+ category: ErrorCategory.NEXUS,
790
+ severity: ErrorSeverity.ERROR,
791
+ retryable: false,
792
+ fixTemplate: 'Use format: project:task_id (e.g., "myproject:T123")',
793
+ },
794
+ [ExitCode.E_NEXUS_SYNC_FAILED]: {
795
+ code: 'E_NEXUS_SYNC_FAILED',
796
+ name: 'Nexus Sync Failed',
797
+ description: 'Failed to sync project metadata',
798
+ category: ErrorCategory.NEXUS,
799
+ severity: ErrorSeverity.ERROR,
800
+ retryable: true,
801
+ fixTemplate: 'Retry Nexus sync: cleo nexus sync',
802
+ },
803
+ [ExitCode.E_NEXUS_REGISTRY_CORRUPT]: {
804
+ code: 'E_NEXUS_REGISTRY_CORRUPT',
805
+ name: 'Nexus Registry Corrupt',
806
+ description: 'Nexus registry file corrupted or invalid',
807
+ category: ErrorCategory.NEXUS,
808
+ severity: ErrorSeverity.CRITICAL,
809
+ retryable: false,
810
+ fixTemplate: 'Restore from backup: cleo nexus restore',
811
+ },
812
+ [ExitCode.E_NEXUS_PROJECT_EXISTS]: {
813
+ code: 'E_NEXUS_PROJECT_EXISTS',
814
+ name: 'Nexus Project Exists',
815
+ description: 'Project already registered in Nexus',
816
+ category: ErrorCategory.NEXUS,
817
+ severity: ErrorSeverity.ERROR,
818
+ retryable: false,
819
+ fixTemplate: 'Project already registered: {projectName}',
820
+ },
821
+ [ExitCode.E_NEXUS_QUERY_FAILED]: {
822
+ code: 'E_NEXUS_QUERY_FAILED',
823
+ name: 'Nexus Query Failed',
824
+ description: 'Cross-project query operation failed',
825
+ category: ErrorCategory.NEXUS,
826
+ severity: ErrorSeverity.ERROR,
827
+ retryable: true,
828
+ fixTemplate: 'Retry query: {query}',
829
+ },
830
+ [ExitCode.E_NEXUS_GRAPH_ERROR]: {
831
+ code: 'E_NEXUS_GRAPH_ERROR',
832
+ name: 'Nexus Graph Error',
833
+ description: 'Graph operation error',
834
+ category: ErrorCategory.NEXUS,
835
+ severity: ErrorSeverity.ERROR,
836
+ retryable: true,
837
+ fixTemplate: 'Rebuild Nexus graph: cleo nexus rebuild',
838
+ },
839
+ // Lifecycle Enforcement Errors (80-84)
840
+ [ExitCode.E_LIFECYCLE_GATE_FAILED]: {
841
+ code: 'E_LIFECYCLE_GATE_FAILED',
842
+ name: 'Lifecycle Gate Failed',
843
+ description: 'Lifecycle gate requirements not met',
844
+ category: ErrorCategory.LIFECYCLE,
845
+ severity: ErrorSeverity.ERROR,
846
+ retryable: false,
847
+ fixTemplate: 'Complete prerequisite stages: {missingStages}',
848
+ alternatives: [
849
+ { action: 'Check lifecycle status', command: 'cleo lifecycle status {taskId}' },
850
+ { action: 'View prerequisites', command: 'cleo lifecycle prerequisites {stage}' },
851
+ ],
852
+ },
853
+ [ExitCode.E_AUDIT_MISSING]: {
854
+ code: 'E_AUDIT_MISSING',
855
+ name: 'Audit Missing',
856
+ description: 'Audit object missing or incomplete',
857
+ category: ErrorCategory.LIFECYCLE,
858
+ severity: ErrorSeverity.ERROR,
859
+ retryable: false,
860
+ fixTemplate: 'Add required audit fields: {missingFields}',
861
+ },
862
+ [ExitCode.E_CIRCULAR_VALIDATION]: {
863
+ code: 'E_CIRCULAR_VALIDATION',
864
+ name: 'Circular Validation',
865
+ description: 'Circular validation detected (agent validating own work)',
866
+ category: ErrorCategory.LIFECYCLE,
867
+ severity: ErrorSeverity.ERROR,
868
+ retryable: false,
869
+ fixTemplate: 'Use different agent for validation (not {creatingAgent})',
870
+ },
871
+ [ExitCode.E_LIFECYCLE_TRANSITION_INVALID]: {
872
+ code: 'E_LIFECYCLE_TRANSITION_INVALID',
873
+ name: 'Invalid Lifecycle Transition',
874
+ description: 'Invalid lifecycle state transition',
875
+ category: ErrorCategory.LIFECYCLE,
876
+ severity: ErrorSeverity.ERROR,
877
+ retryable: false,
878
+ fixTemplate: 'Cannot transition from {fromStage} to {toStage}',
879
+ },
880
+ [ExitCode.E_PROVENANCE_REQUIRED]: {
881
+ code: 'E_PROVENANCE_REQUIRED',
882
+ name: 'Provenance Required',
883
+ description: 'Provenance fields required but missing',
884
+ category: ErrorCategory.LIFECYCLE,
885
+ severity: ErrorSeverity.ERROR,
886
+ retryable: false,
887
+ fixTemplate: 'Add provenance tags: @task {taskId} to all new code',
888
+ },
889
+ // Special Codes (100+)
890
+ [ExitCode.E_NO_DATA]: {
891
+ code: 'E_NO_DATA',
892
+ name: 'No Data',
893
+ description: 'No data to process (query returned empty)',
894
+ category: ErrorCategory.SPECIAL,
895
+ severity: ErrorSeverity.INFO,
896
+ retryable: false,
897
+ fixTemplate: 'No results found for query: {query}',
898
+ },
899
+ [ExitCode.E_ALREADY_EXISTS]: {
900
+ code: 'E_ALREADY_EXISTS',
901
+ name: 'Already Exists',
902
+ description: 'Resource already exists (not an error)',
903
+ category: ErrorCategory.SPECIAL,
904
+ severity: ErrorSeverity.INFO,
905
+ retryable: false,
906
+ fixTemplate: 'Resource already exists: {resource}',
907
+ },
908
+ [ExitCode.E_NO_CHANGE]: {
909
+ code: 'E_NO_CHANGE',
910
+ name: 'No Change',
911
+ description: 'No changes needed or made (idempotent operation)',
912
+ category: ErrorCategory.SPECIAL,
913
+ severity: ErrorSeverity.INFO,
914
+ retryable: false,
915
+ fixTemplate: 'No changes made (already in target state)',
916
+ },
917
+ };
918
+ /**
919
+ * Get error mapping for exit code
920
+ */
921
+ export function getErrorMapping(exitCode) {
922
+ return ERROR_MAP[exitCode] || {
923
+ code: 'E_UNKNOWN',
924
+ name: 'Unknown Error',
925
+ description: `Unknown exit code: ${exitCode}`,
926
+ category: ErrorCategory.GENERAL,
927
+ severity: ErrorSeverity.ERROR,
928
+ retryable: false,
929
+ };
930
+ }
931
+ /**
932
+ * Check if exit code represents an error
933
+ */
934
+ export function isError(exitCode) {
935
+ return exitCode >= 1 && exitCode < 100;
936
+ }
937
+ /**
938
+ * Check if exit code is retryable
939
+ */
940
+ export function isRetryable(exitCode) {
941
+ const mapping = getErrorMapping(exitCode);
942
+ return mapping.retryable;
943
+ }
944
+ /**
945
+ * Check if exit code represents success
946
+ */
947
+ export function isSuccess(exitCode) {
948
+ return exitCode === 0 || exitCode >= 100;
949
+ }
950
+ /**
951
+ * Generate fix command from template
952
+ */
953
+ export function generateFixCommand(exitCode, context) {
954
+ const mapping = getErrorMapping(exitCode);
955
+ if (!mapping.fixTemplate) {
956
+ return undefined;
957
+ }
958
+ let fix = mapping.fixTemplate;
959
+ for (const [key, value] of Object.entries(context)) {
960
+ fix = fix.replace(`{${key}}`, value);
961
+ }
962
+ return fix;
963
+ }
964
+ /**
965
+ * Generate suggestions from alternatives
966
+ */
967
+ export function generateSuggestions(exitCode, context) {
968
+ const mapping = getErrorMapping(exitCode);
969
+ if (!mapping.alternatives) {
970
+ return [];
971
+ }
972
+ return mapping.alternatives.map((alt) => {
973
+ let command = alt.command;
974
+ for (const [key, value] of Object.entries(context)) {
975
+ command = command.replace(`{${key}}`, value);
976
+ }
977
+ return {
978
+ action: alt.action,
979
+ command,
980
+ };
981
+ });
982
+ }
983
+ /**
984
+ * Exit codes that support automatic retry with exponential backoff.
985
+ * Per MCP-SERVER-SPECIFICATION Section 9.1.
986
+ *
987
+ * @task T3142
988
+ */
989
+ export const RETRYABLE_EXIT_CODES = new Set([
990
+ ExitCode.E_LOCK_TIMEOUT, // 7
991
+ ExitCode.E_CHECKSUM_MISMATCH, // 20
992
+ ExitCode.E_CONCURRENT_MODIFICATION, // 21
993
+ ExitCode.E_ID_COLLISION, // 22
994
+ ExitCode.E_PROTOCOL_RESEARCH, // 60
995
+ ExitCode.E_PROTOCOL_CONSENSUS, // 61
996
+ ExitCode.E_PROTOCOL_SPECIFICATION, // 62
997
+ ExitCode.E_PROTOCOL_DECOMPOSITION, // 63
998
+ ]);
999
+ /**
1000
+ * Exit codes that require human intervention and must NEVER be retried.
1001
+ * Per MCP-SERVER-SPECIFICATION Section 9.2.
1002
+ *
1003
+ * @task T3142
1004
+ */
1005
+ export const NON_RECOVERABLE_EXIT_CODES = new Set([
1006
+ ExitCode.E_LIFECYCLE_GATE_FAILED, // 80
1007
+ ExitCode.E_CIRCULAR_VALIDATION, // 82
1008
+ ExitCode.E_LIFECYCLE_TRANSITION_INVALID, // 83
1009
+ ExitCode.E_PROVENANCE_REQUIRED, // 84
1010
+ ]);
1011
+ /**
1012
+ * Check if an exit code represents a non-recoverable error
1013
+ * requiring human intervention. These must NEVER be retried.
1014
+ *
1015
+ * @task T3142
1016
+ */
1017
+ export function isNonRecoverable(exitCode) {
1018
+ return NON_RECOVERABLE_EXIT_CODES.has(exitCode);
1019
+ }
1020
+ /**
1021
+ * Check if an exit code represents a recoverable error
1022
+ * @param exitCode The exit code to check
1023
+ * @returns true if the error is retryable
1024
+ */
1025
+ export function isRecoverable(exitCode) {
1026
+ // Retry codes: 7 (lock timeout), 20-22 (concurrency), 60-63 (protocol)
1027
+ return RETRYABLE_EXIT_CODES.has(exitCode);
1028
+ }
1029
+ //# sourceMappingURL=exit-codes.js.map