Documentation
¶
Overview ¶
Package adapters defines verified capture integration contracts.
Index ¶
- type Adapter
- type Capabilities
- type Descriptor
- type Detection
- type GenericJSONL
- func (GenericJSONL) Descriptor() Descriptor
- func (GenericJSONL) Detect(context.Context) (Detection, error)
- func (GenericJSONL) ExtractProjectSignals(RawRecord) ProjectSignals
- func (GenericJSONL) HealthCheck(context.Context) error
- func (GenericJSONL) Ingest(_ context.Context, reader io.Reader) ([]RawRecord, error)
- func (GenericJSONL) Install(_ context.Context, _ InstallOptions) (InstallResult, error)
- func (GenericJSONL) Normalize(record RawRecord) (RawRecord, error)
- func (GenericJSONL) Uninstall(_ context.Context, _ InstallOptions) (InstallResult, error)
- type InstallOptions
- type InstallResult
- type ProjectSignals
- type RawRecord
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface {
Descriptor() Descriptor
Detect(context.Context) (Detection, error)
Install(context.Context, InstallOptions) (InstallResult, error)
Uninstall(context.Context, InstallOptions) (InstallResult, error)
HealthCheck(context.Context) error
Ingest(context.Context, io.Reader) ([]RawRecord, error)
Normalize(RawRecord) (RawRecord, error)
ExtractProjectSignals(RawRecord) ProjectSignals
}
Adapter has one stable lifecycle. It emits signals; app.Service resolves projects.
type Capabilities ¶
type Capabilities struct {
ModelIdentity bool `json:"model_identity"`
InputTokens bool `json:"input_tokens"`
OutputTokens bool `json:"output_tokens"`
ReasoningTokens bool `json:"reasoning_tokens"`
CacheTokens bool `json:"cache_tokens"`
ContextUsage bool `json:"context_usage"`
ToolCalls bool `json:"tool_calls"`
MCPCalls bool `json:"mcp_calls"`
Costs bool `json:"costs"`
PromptSizes bool `json:"prompt_sizes"`
ResponseSizes bool `json:"response_sizes"`
SessionLifecycle bool `json:"session_lifecycle"`
TaskMetadata bool `json:"task_metadata"`
ProjectIdentity bool `json:"project_identity"`
WorkingDirectory bool `json:"working_directory"`
VCSContext bool `json:"vcs_context"`
WorkspaceContext bool `json:"workspace_context"`
ProjectSwitchEvents bool `json:"project_switch_events"`
StructuredEvents bool `json:"structured_events"`
}
Capabilities reports only data an adapter can actually provide.
type Descriptor ¶
type Descriptor struct {
ID string `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
Capabilities Capabilities `json:"capabilities"`
}
type GenericJSONL ¶
type GenericJSONL struct{}
GenericJSONL imports caller-supplied normalized records. It does not infer metrics.
func (GenericJSONL) Descriptor ¶
func (GenericJSONL) Descriptor() Descriptor
func (GenericJSONL) ExtractProjectSignals ¶
func (GenericJSONL) ExtractProjectSignals(RawRecord) ProjectSignals
func (GenericJSONL) HealthCheck ¶
func (GenericJSONL) HealthCheck(context.Context) error
func (GenericJSONL) Install ¶
func (GenericJSONL) Install(_ context.Context, _ InstallOptions) (InstallResult, error)
func (GenericJSONL) Uninstall ¶
func (GenericJSONL) Uninstall(_ context.Context, _ InstallOptions) (InstallResult, error)
type InstallOptions ¶
type InstallOptions struct {
DryRun bool
}
type InstallResult ¶
type ProjectSignals ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
Click to show internal directories.
Click to hide internal directories.