Skip to main content

llm_wiki/
lib.rs

1//! Git-backed wiki engine. Full-text search, typed pages, concept graph,
2//! MCP and ACP transports. The CLI is the primary interface; this crate also
3//! exposes the engine internals for embedding or testing.
4
5/// ACP (Agent Client Protocol) transport and session handling.
6pub mod acp;
7/// CLI argument structs and subcommand enums.
8pub mod cli;
9/// Global and per-wiki configuration types and loaders.
10pub mod config;
11/// Embedded default JSON schemas and body templates.
12pub mod default_schemas;
13/// Central wiki engine — mounts spaces and manages indexes.
14pub mod engine;
15/// Frontmatter parsing, scaffolding, and serialization helpers.
16pub mod frontmatter;
17/// Git commit, history, and change-detection helpers.
18pub mod git;
19/// Concept graph construction, community detection, and renderers.
20pub mod graph;
21/// Tantivy index lifecycle manager for a single wiki space.
22pub mod index_manager;
23/// Tantivy schema builder and field classification.
24pub mod index_schema;
25/// File ingestion, validation, and optional redaction.
26pub mod ingest;
27/// Wikilink and cross-wiki link extraction and classification.
28pub mod links;
29/// Markdown page read/write, asset, and scaffolding helpers.
30pub mod markdown;
31/// MCP server and tool handlers.
32pub mod mcp;
33/// High-level operations called by CLI and server handlers.
34pub mod ops;
35/// Full-text BM25 search and paginated list operations.
36pub mod search;
37/// HTTP and stdio server entry points.
38pub mod server;
39/// Slug validation, resolution, and URI parsing.
40pub mod slug;
41/// Builds SpaceTypeRegistry and IndexSchema from schema files.
42pub mod space_builder;
43/// Wiki space creation, registration, and management.
44pub mod spaces;
45/// Per-wiki type registry — schema compilation and validation.
46pub mod type_registry;
47/// Filesystem watcher for auto-ingest on file save.
48pub mod watch;