Skip to main content

Module analysis

Module analysis 

Source
Expand description

Normalized, cross-provider analysis result types.

These structs are the analyzer’s output shape: every provider parser in src/session/ produces a CodeAnalysis regardless of the source assistant, and the analysis / usage roll-up layers consume them. The serde attributes here also define the JSON layout of the golden fixtures, vct analysis FILE, and each element of the batch vct analysis --json array.

Structs§

AggregatedAnalysisRow
Single row of aggregated file-operation metrics for one model.
CodeAnalysis
Top-level analysis result: environment metadata plus one record per session.
CodeAnalysisApplyDiffDetail
A single file-edit operation, recording the before/after strings.
CodeAnalysisDetailBase
Fields shared by every per-operation detail record.
CodeAnalysisReadDetail
A single file-read operation.
CodeAnalysisRecord
Aggregated metrics and per-operation details for a single coding session.
CodeAnalysisRunCommandDetail
A single shell-command execution.
CodeAnalysisToolCalls
Per-session counters for each tool the analyzer tracks.
CodeAnalysisWriteDetail
A single file-write operation, including the full written content.

Enums§

ExtensionType
The AI coding assistant a session came from.