DSH HUB
HomePlugin StoreRankingsPublish Guide
Plugin source
Back to catalog

kkishapppy /

dsh-usage-record

Verified

DSH Web 对话区左侧提问导航轨:横线=提问,点击跳转+鱼眼+滚动跟随+后台预加载

★ 1 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@e47fa8da

dsh-usage-record

DSH Web 对话区左侧提问导航轨:每条横线 = 一次提问,点击即跳转到对应位置,支持鱼眼放大、滚动跟随、后台全量预加载。

功能

  • 提问导航轨:对话左侧竖轨,每条横线代表一次提问,悬停显示提问内容 tooltip
  • 点击跳转:点击横线 → 聊天区平滑滚动到该提问(未渲染的历史自动加载后再跳)
  • 鱼眼效果:鼠标移动时横线按距离放大(σ=10),边缘留白防裁剪
  • 滚动跟随(scroll-spy):当前视口中心的提问在轨道上高亮;聊天滚动时轨道自动跟随
  • 后台预加载:轨道可见即自动批量加载全部历史提问(配合 history 批量补丁,长会话秒跳)
  • 全部数据来自服务端 /plugins/dsh-usage-record/questions(从会话日志提取,不受聊天虚拟化窗口限制)

安装

dsh plugin --profile web add dsh-usage-record

配置(profiles/<profile>/cordis.patch.yml,可选):

- id: usage-record
  config:
    dataDir: 'E:\DeepSeekHarness\data\usage-record'   # 默认 <cwd>/data/usage-record

已知依赖与限制

  • 依赖 DSH Web 客户端内部 DOM 结构([data-chat-flow]、[data-chat-anchor-key]、滚动容器等),随 DSH 版本升级可能失效(社区客户端插件的共性)
  • history RPC 批量被放大到 3000(官方默认 50),位于客户端源码 HISTORY_BATCH 常量,可按需调整
  • 轨道仅在会话视图渲染;需要会话存在历史提问

开发

npm i
npx -y tsdown@0.22.2 --config ./tsdown.config.ts
# 服务端改动需重启 DSH;client 改动硬刷新页面即生效

License

MIT

—/ 5

No ratings yet

Verified DSH bundle

Commit e47fa8da199a

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

APIPublish GuideAbout