READMESource: main@29d1b390
dsh-bookmark
在 DeepSeek Harness Web UI 中提供类似 Codex 桌面端的长对话定位导航:左侧固定缩略轨道会按消息生成短横线,当前视口消息自动高亮,悬停可预览内容,点击即可平滑跳转。
安装
推荐直接从 npm 安装:
dsh plugin --profile web add dsh-bookmark
也可以从 GitHub 安装(仓库发布后):
dsh plugin --profile web add github:leilei3167/dsh-bookmark
安装后重启 Web profile:
dsh web
插件通过 dsh 的 Web client injector 挂载,不读取 API key,也不向外部服务发送对话内容。对话预览只从当前页面已经渲染的 DOM 读取,并保存在内存中;“隐藏导航”偏好才会写入浏览器 localStorage。
交互
- 点击左侧横线:滚动到对应消息并居中显示。
- 悬停或聚焦横线:显示消息角色和文本预览。
- 当前可视位置:黑色横线表示当前消息。
- 键盘:聚焦导航后使用
↑/↓移动并跳转,Enter或Space使用原生按钮行为。 - 点击
‹:隐藏导航;点击›:恢复导航。
开发
npm install
npm run typecheck
npm test
npm run build
仓库地址已配置为 https://github.com/leilei3167/dsh-bookmark;发布后请给仓库添加 deepseek-harness、dsh、dsh-plugin 主题,便于 DSH 插件发现工具检索。
发布清单
- 确认
repository、bugs、homepage指向真实 GitHub 地址。 - 发布 GitHub 仓库,并添加
deepseek-harness、dsh、dsh-plugintopics。 - 发布 npm 包:
npm publish --access public(包名为dsh-bookmark)。 - 用干净环境验证:
dsh plugin --profile web add dsh-bookmark,重启dsh web后确认左侧导航出现。
GitHub 发布后也可以直接使用 dsh plugin --profile web add github:<owner>/dsh-bookmark;npm 发布则提供更短的 dsh plugin --profile web add dsh-bookmark 安装路径。
兼容策略
插件优先使用 data-message-id、data-role="message" 等稳定属性;找不到时才回退到带 message/turn 标记的测试属性和 article。它不会覆盖宿主页面样式,也不会依赖 DeepSeek Web UI 的哈希 class 名。
License
MIT
No comments yet. Be the first to write one.