langbot-plugin 0.7.26__tar.gz → 0.7.27__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.27}/PKG-INFO +1 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/docs/execution_api.md +2 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/pyproject.toml +1 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/manifest.py +34 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/platform/message.py +7 -2
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/context.py +3 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/runner/admin.py +10 -5
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/runner/ledger.py +11 -6
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/workspace_domains.py +13 -3
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/manifest.yaml.example +5 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/e2b_backend.py +21 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/server.py +7 -3
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/__init__.py +23 -9
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/commands/runplugin.py +11 -2
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/run/handler.py +3 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/entities/io/req.py +1 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/app.py +13 -3
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/connections/stdio.py +14 -7
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/handler.py +15 -2
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/handlers/control.py +3 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/handlers/plugin.py +7 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/plugin/logbuffer.py +37 -3
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/plugin/mgr.py +6 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/plugin/worker_launcher.py +104 -20
- langbot_plugin-0.7.27/src/langbot_plugin/utils/log.py +175 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/utils/packaging.py +5 -0
- langbot_plugin-0.7.27/src/langbot_plugin/utils/version_compat.py +114 -0
- langbot_plugin-0.7.27/src/langbot_plugin/version.py +1 -0
- langbot_plugin-0.7.27/tests/api/definition/test_version_compat.py +35 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/proxies/test_agent_run_api_proxy.py +10 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_server.py +1 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/cli/test_buildplugin.py +49 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/cli/test_cli_main.py +41 -13
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/cli/test_runplugin.py +9 -9
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/data/execution_api_catalog.json +13 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/io/handlers/test_control_handler.py +1 -1
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/io/test_audit_correlation.py +19 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/io/test_heartbeat_admission.py +9 -11
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/io/test_stdio_encoding.py +12 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_plugin_logs_real_worker.py +18 -2
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_worker_launcher.py +96 -0
- langbot_plugin-0.7.27/tests/test_log.py +82 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/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.27}/.gitignore +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/.python-version +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/AGENTS.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/ARCHITECTURE.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/CLAUDE.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/CONTRIBUTING.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/LICENSE +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/README.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/README_CN.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/RELEASING.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/SOURCE.json +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/data/.env.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/docs/Message.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/docs/PluginPages.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/docs/agent-runner-interactions.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/docs/agent-runner-pluginization/PROTOCOL_V1.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/docs/agent-runner-pluginization/README.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/docs/agent-runner-pluginization/SDK_RUNTIME_PLAN.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/docs/box-instance-identity.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/docs/certified-plugins.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/docs/communication/apis/lb2rt.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/docs/communication/runtime_plugin.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/docs/dependency-management.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/docs/langbot-plugin-social.png +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/docs/runner.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/docs/stateless-components.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/examples/workspace_runner_plugin/README.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/examples/workspace_runner_plugin/components/runner/default.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/examples/workspace_runner_plugin/components/runner/default.yaml +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/examples/workspace_runner_plugin/main.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/examples/workspace_runner_plugin/manifest.yaml +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/local_e2e/acceptance.json +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/local_e2e/registration_fanin.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/local_e2e/run_acceptance.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/mypy.ini +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/scripts/check_action_consistency.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/scripts/runtime_resource_probe.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/agent_tools/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/agent_tools/asset_gateway.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/agent_tools/daemon.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/agent_tools/decorators.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/agent_tools/external_tools.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/agent_tools/mcp_access.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/agent_tools/mcp_bridge.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/agent_tools/mcp_config.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/agent_tools/mcp_protocol.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/agent_tools/mcp_stdio.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/abstract/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/abstract/platform/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/abstract/platform/adapter.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/abstract/platform/event_logger.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/base.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/command/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/command/command.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/common/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/common/event_listener.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/knowledge_engine/engine.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/page/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/parser/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/parser/parser.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/runner/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/runner/runner.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/tool/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/components/tool/tool.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/definition/plugin.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/command/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/command/context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/command/errors.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/pipeline/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/pipeline/query.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/platform/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/platform/entities.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/platform/errors.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/platform/events.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/platform/logger.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/provider/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/provider/message.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/provider/prompt.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/provider/reasoning.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/provider/session.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/rag/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/rag/context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/rag/enums.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/rag/errors.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/rag/models.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/resource/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/resource/tool.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/box.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/capabilities.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/compat.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/context_access.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/delivery.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/errors.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/event.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/input.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/interaction.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/manifest.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/page_results.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/permissions.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/resources.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/result.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/run_ledger.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/runtime.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/runtime_registry.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/state.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/stats.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/steering.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/transcript.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/builtin/runner/trigger.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/events.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/execution.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/entities/permissions.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/artifacts.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/base.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/event_context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/execute_context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/execution.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/invocation.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/langbot_api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/query_based_api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/runner/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/runner/api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/runner/box.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/runner/common.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/runner/context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/runner/platform.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/runner/reply_stream.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/runner/resources.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/runner/state.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/runner/tracing.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/api/proxies/workspace.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/artifact.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/langbot-page-sdk.js +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/.env.example.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/.github/workflows/release.yml.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/.gitignore.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/.vscode/launch.json.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/README.md.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/assets/icon.svg.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/commands/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.py.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.yaml.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/event_listener/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/event_listener/default.py.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/event_listener/default.yaml.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.py.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.yaml.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/pages/{page_name}.html.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/pages/{page_name}.yaml.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/parser/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.py.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.yaml.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/runner/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.py.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.yaml.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/tools/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.py.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.yaml.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/main.py.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/readme/README_zh_Hans.md.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/assets/templates/requirements.txt.example +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/actions.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/artifact_cache.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/client.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/errors.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/file_io.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/host_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/identity.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/models.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/nsjail_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/runtime.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/security.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/tenancy.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/windows_export.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/windows_file_io.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/box/windows_job.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/certification.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/__main__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/commands/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/commands/buildplugin.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/commands/gencomponent.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/commands/initplugin.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/commands/login.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/commands/logout.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/commands/publish.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/gen/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/gen/renderer.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/i18n.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/locales/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/locales/en_US.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/locales/es_ES.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/locales/ja_JP.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/locales/th_TH.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/locales/vi_VN.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/locales/zh_Hans.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/locales/zh_Hant.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/run/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/run/controller.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/run/hotreload.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/utils/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/utils/cloudsv.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/utils/form.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/utils/page_components.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/entities/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/entities/io/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/entities/io/actions/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/entities/io/actions/enums.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/entities/io/context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/entities/io/errors.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/entities/io/resp.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/entities/marketplace.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/LICENSE +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/README.md +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/bounded_executor.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/event_loop_monitor.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/helper/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/helper/marketplace.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/helper/pkgmgr.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/connection.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/connections/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/connections/ws.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/controller.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/controllers/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/controllers/stdio/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/controllers/stdio/client.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/controllers/stdio/server.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/controllers/ws/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/controllers/ws/client.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/controllers/ws/server.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/handlers/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/ops_metrics.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/plugin/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/plugin/artifact.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/plugin/container.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/plugin/dependency_environment.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/plugin/restart_coordinator.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/plugin/runner_service.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/plugin/worker_observability.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/plugin/worker_watchdog.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/security.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/settings.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/skill_store.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/storage.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/utils/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/utils/deadline.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/utils/discover/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/utils/discover/engine.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/utils/git_sync.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/utils/importutil.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/utils/page_components.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/utils/platform.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/workspace.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/definition/components/test_components.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/definition/components/test_imports.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/definition/test_manifest.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/definition/test_manifest_component_path.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/entities/builtin/runner/test_context_result.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/entities/builtin/runner/test_history_event_entities.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/entities/builtin/runner/test_interaction.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/entities/builtin/runner/test_run_ledger_entities.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/entities/builtin/test_command_context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/entities/builtin/test_platform_logger.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/entities/builtin/test_provider_message.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/entities/builtin/test_rag_models.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/entities/test_context.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/entities/test_events.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/proxies/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/proxies/test_artifacts_api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/proxies/test_base.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/proxies/test_box_api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/proxies/test_history_event_api_proxy.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/proxies/test_input_attachment_api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/proxies/test_langbot_api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/proxies/test_llm_stream_ownership.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/proxies/test_query_based_api.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/proxies/test_reasoning_parameter.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/proxies/test_runner_tool_content_trace.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/test_agent_tools_mcp_bridge.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/test_execution_api_consistency.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/test_runner_handlers.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/test_runner_handlers_matrix.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/test_runner_public_apis.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/test_workspace_domains.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/api/test_workspace_operations.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/conftest.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_admission.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_artifact_cache.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_artifact_cache_root.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_backend_selection.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_client.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_directory_archive.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_e2b_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_file_chunk_negotiation.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_file_transfer.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_host_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_identity.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_network_workspace.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_nsjail_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_nsjail_v1_live.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_runtime.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_skill_store.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_storage_analysis.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_windows_host_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_windows_workspace_operations.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_workspace_cleanup.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/box/test_workspace_cleanup_backend.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/cli/run/test_controller.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/cli/run/test_hotreload.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/cli/run/test_runtime_handler.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/cli/test_examples.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/cli/test_gencomponent.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/cli/test_i18n_form.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/cli/test_initplugin.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/cli/test_login.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/cli/test_logout_publish.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/cli/test_page_components.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/cli/test_renderer.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/cli/test_runner_usages.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/e2e/Dockerfile.box-socket +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/e2e/Dockerfile.box-socket.dockerignore +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/e2e/standalone_runtime_eba_probe.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/e2e/test_box_file_transfer_live.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/e2e/test_box_instance_cleanup_docker.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/e2e/test_box_socket_mounts.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/e2e/test_nsjail_large_commands.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/e2e/test_run_mount_isolation.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/entities/io/test_dependency_errors.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/entities/io/test_protocol.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/fixtures/eba_event_probe_plugin/.gitignore +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/fixtures/eba_event_probe_plugin/assets/icon.svg +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.yaml +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/fixtures/eba_event_probe_plugin/main.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/fixtures/eba_event_probe_plugin/manifest.yaml +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/helpers/__init__.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/helpers/protocol.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/packaging/test_installed_cli_blackbox.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/packaging/test_release_metadata.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/helper/test_marketplace.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/helper/test_pkgmgr.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/io/handlers/test_import_contracts.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/io/handlers/test_legacy_file_chunk.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/io/handlers/test_plugin_handler.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/io/test_action_consistency.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/io/test_connections.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/io/test_controllers.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/io/test_handler.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/io/test_payload_limits.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/io/test_stdio_server.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/io/test_stream_flow_control.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_artifact_store.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_container.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_dependency_environment.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_event_dispatch_real_worker.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_exact_dify_real_worker.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_exact_legacy_sdk_compat.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_installation_manager.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_legacy_shadow.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_manager.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_mgr_runner.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_mode_resource_limits.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_restart_coordinator.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_shared_worker_subprocess.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_worker_plugin_identity.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/plugin/test_workload_isolation.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/test_app.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/test_bounded_executor.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/test_event_loop_monitor.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/test_ops_metrics.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/test_pull_api_handlers.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/runtime/test_security.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/test_artifact_materialization.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/test_certification.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/test_message.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/test_skill_publication_resources.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/test_skill_store.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/test_skill_zip_import.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/test_storage.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/test_worker_observability.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/test_worker_watchdog.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/utils/test_cli_run_handler_packaging.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/utils/test_deadline.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/utils/test_discovery.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/utils/test_git_sync.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/utils/test_importutil.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/tests/utils/test_packaging_utils.py +0 -0
- {langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/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.27
|
|
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
|
|
@@ -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
|
|
|
@@ -357,6 +358,8 @@ class Image(MessageComponent):
|
|
|
357
358
|
async def get_bytes(self) -> typing.Tuple[bytes, str]:
|
|
358
359
|
"""Get image bytes and mimetype"""
|
|
359
360
|
if self.url:
|
|
361
|
+
import httpx
|
|
362
|
+
|
|
360
363
|
async with httpx.AsyncClient(timeout=30) as client:
|
|
361
364
|
async with client.stream("GET", self.url) as response:
|
|
362
365
|
response.raise_for_status()
|
|
@@ -384,6 +387,8 @@ class Image(MessageComponent):
|
|
|
384
387
|
raise ValueError(f"Image exceeds the {MAX_IMAGE_BYTES}-byte limit")
|
|
385
388
|
return decoded, mime_type
|
|
386
389
|
elif self.path:
|
|
390
|
+
import aiofiles
|
|
391
|
+
|
|
387
392
|
size = await asyncio.to_thread(Path(self.path).stat)
|
|
388
393
|
if size.st_size > MAX_IMAGE_BYTES:
|
|
389
394
|
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.27}/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.27}/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.27}/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 }}
|
|
@@ -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:
|
|
@@ -43,7 +43,7 @@ from langbot_plugin.runtime.io.handler import Handler
|
|
|
43
43
|
from langbot_plugin.runtime.bounded_executor import (
|
|
44
44
|
configure_bounded_default_executor_from_env,
|
|
45
45
|
)
|
|
46
|
-
from langbot_plugin.utils.log import configure_process_logging
|
|
46
|
+
from langbot_plugin.utils.log import configure_process_logging, install_loop_logging
|
|
47
47
|
|
|
48
48
|
from .actions import LangBotToBoxAction
|
|
49
49
|
from .errors import (
|
|
@@ -571,7 +571,7 @@ class BoxServerHandler(Handler):
|
|
|
571
571
|
@self.action(CommonAction.PING)
|
|
572
572
|
async def ping(data: dict[str, Any]) -> ActionResponse:
|
|
573
573
|
self._require_host_control()
|
|
574
|
-
return ActionResponse.success({})
|
|
574
|
+
return ActionResponse.success({"log_trace": True})
|
|
575
575
|
|
|
576
576
|
@self.action(LangBotToBoxAction.HEALTH)
|
|
577
577
|
async def health(data: dict[str, Any]) -> ActionResponse:
|
|
@@ -1238,6 +1238,7 @@ async def _run_server(
|
|
|
1238
1238
|
blocking_executor = configure_bounded_default_executor_from_env(
|
|
1239
1239
|
thread_name_prefix="langbot-box-runtime-blocking",
|
|
1240
1240
|
)
|
|
1241
|
+
install_loop_logging()
|
|
1241
1242
|
control_token = str(os.environ.get(BOX_CONTROL_TOKEN_ENV, "")).strip()
|
|
1242
1243
|
if control_token:
|
|
1243
1244
|
control_token = validate_control_token(control_token)
|
|
@@ -1338,7 +1339,7 @@ def main(args: argparse.Namespace) -> None:
|
|
|
1338
1339
|
# default, stdio when `-s`/`--stdio-control` is passed.
|
|
1339
1340
|
control_mode = "stdio" if args.stdio_control else "ws"
|
|
1340
1341
|
|
|
1341
|
-
configure_process_logging(stream=sys.stderr)
|
|
1342
|
+
configure_process_logging(service="BOX", stream=sys.stderr)
|
|
1342
1343
|
try:
|
|
1343
1344
|
asyncio.run(
|
|
1344
1345
|
_run_server(
|
|
@@ -1351,3 +1352,6 @@ def main(args: argparse.Namespace) -> None:
|
|
|
1351
1352
|
)
|
|
1352
1353
|
except KeyboardInterrupt:
|
|
1353
1354
|
logger.info("Keyboard interrupt, Box runtime stopped")
|
|
1355
|
+
except Exception:
|
|
1356
|
+
logger.exception("Box Runtime failed")
|
|
1357
|
+
raise SystemExit(1) from None
|
|
@@ -2,14 +2,6 @@ import argparse
|
|
|
2
2
|
import sys
|
|
3
3
|
|
|
4
4
|
from langbot_plugin.version import __version__
|
|
5
|
-
from langbot_plugin.runtime import app as runtime_app
|
|
6
|
-
from langbot_plugin.cli.commands.initplugin import init_plugin_process
|
|
7
|
-
from langbot_plugin.cli.commands.gencomponent import generate_component_process
|
|
8
|
-
from langbot_plugin.cli.commands.runplugin import run_plugin_process
|
|
9
|
-
from langbot_plugin.cli.commands.buildplugin import build_plugin_process
|
|
10
|
-
from langbot_plugin.cli.commands.login import login_process
|
|
11
|
-
from langbot_plugin.cli.commands.logout import logout_process
|
|
12
|
-
from langbot_plugin.cli.commands.publish import publish_process
|
|
13
5
|
from langbot_plugin.cli.i18n import cli_print
|
|
14
6
|
|
|
15
7
|
"""
|
|
@@ -186,14 +178,26 @@ def main():
|
|
|
186
178
|
case "ver":
|
|
187
179
|
cli_print("version_info", __version__)
|
|
188
180
|
case "login":
|
|
181
|
+
from langbot_plugin.cli.commands.login import login_process
|
|
182
|
+
|
|
189
183
|
login_process(token=args.token)
|
|
190
184
|
case "logout":
|
|
185
|
+
from langbot_plugin.cli.commands.logout import logout_process
|
|
186
|
+
|
|
191
187
|
logout_process()
|
|
192
188
|
case "init":
|
|
189
|
+
from langbot_plugin.cli.commands.initplugin import init_plugin_process
|
|
190
|
+
|
|
193
191
|
init_plugin_process(args.plugin_name if args.plugin_name else "")
|
|
194
192
|
case "comp":
|
|
193
|
+
from langbot_plugin.cli.commands.gencomponent import (
|
|
194
|
+
generate_component_process,
|
|
195
|
+
)
|
|
196
|
+
|
|
195
197
|
generate_component_process(args.component_type)
|
|
196
198
|
case "run":
|
|
199
|
+
from langbot_plugin.cli.commands.runplugin import run_plugin_process
|
|
200
|
+
|
|
197
201
|
cli_print("running_plugin")
|
|
198
202
|
run_plugin_process(
|
|
199
203
|
args.stdio,
|
|
@@ -204,10 +208,20 @@ def main():
|
|
|
204
208
|
tag=args.tag,
|
|
205
209
|
)
|
|
206
210
|
case "build":
|
|
207
|
-
build_plugin_process
|
|
211
|
+
from langbot_plugin.cli.commands.buildplugin import build_plugin_process
|
|
212
|
+
from langbot_plugin.utils.version_compat import InvalidCompatibility
|
|
213
|
+
|
|
214
|
+
try:
|
|
215
|
+
build_plugin_process(args.output)
|
|
216
|
+
except InvalidCompatibility as exc:
|
|
217
|
+
raise SystemExit(str(exc)) from None
|
|
208
218
|
case "publish":
|
|
219
|
+
from langbot_plugin.cli.commands.publish import publish_process
|
|
220
|
+
|
|
209
221
|
publish_process()
|
|
210
222
|
case "rt":
|
|
223
|
+
from langbot_plugin.runtime import app as runtime_app
|
|
224
|
+
|
|
211
225
|
runtime_app.main(args)
|
|
212
226
|
case "box":
|
|
213
227
|
from langbot_plugin.box.server import main as box_main
|
{langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/cli/commands/runplugin.py
RENAMED
|
@@ -6,7 +6,11 @@ import logging
|
|
|
6
6
|
import os
|
|
7
7
|
|
|
8
8
|
from langbot_plugin.utils.discover.engine import ComponentDiscoveryEngine
|
|
9
|
-
from langbot_plugin.utils.log import
|
|
9
|
+
from langbot_plugin.utils.log import (
|
|
10
|
+
ServiceFormatter,
|
|
11
|
+
configure_process_logging,
|
|
12
|
+
install_loop_logging,
|
|
13
|
+
)
|
|
10
14
|
from langbot_plugin.cli.run.controller import PluginRuntimeController
|
|
11
15
|
from langbot_plugin.cli.i18n import cli_print
|
|
12
16
|
from langbot_plugin.cli.utils.page_components import (
|
|
@@ -55,6 +59,7 @@ async def arun_plugin_process(
|
|
|
55
59
|
configure_bounded_default_executor_from_env(
|
|
56
60
|
thread_name_prefix="langbot-plugin-worker-blocking",
|
|
57
61
|
)
|
|
62
|
+
install_loop_logging()
|
|
58
63
|
# Shared/production artifacts are immutable code and must never inject
|
|
59
64
|
# process environment. OSS development keeps the historical .env behavior.
|
|
60
65
|
runtime_profile = os.environ.get(PLUGIN_RUNTIME_PROFILE_ENV, "oss_dev")
|
|
@@ -85,6 +90,10 @@ async def arun_plugin_process(
|
|
|
85
90
|
cli_print("manifest_not_found")
|
|
86
91
|
return
|
|
87
92
|
|
|
93
|
+
for handler in logging.root.handlers:
|
|
94
|
+
if isinstance(handler.formatter, ServiceFormatter):
|
|
95
|
+
handler.formatter.service = f"PLUGIN.{plugin_manifest.metadata.author}/{plugin_manifest.metadata.name}"
|
|
96
|
+
|
|
88
97
|
ws_debug_url = ""
|
|
89
98
|
|
|
90
99
|
if not stdio:
|
|
@@ -118,7 +127,7 @@ def run_plugin_process(
|
|
|
118
127
|
pypi_trusted_host: str = "",
|
|
119
128
|
tag: str = "",
|
|
120
129
|
) -> None:
|
|
121
|
-
configure_process_logging()
|
|
130
|
+
configure_process_logging(service=f"PLUGIN.{tag or 'unknown'}")
|
|
122
131
|
apply_process_label(tag)
|
|
123
132
|
|
|
124
133
|
try:
|
|
@@ -39,7 +39,6 @@ from langbot_plugin.api.definition.components.page import (
|
|
|
39
39
|
PageResponse,
|
|
40
40
|
)
|
|
41
41
|
from langbot_plugin.api.definition.components.parser.parser import Parser
|
|
42
|
-
from langbot_plugin.utils import git_sync as git_sync_util
|
|
43
42
|
from langbot_plugin.utils import packaging as packaging_util
|
|
44
43
|
from langbot_plugin.api.entities.builtin.rag.context import RetrievalContext
|
|
45
44
|
from langbot_plugin.api.entities.builtin.rag.models import (
|
|
@@ -938,6 +937,8 @@ class PluginRuntimeHandler(Handler):
|
|
|
938
937
|
async def git_sync_plugin(data: dict[str, typing.Any]) -> ActionResponse:
|
|
939
938
|
"""Commit and push the plugin working directory to GitHub."""
|
|
940
939
|
|
|
940
|
+
from langbot_plugin.utils import git_sync as git_sync_util
|
|
941
|
+
|
|
941
942
|
plugin_root = os.getcwd()
|
|
942
943
|
try:
|
|
943
944
|
extra_files, overrides = _icon_extra_files(_manifest_overrides(data))
|
|
@@ -1044,6 +1045,7 @@ class PluginRuntimeHandler(Handler):
|
|
|
1044
1045
|
{
|
|
1045
1046
|
"plugin_container": self.plugin_container.model_dump(),
|
|
1046
1047
|
"prod_mode": prod_mode,
|
|
1048
|
+
"log_trace": True,
|
|
1047
1049
|
"plugin_debug_key": plugin_debug_key,
|
|
1048
1050
|
"registration_capability": (
|
|
1049
1051
|
registration_capability if prod_mode else ""
|
|
@@ -19,6 +19,7 @@ class ActionRequest(pydantic.BaseModel):
|
|
|
19
19
|
# instead of being reduced to the legacy Workspace envelope.
|
|
20
20
|
context: InstallationBinding | ActionContext | None = None
|
|
21
21
|
stream_flow_control: Literal[1] | None = None
|
|
22
|
+
log_trace_id: str | None = pydantic.Field(default=None, pattern=r"^Y-[0-9a-f]{16}$")
|
|
22
23
|
|
|
23
24
|
@classmethod
|
|
24
25
|
def make_request(
|
|
@@ -33,7 +33,7 @@ from langbot_plugin.runtime.security import (
|
|
|
33
33
|
PLUGIN_RUNTIME_CONTROL_TOKEN_HEADER,
|
|
34
34
|
validate_runtime_secret,
|
|
35
35
|
)
|
|
36
|
-
from langbot_plugin.utils.log import configure_process_logging
|
|
36
|
+
from langbot_plugin.utils.log import configure_process_logging, install_loop_logging
|
|
37
37
|
|
|
38
38
|
logger = logging.getLogger(__name__)
|
|
39
39
|
|
|
@@ -291,6 +291,12 @@ class RuntimeApplication:
|
|
|
291
291
|
return
|
|
292
292
|
self._closing = True
|
|
293
293
|
|
|
294
|
+
from langbot_plugin.runtime.io.connections.stdio import StdioConnection
|
|
295
|
+
|
|
296
|
+
for handler in getattr(self.context.plugin_mgr, "plugin_handlers", ()):
|
|
297
|
+
if isinstance(handler.conn, StdioConnection):
|
|
298
|
+
handler.conn.expecting_eof = True
|
|
299
|
+
|
|
294
300
|
async with self._control_handler_lock:
|
|
295
301
|
control_handler = getattr(self.context, "control_handler", None)
|
|
296
302
|
if control_handler is not None:
|
|
@@ -314,6 +320,8 @@ class RuntimeApplication:
|
|
|
314
320
|
async def _run_with_shutdown(app: RuntimeApplication) -> None:
|
|
315
321
|
"""Run the Runtime and turn container SIGTERM into an orderly shutdown."""
|
|
316
322
|
|
|
323
|
+
install_loop_logging()
|
|
324
|
+
|
|
317
325
|
app.blocking_executor = configure_bounded_default_executor_from_env(
|
|
318
326
|
thread_name_prefix="langbot-plugin-runtime-blocking",
|
|
319
327
|
)
|
|
@@ -350,9 +358,8 @@ async def _run_with_shutdown(app: RuntimeApplication) -> None:
|
|
|
350
358
|
def main(args: argparse.Namespace):
|
|
351
359
|
configure_process_logging()
|
|
352
360
|
|
|
353
|
-
app = RuntimeApplication(args)
|
|
354
|
-
|
|
355
361
|
try:
|
|
362
|
+
app = RuntimeApplication(args)
|
|
356
363
|
asyncio.run(_run_with_shutdown(app))
|
|
357
364
|
except asyncio.CancelledError:
|
|
358
365
|
logger.info("Runtime application cancelled")
|
|
@@ -360,3 +367,6 @@ def main(args: argparse.Namespace):
|
|
|
360
367
|
except KeyboardInterrupt:
|
|
361
368
|
logger.info("Keyboard interrupt, exiting...")
|
|
362
369
|
return
|
|
370
|
+
except Exception:
|
|
371
|
+
logger.exception("Plugin Runtime failed")
|
|
372
|
+
raise SystemExit(1) from None
|
{langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/connections/stdio.py
RENAMED
|
@@ -17,10 +17,15 @@ from langbot_plugin.runtime.bounded_executor import run_blocking_with_backpressu
|
|
|
17
17
|
logger = logging.getLogger(__name__)
|
|
18
18
|
|
|
19
19
|
|
|
20
|
+
class _PeerEOF(ConnectionClosedError):
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
|
|
20
24
|
class StdioConnection(connection.Connection):
|
|
21
25
|
"""The connection for Stdio connections."""
|
|
22
26
|
|
|
23
27
|
process: asyncio.subprocess.Process | None = None
|
|
28
|
+
expecting_eof: bool = False
|
|
24
29
|
|
|
25
30
|
def __init__(
|
|
26
31
|
self,
|
|
@@ -143,7 +148,7 @@ class StdioConnection(connection.Connection):
|
|
|
143
148
|
)
|
|
144
149
|
|
|
145
150
|
if self._process_exit_task is not None and self._process_exit_task in done:
|
|
146
|
-
raise
|
|
151
|
+
raise _PeerEOF("Connection closed")
|
|
147
152
|
|
|
148
153
|
if read_task in done:
|
|
149
154
|
s_bytes = read_task.result()
|
|
@@ -152,14 +157,12 @@ class StdioConnection(connection.Connection):
|
|
|
152
157
|
if self._process_exit_task is not None:
|
|
153
158
|
if self._process_exit_task.done():
|
|
154
159
|
await self._process_exit_task
|
|
155
|
-
raise
|
|
156
|
-
"标准输出流已关闭,子进程已退出。"
|
|
157
|
-
)
|
|
160
|
+
raise _PeerEOF("标准输出流已关闭,子进程已退出。")
|
|
158
161
|
else:
|
|
159
|
-
raise
|
|
162
|
+
raise _PeerEOF("标准输出流意外关闭。")
|
|
160
163
|
else:
|
|
161
164
|
# process is None but still received EOF - connection is closed
|
|
162
|
-
raise
|
|
165
|
+
raise _PeerEOF("标准输出流已关闭。")
|
|
163
166
|
try:
|
|
164
167
|
return s_bytes.decode("utf-8").strip()
|
|
165
168
|
except UnicodeDecodeError:
|
|
@@ -291,10 +294,14 @@ class StdioConnection(connection.Connection):
|
|
|
291
294
|
logger.warning("Skipping non-JSON output on stdio connection")
|
|
292
295
|
|
|
293
296
|
except Exception as e:
|
|
294
|
-
|
|
297
|
+
if self.expecting_eof and isinstance(e, _PeerEOF):
|
|
298
|
+
logger.info("Stdio peer closed during shutdown")
|
|
299
|
+
else:
|
|
300
|
+
logger.error(f"Error receiving message: {e}")
|
|
295
301
|
raise ConnectionClosedError("Connection closed")
|
|
296
302
|
|
|
297
303
|
async def close(self) -> None:
|
|
304
|
+
self.expecting_eof = True
|
|
298
305
|
self.stdin.close()
|
|
299
306
|
wait_closed = getattr(self.stdin, "wait_closed", None)
|
|
300
307
|
if wait_closed is not None:
|
|
@@ -29,6 +29,7 @@ from dataclasses import dataclass
|
|
|
29
29
|
from contextlib import contextmanager
|
|
30
30
|
from langbot_plugin.runtime.io import connection
|
|
31
31
|
from langbot_plugin.entities.io.req import ActionRequest
|
|
32
|
+
from langbot_plugin.utils.log import log_scope, trace_id
|
|
32
33
|
from langbot_plugin.entities.io.context import (
|
|
33
34
|
ActionEnvelopeContext,
|
|
34
35
|
InstallationBinding,
|
|
@@ -780,6 +781,7 @@ class Handler(abc.ABC):
|
|
|
780
781
|
resp_queues: dict[int, asyncio.Queue[ActionResponse | BaseException]] = {}
|
|
781
782
|
|
|
782
783
|
seq_id_index: int = 0
|
|
784
|
+
supports_log_trace: bool = False
|
|
783
785
|
|
|
784
786
|
_disconnect_callback: Callable[[Handler], Coroutine[Any, Any, bool]] | None
|
|
785
787
|
|
|
@@ -1040,6 +1042,13 @@ class Handler(abc.ABC):
|
|
|
1040
1042
|
) -> None:
|
|
1041
1043
|
"""Keep serialization and transport chunking in one tenant scope."""
|
|
1042
1044
|
|
|
1045
|
+
if (
|
|
1046
|
+
isinstance(payload, ActionRequest)
|
|
1047
|
+
and self.supports_log_trace
|
|
1048
|
+
and trace_id.get() != "-"
|
|
1049
|
+
):
|
|
1050
|
+
payload.log_trace_id = trace_id.get()
|
|
1051
|
+
|
|
1043
1052
|
inline = bool(getattr(self.conn, "_first_message_send_inline", False))
|
|
1044
1053
|
if inline:
|
|
1045
1054
|
# Production stdio plugin workers must be able to emit their
|
|
@@ -1333,11 +1342,17 @@ class Handler(abc.ABC):
|
|
|
1333
1342
|
)
|
|
1334
1343
|
|
|
1335
1344
|
with (
|
|
1345
|
+
log_scope(
|
|
1346
|
+
request.log_trace_id,
|
|
1347
|
+
getattr(action_context, "workspace_uuid", None),
|
|
1348
|
+
),
|
|
1336
1349
|
audit_correlation_scope(
|
|
1337
1350
|
request.data.pop(AUDIT_CORRELATION_FIELD, None)
|
|
1338
1351
|
),
|
|
1339
1352
|
self.action_invocation_scope(action_name, action_context),
|
|
1340
1353
|
):
|
|
1354
|
+
if not action_name.startswith("__"):
|
|
1355
|
+
logger.debug("[Action] %s", action_name)
|
|
1341
1356
|
with blocking_work_scope(
|
|
1342
1357
|
getattr(action_context, "workspace_uuid", None)
|
|
1343
1358
|
):
|
|
@@ -1420,8 +1435,6 @@ class Handler(abc.ABC):
|
|
|
1420
1435
|
self._action_task_contexts.pop(current_task, None)
|
|
1421
1436
|
self._action_cancel_callbacks.pop(current_task, None)
|
|
1422
1437
|
self._pending_action_cancellations.pop(current_task, None)
|
|
1423
|
-
if action_name and not action_name.startswith("__"):
|
|
1424
|
-
logger.debug("[Action] %s", action_name)
|
|
1425
1438
|
|
|
1426
1439
|
def set_current_action_cancel_callback(self, callback: Callable[[], None]) -> None:
|
|
1427
1440
|
"""Run a synchronous fence before peer cancellation reaches action code."""
|
{langbot_plugin-0.7.26 → langbot_plugin-0.7.27}/src/langbot_plugin/runtime/io/handlers/control.py
RENAMED
|
@@ -113,7 +113,9 @@ class ControlConnectionHandler(handler.Handler):
|
|
|
113
113
|
@self.action(LangBotToRuntimeAction.SET_RUNTIME_CONFIG)
|
|
114
114
|
async def set_runtime_config(data: dict[str, Any]) -> handler.ActionResponse:
|
|
115
115
|
self.configure_runtime(RuntimeConfig.model_validate(data))
|
|
116
|
-
return handler.ActionResponse.success(
|
|
116
|
+
return handler.ActionResponse.success(
|
|
117
|
+
{"event_batch": True, "log_trace": True}
|
|
118
|
+
)
|
|
117
119
|
|
|
118
120
|
@self.action(LangBotToRuntimeAction.RECONCILE_PLUGIN_INSTALLATIONS)
|
|
119
121
|
async def reconcile_plugin_installations(
|