Versions in this module Expand all Collapse all v0 v0.1.1 Oct 27, 2026 v0.1.0 Oct 27, 2026 Changes in this version + const DailyDir + const DreamsFile + const MemoryFile + const TasksDir + func ExtractDecisions(doc string, markers []string) []string + type Chunk struct + Body string + EndLine int + Ord int + StartLine int + Tokens int + func ChunkMarkdown(content string, sizeTokens, overlapTokens int) []Chunk + type Fact struct + Source string + Text string + type FileRef struct + Path string + type Hit struct + BM25 float64 + Body string + Cosine float64 + EndLine int + File string + Score float64 + StartLine int + func (h Hit) String() string + type Layout struct + Root string + func NewLayout(memDir string) (Layout, error) + func (l Layout) AppendDaily(now time.Time, stage, body string) error + func (l Layout) DailyPath(date time.Time) string + func (l Layout) DreamsPath() string + func (l Layout) MemoryFiles() []string + func (l Layout) MemoryPath() string + func (l Layout) PromoteFacts(now time.Time, taskID string, facts []Fact) (int, error) + func (l Layout) ReadMemory() string + func (l Layout) TaskPath(taskID string) string + func (l Layout) WriteTaskSummary(taskID, title, body string) error + type Memory struct + Layout Layout + Store *Store + func OpenMemory(ctx context.Context, memDir, dbPath string, opts Options) (*Memory, error) + func (m *Memory) Close() error + func (m *Memory) Recall(ctx context.Context, query string, opts SearchOptions, pinnedCap int) (Recalled, error) + func (m *Memory) Reindex(ctx context.Context) error + type Options struct + ChunkTokens int + Embedder embedder.Embedder + OverlapTokens int + type Recalled struct + Hits []Hit + Pinned string + func (r Recalled) PromptFragment() string + type SearchOptions struct + HybridAlpha float64 + K int + MaxChars int + RerankCandidates int + type Stats struct + Chunks int + Embeddings int + Files int + type Store struct + func Open(dbPath, memDir string, opts Options) (*Store, error) + func (s *Store) AllFiles(ctx context.Context) ([]string, error) + func (s *Store) Close() error + func (s *Store) IndexFile(ctx context.Context, relPath string) (bool, error) + func (s *Store) Search(ctx context.Context, query string, opts SearchOptions) ([]Hit, error) + func (s *Store) Stats(ctx context.Context) (Stats, error)