langbot-plugin 0.7.26__tar.gz → 0.7.28__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.26 → langbot_plugin-0.7.28}/PKG-INFO +1 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/docs/execution_api.md +2 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/pyproject.toml +1 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/manifest.py +34 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/command/context.py +9 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/platform/message.py +10 -3
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/context.py +3 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/admin.py +10 -5
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/ledger.py +11 -6
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/workspace_domains.py +13 -3
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.yaml.example +2 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/manifest.yaml.example +5 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/client.py +10 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/e2b_backend.py +21 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/runtime.py +59 -7
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/server.py +48 -22
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/__init__.py +23 -9
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/runplugin.py +11 -2
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/run/handler.py +22 -4
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/io/actions/enums.py +1 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/io/req.py +1 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/app.py +13 -3
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/connections/stdio.py +14 -7
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/handler.py +15 -2
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/handlers/control.py +16 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/handlers/plugin.py +12 -3
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/container.py +2 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/logbuffer.py +37 -3
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/mgr.py +37 -9
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/worker_launcher.py +104 -20
- langbot_plugin-0.7.28/src/langbot_plugin/utils/log.py +175 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/packaging.py +5 -0
- langbot_plugin-0.7.28/src/langbot_plugin/utils/version_compat.py +114 -0
- langbot_plugin-0.7.28/src/langbot_plugin/version.py +1 -0
- langbot_plugin-0.7.28/tests/api/definition/test_version_compat.py +35 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/entities/builtin/test_command_context.py +48 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/proxies/test_agent_run_api_proxy.py +10 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_backend_selection.py +1 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_runtime.py +32 -2
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_server.py +1 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/cli/test_buildplugin.py +49 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/cli/test_cli_main.py +41 -13
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/cli/test_runplugin.py +9 -9
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/data/execution_api_catalog.json +13 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/io/handlers/test_control_handler.py +1 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/io/handlers/test_plugin_handler.py +1 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/io/test_audit_correlation.py +19 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/io/test_heartbeat_admission.py +9 -11
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/io/test_stdio_encoding.py +12 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_manager.py +30 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_plugin_logs_real_worker.py +18 -2
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_worker_launcher.py +96 -0
- langbot_plugin-0.7.28/tests/test_log.py +82 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/test_message.py +14 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/test_plugin_logbuffer.py +32 -0
- langbot_plugin-0.7.26/src/langbot_plugin/utils/log.py +0 -30
- langbot_plugin-0.7.26/src/langbot_plugin/version.py +0 -1
- langbot_plugin-0.7.26/tests/test_log.py +0 -32
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/.gitignore +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/.python-version +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/AGENTS.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/ARCHITECTURE.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/CLAUDE.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/CONTRIBUTING.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/LICENSE +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/README.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/README_CN.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/RELEASING.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/SOURCE.json +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/data/.env.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/docs/Message.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/docs/PluginPages.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/docs/agent-runner-interactions.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/docs/agent-runner-pluginization/PROTOCOL_V1.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/docs/agent-runner-pluginization/README.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/docs/agent-runner-pluginization/SDK_RUNTIME_PLAN.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/docs/box-instance-identity.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/docs/certified-plugins.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/docs/communication/apis/lb2rt.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/docs/communication/runtime_plugin.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/docs/dependency-management.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/docs/langbot-plugin-social.png +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/docs/runner.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/docs/stateless-components.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/examples/workspace_runner_plugin/README.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/examples/workspace_runner_plugin/components/runner/default.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/examples/workspace_runner_plugin/components/runner/default.yaml +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/examples/workspace_runner_plugin/main.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/examples/workspace_runner_plugin/manifest.yaml +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/local_e2e/acceptance.json +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/local_e2e/registration_fanin.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/local_e2e/run_acceptance.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/mypy.ini +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/scripts/check_action_consistency.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/scripts/runtime_resource_probe.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/asset_gateway.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/daemon.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/decorators.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/external_tools.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/mcp_access.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/mcp_bridge.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/mcp_config.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/mcp_protocol.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/mcp_stdio.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/abstract/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/abstract/platform/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/abstract/platform/adapter.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/abstract/platform/event_logger.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/base.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/command/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/command/command.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/common/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/common/event_listener.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/knowledge_engine/engine.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/page/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/parser/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/parser/parser.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/runner/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/runner/runner.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/tool/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/tool/tool.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/plugin.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/command/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/command/errors.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/pipeline/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/pipeline/query.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/platform/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/platform/entities.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/platform/errors.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/platform/events.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/platform/logger.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/provider/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/provider/message.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/provider/prompt.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/provider/reasoning.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/provider/session.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/rag/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/rag/context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/rag/enums.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/rag/errors.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/rag/models.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/resource/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/resource/tool.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/box.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/capabilities.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/compat.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/context_access.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/delivery.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/errors.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/event.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/input.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/interaction.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/manifest.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/page_results.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/permissions.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/resources.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/result.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/run_ledger.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/runtime.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/runtime_registry.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/state.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/stats.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/steering.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/transcript.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/trigger.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/events.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/execution.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/permissions.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/artifacts.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/base.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/event_context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/execute_context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/execution.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/invocation.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/langbot_api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/query_based_api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/box.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/common.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/platform.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/reply_stream.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/resources.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/state.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/tracing.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/workspace.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/artifact.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/langbot-page-sdk.js +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/.env.example.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/.github/workflows/release.yml.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/.gitignore.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/.vscode/launch.json.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/README.md.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/assets/icon.svg.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/commands/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.py.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/event_listener/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/event_listener/default.py.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/event_listener/default.yaml.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.py.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.yaml.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/pages/{page_name}.html.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/pages/{page_name}.yaml.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/parser/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.py.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.yaml.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/runner/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.py.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.yaml.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/tools/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.py.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.yaml.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/main.py.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/readme/README_zh_Hans.md.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/requirements.txt.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/actions.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/artifact_cache.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/errors.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/file_io.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/host_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/identity.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/models.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/nsjail_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/security.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/tenancy.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/windows_export.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/windows_file_io.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/box/windows_job.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/certification.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/__main__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/buildplugin.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/gencomponent.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/initplugin.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/login.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/logout.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/publish.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/gen/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/gen/renderer.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/i18n.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/en_US.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/es_ES.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/ja_JP.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/th_TH.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/vi_VN.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/zh_Hans.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/zh_Hant.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/run/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/run/controller.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/run/hotreload.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/utils/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/utils/cloudsv.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/utils/form.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/utils/page_components.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/io/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/io/actions/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/io/context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/io/errors.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/io/resp.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/marketplace.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/LICENSE +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/README.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/bounded_executor.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/event_loop_monitor.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/helper/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/helper/marketplace.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/helper/pkgmgr.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/connection.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/connections/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/connections/ws.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controller.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controllers/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controllers/stdio/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controllers/stdio/client.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controllers/stdio/server.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controllers/ws/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controllers/ws/client.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controllers/ws/server.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/handlers/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/ops_metrics.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/artifact.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/dependency_environment.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/restart_coordinator.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/runner_service.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/worker_observability.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/worker_watchdog.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/security.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/settings.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/skill_store.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/storage.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/deadline.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/discover/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/discover/engine.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/git_sync.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/importutil.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/page_components.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/platform.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/workspace.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/definition/components/test_components.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/definition/components/test_imports.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/definition/test_manifest.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/definition/test_manifest_component_path.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/entities/builtin/runner/test_context_result.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/entities/builtin/runner/test_history_event_entities.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/entities/builtin/runner/test_interaction.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/entities/builtin/runner/test_run_ledger_entities.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/entities/builtin/test_platform_logger.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/entities/builtin/test_provider_message.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/entities/builtin/test_rag_models.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/entities/test_context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/entities/test_events.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/proxies/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/proxies/test_artifacts_api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/proxies/test_base.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/proxies/test_box_api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/proxies/test_history_event_api_proxy.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/proxies/test_input_attachment_api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/proxies/test_langbot_api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/proxies/test_llm_stream_ownership.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/proxies/test_query_based_api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/proxies/test_reasoning_parameter.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/proxies/test_runner_tool_content_trace.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/test_agent_tools_mcp_bridge.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/test_execution_api_consistency.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/test_runner_handlers.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/test_runner_handlers_matrix.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/test_runner_public_apis.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/test_workspace_domains.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/api/test_workspace_operations.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/conftest.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_admission.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_artifact_cache.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_artifact_cache_root.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_client.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_directory_archive.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_e2b_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_file_chunk_negotiation.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_file_transfer.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_host_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_identity.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_network_workspace.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_nsjail_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_nsjail_v1_live.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_skill_store.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_storage_analysis.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_windows_host_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_windows_workspace_operations.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_workspace_cleanup.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/box/test_workspace_cleanup_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/cli/run/test_controller.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/cli/run/test_hotreload.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/cli/run/test_runtime_handler.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/cli/test_examples.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/cli/test_gencomponent.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/cli/test_i18n_form.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/cli/test_initplugin.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/cli/test_login.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/cli/test_logout_publish.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/cli/test_page_components.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/cli/test_renderer.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/cli/test_runner_usages.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/e2e/Dockerfile.box-socket +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/e2e/Dockerfile.box-socket.dockerignore +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/e2e/standalone_runtime_eba_probe.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/e2e/test_box_file_transfer_live.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/e2e/test_box_instance_cleanup_docker.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/e2e/test_box_socket_mounts.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/e2e/test_nsjail_large_commands.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/e2e/test_run_mount_isolation.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/entities/io/test_dependency_errors.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/entities/io/test_protocol.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/fixtures/eba_event_probe_plugin/.gitignore +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/fixtures/eba_event_probe_plugin/assets/icon.svg +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.yaml +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/fixtures/eba_event_probe_plugin/main.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/fixtures/eba_event_probe_plugin/manifest.yaml +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/helpers/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/helpers/protocol.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/packaging/test_installed_cli_blackbox.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/packaging/test_release_metadata.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/helper/test_marketplace.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/helper/test_pkgmgr.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/io/handlers/test_import_contracts.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/io/handlers/test_legacy_file_chunk.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/io/test_action_consistency.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/io/test_connections.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/io/test_controllers.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/io/test_handler.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/io/test_payload_limits.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/io/test_stdio_server.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/io/test_stream_flow_control.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_artifact_store.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_container.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_dependency_environment.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_event_dispatch_real_worker.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_exact_dify_real_worker.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_exact_legacy_sdk_compat.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_installation_manager.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_legacy_shadow.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_mgr_runner.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_mode_resource_limits.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_restart_coordinator.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_shared_worker_subprocess.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_worker_plugin_identity.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_workload_isolation.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/test_app.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/test_bounded_executor.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/test_event_loop_monitor.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/test_ops_metrics.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/test_pull_api_handlers.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/runtime/test_security.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/test_artifact_materialization.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/test_certification.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/test_skill_publication_resources.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/test_skill_store.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/test_skill_zip_import.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/test_storage.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/test_worker_observability.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/test_worker_watchdog.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/utils/test_cli_run_handler_packaging.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/utils/test_deadline.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/utils/test_discovery.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/utils/test_git_sync.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/utils/test_importutil.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/utils/test_packaging_utils.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/tests/utils/test_platform.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: langbot-plugin
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.28
|
|
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/tree/master/sdk
|
|
@@ -149,6 +149,8 @@ async for chunk in api.execution.stream(
|
|
|
149
149
|
| `execution.list_application_operations` | `plugin_or_run` | 否 | 否 | 列出本次运行被授权的 ApplicationAPI 工作区操作及其 schema |
|
|
150
150
|
| `execution.call_application_operation` | `plugin_or_run` | 是 | 否 | 以处理器身份调用本次运行被授权的 ApplicationAPI 工作区操作 |
|
|
151
151
|
|
|
152
|
+
外部队列重新入队后,`execution.run_cancel_ack` 要求传入处理取消时保存的 `metadata.retry_count`,字段名为 `expected_retry_count`。同一确认重发时复用该值。首次执行和拥有新 ID 的运行可以省略。
|
|
153
|
+
|
|
152
154
|
---
|
|
153
155
|
|
|
154
156
|
## 内部通信/传输动作审计说明
|
|
@@ -66,12 +66,31 @@ class I18nString(pydantic.BaseModel):
|
|
|
66
66
|
return dic
|
|
67
67
|
|
|
68
68
|
|
|
69
|
+
class LangBotVersionRange(pydantic.BaseModel):
|
|
70
|
+
min: str | None = None
|
|
71
|
+
max: str | None = None
|
|
72
|
+
|
|
73
|
+
@pydantic.model_validator(mode="before")
|
|
74
|
+
@classmethod
|
|
75
|
+
def validate_bounds(cls, value):
|
|
76
|
+
from langbot_plugin.utils.version_compat import parse_range
|
|
77
|
+
|
|
78
|
+
parse_range(value)
|
|
79
|
+
return value
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class Compatibility(pydantic.BaseModel):
|
|
83
|
+
langbot: LangBotVersionRange | None = None
|
|
84
|
+
|
|
85
|
+
|
|
69
86
|
class Metadata(pydantic.BaseModel):
|
|
70
87
|
"""元数据"""
|
|
71
88
|
|
|
72
89
|
name: str
|
|
73
90
|
"""名称"""
|
|
74
91
|
|
|
92
|
+
compatibility: Compatibility | None = None
|
|
93
|
+
|
|
75
94
|
label: I18nString
|
|
76
95
|
"""标签"""
|
|
77
96
|
|
|
@@ -181,7 +200,21 @@ class ComponentManifest(pydantic.BaseModel):
|
|
|
181
200
|
manifest=manifest,
|
|
182
201
|
rel_path=rel_path,
|
|
183
202
|
)
|
|
184
|
-
|
|
203
|
+
metadata = manifest["metadata"]
|
|
204
|
+
try:
|
|
205
|
+
self._metadata = Metadata(**metadata)
|
|
206
|
+
except pydantic.ValidationError as error:
|
|
207
|
+
if not all(
|
|
208
|
+
item["loc"][:1] == ("compatibility",) for item in error.errors()
|
|
209
|
+
):
|
|
210
|
+
raise
|
|
211
|
+
self._metadata = Metadata(
|
|
212
|
+
**{
|
|
213
|
+
key: value
|
|
214
|
+
for key, value in metadata.items()
|
|
215
|
+
if key != "compatibility"
|
|
216
|
+
}
|
|
217
|
+
)
|
|
185
218
|
self._spec = manifest["spec"]
|
|
186
219
|
if manifest.get("kind") == "Plugin" and "permissions" in self._spec:
|
|
187
220
|
from langbot_plugin.api.entities.permissions import PluginPermissions
|
|
@@ -113,6 +113,15 @@ class ExecuteContext(WorkspaceExecutionScope):
|
|
|
113
113
|
privilege: int
|
|
114
114
|
"""发起人权限"""
|
|
115
115
|
|
|
116
|
+
config: dict[str, Any] = pydantic.Field(default_factory=dict)
|
|
117
|
+
"""Command configuration from the Host.
|
|
118
|
+
|
|
119
|
+
Values follow the ``spec.config`` form schema declared in the Command
|
|
120
|
+
component manifest, filled from the bound command processor instance.
|
|
121
|
+
Empty when the command declares no configuration or the Host predates
|
|
122
|
+
command configuration support.
|
|
123
|
+
"""
|
|
124
|
+
|
|
116
125
|
@pydantic.model_validator(mode="after")
|
|
117
126
|
def align_session_execution_scope(self) -> ExecuteContext:
|
|
118
127
|
self.inherit_execution_scope(self.session)
|
|
@@ -2,14 +2,15 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import asyncio
|
|
4
4
|
import base64
|
|
5
|
-
import httpx
|
|
6
5
|
import typing
|
|
7
|
-
import aiofiles
|
|
8
6
|
from datetime import datetime
|
|
9
7
|
from pathlib import Path
|
|
10
8
|
|
|
11
9
|
import pydantic
|
|
12
10
|
|
|
11
|
+
if typing.TYPE_CHECKING:
|
|
12
|
+
import httpx
|
|
13
|
+
|
|
13
14
|
|
|
14
15
|
MAX_IMAGE_BYTES = 10 * 1024 * 1024
|
|
15
16
|
|
|
@@ -224,7 +225,9 @@ class MessageChain(pydantic.RootModel[list[pydantic.SerializeAsAny[MessageCompon
|
|
|
224
225
|
)
|
|
225
226
|
|
|
226
227
|
# Special processing of the time field of the Source class
|
|
227
|
-
if component_type == "Source" and
|
|
228
|
+
if component_type == "Source" and isinstance(
|
|
229
|
+
item.get("time"), (int, float)
|
|
230
|
+
):
|
|
228
231
|
item["time"] = datetime.fromtimestamp(item["time"])
|
|
229
232
|
components.append(component_class.model_validate(item))
|
|
230
233
|
else:
|
|
@@ -357,6 +360,8 @@ class Image(MessageComponent):
|
|
|
357
360
|
async def get_bytes(self) -> typing.Tuple[bytes, str]:
|
|
358
361
|
"""Get image bytes and mimetype"""
|
|
359
362
|
if self.url:
|
|
363
|
+
import httpx
|
|
364
|
+
|
|
360
365
|
async with httpx.AsyncClient(timeout=30) as client:
|
|
361
366
|
async with client.stream("GET", self.url) as response:
|
|
362
367
|
response.raise_for_status()
|
|
@@ -384,6 +389,8 @@ class Image(MessageComponent):
|
|
|
384
389
|
raise ValueError(f"Image exceeds the {MAX_IMAGE_BYTES}-byte limit")
|
|
385
390
|
return decoded, mime_type
|
|
386
391
|
elif self.path:
|
|
392
|
+
import aiofiles
|
|
393
|
+
|
|
387
394
|
size = await asyncio.to_thread(Path(self.path).stat)
|
|
388
395
|
if size.st_size > MAX_IMAGE_BYTES:
|
|
389
396
|
raise ValueError(f"Image exceeds the {MAX_IMAGE_BYTES}-byte limit")
|
|
@@ -378,12 +378,15 @@ class RunnerContext(pydantic.BaseModel):
|
|
|
378
378
|
run_id: str | None = None,
|
|
379
379
|
reason: str | None = None,
|
|
380
380
|
cleanup_confirmed: bool = True,
|
|
381
|
+
*,
|
|
382
|
+
expected_retry_count: int | None = None,
|
|
381
383
|
) -> AgentRun:
|
|
382
384
|
"""Acknowledge completed cancellation cleanup."""
|
|
383
385
|
return await self.api.run_cancel_ack(
|
|
384
386
|
run_id=run_id,
|
|
385
387
|
reason=reason,
|
|
386
388
|
cleanup_confirmed=cleanup_confirmed,
|
|
389
|
+
expected_retry_count=expected_retry_count,
|
|
387
390
|
)
|
|
388
391
|
|
|
389
392
|
async def run_retry(
|
{langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/admin.py
RENAMED
|
@@ -380,15 +380,20 @@ class RunnerAdminAPIProxy:
|
|
|
380
380
|
run_id: str,
|
|
381
381
|
reason: str | None = None,
|
|
382
382
|
cleanup_confirmed: bool = True,
|
|
383
|
+
*,
|
|
384
|
+
expected_retry_count: int | None = None,
|
|
383
385
|
) -> AgentRun:
|
|
384
386
|
"""Record cancellation cleanup completion for a run."""
|
|
387
|
+
data = {
|
|
388
|
+
"target_run_id": run_id,
|
|
389
|
+
"reason": reason,
|
|
390
|
+
"cleanup_confirmed": cleanup_confirmed,
|
|
391
|
+
}
|
|
392
|
+
if expected_retry_count is not None:
|
|
393
|
+
data["expected_retry_count"] = expected_retry_count
|
|
385
394
|
resp = await self._call_action(
|
|
386
395
|
PluginToRuntimeAction.RUN_CANCEL_ACK,
|
|
387
|
-
|
|
388
|
-
"target_run_id": run_id,
|
|
389
|
-
"reason": reason,
|
|
390
|
-
"cleanup_confirmed": cleanup_confirmed,
|
|
391
|
-
},
|
|
396
|
+
data,
|
|
392
397
|
15.0,
|
|
393
398
|
)
|
|
394
399
|
return AgentRun.model_validate(resp)
|
{langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/ledger.py
RENAMED
|
@@ -132,18 +132,23 @@ class AgentRunLedgerAPIMixin:
|
|
|
132
132
|
run_id: str | None = None,
|
|
133
133
|
reason: str | None = None,
|
|
134
134
|
cleanup_confirmed: bool = True,
|
|
135
|
+
*,
|
|
136
|
+
expected_retry_count: int | None = None,
|
|
135
137
|
) -> AgentRun:
|
|
136
138
|
"""Acknowledge that cancellation cleanup has completed."""
|
|
137
139
|
self._require_context_api("run_cancel_ack")
|
|
138
140
|
timeout = 15.0
|
|
141
|
+
data = {
|
|
142
|
+
"run_id": self.run_id,
|
|
143
|
+
"target_run_id": run_id or self.run_id,
|
|
144
|
+
"reason": reason,
|
|
145
|
+
"cleanup_confirmed": cleanup_confirmed,
|
|
146
|
+
}
|
|
147
|
+
if expected_retry_count is not None:
|
|
148
|
+
data["expected_retry_count"] = expected_retry_count
|
|
139
149
|
resp = await self._api.plugin_runtime_handler.call_action(
|
|
140
150
|
PluginToRuntimeAction.RUN_CANCEL_ACK,
|
|
141
|
-
|
|
142
|
-
"run_id": self.run_id,
|
|
143
|
-
"target_run_id": run_id or self.run_id,
|
|
144
|
-
"reason": reason,
|
|
145
|
-
"cleanup_confirmed": cleanup_confirmed,
|
|
146
|
-
},
|
|
151
|
+
data,
|
|
147
152
|
timeout,
|
|
148
153
|
)
|
|
149
154
|
return AgentRun.model_validate(resp)
|
{langbot_plugin-0.7.26 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/workspace_domains.py
RENAMED
|
@@ -399,6 +399,10 @@ PluginGithubAssetsArguments = TypedDict('PluginGithubAssetsArguments', {
|
|
|
399
399
|
'repo': str,
|
|
400
400
|
})
|
|
401
401
|
|
|
402
|
+
PluginGithubRefsArguments = TypedDict('PluginGithubRefsArguments', {
|
|
403
|
+
'repo_url': str,
|
|
404
|
+
})
|
|
405
|
+
|
|
402
406
|
PluginGithubReleasesArguments = TypedDict('PluginGithubReleasesArguments', {
|
|
403
407
|
'repo_url': str,
|
|
404
408
|
})
|
|
@@ -647,6 +651,7 @@ MonitoringSessionsArguments = TypedDict('MonitoringSessionsArguments', {
|
|
|
647
651
|
'bot_ids': NotRequired[Union[builtins.list[str], None]],
|
|
648
652
|
'end_time': NotRequired[Union[str, None]],
|
|
649
653
|
'is_active': NotRequired[Union[bool, None]],
|
|
654
|
+
'launcher_id': NotRequired[Union[str, None]],
|
|
650
655
|
'limit': NotRequired[int],
|
|
651
656
|
'offset': NotRequired[int],
|
|
652
657
|
'pipeline_ids': NotRequired[Union[builtins.list[str], None]],
|
|
@@ -1261,6 +1266,11 @@ class PluginGithubDomain:
|
|
|
1261
1266
|
arguments: PluginGithubAssetsArguments = {'owner': owner, 'release_id': release_id, 'repo': repo}
|
|
1262
1267
|
return cast(OperationResult[dict[str, JSONValue]], await self._workspace.call('plugin.github.assets', **arguments))
|
|
1263
1268
|
|
|
1269
|
+
async def refs(self, *, repo_url: str) -> OperationResult[dict[str, JSONValue]]:
|
|
1270
|
+
'plugin.github.refs: List GitHub branches, tags and the default branch for a plugin repository URL.\nParameters (Python -> wire): repo_url -> repo_url.'
|
|
1271
|
+
arguments: PluginGithubRefsArguments = {'repo_url': repo_url}
|
|
1272
|
+
return cast(OperationResult[dict[str, JSONValue]], await self._workspace.call('plugin.github.refs', **arguments))
|
|
1273
|
+
|
|
1264
1274
|
async def releases(self, *, repo_url: str) -> OperationResult[dict[str, JSONValue]]:
|
|
1265
1275
|
'plugin.github.releases: Fetch available release versions and tags for a plugin from its GitHub repository URL.\nParameters (Python -> wire): repo_url -> repo_url.'
|
|
1266
1276
|
arguments: PluginGithubReleasesArguments = {'repo_url': repo_url}
|
|
@@ -1538,9 +1548,9 @@ class MonitoringDomain:
|
|
|
1538
1548
|
arguments: MonitoringOverviewArguments = {'bot_ids': bot_ids, 'end_time': end_time, 'execution_statuses': execution_statuses, 'mode': mode, 'pipeline_ids': pipeline_ids, 'start_time': start_time}
|
|
1539
1549
|
return cast(OperationResult[dict[str, JSONValue]], await self._workspace.call('monitoring.overview', **arguments))
|
|
1540
1550
|
|
|
1541
|
-
async def sessions(self, *, bot_ids: Union[builtins.list[str], None] = None, end_time: Union[str, None] = None, is_active: Union[bool, None] = None, limit: int = 100, offset: int = 0, pipeline_ids: Union[builtins.list[str], None] = None, start_time: Union[str, None] = None, user_query: Union[str, None] = None) -> OperationResult[builtins.list[Union[builtins.list[dict[str, JSONValue]], int]]]:
|
|
1542
|
-
'monitoring.sessions: Query chat sessions filtered by bot_ids, pipeline_ids, active status, user query keyword, and time range. Paginate results with limit and offset.\nParameters (Python -> wire): bot_ids -> bot_ids, end_time -> end_time, is_active -> is_active, limit -> limit, offset -> offset, pipeline_ids -> pipeline_ids, start_time -> start_time, user_query -> user_query.'
|
|
1543
|
-
arguments: MonitoringSessionsArguments = {'bot_ids': bot_ids, 'end_time': end_time, 'is_active': is_active, 'limit': limit, 'offset': offset, 'pipeline_ids': pipeline_ids, 'start_time': start_time, 'user_query': user_query}
|
|
1551
|
+
async def sessions(self, *, bot_ids: Union[builtins.list[str], None] = None, end_time: Union[str, None] = None, is_active: Union[bool, None] = None, launcher_id: Union[str, None] = None, limit: int = 100, offset: int = 0, pipeline_ids: Union[builtins.list[str], None] = None, start_time: Union[str, None] = None, user_query: Union[str, None] = None) -> OperationResult[builtins.list[Union[builtins.list[dict[str, JSONValue]], int]]]:
|
|
1552
|
+
'monitoring.sessions: Query chat sessions filtered by bot_ids, pipeline_ids, active status, user query keyword, and time range. Paginate results with limit and offset.\nParameters (Python -> wire): bot_ids -> bot_ids, end_time -> end_time, is_active -> is_active, launcher_id -> launcher_id, limit -> limit, offset -> offset, pipeline_ids -> pipeline_ids, start_time -> start_time, user_query -> user_query.'
|
|
1553
|
+
arguments: MonitoringSessionsArguments = {'bot_ids': bot_ids, 'end_time': end_time, 'is_active': is_active, 'launcher_id': launcher_id, 'limit': limit, 'offset': offset, 'pipeline_ids': pipeline_ids, 'start_time': start_time, 'user_query': user_query}
|
|
1544
1554
|
return cast(OperationResult[builtins.list[Union[builtins.list[dict[str, JSONValue]], int]]], await self._workspace.call('monitoring.sessions', **arguments))
|
|
1545
1555
|
|
|
1546
1556
|
async def tokens(self, *, bot_ids: Union[builtins.list[str], None] = None, bucket: str = 'hour', end_time: Union[str, None] = None, execution_statuses: Union[builtins.list[str], None] = None, mode: str = 'all', pipeline_ids: Union[builtins.list[str], None] = None, start_time: Union[str, None] = None) -> OperationResult[dict[str, JSONValue]]:
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
apiVersion: v1
|
|
2
2
|
kind: Plugin
|
|
3
3
|
metadata:
|
|
4
|
+
# compatibility:
|
|
5
|
+
# langbot:
|
|
6
|
+
# min: "4.12.0"
|
|
7
|
+
# max: "4.x"
|
|
4
8
|
author: {{ plugin_author }}
|
|
5
9
|
name: {{ plugin_name }}
|
|
6
10
|
repository: '{{ plugin_repository }}'
|
|
@@ -24,4 +28,4 @@ spec:
|
|
|
24
28
|
execution:
|
|
25
29
|
python:
|
|
26
30
|
path: main.py
|
|
27
|
-
attr: {{ plugin_attr }}
|
|
31
|
+
attr: {{ plugin_attr }}
|
|
@@ -7,6 +7,7 @@ import asyncio
|
|
|
7
7
|
import hashlib
|
|
8
8
|
import uuid
|
|
9
9
|
import logging
|
|
10
|
+
import time
|
|
10
11
|
from typing import Any
|
|
11
12
|
|
|
12
13
|
from langbot_plugin.runtime.io.handler import Handler
|
|
@@ -237,7 +238,8 @@ class ActionRPCBoxClient(BoxRuntimeClient):
|
|
|
237
238
|
if key not in {"artifact_mounts", "local_mounts"} or value
|
|
238
239
|
}
|
|
239
240
|
try:
|
|
240
|
-
|
|
241
|
+
rpc_started = time.perf_counter()
|
|
242
|
+
result = await self.handler.call_action(
|
|
241
243
|
action,
|
|
242
244
|
data,
|
|
243
245
|
timeout=timeout,
|
|
@@ -250,6 +252,13 @@ class ActionRPCBoxClient(BoxRuntimeClient):
|
|
|
250
252
|
LangBotToBoxAction.PREPARE_ARTIFACT,
|
|
251
253
|
},
|
|
252
254
|
)
|
|
255
|
+
if action == LangBotToBoxAction.EXEC:
|
|
256
|
+
self._logger.info(
|
|
257
|
+
"box_rpc_timing action=EXEC "
|
|
258
|
+
f"session_id={data.get('session_id', '')} "
|
|
259
|
+
f"rpc_ms={(time.perf_counter() - rpc_started) * 1000:.3f}"
|
|
260
|
+
)
|
|
261
|
+
return result
|
|
253
262
|
except BoxRuntimeUnavailableError:
|
|
254
263
|
raise
|
|
255
264
|
except Exception as exc:
|
|
@@ -126,6 +126,19 @@ def _rewrite_command_paths_for_e2b(command: str) -> str:
|
|
|
126
126
|
return re.sub(r"(?<![\w.-])/workspace(?=$|/|[^\w.-])", E2B_WORKSPACE_DIR, command)
|
|
127
127
|
|
|
128
128
|
|
|
129
|
+
def _drop_shield_exception_log(operation: "asyncio.Future") -> None:
|
|
130
|
+
"""Detach asyncio 3.14's shielded-future exception logger from ``operation``.
|
|
131
|
+
|
|
132
|
+
``asyncio.shield`` attaches ``_log_on_exception`` through a done-callback, so
|
|
133
|
+
it is only present after the loop has run the cancelled outer future's
|
|
134
|
+
callback. Removing an absent callback is a no-op, which keeps this safe on
|
|
135
|
+
earlier interpreters that never install it.
|
|
136
|
+
"""
|
|
137
|
+
logger = getattr(asyncio.tasks, "_log_on_exception", None)
|
|
138
|
+
if logger is not None:
|
|
139
|
+
operation.remove_done_callback(logger)
|
|
140
|
+
|
|
141
|
+
|
|
129
142
|
class E2BSandboxBackend(BaseSandboxBackend):
|
|
130
143
|
"""E2B/CubeSandbox sandbox backend.
|
|
131
144
|
|
|
@@ -489,6 +502,14 @@ class E2BSandboxBackend(BaseSandboxBackend):
|
|
|
489
502
|
try:
|
|
490
503
|
return await asyncio.shield(operation)
|
|
491
504
|
except asyncio.CancelledError:
|
|
505
|
+
# Python 3.14 parks `_log_on_exception` on the inner task via a
|
|
506
|
+
# done-callback once the shield's outer future is cancelled, and that
|
|
507
|
+
# logger writes the raw `repr()` of the failure -- bypassing
|
|
508
|
+
# `_safe_error`, which can echo request credentials. It is attached on
|
|
509
|
+
# the next loop pass, so detach it from a callback rather than by
|
|
510
|
+
# awaiting here (an extra yield lets a fast transfer finish and would
|
|
511
|
+
# change what callers observe on the first cancel).
|
|
512
|
+
asyncio.get_running_loop().call_soon(_drop_shield_exception_log, operation)
|
|
492
513
|
# Keep the session lock until remote publication and cleanup finish.
|
|
493
514
|
while not operation.done():
|
|
494
515
|
try:
|
|
@@ -84,6 +84,8 @@ _MANAGED_PROCESS_STDERR_LOG_CHUNKS_PER_WINDOW = 4
|
|
|
84
84
|
_MANAGED_PROCESS_STDERR_LOG_WINDOW_SEC = 1.0
|
|
85
85
|
_MANAGED_PROCESS_STDERR_LOG_EXCERPT_CHARS = 512
|
|
86
86
|
_REAPER_INTERVAL_SEC = 30
|
|
87
|
+
# shortcut: a 5-second freshness window can surface one stale exec failure, lower only with an explicit backend health protocol.
|
|
88
|
+
_SESSION_LIVENESS_RECHECK_SEC = 5.0
|
|
87
89
|
_UNSAFE_SOFT_STORAGE_LIMITS_ENV = "LANGBOT_BOX_ALLOW_UNSAFE_SOFT_STORAGE_LIMITS"
|
|
88
90
|
MAX_RUNTIME_SESSIONS = 5_000
|
|
89
91
|
MAX_RUNTIME_MANAGED_PROCESSES = 1_024
|
|
@@ -154,6 +156,7 @@ class _RuntimeSession:
|
|
|
154
156
|
# Signature of the extra bind mounts the container was created with. Used
|
|
155
157
|
# to detect when a reused session would be missing newly-requested mounts.
|
|
156
158
|
extra_mounts_key: frozenset[tuple[str, str, str, str, str]] = frozenset()
|
|
159
|
+
liveness_checked_at: float | None = None
|
|
157
160
|
closing: bool = False
|
|
158
161
|
idle_ttl_sec: int | None = None
|
|
159
162
|
owned_workspace: tuple[str, int, int] | None = None
|
|
@@ -1700,19 +1703,26 @@ done
|
|
|
1700
1703
|
artifact_digests: list[str],
|
|
1701
1704
|
artifact_owner: str | None,
|
|
1702
1705
|
) -> BoxExecutionResult:
|
|
1706
|
+
execute_started = time.perf_counter()
|
|
1703
1707
|
session = await self._get_or_create_session(
|
|
1704
1708
|
spec,
|
|
1705
1709
|
track_active_exec=True,
|
|
1706
1710
|
action_context=action_context,
|
|
1707
1711
|
)
|
|
1712
|
+
session_acquire_ms = (time.perf_counter() - execute_started) * 1000
|
|
1708
1713
|
if self.network_workspace:
|
|
1709
1714
|
spec = spec.model_copy(update={"host_path": session.info.host_path})
|
|
1710
1715
|
|
|
1711
1716
|
result: BoxExecutionResult | None = None
|
|
1712
1717
|
cleanup_task: asyncio.Task[None] | None = None
|
|
1713
1718
|
execution_cancelled = False
|
|
1719
|
+
runtime_started = time.perf_counter()
|
|
1720
|
+
lock_wait_started = runtime_started
|
|
1721
|
+
lock_wait_ms = 0.0
|
|
1722
|
+
backend_exec_ms = 0.0
|
|
1714
1723
|
try:
|
|
1715
1724
|
async with session.lock:
|
|
1725
|
+
lock_wait_ms = (time.perf_counter() - lock_wait_started) * 1000
|
|
1716
1726
|
if session.closing:
|
|
1717
1727
|
raise BoxSessionNotFoundError(
|
|
1718
1728
|
f"session {spec.session_id} is being deleted"
|
|
@@ -1736,7 +1746,9 @@ done
|
|
|
1736
1746
|
await self._enforce_network_workspace_quota(
|
|
1737
1747
|
session, spec, "before execution"
|
|
1738
1748
|
)
|
|
1749
|
+
backend_started = time.perf_counter()
|
|
1739
1750
|
result = await session.backend.exec(session.info, spec)
|
|
1751
|
+
backend_exec_ms = (time.perf_counter() - backend_started) * 1000
|
|
1740
1752
|
try:
|
|
1741
1753
|
await self._enforce_network_workspace_quota(
|
|
1742
1754
|
session, spec, "after execution"
|
|
@@ -1748,9 +1760,26 @@ done
|
|
|
1748
1760
|
execution_cancelled = True
|
|
1749
1761
|
session.closing = True
|
|
1750
1762
|
raise
|
|
1763
|
+
except Exception:
|
|
1764
|
+
session.liveness_checked_at = None
|
|
1765
|
+
raise
|
|
1766
|
+
if (
|
|
1767
|
+
result.status == BoxExecutionStatus.COMPLETED
|
|
1768
|
+
and result.exit_code == 0
|
|
1769
|
+
):
|
|
1770
|
+
session.liveness_checked_at = time.monotonic()
|
|
1771
|
+
else:
|
|
1772
|
+
session.liveness_checked_at = None
|
|
1751
1773
|
if result.status == BoxExecutionStatus.TIMED_OUT:
|
|
1752
1774
|
# Fence queued callers before releasing the execution lock.
|
|
1753
1775
|
session.closing = True
|
|
1776
|
+
self.logger.info(
|
|
1777
|
+
"box_execute_timing "
|
|
1778
|
+
f"session_id={spec.session_id} lock_wait_ms={lock_wait_ms:.3f} "
|
|
1779
|
+
f"session_acquire_ms={session_acquire_ms:.3f} "
|
|
1780
|
+
f"backend_exec_ms={backend_exec_ms:.3f} "
|
|
1781
|
+
f"runtime_ms={(time.perf_counter() - runtime_started) * 1000:.3f}"
|
|
1782
|
+
)
|
|
1754
1783
|
return result
|
|
1755
1784
|
finally:
|
|
1756
1785
|
async with self._lock:
|
|
@@ -2852,20 +2881,42 @@ done
|
|
|
2852
2881
|
continue
|
|
2853
2882
|
|
|
2854
2883
|
if existing is not None:
|
|
2884
|
+
probe_due = (
|
|
2885
|
+
existing.liveness_checked_at is None
|
|
2886
|
+
or time.monotonic() - existing.liveness_checked_at
|
|
2887
|
+
>= _SESSION_LIVENESS_RECHECK_SEC
|
|
2888
|
+
)
|
|
2889
|
+
probe_started = time.perf_counter()
|
|
2855
2890
|
try:
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2891
|
+
if probe_due:
|
|
2892
|
+
try:
|
|
2893
|
+
alive = await backend.is_session_alive(existing.info)
|
|
2894
|
+
except Exception as exc:
|
|
2895
|
+
alive = False
|
|
2896
|
+
self.logger.warning(
|
|
2897
|
+
"LangBot Box session liveness probe failed: "
|
|
2898
|
+
f"session_id={spec.session_id} error={exc}"
|
|
2899
|
+
)
|
|
2900
|
+
existing.liveness_checked_at = (
|
|
2901
|
+
time.monotonic() if alive else None
|
|
2863
2902
|
)
|
|
2903
|
+
else:
|
|
2904
|
+
alive = True
|
|
2864
2905
|
finally:
|
|
2906
|
+
probe_ms = (
|
|
2907
|
+
(time.perf_counter() - probe_started) * 1000
|
|
2908
|
+
if probe_due
|
|
2909
|
+
else 0.0
|
|
2910
|
+
)
|
|
2865
2911
|
async with self._lock:
|
|
2866
2912
|
self._session_leases[spec.session_id] -= 1
|
|
2867
2913
|
if self._session_leases[spec.session_id] <= 0:
|
|
2868
2914
|
self._session_leases.pop(spec.session_id, None)
|
|
2915
|
+
self.logger.info(
|
|
2916
|
+
"box_session_probe_timing "
|
|
2917
|
+
f"session_id={spec.session_id} probe_ms={probe_ms:.3f} "
|
|
2918
|
+
f"alive={alive} cached={not probe_due}"
|
|
2919
|
+
)
|
|
2869
2920
|
|
|
2870
2921
|
async with self._lock:
|
|
2871
2922
|
current = self._sessions.get(spec.session_id)
|
|
@@ -2962,6 +3013,7 @@ done
|
|
|
2962
3013
|
lock=asyncio.Lock(),
|
|
2963
3014
|
workspace_key=workspace_key,
|
|
2964
3015
|
extra_mounts_key=new_extra_mounts_key,
|
|
3016
|
+
liveness_checked_at=time.monotonic(),
|
|
2965
3017
|
idle_ttl_sec=spec.idle_ttl_sec,
|
|
2966
3018
|
owned_workspace=owned_workspace,
|
|
2967
3019
|
)
|
|
@@ -29,6 +29,7 @@ import hashlib
|
|
|
29
29
|
import logging
|
|
30
30
|
import os
|
|
31
31
|
import sys
|
|
32
|
+
import time
|
|
32
33
|
from typing import Any
|
|
33
34
|
|
|
34
35
|
import pydantic
|
|
@@ -43,7 +44,7 @@ from langbot_plugin.runtime.io.handler import Handler
|
|
|
43
44
|
from langbot_plugin.runtime.bounded_executor import (
|
|
44
45
|
configure_bounded_default_executor_from_env,
|
|
45
46
|
)
|
|
46
|
-
from langbot_plugin.utils.log import configure_process_logging
|
|
47
|
+
from langbot_plugin.utils.log import configure_process_logging, install_loop_logging
|
|
47
48
|
|
|
48
49
|
from .actions import LangBotToBoxAction
|
|
49
50
|
from .errors import (
|
|
@@ -571,7 +572,7 @@ class BoxServerHandler(Handler):
|
|
|
571
572
|
@self.action(CommonAction.PING)
|
|
572
573
|
async def ping(data: dict[str, Any]) -> ActionResponse:
|
|
573
574
|
self._require_host_control()
|
|
574
|
-
return ActionResponse.success({})
|
|
575
|
+
return ActionResponse.success({"log_trace": True})
|
|
575
576
|
|
|
576
577
|
@self.action(LangBotToBoxAction.HEALTH)
|
|
577
578
|
async def health(data: dict[str, Any]) -> ActionResponse:
|
|
@@ -602,30 +603,51 @@ class BoxServerHandler(Handler):
|
|
|
602
603
|
|
|
603
604
|
@self.action(LangBotToBoxAction.EXEC)
|
|
604
605
|
async def exec_cmd(data: dict[str, Any]) -> ActionResponse:
|
|
606
|
+
started = time.perf_counter()
|
|
607
|
+
validate_ms = 0.0
|
|
608
|
+
runtime_ms = 0.0
|
|
609
|
+
response_started: float | None = None
|
|
605
610
|
try:
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
)
|
|
611
|
+
try:
|
|
612
|
+
context = self._action_context()
|
|
613
|
+
spec = BoxSpec.model_validate(data)
|
|
614
|
+
if not self._runtime.admission_required:
|
|
615
|
+
spec = spec.model_copy(
|
|
616
|
+
update={"session_id": self._session_id(spec.session_id)}
|
|
617
|
+
)
|
|
618
|
+
validate_ms = (time.perf_counter() - started) * 1000
|
|
619
|
+
runtime_started = time.perf_counter()
|
|
614
620
|
result = await self._runtime.execute(
|
|
615
621
|
spec,
|
|
616
622
|
action_context=context,
|
|
617
623
|
)
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
624
|
+
runtime_ms = (time.perf_counter() - runtime_started) * 1000
|
|
625
|
+
except BoxArtifactNotPreparedError as exc:
|
|
626
|
+
return ActionResponse.error(f"BoxArtifactNotPreparedError: {exc}")
|
|
627
|
+
except (pydantic.ValidationError, ValueError) as exc:
|
|
628
|
+
if data.get("e2b_config") is not None:
|
|
629
|
+
return ActionResponse.error(
|
|
630
|
+
"BoxValidationError: Invalid E2B connection configuration"
|
|
631
|
+
)
|
|
632
|
+
return ActionResponse.error(f"BoxValidationError: {exc}")
|
|
633
|
+
response_started = time.perf_counter()
|
|
634
|
+
return ActionResponse.success(
|
|
635
|
+
self._logical_session_data(_result_to_dict(result))
|
|
636
|
+
)
|
|
637
|
+
finally:
|
|
638
|
+
response_ms = (
|
|
639
|
+
(time.perf_counter() - response_started) * 1000
|
|
640
|
+
if response_started is not None
|
|
641
|
+
else 0.0
|
|
642
|
+
)
|
|
643
|
+
logger.info(
|
|
644
|
+
"box_action_timing action=EXEC validate_ms=%.3f "
|
|
645
|
+
"runtime_ms=%.3f response_ms=%.3f handler_ms=%.3f",
|
|
646
|
+
validate_ms,
|
|
647
|
+
runtime_ms,
|
|
648
|
+
response_ms,
|
|
649
|
+
(time.perf_counter() - started) * 1000,
|
|
650
|
+
)
|
|
629
651
|
|
|
630
652
|
@self.action(LangBotToBoxAction.UPLOAD_FILE)
|
|
631
653
|
async def upload_file(data: dict[str, Any]) -> ActionResponse:
|
|
@@ -1238,6 +1260,7 @@ async def _run_server(
|
|
|
1238
1260
|
blocking_executor = configure_bounded_default_executor_from_env(
|
|
1239
1261
|
thread_name_prefix="langbot-box-runtime-blocking",
|
|
1240
1262
|
)
|
|
1263
|
+
install_loop_logging()
|
|
1241
1264
|
control_token = str(os.environ.get(BOX_CONTROL_TOKEN_ENV, "")).strip()
|
|
1242
1265
|
if control_token:
|
|
1243
1266
|
control_token = validate_control_token(control_token)
|
|
@@ -1338,7 +1361,7 @@ def main(args: argparse.Namespace) -> None:
|
|
|
1338
1361
|
# default, stdio when `-s`/`--stdio-control` is passed.
|
|
1339
1362
|
control_mode = "stdio" if args.stdio_control else "ws"
|
|
1340
1363
|
|
|
1341
|
-
configure_process_logging(stream=sys.stderr)
|
|
1364
|
+
configure_process_logging(service="BOX", stream=sys.stderr)
|
|
1342
1365
|
try:
|
|
1343
1366
|
asyncio.run(
|
|
1344
1367
|
_run_server(
|
|
@@ -1351,3 +1374,6 @@ def main(args: argparse.Namespace) -> None:
|
|
|
1351
1374
|
)
|
|
1352
1375
|
except KeyboardInterrupt:
|
|
1353
1376
|
logger.info("Keyboard interrupt, Box runtime stopped")
|
|
1377
|
+
except Exception:
|
|
1378
|
+
logger.exception("Box Runtime failed")
|
|
1379
|
+
raise SystemExit(1) from None
|