Files
huskies/server/src/service/mod.rs
T

52 lines
1.9 KiB
Rust
Raw Normal View History

//! 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.
pub mod agents;
2026-04-29 10:41:32 +00:00
/// Anthropic API key storage and model listing.
pub mod anthropic;
2026-04-29 10:41:32 +00:00
/// Bot command dispatch — parses and executes slash commands.
pub mod bot_command;
2026-04-29 10:41:32 +00:00
/// Shared pure helpers used across service modules.
pub mod common;
2026-04-29 10:41:32 +00:00
/// Diagnostics — server logs, CRDT dump, and permission management.
pub mod diagnostics;
2026-04-29 10:41:32 +00:00
/// Pipeline event buffer for SSE streaming.
pub mod events;
2026-04-29 10:41:32 +00:00
/// File I/O — path validation, read, write, and listing.
pub mod file_io;
2026-04-29 10:41:32 +00:00
/// Gateway — multi-project proxy domain logic.
pub mod gateway;
2026-04-29 10:41:32 +00:00
/// Git operations — worktree-scoped git commands.
pub mod git_ops;
2026-04-29 10:41:32 +00:00
/// Merge — rebase agent work onto master and validate.
pub mod merge;
2026-04-29 10:41:32 +00:00
/// Notifications — fan-out pipeline events to chat transports.
pub mod notifications;
2026-04-29 10:41:32 +00:00
/// OAuth 2.0 PKCE flow for Anthropic authentication.
pub mod oauth;
2026-04-29 10:41:32 +00:00
/// Pipeline status aggregation helpers.
pub mod pipeline;
2026-04-29 10:41:32 +00:00
/// Project open/close/list domain logic.
pub mod project;
2026-04-29 10:41:32 +00:00
/// QA — request, approve, and reject code reviews.
pub mod qa;
2026-04-29 10:41:32 +00:00
/// Project settings read/write and validation.
pub mod settings;
2026-04-29 10:41:32 +00:00
/// Shell command safety, sandboxing, and output helpers.
pub mod shell;
2026-04-29 10:41:32 +00:00
/// Status broadcaster — unified event fan-out to all consumers.
pub mod status;
2026-04-29 10:41:32 +00:00
/// Story CRUD — create, update, move, and manage work items.
pub mod story;
2026-04-29 10:41:32 +00:00
/// Timer — deferred agent start via one-shot timers.
pub mod timer;
2026-04-29 10:41:32 +00:00
/// Wizard — multi-step project setup domain logic.
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;