DeepSeek Harness plugin

dsh-book-reader

DSH 读书工作台:PDF 阅读(react-pdf-viewer)+ 选中发对话 + 黄色高亮标注 + 持久化

Jump to install

Source facts

Repository
davidwellscn-maker/dsh-book-reader
Latest update
Aug 20, 2026
Category
Tools & Capabilities
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/davidwellscn-maker/dsh-book-reader
Plugin: dsh-book-reader
Author: davidwellscn-maker

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

📚 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](docs/换机迁移与分发指南.md)

🗂️ 数据位置

  • 标注:<书目录>/.book-reader/annotations.json
  • 默认书籍:/Users/mac/Desktop/DSP/学习/AI-Agents-in-Depth-zh-CN.pdf

📌 路线图

  • [x] 第一期:PDF 阅读 + 高亮 + 发对话 + 持久化(2026-08-18 应用内验证通过)
  • [ ] 第二期:书本相关对话自动笔记总结(session/event + ctx.llm)
  • [ ] 第三期:阅读进度(章节勾选 / 进度条 / 复习清单)

📄 License

MIT