SuperAPI AI 工具集

desktop-notifications

办公与效率

查看项目

更新于 10-16 06:23

技能介绍

用途:在终端中发送桌面系统通知,适合在脚本或命令执行完成后提醒用户。可用 notify --help 检查是否已安装;未安装时使用 uv tool install "git+https://github.com/lirrensi/agent-sommelier"。基本用法为 notify "Title" "Body message",也支持管道输入,如 echo "Status update" | notify "Progress"、cat log.txt | notify "Logs"。在脚本中可串联命令,例如 long_operation && notify "Done" "Operation completed successfully"。其他示例包括 curl -s http://api/status | notify "API Status",以及 find . -name "*.py" | wc -l | notify "File Count"。平台支持:Windows 使用 Windows Toast 通知,macOS 使用 osascript 原生通知,Linux 使用 notify-send(libnotify)。限制:除上述内容外,权限配置、通知样式、错误处理、支持版本及更多平台信息暂未提供。