2026-04-24 13:40:47 +00:00
|
|
|
//! Service layer — domain logic extracted from HTTP handlers.
|
|
|
|
|
//!
|
|
|
|
|
//! Each sub-module follows the conventions documented in
|
|
|
|
|
//! `docs/architecture/service-modules.md`:
|
|
|
|
|
//! - `mod.rs` orchestrates and owns the typed `Error` type
|
|
|
|
|
//! - `io.rs` is the only file that performs side effects
|
|
|
|
|
//! - Topic-named pure files contain branching logic with no I/O
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Agent management — start, stop, inspect, and list agents.
|
2026-04-24 13:40:47 +00:00
|
|
|
pub mod agents;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Anthropic API key storage and model listing.
|
2026-04-24 15:50:26 +00:00
|
|
|
pub mod anthropic;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Bot command dispatch — parses and executes slash commands.
|
2026-04-24 15:23:54 +00:00
|
|
|
pub mod bot_command;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Shared pure helpers used across service modules.
|
2026-04-24 21:32:39 +00:00
|
|
|
pub mod common;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Diagnostics — server logs, CRDT dump, and permission management.
|
2026-04-24 21:12:03 +00:00
|
|
|
pub mod diagnostics;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Pipeline event buffer for SSE streaming.
|
2026-04-24 14:03:20 +00:00
|
|
|
pub mod events;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// File I/O — path validation, read, write, and listing.
|
2026-04-24 15:50:26 +00:00
|
|
|
pub mod file_io;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Gateway — multi-project proxy domain logic.
|
2026-04-24 21:12:03 +00:00
|
|
|
pub mod gateway;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Git operations — worktree-scoped git commands.
|
2026-04-24 21:12:03 +00:00
|
|
|
pub mod git_ops;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Merge — rebase agent work onto master and validate.
|
2026-04-24 21:12:03 +00:00
|
|
|
pub mod merge;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Notifications — fan-out pipeline events to chat transports.
|
2026-04-24 18:01:34 +00:00
|
|
|
pub mod notifications;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// OAuth 2.0 PKCE flow for Anthropic authentication.
|
2026-04-24 16:15:10 +00:00
|
|
|
pub mod oauth;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Pipeline status aggregation helpers.
|
2026-04-24 21:12:03 +00:00
|
|
|
pub mod pipeline;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Project open/close/list domain logic.
|
2026-04-24 14:56:54 +00:00
|
|
|
pub mod project;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// QA — request, approve, and reject code reviews.
|
2026-04-24 21:12:03 +00:00
|
|
|
pub mod qa;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Project settings read/write and validation.
|
2026-04-24 17:07:44 +00:00
|
|
|
pub mod settings;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Shell command safety, sandboxing, and output helpers.
|
2026-04-24 21:12:03 +00:00
|
|
|
pub mod shell;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Status broadcaster — unified event fan-out to all consumers.
|
2026-04-26 02:23:23 +00:00
|
|
|
pub mod status;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Story CRUD — create, update, move, and manage work items.
|
2026-04-24 21:12:03 +00:00
|
|
|
pub mod story;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Timer — deferred agent start via one-shot timers.
|
2026-04-24 17:39:42 +00:00
|
|
|
pub mod timer;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// Wizard — multi-step project setup domain logic.
|
2026-04-24 16:41:58 +00:00
|
|
|
pub mod wizard;
|
2026-04-29 10:41:32 +00:00
|
|
|
/// WebSocket — real-time pipeline updates and permission prompts.
|
2026-04-24 14:32:36 +00:00
|
|
|
pub mod ws;
|