usage

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultProjectsDir

func DefaultProjectsDir() (string, error)

Types

type Data

type Data struct {
	Events   []Event
	Prompts  []Prompt
	ToolUses []ToolUse
}

func ParseAll

func ParseAll(root string, onProgress ProgressFn) (Data, error)

type Event

type Event struct {
	Timestamp             time.Time
	Model                 string
	SessionID             string
	Cwd                   string
	Version               string
	GitBranch             string
	InputTokens           int
	OutputTokens          int
	CacheCreationTokens   int // total = 5m + 1h
	CacheCreation5mTokens int
	CacheCreation1hTokens int
	CacheReadTokens       int
	ServiceTier           string
}

func (Event) Day

func (e Event) Day() string

func (Event) Project

func (e Event) Project() string

func (Event) TotalInputTokens

func (e Event) TotalInputTokens() int

func (Event) TotalTokens

func (e Event) TotalTokens() int

type ProgressFn

type ProgressFn func(filesDone, filesTotal int)

type Prompt

type Prompt struct {
	Timestamp time.Time
	SessionID string
	Cwd       string
}

func (Prompt) Day

func (p Prompt) Day() string

type ToolKind

type ToolKind int
const (
	ToolBuiltin ToolKind = iota
	ToolSkill
	ToolMCP
	ToolAgent
)

func (ToolKind) String

func (k ToolKind) String() string

type ToolUse

type ToolUse struct {
	Timestamp time.Time
	SessionID string
	Cwd       string
	Kind      ToolKind
	Name      string // raw tool name (e.g. "Bash", "Skill", "mcp__engram__mem_save", "Agent")
	Target    string // resolved target: skill name, mcp tool name, agent subtype; empty for builtin
	MCPServer string // for MCP kind: server prefix (e.g. "plugin_engram_engram")
}

func (ToolUse) Day

func (t ToolUse) Day() string

Jump to

Keyboard shortcuts

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