Skip to main content

ai_crew_sync/
lib.rs

1//! Shared coordination bus for a team of AI coding agents (Claude Code, Codex, Cursor — any MCP client).
2//!
3//! The crate is split so integration tests can drive the real HTTP surface:
4//!
5//! - [`store`] holds all business logic and every SQL statement,
6//! - [`tools`] is a thin MCP layer over it,
7//! - [`serve`] wires the transport, authentication and axum together,
8//! - [`admin`] is the operator CLI (teams, agents, tokens),
9//! - [`admin_api`] is the remote administration surface at `/admin/*`,
10//! - [`admin_cli`] drives it from the operator's machine (`admin …`),
11//! - [`context`] resolves which bus, token and project a client should use,
12//! - [`proxy`] is the per-conversation stdio MCP server (`mcp proxy`),
13//! - [`hook`] is what lifecycle hooks run (`context hook`).
14
15// Row tuples for `sqlx::query_as` are spelled out next to the SELECT that
16// produces them; naming each one would only add indirection.
17#![allow(clippy::type_complexity)]
18
19pub mod admin;
20pub mod admin_api;
21pub mod admin_cli;
22pub mod auth;
23pub mod client;
24pub mod context;
25pub mod dashboard;
26pub mod error;
27pub mod events;
28pub mod hook;
29pub mod model;
30pub mod proxy;
31pub mod ratelimit;
32pub mod recipes;
33pub mod serve;
34pub mod spool;
35pub mod store;
36pub mod tools;
37pub mod webhooks;
38
39/// Embedded schema migrations, applied by `migrate` and on startup.
40pub static MIGRATOR: sqlx::migrate::Migrator = sqlx::migrate!("./migrations");