mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-22 13:37:32 +08:00
Unified Workspace and execution APIs for LangBot (#2639). - Versioned Application API shared by HTTP, MCP, the Workspace assistant and plugins, with one authorization and error contract. - Execution API facade for every plugin and Runner action. - Plugin installation permissions: manifest declarations, member confirmation, capability ceilings, compatibility mode, revocation and audit. Typed Workspace API in the plugin SDK. - Processor tool configuration: workspace operations, event and bot tools, default tool sets for new Agents and Pipelines, and sensitive-tool warnings. - Plugin permission picker in the WebUI; LocalAgent declares every plugin-callable permission. - Documentation for plugin permissions and the Workspace API in English, Chinese and Japanese. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
482 B
Python
10 lines
482 B
Python
from langbot.pkg.api.context import ExecutionContext, RequestContext
|
|
from langbot.pkg.api.http.context import ExecutionContext as HTTPExecutionContext
|
|
from langbot.pkg.api.http.context import RequestContext as HTTPRequestContext
|
|
|
|
|
|
def test_application_context_types_are_http_independent_and_compatibly_reexported():
|
|
assert RequestContext is HTTPRequestContext
|
|
assert ExecutionContext is HTTPExecutionContext
|
|
assert RequestContext.__module__ == 'langbot.pkg.api.context'
|