langbot-plugin 0.7.19__tar.gz → 0.7.20__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 (410) hide show
  1. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/ARCHITECTURE.md +10 -0
  2. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/PKG-INFO +1 -1
  3. langbot_plugin-0.7.20/docs/agent-runner-interactions.md +67 -0
  4. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/pyproject.toml +1 -1
  5. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/abstract/platform/adapter.py +38 -1
  6. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/platform/events.py +16 -0
  7. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/__init__.py +8 -4
  8. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/context.py +24 -0
  9. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/input.py +1 -1
  10. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/interaction.py +52 -7
  11. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/result.py +0 -23
  12. langbot_plugin-0.7.20/src/langbot_plugin/api/proxies/runner/platform.py +119 -0
  13. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/resources.py +27 -0
  14. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.py.example +5 -9
  15. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/e2b_backend.py +100 -29
  16. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/run/handler.py +1 -1
  17. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/io/actions/enums.py +1 -0
  18. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/handler.py +194 -32
  19. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/handlers/plugin.py +25 -1
  20. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/runner_service.py +6 -19
  21. langbot_plugin-0.7.20/src/langbot_plugin/utils/deadline.py +52 -0
  22. langbot_plugin-0.7.20/src/langbot_plugin/version.py +1 -0
  23. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/runner/test_interaction.py +2 -17
  24. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_agent_run_api_proxy.py +85 -0
  25. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/test_runner_handlers.py +1 -0
  26. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/test_runner_handlers_matrix.py +2 -0
  27. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_e2b_backend.py +335 -0
  28. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/test_handler.py +322 -0
  29. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_mgr_runner.py +33 -0
  30. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/utils/test_deadline.py +25 -0
  31. langbot_plugin-0.7.19/docs/agent-runner-interactions.md +0 -82
  32. langbot_plugin-0.7.19/src/langbot_plugin/api/proxies/runner/platform.py +0 -61
  33. langbot_plugin-0.7.19/src/langbot_plugin/utils/deadline.py +0 -36
  34. langbot_plugin-0.7.19/src/langbot_plugin/version.py +0 -1
  35. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/.github/workflows/box-docker.yml +0 -0
  36. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/.github/workflows/cla.yml +0 -0
  37. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/.github/workflows/publish-pypi.yaml +0 -0
  38. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/.github/workflows/publish.yml +0 -0
  39. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/.github/workflows/test.yml +0 -0
  40. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/.gitignore +0 -0
  41. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/.python-version +0 -0
  42. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/AGENTS.md +0 -0
  43. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/CLAUDE.md +0 -0
  44. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/CONTRIBUTING.md +0 -0
  45. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/LICENSE +0 -0
  46. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/README.md +0 -0
  47. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/README_CN.md +0 -0
  48. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/data/.env.example +0 -0
  49. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/Message.md +0 -0
  50. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/PluginPages.md +0 -0
  51. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/agent-runner-pluginization/PROTOCOL_V1.md +0 -0
  52. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/agent-runner-pluginization/README.md +0 -0
  53. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/agent-runner-pluginization/SDK_RUNTIME_PLAN.md +0 -0
  54. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/certified-plugins.md +0 -0
  55. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/communication/apis/lb2rt.md +0 -0
  56. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/communication/runtime_plugin.md +0 -0
  57. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/dependency-management.md +0 -0
  58. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/langbot-plugin-social.png +0 -0
  59. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/runner.md +0 -0
  60. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/docs/stateless-components.md +0 -0
  61. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/local_e2e/acceptance.json +0 -0
  62. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/local_e2e/registration_fanin.py +0 -0
  63. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/local_e2e/run_acceptance.py +0 -0
  64. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/mypy.ini +0 -0
  65. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/scripts/check_action_consistency.py +0 -0
  66. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/scripts/runtime_resource_probe.py +0 -0
  67. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/__init__.py +0 -0
  68. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/__init__.py +0 -0
  69. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/__init__.py +0 -0
  70. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/asset_gateway.py +0 -0
  71. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/daemon.py +0 -0
  72. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/decorators.py +0 -0
  73. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/external_tools.py +0 -0
  74. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/mcp_access.py +0 -0
  75. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/mcp_bridge.py +0 -0
  76. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/mcp_config.py +0 -0
  77. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/mcp_protocol.py +0 -0
  78. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/agent_tools/mcp_stdio.py +0 -0
  79. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/__init__.py +0 -0
  80. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/abstract/__init__.py +0 -0
  81. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/abstract/platform/__init__.py +0 -0
  82. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/abstract/platform/event_logger.py +0 -0
  83. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/__init__.py +0 -0
  84. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/base.py +0 -0
  85. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/command/__init__.py +0 -0
  86. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/command/command.py +0 -0
  87. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/common/__init__.py +0 -0
  88. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/common/event_listener.py +0 -0
  89. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/knowledge_engine/__init__.py +0 -0
  90. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/knowledge_engine/engine.py +0 -0
  91. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/manifest.py +0 -0
  92. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/page/__init__.py +0 -0
  93. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/parser/__init__.py +0 -0
  94. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/parser/parser.py +0 -0
  95. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/runner/__init__.py +0 -0
  96. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/runner/runner.py +0 -0
  97. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/tool/__init__.py +0 -0
  98. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/components/tool/tool.py +0 -0
  99. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/definition/plugin.py +0 -0
  100. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/__init__.py +0 -0
  101. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/__init__.py +0 -0
  102. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/command/__init__.py +0 -0
  103. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/command/context.py +0 -0
  104. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/command/errors.py +0 -0
  105. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/pipeline/__init__.py +0 -0
  106. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/pipeline/query.py +0 -0
  107. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/platform/__init__.py +0 -0
  108. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/platform/entities.py +0 -0
  109. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/platform/errors.py +0 -0
  110. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/platform/logger.py +0 -0
  111. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/platform/message.py +0 -0
  112. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/provider/__init__.py +0 -0
  113. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/provider/message.py +0 -0
  114. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/provider/prompt.py +0 -0
  115. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/provider/reasoning.py +0 -0
  116. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/provider/session.py +0 -0
  117. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/rag/__init__.py +0 -0
  118. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/rag/context.py +0 -0
  119. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/rag/enums.py +0 -0
  120. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/rag/errors.py +0 -0
  121. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/rag/models.py +0 -0
  122. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/resource/__init__.py +0 -0
  123. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/resource/tool.py +0 -0
  124. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/box.py +0 -0
  125. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/capabilities.py +0 -0
  126. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/compat.py +0 -0
  127. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/context_access.py +0 -0
  128. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/delivery.py +0 -0
  129. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/errors.py +0 -0
  130. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/event.py +0 -0
  131. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/manifest.py +0 -0
  132. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/page_results.py +0 -0
  133. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/permissions.py +0 -0
  134. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/resources.py +0 -0
  135. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/run_ledger.py +0 -0
  136. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/runtime.py +0 -0
  137. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/runtime_registry.py +0 -0
  138. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/state.py +0 -0
  139. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/stats.py +0 -0
  140. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/steering.py +0 -0
  141. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/transcript.py +0 -0
  142. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/builtin/runner/trigger.py +0 -0
  143. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/context.py +0 -0
  144. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/events.py +0 -0
  145. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/entities/execution.py +0 -0
  146. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/__init__.py +0 -0
  147. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/base.py +0 -0
  148. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/event_context.py +0 -0
  149. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/execute_context.py +0 -0
  150. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/invocation.py +0 -0
  151. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/langbot_api.py +0 -0
  152. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/query_based_api.py +0 -0
  153. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/__init__.py +0 -0
  154. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/admin.py +0 -0
  155. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/api.py +0 -0
  156. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/box.py +0 -0
  157. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/common.py +0 -0
  158. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/context.py +0 -0
  159. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/ledger.py +0 -0
  160. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/reply_stream.py +0 -0
  161. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/state.py +0 -0
  162. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/api/proxies/runner/tracing.py +0 -0
  163. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/artifact.py +0 -0
  164. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/__init__.py +0 -0
  165. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/langbot-page-sdk.js +0 -0
  166. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/.env.example.example +0 -0
  167. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/.github/workflows/release.yml.example +0 -0
  168. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/.gitignore.example +0 -0
  169. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/.vscode/launch.json.example +0 -0
  170. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/README.md.example +0 -0
  171. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/__init__.py +0 -0
  172. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/assets/icon.svg.example +0 -0
  173. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/__init__.py +0 -0
  174. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/commands/__init__.py +0 -0
  175. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.py.example +0 -0
  176. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.yaml.example +0 -0
  177. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/event_listener/__init__.py +0 -0
  178. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/event_listener/default.py.example +0 -0
  179. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/event_listener/default.yaml.example +0 -0
  180. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/knowledge_engine/__init__.py +0 -0
  181. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.py.example +0 -0
  182. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.yaml.example +0 -0
  183. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/pages/{page_name}.html.example +0 -0
  184. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/pages/{page_name}.yaml.example +0 -0
  185. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/parser/__init__.py +0 -0
  186. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.py.example +0 -0
  187. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.yaml.example +0 -0
  188. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/runner/__init__.py +0 -0
  189. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.yaml.example +0 -0
  190. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/tools/__init__.py +0 -0
  191. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.py.example +0 -0
  192. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.yaml.example +0 -0
  193. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/main.py.example +0 -0
  194. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/manifest.yaml.example +0 -0
  195. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/readme/README_zh_Hans.md.example +0 -0
  196. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/assets/templates/requirements.txt.example +0 -0
  197. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/__init__.py +0 -0
  198. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/actions.py +0 -0
  199. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/backend.py +0 -0
  200. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/client.py +0 -0
  201. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/errors.py +0 -0
  202. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/host_backend.py +0 -0
  203. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/models.py +0 -0
  204. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/nsjail_backend.py +0 -0
  205. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/runtime.py +0 -0
  206. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/security.py +0 -0
  207. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/server.py +0 -0
  208. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/box/tenancy.py +0 -0
  209. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/certification.py +0 -0
  210. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/__init__.py +0 -0
  211. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/__main__.py +0 -0
  212. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/__init__.py +0 -0
  213. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/buildplugin.py +0 -0
  214. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/gencomponent.py +0 -0
  215. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/initplugin.py +0 -0
  216. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/login.py +0 -0
  217. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/logout.py +0 -0
  218. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/publish.py +0 -0
  219. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/commands/runplugin.py +0 -0
  220. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/gen/__init__.py +0 -0
  221. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/gen/renderer.py +0 -0
  222. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/i18n.py +0 -0
  223. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/__init__.py +0 -0
  224. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/en_US.py +0 -0
  225. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/es_ES.py +0 -0
  226. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/ja_JP.py +0 -0
  227. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/th_TH.py +0 -0
  228. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/vi_VN.py +0 -0
  229. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/zh_Hans.py +0 -0
  230. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/locales/zh_Hant.py +0 -0
  231. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/run/__init__.py +0 -0
  232. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/run/controller.py +0 -0
  233. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/run/hotreload.py +0 -0
  234. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/utils/__init__.py +0 -0
  235. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/utils/cloudsv.py +0 -0
  236. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/utils/form.py +0 -0
  237. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/cli/utils/page_components.py +0 -0
  238. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/__init__.py +0 -0
  239. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/io/__init__.py +0 -0
  240. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/io/actions/__init__.py +0 -0
  241. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/io/context.py +0 -0
  242. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/io/errors.py +0 -0
  243. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/io/req.py +0 -0
  244. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/io/resp.py +0 -0
  245. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/entities/marketplace.py +0 -0
  246. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/LICENSE +0 -0
  247. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/README.md +0 -0
  248. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/__init__.py +0 -0
  249. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/app.py +0 -0
  250. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/bounded_executor.py +0 -0
  251. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/context.py +0 -0
  252. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/event_loop_monitor.py +0 -0
  253. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/helper/__init__.py +0 -0
  254. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/helper/marketplace.py +0 -0
  255. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/helper/pkgmgr.py +0 -0
  256. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/__init__.py +0 -0
  257. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/connection.py +0 -0
  258. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/connections/__init__.py +0 -0
  259. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/connections/stdio.py +0 -0
  260. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/connections/ws.py +0 -0
  261. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controller.py +0 -0
  262. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controllers/__init__.py +0 -0
  263. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controllers/stdio/__init__.py +0 -0
  264. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controllers/stdio/client.py +0 -0
  265. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controllers/stdio/server.py +0 -0
  266. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controllers/ws/__init__.py +0 -0
  267. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controllers/ws/client.py +0 -0
  268. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/controllers/ws/server.py +0 -0
  269. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/handlers/__init__.py +0 -0
  270. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/io/handlers/control.py +0 -0
  271. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/ops_metrics.py +0 -0
  272. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/__init__.py +0 -0
  273. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/artifact.py +0 -0
  274. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/container.py +0 -0
  275. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/dependency_environment.py +0 -0
  276. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/logbuffer.py +0 -0
  277. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/mgr.py +0 -0
  278. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/restart_coordinator.py +0 -0
  279. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/worker_launcher.py +0 -0
  280. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/worker_observability.py +0 -0
  281. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/plugin/worker_watchdog.py +0 -0
  282. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/security.py +0 -0
  283. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/runtime/settings.py +0 -0
  284. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/skill_store.py +0 -0
  285. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/storage.py +0 -0
  286. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/__init__.py +0 -0
  287. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/discover/__init__.py +0 -0
  288. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/discover/engine.py +0 -0
  289. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/git_sync.py +0 -0
  290. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/importutil.py +0 -0
  291. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/log.py +0 -0
  292. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/packaging.py +0 -0
  293. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/page_components.py +0 -0
  294. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/utils/platform.py +0 -0
  295. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/src/langbot_plugin/workspace.py +0 -0
  296. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/__init__.py +0 -0
  297. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/definition/components/test_components.py +0 -0
  298. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/definition/components/test_imports.py +0 -0
  299. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/definition/test_manifest.py +0 -0
  300. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/definition/test_manifest_component_path.py +0 -0
  301. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/runner/test_context_result.py +0 -0
  302. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/runner/test_history_event_entities.py +0 -0
  303. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/runner/test_run_ledger_entities.py +0 -0
  304. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/test_command_context.py +0 -0
  305. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/test_platform_logger.py +0 -0
  306. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/test_provider_message.py +0 -0
  307. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/builtin/test_rag_models.py +0 -0
  308. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/test_context.py +0 -0
  309. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/entities/test_events.py +0 -0
  310. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/__init__.py +0 -0
  311. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_base.py +0 -0
  312. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_box_api.py +0 -0
  313. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_history_event_api_proxy.py +0 -0
  314. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_langbot_api.py +0 -0
  315. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_llm_stream_ownership.py +0 -0
  316. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_query_based_api.py +0 -0
  317. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/proxies/test_reasoning_parameter.py +0 -0
  318. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/test_agent_tools_mcp_bridge.py +0 -0
  319. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/api/test_runner_public_apis.py +0 -0
  320. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/__init__.py +0 -0
  321. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_admission.py +0 -0
  322. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_artifact_cache_root.py +0 -0
  323. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_backend.py +0 -0
  324. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_backend_selection.py +0 -0
  325. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_client.py +0 -0
  326. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_host_backend.py +0 -0
  327. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_nsjail_backend.py +0 -0
  328. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_runtime.py +0 -0
  329. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_server.py +0 -0
  330. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_skill_store.py +0 -0
  331. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/box/test_storage_analysis.py +0 -0
  332. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/run/test_controller.py +0 -0
  333. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/run/test_hotreload.py +0 -0
  334. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/run/test_runtime_handler.py +0 -0
  335. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_buildplugin.py +0 -0
  336. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_cli_main.py +0 -0
  337. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_gencomponent.py +0 -0
  338. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_i18n_form.py +0 -0
  339. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_initplugin.py +0 -0
  340. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_login.py +0 -0
  341. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_logout_publish.py +0 -0
  342. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_page_components.py +0 -0
  343. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_renderer.py +0 -0
  344. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_runner_usages.py +0 -0
  345. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/cli/test_runplugin.py +0 -0
  346. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/e2e/Dockerfile.box-socket +0 -0
  347. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/e2e/Dockerfile.box-socket.dockerignore +0 -0
  348. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/e2e/standalone_runtime_eba_probe.py +0 -0
  349. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/e2e/test_box_socket_mounts.py +0 -0
  350. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/e2e/test_run_mount_isolation.py +0 -0
  351. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/entities/io/test_dependency_errors.py +0 -0
  352. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/entities/io/test_protocol.py +0 -0
  353. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/fixtures/eba_event_probe_plugin/.gitignore +0 -0
  354. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/fixtures/eba_event_probe_plugin/assets/icon.svg +0 -0
  355. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.py +0 -0
  356. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.yaml +0 -0
  357. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/fixtures/eba_event_probe_plugin/main.py +0 -0
  358. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/fixtures/eba_event_probe_plugin/manifest.yaml +0 -0
  359. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/helpers/__init__.py +0 -0
  360. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/helpers/protocol.py +0 -0
  361. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/packaging/test_installed_cli_blackbox.py +0 -0
  362. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/packaging/test_release_metadata.py +0 -0
  363. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/helper/test_marketplace.py +0 -0
  364. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/helper/test_pkgmgr.py +0 -0
  365. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/handlers/test_control_handler.py +0 -0
  366. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/handlers/test_import_contracts.py +0 -0
  367. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/handlers/test_legacy_file_chunk.py +0 -0
  368. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/handlers/test_plugin_handler.py +0 -0
  369. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/test_action_consistency.py +0 -0
  370. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/test_connections.py +0 -0
  371. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/test_controllers.py +0 -0
  372. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/test_heartbeat_admission.py +0 -0
  373. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/test_stdio_server.py +0 -0
  374. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/io/test_stream_flow_control.py +0 -0
  375. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_artifact_store.py +0 -0
  376. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_container.py +0 -0
  377. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_dependency_environment.py +0 -0
  378. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_event_dispatch_real_worker.py +0 -0
  379. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_exact_dify_real_worker.py +0 -0
  380. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_exact_legacy_sdk_compat.py +0 -0
  381. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_installation_manager.py +0 -0
  382. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_legacy_shadow.py +0 -0
  383. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_manager.py +0 -0
  384. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_mode_resource_limits.py +0 -0
  385. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_restart_coordinator.py +0 -0
  386. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_shared_worker_subprocess.py +0 -0
  387. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_worker_launcher.py +0 -0
  388. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_worker_plugin_identity.py +0 -0
  389. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/plugin/test_workload_isolation.py +0 -0
  390. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/test_app.py +0 -0
  391. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/test_bounded_executor.py +0 -0
  392. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/test_event_loop_monitor.py +0 -0
  393. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/test_ops_metrics.py +0 -0
  394. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/test_pull_api_handlers.py +0 -0
  395. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/runtime/test_security.py +0 -0
  396. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_artifact_materialization.py +0 -0
  397. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_certification.py +0 -0
  398. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_log.py +0 -0
  399. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_message.py +0 -0
  400. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_plugin_logbuffer.py +0 -0
  401. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_skill_store.py +0 -0
  402. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_storage.py +0 -0
  403. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_worker_observability.py +0 -0
  404. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/test_worker_watchdog.py +0 -0
  405. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/utils/test_cli_run_handler_packaging.py +0 -0
  406. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/utils/test_discovery.py +0 -0
  407. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/utils/test_git_sync.py +0 -0
  408. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/utils/test_importutil.py +0 -0
  409. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/utils/test_packaging_utils.py +0 -0
  410. {langbot_plugin-0.7.19 → langbot_plugin-0.7.20}/tests/utils/test_platform.py +0 -0
