refactor: isolate runtime contracts and enforce import boundaries (#6166)

* test: enforce Python import ownership boundaries

* test: protect client import boundaries and rehome shared UI contracts

* refactor: remove gateway and client dependency inversions

* fix: detect dynamic imports in conditional expressions

* refactor(tools): keep configuration contracts with their owners

* docs: keep design guidance focused on ownership and checks

* fix: preserve default threaded turn delivery
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-13 13:56:28 +08:00
1 parent cd2a863710
commit 328e933d36
162 files changed
+3449 -1888

No files matched your search

+3 -1
View File
@@ -2637,7 +2637,7 @@ def test_optional_dependency_metadata_for_enable():
required = data["project"]["dependencies"]
assert "boto3>=1.43.0" not in data["project"]["dependencies"]
assert deps["bedrock"] == ["boto3>=1.43.0"]
assert deps["bedrock"] == ["boto3>=1.43.0", "botocore>=1.43.0,<2.0.0"]
# The built-in remote WebUI proxy now needs aiohttp even without channels.
# Keep the historical API extra installable for existing deployment commands.
assert "aiohttp>=3.14.3,<4.0.0" in required
@@ -2729,6 +2729,8 @@ def test_optional_dependency_metadata_for_enable():
"weixin": ("qrcode[pil]>=8.0", "pycryptodome>=3.20.0"),
"whatsapp": (
"neonize>=0.4.3.post0,<0.5.0",
"python-magic>=0.4.27; sys_platform != 'win32'",
"python-magic-bin>=0.4.14; sys_platform == 'win32'",
"segno>=1.6.1,<2.0.0",
),
}