Files
sproutclaw-data/README.md
shumengya 3a1404f87a feat: 添加 agent/sessions 会话记录备份
数据备份仓库应包含完整会话历史,便于恢复对话上下文。
2026-06-26 15:52:31 +08:00

36 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# sproutclaw-data
SproutClaw 本地 `.sproutclaw` 配置备份仓库。
## 目录结构
```
agent/
├── settings.json # 运行配置
├── settings.example.json # 配置模板
├── auth.json # 认证信息
├── models.json # 模型配置
├── mcp.json # MCP 服务配置
├── extensions/ # 已启用扩展
├── extensions-disabled/ # 已禁用扩展
├── skills/ # 已启用技能
├── skills-disabled/ # 已禁用技能
├── prompts/ # 自定义提示词
└── sessions/ # 会话记录
```
## 恢复
将本仓库内容复制到 SproutClaw 项目根目录下的 `.sproutclaw/`
```bash
rsync -av --exclude node_modules sproutclaw-data/ /path/to/sproutclaw/.sproutclaw/
```
扩展目录中若有 `package.json`,需在各扩展目录下执行 `npm install` 安装依赖。
## 不包含的内容
- `node_modules/` — npm 依赖,需本地安装
- `agent/npm/` — npm 缓存
- `agent/bin/` — 运行时二进制