e6f84f713b
Hoist shared ripgrep CLI resolution helpers (resolveGrepCli, resolveGrepCliWithAutoInstall, GrepBackend, DEFAULT_RG_THREADS, ResolvedCli) out of src/tools/grep/constants.ts into src/shared/ripgrep-cli.ts so they no longer straddle two sibling tool directories. Before: src/tools/glob/constants.ts re-exported from src/tools/grep/constants.ts, violating the project's "tools should not import from sibling tools" rule enforced by .sisyphus/rules/modular-code-enforcement.md. After: both src/tools/glob/ and src/tools/grep/ consume the shared helpers from src/shared/ripgrep-cli.ts. src/tools/grep/constants.ts keeps only the grep-specific UI-exposed constants.
13 lines
391 B
TypeScript
13 lines
391 B
TypeScript
export { resolveGrepCli, resolveGrepCliWithAutoInstall, type GrepBackend, DEFAULT_RG_THREADS } from "../../shared/ripgrep-cli"
|
|
|
|
export const DEFAULT_TIMEOUT_MS = 60_000
|
|
export const DEFAULT_LIMIT = 100
|
|
export const DEFAULT_MAX_DEPTH = 20
|
|
export const DEFAULT_MAX_OUTPUT_BYTES = 10 * 1024 * 1024
|
|
|
|
export const RG_FILES_FLAGS = [
|
|
"--files",
|
|
"--color=never",
|
|
"--glob=!.git/*",
|
|
] as const
|