z953218350/dsh-archive-manager 预览 preview

z953218350/dsh-archive-manager

Plugin插件 Native原生 ⭐ 12 MIT Sessions & Context会话与上下文

面向 DSH Web UI 的 Codex 风格归档会话管理器——在设置页面中查看、搜索、恢复和删除归档会话。

Project Overview项目介绍

DSH Archive Manager is a native plugin built exclusively for DeepSeek Harness (DSH), designed to add Codex-style session archive management functionality to the DSH web interface. It can be installed via the official DSH CLI, or manually added via npm or pnpm to the web profile’s package.json, and requires DSH version 0.1.2-alpha.2 or newer to work correctly. Once installed and DSH is started, the plugin appears as an “Archive Management” card in the plugins section of the settings page, matching the visual style of official DSH cards. It offers top-level search, sorting filters, and project-based filters for archived sessions.

The plugin automatically groups archived sessions by their associated workspace or project, adding project folder icons and a count of sessions to each group. Each group has a more options menu that lets users delete all archived sessions in that project in one click. Users can click the view content button to open a popup that previews the most recent 50 messages in the session, with system injected text automatically cleaned from the preview. To restore a session, users just click the restore button, and it will be added back to the original workspace sidebar instantly.

The plugin does not require any external dependencies, as it has a built-in zstd multi-frame decompression engine based on Node.js’s built-in zlib module. This means users do not need to install the zstd command line tool on their system to use the plugin. It listens for changes to archived sessions in real time, so the archive list updates automatically when sessions are archived or restored from the DSH sidebar. DSH Archive Manager is released under the open source MIT license, and there is no cost for any use of it.

这是一款专为 DeepSeek Harness(DSH)开发的原生插件,为DSH的Web界面提供了和Codex 1:1一致的会话归档管理功能。它支持在设置页的插件分区直观查看、搜索筛选归档会话,可预览对话内容,支持一键取消归档以及彻底删除归档会话。界面遵循Codex的视觉交互规范,卡片风格和DSH官方规范保持统一,加载后即可使用归档管理能力。

该插件会将会话按照所属工作区或项目自动分组展示,每个分组都带有项目图标和对话计数,支持批量删除整个项目的所有归档会话。用户点击查看内容即可在弹窗中预览最近50条对话记录,无需恢复归档即可浏览内容,点击恢复即可将会话还原回原工作区列表。适合需要经常整理归档会话、希望保留Codex使用习惯的DSH用户。

该插件要求DSH版本不低于0.1.2-alpha.2,仅支持Web Profile,可通过DSH官方CLI或npm/pnpm安装到DSH的Web配置文件中。它内置基于Node zlib的zstd多帧解压引擎,无需额外安装系统级zstd命令行工具。项目采用MIT许可开源,无额外使用成本,数据根目录遵循DSH_HOME的解析规则。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 12 stars - an early-stage project星标 12,属于早期项目
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 -w @mlgbnb/dsh-archive-manager

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

READMEREADME

DSH Archive Manager 插件 (Codex-style 归档管理)

中文 | English

为 DeepSeek Harness (DSH) Web 界面提供与 Codex 1:1 一致的会话归档管理功能,支持在设置页中直观查看、搜索/筛选、预览对话内容、一键取消归档以及彻底删除归档会话。

当前版本要求 DSH >=0.1.2-alpha.2,并支持通过 DSH_HOME 指定 DSH 数据目录。

npm version npm downloads

DSH Archive Manager 归档管理设置与会话列表


🌟 核心特性

  1. Codex 1:1 视觉与交互规范:
    • 卡片外观保持 DSH 官方卡片统一规范(深灰背景、12px 圆角、矢量箭头旋转动效),仅在设置 -> 插件选项中加载;
    • 展开后提供顶层搜索栏(搜索已归档聊天)、排序筛选(全部聊天 / 最早优先)与项目筛选(所有项目 / 各具体项目)。
  2. 按项目分组与批量管理:
    • 会话按所属工作区/项目自动分组展示,带有项目文件夹图标及对话计数;
    • 每个项目组支持 ··· 更多操作菜单,可一键「删除项目中的全部内容」。
  3. 真实内容解析、预览与还原:
    • 自动解析底层会话流,精确展示会话标题、创建时间、对话轮数与磁盘占用大小,日期格式与 Codex 一致(如 2026年8月15日, 1:34);
    • 会话内容预览:点击「查看内容」按钮,无需恢复即可在弹窗中直接浏览该会话最近 50 条用户/助手消息记录(自动清理会话日志中的系统注入文本);
    • 取消归档:点击「恢复会话」按钮,会话立即还原回原所属工作区列表,并通过 SSE 实时广播同步侧边栏;
    • 彻底删除:点击「物理删除」按钮彻底删除会话元数据及磁盘数据文件,释放存储空间。
  4. 零外部依赖的解压引擎:
    • 内置基于 Node zlib 的 zstd 多帧解压引擎,可读取 session.jsonl.zstd 与未压缩的 session.jsonl,无需在系统中安装 zstd 命令行工具。
  5. 实时双向同步(Live Sync):
    • 卡片展开时自动监听侧边栏归档变动,在工作区侧边栏归档或恢复会话时,归档管理列表自动无感同步更新。

📦 如何安装与配置到 DSH

DSH 采用 Cordis 模块化微内核架构,你可以通过以下方式安装该插件:

环境要求

  • DSH >=0.1.2-alpha.2
  • Web Profile
  • Node.js 内置 zlib(无需额外安装 zstd 命令行工具)

方法一:通过 NPM 线上源安装(推荐)

1. 使用 DSH 官方 CLI 命令一键安装

dsh plugin --profile web add -w @mlgbnb/dsh-archive-manager

如需固定当前版本,可执行:

dsh plugin --profile web add -w "@mlgbnb/dsh-archive-manager@1.0.10"

2. 或者在 Web Profile 目录下通过 npm/pnpm 安装

# 已设置 DSH_HOME 时
cd "$DSH_HOME/profiles/web"
# 未设置 DSH_HOME 时
cd ~/.dsh/profiles/web
npm i @mlgbnb/dsh-archive-manager
# 或使用 pnpm
pnpm add -w @mlgbnb/dsh-archive-manager

安装完成后,请确认 $DSH_HOME/profiles/web/package.json(未设置 DSH_HOME 时为 ~/.dsh/profiles/web/package.json)中的 dsh.profile.bundles 数组已包含 @mlgbnb/dsh-archive-manager:

{
  "name": "dsh-profile-web",
  "private": true,
  "dependencies": {
    "@mlgbnb/dsh-archive-manager": "^1.0.10"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "@deepseek-ai/dsh-web-app",
        "@mlgbnb/dsh-archive-manager"
      ]
    }
  }
}

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-multi-tenant 下一个 Next dsh-task-dag →