codetether-agent 4.5.7

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
//! Paste event forwarding for the TUI.
//!
//! Wraps the terminal paste bracket event and delegates to
//! [`crate::tui::app::input::handle_paste`].
//!
//! # Examples
//!
//! ```ignore
//! handle_paste_event(&mut app, "some text").await;
//! ```

use crate::tui::app::input::handle_paste;
use crate::tui::app::state::App;

/// Forward a paste event from the terminal to input handling.
///
/// Delegates directly to [`crate::tui::app::input::handle_paste`].
///
/// # Examples
///
/// ```ignore
/// handle_paste_event(&mut app, "pasted text").await;
/// ```
pub async fn handle_paste_event(app: &mut App, text: &str) {
    handle_paste(app, text).await;
}