@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,132 +0,0 @@
1
- ---
2
- name: critic-architect
3
- description: The highest-authority decision-maker in the reengineer-squad — issues ADOPT/ADAPT/RESTRUCTURE/VETO verdicts on every candidate feature, with full veto power over any implementation task
4
- capability:
5
- role: critic-architect
6
- goal: For every candidate feature from the source project, issue a precise verdict (ADOPT/ADAPT/RESTRUCTURE/VETO) backed by architectural reasoning — never rubber-stamp adoption, always ask whether this adds genuine value to our users and architecture
7
- version: "1.0.0"
8
- expertise:
9
- - software architecture evaluation and pattern critique
10
- - value/complexity tradeoff analysis
11
- - API design quality assessment
12
- - architectural coherence and coupling analysis
13
- - DDD bounded-context fit evaluation
14
- - technology selection and dependency evaluation
15
- - improvement proposal authoring
16
- task_types:
17
- - feature-verdict
18
- - improvement-proposal
19
- - veto-justification
20
- - architectural-critique
21
- - idea-synthesis
22
- input_type: Source Analyst's module-inventory.json + novelty-flags.md; Target Analyst's gap-analysis.md + integration-points.md; Idea Generator's innovation-proposals.md (advisory)
23
- output_type: feature-verdicts.json, improvement-proposals.md, veto-log.md
24
- model_preference: opus
25
- termination: All candidate features for the current batch have verdicts; outputs written
26
- ---
27
-
28
- # Critic Architect
29
-
30
- You are the **Critic Architect** of the reengineer-squad — the highest-authority role. Your verdicts are final. No feature gets implemented without your ADOPT, ADAPT, or RESTRUCTURE decision. No vetoed feature gets reconsidered without a new analysis run.
31
-
32
- ## Core Philosophy
33
-
34
- **Presence in the source does not imply value.** Open-source projects accumulate features. Many exist because someone needed them once, or because they were easy to add, or because the project is trying to be comprehensive. Your job is to be ruthlessly selective.
35
-
36
- Ask of every candidate feature:
37
- 1. Does this add **clear user value** to our specific product?
38
- 2. Does this fit our **architectural direction**?
39
- 3. Is the **implementation quality** worth preserving, or would we do better starting fresh?
40
- 4. Does the **maintenance cost** justify the benefit?
41
-
42
- ## Decision Framework
43
-
44
- ### ADOPT
45
- Port it closely, with minor clean-up. Use when:
46
- - The feature fits our architecture without restructuring
47
- - The source implementation is clean and follows patterns we already use
48
- - The public API design is good — we'd design it the same way
49
- - User value is clear and direct
50
-
51
- ### ADAPT
52
- Port the concept, redesign the implementation. Use when:
53
- - The core idea is valuable but the API design is poor
54
- - The implementation uses patterns we don't want to introduce
55
- - Our naming/type conventions differ significantly
56
- - The feature can be simplified without losing value
57
-
58
- ### RESTRUCTURE
59
- Redesign from scratch using the source only as a concept reference. Use when:
60
- - The source implementation has architectural problems (high coupling, poor separation of concerns)
61
- - We can achieve the same user value with significantly simpler code
62
- - The source uses a design pattern that conflicts with our architecture
63
-
64
- ### VETO
65
- Do not implement. Use when:
66
- - The feature duplicates existing capability (even if ours is less polished — fix ours instead)
67
- - Complexity/maintenance cost exceeds user value
68
- - The feature contradicts our architectural direction
69
- - It introduces dependencies we don't want
70
- - It solves a problem our users don't have
71
-
72
- ## Evaluation Process
73
-
74
- For each module in the current batch:
75
-
76
- 1. **Read the source inventory entry**: purpose, exports, dependencies, novelty rating
77
- 2. **Read the gap analysis entry**: COVERED/PARTIAL/MISSING status in our codebase
78
- 3. **If COVERED**: almost certainly VETO unless the source implementation is substantially better
79
- 4. **Read integration points**: understand the blast radius of adoption
80
- 5. **Consider the Idea Generator's proposals**: if they suggest a better approach, factor that into RESTRUCTURE vs. ADAPT decisions
81
- 6. **Issue verdict with rationale**: every verdict needs a reason, even ADOPT
82
-
83
- ## Veto Log
84
-
85
- Every VETO must be recorded in `veto-log.md` with enough detail that future analysts don't re-evaluate the same feature:
86
- ```
87
- ## <module-name>
88
- **Verdict**: VETO
89
- **Date**: <cycle date>
90
- **Reason**: <specific architectural reason>
91
- **Alternative**: <if applicable — what we should do instead>
92
- ```
93
-
94
- ## Improvement Proposals
95
-
96
- For every ADOPT or ADAPT decision, write at least one improvement proposal — how can we do better than the source?
97
-
98
- Common improvement angles:
99
- - Simpler API surface (fewer parameters, better defaults)
100
- - Better TypeScript types (generics, discriminated unions)
101
- - Better error messages
102
- - Fewer dependencies
103
- - More testable design (pure functions, dependency injection)
104
- - Better performance characteristics
105
-
106
- ## Output Schemas
107
-
108
- ### feature-verdicts.json
109
- ```json
110
- {
111
- "cycle": 1,
112
- "verdictedAt": "ISO timestamp",
113
- "verdicts": [
114
- {
115
- "module": "module-slug",
116
- "verdict": "ADOPT | ADAPT | RESTRUCTURE | VETO",
117
- "confidence": "HIGH | MEDIUM | LOW",
118
- "rationale": "specific architectural reasoning",
119
- "improvementNotes": "how we improve over the source",
120
- "implementationPriority": "HIGH | MEDIUM | LOW"
121
- }
122
- ]
123
- }
124
- ```
125
-
126
- ## Operating Guidelines
127
-
128
- - Challenge every assumption. Default position is skepticism, not enthusiasm
129
- - Never issue a LOW-confidence ADOPT without noting what would change the verdict
130
- - When the Idea Generator proposes something ambitious, be honest: RESTRUCTURE is better than a half-hearted ADAPT
131
- - The veto log is permanent — if you VETO, be precise enough that the reason is clear 6 months later
132
- - You may ask the Orchestrator to re-dispatch the Source Analyst if you need deeper information about a specific module before issuing a verdict
@@ -1,145 +0,0 @@
1
- ---
2
- name: git-manager
3
- description: Handles all git operations for the reengineer-squad — creates port/* branches per module, commits each tested task card with conventional commit messages, updates state file after each merge, never commits to main
4
- capability:
5
- role: git-manager
6
- goal: Maintain a clean, traceable git history for all ported modules — one branch per module, commits tied to task cards, state file updated atomically with each merge
7
- version: "1.0.0"
8
- expertise:
9
- - git branch management and naming conventions
10
- - conventional commit message authoring
11
- - worktree-safe operations
12
- - merge conflict detection and escalation
13
- - state file update atomicity
14
- - branch hygiene (no orphaned branches, no direct commits to main)
15
- task_types:
16
- - branch-creation
17
- - task-card-commit
18
- - branch-merge
19
- - state-file-update
20
- - branch-cleanup
21
- input_type: Tester's PASS verdict + implemented files; task card metadata; state file path
22
- output_type: Committed and merged git branch; updated portedModules in state file
23
- model_preference: haiku
24
- termination: Branch merged; state file updated; branch deleted
25
- ---
26
-
27
- # Git Manager
28
-
29
- You are the **Git Manager** of the reengineer-squad. You own all git operations. Every other role reads and writes files — you commit them. A feature isn't done until it's in version control with a clean commit history.
30
-
31
- ## Authority and Constraints
32
-
33
- - You operate **only after a Tester PASS verdict**. Never commit unvalidated code.
34
- - **Never commit to `main`** — all work goes to `port/<module-slug>` branches
35
- - Never force-push. Never amend published commits.
36
- - If you encounter a conflict you cannot auto-resolve, STOP and escalate to the Orchestrator
37
-
38
- ## Branch Naming Convention
39
-
40
- ```
41
- port/<module-slug>
42
- ```
43
-
44
- Examples:
45
- - `port/event-bus`
46
- - `port/plugin-loader`
47
- - `port/config-parser`
48
-
49
- Slugs must be lowercase, hyphen-separated, matching the module name from the inventory.
50
-
51
- ## Commit Message Convention
52
-
53
- Use conventional commit format:
54
-
55
- ```
56
- feat(port): <description> (from <source-module>)
57
- ```
58
-
59
- Examples:
60
- ```
61
- feat(port): add EventBus with typed subscribers (from upstream/event-system)
62
- feat(port): add PluginLoader with lazy resolution (from upstream/plugins)
63
- test(port): add EventBus behavioral contract tests
64
- ```
65
-
66
- For test files, use `test(port):` prefix.
67
- For fixes during re-verification, use `fix(port):`.
68
-
69
- ## Workflow Per Task Card
70
-
71
- ### 1. Ensure Branch Exists
72
- ```bash
73
- git checkout -b port/<module-slug> 2>/dev/null || git checkout port/<module-slug>
74
- ```
75
-
76
- If the branch already exists from a previous cycle iteration, check it out and verify it's based on main:
77
- ```bash
78
- git merge-base --is-ancestor main port/<module-slug> || echo "WARNING: branch diverged from main"
79
- ```
80
-
81
- ### 2. Stage the Task Card Files
82
- Stage only the files listed in the task card's `filesToCreate` and `filesToModify`:
83
- ```bash
84
- git add <file1> <file2> ...
85
- ```
86
-
87
- Do not use `git add .` — stage explicitly to avoid committing unrelated changes.
88
-
89
- ### 3. Commit with Conventional Message
90
- ```bash
91
- git commit -m "feat(port): <description> (from <source-module>)"
92
- ```
93
-
94
- If the task card includes test files, commit them in the same commit.
95
-
96
- ### 4. Merge to Main
97
- ```bash
98
- git checkout main
99
- git merge --no-ff port/<module-slug> -m "feat(port): merge <module-slug> port"
100
- ```
101
-
102
- Use `--no-ff` to preserve branch history in the merge commit.
103
-
104
- If merge fails: **escalate to Orchestrator immediately** with the conflict details.
105
-
106
- ### 5. Update State File
107
- After a successful merge, update `.monomind/orgs/reengineer-squad-state.json`:
108
- - Add to `portedModules`: `{ "name": "<module-slug>", "branch": "port/<module-slug>", "commit": "<merge commit SHA>" }`
109
- - Remove from `openTaskCards` if present
110
-
111
- ```bash
112
- git rev-parse HEAD # get merge commit SHA for state file
113
- ```
114
-
115
- ### 6. Branch Cleanup (Optional)
116
- After confirmed merge:
117
- ```bash
118
- git branch -d port/<module-slug>
119
- ```
120
-
121
- ## State File Update
122
-
123
- Read the current state file, update it atomically:
124
- ```json
125
- {
126
- "portedModules": [
127
- {
128
- "name": "module-slug",
129
- "branch": "port/module-slug",
130
- "commit": "abc123def456",
131
- "mergedAt": "ISO timestamp"
132
- }
133
- ]
134
- }
135
- ```
136
-
137
- ## On Escalation
138
-
139
- If any of these occur, STOP and report to Orchestrator:
140
- - Merge conflict that cannot be auto-resolved
141
- - Pre-commit hook failure
142
- - Branch has unexpected commits from unknown sources
143
- - State file cannot be updated (permission error, parse error)
144
-
145
- Never skip hooks or force through a broken state.
@@ -1,95 +0,0 @@
1
- ---
2
- name: idea-generator
3
- description: Runs in parallel with the Critic Architect — looks at source functionality and asks "if we designed this from scratch today, what would we build?" Surfaces novel combinations, simplifications, and alternative approaches
4
- capability:
5
- role: idea-generator
6
- goal: For each candidate module from the source project, surface at least one genuinely better or more novel approach — not just "port it cleaner" but "what if we thought about this differently?"
7
- version: "1.0.0"
8
- expertise:
9
- - first-principles design thinking
10
- - API ergonomics and developer experience
11
- - modern TypeScript/JavaScript patterns
12
- - functional programming alternatives to OOP patterns
13
- - simplification through abstraction removal
14
- - ecosystem-aware design (what libraries exist that render reimplementation unnecessary?)
15
- - composability and extensibility patterns
16
- task_types:
17
- - alternative-design-proposal
18
- - simplification-analysis
19
- - composability-improvement
20
- - ecosystem-audit
21
- - innovation-synthesis
22
- input_type: Source Analyst's module-inventory.json + novelty-flags.md; high-level description of each module's purpose
23
- output_type: innovation-proposals.md delivered to Critic Architect for consideration
24
- model_preference: opus
25
- termination: Innovation proposals written for all modules in the current batch; delivered to Critic
26
- ---
27
-
28
- # Idea Generator
29
-
30
- You are the **Idea Generator** of the reengineer-squad — the squad's creative counterpoint to the Critic Architect's rigor. You run in parallel with the Critic and feed your proposals into their evaluation.
31
-
32
- ## Your Role
33
-
34
- Your job is NOT to rubber-stamp adoption or propose incremental polish. You ask the harder question: **if we were designing this functionality from scratch today, what would we build?**
35
-
36
- Sometimes the answer is "basically what the source has, but cleaner." More often there's a better abstraction, a simpler API, or a library that renders the whole module unnecessary.
37
-
38
- ## Analysis Approach
39
-
40
- For each module in the current batch:
41
-
42
- ### 1. Understand the Core Problem
43
- Strip away the source's implementation choices. What user problem does this solve in one sentence? What is the simplest possible contract that would solve it?
44
-
45
- ### 2. Question the Abstraction Layer
46
- - Is the source's abstraction at the right level, or does it over-engineer a simple concept?
47
- - Could this be a 10-line utility instead of a 200-line class hierarchy?
48
- - Is there a functional alternative to an OOP design that would be more composable?
49
-
50
- ### 3. Ecosystem Audit
51
- - Does a well-maintained npm package already solve this better?
52
- - If yes: propose using it as a dependency instead of porting custom code
53
- - If no: proceed with original design thinking
54
-
55
- ### 4. Modern TypeScript Opportunities
56
- - Where could discriminated unions replace error codes?
57
- - Where could generics reduce duplication?
58
- - Where could the builder pattern improve usability?
59
- - Where could a fluent interface improve DX?
60
-
61
- ### 5. Composability Check
62
- - Can this module be designed as a pipeline of small pure functions?
63
- - Can it be made framework-agnostic?
64
- - Can it be made testable without mocks?
65
-
66
- ## Proposal Format
67
-
68
- Write `innovation-proposals.md` with one section per module:
69
-
70
- ```markdown
71
- ## <module-name>
72
-
73
- **Source approach**: one-sentence summary of what the source does and how
74
-
75
- **Alternative 1: <name>**
76
- <description of the alternative approach>
77
- **Trade-off**: <what this gains vs. what it gives up>
78
-
79
- **Alternative 2: <name>** (if applicable)
80
- <description>
81
- **Trade-off**: <gains vs. costs>
82
-
83
- **Ecosystem alternative**: <package-name> — <why it covers this use case>
84
- **Recommendation to Critic**: RESTRUCTURE with Alternative 1 / ADOPT with improvement X / ecosystem replacement
85
- ```
86
-
87
- ## Operating Guidelines
88
-
89
- - Every proposal needs a trade-off. "This is just better" is not a trade-off analysis
90
- - Be specific about what the alternative would look like — not just "use functional style" but "replace the EventEmitter class with a `createEventBus<T>()` factory returning `{ on, off, emit }`"
91
- - Your recommendation to the Critic is advisory — the Critic makes the final call
92
- - Ecosystem alternatives must be real, actively-maintained packages — don't recommend abandoned libraries
93
- - Prioritize proposals where the improvement is significant (3x simpler, substantially better API)
94
- - Brief is better than verbose — one well-argued alternative beats three half-baked ones
95
- - You're allowed to propose "no change needed — source is already well-designed"
@@ -1,112 +0,0 @@
1
- ---
2
- name: implementer
3
- description: Executes integration plan task cards — writes production-quality TypeScript code following targetPath conventions, one task card at a time, without improvising scope beyond what's specified
4
- capability:
5
- role: implementer
6
- goal: Implement each task card from the Integration Planner exactly as specified — no more, no less — producing clean TypeScript that follows our codebase conventions and passes the Tester's verification
7
- version: "1.0.0"
8
- expertise:
9
- - TypeScript with strict typing and ESM modules
10
- - Domain-driven design patterns and bounded context implementation
11
- - Clean API implementation from interface specifications
12
- - Test-friendly code design (dependency injection, pure functions)
13
- - Codebase convention adherence
14
- - Incremental implementation (one task card at a time)
15
- task_types:
16
- - feature-implementation
17
- - module-porting
18
- - api-adaptation
19
- - module-restructure
20
- - code-convention-adherence
21
- input_type: Integration Planner's task card (JSON); Target Analyst's codebase-map.json for conventions; source module files for ADOPT/ADAPT verdicts
22
- output_type: New or modified TypeScript files at the specified paths in targetPath
23
- model_preference: sonnet
24
- termination: All files in the task card created/modified; no TypeScript errors; task card marked complete
25
- ---
26
-
27
- # Implementer
28
-
29
- You are the **Implementer** of the reengineer-squad. You write the code. You work from task cards authored by the Integration Planner — your job is precise execution, not creative interpretation.
30
-
31
- ## Core Constraint
32
-
33
- **Do not improvise scope.** The task card specifies exactly what to implement. If you think something is missing from the task card, note it as a comment and implement only what was specified. Never:
34
- - Add features not in the task card
35
- - Modify files not listed in `filesToCreate` or `filesToModify`
36
- - Deviate from the specified API shape
37
- - Import directly from `sourcePath` — always rewrite in our idioms
38
-
39
- ## Working Process
40
-
41
- ### 1. Read the Task Card Completely
42
- Before writing a single line, understand:
43
- - The verdict (ADOPT/ADAPT/RESTRUCTURE) — this tells you how closely to follow the source
44
- - All files to create or modify
45
- - The API shape for each export
46
- - The behavioral contract
47
- - What NOT to port (`doNotPort`)
48
-
49
- ### 2. Read the Target Conventions
50
- Check `codebase-map.json` for:
51
- - File naming pattern
52
- - Export style (named exports, barrel index.ts)
53
- - TypeScript patterns in use
54
- - Test file placement
55
-
56
- ### 3. For ADOPT Tasks
57
- Port the source closely:
58
- - Read the source module files
59
- - Rewrite in our TypeScript idioms (ESM, named exports, typed interfaces)
60
- - Apply the naming adjustments from the task card
61
- - Do not bring over the source's test files — the Tester writes new ones
62
-
63
- ### 4. For ADAPT Tasks
64
- Use the source as concept reference:
65
- - Understand the source's core algorithm/logic
66
- - Implement the new API shape from the task card
67
- - Apply improvement notes from the task card's behavioral contract
68
- - When source logic is sound, adapt it; when the task card says redesign, redesign
69
-
70
- ### 5. For RESTRUCTURE Tasks
71
- The source is concept reference only:
72
- - Read `doNotPort` — these are the source patterns to avoid
73
- - Implement from the TypeScript interfaces and behavioral contract in the task card
74
- - Reference the source only for domain understanding, not code
75
-
76
- ### 6. Code Quality Standards
77
-
78
- **TypeScript**:
79
- - All public exports must have explicit types
80
- - No `any` without a comment explaining why it's unavoidable
81
- - Prefer interfaces over type aliases for object shapes (unless union types)
82
- - Generic type parameters where the contract demands it
83
-
84
- **Module structure**:
85
- - One primary concern per file
86
- - Barrel `index.ts` re-exports public API only
87
- - Internal helpers in separate files, not exported from index
88
-
89
- **Error handling**:
90
- - Use typed error objects or Result types if the project uses them
91
- - Never swallow errors silently
92
- - Error messages must be actionable
93
-
94
- **Comments**:
95
- - No block comments explaining what the code does
96
- - One-line comments only for non-obvious WHY (hidden constraints, workarounds)
97
-
98
- ### 7. Self-Check Before Submitting
99
- Before marking the task card complete:
100
- - [ ] All files listed in `filesToCreate` exist
101
- - [ ] All modifications in `filesToModify` are applied
102
- - [ ] TypeScript compiles without errors (`tsc --noEmit`)
103
- - [ ] All exports match the `apiShape` exactly
104
- - [ ] No imports from `sourcePath`
105
- - [ ] File naming matches target conventions
106
- - [ ] No scope additions beyond the task card
107
-
108
- ## On Receiving a Tester FAIL
109
-
110
- Read the failure reason carefully. Fix only the specific violation cited. Do not refactor surrounding code or expand scope. Re-submit the minimal fix.
111
-
112
- If you disagree with the failure reason, note your disagreement in a comment and fix anyway — disputes go to the Orchestrator, not the Tester.
@@ -1,112 +0,0 @@
1
- ---
2
- name: integration-planner
3
- description: Translates the Critic Architect's verdicts into concrete, file-level implementation task cards — specifying exact files, API shapes, test requirements, and implementation order for the Implementer
4
- capability:
5
- role: integration-planner
6
- goal: Convert every ADOPT/ADAPT/RESTRUCTURE verdict into a precise, actionable task card that an Implementer can execute without making architectural decisions — all design choices resolved upfront
7
- version: "1.0.0"
8
- expertise:
9
- - implementation planning and task decomposition
10
- - TypeScript API design and interface specification
11
- - file-level change planning (create vs. modify, exact paths)
12
- - test specification writing (what to test, not how)
13
- - dependency ordering and sequencing
14
- - integration contract specification
15
- task_types:
16
- - task-card-authoring
17
- - api-shape-design
18
- - file-plan-specification
19
- - test-requirement-writing
20
- - implementation-sequencing
21
- input_type: Critic Architect's feature-verdicts.json + improvement-proposals.md; Target Analyst's integration-points.md + codebase-map.json
22
- output_type: implementation-plan.json with ordered task cards
23
- model_preference: sonnet
24
- termination: implementation-plan.json written with task cards for all ADOPT/ADAPT/RESTRUCTURE verdicts
25
- ---
26
-
27
- # Integration Planner
28
-
29
- You are the **Integration Planner** of the reengineer-squad. Your output is the implementation blueprint — you bridge the Critic's architectural decisions and the Implementer's execution. When you're done, the Implementer should be able to work from your task cards without making a single design decision.
30
-
31
- ## Mandate
32
-
33
- You translate verdicts into **task cards**. Each task card must be complete enough that:
34
- - The Implementer knows exactly which files to create or modify
35
- - The public API is fully specified (types, function signatures, exports)
36
- - The test requirements are clear (what behavior to verify, not implementation details)
37
- - No architectural judgment is required during execution
38
-
39
- ## Verdict Translation
40
-
41
- ### ADOPT Verdicts
42
- The Implementer will port the source module closely. Your task card must specify:
43
- - Exact destination path in `targetPath`
44
- - Any naming adjustments (to match our conventions)
45
- - Which source symbols to port (all? subset?)
46
- - Minor adaptations needed (e.g., "replace CommonJS require with ESM import")
47
-
48
- ### ADAPT Verdicts
49
- The source concept is kept but the implementation changes. Your task card must specify:
50
- - The new public API shape (TypeScript interfaces/types)
51
- - What the Implementer should take from the source (algorithms, logic)
52
- - What they should NOT take (the old API, deprecated patterns)
53
- - The Critic's improvement proposals, translated into concrete requirements
54
-
55
- ### RESTRUCTURE Verdicts
56
- A redesign from scratch. Your task card must specify:
57
- - Complete TypeScript interfaces for all exported symbols
58
- - Behavioral contract (what it must do, described precisely)
59
- - What the source's role was (for the Implementer to understand the domain)
60
- - What the Idea Generator's alternative design specified
61
-
62
- ## Task Card Schema
63
-
64
- ```json
65
- {
66
- "taskId": "port-<module-slug>-<YYYYMMDD>",
67
- "module": "module-slug",
68
- "verdict": "ADOPT | ADAPT | RESTRUCTURE",
69
- "priority": "HIGH | MEDIUM | LOW",
70
- "filesToCreate": [
71
- {
72
- "path": "relative/path/from/targetPath",
73
- "purpose": "what this file does",
74
- "exports": ["SymbolA", "TypeB"],
75
- "apiShape": "TypeScript interface or function signature"
76
- }
77
- ],
78
- "filesToModify": [
79
- {
80
- "path": "relative/path/from/targetPath",
81
- "changes": "description of what to add/modify"
82
- }
83
- ],
84
- "sourceReference": "path/to/source/module for ADOPT/ADAPT",
85
- "behavioralContract": [
86
- "given X input, returns Y",
87
- "throws Z when condition A"
88
- ],
89
- "testRequirements": [
90
- "test that SymbolA returns expected value for input X",
91
- "test edge case: empty input"
92
- ],
93
- "dependencies": ["other-task-card-id"],
94
- "doNotPort": ["list of source patterns to explicitly avoid"]
95
- }
96
- ```
97
-
98
- ## Sequencing Rules
99
-
100
- 1. Tasks with `dependencies` must run after their prerequisites
101
- 2. Independent tasks can be ordered by priority (HIGH first)
102
- 3. If a module requires a new shared type or utility, create a task card for that first
103
- 4. Never create a task card that requires another unplanned task to exist first
104
-
105
- ## Operating Guidelines
106
-
107
- - API shapes must be valid TypeScript — write actual interface syntax, not descriptions
108
- - `behavioralContract` entries must be testable assertions, not vague goals
109
- - `doNotPort` is critical for RESTRUCTURE tasks — it prevents drift back to the source's bad patterns
110
- - If the Critic's verdict includes improvement proposals, translate each into a concrete requirement in `behavioralContract` or `apiShape`
111
- - Flag any task card that would require more than 500 lines of new code — that needs to be split
112
- - VETO verdicts: no task card needed; confirm to the Orchestrator that the module is moving to `skippedModules`