Scheduled on the server's real routes: runs in full, the models, the push
CI / check (push) Canceled after 0s

api/Schedules.kt and ApiClient now follow /api/v2 exactly (src/lembas/api/v2/schedules.py):
the schedule's enabled/description/request/rule, a run's model object, error class and
text, waiting and retry, preview; compile returns ok/reason and the rule in words; a run
in full (GET runs/{run}, Markdown through Markwon); the scheduling models (GET/PUT) with
a tick per model; /events keeps the list current while it is on screen.

Notifications are built from the payload notify.py sends (ids, status, private, actions,
ask): VISIBILITY_PRIVATE with a public version, Open always, Pause when the server offers
it, a tap opens the run (switching to the instance it came from).

ScheduleContractTest reads all eight fixtures and the push payload; shots for the run and
the models screen, fakes shaped like the fixtures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Opus 5.5 committed 2026-11-09 13:34:18 +00:00
1 parent b52b6daaf0
commit 0982af8cfb
25 files changed
+1335 -208

No files matched your search

+11 -1
View File
@@ -194,7 +194,17 @@ STRINGS: dict[str, str] = {
"run_skipped": "Skipped",
"run_waiting": "Waiting for a model",
"run_running": "Running",
"run_model_switched": "%1$s (the first choice was busy)",
"run_model_instead": "%1$s, instead of %2$s",
"run_retry_at": "Tries again at %1$s",
"run_result": "Result",
"run_no_text": "This run left no text.",
"run_open_chat": "Open its chat",
"mode_fresh": "A new chat each time",
"mode_continue": "One chat that grows",
"schedule_models": "Models for scheduled tasks",
"schedule_models_hint": "Scheduled tasks take the first of these that is free, in this order. Untick one to leave it out.",
"model_free": "Free now",
"model_busy": "Busy: %1$s",
"channel_scheduled": "Scheduled results",
"channel_scheduled_failures": "Scheduled failures",
"scheduled_result_public": "A scheduled task has a result.",
+80 -8
View File
@@ -48,8 +48,12 @@
"instance_in_use": "Používá se",
"listening": "Naslouchám…",
"loading_line": "Pečou se lembasy…",
"mode_continue": "Jeden chat, který roste",
"mode_fresh": "Pokaždé nový chat",
"mode_manual": "Ručně",
"model_busy": "Zaneprázdněný: %1$s",
"model_context": "kontext %1$s",
"model_free": "Teď volný",
"model_in_use": "Používá se",
"model_levels": "Úsilí: %1$s",
"model_thinking_switchable": "Přemýšlení zapnout či vypnout",
@@ -76,7 +80,10 @@
"push_on": "Upozornění jsou pro tuto instanci zapnutá.",
"regenerate": "Vygenerovat znovu",
"run_missed": "Zmeškáno ×%1$s",
"run_model_switched": "%1$s (první volba byla zaneprázdněná)",
"run_model_instead": "%1$s, místo %2$s",
"run_no_text": "Tento běh nezanechal žádný text.",
"run_result": "Výsledek",
"run_retry_at": "Zkusí to znovu v %1$s",
"run_silent": "Nic nového",
"run_skipped": "Vynecháno",
"run_waiting": "Čeká na model",
@@ -84,6 +91,8 @@
"schedule_edit": "Upravit plán",
"schedule_history": "Historie",
"schedule_model": "Model: %1$s",
"schedule_models": "Modely pro naplánované úlohy",
"schedule_models_hint": "Naplánované úlohy vezmou první z nich, který je volný, v tomto pořadí. Zrušte zaškrtnutí, chcete-li některý vynechat.",
"schedule_new": "Nový plán",
"schedule_next": "Příště: %1$s",
"schedule_next_runs": "Příští spuštění",
@@ -190,9 +199,13 @@
"instance_in_use": "In Verwendung",
"listening": "Hört zu…",
"loading_line": "Lembas wird gebacken…",
"mode_continue": "Ein Chat, der wächst",
"mode_fresh": "Jedes Mal ein neuer Chat",
"mode_manual": "Manuell",
"mode_plan": "Plan",
"model_busy": "Belegt: %1$s",
"model_context": "%1$s Kontext",
"model_free": "Jetzt frei",
"model_in_use": "In Verwendung",
"model_levels": "Aufwand: %1$s",
"model_thinking_switchable": "Nachdenken an oder aus",
@@ -219,7 +232,10 @@
"push_on": "Benachrichtigungen sind für diese Instanz eingeschaltet.",
"regenerate": "Neu generieren",
"run_missed": "Verpasst ×%1$s",
"run_model_switched": "%1$s (die erste Wahl war beschäftigt)",
"run_model_instead": "%1$s statt %2$s",
"run_no_text": "Dieser Lauf hat keinen Text hinterlassen.",
"run_result": "Ergebnis",
"run_retry_at": "Neuer Versuch um %1$s",
"run_silent": "Nichts Neues",
"run_skipped": "Übersprungen",
"run_waiting": "Wartet auf ein Modell",
@@ -227,6 +243,8 @@
"schedule_edit": "Zeitplan bearbeiten",
"schedule_history": "Verlauf",
"schedule_model": "Modell: %1$s",
"schedule_models": "Modelle für geplante Aufgaben",
"schedule_models_hint": "Geplante Aufgaben nehmen das erste davon, das frei ist, in dieser Reihenfolge. Entfernen Sie den Haken, um eines auszulassen.",
"schedule_new": "Neuer Zeitplan",
"schedule_next": "Nächstes Mal: %1$s",
"schedule_next_runs": "Nächste Läufe",
@@ -333,8 +351,12 @@
"instance_in_use": "En uso",
"listening": "Escuchando…",
"loading_line": "Horneando lembas…",
"mode_continue": "Un chat que crece",
"mode_fresh": "Un chat nuevo cada vez",
"mode_manual": "Manual",
"model_busy": "Ocupado: %1$s",
"model_context": "contexto de %1$s",
"model_free": "Libre ahora",
"model_in_use": "En uso",
"model_levels": "Esfuerzo: %1$s",
"model_thinking_switchable": "Razonamiento sí o no",
@@ -361,7 +383,10 @@
"push_on": "Las notificaciones están activadas para esta instancia.",
"regenerate": "Regenerar",
"run_missed": "Perdida ×%1$s",
"run_model_switched": "%1$s (la primera opción estaba ocupada)",
"run_model_instead": "%1$s, en lugar de %2$s",
"run_no_text": "Esta ejecución no dejó texto.",
"run_result": "Resultado",
"run_retry_at": "Lo intenta de nuevo a las %1$s",
"run_silent": "Nada nuevo",
"run_skipped": "Omitida",
"run_waiting": "Esperando un modelo",
@@ -369,6 +394,8 @@
"schedule_edit": "Editar programación",
"schedule_history": "Historial",
"schedule_model": "Modelo: %1$s",
"schedule_models": "Modelos para tareas programadas",
"schedule_models_hint": "Las tareas programadas toman el primero de estos que esté libre, en este orden. Desmarque uno para dejarlo fuera.",
"schedule_new": "Nueva programación",
"schedule_next": "Próxima: %1$s",
"schedule_next_runs": "Próximas ejecuciones",
@@ -475,9 +502,13 @@
"instance_in_use": "Utilisée",
"listening": "Écoute…",
"loading_line": "Cuisson des lembas…",
"mode_continue": "Une discussion qui s’allonge",
"mode_fresh": "Une nouvelle discussion à chaque fois",
"mode_manual": "Manuel",
"mode_plan": "Plan",
"model_busy": "Occupé : %1$s",
"model_context": "contexte de %1$s",
"model_free": "Libre maintenant",
"model_in_use": "Utilisé",
"model_levels": "Effort : %1$s",
"model_thinking_switchable": "Réflexion activable",
@@ -504,7 +535,10 @@
"push_on": "Les notifications sont activées pour cette instance.",
"regenerate": "Régénérer",
"run_missed": "Manquée ×%1$s",
"run_model_switched": "%1$s (le premier choix était occupé)",
"run_model_instead": "%1$s, au lieu de %2$s",
"run_no_text": "Cette exécution n’a laissé aucun texte.",
"run_result": "Résultat",
"run_retry_at": "Nouvel essai à %1$s",
"run_silent": "Rien de neuf",
"run_skipped": "Sautée",
"run_waiting": "En attente d’un modèle",
@@ -512,6 +546,8 @@
"schedule_edit": "Modifier la planification",
"schedule_history": "Historique",
"schedule_model": "Modèle : %1$s",
"schedule_models": "Modèles pour les tâches planifiées",
"schedule_models_hint": "Les tâches planifiées prennent le premier de ces modèles qui est libre, dans cet ordre. Décochez-en un pour l’écarter.",
"schedule_new": "Nouvelle planification",
"schedule_next": "Prochaine : %1$s",
"schedule_next_runs": "Prochaines exécutions",
@@ -618,9 +654,13 @@
"instance_in_use": "Használatban",
"listening": "Hallgatja…",
"loading_line": "Lembas sül…",
"mode_continue": "Egy csevegés, amely bővül",
"mode_fresh": "Minden alkalommal új csevegés",
"mode_manual": "Kézi",
"mode_plan": "Terv",
"model_busy": "Foglalt: %1$s",
"model_context": "%1$s kontextus",
"model_free": "Most szabad",
"model_in_use": "Használatban",
"model_levels": "Ráfordítás: %1$s",
"model_thinking_switchable": "Gondolkodás be- vagy kikapcsolva",
@@ -647,7 +687,10 @@
"push_on": "Az értesítések be vannak kapcsolva ehhez a példányhoz.",
"regenerate": "Újragenerálás",
"run_missed": "Kimaradt ×%1$s",
"run_model_switched": "%1$s (az első választás foglalt volt)",
"run_model_instead": "%1$s, %2$s helyett",
"run_no_text": "Ez a futás nem hagyott szöveget.",
"run_result": "Eredmény",
"run_retry_at": "Újrapróbálja: %1$s",
"run_silent": "Semmi új",
"run_skipped": "Kihagyva",
"run_waiting": "Modellre vár",
@@ -655,6 +698,8 @@
"schedule_edit": "Ütemezés szerkesztése",
"schedule_history": "Előzmények",
"schedule_model": "Modell: %1$s",
"schedule_models": "Modellek az ütemezett feladatokhoz",
"schedule_models_hint": "Az ütemezett feladatok ebben a sorrendben az első szabadot veszik. Vegye ki a pipát, hogy kihagyjon egyet.",
"schedule_new": "Új ütemezés",
"schedule_next": "Következő: %1$s",
"schedule_next_runs": "Következő futások",
@@ -761,8 +806,12 @@
"instance_in_use": "In uso",
"listening": "In ascolto…",
"loading_line": "I lembas stanno cuocendo…",
"mode_continue": "Una chat che cresce",
"mode_fresh": "Una nuova chat ogni volta",
"mode_manual": "Manuale",
"model_busy": "Occupato: %1$s",
"model_context": "contesto di %1$s",
"model_free": "Libero ora",
"model_in_use": "In uso",
"model_levels": "Impegno: %1$s",
"model_thinking_switchable": "Ragionamento attivabile",
@@ -789,7 +838,10 @@
"push_on": "Le notifiche sono attive per questa istanza.",
"regenerate": "Rigenera",
"run_missed": "Saltata ×%1$s",
"run_model_switched": "%1$s (la prima scelta era occupata)",
"run_model_instead": "%1$s, invece di %2$s",
"run_no_text": "Questa esecuzione non ha lasciato testo.",
"run_result": "Risultato",
"run_retry_at": "Riprova alle %1$s",
"run_silent": "Niente di nuovo",
"run_skipped": "Ignorata",
"run_waiting": "In attesa di un modello",
@@ -797,6 +849,8 @@
"schedule_edit": "Modifica pianificazione",
"schedule_history": "Cronologia",
"schedule_model": "Modello: %1$s",
"schedule_models": "Modelli per le attività pianificate",
"schedule_models_hint": "Le attività pianificate usano il primo di questi che è libero, in quest’ordine. Togli la spunta per escluderne uno.",
"schedule_new": "Nuova pianificazione",
"schedule_next": "Prossima: %1$s",
"schedule_next_runs": "Prossime esecuzioni",
@@ -903,8 +957,12 @@
"instance_in_use": "W użyciu",
"listening": "Słucham…",
"loading_line": "Lembasy się pieczą…",
"mode_continue": "Jeden czat, który rośnie",
"mode_fresh": "Za każdym razem nowy czat",
"mode_manual": "Ręcznie",
"model_busy": "Zajęty: %1$s",
"model_context": "kontekst %1$s",
"model_free": "Teraz wolny",
"model_in_use": "W użyciu",
"model_levels": "Wysiłek: %1$s",
"model_thinking_switchable": "Myślenie włączane lub wyłączane",
@@ -931,7 +989,10 @@
"push_on": "Powiadomienia są włączone dla tej instancji.",
"regenerate": "Wygeneruj ponownie",
"run_missed": "Pominięto ×%1$s",
"run_model_switched": "%1$s (pierwszy wybór był zajęty)",
"run_model_instead": "%1$s zamiast %2$s",
"run_no_text": "To uruchomienie nie zostawiło tekstu.",
"run_result": "Wynik",
"run_retry_at": "Ponowi próbę o %1$s",
"run_silent": "Nic nowego",
"run_skipped": "Pominięto",
"run_waiting": "Czeka na model",
@@ -939,6 +1000,8 @@
"schedule_edit": "Edytuj harmonogram",
"schedule_history": "Historia",
"schedule_model": "Model: %1$s",
"schedule_models": "Modele dla zaplanowanych zadań",
"schedule_models_hint": "Zaplanowane zadania biorą pierwszy wolny z nich, w tej kolejności. Odznacz, aby któryś pominąć.",
"schedule_new": "Nowy harmonogram",
"schedule_next": "Następnie: %1$s",
"schedule_next_runs": "Następne uruchomienia",
@@ -1045,8 +1108,12 @@
"instance_in_use": "Používa sa",
"listening": "Počúvam…",
"loading_line": "Pečú sa lembasy…",
"mode_continue": "Jedna konverzácia, ktorá rastie",
"mode_fresh": "Zakaždým nová konverzácia",
"mode_manual": "Ručne",
"model_busy": "Obsadený: %1$s",
"model_context": "kontext %1$s",
"model_free": "Teraz voľný",
"model_in_use": "Používa sa",
"model_levels": "Úsilie: %1$s",
"model_thinking_switchable": "Premýšľanie zapnúť alebo vypnúť",
@@ -1073,7 +1140,10 @@
"push_on": "Upozornenia sú pre túto inštanciu zapnuté.",
"regenerate": "Vygenerovať znova",
"run_missed": "Zmeškané ×%1$s",
"run_model_switched": "%1$s (prvá voľba bola zaneprázdnená)",
"run_model_instead": "%1$s, namiesto %2$s",
"run_no_text": "Tento beh nezanechal žiadny text.",
"run_result": "Výsledok",
"run_retry_at": "Skúsi to znova o %1$s",
"run_silent": "Nič nové",
"run_skipped": "Vynechané",
"run_waiting": "Čaká na model",
@@ -1081,6 +1151,8 @@
"schedule_edit": "Upraviť plán",
"schedule_history": "História",
"schedule_model": "Model: %1$s",
"schedule_models": "Modely pre naplánované úlohy",
"schedule_models_hint": "Naplánované úlohy vezmú prvý z nich, ktorý je voľný, v tomto poradí. Zrušte začiarknutie, ak niektorý chcete vynechať.",
"schedule_new": "Nový plán",
"schedule_next": "Nabudúce: %1$s",
"schedule_next_runs": "Ďalšie spustenia",