XiaoWind/dsh-vault0

dsh-vault

将所有对话和日志持久化保存在工作区文件夹内的 DSH 插件,支持通过复制文件夹完整恢复会话。

AI 分析

核心用途是实现工作区级别的对话数据便携化与备份。适合需要在多台设备间无缝迁移工作区、或希望将对话历史与项目代码一同管理的用户。

套件
dsh-vault
版本
0.1.0
授權
MIT
最近更新
2026年8月26日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:XiaoWind/dsh-vault

Usage

The vault runs automatically — no setup required. A /vault slash command provides visibility and manual control:

CommandResult
/vault statusShow vaulted workspaces and per-workspace session counts.
/vault restoreImport vaulted sessions/titles for known workspaces now.
/vault export(Re)write vault files from current persistence now.
/vault helpShow help.

How it behaves

  • Continuous mirroring. As a session appends events, they are written to the workspace's .dsh-vault/sessions/.jsonl in order. On session disposal the file is rewritten as a clean snapshot.
  • Automatic restore. At boot, and whenever a workspace is opened, the plugin imports any vault session missing from DSH persistence and applies the vaulted title. On a brand-new machine, opening the copied folder as a workspace triggers the same restore.
  • Portable paths. Session cwds are rebound to the workspace's current absolute path on import, so a folder copied to a different location restores cleanly.
  • Idempotent. Sessions already in persistence are never re-imported, and attaching/renaming is a no-op when nothing changed.

Configuration

No configuration is required. The plugin inserts with an empty config; the vault directory name (.dsh-vault) and the JSONL format are fixed so vaults stay interchangeable across machines.