moflo 4.6.12 → 4.7.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 (30) hide show
  1. package/.claude/settings.json +4 -4
  2. package/.claude/workflow-state.json +1 -5
  3. package/README.md +1 -1
  4. package/bin/hooks.mjs +7 -3
  5. package/bin/setup-project.mjs +1 -1
  6. package/package.json +1 -1
  7. package/src/@claude-flow/cli/README.md +452 -7536
  8. package/src/@claude-flow/cli/dist/src/commands/doctor.js +1 -1
  9. package/src/@claude-flow/cli/dist/src/commands/embeddings.js +4 -4
  10. package/src/@claude-flow/cli/dist/src/commands/init.js +35 -8
  11. package/src/@claude-flow/cli/dist/src/commands/swarm.js +2 -2
  12. package/src/@claude-flow/cli/dist/src/init/claudemd-generator.js +316 -294
  13. package/src/@claude-flow/cli/dist/src/init/executor.js +461 -465
  14. package/src/@claude-flow/cli/dist/src/init/helpers-generator.d.ts +0 -36
  15. package/src/@claude-flow/cli/dist/src/init/helpers-generator.js +146 -1124
  16. package/src/@claude-flow/cli/dist/src/init/index.d.ts +1 -1
  17. package/src/@claude-flow/cli/dist/src/init/index.js +1 -1
  18. package/src/@claude-flow/cli/dist/src/init/moflo-init.js +78 -5
  19. package/src/@claude-flow/cli/dist/src/init/settings-generator.js +50 -120
  20. package/src/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js +275 -32
  21. package/src/@claude-flow/cli/dist/src/plugins/store/discovery.js +4 -204
  22. package/src/@claude-flow/cli/dist/src/plugins/tests/standalone-test.js +4 -4
  23. package/src/@claude-flow/cli/dist/src/runtime/headless.d.ts +3 -3
  24. package/src/@claude-flow/cli/dist/src/runtime/headless.js +31 -31
  25. package/src/@claude-flow/cli/dist/src/services/agentic-flow-bridge.d.ts +3 -3
  26. package/src/@claude-flow/cli/dist/src/services/agentic-flow-bridge.js +3 -1
  27. package/src/@claude-flow/cli/dist/src/services/headless-worker-executor.js +14 -0
  28. package/src/@claude-flow/cli/dist/src/services/workflow-gate.js +21 -1
  29. package/src/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.js +4 -4
  30. package/src/@claude-flow/cli/package.json +1 -1
@@ -165,10 +165,10 @@
165
165
  },
166
166
  "attribution": {
167
167
  "commit": "Co-Authored-By: moflo <noreply@motailz.com>",
168
- "pr": "\ud83e\udd16 Generated with [claude-flow](https://github.com/eric-cielo/moflo)"
168
+ "pr": "\ud83e\udd16 Generated with [moflo](https://github.com/eric-cielo/moflo)"
169
169
  },
170
170
  "claudeFlow": {
171
- "version": "4.6.12",
171
+ "version": "4.7.1",
172
172
  "enabled": true,
173
173
  "modelPreferences": {
174
174
  "default": "claude-opus-4-6",
@@ -275,9 +275,9 @@
275
275
  },
276
276
  "mcpServers": {
277
277
  "claude-flow": {
278
- "command": "node",
278
+ "command": "npx",
279
279
  "args": [
280
- "/workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js",
280
+ "moflo",
281
281
  "mcp",
282
282
  "start"
283
283
  ]
@@ -1,9 +1,5 @@
1
1
  {
2
2
  "tasksCreated": false,
3
3
  "taskCount": 0,
4
- "memorySearched": false,
5
- "memoryRequired": true,
6
- "interactionCount": 10,
7
- "sessionStart": null,
8
- "lastBlockedAt": "2026-03-20T20:34:44.738Z"
4
+ "memorySearched": true
9
5
  }
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="https://raw.githubusercontent.com/eric-cielo/moflo/main/docs/moflo.png?v=4" alt="MoFlo" />
2
+ <img src="https://raw.githubusercontent.com/eric-cielo/moflo/main/docs/Moflo_md.png?v=5" alt="MoFlo" />
3
3
  </p>
4
4
 
5
5
  # MoFlo
package/bin/hooks.mjs CHANGED
@@ -328,7 +328,7 @@ async function main() {
328
328
  const query = getArg('query') || args[1];
329
329
  const searchLimit = getArg('limit') || '5';
330
330
  const threshold = getArg('threshold') || '0.3';
331
- const searchScript = resolve(projectRoot, '.claude/scripts/semantic-search.mjs');
331
+ const searchScript = resolve(projectRoot, 'bin/semantic-search.mjs');
332
332
 
333
333
  if (query && existsSync(searchScript)) {
334
334
  const searchArgs = [searchScript, query, '--limit', searchLimit, '--threshold', threshold];
@@ -369,9 +369,13 @@ async function main() {
369
369
 
370
370
  // Run the guidance indexer (blocking - used for specific file updates)
371
371
  async function runIndexGuidance(specificFile = null) {
372
- const indexScript = resolve(projectRoot, '.claude/scripts/index-guidance.mjs');
372
+ const indexCandidates = [
373
+ resolve(dirname(fileURLToPath(import.meta.url)), 'index-guidance.mjs'),
374
+ resolve(projectRoot, '.claude/scripts/index-guidance.mjs'),
375
+ ];
376
+ const indexScript = indexCandidates.find(p => existsSync(p));
373
377
 
374
- if (existsSync(indexScript)) {
378
+ if (indexScript) {
375
379
  const indexArgs = specificFile ? ['--file', specificFile] : [];
376
380
  if (hasArg('force')) indexArgs.push('--force');
377
381
  // index-guidance.mjs uses better-sqlite3
@@ -41,7 +41,7 @@ Your first tool call for every new user prompt MUST be a memory search. Do this
41
41
  WHY: Memory contains curated solutions, patterns, and architectural context from previous work. Without it, you will miss existing solutions, repeat mistakes that were already solved, and waste time re-discovering what is already known. Memory search is faster than file scanning.
42
42
 
43
43
  HOW: Use ToolSearch to load \`mcp__claude-flow__memory_search\`, then call it with a query describing your task. If MCP is unavailable, use:
44
- \`node .claude/scripts/semantic-search.mjs "[task description]" --namespace guidance\`
44
+ \`node bin/semantic-search.mjs "[task description]" --namespace guidance\`
45
45
 
46
46
  ### Namespaces to search:
47
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moflo",
3
- "version": "4.6.12",
3
+ "version": "4.7.1",
4
4
  "description": "MoFlo — AI agent orchestration for Claude Code. Forked from ruflo/claude-flow with patches applied to source, plus feature-level orchestration.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",