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
420abac9f1
refactor: root-package imports (svc/runtime/interfaces) and fix PYTHONPATH
...
- Rename platform/ to svc/ to avoid shadowing stdlib platform.
- Replace from oclaw.* with from svc/runtime/interfaces; update -m CLI paths.
- tests/conftest: prepend repo root to sys.path (no parent-folder package name).
- CI: paths and offline_eval script under repo root.
- Ops scripts: PYTHONPATH must be repo root for python -m runtime.* (fixes gateway/WhatsApp sidecar startup).
- Fix default oclaw.json path in tabular/file attachment limits; stabilize attachment test config.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-13 14:51:17 +08:00
f367779ad1
Docs: UME NE keyword matches host_name (netx-side)
...
Align ops playbook and netx_query_ume_ne_inventory description with netx API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-11 17:27:26 +08:00
1c90a3570e
Add netx UME NE inventory tools for ops
...
Expose netx_query_ume_ne_inventory and netx_get_ume_ne (GET /v1/ume/inventory/ne and /ne/{id}). Update ops playbook, ROLE_SYSTEM, env example comment, and unit tests.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-11 17:24:57 +08:00
df30b5902f
feat: 路径约定体系 & 自优化管道落地
2026-05-10 23:28:41 +08:00
6307ade480
fix(netx-tools): ignore system proxy for netx API calls
...
Set trust_env=False for netx tool HTTP clients so local netx endpoints are called directly instead of via host proxy settings.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-09 16:10:40 +08:00
f538409c08
feat(ops): add UME alarm playbook skill and tool guardrails
...
- Add ops-netx-ume-playbook skill (zh-CN) with presets, paging and SQL safety defaults
- Strengthen ops identity disclosure rules (always 'oclaw智能运维')
- Improve netx UME anchor context and add raw/aggregate/SQL tooling ergonomics
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-09 00:05:23 +08:00
b0e0c05d8a
feat: integrate netx ops data access and unify prompt/workspace runtime
...
Migrate prompt templates into runtime workspaces, add network_ops netx toolchain (latest batch injection, raw fields, SQL query), and align docs/tests/admin/runtime wiring so ops analysis can query netx detail data through stable role-scoped paths.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-03 23:54:38 +08:00
1c71a29ec1
将附件/多模态查询与编辑工具从 generalist 迁移到 public。
...
同时移除 network_ops 的转发壳文件,统一工具入口并更新对应测试引用,降低重复维护成本。
Made-with: Cursor
2026-05-01 04:13:43 +08:00
d0a66d190d
统一公共工具并移除 workspace 专家链路。
...
将文件/命令/Git/检索能力统一迁入 public,去除重复工具与 local_ 命名前缀,并重命名底层路径守卫模块为 path_guard 以提升语义清晰度。
Made-with: Cursor
2026-05-01 00:38:31 +08:00
4d9232f3b3
统一技能安装与 Skills 市场接入链路。
...
新增公开安装工具与多来源 provider 支持,补齐管理端与目录加载逻辑,并同步更新相关测试与文档以保证可见性和路径安全。
Made-with: Cursor
2026-04-30 22:17:50 +08:00
d5e30542aa
统一会话展示与专家路由行为,修复图片异步显示与气泡宽度问题。
...
本次移除 image 专家角色并同步更新路由/绑定/测试,同时增强 session-bootstrap 的共享与角色分层记忆加载,减少刷新依赖并提升默认可用性。
Made-with: Cursor
2026-04-29 22:16:49 +08:00
27b8698f9b
修复 memory wiki 工具加载异常并在系统提示词声明默认 wiki 路径。
...
为动态加载的 memory-wiki 模块补充 sys.modules 注册以避免 dataclass 导入期崩溃,同时在统一技能策略中明确默认根路径为 data/wiki,并新增工具加载回归测试。
Made-with: Cursor
2026-04-29 08:34:38 +08:00
24bf6e8eaf
拆分 gateway 主流程阶段,并修正 run_command 的 cwd 重定向观测语义。
...
将技能清单构建与调度决策抽离为独立阶段方法,降低 handle_turn 耦合;同时让 cwd_redirected_to_sandbox 能准确反映路径回退与沙箱重定向场景。
Made-with: Cursor
2026-04-27 15:55:36 +08:00
20362527e2
完善 agent/workspace 运行链路与工具结果治理测试覆盖,确保路由、标题生成与上下文截断行为稳定可回归。
...
同时将 data/wiki 用户数据纳入忽略规则,避免运行态数据被误纳入版本管理。
Made-with: Cursor
2026-04-26 15:55:46 +08:00
37a2ef35f4
实现附件处理链路的统一引用化与可检索增强,避免大文件/多模态内容直接撑爆上下文并提升工具可用性。
...
本次补齐 text/image/video/archive 的标准化处理、会话级工具守卫、回放压缩、配置与文档对齐,并修复表格与流式输出相关体验问题。
Made-with: Cursor
2026-04-26 15:25:50 +08:00
9d2900db02
完成运行时与启动链路的全面相对路径整改,统一以仓库根为路径基准并移除 oclaw 双层硬编码。
...
同时补齐路径回归测试与开源自检文档,确保从非仓库 cwd 启动时 workspace 根、配置和 wiki 路径仍稳定可用。
Made-with: Cursor
2026-04-26 09:22:42 +08:00
dbbe3add6a
重构主控编排与运行时预热链路,统一工作区提示词/专家调度协议并补齐 wiki 记忆注入与写回闭环。
...
同时收敛启动与运维脚本默认行为(含 wiki worker)、更新 Admin 可观测性与相关测试,降低首轮时延并提高运行稳定性。
Made-with: Cursor
2026-04-26 08:34:33 +08:00
4a23b715a2
重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。
...
本次迁移将网关/通道/工具/技能/脚本与协议资源集中到新结构,统一路径常量与脚本转发机制,减少顶层噪音并保证运行与测试行为一致。
Made-with: Cursor
2026-04-25 01:24:23 +08:00