feat(agent-runner): enforce 4.x host-owned execution

This commit is contained in:
huanghuoguoguo
2026-07-12 20:36:32 +08:00
parent 9aa71d54e3
commit d88d05e27c
170 changed files with 6952 additions and 5381 deletions
+5 -5
View File
@@ -28,7 +28,7 @@ class TestCheckDeps:
import asyncio
result = asyncio.get_event_loop().run_until_complete(check_deps())
result = asyncio.run(check_deps())
assert result == []
@@ -48,7 +48,7 @@ class TestCheckDeps:
import asyncio
result = asyncio.get_event_loop().run_until_complete(check_deps())
result = asyncio.run(check_deps())
assert 'requests' in result
assert 'openai' in result
@@ -64,7 +64,7 @@ class TestCheckDeps:
import asyncio
result = asyncio.get_event_loop().run_until_complete(check_deps())
result = asyncio.run(check_deps())
# Should include all required_deps keys
assert len(result) == len(required_deps)
@@ -111,7 +111,7 @@ class TestPrecheckPluginDeps:
with patch('langbot.pkg.core.bootutils.deps.pkgmgr.install_requirements') as mock_install:
import asyncio
asyncio.get_event_loop().run_until_complete(precheck_plugin_deps())
asyncio.run(precheck_plugin_deps())
mock_install.assert_not_called()
@@ -134,6 +134,6 @@ class TestPrecheckPluginDeps:
with patch('langbot.pkg.core.bootutils.deps.pkgmgr.install_requirements') as mock_install:
import asyncio
asyncio.get_event_loop().run_until_complete(precheck_plugin_deps())
asyncio.run(precheck_plugin_deps())
mock_install.assert_called_once_with('plugins/plugin1/requirements.txt', extra_params=[])