feat: 导出 SproutClaw .sproutclaw 配置
包含 extensions、skills、prompts、settings、auth、models、mcp 等配置。 排除 node_modules、npm 缓存、sessions 等运行时数据。
This commit is contained in:
36
README.md
Normal file
36
README.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# sproutclaw-data
|
||||
|
||||
SproutClaw 本地 `.sproutclaw` 配置备份仓库。
|
||||
|
||||
## 目录结构
|
||||
|
||||
```
|
||||
agent/
|
||||
├── settings.json # 运行配置
|
||||
├── settings.example.json # 配置模板
|
||||
├── auth.json # 认证信息
|
||||
├── models.json # 模型配置
|
||||
├── mcp.json # MCP 服务配置
|
||||
├── extensions/ # 已启用扩展
|
||||
├── extensions-disabled/ # 已禁用扩展
|
||||
├── skills/ # 已启用技能
|
||||
├── skills-disabled/ # 已禁用技能
|
||||
└── prompts/ # 自定义提示词
|
||||
```
|
||||
|
||||
## 恢复
|
||||
|
||||
将本仓库内容复制到 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/sessions/` — 会话记录
|
||||
- `agent/bin/` — 运行时二进制
|
||||
Reference in New Issue
Block a user