enhance ripgrep files function with query filtering and limit support

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <noreply@opencode.ai>
This commit is contained in:
Dax Raad
2025-06-15 21:26:32 -04:00
parent 7d174767b0
commit fe05edaa79
3 changed files with 20 additions and 10 deletions

View File

@@ -14,6 +14,7 @@ import { mapValues } from "remeda"
import { NamedError } from "../util/error"
import { Fzf } from "../external/fzf"
import { ModelsDev } from "../provider/models"
import { Ripgrep } from "../external/ripgrep"
const ERRORS = {
400: {
@@ -457,7 +458,7 @@ export namespace Server {
async (c) => {
const body = c.req.valid("json")
const app = App.info()
const result = await Fzf.search({
const result = await Ripgrep.files({
cwd: app.path.cwd,
query: body.query,
limit: 10,