UNPKG

@code-yeongyu/senpi

Version:

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

22 lines • 952 B
import type { AgentMessage } from "@earendil-works/pi-agent-core"; /** * Message writes the session file refused. The first error of a run is reported once, by whoever * owns the run (its prompt, or the continuation that started it); the refused messages leave the * model context before the next prompt, so that context matches what a reload shows. */ export declare class TranscriptWriteFailures { private runFailure; private reported; private readonly refused; startRun(): void; record(message: AgentMessage, error: unknown): void; refusal(message: AgentMessage): { readonly error: unknown; } | undefined; takeReport(): { readonly error: unknown; } | undefined; /** `messages` without the refused ones, or `undefined` when none of them is there. */ takeRefusedOut(messages: readonly AgentMessage[]): AgentMessage[] | undefined; } //# sourceMappingURL=transcript-write-failures.d.ts.map