@monoes/monomindcli 1.8.0 → 1.9.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 (844) hide show
  1. package/.claude/agents/design/design-monodesign.md +121 -0
  2. package/.claude/agents/github/issue-tracker.md +12 -12
  3. package/.claude/agents/github/pr-manager.md +10 -10
  4. package/.claude/agents/github/release-manager.md +49 -105
  5. package/.claude/agents/github/repo-architect.md +73 -92
  6. package/.claude/agents/github/sync-coordinator.md +55 -123
  7. package/.claude/agents/marketing/marketing-competitive-content.md +155 -0
  8. package/.claude/agents/marketing/marketing-content-creator.md +13 -0
  9. package/.claude/agents/marketing/marketing-cro-specialist.md +147 -0
  10. package/.claude/agents/marketing/marketing-email-specialist.md +90 -0
  11. package/.claude/agents/marketing/marketing-launch-strategist.md +129 -0
  12. package/.claude/agents/marketing/marketing-pricing-strategist.md +127 -0
  13. package/.claude/agents/specialists/integration-architect.md +94 -0
  14. package/.claude/commands/agents/README.md +4 -0
  15. package/.claude/commands/agents/agent-capabilities.md +6 -2
  16. package/.claude/commands/agents/agent-coordination.md +4 -0
  17. package/.claude/commands/agents/agent-spawning.md +4 -0
  18. package/.claude/commands/agents/agent-types.md +6 -2
  19. package/.claude/commands/analysis/README.md +14 -5
  20. package/.claude/commands/analysis/bottleneck-detect.md +30 -123
  21. package/.claude/commands/analysis/performance-bottlenecks.md +14 -14
  22. package/.claude/commands/analysis/performance-report.md +38 -11
  23. package/.claude/commands/analysis/token-efficiency.md +13 -16
  24. package/.claude/commands/analysis/token-usage.md +34 -12
  25. package/.claude/commands/automation/README.md +15 -5
  26. package/.claude/commands/automation/auto-agent.md +49 -85
  27. package/.claude/commands/automation/self-healing.md +20 -18
  28. package/.claude/commands/automation/session-memory.md +28 -29
  29. package/.claude/commands/automation/smart-agents.md +17 -9
  30. package/.claude/commands/automation/smart-spawn.md +52 -11
  31. package/.claude/commands/automation/workflow-select.md +46 -11
  32. package/.claude/commands/browse.md +5 -0
  33. package/.claude/commands/coordination/README.md +9 -5
  34. package/.claude/commands/coordination/agent-spawn.md +53 -9
  35. package/.claude/commands/coordination/swarm-init.md +39 -42
  36. package/.claude/commands/coordination/task-orchestrate.md +65 -11
  37. package/.claude/commands/github/README.md +21 -8
  38. package/.claude/commands/github/github-modes.md +9 -5
  39. package/.claude/commands/github/issue-tracker.md +34 -33
  40. package/.claude/commands/github/pr-manager.md +20 -17
  41. package/.claude/commands/github/release-manager.md +37 -49
  42. package/.claude/commands/github/repo-architect.md +39 -41
  43. package/.claude/commands/github/sync-coordinator.md +45 -49
  44. package/.claude/commands/hive-mind/README.md +42 -17
  45. package/.claude/commands/hive-mind/hive-mind-consensus.md +68 -4
  46. package/.claude/commands/hive-mind/hive-mind-init.md +55 -5
  47. package/.claude/commands/hive-mind/hive-mind-memory.md +69 -4
  48. package/.claude/commands/hive-mind/hive-mind-spawn.md +71 -10
  49. package/.claude/commands/hive-mind/hive-mind-status.md +52 -4
  50. package/.claude/commands/hive-mind/hive-mind-stop.md +51 -4
  51. package/.claude/commands/hive-mind/hive-mind.md +74 -14
  52. package/.claude/commands/hooks/README.md +62 -7
  53. package/.claude/commands/hooks/overview.md +94 -35
  54. package/.claude/commands/hooks/post-edit.md +48 -87
  55. package/.claude/commands/hooks/post-task.md +37 -87
  56. package/.claude/commands/hooks/pre-edit.md +52 -84
  57. package/.claude/commands/hooks/pre-task.md +46 -81
  58. package/.claude/commands/hooks/session-end.md +49 -85
  59. package/.claude/commands/hooks/setup.md +87 -58
  60. package/.claude/commands/mastermind/_repeat.md +308 -0
  61. package/.claude/commands/mastermind/architect.md +49 -0
  62. package/.claude/commands/mastermind/brain.md +98 -0
  63. package/.claude/commands/mastermind/build.md +22 -0
  64. package/.claude/commands/mastermind/content.md +22 -0
  65. package/.claude/commands/mastermind/createorg.md +94 -0
  66. package/.claude/commands/mastermind/finance.md +22 -0
  67. package/.claude/commands/mastermind/idea.md +22 -0
  68. package/.claude/commands/mastermind/marketing.md +22 -0
  69. package/.claude/commands/mastermind/master.md +379 -0
  70. package/.claude/commands/mastermind/ops.md +22 -0
  71. package/.claude/commands/mastermind/release.md +22 -0
  72. package/.claude/commands/mastermind/research.md +22 -0
  73. package/.claude/commands/mastermind/review.md +22 -0
  74. package/.claude/commands/mastermind/runorg.md +106 -0
  75. package/.claude/commands/mastermind/sales.md +22 -0
  76. package/.claude/commands/mastermind/techport.md +17 -0
  77. package/.claude/commands/memory/README.md +75 -5
  78. package/.claude/commands/memory/memory-search.md +63 -11
  79. package/.claude/commands/monitoring/README.md +64 -4
  80. package/.claude/commands/monitoring/agent-metrics.md +50 -10
  81. package/.claude/commands/monitoring/agents.md +59 -32
  82. package/.claude/commands/monitoring/status.md +96 -34
  83. package/.claude/commands/monograph/README.md +102 -0
  84. package/.claude/commands/monograph/monograph-build.md +79 -0
  85. package/.claude/commands/monograph/monograph-search.md +96 -0
  86. package/.claude/commands/monograph/monograph-stats.md +53 -0
  87. package/.claude/commands/monograph/monograph-watch.md +63 -0
  88. package/.claude/commands/monograph/monograph-wiki.md +91 -0
  89. package/.claude/commands/monomind/createtask.md +277 -0
  90. package/.claude/commands/{monomind-do.md → monomind/do.md} +21 -8
  91. package/.claude/commands/monomind/help.md +118 -0
  92. package/.claude/commands/{monomind-idea.md → monomind/idea.md} +22 -28
  93. package/.claude/commands/{monomind-improve.md → monomind/improve.md} +21 -27
  94. package/.claude/commands/monomind/memory.md +230 -0
  95. package/.claude/commands/monomind/repeat.md +201 -0
  96. package/.claude/commands/monomind/review.md +313 -0
  97. package/.claude/commands/monomind/specialagents.md +125 -0
  98. package/.claude/commands/monomind/swarm.md +161 -0
  99. package/.claude/commands/monomind/understand.md +148 -0
  100. package/.claude/commands/optimization/README.md +69 -5
  101. package/.claude/commands/optimization/auto-topology.md +66 -43
  102. package/.claude/commands/optimization/parallel-execution.md +65 -39
  103. package/.claude/commands/optimization/performance-optimize.md +79 -0
  104. package/.claude/commands/pair/README.md +48 -230
  105. package/.claude/commands/pair/examples.md +85 -441
  106. package/.claude/commands/pair/modes.md +77 -303
  107. package/.claude/commands/pair/session.md +76 -359
  108. package/.claude/commands/sparc/analyzer.md +9 -26
  109. package/.claude/commands/sparc/architect.md +8 -25
  110. package/.claude/commands/sparc/ask.md +27 -68
  111. package/.claude/commands/sparc/batch-executor.md +8 -25
  112. package/.claude/commands/sparc/code.md +12 -53
  113. package/.claude/commands/sparc/coder.md +8 -25
  114. package/.claude/commands/sparc/debug.md +12 -53
  115. package/.claude/commands/sparc/debugger.md +8 -25
  116. package/.claude/commands/sparc/designer.md +8 -25
  117. package/.claude/commands/sparc/devops.md +16 -57
  118. package/.claude/commands/sparc/docs-writer.md +12 -53
  119. package/.claude/commands/sparc/documenter.md +8 -25
  120. package/.claude/commands/sparc/innovator.md +8 -25
  121. package/.claude/commands/sparc/integration.md +12 -53
  122. package/.claude/commands/sparc/mcp.md +12 -53
  123. package/.claude/commands/sparc/memory-manager.md +28 -25
  124. package/.claude/commands/sparc/optimizer.md +8 -25
  125. package/.claude/commands/sparc/orchestrator.md +35 -97
  126. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +13 -54
  127. package/.claude/commands/sparc/refinement-optimization-mode.md +13 -54
  128. package/.claude/commands/sparc/researcher.md +8 -25
  129. package/.claude/commands/sparc/reviewer.md +8 -25
  130. package/.claude/commands/sparc/security-review.md +13 -54
  131. package/.claude/commands/sparc/sparc-modes.md +97 -151
  132. package/.claude/commands/sparc/sparc.md +16 -56
  133. package/.claude/commands/sparc/spec-pseudocode.md +13 -54
  134. package/.claude/commands/sparc/supabase-admin.md +19 -66
  135. package/.claude/commands/sparc/swarm-coordinator.md +21 -25
  136. package/.claude/commands/sparc/tdd.md +8 -25
  137. package/.claude/commands/sparc/tester.md +8 -25
  138. package/.claude/commands/sparc/tutorial.md +12 -53
  139. package/.claude/commands/sparc/workflow-manager.md +8 -25
  140. package/.claude/commands/sparc.md +76 -130
  141. package/.claude/commands/stream-chain/pipeline.md +72 -77
  142. package/.claude/commands/stream-chain/run.md +133 -47
  143. package/.claude/commands/swarm/README.md +37 -12
  144. package/.claude/commands/swarm/analysis.md +47 -69
  145. package/.claude/commands/swarm/development.md +45 -69
  146. package/.claude/commands/swarm/examples.md +77 -142
  147. package/.claude/commands/swarm/maintenance.md +47 -74
  148. package/.claude/commands/swarm/optimization.md +54 -87
  149. package/.claude/commands/swarm/research.md +47 -107
  150. package/.claude/commands/swarm/swarm-analysis.md +58 -4
  151. package/.claude/commands/swarm/swarm-background.md +61 -4
  152. package/.claude/commands/swarm/swarm-modes.md +63 -4
  153. package/.claude/commands/swarm/swarm-monitor.md +50 -4
  154. package/.claude/commands/swarm/swarm-status.md +40 -4
  155. package/.claude/commands/swarm/swarm-strategies.md +73 -5
  156. package/.claude/commands/swarm/swarm.md +70 -18
  157. package/.claude/commands/swarm/testing.md +51 -102
  158. package/.claude/commands/tokens.md +6 -1
  159. package/.claude/commands/training/README.md +36 -6
  160. package/.claude/commands/training/model-update.md +68 -15
  161. package/.claude/commands/training/neural-patterns.md +54 -55
  162. package/.claude/commands/training/neural-train.md +70 -16
  163. package/.claude/commands/training/pattern-learn.md +60 -16
  164. package/.claude/commands/training/specialization.md +78 -49
  165. package/.claude/commands/truth/start.md +87 -109
  166. package/.claude/commands/ts.md +7 -2
  167. package/.claude/commands/verify/check.md +90 -34
  168. package/.claude/commands/verify/start.md +71 -94
  169. package/.claude/commands/workflows/README.md +62 -6
  170. package/.claude/commands/workflows/development.md +69 -61
  171. package/.claude/commands/workflows/research.md +73 -47
  172. package/.claude/commands/workflows/workflow-create.md +75 -16
  173. package/.claude/commands/workflows/workflow-execute.md +94 -16
  174. package/.claude/commands/workflows/workflow-export.md +81 -16
  175. package/.claude/helpers/control-start.cjs +91 -0
  176. package/.claude/helpers/extras-registry.json +4104 -1991
  177. package/.claude/helpers/graphify-freshen.cjs +44 -13
  178. package/.claude/helpers/hook-handler.cjs +256 -1
  179. package/.claude/helpers/learning-service.mjs +0 -0
  180. package/.claude/helpers/loop-tracker.cjs +107 -0
  181. package/.claude/helpers/metrics-db.mjs +0 -0
  182. package/.claude/helpers/router.cjs +48 -68
  183. package/.claude/helpers/skill-registry.json +89 -104
  184. package/.claude/helpers/statusline.cjs +33 -2
  185. package/.claude/helpers/swarm-hooks.sh +0 -0
  186. package/.claude/skills/.monomind/data/ranked-context.json +5 -0
  187. package/.claude/skills/.monomind/sessions/current.json +13 -0
  188. package/.claude/skills/.monomind/sessions/session-1777829336455.json +15 -0
  189. package/.claude/skills/.monomind/sessions/session-1777831614725.json +15 -0
  190. package/.claude/skills/.monomind/sessions/session-1777832095857.json +15 -0
  191. package/.claude/skills/.monomind/sessions/session-1777839814183.json +15 -0
  192. package/.claude/skills/.monomind/sessions/session-1777841847131.json +15 -0
  193. package/.claude/skills/.monomind/sessions/session-1777843309463.json +15 -0
  194. package/.claude/skills/.monomind/sessions/session-1777880867159.json +15 -0
  195. package/.claude/skills/.monomind/sessions/session-1777881884593.json +15 -0
  196. package/.claude/skills/.monomind/sessions/session-1777884090471.json +15 -0
  197. package/.claude/skills/.monomind/sessions/session-1777884808221.json +15 -0
  198. package/.claude/skills/.monomind/sessions/session-1777885672155.json +15 -0
  199. package/.claude/skills/.monomind/sessions/session-1777886852818.json +15 -0
  200. package/.claude/skills/.monomind/sessions/session-1777896532690.json +15 -0
  201. package/.claude/skills/agentdb-advanced/SKILL.md +11 -12
  202. package/.claude/skills/agentdb-learning/SKILL.md +20 -21
  203. package/.claude/skills/agentdb-memory-patterns/SKILL.md +28 -30
  204. package/.claude/skills/agentdb-optimization/SKILL.md +11 -12
  205. package/.claude/skills/agentdb-vector-search/SKILL.md +37 -41
  206. package/.claude/skills/{v3-integration-deep → agentic-integration}/SKILL.md +20 -13
  207. package/.claude/skills/agentic-jujutsu/SKILL.md +22 -22
  208. package/.claude/skills/{v3-cli-modernization → cli-modernization}/SKILL.md +17 -8
  209. package/.claude/skills/{v3-core-implementation → core-implementation}/SKILL.md +33 -8
  210. package/.claude/skills/{v3-ddd-architecture → ddd-architecture}/SKILL.md +18 -25
  211. package/.claude/skills/github-code-review/SKILL.md +82 -83
  212. package/.claude/skills/github-multi-repo/SKILL.md +42 -46
  213. package/.claude/skills/github-project-management/SKILL.md +83 -88
  214. package/.claude/skills/github-release-management/SKILL.md +12 -18
  215. package/.claude/skills/github-workflow-automation/SKILL.md +70 -74
  216. package/.claude/skills/hooks-automation/SKILL.md +9 -13
  217. package/.claude/skills/mastermind/_intake.md +83 -0
  218. package/.claude/skills/mastermind/_protocol.md +275 -0
  219. package/.claude/skills/mastermind/architect.md +847 -0
  220. package/.claude/skills/mastermind/build.md +158 -0
  221. package/.claude/skills/mastermind/content.md +185 -0
  222. package/.claude/skills/mastermind/createorg.md +318 -0
  223. package/.claude/skills/mastermind/finance.md +154 -0
  224. package/.claude/skills/mastermind/idea.md +158 -0
  225. package/.claude/skills/mastermind/marketing.md +216 -0
  226. package/.claude/skills/mastermind/monotask.md +350 -0
  227. package/.claude/skills/mastermind/ops.md +156 -0
  228. package/.claude/skills/mastermind/references/copywriting-frameworks.md +181 -0
  229. package/.claude/skills/mastermind/references/persuasion-psychology.md +158 -0
  230. package/.claude/skills/mastermind/release.md +156 -0
  231. package/.claude/skills/mastermind/research.md +156 -0
  232. package/.claude/skills/mastermind/review.md +157 -0
  233. package/.claude/skills/mastermind/runorg.md +308 -0
  234. package/.claude/skills/mastermind/sales.md +158 -0
  235. package/.claude/skills/mastermind/techport.md +743 -0
  236. package/.claude/skills/{v3-mcp-optimization → mcp-optimization}/SKILL.md +35 -14
  237. package/.claude/skills/{v3-memory-unification → memory-unification}/SKILL.md +20 -4
  238. package/.claude/skills/monodesign/SKILL.md +302 -0
  239. package/.claude/skills/monodesign/reference/adapt.md +190 -0
  240. package/.claude/skills/monodesign/reference/animate.md +175 -0
  241. package/.claude/skills/monodesign/reference/antipatterns-catalog.md +187 -0
  242. package/.claude/skills/monodesign/reference/audit.md +133 -0
  243. package/.claude/skills/monodesign/reference/bolder.md +113 -0
  244. package/.claude/skills/monodesign/reference/brand-workflow.md +180 -0
  245. package/.claude/skills/monodesign/reference/brand.md +114 -0
  246. package/.claude/skills/monodesign/reference/clarify.md +174 -0
  247. package/.claude/skills/monodesign/reference/cognitive-load.md +106 -0
  248. package/.claude/skills/monodesign/reference/color-and-contrast.md +105 -0
  249. package/.claude/skills/monodesign/reference/colorize.md +154 -0
  250. package/.claude/skills/monodesign/reference/component-specs.md +260 -0
  251. package/.claude/skills/monodesign/reference/component-states.md +274 -0
  252. package/.claude/skills/monodesign/reference/component-system.md +358 -0
  253. package/.claude/skills/monodesign/reference/copy-formulas.md +160 -0
  254. package/.claude/skills/monodesign/reference/craft.md +193 -0
  255. package/.claude/skills/monodesign/reference/critique.md +213 -0
  256. package/.claude/skills/monodesign/reference/delight.md +302 -0
  257. package/.claude/skills/monodesign/reference/design-principles.md +246 -0
  258. package/.claude/skills/monodesign/reference/distill.md +111 -0
  259. package/.claude/skills/monodesign/reference/document.md +427 -0
  260. package/.claude/skills/monodesign/reference/extract.md +69 -0
  261. package/.claude/skills/monodesign/reference/harden.md +347 -0
  262. package/.claude/skills/monodesign/reference/heuristics-scoring.md +234 -0
  263. package/.claude/skills/monodesign/reference/image-prompts.md +118 -0
  264. package/.claude/skills/monodesign/reference/interaction-design.md +195 -0
  265. package/.claude/skills/monodesign/reference/layout.md +141 -0
  266. package/.claude/skills/monodesign/reference/live.md +622 -0
  267. package/.claude/skills/monodesign/reference/motion-design.md +109 -0
  268. package/.claude/skills/monodesign/reference/onboard.md +234 -0
  269. package/.claude/skills/monodesign/reference/optimize.md +258 -0
  270. package/.claude/skills/monodesign/reference/overdrive.md +130 -0
  271. package/.claude/skills/monodesign/reference/personas.md +179 -0
  272. package/.claude/skills/monodesign/reference/polish.md +233 -0
  273. package/.claude/skills/monodesign/reference/pre-delivery-checklist.md +108 -0
  274. package/.claude/skills/monodesign/reference/product.md +62 -0
  275. package/.claude/skills/monodesign/reference/quieter.md +99 -0
  276. package/.claude/skills/monodesign/reference/responsive-design.md +114 -0
  277. package/.claude/skills/monodesign/reference/shape.md +151 -0
  278. package/.claude/skills/monodesign/reference/spatial-design.md +100 -0
  279. package/.claude/skills/monodesign/reference/teach.md +156 -0
  280. package/.claude/skills/monodesign/reference/token-architecture.md +222 -0
  281. package/.claude/skills/monodesign/reference/typeset.md +124 -0
  282. package/.claude/skills/monodesign/reference/typography.md +159 -0
  283. package/.claude/skills/monodesign/reference/ux-research.md +143 -0
  284. package/.claude/skills/monodesign/reference/ux-rules.md +211 -0
  285. package/.claude/skills/monodesign/reference/ux-writing.md +107 -0
  286. package/.claude/skills/monomotion/SKILL.md +145 -0
  287. package/.claude/skills/monomotion/rules/api-control.md +139 -0
  288. package/.claude/skills/monomotion/rules/effects.md +109 -0
  289. package/.claude/skills/monomotion/rules/integration.md +140 -0
  290. package/.claude/skills/monomotion/rules/scroll.md +131 -0
  291. package/.claude/skills/monomotion/rules/sequencing.md +105 -0
  292. package/.claude/skills/monomotion/rules/svg.md +101 -0
  293. package/.claude/skills/monomotion/rules/text.md +119 -0
  294. package/.claude/skills/pair-programming/SKILL.md +1 -1
  295. package/.claude/skills/performance-analysis/SKILL.md +3 -3
  296. package/.claude/skills/{v3-performance-optimization → performance-optimization}/SKILL.md +16 -8
  297. package/.claude/skills/reasoningbank-agentdb/SKILL.md +17 -19
  298. package/.claude/skills/reasoningbank-intelligence/SKILL.md +4 -6
  299. package/.claude/skills/{v3-security-overhaul → security-hardening}/SKILL.md +13 -3
  300. package/.claude/skills/skill-builder/SKILL.md +19 -19
  301. package/.claude/skills/sparc-methodology/SKILL.md +55 -211
  302. package/.claude/skills/stop-slop/SKILL.md +67 -0
  303. package/.claude/skills/stop-slop/references/examples.md +61 -0
  304. package/.claude/skills/stop-slop/references/phrases.md +130 -0
  305. package/.claude/skills/stop-slop/references/structures.md +136 -0
  306. package/.claude/skills/swarm-advanced/SKILL.md +13 -43
  307. package/.claude/skills/{v3-swarm-coordination → swarm-coordination}/SKILL.md +39 -21
  308. package/.claude/skills/swarm-orchestration/SKILL.md +12 -12
  309. package/.claude/skills/verification-quality/SKILL.md +5 -5
  310. package/README.md +5 -5
  311. package/bin/cli.js +78 -13
  312. package/dist/src/agents/halt-signal.d.ts.map +1 -1
  313. package/dist/src/agents/halt-signal.js +33 -7
  314. package/dist/src/agents/halt-signal.js.map +1 -1
  315. package/dist/src/agents/managed-agent.d.ts.map +1 -1
  316. package/dist/src/agents/managed-agent.js +5 -2
  317. package/dist/src/agents/managed-agent.js.map +1 -1
  318. package/dist/src/agents/prompt-experiment.d.ts +3 -2
  319. package/dist/src/agents/prompt-experiment.d.ts.map +1 -1
  320. package/dist/src/agents/prompt-experiment.js +1 -1
  321. package/dist/src/agents/prompt-experiment.js.map +1 -1
  322. package/dist/src/agents/prompt-version-manager.d.ts +5 -2
  323. package/dist/src/agents/prompt-version-manager.d.ts.map +1 -1
  324. package/dist/src/agents/prompt-version-manager.js +26 -4
  325. package/dist/src/agents/prompt-version-manager.js.map +1 -1
  326. package/dist/src/agents/specialization-scorer.d.ts.map +1 -1
  327. package/dist/src/agents/specialization-scorer.js +17 -9
  328. package/dist/src/agents/specialization-scorer.js.map +1 -1
  329. package/dist/src/agents/trigger-scanner.d.ts +5 -3
  330. package/dist/src/agents/trigger-scanner.d.ts.map +1 -1
  331. package/dist/src/agents/trigger-scanner.js +58 -10
  332. package/dist/src/agents/trigger-scanner.js.map +1 -1
  333. package/dist/src/agents/version-store.d.ts +0 -1
  334. package/dist/src/agents/version-store.d.ts.map +1 -1
  335. package/dist/src/agents/version-store.js +44 -21
  336. package/dist/src/agents/version-store.js.map +1 -1
  337. package/dist/src/autopilot-state.d.ts.map +1 -1
  338. package/dist/src/autopilot-state.js +79 -28
  339. package/dist/src/autopilot-state.js.map +1 -1
  340. package/dist/src/benchmarks/benchmark-runner.d.ts +7 -2
  341. package/dist/src/benchmarks/benchmark-runner.d.ts.map +1 -1
  342. package/dist/src/benchmarks/benchmark-runner.js +20 -8
  343. package/dist/src/benchmarks/benchmark-runner.js.map +1 -1
  344. package/dist/src/benchmarks/metric-evaluators.d.ts +2 -1
  345. package/dist/src/benchmarks/metric-evaluators.d.ts.map +1 -1
  346. package/dist/src/benchmarks/metric-evaluators.js +25 -2
  347. package/dist/src/benchmarks/metric-evaluators.js.map +1 -1
  348. package/dist/src/commands/agent.d.ts.map +1 -1
  349. package/dist/src/commands/agent.js +6 -4
  350. package/dist/src/commands/agent.js.map +1 -1
  351. package/dist/src/commands/appliance-advanced.d.ts.map +1 -1
  352. package/dist/src/commands/appliance-advanced.js +23 -0
  353. package/dist/src/commands/appliance-advanced.js.map +1 -1
  354. package/dist/src/commands/autopilot.d.ts.map +1 -1
  355. package/dist/src/commands/autopilot.js +3 -3
  356. package/dist/src/commands/autopilot.js.map +1 -1
  357. package/dist/src/commands/benchmark.d.ts.map +1 -1
  358. package/dist/src/commands/benchmark.js +119 -8
  359. package/dist/src/commands/benchmark.js.map +1 -1
  360. package/dist/src/commands/claims.d.ts.map +1 -1
  361. package/dist/src/commands/claims.js +22 -14
  362. package/dist/src/commands/claims.js.map +1 -1
  363. package/dist/src/commands/config.d.ts.map +1 -1
  364. package/dist/src/commands/config.js +32 -0
  365. package/dist/src/commands/config.js.map +1 -1
  366. package/dist/src/commands/daemon.d.ts.map +1 -1
  367. package/dist/src/commands/daemon.js +13 -11
  368. package/dist/src/commands/daemon.js.map +1 -1
  369. package/dist/src/commands/deployment.d.ts.map +1 -1
  370. package/dist/src/commands/deployment.js +21 -2
  371. package/dist/src/commands/deployment.js.map +1 -1
  372. package/dist/src/commands/doctor.d.ts.map +1 -1
  373. package/dist/src/commands/doctor.js +5 -4
  374. package/dist/src/commands/doctor.js.map +1 -1
  375. package/dist/src/commands/embeddings.d.ts.map +1 -1
  376. package/dist/src/commands/embeddings.js +124 -48
  377. package/dist/src/commands/embeddings.js.map +1 -1
  378. package/dist/src/commands/hive-mind.d.ts.map +1 -1
  379. package/dist/src/commands/hive-mind.js +15 -14
  380. package/dist/src/commands/hive-mind.js.map +1 -1
  381. package/dist/src/commands/hooks.d.ts.map +1 -1
  382. package/dist/src/commands/hooks.js +45 -41
  383. package/dist/src/commands/hooks.js.map +1 -1
  384. package/dist/src/commands/index.d.ts +2 -0
  385. package/dist/src/commands/index.d.ts.map +1 -1
  386. package/dist/src/commands/index.js +20 -7
  387. package/dist/src/commands/index.js.map +1 -1
  388. package/dist/src/commands/init.d.ts.map +1 -1
  389. package/dist/src/commands/init.js +53 -19
  390. package/dist/src/commands/init.js.map +1 -1
  391. package/dist/src/commands/mcp.d.ts.map +1 -1
  392. package/dist/src/commands/mcp.js +31 -44
  393. package/dist/src/commands/mcp.js.map +1 -1
  394. package/dist/src/commands/memory.d.ts.map +1 -1
  395. package/dist/src/commands/memory.js +47 -15
  396. package/dist/src/commands/memory.js.map +1 -1
  397. package/dist/src/commands/migrate.d.ts.map +1 -1
  398. package/dist/src/commands/migrate.js +156 -108
  399. package/dist/src/commands/migrate.js.map +1 -1
  400. package/dist/src/commands/monograph.d.ts +8 -0
  401. package/dist/src/commands/monograph.d.ts.map +1 -0
  402. package/dist/src/commands/monograph.js +526 -0
  403. package/dist/src/commands/monograph.js.map +1 -0
  404. package/dist/src/commands/neural.d.ts.map +1 -1
  405. package/dist/src/commands/neural.js +96 -56
  406. package/dist/src/commands/neural.js.map +1 -1
  407. package/dist/src/commands/performance.d.ts.map +1 -1
  408. package/dist/src/commands/performance.js +30 -8
  409. package/dist/src/commands/performance.js.map +1 -1
  410. package/dist/src/commands/plugins.d.ts.map +1 -1
  411. package/dist/src/commands/plugins.js +13 -37
  412. package/dist/src/commands/plugins.js.map +1 -1
  413. package/dist/src/commands/process.d.ts.map +1 -1
  414. package/dist/src/commands/process.js +25 -2
  415. package/dist/src/commands/process.js.map +1 -1
  416. package/dist/src/commands/providers.d.ts.map +1 -1
  417. package/dist/src/commands/providers.js +37 -5
  418. package/dist/src/commands/providers.js.map +1 -1
  419. package/dist/src/commands/replay.js +4 -4
  420. package/dist/src/commands/replay.js.map +1 -1
  421. package/dist/src/commands/route.d.ts.map +1 -1
  422. package/dist/src/commands/route.js +37 -5
  423. package/dist/src/commands/route.js.map +1 -1
  424. package/dist/src/commands/ruvector/import.d.ts.map +1 -1
  425. package/dist/src/commands/ruvector/import.js +12 -2
  426. package/dist/src/commands/ruvector/import.js.map +1 -1
  427. package/dist/src/commands/ruvector/init.d.ts.map +1 -1
  428. package/dist/src/commands/ruvector/init.js +15 -0
  429. package/dist/src/commands/ruvector/init.js.map +1 -1
  430. package/dist/src/commands/ruvector/status.d.ts.map +1 -1
  431. package/dist/src/commands/ruvector/status.js +16 -3
  432. package/dist/src/commands/ruvector/status.js.map +1 -1
  433. package/dist/src/commands/security.d.ts.map +1 -1
  434. package/dist/src/commands/security.js +342 -193
  435. package/dist/src/commands/security.js.map +1 -1
  436. package/dist/src/commands/session.d.ts.map +1 -1
  437. package/dist/src/commands/session.js +51 -8
  438. package/dist/src/commands/session.js.map +1 -1
  439. package/dist/src/commands/start.d.ts.map +1 -1
  440. package/dist/src/commands/start.js +18 -4
  441. package/dist/src/commands/start.js.map +1 -1
  442. package/dist/src/commands/swarm.d.ts.map +1 -1
  443. package/dist/src/commands/swarm.js +47 -36
  444. package/dist/src/commands/swarm.js.map +1 -1
  445. package/dist/src/commands/tokens.js +11 -11
  446. package/dist/src/commands/tokens.js.map +1 -1
  447. package/dist/src/commands/transfer-store.js +1 -1
  448. package/dist/src/commands/transfer-store.js.map +1 -1
  449. package/dist/src/commands/workflow.d.ts.map +1 -1
  450. package/dist/src/commands/workflow.js +31 -4
  451. package/dist/src/commands/workflow.js.map +1 -1
  452. package/dist/src/config-adapter.d.ts +2 -1
  453. package/dist/src/config-adapter.d.ts.map +1 -1
  454. package/dist/src/config-adapter.js.map +1 -1
  455. package/dist/src/consensus/audit-writer.d.ts.map +1 -1
  456. package/dist/src/consensus/audit-writer.js +46 -13
  457. package/dist/src/consensus/audit-writer.js.map +1 -1
  458. package/dist/src/consensus/vote-signer.d.ts +0 -3
  459. package/dist/src/consensus/vote-signer.d.ts.map +1 -1
  460. package/dist/src/consensus/vote-signer.js +9 -1
  461. package/dist/src/consensus/vote-signer.js.map +1 -1
  462. package/dist/src/dlq/dlq-reader.d.ts +4 -2
  463. package/dist/src/dlq/dlq-reader.d.ts.map +1 -1
  464. package/dist/src/dlq/dlq-reader.js +25 -8
  465. package/dist/src/dlq/dlq-reader.js.map +1 -1
  466. package/dist/src/dlq/dlq-replayer.d.ts +10 -3
  467. package/dist/src/dlq/dlq-replayer.d.ts.map +1 -1
  468. package/dist/src/dlq/dlq-replayer.js +50 -16
  469. package/dist/src/dlq/dlq-replayer.js.map +1 -1
  470. package/dist/src/dlq/dlq-writer.d.ts.map +1 -1
  471. package/dist/src/dlq/dlq-writer.js +27 -5
  472. package/dist/src/dlq/dlq-writer.js.map +1 -1
  473. package/dist/src/eval/dataset-manager.d.ts +2 -2
  474. package/dist/src/eval/dataset-manager.d.ts.map +1 -1
  475. package/dist/src/eval/dataset-manager.js +26 -16
  476. package/dist/src/eval/dataset-manager.js.map +1 -1
  477. package/dist/src/eval/trace-collector.d.ts.map +1 -1
  478. package/dist/src/eval/trace-collector.js +23 -3
  479. package/dist/src/eval/trace-collector.js.map +1 -1
  480. package/dist/src/index.d.ts.map +1 -1
  481. package/dist/src/index.js +12 -10
  482. package/dist/src/index.js.map +1 -1
  483. package/dist/src/init/claudemd-generator.js +8 -8
  484. package/dist/src/init/claudemd-generator.js.map +1 -1
  485. package/dist/src/init/executor.d.ts.map +1 -1
  486. package/dist/src/init/executor.js +212 -102
  487. package/dist/src/init/executor.js.map +1 -1
  488. package/dist/src/init/helpers-generator.d.ts.map +1 -1
  489. package/dist/src/init/helpers-generator.js +35 -22
  490. package/dist/src/init/helpers-generator.js.map +1 -1
  491. package/dist/src/init/mcp-generator.js +3 -3
  492. package/dist/src/init/mcp-generator.js.map +1 -1
  493. package/dist/src/init/settings-generator.d.ts.map +1 -1
  494. package/dist/src/init/settings-generator.js +10 -3
  495. package/dist/src/init/settings-generator.js.map +1 -1
  496. package/dist/src/init/shared-instructions-generator.d.ts.map +1 -1
  497. package/dist/src/init/shared-instructions-generator.js +18 -3
  498. package/dist/src/init/shared-instructions-generator.js.map +1 -1
  499. package/dist/src/init/statusline-generator.d.ts.map +1 -1
  500. package/dist/src/init/statusline-generator.js +3 -1
  501. package/dist/src/init/statusline-generator.js.map +1 -1
  502. package/dist/src/init/types.d.ts +35 -11
  503. package/dist/src/init/types.d.ts.map +1 -1
  504. package/dist/src/init/types.js +5 -9
  505. package/dist/src/init/types.js.map +1 -1
  506. package/dist/src/interactive/interrupt.d.ts.map +1 -1
  507. package/dist/src/interactive/interrupt.js +8 -3
  508. package/dist/src/interactive/interrupt.js.map +1 -1
  509. package/dist/src/mcp/tool-registry.d.ts.map +1 -1
  510. package/dist/src/mcp/tool-registry.js +38 -4
  511. package/dist/src/mcp/tool-registry.js.map +1 -1
  512. package/dist/src/mcp-client.d.ts.map +1 -1
  513. package/dist/src/mcp-client.js +10 -4
  514. package/dist/src/mcp-client.js.map +1 -1
  515. package/dist/src/mcp-server.d.ts +9 -2
  516. package/dist/src/mcp-server.d.ts.map +1 -1
  517. package/dist/src/mcp-server.js +182 -35
  518. package/dist/src/mcp-server.js.map +1 -1
  519. package/dist/src/mcp-tools/agent-tools.d.ts.map +1 -1
  520. package/dist/src/mcp-tools/agent-tools.js +66 -34
  521. package/dist/src/mcp-tools/agent-tools.js.map +1 -1
  522. package/dist/src/mcp-tools/agentdb-tools.d.ts.map +1 -1
  523. package/dist/src/mcp-tools/agentdb-tools.js +34 -7
  524. package/dist/src/mcp-tools/agentdb-tools.js.map +1 -1
  525. package/dist/src/mcp-tools/analyze-tools.d.ts.map +1 -1
  526. package/dist/src/mcp-tools/analyze-tools.js +25 -16
  527. package/dist/src/mcp-tools/analyze-tools.js.map +1 -1
  528. package/dist/src/mcp-tools/auto-install.d.ts.map +1 -1
  529. package/dist/src/mcp-tools/auto-install.js +4 -6
  530. package/dist/src/mcp-tools/auto-install.js.map +1 -1
  531. package/dist/src/mcp-tools/autopilot-tools.d.ts.map +1 -1
  532. package/dist/src/mcp-tools/autopilot-tools.js +12 -2
  533. package/dist/src/mcp-tools/autopilot-tools.js.map +1 -1
  534. package/dist/src/mcp-tools/browser-tools.d.ts.map +1 -1
  535. package/dist/src/mcp-tools/browser-tools.js +199 -20
  536. package/dist/src/mcp-tools/browser-tools.js.map +1 -1
  537. package/dist/src/mcp-tools/claims-tools.d.ts.map +1 -1
  538. package/dist/src/mcp-tools/claims-tools.js +68 -18
  539. package/dist/src/mcp-tools/claims-tools.js.map +1 -1
  540. package/dist/src/mcp-tools/config-tools.d.ts.map +1 -1
  541. package/dist/src/mcp-tools/config-tools.js +33 -5
  542. package/dist/src/mcp-tools/config-tools.js.map +1 -1
  543. package/dist/src/mcp-tools/coordination-tools.d.ts.map +1 -1
  544. package/dist/src/mcp-tools/coordination-tools.js +59 -4
  545. package/dist/src/mcp-tools/coordination-tools.js.map +1 -1
  546. package/dist/src/mcp-tools/daa-tools.d.ts.map +1 -1
  547. package/dist/src/mcp-tools/daa-tools.js +46 -10
  548. package/dist/src/mcp-tools/daa-tools.js.map +1 -1
  549. package/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -1
  550. package/dist/src/mcp-tools/embeddings-tools.js +46 -5
  551. package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
  552. package/dist/src/mcp-tools/github-tools.d.ts.map +1 -1
  553. package/dist/src/mcp-tools/github-tools.js +29 -16
  554. package/dist/src/mcp-tools/github-tools.js.map +1 -1
  555. package/dist/src/mcp-tools/guidance-tools.d.ts.map +1 -1
  556. package/dist/src/mcp-tools/guidance-tools.js +38 -10
  557. package/dist/src/mcp-tools/guidance-tools.js.map +1 -1
  558. package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -1
  559. package/dist/src/mcp-tools/hive-mind-tools.js +96 -33
  560. package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
  561. package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
  562. package/dist/src/mcp-tools/hooks-tools.js +70 -37
  563. package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
  564. package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -1
  565. package/dist/src/mcp-tools/memory-tools.js +29 -13
  566. package/dist/src/mcp-tools/memory-tools.js.map +1 -1
  567. package/dist/src/mcp-tools/monograph-tools.d.ts.map +1 -1
  568. package/dist/src/mcp-tools/monograph-tools.js +5867 -56
  569. package/dist/src/mcp-tools/monograph-tools.js.map +1 -1
  570. package/dist/src/mcp-tools/neural-tools.d.ts.map +1 -1
  571. package/dist/src/mcp-tools/neural-tools.js +121 -37
  572. package/dist/src/mcp-tools/neural-tools.js.map +1 -1
  573. package/dist/src/mcp-tools/performance-tools.d.ts.map +1 -1
  574. package/dist/src/mcp-tools/performance-tools.js +21 -8
  575. package/dist/src/mcp-tools/performance-tools.js.map +1 -1
  576. package/dist/src/mcp-tools/progress-tools.d.ts.map +1 -1
  577. package/dist/src/mcp-tools/progress-tools.js +10 -8
  578. package/dist/src/mcp-tools/progress-tools.js.map +1 -1
  579. package/dist/src/mcp-tools/request-tracker.d.ts.map +1 -1
  580. package/dist/src/mcp-tools/request-tracker.js +4 -1
  581. package/dist/src/mcp-tools/request-tracker.js.map +1 -1
  582. package/dist/src/mcp-tools/ruvllm-tools.d.ts.map +1 -1
  583. package/dist/src/mcp-tools/ruvllm-tools.js +19 -8
  584. package/dist/src/mcp-tools/ruvllm-tools.js.map +1 -1
  585. package/dist/src/mcp-tools/session-tools.d.ts.map +1 -1
  586. package/dist/src/mcp-tools/session-tools.js +57 -17
  587. package/dist/src/mcp-tools/session-tools.js.map +1 -1
  588. package/dist/src/mcp-tools/swarm-tools.d.ts.map +1 -1
  589. package/dist/src/mcp-tools/swarm-tools.js +35 -17
  590. package/dist/src/mcp-tools/swarm-tools.js.map +1 -1
  591. package/dist/src/mcp-tools/system-tools.d.ts.map +1 -1
  592. package/dist/src/mcp-tools/system-tools.js +4 -3
  593. package/dist/src/mcp-tools/system-tools.js.map +1 -1
  594. package/dist/src/mcp-tools/task-tools.d.ts.map +1 -1
  595. package/dist/src/mcp-tools/task-tools.js +53 -13
  596. package/dist/src/mcp-tools/task-tools.js.map +1 -1
  597. package/dist/src/mcp-tools/terminal-tools.d.ts.map +1 -1
  598. package/dist/src/mcp-tools/terminal-tools.js +63 -14
  599. package/dist/src/mcp-tools/terminal-tools.js.map +1 -1
  600. package/dist/src/mcp-tools/transfer-tools.d.ts.map +1 -1
  601. package/dist/src/mcp-tools/transfer-tools.js +21 -16
  602. package/dist/src/mcp-tools/transfer-tools.js.map +1 -1
  603. package/dist/src/mcp-tools/workflow-tools.d.ts.map +1 -1
  604. package/dist/src/mcp-tools/workflow-tools.js +92 -23
  605. package/dist/src/mcp-tools/workflow-tools.js.map +1 -1
  606. package/dist/src/memory/ewc-consolidation.d.ts.map +1 -1
  607. package/dist/src/memory/ewc-consolidation.js +41 -10
  608. package/dist/src/memory/ewc-consolidation.js.map +1 -1
  609. package/dist/src/memory/intelligence.d.ts +2 -2
  610. package/dist/src/memory/intelligence.d.ts.map +1 -1
  611. package/dist/src/memory/intelligence.js +39 -13
  612. package/dist/src/memory/intelligence.js.map +1 -1
  613. package/dist/src/memory/memory-bridge.d.ts +1 -0
  614. package/dist/src/memory/memory-bridge.d.ts.map +1 -1
  615. package/dist/src/memory/memory-bridge.js +149 -56
  616. package/dist/src/memory/memory-bridge.js.map +1 -1
  617. package/dist/src/memory/memory-initializer.d.ts.map +1 -1
  618. package/dist/src/memory/memory-initializer.js +107 -45
  619. package/dist/src/memory/memory-initializer.js.map +1 -1
  620. package/dist/src/memory/sona-optimizer.d.ts +8 -1
  621. package/dist/src/memory/sona-optimizer.d.ts.map +1 -1
  622. package/dist/src/memory/sona-optimizer.js +25 -8
  623. package/dist/src/memory/sona-optimizer.js.map +1 -1
  624. package/dist/src/observability/replay-reader.d.ts +40 -0
  625. package/dist/src/observability/replay-reader.d.ts.map +1 -0
  626. package/dist/src/observability/replay-reader.js +138 -0
  627. package/dist/src/observability/replay-reader.js.map +1 -0
  628. package/dist/src/orchestration/routing-modes.d.ts.map +1 -1
  629. package/dist/src/orchestration/routing-modes.js +35 -5
  630. package/dist/src/orchestration/routing-modes.js.map +1 -1
  631. package/dist/src/parser.d.ts +8 -0
  632. package/dist/src/parser.d.ts.map +1 -1
  633. package/dist/src/parser.js +48 -14
  634. package/dist/src/parser.js.map +1 -1
  635. package/dist/src/plugins/manager.d.ts.map +1 -1
  636. package/dist/src/plugins/manager.js +112 -19
  637. package/dist/src/plugins/manager.js.map +1 -1
  638. package/dist/src/plugins/store/discovery.d.ts +1 -1
  639. package/dist/src/plugins/store/discovery.d.ts.map +1 -1
  640. package/dist/src/plugins/store/discovery.js +80 -62
  641. package/dist/src/plugins/store/discovery.js.map +1 -1
  642. package/dist/src/production/circuit-breaker.d.ts.map +1 -1
  643. package/dist/src/production/circuit-breaker.js +8 -1
  644. package/dist/src/production/circuit-breaker.js.map +1 -1
  645. package/dist/src/production/error-handler.d.ts +4 -2
  646. package/dist/src/production/error-handler.d.ts.map +1 -1
  647. package/dist/src/production/error-handler.js +27 -5
  648. package/dist/src/production/error-handler.js.map +1 -1
  649. package/dist/src/production/monitoring.d.ts.map +1 -1
  650. package/dist/src/production/monitoring.js +8 -4
  651. package/dist/src/production/monitoring.js.map +1 -1
  652. package/dist/src/production/rate-limiter.d.ts.map +1 -1
  653. package/dist/src/production/rate-limiter.js +30 -22
  654. package/dist/src/production/rate-limiter.js.map +1 -1
  655. package/dist/src/ruvector/agent-wasm.js +2 -2
  656. package/dist/src/ruvector/agent-wasm.js.map +1 -1
  657. package/dist/src/ruvector/coverage-router.d.ts.map +1 -1
  658. package/dist/src/ruvector/coverage-router.js +19 -9
  659. package/dist/src/ruvector/coverage-router.js.map +1 -1
  660. package/dist/src/ruvector/diff-classifier.d.ts +1 -0
  661. package/dist/src/ruvector/diff-classifier.d.ts.map +1 -1
  662. package/dist/src/ruvector/diff-classifier.js +26 -6
  663. package/dist/src/ruvector/diff-classifier.js.map +1 -1
  664. package/dist/src/ruvector/enhanced-model-router.d.ts.map +1 -1
  665. package/dist/src/ruvector/enhanced-model-router.js +24 -2
  666. package/dist/src/ruvector/enhanced-model-router.js.map +1 -1
  667. package/dist/src/ruvector/index.d.ts +1 -2
  668. package/dist/src/ruvector/index.d.ts.map +1 -1
  669. package/dist/src/ruvector/index.js +2 -2
  670. package/dist/src/ruvector/index.js.map +1 -1
  671. package/dist/src/ruvector/model-router.d.ts +4 -2
  672. package/dist/src/ruvector/model-router.d.ts.map +1 -1
  673. package/dist/src/ruvector/model-router.js +30 -6
  674. package/dist/src/ruvector/model-router.js.map +1 -1
  675. package/dist/src/ruvector/moe-router.d.ts +7 -0
  676. package/dist/src/ruvector/moe-router.d.ts.map +1 -1
  677. package/dist/src/ruvector/moe-router.js +35 -12
  678. package/dist/src/ruvector/moe-router.js.map +1 -1
  679. package/dist/src/ruvector/q-learning-router.d.ts +7 -1
  680. package/dist/src/ruvector/q-learning-router.d.ts.map +1 -1
  681. package/dist/src/ruvector/q-learning-router.js +40 -9
  682. package/dist/src/ruvector/q-learning-router.js.map +1 -1
  683. package/dist/src/services/claim-service.d.ts +3 -1
  684. package/dist/src/services/claim-service.d.ts.map +1 -1
  685. package/dist/src/services/claim-service.js +33 -2
  686. package/dist/src/services/claim-service.js.map +1 -1
  687. package/dist/src/services/config-file-manager.d.ts +16 -2
  688. package/dist/src/services/config-file-manager.d.ts.map +1 -1
  689. package/dist/src/services/config-file-manager.js +105 -17
  690. package/dist/src/services/config-file-manager.js.map +1 -1
  691. package/dist/src/services/container-worker-pool.d.ts.map +1 -1
  692. package/dist/src/services/container-worker-pool.js +51 -11
  693. package/dist/src/services/container-worker-pool.js.map +1 -1
  694. package/dist/src/services/headless-worker-executor.d.ts +7 -0
  695. package/dist/src/services/headless-worker-executor.d.ts.map +1 -1
  696. package/dist/src/services/headless-worker-executor.js +188 -45
  697. package/dist/src/services/headless-worker-executor.js.map +1 -1
  698. package/dist/src/services/registry-api.d.ts.map +1 -1
  699. package/dist/src/services/registry-api.js +62 -9
  700. package/dist/src/services/registry-api.js.map +1 -1
  701. package/dist/src/services/ruvector-training.d.ts.map +1 -1
  702. package/dist/src/services/ruvector-training.js +8 -0
  703. package/dist/src/services/ruvector-training.js.map +1 -1
  704. package/dist/src/services/worker-daemon.d.ts +4 -1
  705. package/dist/src/services/worker-daemon.d.ts.map +1 -1
  706. package/dist/src/services/worker-daemon.js +112 -28
  707. package/dist/src/services/worker-daemon.js.map +1 -1
  708. package/dist/src/services/worker-queue.d.ts +9 -2
  709. package/dist/src/services/worker-queue.d.ts.map +1 -1
  710. package/dist/src/services/worker-queue.js +86 -5
  711. package/dist/src/services/worker-queue.js.map +1 -1
  712. package/dist/src/suggest.d.ts.map +1 -1
  713. package/dist/src/suggest.js +9 -0
  714. package/dist/src/suggest.js.map +1 -1
  715. package/dist/src/swarm/flow-enforcer.d.ts +5 -3
  716. package/dist/src/swarm/flow-enforcer.d.ts.map +1 -1
  717. package/dist/src/swarm/flow-enforcer.js +17 -5
  718. package/dist/src/swarm/flow-enforcer.js.map +1 -1
  719. package/dist/src/swarm/flow-visualizer.d.ts +3 -0
  720. package/dist/src/swarm/flow-visualizer.d.ts.map +1 -1
  721. package/dist/src/swarm/flow-visualizer.js +30 -6
  722. package/dist/src/swarm/flow-visualizer.js.map +1 -1
  723. package/dist/src/transfer/anonymization/index.d.ts.map +1 -1
  724. package/dist/src/transfer/anonymization/index.js +5 -3
  725. package/dist/src/transfer/anonymization/index.js.map +1 -1
  726. package/dist/src/transfer/export.d.ts.map +1 -1
  727. package/dist/src/transfer/export.js +5 -3
  728. package/dist/src/transfer/export.js.map +1 -1
  729. package/dist/src/transfer/ipfs/client.d.ts.map +1 -1
  730. package/dist/src/transfer/ipfs/client.js +84 -7
  731. package/dist/src/transfer/ipfs/client.js.map +1 -1
  732. package/dist/src/transfer/ipfs/upload.d.ts.map +1 -1
  733. package/dist/src/transfer/ipfs/upload.js +13 -4
  734. package/dist/src/transfer/ipfs/upload.js.map +1 -1
  735. package/dist/src/transfer/storage/gcs.d.ts.map +1 -1
  736. package/dist/src/transfer/storage/gcs.js +19 -10
  737. package/dist/src/transfer/storage/gcs.js.map +1 -1
  738. package/dist/src/transfer/store/discovery.d.ts +9 -2
  739. package/dist/src/transfer/store/discovery.d.ts.map +1 -1
  740. package/dist/src/transfer/store/discovery.js +68 -13
  741. package/dist/src/transfer/store/discovery.js.map +1 -1
  742. package/dist/src/transfer/store/download.d.ts +15 -6
  743. package/dist/src/transfer/store/download.d.ts.map +1 -1
  744. package/dist/src/transfer/store/download.js +113 -24
  745. package/dist/src/transfer/store/download.js.map +1 -1
  746. package/dist/src/transfer/store/publish.d.ts +1 -1
  747. package/dist/src/transfer/store/publish.d.ts.map +1 -1
  748. package/dist/src/transfer/store/publish.js +13 -14
  749. package/dist/src/transfer/store/publish.js.map +1 -1
  750. package/dist/src/transfer/store/registry.d.ts +3 -3
  751. package/dist/src/transfer/store/registry.d.ts.map +1 -1
  752. package/dist/src/transfer/store/registry.js +32 -16
  753. package/dist/src/transfer/store/registry.js.map +1 -1
  754. package/dist/src/ui/.monomind/sessions/current.json +2 -2
  755. package/dist/src/ui/dashboard.html +2507 -187
  756. package/dist/src/ui/server.mjs +1338 -149
  757. package/dist/src/update/checker.d.ts.map +1 -1
  758. package/dist/src/update/checker.js +17 -4
  759. package/dist/src/update/checker.js.map +1 -1
  760. package/dist/src/update/executor.d.ts.map +1 -1
  761. package/dist/src/update/executor.js +25 -20
  762. package/dist/src/update/executor.js.map +1 -1
  763. package/dist/src/update/rate-limiter.d.ts +11 -0
  764. package/dist/src/update/rate-limiter.d.ts.map +1 -1
  765. package/dist/src/update/rate-limiter.js +23 -3
  766. package/dist/src/update/rate-limiter.js.map +1 -1
  767. package/dist/src/utils/parse-jsonl.d.ts +6 -0
  768. package/dist/src/utils/parse-jsonl.d.ts.map +1 -0
  769. package/dist/src/utils/parse-jsonl.js +22 -0
  770. package/dist/src/utils/parse-jsonl.js.map +1 -0
  771. package/dist/src/workflow/condition-evaluator.d.ts.map +1 -1
  772. package/dist/src/workflow/condition-evaluator.js +37 -3
  773. package/dist/src/workflow/condition-evaluator.js.map +1 -1
  774. package/dist/src/workflow/dag-builder.d.ts.map +1 -1
  775. package/dist/src/workflow/dag-builder.js +27 -11
  776. package/dist/src/workflow/dag-builder.js.map +1 -1
  777. package/dist/src/workflow/dag-executor.d.ts.map +1 -1
  778. package/dist/src/workflow/dag-executor.js +51 -13
  779. package/dist/src/workflow/dag-executor.js.map +1 -1
  780. package/dist/src/workflow/dsl-schema.d.ts +3 -0
  781. package/dist/src/workflow/dsl-schema.d.ts.map +1 -1
  782. package/dist/src/workflow/dsl-schema.js +6 -2
  783. package/dist/src/workflow/dsl-schema.js.map +1 -1
  784. package/dist/src/workflow/template-engine.js +7 -0
  785. package/dist/src/workflow/template-engine.js.map +1 -1
  786. package/dist/src/workflow/workflow-executor.d.ts.map +1 -1
  787. package/dist/src/workflow/workflow-executor.js +95 -14
  788. package/dist/src/workflow/workflow-executor.js.map +1 -1
  789. package/dist/tsconfig.tsbuildinfo +1 -1
  790. package/package.json +15 -12
  791. package/.claude/agents/design/design-brand-guardian.md +0 -323
  792. package/.claude/agents/design/design-image-prompt-engineer.md +0 -237
  793. package/.claude/agents/design/design-inclusive-visuals-specialist.md +0 -72
  794. package/.claude/agents/design/design-ui-designer.md +0 -384
  795. package/.claude/agents/design/design-ux-architect.md +0 -470
  796. package/.claude/agents/design/design-ux-researcher.md +0 -330
  797. package/.claude/agents/design/design-visual-storyteller.md +0 -150
  798. package/.claude/agents/design/design-whimsy-injector.md +0 -439
  799. package/.claude/agents/v3/integration-architect.md +0 -338
  800. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
  801. package/.claude/commands/coordination/init.md +0 -44
  802. package/.claude/commands/coordination/orchestrate.md +0 -43
  803. package/.claude/commands/coordination/spawn.md +0 -45
  804. package/.claude/commands/github/code-review-swarm.md +0 -550
  805. package/.claude/commands/github/code-review.md +0 -25
  806. package/.claude/commands/github/github-swarm.md +0 -121
  807. package/.claude/commands/github/issue-triage.md +0 -25
  808. package/.claude/commands/github/multi-repo-swarm.md +0 -519
  809. package/.claude/commands/github/pr-enhance.md +0 -26
  810. package/.claude/commands/github/project-board-sync.md +0 -471
  811. package/.claude/commands/github/release-swarm.md +0 -590
  812. package/.claude/commands/github/repo-analyze.md +0 -25
  813. package/.claude/commands/github/swarm-issue.md +0 -482
  814. package/.claude/commands/github/swarm-pr.md +0 -310
  815. package/.claude/commands/github/workflow-automation.md +0 -468
  816. package/.claude/commands/hive-mind/hive-mind-metrics.md +0 -8
  817. package/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
  818. package/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
  819. package/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
  820. package/.claude/commands/list-agents.md +0 -17
  821. package/.claude/commands/memory/memory-persist.md +0 -25
  822. package/.claude/commands/memory/memory-usage.md +0 -25
  823. package/.claude/commands/memory/neural.md +0 -47
  824. package/.claude/commands/metrics.md +0 -11
  825. package/.claude/commands/monitoring/real-time-view.md +0 -25
  826. package/.claude/commands/monitoring/swarm-monitor.md +0 -25
  827. package/.claude/commands/monomind-createtask.md +0 -302
  828. package/.claude/commands/monomind-help.md +0 -103
  829. package/.claude/commands/monomind-memory.md +0 -107
  830. package/.claude/commands/monomind-repeat.md +0 -149
  831. package/.claude/commands/monomind-swarm.md +0 -205
  832. package/.claude/commands/optimization/cache-manage.md +0 -25
  833. package/.claude/commands/optimization/topology-optimize.md +0 -25
  834. package/.claude/commands/pair/commands.md +0 -546
  835. package/.claude/commands/pair/config.md +0 -510
  836. package/.claude/commands/pair/start.md +0 -209
  837. package/.claude/commands/use-agent.md +0 -67
  838. package/.claude/skills/monomind-createtask/SKILL.md +0 -269
  839. package/.claude/skills/monomind-task-engine/SKILL.md +0 -358
  840. package/LICENSE +0 -21
  841. /package/.claude/agents/{v3 → specialists}/memory-specialist.md +0 -0
  842. /package/.claude/agents/{v3 → specialists}/performance-engineer.md +0 -0
  843. /package/.claude/agents/{v3 → specialists}/queen-coordinator.md +0 -0
  844. /package/.claude/agents/{v3 → specialists}/security-architect.md +0 -0
