feat: solve command visibility

This commit is contained in:
bernatsampera
2026-08-09 18:19:07 +02:00
parent 87d8575829
commit 07c8b76906
4 changed files with 86 additions and 20 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ def test_commands_ledger_pipe(project):
def test_register_framework_prompts_setup():
mcp = FastMCP("t")
assert commands.register_framework_prompts(mcp) == 1
assert commands.register_framework_prompts(mcp) == 2
async def go():
async with Client(mcp) as c:
+2 -1
View File
@@ -338,7 +338,8 @@ def test_state_files_are_resources(project):
return listed, file[0].text, folder[0].text, archived[0].text, blocked[0].text
listed, file_text, folder_text, archived_text, blocked_text = asyncio.run(go())
assert "gcontext://modules/m/index.md" in listed
assert any(u.startswith("agent://") and u.endswith("/modules/m") for u in listed)
assert any(u.startswith("agent://") and "modules" not in u and "connections" not in u for u in listed)
assert not any("secrets.env" in u for u in listed)
assert not any(u.startswith("gcontext://archive/") for u in listed)
assert file_text == "topic notes"