Contract at server dev 4a98af3: /api/v2/me pinned (me.json)
CI / check (push) Canceled after 0s

The server added the `me.json` fixture (c51722b), built by the route's own
serialiser. The app's language and the assistant's speech services now
read through `Me`'s named facts -- `accountLanguage` (null when unsaid, so
a kept answer stands), `speechToText` (null when unsaid: the assistant
then still tries the instance), `hasSpeechToText`, `hasTextToSpeech` --
and ContractTest holds them to the fixture.

Strings regenerated at the same ref: the subagent states and the tree's
context line are in the server's catalogues now (sk 355/358).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Opus 5.5 committed 2026-11-10 10:16:30 +00:00
1 parent e8d8236530
commit 73e753ab57
14 files changed
+114 -8

No files matched your search

@@ -11,6 +11,7 @@ import eu.llembas.android.api.FileListing
import eu.llembas.android.api.JobsFrame
import eu.llembas.android.api.LembasJson
import eu.llembas.android.api.LiveReply
import eu.llembas.android.api.Me
import eu.llembas.android.api.Message
import eu.llembas.android.api.Metrics
import eu.llembas.android.api.Plan
@@ -211,6 +212,24 @@ class ContractTest {
assertTrue(read.turns[1].running)
}
@Test
fun meSaysTheLanguageAndTheServices() {
// `/api/v2/me` (me.json): the account's language the app follows by default, and the
// instance's speech services the assistant uses.
val me = read("me", Me.serializer())
assertEquals("sk", me.accountLanguage)
assertEquals("qwen", me.defaultModel)
assertTrue(me.hasSpeechToText)
assertEquals(true, me.speechToText)
assertFalse(me.hasTextToSpeech)
assertEquals("Frodo", me.account.name)
// Not said: no language (a kept answer stands), and speech-to-text unknown, not "no".
val silent = me.copy(language = "", services = emptyMap())
assertNull(silent.accountLanguage)
assertNull(silent.speechToText)
assertFalse(silent.hasSpeechToText)
}
@Test
fun everyFrameParses() {
assertTrue(read("event_steps", StepsFrame.serializer()).steps.isNotEmpty())