Versions in this module Expand all Collapse all v0 v0.5.1 Oct 18, 2026 Changes in this version + var ErrInvalidID = errors.New("invalid note ID: use the hex ID shown by inode list") + func ResolveBackends(cfg *config.Config) (*config.Config, error) + func ShortID(id string) string + type AmbiguousIDError struct + Matches []*model.Note + More bool + Prefix string + func (e *AmbiguousIDError) Error() string type NoteService + func (s *NoteService) Resolve(ctx context.Context, ref string) (*model.Note, error) v0.5.0 Oct 17, 2026 Changes in this version + func Decrypt(key, data, noteID []byte) ([]byte, error) + func Encrypt(key, plaintext, noteID []byte) ([]byte, error) + func MaskSensitive(notes []*model.Note) []*model.Note + type AddOptions struct + DefaultSensitive bool + type ClassifyOptions struct + Category string + IsSensitive *bool + Tags []string + type Container struct + DB db.Adapter + Notes *NoteService + Search *SearchService + func NewContainer(cfg *config.Config) (*Container, error) + type KeyManager struct + func NewKeyManager(configDir string) (*KeyManager, error) + func (km *KeyManager) DeriveKey() ([]byte, error) + type NoteService struct + func NewNoteService(dbAdapter db.Adapter, embAdapter embedding.Adapter, tagger *TaggerService, ...) *NoteService + func (s *NoteService) Add(ctx context.Context, content string, opts AddOptions) (*model.Note, error) + func (s *NoteService) Delete(ctx context.Context, id string) error + func (s *NoteService) Get(ctx context.Context, id string) (*model.Note, error) + func (s *NoteService) List(ctx context.Context, filters db.Filters, limit, offset int) ([]*model.Note, error) + func (s *NoteService) ScrubSensitiveSummaries(ctx context.Context) (int, error) + type SearchOptions struct + Category string + IsSensitive *bool + MaxDistance float32 + OnStep func(step string) + Tags []string + TopK int + type SearchResult struct + Answer string + Notes []*model.Note + type SearchService struct + func NewSearchService(dbAdapter db.Adapter, embAdapter embedding.Adapter, llmAdapter llm.Adapter, ...) *SearchService + func (s *SearchService) Retrieve(ctx context.Context, query string, opts SearchOptions) ([]*model.Note, error) + func (s *SearchService) Search(ctx context.Context, query string, opts SearchOptions) (*SearchResult, error) + type TaggerService struct + func NewTaggerService(llmAdapter llm.Adapter) *TaggerService + func (t *TaggerService) Classify(ctx context.Context, content string, opts ClassifyOptions) (llm.ClassifyResult, error)