Skip to main content

Module adapters

Module adapters 

Source
Expand description

Source adapters and the KPIs they can populate.

An adapter turns one line of a vendor log into a normalized Event. It also declares which KPIs it is able to fill in, so reports can grey out a column instead of printing a misleading 0 for something the source simply never recorded.

Adapters are strictly read-only against their source tree: they open files for reading and never write, rename, or truncate anything under it.

Modules§

claude_code
The Claude Code adapter: ~/.claude/projects/**/*.jsonl.

Structs§

Capabilities
The set of KPIs an adapter declares it can populate.
ParsedRecord
One parsed source record.

Enums§

Kpi
A measurable a report might want to show. An adapter that does not list a KPI cannot fill it in from its logs — the column is blank because the data does not exist, not because the number is zero.
Parsed
What one source line yielded.

Traits§

Adapter
A source of events.

Functions§

enabled
Adapters that are enabled in config and can actually ingest.
registry
Every adapter warden knows about, implemented or not, so doctor can list the ones a user might expect to see.
usage_key
Key under which a per-request usage figure is counted exactly once.