UNPKG

@code-yeongyu/senpi

Version:

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

15 lines • 778 B
import type { AgentEvent } from "@earendil-works/pi-agent-core"; export type AgentMessageUpdateEvent = Extract<AgentEvent, { type: "message_update"; }>; /** * A `message_update` as the session publishes it. `toolcall_start` and * `toolcall_end` carry `resolvedToolName`: the tool the call will run, by the * rule the agent loop applies, so a client titles the call correctly before * `tool_execution_start` (a gateway-namespaced `mcp__<id>__Edit` streams as `edit`). */ export type SessionMessageUpdateEvent = AgentMessageUpdateEvent & { resolvedToolName?: string; }; export declare function withResolvedToolName(event: AgentMessageUpdateEvent, resolve: (requested: string) => string): SessionMessageUpdateEvent; //# sourceMappingURL=tool-call-display-name.d.ts.map