dsh-mac-notify
其他 活跃维护

dsh-mac-notify

r-ayin/dsh-mac-notify

在Mac上运行轻量HTTP监听器,通过SSH接收dsh事件并即时弹出桌面通知。无需安装额外客户端,配置简单,适合远程监控与自动化任务提醒。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
Other
主要语言
MIT
开源协议
2 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:r-ayin/dsh-mac-notify
git clone https://github.com/r-ayin/dsh-mac-notify.git
git clone git@github.com:r-ayin/dsh-mac-notify.git
README.md main

dsh-mac-notify

监听 DSH 事件(任务完成、会话暂停、子agent结束、workflow完成),通过 SSH 在 Mac 上显示 terminal-notifier 悬浮气泡通知

由 dsh-super-injector dev_scaffold_plugin 生成。

构建与注入

(prebuilt - no build step required)
# 注入器环境内:dev_inject_plugin <本目录>

Configuration

  • DSH_MAC_NOTIFY_SSH - SSH target of the Mac that shows notifications, e.g. user@mac.local. Required; notifications are skipped when unset. Key-based auth must work non-interactively (BatchMode).

Mac-side listener

The plugin posts notifications over SSH to a small HTTP listener on the Mac (127.0.0.1:18923). Run the bundled example on the Mac:

node examples/mac-notifier-listener.mjs

It requires terminal-notifier (brew install terminal-notifier). Port and notifier binary are configurable via NOTIFY_PORT / NOTIFIER_BIN. For permanence, wrap it in a LaunchAgent.