langbot-plugin 0.7.20__tar.gz → 0.7.22__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/ARCHITECTURE.md +15 -1
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/PKG-INFO +10 -1
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/README.md +9 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/README_CN.md +9 -0
- langbot_plugin-0.7.22/docs/box-instance-identity.md +39 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/docs/communication/apis/lb2rt.md +16 -2
- langbot_plugin-0.7.22/docs/execution_api.md +151 -0
- langbot_plugin-0.7.22/examples/workspace_runner_plugin/README.md +12 -0
- langbot_plugin-0.7.22/examples/workspace_runner_plugin/components/runner/default.py +35 -0
- langbot_plugin-0.7.22/examples/workspace_runner_plugin/components/runner/default.yaml +40 -0
- langbot_plugin-0.7.22/examples/workspace_runner_plugin/main.py +10 -0
- langbot_plugin-0.7.22/examples/workspace_runner_plugin/manifest.yaml +28 -0
- langbot_plugin-0.7.22/local_e2e/run_acceptance.py +79 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/pyproject.toml +5 -1
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/manifest.py +4 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/platform/message.py +3 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/__init__.py +2 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/resources.py +41 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/context.py +8 -0
- langbot_plugin-0.7.22/src/langbot_plugin/api/entities/permissions.py +31 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/__init__.py +2 -0
- langbot_plugin-0.7.22/src/langbot_plugin/api/proxies/execution.py +72 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/invocation.py +88 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/langbot_api.py +86 -22
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/runner/common.py +22 -0
- langbot_plugin-0.7.22/src/langbot_plugin/api/proxies/workspace.py +126 -0
- langbot_plugin-0.7.22/src/langbot_plugin/api/proxies/workspace_domains.py +1679 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/box/backend.py +35 -7
- langbot_plugin-0.7.22/src/langbot_plugin/box/identity.py +96 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/box/nsjail_backend.py +25 -7
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/box/runtime.py +35 -10
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/box/server.py +18 -4
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/__init__.py +4 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/run/handler.py +29 -18
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/entities/io/actions/enums.py +4 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/handler.py +24 -6
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/handlers/plugin.py +24 -20
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/plugin/mgr.py +10 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/plugin/worker_launcher.py +155 -25
- langbot_plugin-0.7.22/src/langbot_plugin/version.py +1 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/proxies/test_langbot_api.py +49 -0
- langbot_plugin-0.7.22/tests/api/test_execution_api_consistency.py +249 -0
- langbot_plugin-0.7.22/tests/api/test_workspace_domains.py +280 -0
- langbot_plugin-0.7.22/tests/api/test_workspace_operations.py +243 -0
- langbot_plugin-0.7.22/tests/box/conftest.py +7 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/box/test_backend.py +130 -9
- langbot_plugin-0.7.22/tests/box/test_identity.py +134 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/box/test_nsjail_backend.py +14 -3
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/box/test_server.py +2 -2
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/cli/run/test_runtime_handler.py +60 -0
- langbot_plugin-0.7.22/tests/cli/test_examples.py +55 -0
- langbot_plugin-0.7.22/tests/data/execution_api_catalog.json +5413 -0
- langbot_plugin-0.7.22/tests/e2e/test_box_instance_cleanup_docker.py +200 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/io/handlers/test_plugin_handler.py +13 -3
- langbot_plugin-0.7.22/tests/runtime/io/test_audit_correlation.py +140 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/io/test_handler.py +19 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_manager.py +50 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_worker_launcher.py +128 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/test_message.py +47 -0
- langbot_plugin-0.7.20/local_e2e/run_acceptance.py +0 -35
- langbot_plugin-0.7.20/src/langbot_plugin/version.py +0 -1
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/.github/workflows/box-docker.yml +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/.github/workflows/cla.yml +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/.github/workflows/publish-pypi.yaml +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/.github/workflows/publish.yml +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/.github/workflows/test.yml +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/.gitignore +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/.python-version +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/AGENTS.md +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/CLAUDE.md +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/CONTRIBUTING.md +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/LICENSE +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/data/.env.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/docs/Message.md +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/docs/PluginPages.md +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/docs/agent-runner-interactions.md +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/docs/agent-runner-pluginization/PROTOCOL_V1.md +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/docs/agent-runner-pluginization/README.md +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/docs/agent-runner-pluginization/SDK_RUNTIME_PLAN.md +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/docs/certified-plugins.md +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/docs/communication/runtime_plugin.md +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/docs/dependency-management.md +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/docs/langbot-plugin-social.png +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/docs/runner.md +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/docs/stateless-components.md +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/local_e2e/acceptance.json +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/local_e2e/registration_fanin.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/mypy.ini +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/scripts/check_action_consistency.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/scripts/runtime_resource_probe.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/agent_tools/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/agent_tools/asset_gateway.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/agent_tools/daemon.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/agent_tools/decorators.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/agent_tools/external_tools.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/agent_tools/mcp_access.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/agent_tools/mcp_bridge.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/agent_tools/mcp_config.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/agent_tools/mcp_protocol.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/agent_tools/mcp_stdio.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/abstract/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/abstract/platform/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/abstract/platform/adapter.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/abstract/platform/event_logger.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/base.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/command/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/command/command.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/common/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/common/event_listener.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/knowledge_engine/engine.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/page/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/parser/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/parser/parser.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/runner/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/runner/runner.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/tool/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/components/tool/tool.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/definition/plugin.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/command/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/command/context.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/command/errors.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/pipeline/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/pipeline/query.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/platform/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/platform/entities.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/platform/errors.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/platform/events.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/platform/logger.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/provider/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/provider/message.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/provider/prompt.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/provider/reasoning.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/provider/session.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/rag/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/rag/context.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/rag/enums.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/rag/errors.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/rag/models.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/resource/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/resource/tool.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/box.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/capabilities.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/compat.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/context.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/context_access.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/delivery.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/errors.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/event.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/input.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/interaction.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/manifest.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/page_results.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/permissions.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/result.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/run_ledger.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/runtime.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/runtime_registry.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/state.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/stats.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/steering.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/transcript.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/builtin/runner/trigger.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/events.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/entities/execution.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/base.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/event_context.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/execute_context.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/query_based_api.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/runner/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/runner/admin.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/runner/api.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/runner/box.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/runner/context.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/runner/ledger.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/runner/platform.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/runner/reply_stream.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/runner/resources.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/runner/state.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/api/proxies/runner/tracing.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/artifact.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/langbot-page-sdk.js +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/.env.example.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/.github/workflows/release.yml.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/.gitignore.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/.vscode/launch.json.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/README.md.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/assets/icon.svg.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/commands/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.py.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.yaml.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/event_listener/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/event_listener/default.py.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/event_listener/default.yaml.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.py.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.yaml.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/pages/{page_name}.html.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/pages/{page_name}.yaml.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/parser/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.py.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.yaml.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/runner/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.py.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.yaml.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/tools/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.py.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.yaml.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/main.py.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/manifest.yaml.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/readme/README_zh_Hans.md.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/assets/templates/requirements.txt.example +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/box/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/box/actions.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/box/client.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/box/e2b_backend.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/box/errors.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/box/host_backend.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/box/models.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/box/security.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/box/tenancy.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/certification.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/__main__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/commands/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/commands/buildplugin.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/commands/gencomponent.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/commands/initplugin.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/commands/login.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/commands/logout.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/commands/publish.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/commands/runplugin.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/gen/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/gen/renderer.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/i18n.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/locales/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/locales/en_US.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/locales/es_ES.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/locales/ja_JP.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/locales/th_TH.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/locales/vi_VN.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/locales/zh_Hans.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/locales/zh_Hant.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/run/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/run/controller.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/run/hotreload.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/utils/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/utils/cloudsv.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/utils/form.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/cli/utils/page_components.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/entities/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/entities/io/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/entities/io/actions/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/entities/io/context.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/entities/io/errors.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/entities/io/req.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/entities/io/resp.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/entities/marketplace.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/LICENSE +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/README.md +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/app.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/bounded_executor.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/context.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/event_loop_monitor.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/helper/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/helper/marketplace.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/helper/pkgmgr.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/connection.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/connections/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/connections/stdio.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/connections/ws.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/controller.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/controllers/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/controllers/stdio/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/controllers/stdio/client.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/controllers/stdio/server.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/controllers/ws/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/controllers/ws/client.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/controllers/ws/server.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/handlers/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/io/handlers/control.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/ops_metrics.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/plugin/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/plugin/artifact.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/plugin/container.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/plugin/dependency_environment.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/plugin/logbuffer.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/plugin/restart_coordinator.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/plugin/runner_service.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/plugin/worker_observability.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/plugin/worker_watchdog.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/security.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/runtime/settings.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/skill_store.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/storage.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/utils/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/utils/deadline.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/utils/discover/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/utils/discover/engine.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/utils/git_sync.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/utils/importutil.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/utils/log.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/utils/packaging.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/utils/page_components.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/utils/platform.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/src/langbot_plugin/workspace.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/definition/components/test_components.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/definition/components/test_imports.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/definition/test_manifest.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/definition/test_manifest_component_path.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/entities/builtin/runner/test_context_result.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/entities/builtin/runner/test_history_event_entities.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/entities/builtin/runner/test_interaction.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/entities/builtin/runner/test_run_ledger_entities.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/entities/builtin/test_command_context.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/entities/builtin/test_platform_logger.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/entities/builtin/test_provider_message.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/entities/builtin/test_rag_models.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/entities/test_context.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/entities/test_events.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/proxies/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/proxies/test_agent_run_api_proxy.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/proxies/test_base.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/proxies/test_box_api.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/proxies/test_history_event_api_proxy.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/proxies/test_llm_stream_ownership.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/proxies/test_query_based_api.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/proxies/test_reasoning_parameter.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/test_agent_tools_mcp_bridge.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/test_runner_handlers.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/test_runner_handlers_matrix.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/api/test_runner_public_apis.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/box/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/box/test_admission.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/box/test_artifact_cache_root.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/box/test_backend_selection.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/box/test_client.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/box/test_e2b_backend.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/box/test_host_backend.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/box/test_runtime.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/box/test_skill_store.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/box/test_storage_analysis.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/cli/run/test_controller.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/cli/run/test_hotreload.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/cli/test_buildplugin.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/cli/test_cli_main.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/cli/test_gencomponent.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/cli/test_i18n_form.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/cli/test_initplugin.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/cli/test_login.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/cli/test_logout_publish.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/cli/test_page_components.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/cli/test_renderer.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/cli/test_runner_usages.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/cli/test_runplugin.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/e2e/Dockerfile.box-socket +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/e2e/Dockerfile.box-socket.dockerignore +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/e2e/standalone_runtime_eba_probe.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/e2e/test_box_socket_mounts.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/e2e/test_run_mount_isolation.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/entities/io/test_dependency_errors.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/entities/io/test_protocol.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/fixtures/eba_event_probe_plugin/.gitignore +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/fixtures/eba_event_probe_plugin/assets/icon.svg +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.yaml +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/fixtures/eba_event_probe_plugin/main.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/fixtures/eba_event_probe_plugin/manifest.yaml +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/helpers/__init__.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/helpers/protocol.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/packaging/test_installed_cli_blackbox.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/packaging/test_release_metadata.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/helper/test_marketplace.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/helper/test_pkgmgr.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/io/handlers/test_control_handler.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/io/handlers/test_import_contracts.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/io/handlers/test_legacy_file_chunk.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/io/test_action_consistency.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/io/test_connections.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/io/test_controllers.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/io/test_heartbeat_admission.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/io/test_stdio_server.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/io/test_stream_flow_control.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_artifact_store.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_container.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_dependency_environment.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_event_dispatch_real_worker.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_exact_dify_real_worker.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_exact_legacy_sdk_compat.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_installation_manager.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_legacy_shadow.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_mgr_runner.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_mode_resource_limits.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_restart_coordinator.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_shared_worker_subprocess.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_worker_plugin_identity.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/plugin/test_workload_isolation.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/test_app.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/test_bounded_executor.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/test_event_loop_monitor.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/test_ops_metrics.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/test_pull_api_handlers.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/runtime/test_security.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/test_artifact_materialization.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/test_certification.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/test_log.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/test_plugin_logbuffer.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/test_skill_store.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/test_storage.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/test_worker_observability.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/test_worker_watchdog.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/utils/test_cli_run_handler_packaging.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/utils/test_deadline.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/utils/test_discovery.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/utils/test_git_sync.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/utils/test_importutil.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/utils/test_packaging_utils.py +0 -0
- {langbot_plugin-0.7.20 → langbot_plugin-0.7.22}/tests/utils/test_platform.py +0 -0
|
@@ -255,7 +255,15 @@ bumped so pre-exception dependency environments are never silently reused.
|
|
|
255
255
|
Workers in the shared Runtime profile launch through nsjail with policy-owned
|
|
256
256
|
cgroup CPU, memory, and
|
|
257
257
|
PID limits plus file/process rlimits. If `require_hard_limits` is true, missing
|
|
258
|
-
nsjail or cgroup v2 delegation makes configuration fail closed.
|
|
258
|
+
nsjail or cgroup v2 delegation makes configuration fail closed. The Runtime
|
|
259
|
+
nests every worker cgroup under its own cgroup (`langbot-runtime/` for its own
|
|
260
|
+
processes, `langbot-plugin-workers/NSJAIL.*` for sandboxes, passed to nsjail as
|
|
261
|
+
`--cgroupv2_mount`) so the container memory limit and accounting cover all
|
|
262
|
+
sandboxes; the workers subtree is capped at the Runtime cgroup's `memory.max`
|
|
263
|
+
minus `LANGBOT_PLUGIN_RUNTIME_MEMORY_RESERVE_MB` (default 2048). Run the
|
|
264
|
+
Runtime container privileged in its private cgroup namespace and never
|
|
265
|
+
bind-mount the host `/sys/fs/cgroup`: delegation refuses the host root cgroup
|
|
266
|
+
because sandboxes there escape every container limit. Their dependency
|
|
259
267
|
tree is prepared in a separate nsjail and mounted read-only into the worker.
|
|
260
268
|
Artifact `.env` files are not loaded in the shared profile. The default
|
|
261
269
|
`oss_dev` profile prepares the same kind of persistent tree with direct pip and
|
|
@@ -502,6 +510,12 @@ Failed cleanup keeps the session fenced until a later acquire/delete retries it.
|
|
|
502
510
|
|
|
503
511
|
There is no supported `python -m langbot_plugin.box` entrypoint; use `lbp box`.
|
|
504
512
|
|
|
513
|
+
Box ownership is stable across restarts. `box/identity.py` resolves a configured
|
|
514
|
+
or persisted instance ID and holds its local ownership lock. Startup cleanup
|
|
515
|
+
only removes resources owned by that ID; RPC initialization cannot change it.
|
|
516
|
+
See [Box instance identity](docs/box-instance-identity.md) for configuration,
|
|
517
|
+
deployment persistence, and shared-daemon upgrade requirements.
|
|
518
|
+
|
|
505
519
|
## Backend Selection
|
|
506
520
|
|
|
507
521
|
Box can execute through multiple sandbox backends:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: langbot-plugin
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.22
|
|
4
4
|
Summary: This package contains the SDK, CLI for building plugins for LangBot, plus the runtime for hosting LangBot plugins
|
|
5
5
|
Project-URL: Homepage, https://langbot.app
|
|
6
6
|
Project-URL: Repository, https://github.com/langbot-app/langbot-plugin-sdk
|
|
@@ -117,11 +117,20 @@ harness execution policy, process launch details, authentication, workspace
|
|
|
117
117
|
selection, and provider-specific behavior belong to the runner/plugin package or
|
|
118
118
|
a deployment-owned remote daemon or managed agent platform.
|
|
119
119
|
|
|
120
|
+
## ExecutionAPI 操作一览与作用域说明
|
|
121
|
+
|
|
122
|
+
LangBot Core 通过统一的 `ExecutionAPI` facade 暴露 72 项核心业务能力。插件与 Agent Runner 统一经由该 facade 与 SDK 入口访问。
|
|
123
|
+
|
|
124
|
+
- **通用执行入口**: `api.execution.invoke(operation_id, **arguments)` 与 `api.execution.stream(...)`。
|
|
125
|
+
- **Box 沙箱代理扩展**: `LangBotAPIProxy` 现已提供 `@run_scoped` 的 `bind_box`, `import_box_attachments`, `export_box_files`。
|
|
126
|
+
- **完整清单与作用域契约**: 详见 [docs/execution_api.md](docs/execution_api.md)。
|
|
127
|
+
|
|
120
128
|
## Documentation
|
|
121
129
|
|
|
122
130
|
- Plugin development tutorial — https://langbot.app/docs/zh/plugin/dev/tutor
|
|
123
131
|
- Debugging the Runtime / CLI / SDK — https://langbot.app/docs/zh/develop/plugin-runtime
|
|
124
132
|
- Dev environment setup — https://langbot.app/docs/zh/develop/dev-config
|
|
133
|
+
- ExecutionAPI 操作一览与作用域说明 — [docs/execution_api.md](docs/execution_api.md)
|
|
125
134
|
|
|
126
135
|
## License
|
|
127
136
|
|
|
@@ -88,11 +88,20 @@ harness execution policy, process launch details, authentication, workspace
|
|
|
88
88
|
selection, and provider-specific behavior belong to the runner/plugin package or
|
|
89
89
|
a deployment-owned remote daemon or managed agent platform.
|
|
90
90
|
|
|
91
|
+
## ExecutionAPI 操作一览与作用域说明
|
|
92
|
+
|
|
93
|
+
LangBot Core 通过统一的 `ExecutionAPI` facade 暴露 72 项核心业务能力。插件与 Agent Runner 统一经由该 facade 与 SDK 入口访问。
|
|
94
|
+
|
|
95
|
+
- **通用执行入口**: `api.execution.invoke(operation_id, **arguments)` 与 `api.execution.stream(...)`。
|
|
96
|
+
- **Box 沙箱代理扩展**: `LangBotAPIProxy` 现已提供 `@run_scoped` 的 `bind_box`, `import_box_attachments`, `export_box_files`。
|
|
97
|
+
- **完整清单与作用域契约**: 详见 [docs/execution_api.md](docs/execution_api.md)。
|
|
98
|
+
|
|
91
99
|
## Documentation
|
|
92
100
|
|
|
93
101
|
- Plugin development tutorial — https://langbot.app/docs/zh/plugin/dev/tutor
|
|
94
102
|
- Debugging the Runtime / CLI / SDK — https://langbot.app/docs/zh/develop/plugin-runtime
|
|
95
103
|
- Dev environment setup — https://langbot.app/docs/zh/develop/dev-config
|
|
104
|
+
- ExecutionAPI 操作一览与作用域说明 — [docs/execution_api.md](docs/execution_api.md)
|
|
96
105
|
|
|
97
106
|
## License
|
|
98
107
|
|
|
@@ -71,11 +71,20 @@ lbp --help
|
|
|
71
71
|
- **Parser** —— 自定义消息 / 内容解析
|
|
72
72
|
- **Page** —— 嵌入 LangBot 管理面板的自定义网页
|
|
73
73
|
|
|
74
|
+
## ExecutionAPI 操作一览与作用域说明
|
|
75
|
+
|
|
76
|
+
LangBot Core 通过统一的 `ExecutionAPI` facade 暴露 69 项核心业务能力。插件与 Agent Runner 统一经由该 facade 与 SDK 入口访问。
|
|
77
|
+
|
|
78
|
+
- **通用执行入口**: `api.execution.invoke(operation_id, **arguments)` 与 `api.execution.stream(...)`。
|
|
79
|
+
- **Box 沙箱代理扩展**: `LangBotAPIProxy` 现已提供 `@run_scoped` 的 `bind_box`, `import_box_attachments`, `export_box_files`。
|
|
80
|
+
- **完整清单与作用域契约**: 详见 [docs/execution_api.md](docs/execution_api.md)。
|
|
81
|
+
|
|
74
82
|
## 文档
|
|
75
83
|
|
|
76
84
|
- 插件开发教程 —— https://langbot.app/docs/zh/plugin/dev/tutor
|
|
77
85
|
- 调试运行时 / CLI / SDK —— https://langbot.app/docs/zh/develop/plugin-runtime
|
|
78
86
|
- 开发环境配置 —— https://langbot.app/docs/zh/develop/dev-config
|
|
87
|
+
- ExecutionAPI 操作一览与作用域说明 —— [docs/execution_api.md](docs/execution_api.md)
|
|
79
88
|
|
|
80
89
|
## 许可证
|
|
81
90
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Box instance identity
|
|
2
|
+
|
|
3
|
+
Startup cleanup removes only sandbox containers labeled with the current Box
|
|
4
|
+
instance ID. Containers owned by other instances, including unlabeled legacy
|
|
5
|
+
containers, are retained. Docker and Podman filter by both `langbot.box=true`
|
|
6
|
+
and `langbot.box.instance_id`; nsjail requires both a matching session prefix
|
|
7
|
+
and an exact `instance_id` in the session's `meta.json`.
|
|
8
|
+
|
|
9
|
+
Identity precedence is `lbp box --instance-id`, `LANGBOT_BOX_INSTANCE_ID`, then
|
|
10
|
+
`instance_id` in `LANGBOT_BOX_CONFIG`. IDs contain 1–128 ASCII letters, digits,
|
|
11
|
+
dots, colons, underscores or hyphens and start with a letter or digit. NsJail metadata
|
|
12
|
+
checks prevent overlapping prefixes from confusing two owners.
|
|
13
|
+
|
|
14
|
+
Without explicit configuration, Box generates `instance-id` in its data
|
|
15
|
+
directory once and reuses it after restarts. Choose the directory with
|
|
16
|
+
`--data-dir` or `LANGBOT_BOX_DATA_DIR`; the default is `data/box` relative to the
|
|
17
|
+
working directory. Give each deployment its own persistent directory. Preserve
|
|
18
|
+
it across container recreation; do not copy it when cloning an instance. If
|
|
19
|
+
persistence fails, Box uses a random ID, warns, and skips startup cleanup.
|
|
20
|
+
|
|
21
|
+
An OS file lock is held for the runtime lifetime. A second runtime using the
|
|
22
|
+
same ID and data directory is rejected before cleanup. Failure to create the
|
|
23
|
+
lock directory/file disables cleanup. Locks are released on shutdown or process
|
|
24
|
+
exit. Explicitly reusing an ID with different data directories or on different
|
|
25
|
+
hosts is not detected: operators sharing a Docker daemon must assign distinct
|
|
26
|
+
IDs and must not run two owners of one ID concurrently.
|
|
27
|
+
|
|
28
|
+
Core-managed subprocesses receive Core's stable instance UUID. Standalone and
|
|
29
|
+
sidecar runtimes establish their identity before accepting RPC connections;
|
|
30
|
+
INIT does not change ownership or trigger cleanup and rejects a different
|
|
31
|
+
`instance_id`. Configure their ID at launch
|
|
32
|
+
or use a persistent data directory. Box identity is separate from the trusted
|
|
33
|
+
Core identity used for authorization.
|
|
34
|
+
|
|
35
|
+
Cleanup logs list selected containers/directories. Other Docker owners are
|
|
36
|
+
excluded by the daemon-side filter; nsjail logs skipped directories at DEBUG.
|
|
37
|
+
No automatic unlabeled cleanup is provided. Old runtimes retain their old
|
|
38
|
+
cleanup behavior until upgraded, so upgrade all runtimes sharing a daemon
|
|
39
|
+
before relying on isolation from their startup cleanup.
|
|
@@ -224,8 +224,22 @@ envelope. A stale removal is rejected.
|
|
|
224
224
|
```
|
|
225
225
|
|
|
226
226
|
`emitted_plugins` contains plugins whose event handlers ran. `response_sources`
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
attributes event-context changes to the plugin that made them:
|
|
228
|
+
|
|
229
|
+
- `reply_message_chain`: the plugin changed the deferred reply on the event.
|
|
230
|
+
- `prevent_default`: the plugin turned on `prevent_default`, i.e. took the
|
|
231
|
+
message over from the pipeline. Only the first plugin that sets the flag is
|
|
232
|
+
reported.
|
|
233
|
+
|
|
234
|
+
Consumers must ignore `kind` values they do not know.
|
|
235
|
+
|
|
236
|
+
When the Host sets `origin_attribution: true` on the event context, plugin-level
|
|
237
|
+
`invoke_llm`, `invoke_llm_stream` and `send_message` calls made while the event
|
|
238
|
+
handler runs add `origin_query_uuid` (the event's `query_uuid`) to their action
|
|
239
|
+
payload. Hosts that do not set the flag never receive the field, so their strict
|
|
240
|
+
input schemas keep working. LangBot uses it only to attribute monitoring records to the
|
|
241
|
+
triggering message, never for authorization. Calls made after the handler
|
|
242
|
+
returns (for example from a detached task) do not carry it.
|
|
229
243
|
|
|
230
244
|
## `list_tools`
|
|
231
245
|
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# ExecutionAPI 操作一览与作用域说明
|
|
2
|
+
|
|
3
|
+
LangBot Core 通过统一的 `ExecutionAPI` facade 暴露 72 项核心业务能力。插件与 Agent Runner 可以通过统一的授权契约与 SDK 入口调用这些能力。
|
|
4
|
+
|
|
5
|
+
## 作用域(Scopes)说明
|
|
6
|
+
|
|
7
|
+
ExecutionAPI 定义了严格的作用域划分,防止权限提升与越权访问:
|
|
8
|
+
|
|
9
|
+
| 作用域 | 标识 | 说明 |
|
|
10
|
+
| :--- | :--- | :--- |
|
|
11
|
+
| **Plugin** | `plugin` | 插件安装级别能力。仅在非 Run 上下文或具有插件完整 InstallationBinding 时可用。Run 上下文无法降级使用此类操作。 |
|
|
12
|
+
| **Run** | `run` | 单次 Agent Run 作用域。必须携带有效的 `run_id`,且在会话生命周期内严格受限,调用时自动校验该 Run 的授权范围(如 Tool、Box 等资源)。 |
|
|
13
|
+
| **Runner Admin** | `runner_admin` | 运行器管理级别能力(如 Run 查询、状态恢复等)。需要特定的运行器管理权限,支持根据 AgentRun 授权快照恢复过期的 Run 上下文。 |
|
|
14
|
+
| **Plugin or Run** | `plugin_or_run` | 双模作用域能力(如 LLM 调用、存储操作等)。在 Run 上下文中调用时携带 Run 授权与审计标识;在普通插件事件上下文调用时使用插件安装级别凭证。 |
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## SDK 调用方式
|
|
19
|
+
|
|
20
|
+
### 1. 通用 Execution 代理入口
|
|
21
|
+
|
|
22
|
+
SDK 在 `LangBotAPIProxy` 与 `RunnerAPIProxy`(即 `ctx.api`)上提供了通用的 `execution` 入口:
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
# 1. 单目调用 (Unary)
|
|
26
|
+
version_info = await api.execution.invoke("execution.get_langbot_version")
|
|
27
|
+
# 也可以省略 "execution." 前缀
|
|
28
|
+
version_info = await api.execution.invoke("get_langbot_version")
|
|
29
|
+
|
|
30
|
+
# 2. 流式调用 (Streaming)
|
|
31
|
+
async for chunk in api.execution.stream(
|
|
32
|
+
"execution.invoke_llm_stream",
|
|
33
|
+
llm_model_uuid="your-model-uuid",
|
|
34
|
+
messages=[{"role": "user", "content": "Hello"}],
|
|
35
|
+
):
|
|
36
|
+
print(chunk)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
在 Runner 上下文中(如 `ctx.api.execution.invoke(...)`),`run_id` 会由代理自动注入,确保上下文安全传递。
|
|
40
|
+
|
|
41
|
+
> **注意:存储类操作的调用限制**
|
|
42
|
+
>
|
|
43
|
+
> `set_binary_storage`、`get_binary_storage`、`delete_binary_storage`、`get_binary_storage_keys` 这 4 个操作属于底层 Runtime 转 LangBot Core 的存储协议动作(属于 `RuntimeToLangBotAction`)。Runtime 侧并未暴露面向插件进程的直接同名 action 处理函数,因此通过 `api.execution.invoke('get_binary_storage', ...)` 直接调用会提示 `Action ... not found`。
|
|
44
|
+
>
|
|
45
|
+
> 插件与 Runner 应对此使用 SDK 提供的专用存储代理方法:
|
|
46
|
+
> - 插件作用域存储:`api.set_plugin_storage` / `api.get_plugin_storage` / `api.delete_plugin_storage` / `api.get_plugin_storage_keys`
|
|
47
|
+
> - 工作区作用域存储:`api.set_workspace_storage` / `api.get_workspace_storage` / `api.delete_workspace_storage` / `api.get_workspace_storage_keys`
|
|
48
|
+
>
|
|
49
|
+
> Runtime 在接收到上述方法调用后,会自动解析插件身份与租户边界,组装 `owner_type` 与 `owner` 后转发至 Core 的二进制存储 ExecutionAPI。
|
|
50
|
+
|
|
51
|
+
### 2. Box 专用代理方法
|
|
52
|
+
|
|
53
|
+
在 `LangBotAPIProxy` 上,新增了与 Runner 一致的 Box 沙箱绑定与文件流转方法(均具备 `@run_scoped` 保护):
|
|
54
|
+
|
|
55
|
+
- `await api.bind_box(box_id: str) -> BoxBinding`: 绑定当前运行至指定 Box 沙箱。
|
|
56
|
+
- `await api.import_box_attachments(attachment_ids: list[str] | None = None) -> list[BoxFile]`: 将附件导入至绑定的 Box 沙箱。
|
|
57
|
+
- `await api.export_box_files(paths: list[str] | None = None) -> list[BoxFile]`: 从 Box 沙箱导出生成的文件。
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## 72 项操作完整清单
|
|
62
|
+
|
|
63
|
+
本表与 `tests/data/execution_api_catalog.json`(由 LangBot Core 的 `scripts/export_execution_catalog.py` 导出)一致,由 `tests/api/test_execution_api_consistency.py` 校验。
|
|
64
|
+
|
|
65
|
+
| 操作 ID (Operation ID) | 作用域 (Scope) | 副作用 (Side Effect) | 流式 (Streaming) | 描述 |
|
|
66
|
+
| :--- | :--- | :--- | :--- | :--- |
|
|
67
|
+
| `execution.reply_message` | `plugin` | 是 | 否 | 回复消息到当前查询来源 |
|
|
68
|
+
| `execution.get_bot_uuid` | `plugin` | 否 | 否 | 获取当前查询关联的机器人 UUID |
|
|
69
|
+
| `execution.set_query_var` | `plugin` | 是 | 否 | 设置当前查询变量 |
|
|
70
|
+
| `execution.get_query_var` | `plugin` | 否 | 否 | 获取当前查询变量 |
|
|
71
|
+
| `execution.get_query_vars` | `plugin` | 否 | 否 | 获取当前查询的所有变量 |
|
|
72
|
+
| `execution.create_new_conversation` | `plugin` | 是 | 否 | 为当前查询创建新会话 |
|
|
73
|
+
| `execution.get_langbot_version` | `plugin_or_run` | 否 | 否 | 获取 LangBot Core 版本与 API 特性 |
|
|
74
|
+
| `execution.get_bots` | `plugin` | 否 | 否 | 获取已配置的机器人列表 |
|
|
75
|
+
| `execution.get_bot_info` | `plugin` | 否 | 否 | 获取指定机器人的详细信息 |
|
|
76
|
+
| `execution.send_message` | `plugin_or_run` | 是 | 否 | 向目标实体主动发送消息 |
|
|
77
|
+
| `execution.call_platform_api` | `plugin_or_run` | 是 | 否 | 调用底层平台通信 API |
|
|
78
|
+
| `execution.reply_stream` | `run` | 是 | 否 | 更新、结束或中止当前运行的增量回复流 |
|
|
79
|
+
| `execution.request_interaction` | `run` | 是 | 否 | 向用户发起阻塞式人工交互(表单 / 确认 / 选择),等待提交或超时 |
|
|
80
|
+
| `execution.get_llm_models` | `plugin` | 否 | 否 | 列出可用 LLM 模型 UUID 列表 |
|
|
81
|
+
| `execution.count_tokens` | `plugin_or_run` | 否 | 否 | 计算指定消息链的 Token 数量 |
|
|
82
|
+
| `execution.invoke_llm` | `plugin_or_run` | 是 | 否 | 单目同步调用大语言模型 |
|
|
83
|
+
| `execution.invoke_llm_stream` | `plugin_or_run` | 是 | 是 | 流式调用大语言模型 |
|
|
84
|
+
| `execution.call_tool` | `plugin_or_run` | 是 | 否 | 调用工具(Tool)执行能力 |
|
|
85
|
+
| `execution.get_tool_detail` | `plugin_or_run` | 否 | 否 | 获取工具定义及参数模式 |
|
|
86
|
+
| `execution.set_binary_storage` | `plugin_or_run` | 是 | 否 | 设置二进制键值存储 |
|
|
87
|
+
| `execution.get_binary_storage` | `plugin_or_run` | 否 | 否 | 读取二进制键值存储 |
|
|
88
|
+
| `execution.delete_binary_storage` | `plugin_or_run` | 是 | 否 | 删除指定键的二进制存储 |
|
|
89
|
+
| `execution.get_binary_storage_keys` | `plugin_or_run` | 否 | 否 | 列出二进制存储键名 |
|
|
90
|
+
| `execution.get_config_file` | `plugin` | 否 | 否 | 读取插件配置文件 |
|
|
91
|
+
| `execution.invoke_embedding` | `plugin_or_run` | 是 | 否 | 调用文本向量嵌入模型 |
|
|
92
|
+
| `execution.invoke_rerank` | `plugin_or_run` | 是 | 否 | 调用重排(Rerank)模型 |
|
|
93
|
+
| `execution.vector_upsert` | `plugin` | 是 | 否 | 插入或更新向量数据 |
|
|
94
|
+
| `execution.vector_search` | `plugin` | 否 | 否 | 执行向量相似度检索 |
|
|
95
|
+
| `execution.vector_delete` | `plugin` | 是 | 否 | 删除特定向量数据 |
|
|
96
|
+
| `execution.vector_list` | `plugin` | 否 | 否 | 列出向量集合中的条目 |
|
|
97
|
+
| `execution.get_knowledge_file_stream` | `plugin` | 是 | 否 | 流式读取知识库文件内容 |
|
|
98
|
+
| `execution.list_parsers` | `plugin` | 否 | 否 | 列出可用的解析器 |
|
|
99
|
+
| `execution.invoke_parser` | `plugin` | 是 | 否 | 调用解析器插件解析文件 |
|
|
100
|
+
| `execution.list_knowledge_bases` | `plugin` | 否 | 否 | 列出插件可访问的知识库 |
|
|
101
|
+
| `execution.retrieve_knowledge` | `plugin_or_run` | 否 | 否 | 检索指定知识库中的切片内容 |
|
|
102
|
+
| `execution.list_pipeline_knowledge_bases` | `plugin` | 否 | 否 | 列出当前查询所属流水线绑定的知识库 |
|
|
103
|
+
| `execution.retrieve_knowledge_base` | `plugin_or_run` | 否 | 否 | 检索指定知识库切片(兼容入口) |
|
|
104
|
+
| `execution.get_prompt` | `run` | 否 | 否 | 获取当前运行预处理后的有效 Prompt |
|
|
105
|
+
| `execution.history_page` | `run` | 否 | 否 | 分页获取当前会话的历史交互记录 |
|
|
106
|
+
| `execution.history_search` | `run` | 否 | 否 | 在当前会话历史中搜索消息 |
|
|
107
|
+
| `execution.event_get` | `run` | 否 | 否 | 获取特定历史事件的详情 |
|
|
108
|
+
| `execution.event_page` | `run` | 否 | 否 | 分页读取当前会话的事件记录 |
|
|
109
|
+
| `execution.steering_pull` | `run` | 是 | 否 | 拉取用户在运行中追加的引导消息 |
|
|
110
|
+
| `execution.state_get` | `run` | 否 | 否 | 获取 Agent 作用域状态值 |
|
|
111
|
+
| `execution.state_set` | `run` | 是 | 否 | 设置 Agent 作用域状态值 |
|
|
112
|
+
| `execution.state_delete` | `run` | 是 | 否 | 删除 Agent 状态值 |
|
|
113
|
+
| `execution.state_list` | `run` | 否 | 否 | 列出指定作用域下的运行状态键 |
|
|
114
|
+
| `execution.get_box_status` | `plugin_or_run` | 否 | 否 | 获取 Box 沙箱服务运行状态 |
|
|
115
|
+
| `execution.list_boxes` | `plugin_or_run` | 否 | 否 | 列出当前工作区中可用的 Box 沙箱 |
|
|
116
|
+
| `execution.acquire_box` | `plugin_or_run` | 是 | 否 | 申请或复用 Box 沙箱实例 |
|
|
117
|
+
| `execution.bind_box` | `run` | 是 | 否 | 将特定 Box 实例与当前运行绑定 |
|
|
118
|
+
| `execution.import_box_attachments` | `run` | 是 | 否 | 导入附件至绑定的 Box 沙箱 |
|
|
119
|
+
| `execution.export_box_files` | `run` | 是 | 否 | 导出 Box 沙箱生成的文件 |
|
|
120
|
+
| `execution.run_get` | `runner_admin` | 否 | 否 | 管理员查询指定 Agent Run 状态 |
|
|
121
|
+
| `execution.run_list` | `runner_admin` | 否 | 否 | 管理员分页查询历史 Agent Run 列表 |
|
|
122
|
+
| `execution.run_events_page` | `runner_admin` | 否 | 否 | 分页读取指定运行的事件 |
|
|
123
|
+
| `execution.run_cancel` | `runner_admin` | 是 | 否 | 取消指定运行(Runner 管理) |
|
|
124
|
+
| `execution.run_append_result` | `runner_admin` | 是 | 否 | 向指定运行追加结果(Runner 管理) |
|
|
125
|
+
| `execution.run_finalize` | `runner_admin` | 是 | 否 | 结束指定运行并写入最终状态 |
|
|
126
|
+
| `execution.runner_list` | `runner_admin` | 否 | 否 | 列出已注册的 Runner |
|
|
127
|
+
| `execution.runtime_register` | `runner_admin` | 是 | 否 | 注册外部 Runtime |
|
|
128
|
+
| `execution.runtime_heartbeat` | `runner_admin` | 是 | 否 | 外部 Runtime 心跳上报 |
|
|
129
|
+
| `execution.runtime_list` | `runner_admin` | 否 | 否 | 列出已注册的外部 Runtime |
|
|
130
|
+
| `execution.runtime_reconcile` | `runner_admin` | 是 | 否 | 清理心跳超时的外部 Runtime |
|
|
131
|
+
| `execution.run_stats` | `runner_admin` | 否 | 否 | 查询工作区内 Agent Run 运行统计 |
|
|
132
|
+
| `execution.runtime_stats` | `runner_admin` | 否 | 否 | 获取外部 Runtime 统计信息 |
|
|
133
|
+
| `execution.runner_stats` | `runner_admin` | 否 | 否 | 获取 Runner 统计信息 |
|
|
134
|
+
| `execution.run_claim` | `runner_admin` | 是 | 否 | 为外部 Runtime 认领待执行的运行 |
|
|
135
|
+
| `execution.run_renew_claim` | `runner_admin` | 是 | 否 | 续期对运行的认领 |
|
|
136
|
+
| `execution.run_release_claim` | `runner_admin` | 是 | 否 | 释放对运行的认领 |
|
|
137
|
+
| `execution.list_application_operations` | `run` | 否 | 否 | 列出本次运行被授权的 ApplicationAPI 工作区操作及其 schema |
|
|
138
|
+
| `execution.call_application_operation` | `run` | 是 | 否 | 以处理器身份调用本次运行被授权的 ApplicationAPI 工作区操作 |
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## 内部通信/传输动作审计说明
|
|
143
|
+
|
|
144
|
+
以下 6 个底层动作属于运行时传输控制与引导动作,不对外作为业务能力暴露在 `ExecutionAPI` 中:
|
|
145
|
+
|
|
146
|
+
1. `__ping`: WebSocket 心跳保活动作。
|
|
147
|
+
2. `__file_chunk`: 底层文件传输协议分块帧。
|
|
148
|
+
3. `__stream_ack`: 流式背压确认帧。
|
|
149
|
+
4. `__cancel_action`: 底层通信动作取消信号。
|
|
150
|
+
5. `initialize_plugin_settings`: 插件安装初始配置引导。
|
|
151
|
+
6. `get_plugin_settings`: 插件运行时启动配置拉取。
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Workspace Runner Plugin Example
|
|
2
|
+
|
|
3
|
+
A minimal Runner plugin demonstrating listing and executing authorized LangBot Application API workspace operations.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Plugin Manifest Declarations**: Requests `bot.list` and `stats.basic` in plugin-level `spec.permissions.workspace_operations`. A member must confirm installation grants in WebUI before the plugin can run.
|
|
8
|
+
- **Runtime Execution**:
|
|
9
|
+
- Invokes `await ctx.api.workspace.list()` to inspect authorized operations and domains.
|
|
10
|
+
- Invokes `await ctx.api.workspace.call("bot.list")` to directly call an authorized operation.
|
|
11
|
+
- Returns the results structured as JSON in the completion message.
|
|
12
|
+
- Used for end-to-end verification in LANG-228.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
from typing import AsyncGenerator
|
|
5
|
+
|
|
6
|
+
from langbot_plugin.api.definition.components.runner.runner import Runner
|
|
7
|
+
from langbot_plugin.api.entities.builtin.runner.context import RunnerContext
|
|
8
|
+
from langbot_plugin.api.entities.builtin.runner.result import RunnerResult
|
|
9
|
+
from langbot_plugin.api.entities.builtin.provider.message import Message
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DefaultWorkspaceRunner(Runner):
|
|
13
|
+
"""Minimal runner plugin demonstrating workspace operations listing and execution."""
|
|
14
|
+
|
|
15
|
+
async def run(self, ctx: RunnerContext) -> AsyncGenerator[RunnerResult, None]:
|
|
16
|
+
# 1. Call api.workspace.list()
|
|
17
|
+
list_res = await ctx.api.workspace.list()
|
|
18
|
+
|
|
19
|
+
# 2. Call api.workspace.call(...)
|
|
20
|
+
call_res = await ctx.api.workspace.call("bot.list")
|
|
21
|
+
|
|
22
|
+
reply_content = json.dumps(
|
|
23
|
+
{
|
|
24
|
+
"operations": list_res.get("operations", []),
|
|
25
|
+
"domains": list_res.get("domains", []),
|
|
26
|
+
"call_result": call_res,
|
|
27
|
+
},
|
|
28
|
+
ensure_ascii=False,
|
|
29
|
+
indent=2,
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
yield RunnerResult.run_completed(
|
|
33
|
+
ctx.run_id,
|
|
34
|
+
Message(role="assistant", content=reply_content),
|
|
35
|
+
)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
apiVersion: langbot/v1
|
|
2
|
+
kind: Runner
|
|
3
|
+
metadata:
|
|
4
|
+
name: default
|
|
5
|
+
label:
|
|
6
|
+
en_US: Workspace Operation Runner
|
|
7
|
+
zh_Hans: 工作区操作 Runner
|
|
8
|
+
description:
|
|
9
|
+
en_US: Minimal runner plugin that lists and calls workspace operations.
|
|
10
|
+
zh_Hans: 列出并调用工作区操作的最小 Runner 插件。
|
|
11
|
+
spec:
|
|
12
|
+
usages:
|
|
13
|
+
- agent
|
|
14
|
+
- event
|
|
15
|
+
events:
|
|
16
|
+
- "*"
|
|
17
|
+
supported_event_patterns:
|
|
18
|
+
- "*"
|
|
19
|
+
capabilities:
|
|
20
|
+
streaming: true
|
|
21
|
+
tool_calling: false
|
|
22
|
+
knowledge_retrieval: false
|
|
23
|
+
multimodal_input: false
|
|
24
|
+
skill_authoring: false
|
|
25
|
+
interrupt: false
|
|
26
|
+
steering: false
|
|
27
|
+
interactions: false
|
|
28
|
+
permissions:
|
|
29
|
+
models: []
|
|
30
|
+
tools: []
|
|
31
|
+
knowledge_bases: []
|
|
32
|
+
history: []
|
|
33
|
+
events: []
|
|
34
|
+
storage: []
|
|
35
|
+
interactions: []
|
|
36
|
+
config: []
|
|
37
|
+
execution:
|
|
38
|
+
python:
|
|
39
|
+
path: ./default.py
|
|
40
|
+
attr: DefaultWorkspaceRunner
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from langbot_plugin.api.definition.plugin import BasePlugin
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class WorkspaceRunnerPlugin(BasePlugin):
|
|
7
|
+
"""Entry point for the workspace runner example plugin."""
|
|
8
|
+
|
|
9
|
+
async def initialize(self) -> None:
|
|
10
|
+
return None
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
apiVersion: v1
|
|
2
|
+
kind: Plugin
|
|
3
|
+
metadata:
|
|
4
|
+
author: LangBot
|
|
5
|
+
name: WorkspaceRunnerExample
|
|
6
|
+
repository: https://github.com/langbot-app/langbot-plugin-sdk
|
|
7
|
+
version: 0.1.0
|
|
8
|
+
description:
|
|
9
|
+
en_US: Minimal runner plugin that calls workspace operations.
|
|
10
|
+
zh_Hans: 调用工作区操作的最小 Runner 插件示例。
|
|
11
|
+
label:
|
|
12
|
+
en_US: Workspace Runner Example
|
|
13
|
+
zh_Hans: 工作区 Runner 示例
|
|
14
|
+
spec:
|
|
15
|
+
permissions:
|
|
16
|
+
workspace_operations:
|
|
17
|
+
- bot.list
|
|
18
|
+
- stats.basic
|
|
19
|
+
capabilities: []
|
|
20
|
+
config: []
|
|
21
|
+
components:
|
|
22
|
+
Runner:
|
|
23
|
+
fromDirs:
|
|
24
|
+
- path: components/runner/
|
|
25
|
+
execution:
|
|
26
|
+
python:
|
|
27
|
+
path: main.py
|
|
28
|
+
attr: WorkspaceRunnerPlugin
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
import json
|
|
3
|
+
import subprocess
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
ROOT = Path("/home/rock/work/langbot-sdk-shared-local-e2e")
|
|
7
|
+
OUT = ROOT / "local_e2e" / "acceptance.json"
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def run(cmd):
|
|
11
|
+
p = subprocess.run(cmd, cwd=ROOT, text=True, capture_output=True)
|
|
12
|
+
return {
|
|
13
|
+
"command": cmd,
|
|
14
|
+
"exit_code": p.returncode,
|
|
15
|
+
"stdout": p.stdout[-4000:],
|
|
16
|
+
"stderr": p.stderr[-4000:],
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
results = {
|
|
21
|
+
"candidate_commit": subprocess.check_output(
|
|
22
|
+
["git", "rev-parse", "HEAD"], cwd=ROOT, text=True
|
|
23
|
+
).strip(),
|
|
24
|
+
"registration_fanin": run(
|
|
25
|
+
["uv", "run", "python", "local_e2e/registration_fanin.py"]
|
|
26
|
+
),
|
|
27
|
+
"shared_slots_subprocess": run(
|
|
28
|
+
[
|
|
29
|
+
"uv",
|
|
30
|
+
"run",
|
|
31
|
+
"pytest",
|
|
32
|
+
"tests/runtime/plugin/test_shared_worker_subprocess.py",
|
|
33
|
+
"-q",
|
|
34
|
+
]
|
|
35
|
+
),
|
|
36
|
+
"installation_lifecycle": run(
|
|
37
|
+
[
|
|
38
|
+
"uv",
|
|
39
|
+
"run",
|
|
40
|
+
"pytest",
|
|
41
|
+
"tests/runtime/plugin/test_installation_manager.py",
|
|
42
|
+
"-q",
|
|
43
|
+
]
|
|
44
|
+
),
|
|
45
|
+
"stdio_transport": run(
|
|
46
|
+
[
|
|
47
|
+
"uv",
|
|
48
|
+
"run",
|
|
49
|
+
"pytest",
|
|
50
|
+
"tests/runtime/io/test_connections.py",
|
|
51
|
+
"tests/runtime/io/test_controllers.py",
|
|
52
|
+
"-q",
|
|
53
|
+
]
|
|
54
|
+
),
|
|
55
|
+
}
|
|
56
|
+
results["assertions"] = {
|
|
57
|
+
"six_concurrent_large_registrations": results["registration_fanin"]["exit_code"]
|
|
58
|
+
== 0
|
|
59
|
+
and '"registered": 6' in results["registration_fanin"]["stdout"],
|
|
60
|
+
"two_workspaces_one_pid_two_slots": results["shared_slots_subprocess"]["exit_code"]
|
|
61
|
+
== 0,
|
|
62
|
+
"config_and_file_isolation": results["shared_slots_subprocess"]["exit_code"] == 0,
|
|
63
|
+
"sibling_detach_survives": results["shared_slots_subprocess"]["exit_code"] == 0,
|
|
64
|
+
"dedicated_process_separate": results["shared_slots_subprocess"]["exit_code"] == 0,
|
|
65
|
+
"lifecycle_failure_cancel_capacity_regressions": results["installation_lifecycle"][
|
|
66
|
+
"exit_code"
|
|
67
|
+
]
|
|
68
|
+
== 0,
|
|
69
|
+
"one_shot_stdio_control_lane": results["stdio_transport"]["exit_code"] == 0,
|
|
70
|
+
}
|
|
71
|
+
results["passed"] = all(results["assertions"].values())
|
|
72
|
+
OUT.write_text(json.dumps(results, ensure_ascii=False, indent=2) + "\n")
|
|
73
|
+
print(
|
|
74
|
+
json.dumps(
|
|
75
|
+
{"passed": results["passed"], "assertions": results["assertions"]},
|
|
76
|
+
ensure_ascii=False,
|
|
77
|
+
)
|
|
78
|
+
)
|
|
79
|
+
raise SystemExit(0 if results["passed"] else 1)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "langbot-plugin"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.22"
|
|
4
4
|
description = "This package contains the SDK, CLI for building plugins for LangBot, plus the runtime for hosting LangBot plugins"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -67,3 +67,7 @@ source = ["langbot_plugin"]
|
|
|
67
67
|
[tool.coverage.report]
|
|
68
68
|
show_missing = true
|
|
69
69
|
skip_covered = true
|
|
70
|
+
|
|
71
|
+
[tool.ruff.format]
|
|
72
|
+
# Generated by LangBot's scripts/generate_plugin_workspace_api.py; the drift test pins its exact output.
|
|
73
|
+
exclude = ["src/langbot_plugin/api/proxies/workspace_domains.py"]
|
|
@@ -183,6 +183,10 @@ class ComponentManifest(pydantic.BaseModel):
|
|
|
183
183
|
)
|
|
184
184
|
self._metadata = Metadata(**manifest["metadata"])
|
|
185
185
|
self._spec = manifest["spec"]
|
|
186
|
+
if manifest.get("kind") == "Plugin" and "permissions" in self._spec:
|
|
187
|
+
from langbot_plugin.api.entities.permissions import PluginPermissions
|
|
188
|
+
|
|
189
|
+
PluginPermissions.model_validate(self._spec["permissions"])
|
|
186
190
|
if manifest.get("kind") == "Runner":
|
|
187
191
|
try:
|
|
188
192
|
RunnerUsageSpec.model_validate(self._spec)
|
|
@@ -19,6 +19,7 @@ from langbot_plugin.api.entities.builtin.runner.resources import (
|
|
|
19
19
|
KnowledgeBaseResource,
|
|
20
20
|
SkillResource,
|
|
21
21
|
StorageResource,
|
|
22
|
+
WorkspaceOperationResource,
|
|
22
23
|
)
|
|
23
24
|
from langbot_plugin.api.entities.builtin.runner.runtime import AgentRuntimeContext
|
|
24
25
|
from langbot_plugin.api.entities.builtin.runner.state import (
|
|
@@ -124,6 +125,7 @@ __all__ = [
|
|
|
124
125
|
"KnowledgeBaseResource",
|
|
125
126
|
"SkillResource",
|
|
126
127
|
"StorageResource",
|
|
128
|
+
"WorkspaceOperationResource",
|
|
127
129
|
"AgentRuntimeContext",
|
|
128
130
|
"AgentRunState",
|
|
129
131
|
"VALID_STATE_SCOPES",
|
|
@@ -89,6 +89,42 @@ class StorageResource(pydantic.BaseModel):
|
|
|
89
89
|
"""Whether workspace storage is accessible."""
|
|
90
90
|
|
|
91
91
|
|
|
92
|
+
class WorkspaceOperationResource(pydantic.BaseModel):
|
|
93
|
+
"""Workspace operation resource available to the agent."""
|
|
94
|
+
|
|
95
|
+
id: str
|
|
96
|
+
"""Unique operation identifier (e.g. 'domain.operation')."""
|
|
97
|
+
|
|
98
|
+
domain: str | None = None
|
|
99
|
+
"""Domain category."""
|
|
100
|
+
|
|
101
|
+
label: dict[str, str] = pydantic.Field(default_factory=dict)
|
|
102
|
+
"""Localized labels."""
|
|
103
|
+
|
|
104
|
+
summary: str | None = None
|
|
105
|
+
"""Brief summary for model and UI."""
|
|
106
|
+
|
|
107
|
+
description: str | None = None
|
|
108
|
+
"""Detailed operation documentation."""
|
|
109
|
+
|
|
110
|
+
risk: str | None = None
|
|
111
|
+
"""Risk tier: 'read', 'write', 'dangerous'."""
|
|
112
|
+
|
|
113
|
+
side_effect: bool | None = None
|
|
114
|
+
"""Whether invoking causes side effects."""
|
|
115
|
+
|
|
116
|
+
permission: str | None = None
|
|
117
|
+
"""Required permission node."""
|
|
118
|
+
|
|
119
|
+
input_schema: dict[str, typing.Any] = pydantic.Field(default_factory=dict)
|
|
120
|
+
"""JSON schema for operation input."""
|
|
121
|
+
|
|
122
|
+
output_schema: dict[str, typing.Any] = pydantic.Field(default_factory=dict)
|
|
123
|
+
"""JSON schema for operation output."""
|
|
124
|
+
|
|
125
|
+
model_config = pydantic.ConfigDict(extra="allow")
|
|
126
|
+
|
|
127
|
+
|
|
92
128
|
class AgentResources(pydantic.BaseModel):
|
|
93
129
|
"""Resources available to an agent run.
|
|
94
130
|
|
|
@@ -113,3 +149,8 @@ class AgentResources(pydantic.BaseModel):
|
|
|
113
149
|
|
|
114
150
|
platform_capabilities: dict[str, typing.Any] = pydantic.Field(default_factory=dict)
|
|
115
151
|
"""Platform capabilities available."""
|
|
152
|
+
|
|
153
|
+
workspace_operations: list[WorkspaceOperationResource] = pydantic.Field(
|
|
154
|
+
default_factory=list
|
|
155
|
+
)
|
|
156
|
+
"""Authorized Application API operations for this run."""
|
|
@@ -42,6 +42,14 @@ class EventContext(WorkspaceExecutionScope):
|
|
|
42
42
|
is_prevent_postorder: bool = False
|
|
43
43
|
"""是否阻止后续插件的执行"""
|
|
44
44
|
|
|
45
|
+
origin_attribution: bool = False
|
|
46
|
+
"""Set by Hosts that accept ``origin_query_uuid`` on plugin actions.
|
|
47
|
+
|
|
48
|
+
When true, plugin-level calls made while handling this event report the
|
|
49
|
+
event's ``query_uuid`` so the Host can attribute monitoring records to the
|
|
50
|
+
triggering message. Older Hosts never set it and receive no extra field.
|
|
51
|
+
"""
|
|
52
|
+
|
|
45
53
|
# ========== APIs for plugins ==========
|
|
46
54
|
|
|
47
55
|
## ========= Query-based APIs =========
|