codetether-agent 4.7.0-a-002.4

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Compact bus payloads before retaining them in TUI state.

use crate::tui::retained_payload::{TOOL_DETAIL_MAX_BYTES, bounded};

pub fn detail(input: &str, label: &str) -> String {
    bounded(input, TOOL_DETAIL_MAX_BYTES, label)
}

pub fn tool_detail(header: &str, output: &str, label: &str) -> String {
    format!("{header}\n{}", detail(output, label))
}