dsh-message-outline

by chongfengdy-dev

UI 增强github收录于 08-21

当前会话消息大纲(左缘横杠)——你的消息在对话区左缘显示一列细横杠,hover 展开完整大纲(行号+文本),点击瞬间定位到对话里那条消息。纯前端、零外部服务依赖、sessions 快照驱动零轮询。

Current-session message outline rail for the DSH web UI — your messages show as slim bars on the left edge; hover to expand the full outline (line number + text), click to jump instantly to that message. Pure frontend, zero external service dependencies, sessions-snapshot driven with zero polling.

安装

dsh plugin --profile web add github:chongfengdy-dev/dsh-message-outline

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

DSH web 前端插件:当前会话消息大纲(左缘横杠)——你发的消息在对话区左缘显示成一列细横杠,hover 展开完整大纲(行号+文本),点击瞬间定位到对话里那条消息。

纯前端实现:零外部服务依赖(不需要 3081/终端服务),sessions 快照订阅驱动、零轮询。

功能

  • 左缘一列细横杠 = 我的消息(最近 10 条,最新在下),收起态无滚动条
  • hover 同一元素展开完整大纲(横杠+行号+文本同一行,展开/收起位置严格对齐)
  • 点击行 → 横杠+文字变蓝并瞬间定位到对话中该消息(黄色闪烁 1.6s)
  • 收起态蓝条 = 当前视口所在消息(对话滚动时跟随,事件驱动节流)
  • 深色/浅色主题跟随 dsh web(--dsw-alias-* 变量)

安装

# 在 dsh 安装好之后(npm i -g @deepseek-ai/dsh)
dsh plugin --profile web add dsh-message-outline
sudo systemctl restart dsh-web   # 或重启 dsh web 进程

刷新浏览器页面即生效(左缘出现消息横杠)。

说明

  • 数据源:当前会话的 sessions 快照(chat.order/chat.nodes + 官方 data-chat-anchor-key 锚点定位),全部历史可跳转(loadOlder 懒加载)
  • 从 dsh-term-panels 拆出独立发布(大纲功能,不含终端面板/Token HUD——那些需要 3081 服务,见 dsh-term-panels)

License

MIT

原始 README: https://github.com/chongfengdy-dev/dsh-message-outline/blob/main/README.md ↗