routa_core/lib.rs
1//! Routa Core — Transport-agnostic domain logic for the Routa.js platform.
2//!
3//! This crate contains the core business logic, data models, stores, and
4//! protocol integrations. It has **no HTTP framework dependency** by default,
5//! making it suitable for use in:
6//!
7//! - HTTP servers (via `routa-server`)
8//! - Tauri desktop apps (direct IPC)
9//! - CLI tools
10//! - JS bindgen (via napi-rs or wasm-bindgen)
11//!
12//! # Feature Flags
13//!
14//! - `axum` — Enables `IntoResponse` impl on `ServerError` for use in axum handlers.
15
16pub mod acp;
17pub mod db;
18pub mod error;
19pub mod events;
20pub mod git;
21pub mod kanban;
22pub mod mcp;
23pub mod models;
24pub mod orchestration;
25pub mod rpc;
26pub mod sandbox;
27pub mod shell_env;
28pub mod skills;
29pub mod state;
30pub mod storage;
31pub mod store;
32pub mod tools;
33pub mod trace;
34pub mod workflow;
35
36// Convenience re-exports
37pub use db::Database;
38pub use error::ServerError;
39pub use state::{AppState, AppStateInner, DockerState};