feat(tools): use installed ripgrep for native file search (#5948)
* feat(tools): expose installed ripgrep through exec * refactor(tools): launch ripgrep with native argument vectors * refactor(tools): reuse the fresh exec parameter schema * fix(tools): select search backend in loader and display rg arguments * fix(ui): simplify rg previews and localize search completion * docs: simplify ripgrep configuration note * docs: keep ripgrep note on one line
This commit is contained in:
1 parent
b8893aba56
commit
e0b8efa0be
33 files changed
+514
-204
No files matched your search
@@ -29,7 +29,15 @@ describe("localized agent activity contracts", () => {
|
||||
|
||||
await setAppLanguage(locale);
|
||||
const trace = parseGenericToolTrace('read_file({"path":"src/app.tsx"})')!;
|
||||
const rg = parseGenericToolTrace('rg({"args":["-n","hello world","src"]})')!;
|
||||
for (const status of ["running", "done", "error"] as const) {
|
||||
const rgPresentation = describeGenericToolRun([{ trace: rg, status }], i18n.t);
|
||||
const searchKey = status === "running" ? "searchingFiles" : status === "done" ? "searchedFiles" : "searchFilesFailed";
|
||||
expect(rgPresentation).toMatchObject({
|
||||
label: translated[searchKey],
|
||||
detail: '-n "hello world" src',
|
||||
status,
|
||||
});
|
||||
const generic = describeGenericToolRun([{ trace, status }], i18n.t);
|
||||
const command = describeTraceLine('exec({"command":"bun run test"})', status, i18n.t);
|
||||
const browser = describeMcpActivity("browser_press_key", { key: "Enter" }, status, i18n.t);
|
||||
|
||||
Reference in new issue
Block a user