MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / SessionFiles

Struct SessionFiles

internal/memory/sessionfiles.go:24–30  ·  view source on GitHub ↗

SessionFiles is the default Store: one markdown file per session under /sessions/, with /index.json as a fast-lookup layer over them. Both files are human-readable and git-friendly; the index lets Recall filter without opening every session file.

Source from the content-addressed store, hash-verified

22// them. Both files are human-readable and git-friendly; the index lets
23// Recall filter without opening every session file.
24type SessionFiles struct {
25 root string
26 mu sync.Mutex
27 index []SessionRecord
28 draft []Entry // in-memory entries gathered this session, flushed at Close
29 sessionStart time.Time
30}
31
32// SessionRecord is the metadata stored in index.json — one entry per
33// session file. Path is relative to the store's root directory.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected