Skip to main content

zagens_runtime/
lib.rs

1#![cfg_attr(
2    test,
3    allow(
4        clippy::cloned_ref_to_slice_refs,
5        clippy::collapsible_if,
6        clippy::field_reassign_with_default,
7        clippy::items_after_test_module,
8        clippy::needless_borrows_for_generic_args,
9    )
10)]
11
12//! DeepSeek runtime library + HTTP sidecar (`deepseek-runtime`) โ€” D6 Phase B single crate.
13
14mod agent_surface;
15mod audit;
16mod auto_reasoning;
17mod auto_route;
18mod automation_manager;
19pub mod cli;
20mod client;
21pub mod command_safety;
22mod compaction;
23mod config;
24mod context_compiler_shadow;
25mod context_snapshot;
26mod core;
27mod cost_status;
28mod cycle_manager;
29mod error_taxonomy;
30mod execpolicy;
31mod features;
32mod hooks;
33mod hooks_load;
34mod llm_client;
35mod localization;
36mod logging;
37mod long_horizon;
38mod lsp;
39mod mcp_shared;
40mod memory;
41mod models;
42mod office_env;
43mod path_guard;
44mod project_context;
45mod project_doc;
46mod prompts;
47mod python_env;
48pub mod repl;
49mod request_fingerprint;
50mod retry_status;
51pub mod rlm;
52pub mod runtime_api;
53pub mod runtime_serve;
54mod runtime_threads;
55mod sandbox;
56mod schema_migration;
57mod scratchpad;
58mod seam_manager;
59mod settings;
60mod shell_environment;
61pub mod skills;
62mod symbol_index;
63mod task_manager;
64mod task_type;
65#[cfg(test)]
66mod test_support;
67mod tools;
68mod topic_memory;
69mod transcript_isomorphism;
70#[cfg(feature = "tui")]
71pub mod tui;
72mod utils;
73mod working_set;
74mod workspace_trust;
75
76// D16 E1-a โ€” adapters crate (MCP / persist / snapshot); re-export for stable `crate::` paths.
77pub use zagens_runtime_adapters::persist::{
78    ContextReference, SavedSession, SessionContextReference, SessionManager, SessionMetadata,
79    context_reference, session_manager, session_store_sqlite,
80};
81pub use zagens_runtime_adapters::{json_schema_util, mcp, network_policy, persist, snapshot};
82pub use zagens_runtime_orchestrator::pricing;
83// D16 E1-d โ€” stable lib entry for in-proc / test hosts (see RUNTIME_ARCHITECTURE ยง1).
84pub use runtime_serve::{RuntimeApiOptions, run_http_server};