mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 14:43:05 +09:00
getPkgVersion() checked the marketplace plugin path first and returned as soon as ANY candidate's package.json existed, without comparing it to the others. Claude Code's plugin marketplace syncs on its own git-pull cadence, independent of npm publishes, so right after a publish the marketplace checkout can sit one (or more) releases behind while a newer install (e.g. this repo's own v3/@claude-flow/cli, or a plain `npm install`) is sitting right there — confirmed live on this machine: header showed 3.27.0 from a stale marketplace copy while the actual code running was already 3.27.1. compareVersions() now ranks every existing candidate and keeps the highest, so the header always reflects the newest install actually present rather than whichever candidate happens to be checked first. Also fixes this repo's own root .claude/helpers/hook-handler.cjs, which had drifted from the (correct, already-published) package copy due to the recurring concurrent-session helper corruption documented in CLAUDE.md — caught by the parity-guard test before this got shipped, since it's committed content, not what npm publish signs from. Co-Authored-By: RuFlo <ruv@ruv.net>