UNPKG

@code-yeongyu/senpi

Version:

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

21 lines • 1.04 kB
import type { ChildProcessWithoutNullStreams, SpawnOptionsWithoutStdio } from "node:child_process"; import { type RgEvent } from "./json-rows.ts"; export interface RgEngineOptions { /** Process and clock seams keep cancellation and ordered-deadline tests event-driven. */ spawn?: (command: string, args: string[], options: SpawnOptionsWithoutStdio) => ChildProcessWithoutNullStreams; now?: () => number; /** Batches per-file arguments under this many command-line characters instead of the platform budget. */ batchBudget?: number; } export type RgRun = (args: string[], cwd: string, onEvent?: (event: RgEvent) => void, input?: Buffer) => Promise<Buffer>; export declare class SearchTimeout extends Error { } export declare function createRgRunner({ executable, launch, now, deadline, signal, check, }: { executable: string; launch: NonNullable<RgEngineOptions["spawn"]>; now: () => number; deadline: number; signal?: AbortSignal; check: () => void; }): RgRun; //# sourceMappingURL=process.d.ts.map