Skills and processes declare their moments, and the UI for moments (milestone 458 steps 5–6) #202
@@ -209,7 +209,8 @@ async def test_an_installs_own_mapping_and_removal_both_count():
|
|||||||
own = SimpleNamespace(tool="mcp__deploy__ship", match="", moment="work.deliver", effect="add")
|
own = SimpleNamespace(tool="mcp__deploy__ship", match="", moment="work.deliver", effect="add")
|
||||||
assert "ship" in await _reachable({"work.deliver"}, [own])
|
assert "ship" in await _reachable({"work.deliver"}, [own])
|
||||||
gone = SimpleNamespace(tool="AskUserQuestion", match="", moment="reply.ask", effect="remove")
|
gone = SimpleNamespace(tool="AskUserQuestion", match="", moment="reply.ask", effect="remove")
|
||||||
assert await _reachable({"reply.ask"}, [gone]) == []
|
assert "askuserquestion" in await _reachable({"reply.ask"})
|
||||||
|
assert "askuserquestion" not in await _reachable({"reply.ask"}, [gone])
|
||||||
|
|
||||||
|
|
||||||
# ── the plugin routes ───────────────────────────────────────────────────
|
# ── the plugin routes ───────────────────────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user