用途:发送 Pushover EMERGENCY(priority 2)告警,并轮询 receipt 直到用户确认(ack)或过期。适用于需要高优先级、可重复提醒直到被处理的场景。
主要能力与用法:调用 TS 核心 pushover_core.ts 的 emergency 子命令,命令示例:
env -u HTTPS_PROXY -u HTTP_PROXY bun "$(cc-plugin-root pushover-commander)/skills/_lib/pushover_core.ts" emergency
--title "Title" --message "what happened + the one action needed"
[--retry 30] [--expire 300] [--sound piano] [--attach report.png] [--app main|test]
参数与行为:priority 2 必须提供 retry(≥30 秒)与 expire(≤10800 秒),否则 Pushover 返回 HTTP 400;核心会自动补默认值(30 / 300)。响应返回 receipt,核心每 5 秒轮询 /1/receipts/{receipt}.json,确认或过期时输出 {acknowledged, acknowledged_at, expired}。sound=piano 是该账户自定义音;内置回退为 pianobar,可用 custom-sounds resolve piano pianobar 处理。可附加 render-incident-report-image 的 PNG 以获得完整详情,--message 需 ≤1024。
执行后检查:确认 priority-2 告警是否重复到被确认,若无或提前停止,检查 retry/expire 处理;确认轮询是否检测到 ack 或过期,若挂起或漏检,检查轮询循环。仅在问题真实且可复现时才修改文件。
限制:资料未提供安装方式、账户配置、价格及平台支持等细节;以上行为基于 2026-05-30 真机验证记录,需自备 Pushover 账户与相应自定义音设置。