Skip to content
1 min read · 96 words

Variable: ALLOWED_RIPGREP_FLAGS ​

ts
const ALLOWED_RIPGREP_FLAGS: readonly [
  "--files",
  "--ignore-case",
  "--fixed-strings",
  "--hidden",
  "--follow",
  "--no-ignore",
  "--glob",
  "--iglob",
  "--max-depth",
  "--json",
];

Defined in: src/batteries/sandbox/escape.ts:22

Flags emitted by the sandbox's own ripgrep adapter.

Remarks ​

EVERY flag the adapter actually emits must appear here, or the adapter rejects its own argv and the capability fails for every invocation. --json is searchContent's output format and is exactly such a flag; omitting it made content search unusable while name search (which does not use it) worked. The argv TERMINATOR -- is deliberately absent: it is not a flag, and it is filtered out before validation rather than admitted here, so this list stays a list of flags.