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
S

@snow-the/dsh-session-repair

Session Repair

扫描并修复 DSH 会话日志:将单帧损坏的 zstd 文件重新编码为多帧布局,并将未知事件类型(例如 llm/failover)标记为可忽略,以便旧版测试框架加载较新的日志。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:snow-The/dsh-session-repair#8736826ff17af25a68924f4e8a5348aad644a6d4
README兼容性版本

兼容性与来源证明

Session Repair 以 @snow-the/dsh-session-repair 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/10/19

版本

0.1.0stable
2026/10/19
最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/11/1
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

README

dsh-session-repair

Scans and repairs DSH session logs (~/.dsh/sessions/**/session.jsonl.zstd).

Fixes

  • Single-frame corrupt logs — a session file re-compressed as one zstd frame breaks the harness at boot (first frame is not exactly one header line). The plugin rebuilds the log in the canonical multi-frame layout: one JSON line per zstd frame.
  • Unknown event types — events written by newer harness builds (e.g. llm/failover) make older harnesses refuse the whole log (SessionFormatUnsupportedError). The plugin marks such events "ignorable": true (the event is kept; the harness skips it).

Tools

  • session_repair_scan — read-only report of every session log: zstd frame count, line count, header validity, parse errors, unknown event types.
  • session_repair_fix — repairs problem logs (or one sessionId). Backs up each file as <file>.bak-repair-<timestamp> before replacing it, then verifies the rebuilt layout (frames == lines). Restart the harness afterwards.

Requirements

  • zstd CLI on PATH (Debian/Ubuntu: apt install zstd).
  • The known-type allowlist is conservative; pass extraKnownTypes to fix if a type is actually known to the running harness.

Safety

  • Never writes in place: backup → rebuild to temp → verify → atomic rename.
  • Scan is strictly read-only.