Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(tools): glob/grep/ripgrep pattern normalization via platform layer

2 months ago

b0012f7
Authored
Max Weinbach7/7/2026, 2:09:06 PM
glob normalizes patterns through paths.normalizeGlobPattern (backslash→slash
only on win32 hosts or win32-shaped patterns — POSIX fast-glob escapes like
\* are preserved instead of unconditionally destroyed) and splits absolute
patterns via paths.splitAbsoluteGlob (fixes the '|| "/"' drive-relative-root
bug). grep routes its deny-glob separators the same way. ripgrep resolves the
managed binary via exec.binaryName and spawns discovered rg through
exec.resolveSpawn (typed UnsafeShimArgumentError on a .cmd/.bat shim instead
of silent cmd mangling); dead .cmd/.bat candidate lists removed. Migration
rows 6 and 10.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Parent546fc25

5 files changed
  • src/tools/glob.ts+9−13
  • src/tools/grep.ts+34−5
  • src/utils/ripgrep.ts+18−19
  • test/tools/tools.glob.test.ts+95−0
  • test/tools/tools.grep.test.ts+199−0