@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
31 lines • 1.4 kB
TypeScript
import { type ScalarEntry } from "../stream-utils.ts";
import type { DetectorMatch } from "../types.ts";
export declare const CJK_SCALAR_RUN_THRESHOLD = 224;
export declare const PUNCTUATION_RUN_THRESHOLD = 256;
export declare const RUN_WHITESPACE_MAX_CHARS = 32;
export declare const RUN_WHITESPACE_TARGET_RATIO = 8;
export declare const NEWLINE_FLOOD_MIN_CHARS = 320;
export declare const NEWLINE_FLOOD_MIN_NEWLINES = 8;
export declare const GENERIC_FLOOD_MIN_CHARS = 480;
export declare function isAsciiAlphanumeric(code: number): boolean;
export declare function isBoxDrawing(code: number): boolean;
export declare function isDecorativeScalar(code: number): boolean;
export interface DominantRunState {
active: boolean;
target: string;
targetWidth: number;
threshold: number;
count: number;
whitespaceUsed: number;
startOffset: number;
}
export declare function createDominantRunState(): DominantRunState;
export declare function updateDominantRun(state: DominantRunState, entry: ScalarEntry): DetectorMatch | null;
export interface WhitespaceFloodState {
count: number;
newlines: number;
startOffset: number;
}
export declare function createWhitespaceFloodState(): WhitespaceFloodState;
export declare function updateWhitespaceFlood(state: WhitespaceFloodState, entry: ScalarEntry): DetectorMatch | null;
//# sourceMappingURL=collapse-scalars.d.ts.map