Versions in this module Expand all Collapse all v0 v0.0.3 Mar 26, 2026 v0.0.1 Mar 24, 2026 Changes in this version + const DefaultMaxBytes + const DefaultMaxLines + func AllowedNoteExtensions() []string + func ClassifySource(path string) string + func FormatSize(bytes int) string + func IsAllowedTextNotePath(relPath string) (ok bool, ext string, reason string) + func IsMemoryPath(relPath string) bool + func NormalizePath(raw string) (string, error) + func NoteMaxBytesDefault() int + type ApplyPatchResult struct + Summary ApplyPatchSummary + Text string + func ApplyPatch(ctx context.Context, store *Store, input string) (*ApplyPatchResult, error) + type ApplyPatchSummary struct + Added []string + Deleted []string + Modified []string + type FileEntry struct + Content string + Hash string + Path string + Source string + UpdatedAt int64 + type Store struct + func NewStore(db *dbutil.Database, bridgeID, loginID, agentID string) *Store + func (s *Store) Delete(ctx context.Context, relPath string) error + func (s *Store) List(ctx context.Context) ([]FileEntry, error) + func (s *Store) Read(ctx context.Context, relPath string) (*FileEntry, bool, error) + func (s *Store) Write(ctx context.Context, relPath, content string) (*FileEntry, error) + func (s *Store) WriteIfMissing(ctx context.Context, relPath, content string) (bool, error) + type Truncation struct + Content string + FirstLineExceedsLimit bool + MaxBytes int + MaxLines int + OutputBytes int + OutputLines int + TotalBytes int + TotalLines int + Truncated bool + TruncatedBy string + func TruncateHead(content string, maxLines, maxBytes int) Truncation