vtcode 0.137.0

A Rust-based terminal coding agent with modular architecture supporting multiple LLM providers
1
2
3
4
5
6
7
8
9
10
11
12
use anyhow::Result;
use vtcode_core::notifications::{
    NotificationEvent, apply_global_notification_config_from_vtcode, send_global_notification,
};

use crate::startup::StartupContext;

pub async fn handle_notify_command(startup: &StartupContext, title: Option<String>, message: String) -> Result<()> {
    apply_global_notification_config_from_vtcode(&startup.config)?;
    send_global_notification(NotificationEvent::Custom { title: title.unwrap_or_default(), message }).await?;
    Ok(())
}