Repository navigation
Releases
Releases · micaiguai/opencode-notify-plugin
v0.1.0
首个版本。
OpenCode v2 插件:会话完成、执行失败、等待回答、等待授权时发系统通知(Windows / macOS / Linux)。
- 基于
@opencode/pluginv2.1.2 的{ id, setup }接口,只订阅事件,不改 opencode 行为 - 覆盖
session.execution.succeeded/session.execution.failed/session.idle/form.created/permission.asked - 一轮只提醒一次(
durable.seq去重 +session.idle3 秒窗口),同一event id10 秒内不重复 - 子会话不提醒;不回放插件启动前的历史事件;
session.get失败时退回通用文案 - 跨平台通知:macOS
osascript、Linuxnotify-send、Windows PowerShell toast
安装:
opencode plugin add opencode-notify-plugin发布经 GitHub Actions 的 Trusted Publishing(OIDC)带 provenance 上传。