@@ -0,0 +1,201 @@
1
+ ---
2
+ name: monomind:repeat
3
+ description: "Monomind — Repeat any prompt or slash command on a schedule — default 15 min interval, 10 repetitions. This is the universal loop wrapper for all commands."
4
+ ---
5
+
6
+ ## Argument Parsing
7
+
8
+ Parse `$ARGUMENTS` for the following flags. **Everything after the first `--` (double dash) is the prompt — no further flag parsing, even if subsequent `--` tokens appear.** If no `--` is present, extract known flags in any order and treat the remainder as the prompt:
9
+
10
+ - `--every <minutes>` — interval between repetitions in minutes (default: `15`). Minimum 1.
11
+ - `--times <count>` — total number of repetitions (default: `10`)
12
+ - `--rep <N>` — (internal continuation flag injected by ScheduleWakeup; do not expose to user). Must be a positive integer ≤ MAX_REPS+1; reject otherwise.
13
+ - `--loop <id>` — (internal continuation flag; preserves loop identity across runs). Must match format `repeat-[digits]-[digits]-[digits]`; reject otherwise.
14
+ - `--` — end of flags; everything after this is the prompt verbatim
15
+ - Everything else (after flag extraction) is the **prompt** to repeat
16
+
17
+ If `INTERVAL` is less than 1, set it to 1 and output: `[monomind:repeat] Interval clamped to 1 minute (minimum).`
18
+
19
+ If `MAX_REPS` is less than 1, set it to 1 and output: `[monomind:repeat] Repetitions clamped to 1 (minimum).`
20
+
21
+ If `MAX_REPS` is greater than 1000, set it to 1000 and output: `[monomind:repeat] Repetitions clamped to 1000 (maximum).`
22
+
23
+ If `--every` is present but its value is missing or not a number, use the default (15).
24
+
25
+ If `--loop` is present but does not match the pattern `repeat-<digits>-<digits>-<digits>`, output `[monomind:repeat] ERROR: invalid loop ID` and STOP.
26
+
27
+ **Examples:**
28
+ ```
29
+ /monomind:repeat --every 5 --times 9 /mastermind:architect --iterate 2 review this project
30
+ /monomind:repeat --every 1 --times 20 /mastermind:review check for security issues
31
+ /monomind:repeat --every 30 /monomind:do --space abc --board def
32
+ /monomind:repeat check deployment status
33
+ ```
34
+
35
+ If `$ARGUMENTS` is empty or contains only flags with no prompt, output this and STOP:
36
+ > **Usage:** `/monomind:repeat [--every <minutes>] [--times <count>] <prompt>`
37
+ >
38
+ > Defaults: every 15 minutes, 10 times.
39
+ >
40
+ > This is the universal loop wrapper. Wrap any slash command to repeat it:
41
+ > - `/monomind:repeat --every 5 --times 9 /mastermind:architect review this project`
42
+ > - `/monomind:repeat --every 1 --times 20 /mastermind:review check for security issues`
43
+ > - `/monomind:repeat --every 30 /monomind:do --space abc --board def`
44
+ > - `/monomind:repeat check deployment status`
45
+
46
+ ---
47
+
48
+ ## Internal Flag: `--rep` and `--loop`
49
+
50
+ When `--rep <N>` is present in arguments, this is a continuation from a previous wake-up:
51
+ - `INTERVAL`, `MAX_REPS`, and `PROMPT` are already set by argument parsing above (they arrive via the ScheduleWakeup prompt)
52
+ - Set `CURRENT_REP` to `N` instead of `1`
53
+ - Set `LOOP_ID` from `--loop <id>`
54
+ - Skip Step 1 initialization entirely
55
+ - Go directly to Step 2 (execute) with output:
56
+ ```
57
+ [monomind:repeat] Run N/MAX_REPS starting...
58
+ ```
59
+
60
+ ---
61
+
62
+ ## Step 1: Initialize
63
+
64
+ Extract:
65
+ - `INTERVAL` — from `--every` flag, default `15` (minutes), minimum 1
66
+ - `MAX_REPS` — from `--times` flag, default `10`
67
+ - `PROMPT` — everything remaining after flags are removed
68
+ - `CURRENT_REP` — starts at `1`
69
+
70
+ Write the initial loop state file so the dashboard can track this run. **You MUST run this bash block now via the Bash tool.** Before running, substitute `<INTERVAL>` and `<MAX_REPS>` with the parsed integer values. For `<PROMPT>`, substitute the raw prompt text inside the heredoc below — the single-quoted delimiter (`'MONOMIND_PROMPT_7x9k2m'`) prevents all bash expansion, and python3 handles JSON encoding. **If the prompt text contains the literal string `MONOMIND_PROMPT_7x9k2m`, replace that string in the prompt with `MONOMIND_PROMPT` before substitution** (this prevents heredoc delimiter collision):
71
+
72
+ ```bash
73
+ mkdir -p .monomind/loops
74
+ NOW_MS=$(python3 -c 'import time;print(int(time.time()*1000))' 2>/dev/null || echo "$(date +%s)000")
75
+ LOOP_ID="repeat-${NOW_MS}-${RANDOM}-$$"
76
+ PROMPT_JSON=$(python3 -c "import sys,json; sys.stdout.write(json.dumps(sys.stdin.read().rstrip(chr(10))))" << 'MONOMIND_PROMPT_7x9k2m'
77
+ <PROMPT>
78
+ MONOMIND_PROMPT_7x9k2m
79
+ )
80
+ if [ -z "$PROMPT_JSON" ]; then PROMPT_JSON='"(prompt unavailable)"'; fi
81
+ cat > ".monomind/loops/${LOOP_ID}.json" << EOF
82
+ {
83
+ "id": "${LOOP_ID}",
84
+ "sessionId": "${LOOP_ID}",
85
+ "type": "repeat",
86
+ "command": "/monomind:repeat",
87
+ "prompt": ${PROMPT_JSON},
88
+ "interval": <INTERVAL>,
89
+ "currentRep": 1,
90
+ "maxReps": <MAX_REPS>,
91
+ "startedAt": ${NOW_MS},
92
+ "lastRunAt": ${NOW_MS},
93
+ "nextRunAt": ${NOW_MS},
94
+ "status": "running"
95
+ }
96
+ EOF
97
+ echo "LOOP_ID=${LOOP_ID}"
98
+ curl -s -X POST "http://localhost:4242/api/mastermind/event" \
99
+ -H "Content-Type: application/json" \
100
+ -d "{\"type\":\"loop:start\",\"loopId\":\"${LOOP_ID}\",\"command\":\"/monomind:repeat\",\"maxReps\":<MAX_REPS>,\"interval\":<INTERVAL>,\"ts\":$(date +%s)000}" || true
101
+ ```
102
+
103
+ Capture the `LOOP_ID` value echoed by the script — you will need it for all subsequent bash blocks.
104
+
105
+ Output:
106
+ ```
107
+ [monomind:repeat] Starting: "<PROMPT>"
108
+ Interval: every INTERVAL minutes
109
+ Repetitions: MAX_REPS total
110
+ Run 1/MAX_REPS starting now...
111
+ ```
112
+
113
+ ---
114
+
115
+ ## Step 2: Execute the Prompt
116
+
117
+ Run the `PROMPT` as if the user typed it directly. This means:
118
+ - If the prompt starts with `/`, invoke it as a slash command via the Skill tool
119
+ - Otherwise, treat it as a normal user message and respond accordingly
120
+
121
+ ---
122
+
123
+ ## Step 3: Report and Schedule Next
124
+
125
+ **IMPORTANT:** In every bash block below, `<LOOP_ID>` must be substituted with the literal LOOP_ID value you captured from Step 1 (or from `--loop` on continuation runs). Shell variables do NOT persist between bash blocks.
126
+
127
+ Before scheduling the next run, check if a stop was requested:
128
+ ```bash
129
+ [ -f ".monomind/loops/<LOOP_ID>.stop" ] && echo "STOP_REQUESTED=true" || echo "STOP_REQUESTED=false"
130
+ ```
131
+ If `STOP_REQUESTED=true`, output `[monomind:repeat] Stop requested via dashboard. Halting.` and remove the state files:
132
+ ```bash
133
+ rm -f ".monomind/loops/<LOOP_ID>.json" ".monomind/loops/<LOOP_ID>.stop"
134
+ ```
135
+ Then STOP.
136
+
137
+ After execution completes, save the current rep as `PREV_REP`, then increment `CURRENT_REP`. Output:
138
+ ```
139
+ [monomind:repeat] Run PREV_REP/MAX_REPS complete.
140
+ ```
141
+
142
+ If `CURRENT_REP > MAX_REPS` (all runs done), output:
143
+ ```
144
+ [monomind:repeat] All MAX_REPS repetitions complete.
145
+ ```
146
+ Remove the state file and emit loop:complete:
147
+ ```bash
148
+ rm -f ".monomind/loops/<LOOP_ID>.json" ".monomind/loops/<LOOP_ID>.stop"
149
+ curl -s -X POST "http://localhost:4242/api/mastermind/event" \
150
+ -H "Content-Type: application/json" \
151
+ -d "{\"type\":\"loop:complete\",\"loopId\":\"<LOOP_ID>\",\"command\":\"/monomind:repeat\",\"ranReps\":<MAX_REPS>,\"ts\":$(date +%s)000}" || true
152
+ ```
153
+ STOP. Do NOT schedule another wake-up.
154
+
155
+ Otherwise, update the loop state before scheduling. **Run this bash block** (substitute `<LOOP_ID>`, `<INTERVAL>`, `<CURRENT_REP>`, `<MAX_REPS>`, and `<PREV_REP>` with their literal values):
156
+ ```bash
157
+ NOW_MS=$(python3 -c 'import time;print(int(time.time()*1000))' 2>/dev/null || echo "$(date +%s)000")
158
+ NEXT_AT=$(( NOW_MS + <INTERVAL> * 60 * 1000 ))
159
+ PROMPT_JSON=$(jq '.prompt' ".monomind/loops/<LOOP_ID>.json" 2>/dev/null \
160
+ || python3 -c "import json,sys; json.dump(json.load(open('.monomind/loops/<LOOP_ID>.json'))['prompt'], sys.stdout)" 2>/dev/null \
161
+ || echo '"(prompt unavailable)"')
162
+ STARTED_AT=$(jq '.startedAt' ".monomind/loops/<LOOP_ID>.json" 2>/dev/null \
163
+ || python3 -c "import json; print(json.load(open('.monomind/loops/<LOOP_ID>.json'))['startedAt'])" 2>/dev/null \
164
+ || echo "${NOW_MS}")
165
+ cat > ".monomind/loops/<LOOP_ID>.json" << EOF
166
+ {
167
+ "id": "<LOOP_ID>",
168
+ "sessionId": "<LOOP_ID>",
169
+ "type": "repeat",
170
+ "command": "/monomind:repeat",
171
+ "prompt": ${PROMPT_JSON},
172
+ "interval": <INTERVAL>,
173
+ "currentRep": <CURRENT_REP>,
174
+ "maxReps": <MAX_REPS>,
175
+ "startedAt": ${STARTED_AT},
176
+ "lastRunAt": ${NOW_MS},
177
+ "nextRunAt": ${NEXT_AT},
178
+ "status": "running"
179
+ }
180
+ EOF
181
+ curl -s -X POST "http://localhost:4242/api/mastermind/event" \
182
+ -H "Content-Type: application/json" \
183
+ -d "{\"type\":\"loop:tick\",\"loopId\":\"<LOOP_ID>\",\"command\":\"/monomind:repeat\",\"completedRep\":<PREV_REP>,\"nextRep\":<CURRENT_REP>,\"nextAt\":${NEXT_AT},\"ts\":$(date +%s)000}" || true
184
+ ```
185
+
186
+ Output: `[monomind:repeat] Next run in INTERVAL minutes (run CURRENT_REP/MAX_REPS)...`
187
+
188
+ Use `ScheduleWakeup` with:
189
+ - `delaySeconds`: `INTERVAL * 60`
190
+ - `prompt`: `/monomind:repeat --every <INTERVAL> --times <MAX_REPS> --rep <CURRENT_REP> --loop <LOOP_ID> -- <PROMPT>`
191
+ - `reason`: `"repeat run <CURRENT_REP>/<MAX_REPS> of /monomind:repeat"`
192
+
193
+ The `--` before `<PROMPT>` ensures the prompt text is never parsed as flags, even if it contains `--every` or `--times`. Substitute all angle-bracket values with their literals.
194
+
195
+ ---
196
+
197
+ ## Interruption
198
+
199
+ The user can stop the loop at any time by:
200
+ - Interrupting the session (the next scheduled wake-up simply won't fire)
201
+ - Creating `.monomind/loops/<LOOP_ID>.stop` (or clicking Stop in the dashboard)
@@ -0,0 +1,313 @@
1
+ ---
2
+ name: monomind:review
3
+ description: "Monomind — Multi-agent iterative review loop: runs Code Reviewer, Security Engineer, and domain specialists in parallel, auto-fixes findings each iteration, and captures human-in-loop items to a dated file."
4
+ ---
5
+
6
+ Parse `$ARGUMENTS` as `TOTAL_ITERATIONS` (integer, min 1, max 10).
7
+
8
+ If `$ARGUMENTS` is empty, not a positive integer, or greater than 10, output this and STOP:
9
+
10
+ > **Usage:** `/monomind:review <iterations>`
11
+ >
12
+ > Examples:
13
+ > - `/monomind:review 1` — single review pass
14
+ > - `/monomind:review 3` — three fix-and-re-review cycles
15
+ >
16
+ > Runs parallel review agents each iteration, auto-fixes what can be fixed, and saves items requiring human judgment to `humaninloopreview-YYYY-MM-DD.md`.
17
+
18
+ Do NOT proceed further if no valid number was provided.
19
+
20
+ ---
21
+
22
+ ## Terminology
23
+
24
+ - **Finding**: An issue reported by any review agent.
25
+ - **Auto-fixable**: Claude can apply the fix without ambiguity and without changing intended behavior.
26
+ - **Human-in-loop (HIL)**: Requires a product/design/architecture decision, a credential, a policy choice, or something Claude cannot safely assume. These are written to the HIL file and skipped.
27
+ - **HIL file**: `humaninloopreview-<YYYY-MM-DD>.md` in the project root. Appended each loop; never overwritten.
28
+
29
+ ---
30
+
31
+ ## Step 0: Setup
32
+
33
+ Parse `$ARGUMENTS` as `TOTAL_ITERATIONS` (integer, min 1, max 10).
34
+
35
+ Collect the following in parallel:
36
+
37
+ 1. **Git context**: Run the following to get recently changed files. Store result as `CHANGED_FILES`.
38
+ ```bash
39
+ CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD 2>/dev/null)
40
+ [ -z "$CHANGED_FILES" ] && CHANGED_FILES=$(git ls-files -m 2>/dev/null)
41
+ [ -z "$CHANGED_FILES" ] && CHANGED_FILES=$(git diff --name-only HEAD~5 HEAD 2>/dev/null)
42
+ ```
43
+ 2. **Repo structure**: Run `git ls-files | head -80` to get a representative file list. Store as `FILE_LIST`.
44
+ 3. **Branch info**: Run `git log --oneline -5` to get recent commit context. Store as `RECENT_COMMITS`.
45
+ 4. **Stack detection**: Run `ls package.json pyproject.toml go.mod Cargo.toml 2>/dev/null; find . -maxdepth 3 \( -name "*.swift" -o -name "*.kt" \) | head -3` to detect language/framework. Store detected stacks as `STACK`.
46
+ 5. **HIL file path**: Compute `HIL_FILE=humaninloopreview-$(date +%Y-%m-%d).md` in the project root.
47
+
48
+ Initialize tracking state:
49
+ ```
50
+ ITERATION = 1
51
+ ITERATIONS_RUN = 0 # how many iterations actually executed (for final report)
52
+ ALL_FIXED = [] # auto-fixed items (across all iterations)
53
+ ALL_HIL = [] # human-in-loop items (across all iterations)
54
+ HIL_COUNT = 0 # global counter for HIL-N labels
55
+ PENDING_FIXED = [] # staging: auto-fixed this batch, not yet verified
56
+ ITERATION_FIXED_FILES = [] # file paths edited this iteration
57
+ ```
58
+
59
+ ---
60
+
61
+ ## Step 1: Select Review Agents for This Stack
62
+
63
+ Based on `STACK`, determine which specialist agents to run beyond the always-on core set.
64
+
65
+ **Always run (every stack):**
66
+ - `Code Reviewer` — correctness, maintainability, performance, naming, dead code
67
+ - `Security Engineer` — injection, auth gaps, secrets exposure, CVE-prone patterns, OWASP Top 10
68
+ - `Reality Checker` — evidence-based assessment: does the code actually do what it claims?
69
+
70
+ **Run conditionally** — detect by running these checks and adding the agent if exit 0:
71
+ - `Accessibility Auditor` — `find . -maxdepth 5 \( -name "*.html" -o -name "*.jsx" -o -name "*.tsx" \) -not -path "*/node_modules/*" | head -1 | grep -q .`
72
+ - `API Tester` — `find . -maxdepth 5 \( -name "*.route.*" -o -name "openapi.yml" -o -name "openapi.json" -o -name "swagger.*" \) -not -path "*/node_modules/*" | head -1 | grep -q . || grep -rqEl "express\(|fastify|hono|koa|router\." --include="*.ts" --include="*.js" . 2>/dev/null`
73
+ - `Database Optimizer` — `find . -maxdepth 5 \( -name "*.sql" -o -name "*migration*" -o -name "*schema*" \) -not -path "*/node_modules/*" | head -1 | grep -q . || grep -rqEl "prisma|typeorm|sequelize|drizzle|knex" --include="*.ts" --include="*.js" . 2>/dev/null`
74
+ - `SRE` — `find . -maxdepth 3 \( -name "Dockerfile" -o -name "docker-compose*" -o -name "*.yml" -path "*/.github/workflows/*" \) | head -1 | grep -q .`
75
+ - `Mobile App Builder` — `find . -maxdepth 3 \( -name "*.swift" -o -name "*.kt" \) | head -1 | grep -q . || grep -q "react-native" package.json 2>/dev/null`
76
+
77
+ Store the selected set as `ACTIVE_REVIEWERS`.
78
+
79
+ ---
80
+
81
+ ## Loop: Run `TOTAL_ITERATIONS` times
82
+
83
+ For each iteration, first reset per-iteration state:
84
+ ```
85
+ PENDING_FIXED = []
86
+ ITERATION_FIXED_FILES = []
87
+ ```
88
+
89
+ ---
90
+
91
+ ### Step 2: Run All Reviewers in Parallel
92
+
93
+ Spawn one agent per reviewer in `ACTIVE_REVIEWERS` using the `Task` tool — all in a **single message** so they run concurrently.
94
+
95
+ Each agent receives:
96
+ - `CHANGED_FILES`, `FILE_LIST`, `RECENT_COMMITS`, `STACK`
97
+ - The list of findings already auto-fixed in prior iterations (so they don't re-report them)
98
+ - The list of HIL items already deferred (same reason)
99
+ - Their specific review focus (below)
100
+
101
+ #### Agent Instructions by Role
102
+
103
+ All agent prompts share this finding schema. `hil_reason` and `context` are only required when `auto_fixable: false`:
104
+ ```
105
+ {
106
+ file, line,
107
+ severity: critical|high|medium|low,
108
+ category: "...",
109
+ description,
110
+ suggested_fix,
111
+ auto_fixable: true|false,
112
+ hil_reason?: "only if auto_fixable=false — why Claude cannot safely apply this",
113
+ context?: "only if auto_fixable=false — 2-4 sentences: what the code does, why this is a problem, what the risk is"
114
+ }
115
+ ```
116
+
117
+ **Code Reviewer prompt:**
118
+ > Review the codebase for: logic errors, off-by-one bugs, null/undefined handling, dead code, overly complex functions (>50 lines or >3 nesting levels), naming inconsistencies, missing error propagation, and performance anti-patterns (N+1, blocking I/O, unnecessary allocations). Focus on `CHANGED_FILES` first, then related files. Return findings using the shared schema above.
119
+
120
+ **Security Engineer prompt:**
121
+ > Audit for: hardcoded secrets or API keys, SQL/command/path injection, missing input validation at system boundaries, insecure deserialization, broken auth/authz, sensitive data in logs, unpatched dependency versions with known CVEs, missing rate limiting on public endpoints, and CORS misconfigurations. Categories: injection|secrets|auth|deps|logging|config. Return findings using the shared schema above.
122
+
123
+ **Reality Checker prompt:**
124
+ > Check: does each function do what its name/docs claim? Are there missing test assertions? Are there commented-out code blocks, TODO/FIXME/HACK markers, or debug statements left in? Are there import cycles? Are env vars assumed to exist without validation? Categories: correctness|tests|debt|env. Return findings using the shared schema above.
125
+
126
+ **Accessibility Auditor prompt (if applicable):**
127
+ > Check: missing alt text, non-semantic HTML, keyboard-inaccessible interactive elements, insufficient color contrast (< 4.5:1 for text), missing ARIA labels, focus trap issues, and missing skip navigation. Category: a11y. Return findings using the shared schema above.
128
+
129
+ **API Tester prompt (if applicable):**
130
+ > Check: endpoints missing auth middleware, routes with no input validation, missing HTTP status codes on error paths, inconsistent response shapes, pagination not implemented where expected, and missing rate-limit headers. Category: api. Return findings using the shared schema above.
131
+
132
+ **Database Optimizer prompt (if applicable):**
133
+ > Check: missing indexes on foreign keys and frequently-queried columns, N+1 query patterns in ORM code, unparameterized queries, missing transactions around multi-step writes, and schema column type mismatches. Category: database. Return findings using the shared schema above.
134
+
135
+ **SRE prompt (if applicable):**
136
+ > Check: Docker images without pinned versions, CI jobs with no timeout, missing health check endpoints, hardcoded environment assumptions (localhost, fixed ports), missing retry logic on external calls, and secrets in CI config files. Categories: reliability|infra. Return findings using the shared schema above.
137
+
138
+ **Mobile App Builder prompt (if applicable):**
139
+ > Check: missing permission explanations, sensitive data stored in plain UserDefaults/SharedPreferences, missing loading/error states, hard-coded URLs, deprecated API usage, and missing offline/degraded-mode handling. Category: mobile. Return findings using the shared schema above.
140
+
141
+ ---
142
+
143
+ ### Step 3: Merge and Deduplicate Findings
144
+
145
+ Collect all agent outputs. As you collect each agent's findings, annotate each finding with `reporter: <agent role name>` (e.g., `"Code Reviewer"`, `"Security Engineer"`, `"Reality Checker"`). Merge into a single `ITERATION_FINDINGS` list. Deduplicate by `(file, category, description[:60])` — keep highest severity when duplicates exist. Do NOT deduplicate by line number, as applied fixes shift line numbers across iterations. Exclude anything already in `ALL_FIXED` or `ALL_HIL` by matching on `(file, description[:60])`.
146
+
147
+ Sort by severity: critical → high → medium → low.
148
+
149
+ ---
150
+
151
+ ### Step 4: Classify and Act
152
+
153
+ For each finding in `ITERATION_FINDINGS`:
154
+
155
+ **If `auto_fixable: true`:**
156
+ - Apply the fix using `Edit` (or `Write` for new files). Add the file path to `ITERATION_FIXED_FILES` list. Add the finding to a staging list `PENDING_FIXED`.
157
+
158
+ **If `auto_fixable: false` (HIL):**
159
+ - Add to `ALL_HIL`. Do NOT attempt to fix.
160
+
161
+ After processing all findings, if `PENDING_FIXED` is empty, skip verification and proceed to Step 5. Otherwise, run verification **once** for the whole batch. Run only commands appropriate for `STACK`:
162
+
163
+ **Node.js / TypeScript:**
164
+ ```bash
165
+ npm run --if-present lint 2>&1 | tail -5
166
+ npm run --if-present typecheck 2>&1 | tail -5
167
+ npm run --if-present test 2>&1 | tail -10
168
+ ```
169
+
170
+ **Python** (if `pyproject.toml` or `*.py` detected):
171
+ ```bash
172
+ ruff check . 2>&1 | tail -5
173
+ python -m pytest --tb=short -q 2>&1 | tail -10
174
+ ```
175
+
176
+ **Go** (if `go.mod` detected):
177
+ ```bash
178
+ go vet ./... 2>&1 | tail -5
179
+ go test ./... 2>&1 | tail -10
180
+ ```
181
+
182
+ **Rust** (if `Cargo.toml` detected):
183
+ ```bash
184
+ cargo check 2>&1 | tail -5
185
+ cargo test 2>&1 | tail -10
186
+ ```
187
+ - If all checks pass: move all `PENDING_FIXED` entries into `ALL_FIXED`.
188
+ - If any check fails: run `git restore` on each file in `ITERATION_FIXED_FILES` to undo all changes, move all `PENDING_FIXED` entries to `ALL_HIL` with `hil_reason: "batch auto-fix caused verification failure — apply individually"`. Print the error output.
189
+
190
+ ---
191
+
192
+ ### Step 5: Commit Fixes for This Iteration
193
+
194
+ If `ALL_FIXED` gained any new entries this iteration:
195
+
196
+ Stage only the files that were actually edited (tracked from `ITERATION_FIXED_FILES` collected in Step 4):
197
+ ```bash
198
+ git add <space-separated list of ITERATION_FIXED_FILES paths>
199
+ ```
200
+
201
+ Then commit with each fixed item on its own line in the body:
202
+ ```bash
203
+ git commit -m "fix(review): iteration <ITERATION> — <count> findings fixed by monomind:review
204
+
205
+ <file>:<line> — <description>
206
+ <file>:<line> — <description>
207
+
208
+ Co-Authored-By: nokhodian <nokhodian@gmail.com>"
209
+ ```
210
+
211
+ ---
212
+
213
+ ### Step 6: Write HIL Items to File
214
+
215
+ If any new HIL items were added this iteration, **append** to `HIL_FILE`. For each new HIL item, increment `HIL_COUNT` by 1 and use it as the label number:
216
+
217
+ ```markdown
218
+ ## Review Iteration <ITERATION> — <YYYY-MM-DD HH:MM>
219
+
220
+ <!-- One block per HIL finding; HIL_COUNT increments globally across all iterations -->
221
+ ### HIL-<HIL_COUNT>: <description> [`<severity>`]
222
+
223
+ **File:** `<file>:<line>`
224
+ **Category:** <category>
225
+ **Reported by:** <agent name>
226
+
227
+ **Context:**
228
+ <context from agent finding, or derive from description if context field absent>
229
+
230
+ **Suggested fix:**
231
+ <suggested_fix from agent, verbatim>
232
+
233
+ **Why human decision needed:**
234
+ <hil_reason>
235
+
236
+ **Your options:**
237
+ - [ ] Apply the suggested fix as-is
238
+ - [ ] Apply a modified fix (describe below)
239
+ - [ ] Defer — not a priority right now
240
+ - [ ] Reject — not applicable for this project
241
+
242
+ **Your response (fill in and save):**
243
+ >
244
+
245
+ ---
246
+ ```
247
+
248
+ After writing, print:
249
+ > `HIL_FILE` updated with <count> new items requiring human judgment.
250
+
251
+ ---
252
+
253
+ ### Step 7: Iteration Summary
254
+
255
+ Increment `ITERATIONS_RUN` by 1. Then print a table:
256
+
257
+ ```
258
+ ### Iteration <ITERATION> / <TOTAL_ITERATIONS>
259
+
260
+ | Reviewer | Findings | Auto-Fixed | HIL |
261
+ |---------------------|----------|------------|-----|
262
+ | Code Reviewer | N | N | N |
263
+ | Security Engineer | N | N | N |
264
+ | Reality Checker | N | N | N |
265
+ | ... | ... | ... | ... |
266
+ | **Total** | **N** | **N** | **N**|
267
+
268
+ Severity breakdown: X critical, Y high, Z medium, W low
269
+ ```
270
+
271
+ If zero findings remain after dedup and exclusions, print:
272
+ > No new findings. Review complete.
273
+ > Break out of the loop early.
274
+
275
+ Increment `ITERATION`. Continue to next iteration.
276
+
277
+ ---
278
+
279
+ ## Step 8: Final Report
280
+
281
+ After all iterations complete (or early exit), output:
282
+
283
+ ```markdown
284
+ ## monomind:review — Complete
285
+
286
+ **Iterations run:** <ITERATIONS_RUN> / <TOTAL_ITERATIONS>
287
+ **Reviewers active:** <list>
288
+
289
+ ### Auto-Fixed (<N> total)
290
+ | File | Line | Severity | Category | Description |
291
+ |------|------|----------|----------|-------------|
292
+ | ... | ... | ... | ... | ... |
293
+
294
+ ### Human-in-Loop (<N> items)
295
+ Saved to: `humaninloopreview-<date>.md`
296
+
297
+ | # | File | Severity | Category | Why HIL |
298
+ |---|------|----------|----------|---------|
299
+ | 1 | ... | ... | ... | ... |
300
+
301
+ ### How to resolve HIL items
302
+ 1. Open `humaninloopreview-<date>.md`
303
+ 2. For each item, fill in **Your response** and check the option box
304
+ 3. Apply your chosen fixes manually, or run `/monomind:review 1` again after fixing to re-verify
305
+
306
+ ### Commits created
307
+ <list of commit SHAs and messages from this session>
308
+ ```
309
+
310
+ If `ALL_HIL` is empty, omit the HIL section and congratulate:
311
+ > All findings were auto-fixed. No human decisions required.
312
+
313
+ To repeat this command on a schedule, wrap it with `/monomind:repeat`.
@@ -0,0 +1,125 @@
1
+ ---
2
+ name: monomind-specialagents
3
+ description: Activate a specialist agent persona — browse by category, activate by slug, or auto-select based on conversation context
4
+ ---
5
+
6
+ Activate a specialist agent persona. Three modes:
7
+
8
+ **Direct:** `/monomind:specialagents <slug>` — skip selection, activate immediately.
9
+
10
+ **Interactive:** `/monomind:specialagents` — guided category → agent selection.
11
+
12
+ **Auto:** `/monomind:specialagents auto` — LLM picks the best match from conversation context.
13
+
14
+ ---
15
+
16
+ ## Step 0 — Detect mode
17
+
18
+ - If `$ARGUMENTS` is a non-empty string that is **not** `auto`:
19
+ - Treat it as a slug/name → jump to **Step 4: Activate**.
20
+ - If `$ARGUMENTS` is `auto` or the user's message contains words like "auto", "automatically", "pick for me", "best agent", "suggest an agent":
21
+ - Jump to **Auto flow**.
22
+ - Otherwise → **Interactive flow**.
23
+
24
+ ---
25
+
26
+ ## Interactive flow
27
+
28
+ ### Step 1 — List categories
29
+
30
+ Run:
31
+ ```bash
32
+ node "${CLAUDE_PROJECT_DIR:-$(pwd)}/.claude/helpers/hook-handler.cjs" list-extras 2>/dev/null
33
+ ```
34
+
35
+ Parse the output. Extract the category names (lines like `=== ACADEMIC ===` → `academic`). Display them as a numbered list:
36
+
37
+ ```
38
+ Available agent categories:
39
+ 1. academic
40
+ 2. design
41
+ 3. marketing
42
+ 4. paid-media
43
+ 5. product
44
+ 6. project-management
45
+ 7. sales
46
+ 8. specialized
47
+ 9. support
48
+
49
+ Enter a number or category name:
50
+ ```
51
+
52
+ Wait for the user to reply with their choice.
53
+
54
+ ### Step 2 — List agents in chosen category
55
+
56
+ Map the user's reply to the lowercase category slug (e.g. "1" → `academic`, "Project Management" → `project-management`).
57
+
58
+ Run:
59
+ ```bash
60
+ node "${CLAUDE_PROJECT_DIR:-$(pwd)}/.claude/helpers/hook-handler.cjs" list-extras <category> 2>/dev/null
61
+ ```
62
+
63
+ Parse the agents listed. Display them numbered:
64
+
65
+ ```
66
+ Agents in <category>:
67
+ 1. slug-name — Short description
68
+ 2. ...
69
+
70
+ Enter a number or agent slug:
71
+ ```
72
+
73
+ Wait for the user to reply.
74
+
75
+ ### Step 3 — Confirm selection
76
+
77
+ Echo back: `Activating agent: <slug>`
78
+
79
+ Jump to **Step 4: Activate**.
80
+
81
+ ---
82
+
83
+ ## Auto flow
84
+
85
+ ### Auto Step 1 — Fetch all categories
86
+
87
+ Run:
88
+ ```bash
89
+ node "${CLAUDE_PROJECT_DIR:-$(pwd)}/.claude/helpers/hook-handler.cjs" list-extras 2>/dev/null
90
+ ```
91
+
92
+ Read the full output. Based on the current conversation context (the user's request, task description, or recent messages), decide which **category** is the best fit. Do not ask the user — choose silently.
93
+
94
+ ### Auto Step 2 — Fetch agents in chosen category
95
+
96
+ Run:
97
+ ```bash
98
+ node "${CLAUDE_PROJECT_DIR:-$(pwd)}/.claude/helpers/hook-handler.cjs" list-extras <chosen-category> 2>/dev/null
99
+ ```
100
+
101
+ Read the agent list. Based on the same conversation context, decide which **agent** is the best fit. Do not ask the user — choose silently.
102
+
103
+ Announce your reasoning in one sentence:
104
+ > "Auto-selected **<slug>** from **<category>** because <brief reason>."
105
+
106
+ Jump to **Step 4: Activate**.
107
+
108
+ ---
109
+
110
+ ## Step 4 — Activate
111
+
112
+ Run:
113
+ ```bash
114
+ node "${CLAUDE_PROJECT_DIR:-$(pwd)}/.claude/helpers/router.cjs" --load-agent "<slug>" 2>/dev/null
115
+ ```
116
+
117
+ Read the output. It will contain the agent's persona definition, capabilities, and behavioral rules.
118
+
119
+ **Adopt the agent identity fully:**
120
+ - Introduce yourself in the agent's voice: name, specialty, how you can help.
121
+ - Apply all behavioral rules from the loaded persona for the rest of this conversation.
122
+ - If the agent definition includes example openers or greetings, use one.
123
+ - Remain in character unless the user explicitly asks to switch agents or end the session.
124
+
125
+ If `router.cjs` returns an error or empty output, say: "Could not load agent `<slug>`. Run `/monomind:specialagents` to browse available agents."