langbot-plugin 0.7.27__tar.gz → 0.7.28__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (453) hide show
  1. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/PKG-INFO +1 -1
  2. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/pyproject.toml +1 -1
  3. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/command/context.py +9 -0
  4. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/platform/message.py +3 -1
  5. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.yaml.example +2 -0
  6. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/client.py +10 -1
  7. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/runtime.py +59 -7
  8. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/server.py +41 -19
  9. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/run/handler.py +19 -3
  10. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/io/actions/enums.py +1 -0
  11. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/handlers/control.py +13 -0
  12. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/handlers/plugin.py +5 -2
  13. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/container.py +2 -0
  14. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/mgr.py +31 -8
  15. langbot_plugin-0.7.28/src/langbot_plugin/version.py +1 -0
  16. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/entities/builtin/test_command_context.py +48 -0
  17. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_backend_selection.py +1 -0
  18. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_runtime.py +32 -2
  19. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/io/handlers/test_plugin_handler.py +1 -1
  20. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_manager.py +30 -0
  21. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/test_message.py +14 -0
  22. langbot_plugin-0.7.27/src/langbot_plugin/version.py +0 -1
  23. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/.gitignore +0 -0
  24. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/.python-version +0 -0
  25. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/AGENTS.md +0 -0
  26. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/ARCHITECTURE.md +0 -0
  27. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/CLAUDE.md +0 -0
  28. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/CONTRIBUTING.md +0 -0
  29. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/LICENSE +0 -0
  30. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/README.md +0 -0
  31. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/README_CN.md +0 -0
  32. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/RELEASING.md +0 -0
  33. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/SOURCE.json +0 -0
  34. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/data/.env.example +0 -0
  35. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/docs/Message.md +0 -0
  36. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/docs/PluginPages.md +0 -0
  37. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/docs/agent-runner-interactions.md +0 -0
  38. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/docs/agent-runner-pluginization/PROTOCOL_V1.md +0 -0
  39. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/docs/agent-runner-pluginization/README.md +0 -0
  40. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/docs/agent-runner-pluginization/SDK_RUNTIME_PLAN.md +0 -0
  41. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/docs/box-instance-identity.md +0 -0
  42. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/docs/certified-plugins.md +0 -0
  43. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/docs/communication/apis/lb2rt.md +0 -0
  44. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/docs/communication/runtime_plugin.md +0 -0
  45. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/docs/dependency-management.md +0 -0
  46. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/docs/execution_api.md +0 -0
  47. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/docs/langbot-plugin-social.png +0 -0
  48. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/docs/runner.md +0 -0
  49. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/docs/stateless-components.md +0 -0
  50. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/examples/workspace_runner_plugin/README.md +0 -0
  51. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/examples/workspace_runner_plugin/components/runner/default.py +0 -0
  52. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/examples/workspace_runner_plugin/components/runner/default.yaml +0 -0
  53. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/examples/workspace_runner_plugin/main.py +0 -0
  54. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/examples/workspace_runner_plugin/manifest.yaml +0 -0
  55. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/local_e2e/acceptance.json +0 -0
  56. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/local_e2e/registration_fanin.py +0 -0
  57. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/local_e2e/run_acceptance.py +0 -0
  58. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/mypy.ini +0 -0
  59. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/scripts/check_action_consistency.py +0 -0
  60. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/scripts/runtime_resource_probe.py +0 -0
  61. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/__init__.py +0 -0
  62. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/__init__.py +0 -0
  63. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/__init__.py +0 -0
  64. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/asset_gateway.py +0 -0
  65. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/daemon.py +0 -0
  66. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/decorators.py +0 -0
  67. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/external_tools.py +0 -0
  68. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/mcp_access.py +0 -0
  69. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/mcp_bridge.py +0 -0
  70. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/mcp_config.py +0 -0
  71. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/mcp_protocol.py +0 -0
  72. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/agent_tools/mcp_stdio.py +0 -0
  73. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/__init__.py +0 -0
  74. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/abstract/__init__.py +0 -0
  75. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/abstract/platform/__init__.py +0 -0
  76. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/abstract/platform/adapter.py +0 -0
  77. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/abstract/platform/event_logger.py +0 -0
  78. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/__init__.py +0 -0
  79. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/base.py +0 -0
  80. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/command/__init__.py +0 -0
  81. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/command/command.py +0 -0
  82. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/common/__init__.py +0 -0
  83. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/common/event_listener.py +0 -0
  84. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/knowledge_engine/__init__.py +0 -0
  85. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/knowledge_engine/engine.py +0 -0
  86. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/manifest.py +0 -0
  87. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/page/__init__.py +0 -0
  88. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/parser/__init__.py +0 -0
  89. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/parser/parser.py +0 -0
  90. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/runner/__init__.py +0 -0
  91. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/runner/runner.py +0 -0
  92. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/tool/__init__.py +0 -0
  93. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/components/tool/tool.py +0 -0
  94. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/definition/plugin.py +0 -0
  95. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/__init__.py +0 -0
  96. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/__init__.py +0 -0
  97. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/command/__init__.py +0 -0
  98. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/command/errors.py +0 -0
  99. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/pipeline/__init__.py +0 -0
  100. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/pipeline/query.py +0 -0
  101. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/platform/__init__.py +0 -0
  102. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/platform/entities.py +0 -0
  103. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/platform/errors.py +0 -0
  104. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/platform/events.py +0 -0
  105. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/platform/logger.py +0 -0
  106. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/provider/__init__.py +0 -0
  107. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/provider/message.py +0 -0
  108. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/provider/prompt.py +0 -0
  109. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/provider/reasoning.py +0 -0
  110. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/provider/session.py +0 -0
  111. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/rag/__init__.py +0 -0
  112. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/rag/context.py +0 -0
  113. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/rag/enums.py +0 -0
  114. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/rag/errors.py +0 -0
  115. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/rag/models.py +0 -0
  116. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/resource/__init__.py +0 -0
  117. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/resource/tool.py +0 -0
  118. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/__init__.py +0 -0
  119. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/box.py +0 -0
  120. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/capabilities.py +0 -0
  121. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/compat.py +0 -0
  122. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/context.py +0 -0
  123. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/context_access.py +0 -0
  124. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/delivery.py +0 -0
  125. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/errors.py +0 -0
  126. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/event.py +0 -0
  127. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/input.py +0 -0
  128. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/interaction.py +0 -0
  129. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/manifest.py +0 -0
  130. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/page_results.py +0 -0
  131. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/permissions.py +0 -0
  132. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/resources.py +0 -0
  133. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/result.py +0 -0
  134. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/run_ledger.py +0 -0
  135. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/runtime.py +0 -0
  136. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/runtime_registry.py +0 -0
  137. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/state.py +0 -0
  138. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/stats.py +0 -0
  139. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/steering.py +0 -0
  140. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/transcript.py +0 -0
  141. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/builtin/runner/trigger.py +0 -0
  142. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/context.py +0 -0
  143. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/events.py +0 -0
  144. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/execution.py +0 -0
  145. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/entities/permissions.py +0 -0
  146. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/__init__.py +0 -0
  147. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/artifacts.py +0 -0
  148. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/base.py +0 -0
  149. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/event_context.py +0 -0
  150. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/execute_context.py +0 -0
  151. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/execution.py +0 -0
  152. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/invocation.py +0 -0
  153. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/langbot_api.py +0 -0
  154. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/query_based_api.py +0 -0
  155. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/__init__.py +0 -0
  156. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/admin.py +0 -0
  157. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/api.py +0 -0
  158. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/box.py +0 -0
  159. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/common.py +0 -0
  160. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/context.py +0 -0
  161. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/ledger.py +0 -0
  162. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/platform.py +0 -0
  163. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/reply_stream.py +0 -0
  164. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/resources.py +0 -0
  165. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/state.py +0 -0
  166. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/runner/tracing.py +0 -0
  167. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/workspace.py +0 -0
  168. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/api/proxies/workspace_domains.py +0 -0
  169. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/artifact.py +0 -0
  170. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/__init__.py +0 -0
  171. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/langbot-page-sdk.js +0 -0
  172. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/.env.example.example +0 -0
  173. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/.github/workflows/release.yml.example +0 -0
  174. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/.gitignore.example +0 -0
  175. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/.vscode/launch.json.example +0 -0
  176. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/README.md.example +0 -0
  177. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/__init__.py +0 -0
  178. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/assets/icon.svg.example +0 -0
  179. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/__init__.py +0 -0
  180. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/commands/__init__.py +0 -0
  181. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.py.example +0 -0
  182. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/event_listener/__init__.py +0 -0
  183. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/event_listener/default.py.example +0 -0
  184. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/event_listener/default.yaml.example +0 -0
  185. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/knowledge_engine/__init__.py +0 -0
  186. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.py.example +0 -0
  187. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.yaml.example +0 -0
  188. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/pages/{page_name}.html.example +0 -0
  189. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/pages/{page_name}.yaml.example +0 -0
  190. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/parser/__init__.py +0 -0
  191. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.py.example +0 -0
  192. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.yaml.example +0 -0
  193. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/runner/__init__.py +0 -0
  194. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.py.example +0 -0
  195. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.yaml.example +0 -0
  196. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/tools/__init__.py +0 -0
  197. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.py.example +0 -0
  198. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.yaml.example +0 -0
  199. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/main.py.example +0 -0
  200. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/manifest.yaml.example +0 -0
  201. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/readme/README_zh_Hans.md.example +0 -0
  202. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/assets/templates/requirements.txt.example +0 -0
  203. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/__init__.py +0 -0
  204. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/actions.py +0 -0
  205. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/artifact_cache.py +0 -0
  206. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/backend.py +0 -0
  207. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/e2b_backend.py +0 -0
  208. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/errors.py +0 -0
  209. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/file_io.py +0 -0
  210. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/host_backend.py +0 -0
  211. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/identity.py +0 -0
  212. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/models.py +0 -0
  213. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/nsjail_backend.py +0 -0
  214. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/security.py +0 -0
  215. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/tenancy.py +0 -0
  216. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/windows_export.py +0 -0
  217. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/windows_file_io.py +0 -0
  218. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/box/windows_job.py +0 -0
  219. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/certification.py +0 -0
  220. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/__init__.py +0 -0
  221. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/__main__.py +0 -0
  222. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/__init__.py +0 -0
  223. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/buildplugin.py +0 -0
  224. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/gencomponent.py +0 -0
  225. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/initplugin.py +0 -0
  226. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/login.py +0 -0
  227. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/logout.py +0 -0
  228. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/publish.py +0 -0
  229. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/commands/runplugin.py +0 -0
  230. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/gen/__init__.py +0 -0
  231. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/gen/renderer.py +0 -0
  232. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/i18n.py +0 -0
  233. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/__init__.py +0 -0
  234. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/en_US.py +0 -0
  235. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/es_ES.py +0 -0
  236. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/ja_JP.py +0 -0
  237. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/th_TH.py +0 -0
  238. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/vi_VN.py +0 -0
  239. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/zh_Hans.py +0 -0
  240. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/locales/zh_Hant.py +0 -0
  241. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/run/__init__.py +0 -0
  242. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/run/controller.py +0 -0
  243. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/run/hotreload.py +0 -0
  244. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/utils/__init__.py +0 -0
  245. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/utils/cloudsv.py +0 -0
  246. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/utils/form.py +0 -0
  247. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/cli/utils/page_components.py +0 -0
  248. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/__init__.py +0 -0
  249. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/io/__init__.py +0 -0
  250. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/io/actions/__init__.py +0 -0
  251. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/io/context.py +0 -0
  252. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/io/errors.py +0 -0
  253. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/io/req.py +0 -0
  254. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/io/resp.py +0 -0
  255. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/entities/marketplace.py +0 -0
  256. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/LICENSE +0 -0
  257. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/README.md +0 -0
  258. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/__init__.py +0 -0
  259. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/app.py +0 -0
  260. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/bounded_executor.py +0 -0
  261. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/context.py +0 -0
  262. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/event_loop_monitor.py +0 -0
  263. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/helper/__init__.py +0 -0
  264. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/helper/marketplace.py +0 -0
  265. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/helper/pkgmgr.py +0 -0
  266. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/__init__.py +0 -0
  267. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/connection.py +0 -0
  268. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/connections/__init__.py +0 -0
  269. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/connections/stdio.py +0 -0
  270. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/connections/ws.py +0 -0
  271. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controller.py +0 -0
  272. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controllers/__init__.py +0 -0
  273. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controllers/stdio/__init__.py +0 -0
  274. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controllers/stdio/client.py +0 -0
  275. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controllers/stdio/server.py +0 -0
  276. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controllers/ws/__init__.py +0 -0
  277. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controllers/ws/client.py +0 -0
  278. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/controllers/ws/server.py +0 -0
  279. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/handler.py +0 -0
  280. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/io/handlers/__init__.py +0 -0
  281. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/ops_metrics.py +0 -0
  282. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/__init__.py +0 -0
  283. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/artifact.py +0 -0
  284. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/dependency_environment.py +0 -0
  285. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/logbuffer.py +0 -0
  286. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/restart_coordinator.py +0 -0
  287. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/runner_service.py +0 -0
  288. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/worker_launcher.py +0 -0
  289. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/worker_observability.py +0 -0
  290. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/plugin/worker_watchdog.py +0 -0
  291. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/security.py +0 -0
  292. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/runtime/settings.py +0 -0
  293. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/skill_store.py +0 -0
  294. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/storage.py +0 -0
  295. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/__init__.py +0 -0
  296. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/deadline.py +0 -0
  297. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/discover/__init__.py +0 -0
  298. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/discover/engine.py +0 -0
  299. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/git_sync.py +0 -0
  300. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/importutil.py +0 -0
  301. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/log.py +0 -0
  302. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/packaging.py +0 -0
  303. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/page_components.py +0 -0
  304. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/platform.py +0 -0
  305. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/utils/version_compat.py +0 -0
  306. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/src/langbot_plugin/workspace.py +0 -0
  307. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/__init__.py +0 -0
  308. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/definition/components/test_components.py +0 -0
  309. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/definition/components/test_imports.py +0 -0
  310. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/definition/test_manifest.py +0 -0
  311. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/definition/test_manifest_component_path.py +0 -0
  312. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/definition/test_version_compat.py +0 -0
  313. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/entities/builtin/runner/test_context_result.py +0 -0
  314. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/entities/builtin/runner/test_history_event_entities.py +0 -0
  315. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/entities/builtin/runner/test_interaction.py +0 -0
  316. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/entities/builtin/runner/test_run_ledger_entities.py +0 -0
  317. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/entities/builtin/test_platform_logger.py +0 -0
  318. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/entities/builtin/test_provider_message.py +0 -0
  319. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/entities/builtin/test_rag_models.py +0 -0
  320. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/entities/test_context.py +0 -0
  321. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/entities/test_events.py +0 -0
  322. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/proxies/__init__.py +0 -0
  323. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/proxies/test_agent_run_api_proxy.py +0 -0
  324. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/proxies/test_artifacts_api.py +0 -0
  325. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/proxies/test_base.py +0 -0
  326. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/proxies/test_box_api.py +0 -0
  327. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/proxies/test_history_event_api_proxy.py +0 -0
  328. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/proxies/test_input_attachment_api.py +0 -0
  329. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/proxies/test_langbot_api.py +0 -0
  330. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/proxies/test_llm_stream_ownership.py +0 -0
  331. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/proxies/test_query_based_api.py +0 -0
  332. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/proxies/test_reasoning_parameter.py +0 -0
  333. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/proxies/test_runner_tool_content_trace.py +0 -0
  334. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/test_agent_tools_mcp_bridge.py +0 -0
  335. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/test_execution_api_consistency.py +0 -0
  336. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/test_runner_handlers.py +0 -0
  337. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/test_runner_handlers_matrix.py +0 -0
  338. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/test_runner_public_apis.py +0 -0
  339. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/test_workspace_domains.py +0 -0
  340. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/api/test_workspace_operations.py +0 -0
  341. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/__init__.py +0 -0
  342. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/conftest.py +0 -0
  343. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_admission.py +0 -0
  344. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_artifact_cache.py +0 -0
  345. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_artifact_cache_root.py +0 -0
  346. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_backend.py +0 -0
  347. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_client.py +0 -0
  348. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_directory_archive.py +0 -0
  349. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_e2b_backend.py +0 -0
  350. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_file_chunk_negotiation.py +0 -0
  351. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_file_transfer.py +0 -0
  352. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_host_backend.py +0 -0
  353. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_identity.py +0 -0
  354. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_network_workspace.py +0 -0
  355. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_nsjail_backend.py +0 -0
  356. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_nsjail_v1_live.py +0 -0
  357. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_server.py +0 -0
  358. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_skill_store.py +0 -0
  359. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_storage_analysis.py +0 -0
  360. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_windows_host_backend.py +0 -0
  361. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_windows_workspace_operations.py +0 -0
  362. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_workspace_cleanup.py +0 -0
  363. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/box/test_workspace_cleanup_backend.py +0 -0
  364. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/cli/run/test_controller.py +0 -0
  365. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/cli/run/test_hotreload.py +0 -0
  366. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/cli/run/test_runtime_handler.py +0 -0
  367. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/cli/test_buildplugin.py +0 -0
  368. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/cli/test_cli_main.py +0 -0
  369. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/cli/test_examples.py +0 -0
  370. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/cli/test_gencomponent.py +0 -0
  371. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/cli/test_i18n_form.py +0 -0
  372. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/cli/test_initplugin.py +0 -0
  373. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/cli/test_login.py +0 -0
  374. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/cli/test_logout_publish.py +0 -0
  375. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/cli/test_page_components.py +0 -0
  376. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/cli/test_renderer.py +0 -0
  377. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/cli/test_runner_usages.py +0 -0
  378. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/cli/test_runplugin.py +0 -0
  379. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/data/execution_api_catalog.json +0 -0
  380. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/e2e/Dockerfile.box-socket +0 -0
  381. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/e2e/Dockerfile.box-socket.dockerignore +0 -0
  382. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/e2e/standalone_runtime_eba_probe.py +0 -0
  383. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/e2e/test_box_file_transfer_live.py +0 -0
  384. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/e2e/test_box_instance_cleanup_docker.py +0 -0
  385. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/e2e/test_box_socket_mounts.py +0 -0
  386. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/e2e/test_nsjail_large_commands.py +0 -0
  387. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/e2e/test_run_mount_isolation.py +0 -0
  388. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/entities/io/test_dependency_errors.py +0 -0
  389. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/entities/io/test_protocol.py +0 -0
  390. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/fixtures/eba_event_probe_plugin/.gitignore +0 -0
  391. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/fixtures/eba_event_probe_plugin/assets/icon.svg +0 -0
  392. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.py +0 -0
  393. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.yaml +0 -0
  394. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/fixtures/eba_event_probe_plugin/main.py +0 -0
  395. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/fixtures/eba_event_probe_plugin/manifest.yaml +0 -0
  396. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/helpers/__init__.py +0 -0
  397. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/helpers/protocol.py +0 -0
  398. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/packaging/test_installed_cli_blackbox.py +0 -0
  399. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/packaging/test_release_metadata.py +0 -0
  400. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/helper/test_marketplace.py +0 -0
  401. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/helper/test_pkgmgr.py +0 -0
  402. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/io/handlers/test_control_handler.py +0 -0
  403. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/io/handlers/test_import_contracts.py +0 -0
  404. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/io/handlers/test_legacy_file_chunk.py +0 -0
  405. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/io/test_action_consistency.py +0 -0
  406. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/io/test_audit_correlation.py +0 -0
  407. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/io/test_connections.py +0 -0
  408. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/io/test_controllers.py +0 -0
  409. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/io/test_handler.py +0 -0
  410. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/io/test_heartbeat_admission.py +0 -0
  411. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/io/test_payload_limits.py +0 -0
  412. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/io/test_stdio_encoding.py +0 -0
  413. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/io/test_stdio_server.py +0 -0
  414. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/io/test_stream_flow_control.py +0 -0
  415. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_artifact_store.py +0 -0
  416. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_container.py +0 -0
  417. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_dependency_environment.py +0 -0
  418. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_event_dispatch_real_worker.py +0 -0
  419. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_exact_dify_real_worker.py +0 -0
  420. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_exact_legacy_sdk_compat.py +0 -0
  421. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_installation_manager.py +0 -0
  422. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_legacy_shadow.py +0 -0
  423. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_mgr_runner.py +0 -0
  424. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_mode_resource_limits.py +0 -0
  425. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_plugin_logs_real_worker.py +0 -0
  426. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_restart_coordinator.py +0 -0
  427. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_shared_worker_subprocess.py +0 -0
  428. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_worker_launcher.py +0 -0
  429. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_worker_plugin_identity.py +0 -0
  430. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/plugin/test_workload_isolation.py +0 -0
  431. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/test_app.py +0 -0
  432. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/test_bounded_executor.py +0 -0
  433. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/test_event_loop_monitor.py +0 -0
  434. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/test_ops_metrics.py +0 -0
  435. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/test_pull_api_handlers.py +0 -0
  436. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/runtime/test_security.py +0 -0
  437. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/test_artifact_materialization.py +0 -0
  438. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/test_certification.py +0 -0
  439. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/test_log.py +0 -0
  440. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/test_plugin_logbuffer.py +0 -0
  441. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/test_skill_publication_resources.py +0 -0
  442. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/test_skill_store.py +0 -0
  443. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/test_skill_zip_import.py +0 -0
  444. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/test_storage.py +0 -0
  445. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/test_worker_observability.py +0 -0
  446. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/test_worker_watchdog.py +0 -0
  447. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/utils/test_cli_run_handler_packaging.py +0 -0
  448. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/utils/test_deadline.py +0 -0
  449. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/utils/test_discovery.py +0 -0
  450. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/utils/test_git_sync.py +0 -0
  451. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/utils/test_importutil.py +0 -0
  452. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/utils/test_packaging_utils.py +0 -0
  453. {langbot_plugin-0.7.27 → langbot_plugin-0.7.28}/tests/utils/test_platform.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: langbot-plugin
