feat: improve mode and peripheral orchestration

This commit is contained in:
Miayui
2026-09-21 00:13:47 +08:00
parent 89707a42e2
commit 448c8b31a0
39 changed files with 3068 additions and 277 deletions
@@ -24,6 +24,14 @@ def compiled_mixed_result() -> dict[str, object]:
"provider_used": "local_rules+infrared_local_rules",
"execution_mode": "dry_run",
"control_transport": "wired_can",
"parallel_dispatch": {
"enabled": True,
"preflight_status": "succeeded",
"dispatch": {
"started_skew_ms": 1.2,
"total_ms": 120.5,
},
},
"function_configs": {
"native_climate": {
"spec": {
@@ -155,6 +163,10 @@ class ValidatedControlProjectionTest(unittest.TestCase):
"compile",
],
)
self.assertEqual(
projection["parallel_dispatch"]["preflight_status"],
"succeeded",
)
serialized = json.dumps(projection, ensure_ascii=False)
self.assertNotIn("command_plans", serialized)
self.assertNotIn("data_hex", serialized)
@@ -362,6 +374,10 @@ class ValidatedControlProjectionTest(unittest.TestCase):
)
self.assertNotIn("command_plans", safe_result)
self.assertNotIn("validated_control_commands", safe_result)
self.assertEqual(
safe_result["parallel_dispatch"]["preflight_status"],
"succeeded",
)
def test_agent_tool_path_queues_projection_for_the_browser_thread(self) -> None:
client = type("UnavailableClient", (), {"available": False})()