Versions in this module Expand all Collapse all v0 v0.3.2 Aug 29, 2026 v0.3.1 Aug 25, 2026 v0.3.0 Aug 14, 2026 Changes in this version + const MaxInFlightHandlers + const MaxMessageBytes + const MaxNestingDepth + const NotifyBufferDepth + const SendQueueDepth + var AgentMethods = map[Method]struct + var ClientMethods = map[Method]struct + var ProtocolMethods = map[Method]struct + type AgentAuthCapabilities struct + Logout *LogoutCapabilities + Meta json.RawMessage + type AgentCapabilities struct + Auth *AgentAuthCapabilities + LoadSession bool + McpCapabilities *McpCapabilities + Meta json.RawMessage + PromptCapabilities *PromptCapabilities + SessionCapabilities *SessionCapabilities + func DefaultAgentCapabilities() AgentCapabilities + type AgentConn struct + func NewAgentConn(conn *Conn) *AgentConn + func (a *AgentConn) Authenticate(ctx context.Context, req AuthenticateRequest) (*AuthenticateResponse, error) + func (a *AgentConn) CallExtensionWithResult(ctx context.Context, method string, params, result any) (CallResult, error) + func (a *AgentConn) Cancel(ctx context.Context, n CancelNotification) error + func (a *AgentConn) CloseSession(ctx context.Context, req CloseSessionRequest) (*CloseSessionResponse, error) + func (a *AgentConn) Conn() *Conn + func (a *AgentConn) DeleteSession(ctx context.Context, req DeleteSessionRequest) (*DeleteSessionResponse, error) + func (a *AgentConn) Initialize(ctx context.Context, req InitializeRequest) (*InitializeResponse, error) + func (a *AgentConn) ListSessions(ctx context.Context, req ListSessionsRequest) (*ListSessionsResponse, error) + func (a *AgentConn) LoadSession(ctx context.Context, req LoadSessionRequest) (*LoadSessionResponse, error) + func (a *AgentConn) NewSession(ctx context.Context, req NewSessionRequest) (*NewSessionResponse, error) + func (a *AgentConn) Prompt(ctx context.Context, req PromptRequest) (*PromptResponse, error) + func (a *AgentConn) PromptWithResult(ctx context.Context, req PromptRequest) (*PromptResponse, CallResult, error) + func (a *AgentConn) ResumeSession(ctx context.Context, req ResumeSessionRequest) (*ResumeSessionResponse, error) + func (a *AgentConn) SetConfigOption(ctx context.Context, req SetSessionConfigOptionRequest) (*SetSessionConfigOptionResponse, error) + func (a *AgentConn) SetMode(ctx context.Context, req SetSessionModeRequest) (*SetSessionModeResponse, error) + func (a *AgentConn) StartExtensionCall(ctx context.Context, method string, params, result any) (*CallHandle, error) + type Annotations struct + Audience []Role + LastModified *string + Meta json.RawMessage + Priority *float64 + type AsyncCallResult struct + Err error + Facts CallResult + type AudioContent struct + Annotations *Annotations + Data string + Meta json.RawMessage + MimeType string + type AuthMethod = AuthMethodAgent + type AuthMethodAgent struct + Description *string + ID AuthMethodID + Meta json.RawMessage + Name string + type AuthMethodID string + type AuthenticateRequest struct + Meta json.RawMessage + MethodID AuthMethodID + type AuthenticateResponse struct + Meta json.RawMessage + type AvailableCommand struct + Description string + Input *AvailableCommandInput + Meta json.RawMessage + Name string + type AvailableCommandInput = UnstructuredCommandInput + type AvailableCommandsUpdate struct + AvailableCommands []AvailableCommand + Meta json.RawMessage + type BlobResourceContents struct + Blob string + Meta json.RawMessage + MimeType *string + URI string + type BooleanConfigOptionCapabilities struct + Meta json.RawMessage + type CallHandle struct + func (h *CallHandle) Admission() <-chan bool + func (h *CallHandle) Cancel() + func (h *CallHandle) Result() <-chan AsyncCallResult + type CallResult struct + ReceiveSequence uint64 + ResponseSequence uint64 + WriteAdmitted bool + type CancelNotification struct + Meta json.RawMessage + SessionID SessionID + type ClientCapabilities struct + Fs *FileSystemCapabilities + Meta json.RawMessage + Session *ClientSessionCapabilities + Terminal bool + func DefaultClientCapabilities() ClientCapabilities + type ClientConn struct + func NewClientConn(conn *Conn) *ClientConn + func (c *ClientConn) Conn() *Conn + func (c *ClientConn) CreateTerminal(ctx context.Context, req CreateTerminalRequest) (*TerminalHandle, error) + func (c *ClientConn) ReadTextFile(ctx context.Context, req ReadTextFileRequest) (*ReadTextFileResponse, error) + func (c *ClientConn) RequestPermission(ctx context.Context, req RequestPermissionRequest) (*RequestPermissionResponse, error) + func (c *ClientConn) SessionUpdate(ctx context.Context, n SessionNotification) error + func (c *ClientConn) WriteTextFile(ctx context.Context, req WriteTextFileRequest) (*WriteTextFileResponse, error) + type ClientSessionCapabilities struct + ConfigOptions *SessionConfigOptionsCapabilities + Meta json.RawMessage + type CloseSessionRequest struct + Meta json.RawMessage + SessionID SessionID + type CloseSessionResponse struct + Meta json.RawMessage + type ConfigOptionUpdate struct + ConfigOptions []SessionConfigOption + Meta json.RawMessage + type Conn struct + func NewConn(r io.Reader, w io.Writer, opts ConnOptions) *Conn + func (c *Conn) Call(ctx context.Context, method string, params, result any) error + func (c *Conn) CallWithResult(ctx context.Context, method string, params, result any) (CallResult, error) + func (c *Conn) Close() error + func (c *Conn) Done() <-chan struct{} + func (c *Conn) DroppedNotifications() uint64 + func (c *Conn) Handle(method string, h HandlerFunc) + func (c *Conn) HandleNotify(method string, h NotifyFunc) + func (c *Conn) HandleNotifyWithSequence(method string, h NotifyWithSequenceFunc) + func (c *Conn) HandleUnknownNotify(h NotifyFunc) + func (c *Conn) HandleUnknownNotifyWithSequence(h NotifyWithSequenceFunc) + func (c *Conn) HandleUnknownRequest(h HandlerFunc) + func (c *Conn) Notify(ctx context.Context, method string, params any) error + func (c *Conn) NotifyWithResult(ctx context.Context, method string, params any) (WriteResult, error) + func (c *Conn) StartCall(ctx context.Context, method string, params, result any) (*CallHandle, error) + func (c *Conn) WaitForNotifications(ctx context.Context) error + func (c *Conn) WaitForNotificationsThrough(ctx context.Context, receiveSequence uint64) error + func (c *Conn) WaitForReceiveSequence(ctx context.Context, receiveSequence uint64) error + type ConnClosedError struct + func (e *ConnClosedError) Error() string + func (e *ConnClosedError) Unwrap() error + type ConnOptions struct + ExtIDBase int64 + type Content struct + Content ContentBlock + Meta json.RawMessage + type ContentBlock struct + Audio *AudioContent + Image *ImageContent + Resource *EmbeddedResource + ResourceLink *ResourceLink + Text *TextContent + func (v *ContentBlock) UnmarshalJSON(data []byte) error + func (v ContentBlock) MarshalJSON() ([]byte, error) + type ContentChunk struct + Content ContentBlock + MessageID *MessageID + Meta json.RawMessage + type Cost struct + Amount float64 + Currency string + Meta json.RawMessage + type CreateTerminalRequest struct + Args []string + Command string + Cwd *string + Env []EnvVariable + Meta json.RawMessage + OutputByteLimit *uint64 + SessionID SessionID + type CreateTerminalResponse struct + Meta json.RawMessage + TerminalID TerminalID + type CurrentModeUpdate struct + CurrentModeID SessionModeID + Meta json.RawMessage + type DeleteSessionRequest struct + Meta json.RawMessage + SessionID SessionID + type DeleteSessionResponse struct + Meta json.RawMessage + type Diff struct + Meta json.RawMessage + NewText string + OldText *string + Path string + type EmbeddedResource struct + Annotations *Annotations + Meta json.RawMessage + Resource EmbeddedResourceResource + type EmbeddedResourceResource struct + BlobResourceContents *BlobResourceContents + TextResourceContents *TextResourceContents + func (v *EmbeddedResourceResource) UnmarshalJSON(data []byte) error + func (v EmbeddedResourceResource) MarshalJSON() ([]byte, error) + type EnvVariable struct + Meta json.RawMessage + Name string + Value string + type Envelope struct + Notification *Notification + Request *Request + Response *Response + func ParseEnvelope(data []byte) (*Envelope, error) + func (e *Envelope) Kind() Kind + type Error struct + Code ErrorCode + Data json.RawMessage + Message string + func ToWireError(f *Fault) *Error + func (e *Error) Error() string + type ErrorCode int32 + const ErrorCodeAuthenticationRequired + const ErrorCodeInternalError + const ErrorCodeInvalidParams + const ErrorCodeInvalidRequest + const ErrorCodeMethodNotFound + const ErrorCodeParseError + const ErrorCodeRequestCancelled + const ErrorCodeResourceNotFound + type Fault struct + Code ErrorCode + Data json.RawMessage + Message string + func AuthRequired(message string, cause error) *Fault + func FromWireError(w *Error) *Fault + func InternalError(message string, cause error) *Fault + func InvalidParams(message string, cause error) *Fault + func InvalidRequest(message string, cause error) *Fault + func MethodNotFound(message string, cause error) *Fault + func ParseError(message string, cause error) *Fault + func ResourceNotFound(message string, cause error) *Fault + func (f *Fault) Error() string + func (f *Fault) Unwrap() error + func (f *Fault) WithData(v any) *Fault + type FileSystemCapabilities struct + Meta json.RawMessage + ReadTextFile bool + WriteTextFile bool + func DefaultFileSystemCapabilities() FileSystemCapabilities + type FrameReader struct + func NewFrameReader(r io.Reader) *FrameReader + func (fr *FrameReader) ReadFrame() ([]byte, error) + type FrameTooLargeError struct + Limit int + func (e *FrameTooLargeError) Error() string + type HTTPHeader struct + Meta json.RawMessage + Name string + Value string + type HandlerFunc func(ctx context.Context, method string, params json.RawMessage) (any, error) + type ID struct + func NewNumberID(n int64) ID + func NewStringID(s string) ID + func (id ID) IsZero() bool + func (id ID) MarshalJSON() ([]byte, error) + func (id ID) Number() (int64, bool) + func (id ID) String() (string, bool) + type ImageContent struct + Annotations *Annotations + Data string + Meta json.RawMessage + MimeType string + URI *string + type Implementation struct + Meta json.RawMessage + Name string + Title *string + Version string + type InitializeRequest struct + ClientCapabilities *ClientCapabilities + ClientInfo *Implementation + Meta json.RawMessage + ProtocolVersion ProtocolVersion + type InitializeResponse struct + AgentCapabilities *AgentCapabilities + AgentInfo *Implementation + AuthMethods []AuthMethod + Meta json.RawMessage + ProtocolVersion ProtocolVersion + type InvalidFrameError struct + Reason string + func (e *InvalidFrameError) Error() string + type Issue struct + Kind IssueKind + type IssueKind string + const IssueAmbiguousShape + const IssueBothResultAndError + const IssueDuplicateField + const IssueExcessiveNesting + const IssueInvalidIDType + const IssueInvalidMethodType + const IssueMalformedErrorObj + const IssueMalformedJSON + const IssueMissingID + const IssueNotAnObject + const IssueOversizedPayload + const IssueTrailingData + const IssueUnknownField + const IssueWrongVersion + type KillTerminalRequest struct + Meta json.RawMessage + SessionID SessionID + TerminalID TerminalID + type KillTerminalResponse struct + Meta json.RawMessage + type Kind uint8 + const KindNotification + const KindRequest + const KindResponse + func (k Kind) String() string + type ListSessionsRequest struct + Cursor *string + Cwd *string + Meta json.RawMessage + type ListSessionsResponse struct + Meta json.RawMessage + NextCursor *string + Sessions []SessionInfo + type LoadSessionRequest struct + AdditionalDirectories []string + Cwd string + McpServers []McpServer + Meta json.RawMessage + SessionID SessionID + type LoadSessionResponse struct + ConfigOptions []SessionConfigOption + Meta json.RawMessage + Modes *SessionModeState + type LogoutCapabilities struct + Meta json.RawMessage + type LogoutRequest struct + Meta json.RawMessage + type LogoutResponse struct + Meta json.RawMessage + type McpCapabilities struct + HTTP bool + Meta json.RawMessage + Sse bool + func DefaultMcpCapabilities() McpCapabilities + type McpServer struct + HTTP *McpServerHTTP + Sse *McpServerSse + Stdio *McpServerStdio + func (v *McpServer) UnmarshalJSON(data []byte) error + func (v McpServer) MarshalJSON() ([]byte, error) + type McpServerHTTP struct + Headers []HTTPHeader + Meta json.RawMessage + Name string + URL string + type McpServerSse struct + Headers []HTTPHeader + Meta json.RawMessage + Name string + URL string + type McpServerStdio struct + Args []string + Command string + Env []EnvVariable + Meta json.RawMessage + Name string + type MessageID string + type Method string + const MethodAuthenticate + const MethodCancelRequest + const MethodFsReadTextFile + const MethodFsWriteTextFile + const MethodInitialize + const MethodLogout + const MethodSessionCancel + const MethodSessionClose + const MethodSessionDelete + const MethodSessionList + const MethodSessionLoad + const MethodSessionNew + const MethodSessionPrompt + const MethodSessionRequestPermission + const MethodSessionResume + const MethodSessionSetConfigOption + const MethodSessionSetMode + const MethodSessionUpdate + const MethodTerminalCreate + const MethodTerminalKill + const MethodTerminalOutput + const MethodTerminalRelease + const MethodTerminalWaitForExit + type NewSessionRequest struct + AdditionalDirectories []string + Cwd string + McpServers []McpServer + Meta json.RawMessage + type NewSessionResponse struct + ConfigOptions []SessionConfigOption + Meta json.RawMessage + Modes *SessionModeState + SessionID SessionID + type Notification struct + Method string + Params json.RawMessage + ReceiveSequence uint64 + func (n *Notification) MarshalJSON() ([]byte, error) + type NotifyFunc func(ctx context.Context, method string, params json.RawMessage) + type NotifyWithSequenceFunc func(ctx context.Context, method string, params json.RawMessage, ...) + type PermissionOption struct + Kind PermissionOptionKind + Meta json.RawMessage + Name string + OptionID PermissionOptionID + type PermissionOptionID string + type PermissionOptionKind string + const PermissionOptionKindAllowAlways + const PermissionOptionKindAllowOnce + const PermissionOptionKindRejectAlways + const PermissionOptionKindRejectOnce + func (v *PermissionOptionKind) UnmarshalJSON(data []byte) error + type Plan struct + Entries []PlanEntry + Meta json.RawMessage + type PlanEntry struct + Content string + Meta json.RawMessage + Priority PlanEntryPriority + Status PlanEntryStatus + type PlanEntryPriority string + const PlanEntryPriorityHigh + const PlanEntryPriorityLow + const PlanEntryPriorityMedium + func (v *PlanEntryPriority) UnmarshalJSON(data []byte) error + type PlanEntryStatus string + const PlanEntryStatusCompleted + const PlanEntryStatusInProgress + const PlanEntryStatusPending + func (v *PlanEntryStatus) UnmarshalJSON(data []byte) error + type PromptCapabilities struct + Audio bool + EmbeddedContext bool + Image bool + Meta json.RawMessage + func DefaultPromptCapabilities() PromptCapabilities + type PromptRequest struct + Meta json.RawMessage + Prompt []ContentBlock + SessionID SessionID + type PromptResponse struct + Meta json.RawMessage + StopReason StopReason + type ProtocolVersion uint16 + const CurrentProtocolVersion + type ReadTextFileRequest struct + Limit *uint32 + Line *uint32 + Meta json.RawMessage + Path string + SessionID SessionID + type ReadTextFileResponse struct + Content string + Meta json.RawMessage + type ReceiveSequenceOverflowError struct + func (e *ReceiveSequenceOverflowError) Error() string + type ReleaseTerminalRequest struct + Meta json.RawMessage + SessionID SessionID + TerminalID TerminalID + type ReleaseTerminalResponse struct + Meta json.RawMessage + type Request struct + ID ID + Method string + Params json.RawMessage + func (r *Request) MarshalJSON() ([]byte, error) + type RequestPermissionOutcome struct + Cancelled *struct{} + Selected *SelectedPermissionOutcome + func (v *RequestPermissionOutcome) UnmarshalJSON(data []byte) error + func (v RequestPermissionOutcome) MarshalJSON() ([]byte, error) + type RequestPermissionRequest struct + Meta json.RawMessage + Options []PermissionOption + SessionID SessionID + ToolCall ToolCallUpdate + type RequestPermissionResponse struct + Meta json.RawMessage + Outcome RequestPermissionOutcome + type ResourceLink struct + Annotations *Annotations + Description *string + Meta json.RawMessage + MimeType *string + Name string + Size *int64 + Title *string + URI string + type Response struct + Error *Error + ID ID + ReceiveSequence uint64 + Result json.RawMessage + func (r *Response) MarshalJSON() ([]byte, error) + type ResumeSessionRequest struct + AdditionalDirectories []string + Cwd string + McpServers []McpServer + Meta json.RawMessage + SessionID SessionID + type ResumeSessionResponse struct + ConfigOptions []SessionConfigOption + Meta json.RawMessage + Modes *SessionModeState + type Role string + const RoleAssistant + const RoleUser + func (v *Role) UnmarshalJSON(data []byte) error + type SelectedPermissionOutcome struct + Meta json.RawMessage + OptionID PermissionOptionID + type SendResult = WriteResult + type SessionAdditionalDirectoriesCapabilities struct + Meta json.RawMessage + type SessionCapabilities struct + AdditionalDirectories *SessionAdditionalDirectoriesCapabilities + Close *SessionCloseCapabilities + Delete *SessionDeleteCapabilities + List *SessionListCapabilities + Meta json.RawMessage + Resume *SessionResumeCapabilities + type SessionCloseCapabilities struct + Meta json.RawMessage + type SessionConfigBoolean struct + CurrentValue bool + type SessionConfigGroupID string + type SessionConfigID string + type SessionConfigOption struct + Boolean *SessionConfigBoolean + Category *SessionConfigOptionCategory + Description *string + ID SessionConfigID + Meta json.RawMessage + Name string + Select *SessionConfigSelect + func (v *SessionConfigOption) UnmarshalJSON(data []byte) error + func (v SessionConfigOption) MarshalJSON() ([]byte, error) + type SessionConfigOptionCategory string + const SessionConfigOptionCategoryMode + const SessionConfigOptionCategoryModel + const SessionConfigOptionCategoryModelConfig + const SessionConfigOptionCategoryThoughtLevel + type SessionConfigOptionsCapabilities struct + Boolean *BooleanConfigOptionCapabilities + Meta json.RawMessage + type SessionConfigSelect struct + CurrentValue SessionConfigValueID + Options SessionConfigSelectOptions + type SessionConfigSelectGroup struct + Group SessionConfigGroupID + Meta json.RawMessage + Name string + Options []SessionConfigSelectOption + type SessionConfigSelectOption struct + Description *string + Meta json.RawMessage + Name string + Value SessionConfigValueID + type SessionConfigSelectOptions struct + Grouped []SessionConfigSelectGroup + Ungrouped []SessionConfigSelectOption + func (v *SessionConfigSelectOptions) UnmarshalJSON(data []byte) error + func (v SessionConfigSelectOptions) MarshalJSON() ([]byte, error) + type SessionConfigValueID string + type SessionDeleteCapabilities struct + Meta json.RawMessage + type SessionID string + type SessionInfo struct + AdditionalDirectories []string + Cwd string + Meta json.RawMessage + SessionID SessionID + Title *string + UpdatedAt *string + type SessionInfoUpdate struct + Meta json.RawMessage + Title *string + UpdatedAt *string + type SessionListCapabilities struct + Meta json.RawMessage + type SessionMode struct + Description *string + ID SessionModeID + Meta json.RawMessage + Name string + type SessionModeID string + type SessionModeState struct + AvailableModes []SessionMode + CurrentModeID SessionModeID + Meta json.RawMessage + type SessionNotification struct + Meta json.RawMessage + SessionID SessionID + Update SessionUpdate + type SessionResumeCapabilities struct + Meta json.RawMessage + type SessionUpdate struct + AgentMessageChunk *ContentChunk + AgentThoughtChunk *ContentChunk + AvailableCommandsUpdate *AvailableCommandsUpdate + ConfigOptionUpdate *ConfigOptionUpdate + CurrentModeUpdate *CurrentModeUpdate + Plan *Plan + SessionInfoUpdate *SessionInfoUpdate + ToolCall *ToolCall + ToolCallUpdate *ToolCallUpdate + UsageUpdate *UsageUpdate + UserMessageChunk *ContentChunk + func (v *SessionUpdate) UnmarshalJSON(data []byte) error + func (v SessionUpdate) MarshalJSON() ([]byte, error) + type SetSessionConfigOptionRequest struct + Boolean *bool + ConfigID SessionConfigID + Meta json.RawMessage + SessionID SessionID + ValueID *SessionConfigValueID + func (v *SetSessionConfigOptionRequest) UnmarshalJSON(data []byte) error + func (v SetSessionConfigOptionRequest) MarshalJSON() ([]byte, error) + type SetSessionConfigOptionResponse struct + ConfigOptions []SessionConfigOption + Meta json.RawMessage + type SetSessionModeRequest struct + Meta json.RawMessage + ModeID SessionModeID + SessionID SessionID + type SetSessionModeResponse struct + Meta json.RawMessage + type StopReason string + const StopReasonCancelled + const StopReasonEndTurn + const StopReasonMaxTokens + const StopReasonMaxTurnRequests + const StopReasonRefusal + func (v *StopReason) UnmarshalJSON(data []byte) error + type Terminal struct + Meta json.RawMessage + TerminalID TerminalID + type TerminalExitStatus struct + ExitCode *uint32 + Meta json.RawMessage + Signal *string + type TerminalHandle struct + func (t *TerminalHandle) ID() TerminalID + func (t *TerminalHandle) Kill(ctx context.Context) (*KillTerminalResponse, error) + func (t *TerminalHandle) Output(ctx context.Context) (*TerminalOutputResponse, error) + func (t *TerminalHandle) Release(ctx context.Context) (*ReleaseTerminalResponse, error) + func (t *TerminalHandle) WaitForExit(ctx context.Context) (*WaitForTerminalExitResponse, error) + type TerminalID string + type TerminalOutputRequest struct + Meta json.RawMessage + SessionID SessionID + TerminalID TerminalID + type TerminalOutputResponse struct + ExitStatus *TerminalExitStatus + Meta json.RawMessage + Output string + Truncated bool + type TextContent struct + Annotations *Annotations + Meta json.RawMessage + Text string + type TextResourceContents struct + Meta json.RawMessage + MimeType *string + Text string + URI string + type ToolCall struct + Content []ToolCallContent + Kind *ToolKind + Locations []ToolCallLocation + Meta json.RawMessage + RawInput json.RawMessage + RawOutput json.RawMessage + Status *ToolCallStatus + Title string + ToolCallID ToolCallID + type ToolCallContent struct + Content *Content + Diff *Diff + Terminal *Terminal + func (v *ToolCallContent) UnmarshalJSON(data []byte) error + func (v ToolCallContent) MarshalJSON() ([]byte, error) + type ToolCallID string + type ToolCallLocation struct + Line *uint32 + Meta json.RawMessage + Path string + type ToolCallStatus string + const ToolCallStatusCompleted + const ToolCallStatusFailed + const ToolCallStatusInProgress + const ToolCallStatusPending + func (v *ToolCallStatus) UnmarshalJSON(data []byte) error + type ToolCallUpdate struct + Content []ToolCallContent + Kind *ToolKind + Locations []ToolCallLocation + Meta json.RawMessage + RawInput json.RawMessage + RawOutput json.RawMessage + Status *ToolCallStatus + Title *string + ToolCallID ToolCallID + type ToolKind string + const ToolKindDelete + const ToolKindEdit + const ToolKindExecute + const ToolKindFetch + const ToolKindMove + const ToolKindOther + const ToolKindRead + const ToolKindSearch + const ToolKindSwitchMode + const ToolKindThink + func (v *ToolKind) UnmarshalJSON(data []byte) error + type TruncatedFrameError struct + Read int + func (e *TruncatedFrameError) Error() string + type UnstructuredCommandInput struct + Hint string + Meta json.RawMessage + type UsageUpdate struct + Cost *Cost + Meta json.RawMessage + Size uint64 + Used uint64 + type ValidationError struct + Issues []Issue + func (e *ValidationError) AsFault() *Fault + func (e *ValidationError) Error() string + type WaitForTerminalExitRequest struct + Meta json.RawMessage + SessionID SessionID + TerminalID TerminalID + type WaitForTerminalExitResponse struct + ExitCode *uint32 + Meta json.RawMessage + Signal *string + type WriteResult struct + WriteAdmitted bool + type WriteTextFileRequest struct + Content string + Meta json.RawMessage + Path string + SessionID SessionID + type WriteTextFileResponse struct + Meta json.RawMessage + type Writer struct + func NewWriter(w io.Writer) *Writer + func (wr *Writer) Close() error + func (wr *Writer) Send(msg any) error + func (wr *Writer) SendContext(ctx context.Context, msg any) error + func (wr *Writer) SendContextResult(ctx context.Context, msg any) (WriteResult, error) + type WriterClosedError struct + func (e *WriterClosedError) Error() string + func (e *WriterClosedError) Unwrap() error v0.2.3 Aug 12, 2026 v0.2.2 Aug 11, 2026 v0.2.1 Aug 11, 2026 v0.2.0 Aug 10, 2026 v0.1.3 Aug 7, 2026 v0.1.2 Aug 5, 2026 v0.1.1 Aug 4, 2026 v0.1.0 Jul 31, 2026