返回 CodeWhale
mod.rs
根目录 / crates / engine / src / core / mod.rs
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 // Phase A1 of the core/protocol extraction: exhaustive projections of the
27 // engine's `Op` / `Event` onto `codewhale_protocol::{op::Op, EventMsg}`.
28 // A new engine variant without a protocol twin fails to compile there.
29 pub mod protocol_parity;
30 #[cfg(test)]
31 mod queued_approval_tests;
32 pub mod session;
33 #[path = "runtime_contract/termination.rs"]
34 pub mod termination;
35 pub mod turn;
36
37 // Re-exports
38
38 lines RUST