oclaw/interfaces/gateway
oliver 37522f492a feat: plan agent v2, global chat mode, and user-mode v2 flag sync
- 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>
2026-05-02 18:41:45 +08:00
..
server_methods feat: plan agent v2, global chat mode, and user-mode v2 flag sync 2026-05-02 18:41:45 +08:00
__init__.py 初始化:独立 oclaw 仓库首提交 2026-04-24 22:31:22 +08:00
context_builder.py 重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。 2026-04-25 01:24:23 +08:00
dispatcher.py 重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。 2026-04-25 01:24:23 +08:00
http_adapter.py 初始化:独立 oclaw 仓库首提交 2026-04-24 22:31:22 +08:00
python_extensions_loader.py 重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。 2026-04-25 01:24:23 +08:00
README.gateway.md 重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。 2026-04-25 01:24:23 +08:00
server_plugins.py 重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。 2026-04-25 01:24:23 +08:00
server_startup_plugins.py 重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。 2026-04-25 01:24:23 +08:00

gateway

gateway 是对 vendor/oclaw/oclaw/gateway 的 Python 重写目录。

当前状态

  • 已重写核心挂载链路:
    • server-plugins.ts -> server_plugins.py
    • server-startup-plugins.ts -> server_startup_plugins.py
  • 目标是保持网关启动期插件加载契约一致(加载插件、合并方法、返回 registry)。

迁移策略

  • 由于上游 gateway 规模很大(数百个 TS 文件),采用分批迁移:
    1. 启动与挂载链路(已完成)
    2. server-methods 与 auth
    3. protocol / server 子模块
    4. 其余工具与测试配套

如果你确认,我会继续下一批,优先迁移 server-methods 目录。