mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-10 11:57:20 +00:00
feat(api): advertise extension operation capabilities
This commit is contained in:
@@ -29,6 +29,15 @@ SYSTEM_CAPABILITY_OPERATIONS = (
|
|||||||
'knowledge_base.get',
|
'knowledge_base.get',
|
||||||
'knowledge_base.file.store',
|
'knowledge_base.file.store',
|
||||||
'file.document.upload',
|
'file.document.upload',
|
||||||
|
'plugin.install.github',
|
||||||
|
'plugin.install.marketplace',
|
||||||
|
'plugin.install.local',
|
||||||
|
'plugin.upgrade',
|
||||||
|
'plugin.get',
|
||||||
|
'skill.install.github',
|
||||||
|
'skill.install.upload',
|
||||||
|
'mcp_server.get',
|
||||||
|
'mcp_server.test',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -514,6 +514,15 @@ async def test_api_key_context_returns_bound_identity_without_workspace_permissi
|
|||||||
'knowledge_base.get',
|
'knowledge_base.get',
|
||||||
'knowledge_base.file.store',
|
'knowledge_base.file.store',
|
||||||
'file.document.upload',
|
'file.document.upload',
|
||||||
|
'plugin.install.github',
|
||||||
|
'plugin.install.marketplace',
|
||||||
|
'plugin.install.local',
|
||||||
|
'plugin.upgrade',
|
||||||
|
'plugin.get',
|
||||||
|
'skill.install.github',
|
||||||
|
'skill.install.upload',
|
||||||
|
'mcp_server.get',
|
||||||
|
'mcp_server.test',
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
assert all(item == {'supported': True} for item in capabilities['operations'].values())
|
assert all(item == {'supported': True} for item in capabilities['operations'].values())
|
||||||
|
|||||||
Reference in New Issue
Block a user