feat(sproutclaw): modularize webui, extensions, and agent config layout
Some checks failed
CI / build-check-test (push) Has been cancelled
Some checks failed
CI / build-check-test (push) Has been cancelled
Restructure local extensions into per-feature directories, split WebUI into backend modules with slash commands and systemd support, and track prompts/skills under .pi/agent for portable Gitea deployment. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
19
README.md
19
README.md
@@ -18,8 +18,11 @@
|
||||
| `packages/agent` | Agent 运行时、工具调用和状态管理 |
|
||||
| `packages/ai` | 多模型、多 provider 的 LLM 接入层 |
|
||||
| `packages/tui` | 终端 UI 渲染库 |
|
||||
| `.pi/agent/extensions/webui` | 网页对话入口(React 前端 + HTTP 服务) |
|
||||
| `.pi/agent/extensions/*.ts` | sproutclaw 本地扩展(中文启动页、命令安装等) |
|
||||
| `.pi/agent/extensions/webui` | 网页对话入口(React 前端 + `backend/` HTTP 服务 + systemd 集成) |
|
||||
| `.pi/agent/extensions/*/index.ts` | sproutclaw 本地扩展(中文启动页、状态行、命令安装等) |
|
||||
| `.pi/agent/prompts/` | 自定义 slash prompt(`cl`/`is`/`pr`/`wr` 等) |
|
||||
| `.pi/agent/skills/` | 可复用 Skills(Gitea、SSH、GitHub 等) |
|
||||
| `pi-built.sh` | 使用已构建 `dist/cli.js` 启动 Agent |
|
||||
| `scripts/sync-upstream.sh` | 合并上游 pi-mono 更新 |
|
||||
| `scripts/push-sproutclaw.sh` | 推送到 GitHub / Gitea |
|
||||
|
||||
@@ -33,12 +36,19 @@ npm run check
|
||||
./pi-test.sh
|
||||
```
|
||||
|
||||
运行本地源码版 Agent:
|
||||
运行本地源码版 Agent(开发调试):
|
||||
|
||||
```bash
|
||||
./pi-test.sh
|
||||
```
|
||||
|
||||
运行已构建版 Agent(日常更快):
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
./pi-built.sh
|
||||
```
|
||||
|
||||
启动 WebUI 时,在 TUI 中执行:
|
||||
|
||||
```text
|
||||
@@ -141,7 +151,8 @@ npm run build
|
||||
|
||||
- `showChangelogOnStartup` 设置项(关闭启动 What's New)
|
||||
- `.pi/agent/extensions/webui/` 网页 UI
|
||||
- `.pi/agent/extensions/startup-chinese.ts` 等本地扩展
|
||||
- `.pi/agent/extensions/startup-chinese/` 等本地扩展目录
|
||||
- `.pi/agent/extensions/webui/backend/` WebUI 后端模块化拆分
|
||||
- 本 README(仅 sproutclaw 说明,不含上游文档)
|
||||
|
||||
## 本地配置
|
||||
|
||||
Reference in New Issue
Block a user