agentic-flow 1.4.1 → 1.4.2

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.
@@ -3,7 +3,6 @@
3
3
  import { FastMCP } from 'fastmcp';
4
4
  import { z } from 'zod';
5
5
  import { execSync } from 'child_process';
6
- import { resolve } from 'path';
7
6
  // Suppress FastMCP internal warnings for cleaner output
8
7
  const originalConsoleWarn = console.warn;
9
8
  console.warn = (...args) => {
@@ -323,15 +322,13 @@ server.addTool({
323
322
  };
324
323
  language = langMap[ext] || 'javascript';
325
324
  }
326
- // Apply edit using agent-booster CLI directly (local WASM, 0-1ms)
327
- const agentBoosterCli = resolve(__dirname, '../../../agent-booster/dist/cli.js');
328
- const cmd = `node ${agentBoosterCli} apply --language ${language}`;
325
+ // Apply edit using agent-booster CLI (automatically installs from npm if not available)
326
+ const cmd = `npx --yes agent-booster apply --language ${language}`;
329
327
  const result = execSync(cmd, {
330
328
  encoding: 'utf-8',
331
329
  input: JSON.stringify({ code: originalCode, edit: code_edit }),
332
330
  maxBuffer: 10 * 1024 * 1024,
333
- timeout: 5000,
334
- cwd: resolve(__dirname, '../../../agent-booster')
331
+ timeout: 30000 // Allow time for npx to download package on first run
335
332
  });
336
333
  const parsed = JSON.parse(result);
337
334
  if (parsed.success && parsed.confidence >= 0.7) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-flow",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Production-ready AI agent orchestration platform with 66 specialized agents, 213 MCP tools, and autonomous multi-agent swarms. Built by @ruvnet with Claude Agent SDK, neural networks, memory persistence, GitHub integration, and distributed consensus protocols.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",