mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
- Upgrade-written import/sync hooks used `node -e "...import(file)" import`, which leaves the subcommand in process.argv[1]; the helper read argv[2], so both hooks only printed the status banner. They now use helperHookCommand like every other helper hook, and the helper also accepts the argv[1] shape so settings.json files already written keep working. - Hook timeouts were written as 6000/8000 (and 8000/10000 from init) but Claude Code reads them in seconds; the auto-memory hooks now use 30. - JsonFileBackend.query treated MemoryQuery.type (a query mode: hybrid, semantic...) as an entry type, so the bridge's learnings query matched nothing and sync always reported 0. It now treats modes as modes and honours tags, updatedAfter, key, keyPrefix and memoryType. The "Curated MEMORY.md index" line is no longer printed when the bridge emitted index:skipped. - In a git worktree the memory dir is keyed by the main checkout (resolved with `git rev-parse --git-common-dir`, no shell) to match Claude Code. - auto-memory-hook.mjs and intelligence.cjs both read-modify-write auto-memory-store.json: writes are atomic (temp + rename), serialised by a short fail-open directory lock, and keep entries another writer added since the read. - Not changed: autoAssignOnIdle/autoAssign are false on purpose (#3031). Helpers re-signed. Regression: __tests__/auto-memory-hooks-4058.test.ts (10 of 11 failed before; the 8-writer race kept 6 of 8 entries). Co-Authored-By: RuFlo <ruv@ruv.net>