
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
dsh-history
Advanced tools
Quickly view, search, and jump to all the messages you sent in a long conversation.
DSH web 插件:在超长会话里快速查看、搜索并跳转到所有"你发送"的消息。
English | 中文
前置:已装好 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(或硬刷新浏览器)即可。
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.13" 再 pnpm install,并移除手动挂载行(避免双挂载)。
前置:DSH 已集成 plugin-registry(
dsh registry命令可用)。同时启用两个通道会双挂载(Node 半挂两次、页面两个面板)。
git clone https://github.com/chenproton/dsh-history.git && cd dsh-history
pnpm install && pnpm build
node scripts/package-registry.mjs # 组装 registry/ 暂存(含清单 + 产物 + README,不入库)
dsh registry install ./registry # 安装(默认禁用)
dsh registry enable dsh-external/dsh-history
bash restart-dsh-web.sh # 自动重启生效
更新:git pull && pnpm install && pnpm build → node scripts/package-registry.mjs → dsh registry uninstall/install/enable → bash restart-dsh-web.sh。切换通道前先移除另一通道的挂载。
它是随插件一起分发的一键重启脚本:自动探测部署方式并重启 DSH Web 让插件生效——
dsh-web.service)→ 自动走 systemctl restart(干净单实例);dsh web 进程,读取原始启动参数原样重启(nohup);dsh web 启动。报 No such file or directory 是因为脚本不在当前 shell 目录——请用完整路径,或先拷贝到当前目录:
# 直接用包内脚本(完整路径,任意目录可执行)
bash ~/.dsh/profiles/web/node_modules/dsh-history/restart-dsh-web.sh
# 或拷贝到当前目录后运行
cp ~/.dsh/profiles/web/node_modules/dsh-history/restart-dsh-web.sh ~/restart-dsh-web.sh
bash ~/restart-dsh-web.sh
# 或未装包时从仓库下载
curl -O https://raw.githubusercontent.com/chenproton/dsh-history/main/restart-dsh-web.sh
bash restart-dsh-web.sh
参数:-n 预览将执行的命令(dry-run)、-p PID 指定进程、-l 文件 指定日志。
可安全忽略。DSH 运行时通过自身 module table 提供 @deepseek-ai/* 与 react 等依赖,无需在 profile 中重复安装(官方插件同样如此)。
restart-dsh-web.sh)或硬刷新浏览器(Cmd/Ctrl+Shift+R);cat ~/.dsh/profiles/web/package.json 的 dsh.profile.bundles 应含 dsh-history;dsh plugin --profile web list 的输出发到 issue 反馈。⧉ 复制按钮一键复制完整文本(成功变 ✓,1.4 秒后自动恢复)。conversation.input.dock 的 session 已由会话快照改为
SessionSnapshot(不再含 chat),Chat 节点改从标准注入的 useChat 选择器
钩子读取——修复"完整历史能列出、但点击无法定位/跳转"的问题;session.events 改为
session.snapshotEvents()(保留旧 getter 回退),恢复内存直读快路径。src/client/util.ts,组件文件瘦身、统一重复逻辑,
功能与行为不变(内部重构)。scrollIntoView,改为直接定位对话
滚动容器(getBoundingClientRect 居中),同步可靠滚动,面板开合不影响。dsh web 的进程自动停止),并做 HTTP 健康检查确认真就绪;非 dsh 进程
不误杀。is-active,
systemd 下进程 fork 即显示 active 但可能随即崩溃)。systemctl status + journal 日志。restart-dsh-web.sh:安装/更新插件后一键自动重启 DSH Web 生效。
自动探测部署方式(systemd 服务 / 裸进程原样重启 / 直接启动),支持 -n 预览、
-p 指定 PID、-l 指定日志。scripts/package-registry.mjs 组装脚本与 registry 专用 client bundle)。HH:mm);Esc 关闭面板,列表项键盘可达(Enter/空格跳转),补充无障碍标签。MIT
FAQs
Quickly view, search, and jump to all the messages you sent in a long conversation.
The npm package dsh-history receives a total of 256 weekly downloads. As such, dsh-history popularity was classified as not popular.
We found that dsh-history demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.