mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
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>