Files
nyaterm/scripts
Kang c9b933e814 refactor(desktop): nest session feature modules
Thirteen session modules were declared in `features/mod.rs` through
`#[path = "session/..."]`, so `features/session` was a directory with no
module of its own.

Make it a real module:

- `mod session;` with `features/session/mod.rs` owning the children.
- `session_runtime` becomes a directory module, removing its two
  remaining `#[path]` declarations.
- Prompt and auth exports, plus the trzsz/zmodem session-state types
  used by `app_state`, reach `crate::features` through explicit
  re-exports instead of flattened module declarations.

Nesting immediately surfaced real visibility: four prompt-drain methods
were declared `pub(super)` and were only reachable from the event pump
because the module used to be a flat sibling. They are now
`pub(in crate::features)` on purpose rather than by accident.

`features/session` has zero `#[path]` declarations and is guarded.
Desktop `#[path]` count drops from 287 to 272.
2026-07-26 14:48:36 +08:00
..