langbot-plugin 0.7.24__tar.gz → 0.7.25__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/AGENTS.md +12 -18
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/ARCHITECTURE.md +25 -10
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/CONTRIBUTING.md +3 -1
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/PKG-INFO +25 -8
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/README.md +22 -5
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/README_CN.md +5 -4
- langbot_plugin-0.7.25/RELEASING.md +58 -0
- langbot_plugin-0.7.25/SOURCE.json +8 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/docs/execution_api.md +12 -5
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/examples/workspace_runner_plugin/manifest.yaml +1 -1
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/pyproject.toml +3 -3
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/runner/runner.py +5 -1
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/__init__.py +2 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/context.py +55 -4
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/context_access.py +12 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/result.py +85 -7
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/runtime.py +8 -1
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/steering.py +11 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/runner/admin.py +49 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/runner/context.py +18 -2
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/runner/ledger.py +79 -6
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/workspace_domains.py +1 -1
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/box/actions.py +5 -0
- langbot_plugin-0.7.25/src/langbot_plugin/box/artifact_cache.py +730 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/box/backend.py +264 -17
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/box/client.py +213 -1
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/box/e2b_backend.py +391 -38
- langbot_plugin-0.7.25/src/langbot_plugin/box/file_io.py +109 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/box/host_backend.py +3 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/box/models.py +99 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/box/nsjail_backend.py +103 -2
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/box/runtime.py +627 -34
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/box/server.py +128 -3
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/entities/io/actions/enums.py +4 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/bounded_executor.py +9 -1
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/handler.py +14 -1
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/handlers/plugin.py +22 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/plugin/runner_service.py +1 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/skill_store.py +171 -22
- langbot_plugin-0.7.25/src/langbot_plugin/version.py +1 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/entities/builtin/runner/test_context_result.py +13 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/proxies/test_agent_run_api_proxy.py +91 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/test_execution_api_consistency.py +1 -1
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/test_runner_handlers.py +13 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/test_workspace_domains.py +3 -3
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/box/test_admission.py +10 -0
- langbot_plugin-0.7.25/tests/box/test_artifact_cache.py +165 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/box/test_backend.py +192 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/box/test_backend_selection.py +81 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/box/test_client.py +41 -2
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/box/test_e2b_backend.py +555 -4
- langbot_plugin-0.7.25/tests/box/test_file_transfer.py +667 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/box/test_identity.py +11 -2
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/box/test_nsjail_backend.py +82 -0
- langbot_plugin-0.7.25/tests/box/test_nsjail_v1_live.py +68 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/box/test_runtime.py +203 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/box/test_server.py +12 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/data/execution_api_catalog.json +478 -2
- langbot_plugin-0.7.25/tests/e2e/test_box_file_transfer_live.py +390 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_mgr_runner.py +15 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/test_bounded_executor.py +33 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/test_skill_store.py +104 -0
- langbot_plugin-0.7.24/.github/workflows/box-docker.yml +0 -34
- langbot_plugin-0.7.24/.github/workflows/cla.yml +0 -41
- langbot_plugin-0.7.24/.github/workflows/publish-pypi.yaml +0 -27
- langbot_plugin-0.7.24/.github/workflows/publish.yml +0 -23
- langbot_plugin-0.7.24/.github/workflows/test.yml +0 -89
- langbot_plugin-0.7.24/src/langbot_plugin/version.py +0 -1
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/.gitignore +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/.python-version +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/CLAUDE.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/LICENSE +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/data/.env.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/docs/Message.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/docs/PluginPages.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/docs/agent-runner-interactions.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/docs/agent-runner-pluginization/PROTOCOL_V1.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/docs/agent-runner-pluginization/README.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/docs/agent-runner-pluginization/SDK_RUNTIME_PLAN.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/docs/box-instance-identity.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/docs/certified-plugins.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/docs/communication/apis/lb2rt.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/docs/communication/runtime_plugin.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/docs/dependency-management.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/docs/langbot-plugin-social.png +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/docs/runner.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/docs/stateless-components.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/examples/workspace_runner_plugin/README.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/examples/workspace_runner_plugin/components/runner/default.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/examples/workspace_runner_plugin/components/runner/default.yaml +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/examples/workspace_runner_plugin/main.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/local_e2e/acceptance.json +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/local_e2e/registration_fanin.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/local_e2e/run_acceptance.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/mypy.ini +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/scripts/check_action_consistency.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/scripts/runtime_resource_probe.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/agent_tools/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/agent_tools/asset_gateway.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/agent_tools/daemon.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/agent_tools/decorators.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/agent_tools/external_tools.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/agent_tools/mcp_access.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/agent_tools/mcp_bridge.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/agent_tools/mcp_config.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/agent_tools/mcp_protocol.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/agent_tools/mcp_stdio.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/abstract/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/abstract/platform/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/abstract/platform/adapter.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/abstract/platform/event_logger.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/base.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/command/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/command/command.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/common/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/common/event_listener.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/knowledge_engine/engine.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/manifest.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/page/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/parser/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/parser/parser.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/runner/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/tool/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/components/tool/tool.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/definition/plugin.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/command/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/command/context.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/command/errors.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/pipeline/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/pipeline/query.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/platform/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/platform/entities.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/platform/errors.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/platform/events.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/platform/logger.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/platform/message.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/provider/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/provider/message.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/provider/prompt.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/provider/reasoning.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/provider/session.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/rag/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/rag/context.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/rag/enums.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/rag/errors.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/rag/models.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/resource/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/resource/tool.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/box.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/capabilities.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/compat.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/delivery.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/errors.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/event.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/input.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/interaction.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/manifest.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/page_results.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/permissions.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/resources.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/run_ledger.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/runtime_registry.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/state.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/stats.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/transcript.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/builtin/runner/trigger.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/context.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/events.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/execution.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/entities/permissions.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/base.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/event_context.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/execute_context.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/execution.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/invocation.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/langbot_api.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/query_based_api.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/runner/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/runner/api.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/runner/box.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/runner/common.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/runner/platform.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/runner/reply_stream.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/runner/resources.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/runner/state.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/runner/tracing.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/api/proxies/workspace.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/artifact.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/langbot-page-sdk.js +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/.env.example.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/.github/workflows/release.yml.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/.gitignore.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/.vscode/launch.json.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/README.md.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/assets/icon.svg.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/commands/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.py.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.yaml.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/event_listener/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/event_listener/default.py.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/event_listener/default.yaml.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.py.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.yaml.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/pages/{page_name}.html.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/pages/{page_name}.yaml.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/parser/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.py.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.yaml.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/runner/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.py.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.yaml.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/tools/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.py.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.yaml.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/main.py.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/manifest.yaml.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/readme/README_zh_Hans.md.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/assets/templates/requirements.txt.example +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/box/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/box/errors.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/box/identity.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/box/security.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/box/tenancy.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/certification.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/__main__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/commands/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/commands/buildplugin.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/commands/gencomponent.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/commands/initplugin.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/commands/login.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/commands/logout.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/commands/publish.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/commands/runplugin.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/gen/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/gen/renderer.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/i18n.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/locales/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/locales/en_US.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/locales/es_ES.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/locales/ja_JP.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/locales/th_TH.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/locales/vi_VN.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/locales/zh_Hans.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/locales/zh_Hant.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/run/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/run/controller.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/run/handler.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/run/hotreload.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/utils/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/utils/cloudsv.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/utils/form.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/cli/utils/page_components.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/entities/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/entities/io/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/entities/io/actions/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/entities/io/context.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/entities/io/errors.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/entities/io/req.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/entities/io/resp.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/entities/marketplace.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/LICENSE +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/README.md +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/app.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/context.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/event_loop_monitor.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/helper/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/helper/marketplace.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/helper/pkgmgr.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/connection.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/connections/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/connections/stdio.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/connections/ws.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/controller.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/controllers/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/controllers/stdio/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/controllers/stdio/client.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/controllers/stdio/server.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/controllers/ws/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/controllers/ws/client.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/controllers/ws/server.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/handlers/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/io/handlers/control.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/ops_metrics.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/plugin/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/plugin/artifact.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/plugin/container.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/plugin/dependency_environment.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/plugin/logbuffer.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/plugin/mgr.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/plugin/restart_coordinator.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/plugin/worker_launcher.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/plugin/worker_observability.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/plugin/worker_watchdog.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/security.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/runtime/settings.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/storage.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/utils/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/utils/deadline.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/utils/discover/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/utils/discover/engine.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/utils/git_sync.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/utils/importutil.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/utils/log.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/utils/packaging.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/utils/page_components.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/utils/platform.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/src/langbot_plugin/workspace.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/definition/components/test_components.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/definition/components/test_imports.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/definition/test_manifest.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/definition/test_manifest_component_path.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/entities/builtin/runner/test_history_event_entities.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/entities/builtin/runner/test_interaction.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/entities/builtin/runner/test_run_ledger_entities.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/entities/builtin/test_command_context.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/entities/builtin/test_platform_logger.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/entities/builtin/test_provider_message.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/entities/builtin/test_rag_models.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/entities/test_context.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/entities/test_events.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/proxies/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/proxies/test_base.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/proxies/test_box_api.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/proxies/test_history_event_api_proxy.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/proxies/test_input_attachment_api.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/proxies/test_langbot_api.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/proxies/test_llm_stream_ownership.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/proxies/test_query_based_api.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/proxies/test_reasoning_parameter.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/test_agent_tools_mcp_bridge.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/test_runner_handlers_matrix.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/test_runner_public_apis.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/api/test_workspace_operations.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/box/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/box/conftest.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/box/test_artifact_cache_root.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/box/test_host_backend.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/box/test_skill_store.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/box/test_storage_analysis.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/cli/run/test_controller.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/cli/run/test_hotreload.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/cli/run/test_runtime_handler.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/cli/test_buildplugin.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/cli/test_cli_main.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/cli/test_examples.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/cli/test_gencomponent.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/cli/test_i18n_form.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/cli/test_initplugin.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/cli/test_login.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/cli/test_logout_publish.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/cli/test_page_components.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/cli/test_renderer.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/cli/test_runner_usages.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/cli/test_runplugin.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/e2e/Dockerfile.box-socket +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/e2e/Dockerfile.box-socket.dockerignore +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/e2e/standalone_runtime_eba_probe.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/e2e/test_box_instance_cleanup_docker.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/e2e/test_box_socket_mounts.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/e2e/test_nsjail_large_commands.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/e2e/test_run_mount_isolation.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/entities/io/test_dependency_errors.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/entities/io/test_protocol.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/fixtures/eba_event_probe_plugin/.gitignore +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/fixtures/eba_event_probe_plugin/assets/icon.svg +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.yaml +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/fixtures/eba_event_probe_plugin/main.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/fixtures/eba_event_probe_plugin/manifest.yaml +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/helpers/__init__.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/helpers/protocol.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/packaging/test_installed_cli_blackbox.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/packaging/test_release_metadata.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/helper/test_marketplace.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/helper/test_pkgmgr.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/io/handlers/test_control_handler.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/io/handlers/test_import_contracts.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/io/handlers/test_legacy_file_chunk.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/io/handlers/test_plugin_handler.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/io/test_action_consistency.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/io/test_audit_correlation.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/io/test_connections.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/io/test_controllers.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/io/test_handler.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/io/test_heartbeat_admission.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/io/test_payload_limits.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/io/test_stdio_encoding.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/io/test_stdio_server.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/io/test_stream_flow_control.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_artifact_store.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_container.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_dependency_environment.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_event_dispatch_real_worker.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_exact_dify_real_worker.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_exact_legacy_sdk_compat.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_installation_manager.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_legacy_shadow.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_manager.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_mode_resource_limits.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_plugin_logs_real_worker.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_restart_coordinator.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_shared_worker_subprocess.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_worker_launcher.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_worker_plugin_identity.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/plugin/test_workload_isolation.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/test_app.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/test_event_loop_monitor.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/test_ops_metrics.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/test_pull_api_handlers.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/runtime/test_security.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/test_artifact_materialization.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/test_certification.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/test_log.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/test_message.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/test_plugin_logbuffer.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/test_storage.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/test_worker_observability.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/test_worker_watchdog.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/utils/test_cli_run_handler_packaging.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/utils/test_deadline.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/utils/test_discovery.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/utils/test_git_sync.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/utils/test_importutil.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/utils/test_packaging_utils.py +0 -0
- {langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/tests/utils/test_platform.py +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# AGENTS.md
|
|
2
2
|
|
|
3
|
-
This file guides code agents working in the `langbot-plugin-sdk` repository. `CLAUDE.md` is a symlink to this file.
|
|
3
|
+
This file guides code agents working on the plugin SDK in `sdk/` of the LangBot monorepo (formerly the separate `langbot-plugin-sdk` repository, now archived). `CLAUDE.md` is a symlink to this file. The repository-wide rules in `../AGENTS.md` also apply.
|
|
4
4
|
|
|
5
|
-
Read `ARCHITECTURE.md` before non-trivial SDK, CLI, Plugin Runtime, Box Runtime, protocol, or
|
|
5
|
+
Read `ARCHITECTURE.md` before non-trivial SDK, CLI, Plugin Runtime, Box Runtime, protocol, or SDK + Core changes. This file is the working checklist; `ARCHITECTURE.md` is the system map.
|
|
6
6
|
|
|
7
7
|
## Quick Facts
|
|
8
8
|
|
|
@@ -11,7 +11,8 @@ Read `ARCHITECTURE.md` before non-trivial SDK, CLI, Plugin Runtime, Box Runtime,
|
|
|
11
11
|
- CLI entrypoint: `lbp = langbot_plugin.cli:main`.
|
|
12
12
|
- Main consumers: LangBot main repo and third-party plugins.
|
|
13
13
|
- Runtime license: `src/langbot_plugin/runtime/` is AGPL; the rest is Apache 2.0.
|
|
14
|
-
- LangBot pins this package in
|
|
14
|
+
- LangBot Core pins this package exactly (`langbot-plugin==X` in `../pyproject.toml`) and installs it from PyPI; testing Core against `sdk/` needs an explicit overlay install.
|
|
15
|
+
- Releases: `sdk/vX.Y.Z` tags publish to PyPI; never a GitHub Release. See `RELEASING.md`.
|
|
15
16
|
|
|
16
17
|
## Essential Commands
|
|
17
18
|
|
|
@@ -49,28 +50,21 @@ uv run python scripts/check_action_consistency.py
|
|
|
49
50
|
- Action protocol: `src/langbot_plugin/entities/io/` and `src/langbot_plugin/runtime/io/handler.py`.
|
|
50
51
|
- Plugin tutorial: https://langbot.app/docs/zh/plugin/dev/tutor.
|
|
51
52
|
- Runtime/CLI/SDK debugging: https://langbot.app/docs/zh/develop/plugin-runtime.
|
|
52
|
-
- LangBot
|
|
53
|
+
- LangBot Core: the repository root (`../`), Core code in `../src/langbot/`.
|
|
53
54
|
|
|
54
|
-
##
|
|
55
|
+
## Testing With LangBot Core
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
```text
|
|
59
|
-
langbot-projects/
|
|
60
|
-
├── LangBot/
|
|
61
|
-
└── langbot-plugin-sdk/
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
When changing shared entities, component contracts, action payloads, Plugin Runtime, or Box Runtime:
|
|
57
|
+
All commands in this file run from `sdk/` unless noted. When changing shared entities, component contracts, action payloads, Plugin Runtime, or Box Runtime, change the Core bridge in the same PR and test both:
|
|
65
58
|
|
|
66
59
|
```bash
|
|
67
|
-
# from
|
|
68
|
-
uv
|
|
69
|
-
|
|
70
|
-
# from LangBot; keep local SDK installed
|
|
60
|
+
# from the repository root: overlay the in-tree SDK on Core's venv
|
|
61
|
+
uv sync --dev
|
|
62
|
+
uv pip install ./sdk
|
|
71
63
|
uv run --no-sync main.py
|
|
72
64
|
```
|
|
73
65
|
|
|
66
|
+
CI does the same in the `Core with in-tree SDK` job (`.github/workflows/run-tests.yml`); the SDK's own suite runs in `sdk-tests.yml`.
|
|
67
|
+
|
|
74
68
|
Standalone runtime flows:
|
|
75
69
|
|
|
76
70
|
```bash
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Architecture
|
|
2
2
|
|
|
3
|
-
This document maps the `langbot-plugin-sdk` repository. It explains the durable structure and cross-process contracts. For working rules, commands, and pitfalls, see `AGENTS.md`.
|
|
3
|
+
This document maps the plugin SDK in `sdk/` of the LangBot monorepo (formerly the `langbot-plugin-sdk` repository). It explains the durable structure and cross-process contracts. For working rules, commands, and pitfalls, see `AGENTS.md`.
|
|
4
4
|
|
|
5
|
-
## What This
|
|
5
|
+
## What This Package Is
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
The plugin SDK is the infrastructure package behind LangBot's plugin and sandbox systems. It is published to PyPI as `langbot-plugin` (tags `sdk/vX.Y.Z`) and pinned exactly by LangBot Core.
|
|
8
8
|
|
|
9
9
|
The package has four roles:
|
|
10
10
|
|
|
@@ -13,22 +13,22 @@ The package has four roles:
|
|
|
13
13
|
- **Plugin Runtime**: `lbp rt`, the host process that manages plugin packages and plugin processes.
|
|
14
14
|
- **Box Runtime**: `lbp box`, the sandbox runtime used by LangBot's Box subsystem.
|
|
15
15
|
|
|
16
|
-
The runtime code under `src/langbot_plugin/runtime/` is AGPL; the rest of the
|
|
16
|
+
The runtime code under `src/langbot_plugin/runtime/` is AGPL; the rest of the package is Apache 2.0.
|
|
17
17
|
|
|
18
18
|
## Repository Boundary
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
The SDK shares the LangBot repository but is versioned and released separately.
|
|
21
21
|
|
|
22
|
-
-
|
|
23
|
-
-
|
|
22
|
+
- LangBot Core (`../src/langbot/`) owns product behavior, HTTP API, web UI, platform adapters, pipeline execution, model/tool orchestration, persistence, skills integration, and the LangBot-side runtime connectors.
|
|
23
|
+
- The SDK (`sdk/`) owns plugin author APIs, shared message/event/context entities, the action RPC protocol, the execution-independent filesystem Skill store, `lbp`, Plugin Runtime implementation, and Box Runtime implementation.
|
|
24
24
|
- Plugins import this package directly; LangBot also imports it for shared entities and runtime protocols.
|
|
25
25
|
|
|
26
|
-
If a change alters shared entities, component contracts, action names/payloads, runtime behavior, or Box models,
|
|
26
|
+
If a change alters shared entities, component contracts, action names/payloads, runtime behavior, or Box models, change and test SDK and Core together in one PR, and release the SDK before the Core release that depends on it.
|
|
27
27
|
|
|
28
28
|
## Top-Level Layout
|
|
29
29
|
|
|
30
30
|
```text
|
|
31
|
-
|
|
31
|
+
sdk/
|
|
32
32
|
├── src/langbot_plugin/
|
|
33
33
|
│ ├── api/ # Public plugin-author SDK
|
|
34
34
|
│ │ ├── definition/ # BasePlugin, components, manifests
|
|
@@ -446,6 +446,7 @@ Important modules:
|
|
|
446
446
|
|
|
447
447
|
- `box/server.py`: CLI entrypoint, aiohttp WebSocket routes, `BoxServerHandler` action registration.
|
|
448
448
|
- `box/runtime.py`: session lifecycle, per-session locks, TTL cleanup, command execution, managed processes.
|
|
449
|
+
- `box/artifact_cache.py`: Workspace-scoped verified packages, atomic read-only publication, session pins and capacity/idle GC under the Runtime identity data root.
|
|
449
450
|
- `box/models.py`: generic `BoxSpec`/read-only mount contracts, execution results, managed-process specs.
|
|
450
451
|
- `box/client.py`: action-RPC client used by LangBot-side connector/service.
|
|
451
452
|
- `box/actions.py`: `LangBotToBoxAction` enum.
|
|
@@ -471,7 +472,21 @@ and only then advances the registry pointer. Updates require the current
|
|
|
471
472
|
active or recoverable runs. Former mutable package directories are only a
|
|
472
473
|
one-time online-upgrade import source.
|
|
473
474
|
|
|
474
|
-
|
|
475
|
+
`export_skill_publication` and `restore_skill_publication` preserve an exact
|
|
476
|
+
publication across disposable stores without changing its tree revision.
|
|
477
|
+
Core's optional database repository uses these helpers for temporary CRUD and
|
|
478
|
+
verified execution caches; its database CAS owns the authoritative catalog.
|
|
479
|
+
|
|
480
|
+
The `PREPARE_ARTIFACT` action accepts a generic manifest/tree digest and a completed
|
|
481
|
+
namespace-owned archive transfer. Cache hits still require the trusted current
|
|
482
|
+
Workspace context and admission. `BoxSpec.artifact_mounts` references only digests;
|
|
483
|
+
Runtime resolves them into its own read-only mounts and protects them until session
|
|
484
|
+
cleanup finishes. It does not resolve a Core path or expose its cache host path.
|
|
485
|
+
The Core Host-only preparation seam is available before the separate migration of
|
|
486
|
+
native Skill execution and draft publication. See
|
|
487
|
+
[Runtime artifact cache](../dev-docs/BOX_ARTIFACT_CACHE.md) for limits and ownership.
|
|
488
|
+
|
|
489
|
+
LangBot Core also composes pinned revisions into generic read-only `BoxMountSpec`
|
|
475
490
|
values. Ordinary fixed mounts include `content_digest` and `manifest_path` in
|
|
476
491
|
the session signature; supported digest-addressed packages are excluded from it.
|
|
477
492
|
Digest-addressed packages use the reserved
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
# Contributing to
|
|
1
|
+
# Contributing to the LangBot plugin SDK
|
|
2
|
+
|
|
3
|
+
The SDK lives in [`sdk/`](https://github.com/langbot-app/LangBot/tree/master/sdk) of the LangBot repository; open issues and pull requests there. The former `langbot-app/langbot-plugin-sdk` repository is archived.
|
|
2
4
|
|
|
3
5
|
Thank you for your interest in contributing! For general contribution guidelines, please refer to the [LangBot contribution guide](https://github.com/langbot-app/LangBot/blob/master/CONTRIBUTING.md).
|
|
4
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: langbot-plugin
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.25
|
|
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
|
-
Project-URL: Repository, https://github.com/langbot-app/
|
|
7
|
-
Project-URL: Issues, https://github.com/langbot-app/
|
|
6
|
+
Project-URL: Repository, https://github.com/langbot-app/LangBot/tree/master/sdk
|
|
7
|
+
Project-URL: Issues, https://github.com/langbot-app/LangBot/issues
|
|
8
8
|
Author-email: Junyan Qin <rockchinq@gmail.com>
|
|
9
9
|
License-File: LICENSE
|
|
10
10
|
Requires-Python: >=3.10
|
|
@@ -47,8 +47,10 @@ English / [简体中文](README_CN.md)
|
|
|
47
47
|
|
|
48
48
|
## Overview
|
|
49
49
|
|
|
50
|
-
This
|
|
51
|
-
sandbox subsystems.
|
|
50
|
+
This package is the shared infrastructure powering LangBot's plugin and
|
|
51
|
+
sandbox subsystems. Its source lives in
|
|
52
|
+
[`sdk/`](https://github.com/langbot-app/LangBot/tree/master/sdk) of the LangBot
|
|
53
|
+
repository. It is published to PyPI as the single
|
|
52
54
|
[`langbot-plugin`](https://pypi.org/project/langbot-plugin/) package and ships
|
|
53
55
|
three things:
|
|
54
56
|
|
|
@@ -62,10 +64,10 @@ three things:
|
|
|
62
64
|
development only.
|
|
63
65
|
|
|
64
66
|
LangBot depends on this package as the pinned `langbot-plugin==<x.y.z>` in its
|
|
65
|
-
`pyproject.toml`; the canonical version lives in
|
|
67
|
+
`pyproject.toml`; the canonical version lives in `sdk/pyproject.toml`.
|
|
66
68
|
|
|
67
69
|
> The **Runtime** component (`src/langbot_plugin/runtime/`) is licensed
|
|
68
|
-
> separately under **AGPL**; everything else in this
|
|
70
|
+
> separately under **AGPL**; everything else in this package is **Apache 2.0**.
|
|
69
71
|
> See [`src/langbot_plugin/runtime/README.md`](src/langbot_plugin/runtime/README.md).
|
|
70
72
|
|
|
71
73
|
## Install
|
|
@@ -117,9 +119,24 @@ harness execution policy, process launch details, authentication, workspace
|
|
|
117
119
|
selection, and provider-specific behavior belong to the runner/plugin package or
|
|
118
120
|
a deployment-owned remote daemon or managed agent platform.
|
|
119
121
|
|
|
122
|
+
Runner delivery remains backward compatible: `steering_pull()` consumes inputs
|
|
123
|
+
by default; `claim=True` opts into leased delivery and requires `steering_ack()`.
|
|
124
|
+
Acknowledgement and recovery control calls can finish after the source execution
|
|
125
|
+
deadline, subject to Host authorization. `run.cancelled` is a terminal result.
|
|
126
|
+
|
|
127
|
+
Runners that implement checkpoint recovery declare `spec.resume: true`. Runtime
|
|
128
|
+
advertises it through descriptor metadata, which older Hosts can ignore without
|
|
129
|
+
rejecting the existing capability schema. A Host retry/resume returns a new run
|
|
130
|
+
ID with a fresh deadline and current resource grants; an externally queued run
|
|
131
|
+
retains requeue semantics. Resume receives bounded source events in
|
|
132
|
+
`ctx.runtime.metadata["recovery"]`; it must restore committed work or fail rather
|
|
133
|
+
than silently restart. The cursor fences the latest committed source result and
|
|
134
|
+
does not rewind external effects. This is at-least-once delivery, not a promise
|
|
135
|
+
of exactly-once tool execution.
|
|
136
|
+
|
|
120
137
|
## ExecutionAPI 操作一览与作用域说明
|
|
121
138
|
|
|
122
|
-
LangBot Core 通过统一的 `ExecutionAPI` facade 暴露
|
|
139
|
+
LangBot Core 通过统一的 `ExecutionAPI` facade 暴露 80 项核心业务能力。插件与 Agent Runner 统一经由该 facade 与 SDK 入口访问。
|
|
123
140
|
|
|
124
141
|
- **通用执行入口**: `api.execution.invoke(operation_id, **arguments)` 与 `api.execution.stream(...)`。
|
|
125
142
|
- **Box 沙箱代理扩展**: `LangBotAPIProxy` 现已提供 `@run_scoped` 的 `bind_box`, `import_box_attachments`, `export_box_files`。
|
|
@@ -18,8 +18,10 @@ English / [简体中文](README_CN.md)
|
|
|
18
18
|
|
|
19
19
|
## Overview
|
|
20
20
|
|
|
21
|
-
This
|
|
22
|
-
sandbox subsystems.
|
|
21
|
+
This package is the shared infrastructure powering LangBot's plugin and
|
|
22
|
+
sandbox subsystems. Its source lives in
|
|
23
|
+
[`sdk/`](https://github.com/langbot-app/LangBot/tree/master/sdk) of the LangBot
|
|
24
|
+
repository. It is published to PyPI as the single
|
|
23
25
|
[`langbot-plugin`](https://pypi.org/project/langbot-plugin/) package and ships
|
|
24
26
|
three things:
|
|
25
27
|
|
|
@@ -33,10 +35,10 @@ three things:
|
|
|
33
35
|
development only.
|
|
34
36
|
|
|
35
37
|
LangBot depends on this package as the pinned `langbot-plugin==<x.y.z>` in its
|
|
36
|
-
`pyproject.toml`; the canonical version lives in
|
|
38
|
+
`pyproject.toml`; the canonical version lives in `sdk/pyproject.toml`.
|
|
37
39
|
|
|
38
40
|
> The **Runtime** component (`src/langbot_plugin/runtime/`) is licensed
|
|
39
|
-
> separately under **AGPL**; everything else in this
|
|
41
|
+
> separately under **AGPL**; everything else in this package is **Apache 2.0**.
|
|
40
42
|
> See [`src/langbot_plugin/runtime/README.md`](src/langbot_plugin/runtime/README.md).
|
|
41
43
|
|
|
42
44
|
## Install
|
|
@@ -88,9 +90,24 @@ harness execution policy, process launch details, authentication, workspace
|
|
|
88
90
|
selection, and provider-specific behavior belong to the runner/plugin package or
|
|
89
91
|
a deployment-owned remote daemon or managed agent platform.
|
|
90
92
|
|
|
93
|
+
Runner delivery remains backward compatible: `steering_pull()` consumes inputs
|
|
94
|
+
by default; `claim=True` opts into leased delivery and requires `steering_ack()`.
|
|
95
|
+
Acknowledgement and recovery control calls can finish after the source execution
|
|
96
|
+
deadline, subject to Host authorization. `run.cancelled` is a terminal result.
|
|
97
|
+
|
|
98
|
+
Runners that implement checkpoint recovery declare `spec.resume: true`. Runtime
|
|
99
|
+
advertises it through descriptor metadata, which older Hosts can ignore without
|
|
100
|
+
rejecting the existing capability schema. A Host retry/resume returns a new run
|
|
101
|
+
ID with a fresh deadline and current resource grants; an externally queued run
|
|
102
|
+
retains requeue semantics. Resume receives bounded source events in
|
|
103
|
+
`ctx.runtime.metadata["recovery"]`; it must restore committed work or fail rather
|
|
104
|
+
than silently restart. The cursor fences the latest committed source result and
|
|
105
|
+
does not rewind external effects. This is at-least-once delivery, not a promise
|
|
106
|
+
of exactly-once tool execution.
|
|
107
|
+
|
|
91
108
|
## ExecutionAPI 操作一览与作用域说明
|
|
92
109
|
|
|
93
|
-
LangBot Core 通过统一的 `ExecutionAPI` facade 暴露
|
|
110
|
+
LangBot Core 通过统一的 `ExecutionAPI` facade 暴露 80 项核心业务能力。插件与 Agent Runner 统一经由该 facade 与 SDK 入口访问。
|
|
94
111
|
|
|
95
112
|
- **通用执行入口**: `api.execution.invoke(operation_id, **arguments)` 与 `api.execution.stream(...)`。
|
|
96
113
|
- **Box 沙箱代理扩展**: `LangBotAPIProxy` 现已提供 `@run_scoped` 的 `bind_box`, `import_box_attachments`, `export_box_files`。
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
|
|
19
19
|
## 简介
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
此包是支撑 LangBot **插件系统**与**代码沙箱**的共享基础设施,源码位于 LangBot 仓库的
|
|
22
|
+
[`sdk/`](https://github.com/langbot-app/LangBot/tree/master/sdk) 目录,以单一的
|
|
22
23
|
[`langbot-plugin`](https://pypi.org/project/langbot-plugin/) 包发布到 PyPI,包含三部分:
|
|
23
24
|
|
|
24
25
|
- **插件 SDK 与 CLI**(`lbp`)—— 插件开发的 Python API、基类,以及用于脚手架、
|
|
@@ -30,10 +31,10 @@
|
|
|
30
31
|
不具备沙箱隔离能力的 `host` 后端。
|
|
31
32
|
|
|
32
33
|
LangBot 通过 `pyproject.toml` 中固定的 `langbot-plugin==<x.y.z>` 依赖此包;
|
|
33
|
-
|
|
34
|
+
版本号以 `sdk/pyproject.toml` 为准。
|
|
34
35
|
|
|
35
36
|
> **运行时**组件(`src/langbot_plugin/runtime/`)单独采用 **AGPL** 许可证,
|
|
36
|
-
>
|
|
37
|
+
> 其余部分采用 **Apache 2.0**,详见
|
|
37
38
|
> [`src/langbot_plugin/runtime/README.md`](src/langbot_plugin/runtime/README.md)。
|
|
38
39
|
|
|
39
40
|
## 安装
|
|
@@ -88,6 +89,6 @@ LangBot Core 通过统一的 `ExecutionAPI` facade 暴露 69 项核心业务能
|
|
|
88
89
|
|
|
89
90
|
## 许可证
|
|
90
91
|
|
|
91
|
-
|
|
92
|
+
本包采用 Apache 2.0,但插件运行时(`src/langbot_plugin/runtime/`)单独采用
|
|
92
93
|
AGPL。详见 [LICENSE](LICENSE) 与
|
|
93
94
|
[运行时 README](src/langbot_plugin/runtime/README.md)。
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Releasing the plugin SDK (`langbot-plugin`)
|
|
2
|
+
|
|
3
|
+
The SDK shares the LangBot repository with Core and the official plugins, but it
|
|
4
|
+
has its own version (`sdk/pyproject.toml` and `src/langbot_plugin/version.py`),
|
|
5
|
+
its own CI (`.github/workflows/sdk-*.yml`) and its own PyPI package.
|
|
6
|
+
|
|
7
|
+
## Rules
|
|
8
|
+
|
|
9
|
+
- Release by pushing a tag named `sdk/vX.Y.Z` (pre-releases: `sdk/vX.Y.ZrcN`).
|
|
10
|
+
`.github/workflows/sdk-publish.yml` checks that the tag matches
|
|
11
|
+
`sdk/pyproject.toml`, builds `sdk/` and publishes `langbot-plugin` to PyPI. If the
|
|
12
|
+
version is already on PyPI it uploads nothing.
|
|
13
|
+
- **Never create a GitHub Release for the SDK.** Every `release: published`
|
|
14
|
+
event in this repository belongs to Core: Docker `latest`, Core PyPI, release
|
|
15
|
+
assets, fnOS, Discord and changelog sync listen to it, and LangBot Space's
|
|
16
|
+
update check reads this repository's release list. Core release workflows only
|
|
17
|
+
accept `v*` tags, but a SDK release in the list would still hide Core updates
|
|
18
|
+
from deployed instances. Write SDK release notes in the PR that bumps the version.
|
|
19
|
+
- Never use plain `vX.Y.Z` tags for the SDK; those are Core releases.
|
|
20
|
+
- Core installs the SDK from PyPI through the exact pin `langbot-plugin==X` in
|
|
21
|
+
the root `pyproject.toml`. Core artifacts (wheel, sdist, Docker context,
|
|
22
|
+
release ZIP, fnOS package) exclude `sdk/`.
|
|
23
|
+
|
|
24
|
+
## Steps
|
|
25
|
+
|
|
26
|
+
1. Bump `version` in `sdk/pyproject.toml` and `src/langbot_plugin/version.py`
|
|
27
|
+
(`tests/packaging/test_release_metadata.py` checks they match) and merge.
|
|
28
|
+
2. Tag the merged commit and push the tag:
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
git tag sdk/v0.7.25 <commit>
|
|
32
|
+
git push origin sdk/v0.7.25
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
3. Confirm the **SDK / Publish to PyPI** run and the new version on
|
|
36
|
+
https://pypi.org/project/langbot-plugin/.
|
|
37
|
+
4. When Core needs the release, bump `langbot-plugin==X` in the root
|
|
38
|
+
`pyproject.toml`, run `uv lock`, and release Core as usual.
|
|
39
|
+
|
|
40
|
+
## Core release gate
|
|
41
|
+
|
|
42
|
+
`scripts/check_sdk_release_pin.py` runs in the Core PyPI and Docker release
|
|
43
|
+
workflows. It fails when:
|
|
44
|
+
|
|
45
|
+
- Core's pin differs from `sdk/pyproject.toml`;
|
|
46
|
+
- that version is not on PyPI;
|
|
47
|
+
- the tag `sdk/v<pin>` is missing, or `sdk/src` / `sdk/pyproject.toml` changed
|
|
48
|
+
after it (unreleased SDK code in the Core release commit).
|
|
49
|
+
|
|
50
|
+
When it fails, release the SDK first and bump the pin, or revert the unreleased
|
|
51
|
+
SDK change on the release branch.
|
|
52
|
+
|
|
53
|
+
## History
|
|
54
|
+
|
|
55
|
+
The SDK was imported as a snapshot of `langbot-app/langbot-plugin-sdk` v0.7.24
|
|
56
|
+
(`sdk/SOURCE.json`). Older history, issues, pull requests and the `v0.x` tags
|
|
57
|
+
remain in that archived repository. The baseline tag `sdk/v0.7.24` marks the
|
|
58
|
+
import in this repository.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"repository": "langbot-app/langbot-plugin-sdk",
|
|
3
|
+
"revision": "76443bb83b4bd969588a0e6a85884fd1e1b3b6ee",
|
|
4
|
+
"tag": "v0.7.24",
|
|
5
|
+
"version": "0.7.24",
|
|
6
|
+
"tracked_files": 430,
|
|
7
|
+
"note": "Snapshot import without history. Earlier history, issues and pull requests stay in the archived langbot-app/langbot-plugin-sdk repository. Its .github/ workflows were replaced by sdk-*.yml workflows at the LangBot repository root."
|
|
8
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ExecutionAPI 操作一览与作用域说明
|
|
2
2
|
|
|
3
|
-
LangBot Core 通过统一的 `ExecutionAPI` facade 暴露
|
|
3
|
+
LangBot Core 通过统一的 `ExecutionAPI` facade 暴露 80 项核心业务能力。插件与 Agent Runner 可以通过统一的授权契约与 SDK 入口调用这些能力。
|
|
4
4
|
|
|
5
5
|
## 作用域(Scopes)说明
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ ExecutionAPI 定义了严格的作用域划分,防止权限提升与越权访
|
|
|
9
9
|
| 作用域 | 标识 | 说明 |
|
|
10
10
|
| :--- | :--- | :--- |
|
|
11
11
|
| **Plugin** | `plugin` | 插件安装级别能力。仅在非 Run 上下文或具有插件完整 InstallationBinding 时可用。Run 上下文无法降级使用此类操作。 |
|
|
12
|
-
| **Run** | `run` | 单次 Agent Run 作用域。必须携带有效的 `run_id
|
|
12
|
+
| **Run** | `run` | 单次 Agent Run 作用域。必须携带有效的 `run_id`,且按该 Run 的授权范围严格受限,调用时自动校验该 Run 的授权范围(如 Tool、Box 等资源)。 |
|
|
13
13
|
| **Runner Admin** | `runner_admin` | 运行器管理级别能力(如 Run 查询、状态恢复等)。需要特定的运行器管理权限,支持根据 AgentRun 授权快照恢复过期的 Run 上下文。 |
|
|
14
14
|
| **Plugin or Run** | `plugin_or_run` | 双模作用域能力(如 LLM 调用、存储操作等)。在 Run 上下文中调用时携带 Run 授权与审计标识;在普通插件事件上下文调用时使用插件安装级别凭证。 |
|
|
15
15
|
|
|
@@ -59,7 +59,7 @@ async for chunk in api.execution.stream(
|
|
|
59
59
|
|
|
60
60
|
---
|
|
61
61
|
|
|
62
|
-
##
|
|
62
|
+
## 80 项操作完整清单
|
|
63
63
|
|
|
64
64
|
本表与 `tests/data/execution_api_catalog.json`(由 LangBot Core 的 `scripts/export_execution_catalog.py` 导出)一致,由 `tests/api/test_execution_api_consistency.py` 校验。
|
|
65
65
|
|
|
@@ -72,6 +72,9 @@ async for chunk in api.execution.stream(
|
|
|
72
72
|
| `execution.get_query_vars` | `plugin` | 否 | 否 | 获取当前查询的所有变量 |
|
|
73
73
|
| `execution.create_new_conversation` | `plugin` | 是 | 否 | 为当前查询创建新会话 |
|
|
74
74
|
| `execution.get_langbot_version` | `plugin_or_run` | 否 | 否 | 获取 LangBot Core 版本与 API 特性 |
|
|
75
|
+
| `execution.list_tools` | `plugin` | 否 | 否 | 列出插件可访问的工具 |
|
|
76
|
+
| `execution.list_commands` | `plugin` | 否 | 否 | 列出插件可访问的命令 |
|
|
77
|
+
| `execution.list_plugins_manifest` | `plugin` | 否 | 否 | 列出插件 manifest |
|
|
75
78
|
| `execution.get_bots` | `plugin` | 否 | 否 | 获取已配置的机器人列表 |
|
|
76
79
|
| `execution.get_bot_info` | `plugin` | 否 | 否 | 获取指定机器人的详细信息 |
|
|
77
80
|
| `execution.send_message` | `plugin_or_run` | 是 | 否 | 向目标实体主动发送消息 |
|
|
@@ -108,6 +111,7 @@ async for chunk in api.execution.stream(
|
|
|
108
111
|
| `execution.event_get` | `run` | 否 | 否 | 获取特定历史事件的详情 |
|
|
109
112
|
| `execution.event_page` | `run` | 否 | 否 | 分页读取当前会话的事件记录 |
|
|
110
113
|
| `execution.steering_pull` | `run` | 是 | 否 | 拉取用户在运行中追加的引导消息 |
|
|
114
|
+
| `execution.steering_ack` | `run` | 是 | 否 | 确认已领取的引导消息;校验当前或持久化 Run 授权 |
|
|
111
115
|
| `execution.state_get` | `run` | 否 | 否 | 获取 Agent 作用域状态值 |
|
|
112
116
|
| `execution.state_set` | `run` | 是 | 否 | 设置 Agent 作用域状态值 |
|
|
113
117
|
| `execution.state_delete` | `run` | 是 | 否 | 删除 Agent 状态值 |
|
|
@@ -123,6 +127,9 @@ async for chunk in api.execution.stream(
|
|
|
123
127
|
| `execution.run_list` | `runner_admin` | 否 | 否 | 管理员分页查询历史 Agent Run 列表 |
|
|
124
128
|
| `execution.run_events_page` | `runner_admin` | 否 | 否 | 分页读取指定运行的事件 |
|
|
125
129
|
| `execution.run_cancel` | `runner_admin` | 是 | 否 | 取消指定运行(Runner 管理) |
|
|
130
|
+
| `execution.run_retry` | `runner_admin` | 是 | 否 | 按当前授权创建重试 Run,或重新入队外部任务 |
|
|
131
|
+
| `execution.run_resume` | `runner_admin` | 是 | 否 | 从已提交检查点创建恢复 Run |
|
|
132
|
+
| `execution.run_cancel_ack` | `runner_admin` | 是 | 否 | 确认运行取消后的资源清理 |
|
|
126
133
|
| `execution.run_append_result` | `runner_admin` | 是 | 否 | 向指定运行追加结果(Runner 管理) |
|
|
127
134
|
| `execution.run_finalize` | `runner_admin` | 是 | 否 | 结束指定运行并写入最终状态 |
|
|
128
135
|
| `execution.runner_list` | `runner_admin` | 否 | 否 | 列出已注册的 Runner |
|
|
@@ -136,8 +143,8 @@ async for chunk in api.execution.stream(
|
|
|
136
143
|
| `execution.run_claim` | `runner_admin` | 是 | 否 | 为外部 Runtime 认领待执行的运行 |
|
|
137
144
|
| `execution.run_renew_claim` | `runner_admin` | 是 | 否 | 续期对运行的认领 |
|
|
138
145
|
| `execution.run_release_claim` | `runner_admin` | 是 | 否 | 释放对运行的认领 |
|
|
139
|
-
| `execution.list_application_operations` | `
|
|
140
|
-
| `execution.call_application_operation` | `
|
|
146
|
+
| `execution.list_application_operations` | `plugin_or_run` | 否 | 否 | 列出本次运行被授权的 ApplicationAPI 工作区操作及其 schema |
|
|
147
|
+
| `execution.call_application_operation` | `plugin_or_run` | 是 | 否 | 以处理器身份调用本次运行被授权的 ApplicationAPI 工作区操作 |
|
|
141
148
|
|
|
142
149
|
---
|
|
143
150
|
|
{langbot_plugin-0.7.24 → langbot_plugin-0.7.25}/examples/workspace_runner_plugin/manifest.yaml
RENAMED
|
@@ -3,7 +3,7 @@ kind: Plugin
|
|
|
3
3
|
metadata:
|
|
4
4
|
author: LangBot
|
|
5
5
|
name: WorkspaceRunnerExample
|
|
6
|
-
repository: https://github.com/langbot-app/
|
|
6
|
+
repository: https://github.com/langbot-app/LangBot/tree/master/sdk/examples/workspace_runner_plugin
|
|
7
7
|
version: 0.1.0
|
|
8
8
|
description:
|
|
9
9
|
en_US: Minimal runner plugin that calls workspace operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "langbot-plugin"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.25"
|
|
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 = [
|
|
@@ -44,8 +44,8 @@ build-backend = "hatchling.build"
|
|
|
44
44
|
|
|
45
45
|
[project.urls]
|
|
46
46
|
Homepage = "https://langbot.app"
|
|
47
|
-
Repository = "https://github.com/langbot-app/
|
|
48
|
-
Issues = "https://github.com/langbot-app/
|
|
47
|
+
Repository = "https://github.com/langbot-app/LangBot/tree/master/sdk"
|
|
48
|
+
Issues = "https://github.com/langbot-app/LangBot/issues"
|
|
49
49
|
|
|
50
50
|
[tool.setuptools]
|
|
51
51
|
package-data = { "langbot_plugin" = ["assets/templates/*", "assets/*.js"] }
|
|
@@ -108,7 +108,11 @@ class Runner(BaseComponent):
|
|
|
108
108
|
"Runner result belongs to a different invocation"
|
|
109
109
|
)
|
|
110
110
|
await results.put(result)
|
|
111
|
-
if result.type in {
|
|
111
|
+
if result.type in {
|
|
112
|
+
"run.completed",
|
|
113
|
+
"run.failed",
|
|
114
|
+
"run.cancelled",
|
|
115
|
+
}:
|
|
112
116
|
terminal = True
|
|
113
117
|
break
|
|
114
118
|
finally:
|
|
@@ -99,6 +99,7 @@ from langbot_plugin.api.entities.builtin.runner.errors import (
|
|
|
99
99
|
AgentAPIException,
|
|
100
100
|
)
|
|
101
101
|
from langbot_plugin.api.entities.builtin.runner.steering import (
|
|
102
|
+
SteeringAckResult,
|
|
102
103
|
SteeringInputItem,
|
|
103
104
|
SteeringPullResult,
|
|
104
105
|
)
|
|
@@ -188,6 +189,7 @@ __all__ = [
|
|
|
188
189
|
# Steering API
|
|
189
190
|
"SteeringInputItem",
|
|
190
191
|
"SteeringPullResult",
|
|
192
|
+
"SteeringAckResult",
|
|
191
193
|
# Error model
|
|
192
194
|
"AgentAPIError",
|
|
193
195
|
"AgentAPIException",
|
|
@@ -19,7 +19,10 @@ from langbot_plugin.api.entities.builtin.runner.page_results import (
|
|
|
19
19
|
AgentEventRecord,
|
|
20
20
|
EventPage,
|
|
21
21
|
)
|
|
22
|
-
from langbot_plugin.api.entities.builtin.runner.steering import
|
|
22
|
+
from langbot_plugin.api.entities.builtin.runner.steering import (
|
|
23
|
+
SteeringAckResult,
|
|
24
|
+
SteeringPullResult,
|
|
25
|
+
)
|
|
23
26
|
|
|
24
27
|
import pydantic
|
|
25
28
|
from langbot_plugin.api.entities.builtin.runner.trigger import AgentTrigger
|
|
@@ -289,10 +292,14 @@ class RunnerContext(pydantic.BaseModel):
|
|
|
289
292
|
)
|
|
290
293
|
|
|
291
294
|
async def steering_pull(
|
|
292
|
-
self, mode: str = "all", limit: int | None = None
|
|
295
|
+
self, mode: str = "all", limit: int | None = None, claim: bool = False
|
|
293
296
|
) -> SteeringPullResult:
|
|
294
297
|
"""Pull pending run-scoped steering/follow-up input."""
|
|
295
|
-
return await self.api.steering_pull(mode=mode, limit=limit)
|
|
298
|
+
return await self.api.steering_pull(mode=mode, limit=limit, claim=claim)
|
|
299
|
+
|
|
300
|
+
async def steering_ack(self, delivery_ids: list[str]) -> SteeringAckResult:
|
|
301
|
+
"""Acknowledge claimed steering inputs after applying them."""
|
|
302
|
+
return await self.api.steering_ack(delivery_ids=delivery_ids)
|
|
296
303
|
|
|
297
304
|
async def state_get(self, scope: str, key: str) -> dict[str, Any]:
|
|
298
305
|
"""Get a state value from host-owned state store."""
|
|
@@ -354,6 +361,40 @@ class RunnerContext(pydantic.BaseModel):
|
|
|
354
361
|
"""Request cancellation for one Host-owned run."""
|
|
355
362
|
return await self.api.run_cancel(run_id=run_id, reason=reason)
|
|
356
363
|
|
|
364
|
+
async def run_cancel_ack(
|
|
365
|
+
self,
|
|
366
|
+
run_id: str | None = None,
|
|
367
|
+
reason: str | None = None,
|
|
368
|
+
cleanup_confirmed: bool = True,
|
|
369
|
+
) -> AgentRun:
|
|
370
|
+
"""Acknowledge completed cancellation cleanup."""
|
|
371
|
+
return await self.api.run_cancel_ack(
|
|
372
|
+
run_id=run_id,
|
|
373
|
+
reason=reason,
|
|
374
|
+
cleanup_confirmed=cleanup_confirmed,
|
|
375
|
+
)
|
|
376
|
+
|
|
377
|
+
async def run_retry(
|
|
378
|
+
self,
|
|
379
|
+
run_id: str | None = None,
|
|
380
|
+
reason: str | None = None,
|
|
381
|
+
) -> AgentRun:
|
|
382
|
+
"""Start a fresh Host attempt, or re-queue an externally dispatched run."""
|
|
383
|
+
return await self.api.run_retry(run_id=run_id, reason=reason)
|
|
384
|
+
|
|
385
|
+
async def run_resume(
|
|
386
|
+
self,
|
|
387
|
+
run_id: str | None = None,
|
|
388
|
+
from_sequence: int | None = None,
|
|
389
|
+
reason: str | None = None,
|
|
390
|
+
) -> AgentRun:
|
|
391
|
+
"""Resume in a fresh Host attempt using the latest committed result cursor."""
|
|
392
|
+
return await self.api.run_resume(
|
|
393
|
+
run_id=run_id,
|
|
394
|
+
from_sequence=from_sequence,
|
|
395
|
+
reason=reason,
|
|
396
|
+
)
|
|
397
|
+
|
|
357
398
|
async def run_append_result(self, result: RunnerResult) -> AgentRunEvent:
|
|
358
399
|
"""Append one result event to a Host-owned run ledger."""
|
|
359
400
|
return await self.api.run_append_result(result=result)
|
|
@@ -363,9 +404,19 @@ class RunnerContext(pydantic.BaseModel):
|
|
|
363
404
|
run_id: str | None = None,
|
|
364
405
|
status: str | None = None,
|
|
365
406
|
reason: str | None = None,
|
|
407
|
+
usage: dict[str, Any] | None = None,
|
|
408
|
+
cost: dict[str, Any] | None = None,
|
|
409
|
+
metadata: dict[str, Any] | None = None,
|
|
366
410
|
) -> AgentRun:
|
|
367
411
|
"""Finalize one Host-owned run ledger record."""
|
|
368
|
-
return await self.api.run_finalize(
|
|
412
|
+
return await self.api.run_finalize(
|
|
413
|
+
run_id=run_id,
|
|
414
|
+
status=status,
|
|
415
|
+
reason=reason,
|
|
416
|
+
usage=usage,
|
|
417
|
+
cost=cost,
|
|
418
|
+
metadata=metadata,
|
|
419
|
+
)
|
|
369
420
|
|
|
370
421
|
async def log(self, text: str, level: str = "info") -> None:
|
|
371
422
|
"""Record a log for this invocation without sending a platform message."""
|
|
@@ -67,6 +67,9 @@ class ContextAPICapabilities(pydantic.BaseModel):
|
|
|
67
67
|
steering_pull: bool = False
|
|
68
68
|
"""Whether run-scoped steering/follow-up pull API is available."""
|
|
69
69
|
|
|
70
|
+
steering_ack: bool = False
|
|
71
|
+
"""Whether claimed steering inputs can be acknowledged."""
|
|
72
|
+
|
|
70
73
|
run_get: bool = False
|
|
71
74
|
"""Whether run.get API is available."""
|
|
72
75
|
|
|
@@ -79,6 +82,15 @@ class ContextAPICapabilities(pydantic.BaseModel):
|
|
|
79
82
|
run_cancel: bool = False
|
|
80
83
|
"""Whether run.cancel API is available."""
|
|
81
84
|
|
|
85
|
+
run_cancel_ack: bool = False
|
|
86
|
+
"""Whether cancellation completion can be acknowledged."""
|
|
87
|
+
|
|
88
|
+
run_retry: bool = False
|
|
89
|
+
"""Whether a terminal run can be re-queued for retry."""
|
|
90
|
+
|
|
91
|
+
run_resume: bool = False
|
|
92
|
+
"""Whether a terminal run can be re-queued with a resume cursor."""
|
|
93
|
+
|
|
82
94
|
run_append_result: bool = False
|
|
83
95
|
"""Whether run.append_result API is available."""
|
|
84
96
|
|