3
- Version: 0.7.27
3
+ Version: 0.7.28
4
4
  Summary: This package contains the SDK, CLI for building plugins for LangBot, plus the runtime for hosting LangBot plugins
5
5
  Project-URL: Homepage, https://langbot.app
6
6
  Project-URL: Repository, https://github.com/langbot-app/LangBot/tree/master/sdk
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "langbot-plugin"
3
- version = "0.7.27"
3
+ version = "0.7.28"
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 = [
@@ -113,6 +113,15 @@ class ExecuteContext(WorkspaceExecutionScope):
113
113
  privilege: int
114
114
  """发起人权限"""
115
115
 
116
+ config: dict[str, Any] = pydantic.Field(default_factory=dict)
117
+ """Command configuration from the Host.
118
+
119
+ Values follow the ``spec.config`` form schema declared in the Command
120
+ component manifest, filled from the bound command processor instance.
121
+ Empty when the command declares no configuration or the Host predates
122
+ command configuration support.
123
+ """
124
+
116
125
  @pydantic.model_validator(mode="after")
117
126
  def align_session_execution_scope(self) -> ExecuteContext:
118
127
  self.inherit_execution_scope(self.session)
@@ -225,7 +225,9 @@ class MessageChain(pydantic.RootModel[list[pydantic.SerializeAsAny[MessageCompon
225
225
  )
226
226
 
227
227
  # Special processing of the time field of the Source class
228
- if component_type == "Source" and "time" in item:
228
+ if component_type == "Source" and isinstance(
229
+ item.get("time"), (int, float)
230
+ ):
229
231
  item["time"] = datetime.fromtimestamp(item["time"])
230
232
  components.append(component_class.model_validate(item))
231
233
  else:
@@ -15,6 +15,8 @@ metadata:
15
15
  vi_VN: '{{ cmd_description }}'
16
16
  es_ES: '{{ cmd_description }}'
17
17
  spec:
18
+ # Configuration form for each command processor instance; read via ctx.config.
19
+ config: []
18
20
  execution:
19
21
  python:
20
22
  path: {{ cmd_name }}.py
@@ -7,6 +7,7 @@ import asyncio
7
7
  import hashlib
8
8
  import uuid
9
9
  import logging
10
+ import time
10
11
  from typing import Any
11
12
 
12
13
  from langbot_plugin.runtime.io.handler import Handler
@@ -237,7 +238,8 @@ class ActionRPCBoxClient(BoxRuntimeClient):
237
238
  if key not in {"artifact_mounts", "local_mounts"} or value
238
239
  }
239
240
  try:
240
- return await self.handler.call_action(
241
+ rpc_started = time.perf_counter()
242
+ result = await self.handler.call_action(
241
243
  action,
242
244
  data,
243
245
  timeout=timeout,
@@ -250,6 +252,13 @@ class ActionRPCBoxClient(BoxRuntimeClient):
250
252
  LangBotToBoxAction.PREPARE_ARTIFACT,
251
253
  },
252
254
  )
255
+ if action == LangBotToBoxAction.EXEC:
256
+ self._logger.info(
257
+ "box_rpc_timing action=EXEC "
258
+ f"session_id={data.get('session_id', '')} "
259
+ f"rpc_ms={(time.perf_counter() - rpc_started) * 1000:.3f}"
260
+ )
261
+ return result
253
262
  except BoxRuntimeUnavailableError:
254
263
  raise
255
264
  except Exception as exc:
@@ -84,6 +84,8 @@ _MANAGED_PROCESS_STDERR_LOG_CHUNKS_PER_WINDOW = 4
84
84
  _MANAGED_PROCESS_STDERR_LOG_WINDOW_SEC = 1.0
85
85
  _MANAGED_PROCESS_STDERR_LOG_EXCERPT_CHARS = 512
86
86
  _REAPER_INTERVAL_SEC = 30
87
+ # shortcut: a 5-second freshness window can surface one stale exec failure, lower only with an explicit backend health protocol.
88
+ _SESSION_LIVENESS_RECHECK_SEC = 5.0
87
89
  _UNSAFE_SOFT_STORAGE_LIMITS_ENV = "LANGBOT_BOX_ALLOW_UNSAFE_SOFT_STORAGE_LIMITS"
88
90
  MAX_RUNTIME_SESSIONS = 5_000
89
91
  MAX_RUNTIME_MANAGED_PROCESSES = 1_024
@@ -154,6 +156,7 @@ class _RuntimeSession:
154
156
  # Signature of the extra bind mounts the container was created with. Used
155
157
  # to detect when a reused session would be missing newly-requested mounts.
156
158
  extra_mounts_key: frozenset[tuple[str, str, str, str, str]] = frozenset()
159
+ liveness_checked_at: float | None = None
157
160
  closing: bool = False
158
161
  idle_ttl_sec: int | None = None
159
162
  owned_workspace: tuple[str, int, int] | None = None
@@ -1700,19 +1703,26 @@ done
1700
1703
  artifact_digests: list[str],
1701
1704
  artifact_owner: str | None,
1702
1705
  ) -> BoxExecutionResult:
1706
+ execute_started = time.perf_counter()
1703
1707
  session = await self._get_or_create_session(
1704
1708
  spec,
1705
1709
  track_active_exec=True,
1706
1710
  action_context=action_context,
1707
1711
  )
1712
+ session_acquire_ms = (time.perf_counter() - execute_started) * 1000
1708
1713
  if self.network_workspace:
1709
1714
  spec = spec.model_copy(update={"host_path": session.info.host_path})
1710
1715
 
1711
1716
  result: BoxExecutionResult | None = None
1712
1717
  cleanup_task: asyncio.Task[None] | None = None
1713
1718
  execution_cancelled = False
1719
+ runtime_started = time.perf_counter()
1720
+ lock_wait_started = runtime_started
1721
+ lock_wait_ms = 0.0
1722
+ backend_exec_ms = 0.0
1714
1723
  try:
1715
1724
  async with session.lock:
1725
+ lock_wait_ms = (time.perf_counter() - lock_wait_started) * 1000
1716
1726
  if session.closing:
1717
1727
  raise BoxSessionNotFoundError(
1718
1728
  f"session {spec.session_id} is being deleted"
@@ -1736,7 +1746,9 @@ done
1736
1746
  await self._enforce_network_workspace_quota(
1737
1747
  session, spec, "before execution"
1738
1748
  )
1749
+ backend_started = time.perf_counter()
1739
1750
  result = await session.backend.exec(session.info, spec)
1751
+ backend_exec_ms = (time.perf_counter() - backend_started) * 1000
1740
1752
  try:
1741
1753
  await self._enforce_network_workspace_quota(
1742
1754
  session, spec, "after execution"
@@ -1748,9 +1760,26 @@ done
1748
1760
  execution_cancelled = True
1749
1761
  session.closing = True
1750
1762
  raise
1763
+ except Exception:
1764
+ session.liveness_checked_at = None
1765
+ raise
1766
+ if (
1767
+ result.status == BoxExecutionStatus.COMPLETED
1768
+ and result.exit_code == 0
1769
+ ):
1770
+ session.liveness_checked_at = time.monotonic()
1771
+ else:
1772
+ session.liveness_checked_at = None
1751
1773
  if result.status == BoxExecutionStatus.TIMED_OUT:
1752
1774
  # Fence queued callers before releasing the execution lock.
1753
1775
  session.closing = True
1776
+ self.logger.info(
1777
+ "box_execute_timing "
1778
+ f"session_id={spec.session_id} lock_wait_ms={lock_wait_ms:.3f} "
1779
+ f"session_acquire_ms={session_acquire_ms:.3f} "
1780
+ f"backend_exec_ms={backend_exec_ms:.3f} "
1781
+ f"runtime_ms={(time.perf_counter() - runtime_started) * 1000:.3f}"
1782
+ )
1754
1783
  return result
1755
1784
  finally:
1756
1785
  async with self._lock:
@@ -2852,20 +2881,42 @@ done
2852
2881
  continue
2853
2882
 
2854
2883
  if existing is not None:
2884
+ probe_due = (
2885
+ existing.liveness_checked_at is None
2886
+ or time.monotonic() - existing.liveness_checked_at
2887
+ >= _SESSION_LIVENESS_RECHECK_SEC
2888
+ )
2889
+ probe_started = time.perf_counter()
2855
2890
  try:
2856
- try:
2857
- alive = await backend.is_session_alive(existing.info)
2858
- except Exception as exc:
2859
- alive = False
2860
- self.logger.warning(
2861
- "LangBot Box session liveness probe failed: "
2862
- f"session_id={spec.session_id} error={exc}"
2891
+ if probe_due:
2892
+ try:
2893
+ alive = await backend.is_session_alive(existing.info)
2894
+ except Exception as exc:
2895
+ alive = False
2896
+ self.logger.warning(
2897
+ "LangBot Box session liveness probe failed: "
2898
+ f"session_id={spec.session_id} error={exc}"
2899
+ )
2900
+ existing.liveness_checked_at = (
2901
+ time.monotonic() if alive else None
2863
2902
  )
2903
+ else:
2904
+ alive = True
2864
2905
  finally:
2906
+ probe_ms = (
2907
+ (time.perf_counter() - probe_started) * 1000
2908
+ if probe_due
2909
+ else 0.0
2910
+ )
2865
2911
  async with self._lock:
2866
2912
  self._session_leases[spec.session_id] -= 1
2867
2913
  if self._session_leases[spec.session_id] <= 0:
2868
2914
  self._session_leases.pop(spec.session_id, None)
2915
+ self.logger.info(
2916
+ "box_session_probe_timing "
2917
+ f"session_id={spec.session_id} probe_ms={probe_ms:.3f} "
2918
+ f"alive={alive} cached={not probe_due}"
2919
+ )
2869
2920
 
2870
2921
  async with self._lock:
2871
2922
  current = self._sessions.get(spec.session_id)
@@ -2962,6 +3013,7 @@ done
2962
3013
  lock=asyncio.Lock(),
2963
3014
  workspace_key=workspace_key,
2964
3015
  extra_mounts_key=new_extra_mounts_key,
3016
+ liveness_checked_at=time.monotonic(),
2965
3017
  idle_ttl_sec=spec.idle_ttl_sec,
2966
3018
  owned_workspace=owned_workspace,
2967
3019
  )
@@ -29,6 +29,7 @@ import hashlib
29
29
  import logging
30
30
  import os
31
31
  import sys
32
+ import time
32
33
  from typing import Any
33
34
 
34
35
  import pydantic
@@ -602,30 +603,51 @@ class BoxServerHandler(Handler):
602
603
 
603
604
  @self.action(LangBotToBoxAction.EXEC)
604
605
  async def exec_cmd(data: dict[str, Any]) -> ActionResponse:
606
+ started = time.perf_counter()
607
+ validate_ms = 0.0
608
+ runtime_ms = 0.0
609
+ response_started: float | None = None
605
610
  try:
606
- context = self._action_context()
607
- spec = BoxSpec.model_validate(data)
608
- if self._runtime.admission_required:
609
- result = await self._runtime.execute(spec, action_context=context)
610
- else:
611
- spec = spec.model_copy(
612
- update={"session_id": self._session_id(spec.session_id)}
613
- )
611
+ try:
612
+ context = self._action_context()
613
+ spec = BoxSpec.model_validate(data)
614
+ if not self._runtime.admission_required:
615
+ spec = spec.model_copy(
616
+ update={"session_id": self._session_id(spec.session_id)}
617
+ )
618
+ validate_ms = (time.perf_counter() - started) * 1000
619
+ runtime_started = time.perf_counter()
614
620
  result = await self._runtime.execute(
615
621
  spec,
616
622
  action_context=context,
617
623
  )
618
- except BoxArtifactNotPreparedError as exc:
619
- return ActionResponse.error(f"BoxArtifactNotPreparedError: {exc}")
620
- except (pydantic.ValidationError, ValueError) as exc:
621
- if data.get("e2b_config") is not None:
622
- return ActionResponse.error(
623
- "BoxValidationError: Invalid E2B connection configuration"
624
- )
625
- return ActionResponse.error(f"BoxValidationError: {exc}")
626
- return ActionResponse.success(
627
- self._logical_session_data(_result_to_dict(result))
628
- )
624
+ runtime_ms = (time.perf_counter() - runtime_started) * 1000
625
+ except BoxArtifactNotPreparedError as exc:
626
+ return ActionResponse.error(f"BoxArtifactNotPreparedError: {exc}")
627
+ except (pydantic.ValidationError, ValueError) as exc:
628
+ if data.get("e2b_config") is not None:
629
+ return ActionResponse.error(
630
+ "BoxValidationError: Invalid E2B connection configuration"
631
+ )
632
+ return ActionResponse.error(f"BoxValidationError: {exc}")
633
+ response_started = time.perf_counter()
634
+ return ActionResponse.success(
635
+ self._logical_session_data(_result_to_dict(result))
636
+ )
637
+ finally:
638
+ response_ms = (
639
+ (time.perf_counter() - response_started) * 1000
640
+ if response_started is not None
641
+ else 0.0
642
+ )
643
+ logger.info(
644
+ "box_action_timing action=EXEC validate_ms=%.3f "
645
+ "runtime_ms=%.3f response_ms=%.3f handler_ms=%.3f",
646
+ validate_ms,
647
+ runtime_ms,
648
+ response_ms,
649
+ (time.perf_counter() - started) * 1000,
650
+ )
629
651
 
630
652
  @self.action(LangBotToBoxAction.UPLOAD_FILE)
631
653
  async def upload_file(data: dict[str, Any]) -> ActionResponse:
@@ -241,11 +241,23 @@ class PluginRuntimeHandler(Handler):
241
241
  self._slot_containers.pop(binding.installation_uuid, None)
242
242
  return ActionResponse.success({})
243
243
 
244
+ def describe_container(container, request):
245
+ payload = container.model_dump()
246
+ if request.get("include_registered_events") is True:
247
+ payload["registered_events"] = sorted(
248
+ {
249
+ event.__name__
250
+ for component in container.components
251
+ if isinstance(component.component_instance, EventListener)
252
+ for event in component.component_instance.registered_handlers
253
+ }
254
+ )
255
+ return payload
256
+
244
257
  @self.action(RuntimeToPluginAction.GET_PLUGIN_SLOT_CONTAINER)
245
258
  async def get_plugin_slot_container(
246
259
  data: dict[str, typing.Any],
247
260
  ) -> ActionResponse:
248
- del data
249
261
  binding = self.current_action_context
250
262
  if not isinstance(binding, InstallationBinding):
251
263
  raise ValueError("Shared slot lookup requires InstallationBinding")
@@ -257,7 +269,9 @@ class PluginRuntimeHandler(Handler):
257
269
  "enabled": container.enabled,
258
270
  "priority": container.priority,
259
271
  "plugin_config": thaw_config(container.plugin_config),
260
- "plugin_container": container.plugin_container.model_dump(),
272
+ "plugin_container": describe_container(
273
+ container.plugin_container, data
274
+ ),
261
275
  }
262
276
  )
263
277
 
@@ -267,7 +281,9 @@ class PluginRuntimeHandler(Handler):
267
281
 
268
282
  @self.action(RuntimeToPluginAction.GET_PLUGIN_CONTAINER)
269
283
  async def get_plugin_container(data: dict[str, typing.Any]) -> ActionResponse:
270
- return ActionResponse.success(self.plugin_container.model_dump())
284
+ return ActionResponse.success(
285
+ describe_container(self.plugin_container, data)
286
+ )
271
287
 
272
288
  @self.action(RuntimeToPluginAction.GET_PLUGIN_ICON)
273
289
  async def get_plugin_icon(data: dict[str, typing.Any]) -> ActionResponse:
@@ -185,6 +185,7 @@ class RuntimeToPluginAction(ActionType):
185
185
 
186
186
 
187
187
  class LangBotToRuntimeAction(ActionType):
188
+ LIST_PLUGIN_REGISTRATIONS = "list_plugin_registrations"
188
189
  """The action from langbot to runtime."""
189
190
 
190
191
  LIST_PLUGINS = "list_plugins"
@@ -58,6 +58,7 @@ TENANT_SCOPED_CONTROL_ACTIONS = frozenset(
58
58
  LangBotToRuntimeAction.LIST_TOOLS.value,
59
59
  LangBotToRuntimeAction.CALL_TOOL.value,
60
60
  LangBotToRuntimeAction.LIST_COMMANDS.value,
61
+ LangBotToRuntimeAction.LIST_PLUGIN_REGISTRATIONS.value,
61
62
  LangBotToRuntimeAction.EXECUTE_COMMAND.value,
62
63
  LangBotToRuntimeAction.RETRIEVE_KNOWLEDGE.value,
63
64
  LangBotToRuntimeAction.LIST_KNOWLEDGE_ENGINES.value,
@@ -519,6 +520,18 @@ class ControlConnectionHandler(handler.Handler):
519
520
  }
520
521
  )
521
522
 
523
+ @self.action(LangBotToRuntimeAction.LIST_PLUGIN_REGISTRATIONS)
524
+ async def list_plugin_registrations(
525
+ data: dict[str, Any],
526
+ ) -> handler.ActionResponse:
527
+ return handler.ActionResponse.success(
528
+ {
529
+ "plugins": self.context.plugin_mgr.plugin_registrations(
530
+ data.get("include_plugins")
531
+ )
532
+ }
533
+ )
534
+
522
535
  @self.action(LangBotToRuntimeAction.LIST_COMMANDS)
523
536
  async def list_commands(data: dict[str, Any]) -> handler.ActionResponse:
524
537
  include_plugins = data.get("include_plugins")
@@ -1304,12 +1304,15 @@ class PluginConnectionHandler(handler.Handler):
1304
1304
  ) -> dict[str, Any]:
