langbot-plugin 0.7.23__tar.gz → 0.7.24__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.23 → langbot_plugin-0.7.24}/PKG-INFO +1 -1
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/pyproject.toml +1 -1
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/command/context.py +15 -7
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/errors.py +3 -1
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/nsjail_backend.py +23 -1
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/connections/stdio.py +20 -5
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/connections/ws.py +3 -1
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/handler.py +4 -1
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/mgr.py +3 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/worker_launcher.py +9 -3
- langbot_plugin-0.7.24/src/langbot_plugin/version.py +1 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/runner/test_context_result.py +9 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/test_command_context.py +17 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_nsjail_backend.py +31 -0
- langbot_plugin-0.7.24/tests/e2e/test_nsjail_large_commands.py +82 -0
- langbot_plugin-0.7.24/tests/runtime/io/test_payload_limits.py +48 -0
- langbot_plugin-0.7.24/tests/runtime/io/test_stdio_encoding.py +66 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_manager.py +3 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_worker_launcher.py +3 -0
- langbot_plugin-0.7.23/src/langbot_plugin/version.py +0 -1
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/.github/workflows/box-docker.yml +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/.github/workflows/cla.yml +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/.github/workflows/publish-pypi.yaml +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/.github/workflows/publish.yml +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/.github/workflows/test.yml +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/.gitignore +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/.python-version +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/AGENTS.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/ARCHITECTURE.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/CLAUDE.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/CONTRIBUTING.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/LICENSE +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/README.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/README_CN.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/data/.env.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/Message.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/PluginPages.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/agent-runner-interactions.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/agent-runner-pluginization/PROTOCOL_V1.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/agent-runner-pluginization/README.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/agent-runner-pluginization/SDK_RUNTIME_PLAN.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/box-instance-identity.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/certified-plugins.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/communication/apis/lb2rt.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/communication/runtime_plugin.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/dependency-management.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/execution_api.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/langbot-plugin-social.png +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/runner.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/stateless-components.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/examples/workspace_runner_plugin/README.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/examples/workspace_runner_plugin/components/runner/default.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/examples/workspace_runner_plugin/components/runner/default.yaml +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/examples/workspace_runner_plugin/main.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/examples/workspace_runner_plugin/manifest.yaml +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/local_e2e/acceptance.json +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/local_e2e/registration_fanin.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/local_e2e/run_acceptance.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/mypy.ini +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/scripts/check_action_consistency.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/scripts/runtime_resource_probe.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/asset_gateway.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/daemon.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/decorators.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/external_tools.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/mcp_access.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/mcp_bridge.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/mcp_config.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/mcp_protocol.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/mcp_stdio.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/abstract/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/abstract/platform/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/abstract/platform/adapter.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/abstract/platform/event_logger.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/base.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/command/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/command/command.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/common/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/common/event_listener.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/knowledge_engine/engine.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/manifest.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/page/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/parser/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/parser/parser.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/runner/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/runner/runner.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/tool/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/tool/tool.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/plugin.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/command/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/command/errors.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/pipeline/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/pipeline/query.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/platform/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/platform/entities.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/platform/errors.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/platform/events.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/platform/logger.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/platform/message.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/provider/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/provider/message.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/provider/prompt.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/provider/reasoning.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/provider/session.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/rag/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/rag/context.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/rag/enums.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/rag/errors.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/rag/models.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/resource/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/resource/tool.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/box.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/capabilities.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/compat.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/context.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/context_access.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/delivery.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/event.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/input.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/interaction.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/manifest.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/page_results.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/permissions.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/resources.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/result.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/run_ledger.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/runtime.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/runtime_registry.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/state.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/stats.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/steering.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/transcript.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/trigger.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/context.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/events.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/execution.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/permissions.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/base.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/event_context.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/execute_context.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/execution.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/invocation.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/langbot_api.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/query_based_api.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/admin.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/api.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/box.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/common.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/context.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/ledger.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/platform.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/reply_stream.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/resources.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/state.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/tracing.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/workspace.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/workspace_domains.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/artifact.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/langbot-page-sdk.js +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/.env.example.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/.github/workflows/release.yml.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/.gitignore.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/.vscode/launch.json.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/README.md.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/assets/icon.svg.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/commands/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.py.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.yaml.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/event_listener/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/event_listener/default.py.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/event_listener/default.yaml.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.py.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.yaml.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/pages/{page_name}.html.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/pages/{page_name}.yaml.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/parser/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.py.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.yaml.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/runner/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.py.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.yaml.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/tools/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.py.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.yaml.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/main.py.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/manifest.yaml.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/readme/README_zh_Hans.md.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/requirements.txt.example +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/actions.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/backend.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/client.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/e2b_backend.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/errors.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/host_backend.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/identity.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/models.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/runtime.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/security.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/server.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/tenancy.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/certification.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/__main__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/buildplugin.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/gencomponent.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/initplugin.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/login.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/logout.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/publish.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/runplugin.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/gen/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/gen/renderer.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/i18n.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/en_US.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/es_ES.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/ja_JP.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/th_TH.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/vi_VN.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/zh_Hans.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/zh_Hant.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/run/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/run/controller.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/run/handler.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/run/hotreload.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/utils/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/utils/cloudsv.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/utils/form.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/utils/page_components.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/io/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/io/actions/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/io/actions/enums.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/io/context.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/io/errors.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/io/req.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/io/resp.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/marketplace.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/LICENSE +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/README.md +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/app.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/bounded_executor.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/context.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/event_loop_monitor.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/helper/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/helper/marketplace.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/helper/pkgmgr.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/connection.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/connections/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controller.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controllers/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controllers/stdio/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controllers/stdio/client.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controllers/stdio/server.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controllers/ws/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controllers/ws/client.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controllers/ws/server.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/handlers/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/handlers/control.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/handlers/plugin.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/ops_metrics.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/artifact.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/container.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/dependency_environment.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/logbuffer.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/restart_coordinator.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/runner_service.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/worker_observability.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/worker_watchdog.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/security.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/settings.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/skill_store.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/storage.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/deadline.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/discover/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/discover/engine.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/git_sync.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/importutil.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/log.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/packaging.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/page_components.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/platform.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/workspace.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/definition/components/test_components.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/definition/components/test_imports.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/definition/test_manifest.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/definition/test_manifest_component_path.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/runner/test_history_event_entities.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/runner/test_interaction.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/runner/test_run_ledger_entities.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/test_platform_logger.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/test_provider_message.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/test_rag_models.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/test_context.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/test_events.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_agent_run_api_proxy.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_base.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_box_api.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_history_event_api_proxy.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_input_attachment_api.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_langbot_api.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_llm_stream_ownership.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_query_based_api.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_reasoning_parameter.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/test_agent_tools_mcp_bridge.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/test_execution_api_consistency.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/test_runner_handlers.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/test_runner_handlers_matrix.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/test_runner_public_apis.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/test_workspace_domains.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/test_workspace_operations.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/conftest.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_admission.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_artifact_cache_root.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_backend.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_backend_selection.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_client.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_e2b_backend.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_host_backend.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_identity.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_runtime.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_server.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_skill_store.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_storage_analysis.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/run/test_controller.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/run/test_hotreload.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/run/test_runtime_handler.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_buildplugin.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_cli_main.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_examples.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_gencomponent.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_i18n_form.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_initplugin.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_login.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_logout_publish.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_page_components.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_renderer.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_runner_usages.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_runplugin.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/data/execution_api_catalog.json +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/e2e/Dockerfile.box-socket +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/e2e/Dockerfile.box-socket.dockerignore +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/e2e/standalone_runtime_eba_probe.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/e2e/test_box_instance_cleanup_docker.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/e2e/test_box_socket_mounts.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/e2e/test_run_mount_isolation.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/entities/io/test_dependency_errors.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/entities/io/test_protocol.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/fixtures/eba_event_probe_plugin/.gitignore +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/fixtures/eba_event_probe_plugin/assets/icon.svg +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.yaml +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/fixtures/eba_event_probe_plugin/main.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/fixtures/eba_event_probe_plugin/manifest.yaml +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/helpers/__init__.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/helpers/protocol.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/packaging/test_installed_cli_blackbox.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/packaging/test_release_metadata.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/helper/test_marketplace.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/helper/test_pkgmgr.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/handlers/test_control_handler.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/handlers/test_import_contracts.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/handlers/test_legacy_file_chunk.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/handlers/test_plugin_handler.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_action_consistency.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_audit_correlation.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_connections.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_controllers.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_handler.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_heartbeat_admission.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_stdio_server.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_stream_flow_control.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_artifact_store.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_container.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_dependency_environment.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_event_dispatch_real_worker.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_exact_dify_real_worker.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_exact_legacy_sdk_compat.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_installation_manager.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_legacy_shadow.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_mgr_runner.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_mode_resource_limits.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_plugin_logs_real_worker.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_restart_coordinator.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_shared_worker_subprocess.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_worker_plugin_identity.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_workload_isolation.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/test_app.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/test_bounded_executor.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/test_event_loop_monitor.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/test_ops_metrics.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/test_pull_api_handlers.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/test_security.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_artifact_materialization.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_certification.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_log.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_message.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_plugin_logbuffer.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_skill_store.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_storage.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_worker_observability.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_worker_watchdog.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/utils/test_cli_run_handler_packaging.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/utils/test_deadline.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/utils/test_discovery.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/utils/test_git_sync.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/utils/test_importutil.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/utils/test_packaging_utils.py +0 -0
- {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/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.24
|
|
4
4
|
Summary: This package contains the SDK, CLI for building plugins for LangBot, plus the runtime for hosting LangBot plugins
|
|
5
5
|
Project-URL: Homepage, https://langbot.app
|
|
6
6
|
Project-URL: Repository, https://github.com/langbot-app/langbot-plugin-sdk
|
|
@@ -40,17 +40,25 @@ class CommandReturn(pydantic.BaseModel):
|
|
|
40
40
|
|
|
41
41
|
@pydantic.field_validator("error", mode="before")
|
|
42
42
|
@classmethod
|
|
43
|
-
def _validate_error(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if v
|
|
47
|
-
return
|
|
48
|
-
|
|
43
|
+
def _validate_error(cls, v: Optional[Any]) -> Optional[errors.CommandError]:
|
|
44
|
+
if v is None:
|
|
45
|
+
return None
|
|
46
|
+
if isinstance(v, errors.CommandError):
|
|
47
|
+
return v
|
|
48
|
+
if isinstance(v, str):
|
|
49
|
+
return errors.CommandError(message=v)
|
|
50
|
+
if isinstance(v, dict):
|
|
51
|
+
return errors.CommandError(message=str(v.get("message", v)))
|
|
52
|
+
if hasattr(v, "message"):
|
|
53
|
+
return errors.CommandError(message=str(getattr(v, "message")))
|
|
54
|
+
return errors.CommandError(message=str(v))
|
|
49
55
|
|
|
50
56
|
@pydantic.field_serializer("error")
|
|
51
57
|
def _serialize_error(self, v: Optional[errors.CommandError]) -> Optional[str]:
|
|
52
58
|
if v is not None:
|
|
53
|
-
|
|
59
|
+
if isinstance(v, str):
|
|
60
|
+
return v
|
|
61
|
+
return getattr(v, "message", str(v))
|
|
54
62
|
return v
|
|
55
63
|
|
|
56
64
|
class Config:
|
|
@@ -22,6 +22,8 @@ class AgentAPIError(pydantic.BaseModel):
|
|
|
22
22
|
class AgentAPIException(Exception):
|
|
23
23
|
"""Exception wrapper carrying a stable AgentAPIError payload."""
|
|
24
24
|
|
|
25
|
-
def __init__(self, error: AgentAPIError):
|
|
25
|
+
def __init__(self, error: AgentAPIError | str):
|
|
26
|
+
if isinstance(error, str):
|
|
27
|
+
error = AgentAPIError(code="runner_error", message=error)
|
|
26
28
|
self.error = error
|
|
27
29
|
super().__init__(error.message)
|
|
@@ -387,7 +387,24 @@ class NsjailBackend(BaseSandboxBackend):
|
|
|
387
387
|
f"env_keys={sorted(spec.env.keys())} cmd={cmd_preview}"
|
|
388
388
|
)
|
|
389
389
|
|
|
390
|
-
|
|
390
|
+
script_path = None
|
|
391
|
+
try:
|
|
392
|
+
# Attachment manifests and generated code can exceed Linux's
|
|
393
|
+
# per-argument limit. Source a file without consuming command stdin.
|
|
394
|
+
if len(args[-1].encode("utf-8")) > 8192:
|
|
395
|
+
script_path = (
|
|
396
|
+
session_dir / "tmp" / f".langbot-exec-{uuid.uuid4().hex}.sh"
|
|
397
|
+
)
|
|
398
|
+
await bounded_executor.run_blocking_atomic(
|
|
399
|
+
self._write_exec_script, script_path, args[-1]
|
|
400
|
+
)
|
|
401
|
+
args[-1] = f". {shlex.quote('/tmp/' + script_path.name)}"
|
|
402
|
+
result = await self._run_nsjail(args, timeout_sec=spec.timeout_sec)
|
|
403
|
+
finally:
|
|
404
|
+
if script_path is not None:
|
|
405
|
+
await bounded_executor.run_blocking_cleanup(
|
|
406
|
+
script_path.unlink, missing_ok=True
|
|
407
|
+
)
|
|
391
408
|
duration_ms = int(
|
|
392
409
|
(dt.datetime.now(dt.timezone.utc) - start).total_seconds() * 1000
|
|
393
410
|
)
|
|
@@ -414,6 +431,11 @@ class NsjailBackend(BaseSandboxBackend):
|
|
|
414
431
|
duration_ms=duration_ms,
|
|
415
432
|
)
|
|
416
433
|
|
|
434
|
+
@staticmethod
|
|
435
|
+
def _write_exec_script(path: pathlib.Path, command: str) -> None:
|
|
436
|
+
with path.open("x", encoding="utf-8") as script:
|
|
437
|
+
script.write(command)
|
|
438
|
+
|
|
417
439
|
async def stop_session(self, session: BoxSessionInfo):
|
|
418
440
|
session_dir = pathlib.Path(session.backend_session_id)
|
|
419
441
|
self.logger.info(
|
{langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/connections/stdio.py
RENAMED
|
@@ -57,7 +57,9 @@ class StdioConnection(connection.Connection):
|
|
|
57
57
|
message_size = len(message_bytes)
|
|
58
58
|
if message_size > MAX_MESSAGE_BYTES:
|
|
59
59
|
raise ValueError(
|
|
60
|
-
f"Runtime message exceeds {MAX_MESSAGE_BYTES} byte limit"
|
|
60
|
+
f"Runtime message exceeds {MAX_MESSAGE_BYTES} byte limit "
|
|
61
|
+
f"({message_size} bytes). Reduce attachment size or pass files "
|
|
62
|
+
"by reference instead of inline base64."
|
|
61
63
|
)
|
|
62
64
|
if message_size > self.chunk_size * MAX_MESSAGE_FRAGMENTS:
|
|
63
65
|
raise ValueError(
|
|
@@ -158,7 +160,11 @@ class StdioConnection(connection.Connection):
|
|
|
158
160
|
else:
|
|
159
161
|
# process is None but still received EOF - connection is closed
|
|
160
162
|
raise ConnectionClosedError("标准输出流已关闭。")
|
|
161
|
-
|
|
163
|
+
try:
|
|
164
|
+
return s_bytes.decode("utf-8").strip()
|
|
165
|
+
except UnicodeDecodeError:
|
|
166
|
+
logger.warning("Skipping non-UTF-8 output on stdio connection")
|
|
167
|
+
return ""
|
|
162
168
|
|
|
163
169
|
raise ConnectionClosedError("Unexpected error in reading")
|
|
164
170
|
finally:
|
|
@@ -211,9 +217,18 @@ class StdioConnection(connection.Connection):
|
|
|
211
217
|
if not chunk_line or not self._is_valid_json(
|
|
212
218
|
chunk_line
|
|
213
219
|
):
|
|
220
|
+
if chunk_line:
|
|
221
|
+
logger.warning(
|
|
222
|
+
"Skipping non-JSON output on stdio connection"
|
|
223
|
+
)
|
|
214
224
|
continue
|
|
215
225
|
|
|
216
226
|
chunk_data = json.loads(chunk_line)
|
|
227
|
+
if not isinstance(chunk_data, dict):
|
|
228
|
+
logger.warning(
|
|
229
|
+
"Skipping non-object output on stdio connection"
|
|
230
|
+
)
|
|
231
|
+
continue
|
|
217
232
|
if chunk_data.get("type") == "chunk_data":
|
|
218
233
|
chunk_text = chunk_data.get("data", "")
|
|
219
234
|
if (
|
|
@@ -271,9 +286,9 @@ class StdioConnection(connection.Connection):
|
|
|
271
286
|
self._first_message_control_available = False
|
|
272
287
|
return line
|
|
273
288
|
else:
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
289
|
+
logger.warning("Skipping non-JSON output on stdio connection")
|
|
290
|
+
else:
|
|
291
|
+
logger.warning("Skipping non-JSON output on stdio connection")
|
|
277
292
|
|
|
278
293
|
except Exception as e:
|
|
279
294
|
logger.error(f"Error receiving message: {e}")
|
{langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/connections/ws.py
RENAMED
|
@@ -38,7 +38,9 @@ class WebSocketConnection(io_connection.Connection):
|
|
|
38
38
|
message_size = len(message_bytes)
|
|
39
39
|
if message_size > MAX_MESSAGE_BYTES:
|
|
40
40
|
raise ValueError(
|
|
41
|
-
f"Runtime message exceeds {MAX_MESSAGE_BYTES} byte limit"
|
|
41
|
+
f"Runtime message exceeds {MAX_MESSAGE_BYTES} byte limit "
|
|
42
|
+
f"({message_size} bytes). Reduce attachment size or pass files "
|
|
43
|
+
"by reference instead of inline base64."
|
|
42
44
|
)
|
|
43
45
|
if message_size > self.chunk_size * MAX_MESSAGE_FRAGMENTS:
|
|
44
46
|
raise ValueError(
|
|
@@ -1059,7 +1059,10 @@ class Handler(abc.ABC):
|
|
|
1059
1059
|
and payload.stream_index is not None
|
|
1060
1060
|
and len(encoded.encode("utf-8")) > MAX_STREAM_FRAME_BYTES
|
|
1061
1061
|
):
|
|
1062
|
-
raise ActionCallError(
|
|
1062
|
+
raise ActionCallError(
|
|
1063
|
+
f"Streaming response exceeds frame byte limit ({MAX_STREAM_FRAME_BYTES} bytes). "
|
|
1064
|
+
"Return smaller chunks or pass attachments by reference instead of inline base64."
|
|
1065
|
+
)
|
|
1063
1066
|
await self.conn.send(encoded)
|
|
1064
1067
|
|
|
1065
1068
|
async def _format_protocol_error(
|
|
@@ -964,12 +964,15 @@ class PluginManager:
|
|
|
964
964
|
child_env["RUNTIME_WS_URL"] = (
|
|
965
965
|
f"ws://localhost:{self.context.ws_debug_port}/plugin/ws"
|
|
966
966
|
)
|
|
967
|
+
child_env["PYTHONUTF8"] = "1"
|
|
968
|
+
child_env["PYTHONIOENCODING"] = "utf-8"
|
|
967
969
|
|
|
968
970
|
process: asyncio.subprocess.Process = (
|
|
969
971
|
await asyncio.create_subprocess_exec(
|
|
970
972
|
*cmd_args,
|
|
971
973
|
env=child_env,
|
|
972
974
|
cwd=plugin_path,
|
|
975
|
+
stdout=sys.stderr,
|
|
973
976
|
)
|
|
974
977
|
)
|
|
975
978
|
|
{langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/worker_launcher.py
RENAMED
|
@@ -137,6 +137,8 @@ class PluginWorkerProcessController(Controller):
|
|
|
137
137
|
*self.args,
|
|
138
138
|
env=self.env,
|
|
139
139
|
cwd=self.working_dir,
|
|
140
|
+
# This worker uses WebSocket; stdout belongs to the host protocol.
|
|
141
|
+
stdout=sys.stderr,
|
|
140
142
|
)
|
|
141
143
|
try:
|
|
142
144
|
await self.process.wait()
|
|
@@ -803,9 +805,13 @@ class PluginWorkerLauncher:
|
|
|
803
805
|
if self.platform != "win32":
|
|
804
806
|
return {}
|
|
805
807
|
return {
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
808
|
+
**{
|
|
809
|
+
name: value
|
|
810
|
+
for name in _WINDOWS_WORKER_ENV_ALLOWLIST
|
|
811
|
+
if (value := os.environ.get(name)) is not None
|
|
812
|
+
},
|
|
813
|
+
"PYTHONUTF8": "1",
|
|
814
|
+
"PYTHONIOENCODING": "utf-8",
|
|
809
815
|
}
|
|
810
816
|
|
|
811
817
|
def _write_dependency_requirements(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.7.24"
|
|
@@ -791,3 +791,12 @@ def test_runner_manifest_rejects_missing_or_invalid_usages(usages):
|
|
|
791
791
|
data["usages"] = usages
|
|
792
792
|
with pytest.raises(pydantic.ValidationError):
|
|
793
793
|
RunnerManifest.model_validate(data)
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
def test_agent_api_exception_handles_string_argument():
|
|
797
|
+
from langbot_plugin.api.entities.builtin.runner.errors import AgentAPIException
|
|
798
|
+
|
|
799
|
+
exc = AgentAPIException("plain error string")
|
|
800
|
+
assert exc.error.message == "plain error string"
|
|
801
|
+
assert exc.error.code == "runner_error"
|
|
802
|
+
assert str(exc) == "plain error string"
|
{langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/test_command_context.py
RENAMED
|
@@ -34,6 +34,23 @@ def test_command_return_serializes_command_error_to_message():
|
|
|
34
34
|
assert ret.model_dump(mode="json", by_alias=True)["error"] == "failed"
|
|
35
35
|
|
|
36
36
|
|
|
37
|
+
def test_command_return_validates_str_error_without_attribute_error():
|
|
38
|
+
# Validating serialized dict with error as string
|
|
39
|
+
ret1 = CommandReturn.model_validate({"error": "failed"})
|
|
40
|
+
assert isinstance(ret1.error, CommandError)
|
|
41
|
+
assert ret1.error.message == "failed"
|
|
42
|
+
|
|
43
|
+
# Direct string assignment
|
|
44
|
+
ret2 = CommandReturn(error="direct error string")
|
|
45
|
+
assert isinstance(ret2.error, CommandError)
|
|
46
|
+
assert ret2.error.message == "direct error string"
|
|
47
|
+
|
|
48
|
+
# Dict error assignment
|
|
49
|
+
ret3 = CommandReturn.model_validate({"error": {"message": "dict error"}})
|
|
50
|
+
assert isinstance(ret3.error, CommandError)
|
|
51
|
+
assert ret3.error.message == "dict error"
|
|
52
|
+
|
|
53
|
+
|
|
37
54
|
def test_execute_context_shift_advances_current_command_and_params():
|
|
38
55
|
context = ExecuteContext(
|
|
39
56
|
query_id=1,
|
|
@@ -532,6 +532,37 @@ def test_build_resource_limits_rlimit_fallback(backend):
|
|
|
532
532
|
# ── exec ──────────────────────────────────────────────────────────────
|
|
533
533
|
|
|
534
534
|
|
|
535
|
+
@pytest.mark.anyio
|
|
536
|
+
@pytest.mark.parametrize(
|
|
537
|
+
"failure", [None, OSError("launch failed"), asyncio.CancelledError()]
|
|
538
|
+
)
|
|
539
|
+
async def test_large_exec_script_is_preserved_and_cleaned(backend, failure):
|
|
540
|
+
from langbot_plugin.box.backend import _CommandResult
|
|
541
|
+
|
|
542
|
+
command = "printf '%s' '" + "附件" * 2000 + "'"
|
|
543
|
+
spec = BoxSpec(session_id="large", cmd=command)
|
|
544
|
+
info = await backend.start_session(spec)
|
|
545
|
+
script_dir = pathlib.Path(info.backend_session_id) / "tmp"
|
|
546
|
+
|
|
547
|
+
async def run(args, timeout_sec):
|
|
548
|
+
scripts = list(script_dir.glob(".langbot-exec-*.sh"))
|
|
549
|
+
assert len(scripts) == 1
|
|
550
|
+
assert scripts[0].read_text(encoding="utf-8").endswith(command)
|
|
551
|
+
assert args[-1] == f". /tmp/{scripts[0].name}"
|
|
552
|
+
assert max(len(arg.encode("utf-8")) for arg in args) < 8192
|
|
553
|
+
if failure is not None:
|
|
554
|
+
raise failure
|
|
555
|
+
return _CommandResult(return_code=0, stdout="ok", stderr="")
|
|
556
|
+
|
|
557
|
+
with mock.patch.object(backend, "_run_nsjail", side_effect=run):
|
|
558
|
+
if failure is None:
|
|
559
|
+
assert (await backend.exec(info, spec)).ok
|
|
560
|
+
else:
|
|
561
|
+
with pytest.raises(type(failure)):
|
|
562
|
+
await backend.exec(info, spec)
|
|
563
|
+
assert not list(script_dir.glob(".langbot-exec-*.sh"))
|
|
564
|
+
|
|
565
|
+
|
|
535
566
|
@pytest.mark.anyio
|
|
536
567
|
async def test_exec_success(backend, tmp_base):
|
|
537
568
|
tmp_base.mkdir(parents=True, exist_ok=True)
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""Opt-in Linux acceptance: LANGBOT_REAL_BOX_TESTS=1 pytest this file."""
|
|
2
|
+
|
|
3
|
+
import asyncio
|
|
4
|
+
import base64
|
|
5
|
+
import json
|
|
6
|
+
import logging
|
|
7
|
+
import os
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
|
|
10
|
+
import pytest
|
|
11
|
+
|
|
12
|
+
from langbot_plugin.box.models import BoxExecutionStatus, BoxSpec
|
|
13
|
+
from langbot_plugin.box.nsjail_backend import NsjailBackend
|
|
14
|
+
|
|
15
|
+
pytestmark = pytest.mark.skipif(
|
|
16
|
+
os.environ.get("LANGBOT_REAL_BOX_TESTS") != "1",
|
|
17
|
+
reason="requires real nsjail on Linux",
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@pytest.fixture
|
|
22
|
+
async def jail(tmp_path):
|
|
23
|
+
backend = NsjailBackend(logging.getLogger(__name__), base_dir=str(tmp_path))
|
|
24
|
+
spec = BoxSpec(session_id="large-command", network="off", timeout_sec=10)
|
|
25
|
+
session = await backend.start_session(spec)
|
|
26
|
+
try:
|
|
27
|
+
yield backend, session, spec
|
|
28
|
+
finally:
|
|
29
|
+
await backend.stop_session(session)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@pytest.mark.asyncio
|
|
33
|
+
async def test_large_heredocs_preserve_contents_and_parallel_execution(jail):
|
|
34
|
+
backend, session, spec = jail
|
|
35
|
+
|
|
36
|
+
async def execute(index):
|
|
37
|
+
# Core's attachment fallback encodes bytes inside a base64 JSON manifest.
|
|
38
|
+
payload = bytes(range(256)) * 1024
|
|
39
|
+
manifest = base64.b64encode(
|
|
40
|
+
json.dumps({"b64": base64.b64encode(payload).decode()}).encode()
|
|
41
|
+
).decode()
|
|
42
|
+
command = (
|
|
43
|
+
"python3 - <<'LBPY'\nimport base64, json\n"
|
|
44
|
+
f"data = base64.b64decode(json.loads(base64.b64decode('{manifest}'))['b64'])\n"
|
|
45
|
+
f"open('attachment-{index}.bin', 'wb').write(data)\n"
|
|
46
|
+
"print(len(data))\nLBPY"
|
|
47
|
+
)
|
|
48
|
+
result = await backend.exec(session, spec.model_copy(update={"cmd": command}))
|
|
49
|
+
assert result.ok, result.stderr
|
|
50
|
+
assert result.stdout.strip() == str(len(payload))
|
|
51
|
+
assert (
|
|
52
|
+
Path(session.backend_session_id) / "workspace" / f"attachment-{index}.bin"
|
|
53
|
+
).read_bytes() == payload
|
|
54
|
+
|
|
55
|
+
await asyncio.gather(execute(1), execute(2))
|
|
56
|
+
assert not list(Path(session.backend_session_id).glob("tmp/.langbot-exec-*"))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
@pytest.mark.asyncio
|
|
60
|
+
@pytest.mark.parametrize("outcome", ["failure", "timeout", "cancel"])
|
|
61
|
+
async def test_large_command_cleans_script_on_exit(jail, outcome):
|
|
62
|
+
backend, session, spec = jail
|
|
63
|
+
command = (
|
|
64
|
+
"#" + "x" * 150000 + "\n" + ("exit 7" if outcome == "failure" else "sleep 30")
|
|
65
|
+
)
|
|
66
|
+
task = asyncio.create_task(
|
|
67
|
+
backend.exec(
|
|
68
|
+
session, spec.model_copy(update={"cmd": command, "timeout_sec": 1})
|
|
69
|
+
)
|
|
70
|
+
)
|
|
71
|
+
if outcome == "cancel":
|
|
72
|
+
await asyncio.sleep(0.2)
|
|
73
|
+
task.cancel()
|
|
74
|
+
with pytest.raises(asyncio.CancelledError):
|
|
75
|
+
await task
|
|
76
|
+
else:
|
|
77
|
+
result = await task
|
|
78
|
+
if outcome == "timeout":
|
|
79
|
+
assert result.status == BoxExecutionStatus.TIMED_OUT
|
|
80
|
+
else:
|
|
81
|
+
assert result.exit_code == 7
|
|
82
|
+
assert not list(Path(session.backend_session_id).glob("tmp/.langbot-exec-*"))
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import base64
|
|
2
|
+
from types import SimpleNamespace
|
|
3
|
+
from unittest.mock import AsyncMock, Mock
|
|
4
|
+
|
|
5
|
+
import pytest
|
|
6
|
+
|
|
7
|
+
from langbot_plugin.entities.io.actions.enums import CommonAction
|
|
8
|
+
from langbot_plugin.entities.io.errors import ActionCallError
|
|
9
|
+
from langbot_plugin.entities.io.resp import ActionResponse
|
|
10
|
+
from langbot_plugin.runtime.io.handler import Handler, MAX_STREAM_FRAME_BYTES
|
|
11
|
+
from langbot_plugin.runtime.io.connections.ws import WebSocketConnection
|
|
12
|
+
from langbot_plugin.runtime.io.connections.stdio import StdioConnection
|
|
13
|
+
from tests.helpers.protocol import ProtocolConnection
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@pytest.mark.asyncio
|
|
17
|
+
@pytest.mark.parametrize("transport", ["websocket", "stdio"])
|
|
18
|
+
async def test_inline_attachment_limit_reports_remedy_without_sending(transport):
|
|
19
|
+
stream = SimpleNamespace(send=AsyncMock(), close=AsyncMock(), write=Mock())
|
|
20
|
+
connection = (
|
|
21
|
+
WebSocketConnection(stream)
|
|
22
|
+
if transport == "websocket"
|
|
23
|
+
else StdioConnection(None, stream)
|
|
24
|
+
)
|
|
25
|
+
handler = Handler(connection)
|
|
26
|
+
payload = base64.b64encode(b"x" * (12 * 1024 * 1024)).decode("ascii")
|
|
27
|
+
with pytest.raises(ActionCallError, match="16777216.*reference"):
|
|
28
|
+
await handler.call_action(
|
|
29
|
+
CommonAction.PING, {"image": {"base64": payload}}, timeout=0.01
|
|
30
|
+
)
|
|
31
|
+
stream.send.assert_not_awaited()
|
|
32
|
+
stream.close.assert_not_awaited()
|
|
33
|
+
stream.write.assert_not_called()
|
|
34
|
+
assert not handler.resp_waiters
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@pytest.mark.asyncio
|
|
38
|
+
async def test_stream_frame_limit_reports_distinct_budget_and_remedy():
|
|
39
|
+
connection = ProtocolConnection()
|
|
40
|
+
handler = Handler(connection)
|
|
41
|
+
response = ActionResponse.success({"text": "x" * MAX_STREAM_FRAME_BYTES})
|
|
42
|
+
response.stream_index = 0
|
|
43
|
+
with pytest.raises(ActionCallError, match="1048576.*smaller chunks"):
|
|
44
|
+
await handler._send_message(response)
|
|
45
|
+
assert not connection.sent
|
|
46
|
+
assert not connection.closed
|
|
47
|
+
await handler._send_message(ActionResponse.success({"ok": True}))
|
|
48
|
+
assert len(connection.sent) == 1
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import asyncio
|
|
2
|
+
import json
|
|
3
|
+
import os
|
|
4
|
+
import subprocess
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
import pytest
|
|
8
|
+
|
|
9
|
+
from langbot_plugin.runtime.io.connections.stdio import StdioConnection
|
|
10
|
+
from langbot_plugin.runtime.plugin.worker_launcher import (
|
|
11
|
+
PluginWorkerLauncher,
|
|
12
|
+
PluginWorkerProcessController,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@pytest.mark.parametrize(
|
|
17
|
+
"noise", ["发起者ID".encode("gbk"), b"{broken}", b"ordinary log", b"[]"]
|
|
18
|
+
)
|
|
19
|
+
@pytest.mark.parametrize("chunked", [False, True])
|
|
20
|
+
async def test_stdio_discards_noise_and_keeps_next_message(noise, chunked, caplog):
|
|
21
|
+
reader = asyncio.StreamReader()
|
|
22
|
+
message = '{"code": 0}'
|
|
23
|
+
if chunked:
|
|
24
|
+
reader.feed_data(
|
|
25
|
+
json.dumps({"type": "chunk_start", "total_size": len(message)}).encode()
|
|
26
|
+
+ b"\n"
|
|
27
|
+
)
|
|
28
|
+
reader.feed_data(noise + b"\n")
|
|
29
|
+
if chunked:
|
|
30
|
+
reader.feed_data(
|
|
31
|
+
json.dumps({"type": "chunk_data", "offset": 0, "data": message}).encode()
|
|
32
|
+
+ b"\n"
|
|
33
|
+
)
|
|
34
|
+
reader.feed_data(b'{"type": "chunk_end"}\n')
|
|
35
|
+
else:
|
|
36
|
+
reader.feed_data(message.encode() + b"\n")
|
|
37
|
+
reader.feed_eof()
|
|
38
|
+
assert await StdioConnection(reader, None).receive() == message
|
|
39
|
+
assert "Skipping" in caplog.text
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def test_windows_worker_environment_prints_unicode(monkeypatch):
|
|
43
|
+
monkeypatch.setenv("PYTHONUTF8", "0")
|
|
44
|
+
monkeypatch.setenv("PYTHONIOENCODING", "gbk")
|
|
45
|
+
env = PluginWorkerLauncher(platform="win32")._windows_worker_environment()
|
|
46
|
+
result = subprocess.run(
|
|
47
|
+
[sys.executable, "-c", "print('\\u2717 \\U0001f60e \\u4e2d\\u6587')"],
|
|
48
|
+
env=env,
|
|
49
|
+
capture_output=True,
|
|
50
|
+
timeout=15,
|
|
51
|
+
)
|
|
52
|
+
assert result.returncode == 0, result.stderr
|
|
53
|
+
assert result.stdout.decode("utf-8").strip() == "✗ 😎 中文"
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
async def test_websocket_worker_stdout_uses_stderr(capfd, tmp_path):
|
|
57
|
+
controller = PluginWorkerProcessController(
|
|
58
|
+
command=sys.executable,
|
|
59
|
+
args=["-c", "print('worker diagnostic')"],
|
|
60
|
+
env=os.environ.copy(),
|
|
61
|
+
working_dir=str(tmp_path),
|
|
62
|
+
)
|
|
63
|
+
await controller.run(None)
|
|
64
|
+
out, err = capfd.readouterr()
|
|
65
|
+
assert out == ""
|
|
66
|
+
assert "worker diagnostic" in err
|
|
@@ -495,6 +495,9 @@ async def test_windows_launch_uses_minimal_env_and_fences_runtime_url(
|
|
|
495
495
|
assert "UNRELATED_SECRET" not in child_env
|
|
496
496
|
assert len(child_env["LANGBOT_PLUGIN_REGISTRATION_CAPABILITY"]) >= 32
|
|
497
497
|
assert child_env["RUNTIME_WS_URL"] == "ws://localhost:18080/plugin/ws"
|
|
498
|
+
assert child_env["PYTHONUTF8"] == "1"
|
|
499
|
+
assert child_env["PYTHONIOENCODING"] == "utf-8"
|
|
500
|
+
assert captured["kwargs"]["stdout"] is manager_module.sys.stderr
|
|
498
501
|
|
|
499
502
|
|
|
500
503
|
@pytest.mark.asyncio
|
{langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_worker_launcher.py
RENAMED
|
@@ -488,6 +488,8 @@ def test_windows_oss_worker_keeps_required_system_env_without_runtime_secrets(
|
|
|
488
488
|
assert controller.env["PATH"] == r"C:\Windows\System32"
|
|
489
489
|
assert controller.env["PATHEXT"] == ".COM;.EXE;.BAT"
|
|
490
490
|
assert controller.env["RUNTIME_WS_URL"] == "ws://localhost:5401/plugin/ws"
|
|
491
|
+
assert controller.env["PYTHONUTF8"] == "1"
|
|
492
|
+
assert controller.env["PYTHONIOENCODING"] == "utf-8"
|
|
491
493
|
assert "-s" not in controller.args
|
|
492
494
|
assert "LANGBOT_PLUGIN_RUNTIME_CONTROL_TOKEN" not in controller.env
|
|
493
495
|
assert "LANGBOT_BOX_CONTROL_TOKEN" not in controller.env
|
|
@@ -522,6 +524,7 @@ async def test_windows_oss_worker_controller_reaps_process_when_cancelled(
|
|
|
522
524
|
assert kwargs == {
|
|
523
525
|
"env": controller.env,
|
|
524
526
|
"cwd": controller.working_dir,
|
|
527
|
+
"stdout": sys.stderr,
|
|
525
528
|
}
|
|
526
529
|
return process
|
|
527
530
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.7.23"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/agent-runner-pluginization/PROTOCOL_V1.md
RENAMED
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/agent-runner-pluginization/SDK_RUNTIME_PLAN.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/examples/workspace_runner_plugin/manifest.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|