Documentation
¶
Index ¶
- func ExtractToolUses(turns []models.Turn) []models.ToolUse
- func GetDisplayName(projectPath string) string
- func ParseSession(path string) ([]models.Turn, *models.Session, error)
- func ParseSessionReader(r io.Reader, sourcePath string) ([]models.Turn, *models.Session, error)
- func ParseTurn(data []byte) (*models.Turn, error)
- type HistoryEntry
- type SessionFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractToolUses ¶
ExtractToolUses extracts tool usage information from turns
func GetDisplayName ¶
GetDisplayName creates a short display name from a project path
func ParseSession ¶
ParseSession reads a session JSONL file and returns all turns
func ParseSessionReader ¶
ParseSessionReader parses a session from an io.Reader
Types ¶
type HistoryEntry ¶
type HistoryEntry = models.HistoryEntry
HistoryEntry represents an entry from history.jsonl Re-export from models for convenience
func ParseHistoryReader ¶
func ParseHistoryReader(r io.Reader) ([]HistoryEntry, error)
ParseHistoryReader parses history entries from a reader
func ScanHistory ¶
func ScanHistory(claudeHome string) ([]HistoryEntry, error)
ScanHistory reads the global history.jsonl file
type SessionFile ¶
type SessionFile struct {
Path string // Full path to .jsonl file
SessionID string // UUID extracted from filename
ProjectPath string // Decoded project path
ModTime time.Time // File modification time from directory scan
}
SessionFile represents a discovered session file
func ScanClaudeHome ¶
func ScanClaudeHome(claudeHome string) ([]SessionFile, error)
ScanClaudeHome scans the Claude Code data directory for session files
Click to show internal directories.
Click to hide internal directories.