Versions in this module Expand all Collapse all v0 v0.1.1 Oct 4, 2026 v0.1.0 Oct 3, 2026 Changes in this version + const MetaNoUsage + var ErrSourceFormat = errors.New("adapter source format incompatible") + func CountUsageSources(srcs []Source) int + func FileStem(path string) string + func IsDir(path string) bool + func NonNeg(v int64) int64 + func WalkEntryIsFile(d fs.DirEntry, path string) bool + type Adapter interface + Capabilities func() model.ToolCapability + Collect func(ctx context.Context, src Source) (Observation, error) + Discover func(ctx context.Context, cfg DiscoverConfig) ([]Source, error) + DisplayName func() string + ID func() string + type DiscoverConfig struct + Home string + Overrides map[string]string + func (c DiscoverConfig) Root(tool, def string) string + type Incremental interface + CollectIncremental func(ctx context.Context, src Source, cp *model.SourceCheckpoint) (Observation, error) + type Observation struct + Activity []model.ActivityEvent + Checkpoint *model.SourceCheckpoint + CodeChanges []model.CodeChange + Events []model.UsageEvent + Snapshots []model.AggregateSnapshot + TurnContexts []model.TurnContext + type Registry struct + func NewRegistry(as ...Adapter) *Registry + func (r *Registry) All() []Adapter + func (r *Registry) Capabilities() map[string]model.ToolCapability + func (r *Registry) Get(id string) (Adapter, bool) + type Source struct + Class model.SourceClass + Label string + Meta map[string]string + Path string + Tool string + func (s Source) CarriesUsage() bool