kb/lib.rs
1//! Personal knowledge base — typed AST with org-mode as projection, SQLite-backed.
2//!
3//! The crate provides:
4//! - [`parser`] — org-mode text → AST
5//! - [`generator`] — AST → org-mode text
6//! - [`storage`] — `SQLite` persistence with FTS5 search
7//! - [`api`] — HTTP handlers for `kb-server`
8//! - [`mcp`] — Model Context Protocol server over stdio
9//!
10//! The org-mode AST types are re-used from the companion [`tftio_org`] crate;
11//! the parser is kept in-crate (see the crate `README` for the rationale).
12#![cfg_attr(
13 test,
14 allow(
15 clippy::unwrap_used,
16 clippy::expect_used,
17 clippy::panic,
18 clippy::indexing_slicing,
19 clippy::disallowed_methods,
20 reason = "test code uses fail-fast assertions against temp fixtures, mock servers, and sandboxed HOME/XDG env"
21 )
22)]
23
24pub mod api;
25pub mod auth;
26pub mod canonical;
27pub mod cli_main;
28pub mod embedding;
29pub mod error;
30pub mod generator;
31pub mod markdown;
32pub mod mcp;
33pub mod org_meta;
34pub mod parser;
35pub mod prompt;
36pub mod sexp;
37pub mod storage;