ModelConnector/crates/claude-connector/src/lib.rs

19 lines
665 B
Rust

//! The Claude backend of the connector kit. [`ClaudeCodeBackend`] answers each
//! call by driving the unmodified `claude` binary once, in print mode with
//! stream-json in and out, with every tool, MCP server, settings source and
//! plugin switched off. A binary wires it to [`model_connector::serve`].
mod backend;
mod config;
mod handle;
mod launch;
mod process;
mod stream;
pub use backend::{ClaudeCodeBackend, StderrSink};
pub use config::{ClaudeCodeConfig, ClaudeCodeLimits};
pub use handle::{FsSessionStore, SessionStore};
pub use launch::ChildEnv;
#[cfg(unix)]
pub use process::StdProcessPort;
pub use process::{ProcessPort, RunningChild, StdoutRead};