feat(third_party) Port get-ripgrep. (#8514)

This commit is contained in:
joshualitt
2025-09-19 08:13:28 -07:00
committed by GitHub
parent 2c4f61eca5
commit 6e4236bf76
16 changed files with 308 additions and 129 deletions
+2 -2
View File
@@ -22,11 +22,11 @@ import type { Config } from '../config/config.js';
import { createMockWorkspaceContext } from '../test-utils/mockWorkspaceContext.js';
import type { ChildProcess } from 'node:child_process';
import { spawn } from 'node:child_process';
import { downloadRipGrep } from '@joshua.litt/get-ripgrep';
import { downloadRipGrep } from 'get-ripgrep';
import { fileExists } from '../utils/fileUtils.js';
// Mock dependencies for canUseRipgrep
vi.mock('@joshua.litt/get-ripgrep', () => ({
vi.mock('get-ripgrep', () => ({
downloadRipGrep: vi.fn(),
}));
vi.mock('../utils/fileUtils.js', async (importOriginal) => {
+1 -1
View File
@@ -8,7 +8,7 @@ import fs from 'node:fs';
import path from 'node:path';
import { EOL } from 'node:os';
import { spawn } from 'node:child_process';
import { downloadRipGrep } from '@joshua.litt/get-ripgrep';
import { downloadRipGrep } from 'get-ripgrep';
import type { ToolInvocation, ToolResult } from './tools.js';
import { BaseDeclarativeTool, BaseToolInvocation, Kind } from './tools.js';
import { SchemaValidator } from '../utils/schemaValidator.js';