Documentation
¶
Overview ¶
Package meta stores cct's own per-session annotations — a friendly name and a set of tags — keyed by the session's thread id. Coding agents give you no way to organize a growing pile of sessions; this is that organizational layer.
The annotations live in a single JSON file (meta.json) under cct's config dir. cct NEVER writes them into the agent's session files or its index: this sidecar is purely cct's, so tagging a session can never corrupt or slow down the agent.
Index ¶
- Constants
- func FilePath(dir string) string
- func NormalizeTag(tag string) string
- type Entry
- type Store
- func (s *Store) AddTag(id, tag string) bool
- func (s *Store) AllTags() []string
- func (s *Store) Get(id string) Entry
- func (s *Store) HasTag(id, tag string) bool
- func (s *Store) IDsWithTag(tag string) []string
- func (s *Store) RemoveTag(id, tag string) bool
- func (s *Store) Save(dir string) error
- func (s *Store) SetName(id, name string)
Constants ¶
const FileName = "meta.json"
FileName is the sidecar file's name within the config dir.
Variables ¶
This section is empty.
Functions ¶
func NormalizeTag ¶
NormalizeTag lowercases and trims a tag and collapses internal whitespace to a single dash, so "In Progress" and "in-progress" are the same tag.
Types ¶
type Store ¶
Store is the full set of annotations, keyed by thread id.
func (*Store) IDsWithTag ¶
IDsWithTag returns the thread ids carrying the given tag, sorted.