1305
1305
  return await self.call_action(
1306
1306
  RuntimeToPluginAction.GET_PLUGIN_SLOT_CONTAINER,
1307
- {},
1307
+ {"include_registered_events": True},
1308
1308
  action_context=binding,
1309
1309
  )
1310
1310
 
1311
1311
  async def get_plugin_container(self) -> dict[str, Any]:
1312
- resp = await self.call_action(RuntimeToPluginAction.GET_PLUGIN_CONTAINER, {})
1312
+ resp = await self.call_action(
1313
+ RuntimeToPluginAction.GET_PLUGIN_CONTAINER,
1314
+ {"include_registered_events": True},
1315
+ )
1313
1316
 
1314
1317
  return resp
1315
1318
 
@@ -57,6 +57,7 @@ class PluginContainer(pydantic.BaseModel):
57
57
  """插件容器状态"""
58
58
 
59
59
  components: list[ComponentContainer]
60
+ registered_events: list[str] | None = None
60
61
  """组件容器列表"""
61
62
 
62
63
  _runtime_plugin_handler: typing.Any = pydantic.PrivateAttr(default=None)
@@ -82,6 +83,7 @@ class PluginContainer(pydantic.BaseModel):
82
83
  def from_dict(cls, data: dict[str, typing.Any]) -> PluginContainer:
