适配 Bailian WebParser 兼容接入并完善 sidecar 文档。

新增 WebParser 兼容工具与 MCP health/tools-sync 兼容模式,让 WebParser/sse 可注册到 agent 并暴露明确 schema;同时修复 mcp argv 环境变量展开并补齐微信 sidecar 纯本地化安装与文档说明。

Made-with: Cursor
This commit is contained in:
oliver 2026-05-01 17:40:52 +08:00
parent 329fb2239a
commit df91434936
16 changed files with 640 additions and 56 deletions

View file

@ -197,3 +197,18 @@ def test_run_command_does_not_follow_cd_state(tmp_path: Path, monkeypatch) -> No
# If run_command follows cd state this would be "subdir"; default should be data/workspace.
assert str(out_run.get("cwd") or "").replace("\\", "/").rstrip("/").endswith("/data/workspace")
def test_run_command_reads_db_toggle_without_ops_db_env(tmp_path: Path, monkeypatch) -> None:
monkeypatch.setenv("OPS_WORKSPACE_ROOT", str(tmp_path))
monkeypatch.delenv("OPS_ASSISTANT_DB_PATH", raising=False)
monkeypatch.setenv("AIA_ENABLE_RUN_COMMAND", "0")
db_file = tmp_path / "ops.sqlite"
from oclaw.platform.persistence.sqlite_store import SqliteStore
SqliteStore(str(db_file)).set_setting("AIA_ENABLE_RUN_COMMAND", "1")
monkeypatch.setattr("oclaw.platform.config.paths.db_path", lambda: str(db_file))
out = LocalAdapter().run_command(command="echo hi", timeout=10)
assert out.get("ok") is True, out