dsh-web
zhu1090093659
DeepSeek Harness (DSH) Web 插件聚合生态 · 万物皆插件,通过创意工坊分发||DeepSeek Harness (DSH) Web Plugin Aggregation Ecosystem · Everything is a plugin, distributed via the Creative Workshop
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:c-ling/dsh-plugin-newsboard
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DeepSeek Harness 的快讯看板:页面右上角一个轻量浮窗(拖拽标题栏即可移动,位置自动保存),由宿主侧抓取内置 RSS/JSON 来源并缓存,浏览器只负责轮询展示。默认不弹通知、不发声、不打断任务。
全部 / AI 圈 / 技术圈,支持当前消息搜索。$DSH_HOME/settings.yaml 的 dsh-plugin-newsboard 段);翻译密钥等凭据字段为只写(不回传明文,仅显示是否已配置),旧版 storages/dsh-plugin-newsboard/config.json 会在升级后首次启动时自动迁移并改名 config.json.migrated。内置来源:
| 类别 | 来源 |
|---|---|
| AI 圈 | Hacker News AI 检索、OpenAI News、Google AI Blog、TechCrunch AI、The Verge AI、arXiv cs.AI |
| 技术圈 | Hacker News 首页、Lobsters、Ars Technica、IT之家、少数派、Solidot |
从 GitHub 安装到 web profile(需要 pnpm 在 PATH 上;没有则用下面的 corepack 方式):
npx @deepseek-ai/dsh plugin --profile web add "github:c-ling/dsh-plugin-newsboard#v1.2.0"
或使用已有的 dsh 命令:
dsh plugin --profile web add "github:c-ling/dsh-plugin-newsboard#v1.2.0"
pnpm 不在 PATH 上时:
cd ~/.dsh/profiles/web
corepack pnpm add "github:c-ling/dsh-plugin-newsboard#v1.2.0"
dsh plugin把参数原样转发给 pnpm,直接从仓库拉取包(pnpm 9+,本机需装有git)。 安装时若看到declares no dsh.bundle — installed as a plain dependency的提示属正常现象: 本插件不是 profile bundle 层,而是通过下面的 loader 行激活。
然后在 ~/.dsh/profiles/web/cordis.patch.yml 增加一行插入:
- insert:
- id: dsh-plugin-newsboard
name: 'dsh-plugin-newsboard'
重启 dsh web(client-modules 按进程缓存包裁决,新包必须重启宿主),然后硬刷新页面,
右上角即出现「快讯看板」胶囊。
# 客户端 factory bundle
curl -s http://127.0.0.1:3080/plugins/dsh-plugin-newsboard/client.js | head -c 60
# 当前配置
curl -s http://127.0.0.1:3080/dsh-plugin-newsboard/config
# 当前抓到的消息
curl -s http://127.0.0.1:3080/dsh-plugin-newsboard/feed | head -c 500
第一条应输出 window.__ModuleLoader__.load({ 开头的 factory bundle;页面右上角能看到浮窗胶囊。
dsh plugin --profile web add "github:c-ling/dsh-plugin-newsboard#v1.2.0"
# 或:npx @deepseek-ai/dsh plugin --profile web add "github:c-ling/dsh-plugin-newsboard#v1.2.0"
# 或:cd ~/.dsh/profiles/web && corepack pnpm add "github:c-ling/dsh-plugin-newsboard#v1.2.0"
用新的 #v<version> 重新执行安装命令即可升级依赖;cordis.patch.yml 中的 loader 行保持不变。
重启 dsh web,然后硬刷新页面。
cd ~/.dsh/profiles/web
corepack pnpm remove dsh-plugin-newsboard # 或 dsh plugin --profile web remove dsh-plugin-newsboard
同时删除 cordis.patch.yml 中对应的 insert 行,然后重启 dsh web。
配置保存在 $DSH_HOME/settings.yaml 的 dsh-plugin-newsboard 段,抓取缓存与日志位于
$DSH_HOME/storages/dsh-plugin-newsboard/,卸载后会保留,可手动清理。
本地开发建议直接 link(把 <path> 换成本仓库绝对路径):
cd ~/.dsh/profiles/web
corepack pnpm add "link:<path>/dsh-plugin-newsboard"
node --check lib/index.js lib/client.js
node --test
lib/index.js:普通 Cordis 插件;内置来源抓取、去重过滤、磁盘缓存、
/dsh-plugin-newsboard/{config,feed,refresh} 路由。可选依赖 @deepseek-ai/dsh-settings
(与 Harness 版本同线)+ @deepseek-ai/schemastery 提供 settings 命名空间注册,
缺失时回退 storage 文件。lib/client.js:手写 factory-CJS bundle,无构建步骤;
inject: ["slots", "locale", "connection", "remote", "settingsScope"],通过 shell.overlay
挂浮窗、settings.section 挂设置页;配置优先走 settingsScope(逐字段写入、revision fencing
由框架处理),服务不可用时回退 HTTP 路由。dsh-plugin-notify 使用。CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: sidebar、ui-plugin、web-ui。