chenproton/dsh-history

快速查看、搜索并跳转到长对话中你发送的所有消息。

Project Overview项目介绍

dsh-history is a DSH web plugin that lists every user-sent message in the current session, including older history covered by compaction or not yet loaded. Core features include real-time text search, sort toggling, one-click copy, and automatic location: clicking a message loads earlier history if needed, then scrolls to it with a flashing highlight. Use it to review and locate your own messages in very long conversations. After install or update, run restart-dsh-web.sh to restart the DSH web service so the plugin takes effect.

DSH-history 是一款 DSH Web 插件,列出当前会话全部用户发送的消息,含被压缩或未加载的旧历史。核心能力:搜索过滤、排序切换、一键复制,以及点击消息自动加载并滚动定位+闪烁高亮。适用于超长对话中回顾、定位自己发送的内容。安装或更新后需运行 restart-dsh-web.sh 重启服务使插件生效。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 14 stars - an early-stage project星标 14,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:chenproton/dsh-history#main

把 chenproton/dsh-history 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-history

DSH web 插件:在超长会话里快速查看、搜索并跳转到所有"你发送"的消息。

English | 中文

功能介绍

  • 完整历史:列出当前会话中全部你发送的消息,包括尚未加载进对话窗口的旧页、被 compaction 覆盖的历史。
  • 一键定位:点击消息 → 全自动定位(未加载则自动加载更早历史,页面未渲染则自动等待,就绪后平滑滚动 + 闪烁高亮并关闭面板)。
  • 排序切换:默认最新在前,工具栏一键切换"最新在前 / 最早在前"。
  • 搜索过滤:按消息文本实时过滤。
  • 一键复制:每行复制按钮,一键复制完整消息文本。
  • 快速启动:进入会话即后台预取完整列表,打开面板秒开;Host 侧带缓存。

🚀 安装

前置:已装好 DSH(dsh web 能正常运行)。

# 1. 安装插件
dsh plugin --profile web add dsh-history@latest

# 2. 自动重启服务生效(脚本随插件一起安装,无需下载)
bash ~/.dsh/profiles/web/node_modules/dsh-history/restart-dsh-web.sh

装完每个会话输入框上方自动出现 "我的消息 (N)",无需手动操作。


常见问题

如何更新插件?
dsh plugin --profile web update dsh-history
# 或直接装最新版
dsh plugin --profile web add dsh-history@latest

改完运行 bash ~/.dsh/profiles/web/node_modules/dsh-history/restart-dsh-web.sh(或硬刷新浏览器)即可。

如何从 GitHub 直接安装(不经过 npm)?
dsh plugin --profile web add github:chenproton/dsh-history#main
# 或完整 URL 形式
dsh plugin --profile web add https://github.com/chenproton/dsh-history.git#main

装完后同样运行 bash ~/.dsh/profiles/web/node_modules/dsh-history/restart-dsh-web.sh。此方式直接使用仓库已提交的构建产物,无需本地构建。

如何从源码安装 / 开发调试?

调试本地改动或跟随开发分支时,把依赖指向本地克隆并自行构建:

# 1. 克隆并构建
git clone https://github.com/chenproton/dsh-history.git ~/Code/dsh-history
cd ~/Code/dsh-history && pnpm install && pnpm build

# 2. 把依赖指向本地克隆
#    编辑 ~/.dsh/profiles/web/package.json 的 dependencies:
#    "dsh-history": "link:<克隆目录绝对路径>"

# 3. 追加挂载行到 ~/.dsh/profiles/web/cordis.patch.yml:
#    - insert:
#        - id: dsh-history
#          name: 'dsh-history'

# 4. 在 profile 目录安装
cd ~/.dsh/profiles/web && pnpm install

# 5. 重启生效(脚本在克隆目录里)
bash ~/Code/dsh-history/restart-dsh-web.sh

更新:git pull && pnpm install && pnpm build → bash ~/Code/dsh-history/restart-dsh-web.sh。

切回 npm 通道:把依赖改回 "dsh-history": "^0.1.25" 再 pnpm install,并移除手动挂载行(避免双挂载)。

维护者文档:发布与各平台(npm / GitHub / awesome-dsh-plugin 目录 / dsh-market 市场)上架流程见 docs/publishing.md。

如何通过 plugin-registry 安装?

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-graph 下一个 Next Cobsidian →