@@ -292,6 +292,16 @@ Core mechanics:
292
292
  explicit current context must still match, and the receiver never scans other
293
293
  namespaces. Legacy opaque basenames remain supported. Absolute paths,
294
294
  separators, `..`, and unsafe extensions are rejected.
295
+ - The transfer root is created and bound to one exact directory inode by walking
296
+ every component from `/` without following links, so a swapped component cannot
297
+ redirect a transfer. Deployments that deny inspecting the ancestors while still
298
+ reaching the root itself (fnOS applications inside `/vol2/@appshare/...`,
299
+ sandboxed containers) keep working: ancestors are opened path-only when a
300
+ read-only open is refused, and a root whose ancestors are entirely denied is
301
+ bound `O_NOFOLLOW` at the deepest reachable directory. Every component below
302
+ that point, the root descriptor, and all later operations keep the same
303
+ no-link, relative-only guarantees; the per-transfer drift check re-identifies
304
+ the configured path the same way.
295
305
 
296
306
  Action enums are the protocol contract:
297
307
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: langbot-plugin
3
- Version: 0.7.19
3
+ Version: 0.7.20
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
@@ -0,0 +1,67 @@
1
+ # Runner Structured Interactions
2
+
3
+ Structured interactions are a provider-neutral Runner Protocol v1
4
+ capability. Dify human input, deployment approval, a remote harness question,
5
+ and a CLI permission confirmation all use the same Host contract.
6
+
7
+ ## Manifest
8
+
9
+ Only runners that actually emit and resume interactions should opt in:
10
+
11
+ ```yaml
12
+ spec:
13
+ capabilities:
14
+ interactions: true
15
+ permissions:
16
+ interactions: [request]
17
+ storage: [plugin]
18
+ ```
19
+
20
+ The Host also applies the binding delivery policy. A manifest declaration does
21
+ not bypass Host authorization.
22
+
23
+ ## Request
24
+
25
+ Call the blocking SDK method while the current Runner is active:
26
+
27
+ ```python
28
+ from langbot_plugin.api.entities.builtin.runner import (
29
+ InteractionAction,
30
+ InteractionRequest,
31
+ )
32
+
33
+ result = await ctx.request_interaction(
34
+ InteractionRequest(
35
+ interaction_id="provider-neutral-correlation-id",
36
+ kind="confirmation",
37
+ title="Approve this operation?",
38
+ actions=[
39
+ InteractionAction(id="approve", label="Approve", style="primary"),
40
+ InteractionAction(id="deny", label="Deny", style="danger"),
41
+ ],
42
+ fallback_text="Approval is required to continue.",
43
+ ),
44
+ timeout=600,
45
+ on_unsupported="degrade",
46
+ )
47
+ if result.submission is not None:
48
+ selected_action = result.submission.action_id
49
+ ```
50
+
51
+ Use `ctx.delivery.interactions` to inspect the current surface's supported
52
+ field types, action styles, update support, and field limit. Always provide a
53
+ plain-text fallback. A form with multiple fields requires a native card; the
54
+ Host rejects a text fallback for that structure.
55
+
56
+ ## Continuation
57
+
58
+ The call waits in the same run and returns an `InteractionResult`. Check
59
+ `status` before reading `submission`; a timeout has no submission. The Host
60
+ validates callback token, actor, fields, options, and repeated submissions.
61
+ On cancellation or Host restart, the pending card becomes invalid.
62
+
63
+ ## Long-Lived Processes
64
+
65
+ CLI and harness protocols may wait on their live stdin/stdout channel. Keep
66
+ that process alive while `ctx.request_interaction` waits, then write the
67
+ validated answer to the same channel.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "langbot-plugin"
3
- version = "0.7.19"
3
+ version = "0.7.20"
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 = [
@@ -10,6 +10,12 @@ import langbot_plugin.api.entities.builtin.platform.events as platform_events
10
10
  import langbot_plugin.api.entities.builtin.platform.entities as platform_entities
11
11
  import langbot_plugin.api.definition.abstract.platform.event_logger as abstract_platform_logger
12
12
  from langbot_plugin.api.entities.builtin.platform.errors import NotSupportedError
13
+ from langbot_plugin.api.entities.builtin.runner.interaction import (
14
+ InteractionDeliveryCapabilities,
15
+ InteractionHandle,
16
+ InteractionRequest,
17
+ InteractionSubmission,
18
+ )
13
19
 
14
20
 
15
21
  class AbstractMessagePlatformAdapter(pydantic.BaseModel, metaclass=abc.ABCMeta):
@@ -165,7 +171,38 @@ class AbstractPlatformAdapter(AbstractMessagePlatformAdapter):
165
171
 
166
172
  def get_supported_apis(self) -> list[str]:
167
173
  """Return the list of APIs supported by this adapter."""
168
- return ["send_message", "reply_message"]
174
+ apis = ["send_message", "reply_message"]
175
+ if type(self).send_interaction is not AbstractPlatformAdapter.send_interaction:
176
+ apis.append("send_interaction")
177
+ apis.append("get_interaction_capabilities")
178
+ if (
179
+ type(self).update_interaction
180
+ is not AbstractPlatformAdapter.update_interaction
181
+ ):
182
+ apis.append("update_interaction")
183
+ return apis
184
+
185
+ def get_interaction_capabilities(self) -> InteractionDeliveryCapabilities:
186
+ """Return native interaction capabilities; empty means no native cards."""
187
+ return InteractionDeliveryCapabilities()
188
+
189
+ async def send_interaction(
190
+ self,
191
+ target_type: str,
192
+ target_id: str,
193
+ request: InteractionRequest,
194
+ callback_token: str,
195
+ reply_to: str | None = None,
196
+ ) -> InteractionHandle:
197
+ raise NotSupportedError("send_interaction")
198
+
199
+ async def update_interaction(
200
+ self,
201
+ handle: InteractionHandle,
202
+ state: typing.Literal["submitted", "expired", "cancelled"],
203
+ submission: InteractionSubmission | None = None,
204
+ ) -> InteractionHandle:
205
+ raise NotSupportedError("update_interaction")
169
206
 
170
207
  # ---- Optional Message Methods ----
171
208
 
@@ -647,6 +647,22 @@ class PlatformSpecificEvent(EBAEvent):
647
647
  """Event data; structure defined by each adapter."""
648
648
 
649
649
 
650
+ class InteractionCallbackEvent(EBAEvent):
651
+ """A platform callback for a Host-owned interaction."""
652
+
653
+ summary_field: typing.ClassVar[str] = "callback_token"
654
+ type: str = "interaction.callback"
655
+ callback_token: str
656
+ values: dict[str, typing.Any] = pydantic.Field(default_factory=dict)
657
+ action_id: str | None = None
658
+ actor_id: str | None = None
659
+ conversation_id: str | None = None
660
+ target_type: str | None = None
661
+ target_id: str | None = None
662
+ callback_context: dict[str, typing.Any] = pydantic.Field(default_factory=dict)
663
+ raw_submission: dict[str, typing.Any] = pydantic.Field(default_factory=dict)
664
+
665
+
650
666
  # ---- WeCom AI Bot Events ----
651
667
 
652
668
 
@@ -39,15 +39,17 @@ from langbot_plugin.api.entities.builtin.runner.context_access import (
39
39
  )
40
40
  from langbot_plugin.api.entities.builtin.runner.delivery import DeliveryContext
41
41
  from langbot_plugin.api.entities.builtin.runner.interaction import (
42
- INTERACTION_REQUESTED_ACTION,
43
- INTERACTION_SUBMITTED_EVENT,
44
42
  InteractionAction,
45
43
  InteractionActionStyle,
46
44
  InteractionDeliveryCapabilities,
45
+ InteractionDegradation,
47
46
  InteractionField,
48
47
  InteractionFieldType,
49
48
  InteractionOption,
49
+ InteractionHandle,
50
+ InteractionNotSupportedError,
50
51
  InteractionRequest,
52
+ InteractionResult,
51
53
  InteractionSubmission,
52
54
  JSONValue,
53
55
  )
@@ -135,15 +137,17 @@ __all__ = [
135
137
  "InlineContextPolicy",
136
138
  "ContextAPICapabilities",
137
139
  "DeliveryContext",
138
- "INTERACTION_REQUESTED_ACTION",
139
- "INTERACTION_SUBMITTED_EVENT",
140
140
  "InteractionAction",
141
141
  "InteractionActionStyle",
142
142
  "InteractionDeliveryCapabilities",
143
+ "InteractionDegradation",
143
144
  "InteractionField",
144
145
  "InteractionFieldType",
145
146
  "InteractionOption",
147
+ "InteractionHandle",
148
+ "InteractionNotSupportedError",
146
149
  "InteractionRequest",
150
+ "InteractionResult",
147
151
  "InteractionSubmission",
148
152
  "JSONValue",
149
153
  "AdapterContext",
@@ -37,6 +37,10 @@ from langbot_plugin.api.entities.builtin.runner.context_access import (
37
37
  ContextAccess,
38
38
  )
39
39
  from langbot_plugin.api.entities.builtin.runner.delivery import DeliveryContext
40
+ from langbot_plugin.api.entities.builtin.runner.interaction import (
41
+ InteractionRequest,
42
+ InteractionResult,
43
+ )
40
44
 
41
45
 
42
46
  class AdapterContext(pydantic.BaseModel):
@@ -190,6 +194,26 @@ class RunnerContext(pydantic.BaseModel):
190
194
  """Call an authorized event, platform, or plugin tool in the current context."""
191
195
  return await self.api.call_tool(tool_name, parameters or {})
192
196
 
197
+ async def request_interaction(
198
+ self,
199
+ request: InteractionRequest,
200
+ *,
201
+ timeout: float = 600,
202
+ on_unsupported: str = "error",
203
+ responders: str | list[str] = "actor",
204
+ target_type: str | None = None,
205
+ target_id: str | None = None,
206
+ ) -> InteractionResult:
207
+ """Wait for a user submission in this run."""
208
+ return await self.api.request_interaction(
209
+ request,
210
+ timeout=timeout,
211
+ on_unsupported=on_unsupported,
212
+ responders=responders,
213
+ target_type=target_type,
214
+ target_id=target_id,
215
+ )
216
+
193
217
  async def get_bot_uuid(self) -> str:
194
218
  """Get the source bot UUID, or fail when this event has no platform bot."""
195
219
  bot_uuid = (self.conversation.bot_id if self.conversation else None) or (
@@ -65,7 +65,7 @@ class AgentInput(pydantic.BaseModel):
65
65
  """Current-event attachment metadata."""
66
66
 
67
67
  interaction: InteractionSubmission | None = None
68
- """Host-validated submission when the current event is interaction.submitted."""
68
+ """Host-validated interaction submission for the current event."""
69
69
 
70
70
  def to_text(self) -> str:
71
71
  """Extract plain text from input.
@@ -3,13 +3,11 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import typing
6
+ import uuid
6
7
 
7
8
  import pydantic
8
9
 
9
10
 
10
- INTERACTION_REQUESTED_ACTION = "interaction.requested"
11
- INTERACTION_SUBMITTED_EVENT = "interaction.submitted"
12
-
13
11
  InteractionFieldType = typing.Literal[
14
12
  "text",
15
13
  "textarea",
@@ -62,7 +60,9 @@ class InteractionAction(pydantic.BaseModel):
62
60
  class InteractionRequest(pydantic.BaseModel):
63
61
  """A runner request for Host-owned structured user interaction."""
64
62
 
65
- interaction_id: str = pydantic.Field(min_length=1, max_length=255)
63
+ interaction_id: str = pydantic.Field(
64
+ default_factory=lambda: uuid.uuid4().hex, min_length=1, max_length=255
65
+ )
66
66
  kind: typing.Literal["form", "confirmation", "choice"] = "form"
67
67
  title: str = pydantic.Field(min_length=1, max_length=1000)
68
68
  description: str | None = pydantic.Field(default=None, max_length=10000)
@@ -71,7 +71,9 @@ class InteractionRequest(pydantic.BaseModel):
71
71
  default_factory=list, max_length=20
72
72
  )
73
73
  expires_at: int | None = None
74
- fallback_text: str = pydantic.Field(min_length=1, max_length=20000)
74
+ fallback_text: str | None = pydantic.Field(
75
+ default=None, min_length=1, max_length=20000
76
+ )
75
77
 
76
78
  model_config = pydantic.ConfigDict(extra="forbid")
77
79
 
@@ -83,6 +85,7 @@ class InteractionSubmission(pydantic.BaseModel):
83
85
  action_id: str | None = pydantic.Field(default=None, max_length=128)
84
86
  values: dict[str, JSONValue] = pydantic.Field(default_factory=dict)
85
87
  submitted_at: int | None = None
88
+ label: str | None = None
86
89
 
87
90
  model_config = pydantic.ConfigDict(extra="forbid")
88
91
 
@@ -94,20 +97,62 @@ class InteractionDeliveryCapabilities(pydantic.BaseModel):
94
97
  action_styles: list[InteractionActionStyle] = pydantic.Field(default_factory=list)
95
98
  supports_updates: bool = False
96
99
  max_fields: int | None = pydantic.Field(default=None, ge=0)
100
+ max_options: int | None = pydantic.Field(default=None, ge=0)
101
+ max_actions: int | None = pydantic.Field(default=None, ge=0)
102
+ supports_markdown: bool = False
103
+ text_fallback: bool = True
104
+
105
+ @property
106
+ def supports_update(self) -> bool:
107
+ return self.supports_updates
97
108
 
98
109
  model_config = pydantic.ConfigDict(extra="forbid")
99
110
 
100
111
 
112
+ class InteractionHandle(pydantic.BaseModel):
113
+ """Opaque adapter delivery handle retained by the Host."""
114
+
115
+ message_id: str | int | None = None
116
+ card_id: str | None = None
117
+ context: dict[str, JSONValue] = pydantic.Field(default_factory=dict)
118
+
119
+ model_config = pydantic.ConfigDict(extra="allow")
120
+
121
+
122
+ class InteractionDegradation(pydantic.BaseModel):
123
+ path: str
124
+ reason: str
125
+ applied: str
126
+
127
+
128
+ class InteractionResult(pydantic.BaseModel):
129
+ status: typing.Literal["submitted", "timeout", "cancelled"]
130
+ submission: InteractionSubmission | None = None
131
+ degraded: list[InteractionDegradation] = pydantic.Field(default_factory=list)
132
+ deadline_at: float | None = None
133
+
134
+
135
+ class InteractionNotSupportedError(Exception):
136
+ def __init__(self, issues: list[dict[str, str]]):
137
+ self.issues = issues
138
+ super().__init__(
139
+ "Interaction is not supported: "
140
+ + ", ".join(f"{issue['path']}: {issue['reason']}" for issue in issues)
141
+ )
142
+
143
+
101
144
  __all__ = [
102
- "INTERACTION_REQUESTED_ACTION",
103
- "INTERACTION_SUBMITTED_EVENT",
104
145
  "InteractionAction",
105
146
  "InteractionActionStyle",
106
147
  "InteractionDeliveryCapabilities",
148
+ "InteractionDegradation",
107
149
  "InteractionField",
108
150
  "InteractionFieldType",
109
151
  "InteractionOption",
152
+ "InteractionHandle",
153
+ "InteractionNotSupportedError",
110
154
  "InteractionRequest",
155
+ "InteractionResult",
111
156
  "InteractionSubmission",
112
157
  "JSONValue",
113
158
  ]
@@ -15,10 +15,6 @@ from langbot_plugin.api.entities.builtin.runner.state import (
15
15
  VALID_STATE_SCOPES,
16
16
  STATE_SCOPE_LITERAL,
17
17
  )
18
- from langbot_plugin.api.entities.builtin.runner.interaction import (
19
- INTERACTION_REQUESTED_ACTION,
20
- InteractionRequest,
21
- )
22
18
 
23
19
 
24
20
  class RunnerResultType(str, enum.Enum):
@@ -411,25 +407,6 @@ class RunnerResult(pydantic.BaseModel):
411
407
  timestamp=timestamp,
412
408
  )
413
409
 
414
- @classmethod
415
- def interaction_requested(
416
- cls,
417
- run_id: str,
418
- request: InteractionRequest | dict[str, typing.Any],
419
- *,
420
- sequence: int | None = None,
421
- timestamp: int | None = None,
422
- ) -> "RunnerResult":
423
- """Request an interaction on the current run's frozen delivery target."""
424
- interaction = InteractionRequest.model_validate(request)
425
- return cls.action_requested(
426
- run_id=run_id,
427
- action=INTERACTION_REQUESTED_ACTION,
428
- payload=interaction.model_dump(mode="json"),
429
- sequence=sequence,
430
- timestamp=timestamp,
431
- )
432
-
433
410
 
434
411
  def _coerce_usage(
435
412
  usage: LLMTokenUsage | dict[str, typing.Any] | None,
@@ -0,0 +1,119 @@
1
+ """Platform APIs with the same signatures as the shared plugin API."""
2
+
3
+ import time
4
+ from typing import Any
5
+ from langbot_plugin.api.entities.builtin.platform.message import MessageChain
6
+ from langbot_plugin.entities.io.actions.enums import PluginToRuntimeAction
7
+ from langbot_plugin.api.entities.builtin.runner.interaction import (
8
+ InteractionRequest,
9
+ InteractionResult,
10
+ InteractionNotSupportedError,
11
+ )
12
+
13
+
14
+ class RunnerPlatformAPIMixin:
15
+ async def request_interaction(
16
+ self,
17
+ request: InteractionRequest,
18
+ *,
19
+ timeout: float = 600,
20
+ on_unsupported: str = "error",
21
+ responders: str | list[str] = "actor",
22
+ target_type: str | None = None,
23
+ target_id: str | None = None,
24
+ ) -> InteractionResult:
25
+ if not 0 < timeout <= 86400:
26
+ raise ValueError("Interaction timeout must be between 0 and 86400 seconds")
27
+ if on_unsupported not in {"error", "degrade"}:
28
+ raise ValueError("on_unsupported must be 'error' or 'degrade'")
29
+ if (target_type is None) != (target_id is None):
30
+ raise ValueError("target_type and target_id must be provided together")
31
+ original_deadline = self.ctx.runtime.deadline_at
32
+ started_at = time.time()
33
+ if original_deadline is not None:
34
+ self.ctx.runtime.deadline_at = float(original_deadline) + timeout + 30
35
+ try:
36
+ response = await self._api.plugin_runtime_handler.call_action(
37
+ PluginToRuntimeAction.REQUEST_INTERACTION,
38
+ {
39
+ "run_id": self.run_id,
40
+ "request": request.model_dump(mode="json"),
41
+ "timeout": timeout,
42
+ "on_unsupported": on_unsupported,
43
+ "responders": responders,
44
+ "target_type": target_type,
45
+ "target_id": target_id,
46
+ },
47
+ timeout + 30,
48
+ cancel_peer_on_cancel=True,
49
+ )
50
+ if response.get("unsupported"):
51
+ raise InteractionNotSupportedError(response["unsupported"])
52
+ result = InteractionResult.model_validate(response)
53
+ except BaseException:
54
+ if original_deadline is not None:
55
+ self.ctx.runtime.deadline_at = float(original_deadline) + (
56
+ time.time() - started_at
57
+ )
58
+ raise
59
+ if result.deadline_at is not None:
60
+ self.ctx.runtime.deadline_at = result.deadline_at
61
+ elif original_deadline is not None:
62
+ self.ctx.runtime.deadline_at = float(original_deadline) + (
63
+ time.time() - started_at
64
+ )
65
+ return result
66
+
67
+ async def call_platform_api(
68
+ self, bot_uuid: str, action: str, params: dict[str, Any] | None = None
69
+ ) -> Any:
70
+ response = await self._api.plugin_runtime_handler.call_action(
71
+ PluginToRuntimeAction.CALL_PLATFORM_API,
72
+ {
73
+ "run_id": self.run_id,
74
+ "bot_uuid": bot_uuid,
75
+ "action": action,
76
+ "params": params or {},
77
+ },
78
+ self._bounded_timeout(default=180.0),
79
+ )
80
+ return self._expect_key(
81
+ response, "result", PluginToRuntimeAction.CALL_PLATFORM_API
82
+ )
83
+
84
+ async def send_message(
85
+ self,
86
+ bot_uuid: str,
87
+ target_type: str,
88
+ target_id: str,
89
+ message_chain: MessageChain,
90
+ ) -> Any:
91
+ return await self.call_platform_api(
92
+ bot_uuid,
93
+ "send_message",
94
+ {
95
+ "target_type": target_type,
96
+ "target_id": target_id,
97
+ "message": message_chain.model_dump(mode="json"),
98
+ },
99
+ )
100
+
101
+ async def reply_message(
102
+ self, message_chain: MessageChain, quote_origin: bool = False
103
+ ) -> Any:
104
+ response = await self._api.plugin_runtime_handler.call_action(
105
+ PluginToRuntimeAction.CALL_PLATFORM_API,
106
+ {
107
+ "run_id": self.run_id,
108
+ "action": "send_message",
109
+ "context_tool": "event_reply",
110
+ "params": {
111
+ "message": message_chain.model_dump(mode="json"),
112
+ "quote_origin": quote_origin,
113
+ },
114
+ },
115
+ self._bounded_timeout(default=180.0),
116
+ )
117
+ return self._expect_key(
118
+ response, "result", PluginToRuntimeAction.CALL_PLATFORM_API
119
+ )
@@ -273,6 +273,33 @@ class AgentRunResourceAPIMixin:
273
273
  ) -> dict[str, Any]:
274
274
  """Call a tool with permission validation."""
275
275
  self._validate_tool_access(tool_name, "call")
276
+ if tool_name == "request_interaction":
277
+ from langbot_plugin.api.entities.builtin.runner.interaction import (
278
+ InteractionRequest,
279
+ )
280
+
281
+ request = InteractionRequest.model_validate(
282
+ {
283
+ key: value
284
+ for key, value in parameters.items()
285
+ if key
286
+ not in {
287
+ "expires_in_seconds",
288
+ "timeout",
289
+ "on_unsupported",
290
+ "responders",
291
+ }
292
+ }
293
+ )
294
+ result = await self.request_interaction(
295
+ request,
296
+ timeout=parameters.get(
297
+ "timeout", parameters.get("expires_in_seconds", 600)
298
+ ),
299
+ on_unsupported=parameters.get("on_unsupported", "degrade"),
300
+ responders=parameters.get("responders", "actor"),
301
+ )
302
+ return result.model_dump(mode="json")
276
303
  timeout = self._bounded_timeout(default=180.0)
277
304
  resp = await self._api.plugin_runtime_handler.call_action(
278
305
  PluginToRuntimeAction.CALL_TOOL,
@@ -5,7 +5,6 @@ from typing import AsyncGenerator
5
5
 
6
6
  from langbot_plugin.api.definition.components.runner.runner import Runner
7
7
  from langbot_plugin.api.entities.builtin.runner import (
8
- INTERACTION_SUBMITTED_EVENT,
9
8
  RunnerContext,
10
9
  RunnerResult,
11
10
  InteractionAction,
@@ -45,14 +44,7 @@ class {{ runner_attr }}(Runner):
45
44
  # For streaming, use RunnerResult.message_delta(ctx.run_id, chunk)
46
45
  # For final response, use RunnerResult.run_completed(ctx.run_id, message)
47
46
  # For human input, declare interactions in the component manifest and use:
48
- # if ctx.event.event_type == INTERACTION_SUBMITTED_EVENT and ctx.input.interaction:
49
- # submission = ctx.input.interaction
50
- # # Load provider-private continuation data from authorized state/storage
51
- # # by submission.interaction_id, then resume the provider with
52
- # # submission.action_id and submission.values.
53
- #
54
- # yield RunnerResult.interaction_requested(
55
- # ctx.run_id,
47
+ # result = await ctx.request_interaction(
56
48
  # InteractionRequest(
57
49
  # interaction_id="confirm-1",
58
50
  # kind="confirmation",
@@ -60,7 +52,11 @@ class {{ runner_attr }}(Runner):
60
52
  # actions=[InteractionAction(id="continue", label="Continue", style="primary")],
61
53
  # fallback_text="Reply continue to proceed.",
62
54
  # ),
55
+ # timeout=600,
56
+ # on_unsupported="degrade",
63
57
  # )
58
+ # if result.submission:
59
+ # user_text = str(result.submission.action_id)
64
60
 
65
61
  final_message = Message(
66
62
  role="assistant",