Documentation
¶
Overview ¶
Package copilotvscodeevent owns Local admission, fixed informational copy and private observation claims. Installed policy/effect composition belongs to N2.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binding ¶
type Binding struct {
InstallationID, BindingID, ProfileIdentity, Product string
Generation uint64
}
Binding comes exclusively from trusted host installation state. Event data never chooses any of these identities, generation or product authority.
type Consumer ¶
type Consumer struct {
Binding Binding
Gate Gate
Config *config.Config
Desktop notification.DeliveryPort
SendWebhook WebhookSender
Clock observation.Clock
Cache *observation.RecentCache
}
Desktop is likewise an effect owner; macOS already owns its helper lease. Consumer never wraps either effect owner in a second lease.
type Gate ¶
type Gate interface {
Channels(context.Context, Binding) Channels
Recheck(context.Context, Binding, Channel) bool
}
Gate denies unknown/missing policy. Effect owners independently Recheck under their single retained lease; it must not acquire another lease recursively.
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 reports boundary acceptance, never visibility. Causes/IDs stay private.
type WebhookSender ¶
WebhookSender is an effect-owner seam: acquire its retained installation/policy lease and Recheck before NewWithContext(ctx). Consumer supplies the no-redirect context. No retry/fallback/legacy route.