vtcode_core/tools/registry/spooler_facade.rs
1//! Output spooler accessors for ToolRegistry.
2
3use crate::tools::output_spooler::ToolOutputSpooler;
4
5use super::ToolRegistry;
6
7impl ToolRegistry {
8 /// Get the output spooler for external access.
9 pub fn output_spooler(&self) -> &ToolOutputSpooler {
10 &self.output_spooler
11 }
12
13 /// Get the count of currently spooled files (for TUI status).
14 pub async fn spooled_files_count(&self) -> usize {
15 self.output_spooler.list_spooled_files().await.len()
16 }
17}