@monoes/monomindcli 1.19.0 → 2.0.1

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 (389) hide show
  1. package/.claude/agents/github/issue-tracker.md +0 -2
  2. package/.claude/agents/github/pr-manager.md +0 -2
  3. package/.claude/agents/github/repo-architect.md +3 -11
  4. package/.claude/agents/goal/goal-planner.md +0 -1
  5. package/.claude/commands/github/issue-tracker.md +0 -2
  6. package/.claude/commands/github/pr-manager.md +0 -2
  7. package/.claude/commands/github/repo-architect.md +3 -10
  8. package/.claude/commands/mastermind/help.md +3 -3
  9. package/.claude/commands/workflows/README.md +0 -1
  10. package/.claude/commands/workflows/workflow-create.md +0 -1
  11. package/.claude/commands/workflows/workflow-execute.md +1 -3
  12. package/.claude/commands/workflows/workflow-export.md +0 -2
  13. package/.claude/helpers/handlers/agent-start-handler.cjs +18 -1
  14. package/.claude/helpers/handlers/edit-handler.cjs +15 -0
  15. package/.claude/helpers/handlers/gates-handler.cjs +2 -8
  16. package/.claude/helpers/handlers/route-handler.cjs +149 -7
  17. package/.claude/helpers/handlers/session-handler.cjs +47 -25
  18. package/.claude/helpers/handlers/session-restore-handler.cjs +80 -43
  19. package/.claude/helpers/handlers/task-handler.cjs +8 -4
  20. package/.claude/helpers/hook-handler.cjs +69 -16
  21. package/.claude/helpers/intelligence.cjs +100 -9
  22. package/.claude/helpers/router.cjs +78 -5
  23. package/.claude/helpers/skill-registry.json +0 -189
  24. package/.claude/helpers/token-tracker.cjs +10 -0
  25. package/.claude/skills/github-toolkit/SKILL.md +60 -0
  26. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -15
  27. package/.claude/skills/hooks-automation/SKILL.md +0 -1
  28. package/.claude/skills/mastermind-skills/_protocol.md +1 -1
  29. package/.claude/skills/mastermind-skills/build.md +1 -2
  30. package/.claude/skills/memory-toolkit/SKILL.md +75 -0
  31. package/.claude/skills/specialagent/SKILL.md +2 -4
  32. package/.claude/skills/swarm-advanced/SKILL.md +0 -1
  33. package/README.md +13 -17
  34. package/dist/src/autopilot-state.d.ts.map +1 -1
  35. package/dist/src/autopilot-state.js +4 -5
  36. package/dist/src/autopilot-state.js.map +1 -1
  37. package/dist/src/browser/dashboard/server.d.ts.map +1 -1
  38. package/dist/src/browser/dashboard/server.js +129 -2
  39. package/dist/src/browser/dashboard/server.js.map +1 -1
  40. package/dist/src/browser/dashboard/ui.html +214 -1764
  41. package/dist/src/capabilities/index.d.ts +0 -2
  42. package/dist/src/capabilities/index.d.ts.map +1 -1
  43. package/dist/src/capabilities/index.js +0 -1
  44. package/dist/src/capabilities/index.js.map +1 -1
  45. package/dist/src/commands/agent-lifecycle.d.ts.map +1 -1
  46. package/dist/src/commands/agent-lifecycle.js +2 -6
  47. package/dist/src/commands/agent-lifecycle.js.map +1 -1
  48. package/dist/src/commands/analyze.d.ts +0 -4
  49. package/dist/src/commands/analyze.d.ts.map +1 -1
  50. package/dist/src/commands/analyze.js +1 -29
  51. package/dist/src/commands/analyze.js.map +1 -1
  52. package/dist/src/commands/browse-workflow.js +2 -2
  53. package/dist/src/commands/completions.d.ts.map +1 -1
  54. package/dist/src/commands/completions.js +3 -22
  55. package/dist/src/commands/completions.js.map +1 -1
  56. package/dist/src/commands/config.d.ts.map +1 -1
  57. package/dist/src/commands/config.js +0 -6
  58. package/dist/src/commands/config.js.map +1 -1
  59. package/dist/src/commands/doctor-project-checks.d.ts +12 -2
  60. package/dist/src/commands/doctor-project-checks.d.ts.map +1 -1
  61. package/dist/src/commands/doctor-project-checks.js +130 -22
  62. package/dist/src/commands/doctor-project-checks.js.map +1 -1
  63. package/dist/src/commands/doctor.d.ts.map +1 -1
  64. package/dist/src/commands/doctor.js +6 -5
  65. package/dist/src/commands/doctor.js.map +1 -1
  66. package/dist/src/commands/guidance.d.ts +5 -1
  67. package/dist/src/commands/guidance.d.ts.map +1 -1
  68. package/dist/src/commands/guidance.js +11 -556
  69. package/dist/src/commands/guidance.js.map +1 -1
  70. package/dist/src/commands/hive-mind-comms.d.ts.map +1 -1
  71. package/dist/src/commands/hive-mind-comms.js +11 -4
  72. package/dist/src/commands/hive-mind-comms.js.map +1 -1
  73. package/dist/src/commands/hive-mind.d.ts +4 -4
  74. package/dist/src/commands/hive-mind.d.ts.map +1 -1
  75. package/dist/src/commands/hive-mind.js +9 -6
  76. package/dist/src/commands/hive-mind.js.map +1 -1
  77. package/dist/src/commands/hooks-formatting.d.ts +1 -5
  78. package/dist/src/commands/hooks-formatting.d.ts.map +1 -1
  79. package/dist/src/commands/hooks-formatting.js +1 -18
  80. package/dist/src/commands/hooks-formatting.js.map +1 -1
  81. package/dist/src/commands/hooks-workers.d.ts +1 -1
  82. package/dist/src/commands/hooks-workers.d.ts.map +1 -1
  83. package/dist/src/commands/hooks-workers.js +82 -330
  84. package/dist/src/commands/hooks-workers.js.map +1 -1
  85. package/dist/src/commands/index.d.ts +0 -5
  86. package/dist/src/commands/index.d.ts.map +1 -1
  87. package/dist/src/commands/index.js +0 -45
  88. package/dist/src/commands/index.js.map +1 -1
  89. package/dist/src/commands/init-wizard.js +1 -1
  90. package/dist/src/commands/init-wizard.js.map +1 -1
  91. package/dist/src/commands/init.d.ts.map +1 -1
  92. package/dist/src/commands/init.js +4 -24
  93. package/dist/src/commands/init.js.map +1 -1
  94. package/dist/src/commands/neural-core.js +11 -11
  95. package/dist/src/commands/neural-core.js.map +1 -1
  96. package/dist/src/commands/neural-optimize.d.ts.map +1 -1
  97. package/dist/src/commands/neural-optimize.js +9 -11
  98. package/dist/src/commands/neural-optimize.js.map +1 -1
  99. package/dist/src/commands/neural-registry.js +10 -10
  100. package/dist/src/commands/neural-registry.js.map +1 -1
  101. package/dist/src/commands/providers.d.ts.map +1 -1
  102. package/dist/src/commands/providers.js +90 -1
  103. package/dist/src/commands/providers.js.map +1 -1
  104. package/dist/src/commands/search-universal.d.ts +7 -1
  105. package/dist/src/commands/search-universal.d.ts.map +1 -1
  106. package/dist/src/commands/search-universal.js +59 -5
  107. package/dist/src/commands/search-universal.js.map +1 -1
  108. package/dist/src/commands/security-cve.d.ts.map +1 -1
  109. package/dist/src/commands/security-cve.js +3 -5
  110. package/dist/src/commands/security-cve.js.map +1 -1
  111. package/dist/src/commands/session.d.ts.map +1 -1
  112. package/dist/src/commands/session.js +143 -3
  113. package/dist/src/commands/session.js.map +1 -1
  114. package/dist/src/commands/start.d.ts.map +1 -1
  115. package/dist/src/commands/start.js +0 -18
  116. package/dist/src/commands/start.js.map +1 -1
  117. package/dist/src/commands/swarm.d.ts.map +1 -1
  118. package/dist/src/commands/swarm.js +112 -65
  119. package/dist/src/commands/swarm.js.map +1 -1
  120. package/dist/src/consensus/audit-writer.d.ts.map +1 -1
  121. package/dist/src/consensus/audit-writer.js +43 -1
  122. package/dist/src/consensus/audit-writer.js.map +1 -1
  123. package/dist/src/consensus/tally.d.ts +19 -0
  124. package/dist/src/consensus/tally.d.ts.map +1 -0
  125. package/dist/src/consensus/tally.js +34 -0
  126. package/dist/src/consensus/tally.js.map +1 -0
  127. package/dist/src/index.d.ts +3 -2
  128. package/dist/src/index.d.ts.map +1 -1
  129. package/dist/src/index.js +9 -12
  130. package/dist/src/index.js.map +1 -1
  131. package/dist/src/init/claudemd-generator.d.ts.map +1 -1
  132. package/dist/src/init/claudemd-generator.js +10 -14
  133. package/dist/src/init/claudemd-generator.js.map +1 -1
  134. package/dist/src/init/executor.d.ts.map +1 -1
  135. package/dist/src/init/executor.js +39 -86
  136. package/dist/src/init/executor.js.map +1 -1
  137. package/dist/src/init/settings-generator.d.ts.map +1 -1
  138. package/dist/src/init/settings-generator.js +0 -12
  139. package/dist/src/init/settings-generator.js.map +1 -1
  140. package/dist/src/init/statusline-generator.d.ts.map +1 -1
  141. package/dist/src/init/statusline-generator.js +62 -0
  142. package/dist/src/init/statusline-generator.js.map +1 -1
  143. package/dist/src/init/types.d.ts +2 -6
  144. package/dist/src/init/types.d.ts.map +1 -1
  145. package/dist/src/init/types.js +0 -3
  146. package/dist/src/init/types.js.map +1 -1
  147. package/dist/src/knowledge/document-pipeline.d.ts.map +1 -1
  148. package/dist/src/knowledge/document-pipeline.js +18 -8
  149. package/dist/src/knowledge/document-pipeline.js.map +1 -1
  150. package/dist/src/mcp-client.d.ts.map +1 -1
  151. package/dist/src/mcp-client.js +0 -2
  152. package/dist/src/mcp-client.js.map +1 -1
  153. package/dist/src/mcp-server.d.ts.map +1 -1
  154. package/dist/src/mcp-server.js +12 -14
  155. package/dist/src/mcp-server.js.map +1 -1
  156. package/dist/src/mcp-tools/coherence/coherence-check.d.ts.map +1 -1
  157. package/dist/src/mcp-tools/coherence/coherence-check.js +1 -19
  158. package/dist/src/mcp-tools/coherence/coherence-check.js.map +1 -1
  159. package/dist/src/mcp-tools/coherence/types.d.ts +21 -20
  160. package/dist/src/mcp-tools/coherence/types.d.ts.map +1 -1
  161. package/dist/src/mcp-tools/coherence/types.js +3 -18
  162. package/dist/src/mcp-tools/coherence/types.js.map +1 -1
  163. package/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -1
  164. package/dist/src/mcp-tools/embeddings-tools.js +1 -7
  165. package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
  166. package/dist/src/mcp-tools/graphify-tools.js +2 -2
  167. package/dist/src/mcp-tools/graphify-tools.js.map +1 -1
  168. package/dist/src/mcp-tools/guidance-tools.d.ts.map +1 -1
  169. package/dist/src/mcp-tools/guidance-tools.js +7 -17
  170. package/dist/src/mcp-tools/guidance-tools.js.map +1 -1
  171. package/dist/src/mcp-tools/hive-mind-tools.d.ts +8 -1
  172. package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -1
  173. package/dist/src/mcp-tools/hive-mind-tools.js +174 -38
  174. package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
  175. package/dist/src/mcp-tools/hooks-advanced.d.ts +18 -0
  176. package/dist/src/mcp-tools/hooks-advanced.d.ts.map +1 -0
  177. package/dist/src/mcp-tools/hooks-advanced.js +25 -0
  178. package/dist/src/mcp-tools/hooks-advanced.js.map +1 -0
  179. package/dist/src/mcp-tools/hooks-intelligence.d.ts +4 -8
  180. package/dist/src/mcp-tools/hooks-intelligence.d.ts.map +1 -1
  181. package/dist/src/mcp-tools/hooks-intelligence.js +33 -482
  182. package/dist/src/mcp-tools/hooks-intelligence.js.map +1 -1
  183. package/dist/src/mcp-tools/hooks-routing.d.ts +1 -0
  184. package/dist/src/mcp-tools/hooks-routing.d.ts.map +1 -1
  185. package/dist/src/mcp-tools/hooks-routing.js +51 -43
  186. package/dist/src/mcp-tools/hooks-routing.js.map +1 -1
  187. package/dist/src/mcp-tools/hooks-synthesis.d.ts +31 -0
  188. package/dist/src/mcp-tools/hooks-synthesis.d.ts.map +1 -0
  189. package/dist/src/mcp-tools/hooks-synthesis.js +196 -0
  190. package/dist/src/mcp-tools/hooks-synthesis.js.map +1 -0
  191. package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
  192. package/dist/src/mcp-tools/hooks-tools.js +10 -8
  193. package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
  194. package/dist/src/mcp-tools/index.d.ts +0 -1
  195. package/dist/src/mcp-tools/index.d.ts.map +1 -1
  196. package/dist/src/mcp-tools/index.js +0 -1
  197. package/dist/src/mcp-tools/index.js.map +1 -1
  198. package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -1
  199. package/dist/src/mcp-tools/memory-tools.js +20 -29
  200. package/dist/src/mcp-tools/memory-tools.js.map +1 -1
  201. package/dist/src/mcp-tools/monograph-tools.d.ts +6 -0
  202. package/dist/src/mcp-tools/monograph-tools.d.ts.map +1 -1
  203. package/dist/src/mcp-tools/monograph-tools.js +78 -220
  204. package/dist/src/mcp-tools/monograph-tools.js.map +1 -1
  205. package/dist/src/mcp-tools/neural-tools.d.ts +9 -4
  206. package/dist/src/mcp-tools/neural-tools.d.ts.map +1 -1
  207. package/dist/src/mcp-tools/neural-tools.js +242 -506
  208. package/dist/src/mcp-tools/neural-tools.js.map +1 -1
  209. package/dist/src/mcp-tools/quality/coverage-analysis/prioritize-gaps.d.ts +12 -12
  210. package/dist/src/mcp-tools/quality/security-compliance/detect-secrets.d.ts +4 -4
  211. package/dist/src/mcp-tools/security-tools.d.ts.map +1 -1
  212. package/dist/src/mcp-tools/security-tools.js +103 -0
  213. package/dist/src/mcp-tools/security-tools.js.map +1 -1
  214. package/dist/src/memory/intelligence.d.ts +2 -1
  215. package/dist/src/memory/intelligence.d.ts.map +1 -1
  216. package/dist/src/memory/intelligence.js +56 -43
  217. package/dist/src/memory/intelligence.js.map +1 -1
  218. package/dist/src/memory/memory-bridge.d.ts.map +1 -1
  219. package/dist/src/memory/memory-bridge.js +14 -9
  220. package/dist/src/memory/memory-bridge.js.map +1 -1
  221. package/dist/src/memory/memory-read.d.ts.map +1 -1
  222. package/dist/src/memory/memory-read.js +1 -19
  223. package/dist/src/memory/memory-read.js.map +1 -1
  224. package/dist/src/orgrt/types.d.ts +847 -0
  225. package/dist/src/orgrt/types.d.ts.map +1 -0
  226. package/dist/src/orgrt/types.js +51 -0
  227. package/dist/src/orgrt/types.js.map +1 -0
  228. package/dist/src/parser.d.ts.map +1 -1
  229. package/dist/src/parser.js +31 -5
  230. package/dist/src/parser.js.map +1 -1
  231. package/dist/src/suggest.d.ts.map +1 -1
  232. package/dist/src/suggest.js +1 -7
  233. package/dist/src/suggest.js.map +1 -1
  234. package/dist/src/transfer/store/discovery.d.ts +3 -2
  235. package/dist/src/transfer/store/discovery.d.ts.map +1 -1
  236. package/dist/src/transfer/store/discovery.js +22 -70
  237. package/dist/src/transfer/store/discovery.js.map +1 -1
  238. package/dist/src/ui/collector.mjs +69 -44
  239. package/dist/src/ui/dashboard.html +112 -25
  240. package/dist/src/ui/orgs.html +54 -0
  241. package/dist/src/ui/server.mjs +87 -12
  242. package/dist/src/update/checker.d.ts.map +1 -1
  243. package/dist/src/update/checker.js +0 -1
  244. package/dist/src/update/checker.js.map +1 -1
  245. package/dist/src/utils/cosine-similarity.d.ts +22 -0
  246. package/dist/src/utils/cosine-similarity.d.ts.map +1 -0
  247. package/dist/src/utils/cosine-similarity.js +38 -0
  248. package/dist/src/utils/cosine-similarity.js.map +1 -0
  249. package/dist/src/utils/input-guards.d.ts +51 -0
  250. package/dist/src/utils/input-guards.d.ts.map +1 -0
  251. package/dist/src/utils/input-guards.js +223 -0
  252. package/dist/src/utils/input-guards.js.map +1 -0
  253. package/dist/src/utils/json-file.d.ts +33 -0
  254. package/dist/src/utils/json-file.d.ts.map +1 -0
  255. package/dist/src/utils/json-file.js +57 -0
  256. package/dist/src/utils/json-file.js.map +1 -0
  257. package/dist/tsconfig.tsbuildinfo +1 -1
  258. package/package.json +11 -7
  259. package/scripts/setup-ipfs-registry.md +14 -15
  260. package/scripts/sync-claude-assets.sh +16 -20
  261. package/.claude/agents/generated/case-analyst.md +0 -50
  262. package/.claude/agents/generated/channel-intelligence-director.md +0 -87
  263. package/.claude/agents/generated/chief-growth-officer.md +0 -88
  264. package/.claude/agents/generated/churn-analyst.md +0 -53
  265. package/.claude/agents/generated/code-reviewer.md +0 -55
  266. package/.claude/agents/generated/code-validator.md +0 -57
  267. package/.claude/agents/generated/complexity-scanner.md +0 -56
  268. package/.claude/agents/generated/content-seo-strategist.md +0 -90
  269. package/.claude/agents/generated/copy-editor.md +0 -45
  270. package/.claude/agents/generated/court-reporter.md +0 -50
  271. package/.claude/agents/generated/defender.md +0 -51
  272. package/.claude/agents/generated/devbot-orchestrator.md +0 -58
  273. package/.claude/agents/generated/devbot-planner.md +0 -63
  274. package/.claude/agents/generated/developer-community-strategist.md +0 -91
  275. package/.claude/agents/generated/editor-in-chief.md +0 -45
  276. package/.claude/agents/generated/fact-checker.md +0 -45
  277. package/.claude/agents/generated/impact-assessor.md +0 -54
  278. package/.claude/agents/generated/judge.md +0 -51
  279. package/.claude/agents/generated/outreach-partnership-strategist.md +0 -90
  280. package/.claude/agents/generated/prosecutor.md +0 -51
  281. package/.claude/agents/generated/reporter.md +0 -45
  282. package/.claude/agents/generated/social-media-strategist.md +0 -91
  283. package/.claude/agents/generated/video-visual-strategist.md +0 -90
  284. package/.claude/agents/reengineer-squad/boss.md +0 -113
  285. package/.claude/agents/reengineer-squad/critic-architect.md +0 -132
  286. package/.claude/agents/reengineer-squad/git-manager.md +0 -145
  287. package/.claude/agents/reengineer-squad/idea-generator.md +0 -95
  288. package/.claude/agents/reengineer-squad/implementer.md +0 -112
  289. package/.claude/agents/reengineer-squad/integration-planner.md +0 -112
  290. package/.claude/agents/reengineer-squad/source-analyst.md +0 -103
  291. package/.claude/agents/reengineer-squad/target-analyst.md +0 -118
  292. package/.claude/agents/reengineer-squad/tester.md +0 -105
  293. package/.claude/agents/sparc/architecture.md +0 -453
  294. package/.claude/agents/sparc/pseudocode.md +0 -299
  295. package/.claude/agents/sparc/refinement.md +0 -504
  296. package/.claude/agents/sparc/specification.md +0 -258
  297. package/.claude/agents/templates/implementer-sparc-coder.md +0 -231
  298. package/.claude/commands/sparc/analyzer.md +0 -35
  299. package/.claude/commands/sparc/architect.md +0 -36
  300. package/.claude/commands/sparc/ask.md +0 -56
  301. package/.claude/commands/sparc/batch-executor.md +0 -37
  302. package/.claude/commands/sparc/code.md +0 -48
  303. package/.claude/commands/sparc/coder.md +0 -37
  304. package/.claude/commands/sparc/debug.md +0 -42
  305. package/.claude/commands/sparc/debugger.md +0 -37
  306. package/.claude/commands/sparc/designer.md +0 -36
  307. package/.claude/commands/sparc/devops.md +0 -68
  308. package/.claude/commands/sparc/docs-writer.md +0 -39
  309. package/.claude/commands/sparc/documenter.md +0 -37
  310. package/.claude/commands/sparc/innovator.md +0 -37
  311. package/.claude/commands/sparc/integration.md +0 -42
  312. package/.claude/commands/sparc/mcp.md +0 -76
  313. package/.claude/commands/sparc/memory-manager.md +0 -57
  314. package/.claude/commands/sparc/optimizer.md +0 -37
  315. package/.claude/commands/sparc/orchestrator.md +0 -70
  316. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +0 -42
  317. package/.claude/commands/sparc/refinement-optimization-mode.md +0 -42
  318. package/.claude/commands/sparc/researcher.md +0 -37
  319. package/.claude/commands/sparc/reviewer.md +0 -37
  320. package/.claude/commands/sparc/security-review.md +0 -39
  321. package/.claude/commands/sparc/sparc-modes.md +0 -120
  322. package/.claude/commands/sparc/sparc.md +0 -71
  323. package/.claude/commands/sparc/spec-pseudocode.md +0 -39
  324. package/.claude/commands/sparc/supabase-admin.md +0 -301
  325. package/.claude/commands/sparc/swarm-coordinator.md +0 -50
  326. package/.claude/commands/sparc/tdd.md +0 -37
  327. package/.claude/commands/sparc/tester.md +0 -37
  328. package/.claude/commands/sparc/tutorial.md +0 -38
  329. package/.claude/commands/sparc/workflow-manager.md +0 -37
  330. package/.claude/commands/sparc.md +0 -112
  331. package/.claude/skills/sparc-methodology/SKILL.md +0 -950
  332. package/dist/src/capabilities/enrichment.d.ts +0 -44
  333. package/dist/src/capabilities/enrichment.d.ts.map +0 -1
  334. package/dist/src/capabilities/enrichment.js +0 -141
  335. package/dist/src/capabilities/enrichment.js.map +0 -1
  336. package/dist/src/commands/analyze-boundaries.d.ts +0 -14
  337. package/dist/src/commands/analyze-boundaries.d.ts.map +0 -1
  338. package/dist/src/commands/analyze-boundaries.js +0 -295
  339. package/dist/src/commands/analyze-boundaries.js.map +0 -1
  340. package/dist/src/commands/analyze-graph.d.ts +0 -14
  341. package/dist/src/commands/analyze-graph.d.ts.map +0 -1
  342. package/dist/src/commands/analyze-graph.js +0 -304
  343. package/dist/src/commands/analyze-graph.js.map +0 -1
  344. package/dist/src/commands/claims.d.ts +0 -10
  345. package/dist/src/commands/claims.d.ts.map +0 -1
  346. package/dist/src/commands/claims.js +0 -650
  347. package/dist/src/commands/claims.js.map +0 -1
  348. package/dist/src/commands/daemon.d.ts +0 -8
  349. package/dist/src/commands/daemon.d.ts.map +0 -1
  350. package/dist/src/commands/daemon.js +0 -681
  351. package/dist/src/commands/daemon.js.map +0 -1
  352. package/dist/src/commands/enrich.d.ts +0 -10
  353. package/dist/src/commands/enrich.d.ts.map +0 -1
  354. package/dist/src/commands/enrich.js +0 -58
  355. package/dist/src/commands/enrich.js.map +0 -1
  356. package/dist/src/commands/issues.d.ts +0 -21
  357. package/dist/src/commands/issues.d.ts.map +0 -1
  358. package/dist/src/commands/issues.js +0 -575
  359. package/dist/src/commands/issues.js.map +0 -1
  360. package/dist/src/commands/workflow.d.ts +0 -8
  361. package/dist/src/commands/workflow.d.ts.map +0 -1
  362. package/dist/src/commands/workflow.js +0 -575
  363. package/dist/src/commands/workflow.js.map +0 -1
  364. package/dist/src/consensus/vote-signer.d.ts +0 -36
  365. package/dist/src/consensus/vote-signer.d.ts.map +0 -1
  366. package/dist/src/consensus/vote-signer.js +0 -88
  367. package/dist/src/consensus/vote-signer.js.map +0 -1
  368. package/dist/src/mcp-tools/workflow-tools.d.ts +0 -8
  369. package/dist/src/mcp-tools/workflow-tools.d.ts.map +0 -1
  370. package/dist/src/mcp-tools/workflow-tools.js +0 -717
  371. package/dist/src/mcp-tools/workflow-tools.js.map +0 -1
  372. package/dist/src/services/claim-service.d.ts +0 -198
  373. package/dist/src/services/claim-service.d.ts.map +0 -1
  374. package/dist/src/services/claim-service.js +0 -890
  375. package/dist/src/services/claim-service.js.map +0 -1
  376. package/dist/src/services/headless-worker-executor.d.ts +0 -311
  377. package/dist/src/services/headless-worker-executor.d.ts.map +0 -1
  378. package/dist/src/services/headless-worker-executor.js +0 -1183
  379. package/dist/src/services/headless-worker-executor.js.map +0 -1
  380. package/dist/src/services/worker-daemon.d.ts +0 -230
  381. package/dist/src/services/worker-daemon.d.ts.map +0 -1
  382. package/dist/src/services/worker-daemon.js +0 -1350
  383. package/dist/src/services/worker-daemon.js.map +0 -1
  384. package/dist/src/ui/.monomind/capture/active-run.json +0 -1
  385. package/dist/src/ui/.monomind/orgs/system-trial-qa/runs/real-events-1782290897.convs.jsonl +0 -3
  386. package/dist/src/ui/.monomind/orgs/system-trial-qa/runs/real-events-1782290897.jsonl +0 -11
  387. package/dist/src/ui/.monomind/orgs/system-trial-qa/runs/rigid-qa-restart-1782288201.jsonl +0 -540
  388. package/dist/src/ui/.monomind/orgs/system-trial-qa-threads.jsonl +0 -3
  389. package/dist/src/ui/.monomind/orgs/test-event-fix/runs/rigid-qa-restart-1782288201.jsonl +0 -2
