1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! The JSON-RPC methods the daemon serves on its Unix socket (#6288).
//!
//! Why: `daemon::socket` owns the transport — bind, peer check, framing, accept
//! loop — and nothing about which methods exist. This module is the other half,
//! split by route family so the slices that move the remaining ~35k SLOC of
//! HTTP surface across can each add one file rather than editing one.
//!
//! What: a module list. Every family registers itself into the router
//! `socket::build_router` assembles.
//!
//! Test: each family's own `*_tests.rs`.
/// Registration for the core request/response families: health, doctor,
/// errors, report-bug, breakers, optimizer, overseer, llm-chat, tmux, and
/// claude-config (#6288 slice 2).
/// The transport-neutral bodies `core`'s methods and `daemon::api`'s HTTP
/// handlers both call, so one route has one implementation.
/// #7968: the bounded-age cache `core_ops::health` serves the catalog-staleness
/// report from, so `/health` never walks the catalog inline per request.
pub
/// Registration for the legacy session registry, hook ingestion, and the polled
/// event feeds (#6288 slice 3). The SSE stream legs stay on HTTP until slice 6.
/// The transport-neutral bodies `sessions_legacy`'s methods and `daemon::api`'s
/// HTTP handlers both call, so one route has one implementation.
/// Registration for the managed-session lifecycle, the SESSCTL control plane,
/// and the L2 proxy (#6288 slice 4).
/// Registration for the record-keeping families: registry-B projects,
/// deliverables/milestones, the L3 manager, the peer bus, pairing, and the
/// delegation query (#6288 slice 5).
/// #6288 step 1: the build-lease decision log, the retired builder-slot routes,
/// and adopt-worktree — the HTTP-only routes the sandboxed `tm` CLI reaches.
/// #6288 step 2a: MCP dispatch, the socket form of `POST /rpc`.
/// #6288 step 2a: the coordinator's context snapshot and chat turn.