@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
22 lines • 917 B
TypeScript
import type { GrepEngineRequest, GrepEngineResult } from "../engine.ts";
import type { Candidate } from "./enumerate.ts";
import type { RgRun } from "./process.ts";
export interface SegmentPlan {
walk: string[];
matcher: string[];
budget?: number | undefined;
platform?: NodeJS.Platform;
}
/** Orders candidates into rg launches whose whole command line, fixed arguments included, fits the argv budget. */
export declare function planSegments(ordered: Candidate[], request: GrepEngineRequest, plan: SegmentPlan): Candidate[][];
export declare function searchSegments({ candidates, request, walk, matcher, run, check, result, budget, }: {
candidates: Candidate[];
request: GrepEngineRequest;
walk: string[];
matcher: string[];
run: RgRun;
check: () => void;
result: GrepEngineResult;
budget?: number | undefined;
}): Promise<void>;
//# sourceMappingURL=segments.d.ts.map