coverage

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package coverage classifies manifest items and builds coverage reports by joining manifest data with session usage summaries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Analyze

func Analyze(manifest *types.Manifest, sessionFiles []string, lookbackDays int, threshold int) (*types.CoverageReport, error)

Analyze produces a CoverageReport by joining the manifest against usage data extracted from sessionFiles.

Parameters:

  • manifest: the scanned repository manifest
  • sessionFiles: absolute paths to Claude JSONL session files
  • lookbackDays: the lookback window used to locate those files (stored in the report for informational purposes)
  • threshold: activations at or below this value are classified as StatusUnderused rather than StatusActive

func Classify

func Classify(item types.ManifestItem, usage types.UsageSummary, threshold int) types.Status

Classify returns the Status for a single manifest item given its observed usage and the configured underuse threshold.

Classification rules (evaluated in order):

  1. If the item was never activated → StatusDormant
  2. If total activations are at or below threshold → StatusUnderused
  3. Otherwise → StatusActive

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL