UNPKG

@code-yeongyu/senpi

Version:

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

31 lines • 1.84 kB
import type { Context } from "@earendil-works/pi-ai"; import type { SessionEntry } from "../../../session-manager.ts"; import type { ExtensionAPI } from "../../types.ts"; export declare const TOOL_WATCH_CUSTOM_TYPE = "claude-sdk-oauth-tool-watch"; export type TrackedToolExecution = { toolCallId: string; toolName: string; content: string; isError: boolean; timestamp: number; }; export declare function createToolWatch(): { sessionKey: (sessionId: string) => string; trackCompletedToolCall: (sessionKey: string, execution: TrackedToolExecution) => void; getCompletedToolCall: (sessionKey: string, toolCallId: string) => TrackedToolExecution | undefined; reconcileWithContext: (sessionKey: string, context: Context) => void; hydrate: (sessionKey: string, entries: readonly SessionEntry[]) => void; buildPromptNote: (sessionKey: string | undefined, context: Context, customToolNameToSdk?: ReadonlyMap<string, string>) => string | undefined; deleteSession: (sessionKey: string) => void; }; export declare const toolWatch: { sessionKey: (sessionId: string) => string; trackCompletedToolCall: (sessionKey: string, execution: TrackedToolExecution) => void; getCompletedToolCall: (sessionKey: string, toolCallId: string) => TrackedToolExecution | undefined; reconcileWithContext: (sessionKey: string, context: Context) => void; hydrate: (sessionKey: string, entries: readonly SessionEntry[]) => void; buildPromptNote: (sessionKey: string | undefined, context: Context, customToolNameToSdk?: ReadonlyMap<string, string>) => string | undefined; deleteSession: (sessionKey: string) => void; }; export declare function registerToolWatch(pi: Pick<ExtensionAPI, "on" | "appendEntry">, watch?: ReturnType<typeof createToolWatch>): void; //# sourceMappingURL=tool-watch.d.ts.map