mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 01:50:44 +08:00
完善 MCP/会话上下文治理并补齐搜索与诊断能力。
补充历史压缩与会话诊断链路,强化 tool pairing 与空响应兜底观测;完善 Admin MCP 导入/绑定与相关前端展示;新增 web_search_fast/web_fetch_clean 及多项测试与文档更新,并同步技能安装与角色绑定策略改进。 Made-with: Cursor
This commit is contained in:
parent
df91434936
commit
ae44cbcad5
43 changed files with 3549 additions and 57 deletions
|
|
@ -56,6 +56,28 @@ def test_auto_install_rollback_on_forced_error(tmp_path: Path) -> None:
|
|||
assert not (root / "_workspace" / "roll_me_back").exists()
|
||||
|
||||
|
||||
def test_auto_install_private_lane_skips_binding(tmp_path: Path) -> None:
|
||||
db = tmp_path / "ops.sqlite"
|
||||
store = SqliteStore(str(db))
|
||||
root = tmp_path / "skills"
|
||||
lane = root / "_workspace" / "generalist"
|
||||
out = auto_install_skill_from_payload(
|
||||
store=store,
|
||||
payload={
|
||||
"name": "lane_only_skill",
|
||||
"description": "demo",
|
||||
"body_markdown": "x",
|
||||
},
|
||||
skills_root=root,
|
||||
workspace_install_parent=lane,
|
||||
auto_bind=False,
|
||||
)
|
||||
assert out.ok is True
|
||||
assert out.auto_enabled is False
|
||||
assert out.binding_applied_roles == ()
|
||||
assert (lane / "lane_only_skill" / "SKILL.md").exists()
|
||||
|
||||
|
||||
def test_auto_install_enables_binding_for_all_roles(tmp_path: Path) -> None:
|
||||
db = tmp_path / "ops.sqlite"
|
||||
store = SqliteStore(str(db))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue