@dshfly/plugin-notifications
v0.1.0
Published
移动端插件 dogfood #1(M4.x-e):消息中心——PC 端会话动态聚合(投影变更订阅),home 组件树 + badge + 打开会话
Maintainers
Readme
@dshfly/plugin-notifications
消息中心——一个 DeepSeek Harness (DSH) 移动端插件:把 PC 端各会话的动态聚合到手机 App 的插件页,让你随时随地看到哪些会话有进展、有未读。
- 订阅 DSH 宿主
sessionProjections变更流 → 手机端显示"最近动态"卡片(home 组件树)。 - 未读数 badge 标在 App 插件网格图标上。
- 点卡片通过
__openChat导航约定,手机直接打开对应会话的 Chat 屏。
安装
# 在 PC 端 dsh web 里安装(移动端插件规范 v0.1)
dsh plugin --profile web add @dshfly/plugin-notifications
dsh web # 重启生效依赖前置:需已安装
@dshfly/remote-connector(它提供ctx.mobileBridge服务,承载移动端插件运行时)。若桥不可用,本插件会warn + 跳过,不影响 dsh web 其余功能。
要求
- DSH
>= 0.1.0-rc.6(且已装@dshfly/remote-connector)。 - Node
>= 22。
能力(manifest dshfly.mobile)
| 能力 | 说明 |
|---|---|
| home | 首页组件树:"最近动态"卡片列表 |
| badge | 未读会话数角标 |
| actions | notifications.openSession(打开会话)、notifications.markAllRead(全部已读) |
name/description 支持 {zh,en} 双语,手机端按 App 语言显示(切英文即显示 "Message Center")。
上游(供第三方参考)
本插件是移动端插件规范的 dogfood 参考实现,第三方照抄 index.js(manifest + ctx.mobileBridge.register)即可接入。
