langbot-plugin 0.7.19__tar.gz → 0.7.20__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.19 → langbot_plugin-0.7.20}/ARCHITECTURE.md +10 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/PKG-INFO +1 -1
- langbot_plugin-0.7.20/docs/agent-runner-interactions.md +67 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/pyproject.toml +1 -1
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/abstract/platform/adapter.py +38 -1
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/platform/events.py +16 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/__init__.py +8 -4
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/context.py +24 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/input.py +1 -1
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/interaction.py +52 -7
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/result.py +0 -23
- langbot_plugin-0.7.20/src/langbot_plugin/api/proxies/runner/platform.py +119 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/resources.py +27 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.py.example +5 -9
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/e2b_backend.py +100 -29
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/run/handler.py +1 -1
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/io/actions/enums.py +1 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/handler.py +194 -32
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/handlers/plugin.py +25 -1
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/runner_service.py +6 -19
- langbot_plugin-0.7.20/src/langbot_plugin/utils/deadline.py +52 -0
- langbot_plugin-0.7.20/src/langbot_plugin/version.py +1 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/runner/test_interaction.py +2 -17
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_agent_run_api_proxy.py +85 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/test_runner_handlers.py +1 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/test_runner_handlers_matrix.py +2 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_e2b_backend.py +335 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/test_handler.py +322 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_mgr_runner.py +33 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/utils/test_deadline.py +25 -0
- langbot_plugin-0.7.19/docs/agent-runner-interactions.md +0 -82
- langbot_plugin-0.7.19/src/langbot_plugin/api/proxies/runner/platform.py +0 -61
- langbot_plugin-0.7.19/src/langbot_plugin/utils/deadline.py +0 -36
- langbot_plugin-0.7.19/src/langbot_plugin/version.py +0 -1
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/.github/workflows/box-docker.yml +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/.github/workflows/cla.yml +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/.github/workflows/publish-pypi.yaml +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/.github/workflows/publish.yml +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/.github/workflows/test.yml +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/.gitignore +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/.python-version +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/AGENTS.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/CLAUDE.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/CONTRIBUTING.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/LICENSE +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/README.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/README_CN.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/data/.env.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/Message.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/PluginPages.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/agent-runner-pluginization/PROTOCOL_V1.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/agent-runner-pluginization/README.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/agent-runner-pluginization/SDK_RUNTIME_PLAN.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/certified-plugins.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/communication/apis/lb2rt.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/communication/runtime_plugin.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/dependency-management.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/langbot-plugin-social.png +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/runner.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/stateless-components.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/local_e2e/acceptance.json +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/local_e2e/registration_fanin.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/local_e2e/run_acceptance.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/mypy.ini +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/scripts/check_action_consistency.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/scripts/runtime_resource_probe.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/asset_gateway.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/daemon.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/decorators.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/external_tools.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/mcp_access.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/mcp_bridge.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/mcp_config.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/mcp_protocol.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/mcp_stdio.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/abstract/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/abstract/platform/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/abstract/platform/event_logger.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/base.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/command/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/command/command.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/common/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/common/event_listener.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/knowledge_engine/engine.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/manifest.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/page/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/parser/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/parser/parser.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/runner/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/runner/runner.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/tool/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/tool/tool.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/plugin.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/command/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/command/context.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/command/errors.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/pipeline/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/pipeline/query.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/platform/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/platform/entities.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/platform/errors.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/platform/logger.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/platform/message.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/provider/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/provider/message.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/provider/prompt.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/provider/reasoning.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/provider/session.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/rag/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/rag/context.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/rag/enums.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/rag/errors.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/rag/models.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/resource/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/resource/tool.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/box.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/capabilities.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/compat.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/context_access.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/delivery.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/errors.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/event.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/manifest.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/page_results.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/permissions.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/resources.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/run_ledger.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/runtime.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/runtime_registry.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/state.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/stats.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/steering.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/transcript.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/trigger.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/context.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/events.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/execution.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/base.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/event_context.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/execute_context.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/invocation.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/langbot_api.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/query_based_api.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/admin.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/api.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/box.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/common.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/context.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/ledger.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/reply_stream.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/state.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/tracing.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/artifact.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/langbot-page-sdk.js +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/.env.example.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/.github/workflows/release.yml.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/.gitignore.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/.vscode/launch.json.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/README.md.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/assets/icon.svg.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/commands/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.py.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.yaml.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/event_listener/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/event_listener/default.py.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/event_listener/default.yaml.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.py.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.yaml.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/pages/{page_name}.html.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/pages/{page_name}.yaml.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/parser/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.py.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.yaml.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/runner/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.yaml.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/tools/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.py.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.yaml.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/main.py.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/manifest.yaml.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/readme/README_zh_Hans.md.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/requirements.txt.example +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/actions.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/backend.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/client.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/errors.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/host_backend.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/models.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/nsjail_backend.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/runtime.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/security.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/server.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/tenancy.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/certification.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/__main__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/buildplugin.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/gencomponent.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/initplugin.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/login.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/logout.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/publish.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/runplugin.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/gen/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/gen/renderer.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/i18n.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/en_US.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/es_ES.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/ja_JP.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/th_TH.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/vi_VN.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/zh_Hans.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/zh_Hant.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/run/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/run/controller.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/run/hotreload.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/utils/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/utils/cloudsv.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/utils/form.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/utils/page_components.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/io/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/io/actions/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/io/context.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/io/errors.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/io/req.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/io/resp.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/marketplace.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/LICENSE +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/README.md +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/app.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/bounded_executor.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/context.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/event_loop_monitor.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/helper/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/helper/marketplace.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/helper/pkgmgr.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/connection.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/connections/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/connections/stdio.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/connections/ws.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controller.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controllers/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controllers/stdio/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controllers/stdio/client.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controllers/stdio/server.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controllers/ws/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controllers/ws/client.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controllers/ws/server.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/handlers/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/handlers/control.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/ops_metrics.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/artifact.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/container.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/dependency_environment.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/logbuffer.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/mgr.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/restart_coordinator.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/worker_launcher.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/worker_observability.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/worker_watchdog.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/security.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/settings.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/skill_store.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/storage.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/discover/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/discover/engine.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/git_sync.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/importutil.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/log.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/packaging.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/page_components.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/platform.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/workspace.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/definition/components/test_components.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/definition/components/test_imports.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/definition/test_manifest.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/definition/test_manifest_component_path.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/runner/test_context_result.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/runner/test_history_event_entities.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/runner/test_run_ledger_entities.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/test_command_context.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/test_platform_logger.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/test_provider_message.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/test_rag_models.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/test_context.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/test_events.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_base.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_box_api.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_history_event_api_proxy.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_langbot_api.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_llm_stream_ownership.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_query_based_api.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_reasoning_parameter.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/test_agent_tools_mcp_bridge.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/test_runner_public_apis.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_admission.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_artifact_cache_root.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_backend.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_backend_selection.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_client.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_host_backend.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_nsjail_backend.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_runtime.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_server.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_skill_store.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_storage_analysis.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/run/test_controller.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/run/test_hotreload.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/run/test_runtime_handler.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_buildplugin.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_cli_main.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_gencomponent.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_i18n_form.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_initplugin.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_login.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_logout_publish.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_page_components.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_renderer.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_runner_usages.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_runplugin.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/e2e/Dockerfile.box-socket +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/e2e/Dockerfile.box-socket.dockerignore +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/e2e/standalone_runtime_eba_probe.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/e2e/test_box_socket_mounts.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/e2e/test_run_mount_isolation.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/entities/io/test_dependency_errors.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/entities/io/test_protocol.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/fixtures/eba_event_probe_plugin/.gitignore +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/fixtures/eba_event_probe_plugin/assets/icon.svg +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.yaml +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/fixtures/eba_event_probe_plugin/main.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/fixtures/eba_event_probe_plugin/manifest.yaml +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/helpers/__init__.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/helpers/protocol.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/packaging/test_installed_cli_blackbox.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/packaging/test_release_metadata.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/helper/test_marketplace.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/helper/test_pkgmgr.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/handlers/test_control_handler.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/handlers/test_import_contracts.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/handlers/test_legacy_file_chunk.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/handlers/test_plugin_handler.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/test_action_consistency.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/test_connections.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/test_controllers.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/test_heartbeat_admission.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/test_stdio_server.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/test_stream_flow_control.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_artifact_store.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_container.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_dependency_environment.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_event_dispatch_real_worker.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_exact_dify_real_worker.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_exact_legacy_sdk_compat.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_installation_manager.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_legacy_shadow.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_manager.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_mode_resource_limits.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_restart_coordinator.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_shared_worker_subprocess.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_worker_launcher.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_worker_plugin_identity.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_workload_isolation.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/test_app.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/test_bounded_executor.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/test_event_loop_monitor.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/test_ops_metrics.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/test_pull_api_handlers.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/test_security.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_artifact_materialization.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_certification.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_log.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_message.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_plugin_logbuffer.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_skill_store.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_storage.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_worker_observability.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_worker_watchdog.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/utils/test_cli_run_handler_packaging.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/utils/test_discovery.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/utils/test_git_sync.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/utils/test_importutil.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/utils/test_packaging_utils.py +0 -0
- {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/utils/test_platform.py +0 -0
|
@@ -292,6 +292,16 @@ Core mechanics:
|
|
|
292
292
|
explicit current context must still match, and the receiver never scans other
|
|
293
293
|
namespaces. Legacy opaque basenames remain supported. Absolute paths,
|
|
294
294
|
separators, `..`, and unsafe extensions are rejected.
|
|
295
|
+
- The transfer root is created and bound to one exact directory inode by walking
|
|
296
|
+
every component from `/` without following links, so a swapped component cannot
|
|
297
|
+
redirect a transfer. Deployments that deny inspecting the ancestors while still
|
|
298
|
+
reaching the root itself (fnOS applications inside `/vol2/@appshare/...`,
|
|
299
|
+
sandboxed containers) keep working: ancestors are opened path-only when a
|
|
300
|
+
read-only open is refused, and a root whose ancestors are entirely denied is
|
|
301
|
+
bound `O_NOFOLLOW` at the deepest reachable directory. Every component below
|
|
302
|
+
that point, the root descriptor, and all later operations keep the same
|
|
303
|
+
no-link, relative-only guarantees; the per-transfer drift check re-identifies
|
|
304
|
+
the configured path the same way.
|
|
295
305
|
|
|
296
306
|
Action enums are the protocol contract:
|
|
297
307
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: langbot-plugin
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.20
|
|
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
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Runner Structured Interactions
|
|
2
|
+
|
|
3
|
+
Structured interactions are a provider-neutral Runner Protocol v1
|
|
4
|
+
capability. Dify human input, deployment approval, a remote harness question,
|
|
5
|
+
and a CLI permission confirmation all use the same Host contract.
|
|
6
|
+
|
|
7
|
+
## Manifest
|
|
8
|
+
|
|
9
|
+
Only runners that actually emit and resume interactions should opt in:
|
|
10
|
+
|
|
11
|
+
```yaml
|
|
12
|
+
spec:
|
|
13
|
+
capabilities:
|
|
14
|
+
interactions: true
|
|
15
|
+
permissions:
|
|
16
|
+
interactions: [request]
|
|
17
|
+
storage: [plugin]
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The Host also applies the binding delivery policy. A manifest declaration does
|
|
21
|
+
not bypass Host authorization.
|
|
22
|
+
|
|
23
|
+
## Request
|
|
24
|
+
|
|
25
|
+
Call the blocking SDK method while the current Runner is active:
|
|
26
|
+
|
|
27
|
+
```python
|
|
28
|
+
from langbot_plugin.api.entities.builtin.runner import (
|
|
29
|
+
InteractionAction,
|
|
30
|
+
InteractionRequest,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
result = await ctx.request_interaction(
|
|
34
|
+
InteractionRequest(
|
|
35
|
+
interaction_id="provider-neutral-correlation-id",
|
|
36
|
+
kind="confirmation",
|
|
37
|
+
title="Approve this operation?",
|
|
38
|
+
actions=[
|
|
39
|
+
InteractionAction(id="approve", label="Approve", style="primary"),
|
|
40
|
+
InteractionAction(id="deny", label="Deny", style="danger"),
|
|
41
|
+
],
|
|
42
|
+
fallback_text="Approval is required to continue.",
|
|
43
|
+
),
|
|
44
|
+
timeout=600,
|
|
45
|
+
on_unsupported="degrade",
|
|
46
|
+
)
|
|
47
|
+
if result.submission is not None:
|
|
48
|
+
selected_action = result.submission.action_id
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Use `ctx.delivery.interactions` to inspect the current surface's supported
|
|
52
|
+
field types, action styles, update support, and field limit. Always provide a
|
|
53
|
+
plain-text fallback. A form with multiple fields requires a native card; the
|
|
54
|
+
Host rejects a text fallback for that structure.
|
|
55
|
+
|
|
56
|
+
## Continuation
|
|
57
|
+
|
|
58
|
+
The call waits in the same run and returns an `InteractionResult`. Check
|
|
59
|
+
`status` before reading `submission`; a timeout has no submission. The Host
|
|
60
|
+
validates callback token, actor, fields, options, and repeated submissions.
|
|
61
|
+
On cancellation or Host restart, the pending card becomes invalid.
|
|
62
|
+
|
|
63
|
+
## Long-Lived Processes
|
|
64
|
+
|
|
65
|
+
CLI and harness protocols may wait on their live stdin/stdout channel. Keep
|
|
66
|
+
that process alive while `ctx.request_interaction` waits, then write the
|
|
67
|
+
validated answer to the same channel.
|
|
@@ -10,6 +10,12 @@ import langbot_plugin.api.entities.builtin.platform.events as platform_events
|
|
|
10
10
|
import langbot_plugin.api.entities.builtin.platform.entities as platform_entities
|
|
11
11
|
import langbot_plugin.api.definition.abstract.platform.event_logger as abstract_platform_logger
|
|
12
12
|
from langbot_plugin.api.entities.builtin.platform.errors import NotSupportedError
|
|
13
|
+
from langbot_plugin.api.entities.builtin.runner.interaction import (
|
|
14
|
+
InteractionDeliveryCapabilities,
|
|
15
|
+
InteractionHandle,
|
|
16
|
+
InteractionRequest,
|
|
17
|
+
InteractionSubmission,
|
|
18
|
+
)
|
|
13
19
|
|
|
14
20
|
|
|
15
21
|
class AbstractMessagePlatformAdapter(pydantic.BaseModel, metaclass=abc.ABCMeta):
|
|
@@ -165,7 +171,38 @@ class AbstractPlatformAdapter(AbstractMessagePlatformAdapter):
|
|
|
165
171
|
|
|
166
172
|
def get_supported_apis(self) -> list[str]:
|
|
167
173
|
"""Return the list of APIs supported by this adapter."""
|
|
168
|
-
|
|
174
|
+
apis = ["send_message", "reply_message"]
|
|
175
|
+
if type(self).send_interaction is not AbstractPlatformAdapter.send_interaction:
|
|
176
|
+
apis.append("send_interaction")
|
|
177
|
+
apis.append("get_interaction_capabilities")
|
|
178
|
+
if (
|
|
179
|
+
type(self).update_interaction
|
|
180
|
+
is not AbstractPlatformAdapter.update_interaction
|
|
181
|
+
):
|
|
182
|
+
apis.append("update_interaction")
|
|
183
|
+
return apis
|
|
184
|
+
|
|
185
|
+
def get_interaction_capabilities(self) -> InteractionDeliveryCapabilities:
|
|
186
|
+
"""Return native interaction capabilities; empty means no native cards."""
|
|
187
|
+
return InteractionDeliveryCapabilities()
|
|
188
|
+
|
|
189
|
+
async def send_interaction(
|
|
190
|
+
self,
|
|
191
|
+
target_type: str,
|
|
192
|
+
target_id: str,
|
|
193
|
+
request: InteractionRequest,
|
|
194
|
+
callback_token: str,
|
|
195
|
+
reply_to: str | None = None,
|
|
196
|
+
) -> InteractionHandle:
|
|
197
|
+
raise NotSupportedError("send_interaction")
|
|
198
|
+
|
|
199
|
+
async def update_interaction(
|
|
200
|
+
self,
|
|
201
|
+
handle: InteractionHandle,
|
|
202
|
+
state: typing.Literal["submitted", "expired", "cancelled"],
|
|
203
|
+
submission: InteractionSubmission | None = None,
|
|
204
|
+
) -> InteractionHandle:
|
|
205
|
+
raise NotSupportedError("update_interaction")
|
|
169
206
|
|
|
170
207
|
# ---- Optional Message Methods ----
|
|
171
208
|
|
|
@@ -647,6 +647,22 @@ class PlatformSpecificEvent(EBAEvent):
|
|
|
647
647
|
"""Event data; structure defined by each adapter."""
|
|
648
648
|
|
|
649
649
|
|
|
650
|
+
class InteractionCallbackEvent(EBAEvent):
|
|
651
|
+
"""A platform callback for a Host-owned interaction."""
|
|
652
|
+
|
|
653
|
+
summary_field: typing.ClassVar[str] = "callback_token"
|
|
654
|
+
type: str = "interaction.callback"
|
|
655
|
+
callback_token: str
|
|
656
|
+
values: dict[str, typing.Any] = pydantic.Field(default_factory=dict)
|
|
657
|
+
action_id: str | None = None
|
|
658
|
+
actor_id: str | None = None
|
|
659
|
+
conversation_id: str | None = None
|
|
660
|
+
target_type: str | None = None
|
|
661
|
+
target_id: str | None = None
|
|
662
|
+
callback_context: dict[str, typing.Any] = pydantic.Field(default_factory=dict)
|
|
663
|
+
raw_submission: dict[str, typing.Any] = pydantic.Field(default_factory=dict)
|
|
664
|
+
|
|
665
|
+
|
|
650
666
|
# ---- WeCom AI Bot Events ----
|
|
651
667
|
|
|
652
668
|
|
|
@@ -39,15 +39,17 @@ from langbot_plugin.api.entities.builtin.runner.context_access import (
|
|
|
39
39
|
)
|
|
40
40
|
from langbot_plugin.api.entities.builtin.runner.delivery import DeliveryContext
|
|
41
41
|
from langbot_plugin.api.entities.builtin.runner.interaction import (
|
|
42
|
-
INTERACTION_REQUESTED_ACTION,
|
|
43
|
-
INTERACTION_SUBMITTED_EVENT,
|
|
44
42
|
InteractionAction,
|
|
45
43
|
InteractionActionStyle,
|
|
46
44
|
InteractionDeliveryCapabilities,
|
|
45
|
+
InteractionDegradation,
|
|
47
46
|
InteractionField,
|
|
48
47
|
InteractionFieldType,
|
|
49
48
|
InteractionOption,
|
|
49
|
+
InteractionHandle,
|
|
50
|
+
InteractionNotSupportedError,
|
|
50
51
|
InteractionRequest,
|
|
52
|
+
InteractionResult,
|
|
51
53
|
InteractionSubmission,
|
|
52
54
|
JSONValue,
|
|
53
55
|
)
|
|
@@ -135,15 +137,17 @@ __all__ = [
|
|
|
135
137
|
"InlineContextPolicy",
|
|
136
138
|
"ContextAPICapabilities",
|
|
137
139
|
"DeliveryContext",
|
|
138
|
-
"INTERACTION_REQUESTED_ACTION",
|
|
139
|
-
"INTERACTION_SUBMITTED_EVENT",
|
|
140
140
|
"InteractionAction",
|
|
141
141
|
"InteractionActionStyle",
|
|
142
142
|
"InteractionDeliveryCapabilities",
|
|
143
|
+
"InteractionDegradation",
|
|
143
144
|
"InteractionField",
|
|
144
145
|
"InteractionFieldType",
|
|
145
146
|
"InteractionOption",
|
|
147
|
+
"InteractionHandle",
|
|
148
|
+
"InteractionNotSupportedError",
|
|
146
149
|
"InteractionRequest",
|
|
150
|
+
"InteractionResult",
|
|
147
151
|
"InteractionSubmission",
|
|
148
152
|
"JSONValue",
|
|
149
153
|
"AdapterContext",
|
|
@@ -37,6 +37,10 @@ from langbot_plugin.api.entities.builtin.runner.context_access import (
|
|
|
37
37
|
ContextAccess,
|
|
38
38
|
)
|
|
39
39
|
from langbot_plugin.api.entities.builtin.runner.delivery import DeliveryContext
|
|
40
|
+
from langbot_plugin.api.entities.builtin.runner.interaction import (
|
|
41
|
+
InteractionRequest,
|
|
42
|
+
InteractionResult,
|
|
43
|
+
)
|
|
40
44
|
|
|
41
45
|
|
|
42
46
|
class AdapterContext(pydantic.BaseModel):
|
|
@@ -190,6 +194,26 @@ class RunnerContext(pydantic.BaseModel):
|
|
|
190
194
|
"""Call an authorized event, platform, or plugin tool in the current context."""
|
|
191
195
|
return await self.api.call_tool(tool_name, parameters or {})
|
|
192
196
|
|
|
197
|
+
async def request_interaction(
|
|
198
|
+
self,
|
|
199
|
+
request: InteractionRequest,
|
|
200
|
+
*,
|
|
201
|
+
timeout: float = 600,
|
|
202
|
+
on_unsupported: str = "error",
|
|
203
|
+
responders: str | list[str] = "actor",
|
|
204
|
+
target_type: str | None = None,
|
|
205
|
+
target_id: str | None = None,
|
|
206
|
+
) -> InteractionResult:
|
|
207
|
+
"""Wait for a user submission in this run."""
|
|
208
|
+
return await self.api.request_interaction(
|
|
209
|
+
request,
|
|
210
|
+
timeout=timeout,
|
|
211
|
+
on_unsupported=on_unsupported,
|
|
212
|
+
responders=responders,
|
|
213
|
+
target_type=target_type,
|
|
214
|
+
target_id=target_id,
|
|
215
|
+
)
|
|
216
|
+
|
|
193
217
|
async def get_bot_uuid(self) -> str:
|
|
194
218
|
"""Get the source bot UUID, or fail when this event has no platform bot."""
|
|
195
219
|
bot_uuid = (self.conversation.bot_id if self.conversation else None) or (
|
|
@@ -65,7 +65,7 @@ class AgentInput(pydantic.BaseModel):
|
|
|
65
65
|
"""Current-event attachment metadata."""
|
|
66
66
|
|
|
67
67
|
interaction: InteractionSubmission | None = None
|
|
68
|
-
"""Host-validated submission
|
|
68
|
+
"""Host-validated interaction submission for the current event."""
|
|
69
69
|
|
|
70
70
|
def to_text(self) -> str:
|
|
71
71
|
"""Extract plain text from input.
|
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import typing
|
|
6
|
+
import uuid
|
|
6
7
|
|
|
7
8
|
import pydantic
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
INTERACTION_REQUESTED_ACTION = "interaction.requested"
|
|
11
|
-
INTERACTION_SUBMITTED_EVENT = "interaction.submitted"
|
|
12
|
-
|
|
13
11
|
InteractionFieldType = typing.Literal[
|
|
14
12
|
"text",
|
|
15
13
|
"textarea",
|
|
@@ -62,7 +60,9 @@ class InteractionAction(pydantic.BaseModel):
|
|
|
62
60
|
class InteractionRequest(pydantic.BaseModel):
|
|
63
61
|
"""A runner request for Host-owned structured user interaction."""
|
|
64
62
|
|
|
65
|
-
interaction_id: str = pydantic.Field(
|
|
63
|
+
interaction_id: str = pydantic.Field(
|
|
64
|
+
default_factory=lambda: uuid.uuid4().hex, min_length=1, max_length=255
|
|
65
|
+
)
|
|
66
66
|
kind: typing.Literal["form", "confirmation", "choice"] = "form"
|
|
67
67
|
title: str = pydantic.Field(min_length=1, max_length=1000)
|
|
68
68
|
description: str | None = pydantic.Field(default=None, max_length=10000)
|
|
@@ -71,7 +71,9 @@ class InteractionRequest(pydantic.BaseModel):
|
|
|
71
71
|
default_factory=list, max_length=20
|
|
72
72
|
)
|
|
73
73
|
expires_at: int | None = None
|
|
74
|
-
fallback_text: str = pydantic.Field(
|
|
74
|
+
fallback_text: str | None = pydantic.Field(
|
|
75
|
+
default=None, min_length=1, max_length=20000
|
|
76
|
+
)
|
|
75
77
|
|
|
76
78
|
model_config = pydantic.ConfigDict(extra="forbid")
|
|
77
79
|
|
|
@@ -83,6 +85,7 @@ class InteractionSubmission(pydantic.BaseModel):
|
|
|
83
85
|
action_id: str | None = pydantic.Field(default=None, max_length=128)
|
|
84
86
|
values: dict[str, JSONValue] = pydantic.Field(default_factory=dict)
|
|
85
87
|
submitted_at: int | None = None
|
|
88
|
+
label: str | None = None
|
|
86
89
|
|
|
87
90
|
model_config = pydantic.ConfigDict(extra="forbid")
|
|
88
91
|
|
|
@@ -94,20 +97,62 @@ class InteractionDeliveryCapabilities(pydantic.BaseModel):
|
|
|
94
97
|
action_styles: list[InteractionActionStyle] = pydantic.Field(default_factory=list)
|
|
95
98
|
supports_updates: bool = False
|
|
96
99
|
max_fields: int | None = pydantic.Field(default=None, ge=0)
|
|
100
|
+
max_options: int | None = pydantic.Field(default=None, ge=0)
|
|
101
|
+
max_actions: int | None = pydantic.Field(default=None, ge=0)
|
|
102
|
+
supports_markdown: bool = False
|
|
103
|
+
text_fallback: bool = True
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
def supports_update(self) -> bool:
|
|
107
|
+
return self.supports_updates
|
|
97
108
|
|
|
98
109
|
model_config = pydantic.ConfigDict(extra="forbid")
|
|
99
110
|
|
|
100
111
|
|
|
112
|
+
class InteractionHandle(pydantic.BaseModel):
|
|
113
|
+
"""Opaque adapter delivery handle retained by the Host."""
|
|
114
|
+
|
|
115
|
+
message_id: str | int | None = None
|
|
116
|
+
card_id: str | None = None
|
|
117
|
+
context: dict[str, JSONValue] = pydantic.Field(default_factory=dict)
|
|
118
|
+
|
|
119
|
+
model_config = pydantic.ConfigDict(extra="allow")
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
class InteractionDegradation(pydantic.BaseModel):
|
|
123
|
+
path: str
|
|
124
|
+
reason: str
|
|
125
|
+
applied: str
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
class InteractionResult(pydantic.BaseModel):
|
|
129
|
+
status: typing.Literal["submitted", "timeout", "cancelled"]
|
|
130
|
+
submission: InteractionSubmission | None = None
|
|
131
|
+
degraded: list[InteractionDegradation] = pydantic.Field(default_factory=list)
|
|
132
|
+
deadline_at: float | None = None
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
class InteractionNotSupportedError(Exception):
|
|
136
|
+
def __init__(self, issues: list[dict[str, str]]):
|
|
137
|
+
self.issues = issues
|
|
138
|
+
super().__init__(
|
|
139
|
+
"Interaction is not supported: "
|
|
140
|
+
+ ", ".join(f"{issue['path']}: {issue['reason']}" for issue in issues)
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
|
|
101
144
|
__all__ = [
|
|
102
|
-
"INTERACTION_REQUESTED_ACTION",
|
|
103
|
-
"INTERACTION_SUBMITTED_EVENT",
|
|
104
145
|
"InteractionAction",
|
|
105
146
|
"InteractionActionStyle",
|
|
106
147
|
"InteractionDeliveryCapabilities",
|
|
148
|
+
"InteractionDegradation",
|
|
107
149
|
"InteractionField",
|
|
108
150
|
"InteractionFieldType",
|
|
109
151
|
"InteractionOption",
|
|
152
|
+
"InteractionHandle",
|
|
153
|
+
"InteractionNotSupportedError",
|
|
110
154
|
"InteractionRequest",
|
|
155
|
+
"InteractionResult",
|
|
111
156
|
"InteractionSubmission",
|
|
112
157
|
"JSONValue",
|
|
113
158
|
]
|
|
@@ -15,10 +15,6 @@ from langbot_plugin.api.entities.builtin.runner.state import (
|
|
|
15
15
|
VALID_STATE_SCOPES,
|
|
16
16
|
STATE_SCOPE_LITERAL,
|
|
17
17
|
)
|
|
18
|
-
from langbot_plugin.api.entities.builtin.runner.interaction import (
|
|
19
|
-
INTERACTION_REQUESTED_ACTION,
|
|
20
|
-
InteractionRequest,
|
|
21
|
-
)
|
|
22
18
|
|
|
23
19
|
|
|
24
20
|
class RunnerResultType(str, enum.Enum):
|
|
@@ -411,25 +407,6 @@ class RunnerResult(pydantic.BaseModel):
|
|
|
411
407
|
timestamp=timestamp,
|
|
412
408
|
)
|
|
413
409
|
|
|
414
|
-
@classmethod
|
|
415
|
-
def interaction_requested(
|
|
416
|
-
cls,
|
|
417
|
-
run_id: str,
|
|
418
|
-
request: InteractionRequest | dict[str, typing.Any],
|
|
419
|
-
*,
|
|
420
|
-
sequence: int | None = None,
|
|
421
|
-
timestamp: int | None = None,
|
|
422
|
-
) -> "RunnerResult":
|
|
423
|
-
"""Request an interaction on the current run's frozen delivery target."""
|
|
424
|
-
interaction = InteractionRequest.model_validate(request)
|
|
425
|
-
return cls.action_requested(
|
|
426
|
-
run_id=run_id,
|
|
427
|
-
action=INTERACTION_REQUESTED_ACTION,
|
|
428
|
-
payload=interaction.model_dump(mode="json"),
|
|
429
|
-
sequence=sequence,
|
|
430
|
-
timestamp=timestamp,
|
|
431
|
-
)
|
|
432
|
-
|
|
433
410
|
|
|
434
411
|
def _coerce_usage(
|
|
435
412
|
usage: LLMTokenUsage | dict[str, typing.Any] | None,
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"""Platform APIs with the same signatures as the shared plugin API."""
|
|
2
|
+
|
|
3
|
+
import time
|
|
4
|
+
from typing import Any
|
|
5
|
+
from langbot_plugin.api.entities.builtin.platform.message import MessageChain
|
|
6
|
+
from langbot_plugin.entities.io.actions.enums import PluginToRuntimeAction
|
|
7
|
+
from langbot_plugin.api.entities.builtin.runner.interaction import (
|
|
8
|
+
InteractionRequest,
|
|
9
|
+
InteractionResult,
|
|
10
|
+
InteractionNotSupportedError,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class RunnerPlatformAPIMixin:
|
|
15
|
+
async def request_interaction(
|
|
16
|
+
self,
|
|
17
|
+
request: InteractionRequest,
|
|
18
|
+
*,
|
|
19
|
+
timeout: float = 600,
|
|
20
|
+
on_unsupported: str = "error",
|
|
21
|
+
responders: str | list[str] = "actor",
|
|
22
|
+
target_type: str | None = None,
|
|
23
|
+
target_id: str | None = None,
|
|
24
|
+
) -> InteractionResult:
|
|
25
|
+
if not 0 < timeout <= 86400:
|
|
26
|
+
raise ValueError("Interaction timeout must be between 0 and 86400 seconds")
|
|
27
|
+
if on_unsupported not in {"error", "degrade"}:
|
|
28
|
+
raise ValueError("on_unsupported must be 'error' or 'degrade'")
|
|
29
|
+
if (target_type is None) != (target_id is None):
|
|
30
|
+
raise ValueError("target_type and target_id must be provided together")
|
|
31
|
+
original_deadline = self.ctx.runtime.deadline_at
|
|
32
|
+
started_at = time.time()
|
|
33
|
+
if original_deadline is not None:
|
|
34
|
+
self.ctx.runtime.deadline_at = float(original_deadline) + timeout + 30
|
|
35
|
+
try:
|
|
36
|
+
response = await self._api.plugin_runtime_handler.call_action(
|
|
37
|
+
PluginToRuntimeAction.REQUEST_INTERACTION,
|
|
38
|
+
{
|
|
39
|
+
"run_id": self.run_id,
|
|
40
|
+
"request": request.model_dump(mode="json"),
|
|
41
|
+
"timeout": timeout,
|
|
42
|
+
"on_unsupported": on_unsupported,
|
|
43
|
+
"responders": responders,
|
|
44
|
+
"target_type": target_type,
|
|
45
|
+
"target_id": target_id,
|
|
46
|
+
},
|
|
47
|
+
timeout + 30,
|
|
48
|
+
cancel_peer_on_cancel=True,
|
|
49
|
+
)
|
|
50
|
+
if response.get("unsupported"):
|
|
51
|
+
raise InteractionNotSupportedError(response["unsupported"])
|
|
52
|
+
result = InteractionResult.model_validate(response)
|
|
53
|
+
except BaseException:
|
|
54
|
+
if original_deadline is not None:
|
|
55
|
+
self.ctx.runtime.deadline_at = float(original_deadline) + (
|
|
56
|
+
time.time() - started_at
|
|
57
|
+
)
|
|
58
|
+
raise
|
|
59
|
+
if result.deadline_at is not None:
|
|
60
|
+
self.ctx.runtime.deadline_at = result.deadline_at
|
|
61
|
+
elif original_deadline is not None:
|
|
62
|
+
self.ctx.runtime.deadline_at = float(original_deadline) + (
|
|
63
|
+
time.time() - started_at
|
|
64
|
+
)
|
|
65
|
+
return result
|
|
66
|
+
|
|
67
|
+
async def call_platform_api(
|
|
68
|
+
self, bot_uuid: str, action: str, params: dict[str, Any] | None = None
|
|
69
|
+
) -> Any:
|
|
70
|
+
response = await self._api.plugin_runtime_handler.call_action(
|
|
71
|
+
PluginToRuntimeAction.CALL_PLATFORM_API,
|
|
72
|
+
{
|
|
73
|
+
"run_id": self.run_id,
|
|
74
|
+
"bot_uuid": bot_uuid,
|
|
75
|
+
"action": action,
|
|
76
|
+
"params": params or {},
|
|
77
|
+
},
|
|
78
|
+
self._bounded_timeout(default=180.0),
|
|
79
|
+
)
|
|
80
|
+
return self._expect_key(
|
|
81
|
+
response, "result", PluginToRuntimeAction.CALL_PLATFORM_API
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
async def send_message(
|
|
85
|
+
self,
|
|
86
|
+
bot_uuid: str,
|
|
87
|
+
target_type: str,
|
|
88
|
+
target_id: str,
|
|
89
|
+
message_chain: MessageChain,
|
|
90
|
+
) -> Any:
|
|
91
|
+
return await self.call_platform_api(
|
|
92
|
+
bot_uuid,
|
|
93
|
+
"send_message",
|
|
94
|
+
{
|
|
95
|
+
"target_type": target_type,
|
|
96
|
+
"target_id": target_id,
|
|
97
|
+
"message": message_chain.model_dump(mode="json"),
|
|
98
|
+
},
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
async def reply_message(
|
|
102
|
+
self, message_chain: MessageChain, quote_origin: bool = False
|
|
103
|
+
) -> Any:
|
|
104
|
+
response = await self._api.plugin_runtime_handler.call_action(
|
|
105
|
+
PluginToRuntimeAction.CALL_PLATFORM_API,
|
|
106
|
+
{
|
|
107
|
+
"run_id": self.run_id,
|
|
108
|
+
"action": "send_message",
|
|
109
|
+
"context_tool": "event_reply",
|
|
110
|
+
"params": {
|
|
111
|
+
"message": message_chain.model_dump(mode="json"),
|
|
112
|
+
"quote_origin": quote_origin,
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
self._bounded_timeout(default=180.0),
|
|
116
|
+
)
|
|
117
|
+
return self._expect_key(
|
|
118
|
+
response, "result", PluginToRuntimeAction.CALL_PLATFORM_API
|
|
119
|
+
)
|
{langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/resources.py
RENAMED
|
@@ -273,6 +273,33 @@ class AgentRunResourceAPIMixin:
|
|
|
273
273
|
) -> dict[str, Any]:
|
|
274
274
|
"""Call a tool with permission validation."""
|
|
275
275
|
self._validate_tool_access(tool_name, "call")
|
|
276
|
+
if tool_name == "request_interaction":
|
|
277
|
+
from langbot_plugin.api.entities.builtin.runner.interaction import (
|
|
278
|
+
InteractionRequest,
|
|
279
|
+
)
|
|
280
|
+
|
|
281
|
+
request = InteractionRequest.model_validate(
|
|
282
|
+
{
|
|
283
|
+
key: value
|
|
284
|
+
for key, value in parameters.items()
|
|
285
|
+
if key
|
|
286
|
+
not in {
|
|
287
|
+
"expires_in_seconds",
|
|
288
|
+
"timeout",
|
|
289
|
+
"on_unsupported",
|
|
290
|
+
"responders",
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
)
|
|
294
|
+
result = await self.request_interaction(
|
|
295
|
+
request,
|
|
296
|
+
timeout=parameters.get(
|
|
297
|
+
"timeout", parameters.get("expires_in_seconds", 600)
|
|
298
|
+
),
|
|
299
|
+
on_unsupported=parameters.get("on_unsupported", "degrade"),
|
|
300
|
+
responders=parameters.get("responders", "actor"),
|
|
301
|
+
)
|
|
302
|
+
return result.model_dump(mode="json")
|
|
276
303
|
timeout = self._bounded_timeout(default=180.0)
|
|
277
304
|
resp = await self._api.plugin_runtime_handler.call_action(
|
|
278
305
|
PluginToRuntimeAction.CALL_TOOL,
|
|
@@ -5,7 +5,6 @@ from typing import AsyncGenerator
|
|
|
5
5
|
|
|
6
6
|
from langbot_plugin.api.definition.components.runner.runner import Runner
|
|
7
7
|
from langbot_plugin.api.entities.builtin.runner import (
|
|
8
|
-
INTERACTION_SUBMITTED_EVENT,
|
|
9
8
|
RunnerContext,
|
|
10
9
|
RunnerResult,
|
|
11
10
|
InteractionAction,
|
|
@@ -45,14 +44,7 @@ class {{ runner_attr }}(Runner):
|
|
|
45
44
|
# For streaming, use RunnerResult.message_delta(ctx.run_id, chunk)
|
|
46
45
|
# For final response, use RunnerResult.run_completed(ctx.run_id, message)
|
|
47
46
|
# For human input, declare interactions in the component manifest and use:
|
|
48
|
-
#
|
|
49
|
-
# submission = ctx.input.interaction
|
|
50
|
-
# # Load provider-private continuation data from authorized state/storage
|
|
51
|
-
# # by submission.interaction_id, then resume the provider with
|
|
52
|
-
# # submission.action_id and submission.values.
|
|
53
|
-
#
|
|
54
|
-
# yield RunnerResult.interaction_requested(
|
|
55
|
-
# ctx.run_id,
|
|
47
|
+
# result = await ctx.request_interaction(
|
|
56
48
|
# InteractionRequest(
|
|
57
49
|
# interaction_id="confirm-1",
|
|
58
50
|
# kind="confirmation",
|
|
@@ -60,7 +52,11 @@ class {{ runner_attr }}(Runner):
|
|
|
60
52
|
# actions=[InteractionAction(id="continue", label="Continue", style="primary")],
|
|
61
53
|
# fallback_text="Reply continue to proceed.",
|
|
62
54
|
# ),
|
|
55
|
+
# timeout=600,
|
|
56
|
+
# on_unsupported="degrade",
|
|
63
57
|
# )
|
|
58
|
+
# if result.submission:
|
|
59
|
+
# user_text = str(result.submission.action_id)
|
|
64
60
|
|
|
65
61
|
final_message = Message(
|
|
66
62
|
role="assistant",
|