DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-archive-manager-plus

Archive Manager Plus

归档管理:在设置页列出已归档会话,并提供真正的删除(含会话文件与记账清理)。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-archive-manager-plus@0.1.3
README兼容性版本
cover

兼容性与来源证明

Archive Manager Plus 以 dsh-archive-manager-plus 发布,当前版本为 0.1.3。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/11/4

版本

0.1.3stable
2026/8/22
0.1.2stable
2026/8/22
0.1.1stable
2026/8/22
查看其余 1 个版本收起版本
0.1.0stable
2026/8/22

相关插件

正在加载相关插件…

最新版
0.1.3
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
42.2 kB
文件数
8
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 1
周下载
212
安全扫描
✓ v0.1.3 扫描通过
最近提交
2026/9/28
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

README

dsh-archive-manager-plus

Archive manager: list archived sessions in the Settings page and delete them for real (session log, archive marker, and projection cache removed together).

English | 中文

cover

Features

  • Adds an Archive Manager tab to the Settings page (official settings.section slot — peers with General, Models, etc.)
  • Lists all archived sessions: title, created time, and whether the log still exists on disk
  • A Delete button on each row; a confirmation dialog, then a real delete
  • Security-minded: same-origin POSTs only, strict session-id validation, Node self-verification after writes, automatic rollback on failure
  • No UTF-8 BOM pitfalls across PowerShell editions (Windows PowerShell 5.1 and PowerShell 7 behave identically)

Why

DSH's "archive session" only hides a session from the grouped views: the session.jsonl.zstd log and its accounting stay untouched, and the official UI has no delete entry. This plugin adds the "real delete" capability — archiving is only hiding; when you actually want the disk cleaned up, do it here.

How it works

A dual-half plugin (the same shape as the official plugin ecosystem):

HalfLocationResponsibility
host halflib/Mounts two HTTP routes: GET /dsh-archive-manager-plus/list lists archived sessions; POST /dsh-archive-manager-plus/delete deletes (session directory + workspace accounting + projection cache)
browser halfclient/Registers the settings.section page, renders the list + delete buttons (a confirm dialog first, then calls the host route)

What a delete touches on disk:

  1. Removes the id from global.archivedSessionIds in workspace.json
  2. Removes the id from every workspace's sessionIds
  3. Deletes <DSH_HOME>/sessions/<workspace-encoded>/<session-id>/
  4. Clears the session entry in session_projcache.json

The cost-meter/ledger.json is left alone (spend history is kept as a record).

Install

1. npm (recommended, the community standard)

npm install dsh-archive-manager-plus

This puts the package into your project/global node_modules; a DSH plugin must also be registered in a profile's bundle layer:

  1. In <profile>/package.json → dependencies, add "dsh-archive-manager-plus": "^0.1.0"
  2. In dsh.profile.bundles, append "dsh-archive-manager-plus"
  3. Run npm install (or pnpm install), confirm the package landed in the profile, restart DSH and refresh the page

2. One-shot install script (local development)

powershell -ExecutionPolicy Bypass -File .\install.ps1

The script resolves the plugin root from its own location (runnable from anywhere) and does: whitelist-copy the shipped files → register the dependency and bundle → Node self-verification (no BOM / valid JSON / entries complete) → rollback from backup on failure.

ParameterDescription
-ProfileDir <path>Explicit profile directory (highest priority)
-ProfileName <name>Profile name, default web
-DSHHome <path>DSH home (defaults to $env:DSH_HOME, then ~/.dsh)
-DryRunPreview only, write nothing
-SkipCopySkip the file copy; update the manifest only
.\install.ps1 -DryRun                    # preview
.\install.ps1 -DSHHome <your-dsh-home>   # point at a specific home

3. Manual

  1. Copy lib/, client/, cordis.patch.yml, LICENSE, README.md, package.json to <profile>/node_modules/dsh-archive-manager-plus/
  2. In <profile>/package.json → dependencies, add "dsh-archive-manager-plus": "<version>"
  3. In dsh.profile.bundles, append "dsh-archive-manager-plus"
  4. Save (UTF-8 without BOM), restart DSH and refresh the page

⚠️ BOM trap: a package.json with a UTF-8 BOM makes DSH fail to boot with Unexpected token ''. Prefer the npm install or the one-shot script (both write BOM-less UTF-8 and self-verify).

Usage

  1. In the sidebar, open any session row's ⋯ menu → Archive session (archive 1–2 sessions to try)
  2. Open Settings (gear) → Archive Manager
  3. The list shows archived sessions: title / created time / whether the log is on disk
  4. Click Delete on a row → confirm → the row disappears and the disk log is removed

Privacy & Security

  • Deletion is limited to archived sessions only; never delete a session that is currently running (caller's responsibility)
  • Deletion removes the disk log and associated accounting; spend history is kept
  • In-memory host state (e.g. leftover session.list rows) may briefly remain visible until the next reconnect/refresh — the file and registry layers are always consistent and durable
  • The gateway accepts same-origin requests only, and session ids pass a strict format whitelist (session- + hex/dashes), preventing path traversal
  • All paths in this README are placeholders (<DSH_HOME>, <profile>…); do not paste machine paths, usernames, or session ids into issues/discussions

Development

  • Browser half is a hand-written CJS bundle (no build step): edit client/client.js and refresh the page (HMR picks it up)
  • Host half is plain ESM: edit lib/ and restart DSH
  • After version bumps, re-run install.ps1 to sync the manifest (no script edits needed)

Publishing new versions (npm)

  1. Bump version in package.json (follow SemVer)
  2. Verify locally: node --check lib/*.js client/client.js + npm publish --dry-run
  3. Publish: npm publish --registry=https://registry.npmjs.org/
  4. Create a matching GitHub release / tag (v<version>) to keep repository and npm in sync

License

MIT

相关插件

继续浏览 memory-context 分类下经过校验的插件。

Experimental Session Search@deepseek-ai/dsh-experimental-session-search为 Agents 提供搜索和读取当前工作区早期会话的工具。Hindsight Coding Agents@vectorize-io/hindsight-coding-agents面向编程代理的仅反思式 Hindsight 长期记忆(可插拔支持多种运行框架:opencode、……),自动在后台导入(无需设置 CLI)。Mnemondsh-mnemon面向 DeepSeek Harness 的可组合、基于视图的上下文。开箱即用的可插拔来源与策略、分层记忆和自我演进技能。Ab Memorydsh-ab-memory--- description: "dsh-ab-memory 包:一种跨会话、基于文件的智能体记忆,提供五个工具(remember / recall / forget / load_skill / distill)以及始终启用的轻量注入。" kind: "package-reference" ---