Skip to main content

tea_coding/
lib.rs

1#![forbid(unsafe_code)]
2#![deny(missing_docs)]
3
4//! Mode-neutral product assembly for the reference Coding CLI.
5//!
6//! This crate owns coding-specific configuration, project trust, declarative
7//! resources, profile assembly, and session-service behavior. It never depends
8//! on a terminal renderer or command-line parser.
9
10mod builder;
11pub mod config;
12mod credentials;
13mod error;
14mod mcp;
15pub mod mcp_config;
16mod mcp_policy;
17mod paths;
18mod profile;
19pub mod resources;
20mod service;
21mod trust;
22
23pub use builder::CodingAgentBuilder;
24pub use credentials::CodingCredentialResolver;
25pub use error::{CodingError, CodingErrorCode};
26pub use mcp::{McpCatalogEntry, McpServiceSnapshot};
27pub use mcp_config::McpEnvironmentResolver;
28pub use paths::AppPaths;
29pub use service::{CodingAgentService, CommandAcceptance};
30pub use trust::{
31    InteractionMode, PersistedTrustDecision, ProjectAccess, ProjectTrustStore, TrustRequest,
32};
33
34/// Returns the package version embedded at compile time.
35#[must_use]
36pub const fn package_version() -> &'static str {
37    env!("CARGO_PKG_VERSION")
38}