merge: integrate remote MQTT routing with seat-scoped dynamic modes

This commit is contained in:
vee
2026-09-12 15:10:16 +08:00
43 changed files with 5726 additions and 492 deletions
@@ -305,8 +305,20 @@ class SeatServiceIntegrationTests(unittest.TestCase):
)
interpret.assert_called_once_with(
"播放音乐", context, self.service.capability_context
"播放音乐",
{
**context,
"natural_language_routing": {
"original_utterance": "空调温度设置为25度,播放音乐",
"parsed_clauses": ["空调温度设置为25度"],
"resolved_clauses": ["空调温度设置为25度"],
"unresolved_clauses": ["播放音乐"],
"cloud_input_utterance": "播放音乐",
},
},
self.service.capability_context,
)
self.assertNotIn("natural_language_routing", context)
self.assertEqual(
provider, f"local_rules+openai:{self.service.openai.model}"
)