ruflo v3.58.1

v3.58.1

v3.58.1 — CWE-22 fix, CLI parser fix, TokenOptimizer fix

Added 1
  • ruflo-console compact nav separates the menu, groups, search and page tabs with a dim vertical bar instead of only a gap
Fixed 5
  • hooks_codemod resolveTargets() path-containment check now anchors at a path-separator boundary, preventing sibling directories that share the project directory's name prefix from passing containment (CWE-22)
  • CommandParser.parse() now stops treating only the first literal -- token as the end-of-flags marker, so later -- tokens are kept as positional operands
  • TokenOptimizer.optimizedEdit() no longer calls the nonexistent agentBooster.editCode() method
  • TokenOptimizer.initialize() now calls the getAgentBooster() factory instead of using the uninstantiated AgentBooster class
  • scripts/__tests__/probe-mod-guards.test.mjs is now categorized into a vitest list, eliminating the intermittent no test suite found CI failure
Security 1
  • hooks_codemod could read and write files outside the project root via a sibling directory prefix match; both containment call sites are now anchored at a path-separator boundary

From ruflo

[3.58.1] - 2026-10-20

Patch release: @claude-flow/cli, claude-flow, ruflo 3.58.1. Bug fixes only.

Fixed
  • Security: hooks_codemod's resolveTargets() path-containment check used an unanchored abs.startsWith(cwd) string-prefix comparison — a sibling directory merely starting with the project directory's name (e.g. cwd-staging) passed containment, letting this live, CLAUDE.md-recommended tool read and write outside the project root (CWE-22). Anchored both call sites at a path-separator boundary, matching the already-correct isWithinPrefix() pattern used elsewhere in this codebase (#4312/#4313).
  • CommandParser.parse() flipped parsingFlags = false on every literal -- token it saw, not just the first — a later -- supplied as an ordinary operand (e.g. a search query of exactly --) was silently swallowed instead of being kept as a positional (#4310/#4314).
  • TokenOptimizer.optimizedEdit() called agentBooster.editCode(), a method that has never existed on agentic-flow/agent-booster's real exports; a separate bug in the same file's initialize() picked the un-instantiated AgentBooster class instead of calling the package's getAgentBooster() factory. Published standalone as @claude-flow/integration@3.0.2 (#4311/#4315).
  • CI reliability: scripts/__tests__/probe-mod-guards.test.mjs (a node:test file) was never categorized into either the vitest-baseline or vitest-excluded list, causing an intermittent, unrelated "no test suite found" failure on PRs that don't touch it (#4316).
Added
  • ruflo-console 0.44.6: the compact nav's menu, groups, search and page tabs are now separated by a dim │ bar instead of just a gap (#3664).
View original

Upgraded? How did it go?

Discussion