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
//! Core engine module for `DeepSeek` CLI.
//!
//! This module provides the event-driven architecture that separates
//! the UI from the AI interaction logic:
//!
//! - `engine`: The main engine that processes operations
//! - `events`: Events emitted by the engine to the UI
//! - `ops`: Operations submitted by the UI to the engine
//! - `session`: Session state management
//! - `turn`: Turn context and tracking
// Engine code runs inside the TUI alt-screen — see `runtime_log` for why
// raw stdio prints must not appear here. Use `tracing::*` instead.
// `crates/core` now owns the engine (issue #5261). The TUI's `engine`
// consumes the core boundary directly so headless and TUI share one
// `Op`-in / `EventMsg`-out API, one `ThreadId`/`SessionId` type, and one
// `Journal` shape. New code should import from `codewhale_core`.
pub use allowlist_is_native_file_and_shell_only;
// The first production consumer of the staged runtime contract is the
// provider-neutral model boundary. Keep the remaining contract files staged
// until their own consumers land instead of compiling dead scaffolding.
// The rest of `runtime_contract/` stays on disk as staged Core-runtime
// scaffolding and remains deliberately uncompiled until it has production
// consumers (TUI-DOG-017).
// Moved to `codewhale_core::tool_parser` (zero crate-internal dependencies);
// re-exported so `crate::core::tool_parser` keeps working.
pub use tool_parser;
// Re-exports