vtcode-core 0.103.1

Core library for VT Code - a Rust-based terminal coding agent
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Output spooler accessors for ToolRegistry.

use crate::tools::output_spooler::ToolOutputSpooler;

use super::ToolRegistry;

impl ToolRegistry {
    /// Get the output spooler for external access.
    pub fn output_spooler(&self) -> &ToolOutputSpooler {
        &self.output_spooler
    }

    /// Get the count of currently spooled files (for TUI status).
    pub async fn spooled_files_count(&self) -> usize {
        self.output_spooler.list_spooled_files().await.len()
    }
}