dsh-one-click-archive
开发工具 活跃维护

dsh-one-click-archive

sujiu222/dsh-one-click-archive

它是一个轻量化浏览器插件,支持一键按时间维度归档对话界面的历史聊天内容,自动归集对应时段的交互记录,无需手动整理,操作便捷无冗余配置。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
175 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:sujiu222/dsh-one-click-archive
git clone https://github.com/sujiu222/dsh-one-click-archive.git
git clone git@github.com:sujiu222/dsh-one-click-archive.git
README.md main

dsh-one-click-archive

A DeepSeek Harness Web GUI plugin that previews and archives old conversations in one click.

One-click archive settings

Features

  • Choose an age threshold: 1/6/12 hours, 1/3/7/14/30/90 days.
  • Preview the exact candidate count and a sample before changing anything.
  • Optional inclusion of blank sessions.
  • Automatically skips running, recently active, and already archived sessions.
  • Recalculates candidates immediately before archiving to avoid stale-preview mistakes.
  • Uses DSH's official workspaceRegistry.archiveSession() API. Conversation logs are retained and remain restorable.
  • Loopback-only host routes and a confirmation dialog before mutation.
  • English and Simplified Chinese UI.

Install

dsh plugin --profile <your-web-profile> add github:sujiu222/dsh-one-click-archive

Restart that DSH Web profile, refresh the browser, then open Settings → One-click archive.

For local development:

npm install
npm run check
dsh plugin --profile <your-web-profile> add /absolute/path/to/dsh-one-click-archive

Client plugin updates hot-reload only when the DSH checkout's pnpm run dev:web watcher is running. Otherwise rebuild/reinstall, restart the host when the host plugin changes, and refresh the page.

API

The plugin exposes loopback-only same-origin routes:

  • GET /api/dsh-one-click-archive/health
  • POST /api/dsh-one-click-archive/preview
  • POST /api/dsh-one-click-archive/archive

Request body:

{ "ageMs": 86400000, "includeBlank": false }

Accepted ages range from one hour to ten years.

Safety

Archiving is non-destructive: it only adds session IDs to DSH's global archive set. It does not remove session logs or workspace accounting. Use an archive-management plugin or DSH's archive UI to restore sessions.

License

MIT