Files
LangBot/tests/unit_tests/api/test_application_context.py
huanghuoguoguoandClaude Opus 5.5 97ef5b457d feat(api): provide Workspace and execution API foundations (#2648)
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>
2026-11-05 16:36:22 +08:00

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'