dsh-plugins (dsh-mnemon-sync)
summerscar/dsh-plugins/plugins/dsh-mnemon-sync
给 dsh-mnemon 做备份与恢复:它的三类记忆组件(记忆空间、项目档案、运行时记忆)可任选,打包到 S3 兼容存储或 WebDAV,之后可浏览备份列表并只恢复选中的部分。SQLite 库经 node:sqlite 的 backup() 在线复制,写入方同时写也不会撕开副本;每个文件带 SHA-256,上传前校验一次、恢复前再校验一次;恢复默认只做预览,写回数据库前会先删掉残留的 -wal/-shm。备份文件名是 mnemon-sync-<设备名>-<时间戳>.zip,多台机器备份到同一目录也能分辨来源。定时器只有一个,间隔从每小时到每周;凭据存在 DSH profile 之外的 0600 文件里;除 Node 外没有其他依赖。
安装
dsh plugin --profile web add github:summerscar/dsh-plugins该插件位于仓库的 plugins/dsh-mnemon-sync 子路径下。
README
dsh-plugins
简体中文 / English
DeepSeek Harness (DSH) plugins by summerscar. Browse install commands and each plugin's documentation on the plugin site.
Plugins
| Package | What it does |
|---|---|
@summerscar/dsh-mnemon-sync | Sync backup: back up dsh-mnemon memory spaces, project documents and runtime memory to S3-compatible storage or WebDAV, with scheduled backups and selective restore. |
Install
Replace web with your profile name and restart the profile after installing.
dsh plugin --profile web add @summerscar/dsh-mnemon-sync
To browse the plugin list in DSH, enable the experimental Custom Plugin Market bundle, then choose Plugins → Discover → Add index source and enter:
https://raw.githubusercontent.com/summerscar/dsh-plugins/main/index.json
The same source provides list updates. DSH asks for confirmation before installing any plugin.
Development
Requires Node.js 24+ and pnpm 11.
pnpm install
pnpm check
The code is the developer documentation. Releases follow the release guide.
Plugin lifecycle
| Package | Lifecycle | Notes |
|---|---|---|
| @summerscar/dsh-mnemon-sync | Published (published) | Published on npm; subsequent versions follow the normal update workflow. |
License
SATA License 2.1. Versions up to and including 0.1.11 published on npm remain MIT.