dsh-porter
DiscoveredDSH session data ops: cross-root migrate (cwd convert), inspect, repair, format convert. Zero dsh dependency.
dsh-porter
DSH 会话数据运维 CLI:跨根迁移(含 workspace 归属同步)、体检、修复、格式转换。零 dsh 依赖。
DSH 会话文件不能直接复制迁移(cwd 路径编码写在数据里、格式严格、归属状态分离)——dsh-porter 处理这些。详见 docs/format.md。
Install
npm install -g dsh-porter
Requires Node >= 20.11.
Quick Start
# 体检数据根
dsh-porter inspect ~/.dsh
# 迁移预览 → 执行(Windows 根 → WSL 根)
dsh-porter migrate /mnt/c/Users/1/.dsh ~/.dsh --direction to-wsl --dry-run
dsh-porter migrate /mnt/c/Users/1/.dsh ~/.dsh --direction to-wsl
Commands
| Command | Description |
|---|---|
| `migrate | to-win |
| `inspect <session | root>` |
| `convert | plain` |
repair <file> | 修复损坏会话(torn 截断/污染隔离) |
archive <src> <dst> | 归档:迁移 + 两阶段删源 |
所有命令支持 --json 与语义化退出码(0 成功 / 1 部分失败 / 2 用法 / 3 环境)。
Research
- docs/format.md — DSH 会话格式研究(帧结构 / header schema / 兼容约束;生态内首份公开文档)
Test
npm test
License
MIT
Comments
Loading…
Similar plugins
Cross-version session migration for DSH: sweeps legacy session stores (v0 plaintext, .zstd and .zip exports), re-pins the header cwd to the target workspace and drops sessions in so the persistence la
★ 0
NOASSERTION
JavaScript
dsh plugin --profile web add dsh-session-migrateby yvban
DSH plugin: move sessions between workspaces safely — frame-level zstd header rewrite, byte-level verification, full-directory backup, live membership update
★ 0
MIT
JavaScript
Oct 14, 2026
dsh plugin --profile web add dsh-session-moverby kira905
DSH web plugin that browses, previews, restores and deletes archived sessions that were moved out of the sessions directory.
★ 2
AGPL-3.0
JavaScript
Nov 9, 2026
dsh plugin --profile web add @kira905/dsh-butler-archiveby strikesuitzero
Moves the DSH temp cache to a configurable directory and cleans it with an allowlist; manages archived sessions and workspace temp folders. Bilingual (EN/ZH). MIT.
★ 0
MIT
JavaScript
Nov 9, 2026
dsh plugin --profile web add dsh-cache-cleanerby zzdhsxk
Repairs legacy DSH session logs that the current build refuses to migrate, recovering missing tool-call ids and names from the log itself and verifying each repair against the real v0 to v3 migration
★ 1
MIT
JavaScript
Sep 11, 2026
dsh plugin --profile web add dsh-session-migration-repairCross-session reference (mention) plugin — paste @[label](dsh-session:…) into any session, including one in another workspace, and the host injects the referenced session snapshot for the model to rea
★ 0
dsh plugin --profile web add dsh-session-ref