@cleocode/cleo 2026.3.37 → 2026.3.39

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 (724) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +565 -0
  3. package/bin/postinstall.js +0 -0
  4. package/completions/bash-completion.sh +0 -0
  5. package/completions/zsh-completion.zsh +0 -0
  6. package/dist/cli/index.js +3507 -3631
  7. package/dist/cli/index.js.map +4 -4
  8. package/dist/mcp/index.js +3311 -3215
  9. package/dist/mcp/index.js.map +4 -4
  10. package/migrations/drizzle-brain/20260318205549_initial/migration.sql +0 -0
  11. package/migrations/drizzle-brain/20260318205549_initial/snapshot.json +0 -0
  12. package/migrations/drizzle-nexus/20260318205558_initial/migration.sql +0 -0
  13. package/migrations/drizzle-nexus/20260318205558_initial/snapshot.json +0 -0
  14. package/migrations/drizzle-tasks/20260318205539_initial/migration.sql +0 -0
  15. package/migrations/drizzle-tasks/20260318205539_initial/snapshot.json +0 -0
  16. package/package.json +17 -12
  17. package/dist/cli/commander-shim.d.ts +0 -108
  18. package/dist/cli/commander-shim.d.ts.map +0 -1
  19. package/dist/cli/commander-shim.js +0 -229
  20. package/dist/cli/commander-shim.js.map +0 -1
  21. package/dist/cli/commands/add.d.ts +0 -12
  22. package/dist/cli/commands/add.d.ts.map +0 -1
  23. package/dist/cli/commands/add.js +0 -91
  24. package/dist/cli/commands/add.js.map +0 -1
  25. package/dist/cli/commands/adr.d.ts +0 -27
  26. package/dist/cli/commands/adr.d.ts.map +0 -1
  27. package/dist/cli/commands/adr.js +0 -79
  28. package/dist/cli/commands/adr.js.map +0 -1
  29. package/dist/cli/commands/analyze.d.ts +0 -12
  30. package/dist/cli/commands/analyze.d.ts.map +0 -1
  31. package/dist/cli/commands/analyze.js +0 -20
  32. package/dist/cli/commands/analyze.js.map +0 -1
  33. package/dist/cli/commands/archive-stats.d.ts +0 -18
  34. package/dist/cli/commands/archive-stats.d.ts.map +0 -1
  35. package/dist/cli/commands/archive-stats.js +0 -49
  36. package/dist/cli/commands/archive-stats.js.map +0 -1
  37. package/dist/cli/commands/archive.d.ts +0 -12
  38. package/dist/cli/commands/archive.d.ts.map +0 -1
  39. package/dist/cli/commands/archive.js +0 -32
  40. package/dist/cli/commands/archive.js.map +0 -1
  41. package/dist/cli/commands/backup.d.ts +0 -8
  42. package/dist/cli/commands/backup.d.ts.map +0 -1
  43. package/dist/cli/commands/backup.js +0 -35
  44. package/dist/cli/commands/backup.js.map +0 -1
  45. package/dist/cli/commands/blockers.d.ts +0 -7
  46. package/dist/cli/commands/blockers.d.ts.map +0 -1
  47. package/dist/cli/commands/blockers.js +0 -16
  48. package/dist/cli/commands/blockers.js.map +0 -1
  49. package/dist/cli/commands/briefing.d.ts +0 -22
  50. package/dist/cli/commands/briefing.d.ts.map +0 -1
  51. package/dist/cli/commands/briefing.js +0 -45
  52. package/dist/cli/commands/briefing.js.map +0 -1
  53. package/dist/cli/commands/bug.d.ts +0 -12
  54. package/dist/cli/commands/bug.d.ts.map +0 -1
  55. package/dist/cli/commands/bug.js +0 -81
  56. package/dist/cli/commands/bug.js.map +0 -1
  57. package/dist/cli/commands/checkpoint.d.ts +0 -15
  58. package/dist/cli/commands/checkpoint.d.ts.map +0 -1
  59. package/dist/cli/commands/checkpoint.js +0 -92
  60. package/dist/cli/commands/checkpoint.js.map +0 -1
  61. package/dist/cli/commands/commands.d.ts +0 -13
  62. package/dist/cli/commands/commands.d.ts.map +0 -1
  63. package/dist/cli/commands/commands.js +0 -30
  64. package/dist/cli/commands/commands.js.map +0 -1
  65. package/dist/cli/commands/complete.d.ts +0 -12
  66. package/dist/cli/commands/complete.d.ts.map +0 -1
  67. package/dist/cli/commands/complete.js +0 -43
  68. package/dist/cli/commands/complete.js.map +0 -1
  69. package/dist/cli/commands/compliance.d.ts +0 -8
  70. package/dist/cli/commands/compliance.d.ts.map +0 -1
  71. package/dist/cli/commands/compliance.js +0 -85
  72. package/dist/cli/commands/compliance.js.map +0 -1
  73. package/dist/cli/commands/config.d.ts +0 -9
  74. package/dist/cli/commands/config.d.ts.map +0 -1
  75. package/dist/cli/commands/config.js +0 -43
  76. package/dist/cli/commands/config.js.map +0 -1
  77. package/dist/cli/commands/consensus.d.ts +0 -13
  78. package/dist/cli/commands/consensus.d.ts.map +0 -1
  79. package/dist/cli/commands/consensus.js +0 -45
  80. package/dist/cli/commands/consensus.js.map +0 -1
  81. package/dist/cli/commands/context.d.ts +0 -8
  82. package/dist/cli/commands/context.d.ts.map +0 -1
  83. package/dist/cli/commands/context.js +0 -40
  84. package/dist/cli/commands/context.js.map +0 -1
  85. package/dist/cli/commands/contribution.d.ts +0 -13
  86. package/dist/cli/commands/contribution.d.ts.map +0 -1
  87. package/dist/cli/commands/contribution.js +0 -41
  88. package/dist/cli/commands/contribution.js.map +0 -1
  89. package/dist/cli/commands/current.d.ts +0 -13
  90. package/dist/cli/commands/current.d.ts.map +0 -1
  91. package/dist/cli/commands/current.js +0 -20
  92. package/dist/cli/commands/current.js.map +0 -1
  93. package/dist/cli/commands/dash.d.ts +0 -12
  94. package/dist/cli/commands/dash.d.ts.map +0 -1
  95. package/dist/cli/commands/dash.js +0 -24
  96. package/dist/cli/commands/dash.js.map +0 -1
  97. package/dist/cli/commands/decomposition.d.ts +0 -13
  98. package/dist/cli/commands/decomposition.d.ts.map +0 -1
  99. package/dist/cli/commands/decomposition.js +0 -45
  100. package/dist/cli/commands/decomposition.js.map +0 -1
  101. package/dist/cli/commands/delete.d.ts +0 -12
  102. package/dist/cli/commands/delete.d.ts.map +0 -1
  103. package/dist/cli/commands/delete.js +0 -37
  104. package/dist/cli/commands/delete.js.map +0 -1
  105. package/dist/cli/commands/deps.d.ts +0 -9
  106. package/dist/cli/commands/deps.d.ts.map +0 -1
  107. package/dist/cli/commands/deps.js +0 -73
  108. package/dist/cli/commands/deps.js.map +0 -1
  109. package/dist/cli/commands/detect-drift.d.ts +0 -15
  110. package/dist/cli/commands/detect-drift.d.ts.map +0 -1
  111. package/dist/cli/commands/detect-drift.js +0 -385
  112. package/dist/cli/commands/detect-drift.js.map +0 -1
  113. package/dist/cli/commands/docs.d.ts +0 -13
  114. package/dist/cli/commands/docs.d.ts.map +0 -1
  115. package/dist/cli/commands/docs.js +0 -170
  116. package/dist/cli/commands/docs.js.map +0 -1
  117. package/dist/cli/commands/doctor.d.ts +0 -11
  118. package/dist/cli/commands/doctor.d.ts.map +0 -1
  119. package/dist/cli/commands/doctor.js +0 -54
  120. package/dist/cli/commands/doctor.js.map +0 -1
  121. package/dist/cli/commands/dynamic.d.ts +0 -24
  122. package/dist/cli/commands/dynamic.d.ts.map +0 -1
  123. package/dist/cli/commands/dynamic.js +0 -27
  124. package/dist/cli/commands/dynamic.js.map +0 -1
  125. package/dist/cli/commands/env.d.ts +0 -12
  126. package/dist/cli/commands/env.d.ts.map +0 -1
  127. package/dist/cli/commands/env.js +0 -44
  128. package/dist/cli/commands/env.js.map +0 -1
  129. package/dist/cli/commands/exists.d.ts +0 -7
  130. package/dist/cli/commands/exists.d.ts.map +0 -1
  131. package/dist/cli/commands/exists.js +0 -33
  132. package/dist/cli/commands/exists.js.map +0 -1
  133. package/dist/cli/commands/export-tasks.d.ts +0 -10
  134. package/dist/cli/commands/export-tasks.d.ts.map +0 -1
  135. package/dist/cli/commands/export-tasks.js +0 -47
  136. package/dist/cli/commands/export-tasks.js.map +0 -1
  137. package/dist/cli/commands/export.d.ts +0 -9
  138. package/dist/cli/commands/export.d.ts.map +0 -1
  139. package/dist/cli/commands/export.js +0 -46
  140. package/dist/cli/commands/export.js.map +0 -1
  141. package/dist/cli/commands/extract.d.ts +0 -16
  142. package/dist/cli/commands/extract.d.ts.map +0 -1
  143. package/dist/cli/commands/extract.js +0 -43
  144. package/dist/cli/commands/extract.js.map +0 -1
  145. package/dist/cli/commands/find.d.ts +0 -14
  146. package/dist/cli/commands/find.d.ts.map +0 -1
  147. package/dist/cli/commands/find.js +0 -70
  148. package/dist/cli/commands/find.js.map +0 -1
  149. package/dist/cli/commands/generate-changelog.d.ts +0 -14
  150. package/dist/cli/commands/generate-changelog.d.ts.map +0 -1
  151. package/dist/cli/commands/generate-changelog.js +0 -252
  152. package/dist/cli/commands/generate-changelog.js.map +0 -1
  153. package/dist/cli/commands/grade.d.ts +0 -13
  154. package/dist/cli/commands/grade.d.ts.map +0 -1
  155. package/dist/cli/commands/grade.js +0 -16
  156. package/dist/cli/commands/grade.js.map +0 -1
  157. package/dist/cli/commands/history.d.ts +0 -9
  158. package/dist/cli/commands/history.d.ts.map +0 -1
  159. package/dist/cli/commands/history.js +0 -30
  160. package/dist/cli/commands/history.js.map +0 -1
  161. package/dist/cli/commands/implementation.d.ts +0 -13
  162. package/dist/cli/commands/implementation.d.ts.map +0 -1
  163. package/dist/cli/commands/implementation.js +0 -41
  164. package/dist/cli/commands/implementation.js.map +0 -1
  165. package/dist/cli/commands/import-tasks.d.ts +0 -10
  166. package/dist/cli/commands/import-tasks.d.ts.map +0 -1
  167. package/dist/cli/commands/import-tasks.js +0 -38
  168. package/dist/cli/commands/import-tasks.js.map +0 -1
  169. package/dist/cli/commands/import.d.ts +0 -9
  170. package/dist/cli/commands/import.d.ts.map +0 -1
  171. package/dist/cli/commands/import.js +0 -28
  172. package/dist/cli/commands/import.js.map +0 -1
  173. package/dist/cli/commands/init.d.ts +0 -34
  174. package/dist/cli/commands/init.d.ts.map +0 -1
  175. package/dist/cli/commands/init.js +0 -94
  176. package/dist/cli/commands/init.js.map +0 -1
  177. package/dist/cli/commands/inject.d.ts +0 -8
  178. package/dist/cli/commands/inject.d.ts.map +0 -1
  179. package/dist/cli/commands/inject.js +0 -28
  180. package/dist/cli/commands/inject.js.map +0 -1
  181. package/dist/cli/commands/install-global.d.ts +0 -19
  182. package/dist/cli/commands/install-global.d.ts.map +0 -1
  183. package/dist/cli/commands/install-global.js +0 -54
  184. package/dist/cli/commands/install-global.js.map +0 -1
  185. package/dist/cli/commands/issue.d.ts +0 -14
  186. package/dist/cli/commands/issue.d.ts.map +0 -1
  187. package/dist/cli/commands/issue.js +0 -105
  188. package/dist/cli/commands/issue.js.map +0 -1
  189. package/dist/cli/commands/labels.d.ts +0 -13
  190. package/dist/cli/commands/labels.d.ts.map +0 -1
  191. package/dist/cli/commands/labels.js +0 -44
  192. package/dist/cli/commands/labels.js.map +0 -1
  193. package/dist/cli/commands/lifecycle.d.ts +0 -8
  194. package/dist/cli/commands/lifecycle.d.ts.map +0 -1
  195. package/dist/cli/commands/lifecycle.js +0 -72
  196. package/dist/cli/commands/lifecycle.js.map +0 -1
  197. package/dist/cli/commands/list.d.ts +0 -14
  198. package/dist/cli/commands/list.d.ts.map +0 -1
  199. package/dist/cli/commands/list.js +0 -71
  200. package/dist/cli/commands/list.js.map +0 -1
  201. package/dist/cli/commands/log.d.ts +0 -12
  202. package/dist/cli/commands/log.d.ts.map +0 -1
  203. package/dist/cli/commands/log.js +0 -30
  204. package/dist/cli/commands/log.js.map +0 -1
  205. package/dist/cli/commands/map.d.ts +0 -10
  206. package/dist/cli/commands/map.d.ts.map +0 -1
  207. package/dist/cli/commands/map.js +0 -23
  208. package/dist/cli/commands/map.js.map +0 -1
  209. package/dist/cli/commands/mcp-install.d.ts +0 -17
  210. package/dist/cli/commands/mcp-install.d.ts.map +0 -1
  211. package/dist/cli/commands/mcp-install.js +0 -128
  212. package/dist/cli/commands/mcp-install.js.map +0 -1
  213. package/dist/cli/commands/memory-brain.d.ts +0 -14
  214. package/dist/cli/commands/memory-brain.d.ts.map +0 -1
  215. package/dist/cli/commands/memory-brain.js +0 -151
  216. package/dist/cli/commands/memory-brain.js.map +0 -1
  217. package/dist/cli/commands/migrate-claude-mem.d.ts +0 -18
  218. package/dist/cli/commands/migrate-claude-mem.d.ts.map +0 -1
  219. package/dist/cli/commands/migrate-claude-mem.js +0 -60
  220. package/dist/cli/commands/migrate-claude-mem.js.map +0 -1
  221. package/dist/cli/commands/next.d.ts +0 -9
  222. package/dist/cli/commands/next.d.ts.map +0 -1
  223. package/dist/cli/commands/next.js +0 -20
  224. package/dist/cli/commands/next.js.map +0 -1
  225. package/dist/cli/commands/nexus.d.ts +0 -16
  226. package/dist/cli/commands/nexus.d.ts.map +0 -1
  227. package/dist/cli/commands/nexus.js +0 -155
  228. package/dist/cli/commands/nexus.js.map +0 -1
  229. package/dist/cli/commands/observe.d.ts +0 -9
  230. package/dist/cli/commands/observe.d.ts.map +0 -1
  231. package/dist/cli/commands/observe.js +0 -39
  232. package/dist/cli/commands/observe.js.map +0 -1
  233. package/dist/cli/commands/ops.d.ts +0 -10
  234. package/dist/cli/commands/ops.d.ts.map +0 -1
  235. package/dist/cli/commands/ops.js +0 -19
  236. package/dist/cli/commands/ops.js.map +0 -1
  237. package/dist/cli/commands/orchestrate.d.ts +0 -8
  238. package/dist/cli/commands/orchestrate.d.ts.map +0 -1
  239. package/dist/cli/commands/orchestrate.js +0 -58
  240. package/dist/cli/commands/orchestrate.js.map +0 -1
  241. package/dist/cli/commands/otel.d.ts +0 -12
  242. package/dist/cli/commands/otel.d.ts.map +0 -1
  243. package/dist/cli/commands/otel.js +0 -128
  244. package/dist/cli/commands/otel.js.map +0 -1
  245. package/dist/cli/commands/phase.d.ts +0 -12
  246. package/dist/cli/commands/phase.d.ts.map +0 -1
  247. package/dist/cli/commands/phase.js +0 -88
  248. package/dist/cli/commands/phase.js.map +0 -1
  249. package/dist/cli/commands/phases.d.ts +0 -12
  250. package/dist/cli/commands/phases.d.ts.map +0 -1
  251. package/dist/cli/commands/phases.js +0 -37
  252. package/dist/cli/commands/phases.js.map +0 -1
  253. package/dist/cli/commands/plan.d.ts +0 -8
  254. package/dist/cli/commands/plan.d.ts.map +0 -1
  255. package/dist/cli/commands/plan.js +0 -15
  256. package/dist/cli/commands/plan.js.map +0 -1
  257. package/dist/cli/commands/promote.d.ts +0 -7
  258. package/dist/cli/commands/promote.d.ts.map +0 -1
  259. package/dist/cli/commands/promote.js +0 -15
  260. package/dist/cli/commands/promote.js.map +0 -1
  261. package/dist/cli/commands/refresh-memory.d.ts +0 -9
  262. package/dist/cli/commands/refresh-memory.d.ts.map +0 -1
  263. package/dist/cli/commands/refresh-memory.js +0 -24
  264. package/dist/cli/commands/refresh-memory.js.map +0 -1
  265. package/dist/cli/commands/relates.d.ts +0 -12
  266. package/dist/cli/commands/relates.d.ts.map +0 -1
  267. package/dist/cli/commands/relates.js +0 -53
  268. package/dist/cli/commands/relates.js.map +0 -1
  269. package/dist/cli/commands/release.d.ts +0 -8
  270. package/dist/cli/commands/release.d.ts.map +0 -1
  271. package/dist/cli/commands/release.js +0 -72
  272. package/dist/cli/commands/release.js.map +0 -1
  273. package/dist/cli/commands/remote.d.ts +0 -12
  274. package/dist/cli/commands/remote.d.ts.map +0 -1
  275. package/dist/cli/commands/remote.js +0 -207
  276. package/dist/cli/commands/remote.js.map +0 -1
  277. package/dist/cli/commands/reorder.d.ts +0 -7
  278. package/dist/cli/commands/reorder.d.ts.map +0 -1
  279. package/dist/cli/commands/reorder.js +0 -20
  280. package/dist/cli/commands/reorder.js.map +0 -1
  281. package/dist/cli/commands/reparent.d.ts +0 -10
  282. package/dist/cli/commands/reparent.d.ts.map +0 -1
  283. package/dist/cli/commands/reparent.js +0 -19
  284. package/dist/cli/commands/reparent.js.map +0 -1
  285. package/dist/cli/commands/research.d.ts +0 -8
  286. package/dist/cli/commands/research.d.ts.map +0 -1
  287. package/dist/cli/commands/research.js +0 -129
  288. package/dist/cli/commands/research.js.map +0 -1
  289. package/dist/cli/commands/restore.d.ts +0 -11
  290. package/dist/cli/commands/restore.d.ts.map +0 -1
  291. package/dist/cli/commands/restore.js +0 -225
  292. package/dist/cli/commands/restore.js.map +0 -1
  293. package/dist/cli/commands/roadmap.d.ts +0 -8
  294. package/dist/cli/commands/roadmap.d.ts.map +0 -1
  295. package/dist/cli/commands/roadmap.js +0 -21
  296. package/dist/cli/commands/roadmap.js.map +0 -1
  297. package/dist/cli/commands/safestop.d.ts +0 -14
  298. package/dist/cli/commands/safestop.d.ts.map +0 -1
  299. package/dist/cli/commands/safestop.js +0 -32
  300. package/dist/cli/commands/safestop.js.map +0 -1
  301. package/dist/cli/commands/self-update.d.ts +0 -15
  302. package/dist/cli/commands/self-update.d.ts.map +0 -1
  303. package/dist/cli/commands/self-update.js +0 -332
  304. package/dist/cli/commands/self-update.js.map +0 -1
  305. package/dist/cli/commands/sequence.d.ts +0 -8
  306. package/dist/cli/commands/sequence.d.ts.map +0 -1
  307. package/dist/cli/commands/sequence.js +0 -30
  308. package/dist/cli/commands/sequence.js.map +0 -1
  309. package/dist/cli/commands/session.d.ts +0 -12
  310. package/dist/cli/commands/session.d.ts.map +0 -1
  311. package/dist/cli/commands/session.js +0 -160
  312. package/dist/cli/commands/session.js.map +0 -1
  313. package/dist/cli/commands/show.d.ts +0 -13
  314. package/dist/cli/commands/show.d.ts.map +0 -1
  315. package/dist/cli/commands/show.js +0 -20
  316. package/dist/cli/commands/show.js.map +0 -1
  317. package/dist/cli/commands/skills.d.ts +0 -13
  318. package/dist/cli/commands/skills.d.ts.map +0 -1
  319. package/dist/cli/commands/skills.js +0 -131
  320. package/dist/cli/commands/skills.js.map +0 -1
  321. package/dist/cli/commands/snapshot.d.ts +0 -9
  322. package/dist/cli/commands/snapshot.d.ts.map +0 -1
  323. package/dist/cli/commands/snapshot.js +0 -50
  324. package/dist/cli/commands/snapshot.js.map +0 -1
  325. package/dist/cli/commands/specification.d.ts +0 -13
  326. package/dist/cli/commands/specification.d.ts.map +0 -1
  327. package/dist/cli/commands/specification.js +0 -45
  328. package/dist/cli/commands/specification.js.map +0 -1
  329. package/dist/cli/commands/start.d.ts +0 -13
  330. package/dist/cli/commands/start.d.ts.map +0 -1
  331. package/dist/cli/commands/start.js +0 -20
  332. package/dist/cli/commands/start.js.map +0 -1
  333. package/dist/cli/commands/stats.d.ts +0 -12
  334. package/dist/cli/commands/stats.d.ts.map +0 -1
  335. package/dist/cli/commands/stats.js +0 -23
  336. package/dist/cli/commands/stats.js.map +0 -1
  337. package/dist/cli/commands/sticky.d.ts +0 -16
  338. package/dist/cli/commands/sticky.d.ts.map +0 -1
  339. package/dist/cli/commands/sticky.js +0 -211
  340. package/dist/cli/commands/sticky.js.map +0 -1
  341. package/dist/cli/commands/stop.d.ts +0 -13
  342. package/dist/cli/commands/stop.d.ts.map +0 -1
  343. package/dist/cli/commands/stop.js +0 -20
  344. package/dist/cli/commands/stop.js.map +0 -1
  345. package/dist/cli/commands/sync.d.ts +0 -13
  346. package/dist/cli/commands/sync.d.ts.map +0 -1
  347. package/dist/cli/commands/sync.js +0 -48
  348. package/dist/cli/commands/sync.js.map +0 -1
  349. package/dist/cli/commands/testing.d.ts +0 -13
  350. package/dist/cli/commands/testing.d.ts.map +0 -1
  351. package/dist/cli/commands/testing.js +0 -64
  352. package/dist/cli/commands/testing.js.map +0 -1
  353. package/dist/cli/commands/token.d.ts +0 -10
  354. package/dist/cli/commands/token.d.ts.map +0 -1
  355. package/dist/cli/commands/token.js +0 -135
  356. package/dist/cli/commands/token.js.map +0 -1
  357. package/dist/cli/commands/update.d.ts +0 -12
  358. package/dist/cli/commands/update.d.ts.map +0 -1
  359. package/dist/cli/commands/update.js +0 -77
  360. package/dist/cli/commands/update.js.map +0 -1
  361. package/dist/cli/commands/upgrade.d.ts +0 -16
  362. package/dist/cli/commands/upgrade.d.ts.map +0 -1
  363. package/dist/cli/commands/upgrade.js +0 -74
  364. package/dist/cli/commands/upgrade.js.map +0 -1
  365. package/dist/cli/commands/validate.d.ts +0 -12
  366. package/dist/cli/commands/validate.d.ts.map +0 -1
  367. package/dist/cli/commands/validate.js +0 -23
  368. package/dist/cli/commands/validate.js.map +0 -1
  369. package/dist/cli/commands/verify.d.ts +0 -8
  370. package/dist/cli/commands/verify.d.ts.map +0 -1
  371. package/dist/cli/commands/verify.js +0 -28
  372. package/dist/cli/commands/verify.js.map +0 -1
  373. package/dist/cli/commands/web.d.ts +0 -13
  374. package/dist/cli/commands/web.d.ts.map +0 -1
  375. package/dist/cli/commands/web.js +0 -264
  376. package/dist/cli/commands/web.js.map +0 -1
  377. package/dist/cli/field-context.d.ts +0 -32
  378. package/dist/cli/field-context.d.ts.map +0 -1
  379. package/dist/cli/field-context.js +0 -47
  380. package/dist/cli/field-context.js.map +0 -1
  381. package/dist/cli/format-context.d.ts +0 -32
  382. package/dist/cli/format-context.d.ts.map +0 -1
  383. package/dist/cli/format-context.js +0 -50
  384. package/dist/cli/format-context.js.map +0 -1
  385. package/dist/cli/index.d.ts +0 -12
  386. package/dist/cli/index.d.ts.map +0 -1
  387. package/dist/cli/logger-bootstrap.d.ts +0 -6
  388. package/dist/cli/logger-bootstrap.d.ts.map +0 -1
  389. package/dist/cli/logger-bootstrap.js +0 -10
  390. package/dist/cli/logger-bootstrap.js.map +0 -1
  391. package/dist/cli/middleware/output-format.d.ts +0 -30
  392. package/dist/cli/middleware/output-format.d.ts.map +0 -1
  393. package/dist/cli/middleware/output-format.js +0 -35
  394. package/dist/cli/middleware/output-format.js.map +0 -1
  395. package/dist/cli/progress.d.ts +0 -84
  396. package/dist/cli/progress.d.ts.map +0 -1
  397. package/dist/cli/progress.js +0 -169
  398. package/dist/cli/progress.js.map +0 -1
  399. package/dist/cli/renderers/colors.d.ts +0 -32
  400. package/dist/cli/renderers/colors.d.ts.map +0 -1
  401. package/dist/cli/renderers/colors.js +0 -141
  402. package/dist/cli/renderers/colors.js.map +0 -1
  403. package/dist/cli/renderers/error.d.ts +0 -13
  404. package/dist/cli/renderers/error.d.ts.map +0 -1
  405. package/dist/cli/renderers/error.js +0 -42
  406. package/dist/cli/renderers/error.js.map +0 -1
  407. package/dist/cli/renderers/index.d.ts +0 -59
  408. package/dist/cli/renderers/index.d.ts.map +0 -1
  409. package/dist/cli/renderers/index.js +0 -184
  410. package/dist/cli/renderers/index.js.map +0 -1
  411. package/dist/cli/renderers/normalizer.d.ts +0 -21
  412. package/dist/cli/renderers/normalizer.d.ts.map +0 -1
  413. package/dist/cli/renderers/normalizer.js +0 -106
  414. package/dist/cli/renderers/normalizer.js.map +0 -1
  415. package/dist/cli/renderers/system.d.ts +0 -25
  416. package/dist/cli/renderers/system.d.ts.map +0 -1
  417. package/dist/cli/renderers/system.js +0 -416
  418. package/dist/cli/renderers/system.js.map +0 -1
  419. package/dist/cli/renderers/tasks.d.ts +0 -28
  420. package/dist/cli/renderers/tasks.d.ts.map +0 -1
  421. package/dist/cli/renderers/tasks.js +0 -308
  422. package/dist/cli/renderers/tasks.js.map +0 -1
  423. package/dist/dispatch/adapters/cli.d.ts +0 -67
  424. package/dist/dispatch/adapters/cli.d.ts.map +0 -1
  425. package/dist/dispatch/adapters/cli.js +0 -205
  426. package/dist/dispatch/adapters/cli.js.map +0 -1
  427. package/dist/dispatch/adapters/mcp.d.ts +0 -37
  428. package/dist/dispatch/adapters/mcp.d.ts.map +0 -1
  429. package/dist/dispatch/adapters/mcp.js +0 -122
  430. package/dist/dispatch/adapters/mcp.js.map +0 -1
  431. package/dist/dispatch/context/session-context.d.ts +0 -54
  432. package/dist/dispatch/context/session-context.d.ts.map +0 -1
  433. package/dist/dispatch/context/session-context.js +0 -61
  434. package/dist/dispatch/context/session-context.js.map +0 -1
  435. package/dist/dispatch/dispatcher.d.ts +0 -23
  436. package/dist/dispatch/dispatcher.d.ts.map +0 -1
  437. package/dist/dispatch/dispatcher.js +0 -84
  438. package/dist/dispatch/dispatcher.js.map +0 -1
  439. package/dist/dispatch/domains/_base.d.ts +0 -59
  440. package/dist/dispatch/domains/_base.d.ts.map +0 -1
  441. package/dist/dispatch/domains/_base.js +0 -77
  442. package/dist/dispatch/domains/_base.js.map +0 -1
  443. package/dist/dispatch/domains/_meta.d.ts +0 -23
  444. package/dist/dispatch/domains/_meta.d.ts.map +0 -1
  445. package/dist/dispatch/domains/_meta.js +0 -25
  446. package/dist/dispatch/domains/_meta.js.map +0 -1
  447. package/dist/dispatch/domains/_routing.d.ts +0 -8
  448. package/dist/dispatch/domains/_routing.d.ts.map +0 -1
  449. package/dist/dispatch/domains/_routing.js +0 -20
  450. package/dist/dispatch/domains/_routing.js.map +0 -1
  451. package/dist/dispatch/domains/admin.d.ts +0 -27
  452. package/dist/dispatch/domains/admin.d.ts.map +0 -1
  453. package/dist/dispatch/domains/admin.js +0 -672
  454. package/dist/dispatch/domains/admin.js.map +0 -1
  455. package/dist/dispatch/domains/check.d.ts +0 -24
  456. package/dist/dispatch/domains/check.d.ts.map +0 -1
  457. package/dist/dispatch/domains/check.js +0 -281
  458. package/dist/dispatch/domains/check.js.map +0 -1
  459. package/dist/dispatch/domains/index.d.ts +0 -26
  460. package/dist/dispatch/domains/index.d.ts.map +0 -1
  461. package/dist/dispatch/domains/index.js +0 -38
  462. package/dist/dispatch/domains/index.js.map +0 -1
  463. package/dist/dispatch/domains/memory.d.ts +0 -24
  464. package/dist/dispatch/domains/memory.d.ts.map +0 -1
  465. package/dist/dispatch/domains/memory.js +0 -305
  466. package/dist/dispatch/domains/memory.js.map +0 -1
  467. package/dist/dispatch/domains/nexus.d.ts +0 -24
  468. package/dist/dispatch/domains/nexus.d.ts.map +0 -1
  469. package/dist/dispatch/domains/nexus.js +0 -252
  470. package/dist/dispatch/domains/nexus.js.map +0 -1
  471. package/dist/dispatch/domains/orchestrate.d.ts +0 -21
  472. package/dist/dispatch/domains/orchestrate.d.ts.map +0 -1
  473. package/dist/dispatch/domains/orchestrate.js +0 -261
  474. package/dist/dispatch/domains/orchestrate.js.map +0 -1
  475. package/dist/dispatch/domains/pipeline.d.ts +0 -36
  476. package/dist/dispatch/domains/pipeline.d.ts.map +0 -1
  477. package/dist/dispatch/domains/pipeline.js +0 -554
  478. package/dist/dispatch/domains/pipeline.js.map +0 -1
  479. package/dist/dispatch/domains/session.d.ts +0 -24
  480. package/dist/dispatch/domains/session.d.ts.map +0 -1
  481. package/dist/dispatch/domains/session.js +0 -257
  482. package/dist/dispatch/domains/session.js.map +0 -1
  483. package/dist/dispatch/domains/sticky.d.ts +0 -22
  484. package/dist/dispatch/domains/sticky.d.ts.map +0 -1
  485. package/dist/dispatch/domains/sticky.js +0 -166
  486. package/dist/dispatch/domains/sticky.js.map +0 -1
  487. package/dist/dispatch/domains/tasks.d.ts +0 -26
  488. package/dist/dispatch/domains/tasks.d.ts.map +0 -1
  489. package/dist/dispatch/domains/tasks.js +0 -352
  490. package/dist/dispatch/domains/tasks.js.map +0 -1
  491. package/dist/dispatch/domains/tools.d.ts +0 -40
  492. package/dist/dispatch/domains/tools.d.ts.map +0 -1
  493. package/dist/dispatch/domains/tools.js +0 -497
  494. package/dist/dispatch/domains/tools.js.map +0 -1
  495. package/dist/dispatch/engines/_error.d.ts +0 -42
  496. package/dist/dispatch/engines/_error.d.ts.map +0 -1
  497. package/dist/dispatch/engines/_error.js +0 -201
  498. package/dist/dispatch/engines/_error.js.map +0 -1
  499. package/dist/dispatch/engines/codebase-map-engine.d.ts +0 -17
  500. package/dist/dispatch/engines/codebase-map-engine.d.ts.map +0 -1
  501. package/dist/dispatch/engines/codebase-map-engine.js +0 -29
  502. package/dist/dispatch/engines/codebase-map-engine.js.map +0 -1
  503. package/dist/dispatch/engines/config-engine.d.ts +0 -21
  504. package/dist/dispatch/engines/config-engine.d.ts.map +0 -1
  505. package/dist/dispatch/engines/config-engine.js +0 -45
  506. package/dist/dispatch/engines/config-engine.js.map +0 -1
  507. package/dist/dispatch/engines/hooks-engine.d.ts +0 -47
  508. package/dist/dispatch/engines/hooks-engine.d.ts.map +0 -1
  509. package/dist/dispatch/engines/hooks-engine.js +0 -57
  510. package/dist/dispatch/engines/hooks-engine.js.map +0 -1
  511. package/dist/dispatch/engines/init-engine.d.ts +0 -43
  512. package/dist/dispatch/engines/init-engine.d.ts.map +0 -1
  513. package/dist/dispatch/engines/init-engine.js +0 -73
  514. package/dist/dispatch/engines/init-engine.js.map +0 -1
  515. package/dist/dispatch/engines/lifecycle-engine.d.ts +0 -66
  516. package/dist/dispatch/engines/lifecycle-engine.d.ts.map +0 -1
  517. package/dist/dispatch/engines/lifecycle-engine.js +0 -213
  518. package/dist/dispatch/engines/lifecycle-engine.js.map +0 -1
  519. package/dist/dispatch/engines/memory-engine.d.ts +0 -10
  520. package/dist/dispatch/engines/memory-engine.d.ts.map +0 -1
  521. package/dist/dispatch/engines/memory-engine.js +0 -10
  522. package/dist/dispatch/engines/memory-engine.js.map +0 -1
  523. package/dist/dispatch/engines/nexus-engine.d.ts +0 -159
  524. package/dist/dispatch/engines/nexus-engine.d.ts.map +0 -1
  525. package/dist/dispatch/engines/nexus-engine.js +0 -329
  526. package/dist/dispatch/engines/nexus-engine.js.map +0 -1
  527. package/dist/dispatch/engines/orchestrate-engine.d.ts +0 -133
  528. package/dist/dispatch/engines/orchestrate-engine.d.ts.map +0 -1
  529. package/dist/dispatch/engines/orchestrate-engine.js +0 -770
  530. package/dist/dispatch/engines/orchestrate-engine.js.map +0 -1
  531. package/dist/dispatch/engines/pipeline-engine.d.ts +0 -51
  532. package/dist/dispatch/engines/pipeline-engine.d.ts.map +0 -1
  533. package/dist/dispatch/engines/pipeline-engine.js +0 -192
  534. package/dist/dispatch/engines/pipeline-engine.js.map +0 -1
  535. package/dist/dispatch/engines/release-engine.d.ts +0 -94
  536. package/dist/dispatch/engines/release-engine.d.ts.map +0 -1
  537. package/dist/dispatch/engines/release-engine.js +0 -670
  538. package/dist/dispatch/engines/release-engine.js.map +0 -1
  539. package/dist/dispatch/engines/session-engine.d.ts +0 -326
  540. package/dist/dispatch/engines/session-engine.d.ts.map +0 -1
  541. package/dist/dispatch/engines/session-engine.js +0 -869
  542. package/dist/dispatch/engines/session-engine.js.map +0 -1
  543. package/dist/dispatch/engines/sticky-engine.d.ts +0 -100
  544. package/dist/dispatch/engines/sticky-engine.d.ts.map +0 -1
  545. package/dist/dispatch/engines/sticky-engine.js +0 -181
  546. package/dist/dispatch/engines/sticky-engine.js.map +0 -1
  547. package/dist/dispatch/engines/system-engine.d.ts +0 -377
  548. package/dist/dispatch/engines/system-engine.d.ts.map +0 -1
  549. package/dist/dispatch/engines/system-engine.js +0 -980
  550. package/dist/dispatch/engines/system-engine.js.map +0 -1
  551. package/dist/dispatch/engines/task-engine.d.ts +0 -584
  552. package/dist/dispatch/engines/task-engine.d.ts.map +0 -1
  553. package/dist/dispatch/engines/task-engine.js +0 -881
  554. package/dist/dispatch/engines/task-engine.js.map +0 -1
  555. package/dist/dispatch/engines/template-parser.d.ts +0 -34
  556. package/dist/dispatch/engines/template-parser.d.ts.map +0 -1
  557. package/dist/dispatch/engines/template-parser.js +0 -57
  558. package/dist/dispatch/engines/template-parser.js.map +0 -1
  559. package/dist/dispatch/engines/tools-engine.d.ts +0 -285
  560. package/dist/dispatch/engines/tools-engine.d.ts.map +0 -1
  561. package/dist/dispatch/engines/tools-engine.js +0 -676
  562. package/dist/dispatch/engines/tools-engine.js.map +0 -1
  563. package/dist/dispatch/engines/validate-engine.d.ts +0 -154
  564. package/dist/dispatch/engines/validate-engine.d.ts.map +0 -1
  565. package/dist/dispatch/engines/validate-engine.js +0 -527
  566. package/dist/dispatch/engines/validate-engine.js.map +0 -1
  567. package/dist/dispatch/index.d.ts +0 -20
  568. package/dist/dispatch/index.d.ts.map +0 -1
  569. package/dist/dispatch/index.js +0 -19
  570. package/dist/dispatch/index.js.map +0 -1
  571. package/dist/dispatch/lib/capability-matrix.d.ts +0 -11
  572. package/dist/dispatch/lib/capability-matrix.d.ts.map +0 -1
  573. package/dist/dispatch/lib/capability-matrix.js +0 -10
  574. package/dist/dispatch/lib/capability-matrix.js.map +0 -1
  575. package/dist/dispatch/lib/config.d.ts +0 -16
  576. package/dist/dispatch/lib/config.d.ts.map +0 -1
  577. package/dist/dispatch/lib/config.js +0 -15
  578. package/dist/dispatch/lib/config.js.map +0 -1
  579. package/dist/dispatch/lib/engine.d.ts +0 -25
  580. package/dist/dispatch/lib/engine.d.ts.map +0 -1
  581. package/dist/dispatch/lib/engine.js +0 -44
  582. package/dist/dispatch/lib/engine.js.map +0 -1
  583. package/dist/dispatch/lib/meta.d.ts +0 -26
  584. package/dist/dispatch/lib/meta.d.ts.map +0 -1
  585. package/dist/dispatch/lib/meta.js +0 -37
  586. package/dist/dispatch/lib/meta.js.map +0 -1
  587. package/dist/dispatch/lib/param-utils.d.ts +0 -11
  588. package/dist/dispatch/lib/param-utils.d.ts.map +0 -1
  589. package/dist/dispatch/lib/param-utils.js +0 -10
  590. package/dist/dispatch/lib/param-utils.js.map +0 -1
  591. package/dist/dispatch/lib/projections.d.ts +0 -23
  592. package/dist/dispatch/lib/projections.d.ts.map +0 -1
  593. package/dist/dispatch/lib/projections.js +0 -48
  594. package/dist/dispatch/lib/projections.js.map +0 -1
  595. package/dist/dispatch/lib/schema-utils.d.ts +0 -42
  596. package/dist/dispatch/lib/schema-utils.d.ts.map +0 -1
  597. package/dist/dispatch/lib/schema-utils.js +0 -93
  598. package/dist/dispatch/lib/schema-utils.js.map +0 -1
  599. package/dist/dispatch/lib/security.d.ts +0 -12
  600. package/dist/dispatch/lib/security.d.ts.map +0 -1
  601. package/dist/dispatch/lib/security.js +0 -10
  602. package/dist/dispatch/lib/security.js.map +0 -1
  603. package/dist/dispatch/middleware/audit.d.ts +0 -23
  604. package/dist/dispatch/middleware/audit.d.ts.map +0 -1
  605. package/dist/dispatch/middleware/audit.js +0 -169
  606. package/dist/dispatch/middleware/audit.js.map +0 -1
  607. package/dist/dispatch/middleware/field-filter.d.ts +0 -24
  608. package/dist/dispatch/middleware/field-filter.d.ts.map +0 -1
  609. package/dist/dispatch/middleware/field-filter.js +0 -65
  610. package/dist/dispatch/middleware/field-filter.js.map +0 -1
  611. package/dist/dispatch/middleware/pipeline.d.ts +0 -20
  612. package/dist/dispatch/middleware/pipeline.d.ts.map +0 -1
  613. package/dist/dispatch/middleware/pipeline.js +0 -47
  614. package/dist/dispatch/middleware/pipeline.js.map +0 -1
  615. package/dist/dispatch/middleware/projection.d.ts +0 -35
  616. package/dist/dispatch/middleware/projection.d.ts.map +0 -1
  617. package/dist/dispatch/middleware/projection.js +0 -145
  618. package/dist/dispatch/middleware/projection.js.map +0 -1
  619. package/dist/dispatch/middleware/protocol-enforcement.d.ts +0 -12
  620. package/dist/dispatch/middleware/protocol-enforcement.d.ts.map +0 -1
  621. package/dist/dispatch/middleware/protocol-enforcement.js +0 -30
  622. package/dist/dispatch/middleware/protocol-enforcement.js.map +0 -1
  623. package/dist/dispatch/middleware/rate-limiter.d.ts +0 -30
  624. package/dist/dispatch/middleware/rate-limiter.d.ts.map +0 -1
  625. package/dist/dispatch/middleware/rate-limiter.js +0 -101
  626. package/dist/dispatch/middleware/rate-limiter.js.map +0 -1
  627. package/dist/dispatch/middleware/sanitizer.d.ts +0 -10
  628. package/dist/dispatch/middleware/sanitizer.d.ts.map +0 -1
  629. package/dist/dispatch/middleware/sanitizer.js +0 -42
  630. package/dist/dispatch/middleware/sanitizer.js.map +0 -1
  631. package/dist/dispatch/middleware/session-resolver.d.ts +0 -26
  632. package/dist/dispatch/middleware/session-resolver.d.ts.map +0 -1
  633. package/dist/dispatch/middleware/session-resolver.js +0 -65
  634. package/dist/dispatch/middleware/session-resolver.js.map +0 -1
  635. package/dist/dispatch/middleware/verification-gates.d.ts +0 -3
  636. package/dist/dispatch/middleware/verification-gates.d.ts.map +0 -1
  637. package/dist/dispatch/middleware/verification-gates.js +0 -40
  638. package/dist/dispatch/middleware/verification-gates.js.map +0 -1
  639. package/dist/dispatch/registry.d.ts +0 -91
  640. package/dist/dispatch/registry.d.ts.map +0 -1
  641. package/dist/dispatch/registry.js +0 -2693
  642. package/dist/dispatch/registry.js.map +0 -1
  643. package/dist/dispatch/types.d.ts +0 -218
  644. package/dist/dispatch/types.d.ts.map +0 -1
  645. package/dist/dispatch/types.js +0 -25
  646. package/dist/dispatch/types.js.map +0 -1
  647. package/dist/mcp/gateways/mutate.d.ts +0 -146
  648. package/dist/mcp/gateways/mutate.d.ts.map +0 -1
  649. package/dist/mcp/gateways/mutate.js +0 -1016
  650. package/dist/mcp/gateways/mutate.js.map +0 -1
  651. package/dist/mcp/gateways/query.d.ts +0 -138
  652. package/dist/mcp/gateways/query.d.ts.map +0 -1
  653. package/dist/mcp/gateways/query.js +0 -186
  654. package/dist/mcp/gateways/query.js.map +0 -1
  655. package/dist/mcp/index.d.ts +0 -16
  656. package/dist/mcp/index.d.ts.map +0 -1
  657. package/dist/mcp/lib/background-jobs.d.ts +0 -86
  658. package/dist/mcp/lib/background-jobs.d.ts.map +0 -1
  659. package/dist/mcp/lib/background-jobs.js +0 -183
  660. package/dist/mcp/lib/background-jobs.js.map +0 -1
  661. package/dist/mcp/lib/budget.d.ts +0 -35
  662. package/dist/mcp/lib/budget.d.ts.map +0 -1
  663. package/dist/mcp/lib/budget.js +0 -102
  664. package/dist/mcp/lib/budget.js.map +0 -1
  665. package/dist/mcp/lib/cache.d.ts +0 -78
  666. package/dist/mcp/lib/cache.d.ts.map +0 -1
  667. package/dist/mcp/lib/cache.js +0 -207
  668. package/dist/mcp/lib/cache.js.map +0 -1
  669. package/dist/mcp/lib/config.d.ts +0 -42
  670. package/dist/mcp/lib/config.d.ts.map +0 -1
  671. package/dist/mcp/lib/config.js +0 -241
  672. package/dist/mcp/lib/config.js.map +0 -1
  673. package/dist/mcp/lib/defaults.d.ts +0 -115
  674. package/dist/mcp/lib/defaults.d.ts.map +0 -1
  675. package/dist/mcp/lib/defaults.js +0 -61
  676. package/dist/mcp/lib/defaults.js.map +0 -1
  677. package/dist/mcp/lib/exit-codes.d.ts +0 -197
  678. package/dist/mcp/lib/exit-codes.d.ts.map +0 -1
  679. package/dist/mcp/lib/exit-codes.js +0 -1016
  680. package/dist/mcp/lib/exit-codes.js.map +0 -1
  681. package/dist/mcp/lib/gate-validators.d.ts +0 -13
  682. package/dist/mcp/lib/gate-validators.d.ts.map +0 -1
  683. package/dist/mcp/lib/gate-validators.js +0 -13
  684. package/dist/mcp/lib/gate-validators.js.map +0 -1
  685. package/dist/mcp/lib/gateway-meta.d.ts +0 -37
  686. package/dist/mcp/lib/gateway-meta.d.ts.map +0 -1
  687. package/dist/mcp/lib/gateway-meta.js +0 -50
  688. package/dist/mcp/lib/gateway-meta.js.map +0 -1
  689. package/dist/mcp/lib/job-manager-accessor.d.ts +0 -10
  690. package/dist/mcp/lib/job-manager-accessor.d.ts.map +0 -1
  691. package/dist/mcp/lib/job-manager-accessor.js +0 -14
  692. package/dist/mcp/lib/job-manager-accessor.js.map +0 -1
  693. package/dist/mcp/lib/protocol-enforcement.d.ts +0 -12
  694. package/dist/mcp/lib/protocol-enforcement.d.ts.map +0 -1
  695. package/dist/mcp/lib/protocol-enforcement.js +0 -12
  696. package/dist/mcp/lib/protocol-enforcement.js.map +0 -1
  697. package/dist/mcp/lib/protocol-rules.d.ts +0 -12
  698. package/dist/mcp/lib/protocol-rules.d.ts.map +0 -1
  699. package/dist/mcp/lib/protocol-rules.js +0 -12
  700. package/dist/mcp/lib/protocol-rules.js.map +0 -1
  701. package/dist/mcp/lib/rate-limiter.d.ts +0 -110
  702. package/dist/mcp/lib/rate-limiter.d.ts.map +0 -1
  703. package/dist/mcp/lib/rate-limiter.js +0 -208
  704. package/dist/mcp/lib/rate-limiter.js.map +0 -1
  705. package/dist/mcp/lib/router.d.ts +0 -58
  706. package/dist/mcp/lib/router.d.ts.map +0 -1
  707. package/dist/mcp/lib/router.js +0 -12
  708. package/dist/mcp/lib/router.js.map +0 -1
  709. package/dist/mcp/lib/security.d.ts +0 -161
  710. package/dist/mcp/lib/security.d.ts.map +0 -1
  711. package/dist/mcp/lib/security.js +0 -361
  712. package/dist/mcp/lib/security.js.map +0 -1
  713. package/dist/mcp/lib/verification-gates.d.ts +0 -13
  714. package/dist/mcp/lib/verification-gates.d.ts.map +0 -1
  715. package/dist/mcp/lib/verification-gates.js +0 -12
  716. package/dist/mcp/lib/verification-gates.js.map +0 -1
  717. package/dist/mcp/resources/budget.d.ts +0 -22
  718. package/dist/mcp/resources/budget.d.ts.map +0 -1
  719. package/dist/mcp/resources/budget.js +0 -46
  720. package/dist/mcp/resources/budget.js.map +0 -1
  721. package/dist/mcp/resources/index.d.ts +0 -53
  722. package/dist/mcp/resources/index.d.ts.map +0 -1
  723. package/dist/mcp/resources/index.js +0 -278
  724. package/dist/mcp/resources/index.js.map +0 -1
