feat: 完善 N7 智能座舱交互与控制链路

This commit is contained in:
vee
2026-09-07 15:34:59 +08:00
parent 32d179143f
commit c96970f068
100 changed files with 30088 additions and 1174 deletions
+5 -5
View File
@@ -264,7 +264,7 @@ class Ch1DefaultTargetTests(unittest.TestCase):
{"axis": "horizontal", "direction": "forward", "duration_ms": 2000},
)
def test_model_adapter_overrides_only_implicit_targets_with_ch1_defaults(self) -> None:
def test_model_adapter_preserves_every_nonempty_model_target(self) -> None:
window = ModelPlanAdapter._apply_ch1_default_target(
{
"domain": "window",
@@ -298,10 +298,10 @@ class Ch1DefaultTargetTests(unittest.TestCase):
"副驾空调调到21度",
)
self.assertEqual(window["target_scope"], "front_left")
self.assertEqual(climate["target_scope"], "driver")
self.assertEqual(seat["capability"], "seat.set_driver_heating_native")
self.assertEqual(seat["target_scope"], "driver")
self.assertEqual(window["target_scope"], "all")
self.assertEqual(climate["target_scope"], "vehicle")
self.assertEqual(seat["capability"], "seat.set_heating")
self.assertEqual(seat["target_scope"], "passenger")
self.assertEqual(explicit_passenger["target_scope"], "passenger")
def test_local_rules_skip_gpt_and_apply_safe_ch1_defaults(self) -> None: