Versions in this module Expand all Collapse all v0 v0.0.1 Apr 19, 2026 Changes in this version + var ErrClientAlreadyConnected = errors.New("client already connected") + var ErrClientClosed = errors.New("client closed: clients are single-use, create a new one with New()") + var ErrClientNotConnected = errors.New("client not connected") + var ErrControllerStopped = errors.New("protocol controller stopped") + var ErrOperationCancelled = errors.New("operation cancelled") + var ErrRequestTimeout = errors.New("request timeout") + var ErrSessionNotFound = errors.New("session not found") + var ErrStdinClosed = errors.New("stdin closed") + var ErrTransportNotConnected = errors.New("transport not connected") + var ErrUnknownMessageType = errors.New("unknown message type") + type MessageParseError struct + Data map[string]any + Err error + Message string + func (e *MessageParseError) Error() string + func (e *MessageParseError) IsSDKError() bool + func (e *MessageParseError) Unwrap() error + type SDKError interface + IsSDKError func() bool + type ToolPermissionDeniedError struct + Interrupt bool + Message string + ToolName string + func (e *ToolPermissionDeniedError) Error() string + func (e *ToolPermissionDeniedError) IsSDKError() bool + type UnsupportedHookEventError struct + Event string + func (e *UnsupportedHookEventError) Error() string + func (e *UnsupportedHookEventError) IsSDKError() bool + type UnsupportedHookOutputError struct + Event string + Field string + func (e *UnsupportedHookOutputError) Error() string + func (e *UnsupportedHookOutputError) IsSDKError() bool