From a4116b11a87618b522c96d4cb486492aadcc6c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Bene=C5=A1?= Date: Tue, 10 Nov 2026 10:37:43 +0000 Subject: [PATCH] Contract at server dev 5d7b79c: a new agent chat's Subagents setting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The server answers /models?kind=agent&device= (e888bc2, models_agent.json) with `agent_subagents {offered, device_runs}`. A new agent chat reads it for the device chosen (again when another is chosen) and shows the Subagents setting exactly when it is offered; when the device's CLI does not run subagents (`device_runs` false) the server's sentence says so beside it. An older server says nothing and the setting stays hidden. Strings at the same ref: every translatable string is translated in all eight languages -- "Open slots" from the server's catalogue, the row's "% context" from strings_own.json (the server words it as a sentence), and `progress_line` (text · elapsed, symbols only) is no longer counted as translatable. ContractTest (models_agent.json), ChatStateTest, shot 07-tune-new-agent. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 5 +- .../java/eu/llembas/android/api/ApiClient.kt | 4 + .../java/eu/llembas/android/api/Models.kt | 10 +++ .../llembas/android/ui/chat/ChatViewModel.kt | 28 ++++++- .../eu/llembas/android/ui/chat/Composer.kt | 9 +++ app/src/main/res/values-cs/strings.xml | 3 + app/src/main/res/values-de/strings.xml | 3 + app/src/main/res/values-es/strings.xml | 3 + app/src/main/res/values-fr/strings.xml | 3 + app/src/main/res/values-hu/strings.xml | 3 + app/src/main/res/values-it/strings.xml | 3 + app/src/main/res/values-pl/strings.xml | 3 + app/src/main/res/values-sk/strings.xml | 3 + app/src/main/res/values/strings.xml | 3 +- .../java/eu/llembas/android/ChatStateTest.kt | 5 ++ .../java/eu/llembas/android/ContractTest.kt | 15 ++++ .../eu/llembas/android/shots/ScreenShots.kt | 3 + contract/lock.json | 6 +- contract/models_agent.json | 81 +++++++++++++++++++ scripts/gen-strings.py | 8 +- scripts/strings.py | 3 +- scripts/strings_own.json | 24 ++++-- 22 files changed, 208 insertions(+), 20 deletions(-) create mode 100644 contract/models_agent.json diff --git a/CHANGELOG.md b/CHANGELOG.md index f4b960c..dc7171c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,8 +54,9 @@ is in alpha and releases come off `main`. shows the main agent and each subagent -- its name, its position, what it is doing now and how full its context is -- with the ones that ended after them, dimmed, saying how each ended (*done*, *out of context*, *stopped*), and the open slots. A subagent's row opens its - conversation, read-only. In an agent chat the Subagents setting is there too, and goes to the - computer the chat runs on, which runs them. + conversation, read-only. In an agent chat the Subagents setting is there too -- a new one's + included -- and goes to the computer the chat runs on, which runs them; a computer whose CLI + is too old to is said beside it. - **An approval says which subagent asks** -- *Subagent parser (s1), reviews the parser, asks:* -- when a subagent needs something nobody in its tree may allow. diff --git a/app/src/main/java/eu/llembas/android/api/ApiClient.kt b/app/src/main/java/eu/llembas/android/api/ApiClient.kt index 51432f6..212bce7 100644 --- a/app/src/main/java/eu/llembas/android/api/ApiClient.kt +++ b/app/src/main/java/eu/llembas/android/api/ApiClient.kt @@ -149,6 +149,10 @@ class ApiClient(val base: String, private val token: String, val http: OkHttpCli /** The models with the instance's subagent cap; with [chatId], whether each is offered subagents on that chat. */ suspend fun modelList(chatId: String? = null): ModelList = get(if (chatId != null) "/models?chat=$chatId" else "/models") + /** The models for a new agent chat on [deviceId], with whether it may have subagents (`agent_subagents`). */ + suspend fun agentModelList(deviceId: String?): ModelList = + get("/models?kind=agent" + deviceId?.let { "&device=" + java.net.URLEncoder.encode(it, "UTF-8") }.orEmpty()) + suspend fun folders(): List = get("/folders").folders suspend fun devices(): List = get("/devices").devices diff --git a/app/src/main/java/eu/llembas/android/api/Models.kt b/app/src/main/java/eu/llembas/android/api/Models.kt index e985624..6d2c458 100644 --- a/app/src/main/java/eu/llembas/android/api/Models.kt +++ b/app/src/main/java/eu/llembas/android/api/Models.kt @@ -154,8 +154,18 @@ data class ModelList( val models: List = emptyList(), /** The instance's cap on a chat's subagents (server 2.0.0-beta.7); null from an older one. */ @SerialName("subagents_cap") val subagentsCap: Int? = null, + /** With `kind=agent` (spec 3.4.0 §14): whether a new agent chat may have subagents. */ + @SerialName("agent_subagents") val agentSubagents: AgentSubagents? = null, ) +/** + * A new agent chat's Subagents fact (`/models?kind=agent&device=`): [offered] where the instance + * and the person allow them; [deviceRuns] whether the chosen device runs them (it lists `agents` + * and `tree`), null while it is not linked or none was named. + */ +@Serializable +data class AgentSubagents(val offered: Boolean = false, @SerialName("device_runs") val deviceRuns: Boolean? = null) + /** * Whether subagents are offered (harness spec 3.3.0, `subagents.md` §4): [offered] when * subagents are on and at least one model could serve; [namedOnly] when only a model the person diff --git a/app/src/main/java/eu/llembas/android/ui/chat/ChatViewModel.kt b/app/src/main/java/eu/llembas/android/ui/chat/ChatViewModel.kt index 7b4e0a1..90d68d3 100644 --- a/app/src/main/java/eu/llembas/android/ui/chat/ChatViewModel.kt +++ b/app/src/main/java/eu/llembas/android/ui/chat/ChatViewModel.kt @@ -11,6 +11,7 @@ import eu.llembas.android.api.Activity import eu.llembas.android.api.ActivityAgent import eu.llembas.android.api.ActivityFrame import eu.llembas.android.api.ActivitySummary +import eu.llembas.android.api.AgentSubagents import eu.llembas.android.api.AgentTarget import eu.llembas.android.api.AgentsSetting import eu.llembas.android.api.ApiClient @@ -76,6 +77,8 @@ data class ChatState( val draft: Draft = Draft(), /** The subagent tree (spec 3.4.0) from this chat's last `tree` frame; null until one came. */ val tree: SubagentTree? = null, + /** For a new agent chat: whether it may have subagents, and whether its device runs them. */ + val agentSubagents: AgentSubagents? = null, ) /** @@ -106,7 +109,14 @@ val ChatState.level: String? * Whether the Subagents setting is shown (plan rule 4): the chat's own word for a chat that * exists (`subagents.offered`, else the activity's), the model's for a new one. */ -fun ChatState.offersTeam(agent: Boolean): Boolean = if (chat != null) chat.subagents?.offered ?: teamOffered else !agent && modelInfo?.mayHaveTeam == true +fun ChatState.offersTeam(agent: Boolean): Boolean = when { + chat != null -> chat.subagents?.offered ?: teamOffered + + // A new agent chat: the server's word for agent chats (spec 3.4.0 §14), never a guess. + agent -> agentSubagents?.offered == true + + else -> modelInfo?.mayHaveTeam == true +} /** * Whether subagents need a model the person names in the chat: the chat's own serves one @@ -183,7 +193,20 @@ class ChatViewModel(app: Application) : override fun clearUnsent() = _state.update { it.copy(unsent = null) } - override fun updateDraft(change: (Draft) -> Draft) = _state.update { it.copy(draft = change(it.draft)) } + override fun updateDraft(change: (Draft) -> Draft) { + val before = _state.value.device?.id + _state.update { it.copy(draft = change(it.draft)) } + if (agentChat && _state.value.chat == null && _state.value.device?.id != before) readAgentFacts() + } + + /** A new agent chat's Subagents fact, for the device chosen now; an older server says nothing. */ + private fun readAgentFacts() { + val device = _state.value.device?.id + viewModelScope.launch { + val facts = runCatching { api().agentModelList(device) }.getOrNull()?.agentSubagents + _state.update { if (it.device?.id == device) it.copy(agentSubagents = facts) else it } + } + } override fun rename(title: String) = change("title", title.trim()) @@ -201,6 +224,7 @@ class ChatViewModel(app: Application) : val devices = if (agent) client.devices() else emptyList() val base = if (agent) getApplication().lembas.instances.current()?.base.orEmpty() else "" _state.update { it.copy(models = models, devices = devices, instanceBase = base, loading = false) } + if (agent) readAgentFacts() return@launch } val detail = client.chat(chatId) diff --git a/app/src/main/java/eu/llembas/android/ui/chat/Composer.kt b/app/src/main/java/eu/llembas/android/ui/chat/Composer.kt index 61a1d77..4a56c9f 100644 --- a/app/src/main/java/eu/llembas/android/ui/chat/Composer.kt +++ b/app/src/main/java/eu/llembas/android/ui/chat/Composer.kt @@ -433,6 +433,15 @@ fun TuneContent(state: ChatState, actions: ChatActions, agent: Boolean, modifier color = palette.inkMuted, modifier = Modifier.padding(horizontal = 24.dp), ) + if (chat == null && agent && state.agentSubagents?.deviceRuns == false) { + // The chosen computer's CLI is older than subagents: the setting would go nowhere. + Text( + stringResource(R.string.subagents_device_cannot), + style = MaterialTheme.typography.bodySmall, + color = palette.warning, + modifier = Modifier.padding(horizontal = 24.dp, vertical = 4.dp), + ) + } if (state.subagentsNamedOnly) { // The chat's model serves one request at a time: no default to fall back on. Text( diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index bc40f22..8553a53 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -258,6 +258,9 @@ hotovo bez kontextu zastaveno + kontext %1$s%% + Volná místa: %1$s + Počítač, na kterém tato konverzace běží, nespouští podagenty: aktualizujte na něm LLeMbas CLI. %1$s se ptá: Podagent %1$s (%2$s), %3$s, se ptá: Model uvádí: %1$s diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 04bae95..bbe2261 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -258,6 +258,9 @@ fertig Kontext erschöpft angehalten + %1$s%% Kontext + Freie Plätze: %1$s + Der Computer, auf dem dieser Chat läuft, führt keine Subagenten aus: aktualisiere dort das LLeMbas CLI. %1$s fragt: Subagent %1$s (%2$s), %3$s, fragt: Es sagt: %1$s diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 135f5fb..343f46f 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -258,6 +258,9 @@ terminado sin contexto detenido + %1$s%% de contexto + Plazas libres: %1$s + El ordenador en el que se ejecuta este chat no ejecuta subagentes: actualiza allí LLeMbas CLI. %1$s pregunta: El subagente %1$s (%2$s), %3$s, pregunta: Dice: %1$s diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index a060390..5da541a 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -258,6 +258,9 @@ terminé contexte épuisé arrêté + %1$s%% du contexte + Places libres : %1$s + L’ordinateur sur lequel tourne cette conversation n’exécute pas de sous-agents : mettez-y à jour LLeMbas CLI. %1$s demande : Le sous-agent %1$s (%2$s), %3$s, demande : Il dit : %1$s diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index d0b729d..324f6db 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -258,6 +258,9 @@ kész elfogyott a kontextus leállítva + %1$s%% kontextus + Szabad helyek: %1$s + A számítógép, amelyen ez a beszélgetés fut, nem futtat alügynököket: frissítsd rajta a LLeMbas CLI-t. %1$s kérdezi: A(z) %1$s alügynök (%2$s), %3$s, kérdezi: Ezt mondja: %1$s diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 1eb9c49..319bc96 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -258,6 +258,9 @@ finito senza contesto interrotto + %1$s%% del contesto + Posti liberi: %1$s + Il computer su cui gira questa chat non esegue subagenti: aggiorna lì LLeMbas CLI. %1$s chiede: Il subagente %1$s (%2$s), %3$s, chiede: Dice: %1$s diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index f586e18..ebfb812 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -258,6 +258,9 @@ gotowe bez kontekstu zatrzymane + %1$s%% kontekstu + Wolne miejsca: %1$s + Komputer, na którym działa ta rozmowa, nie uruchamia podagentów: zaktualizuj na nim LLeMbas CLI. %1$s pyta: Podagent %1$s (%2$s), %3$s, pyta: Mówi: %1$s diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml index bea930f..4bdfbd2 100644 --- a/app/src/main/res/values-sk/strings.xml +++ b/app/src/main/res/values-sk/strings.xml @@ -258,6 +258,9 @@ hotovo bez kontextu zastavené + kontext %1$s %% + Voľné miesta: %1$s + Počítač, na ktorom táto konverzácia beží, nespúšťa podagentov: aktualizujte na ňom LLeMbas CLI. %1$s sa pýta: Podagent %1$s (%2$s), %3$s, sa pýta: Model uvádza: %1$s diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3414601..0e9b32a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -251,7 +251,7 @@ by you step limit budget - %1$s · %2$s + %1$s · %2$s working waiting for a slot finished @@ -262,6 +262,7 @@ stopped %1$s%% context Open slots: %1$s + The computer this chat runs on does not run subagents: update its LLeMbas CLI. %1$s asks: Subagent %1$s (%2$s), %3$s, asks: It says: %1$s diff --git a/app/src/test/java/eu/llembas/android/ChatStateTest.kt b/app/src/test/java/eu/llembas/android/ChatStateTest.kt index 6292650..6cc1459 100644 --- a/app/src/test/java/eu/llembas/android/ChatStateTest.kt +++ b/app/src/test/java/eu/llembas/android/ChatStateTest.kt @@ -1,5 +1,6 @@ package eu.llembas.android +import eu.llembas.android.api.AgentSubagents import eu.llembas.android.api.AgentsSetting import eu.llembas.android.api.Chat import eu.llembas.android.api.LembasJson @@ -61,6 +62,10 @@ class ChatStateTest { val agentChat = Chat(id = "a", kind = "agent", model = "qwen") assertTrue(ChatState(models = models, chat = agentChat.copy(subagents = SubagentsOffer(offered = true, cap = 8))).offersTeam(agent = true)) assertFalse(ChatState(models = models, chat = agentChat.copy(subagents = SubagentsOffer(offered = false, cap = 32))).offersTeam(agent = true)) + // A new agent chat: the server's fact for agent chats, never the model's guess. + assertTrue(ChatState(models = models, agentSubagents = AgentSubagents(offered = true)).offersTeam(agent = true)) + assertFalse(ChatState(models = models, agentSubagents = AgentSubagents(offered = false)).offersTeam(agent = true)) + assertFalse(ChatState(models = models).offersTeam(agent = true)) // A listed chat (`subagents: null`) asks the chat's activity. assertTrue(ChatState(models = models, chat = agentChat, teamOffered = true).offersTeam(agent = true)) } diff --git a/app/src/test/java/eu/llembas/android/ContractTest.kt b/app/src/test/java/eu/llembas/android/ContractTest.kt index fc46a03..a6e9f3e 100644 --- a/app/src/test/java/eu/llembas/android/ContractTest.kt +++ b/app/src/test/java/eu/llembas/android/ContractTest.kt @@ -1,6 +1,7 @@ package eu.llembas.android import eu.llembas.android.api.APP_API +import eu.llembas.android.api.AgentSubagents import eu.llembas.android.api.AskFrame import eu.llembas.android.api.CardSubagent import eu.llembas.android.api.Chat @@ -14,6 +15,7 @@ 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.ModelList import eu.llembas.android.api.Plan import eu.llembas.android.api.StatusFrame import eu.llembas.android.api.SteeredFrame @@ -23,7 +25,9 @@ import eu.llembas.android.api.Tail import eu.llembas.android.api.ToolCall import eu.llembas.android.api.TreeFrame import eu.llembas.android.api.TreeView +import eu.llembas.android.ui.chat.ChatState import eu.llembas.android.ui.chat.approvalTexts +import eu.llembas.android.ui.chat.offersTeam import kotlinx.serialization.KSerializer import kotlinx.serialization.builtins.ListSerializer import kotlinx.serialization.json.jsonObject @@ -230,6 +234,17 @@ class ContractTest { assertFalse(silent.hasSpeechToText) } + @Test + fun aNewAgentChatsSubagentsFact() { + // `/models?kind=agent&device=` (models_agent.json): offered, and the device runs them. + val list = read("models_agent", ModelList.serializer()) + assertEquals(AgentSubagents(offered = true, deviceRuns = true), list.agentSubagents) + assertTrue(list.models.all { it.subagents?.offered == true }) + assertTrue(ChatState(models = list.models, agentSubagents = list.agentSubagents).offersTeam(agent = true)) + // Without kind=agent the field is not there. + assertNull(read("models", ModelList.serializer()).agentSubagents) + } + @Test fun everyFrameParses() { assertTrue(read("event_steps", StepsFrame.serializer()).steps.isNotEmpty()) diff --git a/app/src/test/java/eu/llembas/android/shots/ScreenShots.kt b/app/src/test/java/eu/llembas/android/shots/ScreenShots.kt index ad45081..633325e 100644 --- a/app/src/test/java/eu/llembas/android/shots/ScreenShots.kt +++ b/app/src/test/java/eu/llembas/android/shots/ScreenShots.kt @@ -128,6 +128,9 @@ class ScreenShots { // at the narrow phone and large type. shoot("07-tune", Phone.Scroll) { SheetOver { TuneContent(Fakes.tuned, NoChatActions, agent = false) } } shoot("07-tune-one-at-a-time", Phone.Scroll, fontScale = 1.5f) { SheetOver { TuneContent(Fakes.tunedOneAtATime, NoChatActions, agent = false) } } + // A new agent chat whose computer's CLI cannot run subagents yet: the setting says so. + val agentTune = Fakes.newAgentChat.copy(agentSubagents = eu.llembas.android.api.AgentSubagents(offered = true, deviceRuns = false)) + shoot("07-tune-new-agent", Phone.Scroll) { SheetOver { TuneContent(agentTune, NoChatActions, agent = true) } } shoot("07-tune-alone", Phone.SmallScroll, fontScale = 1.5f) { SheetOver { TuneContent(Fakes.tunedAlone, NoChatActions, agent = false) } } } diff --git a/contract/lock.json b/contract/lock.json index e640b5f..c44320a 100644 --- a/contract/lock.json +++ b/contract/lock.json @@ -1,5 +1,5 @@ { - "ref": "4a98af3165e0e3b009766ea8684081d36a0a3d34", - "commit": "4a98af3165e0e3b009766ea8684081d36a0a3d34", - "sha256": "c804a30f148911d192854e6fa4fd33bd33b03ad5b956858467e9904a04c1ad71" + "ref": "5d7b79c5c9dc0d9c3df9a8b401c02fdd67927c2d", + "commit": "5d7b79c5c9dc0d9c3df9a8b401c02fdd67927c2d", + "sha256": "2a5bf83cf3e8b1b883cc4e1eae10b91466be868842b3728b276e4db5941001c2" } diff --git a/contract/models_agent.json b/contract/models_agent.json new file mode 100644 index 0000000..2d8e087 --- /dev/null +++ b/contract/models_agent.json @@ -0,0 +1,81 @@ +{ + "models": [ + { + "id": "qwen", + "name": "Qwen", + "vision": false, + "tools": true, + "efforts": [ + "medium" + ], + "thinking_switch": true, + "levels": [ + "off", + "medium" + ], + "effort": "medium", + "control": "switch", + "parallel": 2, + "context": 131072, + "image": "/api/v2/models/images/0a1b2c3d4e5f.png", + "default": true, + "subagents": { + "offered": true, + "named_only": false + } + }, + { + "id": "gpt-oss", + "name": "gpt-oss", + "vision": false, + "tools": true, + "efforts": [ + "low", + "medium", + "high" + ], + "thinking_switch": false, + "levels": [ + "low", + "medium", + "high" + ], + "effort": "high", + "control": "slider", + "parallel": 1, + "context": 0, + "image": null, + "default": false, + "subagents": { + "offered": true, + "named_only": false + } + }, + { + "id": "vision-small", + "name": "Vision", + "vision": true, + "tools": false, + "efforts": [], + "thinking_switch": false, + "levels": [ + "default" + ], + "effort": "default", + "control": "none", + "parallel": null, + "context": 8192, + "image": null, + "default": false, + "subagents": { + "offered": true, + "named_only": false + } + } + ], + "subagents_cap": 32, + "agent_subagents": { + "offered": true, + "device_runs": true + } +} diff --git a/scripts/gen-strings.py b/scripts/gen-strings.py index 4c3c408..0c28eed 100755 --- a/scripts/gen-strings.py +++ b/scripts/gen-strings.py @@ -28,6 +28,8 @@ ROOT = Path(__file__).resolve().parent.parent SERVER = Path(os.environ.get("LEMBAS_SERVER", ROOT.parent / "LLeMbas")) RES = ROOT / "app/src/main/res" LANGS = ("cs", "de", "es", "fr", "hu", "it", "pl", "sk") +# The app's name, and a line of symbols only (`progress.line`: text · elapsed): the same in every language. +UNTRANSLATED = ("app_name", "progress_line") HEADER = "" sys.path.insert(0, str(Path(__file__).parent)) @@ -103,7 +105,7 @@ def write(folder: Path, entries: dict[str, str]) -> None: folder.mkdir(parents=True, exist_ok=True) lines = ['', HEADER, ""] for key, text in entries.items(): - extra = ' translatable="false"' if key == "app_name" else "" + extra = ' translatable="false"' if key in UNTRANSLATED else "" lines.append(f' {android(text)}') lines.append("") (folder / "strings.xml").write_text("\n".join(lines) + "\n", encoding="utf-8") @@ -147,13 +149,13 @@ def main() -> None: mine = own.get(code, {}) out = {} for key, english in STRINGS.items(): - if key == "app_name": + if key in UNTRANSLATED: continue text = mine.get(key) or server_text(catalogue, key, english) if text and all(text.count(f"%{i}$s") == english.count(f"%{i}$s") for i in (1, 2, 3)): out[key] = text write(RES / f"values-{code}", out) - print(f"gen-strings: {code}: {len(out)}/{len(STRINGS) - 1}" + (f" (server {ref[:12]})" if ref else "")) + print(f"gen-strings: {code}: {len(out)}/{len(STRINGS) - len(UNTRANSLATED)}" + (f" (server {ref[:12]})" if ref else "")) if __name__ == "__main__": diff --git a/scripts/strings.py b/scripts/strings.py index c9b9cfb..15b4bc7 100755 --- a/scripts/strings.py +++ b/scripts/strings.py @@ -282,6 +282,7 @@ STRINGS: dict[str, str] = { "tree_state_stopped": "stopped", "tree_context": "%1$s%% context", "tree_open_slots": "Open slots: %1$s", + "subagents_device_cannot": "The computer this chat runs on does not run subagents: update its LLeMbas CLI.", "card_asker": "%1$s asks:", "card_subagent_asks": "Subagent %1$s (%2$s), %3$s, asks:", "card_it_says": "It says: %1$s", @@ -409,7 +410,7 @@ SERVER_ENGLISH: dict[str, str] = { "progress_failed": "Failed: {{reason}}", "progress_what_approval": "allow {{tool}}?", "progress_line": "{{text}} · {{elapsed}}", - "tree_context": "{{percent}}% context", + "tree_open_slots": "Open slots: %(n)s", "card_asker": "%(job)s asks:", "card_subagent_asks": "Subagent %(name)s (%(id)s), %(position)s, asks:", "card_it_says": "It says: %(purpose)s", diff --git a/scripts/strings_own.json b/scripts/strings_own.json index fb18bdd..4f137e1 100644 --- a/scripts/strings_own.json +++ b/scripts/strings_own.json @@ -207,7 +207,8 @@ "voice_input_lembas_line": "Převod řeči na text vaší instance, přes server. Nahrávka jde na vaši instanci a nikam jinam.", "voice_input_phone": "Telefon (Google nebo systémový)", "voice_input_phone_line": "Vlastní rozpoznávání řeči v telefonu. Slova se objevují, jak mluvíte; nahrávka jde tam, kam ji to rozpoznávání pošle.", - "voice_input_phone_none": "Tento telefon nemá vlastní rozpoznávání řeči." + "voice_input_phone_none": "Tento telefon nemá vlastní rozpoznávání řeči.", + "tree_context": "kontext %1$s%%" }, "de": { "about_version": "LLeMbas für Android %1$s", @@ -418,7 +419,8 @@ "voice_input_lembas_line": "Die Spracherkennung Ihrer Instanz, über den Server. Die Aufnahme geht an Ihre Instanz und nirgendwo sonst hin.", "voice_input_phone": "Telefon (Google oder das System)", "voice_input_phone_line": "Die eigene Spracherkennung des Telefons. Die Wörter erscheinen beim Sprechen; die Aufnahme geht dorthin, wohin diese Erkennung sie schickt.", - "voice_input_phone_none": "Dieses Telefon hat keine eigene Spracherkennung." + "voice_input_phone_none": "Dieses Telefon hat keine eigene Spracherkennung.", + "tree_context": "%1$s%% Kontext" }, "es": { "about_version": "LLeMbas para Android %1$s", @@ -628,7 +630,8 @@ "voice_input_lembas_line": "La conversión de voz a texto de su instancia, a través del servidor. La grabación va a su instancia y a ningún otro sitio.", "voice_input_phone": "Teléfono (Google o el del sistema)", "voice_input_phone_line": "El reconocimiento de voz del propio teléfono. Las palabras aparecen mientras habla; la grabación va adonde ese reconocimiento la envíe.", - "voice_input_phone_none": "Este teléfono no tiene reconocimiento de voz propio." + "voice_input_phone_none": "Este teléfono no tiene reconocimiento de voz propio.", + "tree_context": "%1$s%% de contexto" }, "fr": { "about_version": "LLeMbas pour Android %1$s", @@ -839,7 +842,8 @@ "voice_input_lembas_line": "La transcription de votre instance, via le serveur. L’enregistrement va à votre instance et nulle part ailleurs.", "voice_input_phone": "Téléphone (Google ou celui du système)", "voice_input_phone_line": "La reconnaissance vocale du téléphone. Les mots apparaissent pendant que vous parlez ; l’enregistrement va là où cette reconnaissance l’envoie.", - "voice_input_phone_none": "Ce téléphone n’a pas de reconnaissance vocale propre." + "voice_input_phone_none": "Ce téléphone n’a pas de reconnaissance vocale propre.", + "tree_context": "%1$s%% du contexte" }, "hu": { "about_version": "LLeMbas Androidra %1$s", @@ -1050,7 +1054,8 @@ "voice_input_lembas_line": "A példánya beszédfelismerése, a szerveren át. A felvétel a példányához megy, máshová nem.", "voice_input_phone": "Telefon (Google vagy a rendszeré)", "voice_input_phone_line": "A telefon saját beszédfelismerője. A szavak beszéd közben jelennek meg; a felvétel oda megy, ahová az a felismerő küldi.", - "voice_input_phone_none": "Ennek a telefonnak nincs saját beszédfelismerője." + "voice_input_phone_none": "Ennek a telefonnak nincs saját beszédfelismerője.", + "tree_context": "%1$s%% kontextus" }, "it": { "about_version": "LLeMbas per Android %1$s", @@ -1260,7 +1265,8 @@ "voice_input_lembas_line": "La trascrizione della sua istanza, tramite il server. La registrazione va alla sua istanza e da nessun’altra parte.", "voice_input_phone": "Telefono (Google o quello di sistema)", "voice_input_phone_line": "Il riconoscimento vocale del telefono. Le parole appaiono mentre parla; la registrazione va dove la manda quel riconoscimento.", - "voice_input_phone_none": "Questo telefono non ha un riconoscimento vocale proprio." + "voice_input_phone_none": "Questo telefono non ha un riconoscimento vocale proprio.", + "tree_context": "%1$s%% del contesto" }, "pl": { "about_version": "LLeMbas na Androida %1$s", @@ -1470,7 +1476,8 @@ "voice_input_lembas_line": "Zamiana mowy na tekst Twojej instancji, przez serwer. Nagranie trafia do Twojej instancji i nigdzie indziej.", "voice_input_phone": "Telefon (Google lub systemowy)", "voice_input_phone_line": "Własne rozpoznawanie mowy telefonu. Słowa pojawiają się w trakcie mówienia; nagranie trafia tam, dokąd wyśle je to rozpoznawanie.", - "voice_input_phone_none": "Ten telefon nie ma własnego rozpoznawania mowy." + "voice_input_phone_none": "Ten telefon nie ma własnego rozpoznawania mowy.", + "tree_context": "%1$s%% kontekstu" }, "sk": { "about_version": "LLeMbas pre Android %1$s", @@ -1680,6 +1687,7 @@ "voice_input_lembas_line": "Prevod reči na text vašej inštancie, cez server. Nahrávka ide na vašu inštanciu a nikam inam.", "voice_input_phone": "Telefón (Google alebo systémový)", "voice_input_phone_line": "Vlastné rozpoznávanie reči v telefóne. Slová sa objavujú, ako hovoríte; nahrávka ide tam, kam ju to rozpoznávanie pošle.", - "voice_input_phone_none": "Tento telefón nemá vlastné rozpoznávanie reči." + "voice_input_phone_none": "Tento telefón nemá vlastné rozpoznávanie reči.", + "tree_context": "kontext %1$s %%" } }