// Package knowledge provides pure types for the agent knowledge base.
package knowledge

import "time"

// Document represents a knowledge document.
type Document struct {
	Slug      string    // filename without extension, e.g. "go-patterns"
	Title     string    // first H1 line from markdown, or humanized slug
	Content   string    // full file content
	UpdatedAt time.Time // file mtime
}

// SearchResult is a document matched by a search query.
type SearchResult struct {
	Slug    string
	Title   string
	Snippet string  // relevant fragment with match highlights
	Rank    float64 // FTS5 relevance score
}
