UNPKG

@code-yeongyu/senpi

Version:

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

33 lines • 1.17 kB
import { FixedRing, type ScalarEntry } from "../stream-utils.ts"; import type { DetectorMatch } from "../types.ts"; export declare const LINE_RING_CAPACITY = 16; export declare const LINE_PERIOD_MAX = 4; export declare const LINE_CYCLE_MIN_CYCLES = 6; export declare const LINE_MIN_REPEATED_CHARS = 384; export declare const LINE_TEXT_RETENTION_MAX = 512; interface LineEntry { readonly hashA: number; readonly hashB: number; readonly utf16Length: number; readonly startOffset: number; readonly eligible: boolean; readonly text: string | undefined; } export interface LineCycleState { readonly ring: FixedRing<LineEntry>; readonly matched: number[]; readonly repeatedChars: number[]; readonly blockStart: number[]; readonly cycleWidth: number[]; hashA: number; hashB: number; length: number; startOffset: number; hasContent: boolean; retained: string; retaining: boolean; } export declare function createLineCycleState(): LineCycleState; export declare function updateLineCycles(state: LineCycleState, entry: ScalarEntry): DetectorMatch | null; export {}; //# sourceMappingURL=collapse-lines.d.ts.map