@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
27 lines • 1.14 kB
TypeScript
import type { TtsrRule, TtsrSettings, TtsrStreamSource } from "./types.ts";
export interface TtsrMatchContext {
readonly source: TtsrStreamSource;
readonly streamKey: string;
readonly toolName?: string;
readonly filePaths?: readonly string[];
}
export type TtsrCompileCondition = (pattern: string) => RegExp | null;
export declare class TtsrManager {
#private;
constructor(settings: TtsrSettings, compileCondition: TtsrCompileCondition);
addRule(rule: TtsrRule): boolean;
checkDelta(delta: string, context: TtsrMatchContext): TtsrRule[];
/** Buffered chars per stream key (diagnostics; buffer-bound verification). */
getStreamBufferLengths(): Map<string, number>;
markInjected(rulesToMark: readonly TtsrRule[]): void;
markInjectedByNames(ruleNames: readonly string[]): void;
getInjectedRuleNames(): string[];
restoreInjected(ruleNames: readonly string[]): void;
resetBuffers(): void;
hasRules(): boolean;
getRules(): TtsrRule[];
incrementMessageCount(): void;
getMessageCount(): number;
getSettings(): TtsrSettings;
}
//# sourceMappingURL=manager.d.ts.map