langbot-plugin 0.7.25__tar.gz → 0.7.26__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.25 → langbot_plugin-0.7.26}/AGENTS.md +5 -6
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/ARCHITECTURE.md +72 -25
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/PKG-INFO +1 -1
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/RELEASING.md +13 -7
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/docs/execution_api.md +5 -2
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/pyproject.toml +1 -1
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/agent_tools/external_tools.py +108 -10
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/box.py +5 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/context.py +12 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/input.py +1 -1
- langbot_plugin-0.7.26/src/langbot_plugin/api/proxies/artifacts.py +142 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/langbot_api.py +73 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/runner/box.py +40 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/runner/common.py +7 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/runner/context.py +30 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/runner/tracing.py +27 -1
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/workspace.py +6 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/workspace_domains.py +78 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/box/actions.py +1 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/box/artifact_cache.py +40 -3
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/box/backend.py +271 -5
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/box/client.py +98 -5
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/box/e2b_backend.py +61 -4
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/box/errors.py +8 -0
- langbot_plugin-0.7.26/src/langbot_plugin/box/file_io.py +517 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/box/host_backend.py +173 -20
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/box/models.py +34 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/box/runtime.py +596 -53
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/box/server.py +34 -4
- langbot_plugin-0.7.26/src/langbot_plugin/box/windows_export.py +152 -0
- langbot_plugin-0.7.26/src/langbot_plugin/box/windows_file_io.py +200 -0
- langbot_plugin-0.7.26/src/langbot_plugin/box/windows_job.py +56 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/entities/io/actions/enums.py +3 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/handler.py +96 -35
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/handlers/plugin.py +33 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/plugin/mgr.py +29 -3
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/skill_store.py +425 -33
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/utils/packaging.py +13 -3
- langbot_plugin-0.7.26/src/langbot_plugin/version.py +1 -0
- langbot_plugin-0.7.26/tests/api/proxies/test_artifacts_api.py +95 -0
- langbot_plugin-0.7.26/tests/api/proxies/test_box_api.py +175 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/proxies/test_history_event_api_proxy.py +104 -31
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/proxies/test_input_attachment_api.py +45 -0
- langbot_plugin-0.7.26/tests/api/proxies/test_runner_tool_content_trace.py +33 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/test_agent_tools_mcp_bridge.py +104 -16
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/test_execution_api_consistency.py +26 -2
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_artifact_cache.py +97 -2
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_client.py +39 -3
- langbot_plugin-0.7.26/tests/box/test_directory_archive.py +191 -0
- langbot_plugin-0.7.26/tests/box/test_file_chunk_negotiation.py +620 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_file_transfer.py +93 -8
- langbot_plugin-0.7.26/tests/box/test_network_workspace.py +505 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_runtime.py +48 -6
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_server.py +19 -1
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_skill_store.py +2 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_storage_analysis.py +18 -0
- langbot_plugin-0.7.26/tests/box/test_windows_host_backend.py +216 -0
- langbot_plugin-0.7.26/tests/box/test_windows_workspace_operations.py +147 -0
- langbot_plugin-0.7.26/tests/box/test_workspace_cleanup.py +149 -0
- langbot_plugin-0.7.26/tests/box/test_workspace_cleanup_backend.py +354 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/cli/test_buildplugin.py +12 -2
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/data/execution_api_catalog.json +232 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/io/handlers/test_plugin_handler.py +113 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_manager.py +54 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/test_ops_metrics.py +3 -5
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/test_plugin_logbuffer.py +28 -4
- langbot_plugin-0.7.26/tests/test_skill_publication_resources.py +377 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/test_skill_store.py +67 -0
- langbot_plugin-0.7.26/tests/test_skill_zip_import.py +85 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/test_storage.py +7 -1
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/utils/test_packaging_utils.py +20 -0
- langbot_plugin-0.7.25/src/langbot_plugin/box/file_io.py +0 -109
- langbot_plugin-0.7.25/src/langbot_plugin/version.py +0 -1
- langbot_plugin-0.7.25/tests/api/proxies/test_box_api.py +0 -79
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/.gitignore +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/.python-version +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/CLAUDE.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/CONTRIBUTING.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/LICENSE +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/README.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/README_CN.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/SOURCE.json +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/data/.env.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/docs/Message.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/docs/PluginPages.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/docs/agent-runner-interactions.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/docs/agent-runner-pluginization/PROTOCOL_V1.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/docs/agent-runner-pluginization/README.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/docs/agent-runner-pluginization/SDK_RUNTIME_PLAN.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/docs/box-instance-identity.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/docs/certified-plugins.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/docs/communication/apis/lb2rt.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/docs/communication/runtime_plugin.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/docs/dependency-management.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/docs/langbot-plugin-social.png +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/docs/runner.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/docs/stateless-components.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/examples/workspace_runner_plugin/README.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/examples/workspace_runner_plugin/components/runner/default.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/examples/workspace_runner_plugin/components/runner/default.yaml +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/examples/workspace_runner_plugin/main.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/examples/workspace_runner_plugin/manifest.yaml +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/local_e2e/acceptance.json +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/local_e2e/registration_fanin.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/local_e2e/run_acceptance.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/mypy.ini +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/scripts/check_action_consistency.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/scripts/runtime_resource_probe.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/agent_tools/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/agent_tools/asset_gateway.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/agent_tools/daemon.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/agent_tools/decorators.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/agent_tools/mcp_access.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/agent_tools/mcp_bridge.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/agent_tools/mcp_config.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/agent_tools/mcp_protocol.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/agent_tools/mcp_stdio.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/abstract/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/abstract/platform/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/abstract/platform/adapter.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/abstract/platform/event_logger.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/base.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/command/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/command/command.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/common/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/common/event_listener.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/knowledge_engine/engine.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/manifest.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/page/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/parser/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/parser/parser.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/runner/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/runner/runner.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/tool/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/components/tool/tool.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/definition/plugin.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/command/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/command/context.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/command/errors.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/pipeline/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/pipeline/query.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/platform/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/platform/entities.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/platform/errors.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/platform/events.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/platform/logger.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/platform/message.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/provider/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/provider/message.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/provider/prompt.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/provider/reasoning.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/provider/session.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/rag/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/rag/context.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/rag/enums.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/rag/errors.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/rag/models.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/resource/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/resource/tool.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/capabilities.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/compat.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/context_access.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/delivery.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/errors.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/event.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/interaction.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/manifest.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/page_results.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/permissions.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/resources.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/result.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/run_ledger.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/runtime.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/runtime_registry.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/state.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/stats.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/steering.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/transcript.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/builtin/runner/trigger.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/context.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/events.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/execution.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/entities/permissions.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/base.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/event_context.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/execute_context.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/execution.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/invocation.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/query_based_api.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/runner/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/runner/admin.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/runner/api.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/runner/ledger.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/runner/platform.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/runner/reply_stream.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/runner/resources.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/proxies/runner/state.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/artifact.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/langbot-page-sdk.js +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/.env.example.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/.github/workflows/release.yml.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/.gitignore.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/.vscode/launch.json.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/README.md.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/assets/icon.svg.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/commands/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.py.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.yaml.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/event_listener/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/event_listener/default.py.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/event_listener/default.yaml.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.py.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.yaml.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/pages/{page_name}.html.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/pages/{page_name}.yaml.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/parser/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.py.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.yaml.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/runner/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.py.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/runner/{runner_name}.yaml.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/tools/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.py.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.yaml.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/main.py.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/manifest.yaml.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/readme/README_zh_Hans.md.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/assets/templates/requirements.txt.example +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/box/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/box/identity.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/box/nsjail_backend.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/box/security.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/box/tenancy.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/certification.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/__main__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/commands/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/commands/buildplugin.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/commands/gencomponent.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/commands/initplugin.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/commands/login.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/commands/logout.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/commands/publish.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/commands/runplugin.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/gen/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/gen/renderer.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/i18n.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/locales/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/locales/en_US.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/locales/es_ES.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/locales/ja_JP.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/locales/th_TH.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/locales/vi_VN.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/locales/zh_Hans.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/locales/zh_Hant.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/run/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/run/controller.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/run/handler.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/run/hotreload.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/utils/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/utils/cloudsv.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/utils/form.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/cli/utils/page_components.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/entities/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/entities/io/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/entities/io/actions/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/entities/io/context.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/entities/io/errors.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/entities/io/req.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/entities/io/resp.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/entities/marketplace.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/LICENSE +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/README.md +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/app.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/bounded_executor.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/context.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/event_loop_monitor.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/helper/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/helper/marketplace.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/helper/pkgmgr.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/connection.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/connections/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/connections/stdio.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/connections/ws.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/controller.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/controllers/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/controllers/stdio/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/controllers/stdio/client.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/controllers/stdio/server.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/controllers/ws/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/controllers/ws/client.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/controllers/ws/server.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/handlers/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/io/handlers/control.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/ops_metrics.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/plugin/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/plugin/artifact.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/plugin/container.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/plugin/dependency_environment.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/plugin/logbuffer.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/plugin/restart_coordinator.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/plugin/runner_service.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/plugin/worker_launcher.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/plugin/worker_observability.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/plugin/worker_watchdog.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/security.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/runtime/settings.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/storage.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/utils/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/utils/deadline.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/utils/discover/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/utils/discover/engine.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/utils/git_sync.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/utils/importutil.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/utils/log.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/utils/page_components.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/utils/platform.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/workspace.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/definition/components/test_components.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/definition/components/test_imports.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/definition/test_manifest.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/definition/test_manifest_component_path.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/entities/builtin/runner/test_context_result.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/entities/builtin/runner/test_history_event_entities.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/entities/builtin/runner/test_interaction.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/entities/builtin/runner/test_run_ledger_entities.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/entities/builtin/test_command_context.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/entities/builtin/test_platform_logger.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/entities/builtin/test_provider_message.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/entities/builtin/test_rag_models.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/entities/test_context.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/entities/test_events.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/proxies/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/proxies/test_agent_run_api_proxy.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/proxies/test_base.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/proxies/test_langbot_api.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/proxies/test_llm_stream_ownership.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/proxies/test_query_based_api.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/proxies/test_reasoning_parameter.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/test_runner_handlers.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/test_runner_handlers_matrix.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/test_runner_public_apis.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/test_workspace_domains.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/api/test_workspace_operations.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/conftest.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_admission.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_artifact_cache_root.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_backend.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_backend_selection.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_e2b_backend.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_host_backend.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_identity.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_nsjail_backend.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/box/test_nsjail_v1_live.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/cli/run/test_controller.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/cli/run/test_hotreload.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/cli/run/test_runtime_handler.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/cli/test_cli_main.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/cli/test_examples.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/cli/test_gencomponent.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/cli/test_i18n_form.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/cli/test_initplugin.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/cli/test_login.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/cli/test_logout_publish.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/cli/test_page_components.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/cli/test_renderer.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/cli/test_runner_usages.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/cli/test_runplugin.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/e2e/Dockerfile.box-socket +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/e2e/Dockerfile.box-socket.dockerignore +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/e2e/standalone_runtime_eba_probe.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/e2e/test_box_file_transfer_live.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/e2e/test_box_instance_cleanup_docker.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/e2e/test_box_socket_mounts.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/e2e/test_nsjail_large_commands.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/e2e/test_run_mount_isolation.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/entities/io/test_dependency_errors.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/entities/io/test_protocol.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/fixtures/eba_event_probe_plugin/.gitignore +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/fixtures/eba_event_probe_plugin/assets/icon.svg +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/fixtures/eba_event_probe_plugin/components/event_listener/default.yaml +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/fixtures/eba_event_probe_plugin/main.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/fixtures/eba_event_probe_plugin/manifest.yaml +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/helpers/__init__.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/helpers/protocol.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/packaging/test_installed_cli_blackbox.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/packaging/test_release_metadata.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/helper/test_marketplace.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/helper/test_pkgmgr.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/io/handlers/test_control_handler.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/io/handlers/test_import_contracts.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/io/handlers/test_legacy_file_chunk.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/io/test_action_consistency.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/io/test_audit_correlation.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/io/test_connections.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/io/test_controllers.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/io/test_handler.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/io/test_heartbeat_admission.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/io/test_payload_limits.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/io/test_stdio_encoding.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/io/test_stdio_server.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/io/test_stream_flow_control.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_artifact_store.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_container.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_dependency_environment.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_event_dispatch_real_worker.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_exact_dify_real_worker.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_exact_legacy_sdk_compat.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_installation_manager.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_legacy_shadow.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_mgr_runner.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_mode_resource_limits.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_plugin_logs_real_worker.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_restart_coordinator.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_shared_worker_subprocess.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_worker_launcher.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_worker_plugin_identity.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/plugin/test_workload_isolation.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/test_app.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/test_bounded_executor.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/test_event_loop_monitor.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/test_pull_api_handlers.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/runtime/test_security.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/test_artifact_materialization.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/test_certification.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/test_log.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/test_message.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/test_worker_observability.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/test_worker_watchdog.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/utils/test_cli_run_handler_packaging.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/utils/test_deadline.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/utils/test_discovery.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/utils/test_git_sync.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/utils/test_importutil.py +0 -0
- {langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/tests/utils/test_platform.py +0 -0
|
@@ -11,7 +11,7 @@ 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 Core
|
|
14
|
+
- LangBot Core declares this package exactly (`langbot-plugin==X` in `../pyproject.toml`); root `uv sync` resolves it to editable `sdk/`. Standalone Core PyPI installs retain the published dependency.
|
|
15
15
|
- Releases: `sdk/vX.Y.Z` tags publish to PyPI; never a GitHub Release. See `RELEASING.md`.
|
|
16
16
|
|
|
17
17
|
## Essential Commands
|
|
@@ -57,13 +57,12 @@ uv run python scripts/check_action_consistency.py
|
|
|
57
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:
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
|
-
# from the repository root:
|
|
60
|
+
# from the repository root: install Core and this checkout's SDK
|
|
61
61
|
uv sync --dev
|
|
62
|
-
uv
|
|
63
|
-
uv run --no-sync main.py
|
|
62
|
+
uv run main.py
|
|
64
63
|
```
|
|
65
64
|
|
|
66
|
-
CI
|
|
65
|
+
All Core CI jobs use that local source. The `Core with in-tree SDK` job (`.github/workflows/run-tests.yml`) also runs cross-component contracts; the SDK's own suite runs in `sdk-tests.yml`. Independent plugin checks keep their released-SDK compatibility paths.
|
|
67
66
|
|
|
68
67
|
Standalone runtime flows:
|
|
69
68
|
|
|
@@ -85,7 +84,7 @@ Then configure LangBot as needed:
|
|
|
85
84
|
- Treat action enums and Pydantic models as cross-process API contracts; update callers, handlers, and tests together.
|
|
86
85
|
- Do not duplicate action strings outside the enum definitions.
|
|
87
86
|
- Keep generated plugin templates, component base classes, CLI renderer behavior, and docs consistent when component contracts change.
|
|
88
|
-
-
|
|
87
|
+
- Root `uv sync` and `uv run` use this checkout's SDK. Keep published-SDK compatibility checks in isolated environments.
|
|
89
88
|
- Keep comments/docstrings in English and user-facing labels/descriptions i18n-ready.
|
|
90
89
|
- Commit message format: `<type>(<scope>): <subject>`.
|
|
91
90
|
|
|
@@ -4,7 +4,7 @@ This document maps the plugin SDK in `sdk/` of the LangBot monorepo (formerly th
|
|
|
4
4
|
|
|
5
5
|
## What This Package Is
|
|
6
6
|
|
|
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`)
|
|
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`). Core source installs resolve their exact package requirement to this checkout's editable `sdk/`; the standalone Core PyPI package retains the published dependency.
|
|
8
8
|
|
|
9
9
|
The package has four roles:
|
|
10
10
|
|
|
@@ -23,7 +23,7 @@ The SDK shares the LangBot repository but is versioned and released separately.
|
|
|
23
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, change and test SDK and Core together in one PR
|
|
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. Source-based Core deployments use that checkout directly; publishing the standalone Core PyPI package requires a matching SDK release first.
|
|
27
27
|
|
|
28
28
|
## Top-Level Layout
|
|
29
29
|
|
|
@@ -293,8 +293,17 @@ Core mechanics:
|
|
|
293
293
|
- `Handler.call_action()` waits for one response.
|
|
294
294
|
- `Handler.call_action_generator()` consumes streamed responses.
|
|
295
295
|
- Streaming emits `chunk_status: "continue"` chunks and ends with `"end"`.
|
|
296
|
-
- File transfer uses `CommonAction.FILE_CHUNK` with
|
|
297
|
-
under `data/temp/lbp/`.
|
|
296
|
+
- File transfer uses `CommonAction.FILE_CHUNK` with 16 KiB chunks encoded as
|
|
297
|
+
base64 and stored under `data/temp/lbp/`. Authenticated Box INIT peers may
|
|
298
|
+
offer and acknowledge `file_chunk_256k: true` to use fixed 256 KiB chunks;
|
|
299
|
+
plugin channels and unacknowledged senders retain 16 KiB. The client prepares
|
|
300
|
+
its larger receive limit before offering it, and each send fixes its chunk
|
|
301
|
+
length for that transfer. Each connection direction admits one large file
|
|
302
|
+
chunk through encoding and ACK at a time, so concurrent transfers cannot queue
|
|
303
|
+
many large messages ahead of control actions. Other actions do not acquire this
|
|
304
|
+
file-send lock. Waiting for this slot consumes the existing ACK timeout budget.
|
|
305
|
+
Existing action admission and receive limits still apply.
|
|
306
|
+
New transfer keys are high-entropy opaque capabilities;
|
|
298
307
|
the receiver durably binds each capability to its exact authority namespace so
|
|
299
308
|
a later read can recover that namespace after the action or handler ends. An
|
|
300
309
|
explicit current context must still match, and the receiver never scans other
|
|
@@ -426,8 +435,13 @@ clients are incompatible with this selected-path contract.
|
|
|
426
435
|
`message.completed.file_ids` attaches explicitly exported files to Pipeline output;
|
|
427
436
|
Agents send them explicitly with `ctx.reply_files()`, subject to event reply permission.
|
|
428
437
|
The Pipeline wrapper never scans a Box. Binding ends with the run; the reusable Box
|
|
429
|
-
remains subject to Runtime idle expiry.
|
|
430
|
-
|
|
438
|
+
remains subject to Runtime idle expiry. Legacy shared workspace files survive expiry;
|
|
439
|
+
Runtime-owned network workspaces are removed after successful backend stop.
|
|
440
|
+
Processes and container-local state do not survive.
|
|
441
|
+
|
|
442
|
+
Runtime assigns a fresh session generation at creation. An expected generation
|
|
443
|
+
on a command or file request must match the live session. A bound command never
|
|
444
|
+
creates a missing session. Cleanup for a retired generation is a no-op.
|
|
431
445
|
|
|
432
446
|
`lbp box` enters `box/server.py::main()` and serves `BoxRuntime` through action RPC.
|
|
433
447
|
|
|
@@ -445,7 +459,7 @@ LangBot BoxService
|
|
|
445
459
|
Important modules:
|
|
446
460
|
|
|
447
461
|
- `box/server.py`: CLI entrypoint, aiohttp WebSocket routes, `BoxServerHandler` action registration.
|
|
448
|
-
- `box/runtime.py`: session lifecycle, per-session locks, TTL cleanup, command execution, managed processes.
|
|
462
|
+
- `box/runtime.py`: session lifecycle, per-session locks, TTL cleanup, command execution, managed processes. Explicit network mode allocates Runtime-owned workspaces, accepts artifact references instead of host mounts, and masks local paths in session responses. INIT acknowledges this capability; Core and Runtime must be upgraded together.
|
|
449
463
|
- `box/artifact_cache.py`: Workspace-scoped verified packages, atomic read-only publication, session pins and capacity/idle GC under the Runtime identity data root.
|
|
450
464
|
- `box/models.py`: generic `BoxSpec`/read-only mount contracts, execution results, managed-process specs.
|
|
451
465
|
- `box/client.py`: action-RPC client used by LangBot-side connector/service.
|
|
@@ -472,21 +486,44 @@ and only then advances the registry pointer. Updates require the current
|
|
|
472
486
|
active or recoverable runs. Former mutable package directories are only a
|
|
473
487
|
one-time online-upgrade import source.
|
|
474
488
|
|
|
489
|
+
`publication_inventory` strictly enumerates current registrations and all retained
|
|
490
|
+
versions for offline Core import, including deleted registrations. All old writers
|
|
491
|
+
must be stopped; corrupt or unsafe sources abort rather than disappearing.
|
|
475
492
|
`export_skill_publication` and `restore_skill_publication` preserve an exact
|
|
476
493
|
publication across disposable stores without changing its tree revision.
|
|
477
494
|
Core's optional database repository uses these helpers for temporary CRUD and
|
|
478
|
-
verified execution caches
|
|
495
|
+
verified legacy execution caches. In database/network mode, Agent resource listings
|
|
496
|
+
validate the authoritative immutable manifest without blob IO; content reads still
|
|
497
|
+
verify complete archive bytes in memory without restoring a tree. Core privately
|
|
498
|
+
retains successful reads' immutable ZIP bytes in a process-local 32 MiB/256-entry
|
|
499
|
+
LRU; this is a retained-cache budget, not an in-flight memory limit, and adds no
|
|
500
|
+
user configuration. Every read rechecks database scope, generation, version and
|
|
501
|
+
content-ref metadata, then archive SHA, full ZIP/CRC and per-file SHA. Listing,
|
|
502
|
+
activation and cached reads are not source-storage health checks: verified cached
|
|
503
|
+
bytes can survive source unavailability or corruption. Cold reads after restart or
|
|
504
|
+
eviction fetch and validate the source again; database failure, revoked access and
|
|
505
|
+
missing version/content-ref records still reject reads. Runtime validation and GC
|
|
506
|
+
are unchanged. Its database CAS owns the authoritative catalog.
|
|
479
507
|
|
|
480
508
|
The `PREPARE_ARTIFACT` action accepts a generic manifest/tree digest and a completed
|
|
481
509
|
namespace-owned archive transfer. Cache hits still require the trusted current
|
|
482
510
|
Workspace context and admission. `BoxSpec.artifact_mounts` references only digests;
|
|
483
511
|
Runtime resolves them into its own read-only mounts and protects them until session
|
|
484
512
|
cleanup finishes. It does not resolve a Core path or expose its cache host path.
|
|
485
|
-
|
|
486
|
-
native
|
|
513
|
+
In explicit network mode, Core sends authorized pinned references directly for
|
|
514
|
+
native execution. Runtime cache acquisition verifies them before any user command
|
|
515
|
+
starts. A typed missing/invalid-cache preflight error permits one preparation and
|
|
516
|
+
retry; backend, timeout, cancellation and session failures never permit replay.
|
|
517
|
+
Network INIT explicitly acknowledges this contract. Core still uses the Host-only
|
|
518
|
+
preparation seam for cache recovery. Draft publication requests `directory_archive=true` through the
|
|
519
|
+
existing download/file-chunk protocol. Runtime creates the bounded ZIP in memory,
|
|
520
|
+
with no sandbox snapshot, under the session lease and execution lock. Complete
|
|
521
|
+
replacement drafts check the current database revision and final CAS without
|
|
522
|
+
reading or restoring the old package; history and `created_at` are retained. The network
|
|
523
|
+
INIT response acknowledges directory archive support. See
|
|
487
524
|
[Runtime artifact cache](../dev-docs/BOX_ARTIFACT_CACHE.md) for limits and ownership.
|
|
488
525
|
|
|
489
|
-
LangBot Core
|
|
526
|
+
In legacy mode, LangBot Core composes pinned revisions into generic read-only `BoxMountSpec`
|
|
490
527
|
values. Ordinary fixed mounts include `content_digest` and `manifest_path` in
|
|
491
528
|
the session signature; supported digest-addressed packages are excluded from it.
|
|
492
529
|
Digest-addressed packages use the reserved
|
|
@@ -519,9 +556,19 @@ Run-bound tool calls propagate scoped cancellation through Plugin Runtime to Box
|
|
|
519
556
|
EXEC. Cancellation cleanup uses the original request scope and remains bounded
|
|
520
557
|
when cancellation repeats or the invocation is revoked.
|
|
521
558
|
Cancelling an active execution retires its sandbox, as a command timeout
|
|
522
|
-
does;
|
|
523
|
-
|
|
559
|
+
does; legacy shared workspace files survive, while Runtime-owned network workspaces
|
|
560
|
+
are removed only after successful backend stop. Container-local files and managed
|
|
561
|
+
processes do not survive. Cancelling a queued execution leaves the active sandbox alone.
|
|
524
562
|
Failed cleanup keeps the session fenced until a later acquire/delete retries it.
|
|
563
|
+
Docker foreign-UID workspace cleanup uses the stopped container's immutable image
|
|
564
|
+
in a restricted helper, retaining daemon user namespaces. Pending helpers must be
|
|
565
|
+
confirmed retired on every retry before the workspace root can be removed. This
|
|
566
|
+
path requires Docker 25+, image Python 3 and no declared image volumes; denied or
|
|
567
|
+
unmapped ownership retains the fence rather than weakening isolation.
|
|
568
|
+
An uncertain backend startup retains its workspace and consumes capacity until
|
|
569
|
+
operator cleanup; restarting Runtime does not establish that old consumers exited.
|
|
570
|
+
Run IO cleanup accepts only one scope component and removes its inbox, outbox and
|
|
571
|
+
temporary snapshots inside an existing session, without creating a replacement.
|
|
525
572
|
|
|
526
573
|
There is no supported `python -m langbot_plugin.box` entrypoint; use `lbp box`.
|
|
527
574
|
|
|
@@ -545,21 +592,21 @@ LangBot sends Box config during initialization. Backend selection is controlled
|
|
|
545
592
|
|
|
546
593
|
A false “no backend” often means Docker exists but the user cannot access the Docker socket. nsjail inside containers requires host cgroup namespace for cgroup v2 limits if hard memory/pid/cpu enforcement is expected.
|
|
547
594
|
|
|
548
|
-
##
|
|
595
|
+
## Coordinated Core and SDK Development
|
|
549
596
|
|
|
550
597
|
When changing shared contracts:
|
|
551
598
|
|
|
552
|
-
1. Change
|
|
553
|
-
2.
|
|
554
|
-
3. Run
|
|
555
|
-
4. Exercise the exact path changed: plugin stdio, plugin WebSocket, `lbp run`,
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
599
|
+
1. Change `sdk/` and the Core bridge in the same branch.
|
|
600
|
+
2. Run `uv sync --dev` from the repository root to install Core and its editable local SDK.
|
|
601
|
+
3. Run Core and its Runtimes with `uv run main.py`, `uv run lbp rt` or `uv run lbp box`.
|
|
602
|
+
4. Exercise the exact path changed: plugin stdio, plugin WebSocket, `lbp run`, Plugin Runtime, or Box Runtime.
|
|
603
|
+
|
|
604
|
+
The instance-scoped Runtime handshake and complete `InstallationBinding`
|
|
605
|
+
require coordinated Core and Runtime capabilities. A separately deployed
|
|
606
|
+
Runtime must install the matching checkout or a compatible published SDK;
|
|
607
|
+
Core's local source does not upgrade another process's environment. Independent
|
|
608
|
+
plugin environments retain their declared SDK support. The standalone Core
|
|
609
|
+
PyPI package remains subject to the release gate in `RELEASING.md`.
|
|
563
610
|
|
|
564
611
|
The SDK `AGENTS.md` keeps the short command checklist; this file keeps the structural map.
|
|
565
612
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: langbot-plugin
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.26
|
|
4
4
|
Summary: This package contains the SDK, CLI for building plugins for LangBot, plus the runtime for hosting LangBot plugins
|
|
5
5
|
Project-URL: Homepage, https://langbot.app
|
|
6
6
|
Project-URL: Repository, https://github.com/langbot-app/LangBot/tree/master/sdk
|
|
@@ -17,9 +17,13 @@ its own CI (`.github/workflows/sdk-*.yml`) and its own PyPI package.
|
|
|
17
17
|
accept `v*` tags, but a SDK release in the list would still hide Core updates
|
|
18
18
|
from deployed instances. Write SDK release notes in the PR that bumps the version.
|
|
19
19
|
- Never use plain `vX.Y.Z` tags for the SDK; those are Core releases.
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
- Root `uv sync` resolves Core's exact `langbot-plugin==X` requirement to the
|
|
21
|
+
editable local `sdk/` source. Checkouts, Docker, release ZIPs and fnOS carry
|
|
22
|
+
that source and can use coordinated SDK changes before an SDK release.
|
|
23
|
+
- The standalone Core PyPI package retains the exact published dependency;
|
|
24
|
+
its wheel excludes SDK code. Publishing that package requires the matching
|
|
25
|
+
SDK release first. Independently installed Runtimes and plugins also need
|
|
26
|
+
their own compatible SDK installation.
|
|
23
27
|
|
|
24
28
|
## Steps
|
|
25
29
|
|
|
@@ -34,13 +38,15 @@ its own CI (`.github/workflows/sdk-*.yml`) and its own PyPI package.
|
|
|
34
38
|
|
|
35
39
|
3. Confirm the **SDK / Publish to PyPI** run and the new version on
|
|
36
40
|
https://pypi.org/project/langbot-plugin/.
|
|
37
|
-
4.
|
|
38
|
-
`pyproject.toml`, run `uv lock`, and
|
|
41
|
+
4. For the standalone Core PyPI package, bump `langbot-plugin==X` in the root
|
|
42
|
+
`pyproject.toml`, run `uv lock`, and pass the gate below before publishing.
|
|
43
|
+
Source-based Core deployments do not need to wait for this publication.
|
|
39
44
|
|
|
40
45
|
## Core release gate
|
|
41
46
|
|
|
42
|
-
`scripts/check_sdk_release_pin.py` runs in the Core PyPI
|
|
43
|
-
|
|
47
|
+
`scripts/check_sdk_release_pin.py` runs in the standalone Core PyPI release
|
|
48
|
+
workflow. Docker and source distributions use the checked-out SDK directly.
|
|
49
|
+
The PyPI gate fails when:
|
|
44
50
|
|
|
45
51
|
- Core's pin differs from `sdk/pyproject.toml`;
|
|
46
52
|
- that version is not on PyPI;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ExecutionAPI 操作一览与作用域说明
|
|
2
2
|
|
|
3
|
-
LangBot Core 通过统一的 `ExecutionAPI` facade 暴露
|
|
3
|
+
LangBot Core 通过统一的 `ExecutionAPI` facade 暴露 83 项核心业务能力。插件与 Agent Runner 可以通过统一的授权契约与 SDK 入口调用这些能力。
|
|
4
4
|
|
|
5
5
|
## 作用域(Scopes)说明
|
|
6
6
|
|
|
@@ -72,10 +72,10 @@ 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.get_bots` | `plugin` | 否 | 否 | 获取已配置的机器人列表 |
|
|
75
76
|
| `execution.list_tools` | `plugin` | 否 | 否 | 列出插件可访问的工具 |
|
|
76
77
|
| `execution.list_commands` | `plugin` | 否 | 否 | 列出插件可访问的命令 |
|
|
77
78
|
| `execution.list_plugins_manifest` | `plugin` | 否 | 否 | 列出插件 manifest |
|
|
78
|
-
| `execution.get_bots` | `plugin` | 否 | 否 | 获取已配置的机器人列表 |
|
|
79
79
|
| `execution.get_bot_info` | `plugin` | 否 | 否 | 获取指定机器人的详细信息 |
|
|
80
80
|
| `execution.send_message` | `plugin_or_run` | 是 | 否 | 向目标实体主动发送消息 |
|
|
81
81
|
| `execution.call_platform_api` | `plugin_or_run` | 是 | 否 | 调用底层平台通信 API |
|
|
@@ -122,7 +122,10 @@ async for chunk in api.execution.stream(
|
|
|
122
122
|
| `execution.bind_box` | `run` | 是 | 否 | 将特定 Box 实例与当前运行绑定 |
|
|
123
123
|
| `execution.import_box_attachments` | `run` | 是 | 否 | 导入附件至绑定的 Box 沙箱 |
|
|
124
124
|
| `execution.read_input_attachment` | `run` | 否 | 否 | 按 ref 读取当前事件输入附件的字节 |
|
|
125
|
+
| `execution.read_input_attachment_content` | `run` | 否 | 否 | 按当前 Run 的冻结权限读取输入附件,返回有界文本或结构化媒体 |
|
|
125
126
|
| `execution.export_box_files` | `run` | 是 | 否 | 导出 Box 沙箱生成的文件 |
|
|
127
|
+
| `execution.read_run_file` | `run` | 否 | 否 | 按当前 Run 的文件句柄有界读取已导出 Artifact 的结构化内容 |
|
|
128
|
+
| `execution.commit_run_files` | `run` | 是 | 否 | 按 Host 冻结并重新核验的执行器策略,将已导出文件发布给具名接收人 |
|
|
126
129
|
| `execution.run_get` | `runner_admin` | 否 | 否 | 管理员查询指定 Agent Run 状态 |
|
|
127
130
|
| `execution.run_list` | `runner_admin` | 否 | 否 | 管理员分页查询历史 Agent Run 列表 |
|
|
128
131
|
| `execution.run_events_page` | `runner_admin` | 否 | 否 | 分页读取指定运行的事件 |
|
{langbot_plugin-0.7.25 → langbot_plugin-0.7.26}/src/langbot_plugin/api/agent_tools/external_tools.py
RENAMED
|
@@ -6,6 +6,7 @@ import base64
|
|
|
6
6
|
import copy
|
|
7
7
|
import json
|
|
8
8
|
import typing
|
|
9
|
+
from urllib.parse import quote
|
|
9
10
|
|
|
10
11
|
import pydantic
|
|
11
12
|
|
|
@@ -37,10 +38,22 @@ class ImportBoxArgs(EmptyArgs):
|
|
|
37
38
|
attachment_ids: list[str] | None = None
|
|
38
39
|
|
|
39
40
|
|
|
40
|
-
class
|
|
41
|
+
class ReadContentArgs(EmptyArgs):
|
|
42
|
+
mode: typing.Literal["auto", "text", "native", "pages"] = "auto"
|
|
43
|
+
offset: int = pydantic.Field(default=0, ge=0)
|
|
44
|
+
max_chars: int = pydantic.Field(default=8192, ge=1, le=16384)
|
|
45
|
+
page_start: int = pydantic.Field(default=1, ge=1)
|
|
46
|
+
page_end: int | None = pydantic.Field(default=None, ge=1)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class ReadInputAttachmentArgs(ReadContentArgs):
|
|
41
50
|
ref: str = pydantic.Field(min_length=1)
|
|
42
51
|
|
|
43
52
|
|
|
53
|
+
class ReadRunFileArgs(ReadContentArgs):
|
|
54
|
+
file_id: str = pydantic.Field(min_length=1)
|
|
55
|
+
|
|
56
|
+
|
|
44
57
|
class ReplyFilesArgs(EmptyArgs):
|
|
45
58
|
file_ids: list[str] = pydantic.Field(min_length=1, max_length=100)
|
|
46
59
|
|
|
@@ -180,6 +193,7 @@ class AgentRunExternalTools:
|
|
|
180
193
|
"langbot_bind_box",
|
|
181
194
|
"langbot_import_box_attachments",
|
|
182
195
|
"langbot_export_box_files",
|
|
196
|
+
"langbot_read_run_file",
|
|
183
197
|
}
|
|
184
198
|
)
|
|
185
199
|
if any(
|
|
@@ -252,6 +266,88 @@ class AgentRunExternalTools:
|
|
|
252
266
|
}
|
|
253
267
|
|
|
254
268
|
structured = _dump_jsonable(result)
|
|
269
|
+
content_types = {"text", "image_base64", "file_base64", "image_url", "file_url"}
|
|
270
|
+
if (
|
|
271
|
+
isinstance(structured, list)
|
|
272
|
+
and structured
|
|
273
|
+
and all(
|
|
274
|
+
isinstance(item, dict) and item.get("type") in content_types
|
|
275
|
+
for item in structured
|
|
276
|
+
)
|
|
277
|
+
):
|
|
278
|
+
contents = []
|
|
279
|
+
try:
|
|
280
|
+
for item in structured:
|
|
281
|
+
kind = item["type"]
|
|
282
|
+
if kind == "text":
|
|
283
|
+
if not isinstance(item.get("text"), str):
|
|
284
|
+
raise ValueError("Missing tool text content")
|
|
285
|
+
contents.append({"type": "text", "text": item["text"]})
|
|
286
|
+
elif kind in {"image_url", "file_url"}:
|
|
287
|
+
uri = (
|
|
288
|
+
item["image_url"]["url"]
|
|
289
|
+
if kind == "image_url"
|
|
290
|
+
else item["file_url"]
|
|
291
|
+
)
|
|
292
|
+
if not isinstance(uri, str) or not uri:
|
|
293
|
+
raise ValueError("Missing tool media URL")
|
|
294
|
+
contents.append(
|
|
295
|
+
{
|
|
296
|
+
"type": "resource_link",
|
|
297
|
+
"uri": uri,
|
|
298
|
+
"name": item.get("file_name") or "image",
|
|
299
|
+
}
|
|
300
|
+
)
|
|
301
|
+
else:
|
|
302
|
+
encoded = item[kind]
|
|
303
|
+
if not isinstance(encoded, str) or not encoded:
|
|
304
|
+
raise ValueError("Missing tool media payload")
|
|
305
|
+
mime_type = (
|
|
306
|
+
"image/png"
|
|
307
|
+
if kind == "image_base64"
|
|
308
|
+
else "application/octet-stream"
|
|
309
|
+
)
|
|
310
|
+
if encoded.startswith("data:"):
|
|
311
|
+
header, separator, encoded = encoded.partition(",")
|
|
312
|
+
if not separator or not header.endswith(";base64"):
|
|
313
|
+
raise ValueError("Invalid tool media data URL")
|
|
314
|
+
mime_type = header[5:-7]
|
|
315
|
+
if not mime_type or (
|
|
316
|
+
kind == "image_base64"
|
|
317
|
+
and not mime_type.startswith("image/")
|
|
318
|
+
):
|
|
319
|
+
raise ValueError("Invalid tool media MIME type")
|
|
320
|
+
base64.b64decode(encoded, validate=True)
|
|
321
|
+
if kind == "image_base64":
|
|
322
|
+
contents.append(
|
|
323
|
+
{
|
|
324
|
+
"type": "image",
|
|
325
|
+
"data": encoded,
|
|
326
|
+
"mimeType": mime_type,
|
|
327
|
+
}
|
|
328
|
+
)
|
|
329
|
+
else:
|
|
330
|
+
contents.append(
|
|
331
|
+
{
|
|
332
|
+
"type": "resource",
|
|
333
|
+
"resource": {
|
|
334
|
+
"uri": "langbot-artifact:///"
|
|
335
|
+
+ quote(
|
|
336
|
+
item.get("file_name") or "file", safe=""
|
|
337
|
+
),
|
|
338
|
+
"mimeType": mime_type,
|
|
339
|
+
"blob": encoded,
|
|
340
|
+
},
|
|
341
|
+
}
|
|
342
|
+
)
|
|
343
|
+
return {"content": contents}
|
|
344
|
+
except (KeyError, TypeError, ValueError) as exc:
|
|
345
|
+
return {
|
|
346
|
+
"isError": True,
|
|
347
|
+
"content": [
|
|
348
|
+
{"type": "text", "text": f"Invalid tool media content: {exc}"}
|
|
349
|
+
],
|
|
350
|
+
}
|
|
255
351
|
if not isinstance(structured, dict):
|
|
256
352
|
structured = {"result": structured}
|
|
257
353
|
return {
|
|
@@ -503,18 +599,20 @@ class AgentRunExternalTools:
|
|
|
503
599
|
|
|
504
600
|
@agent_tool(
|
|
505
601
|
name="langbot_read_input_attachment",
|
|
506
|
-
description="Read
|
|
602
|
+
description="Read a current input attachment by ref. Auto returns bounded text or a structured image; PDF defaults to text. Use native for PDF visual content with a supporting model. Text offsets are Unicode characters; use next_offset to continue. At most ten PDF pages per call. Page rendering is unavailable.",
|
|
507
603
|
args_model=ReadInputAttachmentArgs,
|
|
508
604
|
)
|
|
509
605
|
async def read_input_attachment(self, args: ReadInputAttachmentArgs):
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
606
|
+
return await self.api.read_input_attachment_content(**args.model_dump())
|
|
607
|
+
|
|
608
|
+
@agent_tool(
|
|
609
|
+
name="langbot_read_run_file",
|
|
610
|
+
description="Read a file ID returned by this run's sandbox export. Auto returns bounded text or a structured image; PDF defaults to text. Use native for PDF visual content with a supporting model. Text offsets are Unicode characters; use next_offset to continue. At most ten PDF pages per call. Page rendering is unavailable.",
|
|
611
|
+
args_model=ReadRunFileArgs,
|
|
612
|
+
read_only=True,
|
|
613
|
+
)
|
|
614
|
+
async def read_run_file(self, args: ReadRunFileArgs):
|
|
615
|
+
return await self.api.read_run_file(**args.model_dump())
|
|
518
616
|
|
|
519
617
|
@agent_tool(
|
|
520
618
|
name="langbot_export_box_files",
|
|
@@ -31,6 +31,11 @@ class BoxFile(pydantic.BaseModel):
|
|
|
31
31
|
size: int
|
|
32
32
|
path: str | None = None
|
|
33
33
|
warning: str | None = None
|
|
34
|
+
artifact_id: str | None = None
|
|
35
|
+
mime_type: str | None = None
|
|
36
|
+
digest: str | None = None
|
|
37
|
+
lifecycle: str | None = None
|
|
38
|
+
expires_at: str | None = None
|
|
34
39
|
|
|
35
40
|
|
|
36
41
|
class BoxAcquireRequest(pydantic.BaseModel):
|
|
@@ -190,6 +190,10 @@ class RunnerContext(pydantic.BaseModel):
|
|
|
190
190
|
return None
|
|
191
191
|
return await self.api.read_input_attachment(ref)
|
|
192
192
|
|
|
193
|
+
async def read_input_attachment_content(self, ref: str, **options) -> list[dict]:
|
|
194
|
+
"""Read bounded text or structured media using this run's input grant."""
|
|
195
|
+
return await self.api.read_input_attachment_content(ref, **options)
|
|
196
|
+
|
|
193
197
|
async def import_box_attachments(
|
|
194
198
|
self, attachment_ids: list[str] | None = None
|
|
195
199
|
) -> list["BoxFile"]:
|
|
@@ -200,6 +204,14 @@ class RunnerContext(pydantic.BaseModel):
|
|
|
200
204
|
"""Export explicitly selected absolute sandbox paths; does not send them."""
|
|
201
205
|
return await self.api.export_box_files(paths)
|
|
202
206
|
|
|
207
|
+
async def read_run_file(self, file_id: str, **options) -> list[dict]:
|
|
208
|
+
"""Read a run-owned exported handle using the frozen Box grant."""
|
|
209
|
+
return await self.api.read_run_file(file_id, **options)
|
|
210
|
+
|
|
211
|
+
async def commit_run_files(self, file_ids: list[str]) -> list["BoxFile"]:
|
|
212
|
+
"""Publish selected files to the Host-authorized recipient without sending a message."""
|
|
213
|
+
return await self.api.commit_run_files(file_ids)
|
|
214
|
+
|
|
203
215
|
async def reply_files(self, file_ids: list[str]) -> typing.Any:
|
|
204
216
|
"""Explicitly reply with exported handles, subject to tool authorization."""
|
|
205
217
|
return await self.api.reply_files(file_ids)
|
|
@@ -41,7 +41,7 @@ class InputAttachment(pydantic.BaseModel):
|
|
|
41
41
|
such as url, base64 or message_chain."""
|
|
42
42
|
|
|
43
43
|
url: str | None = None
|
|
44
|
-
"""
|
|
44
|
+
"""Legacy external URL; current Hosts keep source locators private."""
|
|
45
45
|
|
|
46
46
|
path: str | None = None
|
|
47
47
|
"""Sandbox/workspace path when Host has staged the attachment as a file."""
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"""Typed, installation-owned Artifacts over the existing Workspace API.
|
|
2
|
+
|
|
3
|
+
No method accepts a tenant, owner, installation, internal storage key or Box path.
|
|
4
|
+
Independent older Hosts fail explicitly; there is no legacy storage fallback.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import base64
|
|
10
|
+
from typing import Any, Literal
|
|
11
|
+
|
|
12
|
+
from pydantic import BaseModel, ConfigDict
|
|
13
|
+
|
|
14
|
+
from .invocation import current_api, invocation_capability
|
|
15
|
+
from .workspace import WorkspaceOperationsProxy
|
|
16
|
+
|
|
17
|
+
MAX_ARTIFACT_RPC_BYTES = 256 * 1024
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ArtifactMetadata(BaseModel):
|
|
21
|
+
model_config = ConfigDict(extra="allow")
|
|
22
|
+
id: str
|
|
23
|
+
name: str
|
|
24
|
+
mime_type: str
|
|
25
|
+
size: int
|
|
26
|
+
digest: str
|
|
27
|
+
source: str
|
|
28
|
+
lifecycle: str
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ArtifactData(BaseModel):
|
|
32
|
+
metadata: ArtifactMetadata
|
|
33
|
+
content: bytes
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class ArtifactOperationError(RuntimeError):
|
|
37
|
+
"""Preserve the Host's authorization, expiry and integrity error code."""
|
|
38
|
+
|
|
39
|
+
def __init__(self, error: dict[str, Any]):
|
|
40
|
+
self.code = str(error.get("code", "artifact_operation_failed"))
|
|
41
|
+
self.details = error.get("details")
|
|
42
|
+
super().__init__(str(error.get("message", self.code)))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class ArtifactsProxy:
|
|
46
|
+
def __init__(self, handler, run_id: str | None = None):
|
|
47
|
+
self._handler = handler
|
|
48
|
+
self._run_id = run_id
|
|
49
|
+
self._invocation = invocation_capability(handler)
|
|
50
|
+
|
|
51
|
+
async def _call(self, name: str, **arguments: Any) -> Any:
|
|
52
|
+
if self._invocation is not None:
|
|
53
|
+
self._invocation.require_active()
|
|
54
|
+
api = current_api(self._handler)
|
|
55
|
+
run_id = self._run_id
|
|
56
|
+
if api is not None and getattr(api, "run_id", None) is not None:
|
|
57
|
+
active = api.run_id
|
|
58
|
+
if run_id is not None and active != run_id:
|
|
59
|
+
raise RuntimeError("Artifact proxy belongs to another run")
|
|
60
|
+
run_id = active
|
|
61
|
+
response = await WorkspaceOperationsProxy(self._handler, run_id).call(
|
|
62
|
+
"artifact." + name, **arguments
|
|
63
|
+
)
|
|
64
|
+
if not response.get("ok"):
|
|
65
|
+
raise ArtifactOperationError(response.get("error") or {})
|
|
66
|
+
return response["result"]
|
|
67
|
+
|
|
68
|
+
async def create(
|
|
69
|
+
self,
|
|
70
|
+
filename: str,
|
|
71
|
+
content: bytes,
|
|
72
|
+
*,
|
|
73
|
+
mime_type: str = "application/octet-stream",
|
|
74
|
+
ttl_seconds: int = 86400,
|
|
75
|
+
) -> ArtifactMetadata:
|
|
76
|
+
if not isinstance(content, bytes) or len(content) > MAX_ARTIFACT_RPC_BYTES:
|
|
77
|
+
raise ValueError("Artifact RPC content must be bytes within 262144 bytes")
|
|
78
|
+
result = await self._call(
|
|
79
|
+
"create",
|
|
80
|
+
filename=filename,
|
|
81
|
+
content_base64=base64.b64encode(content).decode("ascii"),
|
|
82
|
+
mime_type=mime_type,
|
|
83
|
+
ttl_seconds=ttl_seconds,
|
|
84
|
+
)
|
|
85
|
+
return ArtifactMetadata.model_validate(result)
|
|
86
|
+
|
|
87
|
+
async def get(self, artifact_id: str) -> ArtifactMetadata:
|
|
88
|
+
return ArtifactMetadata.model_validate(
|
|
89
|
+
await self._call("get", artifact_id=artifact_id)
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
async def read(
|
|
93
|
+
self, artifact_id: str, *, max_bytes: int = MAX_ARTIFACT_RPC_BYTES
|
|
94
|
+
) -> ArtifactData:
|
|
95
|
+
if type(max_bytes) is not int or not 1 <= max_bytes <= MAX_ARTIFACT_RPC_BYTES:
|
|
96
|
+
raise ValueError(
|
|
97
|
+
"Artifact RPC read limit must be between 1 and 262144 bytes"
|
|
98
|
+
)
|
|
99
|
+
result = await self._call("read", artifact_id=artifact_id, max_bytes=max_bytes)
|
|
100
|
+
encoded = result["content_base64"]
|
|
101
|
+
if not isinstance(encoded, str) or len(encoded) > 4 * ((max_bytes + 2) // 3):
|
|
102
|
+
raise ValueError("Artifact response exceeds the requested bound")
|
|
103
|
+
content = base64.b64decode(encoded, validate=True)
|
|
104
|
+
if len(content) > max_bytes:
|
|
105
|
+
raise ValueError("Artifact response exceeds the requested bound")
|
|
106
|
+
return ArtifactData(
|
|
107
|
+
metadata=ArtifactMetadata.model_validate(result["metadata"]),
|
|
108
|
+
content=content,
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
async def read_content(
|
|
112
|
+
self,
|
|
113
|
+
artifact_id: str,
|
|
114
|
+
*,
|
|
115
|
+
mode: Literal["auto", "text", "native", "pages"] = "auto",
|
|
116
|
+
offset: int = 0,
|
|
117
|
+
max_chars: int = 8192,
|
|
118
|
+
page_start: int = 1,
|
|
119
|
+
page_end: int | None = None,
|
|
120
|
+
) -> list[dict[str, Any]]:
|
|
121
|
+
return await self._call(
|
|
122
|
+
"read_content",
|
|
123
|
+
artifact_id=artifact_id,
|
|
124
|
+
mode=mode,
|
|
125
|
+
offset=offset,
|
|
126
|
+
max_chars=max_chars,
|
|
127
|
+
page_start=page_start,
|
|
128
|
+
page_end=page_end,
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
async def retain(self, artifact_id: str) -> ArtifactMetadata:
|
|
132
|
+
return ArtifactMetadata.model_validate(
|
|
133
|
+
await self._call("retain", artifact_id=artifact_id)
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
async def release(self, artifact_id: str) -> ArtifactMetadata:
|
|
137
|
+
return ArtifactMetadata.model_validate(
|
|
138
|
+
await self._call("release", artifact_id=artifact_id)
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
async def delete(self, artifact_id: str) -> dict[str, Any]:
|
|
142
|
+
return await self._call("delete", artifact_id=artifact_id)
|