export { rootReducer, sessionReducer, chatReducer, changesetReducer, annotationsReducer, automationReducer, automationRunReducer, softAssertNever, isClientDispatchable } from "./protocol/reducers.js"; import { type ToolKind } from "../meta/agentToolCallMeta.js"; import type { ICompletedToolCall, ToolCallState } from "./sessionState.js"; /** * Extracts the VS Code-specific `toolKind` rendering hint for a tool call. * * Normally the `_meta.toolKind` flag an agent adapter injects (e.g. * `copilotEventMapper`); it is not part of the protocol. A remote agent host * does not stamp that key, so for a call awaiting approval the kind falls back * to the permission request it echoes — the compatibility bridge documented in * {@link readAgentPermissionRequestMeta}. * * A stamped kind always wins, so a host that starts describing its * confirmations natively is never overridden by the fallback. */ export declare function getToolKind(tc: ToolCallState | ICompletedToolCall): ToolKind | undefined;