| 1 | //! Core engine module for `DeepSeek` CLI. |
| 2 | //! |
| 3 | //! This module provides the event-driven architecture that separates |
| 4 | //! the UI from the AI interaction logic: |
| 5 | //! |
| 6 | //! - `engine`: The main engine that processes operations |
| 7 | //! - `events`: Events emitted by the engine to the UI |
| 8 | //! - `ops`: Operations submitted by the UI to the engine |
| 9 | //! - `session`: Session state management |
| 10 | //! - `turn`: Turn context and tracking |
| 11 | |
| 12 | // Engine code runs inside the TUI alt-screen — see `runtime_log` for why |
| 13 | // raw stdio prints must not appear here. Use `tracing::*` instead. |
| 14 | #![deny(clippy::print_stdout)] |
| 15 | #![deny(clippy::print_stderr)] |
| 16 | |
| 17 | pub mod authority; |
| 18 | pub mod engine; |
| 19 | pub mod events; |
| 20 | // The first production consumer of the staged runtime contract is the |
| 21 | // provider-neutral model boundary. Keep the remaining contract files staged |
| 22 | // until their own consumers land instead of compiling dead scaffolding. |
| 23 | #[path = "runtime_contract/model.rs"] |
| 24 | pub mod model_client; |
| 25 | pub mod ops; |
| 26 | #[path = "runtime_contract/termination.rs"] |
| 27 | pub mod termination; |
| 28 | // The rest of `runtime_contract/` stays on disk as staged Core-runtime |
| 29 | // scaffolding and remains deliberately uncompiled until it has production |
| 30 | // consumers (TUI-DOG-017). |
| 31 | pub mod session; |
| 32 | pub mod tool_parser; |
| 33 | pub mod turn; |
| 34 | |
| 35 | // Re-exports |
| 36 |