83
84
  return cls(
84
85
  debug=data["debug"],
86
+ registered_events=data.get("registered_events"),
85
87
  install_source=data.get("install_source", ""),
86
88
  install_info=data.get("install_info", {}),
87
89
  manifest=ComponentManifest.model_validate(data["manifest"]),
@@ -2935,6 +2935,7 @@ class PluginManager:
2935
2935
  "Plugin changed its manifest identity after registration"
2936
2936
  )
2937
2937
  plugin_container.components = refreshed.components
2938
+ plugin_container.registered_events = refreshed.registered_events
2938
2939
  plugin_container.manifest = refreshed.manifest
2939
2940
  plugin_container.status = refreshed.status
2940
2941
  if installation_runtime is not None:
@@ -3202,6 +3203,32 @@ class PluginManager:
3202
3203
  f"plugin process is none: {plugin_container.manifest.metadata.author}/{plugin_container.manifest.metadata.name}:{plugin_container.manifest.metadata.version}"
3203
3204
  )
3204
3205
 
3206
+ def _ordered_event_plugins(self, include_plugins):
3207
+ plugins = self._plugins_for_current_scope()
3208
+ if include_plugins is None:
3209
+ return plugins
3210
+ by_id = {
3211
+ f"{plugin.manifest.metadata.author}/{plugin.manifest.metadata.name}": plugin
3212
+ for plugin in plugins
3213
+ }
3214
+ return [by_id[name] for name in dict.fromkeys(include_plugins) if name in by_id]
3215
+
3216
+ def plugin_registrations(self, include_plugins):
3217
+ return {
3218
+ f"{plugin.manifest.metadata.author}/{plugin.manifest.metadata.name}": {
3219
+ "events": plugin.registered_events,
3220
+ "commands": [
3221
+ component.manifest.metadata.name
3222
+ for component in plugin.components
3223
+ if component.manifest.kind == Command.__kind__
3224
+ ],
3225
+ }
3226
+ for plugin in self._ordered_event_plugins(include_plugins)
3227
+ if plugin.enabled
3228
+ and plugin.status
3229
+ == runtime_plugin_container.RuntimeContainerStatus.INITIALIZED
3230
+ }
3231
+
3205
3232
  async def emit_event(
3206
3233
  self, event_context: EventContext, include_plugins: list[str] | None = None
3207
3234
  ) -> tuple[
@@ -3212,7 +3239,7 @@ class PluginManager:
3212
3239
  emitted_plugins: list[runtime_plugin_container.PluginContainer] = []
3213
3240
  response_sources: list[dict[str, typing.Any]] = []
3214
3241
 
3215
- for plugin in self._plugins_for_current_scope():
3242
+ for plugin in self._ordered_event_plugins(include_plugins):
3216
3243
  if (
3217
3244
  plugin.status
3218
3245
  != runtime_plugin_container.RuntimeContainerStatus.INITIALIZED
@@ -3225,13 +3252,9 @@ class PluginManager:
3225
3252
  if plugin._runtime_plugin_handler is None:
3226
3253
  continue
3227
3254
 
3228
- # Filter by include_plugins if specified (pipeline-specific filtering)
3229
- if include_plugins is not None:
3230
- plugin_id = (
3231
- f"{plugin.manifest.metadata.author}/{plugin.manifest.metadata.name}"
3232
- )
3233
- if plugin_id not in include_plugins:
3234
- continue
3255
+ registered = getattr(plugin, "registered_events", None)
3256
+ if registered is not None and event_context.event_name not in registered:
3257
+ continue
3235
3258
 
3236
3259
  if not any(
3237
3260
  component.manifest.kind == EventListener.__kind__
@@ -0,0 +1 @@
1
+ __version__ = "0.7.28"
@@ -113,3 +113,51 @@ def test_command_not_found_error_default_message_should_be_constructible():
113
113
  )
114
114
  def test_command_errors_prefix_user_visible_message(error, expected):
115
115
  assert str(error) == expected
116
+
117
+
118
+ def _context(**kwargs) -> ExecuteContext:
119
+ return ExecuteContext(
120
+ query_id=1,
121
+ session=_session(),
122
+ command_text="draw cat",
123
+ full_command_text="/draw cat",
124
+ command="draw",
125
+ crt_command="draw",
126
+ params=["cat"],
127
+ crt_params=["cat"],
128
+ privilege=1,
129
+ **kwargs,
130
+ )
131
+
132
+
133
+ def test_execute_context_config_defaults_to_empty_mapping():
134
+ context = _context()
135
+
136
+ assert context.config == {}
137
+ assert context.model_dump(mode="json")["config"] == {}
138
+
139
+
140
+ def test_execute_context_config_round_trips_over_the_wire():
141
+ context = _context(config={"style": "anime", "count": 2})
142
+
143
+ restored = ExecuteContext.model_validate(context.model_dump(mode="json"))
144
+
145
+ assert restored.config == {"style": "anime", "count": 2}
146
+
147
+
148
+ def test_execute_context_accepts_payloads_from_hosts_without_config():
149
+ payload = _context().model_dump(mode="json")
150
+ payload.pop("config")
151
+
152
+ assert ExecuteContext.model_validate(payload).config == {}
153
+
154
+
155
+ def test_command_plugin_config_remains_independent_of_instance_config():
156
+ from types import SimpleNamespace
157
+ from langbot_plugin.api.definition.components.command.command import Command
158
+
159
+ component = Command()
160
+ component.plugin = SimpleNamespace(get_config=lambda: {"style": "plugin"})
161
+ context = _context(config={"style": "instance"})
162
+ assert component.get_plugin_config() == {"style": "plugin"}
163
+ assert context.config == {"style": "instance"}
@@ -295,6 +295,7 @@ async def test_create_session_recreates_disappeared_backend_session(logger):
295
295
  with mock.patch("os.getenv", return_value=None):
296
296
  first = await runtime.create_session(spec)
297
297
  backend._alive = False
298
+ runtime._sessions[spec.session_id].liveness_checked_at -= 6
298
299
  second = await runtime.create_session(spec)
299
300
 
300
301
  assert first["backend_session_id"] == "docker-1"
@@ -586,7 +586,7 @@ async def test_create_session_creates_new(logger):
586
586
 
587
587
  @pytest.mark.anyio
588
588
  async def test_create_session_reuses_existing(logger):
589
- """Same session_id + compatible spec reuses the live session."""
589
+ """Same session_id + compatible spec reuses a fresh session."""
590
590
  backend = FakeBackend(logger)
591
591
  with mock.patch("os.getenv", return_value=""):
592
592
  runtime = BoxRuntime(logger, backends=[backend])
@@ -595,7 +595,21 @@ async def test_create_session_reuses_existing(logger):
595
595
 
596
596
  assert backend.started_sessions == 1 # not started again
597
597
  assert first["backend_session_id"] == second["backend_session_id"] == "fake-1"
598
- backend.is_session_alive.assert_awaited() # liveness checked on reuse
598
+ backend.is_session_alive.assert_not_awaited()
599
+ assert runtime._session_leases == {}
600
+
601
+
602
+ @pytest.mark.anyio
603
+ async def test_create_session_rechecks_liveness_after_freshness_expires(logger):
604
+ """A reused session is probed again after the freshness window."""
605
+ backend = FakeBackend(logger)
606
+ with mock.patch("os.getenv", return_value=""):
607
+ runtime = BoxRuntime(logger, backends=[backend])
608
+ await runtime.create_session(_make_spec("beta"))
609
+ runtime._sessions["beta"].liveness_checked_at -= 6
610
+ await runtime.create_session(_make_spec("beta"))
611
+
612
+ backend.is_session_alive.assert_awaited_once()
599
613
 
600
614
 
601
615
  @pytest.mark.anyio
@@ -606,6 +620,7 @@ async def test_reuse_recreates_when_backend_session_dead(logger):
606
620
  runtime = BoxRuntime(logger, backends=[backend])
607
621
  first = await runtime.create_session(_make_spec("gamma"))
608
622
  backend._alive = False
623
+ runtime._sessions["gamma"].liveness_checked_at -= 6
609
624
  second = await runtime.create_session(_make_spec("gamma"))
610
625
 
611
626
  assert first["backend_session_id"] == "fake-1"
@@ -711,6 +726,21 @@ async def test_execute_timeout_drops_session(logger):
711
726
  backend.stop_session.assert_awaited_once()
712
727
 
713
728
 
729
+ @pytest.mark.anyio
730
+ async def test_execute_error_forces_next_liveness_probe(logger):
731
+ """A backend error invalidates the freshness shortcut."""
732
+ backend = FakeBackend(logger)
733
+ with mock.patch("os.getenv", return_value=""):
734
+ runtime = BoxRuntime(logger, backends=[backend])
735
+ await runtime.create_session(_make_spec("failed-exec"))
736
+ session = runtime._sessions["failed-exec"]
737
+ backend.exec = mock.AsyncMock(side_effect=BoxError("backend unavailable"))
738
+ with pytest.raises(BoxError, match="backend unavailable"):
739
+ await runtime.execute(_make_spec("failed-exec"))
740
+
741
+ assert session.liveness_checked_at is None
742
+
743
+
714
744
  # ── session expiry / reaping ────────────────────────────────────────────
715
745
 
716
746
 
@@ -1293,7 +1293,7 @@ async def test_plugin_connection_handler_peer_call_helpers(monkeypatch):
1293
1293
  }
1294
1294
  assert await handler.get_plugin_container() == {
1295
1295
  "action": RuntimeToPluginAction.GET_PLUGIN_CONTAINER.value,
1296
- "data": {},
1296
+ "data": {"include_registered_events": True},
1297
1297
  }
1298
1298
  assert await handler.get_plugin_icon() == {
1299
1299
  "action": RuntimeToPluginAction.GET_PLUGIN_ICON.value,