langbot-plugin 0.7.22__tar.gz → 0.7.23__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 (430) hide show
  1. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/PKG-INFO +1 -1
  2. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/docs/execution_api.md +2 -0
  3. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/pyproject.toml +1 -1
  4. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/agent_tools/external_tools.py +22 -0
  5. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/provider/message.py +14 -0
  6. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/context.py +18 -1
  7. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/context_access.py +3 -0
  8. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/input.py +35 -5
  9. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/langbot_api.py +47 -0
  10. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/runner/context.py +47 -0
  11. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/workspace_domains.py +14 -0
  12. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/entities/io/actions/enums.py +1 -0
  13. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/handlers/plugin.py +23 -0
  14. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/plugin/mgr.py +3 -0
  15. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/plugin/worker_launcher.py +6 -0
  16. langbot_plugin-0.7.23/src/langbot_plugin/version.py +1 -0
  17. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/entities/builtin/test_provider_message.py +45 -3
  18. langbot_plugin-0.7.23/tests/api/proxies/test_input_attachment_api.py +119 -0
  19. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/proxies/test_langbot_api.py +37 -1
  20. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/test_agent_tools_mcp_bridge.py +33 -0
  21. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/test_execution_api_consistency.py +1 -1
  22. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/test_workspace_domains.py +16 -0
  23. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/data/execution_api_catalog.json +76 -0
  24. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/io/handlers/test_plugin_handler.py +35 -1
  25. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_manager.py +5 -2
  26. langbot_plugin-0.7.23/tests/runtime/plugin/test_plugin_logs_real_worker.py +160 -0
  27. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_worker_launcher.py +4 -0
  28. langbot_plugin-0.7.22/src/langbot_plugin/version.py +0 -1
  29. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/.github/workflows/box-docker.yml +0 -0
  30. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/.github/workflows/cla.yml +0 -0
  31. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/.github/workflows/publish-pypi.yaml +0 -0
  32. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/.github/workflows/publish.yml +0 -0
  33. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/.github/workflows/test.yml +0 -0
  34. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/.gitignore +0 -0
  35. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/.python-version +0 -0
  36. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/AGENTS.md +0 -0
  37. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/ARCHITECTURE.md +0 -0
  38. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/CLAUDE.md +0 -0
  39. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/CONTRIBUTING.md +0 -0
  40. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/LICENSE +0 -0
  41. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/README.md +0 -0
  42. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/README_CN.md +0 -0
  43. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/data/.env.example +0 -0
  44. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/docs/Message.md +0 -0
  45. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/docs/PluginPages.md +0 -0
  46. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/docs/agent-runner-interactions.md +0 -0
  47. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/docs/agent-runner-pluginization/PROTOCOL_V1.md +0 -0
  48. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/docs/agent-runner-pluginization/README.md +0 -0
  49. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/docs/agent-runner-pluginization/SDK_RUNTIME_PLAN.md +0 -0
  50. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/docs/box-instance-identity.md +0 -0
  51. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/docs/certified-plugins.md +0 -0
  52. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/docs/communication/apis/lb2rt.md +0 -0
  53. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/docs/communication/runtime_plugin.md +0 -0
  54. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/docs/dependency-management.md +0 -0
  55. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/docs/langbot-plugin-social.png +0 -0
  56. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/docs/runner.md +0 -0
  57. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/docs/stateless-components.md +0 -0
  58. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/examples/workspace_runner_plugin/README.md +0 -0
  59. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/examples/workspace_runner_plugin/components/runner/default.py +0 -0
  60. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/examples/workspace_runner_plugin/components/runner/default.yaml +0 -0
  61. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/examples/workspace_runner_plugin/main.py +0 -0
  62. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/examples/workspace_runner_plugin/manifest.yaml +0 -0
  63. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/local_e2e/acceptance.json +0 -0
  64. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/local_e2e/registration_fanin.py +0 -0
  65. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/local_e2e/run_acceptance.py +0 -0
  66. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/mypy.ini +0 -0
  67. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/scripts/check_action_consistency.py +0 -0
  68. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/scripts/runtime_resource_probe.py +0 -0
  69. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/__init__.py +0 -0
  70. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/__init__.py +0 -0
  71. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/agent_tools/__init__.py +0 -0
  72. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/agent_tools/asset_gateway.py +0 -0
  73. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/agent_tools/daemon.py +0 -0
  74. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/agent_tools/decorators.py +0 -0
  75. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/agent_tools/mcp_access.py +0 -0
  76. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/agent_tools/mcp_bridge.py +0 -0
  77. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/agent_tools/mcp_config.py +0 -0
  78. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/agent_tools/mcp_protocol.py +0 -0
  79. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/agent_tools/mcp_stdio.py +0 -0
  80. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/__init__.py +0 -0
  81. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/abstract/__init__.py +0 -0
  82. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/abstract/platform/__init__.py +0 -0
  83. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/abstract/platform/adapter.py +0 -0
  84. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/abstract/platform/event_logger.py +0 -0
  85. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/__init__.py +0 -0
  86. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/base.py +0 -0
  87. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/command/__init__.py +0 -0
  88. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/command/command.py +0 -0
  89. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/common/__init__.py +0 -0
  90. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/common/event_listener.py +0 -0
  91. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/knowledge_engine/__init__.py +0 -0
  92. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/knowledge_engine/engine.py +0 -0
  93. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/manifest.py +0 -0
  94. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/page/__init__.py +0 -0
  95. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/parser/__init__.py +0 -0
  96. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/parser/parser.py +0 -0
  97. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/runner/__init__.py +0 -0
  98. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/runner/runner.py +0 -0
  99. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/tool/__init__.py +0 -0
  100. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/components/tool/tool.py +0 -0
  101. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/definition/plugin.py +0 -0
  102. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/__init__.py +0 -0
  103. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/__init__.py +0 -0
  104. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/command/__init__.py +0 -0
  105. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/command/context.py +0 -0
  106. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/command/errors.py +0 -0
  107. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/pipeline/__init__.py +0 -0
  108. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/pipeline/query.py +0 -0
  109. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/platform/__init__.py +0 -0
  110. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/platform/entities.py +0 -0
  111. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/platform/errors.py +0 -0
  112. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/platform/events.py +0 -0
  113. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/platform/logger.py +0 -0
  114. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/platform/message.py +0 -0
  115. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/provider/__init__.py +0 -0
  116. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/provider/prompt.py +0 -0
  117. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/provider/reasoning.py +0 -0
  118. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/provider/session.py +0 -0
  119. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/rag/__init__.py +0 -0
  120. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/rag/context.py +0 -0
  121. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/rag/enums.py +0 -0
  122. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/rag/errors.py +0 -0
  123. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/rag/models.py +0 -0
  124. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/resource/__init__.py +0 -0
  125. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/resource/tool.py +0 -0
  126. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/__init__.py +0 -0
  127. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/box.py +0 -0
  128. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/capabilities.py +0 -0
  129. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/compat.py +0 -0
  130. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/delivery.py +0 -0
  131. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/errors.py +0 -0
  132. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/event.py +0 -0
  133. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/interaction.py +0 -0
  134. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/manifest.py +0 -0
  135. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/page_results.py +0 -0
  136. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/permissions.py +0 -0
  137. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/resources.py +0 -0
  138. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/result.py +0 -0
  139. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/run_ledger.py +0 -0
  140. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/runtime.py +0 -0
  141. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/runtime_registry.py +0 -0
  142. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/state.py +0 -0
  143. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/stats.py +0 -0
  144. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/steering.py +0 -0
  145. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/transcript.py +0 -0
  146. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/builtin/runner/trigger.py +0 -0
  147. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/context.py +0 -0
  148. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/events.py +0 -0
  149. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/execution.py +0 -0
  150. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/entities/permissions.py +0 -0
  151. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/__init__.py +0 -0
  152. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/base.py +0 -0
  153. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/event_context.py +0 -0
  154. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/execute_context.py +0 -0
  155. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/execution.py +0 -0
  156. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/invocation.py +0 -0
  157. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/query_based_api.py +0 -0
  158. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/runner/__init__.py +0 -0
  159. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/runner/admin.py +0 -0
  160. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/runner/api.py +0 -0
  161. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/runner/box.py +0 -0
  162. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/runner/common.py +0 -0
  163. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/runner/ledger.py +0 -0
  164. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/runner/platform.py +0 -0
  165. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/runner/reply_stream.py +0 -0
  166. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/runner/resources.py +0 -0
  167. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/runner/state.py +0 -0
  168. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/runner/tracing.py +0 -0
  169. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/api/proxies/workspace.py +0 -0
  170. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/artifact.py +0 -0
  171. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/__init__.py +0 -0
  172. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/langbot-page-sdk.js +0 -0
  173. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/.env.example.example +0 -0
  174. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/.github/workflows/release.yml.example +0 -0
  175. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/.gitignore.example +0 -0
  176. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/.vscode/launch.json.example +0 -0
  177. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/README.md.example +0 -0
  178. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/__init__.py +0 -0
  179. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/assets/icon.svg.example +0 -0
  180. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/__init__.py +0 -0
  181. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/commands/__init__.py +0 -0
  182. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.py.example +0 -0
  183. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.yaml.example +0 -0
  184. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/event_listener/__init__.py +0 -0
  185. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/event_listener/default.py.example +0 -0
  186. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/event_listener/default.yaml.example +0 -0
  187. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/knowledge_engine/__init__.py +0 -0
  188. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.py.example +0 -0
  189. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.yaml.example +0 -0
  190. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/pages/{page_name}.html.example +0 -0
  191. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/pages/{page_name}.yaml.example +0 -0
  192. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/parser/__init__.py +0 -0
  193. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.py.example +0 -0
  194. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.yaml.example +0 -0
  195. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/runner/__init__.py +0 -0
  196. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.py.example +0 -0
  197. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.yaml.example +0 -0
  198. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/tools/__init__.py +0 -0
  199. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.py.example +0 -0
  200. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.yaml.example +0 -0
  201. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/main.py.example +0 -0
  202. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/manifest.yaml.example +0 -0
  203. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/readme/README_zh_Hans.md.example +0 -0
  204. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/assets/templates/requirements.txt.example +0 -0
  205. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/box/__init__.py +0 -0
  206. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/box/actions.py +0 -0
  207. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/box/backend.py +0 -0
  208. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/box/client.py +0 -0
  209. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/box/e2b_backend.py +0 -0
  210. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/box/errors.py +0 -0
  211. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/box/host_backend.py +0 -0
  212. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/box/identity.py +0 -0
  213. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/box/models.py +0 -0
  214. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/box/nsjail_backend.py +0 -0
  215. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/box/runtime.py +0 -0
  216. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/box/security.py +0 -0
  217. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/box/server.py +0 -0
  218. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/box/tenancy.py +0 -0
  219. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/certification.py +0 -0
  220. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/__init__.py +0 -0
  221. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/__main__.py +0 -0
  222. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/commands/__init__.py +0 -0
  223. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/commands/buildplugin.py +0 -0
  224. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/commands/gencomponent.py +0 -0
  225. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/commands/initplugin.py +0 -0
  226. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/commands/login.py +0 -0
  227. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/commands/logout.py +0 -0
  228. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/commands/publish.py +0 -0
  229. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/commands/runplugin.py +0 -0
  230. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/gen/__init__.py +0 -0
  231. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/gen/renderer.py +0 -0
  232. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/i18n.py +0 -0
  233. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/locales/__init__.py +0 -0
  234. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/locales/en_US.py +0 -0
  235. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/locales/es_ES.py +0 -0
  236. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/locales/ja_JP.py +0 -0
  237. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/locales/th_TH.py +0 -0
  238. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/locales/vi_VN.py +0 -0
  239. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/locales/zh_Hans.py +0 -0
  240. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/locales/zh_Hant.py +0 -0
  241. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/run/__init__.py +0 -0
  242. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/run/controller.py +0 -0
  243. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/run/handler.py +0 -0
  244. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/run/hotreload.py +0 -0
  245. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/utils/__init__.py +0 -0
  246. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/utils/cloudsv.py +0 -0
  247. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/utils/form.py +0 -0
  248. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/cli/utils/page_components.py +0 -0
  249. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/entities/__init__.py +0 -0
  250. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/entities/io/__init__.py +0 -0
  251. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/entities/io/actions/__init__.py +0 -0
  252. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/entities/io/context.py +0 -0
  253. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/entities/io/errors.py +0 -0
  254. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/entities/io/req.py +0 -0
  255. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/entities/io/resp.py +0 -0
  256. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/entities/marketplace.py +0 -0
  257. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/LICENSE +0 -0
  258. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/README.md +0 -0
  259. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/__init__.py +0 -0
  260. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/app.py +0 -0
  261. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/bounded_executor.py +0 -0
  262. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/context.py +0 -0
  263. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/event_loop_monitor.py +0 -0
  264. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/helper/__init__.py +0 -0
  265. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/helper/marketplace.py +0 -0
  266. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/helper/pkgmgr.py +0 -0
  267. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/__init__.py +0 -0
  268. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/connection.py +0 -0
  269. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/connections/__init__.py +0 -0
  270. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/connections/stdio.py +0 -0
  271. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/connections/ws.py +0 -0
  272. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/controller.py +0 -0
  273. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/controllers/__init__.py +0 -0
  274. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/controllers/stdio/__init__.py +0 -0
  275. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/controllers/stdio/client.py +0 -0
  276. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/controllers/stdio/server.py +0 -0
  277. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/controllers/ws/__init__.py +0 -0
  278. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/controllers/ws/client.py +0 -0
  279. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/controllers/ws/server.py +0 -0
  280. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/handler.py +0 -0
  281. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/handlers/__init__.py +0 -0
  282. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/io/handlers/control.py +0 -0
  283. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/ops_metrics.py +0 -0
  284. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/plugin/__init__.py +0 -0
  285. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/plugin/artifact.py +0 -0
  286. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/plugin/container.py +0 -0
  287. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/plugin/dependency_environment.py +0 -0
  288. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/plugin/logbuffer.py +0 -0
  289. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/plugin/restart_coordinator.py +0 -0
  290. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/plugin/runner_service.py +0 -0
  291. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/plugin/worker_observability.py +0 -0
  292. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/plugin/worker_watchdog.py +0 -0
  293. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/security.py +0 -0
  294. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/runtime/settings.py +0 -0
  295. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/skill_store.py +0 -0
  296. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/storage.py +0 -0
  297. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/utils/__init__.py +0 -0
  298. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/utils/deadline.py +0 -0
  299. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/utils/discover/__init__.py +0 -0
  300. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/utils/discover/engine.py +0 -0
  301. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/utils/git_sync.py +0 -0
  302. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/utils/importutil.py +0 -0
  303. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/utils/log.py +0 -0
  304. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/utils/packaging.py +0 -0
  305. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/utils/page_components.py +0 -0
  306. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/utils/platform.py +0 -0
  307. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/src/langbot_plugin/workspace.py +0 -0
  308. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/__init__.py +0 -0
  309. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/definition/components/test_components.py +0 -0
  310. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/definition/components/test_imports.py +0 -0
  311. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/definition/test_manifest.py +0 -0
  312. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/definition/test_manifest_component_path.py +0 -0
  313. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/entities/builtin/runner/test_context_result.py +0 -0
  314. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/entities/builtin/runner/test_history_event_entities.py +0 -0
  315. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/entities/builtin/runner/test_interaction.py +0 -0
  316. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/entities/builtin/runner/test_run_ledger_entities.py +0 -0
  317. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/entities/builtin/test_command_context.py +0 -0
  318. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/entities/builtin/test_platform_logger.py +0 -0
  319. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/entities/builtin/test_rag_models.py +0 -0
  320. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/entities/test_context.py +0 -0
  321. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/entities/test_events.py +0 -0
  322. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/proxies/__init__.py +0 -0
  323. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/proxies/test_agent_run_api_proxy.py +0 -0
  324. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/proxies/test_base.py +0 -0
  325. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/proxies/test_box_api.py +0 -0
  326. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/proxies/test_history_event_api_proxy.py +0 -0
  327. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/proxies/test_llm_stream_ownership.py +0 -0
  328. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/proxies/test_query_based_api.py +0 -0
  329. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/proxies/test_reasoning_parameter.py +0 -0
  330. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/test_runner_handlers.py +0 -0
  331. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/test_runner_handlers_matrix.py +0 -0
  332. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/test_runner_public_apis.py +0 -0
  333. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/api/test_workspace_operations.py +0 -0
  334. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/box/__init__.py +0 -0
  335. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/box/conftest.py +0 -0
  336. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/box/test_admission.py +0 -0
  337. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/box/test_artifact_cache_root.py +0 -0
  338. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/box/test_backend.py +0 -0
  339. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/box/test_backend_selection.py +0 -0
  340. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/box/test_client.py +0 -0
  341. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/box/test_e2b_backend.py +0 -0
  342. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/box/test_host_backend.py +0 -0
  343. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/box/test_identity.py +0 -0
  344. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/box/test_nsjail_backend.py +0 -0
  345. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/box/test_runtime.py +0 -0
  346. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/box/test_server.py +0 -0
  347. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/box/test_skill_store.py +0 -0
  348. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/box/test_storage_analysis.py +0 -0
  349. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/cli/run/test_controller.py +0 -0
  350. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/cli/run/test_hotreload.py +0 -0
  351. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/cli/run/test_runtime_handler.py +0 -0
  352. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/cli/test_buildplugin.py +0 -0
  353. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/cli/test_cli_main.py +0 -0
  354. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/cli/test_examples.py +0 -0
  355. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/cli/test_gencomponent.py +0 -0
  356. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/cli/test_i18n_form.py +0 -0
  357. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/cli/test_initplugin.py +0 -0
  358. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/cli/test_login.py +0 -0
  359. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/cli/test_logout_publish.py +0 -0
  360. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/cli/test_page_components.py +0 -0
  361. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/cli/test_renderer.py +0 -0
  362. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/cli/test_runner_usages.py +0 -0
  363. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/cli/test_runplugin.py +0 -0
  364. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/e2e/Dockerfile.box-socket +0 -0
  365. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/e2e/Dockerfile.box-socket.dockerignore +0 -0
  366. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/e2e/standalone_runtime_eba_probe.py +0 -0
  367. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/e2e/test_box_instance_cleanup_docker.py +0 -0
  368. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/e2e/test_box_socket_mounts.py +0 -0
  369. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/e2e/test_run_mount_isolation.py +0 -0
  370. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/entities/io/test_dependency_errors.py +0 -0
  371. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/entities/io/test_protocol.py +0 -0
  372. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/fixtures/eba_event_probe_plugin/.gitignore +0 -0
  373. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/fixtures/eba_event_probe_plugin/assets/icon.svg +0 -0
  374. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.py +0 -0
  375. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.yaml +0 -0
  376. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/fixtures/eba_event_probe_plugin/main.py +0 -0
  377. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/fixtures/eba_event_probe_plugin/manifest.yaml +0 -0
  378. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/helpers/__init__.py +0 -0
  379. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/helpers/protocol.py +0 -0
  380. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/packaging/test_installed_cli_blackbox.py +0 -0
  381. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/packaging/test_release_metadata.py +0 -0
  382. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/helper/test_marketplace.py +0 -0
  383. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/helper/test_pkgmgr.py +0 -0
  384. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/io/handlers/test_control_handler.py +0 -0
  385. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/io/handlers/test_import_contracts.py +0 -0
  386. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/io/handlers/test_legacy_file_chunk.py +0 -0
  387. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/io/test_action_consistency.py +0 -0
  388. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/io/test_audit_correlation.py +0 -0
  389. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/io/test_connections.py +0 -0
  390. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/io/test_controllers.py +0 -0
  391. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/io/test_handler.py +0 -0
  392. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/io/test_heartbeat_admission.py +0 -0
  393. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/io/test_stdio_server.py +0 -0
  394. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/io/test_stream_flow_control.py +0 -0
  395. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_artifact_store.py +0 -0
  396. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_container.py +0 -0
  397. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_dependency_environment.py +0 -0
  398. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_event_dispatch_real_worker.py +0 -0
  399. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_exact_dify_real_worker.py +0 -0
  400. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_exact_legacy_sdk_compat.py +0 -0
  401. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_installation_manager.py +0 -0
  402. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_legacy_shadow.py +0 -0
  403. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_mgr_runner.py +0 -0
  404. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_mode_resource_limits.py +0 -0
  405. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_restart_coordinator.py +0 -0
  406. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_shared_worker_subprocess.py +0 -0
  407. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_worker_plugin_identity.py +0 -0
  408. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/plugin/test_workload_isolation.py +0 -0
  409. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/test_app.py +0 -0
  410. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/test_bounded_executor.py +0 -0
  411. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/test_event_loop_monitor.py +0 -0
  412. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/test_ops_metrics.py +0 -0
  413. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/test_pull_api_handlers.py +0 -0
  414. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/runtime/test_security.py +0 -0
  415. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/test_artifact_materialization.py +0 -0
  416. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/test_certification.py +0 -0
  417. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/test_log.py +0 -0
  418. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/test_message.py +0 -0
  419. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/test_plugin_logbuffer.py +0 -0
  420. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/test_skill_store.py +0 -0
  421. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/test_storage.py +0 -0
  422. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/test_worker_observability.py +0 -0
  423. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/test_worker_watchdog.py +0 -0
  424. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/utils/test_cli_run_handler_packaging.py +0 -0
  425. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/utils/test_deadline.py +0 -0
  426. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/utils/test_discovery.py +0 -0
  427. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/utils/test_git_sync.py +0 -0
  428. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/utils/test_importutil.py +0 -0
  429. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/tests/utils/test_packaging_utils.py +0 -0
  430. {langbot_plugin-0.7.22 → langbot_plugin-0.7.23}/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.22
