# dsh-session-html

[English](README.md) | 中文

> 将 DeepSeek Harness Session 树导出为一个离线、Pi 风格的 HTML 文件。

导出体验的设计灵感来自 [Pi 项目](https://github.com/earendil-works/pi) 的 `/export` HTML 流程，尤其参考了其 [`export-html` 实现](https://github.com/earendil-works/pi/tree/main/packages/coding-agent/src/core/export-html)。本插件将这套展示方式适配到 DeepSeek Harness 的 Session 事件和 subagent 树。

## 安装

```sh
dsh plugin --profile web add dsh-session-html
```

如果 `dsh web` 已经在运行，安装后请停止并重新启动，使静态 client bundle 生效。

## Export HTML

打开要导出的 Session，然后任选一种方式：

- 点击 Session 右上角的 **Export HTML**；或
- 运行 `/export-html`。
