Files
Dylan Conway abb4d80442 feat: support argv0 in RipgrepConfig (#163)
* feat: support argv0 in RipgrepConfig

Adds an optional argv0 field to RipgrepConfig for invoking multicall
binaries that dispatch based on argv[0]. When set, spawn() is used
instead of execFile() since execFile doesn't support overriding argv[0].

The existing execFile code path is unchanged when argv0 is not provided.

Also bumps version to 0.0.40.

* refactor: unify ripGrep on spawn + stream/consumers

Drop execFile and use spawn for both argv0 and non-argv0 paths:
- text() from node:stream/consumers collects stdout/stderr as Promise<string>
- spawn({ timeout }) handles the 10s timeout natively
- Promise.all([stdout, stderr, close]) reads naturally as async/await

Drops the 20MB maxBuffer cap — the only caller scans for dangerous files
at bounded depth, so runaway output is not a realistic concern.
2026-03-09 11:38:32 -07:00
..