插件目录 / Developer / dsh-book-reader
dsh-book-reader
已验证 · 实测可装 davidwellscn-maker
✓ 持续维护
0Stars
0Forks
0未关闭 issue
—语言
2026-08-20最近推送
跨平台平台
功能简介
Developer 类别的 DeepSeek Harness 插件。
我们的评价
可用 — 实测通过,早期项目
可用 — 实测通过,早期项目
Developer 类别的 DeepSeek Harness 插件。 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
📚 dsh-book-reader
DSH(DeepSeek Harness)读书工作台插件——第一期 MVP。
✨ 功能
- 📚 读书 tab:better-sidebar 侧边栏新增「+」→「📚 读书」,内嵌 PDF 阅读器
- PDF 阅读:react-pdf-viewer 渲染(翻页 / 缩放 / 页码显示),打开任意
.pdf也会走本阅读器 - 💛 高亮标注:选中文字 → 浮动按钮「💛 高亮」→ 可选批注 → 保存;点高亮删除
- 📤 发到对话:选中文字 →「📤 发到对话」→ 自动追加进输入框(带路径 + PDF 页码引用)
- 💾 持久化:标注存到书目录
.book-reader/annotations.json,重启不丢 - 🔍 自检:tab 顶部状态条实时显示插件加载 / 路由连通状态
🛠️ 技术栈
| 组件 | 说明 |
|---|---|
@react-pdf-viewer/core + highlight + page-navigation + zoom |
开源 PDF 渲染/高亮(Apache-2.0) |
dsh-better-sidebar |
侧边栏服务(registerTab / registerFileViewer) |
| Host 路由 | /reader/api(标注读写)、/reader/worker(pdf.js worker) |
🏗️ 开发
pnpm install # 装依赖(用 workspace 内 store/cache)
pnpm build # 产出 lib/(host + client + worker)
pnpm typecheck # TS 类型检查
📦 安装到 DSH
# ① GitHub 仓库安装
dsh plugin --profile desktop add github:davidwellscn-maker/dsh-book-reader
# ② npm 安装(发布后)
dsh plugin --profile desktop add dsh-book-reader@latest
# ③ 本地打包安装
pnpm pack && dsh plugin --profile desktop add dsh-book-reader-*.tgz
装完完全重启 DSH Desktop(⌘Q 退出再打开)——Host 端新路由需要重启加载。
📦 换机迁移与分发指引见 docs/换机迁移与分发指南.md
🗂️ 数据位置
- 标注:
<书目录>/.book-reader/annotations.json - 默认书籍:
/Users/mac/Desktop/DSP/学习/AI-Agents-in-Depth-zh-CN.pdf
📌 路线图
- 第一期:PDF 阅读 + 高亮 + 发对话 + 持久化(2026-08-18 应用内验证通过)
- 第二期:书本相关对话自动笔记总结(session/event + ctx.llm)
- 第三期:阅读进度(章节勾选 / 进度条 / 复习清单)
📄 License
MIT
安装
🧩 让 Agent 自动装(推荐)
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-book-reader」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:davidwellscn-maker/dsh-book-reader Headless(CLI)profile:
dsh plugin --profile headless add github:davidwellscn-maker/dsh-book-reader 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。