dsh-mac-companion
其他 活跃维护

dsh-mac-companion

173787247/dsh-mac-companion

系统级常驻辅助工具,依托菜单栏与全局快捷键,实时显示运行状态、提供快捷面板与原生通知,配合命令行工作流轻松完成状态追踪与快捷操作,轻量不占资源。

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

dsh-mac-companion

Optional companion to dsh-wsl-kit. Not in install.sh.

dsh(多半在 WSL)通过 HTTP 调用 Mac 上的 Companion,接入通知、Shortcuts、剪贴板。协议见 docs/PROTOCOL.md。

English → README.en.md

兼容性

字段 值
插件 dsh-mac-companion 0.1.1
最低 dsh ≥ 0.1.2
最新验证 以 dsh-wsl-kit 兼容性 为准(当前 0.2.0-rc.2)
套件档位 可选(远程桥接)

工具

工具 作用
mac_companion_status GET /v1/health
mac_notify 系统通知
mac_run_shortcut 跑 Shortcuts(需 confirm=true)
mac_clipboard_read 读剪贴板文本
mac_clipboard_write 写剪贴板(需 confirm=true)

Mac 上启动 Companion

python3 companion/server.py --port 18765 --token 'your-secret'

WSL 侧:

dsh plugin --profile web add github:173787247/dsh-mac-companion
export DSH_MAC_COMPANION_URL=http://<mac-ip>:18765
export DSH_MAC_COMPANION_TOKEN=your-secret

仅 SSH CLI 请用 dsh-remote-ssh。

License

MIT