@@ -1,2693 +0,0 @@
1
- /**
2
- * Unified CQRS Dispatch Layer -- Operation Registry
3
- *
4
- * Single source of truth for all operations mapped to 10 canonical domains.
5
- * Canonical domains only -- no legacy alias support.
6
- *
7
- * @epic T4820
8
- * @task T4814, T5241, T5615
9
- */
10
- /**
11
- * The single source of truth for all operations in CLEO.
12
- */
13
- export const OPERATIONS = [
14
- {
15
- gateway: 'query',
16
- domain: 'tasks',
17
- operation: 'show',
18
- description: 'tasks.show (query)',
19
- tier: 0,
20
- idempotent: true,
21
- sessionRequired: false,
22
- requiredParams: [],
23
- },
24
- {
25
- gateway: 'query',
26
- domain: 'tasks',
27
- operation: 'list',
28
- description: 'tasks.list (query)',
29
- tier: 1,
30
- idempotent: true,
31
- sessionRequired: false,
32
- requiredParams: [],
33
- params: [
34
- { name: 'parent', type: 'string', required: false, description: 'Filter by parent task ID' },
35
- { name: 'status', type: 'string', required: false, description: 'Filter by task status' },
36
- { name: 'priority', type: 'string', required: false, description: 'Filter by task priority' },
37
- { name: 'type', type: 'string', required: false, description: 'Filter by task type' },
38
- { name: 'phase', type: 'string', required: false, description: 'Filter by task phase' },
39
- { name: 'label', type: 'string', required: false, description: 'Filter by task label' },
40
- {
41
- name: 'children',
42
- type: 'boolean',
43
- required: false,
44
- description: 'Limit parent queries to direct children',
45
- },
46
- {
47
- name: 'limit',
48
- type: 'number',
49
- required: false,
50
- description: 'Maximum number of tasks to return',
51
- },
52
- {
53
- name: 'offset',
54
- type: 'number',
55
- required: false,
56
- description: 'Number of filtered tasks to skip',
57
- },
58
- {
59
- name: 'compact',
60
- type: 'boolean',
61
- required: false,
62
- description: 'Deprecated: request compact task rows for compatibility',
63
- },
64
- ],
65
- },
66
- {
67
- gateway: 'query',
68
- domain: 'tasks',
69
- operation: 'find',
70
- description: 'tasks.find (query)',
71
- tier: 0,
72
- idempotent: true,
73
- sessionRequired: false,
74
- requiredParams: [],
75
- },
76
- {
77
- gateway: 'query',
78
- domain: 'tasks',
79
- operation: 'tree',
80
- description: 'tasks.tree (query)',
81
- tier: 1,
82
- idempotent: true,
83
- sessionRequired: false,
84
- requiredParams: [],
85
- },
86
- {
87
- gateway: 'query',
88
- domain: 'tasks',
89
- operation: 'blockers',
90
- description: 'tasks.blockers (query)',
91
- tier: 1,
92
- idempotent: true,
93
- sessionRequired: false,
94
- requiredParams: [],
95
- },
96
- {
97
- gateway: 'query',
98
- domain: 'tasks',
99
- operation: 'depends',
100
- description: 'tasks.depends (query)',
101
- tier: 1,
102
- idempotent: true,
103
- sessionRequired: false,
104
- requiredParams: [],
105
- },
106
- {
107
- gateway: 'query',
108
- domain: 'tasks',
109
- operation: 'analyze',
110
- description: 'tasks.analyze (query)',
111
- tier: 1,
112
- idempotent: true,
113
- sessionRequired: false,
114
- requiredParams: [],
115
- },
116
- {
117
- gateway: 'query',
118
- domain: 'tasks',
119
- operation: 'next',
120
- description: 'tasks.next (query)',
121
- tier: 0,
122
- idempotent: true,
123
- sessionRequired: false,
124
- requiredParams: [],
125
- },
126
- {
127
- gateway: 'query',
128
- domain: 'tasks',
129
- operation: 'plan',
130
- description: 'Composite planning view with in-progress epics, ready tasks, blocked tasks, and open bugs (query)',
131
- tier: 0,
132
- idempotent: true,
133
- sessionRequired: false,
134
- requiredParams: [],
135
- },
136
- {
137
- gateway: 'query',
138
- domain: 'tasks',
139
- operation: 'relates',
140
- description: 'tasks.relates (query) — absorbs relates.find via mode param',
141
- tier: 1,
142
- idempotent: true,
143
- sessionRequired: false,
144
- requiredParams: [],
145
- },
146
- {
147
- gateway: 'query',
148
- domain: 'tasks',
149
- operation: 'complexity.estimate',
150
- description: 'tasks.complexity.estimate (query)',
151
- tier: 1,
152
- idempotent: true,
153
- sessionRequired: false,
154
- requiredParams: [],
155
- },
156
- {
157
- gateway: 'query',
158
- domain: 'tasks',
159
- operation: 'history',
160
- description: 'Show task work history (time tracked per task)',
161
- tier: 1,
162
- idempotent: true,
163
- sessionRequired: false,
164
- requiredParams: [],
165
- },
166
- {
167
- gateway: 'query',
168
- domain: 'tasks',
169
- operation: 'current',
170
- description: 'tasks.current (query)',
171
- tier: 0,
172
- idempotent: true,
173
- sessionRequired: false,
174
- requiredParams: [],
175
- },
176
- // Label operations (dispatch migration)
177
- {
178
- gateway: 'query',
179
- domain: 'tasks',
180
- operation: 'label.list',
181
- description: 'List all labels with task counts',
182
- tier: 1,
183
- idempotent: true,
184
- sessionRequired: false,
185
- requiredParams: [],
186
- },
187
- {
188
- gateway: 'query',
189
- domain: 'session',
190
- operation: 'status',
191
- description: 'session.status (query)',
192
- tier: 0,
193
- idempotent: true,
194
- sessionRequired: false,
195
- requiredParams: [],
196
- },
197
- {
198
- gateway: 'query',
199
- domain: 'session',
200
- operation: 'list',
201
- description: 'session.list (query)',
202
- tier: 1,
203
- idempotent: true,
204
- sessionRequired: false,
205
- requiredParams: [],
206
- params: [
207
- { name: 'status', type: 'string', required: false, description: 'Filter by session status' },
208
- {
209
- name: 'active',
210
- type: 'boolean',
211
- required: false,
212
- description: 'Legacy active-session filter',
213
- },
214
- { name: 'limit', type: 'number', required: false, description: 'Maximum sessions to return' },
215
- {
216
- name: 'offset',
217
- type: 'number',
218
- required: false,
219
- description: 'Skip this many sessions before returning results',
220
- },
221
- ],
222
- },
223
- {
224
- gateway: 'query',
225
- domain: 'session',
226
- operation: 'show',
227
- description: 'session.show (query) — absorbs debrief.show via include param',
228
- tier: 1,
229
- idempotent: true,
230
- sessionRequired: false,
231
- requiredParams: [],
232
- },
233
- {
234
- gateway: 'query',
235
- domain: 'session',
236
- operation: 'decision.log',
237
- description: 'session.decision.log (query)',
238
- tier: 1,
239
- idempotent: true,
240
- sessionRequired: false,
241
- requiredParams: [],
242
- },
243
- {
244
- gateway: 'query',
245
- domain: 'session',
246
- operation: 'context.drift',
247
- description: 'session.context.drift (query)',
248
- tier: 1,
249
- idempotent: true,
250
- sessionRequired: false,
251
- requiredParams: [],
252
- },
253
- {
254
- gateway: 'query',
255
- domain: 'session',
256
- operation: 'handoff.show',
257
- description: 'session.handoff.show - Show handoff data from the most recent ended session (query)',
258
- tier: 0,
259
- idempotent: true,
260
- sessionRequired: false,
261
- requiredParams: [],
262
- },
263
- {
264
- gateway: 'query',
265
- domain: 'session',
266
- operation: 'briefing.show',
267
- description: 'session.briefing.show - Composite session-start context (query)',
268
- tier: 0,
269
- idempotent: true,
270
- sessionRequired: false,
271
- requiredParams: [],
272
- },
273
- // T4959: Rich debrief removed — merged into session.show via include param (T5615)
274
- {
275
- gateway: 'query',
276
- domain: 'session',
277
- operation: 'find',
278
- description: 'session.find (query) — lightweight session discovery',
279
- tier: 1,
280
- idempotent: true,
281
- sessionRequired: false,
282
- requiredParams: [],
283
- },
284
- {
285
- gateway: 'query',
286
- domain: 'orchestrate',
287
- operation: 'status',
288
- description: 'orchestrate.status (query)',
289
- tier: 1,
290
- idempotent: true,
291
- sessionRequired: false,
292
- requiredParams: [],
293
- },
294
- {
295
- gateway: 'query',
296
- domain: 'orchestrate',
297
- operation: 'next',
298
- description: 'orchestrate.next (query)',
299
- tier: 1,
300
- idempotent: true,
301
- sessionRequired: false,
302
- requiredParams: [],
303
- },
304
- {
305
- gateway: 'query',
306
- domain: 'orchestrate',
307
- operation: 'ready',
308
- description: 'orchestrate.ready (query)',
309
- tier: 1,
310
- idempotent: true,
311
- sessionRequired: false,
312
- requiredParams: [],
313
- },
314
- {
315
- gateway: 'query',
316
- domain: 'orchestrate',
317
- operation: 'analyze',
318
- description: 'orchestrate.analyze (query) — absorbs critical.path via mode param',
319
- tier: 1,
320
- idempotent: true,
321
- sessionRequired: false,
322
- requiredParams: [],
323
- },
324
- {
325
- gateway: 'query',
326
- domain: 'orchestrate',
327
- operation: 'context',
328
- description: 'orchestrate.context (query)',
329
- tier: 1,
330
- idempotent: true,
331
- sessionRequired: false,
332
- requiredParams: [],
333
- },
334
- {
335
- gateway: 'query',
336
- domain: 'orchestrate',
337
- operation: 'waves',
338
- description: 'orchestrate.waves (query)',
339
- tier: 1,
340
- idempotent: true,
341
- sessionRequired: false,
342
- requiredParams: [],
343
- },
344
- {
345
- gateway: 'query',
346
- domain: 'orchestrate',
347
- operation: 'bootstrap',
348
- description: 'orchestrate.bootstrap (query)',
349
- tier: 1,
350
- idempotent: true,
351
- sessionRequired: false,
352
- requiredParams: [],
353
- },
354
- {
355
- gateway: 'query',
356
- domain: 'orchestrate',
357
- operation: 'unblock.opportunities',
358
- description: 'orchestrate.unblock.opportunities (query)',
359
- tier: 1,
360
- idempotent: true,
361
- sessionRequired: false,
362
- requiredParams: [],
363
- },
364
- // orchestrate.critical.path removed — merged into analyze via mode param (T5615)
365
- // ---------------------------------------------------------------------------
366
- // memory — brain.db cognitive memory (T5241 cutover)
367
- // ---------------------------------------------------------------------------
368
- // memory.show removed — use memory.fetch with single-element ids array (T5615)
369
- {
370
- gateway: 'query',
371
- domain: 'memory',
372
- operation: 'find',
373
- description: 'memory.find (query) — cross-table brain.db FTS5 search',
374
- tier: 0,
375
- idempotent: true,
376
- sessionRequired: false,
377
- requiredParams: ['query'],
378
- },
379
- {
380
- gateway: 'query',
381
- domain: 'memory',
382
- operation: 'timeline',
383
- description: 'memory.timeline (query) — chronological context around anchor',
384
- tier: 1,
385
- idempotent: true,
386
- sessionRequired: false,
387
- requiredParams: ['anchor'],
388
- },
389
- {
390
- gateway: 'query',
391
- domain: 'memory',
392
- operation: 'fetch',
393
- description: 'memory.fetch (query) — batch fetch brain entries by IDs',
394
- tier: 1,
395
- idempotent: true,
396
- sessionRequired: false,
397
- requiredParams: ['ids'],
398
- },
399
- // memory.stats, memory.contradictions, memory.superseded removed — dashboard-only (T5615)
400
- {
401
- gateway: 'query',
402
- domain: 'memory',
403
- operation: 'decision.find',
404
- description: 'memory.decision.find (query) — search decisions in brain.db',
405
- tier: 1,
406
- idempotent: true,
407
- sessionRequired: false,
408
- requiredParams: [],
409
- },
410
- {
411
- gateway: 'query',
412
- domain: 'memory',
413
- operation: 'pattern.find',
414
- description: 'memory.pattern.find (query) — search BRAIN pattern memory by type, impact, or keyword',
415
- tier: 1,
416
- idempotent: true,
417
- sessionRequired: false,
418
- requiredParams: [],
419
- },
420
- // memory.pattern.stats removed — dashboard-only (T5615)
421
- {
422
- gateway: 'query',
423
- domain: 'memory',
424
- operation: 'learning.find',
425
- description: 'memory.learning.find (query) — search BRAIN learning memory by confidence, actionability, or keyword',
426
- tier: 1,
427
- idempotent: true,
428
- sessionRequired: false,
429
- requiredParams: [],
430
- },
431
- // memory.learning.stats removed — dashboard-only (T5615)
432
- // memory — PageIndex graph queries (T5385)
433
- {
434
- gateway: 'query',
435
- domain: 'memory',
436
- operation: 'graph.show',
437
- description: 'memory.graph.show (query) — get a PageIndex graph node and its edges',
438
- tier: 2,
439
- idempotent: true,
440
- sessionRequired: false,
441
- requiredParams: ['nodeId'],
442
- },
443
- {
444
- gateway: 'query',
445
- domain: 'memory',
446
- operation: 'graph.neighbors',
447
- description: 'memory.graph.neighbors (query) — get neighbor nodes from the PageIndex graph',
448
- tier: 2,
449
- idempotent: true,
450
- sessionRequired: false,
451
- requiredParams: ['nodeId'],
452
- },
453
- // memory — Reasoning & hybrid search (T5388-T5393)
454
- {
455
- gateway: 'query',
456
- domain: 'memory',
457
- operation: 'reason.why',
458
- description: 'memory.reason.why (query) — causal trace through task dependency chains',
459
- tier: 2,
460
- idempotent: true,
461
- sessionRequired: false,
462
- requiredParams: ['taskId'],
463
- },
464
- {
465
- gateway: 'query',
466
- domain: 'memory',
467
- operation: 'reason.similar',
468
- description: 'memory.reason.similar (query) — find semantically similar brain entries',
469
- tier: 2,
470
- idempotent: true,
471
- sessionRequired: false,
472
- requiredParams: ['entryId'],
473
- },
474
- {
475
- gateway: 'query',
476
- domain: 'memory',
477
- operation: 'search.hybrid',
478
- description: 'memory.search.hybrid (query) — hybrid search across FTS5, vector, and graph',
479
- tier: 2,
480
- idempotent: true,
481
- sessionRequired: false,
482
- requiredParams: ['query'],
483
- },
484
- {
485
- gateway: 'query',
486
- domain: 'pipeline',
487
- operation: 'stage.validate',
488
- description: 'pipeline.stage.validate (query) — absorbs stage.prerequisites in response',
489
- tier: 1,
490
- idempotent: true,
491
- sessionRequired: false,
492
- requiredParams: [],
493
- },
494
- {
495
- gateway: 'query',
496
- domain: 'pipeline',
497
- operation: 'stage.status',
498
- description: 'pipeline.stage.status (query) — absorbs stage.gates via include param',
499
- tier: 1,
500
- idempotent: true,
501
- sessionRequired: false,
502
- requiredParams: [],
503
- },
504
- {
505
- gateway: 'query',
506
- domain: 'pipeline',
507
- operation: 'stage.history',
508
- description: 'pipeline.stage.history (query)',
509
- tier: 1,
510
- idempotent: true,
511
- sessionRequired: false,
512
- requiredParams: [],
513
- },
514
- // stage.gates removed — merged into stage.status via include param (T5615)
515
- // stage.prerequisites removed — always returned in stage.validate response (T5615)
516
- // T5326: Phase management operations
517
- {
518
- gateway: 'query',
519
- domain: 'pipeline',
520
- operation: 'phase.show',
521
- description: 'Show phase details by slug or current phase (query)',
522
- tier: 1,
523
- idempotent: true,
524
- sessionRequired: false,
525
- requiredParams: [],
526
- params: [
527
- {
528
- name: 'phaseId',
529
- type: 'string',
530
- required: false,
531
- description: 'Phase slug (omit for current phase)',
532
- },
533
- ],
534
- },
535
- {
536
- gateway: 'query',
537
- domain: 'pipeline',
538
- operation: 'phase.list',
539
- description: 'List all phases with status and task counts (query)',
540
- tier: 1,
541
- idempotent: true,
542
- sessionRequired: false,
543
- requiredParams: [],
544
- },
545
- // pipeline manifest query operations (T5241 — moved from memory)
546
- {
547
- gateway: 'query',
548
- domain: 'pipeline',
549
- operation: 'manifest.show',
550
- description: 'pipeline.manifest.show (query) — get manifest entry by ID',
551
- tier: 1,
552
- idempotent: true,
553
- sessionRequired: false,
554
- requiredParams: ['entryId'],
555
- },
556
- {
557
- gateway: 'query',
558
- domain: 'pipeline',
559
- operation: 'manifest.list',
560
- description: 'pipeline.manifest.list (query) — list manifest entries with filters',
561
- tier: 1,
562
- idempotent: true,
563
- sessionRequired: false,
564
- requiredParams: [],
565
- },
566
- {
567
- gateway: 'query',
568
- domain: 'pipeline',
569
- operation: 'manifest.find',
570
- description: 'pipeline.manifest.find (query) — search manifest entries by text',
571
- tier: 1,
572
- idempotent: true,
573
- sessionRequired: false,
574
- requiredParams: ['query'],
575
- },
576
- // manifest.pending removed — merged into manifest.list via filter param (T5615)
577
- {
578
- gateway: 'query',
579
- domain: 'pipeline',
580
- operation: 'manifest.stats',
581
- description: 'pipeline.manifest.stats (query) — manifest statistics',
582
- tier: 1,
583
- idempotent: true,
584
- sessionRequired: false,
585
- requiredParams: [],
586
- },
587
- // T5405: WarpChain pipeline operations
588
- {
589
- gateway: 'query',
590
- domain: 'pipeline',
591
- operation: 'chain.show',
592
- description: 'pipeline.chain.show (query) — get chain definition by ID',
593
- tier: 2,
594
- idempotent: true,
595
- sessionRequired: false,
596
- requiredParams: ['chainId'],
597
- },
598
- {
599
- gateway: 'query',
600
- domain: 'pipeline',
601
- operation: 'chain.list',
602
- description: 'pipeline.chain.list (query) — list all chain definitions',
603
- tier: 2,
604
- idempotent: true,
605
- sessionRequired: false,
606
- requiredParams: [],
607
- },
608
- {
609
- gateway: 'query',
610
- domain: 'check',
611
- operation: 'schema',
612
- description: 'check.schema (query)',
613
- tier: 1,
614
- idempotent: true,
615
- sessionRequired: false,
616
- requiredParams: [],
617
- },
618
- {
619
- gateway: 'query',
620
- domain: 'check',
621
- operation: 'protocol',
622
- description: 'check.protocol (query) — absorbs all protocol.* ops via protocolType param',
623
- tier: 1,
624
- idempotent: true,
625
- sessionRequired: false,
626
- requiredParams: [],
627
- },
628
- {
629
- gateway: 'query',
630
- domain: 'check',
631
- operation: 'task',
632
- description: 'check.task (query)',
633
- tier: 1,
634
- idempotent: true,
635
- sessionRequired: false,
636
- requiredParams: [],
637
- },
638
- {
639
- gateway: 'query',
640
- domain: 'check',
641
- operation: 'manifest',
642
- description: 'check.manifest (query)',
643
- tier: 1,
644
- idempotent: true,
645
- sessionRequired: false,
646
- requiredParams: [],
647
- },
648
- {
649
- gateway: 'query',
650
- domain: 'check',
651
- operation: 'output',
652
- description: 'check.output (query)',
653
- tier: 1,
654
- idempotent: true,
655
- sessionRequired: false,
656
- requiredParams: [],
657
- },
658
- {
659
- gateway: 'query',
660
- domain: 'check',
661
- operation: 'compliance.summary',
662
- description: 'check.compliance.summary (query) — absorbs compliance.violations via detail param',
663
- tier: 1,
664
- idempotent: true,
665
- sessionRequired: false,
666
- requiredParams: [],
667
- },
668
- // compliance.violations removed — merged into compliance.summary via detail param (T5615)
669
- // test.status removed — merged into test op (T5615)
670
- {
671
- gateway: 'query',
672
- domain: 'check',
673
- operation: 'test',
674
- description: 'check.test (query) — combined test status and coverage via format param',
675
- tier: 1,
676
- idempotent: true,
677
- sessionRequired: false,
678
- requiredParams: [],
679
- },
680
- {
681
- gateway: 'query',
682
- domain: 'check',
683
- operation: 'coherence',
684
- description: 'check.coherence (query) — renamed from coherence.check (T5615)',
685
- tier: 1,
686
- idempotent: true,
687
- sessionRequired: false,
688
- requiredParams: [],
689
- },
690
- // Protocol validation operations (T5327) — protocol.consensus/contribution/decomposition/implementation/specification
691
- // removed — folded into check.protocol via protocolType param (T5615)
692
- // gate.verify split into gate.status (query) + gate.set (mutate) (T5615)
693
- {
694
- gateway: 'query',
695
- domain: 'check',
696
- operation: 'gate.status',
697
- description: 'check.gate.status (query) — read-only gate state; split from gate.verify (T5615)',
698
- tier: 1,
699
- idempotent: true,
700
- sessionRequired: false,
701
- requiredParams: ['taskId'],
702
- },
703
- // check.archive.stats incoming from admin (T5615)
704
- {
705
- gateway: 'query',
706
- domain: 'check',
707
- operation: 'archive.stats',
708
- description: 'check.archive.stats (query) — archive analytics; moved from admin (T5615)',
709
- tier: 1,
710
- idempotent: true,
711
- sessionRequired: false,
712
- requiredParams: [],
713
- },
714
- // check.grade and check.grade.list incoming from admin (T5615)
715
- {
716
- gateway: 'query',
717
- domain: 'check',
718
- operation: 'grade',
719
- description: 'check.grade (query) — grade agent behavioral session; moved from admin (T5615)',
720
- tier: 2,
721
- idempotent: true,
722
- sessionRequired: false,
723
- requiredParams: ['sessionId'],
724
- },
725
- {
726
- gateway: 'query',
727
- domain: 'check',
728
- operation: 'grade.list',
729
- description: 'check.grade.list (query) — list past session grade results; moved from admin (T5615)',
730
- tier: 2,
731
- idempotent: true,
732
- sessionRequired: false,
733
- requiredParams: [],
734
- params: [
735
- {
736
- name: 'sessionId',
737
- type: 'string',
738
- required: false,
739
- description: 'Filter grades by session ID',
740
- },
741
- {
742
- name: 'limit',
743
- type: 'number',
744
- required: false,
745
- description: 'Maximum grade entries to return',
746
- },
747
- {
748
- name: 'offset',
749
- type: 'number',
750
- required: false,
751
- description: 'Skip this many grade entries before returning results',
752
- },
753
- ],
754
- },
755
- // T5405: WarpChain validation query
756
- {
757
- gateway: 'query',
758
- domain: 'check',
759
- operation: 'chain.validate',
760
- description: 'check.chain.validate (query) — validate a WarpChain definition',
761
- tier: 2,
762
- idempotent: true,
763
- sessionRequired: false,
764
- requiredParams: ['chain'],
765
- },
766
- {
767
- gateway: 'query',
768
- domain: 'admin',
769
- operation: 'version',
770
- description: 'admin.version (query)',
771
- tier: 0,
772
- idempotent: true,
773
- sessionRequired: false,
774
- requiredParams: [],
775
- },
776
- {
777
- gateway: 'query',
778
- domain: 'admin',
779
- operation: 'health',
780
- description: 'admin.health (query) — absorbs doctor via mode param',
781
- tier: 0,
782
- idempotent: true,
783
- sessionRequired: false,
784
- requiredParams: [],
785
- },
786
- {
787
- gateway: 'query',
788
- domain: 'admin',
789
- operation: 'config.show',
790
- description: 'admin.config.show (query) — show config value',
791
- tier: 1,
792
- idempotent: true,
793
- sessionRequired: false,
794
- requiredParams: [],
795
- },
796
- {
797
- gateway: 'query',
798
- domain: 'admin',
799
- operation: 'stats',
800
- description: 'admin.stats (query)',
801
- tier: 1,
802
- idempotent: true,
803
- sessionRequired: false,
804
- requiredParams: [],
805
- },
806
- {
807
- gateway: 'query',
808
- domain: 'admin',
809
- operation: 'context',
810
- description: 'admin.context (query)',
811
- tier: 1,
812
- idempotent: true,
813
- sessionRequired: false,
814
- requiredParams: [],
815
- },
816
- {
817
- gateway: 'query',
818
- domain: 'admin',
819
- operation: 'runtime',
820
- description: 'admin.runtime (query)',
821
- tier: 1,
822
- idempotent: true,
823
- sessionRequired: false,
824
- requiredParams: [],
825
- },
826
- // admin.job.status + admin.job.list merged into admin.job via action param (T5615)
827
- {
828
- gateway: 'query',
829
- domain: 'admin',
830
- operation: 'job',
831
- description: 'admin.job (query) — absorbs job.status and job.list via action param',
832
- tier: 1,
833
- idempotent: true,
834
- sessionRequired: false,
835
- requiredParams: [],
836
- params: [
837
- {
838
- name: 'action',
839
- type: 'string',
840
- required: false,
841
- description: 'Action: status (default) or list',
842
- },
843
- {
844
- name: 'status',
845
- type: 'string',
846
- required: false,
847
- description: 'Filter jobs by status (for list action)',
848
- },
849
- {
850
- name: 'limit',
851
- type: 'number',
852
- required: false,
853
- description: 'Maximum jobs to return (for list action)',
854
- },
855
- {
856
- name: 'offset',
857
- type: 'number',
858
- required: false,
859
- description: 'Skip this many jobs before returning results',
860
- },
861
- ],
862
- },
863
- {
864
- gateway: 'query',
865
- domain: 'admin',
866
- operation: 'dash',
867
- description: 'admin.dash (query)',
868
- tier: 0,
869
- idempotent: true,
870
- sessionRequired: false,
871
- requiredParams: [],
872
- },
873
- {
874
- gateway: 'query',
875
- domain: 'admin',
876
- operation: 'log',
877
- description: 'admin.log (query)',
878
- tier: 1,
879
- idempotent: true,
880
- sessionRequired: false,
881
- requiredParams: [],
882
- },
883
- {
884
- gateway: 'query',
885
- domain: 'admin',
886
- operation: 'sequence',
887
- description: 'admin.sequence (query)',
888
- tier: 1,
889
- idempotent: true,
890
- sessionRequired: false,
891
- requiredParams: [],
892
- },
893
- {
894
- gateway: 'query',
895
- domain: 'admin',
896
- operation: 'help',
897
- description: 'Get operations list and guidance filtered to specified disclosure tier',
898
- tier: 0,
899
- idempotent: true,
900
- sessionRequired: false,
901
- requiredParams: [],
902
- params: [
903
- {
904
- name: 'tier',
905
- type: 'number',
906
- required: false,
907
- description: 'Progressive disclosure tier: 0=basic (default), 1=+memory/check, 2=all operations',
908
- cli: { flag: 'tier', short: '-t' },
909
- },
910
- {
911
- name: 'verbose',
912
- type: 'boolean',
913
- required: false,
914
- description: 'Return full operation objects instead of compact domain-grouped format',
915
- cli: { flag: 'verbose' },
916
- },
917
- ],
918
- },
919
- {
920
- gateway: 'query',
921
- domain: 'tools',
922
- operation: 'issue.diagnostics',
923
- description: 'tools.issue.diagnostics (query) — CLEO install integrity check',
924
- tier: 1,
925
- idempotent: true,
926
- sessionRequired: false,
927
- requiredParams: [],
928
- },
929
- // tools.issue.templates and tools.issue.validate.labels moved to ct-github-issues plugin (T5615)
930
- {
931
- gateway: 'query',
932
- domain: 'tools',
933
- operation: 'skill.list',
934
- description: 'tools.skill.list (query)',
935
- tier: 0,
936
- idempotent: true,
937
- sessionRequired: false,
938
- requiredParams: [],
939
- },
940
- {
941
- gateway: 'query',
942
- domain: 'tools',
943
- operation: 'skill.show',
944
- description: 'tools.skill.show (query)',
945
- tier: 1,
946
- idempotent: true,
947
- sessionRequired: false,
948
- requiredParams: [],
949
- },
950
- {
951
- gateway: 'query',
952
- domain: 'tools',
953
- operation: 'skill.find',
954
- description: 'tools.skill.find (query)',
955
- tier: 1,
956
- idempotent: true,
957
- sessionRequired: false,
958
- requiredParams: [],
959
- },
960
- {
961
- gateway: 'query',
962
- domain: 'tools',
963
- operation: 'skill.dispatch',
964
- description: 'tools.skill.dispatch (query)',
965
- tier: 1,
966
- idempotent: true,
967
- sessionRequired: false,
968
- requiredParams: [],
969
- },
970
- {
971
- gateway: 'query',
972
- domain: 'tools',
973
- operation: 'skill.verify',
974
- description: 'tools.skill.verify (query)',
975
- tier: 1,
976
- idempotent: true,
977
- sessionRequired: false,
978
- requiredParams: [],
979
- },
980
- {
981
- gateway: 'query',
982
- domain: 'tools',
983
- operation: 'skill.dependencies',
984
- description: 'tools.skill.dependencies (query)',
985
- tier: 1,
986
- idempotent: true,
987
- sessionRequired: false,
988
- requiredParams: [],
989
- },
990
- {
991
- gateway: 'query',
992
- domain: 'tools',
993
- operation: 'skill.spawn.providers',
994
- description: 'List spawn-capable providers by capability (query)',
995
- tier: 1,
996
- idempotent: true,
997
- sessionRequired: false,
998
- requiredParams: [],
999
- },
1000
- // skill.catalog.protocols/profiles/resources/info merged into skill.catalog via type param (T5615)
1001
- {
1002
- gateway: 'query',
1003
- domain: 'tools',
1004
- operation: 'skill.catalog',
1005
- description: 'tools.skill.catalog (query) — CAAMP catalog; absorbs catalog.protocols/profiles/resources/info via type param',
1006
- tier: 2,
1007
- idempotent: true,
1008
- sessionRequired: false,
1009
- requiredParams: [],
1010
- params: [
1011
- {
1012
- name: 'type',
1013
- type: 'string',
1014
- required: false,
1015
- description: 'Catalog type: protocols, profiles, resources, or info (default)',
1016
- },
1017
- ],
1018
- },
1019
- // skill.precedence.show/resolve merged into skill.precedence via action param (T5615)
1020
- {
1021
- gateway: 'query',
1022
- domain: 'tools',
1023
- operation: 'skill.precedence',
1024
- description: 'tools.skill.precedence (query) — absorbs precedence.show and precedence.resolve via action param',
1025
- tier: 1,
1026
- idempotent: true,
1027
- sessionRequired: false,
1028
- requiredParams: [],
1029
- params: [
1030
- {
1031
- name: 'action',
1032
- type: 'string',
1033
- required: false,
1034
- description: 'Action: show (default) or resolve',
1035
- },
1036
- {
1037
- name: 'providerId',
1038
- type: 'string',
1039
- required: false,
1040
- description: 'Provider ID for resolve action',
1041
- },
1042
- ],
1043
- },
1044
- {
1045
- gateway: 'query',
1046
- domain: 'tools',
1047
- operation: 'provider.list',
1048
- description: 'tools.provider.list (query)',
1049
- tier: 0,
1050
- idempotent: true,
1051
- sessionRequired: false,
1052
- requiredParams: [],
1053
- },
1054
- {
1055
- gateway: 'query',
1056
- domain: 'tools',
1057
- operation: 'provider.detect',
1058
- description: 'tools.provider.detect (query)',
1059
- tier: 0,
1060
- idempotent: true,
1061
- sessionRequired: false,
1062
- requiredParams: [],
1063
- },
1064
- {
1065
- gateway: 'query',
1066
- domain: 'tools',
1067
- operation: 'provider.inject.status',
1068
- description: 'tools.provider.inject.status (query)',
1069
- tier: 1,
1070
- idempotent: true,
1071
- sessionRequired: false,
1072
- requiredParams: [],
1073
- },
1074
- {
1075
- gateway: 'query',
1076
- domain: 'tools',
1077
- operation: 'provider.supports',
1078
- description: 'tools.provider.supports (query) - check if provider supports capability',
1079
- tier: 1,
1080
- idempotent: true,
1081
- sessionRequired: false,
1082
- requiredParams: ['providerId', 'capability'],
1083
- params: [
1084
- {
1085
- name: 'providerId',
1086
- type: 'string',
1087
- required: true,
1088
- description: 'Provider ID (e.g., claude-code)',
1089
- },
1090
- {
1091
- name: 'capability',
1092
- type: 'string',
1093
- required: true,
1094
- description: 'Capability path in dot notation (e.g., spawn.supportsSubagents)',
1095
- },
1096
- ],
1097
- },
1098
- {
1099
- gateway: 'query',
1100
- domain: 'tools',
1101
- operation: 'provider.hooks',
1102
- description: 'tools.provider.hooks (query) - list providers by hook event support',
1103
- tier: 1,
1104
- idempotent: true,
1105
- sessionRequired: false,
1106
- requiredParams: ['event'],
1107
- params: [
1108
- {
1109
- name: 'event',
1110
- type: 'string',
1111
- required: true,
1112
- description: 'Hook event to query (e.g., onSessionStart, onToolComplete)',
1113
- },
1114
- ],
1115
- },
1116
- {
1117
- gateway: 'mutate',
1118
- domain: 'tasks',
1119
- operation: 'add',
1120
- description: 'tasks.add (mutate)',
1121
- tier: 0,
1122
- idempotent: false,
1123
- sessionRequired: false,
1124
- requiredParams: [],
1125
- },
1126
- {
1127
- gateway: 'mutate',
1128
- domain: 'tasks',
1129
- operation: 'update',
1130
- description: 'tasks.update (mutate)',
1131
- tier: 0,
1132
- idempotent: false,
1133
- sessionRequired: false,
1134
- requiredParams: [],
1135
- },
1136
- {
1137
- gateway: 'mutate',
1138
- domain: 'tasks',
1139
- operation: 'complete',
1140
- description: 'tasks.complete (mutate)',
1141
- tier: 0,
1142
- idempotent: false,
1143
- sessionRequired: false,
1144
- requiredParams: [],
1145
- },
1146
- {
1147
- gateway: 'mutate',
1148
- domain: 'tasks',
1149
- operation: 'cancel',
1150
- description: 'tasks.cancel (mutate) — cancel task (soft terminal state; reversible via tasks.restore)',
1151
- tier: 1,
1152
- idempotent: false,
1153
- sessionRequired: false,
1154
- requiredParams: ['taskId'],
1155
- },
1156
- {
1157
- gateway: 'mutate',
1158
- domain: 'tasks',
1159
- operation: 'delete',
1160
- description: 'tasks.delete (mutate)',
1161
- tier: 1,
1162
- idempotent: false,
1163
- sessionRequired: false,
1164
- requiredParams: [],
1165
- },
1166
- {
1167
- gateway: 'mutate',
1168
- domain: 'tasks',
1169
- operation: 'archive',
1170
- description: 'tasks.archive (mutate)',
1171
- tier: 1,
1172
- idempotent: false,
1173
- sessionRequired: false,
1174
- requiredParams: [],
1175
- },
1176
- {
1177
- gateway: 'mutate',
1178
- domain: 'tasks',
1179
- operation: 'restore',
1180
- description: 'tasks.restore (mutate) — absorbs reopen and unarchive via from param',
1181
- tier: 1,
1182
- idempotent: false,
1183
- sessionRequired: false,
1184
- requiredParams: [],
1185
- },
1186
- {
1187
- gateway: 'mutate',
1188
- domain: 'tasks',
1189
- operation: 'reparent',
1190
- description: 'tasks.reparent (mutate) — absorbs promote via newParentId:null',
1191
- tier: 1,
1192
- idempotent: false,
1193
- sessionRequired: false,
1194
- requiredParams: [],
1195
- },
1196
- {
1197
- gateway: 'mutate',
1198
- domain: 'tasks',
1199
- operation: 'reorder',
1200
- description: 'tasks.reorder (mutate)',
1201
- tier: 1,
1202
- idempotent: false,
1203
- sessionRequired: false,
1204
- requiredParams: [],
1205
- },
1206
- {
1207
- gateway: 'mutate',
1208
- domain: 'tasks',
1209
- operation: 'relates.add',
1210
- description: 'tasks.relates.add (mutate)',
1211
- tier: 1,
1212
- idempotent: false,
1213
- sessionRequired: false,
1214
- requiredParams: [],
1215
- },
1216
- {
1217
- gateway: 'mutate',
1218
- domain: 'tasks',
1219
- operation: 'start',
1220
- description: 'tasks.start (mutate)',
1221
- tier: 0,
1222
- idempotent: false,
1223
- sessionRequired: false,
1224
- requiredParams: [],
1225
- },
1226
- {
1227
- gateway: 'mutate',
1228
- domain: 'tasks',
1229
- operation: 'stop',
1230
- description: 'tasks.stop (mutate)',
1231
- tier: 0,
1232
- idempotent: false,
1233
- sessionRequired: false,
1234
- requiredParams: [],
1235
- },
1236
- {
1237
- gateway: 'mutate',
1238
- domain: 'session',
1239
- operation: 'start',
1240
- description: 'session.start (mutate)',
1241
- tier: 0,
1242
- idempotent: false,
1243
- sessionRequired: false,
1244
- requiredParams: [],
1245
- },
1246
- {
1247
- gateway: 'mutate',
1248
- domain: 'session',
1249
- operation: 'end',
1250
- description: 'session.end (mutate)',
1251
- tier: 0,
1252
- idempotent: false,
1253
- sessionRequired: false,
1254
- requiredParams: [],
1255
- },
1256
- {
1257
- gateway: 'mutate',
1258
- domain: 'session',
1259
- operation: 'resume',
1260
- description: 'session.resume (mutate)',
1261
- tier: 1,
1262
- idempotent: false,
1263
- sessionRequired: false,
1264
- requiredParams: [],
1265
- },
1266
- {
1267
- gateway: 'mutate',
1268
- domain: 'session',
1269
- operation: 'suspend',
1270
- description: 'session.suspend (mutate)',
1271
- tier: 1,
1272
- idempotent: false,
1273
- sessionRequired: false,
1274
- requiredParams: [],
1275
- },
1276
- {
1277
- gateway: 'mutate',
1278
- domain: 'session',
1279
- operation: 'gc',
1280
- description: 'session.gc (mutate)',
1281
- tier: 1,
1282
- idempotent: false,
1283
- sessionRequired: false,
1284
- requiredParams: [],
1285
- },
1286
- {
1287
- gateway: 'mutate',
1288
- domain: 'session',
1289
- operation: 'record.decision',
1290
- description: 'session.record.decision (mutate)',
1291
- tier: 1,
1292
- idempotent: false,
1293
- sessionRequired: false,
1294
- requiredParams: [],
1295
- },
1296
- {
1297
- gateway: 'mutate',
1298
- domain: 'session',
1299
- operation: 'record.assumption',
1300
- description: 'session.record.assumption (mutate)',
1301
- tier: 1,
1302
- idempotent: false,
1303
- sessionRequired: false,
1304
- requiredParams: [],
1305
- },
1306
- // session.context.inject moved to admin.context.inject (T5615)
1307
- {
1308
- gateway: 'mutate',
1309
- domain: 'orchestrate',
1310
- operation: 'start',
1311
- description: 'orchestrate.start (mutate)',
1312
- tier: 1,
1313
- idempotent: false,
1314
- sessionRequired: false,
1315
- requiredParams: [],
1316
- },
1317
- {
1318
- gateway: 'mutate',
1319
- domain: 'orchestrate',
1320
- operation: 'spawn',
1321
- description: 'orchestrate.spawn (mutate)',
1322
- tier: 1,
1323
- idempotent: false,
1324
- sessionRequired: false,
1325
- requiredParams: [],
1326
- },
1327
- {
1328
- gateway: 'mutate',
1329
- domain: 'orchestrate',
1330
- operation: 'handoff',
1331
- description: 'orchestrate.handoff (mutate) — composite handoff (context.inject -> session.end -> spawn)',
1332
- tier: 1,
1333
- idempotent: false,
1334
- sessionRequired: false,
1335
- requiredParams: ['taskId', 'protocolType'],
1336
- params: [
1337
- {
1338
- name: 'taskId',
1339
- type: 'string',
1340
- required: true,
1341
- description: 'Successor task ID for spawn context',
1342
- },
1343
- {
1344
- name: 'protocolType',
1345
- type: 'string',
1346
- required: true,
1347
- description: 'Protocol name for handoff context injection',
1348
- },
1349
- {
1350
- name: 'note',
1351
- type: 'string',
1352
- required: false,
1353
- description: 'Optional handoff note persisted through session.end',
1354
- },
1355
- {
1356
- name: 'nextAction',
1357
- type: 'string',
1358
- required: false,
1359
- description: 'Optional next action metadata for the handoff payload',
1360
- },
1361
- {
1362
- name: 'variant',
1363
- type: 'string',
1364
- required: false,
1365
- description: 'Optional context injection variant',
1366
- },
1367
- {
1368
- name: 'tier',
1369
- type: 'number',
1370
- required: false,
1371
- description: 'Progressive disclosure tier (0-2)',
1372
- },
1373
- {
1374
- name: 'idempotencyKey',
1375
- type: 'string',
1376
- required: false,
1377
- description: 'Caller-provided retry correlation key (reported in metadata)',
1378
- },
1379
- ],
1380
- },
1381
- {
1382
- gateway: 'mutate',
1383
- domain: 'orchestrate',
1384
- operation: 'spawn.execute',
1385
- description: 'orchestrate.spawn.execute (mutate) — execute spawn for a task using adapter registry',
1386
- tier: 1,
1387
- idempotent: false,
1388
- sessionRequired: false,
1389
- requiredParams: ['taskId'],
1390
- params: [
1391
- { name: 'taskId', type: 'string', required: true, description: 'Task ID to spawn' },
1392
- {
1393
- name: 'adapterId',
1394
- type: 'string',
1395
- required: false,
1396
- description: 'Adapter ID (auto-select if omitted)',
1397
- },
1398
- {
1399
- name: 'protocolType',
1400
- type: 'string',
1401
- required: false,
1402
- description: 'Protocol type override',
1403
- },
1404
- {
1405
- name: 'tier',
1406
- type: 'number',
1407
- required: false,
1408
- description: 'Progressive disclosure tier (0-2)',
1409
- },
1410
- ],
1411
- },
1412
- {
1413
- gateway: 'mutate',
1414
- domain: 'orchestrate',
1415
- operation: 'validate',
1416
- description: 'orchestrate.validate (mutate)',
1417
- tier: 1,
1418
- idempotent: false,
1419
- sessionRequired: false,
1420
- requiredParams: [],
1421
- },
1422
- // parallel.start and parallel.end merged into orchestrate.parallel via action param (T5615)
1423
- {
1424
- gateway: 'mutate',
1425
- domain: 'orchestrate',
1426
- operation: 'parallel',
1427
- description: 'orchestrate.parallel (mutate) — absorbs parallel.start and parallel.end via action param',
1428
- tier: 1,
1429
- idempotent: false,
1430
- sessionRequired: false,
1431
- requiredParams: ['action'],
1432
- params: [
1433
- { name: 'action', type: 'string', required: true, description: 'Action: start or end' },
1434
- ],
1435
- },
1436
- // memory mutate — brain.db cognitive memory (T5241 cutover)
1437
- {
1438
- gateway: 'mutate',
1439
- domain: 'memory',
1440
- operation: 'observe',
1441
- description: 'memory.observe (mutate) — save observation to brain.db',
1442
- tier: 0,
1443
- idempotent: false,
1444
- sessionRequired: false,
1445
- requiredParams: ['text'],
1446
- },
1447
- {
1448
- gateway: 'mutate',
1449
- domain: 'memory',
1450
- operation: 'decision.store',
1451
- description: 'memory.decision.store (mutate) — store decision to brain.db',
1452
- tier: 1,
1453
- idempotent: false,
1454
- sessionRequired: false,
1455
- requiredParams: ['decision', 'rationale'],
1456
- },
1457
- {
1458
- gateway: 'mutate',
1459
- domain: 'memory',
1460
- operation: 'pattern.store',
1461
- description: 'memory.pattern.store (mutate) — store a reusable workflow or anti-pattern in BRAIN pattern memory',
1462
- tier: 1,
1463
- idempotent: false,
1464
- sessionRequired: false,
1465
- requiredParams: ['pattern', 'context'],
1466
- },
1467
- {
1468
- gateway: 'mutate',
1469
- domain: 'memory',
1470
- operation: 'learning.store',
1471
- description: 'memory.learning.store (mutate) — store an insight or lesson learned in BRAIN learning memory',
1472
- tier: 1,
1473
- idempotent: false,
1474
- sessionRequired: false,
1475
- requiredParams: ['insight', 'source'],
1476
- },
1477
- {
1478
- gateway: 'mutate',
1479
- domain: 'memory',
1480
- operation: 'link',
1481
- description: 'memory.link (mutate) — link brain entry to task',
1482
- tier: 1,
1483
- idempotent: false,
1484
- sessionRequired: false,
1485
- requiredParams: ['taskId', 'entryId'],
1486
- },
1487
- // memory.unlink removed — rarely needed; direct repair if needed (T5615)
1488
- // memory — PageIndex graph mutations (T5385)
1489
- {
1490
- gateway: 'mutate',
1491
- domain: 'memory',
1492
- operation: 'graph.add',
1493
- description: 'memory.graph.add (mutate) — add a node or edge to the PageIndex graph',
1494
- tier: 2,
1495
- idempotent: false,
1496
- sessionRequired: false,
1497
- requiredParams: [],
1498
- },
1499
- {
1500
- gateway: 'mutate',
1501
- domain: 'memory',
1502
- operation: 'graph.remove',
1503
- description: 'memory.graph.remove (mutate) — remove a node or edge from the PageIndex graph',
1504
- tier: 2,
1505
- idempotent: false,
1506
- sessionRequired: false,
1507
- requiredParams: [],
1508
- },
1509
- {
1510
- gateway: 'mutate',
1511
- domain: 'pipeline',
1512
- operation: 'stage.record',
1513
- description: 'pipeline.stage.record (mutate)',
1514
- tier: 1,
1515
- idempotent: false,
1516
- sessionRequired: false,
1517
- requiredParams: [],
1518
- },
1519
- {
1520
- gateway: 'mutate',
1521
- domain: 'pipeline',
1522
- operation: 'stage.skip',
1523
- description: 'pipeline.stage.skip (mutate)',
1524
- tier: 1,
1525
- idempotent: false,
1526
- sessionRequired: false,
1527
- requiredParams: [],
1528
- },
1529
- {
1530
- gateway: 'mutate',
1531
- domain: 'pipeline',
1532
- operation: 'stage.reset',
1533
- description: 'pipeline.stage.reset (mutate)',
1534
- tier: 1,
1535
- idempotent: false,
1536
- sessionRequired: false,
1537
- requiredParams: [],
1538
- },
1539
- {
1540
- gateway: 'mutate',
1541
- domain: 'pipeline',
1542
- operation: 'stage.gate.pass',
1543
- description: 'pipeline.stage.gate.pass (mutate)',
1544
- tier: 1,
1545
- idempotent: false,
1546
- sessionRequired: false,
1547
- requiredParams: [],
1548
- },
1549
- {
1550
- gateway: 'mutate',
1551
- domain: 'pipeline',
1552
- operation: 'stage.gate.fail',
1553
- description: 'pipeline.stage.gate.fail (mutate)',
1554
- tier: 1,
1555
- idempotent: false,
1556
- sessionRequired: false,
1557
- requiredParams: [],
1558
- },
1559
- // pipeline manifest mutate operations (T5241 — moved from memory)
1560
- {
1561
- gateway: 'mutate',
1562
- domain: 'pipeline',
1563
- operation: 'manifest.append',
1564
- description: 'pipeline.manifest.append (mutate) — append entry to MANIFEST.jsonl',
1565
- tier: 1,
1566
- idempotent: false,
1567
- sessionRequired: false,
1568
- requiredParams: ['entry'],
1569
- },
1570
- {
1571
- gateway: 'mutate',
1572
- domain: 'pipeline',
1573
- operation: 'manifest.archive',
1574
- description: 'pipeline.manifest.archive (mutate) — archive old manifest entries',
1575
- tier: 1,
1576
- idempotent: false,
1577
- sessionRequired: false,
1578
- requiredParams: ['beforeDate'],
1579
- },
1580
- // T5326: Phase mutation operations
1581
- {
1582
- gateway: 'mutate',
1583
- domain: 'pipeline',
1584
- operation: 'phase.set',
1585
- description: 'Set the active phase',
1586
- tier: 1,
1587
- idempotent: false,
1588
- sessionRequired: false,
1589
- requiredParams: ['phaseId'],
1590
- params: [
1591
- {
1592
- name: 'phaseId',
1593
- type: 'string',
1594
- required: true,
1595
- description: 'Phase slug to set as current',
1596
- },
1597
- {
1598
- name: 'rollback',
1599
- type: 'boolean',
1600
- required: false,
1601
- description: 'Allow backward phase movement',
1602
- },
1603
- { name: 'force', type: 'boolean', required: false, description: 'Skip confirmation prompt' },
1604
- {
1605
- name: 'dryRun',
1606
- type: 'boolean',
1607
- required: false,
1608
- description: 'Preview changes without modifying files',
1609
- },
1610
- ],
1611
- },
1612
- // phase.start and phase.complete removed — merged into phase.set via action param (T5615)
1613
- {
1614
- gateway: 'mutate',
1615
- domain: 'pipeline',
1616
- operation: 'phase.advance',
1617
- description: 'Complete current phase and start next',
1618
- tier: 1,
1619
- idempotent: false,
1620
- sessionRequired: false,
1621
- requiredParams: [],
1622
- params: [
1623
- {
1624
- name: 'force',
1625
- type: 'boolean',
1626
- required: false,
1627
- description: 'Skip validation and interactive prompt',
1628
- },
1629
- ],
1630
- },
1631
- {
1632
- gateway: 'mutate',
1633
- domain: 'pipeline',
1634
- operation: 'phase.rename',
1635
- description: 'Rename a phase and update all task references',
1636
- tier: 1,
1637
- idempotent: false,
1638
- sessionRequired: false,
1639
- requiredParams: ['oldName', 'newName'],
1640
- },
1641
- {
1642
- gateway: 'mutate',
1643
- domain: 'pipeline',
1644
- operation: 'phase.delete',
1645
- description: 'Delete a phase with task reassignment protection',
1646
- tier: 1,
1647
- idempotent: false,
1648
- sessionRequired: false,
1649
- requiredParams: ['phaseId'],
1650
- params: [
1651
- { name: 'phaseId', type: 'string', required: true, description: 'Phase slug to delete' },
1652
- {
1653
- name: 'reassignTo',
1654
- type: 'string',
1655
- required: false,
1656
- description: 'Reassign tasks to another phase',
1657
- },
1658
- { name: 'force', type: 'boolean', required: false, description: 'Required safety flag' },
1659
- ],
1660
- },
1661
- // T5405: WarpChain pipeline mutate operations
1662
- {
1663
- gateway: 'mutate',
1664
- domain: 'pipeline',
1665
- operation: 'chain.add',
1666
- description: 'pipeline.chain.add (mutate) — store a validated chain definition',
1667
- tier: 2,
1668
- idempotent: false,
1669
- sessionRequired: false,
1670
- requiredParams: ['chain'],
1671
- },
1672
- {
1673
- gateway: 'mutate',
1674
- domain: 'pipeline',
1675
- operation: 'chain.instantiate',
1676
- description: 'pipeline.chain.instantiate (mutate) — create chain instance for epic',
1677
- tier: 2,
1678
- idempotent: false,
1679
- sessionRequired: false,
1680
- requiredParams: ['chainId', 'epicId'],
1681
- },
1682
- {
1683
- gateway: 'mutate',
1684
- domain: 'pipeline',
1685
- operation: 'chain.advance',
1686
- description: 'pipeline.chain.advance (mutate) — advance instance to next stage',
1687
- tier: 2,
1688
- idempotent: false,
1689
- sessionRequired: false,
1690
- requiredParams: ['instanceId', 'nextStage'],
1691
- },
1692
- {
1693
- gateway: 'mutate',
1694
- domain: 'check',
1695
- operation: 'compliance.record',
1696
- description: 'check.compliance.record (mutate)',
1697
- tier: 1,
1698
- idempotent: false,
1699
- sessionRequired: false,
1700
- requiredParams: [],
1701
- },
1702
- {
1703
- gateway: 'mutate',
1704
- domain: 'check',
1705
- operation: 'test.run',
1706
- description: 'check.test.run (mutate)',
1707
- tier: 1,
1708
- idempotent: false,
1709
- sessionRequired: false,
1710
- requiredParams: [],
1711
- },
1712
- {
1713
- gateway: 'mutate',
1714
- domain: 'check',
1715
- operation: 'compliance.sync',
1716
- description: 'check.compliance.sync (mutate) — sync project compliance metrics to global',
1717
- tier: 1,
1718
- idempotent: false,
1719
- sessionRequired: false,
1720
- requiredParams: [],
1721
- },
1722
- {
1723
- gateway: 'mutate',
1724
- domain: 'check',
1725
- operation: 'gate.set',
1726
- description: 'check.gate.set (mutate) — write path of former gate.verify; set/reset gates (T5615)',
1727
- tier: 1,
1728
- idempotent: false,
1729
- sessionRequired: false,
1730
- requiredParams: [],
1731
- },
1732
- {
1733
- gateway: 'query',
1734
- domain: 'pipeline',
1735
- operation: 'release.list',
1736
- description: 'List all releases from release_manifests table',
1737
- tier: 1,
1738
- idempotent: true,
1739
- sessionRequired: false,
1740
- requiredParams: [],
1741
- },
1742
- {
1743
- gateway: 'query',
1744
- domain: 'pipeline',
1745
- operation: 'release.show',
1746
- description: 'Show details for a specific release version',
1747
- tier: 1,
1748
- idempotent: true,
1749
- sessionRequired: false,
1750
- requiredParams: ['version'],
1751
- },
1752
- {
1753
- gateway: 'query',
1754
- domain: 'pipeline',
1755
- operation: 'release.channel.show',
1756
- description: 'Show the current release channel based on git branch (latest/beta/alpha)',
1757
- tier: 1,
1758
- idempotent: true,
1759
- sessionRequired: false,
1760
- requiredParams: [],
1761
- },
1762
- // release.prepare/changelog/commit/tag/push/gates.run removed — merged into release.ship via step param (T5615)
1763
- {
1764
- gateway: 'mutate',
1765
- domain: 'pipeline',
1766
- operation: 'release.cancel',
1767
- description: 'pipeline.release.cancel (mutate)',
1768
- tier: 1,
1769
- idempotent: false,
1770
- sessionRequired: false,
1771
- requiredParams: ['version'],
1772
- },
1773
- {
1774
- gateway: 'mutate',
1775
- domain: 'pipeline',
1776
- operation: 'release.rollback',
1777
- description: 'pipeline.release.rollback (mutate)',
1778
- tier: 1,
1779
- idempotent: false,
1780
- sessionRequired: false,
1781
- requiredParams: [],
1782
- },
1783
- {
1784
- gateway: 'mutate',
1785
- domain: 'pipeline',
1786
- operation: 'release.ship',
1787
- description: 'Ship a release: validate gates → write CHANGELOG → git commit/tag/push → record provenance; absorbs prepare/changelog/commit/tag/push/gates.run via step param',
1788
- tier: 1,
1789
- idempotent: false,
1790
- sessionRequired: false,
1791
- requiredParams: ['version', 'epicId'],
1792
- },
1793
- {
1794
- gateway: 'mutate',
1795
- domain: 'admin',
1796
- operation: 'init',
1797
- description: 'admin.init (mutate)',
1798
- tier: 1,
1799
- idempotent: false,
1800
- sessionRequired: false,
1801
- requiredParams: [],
1802
- },
1803
- {
1804
- gateway: 'mutate',
1805
- domain: 'admin',
1806
- operation: 'config.set',
1807
- description: 'admin.config.set (mutate)',
1808
- tier: 1,
1809
- idempotent: false,
1810
- sessionRequired: false,
1811
- requiredParams: [],
1812
- },
1813
- {
1814
- gateway: 'mutate',
1815
- domain: 'admin',
1816
- operation: 'backup',
1817
- description: 'admin.backup (mutate) — absorbs restore and backup.restore via action param',
1818
- tier: 1,
1819
- idempotent: false,
1820
- sessionRequired: false,
1821
- requiredParams: [],
1822
- },
1823
- // admin.restore and admin.backup.restore removed — merged into admin.backup via action param (T5615)
1824
- {
1825
- gateway: 'mutate',
1826
- domain: 'admin',
1827
- operation: 'migrate',
1828
- description: 'admin.migrate (mutate)',
1829
- tier: 1,
1830
- idempotent: false,
1831
- sessionRequired: false,
1832
- requiredParams: [],
1833
- },
1834
- // admin.sync/sync.status/sync.clear moved to tools.todowrite.* (T5615)
1835
- {
1836
- gateway: 'mutate',
1837
- domain: 'admin',
1838
- operation: 'cleanup',
1839
- description: 'admin.cleanup (mutate)',
1840
- tier: 1,
1841
- idempotent: false,
1842
- sessionRequired: false,
1843
- requiredParams: [],
1844
- },
1845
- {
1846
- gateway: 'mutate',
1847
- domain: 'admin',
1848
- operation: 'job.cancel',
1849
- description: 'admin.job.cancel (mutate)',
1850
- tier: 1,
1851
- idempotent: false,
1852
- sessionRequired: false,
1853
- requiredParams: [],
1854
- },
1855
- {
1856
- gateway: 'mutate',
1857
- domain: 'admin',
1858
- operation: 'safestop',
1859
- description: 'admin.safestop (mutate)',
1860
- tier: 1,
1861
- idempotent: false,
1862
- sessionRequired: false,
1863
- requiredParams: [],
1864
- },
1865
- {
1866
- gateway: 'mutate',
1867
- domain: 'admin',
1868
- operation: 'inject.generate',
1869
- description: 'admin.inject.generate (mutate)',
1870
- tier: 1,
1871
- idempotent: false,
1872
- sessionRequired: false,
1873
- requiredParams: [],
1874
- },
1875
- // admin.sequence (mutate) removed — duplicate name; expose via config.set if needed (T5615)
1876
- // tools.issue.add.bug/feature/help moved to ct-github-issues plugin (T5615)
1877
- // tools.issue.generate.config removed — stub with no runtime need (T5615)
1878
- {
1879
- gateway: 'mutate',
1880
- domain: 'tools',
1881
- operation: 'skill.install',
1882
- description: 'tools.skill.install (mutate)',
1883
- tier: 1,
1884
- idempotent: false,
1885
- sessionRequired: false,
1886
- requiredParams: [],
1887
- },
1888
- {
1889
- gateway: 'mutate',
1890
- domain: 'tools',
1891
- operation: 'skill.uninstall',
1892
- description: 'tools.skill.uninstall (mutate)',
1893
- tier: 1,
1894
- idempotent: false,
1895
- sessionRequired: false,
1896
- requiredParams: [],
1897
- },
1898
- // skill.enable/disable removed — aliases for install/uninstall (T5615)
1899
- // skill.configure removed — stub with no real behavior (T5615)
1900
- {
1901
- gateway: 'mutate',
1902
- domain: 'tools',
1903
- operation: 'skill.refresh',
1904
- description: 'tools.skill.refresh (mutate)',
1905
- tier: 1,
1906
- idempotent: false,
1907
- sessionRequired: false,
1908
- requiredParams: [],
1909
- },
1910
- {
1911
- gateway: 'mutate',
1912
- domain: 'tools',
1913
- operation: 'provider.inject',
1914
- description: 'tools.provider.inject (mutate)',
1915
- tier: 1,
1916
- idempotent: false,
1917
- sessionRequired: false,
1918
- requiredParams: [],
1919
- },
1920
- // TodoWrite ops moved from admin domain (T5615)
1921
- {
1922
- gateway: 'query',
1923
- domain: 'tools',
1924
- operation: 'todowrite.status',
1925
- description: 'tools.todowrite.status (query) — TodoWrite sync status; moved from admin.sync.status (T5615)',
1926
- tier: 1,
1927
- idempotent: true,
1928
- sessionRequired: false,
1929
- requiredParams: [],
1930
- },
1931
- {
1932
- gateway: 'mutate',
1933
- domain: 'tools',
1934
- operation: 'todowrite.sync',
1935
- description: 'tools.todowrite.sync (mutate) — TodoWrite sync; moved from admin.sync (T5615)',
1936
- tier: 1,
1937
- idempotent: false,
1938
- sessionRequired: false,
1939
- requiredParams: [],
1940
- },
1941
- {
1942
- gateway: 'mutate',
1943
- domain: 'tools',
1944
- operation: 'todowrite.clear',
1945
- description: 'tools.todowrite.clear (mutate) — clear TodoWrite sync state; moved from admin.sync.clear (T5615)',
1946
- tier: 1,
1947
- idempotent: false,
1948
- sessionRequired: false,
1949
- requiredParams: [],
1950
- params: [
1951
- {
1952
- name: 'dryRun',
1953
- type: 'boolean',
1954
- required: false,
1955
- description: 'Preview what would be cleared',
1956
- },
1957
- ],
1958
- },
1959
- // === adapter sub-domain (T5240) ===
1960
- {
1961
- gateway: 'query',
1962
- domain: 'tools',
1963
- operation: 'adapter.list',
1964
- description: 'tools.adapter.list (query) — list all discovered provider adapters',
1965
- tier: 2,
1966
- idempotent: true,
1967
- sessionRequired: false,
1968
- requiredParams: [],
1969
- },
1970
- {
1971
- gateway: 'query',
1972
- domain: 'tools',
1973
- operation: 'adapter.show',
1974
- description: 'tools.adapter.show (query) — show details for a specific adapter',
1975
- tier: 2,
1976
- idempotent: true,
1977
- sessionRequired: false,
1978
- requiredParams: ['id'],
1979
- params: [{ name: 'id', type: 'string', required: true, description: 'Adapter ID' }],
1980
- },
1981
- {
1982
- gateway: 'query',
1983
- domain: 'tools',
1984
- operation: 'adapter.detect',
1985
- description: 'tools.adapter.detect (query) — detect active providers in current environment',
1986
- tier: 2,
1987
- idempotent: true,
1988
- sessionRequired: false,
1989
- requiredParams: [],
1990
- },
1991
- {
1992
- gateway: 'query',
1993
- domain: 'tools',
1994
- operation: 'adapter.health',
1995
- description: 'tools.adapter.health (query) — health status for adapters',
1996
- tier: 2,
1997
- idempotent: true,
1998
- sessionRequired: false,
1999
- requiredParams: [],
2000
- params: [
2001
- {
2002
- name: 'id',
2003
- type: 'string',
2004
- required: false,
2005
- description: 'Specific adapter ID (omit for all)',
2006
- },
2007
- ],
2008
- },
2009
- {
2010
- gateway: 'mutate',
2011
- domain: 'tools',
2012
- operation: 'adapter.activate',
2013
- description: 'tools.adapter.activate (mutate) — load and activate a provider adapter',
2014
- tier: 2,
2015
- idempotent: false,
2016
- sessionRequired: false,
2017
- requiredParams: ['id'],
2018
- params: [{ name: 'id', type: 'string', required: true, description: 'Adapter ID to activate' }],
2019
- },
2020
- {
2021
- gateway: 'mutate',
2022
- domain: 'tools',
2023
- operation: 'adapter.dispose',
2024
- description: 'tools.adapter.dispose (mutate) — dispose one or all adapters',
2025
- tier: 2,
2026
- idempotent: true,
2027
- sessionRequired: false,
2028
- requiredParams: [],
2029
- params: [
2030
- {
2031
- name: 'id',
2032
- type: 'string',
2033
- required: false,
2034
- description: 'Adapter ID (omit to dispose all)',
2035
- },
2036
- ],
2037
- },
2038
- // T4916: Global install refresh
2039
- {
2040
- gateway: 'mutate',
2041
- domain: 'admin',
2042
- operation: 'install.global',
2043
- description: 'Refresh global CLEO setup: provider files, MCP configs, ~/.agents/AGENTS.md',
2044
- tier: 2,
2045
- idempotent: true,
2046
- sessionRequired: false,
2047
- requiredParams: [],
2048
- },
2049
- // admin.grade/grade.list/archive.stats moved to check domain (T5615)
2050
- // admin.token.summary/list/show merged into admin.token (query) (T5615)
2051
- {
2052
- gateway: 'query',
2053
- domain: 'admin',
2054
- operation: 'token',
2055
- description: 'admin.token (query) — summarize/list/show token telemetry; absorbs token.summary, token.list, token.show via action param',
2056
- tier: 2,
2057
- idempotent: true,
2058
- sessionRequired: false,
2059
- requiredParams: [],
2060
- params: [
2061
- {
2062
- name: 'action',
2063
- type: 'string',
2064
- required: false,
2065
- description: 'Action: summary (default), list, or show',
2066
- },
2067
- { name: 'tokenId', type: 'string', required: false, description: 'Token ID for show action' },
2068
- { name: 'provider', type: 'string', required: false, description: 'Filter by provider' },
2069
- { name: 'transport', type: 'string', required: false, description: 'Filter by transport' },
2070
- { name: 'domain', type: 'string', required: false, description: 'Filter by domain' },
2071
- {
2072
- name: 'operationName',
2073
- type: 'string',
2074
- required: false,
2075
- description: 'Filter by operation name',
2076
- },
2077
- { name: 'sessionId', type: 'string', required: false, description: 'Filter by session ID' },
2078
- { name: 'taskId', type: 'string', required: false, description: 'Filter by task ID' },
2079
- { name: 'limit', type: 'number', required: false, description: 'Maximum records to return' },
2080
- {
2081
- name: 'offset',
2082
- type: 'number',
2083
- required: false,
2084
- description: 'Skip this many records before returning results',
2085
- },
2086
- ],
2087
- },
2088
- // admin.token.record/delete/clear merged into admin.token (mutate) (T5615)
2089
- {
2090
- gateway: 'mutate',
2091
- domain: 'admin',
2092
- operation: 'token',
2093
- description: 'admin.token (mutate) — record/delete/clear token telemetry; absorbs token.record, token.delete, token.clear via action param',
2094
- tier: 2,
2095
- idempotent: false,
2096
- sessionRequired: false,
2097
- requiredParams: [],
2098
- params: [
2099
- {
2100
- name: 'action',
2101
- type: 'string',
2102
- required: false,
2103
- description: 'Action: record (default), delete, or clear',
2104
- },
2105
- {
2106
- name: 'tokenId',
2107
- type: 'string',
2108
- required: false,
2109
- description: 'Token ID for delete action',
2110
- },
2111
- ],
2112
- },
2113
- // ADR operations (ADR-017 §2, Tier 2 — admin domain)
2114
- // admin.adr.list merged into adr.find (absent query = list all) (T5615)
2115
- {
2116
- gateway: 'query',
2117
- domain: 'admin',
2118
- operation: 'adr.show',
2119
- description: 'admin.adr.show (query) — retrieve single ADR by ID with frontmatter',
2120
- tier: 2,
2121
- idempotent: true,
2122
- sessionRequired: false,
2123
- requiredParams: ['adrId'],
2124
- },
2125
- {
2126
- gateway: 'mutate',
2127
- domain: 'admin',
2128
- operation: 'adr.sync',
2129
- description: 'admin.adr.sync (mutate) — sync .cleo/adrs/ markdown files into architecture_decisions DB table; absorbs adr.validate via validate flag',
2130
- tier: 2,
2131
- idempotent: true,
2132
- sessionRequired: false,
2133
- requiredParams: [],
2134
- },
2135
- // admin.adr.validate removed — merged into adr.sync via validate flag (T5615)
2136
- {
2137
- gateway: 'query',
2138
- domain: 'admin',
2139
- operation: 'adr.find',
2140
- description: 'admin.adr.find (query) — fuzzy search ADRs; absorbs adr.list when query absent',
2141
- tier: 1,
2142
- idempotent: true,
2143
- sessionRequired: false,
2144
- requiredParams: [],
2145
- params: [
2146
- {
2147
- name: 'query',
2148
- type: 'string',
2149
- required: false,
2150
- description: 'Search query (omit to list all ADRs)',
2151
- },
2152
- { name: 'status', type: 'string', required: false, description: 'Filter ADRs by status' },
2153
- {
2154
- name: 'since',
2155
- type: 'string',
2156
- required: false,
2157
- description: 'Filter ADRs created on or after this date',
2158
- },
2159
- { name: 'limit', type: 'number', required: false, description: 'Maximum ADRs to return' },
2160
- {
2161
- name: 'offset',
2162
- type: 'number',
2163
- required: false,
2164
- description: 'Skip this many ADRs before returning results',
2165
- },
2166
- ],
2167
- },
2168
- // admin.doctor removed — merged into admin.health via mode:"diagnose" param (T5615)
2169
- // admin.fix removed — merged into admin.health (mutate) via mode:"repair" param (T5615)
2170
- {
2171
- gateway: 'mutate',
2172
- domain: 'admin',
2173
- operation: 'health',
2174
- description: 'admin.health (mutate) — auto-fix failed health/doctor checks; mode:"repair" form of admin.health query (T5615)',
2175
- tier: 1,
2176
- idempotent: false,
2177
- sessionRequired: false,
2178
- requiredParams: [],
2179
- },
2180
- // admin.context.inject moved from session.context.inject (T5615)
2181
- {
2182
- gateway: 'mutate',
2183
- domain: 'admin',
2184
- operation: 'context.inject',
2185
- description: 'admin.context.inject (mutate) — inject protocol content into session context; moved from session domain (T5615)',
2186
- tier: 1,
2187
- idempotent: true,
2188
- sessionRequired: false,
2189
- requiredParams: ['protocolType'],
2190
- },
2191
- // admin.snapshot.export/export.tasks merged into admin.export via scope param (T5615)
2192
- {
2193
- gateway: 'query',
2194
- domain: 'admin',
2195
- operation: 'export',
2196
- description: 'admin.export (query) — export tasks; absorbs snapshot.export and export.tasks via scope param',
2197
- tier: 2,
2198
- idempotent: true,
2199
- sessionRequired: false,
2200
- requiredParams: [],
2201
- },
2202
- // admin.snapshot.import/import.tasks merged into admin.import via scope param (T5615)
2203
- {
2204
- gateway: 'mutate',
2205
- domain: 'admin',
2206
- operation: 'import',
2207
- description: 'admin.import (mutate) — import tasks; absorbs snapshot.import and import.tasks via scope param',
2208
- tier: 2,
2209
- idempotent: false,
2210
- sessionRequired: false,
2211
- requiredParams: ['file'],
2212
- },
2213
- {
2214
- gateway: 'mutate',
2215
- domain: 'admin',
2216
- operation: 'detect',
2217
- description: 'Refresh project-context.json — re-detect project type, framework, and LLM hints',
2218
- tier: 1,
2219
- idempotent: true,
2220
- sessionRequired: false,
2221
- requiredParams: [],
2222
- },
2223
- {
2224
- gateway: 'query',
2225
- domain: 'admin',
2226
- operation: 'map',
2227
- description: 'admin.map (query) — analyze codebase structure, return structured mapping',
2228
- tier: 1,
2229
- idempotent: true,
2230
- sessionRequired: false,
2231
- requiredParams: [],
2232
- params: [
2233
- {
2234
- name: 'focus',
2235
- type: 'string',
2236
- required: false,
2237
- description: 'Focus analysis on one area: stack, architecture, structure, conventions, testing, integrations, concerns',
2238
- },
2239
- ],
2240
- },
2241
- {
2242
- gateway: 'mutate',
2243
- domain: 'admin',
2244
- operation: 'map',
2245
- description: 'admin.map (mutate) — analyze codebase and store findings to brain.db',
2246
- tier: 1,
2247
- idempotent: true,
2248
- sessionRequired: false,
2249
- requiredParams: [],
2250
- params: [
2251
- {
2252
- name: 'focus',
2253
- type: 'string',
2254
- required: false,
2255
- description: 'Focus analysis on one area: stack, architecture, structure, conventions, testing, integrations, concerns',
2256
- },
2257
- ],
2258
- },
2259
- // ---------------------------------------------------------------------------
2260
- // nexus.share — multi-contributor operations
2261
- // ---------------------------------------------------------------------------
2262
- {
2263
- gateway: 'query',
2264
- domain: 'nexus',
2265
- operation: 'share.status',
2266
- description: 'nexus.share.status (query) — sharing status',
2267
- tier: 2,
2268
- idempotent: true,
2269
- sessionRequired: false,
2270
- requiredParams: [],
2271
- },
2272
- // nexus.share.remotes removed — git CLI wrapper (T5615)
2273
- // nexus.share.sync.status removed — git CLI wrapper (T5615)
2274
- {
2275
- gateway: 'mutate',
2276
- domain: 'nexus',
2277
- operation: 'share.snapshot.export',
2278
- description: 'nexus.share.snapshot.export (mutate) — export project snapshot',
2279
- tier: 2,
2280
- idempotent: false,
2281
- sessionRequired: false,
2282
- requiredParams: [],
2283
- },
2284
- {
2285
- gateway: 'mutate',
2286
- domain: 'nexus',
2287
- operation: 'share.snapshot.import',
2288
- description: 'nexus.share.snapshot.import (mutate) — import project snapshot',
2289
- tier: 2,
2290
- idempotent: false,
2291
- sessionRequired: false,
2292
- requiredParams: [],
2293
- },
2294
- // nexus.share.sync.gitignore/remote.add/remote.remove/share.push/share.pull removed — git wrappers (T5615)
2295
- // ---------------------------------------------------------------------------
2296
- // nexus — Cross-project coordination (BRAIN Network)
2297
- // ---------------------------------------------------------------------------
2298
- // Query operations
2299
- {
2300
- gateway: 'query',
2301
- domain: 'nexus',
2302
- operation: 'status',
2303
- description: 'nexus.status (query) — overall NEXUS health status',
2304
- tier: 1,
2305
- idempotent: true,
2306
- sessionRequired: false,
2307
- requiredParams: [],
2308
- },
2309
- {
2310
- gateway: 'query',
2311
- domain: 'nexus',
2312
- operation: 'list',
2313
- description: 'nexus.list (query) — list all registered NEXUS projects',
2314
- tier: 1,
2315
- idempotent: true,
2316
- sessionRequired: false,
2317
- requiredParams: [],
2318
- },
2319
- {
2320
- gateway: 'query',
2321
- domain: 'nexus',
2322
- operation: 'show',
2323
- description: 'nexus.show (query) — show a specific project by name or hash',
2324
- tier: 2,
2325
- idempotent: true,
2326
- sessionRequired: false,
2327
- requiredParams: ['name'],
2328
- },
2329
- // nexus.query renamed to nexus.resolve — 'query' violates VERB-STANDARDS (T5615)
2330
- {
2331
- gateway: 'query',
2332
- domain: 'nexus',
2333
- operation: 'resolve',
2334
- description: 'nexus.resolve (query) — resolve a cross-project project:taskId reference; renamed from nexus.query (T5615)',
2335
- tier: 2,
2336
- idempotent: true,
2337
- sessionRequired: false,
2338
- requiredParams: ['query'],
2339
- },
2340
- {
2341
- gateway: 'query',
2342
- domain: 'nexus',
2343
- operation: 'deps',
2344
- description: 'nexus.deps (query) — cross-project dependency analysis',
2345
- tier: 2,
2346
- idempotent: true,
2347
- sessionRequired: false,
2348
- requiredParams: ['query'],
2349
- },
2350
- {
2351
- gateway: 'query',
2352
- domain: 'nexus',
2353
- operation: 'graph',
2354
- description: 'nexus.graph (query) — global dependency graph across all projects',
2355
- tier: 2,
2356
- idempotent: true,
2357
- sessionRequired: false,
2358
- requiredParams: [],
2359
- },
2360
- {
2361
- gateway: 'query',
2362
- domain: 'nexus',
2363
- operation: 'path.show',
2364
- description: 'nexus.path.show (query) — show critical dependency path across projects',
2365
- tier: 2,
2366
- idempotent: true,
2367
- sessionRequired: false,
2368
- requiredParams: [],
2369
- },
2370
- {
2371
- gateway: 'query',
2372
- domain: 'nexus',
2373
- operation: 'blockers.show',
2374
- description: 'nexus.blockers.show (query) — show blocking impact for a task query',
2375
- tier: 2,
2376
- idempotent: true,
2377
- sessionRequired: false,
2378
- requiredParams: ['query'],
2379
- },
2380
- {
2381
- gateway: 'query',
2382
- domain: 'nexus',
2383
- operation: 'orphans.list',
2384
- description: 'nexus.orphans.list (query) — list orphaned cross-project dependencies',
2385
- tier: 2,
2386
- idempotent: true,
2387
- sessionRequired: false,
2388
- requiredParams: [],
2389
- },
2390
- // nexus.critical-path/blocking/orphans removed — aliases for path.show/blockers.show/orphans.list (T5615)
2391
- {
2392
- gateway: 'query',
2393
- domain: 'nexus',
2394
- operation: 'discover',
2395
- description: 'nexus.discover (query) — discover related tasks across registered projects',
2396
- tier: 2,
2397
- idempotent: true,
2398
- sessionRequired: false,
2399
- requiredParams: ['query'],
2400
- },
2401
- {
2402
- gateway: 'query',
2403
- domain: 'nexus',
2404
- operation: 'search',
2405
- description: 'nexus.search (query) — search for patterns across registered projects',
2406
- tier: 2,
2407
- idempotent: true,
2408
- sessionRequired: false,
2409
- requiredParams: ['pattern'],
2410
- },
2411
- // Mutate operations
2412
- {
2413
- gateway: 'mutate',
2414
- domain: 'nexus',
2415
- operation: 'init',
2416
- description: 'nexus.init (mutate) — initialize NEXUS (creates registry and directories)',
2417
- tier: 2,
2418
- idempotent: true,
2419
- sessionRequired: false,
2420
- requiredParams: [],
2421
- },
2422
- {
2423
- gateway: 'mutate',
2424
- domain: 'nexus',
2425
- operation: 'register',
2426
- description: 'nexus.register (mutate) — register a project in NEXUS',
2427
- tier: 2,
2428
- idempotent: false,
2429
- sessionRequired: false,
2430
- requiredParams: ['path'],
2431
- },
2432
- {
2433
- gateway: 'mutate',
2434
- domain: 'nexus',
2435
- operation: 'unregister',
2436
- description: 'nexus.unregister (mutate) — remove a project from NEXUS',
2437
- tier: 2,
2438
- idempotent: false,
2439
- sessionRequired: false,
2440
- requiredParams: ['name'],
2441
- },
2442
- // nexus.sync.all merged into nexus.sync via optional name param (T5615)
2443
- {
2444
- gateway: 'mutate',
2445
- domain: 'nexus',
2446
- operation: 'sync',
2447
- description: 'nexus.sync (mutate) — sync project(s) metadata; absorbs sync.all when name omitted',
2448
- tier: 2,
2449
- idempotent: true,
2450
- sessionRequired: false,
2451
- requiredParams: [],
2452
- params: [
2453
- {
2454
- name: 'name',
2455
- type: 'string',
2456
- required: false,
2457
- description: 'Project name to sync (omit to sync all)',
2458
- },
2459
- ],
2460
- },
2461
- {
2462
- gateway: 'mutate',
2463
- domain: 'nexus',
2464
- operation: 'permission.set',
2465
- description: 'nexus.permission.set (mutate) — update project permissions',
2466
- tier: 2,
2467
- idempotent: true,
2468
- sessionRequired: false,
2469
- requiredParams: ['name', 'level'],
2470
- },
2471
- {
2472
- gateway: 'mutate',
2473
- domain: 'nexus',
2474
- operation: 'reconcile',
2475
- description: 'nexus.reconcile (mutate) — reconcile project identity with global nexus registry',
2476
- tier: 2,
2477
- idempotent: true,
2478
- sessionRequired: false,
2479
- requiredParams: [],
2480
- },
2481
- // ---------------------------------------------------------------------------
2482
- // sticky — Ephemeral notes for quick capture (T5282)
2483
- // ---------------------------------------------------------------------------
2484
- // Query operations
2485
- {
2486
- gateway: 'query',
2487
- domain: 'sticky',
2488
- operation: 'list',
2489
- description: 'sticky.list (query) — list sticky notes',
2490
- tier: 1,
2491
- idempotent: true,
2492
- sessionRequired: false,
2493
- requiredParams: [],
2494
- },
2495
- {
2496
- gateway: 'query',
2497
- domain: 'sticky',
2498
- operation: 'show',
2499
- description: 'sticky.show (query) — show a specific sticky note',
2500
- tier: 1,
2501
- idempotent: true,
2502
- sessionRequired: false,
2503
- requiredParams: ['stickyId'],
2504
- },
2505
- // Mutate operations
2506
- {
2507
- gateway: 'mutate',
2508
- domain: 'sticky',
2509
- operation: 'add',
2510
- description: 'sticky.add (mutate) — create a new sticky note',
2511
- tier: 1,
2512
- idempotent: false,
2513
- sessionRequired: false,
2514
- requiredParams: ['content'],
2515
- },
2516
- {
2517
- gateway: 'mutate',
2518
- domain: 'sticky',
2519
- operation: 'convert',
2520
- description: 'sticky.convert (mutate) — convert sticky to task, memory, task_note, or session_note',
2521
- tier: 1,
2522
- idempotent: false,
2523
- sessionRequired: false,
2524
- requiredParams: ['stickyId', 'targetType'],
2525
- params: [
2526
- { name: 'stickyId', type: 'string', required: true, description: 'ID of the sticky note' },
2527
- {
2528
- name: 'targetType',
2529
- type: 'string',
2530
- required: true,
2531
- description: 'Target type: task, memory, task_note, or session_note',
2532
- },
2533
- {
2534
- name: 'title',
2535
- type: 'string',
2536
- required: false,
2537
- description: 'Optional task title (for task conversion)',
2538
- },
2539
- {
2540
- name: 'memoryType',
2541
- type: 'string',
2542
- required: false,
2543
- description: 'Optional memory type (for memory conversion)',
2544
- },
2545
- {
2546
- name: 'taskId',
2547
- type: 'string',
2548
- required: false,
2549
- description: 'Target task ID (required for task_note conversion)',
2550
- },
2551
- {
2552
- name: 'sessionId',
2553
- type: 'string',
2554
- required: false,
2555
- description: 'Target session ID (optional for session_note conversion, defaults to active session)',
2556
- },
2557
- ],
2558
- },
2559
- {
2560
- gateway: 'mutate',
2561
- domain: 'sticky',
2562
- operation: 'archive',
2563
- description: 'sticky.archive (mutate) — archive sticky notes',
2564
- tier: 1,
2565
- idempotent: true,
2566
- sessionRequired: false,
2567
- requiredParams: ['stickyId'],
2568
- },
2569
- {
2570
- gateway: 'mutate',
2571
- domain: 'sticky',
2572
- operation: 'purge',
2573
- description: 'sticky.purge (mutate) — permanently delete sticky notes',
2574
- tier: 1,
2575
- idempotent: true,
2576
- sessionRequired: false,
2577
- requiredParams: ['stickyId'],
2578
- },
2579
- // orchestrate — tessera template operations (T5411)
2580
- // tessera.show removed — merged into tessera.list via optional id param (T5615)
2581
- {
2582
- gateway: 'query',
2583
- domain: 'orchestrate',
2584
- operation: 'tessera.list',
2585
- description: 'orchestrate.tessera.list (query) — list Tessera templates; absorbs tessera.show via optional id param',
2586
- tier: 1,
2587
- idempotent: true,
2588
- sessionRequired: false,
2589
- requiredParams: [],
2590
- params: [
2591
- {
2592
- name: 'id',
2593
- type: 'string',
2594
- required: false,
2595
- description: 'Optional template ID for single-item lookup (replaces tessera.show)',
2596
- },
2597
- ],
2598
- },
2599
- {
2600
- gateway: 'mutate',
2601
- domain: 'orchestrate',
2602
- operation: 'tessera.instantiate',
2603
- description: 'orchestrate.tessera.instantiate (mutate) — instantiate a Tessera template into a chain instance',
2604
- tier: 1,
2605
- idempotent: false,
2606
- sessionRequired: false,
2607
- requiredParams: ['templateId', 'epicId'],
2608
- },
2609
- ];
2610
- // ---------------------------------------------------------------------------
2611
- // Gateway Matrix Derivation
2612
- // ---------------------------------------------------------------------------
2613
- /**
2614
- * Derive a gateway operation matrix from the registry.
2615
- *
2616
- * Returns `Record<string, string[]>` containing:
2617
- * - All canonical domains with their operations
2618
- *
2619
- * This is the SINGLE derivation point — gateways use this instead of
2620
- * maintaining independent operation lists.
2621
- */
2622
- export function deriveGatewayMatrix(gateway) {
2623
- const matrix = {};
2624
- for (const op of OPERATIONS) {
2625
- if (op.gateway !== gateway)
2626
- continue;
2627
- if (!matrix[op.domain])
2628
- matrix[op.domain] = [];
2629
- matrix[op.domain].push(op.operation);
2630
- }
2631
- return matrix;
2632
- }
2633
- /**
2634
- * Get all accepted domain names for a gateway (canonical only).
2635
- */
2636
- export function getGatewayDomains(gateway) {
2637
- return Object.keys(deriveGatewayMatrix(gateway));
2638
- }
2639
- // ---------------------------------------------------------------------------
2640
- // Lookup & Validation
2641
- // ---------------------------------------------------------------------------
2642
- /**
2643
- * Resolves a domain + operation to its registered definition.
2644
- */
2645
- export function resolve(gateway, domain, operation) {
2646
- const def = OPERATIONS.find((o) => o.gateway === gateway && o.domain === domain && o.operation === operation);
2647
- if (!def)
2648
- return undefined;
2649
- return { domain: def.domain, operation: def.operation, def };
2650
- }
2651
- /**
2652
- * Validates that all required parameters are present in the request.
2653
- * Returns an array of missing parameter keys.
2654
- */
2655
- export function validateRequiredParams(def, params) {
2656
- if (!def.requiredParams || def.requiredParams.length === 0)
2657
- return [];
2658
- const provided = params || {};
2659
- return def.requiredParams.filter((key) => provided[key] === undefined || provided[key] === null || provided[key] === '');
2660
- }
2661
- /** Get all operations for a specific canonical domain. */
2662
- export function getByDomain(domain) {
2663
- return OPERATIONS.filter((o) => o.domain === domain);
2664
- }
2665
- /** Get all operations for a specific gateway. */
2666
- export function getByGateway(gateway) {
2667
- return OPERATIONS.filter((o) => o.gateway === gateway);
2668
- }
2669
- /** Get all operations available at or below a specific tier. */
2670
- export function getByTier(tier) {
2671
- return OPERATIONS.filter((o) => o.tier <= tier);
2672
- }
2673
- /** Get a list of canonical domains that actually have operations registered. */
2674
- export function getActiveDomains() {
2675
- const active = new Set(OPERATIONS.map((o) => o.domain));
2676
- return Array.from(active);
2677
- }
2678
- /**
2679
- * Returns summary counts of operations for module validation.
2680
- */
2681
- export function getCounts() {
2682
- return {
2683
- query: OPERATIONS.filter((o) => o.gateway === 'query').length,
2684
- mutate: OPERATIONS.filter((o) => o.gateway === 'mutate').length,
2685
- total: OPERATIONS.length,
2686
- };
2687
- }
2688
- // Module load validation (dynamic, no hardcoded operation totals)
2689
- const counts = getCounts();
2690
- if (counts.total !== OPERATIONS.length) {
2691
- console.warn(`[Registry] Operation count mismatch: total=${counts.total}, registry=${OPERATIONS.length}`);
2692
- }
2693
- //# sourceMappingURL=registry.js.map