Skip to content
2 changes: 1 addition & 1 deletion docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Already-extracted subsystem modules include `diagnose.rs`, `examine.rs`, `model_

### `crates/rocm-dash-core`, `rocm-dash-collectors`, `rocm-dash-daemon`, `rocm-dash-tui` — dashboard/telemetry

`rocm-dash-tui`'s `agent/mod.rs`/`agent/snapshot.rs`/`agent/tools.rs`/`agent/clients.rs` and `app/mod.rs`/`app/types.rs`/`app/event_loop.rs`/`app/scrollbar.rs`/`app/actions.rs`/`app/chat.rs`/`app/slash.rs`/`app/summary.rs` are every file this phase's dashboard-TUI split touches. The old agent.rs was split into `agent/mod.rs` (the `AgentClient` seam, `AgentError`, `StateSnapshot`, `InferenceParams`, `REQUEST_TIMEOUT`), `agent/snapshot.rs` (pure JSON telemetry helpers with no `rig` dependency), `agent/tools.rs` (the `rig::tool::Tool` "Skill" wrappers and ROCm read/mutating tool dispatch), and `agent/clients.rs` (the `RigAgentClient`/`ChatGptAgentClient`/`AnthropicAgentClient`/`MockAgentClient` backends) — a mechanical relocation, since the shared seam types stay in `agent/mod.rs` and are reached from the split-out files via `super::`. `app/mod.rs` is modularized (ROCMAI-84, Phase 4 of EAI-7768's sequencing) into an app/ directory following full domain extraction: `app/types.rs` (shared type/enum defs — `Focus`, `ResolvedArgs`, connection/tab/chat/replay state, `Modal`, `UpdateStatus`, and the slash/plan/approval payload types; no `AppState` access), `app/event_loop.rs` (terminal lifecycle, signal handling, and the tick loop — `run`, `event_loop`, the termination-signal watcher, and the startup-focus / Updates-tile tick helpers), `app/scrollbar.rs` (mouse/scroll hit-testing: resolving a raw `MouseEvent` against recorded scrollbar tracks, the tab bar, and footer-legend chips into a `KeyAction`), `app/actions.rs` (`KeyAction` dispatch: translating a key press or resolved mouse hit into a `KeyAction` and applying it to reducer state). `app/mod.rs` keeps only `AppState`, its `apply_event`/`apply_action`-adjacent reducer impl, and the handful of items that stay with it (`ProviderSwitch`, `HISTORY_CAP`, `BENCH_CAP`) — the modularization effort's "reducer's reason to exist." `crate::app::*` paths for the public surface moved out are unchanged via re-exports from `app/mod.rs` (see the re-export block's comment for what counts as "public surface"). `app/chat.rs`, `app/slash.rs`, and `app/summary.rs` were previously extracted from `app/mod.rs` following the same mechanical-relocation convention this phase's agent.rs split mirrors. `crates/rocm-dash-tui/src/ui/approval.rs` is the shared component for approval-state prompts — reuse it rather than hand-rolling new approval UI.
`rocm-dash-tui`'s `agent/mod.rs` keeps the `AgentClient` seam (`AgentError`, `StateSnapshot`, `InferenceParams`, `REQUEST_TIMEOUT`) that the old agent.rs was split into, alongside `agent/snapshot.rs` (pure JSON telemetry helpers with no `rig` dependency), `agent/tools.rs` (the `rig::tool::Tool` "Skill" wrappers and ROCm read/mutating tool dispatch), and `agent/clients.rs` (the `RigAgentClient`/`ChatGptAgentClient`/`AnthropicAgentClient`/`MockAgentClient` backends) — a mechanical relocation, since the shared seam types stay in `agent/mod.rs` and are reached from the split-out files via `super::`. `rocm-dash-tui`'s `app/mod.rs` is modularized (ROCMAI-84, Phase 4 of EAI-7768's sequencing) into an app/ directory following full domain extraction into `app/types.rs` (shared type/enum defs — `Focus`, `ResolvedArgs`, connection/tab/chat/replay state, `Modal`, `UpdateStatus`, and the slash/plan/approval payload types; no `AppState` access), `app/event_loop.rs` (terminal lifecycle, signal handling, and the tick loop — `run`, `event_loop`, the termination-signal watcher, and the startup-focus / Updates-tile tick helpers), `app/scrollbar.rs` (mouse/scroll hit-testing: resolving a raw `MouseEvent` against recorded scrollbar tracks, the tab bar, and footer-legend chips into a `KeyAction`), and `app/actions.rs` (`KeyAction` dispatch: translating a key press or resolved mouse hit into a `KeyAction` and applying it to reducer state). `app/mod.rs` keeps only `AppState`, its `apply_event`/`apply_action`-adjacent reducer impl, and the handful of items that stay with it (`ProviderSwitch`, `HISTORY_CAP`, `BENCH_CAP`) — the modularization effort's "reducer's reason to exist." `crate::app::*` paths for the public surface moved out are unchanged via re-exports from `app/mod.rs` (see the re-export block's comment for what counts as "public surface"). `rocm-dash-tui`'s `app/chat.rs`, `app/slash.rs`, and `app/summary.rs` were previously extracted from `app/mod.rs` following the same mechanical-relocation convention this phase's agent.rs split mirrors. `crates/rocm-dash-tui/src/ui/approval.rs` is the shared component for approval-state prompts — reuse it rather than hand-rolling new approval UI.

### `crates/rocm-engine-protocol` — engine IPC protocol

Expand Down
Loading
Loading