@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
16 lines • 657 B
TypeScript
import type { Api, AssistantMessage, AssistantMessageEventStream, Model } from "@earendil-works/pi-ai";
import type { SDKMessage } from "./sdk-boundary.ts";
import { type StreamBlock } from "./stream-protocol.ts";
export type StreamEventContext = {
model: Model<Api>;
output: AssistantMessage;
blocks: StreamBlock[];
stream: AssistantMessageEventStream;
customToolNameToPi: ReadonlyMap<string, string>;
};
type StreamEvent = Extract<SDKMessage, {
type: "stream_event";
}>["event"];
export declare function applyStreamEvent(context: StreamEventContext, event: StreamEvent): void;
export {};
//# sourceMappingURL=stream-events.d.ts.map