source

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client int
const (
	ClientClaude Client = iota
	ClientOpencode
)

func (Client) String

func (c Client) String() string

type Session

type Session struct {
	Client      Client
	ID          string // UUID (Claude) or Opencode session ID
	Title       string
	CWD         string    // Absolute working directory
	CWDDisplay  string    // ~ abbreviated
	ProjectPath string    // Claude only: full path to project dir
	Time        time.Time // Used for sorting (newest first)
	MsgCount    int
}

func LoadClaude

func LoadClaude(pathFilter string, strictMatch bool, verbose bool) ([]Session, error)

LoadClaude returns all Claude Code sessions, optionally filtered by path.

func LoadOpencode

func LoadOpencode(pathFilter string, strictMatch bool, verbose bool) ([]Session, error)

LoadOpencode returns all Opencode sessions, optionally filtered by path. It auto-detects storage format: SQLite takes precedence over JSON.

Jump to

Keyboard shortcuts

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