dsh-pelican

by Little-Star888

娱乐github收录于 08-21

右下角鹈鹕环海骑行 SVG 动画,随代理状态在思考/完成间切换,回复完成时播放提示音并可选发送系统通知。

A pelican riding a bicycle along a seashore in the bottom-right corner: an SVG animation that reflects the agent working state (thinking/done), with a chime and an optional system notification when a reply finishes.

安装

dsh plugin --profile web add github:Little-Star888/dsh-pelican

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

预览截图

dsh-pelican 截图

README

鹈鹕环海骑行 —— 右下角 SVG 骑行动画 + 全局任务状态提示的 DSH Web 静态双端插件。

  • 主机半(lib/index.js):监听全局代理事件,维护 idle / thinking / done 状态机;暴露 GET /api/pelican/status 供浏览器轮询;附带 pelican_debug 调试工具。
  • 客户端半(lib/client.js):右下角 shell.overlay 里的 SVG 骑行动画,任务思考时鹈鹕说话「我在呢,稍等~」,任务完成时弹「任务完成啦 🎉」气泡 + 提示音 + 可选系统通知。

安装

本地路径(无需发布):

dsh plugin --profile web add ./dsh-pelican

npm(需先发布):

dsh plugin --profile web add dsh-pelican

GitHub(需先推送仓库):

dsh plugin --profile web add github:<owner>/dsh-pelican

安装后重启 dsh 进程生效(本插件常驻磁盘,不是会话内动态插件)。

状态机制

事件 状态
用户发消息(agent/inbox/inserted) thinking
回复收尾(agent/turn-stopping / agent/status: idle) done
无活动 idle

调试:pelican_debug 工具返回 state / seq / pendingAgentId / 事件计数。

License

MIT

原始 README: https://github.com/Little-Star888/dsh-pelican/blob/main/README.md ↗