replay

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(workDir string, entry Entry) error

Append writes entry as a JSON line to .cloop/replay.jsonl (append-only). Errors are non-fatal — the caller may ignore them.

Types

type Entry

type Entry struct {
	Ts        time.Time `json:"ts"`
	TaskID    int       `json:"task_id"`
	TaskTitle string    `json:"task_title"`
	Step      int       `json:"step"`
	Content   string    `json:"content"`
}

Entry is one line in the replay log.

func Load

func Load(workDir string, taskID int) ([]Entry, error)

Load reads all entries from the replay log. If taskID > 0 only entries matching that task_id are returned.

Jump to

Keyboard shortcuts

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