vtcode 0.98.1

A Rust-based terminal coding agent with modular architecture supporting multiple LLM providers
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(())
}