Documentation
¶
Overview ¶
Package opencodeevent consumes the bounded, neutral OpenCode observer wire. It never displays or forwards native event data or opaque identifiers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelGate ¶
ChannelGate binds a product setup decision to the same event observation. Legacy test gates retain their existing allow-all-channel behavior.
type Consumer ¶
type Consumer struct {
Gate Gate
Config *config.Config
Desktop notification.DeliveryPort
Clock Clock
SendWebhook WebhookSender
}
type Gate ¶
Gate is the current, read-only opt-in and registration decision. A nil gate denies delivery. PR4 supplies the persisted implementation at composition.
type Receipt ¶
type Receipt struct {
Status string `json:"status"`
Reason string `json:"reason,omitempty"`
Desktop string `json:"desktop,omitempty"`
Webhook string `json:"webhook,omitempty"`
}
Receipt contains only stable classification. It never includes event IDs, raw data, transport errors, configuration, or remote response content.
type WebhookSender ¶
type WebhookSender func(*config.Config, webhook.SendContext) error
WebhookSender allows a single, non-replayed external attempt.