transcript

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSession  = errors.New("waiting for the session…")
	ErrUnreadable = errors.New("transcript not readable (format may have changed)")
	ErrNoCalls    = errors.New("the harness's record does not show which tool call is running")
)

Functions

func Answers added in v0.15.0

func Answers(entries []Entry, sent []Sent) map[int64]string

func OpencodeLastUser added in v0.13.0

func OpencodeLastUser(ctx context.Context, bin, dir, session string) (string, bool, error)

func OpencodeSessions added in v0.13.0

func OpencodeSessions(ctx context.Context, bin, dir string, now time.Time, stale time.Duration) (map[string]ModelLabel, map[string]bool, map[string]time.Time, error)

func OpencodeSubmitted added in v0.13.0

func OpencodeSubmitted(ctx context.Context, bin, dir, session string) (bool, error)

func Pair added in v0.15.0

func Pair(entries []Entry, sent []Sent) map[int64]int

Types

type Call added in v0.15.0

type Call struct {
	ID, Tool, Command string
}

type Entry

type Entry struct {
	Role   string
	Text   string
	At     string
	Queued bool
}

type ModelLabel added in v0.13.0

type ModelLabel struct{ Model, Effort string }

type Paths

type Paths struct {
	Claude       string
	Codex        string
	Opencode     string
	OpencodeData string
	Agy          string
	Copilot      string
	Omp          string
}

type Reader

type Reader struct {
	Paths Paths
	// contains filtered or unexported fields
}

func (*Reader) Forget added in v0.13.0

func (r *Reader) Forget(harness, id string)

func (*Reader) Read

func (r *Reader) Read(ctx context.Context, harness, id, dir string) ([]Entry, error)

func (*Reader) ReadEnded added in v0.14.0

func (r *Reader) ReadEnded(ctx context.Context, harness, id, dir string) ([]Entry, error)

func (*Reader) Refresh added in v0.13.0

func (r *Reader) Refresh(ctx context.Context, harness, id, dir string) error

func (*Reader) Running added in v0.15.0

func (r *Reader) Running(ctx context.Context, harness, id, dir string) ([]Call, error)

func (*Reader) Status

func (r *Reader) Status(harness, id string) Status

type Sent added in v0.15.0

type Sent struct {
	ID        int64
	Body      string
	CreatedAt string
}

type Status

type Status struct {
	Context, Window int64
	Compactions     int
	Selected        string
	Model, Effort   string
	ModelAt         string
}

Jump to

Keyboard shortcuts

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