Versions in this module Expand all Collapse all v0 v0.1.0 Oct 11, 2026 Changes in this version + const CarrierKey + const EventCapacity + const InternalEnvPrefix + const MaxBodyBytes + const ServerUsername + var ErrMarkerMissing = errors.New("native execution marker missing") + func AdvancePluginGeneration(root string) error + func CheckPlugin(root, directory string) error + func ConfigDir(lookup func(string) (string, bool)) string + func DataDir(lookup func(string) (string, bool)) string + func ExecutionMarker(event Event) (id, outcome string, err error) + func HomeEnvironment(home string) map[string]string + func IsMissing(err error) bool + func ModelSelectionShapeError(value string) error + func NewID(prefix string) string + func NewMessageID() string + func SessionPath(id string) string + func WritePlugin(root, config string, ownsHome bool) (string, error) + type Client struct + Password string + URL string + func NewClient() *Client + func (c *Client) Args() []string + func (c *Client) CancelInput(ctx context.Context, sessionID, inputID string) error + func (c *Client) Do(ctx context.Context, directory, method, path string, body, out any) error + func (c *Client) Enqueue(ctx context.Context, input InboxInput) error + func (c *Client) Export(ctx context.Context, id string) (Export, error) + func (c *Client) Import(ctx context.Context, snapshot Export, location Location) error + func (c *Client) Inbox(ctx context.Context, sessionID string) ([]InboxInput, error) + func (c *Client) Interrupt(ctx context.Context, id string) error + func (c *Client) Move(ctx context.Context, id, directory string) error + func (c *Client) ReadAddress(stdout io.Reader) error + func (c *Client) Session(ctx context.Context, id string) (NativeSession, error) + func (c *Client) StreamExport(ctx context.Context, id string, info func(json.RawMessage) error, ...) error + func (c *Client) Subscribe(ctx context.Context) (*Stream, error) + func (c *Client) UsageAccess(ctx context.Context, directory, providerID string, selected ModelRef, ...) (usage.Access, error) + func (c *Client) UsageGateways(ctx context.Context, directory string, selected ModelRef, ...) ([]gateway.Route, error) + func (c *Client) Wait(ctx context.Context, id string) error + func (c *Client) WaitForPlugins(ctx context.Context, directory string) error + type Content struct + ID string + MIME string + Name string + State json.RawMessage + Text string + Type string + URI string + type Event struct + Created int64 + Data json.RawMessage + ID string + Raw json.RawMessage + SessionID string + Type string + func DecodeEvent(frame []byte) (Event, error) + func (e Event) MessageID() string + type Export struct + Info NativeSession + InfoRaw json.RawMessage + Messages []Message + func (e *Export) UnmarshalJSON(data []byte) error + func (e Export) ContainsHistory(saved Export) bool + func (e Export) MarshalJSON() ([]byte, error) + type Form struct + Fields []FormField + ID string + Metadata map[string]any + SessionID string + Title string + type FormField struct + Description string + Key string + Label string + Options []struct{ ... } + Raw json.RawMessage + Required bool + Type string + func (f *FormField) UnmarshalJSON(data []byte) error + type HTTPError struct + Native NativeError + Status int + func (e *HTTPError) Error() string + type InboxInput struct + Delivery string + ID string + Payload json.RawMessage + SessionID string + Time struct{ ... } + Type string + func (input InboxInput) Validate(sessionID string) error + type Location struct + Directory string + type Message struct + Created int64 + ID string + Outcome string + Raw json.RawMessage + Type string + func ParseMessage(raw json.RawMessage) (Message, error) + func (m *Message) UnmarshalJSON(data []byte) error + func (m Message) Decode() (NativeMessage, error) + func (m Message) MarshalJSON() ([]byte, error) + type Model struct + Capabilities struct{ ... } + Enabled bool + ID string + Limit map[string]float64 + Name string + Package string + ProviderID string + Variants []struct{ ... } + type ModelRef struct + ID string + ProviderID string + Variant string + type NativeAgent struct + Hidden bool + ID string + Mode string + Name string + type NativeAttachment struct + Data string + Filename string + ID string + MIME string + Type string + URL string + type NativeCommand struct + Description string + Name string + type NativeError struct + Message string + Status int + Type string + type NativeMessage struct + Agent string + Content []Content + Cost float64 + Error *NativeError + Files []NativeAttachment + Finish string + ID string + Model ModelRef + Outcome string + Text string + Time struct{ ... } + Tokens NativeTokens + Type string + type NativeSession struct + Agent string + Cost float64 + ID string + Location Location + Metadata map[string]any + Model ModelRef + Outcome string + ParentID string + Time struct{ ... } + Title string + type NativeSessionStatus struct + Type string + type NativeTodo struct + Content string + Priority string + Status string + type NativeTokens struct + Cache struct{ ... } + Input float64 + Output float64 + Reasoning float64 + type PermissionRequest struct + Action string + ID string + Resources []string + SessionID string + Source struct{ ... } + type ProtocolError struct + Message string + func (e *ProtocolError) Error() string + type Stream struct + Events chan Event + func (s *Stream) Close() + func (s *Stream) Err() error + type ToolState struct + Content []Content + Error *NativeError + Input any + Metadata map[string]any + Status string