UNPKG

@code-yeongyu/senpi

Version:

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

20 lines • 980 B
import type { JobWidgetSourceSample } from "./source-stats.ts"; export declare const MAX_SAMPLE_BYTES: number; export interface JobWidgetPromptSource { readonly id: string; readonly label: string; readonly size: string; readonly lines: number; /** Lines read but not shown: the middle, and repeats that differ only in numbers. */ readonly omitted: number; readonly head: readonly string[]; readonly tail: readonly string[]; } /** * Sample lines for the prompt, most active source first, at most {@link MAX_SAMPLE_BYTES} in total * with every source getting a fair share of what earlier sources left. Within a share the newest * lines come first: they get two thirds (newest backwards, since they show what the job prints * now and what drifted), and the first lines get what is left. */ export declare function buildPromptSources(sources: readonly JobWidgetSourceSample[]): JobWidgetPromptSource[]; //# sourceMappingURL=author-samples.d.ts.map