You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
背景
插件的数据适合放到 macOS 桌面常驻(小组件),但客户端插件跑在
dsh-app://app/的渲染进程里,无法变成系统小组件。macOS 小组件必须由 App 内置的原生 WidgetKit 扩展(.appex,Swift)提供,由系统的小组件宿主渲染;DSH 目前没有这个扩展。目标
设计
DeepSeek Harness.app/Contents/PlugIns/内置DSHWidgets.appex,随 App 一起签名 / 公证;一个通用 widget kind。ctx.macosWidgets.register({ id, title, subtitle, style, read });read()返回通用 payload(sections / rows)。style契约(layout:list/single;accent;background;showUpdated),插件决定外观,核心只按契约渲染。现状
第三方插件
dsh-macos-widget已实现上述模型:注册服务、样式契约、设置页选择、固定回环桥接、通用DSHWidgetkind(small / medium / large)。quota-windows是示例消费者,注册「额度窗口」并声明自己的样式;换成任何插件都可以。已在 macOS 27.3 上验证:设置里选择插件后,桌面小组件显示该插件的样式与数据。
剩余差距需要宿主内置解决:伴生 App 需要用户自行构建安装(ad-hoc 签名),桥接端口固定。
开放问题
环境:DSH Desktop 0.2.2-rc.1、macOS 27.3、quota-windows 1.16.1(示例消费者)。
All reactions