mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
getInstalledVersion() resolved <pkg>/package.json with paths: [process.cwd()] and loaded it with require(). A package's exports map can point ./package.json at a .js file, so a node_modules/@claude-flow/security (or embeddings, integration, testing) committed to a cloned repository ran inside the CLI on the startup update check of almost any command. Resolve from the CLI's own install only and read the file with JSON.parse, so nothing is executed. Adds update-checker-cwd-hijack.test.ts (fails on 3.80.0, passes here); the 4755 opt-in test now also mocks the file read. Release 3.80.1 (helpers manifest re-signed). Co-authored-by: r <r@x>