//! TelaRex Core — shared logic, state management, and all subsystems.
//!
//! This crate is the engine of TelaRex. It provides:
//! - **Buffer management** — document editing, undo/redo, macros, and motions
//! - **Syntax highlighting** — Tree-sitter-based highlighting with themeable stylesheets
//! - **Configuration** — TOML-based settings with schema validation and theme engine
//! - **Networking** — P2P lodge discovery and sync via libp2p (gossipsub, mDNS, Kademlia)
//! - **CRDT** — Automerge-based document synchronization for collaborative editing
//! - **Actor system** — async buffer actor for thread-safe buffer access
//! - **Workspace** — shared workspace (lodge) model with member/join management
//! - **LSP** — Language Server Protocol client for completions and diagnostics
//! - **Database** — SQLite persistence for lodges, sessions, and recent projects
//! - **Errors** — typed error framework with codes, levels, and suggested solutions