Documentation
¶
Overview ¶
Package session writes session transcripts to disk on exit.
Every run that has a project .agents/ directory persists a JSON transcript to .agents/sessions/<RFC3339-timestamp>.json containing the chat history and the final usage totals. The schema is versioned so future readers can evolve safely.
Index ¶
Constants ¶
View Source
const SchemaVersion = 1
SchemaVersion is the on-disk schema version for transcripts.
View Source
const SessionsDirName = "sessions"
SessionsDirName is the subdirectory under .agents/ where transcripts land. Created on demand.
Variables ¶
View Source
var ErrNoProject = errors.New("session: no project directory configured")
ErrNoProject is a sentinel callers can check via errors.Is when they want to distinguish "no project" from a real failure.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.