UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

30 lines • 1.02 kB
import { type GrepEngineRequest, type GrepEngineResult } from "../engine.ts"; import type { RgRun } from "./process.ts"; export interface Root { path: string; alias: string; cwd: string; /** rg searches an explicitly named file as-is: no walk, ignore, glob, type or size filter applies. */ file: boolean; } export interface Candidate { absolute: string; canonical: string; display: string; root: Root; size: number; /** One-based position in the complete filtered candidate order, including binary files. */ ordinal: number; binary: boolean; } export declare function resolveRoots(request: GrepEngineRequest, result: GrepEngineResult): Promise<Root[]>; export declare function enumerateCandidates({ roots, cwd, walk, run, check, result, budget, }: { roots: Root[]; cwd: string; walk: string[]; run: RgRun; check: () => void; result: GrepEngineResult; budget?: number | undefined; }): Promise<Candidate[]>; //# sourceMappingURL=enumerate.d.ts.map