feat: 添加 agent/sessions 会话记录备份

数据备份仓库应包含完整会话历史,便于恢复对话上下文。
This commit is contained in:
2026-06-26 15:52:31 +08:00
parent 50edff80f5
commit 3a1404f87a
49 changed files with 2749 additions and 3 deletions

View File

@@ -15,7 +15,8 @@ agent/
├── extensions-disabled/ # 已禁用扩展
├── skills/ # 已启用技能
├── skills-disabled/ # 已禁用技能
── prompts/ # 自定义提示词
── prompts/ # 自定义提示词
└── sessions/ # 会话记录
```
## 恢复
@@ -32,5 +33,4 @@ rsync -av --exclude node_modules sproutclaw-data/ /path/to/sproutclaw/.sproutcla
- `node_modules/` — npm 依赖,需本地安装
- `agent/npm/` — npm 缓存
- `agent/sessions/` — 会话记录
- `agent/bin/` — 运行时二进制