oclaw/interfaces/gateway/server_methods/README.md
oliver 4a23b715a2 重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。
本次迁移将网关/通道/工具/技能/脚本与协议资源集中到新结构,统一路径常量与脚本转发机制,减少顶层噪音并保证运行与测试行为一致。

Made-with: Cursor
2026-04-25 01:24:23 +08:00

49 lines
1.6 KiB
Markdown

# server_methods
这是 `vendor/oclaw/oclaw/gateway/server-methods` 的 Python 重写目录。
## 当前已迁移
- `connect.ts` -> `connect.py`
- `commands.ts` -> `commands.py`
- `config.ts` -> `config.py`
- `channels.ts` -> `channels.py`
- `health.ts` -> `health.py`
- `logs.ts` -> `logs.py`
- `image.ts` -> `image.py`
- `doctor.ts` -> `doctor.py`
- `sessions.ts` -> `sessions.py`
- `chat.ts` -> `chat.py`
- `agent.ts` -> `agent.py`
- `agents.ts` -> `agents.py`
- `send.ts` -> `send.py`
- `skills.ts` -> `skills.py`
- `system.ts` -> `system.py`
- `cron.ts` -> `cron.py`
- `devices.ts` -> `devices.py`
- `models.ts` -> `models.py`
- `models-auth-status.ts` -> `models_auth_status.py`
- `push.ts` -> `push.py`
- `update.ts` -> `update.py`
- `voicewake.ts` -> `voicewake.py`
- `wizard.ts` -> `wizard.py`
- `tts.ts` -> `tts.py`
- `web.ts` -> `web.py`
- `tools-catalog.ts` -> `tools_catalog.py`
- `tools-effective.ts` -> `tools_effective.py`
- `talk.ts` -> `talk.py`
- `usage.ts` -> `usage.py`
- `exec-approvals.ts` -> `exec_approvals.py`
- `nodes-pending.ts` -> `nodes_pending.py`
- `nodes.ts` -> `nodes.py`
- `base-hash.ts` -> `base_hash.py`
- `restart-request.ts` -> `restart_request.py`
- `record-shared.ts` -> `record_shared.py`
- `attachment-normalize.ts` -> `attachment_normalize.py`
- `shared-types.ts` -> `shared_types.py`
- `types.ts` -> `types.py`
- `validation.ts` -> `validation.py`
## 迁移策略
- 先迁移低耦合基础方法与类型层。
- 再迁移高耦合方法(`chat.ts`、`sessions.ts`、`nodes.ts`、`agent.ts` 等)。
- 每批迁移后执行语法与单测校验,保证可持续推进。