Versions in this module Expand all Collapse all v0 v0.3.16 Sep 13, 2026 v0.3.15 Sep 13, 2026 v0.3.14 Sep 13, 2026 Changes in this version + const DefaultFile + const DefaultMemoryCharLimit + const DefaultRoot + const MemoryToolDescription + const StagedActionAdd + const StagedActionRemove + const StagedActionReplace + func EntryContents(entries []MemoryEntry) []string + func FormatMemoryPolicyStatus(memoryWrite string, fromFile bool) string + func FormatMemoryPromptBody(entries []MemoryEntry) string + func FormatMemoryUsage(used, limit int) string + func JoinUnderRoot(root string, parts ...string) string + func LedgerRel(root string) string + func LegacyStagedContentSummary(content string) string + func LegacyStagedKind(content string) (action, oldText, newContent string) + func LooksLikeSecret(s string) bool + func MemoryFileRel(root, file string) string + func MemoryPolicyRel(root string) string + func NormalizeMemoryToolAction(action string) string + func RenderMemory(entries []MemoryEntry) string + func RenderMemoryDocument(entries []MemoryEntry, docName string) string + func SkillsPolicyRel(root string) string + func StagedDirRel(root string) string + func StagedPendingSummary(e StagedMemory) string + type MemoryAddResult struct + Outcome capmemory.AddOutcome + type MemoryAtCapacityError struct + Adding int + Entries []MemoryEntry + Limit int + Used int + func (e *MemoryAtCapacityError) Error() string + type MemoryEntry = capmemory.MemoryEntry + func DedupeMemoryEntries(entries []MemoryEntry) []MemoryEntry + func MergeMemoryAdd(entries []MemoryEntry, content string) ([]MemoryEntry, capmemory.AddOutcome) + func ParseMemory(raw string) []MemoryEntry + type MemoryLedger struct + Path string + func (l *MemoryLedger) Append(ev MemoryLedgerEvent) error + func (l *MemoryLedger) Rewrite(events []MemoryLedgerEvent) error + type MemoryLedgerEvent struct + Action string + At time.Time + Content string + Match string + Source string + type MemoryPolicyStore struct + Path string + func (s *MemoryPolicyStore) Load() (MemoryWritePolicy, error) + func (s *MemoryPolicyStore) Save(p MemoryWritePolicy) error + type MemoryStore struct + CharLimit int + DocName string + Path string + func NewMemoryStore(path string, charLimit int) *MemoryStore + func (s *MemoryStore) Add(content string) (MemoryAddResult, error) + func (s *MemoryStore) Load() ([]MemoryEntry, error) + func (s *MemoryStore) Remove(oldText string) (string, error) + func (s *MemoryStore) Replace(oldText, content string) (MemoryAddResult, error) + func (s *MemoryStore) Save(entries []MemoryEntry) error + func (s *MemoryStore) TotalChars(entries []MemoryEntry) int + type MemoryToolInput = capmemory.MemoryToolInput + type MemoryToolOutput = capmemory.MemoryToolOutput + type MemoryWritePolicy struct + MemoryWrite string + func (p MemoryWritePolicy) Normalized() MemoryWritePolicy + type StagedMemory struct + Action string + Content string + CreatedAt time.Time + ID string + OldText string + Source string + func NormalizeStagedEntry(e StagedMemory) StagedMemory + type StagedStore struct + Dir string + func (s *StagedStore) Add(entry StagedMemory) error + func (s *StagedStore) Clear() error + func (s *StagedStore) List() ([]StagedMemory, error) + func (s *StagedStore) Remove(id string) (StagedMemory, error)