deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
DeepSeek Harness (DSH) 的消息索引轨道插件:对话区右缘一串品牌色圆点,每条用户消息一个。悬停预览、点击跳转,未加载的历史自动逐页追载。零宿主侵入(shell.overlay 纯插件实现,不改动 DSH 布局),完全跟随当前皮肤与主题(--dsw-* token + color-mix)。
A message-index rail for DeepSeek Harness: one brand-colored dot per user message at the right edge of the conversation. Hover to preview, click to jump, auto-load older history on demand. Pure-plugin (no host layout patching), fully theme/skin aware.
bundle/,接收方开箱即用dsh web)color-mix(Chrome / Edge 111+,Electron 43+)dsh plugin --profile web add github:futongxu9-maker/dsh-msgrail
dsh-msgrail 目录复制到 ~/.dsh/profiles/web/node_modules/dsh-msgrail/~/.dsh/profiles/web/cordis.patch.yml 末尾追加:- insert:
- id: msgrail
name: 'dsh-msgrail'
dsh 服务)对话区右缘的圆点列即消息索引(自上而下按时间顺序,全部消息均匀排列):
| 操作 | 效果 |
|---|---|
| 悬停圆点 | 左侧弹出预览卡(时间 + 文本,3 行省略),圆点放大变亮 |
| 点击圆点 | 跳转到该消息;若目标在未加载的历史中,自动逐页加载并跳转 |
| 滚轮 | 圆点列内部滚动(历史很多时) |
| —— | 最新一条圆点常亮;上下两端圆点渐变淡出 |
浏览器 (Client) Node (Host)
┌───────────────────────┐ ┌─────────────────────────┐
│ lib/client.js │ GET /api/ │ lib/index.js │
│ shell.overlay 注册 │ ─msgrail/messages│ webServer 路由 │
│ 圆点列 + 预览 + 跳转 │ ────────► │ 会话日志读取: │
│ fetch 数据 / 轮询刷新 │ ◄──────── │ 内存 session → sessionQuery│
└───────────────────────┘ JSON │ → 冷会话 30s 缓存 │
└─────────────────────────┘
lib/index.js):webServer 注册 GET /api/msgrail/messages?sessionId=…,返回该会话的真实用户消息(seq / time / id / text)。读取顺序:内存 session(完整事件,最快)→ sessionQuery.listEvents + 并发 readEvent(持久化兜底)→ 冷会话结果缓存 30 秒。lib/client.js):通过 dsh.client 协议注入 shell.overlay,3 秒轮询刷新;跳转利用 ChatView 的官方 DOM 钩子(data-chat-anchor-key)定位消息,未渲染的目标走「加载更早」自动追页(200ms 高频轮询 + 可见性确认循环)。data-conversation-scroll / data-chat-flow),窄窗口或超宽布局下位置可能偏右,建议在窗口宽度 > 800px 时使用。社区另有一个通过 patch-layout.mjs 修改宿主布局实现的消息轨道(chou109/dsh-msgrail)。本插件采用纯插件路线:不改任何宿主代码,shell.overlay 浮层实现——升级 DSH 无忧、可随安装包分发、接收方零额外步骤。
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。