huskies: merge 782

This commit is contained in:
dave
2026-04-28 11:02:02 +00:00
parent 01169332b3
commit 05d057a40a
6 changed files with 1267 additions and 1224 deletions
+24
View File
@@ -0,0 +1,24 @@
//! Gateway HTTP handlers — thin transport shells for the gateway service.
//!
//! Each handler calls `service::gateway::*` for business logic and formats
//! the response. No inline business logic, no `reqwest`, no filesystem access.
//!
//! Submodules:
//! - [`jsonrpc`] — JSON-RPC 2.0 types and helpers
//! - [`mcp`] — MCP POST/GET handlers and gateway tool dispatch
//! - [`websocket`] — WebSocket handlers (CRDT-sync, event push)
//! - [`rest`] — REST API handlers (agents, projects, bot config, pipeline)
mod jsonrpc;
mod mcp;
mod rest;
mod websocket;
pub use mcp::{gateway_mcp_get_handler, gateway_mcp_post_handler};
pub use rest::{
gateway_add_project_handler, gateway_all_pipeline_handler, gateway_api_handler,
gateway_assign_agent_handler, gateway_bot_config_get_handler, gateway_bot_config_page_handler,
gateway_bot_config_save_handler, gateway_generate_token_handler, gateway_list_agents_handler,
gateway_mode_handler, gateway_remove_project_handler, gateway_switch_handler,
};
pub use websocket::{gateway_crdt_sync_handler, gateway_event_push_handler};