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.
Files changed (433) hide show
  1. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/PKG-INFO +1 -1
  2. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/pyproject.toml +1 -1
  3. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/command/context.py +15 -7
  4. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/errors.py +3 -1
  5. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/nsjail_backend.py +23 -1
  6. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/connections/stdio.py +20 -5
  7. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/connections/ws.py +3 -1
  8. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/handler.py +4 -1
  9. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/mgr.py +3 -0
  10. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/worker_launcher.py +9 -3
  11. langbot_plugin-0.7.24/src/langbot_plugin/version.py +1 -0
  12. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/runner/test_context_result.py +9 -0
  13. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/test_command_context.py +17 -0
  14. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_nsjail_backend.py +31 -0
  15. langbot_plugin-0.7.24/tests/e2e/test_nsjail_large_commands.py +82 -0
  16. langbot_plugin-0.7.24/tests/runtime/io/test_payload_limits.py +48 -0
  17. langbot_plugin-0.7.24/tests/runtime/io/test_stdio_encoding.py +66 -0
  18. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_manager.py +3 -0
  19. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_worker_launcher.py +3 -0
  20. langbot_plugin-0.7.23/src/langbot_plugin/version.py +0 -1
  21. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/.github/workflows/box-docker.yml +0 -0
  22. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/.github/workflows/cla.yml +0 -0
  23. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/.github/workflows/publish-pypi.yaml +0 -0
  24. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/.github/workflows/publish.yml +0 -0
  25. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/.github/workflows/test.yml +0 -0
  26. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/.gitignore +0 -0
  27. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/.python-version +0 -0
  28. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/AGENTS.md +0 -0
  29. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/ARCHITECTURE.md +0 -0
  30. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/CLAUDE.md +0 -0
  31. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/CONTRIBUTING.md +0 -0
  32. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/LICENSE +0 -0
  33. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/README.md +0 -0
  34. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/README_CN.md +0 -0
  35. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/data/.env.example +0 -0
  36. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/Message.md +0 -0
  37. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/PluginPages.md +0 -0
  38. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/agent-runner-interactions.md +0 -0
  39. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/agent-runner-pluginization/PROTOCOL_V1.md +0 -0
  40. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/agent-runner-pluginization/README.md +0 -0
  41. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/agent-runner-pluginization/SDK_RUNTIME_PLAN.md +0 -0
  42. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/box-instance-identity.md +0 -0
  43. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/certified-plugins.md +0 -0
  44. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/communication/apis/lb2rt.md +0 -0
  45. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/communication/runtime_plugin.md +0 -0
  46. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/dependency-management.md +0 -0
  47. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/execution_api.md +0 -0
  48. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/langbot-plugin-social.png +0 -0
  49. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/runner.md +0 -0
  50. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/docs/stateless-components.md +0 -0
  51. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/examples/workspace_runner_plugin/README.md +0 -0
  52. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/examples/workspace_runner_plugin/components/runner/default.py +0 -0
  53. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/examples/workspace_runner_plugin/components/runner/default.yaml +0 -0
  54. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/examples/workspace_runner_plugin/main.py +0 -0
  55. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/examples/workspace_runner_plugin/manifest.yaml +0 -0
  56. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/local_e2e/acceptance.json +0 -0
  57. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/local_e2e/registration_fanin.py +0 -0
  58. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/local_e2e/run_acceptance.py +0 -0
  59. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/mypy.ini +0 -0
  60. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/scripts/check_action_consistency.py +0 -0
  61. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/scripts/runtime_resource_probe.py +0 -0
  62. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/__init__.py +0 -0
  63. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/__init__.py +0 -0
  64. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/__init__.py +0 -0
  65. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/asset_gateway.py +0 -0
  66. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/daemon.py +0 -0
  67. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/decorators.py +0 -0
  68. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/external_tools.py +0 -0
  69. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/mcp_access.py +0 -0
  70. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/mcp_bridge.py +0 -0
  71. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/mcp_config.py +0 -0
  72. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/mcp_protocol.py +0 -0
  73. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/agent_tools/mcp_stdio.py +0 -0
  74. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/__init__.py +0 -0
  75. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/abstract/__init__.py +0 -0
  76. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/abstract/platform/__init__.py +0 -0
  77. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/abstract/platform/adapter.py +0 -0
  78. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/abstract/platform/event_logger.py +0 -0
  79. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/__init__.py +0 -0
  80. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/base.py +0 -0
  81. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/command/__init__.py +0 -0
  82. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/command/command.py +0 -0
  83. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/common/__init__.py +0 -0
  84. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/common/event_listener.py +0 -0
  85. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/knowledge_engine/__init__.py +0 -0
  86. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/knowledge_engine/engine.py +0 -0
  87. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/manifest.py +0 -0
  88. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/page/__init__.py +0 -0
  89. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/parser/__init__.py +0 -0
  90. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/parser/parser.py +0 -0
  91. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/runner/__init__.py +0 -0
  92. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/runner/runner.py +0 -0
  93. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/tool/__init__.py +0 -0
  94. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/components/tool/tool.py +0 -0
  95. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/definition/plugin.py +0 -0
  96. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/__init__.py +0 -0
  97. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/__init__.py +0 -0
  98. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/command/__init__.py +0 -0
  99. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/command/errors.py +0 -0
  100. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/pipeline/__init__.py +0 -0
  101. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/pipeline/query.py +0 -0
  102. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/platform/__init__.py +0 -0
  103. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/platform/entities.py +0 -0
  104. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/platform/errors.py +0 -0
  105. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/platform/events.py +0 -0
  106. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/platform/logger.py +0 -0
  107. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/platform/message.py +0 -0
  108. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/provider/__init__.py +0 -0
  109. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/provider/message.py +0 -0
  110. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/provider/prompt.py +0 -0
  111. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/provider/reasoning.py +0 -0
  112. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/provider/session.py +0 -0
  113. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/rag/__init__.py +0 -0
  114. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/rag/context.py +0 -0
  115. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/rag/enums.py +0 -0
  116. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/rag/errors.py +0 -0
  117. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/rag/models.py +0 -0
  118. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/resource/__init__.py +0 -0
  119. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/resource/tool.py +0 -0
  120. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/__init__.py +0 -0
  121. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/box.py +0 -0
  122. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/capabilities.py +0 -0
  123. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/compat.py +0 -0
  124. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/context.py +0 -0
  125. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/context_access.py +0 -0
  126. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/delivery.py +0 -0
  127. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/event.py +0 -0
  128. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/input.py +0 -0
  129. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/interaction.py +0 -0
  130. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/manifest.py +0 -0
  131. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/page_results.py +0 -0
  132. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/permissions.py +0 -0
  133. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/resources.py +0 -0
  134. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/result.py +0 -0
  135. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/run_ledger.py +0 -0
  136. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/runtime.py +0 -0
  137. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/runtime_registry.py +0 -0
  138. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/state.py +0 -0
  139. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/stats.py +0 -0
  140. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/steering.py +0 -0
  141. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/transcript.py +0 -0
  142. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/builtin/runner/trigger.py +0 -0
  143. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/context.py +0 -0
  144. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/events.py +0 -0
  145. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/execution.py +0 -0
  146. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/entities/permissions.py +0 -0
  147. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/__init__.py +0 -0
  148. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/base.py +0 -0
  149. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/event_context.py +0 -0
  150. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/execute_context.py +0 -0
  151. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/execution.py +0 -0
  152. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/invocation.py +0 -0
  153. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/langbot_api.py +0 -0
  154. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/query_based_api.py +0 -0
  155. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/__init__.py +0 -0
  156. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/admin.py +0 -0
  157. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/api.py +0 -0
  158. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/box.py +0 -0
  159. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/common.py +0 -0
  160. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/context.py +0 -0
  161. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/ledger.py +0 -0
  162. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/platform.py +0 -0
  163. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/reply_stream.py +0 -0
  164. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/resources.py +0 -0
  165. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/state.py +0 -0
  166. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/runner/tracing.py +0 -0
  167. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/workspace.py +0 -0
  168. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/api/proxies/workspace_domains.py +0 -0
  169. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/artifact.py +0 -0
  170. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/__init__.py +0 -0
  171. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/langbot-page-sdk.js +0 -0
  172. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/.env.example.example +0 -0
  173. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/.github/workflows/release.yml.example +0 -0
  174. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/.gitignore.example +0 -0
  175. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/.vscode/launch.json.example +0 -0
  176. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/README.md.example +0 -0
  177. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/__init__.py +0 -0
  178. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/assets/icon.svg.example +0 -0
  179. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/__init__.py +0 -0
  180. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/commands/__init__.py +0 -0
  181. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.py.example +0 -0
  182. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.yaml.example +0 -0
  183. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/event_listener/__init__.py +0 -0
  184. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/event_listener/default.py.example +0 -0
  185. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/event_listener/default.yaml.example +0 -0
  186. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/knowledge_engine/__init__.py +0 -0
  187. {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
  188. {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
  189. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/pages/{page_name}.html.example +0 -0
  190. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/pages/{page_name}.yaml.example +0 -0
  191. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/parser/__init__.py +0 -0
  192. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.py.example +0 -0
  193. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.yaml.example +0 -0
  194. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/runner/__init__.py +0 -0
  195. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.py.example +0 -0
  196. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.yaml.example +0 -0
  197. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/tools/__init__.py +0 -0
  198. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.py.example +0 -0
  199. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.yaml.example +0 -0
  200. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/main.py.example +0 -0
  201. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/manifest.yaml.example +0 -0
  202. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/readme/README_zh_Hans.md.example +0 -0
  203. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/assets/templates/requirements.txt.example +0 -0
  204. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/__init__.py +0 -0
  205. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/actions.py +0 -0
  206. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/backend.py +0 -0
  207. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/client.py +0 -0
  208. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/e2b_backend.py +0 -0
  209. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/errors.py +0 -0
  210. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/host_backend.py +0 -0
  211. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/identity.py +0 -0
  212. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/models.py +0 -0
  213. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/runtime.py +0 -0
  214. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/security.py +0 -0
  215. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/server.py +0 -0
  216. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/box/tenancy.py +0 -0
  217. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/certification.py +0 -0
  218. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/__init__.py +0 -0
  219. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/__main__.py +0 -0
  220. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/__init__.py +0 -0
  221. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/buildplugin.py +0 -0
  222. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/gencomponent.py +0 -0
  223. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/initplugin.py +0 -0
  224. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/login.py +0 -0
  225. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/logout.py +0 -0
  226. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/publish.py +0 -0
  227. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/commands/runplugin.py +0 -0
  228. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/gen/__init__.py +0 -0
  229. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/gen/renderer.py +0 -0
  230. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/i18n.py +0 -0
  231. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/__init__.py +0 -0
  232. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/en_US.py +0 -0
  233. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/es_ES.py +0 -0
  234. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/ja_JP.py +0 -0
  235. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/th_TH.py +0 -0
  236. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/vi_VN.py +0 -0
  237. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/zh_Hans.py +0 -0
  238. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/locales/zh_Hant.py +0 -0
  239. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/run/__init__.py +0 -0
  240. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/run/controller.py +0 -0
  241. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/run/handler.py +0 -0
  242. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/run/hotreload.py +0 -0
  243. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/utils/__init__.py +0 -0
  244. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/utils/cloudsv.py +0 -0
  245. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/utils/form.py +0 -0
  246. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/cli/utils/page_components.py +0 -0
  247. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/__init__.py +0 -0
  248. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/io/__init__.py +0 -0
  249. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/io/actions/__init__.py +0 -0
  250. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/io/actions/enums.py +0 -0
  251. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/io/context.py +0 -0
  252. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/io/errors.py +0 -0
  253. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/io/req.py +0 -0
  254. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/io/resp.py +0 -0
  255. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/entities/marketplace.py +0 -0
  256. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/LICENSE +0 -0
  257. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/README.md +0 -0
  258. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/__init__.py +0 -0
  259. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/app.py +0 -0
  260. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/bounded_executor.py +0 -0
  261. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/context.py +0 -0
  262. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/event_loop_monitor.py +0 -0
  263. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/helper/__init__.py +0 -0
  264. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/helper/marketplace.py +0 -0
  265. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/helper/pkgmgr.py +0 -0
  266. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/__init__.py +0 -0
  267. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/connection.py +0 -0
  268. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/connections/__init__.py +0 -0
  269. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controller.py +0 -0
  270. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controllers/__init__.py +0 -0
  271. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controllers/stdio/__init__.py +0 -0
  272. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controllers/stdio/client.py +0 -0
  273. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controllers/stdio/server.py +0 -0
  274. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controllers/ws/__init__.py +0 -0
  275. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controllers/ws/client.py +0 -0
  276. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/controllers/ws/server.py +0 -0
  277. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/handlers/__init__.py +0 -0
  278. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/handlers/control.py +0 -0
  279. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/io/handlers/plugin.py +0 -0
  280. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/ops_metrics.py +0 -0
  281. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/__init__.py +0 -0
  282. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/artifact.py +0 -0
  283. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/container.py +0 -0
  284. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/dependency_environment.py +0 -0
  285. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/logbuffer.py +0 -0
  286. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/restart_coordinator.py +0 -0
  287. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/runner_service.py +0 -0
  288. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/worker_observability.py +0 -0
  289. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/plugin/worker_watchdog.py +0 -0
  290. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/security.py +0 -0
  291. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/runtime/settings.py +0 -0
  292. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/skill_store.py +0 -0
  293. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/storage.py +0 -0
  294. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/__init__.py +0 -0
  295. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/deadline.py +0 -0
  296. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/discover/__init__.py +0 -0
  297. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/discover/engine.py +0 -0
  298. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/git_sync.py +0 -0
  299. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/importutil.py +0 -0
  300. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/log.py +0 -0
  301. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/packaging.py +0 -0
  302. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/page_components.py +0 -0
  303. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/utils/platform.py +0 -0
  304. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/src/langbot_plugin/workspace.py +0 -0
  305. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/__init__.py +0 -0
  306. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/definition/components/test_components.py +0 -0
  307. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/definition/components/test_imports.py +0 -0
  308. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/definition/test_manifest.py +0 -0
  309. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/definition/test_manifest_component_path.py +0 -0
  310. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/runner/test_history_event_entities.py +0 -0
  311. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/runner/test_interaction.py +0 -0
  312. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/runner/test_run_ledger_entities.py +0 -0
  313. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/test_platform_logger.py +0 -0
  314. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/test_provider_message.py +0 -0
  315. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/builtin/test_rag_models.py +0 -0
  316. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/test_context.py +0 -0
  317. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/entities/test_events.py +0 -0
  318. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/__init__.py +0 -0
  319. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_agent_run_api_proxy.py +0 -0
  320. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_base.py +0 -0
  321. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_box_api.py +0 -0
  322. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_history_event_api_proxy.py +0 -0
  323. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_input_attachment_api.py +0 -0
  324. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_langbot_api.py +0 -0
  325. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_llm_stream_ownership.py +0 -0
  326. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_query_based_api.py +0 -0
  327. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/proxies/test_reasoning_parameter.py +0 -0
  328. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/test_agent_tools_mcp_bridge.py +0 -0
  329. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/test_execution_api_consistency.py +0 -0
  330. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/test_runner_handlers.py +0 -0
  331. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/test_runner_handlers_matrix.py +0 -0
  332. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/test_runner_public_apis.py +0 -0
  333. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/test_workspace_domains.py +0 -0
  334. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/api/test_workspace_operations.py +0 -0
  335. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/__init__.py +0 -0
  336. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/conftest.py +0 -0
  337. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_admission.py +0 -0
  338. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_artifact_cache_root.py +0 -0
  339. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_backend.py +0 -0
  340. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_backend_selection.py +0 -0
  341. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_client.py +0 -0
  342. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_e2b_backend.py +0 -0
  343. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_host_backend.py +0 -0
  344. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_identity.py +0 -0
  345. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_runtime.py +0 -0
  346. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_server.py +0 -0
  347. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_skill_store.py +0 -0
  348. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/box/test_storage_analysis.py +0 -0
  349. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/run/test_controller.py +0 -0
  350. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/run/test_hotreload.py +0 -0
  351. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/run/test_runtime_handler.py +0 -0
  352. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_buildplugin.py +0 -0
  353. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_cli_main.py +0 -0
  354. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_examples.py +0 -0
  355. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_gencomponent.py +0 -0
  356. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_i18n_form.py +0 -0
  357. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_initplugin.py +0 -0
  358. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_login.py +0 -0
  359. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_logout_publish.py +0 -0
  360. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_page_components.py +0 -0
  361. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_renderer.py +0 -0
  362. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_runner_usages.py +0 -0
  363. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/cli/test_runplugin.py +0 -0
  364. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/data/execution_api_catalog.json +0 -0
  365. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/e2e/Dockerfile.box-socket +0 -0
  366. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/e2e/Dockerfile.box-socket.dockerignore +0 -0
  367. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/e2e/standalone_runtime_eba_probe.py +0 -0
  368. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/e2e/test_box_instance_cleanup_docker.py +0 -0
  369. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/e2e/test_box_socket_mounts.py +0 -0
  370. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/e2e/test_run_mount_isolation.py +0 -0
  371. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/entities/io/test_dependency_errors.py +0 -0
  372. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/entities/io/test_protocol.py +0 -0
  373. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/fixtures/eba_event_probe_plugin/.gitignore +0 -0
  374. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/fixtures/eba_event_probe_plugin/assets/icon.svg +0 -0
  375. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.py +0 -0
  376. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.yaml +0 -0
  377. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/fixtures/eba_event_probe_plugin/main.py +0 -0
  378. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/fixtures/eba_event_probe_plugin/manifest.yaml +0 -0
  379. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/helpers/__init__.py +0 -0
  380. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/helpers/protocol.py +0 -0
  381. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/packaging/test_installed_cli_blackbox.py +0 -0
  382. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/packaging/test_release_metadata.py +0 -0
  383. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/helper/test_marketplace.py +0 -0
  384. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/helper/test_pkgmgr.py +0 -0
  385. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/handlers/test_control_handler.py +0 -0
  386. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/handlers/test_import_contracts.py +0 -0
  387. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/handlers/test_legacy_file_chunk.py +0 -0
  388. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/handlers/test_plugin_handler.py +0 -0
  389. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_action_consistency.py +0 -0
  390. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_audit_correlation.py +0 -0
  391. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_connections.py +0 -0
  392. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_controllers.py +0 -0
  393. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_handler.py +0 -0
  394. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_heartbeat_admission.py +0 -0
  395. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_stdio_server.py +0 -0
  396. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/io/test_stream_flow_control.py +0 -0
  397. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_artifact_store.py +0 -0
  398. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_container.py +0 -0
  399. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_dependency_environment.py +0 -0
  400. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_event_dispatch_real_worker.py +0 -0
  401. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_exact_dify_real_worker.py +0 -0
  402. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_exact_legacy_sdk_compat.py +0 -0
  403. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_installation_manager.py +0 -0
  404. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_legacy_shadow.py +0 -0
  405. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_mgr_runner.py +0 -0
  406. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_mode_resource_limits.py +0 -0
  407. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_plugin_logs_real_worker.py +0 -0
  408. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_restart_coordinator.py +0 -0
  409. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_shared_worker_subprocess.py +0 -0
  410. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_worker_plugin_identity.py +0 -0
  411. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/plugin/test_workload_isolation.py +0 -0
  412. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/test_app.py +0 -0
  413. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/test_bounded_executor.py +0 -0
  414. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/test_event_loop_monitor.py +0 -0
  415. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/test_ops_metrics.py +0 -0
  416. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/test_pull_api_handlers.py +0 -0
  417. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/runtime/test_security.py +0 -0
  418. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_artifact_materialization.py +0 -0
  419. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_certification.py +0 -0
  420. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_log.py +0 -0
  421. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_message.py +0 -0
  422. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_plugin_logbuffer.py +0 -0
  423. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_skill_store.py +0 -0
  424. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_storage.py +0 -0
  425. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_worker_observability.py +0 -0
  426. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/test_worker_watchdog.py +0 -0
  427. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/utils/test_cli_run_handler_packaging.py +0 -0
  428. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/utils/test_deadline.py +0 -0
  429. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/utils/test_discovery.py +0 -0
  430. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/utils/test_git_sync.py +0 -0
  431. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/utils/test_importutil.py +0 -0
  432. {langbot_plugin-0.7.23 → langbot_plugin-0.7.24}/tests/utils/test_packaging_utils.py +0 -0
  433. {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.23
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "langbot-plugin"
3
- version = "0.7.23"
3
+ version = "0.7.24"
4
4
  description = "This package contains the SDK, CLI for building plugins for LangBot, plus the runtime for hosting LangBot plugins"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -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
- cls, v: Optional[errors.CommandError]
45
- ) -> Optional[errors.CommandError]:
46
- if v is not None:
47
- return errors.CommandError(message=v.message)
48
- return v
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
- return v.message
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
- result = await self._run_nsjail(args, timeout_sec=spec.timeout_sec)
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(
@@ -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
- return s_bytes.decode().strip()
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
- # Not valid JSON, but looks like JSON format
275
- self._first_message_control_available = False
276
- return line
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}")
@@ -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("Streaming response exceeds frame byte limit")
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
 
@@ -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
- name: value
807
- for name in _WINDOWS_WORKER_ENV_ALLOWLIST
808
- if (value := os.environ.get(name)) is not None
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"
@@ -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
@@ -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