mirror of
https://github.com/bleak-ai/gcontext.git
synced 2026-08-11 13:19:23 +02:00
feat: solve command visibility
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user