mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
The CLI path validator delegated to cli-core's /\.\.[/\\\\]/ check, which accepts a bare '..' or a trailing 'src/..' and false-rejects harmless '.../x'. terminal_create could record the parent as workingDir and hooks_transfer could resolve its source against the parent project (#5218).\n\n- Validate the CLI boundary with a standalone '..' segment at any position, the rule already used by managed-agent-tools.ts and sona-optimizer.ts.\n- Keep the exact core checks: 4096-char cap, shell-metacharacter denylist, backslash-to-slash sanitization, and #2352 Windows-path acceptance.\n- cli-core is a non-bundled leaf: changing its source requires a version bump and a publish first, so the same check moves there on its next leaf release. This shim covers every MCP tool that imports the CLI boundary now.\n\nRegression matrix covers leading, trailing, middle, mixed-separator and near-miss paths. On the pre-change CLI boundary the bare/trailing cases are accepted and .../x is rejected; all 12 pass with the change. Existing #2352 tests pass (22). Co-authored-by: rUv <ruv@ruv.net>