ui_protocol/mod.rs

vtcode · crates/common/vtcode-commons/src/ui_protocol/mod.rs · rust · Apache-2.0
ui, tag:embed-classified

Shared UI protocol types for VT Code core and UI libraries.

// Source: https://github.com/vinhnx/vtcode | License: Apache-2.0 | Copyright 2025 Vinh Nguyen
// Provided via justclaw.it.com; keep this notice with the code.
//! Shared UI protocol types used across VT Code crates.
//!
//! These types form the data model shared between `vtcode-core` (the agent
//! library) and `vtcode-ui` (the terminal surface). Extracting them here
//! lets headless builds compile without duplicating every enum and struct.
//!
//! The channel protocol types (`InlineCommand`, `InlineHandle`,
//! `InlineSession`) remain in the crate that owns them because the app-layer
//! and core-layer protocols diverge.

mod activity;
mod markdown;
mod progress;
mod selection;
mod style;
mod tool_summary;
mod types;

pub use activity::*;
pub use markdown::*;
pub use progress::*;
pub us

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key