UNPKG

@code-yeongyu/senpi

Version:

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

14 lines • 1.13 kB
import type { AgentMessage } from "@earendil-works/pi-agent-core"; import type { ContextEditEntry, ProjectedSessionEntry } from "./session-manager.ts"; import type { TranscriptFlow } from "./session-transcript-journal.ts"; type Context = readonly ProjectedSessionEntry[]; /** Only the roles compact state holds; owned JSON, since the manager's entry objects change later. */ export declare function ownedFlowMessage(message: AgentMessage | undefined): AgentMessage | undefined; /** A compaction removes every message it took out of the model context. */ export declare function compactionFlow(from: Context, to: Context): TranscriptFlow; /** A leaf move: the messages that left the model context, then the ones that joined it, in context order. */ export declare function branchFlow(from: Context, to: Context): TranscriptFlow; /** A context edit replaces its target's message, or with no replacement removes it from the conversation. */ export declare function contextEditFlow(edit: ContextEditEntry, edited: AgentMessage | undefined): TranscriptFlow | undefined; export {}; //# sourceMappingURL=session-transcript-flows.d.ts.map