Files
ruflo/v3/@claude-flow/integration/src
rUvandr f5f2e40c31 fix(integration): TokenOptimizer.optimizedEdit uses the real agent-booster API (#4311) (#4315)
Two bugs, both from agentic-flow/agent-booster's actual exports not
matching what this file assumed:

1. initialize() picked `ab.AgentBooster` (the un-instantiated class) when
   `ab.agentBooster` was undefined, instead of calling the package's real
   `getAgentBooster()` factory. Calling `.apply()` on that un-instantiated
   class resolves to `Function.prototype.apply`, not the booster's own
   prototype method.
2. optimizedEdit() called `this.agentBooster.editCode(...)`, which has
   never existed on this class — the real method is
   `apply({ code, edit, language, filePath? })`, returning
   `{ output, success, latency, strategy, ... }`, not
   `{ method, speedupFactor, executionTimeMs }`.

Moved token-optimizer.test.ts out of ci-test-baseline.txt — all 23 tests
in that file (75 across the package) now pass with the real dependency
loaded, not mocked.

Co-authored-by: r <r@x>
2026-10-20 03:32:18 -04:00
..
2026-01-05 17:28:09 +00:00
2026-01-12 19:08:26 +00:00
2026-01-04 17:40:48 +00:00