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
10// Row tuples for `sqlx::query_as` are spelled out next to the SELECT that
11// produces them; naming each one would only add indirection.
12#![allow(clippy::type_complexity)]
13
14pub mod admin;
15pub mod auth;
16pub mod client;
17pub mod dashboard;
18pub mod error;
19pub mod events;
20pub mod model;
21pub mod serve;
22pub mod store;
23pub mod tools;
24pub mod webhooks;
25
26/// Embedded schema migrations, applied by `migrate` and on startup.
27pub static MIGRATOR: sqlx::migrate::Migrator = sqlx::migrate!("./migrations");