Files
ruflo/v3/@claude-flow
RuFlo 5c00b076ef fix(cli): declare @ruvector/rvagent-wasm optional; count only new patterns (#3979)
Item 1: dist/src/ruvector/agent-wasm.js imports @ruvector/rvagent-wasm but the CLI never declared it,
so a global install never fetched it and every wasm_gallery/agent tool failed with a raw
ERR_MODULE_NOT_FOUND trace. It is now an optional dependency (^0.1.0, 620 KB, no install scripts,
MIT/Apache) and initAgentWasm() reports a missing package as 'not installed' with the install command.

Item 4: 'patterns learned' always equalled trajectories because recordTrajectory() bumped the counter
for every successful step even when LocalReasoningBank.store() merged it into an existing pattern.
store() now returns whether a new pattern was added and only that is counted.

Tests first: __tests__/patterns-learned-dedup-3979.test.ts (13 identical successes counted 13) and
__tests__/agent-wasm-not-installed-3979.test.ts both fail on main. pnpm-lock.yaml: only the two
rvagent-wasm hunks (frozen-lockfile clean).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 05:32:46 -04:00
..
2026-10-10 20:30:01 -04:00
…