Expand description
Core vault operations — pure business logic.
No framework dependencies (no Tauri, no Qt).
Takes &AppState, returns Result<T, LoreError>.
Functions§
- create_
page - Create a new page. Creates the .md file on disk.
- delete_
page - Delete a page. Removes file from disk, DB entry, graph node.
- find_
unlinked_ mentions - Find pages that mention this page’s title but don’t link to it.
- get_
backlinks_ list - Get backlinks for a page.
- get_
graph_ data - Get graph data for visualization.
- get_
page_ list - Get all pages for the sidebar page tree.
- load_
page - Load a page by slug. Returns content + backlinks.
- open_
vault - Open a folder as a Lore vault. Creates .lore/ directory, scans all .md files, populates DB and graph. Returns vault info on success.
- rename_
page - Rename a page. Updates slug, title, file on disk, all incoming links in DB.
- save_
page - Save page content. Re-parses links, updates DB, graph, and FTS.
- search_
titles - Quick title search for the quick switcher.
- search_
vault - Full-text search across all pages.