Documentation
¶
Overview ¶
Package extension provides rollback-aware lifecycle management for narrow provider, tool, context, and skill registries. It is not a general plugin SDK.
Index ¶
- func ApplyTransaction(ctx context.Context, steps []Step) error
- type Contribution
- type Registry
- func (r *Registry[T]) ActivateAll(ctx context.Context, ids []string) error
- func (r *Registry[T]) ActiveSnapshot() map[string]Contribution[T]
- func (r *Registry[T]) CheckHealth(ctx context.Context) []Status
- func (r *Registry[T]) Quarantine(id, reason string) error
- func (r *Registry[T]) QuarantineContext(ctx context.Context, id, reason string) error
- func (r *Registry[T]) Register(contribution Contribution[T]) error
- func (r *Registry[T]) Statuses() []Status
- func (r *Registry[T]) Unregister(ctx context.Context, id string) error
- func (r *Registry[T]) Update(ctx context.Context, replacement Contribution[T]) error
- type State
- type Status
- type Step
- type Trust
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Contribution ¶
type Registry ¶
type Registry[T any] struct { // contains filtered or unexported fields }
func NewRegistry ¶
func (*Registry[T]) ActivateAll ¶
ActivateAll activates a dependency-ordered list atomically. Earlier activations are rolled back if a later contribution fails.
func (*Registry[T]) ActiveSnapshot ¶
func (r *Registry[T]) ActiveSnapshot() map[string]Contribution[T]
ActiveSnapshot returns stable active contributions for one admitted run.
func (*Registry[T]) CheckHealth ¶
CheckHealth probes every active extension. Failures are deactivated and quarantined so later snapshots cannot keep exposing a broken capability.
func (*Registry[T]) Quarantine ¶
func (*Registry[T]) QuarantineContext ¶
QuarantineContext disables an active contribution before excluding it from future snapshots.
func (*Registry[T]) Register ¶
func (r *Registry[T]) Register(contribution Contribution[T]) error