moflo 4.8.31 → 4.8.33

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 (415) hide show
  1. package/package.json +13 -10
  2. package/src/@claude-flow/cli/dist/src/commands/doctor.js +1298 -1107
  3. package/src/@claude-flow/cli/dist/src/memory/memory-initializer.js +4 -7
  4. package/src/@claude-flow/cli/package.json +106 -106
  5. package/src/@claude-flow/neural/README.md +260 -0
  6. package/src/@claude-flow/neural/dist/algorithms/a2c.js +361 -0
  7. package/src/@claude-flow/neural/dist/algorithms/curiosity.js +392 -0
  8. package/src/@claude-flow/neural/dist/algorithms/decision-transformer.js +415 -0
  9. package/src/@claude-flow/neural/dist/algorithms/dqn.js +303 -0
  10. package/src/@claude-flow/neural/dist/algorithms/index.js +74 -0
  11. package/src/@claude-flow/neural/dist/algorithms/ppo.js +331 -0
  12. package/src/@claude-flow/neural/dist/algorithms/q-learning.js +259 -0
  13. package/src/@claude-flow/neural/dist/algorithms/sarsa.js +297 -0
  14. package/src/@claude-flow/neural/dist/application/index.js +7 -0
  15. package/src/@claude-flow/neural/dist/application/services/neural-application-service.js +161 -0
  16. package/src/@claude-flow/neural/dist/domain/entities/pattern.js +134 -0
  17. package/src/@claude-flow/neural/dist/domain/index.js +8 -0
  18. package/src/@claude-flow/neural/dist/domain/services/learning-service.js +195 -0
  19. package/src/@claude-flow/neural/dist/index.js +201 -0
  20. package/src/@claude-flow/neural/dist/modes/balanced.js +234 -0
  21. package/src/@claude-flow/neural/dist/modes/base.js +77 -0
  22. package/src/@claude-flow/neural/dist/modes/batch.js +316 -0
  23. package/src/@claude-flow/neural/dist/modes/edge.js +310 -0
  24. package/src/@claude-flow/neural/dist/modes/index.js +13 -0
  25. package/src/@claude-flow/neural/dist/modes/real-time.js +196 -0
  26. package/src/@claude-flow/neural/dist/modes/research.js +389 -0
  27. package/src/@claude-flow/neural/dist/pattern-learner.js +603 -0
  28. package/src/@claude-flow/neural/dist/reasoning-bank.js +993 -0
  29. package/src/@claude-flow/neural/dist/reasoningbank-adapter.js +463 -0
  30. package/src/@claude-flow/neural/dist/sona-integration.js +316 -0
  31. package/src/@claude-flow/neural/dist/sona-manager.js +695 -0
  32. package/src/@claude-flow/neural/dist/types.js +11 -0
  33. package/src/@claude-flow/neural/package.json +26 -0
  34. package/.claude/agents/browser/browser-agent.yaml +0 -182
  35. package/.claude/agents/database-specialist.yaml +0 -21
  36. package/.claude/agents/index.yaml +0 -17
  37. package/.claude/agents/project-coordinator.yaml +0 -15
  38. package/.claude/agents/python-specialist.yaml +0 -21
  39. package/.claude/agents/security-auditor.yaml +0 -20
  40. package/.claude/agents/typescript-specialist.yaml +0 -21
  41. package/.claude/checkpoints/1767754460.json +0 -8
  42. package/.claude/config/v3-dependency-optimization.json +0 -266
  43. package/.claude/config/v3-performance-targets.json +0 -251
  44. package/.claude/guidance/moflo-bootstrap.md +0 -129
  45. package/.claude/mcp.json +0 -13
  46. package/.claude/settings.json +0 -351
  47. package/.claude/settings.local.json +0 -18
  48. package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
  49. package/.claude/skills/agentdb-learning/SKILL.md +0 -545
  50. package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
  51. package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
  52. package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
  53. package/.claude/skills/browser/SKILL.md +0 -204
  54. package/.claude/skills/fl/SKILL.md +0 -583
  55. package/.claude/skills/flo/SKILL.md +0 -583
  56. package/.claude/skills/github-code-review/SKILL.md +0 -1140
  57. package/.claude/skills/github-multi-repo/SKILL.md +0 -874
  58. package/.claude/skills/github-project-management/SKILL.md +0 -1277
  59. package/.claude/skills/github-release-management/SKILL.md +0 -1081
  60. package/.claude/skills/github-workflow-automation/SKILL.md +0 -1065
  61. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
  62. package/.claude/skills/hooks-automation/SKILL.md +0 -1201
  63. package/.claude/skills/pair-programming/SKILL.md +0 -1202
  64. package/.claude/skills/performance-analysis/SKILL.md +0 -563
  65. package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
  66. package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
  67. package/.claude/skills/skill-builder/SKILL.md +0 -910
  68. package/.claude/skills/sparc-methodology/SKILL.md +0 -1115
  69. package/.claude/skills/stream-chain/SKILL.md +0 -563
  70. package/.claude/skills/swarm-advanced/SKILL.md +0 -973
  71. package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
  72. package/.claude/skills/v3-cli-modernization/SKILL.md +0 -872
  73. package/.claude/skills/v3-core-implementation/SKILL.md +0 -797
  74. package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -442
  75. package/.claude/skills/v3-integration-deep/SKILL.md +0 -241
  76. package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -777
  77. package/.claude/skills/v3-memory-unification/SKILL.md +0 -174
  78. package/.claude/skills/v3-performance-optimization/SKILL.md +0 -390
  79. package/.claude/skills/v3-security-overhaul/SKILL.md +0 -82
  80. package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -340
  81. package/.claude/skills/verification-quality/SKILL.md +0 -649
  82. package/.claude/skills/worker-benchmarks/skill.md +0 -135
  83. package/.claude/skills/worker-integration/skill.md +0 -154
  84. package/.claude/workflow-state.json +0 -9
  85. package/src/@claude-flow/cli/dist/src/appliance/gguf-engine.d.ts +0 -91
  86. package/src/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.d.ts +0 -102
  87. package/src/@claude-flow/cli/dist/src/appliance/rvfa-builder.d.ts +0 -44
  88. package/src/@claude-flow/cli/dist/src/appliance/rvfa-distribution.d.ts +0 -97
  89. package/src/@claude-flow/cli/dist/src/appliance/rvfa-format.d.ts +0 -111
  90. package/src/@claude-flow/cli/dist/src/appliance/rvfa-runner.d.ts +0 -69
  91. package/src/@claude-flow/cli/dist/src/appliance/rvfa-signing.d.ts +0 -123
  92. package/src/@claude-flow/cli/dist/src/benchmarks/pretrain/index.d.ts +0 -58
  93. package/src/@claude-flow/cli/dist/src/commands/agent.d.ts +0 -8
  94. package/src/@claude-flow/cli/dist/src/commands/analyze.d.ts +0 -19
  95. package/src/@claude-flow/cli/dist/src/commands/appliance-advanced.d.ts +0 -9
  96. package/src/@claude-flow/cli/dist/src/commands/appliance.d.ts +0 -8
  97. package/src/@claude-flow/cli/dist/src/commands/benchmark.d.ts +0 -10
  98. package/src/@claude-flow/cli/dist/src/commands/claims.d.ts +0 -10
  99. package/src/@claude-flow/cli/dist/src/commands/completions.d.ts +0 -10
  100. package/src/@claude-flow/cli/dist/src/commands/config.d.ts +0 -8
  101. package/src/@claude-flow/cli/dist/src/commands/daemon.d.ts +0 -8
  102. package/src/@claude-flow/cli/dist/src/commands/deployment.d.ts +0 -10
  103. package/src/@claude-flow/cli/dist/src/commands/diagnose.d.ts +0 -16
  104. package/src/@claude-flow/cli/dist/src/commands/doctor.d.ts +0 -10
  105. package/src/@claude-flow/cli/dist/src/commands/embeddings.d.ts +0 -18
  106. package/src/@claude-flow/cli/dist/src/commands/gate.d.ts +0 -23
  107. package/src/@claude-flow/cli/dist/src/commands/github.d.ts +0 -12
  108. package/src/@claude-flow/cli/dist/src/commands/guidance.d.ts +0 -8
  109. package/src/@claude-flow/cli/dist/src/commands/hive-mind.d.ts +0 -11
  110. package/src/@claude-flow/cli/dist/src/commands/hooks.d.ts +0 -8
  111. package/src/@claude-flow/cli/dist/src/commands/index.d.ts +0 -115
  112. package/src/@claude-flow/cli/dist/src/commands/init.d.ts +0 -8
  113. package/src/@claude-flow/cli/dist/src/commands/issues.d.ts +0 -21
  114. package/src/@claude-flow/cli/dist/src/commands/mcp.d.ts +0 -11
  115. package/src/@claude-flow/cli/dist/src/commands/memory.d.ts +0 -8
  116. package/src/@claude-flow/cli/dist/src/commands/migrate.d.ts +0 -8
  117. package/src/@claude-flow/cli/dist/src/commands/neural.d.ts +0 -10
  118. package/src/@claude-flow/cli/dist/src/commands/orc.d.ts +0 -21
  119. package/src/@claude-flow/cli/dist/src/commands/performance.d.ts +0 -10
  120. package/src/@claude-flow/cli/dist/src/commands/plugins.d.ts +0 -11
  121. package/src/@claude-flow/cli/dist/src/commands/process.d.ts +0 -10
  122. package/src/@claude-flow/cli/dist/src/commands/progress.d.ts +0 -11
  123. package/src/@claude-flow/cli/dist/src/commands/providers.d.ts +0 -10
  124. package/src/@claude-flow/cli/dist/src/commands/route.d.ts +0 -16
  125. package/src/@claude-flow/cli/dist/src/commands/ruvector/backup.d.ts +0 -11
  126. package/src/@claude-flow/cli/dist/src/commands/ruvector/benchmark.d.ts +0 -11
  127. package/src/@claude-flow/cli/dist/src/commands/ruvector/import.d.ts +0 -18
  128. package/src/@claude-flow/cli/dist/src/commands/ruvector/index.d.ts +0 -29
  129. package/src/@claude-flow/cli/dist/src/commands/ruvector/init.d.ts +0 -11
  130. package/src/@claude-flow/cli/dist/src/commands/ruvector/migrate.d.ts +0 -11
  131. package/src/@claude-flow/cli/dist/src/commands/ruvector/optimize.d.ts +0 -11
  132. package/src/@claude-flow/cli/dist/src/commands/ruvector/setup.d.ts +0 -18
  133. package/src/@claude-flow/cli/dist/src/commands/ruvector/status.d.ts +0 -11
  134. package/src/@claude-flow/cli/dist/src/commands/security.d.ts +0 -10
  135. package/src/@claude-flow/cli/dist/src/commands/session.d.ts +0 -8
  136. package/src/@claude-flow/cli/dist/src/commands/start.d.ts +0 -8
  137. package/src/@claude-flow/cli/dist/src/commands/status.d.ts +0 -8
  138. package/src/@claude-flow/cli/dist/src/commands/swarm.d.ts +0 -8
  139. package/src/@claude-flow/cli/dist/src/commands/task.d.ts +0 -8
  140. package/src/@claude-flow/cli/dist/src/commands/transfer-store.d.ts +0 -13
  141. package/src/@claude-flow/cli/dist/src/commands/update.d.ts +0 -8
  142. package/src/@claude-flow/cli/dist/src/commands/workflow.d.ts +0 -8
  143. package/src/@claude-flow/cli/dist/src/config/moflo-config.d.ts +0 -93
  144. package/src/@claude-flow/cli/dist/src/config-adapter.d.ts +0 -15
  145. package/src/@claude-flow/cli/dist/src/index.d.ts +0 -81
  146. package/src/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.d.ts +0 -68
  147. package/src/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts +0 -30
  148. package/src/@claude-flow/cli/dist/src/init/executor.d.ts +0 -41
  149. package/src/@claude-flow/cli/dist/src/init/helpers-generator.d.ts +0 -51
  150. package/src/@claude-flow/cli/dist/src/init/index.d.ts +0 -13
  151. package/src/@claude-flow/cli/dist/src/init/mcp-generator.d.ts +0 -29
  152. package/src/@claude-flow/cli/dist/src/init/moflo-init.d.ts +0 -31
  153. package/src/@claude-flow/cli/dist/src/init/settings-generator.d.ts +0 -14
  154. package/src/@claude-flow/cli/dist/src/init/statusline-generator.d.ts +0 -28
  155. package/src/@claude-flow/cli/dist/src/init/types.d.ts +0 -285
  156. package/src/@claude-flow/cli/dist/src/mcp-client.d.ts +0 -92
  157. package/src/@claude-flow/cli/dist/src/mcp-server.d.ts +0 -161
  158. package/src/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts +0 -9
  159. package/src/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.d.ts +0 -30
  160. package/src/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts +0 -38
  161. package/src/@claude-flow/cli/dist/src/mcp-tools/auto-install.d.ts +0 -83
  162. package/src/@claude-flow/cli/dist/src/mcp-tools/browser-tools.d.ts +0 -13
  163. package/src/@claude-flow/cli/dist/src/mcp-tools/claims-tools.d.ts +0 -12
  164. package/src/@claude-flow/cli/dist/src/mcp-tools/config-tools.d.ts +0 -8
  165. package/src/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.d.ts +0 -13
  166. package/src/@claude-flow/cli/dist/src/mcp-tools/daa-tools.d.ts +0 -13
  167. package/src/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.d.ts +0 -9
  168. package/src/@claude-flow/cli/dist/src/mcp-tools/github-tools.d.ts +0 -13
  169. package/src/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.d.ts +0 -8
  170. package/src/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts +0 -44
  171. package/src/@claude-flow/cli/dist/src/mcp-tools/index.d.ts +0 -23
  172. package/src/@claude-flow/cli/dist/src/mcp-tools/memory-tools.d.ts +0 -14
  173. package/src/@claude-flow/cli/dist/src/mcp-tools/neural-tools.d.ts +0 -16
  174. package/src/@claude-flow/cli/dist/src/mcp-tools/performance-tools.d.ts +0 -16
  175. package/src/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts +0 -14
  176. package/src/@claude-flow/cli/dist/src/mcp-tools/security-tools.d.ts +0 -18
  177. package/src/@claude-flow/cli/dist/src/mcp-tools/session-tools.d.ts +0 -8
  178. package/src/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.d.ts +0 -8
  179. package/src/@claude-flow/cli/dist/src/mcp-tools/system-tools.d.ts +0 -13
  180. package/src/@claude-flow/cli/dist/src/mcp-tools/task-tools.d.ts +0 -8
  181. package/src/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.d.ts +0 -13
  182. package/src/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.d.ts +0 -14
  183. package/src/@claude-flow/cli/dist/src/mcp-tools/types.d.ts +0 -31
  184. package/src/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.d.ts +0 -8
  185. package/src/@claude-flow/cli/dist/src/memory/ewc-consolidation.d.ts +0 -271
  186. package/src/@claude-flow/cli/dist/src/memory/intelligence.d.ts +0 -285
  187. package/src/@claude-flow/cli/dist/src/memory/memory-bridge.d.ts +0 -413
  188. package/src/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts +0 -405
  189. package/src/@claude-flow/cli/dist/src/memory/sona-optimizer.d.ts +0 -227
  190. package/src/@claude-flow/cli/dist/src/output.d.ts +0 -133
  191. package/src/@claude-flow/cli/dist/src/parser.d.ts +0 -51
  192. package/src/@claude-flow/cli/dist/src/plugins/manager.d.ts +0 -133
  193. package/src/@claude-flow/cli/dist/src/plugins/store/discovery.d.ts +0 -88
  194. package/src/@claude-flow/cli/dist/src/plugins/store/index.d.ts +0 -76
  195. package/src/@claude-flow/cli/dist/src/plugins/store/search.d.ts +0 -46
  196. package/src/@claude-flow/cli/dist/src/plugins/store/types.d.ts +0 -274
  197. package/src/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.d.ts +0 -7
  198. package/src/@claude-flow/cli/dist/src/plugins/tests/standalone-test.d.ts +0 -12
  199. package/src/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.d.ts +0 -7
  200. package/src/@claude-flow/cli/dist/src/production/circuit-breaker.d.ts +0 -101
  201. package/src/@claude-flow/cli/dist/src/production/error-handler.d.ts +0 -92
  202. package/src/@claude-flow/cli/dist/src/production/index.d.ts +0 -23
  203. package/src/@claude-flow/cli/dist/src/production/monitoring.d.ts +0 -161
  204. package/src/@claude-flow/cli/dist/src/production/rate-limiter.d.ts +0 -80
  205. package/src/@claude-flow/cli/dist/src/production/retry.d.ts +0 -48
  206. package/src/@claude-flow/cli/dist/src/prompt.d.ts +0 -44
  207. package/src/@claude-flow/cli/dist/src/runtime/headless.d.ts +0 -60
  208. package/src/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts +0 -67
  209. package/src/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts +0 -160
  210. package/src/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts +0 -33
  211. package/src/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts +0 -175
  212. package/src/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.d.ts +0 -146
  213. package/src/@claude-flow/cli/dist/src/ruvector/flash-attention.d.ts +0 -195
  214. package/src/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts +0 -187
  215. package/src/@claude-flow/cli/dist/src/ruvector/index.d.ts +0 -34
  216. package/src/@claude-flow/cli/dist/src/ruvector/lora-adapter.d.ts +0 -218
  217. package/src/@claude-flow/cli/dist/src/ruvector/model-router.d.ts +0 -220
  218. package/src/@claude-flow/cli/dist/src/ruvector/moe-router.d.ts +0 -206
  219. package/src/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts +0 -211
  220. package/src/@claude-flow/cli/dist/src/ruvector/semantic-router.d.ts +0 -77
  221. package/src/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts +0 -69
  222. package/src/@claude-flow/cli/dist/src/services/agent-router.d.ts +0 -63
  223. package/src/@claude-flow/cli/dist/src/services/agentic-flow-bridge.d.ts +0 -50
  224. package/src/@claude-flow/cli/dist/src/services/claim-service.d.ts +0 -204
  225. package/src/@claude-flow/cli/dist/src/services/container-worker-pool.d.ts +0 -197
  226. package/src/@claude-flow/cli/dist/src/services/daemon-lock.d.ts +0 -60
  227. package/src/@claude-flow/cli/dist/src/services/headless-worker-executor.d.ts +0 -304
  228. package/src/@claude-flow/cli/dist/src/services/index.d.ts +0 -13
  229. package/src/@claude-flow/cli/dist/src/services/learning-service.d.ts +0 -161
  230. package/src/@claude-flow/cli/dist/src/services/moflo-require.d.ts +0 -34
  231. package/src/@claude-flow/cli/dist/src/services/registry-api.d.ts +0 -58
  232. package/src/@claude-flow/cli/dist/src/services/ruvector-training.d.ts +0 -214
  233. package/src/@claude-flow/cli/dist/src/services/worker-daemon.d.ts +0 -225
  234. package/src/@claude-flow/cli/dist/src/services/worker-queue.d.ts +0 -194
  235. package/src/@claude-flow/cli/dist/src/services/workflow-gate.d.ts +0 -88
  236. package/src/@claude-flow/cli/dist/src/suggest.d.ts +0 -53
  237. package/src/@claude-flow/cli/dist/src/transfer/anonymization/index.d.ts +0 -25
  238. package/src/@claude-flow/cli/dist/src/transfer/deploy-seraphine.d.ts +0 -13
  239. package/src/@claude-flow/cli/dist/src/transfer/export.d.ts +0 -25
  240. package/src/@claude-flow/cli/dist/src/transfer/index.d.ts +0 -12
  241. package/src/@claude-flow/cli/dist/src/transfer/ipfs/client.d.ts +0 -109
  242. package/src/@claude-flow/cli/dist/src/transfer/ipfs/upload.d.ts +0 -95
  243. package/src/@claude-flow/cli/dist/src/transfer/models/seraphine.d.ts +0 -72
  244. package/src/@claude-flow/cli/dist/src/transfer/serialization/cfp.d.ts +0 -49
  245. package/src/@claude-flow/cli/dist/src/transfer/storage/gcs.d.ts +0 -82
  246. package/src/@claude-flow/cli/dist/src/transfer/storage/index.d.ts +0 -6
  247. package/src/@claude-flow/cli/dist/src/transfer/store/discovery.d.ts +0 -84
  248. package/src/@claude-flow/cli/dist/src/transfer/store/download.d.ts +0 -70
  249. package/src/@claude-flow/cli/dist/src/transfer/store/index.d.ts +0 -84
  250. package/src/@claude-flow/cli/dist/src/transfer/store/publish.d.ts +0 -76
  251. package/src/@claude-flow/cli/dist/src/transfer/store/registry.d.ts +0 -58
  252. package/src/@claude-flow/cli/dist/src/transfer/store/search.d.ts +0 -54
  253. package/src/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.d.ts +0 -12
  254. package/src/@claude-flow/cli/dist/src/transfer/store/types.d.ts +0 -193
  255. package/src/@claude-flow/cli/dist/src/transfer/test-seraphine.d.ts +0 -6
  256. package/src/@claude-flow/cli/dist/src/transfer/tests/test-store.d.ts +0 -7
  257. package/src/@claude-flow/cli/dist/src/transfer/types.d.ts +0 -245
  258. package/src/@claude-flow/cli/dist/src/types.d.ts +0 -198
  259. package/src/@claude-flow/cli/dist/src/update/checker.d.ts +0 -34
  260. package/src/@claude-flow/cli/dist/src/update/executor.d.ts +0 -32
  261. package/src/@claude-flow/cli/dist/src/update/index.d.ts +0 -33
  262. package/src/@claude-flow/cli/dist/src/update/rate-limiter.d.ts +0 -20
  263. package/src/@claude-flow/cli/dist/src/update/validator.d.ts +0 -17
  264. package/src/@claude-flow/guidance/dist/adversarial.d.ts +0 -284
  265. package/src/@claude-flow/guidance/dist/analyzer.d.ts +0 -530
  266. package/src/@claude-flow/guidance/dist/artifacts.d.ts +0 -283
  267. package/src/@claude-flow/guidance/dist/authority.d.ts +0 -290
  268. package/src/@claude-flow/guidance/dist/capabilities.d.ts +0 -209
  269. package/src/@claude-flow/guidance/dist/coherence.d.ts +0 -233
  270. package/src/@claude-flow/guidance/dist/compiler.d.ts +0 -87
  271. package/src/@claude-flow/guidance/dist/conformance-kit.d.ts +0 -225
  272. package/src/@claude-flow/guidance/dist/continue-gate.d.ts +0 -214
  273. package/src/@claude-flow/guidance/dist/crypto-utils.d.ts +0 -17
  274. package/src/@claude-flow/guidance/dist/evolution.d.ts +0 -282
  275. package/src/@claude-flow/guidance/dist/gates.d.ts +0 -79
  276. package/src/@claude-flow/guidance/dist/gateway.d.ts +0 -206
  277. package/src/@claude-flow/guidance/dist/generators.d.ts +0 -153
  278. package/src/@claude-flow/guidance/dist/headless.d.ts +0 -177
  279. package/src/@claude-flow/guidance/dist/hooks.d.ts +0 -109
  280. package/src/@claude-flow/guidance/dist/index.d.ts +0 -205
  281. package/src/@claude-flow/guidance/dist/ledger.d.ts +0 -162
  282. package/src/@claude-flow/guidance/dist/manifest-validator.d.ts +0 -289
  283. package/src/@claude-flow/guidance/dist/memory-gate.d.ts +0 -222
  284. package/src/@claude-flow/guidance/dist/meta-governance.d.ts +0 -265
  285. package/src/@claude-flow/guidance/dist/optimizer.d.ts +0 -104
  286. package/src/@claude-flow/guidance/dist/persistence.d.ts +0 -189
  287. package/src/@claude-flow/guidance/dist/proof.d.ts +0 -185
  288. package/src/@claude-flow/guidance/dist/retriever.d.ts +0 -116
  289. package/src/@claude-flow/guidance/dist/ruvbot-integration.d.ts +0 -370
  290. package/src/@claude-flow/guidance/dist/temporal.d.ts +0 -426
  291. package/src/@claude-flow/guidance/dist/trust.d.ts +0 -283
  292. package/src/@claude-flow/guidance/dist/truth-anchors.d.ts +0 -276
  293. package/src/@claude-flow/guidance/dist/types.d.ts +0 -378
  294. package/src/@claude-flow/guidance/dist/uncertainty.d.ts +0 -372
  295. package/src/@claude-flow/guidance/dist/wasm-kernel.d.ts +0 -48
  296. package/src/@claude-flow/memory/dist/agent-memory-scope.d.ts +0 -131
  297. package/src/@claude-flow/memory/dist/agent-memory-scope.test.d.ts +0 -8
  298. package/src/@claude-flow/memory/dist/agentdb-adapter.d.ts +0 -165
  299. package/src/@claude-flow/memory/dist/agentdb-backend.d.ts +0 -212
  300. package/src/@claude-flow/memory/dist/agentdb-backend.test.d.ts +0 -7
  301. package/src/@claude-flow/memory/dist/application/commands/delete-memory.command.d.ts +0 -65
  302. package/src/@claude-flow/memory/dist/application/commands/store-memory.command.d.ts +0 -48
  303. package/src/@claude-flow/memory/dist/application/index.d.ts +0 -12
  304. package/src/@claude-flow/memory/dist/application/queries/search-memory.query.d.ts +0 -72
  305. package/src/@claude-flow/memory/dist/application/services/memory-application-service.d.ts +0 -121
  306. package/src/@claude-flow/memory/dist/auto-memory-bridge.d.ts +0 -226
  307. package/src/@claude-flow/memory/dist/auto-memory-bridge.test.d.ts +0 -8
  308. package/src/@claude-flow/memory/dist/benchmark.test.d.ts +0 -2
  309. package/src/@claude-flow/memory/dist/cache-manager.d.ts +0 -134
  310. package/src/@claude-flow/memory/dist/controller-registry.d.ts +0 -216
  311. package/src/@claude-flow/memory/dist/controller-registry.test.d.ts +0 -14
  312. package/src/@claude-flow/memory/dist/database-provider.d.ts +0 -87
  313. package/src/@claude-flow/memory/dist/database-provider.test.d.ts +0 -7
  314. package/src/@claude-flow/memory/dist/domain/entities/memory-entry.d.ts +0 -143
  315. package/src/@claude-flow/memory/dist/domain/index.d.ts +0 -11
  316. package/src/@claude-flow/memory/dist/domain/repositories/memory-repository.interface.d.ts +0 -102
  317. package/src/@claude-flow/memory/dist/domain/services/memory-domain-service.d.ts +0 -105
  318. package/src/@claude-flow/memory/dist/hnsw-index.d.ts +0 -111
  319. package/src/@claude-flow/memory/dist/hnsw-lite.d.ts +0 -23
  320. package/src/@claude-flow/memory/dist/hybrid-backend.d.ts +0 -245
  321. package/src/@claude-flow/memory/dist/hybrid-backend.test.d.ts +0 -8
  322. package/src/@claude-flow/memory/dist/index.d.ts +0 -204
  323. package/src/@claude-flow/memory/dist/infrastructure/index.d.ts +0 -17
  324. package/src/@claude-flow/memory/dist/infrastructure/repositories/hybrid-memory-repository.d.ts +0 -66
  325. package/src/@claude-flow/memory/dist/learning-bridge.d.ts +0 -137
  326. package/src/@claude-flow/memory/dist/learning-bridge.test.d.ts +0 -8
  327. package/src/@claude-flow/memory/dist/memory-graph.d.ts +0 -100
  328. package/src/@claude-flow/memory/dist/memory-graph.test.d.ts +0 -8
  329. package/src/@claude-flow/memory/dist/migration.d.ts +0 -68
  330. package/src/@claude-flow/memory/dist/persistent-sona.d.ts +0 -144
  331. package/src/@claude-flow/memory/dist/query-builder.d.ts +0 -211
  332. package/src/@claude-flow/memory/dist/rvf-backend.d.ts +0 -51
  333. package/src/@claude-flow/memory/dist/rvf-learning-store.d.ts +0 -139
  334. package/src/@claude-flow/memory/dist/rvf-migration.d.ts +0 -45
  335. package/src/@claude-flow/memory/dist/sqlite-backend.d.ts +0 -121
  336. package/src/@claude-flow/memory/dist/sqljs-backend.d.ts +0 -127
  337. package/src/@claude-flow/memory/dist/types.d.ts +0 -484
  338. package/src/@claude-flow/shared/dist/core/config/defaults.d.ts +0 -41
  339. package/src/@claude-flow/shared/dist/core/config/index.d.ts +0 -8
  340. package/src/@claude-flow/shared/dist/core/config/loader.d.ts +0 -45
  341. package/src/@claude-flow/shared/dist/core/config/schema.d.ts +0 -1134
  342. package/src/@claude-flow/shared/dist/core/config/validator.d.ts +0 -92
  343. package/src/@claude-flow/shared/dist/core/event-bus.d.ts +0 -31
  344. package/src/@claude-flow/shared/dist/core/index.d.ts +0 -15
  345. package/src/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts +0 -200
  346. package/src/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts +0 -310
  347. package/src/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts +0 -224
  348. package/src/@claude-flow/shared/dist/core/interfaces/index.d.ts +0 -10
  349. package/src/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts +0 -298
  350. package/src/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts +0 -185
  351. package/src/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts +0 -35
  352. package/src/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts +0 -60
  353. package/src/@claude-flow/shared/dist/core/orchestrator/index.d.ts +0 -46
  354. package/src/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts +0 -56
  355. package/src/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts +0 -83
  356. package/src/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts +0 -49
  357. package/src/@claude-flow/shared/dist/events/domain-events.d.ts +0 -282
  358. package/src/@claude-flow/shared/dist/events/event-store.d.ts +0 -126
  359. package/src/@claude-flow/shared/dist/events/event-store.test.d.ts +0 -8
  360. package/src/@claude-flow/shared/dist/events/example-usage.d.ts +0 -10
  361. package/src/@claude-flow/shared/dist/events/index.d.ts +0 -21
  362. package/src/@claude-flow/shared/dist/events/projections.d.ts +0 -177
  363. package/src/@claude-flow/shared/dist/events/rvf-event-log.d.ts +0 -82
  364. package/src/@claude-flow/shared/dist/events/state-reconstructor.d.ts +0 -101
  365. package/src/@claude-flow/shared/dist/events.d.ts +0 -80
  366. package/src/@claude-flow/shared/dist/hooks/example-usage.d.ts +0 -42
  367. package/src/@claude-flow/shared/dist/hooks/executor.d.ts +0 -100
  368. package/src/@claude-flow/shared/dist/hooks/hooks.test.d.ts +0 -9
  369. package/src/@claude-flow/shared/dist/hooks/index.d.ts +0 -52
  370. package/src/@claude-flow/shared/dist/hooks/registry.d.ts +0 -133
  371. package/src/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts +0 -105
  372. package/src/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts +0 -144
  373. package/src/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts +0 -158
  374. package/src/@claude-flow/shared/dist/hooks/safety/index.d.ts +0 -17
  375. package/src/@claude-flow/shared/dist/hooks/session-hooks.d.ts +0 -234
  376. package/src/@claude-flow/shared/dist/hooks/task-hooks.d.ts +0 -163
  377. package/src/@claude-flow/shared/dist/hooks/types.d.ts +0 -267
  378. package/src/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts +0 -9
  379. package/src/@claude-flow/shared/dist/index.d.ts +0 -20
  380. package/src/@claude-flow/shared/dist/mcp/connection-pool.d.ts +0 -98
  381. package/src/@claude-flow/shared/dist/mcp/index.d.ts +0 -69
  382. package/src/@claude-flow/shared/dist/mcp/server.d.ts +0 -166
  383. package/src/@claude-flow/shared/dist/mcp/session-manager.d.ts +0 -136
  384. package/src/@claude-flow/shared/dist/mcp/tool-registry.d.ts +0 -178
  385. package/src/@claude-flow/shared/dist/mcp/transport/http.d.ts +0 -104
  386. package/src/@claude-flow/shared/dist/mcp/transport/index.d.ts +0 -102
  387. package/src/@claude-flow/shared/dist/mcp/transport/stdio.d.ts +0 -104
  388. package/src/@claude-flow/shared/dist/mcp/transport/websocket.d.ts +0 -133
  389. package/src/@claude-flow/shared/dist/mcp/types.d.ts +0 -438
  390. package/src/@claude-flow/shared/dist/plugin-interface.d.ts +0 -544
  391. package/src/@claude-flow/shared/dist/plugin-loader.d.ts +0 -139
  392. package/src/@claude-flow/shared/dist/plugin-registry.d.ts +0 -183
  393. package/src/@claude-flow/shared/dist/plugins/index.d.ts +0 -10
  394. package/src/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts +0 -106
  395. package/src/@claude-flow/shared/dist/plugins/official/index.d.ts +0 -10
  396. package/src/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts +0 -121
  397. package/src/@claude-flow/shared/dist/plugins/types.d.ts +0 -93
  398. package/src/@claude-flow/shared/dist/resilience/bulkhead.d.ts +0 -105
  399. package/src/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts +0 -132
  400. package/src/@claude-flow/shared/dist/resilience/index.d.ts +0 -19
  401. package/src/@claude-flow/shared/dist/resilience/rate-limiter.d.ts +0 -168
  402. package/src/@claude-flow/shared/dist/resilience/retry.d.ts +0 -91
  403. package/src/@claude-flow/shared/dist/security/index.d.ts +0 -10
  404. package/src/@claude-flow/shared/dist/security/input-validation.d.ts +0 -73
  405. package/src/@claude-flow/shared/dist/security/secure-random.d.ts +0 -92
  406. package/src/@claude-flow/shared/dist/services/index.d.ts +0 -7
  407. package/src/@claude-flow/shared/dist/services/v3-progress.service.d.ts +0 -124
  408. package/src/@claude-flow/shared/dist/types/agent.types.d.ts +0 -137
  409. package/src/@claude-flow/shared/dist/types/index.d.ts +0 -11
  410. package/src/@claude-flow/shared/dist/types/mcp.types.d.ts +0 -266
  411. package/src/@claude-flow/shared/dist/types/memory.types.d.ts +0 -236
  412. package/src/@claude-flow/shared/dist/types/swarm.types.d.ts +0 -186
  413. package/src/@claude-flow/shared/dist/types/task.types.d.ts +0 -178
  414. package/src/@claude-flow/shared/dist/types.d.ts +0 -197
  415. package/src/@claude-flow/shared/dist/utils/secure-logger.d.ts +0 -69
