Documentation
¶
Overview ¶
Package opencode decodes the neutral OpenCode observer wire. It does not implement OpenCode's native event types or any notification policy.
Index ¶
Constants ¶
View Source
const ( Version = 1 MaxBytes = 4096 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObservedEvent ¶
type ObservedEvent struct {
Version int `json:"version"`
Kind Kind `json:"kind"`
SessionID string `json:"sessionID,omitempty"`
TurnID string `json:"turnID,omitempty"`
MessageID string `json:"messageID,omitempty"`
RequestID string `json:"requestID,omitempty"`
NativeType string `json:"nativeType,omitempty"`
RootSession *bool `json:"rootSession,omitempty"`
}
func Decode ¶
func Decode(data []byte) (ObservedEvent, error)
Decode accepts additive fields and unfamiliar event kinds within wire v1. Consumers must ignore Unknown; a changed required shape needs a new version.
Click to show internal directories.
Click to hide internal directories.