mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 05:50:44 +08:00
- Add runtime/plan_agent_v2 package and shims; gateway/direct_loop/WS wiring - Admin chat: interaction mode and specialist only in user menu; session API stores memory_mode and execution_mode only - POST /admin/api/chat/user-mode mirrors plan_agent_version to AIA_EXPERT_PLAN_AGENT_V2_ENABLED (v2 to 1, v1 to 0) - Composer cleanup (hidden mode select, no reasoning toggle in meta bar); tests and _local/system.env.example Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| .. | ||
| server_methods | ||
| __init__.py | ||
| context_builder.py | ||
| dispatcher.py | ||
| http_adapter.py | ||
| python_extensions_loader.py | ||
| README.gateway.md | ||
| server_plugins.py | ||
| server_startup_plugins.py | ||
gateway
gateway 是对 vendor/oclaw/oclaw/gateway 的 Python 重写目录。
当前状态
- 已重写核心挂载链路:
server-plugins.ts->server_plugins.pyserver-startup-plugins.ts->server_startup_plugins.py
- 目标是保持网关启动期插件加载契约一致(加载插件、合并方法、返回 registry)。
迁移策略
- 由于上游
gateway规模很大(数百个 TS 文件),采用分批迁移:- 启动与挂载链路(已完成)
- server-methods 与 auth
- protocol / server 子模块
- 其余工具与测试配套
如果你确认,我会继续下一批,优先迁移 server-methods 目录。