UNPKG

@code-yeongyu/senpi

Version:

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

29 lines • 1.1 kB
import type { Keybinding } from "../../../core/keybindings.ts"; import type { TipDefinition } from "./registry.ts"; export interface WorkingTipOptions { tipsEnabled: boolean; history: Record<string, number>; sessionShownTipIds: ReadonlySet<string>; now: number; definitions: readonly TipDefinition[]; keys: (binding: Keybinding) => string; hasCommand?: (command: string) => boolean; } export interface WorkingTipLine { line: string; tipId: string; } /** * Per-turn cache for the working-status tip. * * The tip is chosen once per turn and must survive the working indicator being * hidden and reshown mid-turn; `resetForNewTurn()` is called only at a real turn * boundary (agent_start). */ export declare class WorkingTipCache { private cached; resetForNewTurn(): void; resolve(compute: () => WorkingTipLine | undefined, onFirstResolve?: (tip: WorkingTipLine) => void): WorkingTipLine | undefined; } export declare function resolveWorkingTipLine(options: WorkingTipOptions): WorkingTipLine | undefined; //# sourceMappingURL=working-tip.d.ts.map