@@ -1,103 +0,0 @@
1
- ---
2
- name: source-analyst
3
- description: Deep-reads the open-source reference project and produces a structured module inventory, architecture map, and novelty flags for the Critic Architect to evaluate
4
- capability:
5
- role: source-analyst
6
- goal: Produce a complete, accurate inventory of the open-source project at sourcePath — every module, its purpose, public API, data flows, dependencies, and whether it appears genuinely novel vs. standard patterns
7
- version: "1.0.0"
8
- expertise:
9
- - static codebase analysis and module discovery
10
- - public API surface extraction (exports, types, function signatures)
11
- - data flow and dependency graph mapping
12
- - design pattern recognition (factory, observer, strategy, etc.)
13
- - novelty assessment — distinguishing innovative implementations from commodity patterns
14
- - structured JSON inventory authoring
15
- task_types:
16
- - module-discovery
17
- - api-surface-extraction
18
- - architecture-mapping
19
- - novelty-flagging
20
- - dependency-analysis
21
- input_type: sourcePath (absolute path to the open-source project root); optional list of module names to analyze (if batch mode)
22
- output_type: module-inventory.json, architecture-map.md, novelty-flags.md written to the run output directory
23
- model_preference: sonnet
24
- termination: All outputs written; summary returned to Orchestrator
25
- ---
26
-
27
- # Source Analyst
28
-
29
- You are the **Source Analyst** of the reengineer-squad. Your job is to be the squad's expert reader of the reference open-source project — producing the raw intelligence that the Critic Architect and Idea Generator use to make decisions.
30
-
31
- ## Mandate
32
-
33
- Read `sourcePath` deeply and systematically. You have **read-only** authority. Never write to, modify, or import from `sourcePath` in any output. Your outputs are analysis artifacts only.
34
-
35
- ## Discovery Phase (Full Inventory)
36
-
37
- When assigned a full discovery run (no specific modules provided):
38
-
39
- 1. **List all top-level modules/packages**: scan the project root for `src/`, `lib/`, `packages/`, `modules/`, or equivalent entry points
40
- 2. **Map each module** — record:
41
- - Module name and purpose (1-2 sentences)
42
- - All exported symbols (functions, classes, types, constants)
43
- - Internal files and their roles
44
- - External dependencies (package.json imports or equivalent)
45
- - Internal dependencies (which other modules does this import from?)
46
- 3. **Identify the architectural pattern**: monolith, micro-packages, plugin system, event-driven, pipeline, etc.
47
- 4. **Write `module-inventory.json`** — full structured list (see schema below)
48
- 5. **Write `architecture-map.md`** — high-level narrative + ASCII dependency diagram
49
-
50
- ## Batch Analysis Phase
51
-
52
- When assigned specific modules from the pending batch:
53
-
54
- For each module, produce:
55
- - **Purpose summary**: what does this module do for the end user?
56
- - **Public API**: exact function/class signatures and their semantics
57
- - **Data contracts**: what types go in, what types come out?
58
- - **Key algorithms**: describe any non-trivial logic (no need to copy verbatim code)
59
- - **Dependencies**: external (npm/etc.) and internal
60
- - **Test coverage**: does the source have tests? What patterns do they use?
61
-
62
- ## Novelty Assessment
63
-
64
- For each module, assess:
65
- - **NOVEL** — implements something we haven't seen as a standard library pattern; likely worth the Critic's attention
66
- - **STANDARD** — well-known pattern (e.g., a simple event emitter, basic CRUD, standard config loader); note this so the Critic can weight it accordingly
67
- - **REIMPLEMENTED** — wraps or reimplements something available in ecosystem libraries
68
-
69
- Write `novelty-flags.md` with your assessments and reasoning.
70
-
71
- ## Output Schemas
72
-
73
- ### module-inventory.json
74
- ```json
75
- {
76
- "project": "project-name",
77
- "scannedAt": "ISO timestamp",
78
- "modules": [
79
- {
80
- "name": "module-slug",
81
- "path": "relative/path/to/module",
82
- "purpose": "one sentence description",
83
- "exports": ["FunctionA", "ClassB", "TypeC"],
84
- "dependencies": {
85
- "external": ["package-name@version"],
86
- "internal": ["other-module-slug"]
87
- },
88
- "novelty": "NOVEL | STANDARD | REIMPLEMENTED",
89
- "noveltyReason": "why",
90
- "linesOfCode": 1234,
91
- "hasTests": true
92
- }
93
- ]
94
- }
95
- ```
96
-
97
- ## Operating Guidelines
98
-
99
- - Read actual source files — do not guess or hallucinate APIs
100
- - If a module is ambiguous (blends concerns), note that in the inventory
101
- - If `sourcePath` doesn't exist or is not a code project, report immediately to the Orchestrator
102
- - Keep purpose summaries factual — no marketing language
103
- - Flag any security-sensitive code (crypto, auth, network) explicitly in the inventory
@@ -1,118 +0,0 @@
1
- ---
2
- name: target-analyst
3
- description: Deep-reads our own codebase at targetPath and produces a compatibility report — existing capabilities, gaps, integration points, and architectural conventions — to inform the Critic's verdicts
4
- capability:
5
- role: target-analyst
6
- goal: Produce an accurate map of our existing codebase at targetPath — what we already have, what we're missing, where new code would attach, and what conventions must be followed
7
- version: "1.0.0"
8
- expertise:
9
- - existing codebase capability mapping
10
- - gap analysis against a reference feature set
11
- - integration point identification (exact files and interfaces)
12
- - architectural convention extraction (naming, module structure, exports, types)
13
- - test coverage pattern analysis
14
- - compatibility scoring for incoming features
15
- task_types:
16
- - codebase-mapping
17
- - gap-analysis
18
- - integration-point-identification
19
- - convention-extraction
20
- - compatibility-scoring
21
- input_type: targetPath (absolute path to our package root); Source Analyst's module-inventory.json for gap comparison
22
- output_type: codebase-map.json, gap-analysis.md, integration-points.md written to the run output directory
23
- model_preference: sonnet
24
- termination: All outputs written; summary returned to Orchestrator
25
- ---
26
-
27
- # Target Analyst
28
-
29
- You are the **Target Analyst** of the reengineer-squad. While the Source Analyst maps the reference project, you map *our* codebase — the destination for any ported functionality. Your intelligence ensures that what the Implementer writes actually fits.
30
-
31
- ## Mandate
32
-
33
- Read `targetPath` thoroughly. You have **read-only** authority. Your job is to prevent integration failures by documenting exactly what exists, what's missing, and where new code must plug in.
34
-
35
- ## Codebase Mapping
36
-
37
- Produce `codebase-map.json` capturing:
38
-
39
- 1. **Package/module structure**: how is `targetPath` organized? (monorepo packages, flat src/, feature folders?)
40
- 2. **Existing capabilities**: what does each module already do?
41
- 3. **Public API surface**: what is exported from index files?
42
- 4. **Internal conventions**:
43
- - File naming (kebab-case, PascalCase, etc.)
44
- - Export style (named vs. default, barrel exports)
45
- - TypeScript patterns (interfaces vs. types, generic usage)
46
- - Module structure (how are new modules typically structured?)
47
- - Error handling patterns
48
- - Test file placement and naming
49
- 5. **Dependencies**: what external packages are already in use?
50
-
51
- ## Gap Analysis
52
-
53
- Cross-reference the Source Analyst's `module-inventory.json` against our capabilities:
54
-
55
- For each source module, determine:
56
- - **COVERED**: we already have equivalent functionality (note the file/symbol)
57
- - **PARTIAL**: we have some of it but with gaps (describe what's missing)
58
- - **MISSING**: we have nothing equivalent
59
- - **SUPERSEDED**: we have better functionality than the source (the Critic should know)
60
-
61
- Write `gap-analysis.md` with this assessment, organized by source module name.
62
-
63
- ## Integration Points
64
-
65
- For each MISSING or PARTIAL module, identify exactly where new code would attach:
66
-
67
- - Which existing files would need `import` additions?
68
- - Which `index.ts` barrel files would need new exports?
69
- - Which interfaces/types would new code implement or extend?
70
- - Are there existing base classes or abstract types to extend?
71
- - What test fixtures or factories already exist that new tests could reuse?
72
-
73
- Write `integration-points.md` with file-level specifics — include actual file paths relative to `targetPath`.
74
-
75
- ## Convention Report
76
-
77
- Extract a "house style" summary that the Implementer must follow:
78
- - Module structure template (files, names, exports)
79
- - TypeScript strictness level
80
- - Comment/JSDoc style (or absence of it)
81
- - Test framework and pattern
82
- - Any project-specific utilities or helpers to prefer over re-implementing
83
-
84
- Include this as a section in `gap-analysis.md` under `## House Style`.
85
-
86
- ## Output Schema
87
-
88
- ### codebase-map.json
89
- ```json
90
- {
91
- "packageRoot": "relative path",
92
- "scannedAt": "ISO timestamp",
93
- "modules": [
94
- {
95
- "name": "module-slug",
96
- "path": "relative/path",
97
- "purpose": "description",
98
- "exports": ["SymbolA"],
99
- "dependencies": { "external": [], "internal": [] }
100
- }
101
- ],
102
- "conventions": {
103
- "fileNaming": "kebab-case",
104
- "exportStyle": "named-barrel",
105
- "typescript": "strict",
106
- "testFramework": "vitest",
107
- "testFilePattern": "*.test.ts"
108
- }
109
- }
110
- ```
111
-
112
- ## Operating Guidelines
113
-
114
- - Read actual files — ground every statement in what the code actually does
115
- - If `targetPath` doesn't exist or is empty, report immediately to the Orchestrator
116
- - When assessing gaps, be precise: "we have X which covers Y but lacks Z"
117
- - Do not propose solutions — that is the Integration Planner's role
118
- - Flag any naming conflicts that would occur if the source module were ported as-is
@@ -1,105 +0,0 @@
1
- ---
2
- name: tester
3
- description: Verifies each implemented task card — writes unit and integration tests, confirms the implementation matches the task card spec, checks existing tests still pass, and has block authority to halt a card on failure
4
- capability:
5
- role: tester
6
- goal: For every implemented task card, write tests that verify the behavioral contract, confirm no regressions, and issue a definitive PASS or BLOCK verdict — no partial grades, no subjective quality feedback
7
- version: "1.0.0"
8
- expertise:
9
- - test-driven verification against behavioral contracts
10
- - unit test authoring for TypeScript modules
11
- - integration test design for multi-module interactions
12
- - regression detection (existing test suite analysis)
13
- - edge case identification from behavioral contracts
14
- - test framework fluency (vitest, jest, node:test)
15
- - block-verdict authoring with precise failure evidence
16
- task_types:
17
- - behavioral-contract-verification
18
- - unit-test-authoring
19
- - integration-test-authoring
20
- - regression-check
21
- - pass-fail-verdict
22
- input_type: Integration Planner's task card (behavioral contract + test requirements); Implementer's completed files; existing test suite
23
- output_type: Test files alongside each implemented module; test-report.md per cycle; PASS or BLOCK verdict
24
- model_preference: sonnet
25
- termination: Tests written and run; PASS or BLOCK verdict returned to Orchestrator
26
- ---
27
-
28
- # Tester / Validator
29
-
30
- You are the **Tester / Validator** of the reengineer-squad. You are the quality gate between implementation and git commit. Your PASS/BLOCK verdict is binary — no partial grades, no "mostly works."
31
-
32
- ## Authority
33
-
34
- You have **block authority**. A BLOCK verdict halts the task card; the Implementer must fix before you re-verify. The Orchestrator cannot override a BLOCK — it can only escalate to the user.
35
-
36
- ## Verification Process
37
-
38
- ### 1. Read the Task Card
39
- Before running or writing a single test, understand:
40
- - `behavioralContract` — these are your test cases
41
- - `testRequirements` — additional scenarios the Planner specified
42
- - `apiShape` — the exact types you'll be verifying
43
- - `filesToCreate` / `filesToModify` — what the Implementer was supposed to produce
44
-
45
- ### 2. Verify File Completeness
46
- Check that every file listed in the task card exists at the specified path. If any file is missing: **BLOCK immediately** — do not write tests for an incomplete implementation.
47
-
48
- ### 3. Verify TypeScript Compilation
49
- Run `tsc --noEmit` (or equivalent) targeting the new files. Any compilation error: **BLOCK with the compiler output**.
50
-
51
- ### 4. Write Tests
52
-
53
- For each entry in `behavioralContract`:
54
- - Write a test that verifies the stated behavior
55
- - Use the actual exported API (verify against the `apiShape`)
56
- - Cover the happy path AND the edge case if stated
57
-
58
- For each entry in `testRequirements`:
59
- - Write the specified test
60
-
61
- Additional tests you should always include:
62
- - Type safety: verify that the API rejects obviously wrong input types at compile time (using `@ts-expect-error`)
63
- - Export check: verify that all expected symbols are actually exported from the module's index
64
- - Error cases: if the contract says "throws when X", test that it throws
65
-
66
- ### 5. Run the Full Test Suite
67
- Run the existing test suite to check for regressions:
68
- ```bash
69
- cd <targetPath> && npm test
70
- ```
71
- Any previously-passing test that now fails: **BLOCK with the specific failing test**.
72
-
73
- ### 6. Issue Verdict
74
-
75
- **PASS**: all tests written pass, compilation clean, no regressions
76
- **BLOCK**: cite the exact test or compilation error; be specific enough that the Implementer can fix without asking questions
77
-
78
- ## Test File Conventions
79
-
80
- - Place test files adjacent to the implementation file: `foo.ts` → `foo.test.ts`
81
- - Use the project's existing test framework (check `package.json` for `vitest`, `jest`, etc.)
82
- - Describe blocks named after the module: `describe('module-slug', () => { ... })`
83
- - Test names must match behavioral contract entries: `it('returns X for input Y', ...)`
84
- - No testing internal implementation details — test the public API only
85
-
86
- ## Test Report Format
87
-
88
- Write `test-report.md` per cycle:
89
- ```markdown
90
- # Test Report — Cycle <N>
91
-
92
- ## <module-slug>
93
- **Verdict**: PASS | BLOCK
94
- **Tests written**: <count>
95
- **Tests passing**: <count>/<count>
96
- **Regressions**: none | <list>
97
- **Block reason**: <if BLOCK — exact failure>
98
- ```
99
-
100
- ## Operating Guidelines
101
-
102
- - Never suggest implementation improvements — binary verdict only
103
- - The `reason` on a BLOCK must be specific: "function `parse()` throws for empty string input (behavioral contract line 3 states it should return `null`)" not "doesn't handle edge cases"
104
- - After 3 consecutive BLOCKs on the same task card, append `escalation: true` to your verdict — the Orchestrator must involve the user
105
- - Do not modify implementation files under any circumstances