//! MenteDB Server: REST API, gRPC, WebSocket, and auth layer.
//!
//! This crate implements the network facing server for MenteDB:
//!
//! - [`auth`]: JWT token creation, validation, and middleware
//! - [`extraction_queue`]: Background extraction queue with bounded concurrency
//! - [`handlers`]: Axum request handlers for memory CRUD and search
//! - [`routes`]: Router construction with middleware stack
//! - [`state`]: Shared application state (database handle, config)
//! - [`websocket`]: Real time memory event streaming
//! - [`grpc`]: Protocol Buffers based memory and cognition services
//! - [`rate_limit`]: Token bucket rate limiter
//! - [`error`]: Unified API error type with HTTP status mapping
/// JWT authentication and authorization.
/// Unified API error type.
/// Background extraction queue with bounded concurrency.
/// gRPC service implementations for memory and cognition.
/// HTTP request handlers for the REST API.
/// Token bucket rate limiting middleware.
/// Axum router construction.
/// Shared application state.
/// WebSocket handler for real time event streaming.