/**
 * Typed error thrown when a tool execution fails.
 *
 * Carries a generic `details` payload so callers can attach structured
 * context (e.g. exit codes, validation errors) alongside the message.
 */
export class ToolExecutionError extends Error {
    details;
    constructor(message, details) {
        super(message);
        this.details = details;
        this.name = 'ToolExecutionError';
    }
}
/** Type guard for {@link ToolExecutionError}. */
export function isToolExecutionError(error) {
    return error instanceof ToolExecutionError;
}
//# sourceMappingURL=tool-execution-error.js.map