types

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigType

type ConfigType string
const (
	ConfigClaudeMD ConfigType = "CLAUDE.md"
	ConfigSkill    ConfigType = "Skill"
	ConfigMCP      ConfigType = "MCP"
	ConfigHook     ConfigType = "Hook"
	ConfigCommand  ConfigType = "Command"
	ConfigPlugin   ConfigType = "Plugin"
)

type CoverageReport

type CoverageReport struct {
	RepoPath         string             `json:"repo_path"`
	LookbackDays     int                `json:"lookback_days"`
	SessionsAnalyzed int                `json:"sessions_analyzed"`
	Results          []CoverageResult   `json:"results"`
	Summary          ReportSummary      `json:"summary"`
	LastSession      *LastSessionReport `json:"last_session,omitempty"`
}

type CoverageResult

type CoverageResult struct {
	Item   ManifestItem `json:"item"`
	Usage  UsageSummary `json:"usage"`
	Status Status       `json:"status"`
}

type LastSessionItem

type LastSessionItem struct {
	Type   ConfigType `json:"type"`
	Name   string     `json:"name"`
	Active bool       `json:"active"`
	Count  int        `json:"count"`
}

type LastSessionReport

type LastSessionReport struct {
	SessionID string            `json:"session_id"`
	Timestamp time.Time         `json:"timestamp"`
	Items     []LastSessionItem `json:"items"`
}

type Manifest

type Manifest struct {
	RepoPath  string         `json:"repo_path"`
	Items     []ManifestItem `json:"items"`
	ScannedAt time.Time      `json:"scanned_at"`
}

type ManifestItem

type ManifestItem struct {
	Type         ConfigType        `json:"type"`
	Name         string            `json:"name"`
	Path         string            `json:"path"`
	AbsPath      string            `json:"abs_path"`
	LastModified time.Time         `json:"last_modified"`
	Metadata     map[string]string `json:"metadata,omitempty"`
}

type ReportSummary

type ReportSummary struct {
	TotalItems int `json:"total_items"`
	Active     int `json:"active"`
	Underused  int `json:"underused"`
	Dormant    int `json:"dormant"`
}

type Status

type Status string
const (
	StatusActive    Status = "Active"
	StatusUnderused Status = "Underused"
	StatusDormant   Status = "Dormant"
)

type UsageEvent

type UsageEvent struct {
	ConfigType ConfigType `json:"config_type"`
	Name       string     `json:"name"`
	SessionID  string     `json:"session_id"`
	Timestamp  time.Time  `json:"timestamp"`
	Cwd        string     `json:"cwd"`
}

type UsageSummary

type UsageSummary struct {
	TotalActivations int        `json:"total_activations"`
	UniqueSessions   int        `json:"unique_sessions"`
	FirstSeen        *time.Time `json:"first_seen,omitempty"`
	LastSeen         *time.Time `json:"last_seen,omitempty"`
}

Jump to

Keyboard shortcuts

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