@@ -1,81 +0,0 @@
1
- /**
2
- * V3 CLI Main Entry Point
3
- * MoFlo V4 CLI
4
- *
5
- * Created with ❤️ by motailz.com
6
- */
7
- export declare const VERSION: string;
8
- export interface CLIOptions {
9
- name?: string;
10
- description?: string;
11
- version?: string;
12
- interactive?: boolean;
13
- }
14
- /**
15
- * V3 CLI Application
16
- */
17
- export declare class CLI {
18
- private name;
19
- private description;
20
- private version;
21
- private parser;
22
- private output;
23
- private interactive;
24
- constructor(options?: CLIOptions);
25
- /**
26
- * Run the CLI with given arguments
27
- */
28
- run(args?: string[]): Promise<void>;
29
- /**
30
- * Show main help
31
- */
32
- private showHelp;
33
- /**
34
- * Show command-specific help
35
- */
36
- private showCommandHelp;
37
- /**
38
- * Show version
39
- */
40
- private showVersion;
41
- /**
42
- * Check for updates on startup (non-blocking)
43
- * Shows notification if updates are available
44
- */
45
- private checkForUpdatesOnStartup;
46
- /**
47
- * Auto-start daemon if moflo.yaml enables it and no daemon is running.
48
- * Non-blocking — fires and forgets. Errors are silently swallowed.
49
- */
50
- private maybeAutoStartDaemon;
51
- /**
52
- * Load configuration file
53
- */
54
- private loadConfig;
55
- /**
56
- * Handle errors
57
- */
58
- private handleError;
59
- }
60
- export * from './types.js';
61
- export { CommandParser, commandParser } from './parser.js';
62
- export { OutputFormatter, output, Progress, Spinner, type VerbosityLevel } from './output.js';
63
- export * from './prompt.js';
64
- export * from './commands/index.js';
65
- export { MCPServerManager, createMCPServerManager, getServerManager, startMCPServer, stopMCPServer, getMCPServerStatus, type MCPServerOptions, type MCPServerStatus, } from './mcp-server.js';
66
- export { initializeMemoryDatabase, generateEmbedding, generateBatchEmbeddings, storeEntry, searchEntries, getHNSWIndex, addToHNSWIndex, searchHNSWIndex, getHNSWStatus, clearHNSWIndex, quantizeInt8, dequantizeInt8, quantizedCosineSim, getQuantizationStats, batchCosineSim, softmaxAttention, topKIndices, flashAttentionSearch, type MemoryInitResult, } from './memory/memory-initializer.js';
67
- export { initializeIntelligence, recordStep, recordTrajectory, findSimilarPatterns, getIntelligenceStats, getSonaCoordinator, getReasoningBank, clearIntelligence, benchmarkAdaptation, getAllPatterns, getPatternsByType, flushPatterns, deletePattern, clearAllPatterns, getNeuralDataDir, getPersistenceStatus, type SonaConfig, type TrajectoryStep, type Pattern, type IntelligenceStats, } from './memory/intelligence.js';
68
- export { EWCConsolidator, getEWCConsolidator, resetEWCConsolidator, consolidatePatterns, recordPatternOutcome, getEWCStats, type PatternWeights, type EWCConfig, type ConsolidationResult, type EWCStats, } from './memory/ewc-consolidation.js';
69
- export { SONAOptimizer, getSONAOptimizer, resetSONAOptimizer, processTrajectory, getSuggestion, getSONAStats, type TrajectoryOutcome, type LearnedPattern, type RoutingSuggestion, type SONAStats, } from './memory/sona-optimizer.js';
70
- export { ErrorHandler, withErrorHandling, } from './production/error-handler.js';
71
- export type { ErrorContext, ErrorHandlerConfig, } from './production/error-handler.js';
72
- export { RateLimiter, createRateLimiter, } from './production/rate-limiter.js';
73
- export type { RateLimiterConfig, RateLimitResult, } from './production/rate-limiter.js';
74
- export { withRetry, makeRetryable, } from './production/retry.js';
75
- export type { RetryConfig, RetryResult, RetryStrategy, } from './production/retry.js';
76
- export { CircuitBreaker, getCircuitBreaker, getAllCircuitStats, resetAllCircuits, } from './production/circuit-breaker.js';
77
- export type { CircuitBreakerConfig, CircuitState, } from './production/circuit-breaker.js';
78
- export { MonitoringHooks, createMonitor, getMonitor, } from './production/monitoring.js';
79
- export type { MonitorConfig, MetricEvent, HealthStatus, PerformanceMetrics, } from './production/monitoring.js';
80
- export default CLI;
81
- //# sourceMappingURL=index.d.ts.map
@@ -1,68 +0,0 @@
1
- /**
2
- * In-Memory Repositories - CLI Infrastructure
3
- *
4
- * Lightweight in-memory implementations for CLI use.
5
- *
6
- * @module v3/cli/infrastructure
7
- */
8
- import { Agent, AgentStatus, AgentRole } from '../../../swarm/src/domain/entities/agent.js';
9
- import { Task, TaskStatus, TaskPriority } from '../../../swarm/src/domain/entities/task.js';
10
- import { IAgentRepository, AgentQueryOptions, AgentStatistics } from '../../../swarm/src/domain/repositories/agent-repository.interface.js';
11
- import { ITaskRepository, TaskQueryOptions, TaskStatistics } from '../../../swarm/src/domain/repositories/task-repository.interface.js';
12
- /**
13
- * In-Memory Agent Repository
14
- */
15
- export declare class InMemoryAgentRepository implements IAgentRepository {
16
- private agents;
17
- private initialized;
18
- initialize(): Promise<void>;
19
- shutdown(): Promise<void>;
20
- clear(): Promise<void>;
21
- save(agent: Agent): Promise<void>;
22
- findById(id: string): Promise<Agent | null>;
23
- findByName(name: string): Promise<Agent | null>;
24
- delete(id: string): Promise<boolean>;
25
- exists(id: string): Promise<boolean>;
26
- saveMany(agents: Agent[]): Promise<void>;
27
- findByIds(ids: string[]): Promise<Agent[]>;
28
- deleteMany(ids: string[]): Promise<number>;
29
- findAll(options?: AgentQueryOptions): Promise<Agent[]>;
30
- findByStatus(status: AgentStatus): Promise<Agent[]>;
31
- findByRole(role: AgentRole): Promise<Agent[]>;
32
- findByDomain(domain: string): Promise<Agent[]>;
33
- findByParent(parentId: string): Promise<Agent[]>;
34
- findByCapability(capability: string): Promise<Agent[]>;
35
- findAvailable(): Promise<Agent[]>;
36
- getStatistics(): Promise<AgentStatistics>;
37
- count(options?: AgentQueryOptions): Promise<number>;
38
- }
39
- /**
40
- * In-Memory Task Repository
41
- */
42
- export declare class InMemoryTaskRepository implements ITaskRepository {
43
- private tasks;
44
- private initialized;
45
- initialize(): Promise<void>;
46
- shutdown(): Promise<void>;
47
- clear(): Promise<void>;
48
- save(task: Task): Promise<void>;
49
- findById(id: string): Promise<Task | null>;
50
- delete(id: string): Promise<boolean>;
51
- exists(id: string): Promise<boolean>;
52
- saveMany(tasks: Task[]): Promise<void>;
53
- findByIds(ids: string[]): Promise<Task[]>;
54
- deleteMany(ids: string[]): Promise<number>;
55
- findAll(options?: TaskQueryOptions): Promise<Task[]>;
56
- findByStatus(status: TaskStatus): Promise<Task[]>;
57
- findByPriority(priority: TaskPriority): Promise<Task[]>;
58
- findByAgent(agentId: string): Promise<Task[]>;
59
- findPending(): Promise<Task[]>;
60
- findQueued(): Promise<Task[]>;
61
- findRunning(): Promise<Task[]>;
62
- findTimedOut(): Promise<Task[]>;
63
- getNextTask(agentCapabilities?: string[]): Promise<Task | null>;
64
- getTaskQueue(limit?: number): Promise<Task[]>;
65
- getStatistics(): Promise<TaskStatistics>;
66
- count(options?: TaskQueryOptions): Promise<number>;
67
- }
68
- //# sourceMappingURL=in-memory-repositories.d.ts.map
@@ -1,30 +0,0 @@
1
- /**
2
- * CLAUDE.md Generator
3
- *
4
- * Generates ONLY the MoFlo section to inject into a project's CLAUDE.md.
5
- * This must be minimal — just enough for Claude to work with moflo.
6
- * All detailed docs live in .claude/guidance/shipped/moflo.md (copied at install).
7
- *
8
- * Principle: we are guests in the user's CLAUDE.md. Keep it small.
9
- */
10
- import type { InitOptions, ClaudeMdTemplate } from './types.js';
11
- declare const MARKER_START = "<!-- MOFLO:INJECTED:START -->";
12
- declare const MARKER_END = "<!-- MOFLO:INJECTED:END -->";
13
- export { MARKER_START, MARKER_END };
14
- /**
15
- * Generate the MoFlo section to inject into CLAUDE.md.
16
- * Template parameter is accepted for backward compatibility but ignored —
17
- * all templates now produce the same minimal injection.
18
- */
19
- export declare function generateClaudeMd(_options: InitOptions, _template?: ClaudeMdTemplate): string;
20
- /**
21
- * Generate minimal CLAUDE.md content (backward-compatible alias).
22
- */
23
- export declare function generateMinimalClaudeMd(options: InitOptions): string;
24
- /** Available template names for CLI wizard (kept for backward compat, all produce same output) */
25
- export declare const CLAUDE_MD_TEMPLATES: Array<{
26
- name: ClaudeMdTemplate;
27
- description: string;
28
- }>;
29
- export default generateClaudeMd;
30
- //# sourceMappingURL=claudemd-generator.d.ts.map
@@ -1,41 +0,0 @@
1
- /**
2
- * Init Executor
3
- * Main execution logic for V3 initialization
4
- */
5
- import type { InitOptions, InitResult } from './types.js';
6
- /**
7
- * Execute initialization
8
- */
9
- export declare function executeInit(options: InitOptions): Promise<InitResult>;
10
- /**
11
- * Upgrade result interface
12
- */
13
- export interface UpgradeResult {
14
- success: boolean;
15
- updated: string[];
16
- created: string[];
17
- preserved: string[];
18
- errors: string[];
19
- /** Added by --add-missing flag */
20
- addedSkills?: string[];
21
- addedAgents?: string[];
22
- addedCommands?: string[];
23
- /** Added by --settings flag */
24
- settingsUpdated?: string[];
25
- }
26
- /**
27
- * Execute upgrade - updates helpers and creates missing metrics without losing data
28
- * This is safe for existing users who want the latest statusline fixes
29
- * @param targetDir - Target directory
30
- * @param upgradeSettings - If true, merge new settings into existing settings.json
31
- */
32
- export declare function executeUpgrade(targetDir: string, upgradeSettings?: boolean): Promise<UpgradeResult>;
33
- /**
34
- * Execute upgrade with --add-missing flag
35
- * Adds any new skills, agents, and commands that don't exist yet
36
- * @param targetDir - Target directory
37
- * @param upgradeSettings - If true, merge new settings into existing settings.json
38
- */
39
- export declare function executeUpgradeWithMissing(targetDir: string, upgradeSettings?: boolean): Promise<UpgradeResult>;
40
- export default executeInit;
41
- //# sourceMappingURL=executor.d.ts.map
@@ -1,51 +0,0 @@
1
- /**
2
- * Helpers Generator
3
- * Creates utility scripts in .claude/helpers/
4
- */
5
- import type { InitOptions } from './types.js';
6
- /**
7
- * Generate pre-commit hook script
8
- */
9
- export declare function generatePreCommitHook(): string;
10
- /**
11
- * Generate post-commit hook script
12
- */
13
- export declare function generatePostCommitHook(): string;
14
- /**
15
- * Generate a minimal auto-memory-hook.mjs fallback for fresh installs.
16
- * This ESM script handles import/sync/status commands gracefully when
17
- * @claude-flow/memory is not installed. Gets overwritten when source copy succeeds.
18
- */
19
- export declare function generateAutoMemoryHook(): string;
20
- /**
21
- * Generate all helper files
22
- */
23
- export declare function generateHelpers(options: InitOptions): Record<string, string>;
24
- /**
25
- * Generate lightweight gate.cjs — workflow gates without CLI bootstrap.
26
- * Handles JSON state file read/write for memory-first and TaskCreate gates.
27
- * This replaces `npx flo gate <command>` to avoid spawning a full CLI process
28
- * on every tool call (~500ms npx overhead → ~20ms direct node).
29
- */
30
- export declare function generateGateScript(): string;
31
- /**
32
- * Generate gate-hook.mjs — ESM wrapper that reads Claude Code stdin JSON
33
- * and passes tool_name + tool_input to gate.cjs via environment variables.
34
- *
35
- * Claude Code hooks receive context as JSON on stdin but don't set env vars
36
- * for tool input. This script bridges that gap. It also translates exit code 1
37
- * from gate.cjs into exit code 2 (which Claude Code requires to block tools).
38
- */
39
- export declare function generateGateHookScript(): string;
40
- /**
41
- * Generate prompt-hook.mjs — reads user prompt from Claude Code stdin JSON,
42
- * runs prompt classification via gate.cjs, and appends namespace hints.
43
- */
44
- export declare function generatePromptHookScript(): string;
45
- /**
46
- * Generate lightweight hook-handler.cjs — hook dispatch without CLI bootstrap.
47
- * Handles routing, edit/task tracking, session lifecycle, and notifications.
48
- * This replaces `npx flo hooks <command>` to avoid spawning a full CLI process.
49
- */
50
- export declare function generateHookHandlerScript(): string;
51
- //# sourceMappingURL=helpers-generator.d.ts.map
@@ -1,13 +0,0 @@
1
- /**
2
- * V3 Init Module
3
- * Comprehensive initialization system for Claude Code integration
4
- */
5
- export { type InitOptions, type InitComponents, type InitResult, type HooksConfig, type SkillsConfig, type CommandsConfig, type AgentsConfig, type StatuslineConfig, type MCPConfig, type RuntimeConfig, type EmbeddingsConfig, type PlatformInfo, DEFAULT_INIT_OPTIONS, MINIMAL_INIT_OPTIONS, FULL_INIT_OPTIONS, detectPlatform, } from './types.js';
6
- export { generateSettings, generateSettingsJson, } from './settings-generator.js';
7
- export { generateMCPConfig, generateMCPJson, generateMCPCommands, } from './mcp-generator.js';
8
- export { generateStatuslineScript, generateStatuslineHook, } from './statusline-generator.js';
9
- export { generatePreCommitHook, generatePostCommitHook, generateAutoMemoryHook, generateHelpers, } from './helpers-generator.js';
10
- export { generateClaudeMd, generateMinimalClaudeMd, CLAUDE_MD_TEMPLATES, } from './claudemd-generator.js';
11
- export { executeInit, executeUpgrade, executeUpgradeWithMissing, default } from './executor.js';
12
- export type { UpgradeResult } from './executor.js';
13
- //# sourceMappingURL=index.d.ts.map
@@ -1,29 +0,0 @@
1
- /**
2
- * MCP Configuration Generator
3
- * Creates .mcp.json for Claude Code MCP server integration
4
- *
5
- * Uses direct `node` invocation when moflo is locally installed to avoid
6
- * npx overhead (package resolution, registry checks). Falls back to `npx`
7
- * for external packages (ruv-swarm, flow-nexus) that may not be installed.
8
- */
9
- import type { InitOptions } from './types.js';
10
- /**
11
- * Generate MCP configuration
12
- */
13
- export declare function generateMCPConfig(options: InitOptions): object;
14
- /**
15
- * Generate .mcp.json as formatted string
16
- */
17
- export declare function generateMCPJson(options: InitOptions): string;
18
- /**
19
- * Generate MCP server add commands for manual setup
20
- */
21
- export declare function generateMCPCommands(options: InitOptions): string[];
22
- /**
23
- * Get platform-specific setup instructions
24
- */
25
- export declare function getPlatformInstructions(): {
26
- platform: string;
27
- note: string;
28
- };
29
- //# sourceMappingURL=mcp-generator.d.ts.map
@@ -1,31 +0,0 @@
1
- export interface MofloInitOptions {
2
- projectRoot: string;
3
- force?: boolean;
4
- skipIndex?: boolean;
5
- interactive?: boolean;
6
- minimal?: boolean;
7
- }
8
- export interface MofloInitAnswers {
9
- guidance: boolean;
10
- guidanceDirs: string[];
11
- codeMap: boolean;
12
- srcDirs: string[];
13
- tests: boolean;
14
- testDirs: string[];
15
- gates: boolean;
16
- stopHook: boolean;
17
- }
18
- export interface MofloInitResult {
19
- steps: {
20
- name: string;
21
- status: 'created' | 'updated' | 'skipped' | 'error';
22
- detail?: string;
23
- }[];
24
- }
25
- /**
26
- * Discover test directories by checking common locations and walking for
27
- * colocated __tests__ dirs. Returns relative paths.
28
- */
29
- export declare function discoverTestDirs(root: string): string[];
30
- export declare function initMoflo(options: MofloInitOptions): Promise<MofloInitResult>;
31
- //# sourceMappingURL=moflo-init.d.ts.map
@@ -1,14 +0,0 @@
1
- /**
2
- * Settings.json Generator
3
- * Creates .claude/settings.json with V3-optimized hook configurations
4
- */
5
- import type { InitOptions } from './types.js';
6
- /**
7
- * Generate the complete settings.json content
8
- */
9
- export declare function generateSettings(options: InitOptions): object;
10
- /**
11
- * Generate settings.json as formatted string
12
- */
13
- export declare function generateSettingsJson(options: InitOptions): string;
14
- //# sourceMappingURL=settings-generator.d.ts.map
@@ -1,28 +0,0 @@
1
- /**
2
- * Statusline Configuration Generator (Optimized)
3
- * Creates fast, reliable statusline for V3 progress display
4
- *
5
- * Performance:
6
- * - Single combined git execSync call (not 8+ separate ones)
7
- * - process.memoryUsage() instead of ps aux
8
- * - No recursive test file content reading
9
- * - Shared settings cache
10
- * - Strict 2s timeouts on all shell calls
11
- */
12
- import type { InitOptions } from './types.js';
13
- /**
14
- * Generate optimized statusline script
15
- * Output format:
16
- * ▊ MoFlo V4 ● user │ ⎇ branch │ Opus 4.6 (1M context)
17
- * ─────────────────────────────────────────────────────
18
- * 🏗️ DDD Domains [●●○○○] 2/5 ⚡ HNSW 150x
19
- * 🤖 Swarm ◉ [ 5/15] 👥 2 🪝 10/17 🟢 CVE 3/3 💾 4MB 🧠 63%
20
- * 🔧 Architecture ADRs ●71% │ DDD ● 13% │ Security ●CLEAN
21
- * 📊 AgentDB Vectors ●3104⚡ │ Size 216KB │ Tests ●6 (~24 cases) │ MCP ●1/1
22
- */
23
- export declare function generateStatuslineScript(options: InitOptions): string;
24
- /**
25
- * Generate statusline hook for shell integration
26
- */
27
- export declare function generateStatuslineHook(options: InitOptions): string;
28
- //# sourceMappingURL=statusline-generator.d.ts.map
@@ -1,285 +0,0 @@
1
- /**
2
- * V3 Init System Types
3
- * Configuration options for initializing Claude Code integration
4
- */
5
- /**
6
- * Components that can be initialized
7
- */
8
- export interface InitComponents {
9
- /** Create .claude/settings.json with hooks */
10
- settings: boolean;
11
- /** Copy skills to .claude/skills/ */
12
- skills: boolean;
13
- /** Copy commands to .claude/commands/ */
14
- commands: boolean;
15
- /** Copy agents to .claude/agents/ */
16
- agents: boolean;
17
- /** Create helper scripts in .claude/helpers/ */
18
- helpers: boolean;
19
- /** Configure statusline */
20
- statusline: boolean;
21
- /** Create MCP configuration */
22
- mcp: boolean;
23
- /** Create .claude-flow/ directory (V3 runtime) */
24
- runtime: boolean;
25
- /** Create CLAUDE.md with swarm guidance */
26
- claudeMd: boolean;
27
- }
28
- /**
29
- * Hook configuration options
30
- * Valid hook types: PreToolUse, PostToolUse, Notification, UserPromptSubmit,
31
- * SessionStart, SessionEnd, Stop, SubagentStop, PreCompact
32
- */
33
- export interface HooksConfig {
34
- /** Enable PreToolUse hooks */
35
- preToolUse: boolean;
36
- /** Enable PostToolUse hooks */
37
- postToolUse: boolean;
38
- /** Enable UserPromptSubmit for routing */
39
- userPromptSubmit: boolean;
40
- /** Enable SessionStart hooks */
41
- sessionStart: boolean;
42
- /** Enable Stop hooks */
43
- stop: boolean;
44
- /** Enable PreCompact hooks (context preservation before compaction) */
45
- preCompact: boolean;
46
- /** Enable Notification hooks */
47
- notification: boolean;
48
- /** Hook timeout in milliseconds */
49
- timeout: number;
50
- /** Continue on hook error */
51
- continueOnError: boolean;
52
- }
53
- /**
54
- * Skills configuration
55
- */
56
- export interface SkillsConfig {
57
- /** Include core skills (swarm, memory, sparc) */
58
- core: boolean;
59
- /** Include AgentDB skills */
60
- agentdb: boolean;
61
- /** Include GitHub integration skills */
62
- github: boolean;
63
- /** Include Flow Nexus skills */
64
- flowNexus: boolean;
65
- /** Include browser automation skills (agent-browser) */
66
- browser: boolean;
67
- /** Include V3 implementation skills */
68
- v3: boolean;
69
- /** Include all available skills */
70
- all: boolean;
71
- }
72
- /**
73
- * Commands configuration
74
- */
75
- export interface CommandsConfig {
76
- /** Include core commands */
77
- core: boolean;
78
- /** Include analysis commands */
79
- analysis: boolean;
80
- /** Include automation commands */
81
- automation: boolean;
82
- /** Include github commands */
83
- github: boolean;
84
- /** Include hooks commands */
85
- hooks: boolean;
86
- /** Include monitoring commands */
87
- monitoring: boolean;
88
- /** Include optimization commands */
89
- optimization: boolean;
90
- /** Include SPARC commands */
91
- sparc: boolean;
92
- /** Include all commands */
93
- all: boolean;
94
- }
95
- /**
96
- * Agents configuration
97
- */
98
- export interface AgentsConfig {
99
- /** Include core agents (coder, tester, reviewer) */
100
- core: boolean;
101
- /** Include consensus agents */
102
- consensus: boolean;
103
- /** Include GitHub agents */
104
- github: boolean;
105
- /** Include hive-mind agents */
106
- hiveMind: boolean;
107
- /** Include SPARC agents */
108
- sparc: boolean;
109
- /** Include swarm coordinators */
110
- swarm: boolean;
111
- /** Include browser automation agents (agent-browser) */
112
- browser: boolean;
113
- /** Include V3-specific agents (security, memory, performance, etc.) */
114
- v3: boolean;
115
- /** Include optimization agents */
116
- optimization: boolean;
117
- /** Include testing agents */
118
- testing: boolean;
119
- /** Include all agents */
120
- all: boolean;
121
- }
122
- /**
123
- * Statusline configuration
124
- */
125
- export interface StatuslineConfig {
126
- /** Enable statusline */
127
- enabled: boolean;
128
- /** Show V3 progress */
129
- showProgress: boolean;
130
- /** Show security status */
131
- showSecurity: boolean;
132
- /** Show swarm activity */
133
- showSwarm: boolean;
134
- /** Show hooks metrics */
135
- showHooks: boolean;
136
- /** Show performance targets */
137
- showPerformance: boolean;
138
- /** Refresh interval in milliseconds */
139
- refreshInterval: number;
140
- }
141
- /**
142
- * MCP configuration
143
- */
144
- export interface MCPConfig {
145
- /** Include claude-flow MCP server */
146
- claudeFlow: boolean;
147
- /** Include ruv-swarm MCP server */
148
- ruvSwarm: boolean;
149
- /** Include flow-nexus MCP server */
150
- flowNexus: boolean;
151
- /** Auto-start MCP server */
152
- autoStart: boolean;
153
- /** Server port */
154
- port: number;
155
- /** Defer tool schema loading — schemas loaded on demand via ToolSearch */
156
- toolDefer: boolean;
157
- }
158
- /**
159
- * Runtime configuration (.claude-flow/)
160
- */
161
- export interface RuntimeConfig {
162
- /** Swarm topology */
163
- topology: 'mesh' | 'hierarchical' | 'hierarchical-mesh' | 'adaptive';
164
- /** Maximum agents */
165
- maxAgents: number;
166
- /** Memory backend */
167
- memoryBackend: 'memory' | 'sqlite' | 'agentdb' | 'hybrid';
168
- /** Enable HNSW indexing */
169
- enableHNSW: boolean;
170
- /** Enable neural learning */
171
- enableNeural: boolean;
172
- /** Enable LearningBridge (ADR-049) - connects insights to SONA/ReasoningBank */
173
- enableLearningBridge?: boolean;
174
- /** Enable MemoryGraph (ADR-049) - PageRank knowledge graph */
175
- enableMemoryGraph?: boolean;
176
- /** Enable AgentMemoryScope (ADR-049) - 3-scope agent memory */
177
- enableAgentScopes?: boolean;
178
- /** CLAUDE.md template variant */
179
- claudeMdTemplate?: ClaudeMdTemplate;
180
- }
181
- /** Template variants for generated CLAUDE.md files */
182
- export type ClaudeMdTemplate = 'minimal' | 'standard' | 'full' | 'security' | 'performance' | 'solo';
183
- /**
184
- * Embeddings configuration
185
- */
186
- export interface EmbeddingsConfig {
187
- /** Enable embedding subsystem */
188
- enabled: boolean;
189
- /** ONNX model ID */
190
- model: 'all-MiniLM-L6-v2' | 'all-mpnet-base-v2' | 'bge-small-en-v1.5' | string;
191
- /** Enable hyperbolic (Poincaré ball) embeddings */
192
- hyperbolic: boolean;
193
- /** Poincaré ball curvature (negative value, typically -1) */
194
- curvature: number;
195
- /** Pre-download model during init */
196
- predownload: boolean;
197
- /** LRU cache size (number of embeddings) */
198
- cacheSize: number;
199
- /** Enable neural substrate integration */
200
- neuralSubstrate: boolean;
201
- }
202
- /**
203
- * Detected platform information
204
- */
205
- export interface PlatformInfo {
206
- /** Operating system */
207
- os: 'windows' | 'darwin' | 'linux';
208
- /** Architecture */
209
- arch: 'x64' | 'arm64' | 'arm' | 'ia32';
210
- /** Node.js version */
211
- nodeVersion: string;
212
- /** Shell type */
213
- shell: 'powershell' | 'cmd' | 'bash' | 'zsh' | 'sh';
214
- /** Home directory */
215
- homeDir: string;
216
- /** Config directory (platform-specific) */
217
- configDir: string;
218
- }
219
- /**
220
- * Detect current platform
221
- */
222
- export declare function detectPlatform(): PlatformInfo;
223
- /**
224
- * Complete init options
225
- */
226
- export interface InitOptions {
227
- /** Target directory */
228
- targetDir: string;
229
- /** Source base directory for skills/commands/agents (optional) */
230
- sourceBaseDir?: string;
231
- /** Force overwrite existing files */
232
- force: boolean;
233
- /** Run in interactive mode */
234
- interactive: boolean;
235
- /** Components to initialize */
236
- components: InitComponents;
237
- /** Hooks configuration */
238
- hooks: HooksConfig;
239
- /** Skills configuration */
240
- skills: SkillsConfig;
241
- /** Commands configuration */
242
- commands: CommandsConfig;
243
- /** Agents configuration */
244
- agents: AgentsConfig;
245
- /** Statusline configuration */
246
- statusline: StatuslineConfig;
247
- /** MCP configuration */
248
- mcp: MCPConfig;
249
- /** Runtime configuration */
250
- runtime: RuntimeConfig;
251
- /** Embeddings configuration */
252
- embeddings: EmbeddingsConfig;
253
- }
254
- /**
255
- * Default init options - full V3 setup
256
- */
257
- export declare const DEFAULT_INIT_OPTIONS: InitOptions;
258
- /**
259
- * Minimal init options
260
- */
261
- export declare const MINIMAL_INIT_OPTIONS: InitOptions;
262
- /**
263
- * Full init options (everything enabled)
264
- */
265
- export declare const FULL_INIT_OPTIONS: InitOptions;
266
- /**
267
- * Init result
268
- */
269
- export interface InitResult {
270
- success: boolean;
271
- platform: PlatformInfo;
272
- created: {
273
- directories: string[];
274
- files: string[];
275
- };
276
- skipped: string[];
277
- errors: string[];
278
- summary: {
279
- skillsCount: number;
280
- commandsCount: number;
281
- agentsCount: number;
282
- hooksEnabled: number;
283
- };
284
- }
285
- //# sourceMappingURL=types.d.ts.map