3
+ Version: 0.7.23
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
@@ -55,6 +55,7 @@ async for chunk in api.execution.stream(
55
55
  - `await api.bind_box(box_id: str) -> BoxBinding`: 绑定当前运行至指定 Box 沙箱。
56
56
  - `await api.import_box_attachments(attachment_ids: list[str] | None = None) -> list[BoxFile]`: 将附件导入至绑定的 Box 沙箱。
57
57
  - `await api.export_box_files(paths: list[str] | None = None) -> list[BoxFile]`: 从 Box 沙箱导出生成的文件。
58
+ - `await api.read_input_attachment(ref: str) -> InputAttachmentData`: 按 ref 读取当前事件输入附件的字节,无需绑定 Box。Runner 中优先使用 `await ctx.read_input_attachment(attachment)`:Host 不支持时返回 `None`,便于回退到旧逻辑。
58
59
 
59
60
  ---
60
61
 
@@ -116,6 +117,7 @@ async for chunk in api.execution.stream(
116
117
  | `execution.acquire_box` | `plugin_or_run` | 是 | 否 | 申请或复用 Box 沙箱实例 |
117
118
  | `execution.bind_box` | `run` | 是 | 否 | 将特定 Box 实例与当前运行绑定 |
118
119
  | `execution.import_box_attachments` | `run` | 是 | 否 | 导入附件至绑定的 Box 沙箱 |
120
+ | `execution.read_input_attachment` | `run` | 否 | 否 | 按 ref 读取当前事件输入附件的字节 |
119
121
  | `execution.export_box_files` | `run` | 是 | 否 | 导出 Box 沙箱生成的文件 |
120
122
  | `execution.run_get` | `runner_admin` | 否 | 否 | 管理员查询指定 Agent Run 状态 |
121
123
  | `execution.run_list` | `runner_admin` | 否 | 否 | 管理员分页查询历史 Agent Run 列表 |
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "langbot-plugin"
3
- version = "0.7.22"
3
+ version = "0.7.23"
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 = [
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ import base64
5
6
  import copy
6
7
  import json
7
8
  import typing
@@ -36,6 +37,10 @@ class ImportBoxArgs(EmptyArgs):
36
37
  attachment_ids: list[str] | None = None
37
38
 
38
39
 
40
+ class ReadInputAttachmentArgs(EmptyArgs):
41
+ ref: str = pydantic.Field(min_length=1)
42
+
43
+
39
44
  class ReplyFilesArgs(EmptyArgs):
40
45
  file_ids: list[str] = pydantic.Field(min_length=1, max_length=100)
41
46
 
@@ -164,6 +169,8 @@ class AgentRunExternalTools:
164
169
  names = {"langbot_get_current_event", "langbot_list_assets"}
165
170
 
166
171
  available_apis = self.ctx.context.available_apis
172
+ if available_apis.input_attachments and self.ctx.input.attachments:
173
+ names.add("langbot_read_input_attachment")
167
174
  if available_apis.box:
168
175
  names.update(
169
176
  {
@@ -494,6 +501,21 @@ class AgentRunExternalTools:
494
501
  async def import_box_attachments(self, args: ImportBoxArgs):
495
502
  return await self.api.import_box_attachments(args.attachment_ids)
496
503
 
504
+ @agent_tool(
505
+ name="langbot_read_input_attachment",
506
+ description="Read one current input attachment by ref, such as att-1 from [attachment att-1: ...] in the message. Returns name, mime_type, size and base64 content.",
507
+ args_model=ReadInputAttachmentArgs,
508
+ )
509
+ async def read_input_attachment(self, args: ReadInputAttachmentArgs):
510
+ data = await self.api.read_input_attachment(args.ref)
511
+ return {
512
+ "ref": data.ref,
513
+ "name": data.name,
514
+ "mime_type": data.mime_type,
515
+ "size": data.size,
516
+ "content_base64": base64.b64encode(data.data).decode("ascii"),
517
+ }
518
+
497
519
  @agent_tool(
498
520
  name="langbot_export_box_files",
499
521
  description="Validate and export selected sandbox files, then clean up accepted files. Returns file IDs; does not send them to the user.",
@@ -171,6 +171,13 @@ class Message(pydantic.BaseModel):
171
171
  mc.append(
172
172
  platform_message.File(url=ce.file_url, name=ce.file_name)
173
173
  )
174
+ elif ce.type == "file_base64":
175
+ if ce.file_base64 is not None:
176
+ mc.append(
177
+ platform_message.File(
178
+ base64=ce.file_base64, name=ce.file_name or ""
179
+ )
180
+ )
174
181
  elif ce.type == "image_url":
175
182
  if ce.image_url is None:
176
183
  raise ValueError("image_url content requires image_url payload")
@@ -283,6 +290,13 @@ class MessageChunk(pydantic.BaseModel):
283
290
  mc.append(
284
291
  platform_message.File(url=ce.file_url, name=ce.file_name)
285
292
  )
293
+ elif ce.type == "file_base64":
294
+ if ce.file_base64 is not None:
295
+ mc.append(
296
+ platform_message.File(
297
+ base64=ce.file_base64, name=ce.file_name or ""
298
+ )
299
+ )
286
300
  elif ce.type == "image_url":
287
301
  if ce.image_url is None:
288
302
  raise ValueError("image_url content requires image_url payload")
@@ -23,7 +23,11 @@ from langbot_plugin.api.entities.builtin.runner.steering import SteeringPullResu
23
23
 
24
24
  import pydantic
25
25
  from langbot_plugin.api.entities.builtin.runner.trigger import AgentTrigger
26
- from langbot_plugin.api.entities.builtin.runner.input import AgentInput
26
+ from langbot_plugin.api.entities.builtin.runner.input import (
27
+ AgentInput,
28
+ InputAttachment,
29
+ InputAttachmentData,
30
+ )
27
31
  from langbot_plugin.api.entities.builtin.runner.resources import AgentResources
28
32
  from langbot_plugin.api.entities.builtin.runner.runtime import AgentRuntimeContext
29
33
  from langbot_plugin.api.entities.builtin.runner.state import AgentRunState
@@ -170,6 +174,19 @@ class RunnerContext(pydantic.BaseModel):
170
174
  """Bind one authorized Box to this run; cannot switch after binding."""
171
175
  return await self.api.bind_box(box_id)
172
176
 
177
+ async def read_input_attachment(
178
+ self, attachment: InputAttachment | str
179
+ ) -> InputAttachmentData | None:
180
+ """Read the bytes of an input attachment by ref.
181
+
182
+ Returns None when the attachment has no ref or the Host does not offer
183
+ this API, so Runners can fall back to older attachment handling.
184
+ """
185
+ ref = attachment if isinstance(attachment, str) else attachment.ref
186
+ if not ref or not self.context.available_apis.input_attachments:
187
+ return None
188
+ return await self.api.read_input_attachment(ref)
189
+
173
190
  async def import_box_attachments(
174
191
  self, attachment_ids: list[str] | None = None
175
192
  ) -> list["BoxFile"]:
@@ -37,6 +37,9 @@ class ContextAPICapabilities(pydantic.BaseModel):
37
37
  box: bool = False
38
38
  """Whether invocation Box binding and file APIs are available."""
39
39
 
40
+ input_attachments: bool = False
41
+ """Whether input attachment bytes can be read by ref with read_input_attachment."""
42
+
40
43
  reply_stream: bool = False
41
44
  """Whether explicit streaming replies are available (independent of model streaming)."""
42
45
 
@@ -11,12 +11,17 @@ from langbot_plugin.api.entities.builtin.provider.message import ContentElement
11
11
  class InputAttachment(pydantic.BaseModel):
12
12
  """Metadata for a current-event attachment.
13
13
 
14
- Current-run files should be accessed through authorized sandbox/workspace
15
- tools. This model only carries lightweight event metadata.
14
+ Each attachment describes one media component of the current message, in
15
+ order of appearance. Read its bytes with ``RunnerContext.read_input_attachment``
16
+ or import it into a Box with ``import_box_attachments``; both use ``ref``.
16
17
  """
17
18
 
18
19
  ref: str | None = None
19
- """Host-issued reference for importing this input into the selected Box."""
20
+ """Host-issued reference, such as ``att-1``.
21
+
22
+ The same ref appears as ``[attachment att-1: ...]`` in the input text at the
23
+ position of the media.
24
+ """
20
25
 
21
26
  type: str | None = None
22
27
  """Attachment type, such as image, file, or voice."""
@@ -31,7 +36,9 @@ class InputAttachment(pydantic.BaseModel):
31
36
  """File name, if available."""
32
37
 
33
38
  source: str | None = None
34
- """Attachment source, such as url, base64, or platform message-chain."""
39
+ """Where the media appeared: ``message`` for the current message, or
40
+ ``quote`` for a message quoted by it. Older Hosts used transport names
41
+ such as url, base64 or message_chain."""
35
42
 
36
43
  url: str | None = None
37
44
  """External URL when the attachment is backed by a URL."""
@@ -40,7 +47,10 @@ class InputAttachment(pydantic.BaseModel):
40
47
  """Sandbox/workspace path when Host has staged the attachment as a file."""
41
48
 
42
49
  content: str | None = None
43
- """Base64 or data URL content for small current-event attachments."""
50
+ """Deprecated inline base64 content; current Hosts leave it empty.
51
+
52
+ Use ``RunnerContext.read_input_attachment`` instead.
53
+ """
44
54
 
45
55
  id: str | None = None
46
56
  """Platform-native attachment identifier when available."""
@@ -48,6 +58,26 @@ class InputAttachment(pydantic.BaseModel):
48
58
  model_config = pydantic.ConfigDict(extra="forbid")
49
59
 
50
60
 
61
+ class InputAttachmentData(pydantic.BaseModel):
62
+ """Bytes of one current-event attachment, read by ref from the Host."""
63
+
64
+ ref: str
65
+ """Attachment ref that was read."""
66
+
67
+ name: str | None = None
68
+ """File name, if available."""
69
+
70
+ mime_type: str | None = None
71
+ """MIME type, if known."""
72
+
73
+ data: bytes
74
+ """Attachment bytes."""
75
+
76
+ @property
77
+ def size(self) -> int:
78
+ return len(self.data)
79
+
80
+
51
81
  class AgentInput(pydantic.BaseModel):
52
82
  """Input for an agent run.
53
83
 
@@ -1,6 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  import base64
4
+ import math
4
5
  from contextlib import aclosing
5
6
  from typing import Any, get_args
6
7
 
@@ -15,6 +16,24 @@ from langbot_plugin.api.entities.builtin.provider import message as provider_mes
15
16
  from langbot_plugin.api.entities.builtin.resource import tool as resource_tool
16
17
 
17
18
 
19
+ SEND_MESSAGE_DEFAULT_TIMEOUT = 60.0
20
+ """Default seconds a plugin waits for ``send_message`` to complete."""
21
+
22
+
23
+ def resolve_send_message_timeout(timeout: float | None) -> float:
24
+ """Return the effective ``send_message`` timeout, validating explicit values."""
25
+ if timeout is None:
26
+ return SEND_MESSAGE_DEFAULT_TIMEOUT
27
+ if (
28
+ isinstance(timeout, bool)
29
+ or not isinstance(timeout, (int, float))
30
+ or not math.isfinite(timeout)
31
+ or timeout <= 0
32
+ ):
33
+ raise ValueError("send_message timeout must be a positive, finite number")
34
+ return float(timeout)
35
+
36
+
18
37
  class LangBotAPIProxy:
19
38
  """The proxy for langbot API."""
20
39
 
@@ -114,6 +133,25 @@ class LangBotAPIProxy:
114
133
  )
115
134
  return [BoxFile.model_validate(item) for item in result.get("items", [])]
116
135
 
136
+ @run_scoped
137
+ async def read_input_attachment(self, ref: str):
138
+ """Read the bytes of one current-event attachment by ref."""
139
+ from langbot_plugin.api.entities.builtin.runner.input import (
140
+ InputAttachmentData,
141
+ )
142
+
143
+ result = await self.plugin_runtime_handler.call_action(
144
+ PluginToRuntimeAction.READ_INPUT_ATTACHMENT,
145
+ {"ref": ref},
146
+ 180,
147
+ )
148
+ return InputAttachmentData(
149
+ ref=str(result.get("ref") or ref),
150
+ name=result.get("name"),
151
+ mime_type=result.get("mime_type"),
152
+ data=base64.b64decode(result["content"], validate=True),
153
+ )
154
+
117
155
  @run_scoped
118
156
  async def export_box_files(self, paths: list[str] | None = None):
119
157
  from langbot_plugin.api.entities.builtin.runner.box import BoxFile
@@ -163,6 +201,8 @@ class LangBotAPIProxy:
163
201
  target_type: str,
164
202
  target_id: str,
165
203
  message_chain: platform_message.MessageChain,
204
+ *,
205
+ timeout: float | None = None,
166
206
  ) -> Any:
167
207
  """Send a message to a bot
168
208
 
@@ -171,7 +211,12 @@ class LangBotAPIProxy:
171
211
  target_type: The type of the target, can be "group", "person"
172
212
  target_id: The ID of the target
173
213
  message_chain: The message chain to send
214
+ timeout: Seconds to wait for the host to finish sending. Defaults to
215
+ ``SEND_MESSAGE_DEFAULT_TIMEOUT`` (60s). Media messages may need
216
+ longer because the platform upload happens before sending. A
217
+ timeout does not cancel a send already in progress on the host.
174
218
  """
219
+ effective_timeout = resolve_send_message_timeout(timeout)
175
220
  return (
176
221
  await self.plugin_runtime_handler.call_action(
177
222
  PluginToRuntimeAction.SEND_MESSAGE,
@@ -181,8 +226,10 @@ class LangBotAPIProxy:
181
226
  "target_type": target_type,
182
227
  "target_id": target_id,
183
228
  "message_chain": message_chain.model_dump(),
229
+ "timeout": effective_timeout,
184
230
  }
185
231
  ),
232
+ timeout=effective_timeout,
186
233
  )
187
234
  ).get("result")
188
235
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ import base64
5
6
  from typing import Any
6
7
 
7
8
  from langbot_plugin.api.entities.builtin.runner.errors import (
@@ -14,6 +15,7 @@ from langbot_plugin.api.entities.builtin.runner.page_results import (
14
15
  HistoryPage,
15
16
  HistorySearchResult,
16
17
  )
18
+ from langbot_plugin.api.entities.builtin.runner.input import InputAttachmentData
17
19
  from langbot_plugin.api.entities.builtin.runner.steering import (
18
20
  SteeringPullResult,
19
21
  )
@@ -228,3 +230,48 @@ class RunnerContextAPIMixin:
228
230
  timeout,
229
231
  )
230
232
  return SteeringPullResult.model_validate(resp)
233
+
234
+ async def read_input_attachment(self, ref: str) -> InputAttachmentData:
235
+ """Read the bytes of one current-event attachment by its ref.
236
+
237
+ Args:
238
+ ref: ``InputAttachment.ref`` of an attachment in ``ctx.input``.
239
+
240
+ Returns:
241
+ InputAttachmentData with the bytes, file name and MIME type.
242
+
243
+ Raises:
244
+ PermissionDeniedError: If the Host does not offer this API.
245
+ AgentAPIException: If the ref is unknown, the media cannot be
246
+ resolved, or a size limit is exceeded.
247
+ """
248
+ self._require_context_api("input_attachments")
249
+ timeout = self._bounded_timeout(default=120.0)
250
+ resp = await self._api.plugin_runtime_handler.call_action(
251
+ PluginToRuntimeAction.READ_INPUT_ATTACHMENT,
252
+ {"run_id": self.run_id, "ref": ref},
253
+ timeout,
254
+ )
255
+ content = self._expect_key(
256
+ resp, "content", PluginToRuntimeAction.READ_INPUT_ATTACHMENT
257
+ )
258
+ try:
259
+ data = base64.b64decode(content, validate=True)
260
+ except (TypeError, ValueError) as exc:
261
+ raise AgentAPIException(
262
+ AgentAPIError(
263
+ code="host.malformed_response",
264
+ message=f"{PluginToRuntimeAction.READ_INPUT_ATTACHMENT.value} response content is not base64",
265
+ retryable=False,
266
+ details={
267
+ "action": PluginToRuntimeAction.READ_INPUT_ATTACHMENT.value,
268
+ "field": "content",
269
+ },
270
+ )
271
+ ) from exc
272
+ return InputAttachmentData(
273
+ ref=str(resp.get("ref") or ref),
274
+ name=resp.get("name"),
275
+ mime_type=resp.get("mime_type"),
276
+ data=data,
277
+ )
@@ -1290,6 +1290,14 @@ class SkillGithubDomain:
1290
1290
  arguments: SkillGithubPreviewArguments = {'data': data}
1291
1291
  return cast(OperationResult[builtins.list[dict[str, JSONValue]]], await self._workspace.call('skill.github.preview', **arguments))
1292
1292
 
1293
+ class WorkspaceLanguageDomain:
1294
+ def __init__(self, workspace: "WorkspaceOperationsProxy"):
1295
+ self._workspace = workspace
1296
+
1297
+ async def get(self) -> OperationResult[dict[str, JSONValue]]:
1298
+ "workspace.language.get: Return the Workspace message language (language, for example en_US or zh_Hans) and the supported_languages list. It is independent of any member's personal WebUI language. Use it to localize replies, notices or generated content for this Workspace."
1299
+ return cast(OperationResult[dict[str, JSONValue]], await self._workspace.call('workspace.language.get'))
1300
+
1293
1301
  class AdapterDomain:
1294
1302
  def __init__(self, workspace: "WorkspaceOperationsProxy"):
1295
1303
  self._workspace = workspace
@@ -1658,6 +1666,11 @@ class ToolDomain:
1658
1666
  arguments: ToolListArguments = {'pipeline_uuid': pipeline_uuid}
1659
1667
  return cast(OperationResult[builtins.list[dict[str, JSONValue]]], await self._workspace.call('tool.list', **arguments))
1660
1668
 
1669
+ class WorkspaceDomain:
1670
+ def __init__(self, workspace: "WorkspaceOperationsProxy"):
1671
+ self._workspace = workspace
1672
+ self.language = WorkspaceLanguageDomain(workspace)
1673
+
1661
1674
  class WorkspaceDomains:
1662
1675
  def __init__(self, workspace: "WorkspaceOperationsProxy"):
1663
1676
  self._workspace = workspace
@@ -1677,3 +1690,4 @@ class WorkspaceDomains:
1677
1690
  self.stats = StatsDomain(workspace)
1678
1691
  self.task = TaskDomain(workspace)
1679
1692
  self.tool = ToolDomain(workspace)
1693
+ self.workspace = WorkspaceDomain(workspace)
@@ -40,6 +40,7 @@ class PluginToRuntimeAction(ActionType):
40
40
  ACQUIRE_BOX = "acquire_box"
41
41
  BIND_BOX = "bind_box"
42
42
  IMPORT_BOX_ATTACHMENTS = "import_box_attachments"
43
+ READ_INPUT_ATTACHMENT = "read_input_attachment"
43
44
  EXPORT_BOX_FILES = "export_box_files"
44
45
 
45
46
  GET_BOTS = "get_bots"
@@ -17,8 +17,10 @@ from langbot_plugin.entities.io.actions.enums import (
17
17
  )
18
18
  from langbot_plugin.runtime import context as context_module
19
19
  import asyncio
20
+ import math
20
21
 
21
22
  from langbot_plugin.runtime.plugin.logbuffer import PluginLogBuffer
23
+ from langbot_plugin.api.proxies.langbot_api import SEND_MESSAGE_DEFAULT_TIMEOUT
22
24
  from langbot_plugin.entities.io.context import (
23
25
  ActionContext,
24
26
  ActionEnvelopeContext,
@@ -367,11 +369,22 @@ class PluginConnectionHandler(handler.Handler):
367
369
 
368
370
  @self.action(PluginToRuntimeAction.SEND_MESSAGE)
369
371
  async def send_message(data: dict[str, Any]) -> handler.ActionResponse:
372
+ # Older SDKs send no timeout; give them the same 60s budget instead
373
+ # of the generic 15s relay default.
374
+ timeout = data.pop("timeout", None)
375
+ if (
376
+ isinstance(timeout, bool)
377
+ or not isinstance(timeout, (int, float))
378
+ or not math.isfinite(timeout)
379
+ or timeout <= 0
380
+ ):
381
+ timeout = SEND_MESSAGE_DEFAULT_TIMEOUT
370
382
  result = await call_host_action(
371
383
  PluginToRuntimeAction.SEND_MESSAGE,
372
384
  {
373
385
  **data,
374
386
  },
387
+ timeout=float(timeout),
375
388
  )
376
389
  return handler.ActionResponse.success(result)
377
390
 
@@ -899,6 +912,16 @@ class PluginConnectionHandler(handler.Handler):
899
912
  LONG_RUNNING_OPERATION_TIMEOUT,
900
913
  )
901
914
 
915
+ @self.action(PluginToRuntimeAction.READ_INPUT_ATTACHMENT)
916
+ async def read_input_attachment(
917
+ data: dict[str, Any],
918
+ ) -> handler.ActionResponse:
919
+ return await forward_agent_action(
920
+ PluginToRuntimeAction.READ_INPUT_ATTACHMENT,
921
+ data,
922
+ LONG_RUNNING_OPERATION_TIMEOUT,
923
+ )
924
+
902
925
  @self.action(PluginToRuntimeAction.EXPORT_BOX_FILES)
903
926
  async def export_box_files(data: dict[str, Any]) -> handler.ActionResponse:
904
927
  return await forward_agent_action(
@@ -1005,6 +1005,9 @@ class PluginManager:
1005
1005
  args=args,
1006
1006
  env=child_env,
1007
1007
  working_dir=plugin_path,
1008
+ # Pipe stderr (the plugin's Python `logging` output) so the
1009
+ # handler's log buffer can serve the plugin logs page.
1010
+ capture_stderr=True,
1008
1011
  )
1009
1012
 
1010
1013
  async def new_plugin_connection_callback(connection: Connection):
@@ -240,6 +240,9 @@ class PluginWorkerLauncher:
240
240
  args=self.build_nsjail_args(launch_spec),
241
241
  env={},
242
242
  working_dir="/",
243
+ # A dedicated worker serves one installation and nsjail runs
244
+ # with --really_quiet, so stderr is that plugin's own logging.
245
+ capture_stderr=True,
243
246
  )
244
247
 
245
248
  # OSS development keeps the historical direct-process behavior and
@@ -294,6 +297,9 @@ class PluginWorkerLauncher:
294
297
  args=[*worker_args[:-1], "-s", worker_args[-1]],
295
298
  env=worker_environment,
296
299
  working_dir=str(launch_spec.artifact.code_path),
300
+ # Pipe stderr (the plugin's Python `logging` output) so the
301
+ # handler's log buffer can serve the plugin logs page.
302
+ capture_stderr=True,
297
303
  )
298
304
 
299
305
  async def prepare_dependency_environment(
@@ -0,0 +1 @@
1
+ __version__ = "0.7.23"
@@ -43,23 +43,65 @@ def test_message_string_content_converts_to_plain_message_chain_with_prefix():
43
43
  assert message.readable_str() == "user: hello"
44
44
 
45
45
 
46
- def test_message_list_content_converts_supported_elements_to_platform_chain():
47
- message = Message(
46
+ @pytest.mark.parametrize("message_type", [Message, MessageChunk])
47
+ def test_message_list_content_converts_supported_elements_to_platform_chain(
48
+ message_type,
49
+ ):
50
+ message = message_type(
48
51
  role="user",
49
52
  content=[
50
53
  ContentElement.from_image_url("https://example.com/a.png"),
51
54
  ContentElement.from_file_url("https://example.com/a.txt", "a.txt"),
52
55
  ContentElement.from_image_base64("YmFzZTY0"),
56
+ ContentElement.from_file_base64("aGVsbG8=", "report.txt"),
53
57
  ContentElement.from_text("hello"),
54
58
  ],
55
59
  )
56
60
 
57
61
  chain = message.get_content_platform_message_chain(prefix_text="[p] ")
58
62
 
59
- assert [type(component) for component in chain] == [Image, File, Image, Plain]
63
+ assert [type(component) for component in chain] == [Image, File, Image, File, Plain]
64
+ assert chain[3].base64 == "aGVsbG8="
65
+ assert chain[3].name == "report.txt"
60
66
  assert chain[-1].text == "[p] hello"
61
67
 
62
68
 
69
+ @pytest.mark.parametrize("message_type", [Message, MessageChunk])
70
+ @pytest.mark.parametrize("file_name", ["report.txt", None])
71
+ def test_serialized_base64_file_survives_platform_conversion(message_type, file_name):
72
+ message = message_type.model_validate(
73
+ {
74
+ "role": "assistant",
75
+ "content": [
76
+ {
77
+ "type": "file_base64",
78
+ "file_base64": "aGVsbG8=",
79
+ "file_name": file_name,
80
+ }
81
+ ],
82
+ }
83
+ )
84
+
85
+ chain = message.get_content_platform_message_chain(prefix_text="[p] ")
86
+
87
+ assert len(chain) == 2
88
+ assert isinstance(chain[0], Plain)
89
+ assert chain[0].text == "[p] "
90
+ assert isinstance(chain[1], File)
91
+ assert chain[1].base64 == "aGVsbG8="
92
+ assert chain[1].name == (file_name or "")
93
+
94
+
95
+ @pytest.mark.parametrize("message_type", [Message, MessageChunk])
96
+ def test_base64_file_without_payload_is_skipped(message_type):
97
+ message = message_type(
98
+ role="assistant",
99
+ content=[ContentElement(type="file_base64", file_name="a.txt")],
100
+ )
101
+
102
+ assert len(message.get_content_platform_message_chain()) == 0
103
+
104
+
63
105
  def test_message_prefix_is_inserted_when_no_text_component_exists():
64
106
  message = Message(
65
107
  role="user",