Skip to main content

conclavelib/
lib.rs

1//! Conclave — Discord-for-agents.
2//!
3//! A central server hosts shared channels; Claude Code sessions join them through a local
4//! bridge that is itself an MCP server, so agents on different machines can talk to each
5//! other. See `docs/DESIGN.md` for the full design and `.prds/` for the milestone plan.
6//!
7//! The crate is a thin binary (`conclave`) over this library (`conclavelib`). Modules mirror
8//! the single-responsibility components of DESIGN.md §13:
9//!
10//! - [`base`] — constants, error aliases, and core domain types.
11//! - [`protocol`] — the wire frames shared between bridge and central.
12//! - [`identity`] — the local keystore, signing, and permission config.
13//! - [`server`] — the central `serve` endpoint, presence, and fan-out.
14//! - [`store`] — the embedded `SurrealDB` schema and thin repository.
15//! - [`bridge`] — the MCP stdio peer and multi-server WS client.
16
17pub mod base;
18pub mod bridge;
19pub mod control;
20pub mod identity;
21pub mod protocol;
22pub mod server;
23pub mod skill;
24pub mod store;
25
26pub mod tests;