dsh-archive-button
DSH session archive button: an icon button portaled into the sidebar's workspace-title row (right next to the official Add-workspace icon), falling back to an inline footer capsule when that row is not mounted. First click dry-runs a scan of DSH sessions idle for more than 3 days, second click packs each one into a byte-verified zip under <DSH 安装根>\archive\dsh-sessions and removes the original folder. Host half registers /dsh-archive/* routes and runs archive-dsh-sessions.ps1; client half renders the button. Never triggered by the model. 适合需要清理和备份空闲会话的用户,需自备PowerShell脚本。
설치
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Ln1m/dsh-archive-buttondsh-archive-button
English · 中文

界面示意:按官方主题变量渲染的版式,非实机截图。
侧栏工作区标题行上的归档按钮(工作区标题行没挂载时回落到 footer 胶囊)。第一次点先空跑扫描,列出空闲超过 3 天的会话;第二次点把每个会话打包成逐字节校验的 zip,并删掉原目录。host 半端注册 /dsh-archive/* 路由并调归档脚本,client 半端只画按钮。模型不会触发它。
装
dsh plugin --profile web add file:
装完重启 web 实例。
环境变量
| 变量 | 默认 | 说明 |
|---|---|---|
DSH_ROOT | ~/DeepSeek_harness | DSH 安装根;归档脚本、归档目录、按钮日志都由它派生 |
前提
- Windows PowerShell 5.1
\scripts\archive-dsh-sessions.ps1需自备,本仓库不含该脚本