mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
SessionStart runs auto-memory-hook.mjs directly, and the hook only found @claude-flow/memory through the sidecar that init / upgrade / doctor write. A fresh worktree has no sidecar (.claude-flow/ is gitignored), so imports were DISABLED there. The hook now tries, in order: its own sidecar; the main checkout's sidecar when it runs in a git worktree; the in-repo dist; require.resolve from the helper's install root and from the helper's own directory; and the CLI's own dependencies (@claude-flow/cli, directly or under ruflo / claude-flow), which is where recordMemoryPackagePath() resolves from. Candidates come from MODULE_ROOT or the helper's directory only, never CLAUDE_PROJECT_DIR. A candidate is used only if it exports AutoMemoryBridge. import and sync record the found path in the sidecar, so the next run is fast; status reports where it resolved but writes nothing. When nothing resolves, the existing DISABLED warning now lists every place searched and why each failed. No network, no install. Co-Authored-By: RuFlo <ruv@ruv.net>