重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。

本次迁移将网关/通道/工具/技能/脚本与协议资源集中到新结构,统一路径常量与脚本转发机制,减少顶层噪音并保证运行与测试行为一致。

Made-with: Cursor
This commit is contained in:
oliver 2026-04-25 01:24:23 +08:00
parent ba3836f00f
commit 4a23b715a2
498 changed files with 2760 additions and 2200 deletions

View file

@ -4,14 +4,14 @@
关联文档:
- trace 字段与阶段对照:`docs/openclaw-trace-taxonomy.md`
- skill 安装/执行排障:`docs/openclaw-skill-troubleshooting.md`
- trace 字段与阶段对照:`docs/oclaw-trace-taxonomy.md`
- skill 安装/执行排障:`docs/oclaw-skill-troubleshooting.md`
---
## 1. 统一入口(只保留最新)
所有运维命令统一通过 `scripts/`,不要再使用 `python -m oclaw.ops ...` 或历史 `.bat` 方式。
所有运维命令统一通过 `scripts/`,不要再使用 `python -m oclaw.runtime.operations ...` 或历史 `.bat` 方式。
补充:工具脚本也统一放在 `scripts/`(例如 `seed_mcp_registry.py`、`ws_probe.py`)。
@ -272,7 +272,7 @@ powershell -ExecutionPolicy Bypass -File .\scripts\weixin_install.ps1
安装目录:
- `data/channel_sidecar/openclaw-weixin/`
- `data/channel_sidecar/oclaw-weixin/`
### 11.2 扫码登录(获取 bot token)
@ -282,8 +282,8 @@ powershell -ExecutionPolicy Bypass -File .\scripts\weixin_login.ps1
登录态写入:
- `data/channel_sidecar/openclaw-weixin/state/openclaw-weixin/accounts/*.json`
- `data/channel_sidecar/openclaw-weixin/state/openclaw-weixin/accounts.json`
- `data/channel_sidecar/oclaw-weixin/state/oclaw-weixin/accounts/*.json`
- `data/channel_sidecar/oclaw-weixin/state/oclaw-weixin/accounts.json`
### 11.3 启动微信 sidecar
@ -305,8 +305,8 @@ powershell -ExecutionPolicy Bypass -File .\scripts\weixin_stop.ps1
日志文件:
- `data/channel_sidecar/openclaw-weixin/logs/weixin_sidecar.log`
- `data/channel_sidecar/openclaw-weixin/logs/weixin_sidecar.err.log`
- `data/channel_sidecar/oclaw-weixin/logs/weixin_sidecar.log`
- `data/channel_sidecar/oclaw-weixin/logs/weixin_sidecar.err.log`
### 11.4 当前行为说明
@ -440,7 +440,7 @@ python .\scripts\wiki_auto_smoke_test.py
该脚本会:
- 投递一条 `wiki_capture` 任务到 `openclaw_task`
- 投递一条 `wiki_capture` 任务到 `oclaw_task`
- 轮询任务状态直到 `done/failed/timeout`
- 输出当前写入产物状态(`merged-turns.md`、`topic-index.json`、`index.json`、`LINT_REPORT.md`)