oclaw/interfaces/gateway
oliver d14e9d3596 feat(persistence): PostgreSQL assistant store, chat persist fixes, gateway scripts
- Add SQLAlchemy Core repos, pg adapter/compat, assistant_store factory, Alembic bootstrap and migration/cutover scripts.

- Harden chat_message writes (NUL scrub for PG), turn_uuid on attempt failure, WS turn_runner fallbacks and gateway executed_turn_uuid init.

- start_gateway: log paths, PS7 stderr handling via cmd, background stdout/stderr redirect; runtime assistant_runtime_log_dir export.

- Ops: clear_all_chat_sessions with PG-only --postgresql and env-gated wipe; clear_postgres_chat_sessions.ps1.

- Tests: SA repos, pg compat, persist fallback, smoke env isolation; CI and docs touch-ups.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 09:33:50 +08:00
..
server_methods refactor: root-package imports (svc/runtime/interfaces) and fix PYTHONPATH 2026-05-13 14:51:17 +08:00
__init__.py 初始化:独立 oclaw 仓库首提交 2026-04-24 22:31:22 +08:00
context_builder.py refactor: root-package imports (svc/runtime/interfaces) and fix PYTHONPATH 2026-05-13 14:51:17 +08:00
dispatcher.py refactor: root-package imports (svc/runtime/interfaces) and fix PYTHONPATH 2026-05-13 14:51:17 +08:00
http_adapter.py feat(persistence): PostgreSQL assistant store, chat persist fixes, gateway scripts 2026-05-14 09:33:50 +08:00
python_extensions_loader.py refactor: root-package imports (svc/runtime/interfaces) and fix PYTHONPATH 2026-05-13 14:51:17 +08:00
README.gateway.md 重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。 2026-04-25 01:24:23 +08:00
server_plugins.py refactor: root-package imports (svc/runtime/interfaces) and fix PYTHONPATH 2026-05-13 14:51:17 +08:00
server_startup_plugins.py refactor: root-package imports (svc/runtime/interfaces) and fix PYTHONPATH 2026-05-13 14:51:17 +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 目录。