strom-research 1.34.0-beta.1 → 1.34.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.cs.md CHANGED
@@ -7,7 +7,7 @@ Změny každé verze ve zkratce. Úplné poznámky a instalační řádky jsou n
7
7
 
8
8
  ## 1.34.0
9
9
 
10
- *Připravuje se: bety do 1.34.0-beta.1. Oddíl bude úplný s vydáním.*
10
+ *Připravuje se: bety do 1.34.0-beta.3. Oddíl bude úplný s vydáním.*
11
11
 
12
12
  - **Hlavní citace a jedno pořadí citací:** citace každého údaje jdou v každém souboru v jednom pořadí – nejdřív hlavní
13
13
  citace, pak záznam samotné události, další originály a zbytek podle toho, jak jsou jisté. Hlavní citaci volí jen
@@ -22,12 +22,18 @@ Změny každé verze ve zkratce. Úplné poznámky a instalační řádky jsou n
22
22
  - **Poznámky z aplikace Strom:** úpravy poznámky údaje a poznámky účastníka od uživatele se vracejí do výzkumu, dřívější
23
23
  text zůstane v historii poznámky; odebraná poznámka nic neodebere. Vlastní událost kmotra nebo svědka z GEDCOM
24
24
  aplikace se pojmenuje v jazyce výzkumu.
25
+ Vlastní druhé narození nebo úmrtí aplikace a její zápis narození či úmrtí se poznají i v polštině a nehlásí se jako
26
+ nepřevzaté.
25
27
  - **Domov, ve kterém už výzkum je:** `strom setup --home <složka> --use-existing` (i nastavení po souhlasu) vezme tu
26
28
  složku za domov tak, jak je – nic se nepřesouvá a stará složka zůstane, jak byla.
27
29
  - **Odmítnuté příkazy:** příkaz, který oprávnění agenta odmítla, se uchová celý, i víceřádkový, takže ho `strom error`
28
30
  vidí celý; zkracuje ho až jeho hlášení.
29
31
  - **Jiný rodokmen pod jménem výzkumu:** odeslání z aplikace Strom, ve kterém skoro nejsou osoby výzkumu, jen jiné
30
32
  (třeba ukázkový strom aplikace), se odmítne a nic se nezapíše; je-li to záměr, vezme ho `strom sync <soubor> --force`.
33
+ - **Nepřihlášený agent v terminálu:** čtenáři `strom read` i samostatná práce spouštějí program agenta v terminálu,
34
+ který má vlastní přihlášení, ne to z desktopové aplikace. Když řekne, že není přihlášený, nic se nespustí a hláška
35
+ řekne, jak se přihlásit; stejně se řekne i u čtenáře, který tak skončí, nikdy jen „auth“. `strom doctor` má vlastní
36
+ řádek, jestli je agent v terminálu přihlášený.
31
37
 
32
38
  ## 1.33.0
33
39
 
package/CHANGELOG.de.md CHANGED
@@ -7,7 +7,7 @@ Die Änderungen jeder Version in Kürze. Die vollständigen Hinweise und die Ins
7
7
 
8
8
  ## 1.34.0
9
9
 
10
- *In Vorbereitung: die Betas bis 1.34.0-beta.1. Der Abschnitt ist mit dem Release vollständig.*
10
+ *In Vorbereitung: die Betas bis 1.34.0-beta.3. Der Abschnitt ist mit dem Release vollständig.*
11
11
 
12
12
  - **Das Hauptzitat und eine Reihenfolge der Zitate:** Die Zitate jeder Angabe stehen in jeder Datei in einer
13
13
  Reihenfolge – zuerst das Hauptzitat, dann der Eintrag des Ereignisses selbst, die weiteren Originale und der Rest
@@ -25,7 +25,8 @@ Die Änderungen jeder Version in Kürze. Die vollständigen Hinweise und die Ins
25
25
  - **Notizen aus der Strom-App:** Die Änderungen des Benutzers an der Notiz einer Angabe und an der Notiz eines
26
26
  Beteiligten kommen in die Forschung zurück, der frühere Text bleibt in der Geschichte der Notiz; eine entfernte Notiz
27
27
  entfernt nichts. Das eigene Ereignis eines Paten oder Zeugen im GEDCOM der App wird in der Sprache der Forschung
28
- benannt.
28
+ benannt. Die eigene zweite Geburt oder der zweite Tod der App und ihr Eintrag einer Geburt oder eines Todes werden
29
+ auch auf Polnisch erkannt und nie als nicht übernommen gemeldet.
29
30
  - **Ein Zuhause, in dem schon eine Forschung liegt:** `strom setup --home <Ordner> --use-existing` (und die Einrichtung
30
31
  nach einem Ja) nimmt diesen Ordner so, wie er ist, als Zuhause – nichts wird verschoben, der alte Ordner bleibt, wie
31
32
  er war.
@@ -34,6 +35,10 @@ Die Änderungen jeder Version in Kürze. Die vollständigen Hinweise und die Ins
34
35
  - **Ein anderer Stammbaum unter dem Namen der Forschung:** Eine Sendung aus der Strom-App, die kaum Personen der
35
36
  Forschung trägt, nur andere (etwa den Beispielstammbaum der App), wird abgelehnt und nichts wird geschrieben; ist es so
36
37
  gemeint, nimmt sie `strom sync <Datei> --force`.
38
+ - **Der Agent im Terminal nicht angemeldet:** die Leser von `strom read` und das selbstständige Arbeiten starten das
39
+ Programm des Agenten im Terminal, das eine eigene Anmeldung hat, nicht die der Desktop-App. Sagt es, dass es nicht
40
+ angemeldet ist, wird nichts gestartet und die Meldung sagt, wie man sich anmeldet; ein Leser, der so endet, wird
41
+ ebenso gemeldet, nie nur „auth“. `strom doctor` sagt in einer eigenen Zeile, ob der Agent im Terminal angemeldet ist.
37
42
 
38
43
  ## 1.33.0
39
44
 
package/CHANGELOG.md CHANGED
@@ -7,7 +7,7 @@ The changes of each version in short. The full notes and the install lines are o
7
7
 
8
8
  ## 1.34.0
9
9
 
10
- *In preparation: the betas up to 1.34.0-beta.1. The section is complete with the release.*
10
+ *In preparation: the betas up to 1.34.0-beta.3. The section is complete with the release.*
11
11
 
12
12
  - **The main citation and one order of citations:** every fact's citations come in one order in every file — the
13
13
  main citation first, then the record of the event itself, the other originals, the rest by how sure they are. The
@@ -22,6 +22,8 @@ The changes of each version in short. The full notes and the install lines are o
22
22
  - **Notes from the Strom app:** the user's edits of a fact's note and of a participant's note come back into the
23
23
  research, the earlier text kept in the note's history; a note taken away takes nothing away. A godparent's or a
24
24
  witness's own event in the app's GEDCOM is named in the research's language.
25
+ The app's own second birth or death and its entry of a birth or a death are known in Polish too, never reported as
26
+ not taken over.
25
27
  - **A home that holds a research already:** `strom setup --home <folder> --use-existing` (and the setup on a yes) takes
26
28
  that folder as the home as it is — nothing is moved and the old folder stays as it was.
27
29
  - **Refused commands:** a command the agent's permissions refused is kept whole, also one of several lines, so
@@ -29,6 +31,10 @@ The changes of each version in short. The full notes and the install lines are o
29
31
  - **Another family tree under the research's name:** a send from the Strom app that carries hardly any of the
30
32
  research's people, only others (the app's sample tree, say), is refused and nothing is written; if it is meant,
31
33
  `strom sync <file> --force` takes it.
34
+ - **The agent in the terminal not logged in:** the readers of `strom read` and working alone start the agent's own
35
+ program in the terminal, which has a login of its own, not the desktop app's. When it says it is not logged in,
36
+ nothing is started and the message says how to log in; a reader that ends so is said the same way, never only "auth".
37
+ `strom doctor` says in a line of its own whether the agent in the terminal is logged in.
32
38
 
33
39
  ## 1.33.0
34
40
 
package/CHANGELOG.pl.md CHANGED
@@ -7,7 +7,7 @@ Zmiany każdej wersji w skrócie. Pełne informacje o wydaniach i polecenia inst
7
7
 
8
8
  ## 1.34.0
9
9
 
10
- *W przygotowaniu: bety do 1.34.0-beta.1. Sekcja będzie kompletna z wydaniem.*
10
+ *W przygotowaniu: bety do 1.34.0-beta.3. Sekcja będzie kompletna z wydaniem.*
11
11
 
12
12
  - **Główny przypis i jedna kolejność przypisów:** przypisy każdej danej idą w każdym pliku w jednej kolejności – najpierw
13
13
  główny przypis, potem zapis samego zdarzenia, inne oryginały, a reszta według tego, jak są pewne. Główny przypis
@@ -22,7 +22,8 @@ Zmiany każdej wersji w skrócie. Pełne informacje o wydaniach i polecenia inst
22
22
  kolejki. Komunikat agenta o wyczerpaniu limitu jest odczytywany jako limit planu razem z czasem odnowienia.
23
23
  - **Notatki z aplikacji Strom:** zmiany użytkownika w notatce danej i w notatce uczestnika wracają do badania, wcześniejszy
24
24
  tekst zostaje w historii notatki; usunięta notatka niczego nie usuwa. Własne zdarzenie chrzestnego lub świadka w
25
- GEDCOM aplikacji jest nazwane w języku badania.
25
+ GEDCOM aplikacji jest nazwane w języku badania. Własne drugie urodzenie lub zgon aplikacji i jej akt urodzenia lub
26
+ zgonu są rozpoznawane także po polsku i nigdy nie są zgłaszane jako nieprzejęte.
26
27
  - **Folder domowy, w którym badanie już jest:** `strom setup --home <folder> --use-existing` (i konfiguracja po
27
28
  zgodzie) przyjmuje ten folder za domowy takim, jaki jest – nic nie jest przenoszone, a stary folder zostaje bez zmian.
28
29
  - **Odrzucone polecenia:** polecenie odrzucone przez uprawnienia agenta jest zachowane w całości, także wielowierszowe,
@@ -30,6 +31,10 @@ Zmiany każdej wersji w skrócie. Pełne informacje o wydaniach i polecenia inst
30
31
  - **Inne drzewo pod nazwą badania:** wysłanie z aplikacji Strom, w którym prawie nie ma osób badania, tylko inne
31
32
  (na przykład przykładowe drzewo aplikacji), jest odrzucane i nic nie jest zapisane; jeśli to zamierzone, przyjmie je
32
33
  `strom sync <plik> --force`.
34
+ - **Agent w terminalu niezalogowany:** czytelnicy `strom read` i praca samodzielna uruchamiają program agenta
35
+ w terminalu, który ma własne logowanie, nie to z aplikacji desktopowej. Gdy mówi, że nie jest zalogowany, nic się nie
36
+ uruchamia, a komunikat mówi, jak się zalogować; tak samo przy czytelniku, który tak kończy, nigdy tylko „auth”.
37
+ `strom doctor` ma osobny wiersz, czy agent w terminalu jest zalogowany.
33
38
 
34
39
  ## 1.33.0
35
40
 
@@ -632,6 +632,12 @@
632
632
  "ui.run.stop.limit": "limit předplatného{resets}",
633
633
  "ui.run.stop.resets": " (obnoví se {at})",
634
634
  "ui.run.stop.auth": "agent není přihlášený – jednou spustit {command} a přihlásit se",
635
+ "ui.read.auth": "Claude Code v terminálu není přihlášený (čtenáře spouští strom sám, ne aplikace Claude) – jednou v terminálu spustit {command} a přihlásit se (/login)",
636
+ "ui.read.done": "■ čtenář {k}: {outcome}{cost} · nálezy: {n}",
637
+ "ui.read.timeout": "zastaven na svém časovém limitu ({minutes} min)",
638
+ "ui.read.failed": "neúspěšní čtenáři: {list}",
639
+ "ui.read.failed.timeout": "zastaven na svém časovém limitu, {minutes} min",
640
+ "ui.read.stalled": "služba jeho agenta po novém pokusu zmlkla, i po obnovení – zastaven",
635
641
  "ui.run.stop.failed": "agent selhal: {detail}",
636
642
  "ui.run.stop.model": "{agent} nepřijímá model {model} – zvolit jiný: strom config set model.lead <model> (nebo pro jeden běh: strom run --model <model>)",
637
643
  "ui.run.stop.model.codex": "model {model} není v nainstalované verzi Codex CLI dostupný – aktualizovat Codex (npm install -g @openai/codex@latest), nebo zvolit jiný model: strom config set model.lead <model> (nebo pro jeden běh: strom run --model <model>)",
@@ -760,7 +766,11 @@
760
766
  "ui.doc.where": "kde se mluví s agentem",
761
767
  "ui.doc.where.app": "aplikace {app}",
762
768
  "ui.doc.cli": "agent v terminálu",
769
+ "ui.doc.login": "přihlášení Claude Code",
763
770
  "ui.doc.cli.missing": "samostatná práce, čtení skenů a práce z aplikace Strom potřebují {cli} v terminálu",
771
+ "ui.doc.login.ok": "Claude Code v terminálu přihlášen",
772
+ "ui.doc.login.no": "Claude Code v terminálu není přihlášený – samostatná práce, čtení skenů a práce z aplikace Strom hned skončí (aplikace Claude má vlastní přihlášení)",
773
+ "ui.doc.login.fix": "{command} v terminálu, pak /login",
764
774
  "ui.doc.where.terminal": "terminál ({agent})",
765
775
  "ui.run.needscli": "Samostatná práce potřebuje {agent} v terminálu (samotná aplikace to neumí).",
766
776
  "ui.fix.git.download": "Stáhnout git pro strom (asi {mb} MB – oficiální Git for Windows, používá ho jen strom, nic se neinstaluje)?",
@@ -1545,6 +1555,8 @@
1545
1555
  "ui.error.agent.cli-missing": "{agent} tu v terminálu není nainstalovaný – {command} ho spouští (samotná aplikace to neumí)",
1546
1556
  "ui.error.agent.cli-missing.hint": "instalace {agent}: {install}",
1547
1557
  "ui.error.agent.cli-missing.app.hint": "rozhovor v aplikaci {app} jde dál: strom chat · instalace {agent}: {install}",
1558
+ "ui.error.agent.logged-out": "Claude Code v terminálu není přihlášený – {command} ho spouští sám (ne aplikace Claude, ta má vlastní přihlášení)",
1559
+ "ui.error.agent.logged-out.hint": "jednou se přihlásit v terminálu: {login}, pak /login",
1548
1560
  "ui.status.disk": "Na disku: výzkum {research} · vedle něj si strom drží {strom}",
1549
1561
  "ui.status.disk.frees": " (strom tidy uvolní {size})",
1550
1562
  "ui.status.refused": "{host} odmítl automatický přístup stromu — snímky ručně; zrušit: strom allow host {host} --unblock",
@@ -632,6 +632,12 @@
632
632
  "ui.run.stop.limit": "Limit des Abonnements{resets}",
633
633
  "ui.run.stop.resets": " (erneuert sich {at})",
634
634
  "ui.run.stop.auth": "der Agent ist nicht angemeldet – einmal {command} starten und anmelden",
635
+ "ui.read.auth": "Claude Code im Terminal ist nicht angemeldet (die Leser startet strom selbst, nicht die Claude-App) – einmal im Terminal {command} starten und anmelden (/login)",
636
+ "ui.read.done": "■ Leser {k}: {outcome}{cost} · Funde: {n}",
637
+ "ui.read.timeout": "an seinem Zeitlimit angehalten ({minutes} min)",
638
+ "ui.read.failed": "fehlgeschlagene Leser: {list}",
639
+ "ui.read.failed.timeout": "an seinem Zeitlimit angehalten, {minutes} min",
640
+ "ui.read.stalled": "der Dienst seines Agenten verstummte nach einem erneuten Versuch, auch nach dem Fortsetzen – angehalten",
635
641
  "ui.run.stop.failed": "der Agent ist gescheitert: {detail}",
636
642
  "ui.run.stop.model": "{agent} nimmt das Modell {model} nicht an – ein anderes wählen: strom config set model.lead <model> (oder für einen Lauf: strom run --model <model>)",
637
643
  "ui.run.stop.model.codex": "das Modell {model} ist in der installierten Codex-CLI nicht verfügbar – Codex aktualisieren (npm install -g @openai/codex@latest) oder ein anderes Modell wählen: strom config set model.lead <model> (oder für einen Lauf: strom run --model <model>)",
@@ -760,7 +766,11 @@
760
766
  "ui.doc.where": "Ort des Gesprächs",
761
767
  "ui.doc.where.app": "die App {app}",
762
768
  "ui.doc.cli": "Agent im Terminal",
769
+ "ui.doc.login": "Anmeldung Claude Code",
763
770
  "ui.doc.cli.missing": "selbstständiges Arbeiten, das Lesen von Scans und Arbeit aus der Strom-App brauchen {cli} im Terminal",
771
+ "ui.doc.login.ok": "Claude Code im Terminal angemeldet",
772
+ "ui.doc.login.no": "Claude Code im Terminal ist nicht angemeldet – selbstständiges Arbeiten, das Lesen von Scans und Arbeit aus der Strom-App enden sofort (die Claude-App hat ihre eigene Anmeldung)",
773
+ "ui.doc.login.fix": "{command} im Terminal, dann /login",
764
774
  "ui.doc.where.terminal": "das Terminal ({agent})",
765
775
  "ui.run.needscli": "Selbstständiges Arbeiten braucht {agent} im Terminal (die App allein kann das nicht).",
766
776
  "ui.fix.git.download": "Git für strom herunterladen (etwa {mb} MB – das offizielle Git for Windows, nur strom nutzt es, keine Installation)?",
@@ -1545,6 +1555,8 @@
1545
1555
  "ui.error.agent.cli-missing": "{agent} ist hier im Terminal nicht installiert – {command} startet es (die App allein kann das nicht)",
1546
1556
  "ui.error.agent.cli-missing.hint": "{agent} installieren: {install}",
1547
1557
  "ui.error.agent.cli-missing.app.hint": "das Gespräch in der App {app} geht weiter: strom chat · {agent} installieren: {install}",
1558
+ "ui.error.agent.logged-out": "Claude Code im Terminal ist nicht angemeldet – {command} startet es selbst (nicht die Claude-App, die ihre eigene Anmeldung hat)",
1559
+ "ui.error.agent.logged-out.hint": "einmal im Terminal anmelden: {login}, dann /login",
1548
1560
  "ui.status.disk": "Auf der Festplatte: die Forschung {research} · daneben hält strom {strom}",
1549
1561
  "ui.status.disk.frees": " (strom tidy gibt {size} frei)",
1550
1562
  "ui.status.refused": "{host} hat den automatischen Zugriff von strom abgelehnt — Bilder von Hand; aufheben: strom allow host {host} --unblock",
@@ -1825,7 +1837,7 @@
1825
1837
  "ui.sync.do.cite.sourceRemoved": "nichts ändert sich: die Forschung behält die Quelle und ihre Zitate",
1826
1838
  "ui.sync.do.cite.notCarried": "nichts ändert sich: die Forschung behält das Zitat",
1827
1839
  "ui.sync.do.fact.noMatch": "nicht geschrieben: die Angabe, bei der er gewählt wurde, hat die Forschung so nicht",
1828
- "ui.sync.do.event.retracted": "nicht geschrieben: die Forschung hat diese Angabe inzwischen zurückgenommen (sie kommt nicht in die App zurück)",
1840
+ "ui.sync.do.event.retracted": "nicht geschrieben: die Forschung hat diese Angabe inzwischen zurückgezogen (sie kommt nicht in die App zurück)",
1829
1841
  "ui.sync.edits": "Eigene Änderungen an Angaben, die ein Eintrag belegt: {mode} (strom config set sync.edits conflict|user)",
1830
1842
  "ui.sync.mode.conflict": "ein Widerspruch zum Entscheiden",
1831
1843
  "ui.sync.mode.user": "Die eigene Änderung gilt",
@@ -3177,7 +3189,7 @@
3177
3189
  "ui.conflict.name": "Name",
3178
3190
  "ui.conflict.primary": "Hauptname",
3179
3191
  "ui.conflict.primary.none": "nicht gewählt",
3180
- "ui.proposal.retract": "zurückgenommen: {reason}",
3192
+ "ui.proposal.retract": "zurückgezogen: {reason}",
3181
3193
  "ui.conflict.proposal": "Vorschlag des Agenten",
3182
3194
  "ui.conflict.proposal.user": "jetzt der Wert des Benutzers",
3183
3195
  "ui.conflict.proposal.import": "jetzt aus dem importierten Stammbaum",
@@ -632,6 +632,12 @@
632
632
  "ui.run.stop.limit": "limit subskrypcji{resets}",
633
633
  "ui.run.stop.resets": " (odnowi się {at})",
634
634
  "ui.run.stop.auth": "agent nie jest zalogowany – raz uruchomić {command} i się zalogować",
635
+ "ui.read.auth": "Claude Code w terminalu nie jest zalogowany (czytelników uruchamia sam strom, nie aplikacja Claude) – raz uruchomić {command} w terminalu i się zalogować (/login)",
636
+ "ui.read.done": "■ czytelnik {k}: {outcome}{cost} · znaleziska: {n}",
637
+ "ui.read.timeout": "zatrzymany na swoim limicie czasu ({minutes} min)",
638
+ "ui.read.failed": "czytelnicy z błędem: {list}",
639
+ "ui.read.failed.timeout": "zatrzymany na swoim limicie czasu, {minutes} min",
640
+ "ui.read.stalled": "usługa jego agenta zamilkła po ponownej próbie, także po wznowieniu – zatrzymany",
635
641
  "ui.run.stop.failed": "agent zawiódł: {detail}",
636
642
  "ui.run.stop.model": "{agent} nie przyjmuje modelu {model} – wybrać inny: strom config set model.lead <model> (albo na jeden przebieg: strom run --model <model>)",
637
643
  "ui.run.stop.model.codex": "model {model} nie jest dostępny w zainstalowanej wersji Codex CLI – zaktualizować Codex (npm install -g @openai/codex@latest) albo wybrać inny model: strom config set model.lead <model> (albo na jeden przebieg: strom run --model <model>)",
@@ -760,7 +766,11 @@
760
766
  "ui.doc.where": "gdzie toczy się rozmowa z agentem",
761
767
  "ui.doc.where.app": "aplikacja {app}",
762
768
  "ui.doc.cli": "agent w terminalu",
769
+ "ui.doc.login": "logowanie Claude Code",
763
770
  "ui.doc.cli.missing": "praca samodzielna, czytanie skanów i praca z aplikacji Strom wymagają {cli} w terminalu",
771
+ "ui.doc.login.ok": "Claude Code w terminalu zalogowany",
772
+ "ui.doc.login.no": "Claude Code w terminalu nie jest zalogowany – praca samodzielna, czytanie skanów i praca z aplikacji Strom od razu się kończą (aplikacja Claude ma własne logowanie)",
773
+ "ui.doc.login.fix": "{command} w terminalu, potem /login",
764
774
  "ui.doc.where.terminal": "terminal ({agent})",
765
775
  "ui.run.needscli": "Praca samodzielna wymaga {agent} w terminalu (sama aplikacja tego nie potrafi).",
766
776
  "ui.fix.git.download": "Pobrać git dla strom (ok. {mb} MB – oficjalny Git for Windows, używa go tylko strom, nic się nie instaluje)?",
@@ -1545,6 +1555,8 @@
1545
1555
  "ui.error.agent.cli-missing": "{agent} nie jest tu zainstalowany w terminalu – {command} go uruchamia (sama aplikacja tego nie potrafi)",
1546
1556
  "ui.error.agent.cli-missing.hint": "instalacja {agent}: {install}",
1547
1557
  "ui.error.agent.cli-missing.app.hint": "rozmowa w aplikacji {app} trwa dalej: strom chat · instalacja {agent}: {install}",
1558
+ "ui.error.agent.logged-out": "Claude Code w terminalu nie jest zalogowany – {command} uruchamia go sam (nie aplikacja Claude, która ma własne logowanie)",
1559
+ "ui.error.agent.logged-out.hint": "raz zalogować się w terminalu: {login}, potem /login",
1548
1560
  "ui.status.disk": "Na dysku: badanie {research} · obok niego strom przechowuje {strom}",
1549
1561
  "ui.status.disk.frees": " (strom tidy zwolni {size})",
1550
1562
  "ui.status.refused": "{host} odmówił programowi strom automatycznego dostępu – skany ręcznie; zniesienie: strom allow host {host} --unblock",
package/dist/cli/ui.js CHANGED
@@ -609,6 +609,12 @@ export const UI = {
609
609
  "ui.run.stop.limit": "subscription limit{resets}",
610
610
  "ui.run.stop.resets": " (resets {at})",
611
611
  "ui.run.stop.auth": "the agent is not logged in — run {command} once and log in",
612
+ "ui.read.auth": "Claude Code in the terminal is not logged in (the readers start it themselves, not the Claude app) — run {command} once in a terminal and log in (/login)",
613
+ "ui.read.done": "■ reader {k}: {outcome}{cost} · {n} with finds",
614
+ "ui.read.timeout": "stopped at its time limit ({minutes} min)",
615
+ "ui.read.failed": "readers that failed: {list}",
616
+ "ui.read.failed.timeout": "stopped at its time limit, {minutes} min",
617
+ "ui.read.stalled": "its agent's service went silent after a retry, also when resumed — stopped",
612
618
  "ui.run.stop.failed": "the agent failed: {detail}",
613
619
  "ui.run.stop.model": "{agent} does not take the model {model} — another one: strom config set model.lead <model> (or for one run: strom run --model <model>)",
614
620
  "ui.run.stop.model.codex": "the model {model} is not available in the Codex CLI installed here — update Codex (npm install -g @openai/codex@latest), or another model: strom config set model.lead <model> (or for one run: strom run --model <model>)",
@@ -731,7 +737,11 @@ export const UI = {
731
737
  "ui.doc.where": "where the conversation is",
732
738
  "ui.doc.where.app": "the {app} app",
733
739
  "ui.doc.cli": "the agent in the terminal",
740
+ "ui.doc.login": "Claude Code login",
734
741
  "ui.doc.cli.missing": "working alone, reading scans and work from the Strom app need {cli} in the terminal",
742
+ "ui.doc.login.ok": "Claude Code in the terminal logged in",
743
+ "ui.doc.login.no": "Claude Code in the terminal is not logged in — working alone, reading scans and work from the Strom app stop at once (the Claude app has its own login)",
744
+ "ui.doc.login.fix": "{command} in a terminal, then /login",
735
745
  "ui.doc.where.terminal": "the terminal ({agent})",
736
746
  "ui.run.needscli": "Working on its own needs {agent} in the terminal (the app alone cannot).",
737
747
  "ui.fix.git.download": "Download git for strom (about {mb} MB — the official Git for Windows, used by strom only, no installation)?",
@@ -1505,6 +1515,8 @@ export const UI = {
1505
1515
  "ui.error.agent.cli-missing": "{agent} is not installed in the terminal here — {command} starts it (the app alone cannot)",
1506
1516
  "ui.error.agent.cli-missing.hint": "installing {agent}: {install}",
1507
1517
  "ui.error.agent.cli-missing.app.hint": "the conversation in the {app} app goes on: strom chat · installing {agent}: {install}",
1518
+ "ui.error.agent.logged-out": "Claude Code in the terminal is not logged in — {command} starts it itself (not the Claude app, which has its own login)",
1519
+ "ui.error.agent.logged-out.hint": "logging in once in a terminal: {login}, then /login",
1508
1520
  "ui.status.disk": "On disk: the research {research} · strom's own beside it {strom}",
1509
1521
  "ui.status.disk.frees": " (strom tidy frees {size})",
1510
1522
  "ui.status.refused": "{host} refused strom's automated access — images by hand; to lift it: strom allow host {host} --unblock",
@@ -18,7 +18,8 @@ import { mergeOverlappingClips } from "../core/clipmerge.js";
18
18
  import { batches, READER_MINUTES_HELP } from "../core/reader.js";
19
19
  import { checkPrompt, locatePrompt, parseChecked, parseLocated, widen } from "../core/clipfinder.js";
20
20
  import { displayName } from "../core/people.js";
21
- import { readers, refuseReadersInArchive } from "./readers.js";
21
+ import { readers, readersLang, refuseReadersInArchive } from "./readers.js";
22
+ import { ui } from "../cli/ui.js";
22
23
  import { verifyFast } from "../core/integrity.js";
23
24
  import { pool } from "./read.js";
24
25
  import { addReaders } from "../core/session.js";
@@ -183,7 +184,7 @@ register({
183
184
  // a search over many entries, not one entry: no clip, and said so
184
185
  const many = [...new Set(locs.filter((l) => l.result === "many").map((l) => l.source))];
185
186
  const missed = todo.filter((s) => !clipsOf.has(s.id));
186
- const text = lines(`${clipsOf.size} of ${counted(todo.length, "source")} got their clip${model ? ` · ${model}` : ""}${r0.cost() ? ` · $${r0.cost().toFixed(2)}` : ""}`, many.length ? `not one entry but a search over many (no clip — a page of it would show nothing): ${many.join(", ")}` : undefined, rejected.length ? `the check turned down: ${rejected.map((v) => `${v.source} (${v.verdict}${v.why ? `: ${truncate(v.why, 40)}` : ""})`).join(", ")}` : undefined, missed.length ? `without a clip: ${missed.map((s) => s.id).slice(0, 20).join(", ")}${missed.length > 20 ? ` … (${missed.length})` : ""} — strom source edit S… --clip M…@x,y,w,h, or strom clips again` : undefined, away.length ? `on images not on this computer (or not JPEG/PNG): ${away.length}` : undefined, failed.length ? `readers that failed: ${failed.join(", ")}` : undefined, "the entries cut out for the Strom app: strom app (output/tree-strom.ged)");
187
+ const text = lines(`${clipsOf.size} of ${counted(todo.length, "source")} got their clip${model ? ` · ${model}` : ""}${r0.cost() ? ` · $${r0.cost().toFixed(2)}` : ""}`, many.length ? `not one entry but a search over many (no clip — a page of it would show nothing): ${many.join(", ")}` : undefined, rejected.length ? `the check turned down: ${rejected.map((v) => `${v.source} (${v.verdict}${v.why ? `: ${truncate(v.why, 40)}` : ""})`).join(", ")}` : undefined, missed.length ? `without a clip: ${missed.map((s) => s.id).slice(0, 20).join(", ")}${missed.length > 20 ? ` … (${missed.length})` : ""} — strom source edit S… --clip M…@x,y,w,h, or strom clips again` : undefined, away.length ? `on images not on this computer (or not JPEG/PNG): ${away.length}` : undefined, failed.length ? ui(readersLang(ctx, tree), "ui.read.failed", { list: failed.join(", ") }) : undefined, "the entries cut out for the Strom app: strom app (output/tree-strom.ged)");
187
188
  return {
188
189
  text,
189
190
  data: {
@@ -16,7 +16,7 @@ import { cropOf, halves, makeView, mediaOrient, parseCrop, readInHalves, tiles }
16
16
  import { IMAGE_MAX, IMAGE_MAX_LARGE } from "../agents/images.js";
17
17
  import { viewSizesFor } from "../core/viewsizes.js";
18
18
  import { currentSession } from "../core/session.js";
19
- import { BATCH, BATCH_MAX, batches, NEXT_BLOCK, parseReport, READER_MINUTES_HELP, readerPrompt, readerSettings, READER_STALLED, readerStall, viewCount, withoutNextBlock } from "../core/reader.js";
19
+ import { BATCH, BATCH_MAX, batches, NEXT_BLOCK, parseReport, READER_MINUTES_HELP, readerPrompt, readerSettings, readerStall, viewCount, withoutNextBlock } from "../core/reader.js";
20
20
  import { exifOrientation, shownSize } from "../image/index.js";
21
21
  import { fileToShown, shownToFile, turnsAcross } from "../image/image.js";
22
22
  import { RUNNERS } from "../runners/index.js";
@@ -31,7 +31,9 @@ import { recordReader, tokensOf, usageOpt } from "../core/metrics.js";
31
31
  import { readerLimit } from "../core/readstats.js";
32
32
  import { guardIndexFirst, INDEX_FIRST_DEFAULT } from "../core/indexfirst.js";
33
33
  import { bookViewSizes, readingOf, treeTuning, tuningOn } from "../core/tune.js";
34
- import { claimStem, noReaderFor, readerAgent, readerDesk, refuseReadersInArchive, refuseReadersInSandbox, refuseReadersWithoutCli } from "./readers.js";
34
+ import { claimStem, noReaderFor, readerAgent, readerAuthSaid, readerDesk, readersLang, refuseReadersInArchive, refuseReadersInSandbox, refuseReadersLoggedOut, refuseReadersWithoutCli } from "./readers.js";
35
+ import { ui } from "../cli/ui.js";
36
+ import { claudeLoginCommand } from "../core/claudedir.js";
35
37
  import { noReaderHere, refusedBySandbox } from "../core/sandbox.js";
36
38
  import { activeFetches } from "../core/fetching.js";
37
39
  import { finishOf } from "../core/clock.js";
@@ -302,6 +304,8 @@ register({
302
304
  const runner = RUNNERS[agentId];
303
305
  if (!runner)
304
306
  throw noReaderFor(agentId, "strom read");
307
+ // Claude Code in the terminal said outright not logged in: no reader started, said with how to log in (K040)
308
+ refuseReadersLoggedOut(ctx, agentId, "strom read");
305
309
  const model = typeof opts.model === "string" ? opts.model : ctx.settings.models(agentId, tree.config).vision;
306
310
  const effort = ctx.settings.effort(agentId, tree.config)?.value;
307
311
  // as at the start of the session at work: what strom tuned for the readers' agent and model holds for all of it
@@ -606,7 +610,14 @@ register({
606
610
  minutesFrom: limit.from,
607
611
  report: tree.relative(report),
608
612
  });
609
- progress(`■ reader ${k + 1}: ${r.stalled ? READER_STALLED : r.outcome === "timeout" ? `stopped at its time limit (${minutes} min)` : r.outcome}${r.metrics.costUsd !== undefined ? ` · $${r.metrics.costUsd.toFixed(2)}` : ""} · ${findings.filter((f) => f.result === "found").length} with finds`);
613
+ // in the research's language for a person, in English for an agent (readersLang)
614
+ const said = readersLang(ctx, tree);
615
+ progress(ui(said, "ui.read.done", {
616
+ k: k + 1,
617
+ outcome: r.stalled ? ui(said, "ui.read.stalled") : r.outcome === "timeout" ? ui(said, "ui.read.timeout", { minutes }) : r.outcome === "auth" ? `auth — ${readerAuthSaid(ctx, tree, agentId)}` : r.outcome,
618
+ cost: r.metrics.costUsd !== undefined ? ` · $${r.metrics.costUsd.toFixed(2)}` : "",
619
+ n: findings.filter((f) => f.result === "found").length,
620
+ }));
610
621
  return { group, report, outcome: r.outcome, cost: r.metrics.costUsd, findings, minutes, stalled: Boolean(r.stalled) };
611
622
  };
612
623
  const stop = untilFound ? stopped : undefined;
@@ -684,7 +695,9 @@ register({
684
695
  const told = summary(mine?.blocks ?? [], { maxLines: 60, question });
685
696
  const text = lines(`read ${counted(prepared.length, "image")}${spreads ? ` (${counted(spreads, "double page")} as ${spreads === 1 ? "its" : "their"} halves${why ? `: ${why}` : sides ? "" : ": unclear before"})` : ""} in ${counted(results.length, "batch", "batches")}${model ? ` · ${model}` : ""}${cost ? ` · $${cost.toFixed(2)}` : ""}`, `found on: ${found.length ? runs(found.map(numberOf)) : "none"}`, unclear.length
686
697
  ? `unclear on: ${runs(unclear.map(numberOf))} — look at that place closer yourself (strom media view ${b ?? "B…"}:${numberOf(unclear[0])} --half both, --crop) or read again (a double page then comes in halves): no negative of the range before`
687
- : undefined, notReadSaid, missing.length ? `NOT reported: ${runs(missing.map((m) => m.image ?? 0))} — read these again` : undefined, failed.length ? `readers that failed: ${failed.map((r) => `${runs(r.group.map((g) => g.image ?? 0))} (${r.stalled ? READER_STALLED : r.outcome === "timeout" ? `stopped at its time limit, ${r.minutes} min` : r.outcome})`).join(", ")}` : undefined, late.length
698
+ : undefined, notReadSaid, missing.length ? `NOT reported: ${runs(missing.map((m) => m.image ?? 0))} — read these again` : undefined, failed.length ? ui(readersLang(ctx, tree), "ui.read.failed", { list: failed.map((r) => `${runs(r.group.map((g) => g.image ?? 0))} (${r.stalled ? ui(readersLang(ctx, tree), "ui.read.stalled") : r.outcome === "timeout" ? ui(readersLang(ctx, tree), "ui.read.failed.timeout", { minutes: r.minutes }) : r.outcome})`).join(", ") }) : undefined,
699
+ // not logged in: what to do, never only "auth" (K040)
700
+ failed.some((r) => r.outcome === "auth") ? readerAuthSaid(ctx, tree, agentId) : undefined, late.length
688
701
  ? `a reader stopped at its time limit gave no answer for ${late.length === 1 && late[0].group.length === 1 ? "its image" : "its images"}: look at ${late.flatMap((r) => r.group).length === 1 ? "it" : "them"} yourself — ${late
689
702
  .flatMap((r) => r.group)
690
703
  .slice(0, 3)
@@ -704,6 +717,8 @@ register({
704
717
  // --until-found: the reader that found it stopped the reading (its batch), the images left unread
705
718
  stoppedAtFind: atFind ? { batch: foundBy + 1, notRead } : undefined,
706
719
  failed: failed.map((r) => ({ images: r.group.map((g) => g.id), outcome: r.outcome, ...(r.outcome === "timeout" ? { minutes: r.minutes } : {}), ...(r.stalled ? { stalled: true } : {}) })),
720
+ // a reader not logged in: the command that logs its agent in (K040)
721
+ login: failed.some((r) => r.outcome === "auth") ? (agentId === "claude" ? claudeLoginCommand(ctx.env) : runner.command) : undefined,
707
722
  reports: results.map((r) => r.report),
708
723
  reading: stem,
709
724
  blocks: (mine?.blocks ?? []).filter((x) => x.result !== "nothing" || x.illegible?.length || x.gaps?.length || x.section?.length).map((x) => ({ image: x.num, media: x.media, result: x.result, pages: x.pages, entries: x.entries, certainty: x.certainty, illegible: x.illegible, gaps: x.gaps, section: x.section })),
@@ -6,11 +6,13 @@
6
6
  import fs from "node:fs";
7
7
  import path from "node:path";
8
8
  import { UsageError } from "../core/errors.js";
9
- import { requireAgentCli } from "../core/agentcli.js";
10
- import { READER_STALLED, readerSettings, readerStall } from "../core/reader.js";
9
+ import { requireAgentCli, requireClaudeLogin } from "../core/agentcli.js";
10
+ import { claudeLoginCommand } from "../core/claudedir.js";
11
+ import { AGENTS, isAgent, withoutAgentMarks } from "../core/which.js";
12
+ import { ui } from "../cli/ui.js";
13
+ import { readerSettings, readerStall } from "../core/reader.js";
11
14
  import { readerLimit } from "../core/readstats.js";
12
15
  import { RUNNERS } from "../runners/index.js";
13
- import { withoutAgentMarks } from "../core/which.js";
14
16
  import { permissionPath } from "../agents/files.js";
15
17
  import { viewSizesFor } from "../core/viewsizes.js";
16
18
  import { refuseReadersWhenFinishing } from "../core/clock.js";
@@ -99,6 +101,28 @@ export function refuseReadersInArchive(ctx, tree, command) {
99
101
  export function refuseReadersWithoutCli(ctx, tree, command) {
100
102
  requireAgentCli(readerAgent(ctx, tree), ctx.env, command);
101
103
  }
104
+ /**
105
+ * Claude Code in the terminal said outright not logged in (`claude auth status`, in the readers' environment): no reader
106
+ * is started — every one would end "auth" at $0.00 (K040). Said at once with how to log in (agent.logged-out).
107
+ */
108
+ export function refuseReadersLoggedOut(ctx, agentId, command) {
109
+ const { STROM_SESSION: _s, ...env } = ctx.env;
110
+ requireClaudeLogin(agentId, withoutAgentMarks(env), command);
111
+ }
112
+ /**
113
+ * A reader that ended "auth": its agent's CLI not logged in, said with how to log in (K040) — English for an agent,
114
+ * else in the research's language.
115
+ */
116
+ /** The language the readers' progress is said in: the research's for a person, English for an agent. */
117
+ export function readersLang(ctx, tree) {
118
+ return isAgent(ctx.env) ? "en" : tree.lang;
119
+ }
120
+ export function readerAuthSaid(ctx, tree, agentId) {
121
+ const lang = readersLang(ctx, tree);
122
+ if (agentId === "claude")
123
+ return ui(lang, "ui.read.auth", { command: claudeLoginCommand(ctx.env) });
124
+ return ui(lang, "ui.run.stop.auth", { command: AGENTS.find((a) => a.id === agentId)?.command ?? agentId });
125
+ }
102
126
  /** Inside a sandbox that lets no agent start (Codex's) no reader is started: said at once, with what to do instead. */
103
127
  export function refuseReadersInSandbox(ctx, command) {
104
128
  const sb = sandboxOf(ctx.env);
@@ -116,6 +140,7 @@ export function readers(ctx, tree, shared, kind, first, opts, reportsAt, own = {
116
140
  refuseReadersWhenFinishing(tree.root, ctx.env);
117
141
  refuseReadersInSandbox(ctx, `strom ${kind}`);
118
142
  requireAgentCli(agentId, ctx.env, `strom ${kind}`);
143
+ refuseReadersLoggedOut(ctx, agentId, `strom ${kind}`);
119
144
  const runner = RUNNERS[agentId];
120
145
  if (!runner)
121
146
  throw noReaderFor(agentId, `strom ${kind}`);
@@ -137,6 +162,7 @@ export function readers(ctx, tree, shared, kind, first, opts, reportsAt, own = {
137
162
  let runs = 0;
138
163
  let partial = false;
139
164
  const failed = [];
165
+ let authTold = false;
140
166
  const read = async (name, views, title, prompt, more = {}) => {
141
167
  const report = path.join(reportsDir, `${stem}-${name}.md`);
142
168
  const own = path.join(work, `${stem}-${name}`);
@@ -209,8 +235,13 @@ export function readers(ctx, tree, shared, kind, first, opts, reportsAt, own = {
209
235
  if (r.metrics.costUsd === undefined || r.metrics.costPartial)
210
236
  partial = true;
211
237
  // refused by a sandbox that does not say so: said as such, never only "error"
238
+ // not logged in: said once as it happens, with how to log in (K040)
239
+ if (r.outcome === "auth" && !authTold) {
240
+ authTold = true;
241
+ progress(`■ ${name}: ${readerAuthSaid(ctx, tree, agentId)}`);
242
+ }
212
243
  if (r.outcome !== "ok")
213
- failed.push(`${name} (${r.outcome === "error" && refusedBySandbox(r.text) ? "no reader can start in this sandbox" : r.stalled ? READER_STALLED : r.outcome === "error" && r.modelRejected ? `${agentId === "codex" ? `the model ${model ?? "it reads with"} is not available in the Codex CLI installed here — update Codex: npm install -g @openai/codex@latest, or another model` : `${agentId} does not take the model ${model ?? "it reads with"} — another model`}` : r.outcome === "timeout" ? `stopped at its time limit, ${limit.minutes} min` : r.outcome})`);
244
+ failed.push(`${name} (${r.outcome === "error" && refusedBySandbox(r.text) ? "no reader can start in this sandbox" : r.stalled ? ui(readersLang(ctx, tree), "ui.read.stalled") : r.outcome === "error" && r.modelRejected ? `${agentId === "codex" ? `the model ${model ?? "it reads with"} is not available in the Codex CLI installed here — update Codex: npm install -g @openai/codex@latest, or another model` : `${agentId} does not take the model ${model ?? "it reads with"} — another model`}` : r.outcome === "timeout" ? ui(readersLang(ctx, tree), "ui.read.failed.timeout", { minutes: limit.minutes }) : r.outcome})`);
214
245
  const written = fs.readFileSync(report, "utf8");
215
246
  if (!/^##\s/m.test(written) && r.text.trim())
216
247
  fs.appendFileSync(report, r.text.trim() + "\n");
@@ -68,7 +68,7 @@ import { isArchive } from "../core/mode.js";
68
68
  import { afterDeathProposals, settleAfterDeath } from "../core/afterdeath.js";
69
69
  import { usageOpt, webOpt } from "../core/metrics.js";
70
70
  import { calibrationKey, viewModel } from "../core/viewsizes.js";
71
- import { claudeConfigSet, claudeLoggedIn, claudeLoginCommand } from "../core/claudedir.js";
71
+ import { claudeLoggedIn, claudeLoginCommand } from "../core/claudedir.js";
72
72
  function written(tree) {
73
73
  return lines(...tree.written.map((o) => o.summary));
74
74
  }
@@ -959,8 +959,9 @@ register(updatedDuringRun({
959
959
  const gateTrail = [];
960
960
  // The Strom app opened to follow the run (--follow): once, when its first session starts.
961
961
  let followed = false;
962
- // Why the run stopped: a code for the exit status and for data, words for the user (their language).
963
- const lang = Tree.open(root, runEnv).lang;
962
+ // Why the run stopped: a code for the exit status and for data, words for the user (their language — the run's
963
+ // --lang or STROM_LANG before the tree's own, as for every command)
964
+ const lang = ctx.settings.lang(Tree.open(root, runEnv).config).value;
964
965
  // The plan's limits as the agent said them last (Claude Code), for the gate; and the window a cap of the gate holds.
965
966
  let lastLimits;
966
967
  let watch;
@@ -1033,9 +1034,9 @@ register(updatedDuringRun({
1033
1034
  // how the gate is asked (before each session, once, its cap) is said in its first answer's line, never a line of its own
1034
1035
  let gateTold = false;
1035
1036
  let capTold = false;
1036
- // Claude Code of a folder said outright (CLAUDE_CONFIG_DIR, agent.claudeConfigDir) not logged in there: no session
1037
- // would work — said before the first one, with how to log in (found 2026-11-03)
1038
- const loggedOut = runnerId === "claude" && claudeConfigSet(runEnv) !== undefined && claudeLoggedIn(runEnv, runner.command) === false;
1037
+ // Claude Code not logged in — of a folder said outright (CLAUDE_CONFIG_DIR, agent.claudeConfigDir, found 2026-11-03)
1038
+ // or its own default one (K040) —: no session would work, said before the first one with how to log in
1039
+ const loggedOut = runnerId === "claude" && claudeLoggedIn(runEnv, runner.command) === false;
1039
1040
  if (loggedOut) {
1040
1041
  stopCode = "auth";
1041
1042
  stopValues = { command: claudeLoginCommand(runEnv) };
@@ -17,7 +17,7 @@ import { appWithoutCli, claudeInstallLine, CLI_MISSING } from "../core/agentcli.
17
17
  import { createShortcut } from "../core/shortcut.js";
18
18
  import { openForUser } from "../core/open.js";
19
19
  import { isValidLang, langName } from "../core/lang.js";
20
- import { detectAgent, isAgent } from "../core/which.js";
20
+ import { detectAgent, isAgent, withoutAgentMarks } from "../core/which.js";
21
21
  import { agentName, sandboxHere, writeProblems } from "../core/writable.js";
22
22
  import { agentInAncestry } from "../core/trust.js";
23
23
  import { agentsHere, DESKTOP_APPS, inDesktopApp, whereToTalk } from "../core/apps.js";
@@ -40,7 +40,7 @@ import { appDirsInUse, checked, installUpdate, oldVersions, isNewer, knownNewerV
40
40
  import { privateCopies, writesPrivately } from "../core/packaged.js";
41
41
  import { moveToTrash } from "../core/trash.js";
42
42
  import { configDir, defaultHome, desktopDir, expandHome, isolated, noLinks, ownCommand } from "../core/paths.js";
43
- import { claudeConfigDir } from "../core/claudedir.js";
43
+ import { claudeConfigDir, claudeLoggedIn, claudeLoginCommand } from "../core/claudedir.js";
44
44
  import { backupBefore, backupSaid, lastBackupLine } from "../cli/backups.js";
45
45
  import { BACKUP_SAID_DAYS, lastBackup } from "../core/backup.js";
46
46
  import { planMove, planUseExisting, researchHome, sameFolder, useExistingHome } from "../core/relocate.js";
@@ -254,7 +254,7 @@ function nodeOk(version) {
254
254
  const FIX = "strom doctor --fix";
255
255
  /** Everything strom needs and has on this computer, in the user's language. */
256
256
  /** The checks of the agents: what they are, know, may do, where the person talks with them, their model and browser. */
257
- const AGENT_CHECKS = new Set(["agent", "cli", "knows", "where", "level", "model", "views", "codex", "chatgptapp", "codexhooks", "desktop", "browser", "remote", "fence", "tuneworse", "web", "shim"]);
257
+ const AGENT_CHECKS = new Set(["agent", "cli", "login", "knows", "where", "level", "model", "views", "codex", "chatgptapp", "codexhooks", "desktop", "browser", "remote", "fence", "tuneworse", "web", "shim"]);
258
258
  /** What doctor says of an isolated installation: its folder — a second one with a command of its own: the command and its links too. */
259
259
  function secondLine(ctx, t) {
260
260
  if (!isolated(ctx.env))
@@ -503,6 +503,17 @@ function diagnoseInto(ctx, checks, t, add, progress) {
503
503
  add("cli", "warn", t("ui.doc.cli.missing", { cli: PROFILES[chosen].name }), chosen === "claude" ? `${FIX} (${claudeInstallLine()})` : PROFILES[chosen].url, "cli");
504
504
  checks.at(-1).code = CLI_MISSING;
505
505
  }
506
+ // Claude Code in the terminal logged in? What strom starts by itself (working alone, the readers, work from the
507
+ // Strom app) has its login, not the Claude app's (K040): said when `claude auth status` tells, nothing when it cannot
508
+ // (not in an archive: that line is not shown there, so nothing of the agent is started for it)
509
+ if (chosen === "claude" && other.cli && !ctx.archiveHere()) {
510
+ const env = withoutAgentMarks(ctx.env);
511
+ const loggedIn = timed("doctor.login", () => claudeLoggedIn(env));
512
+ if (loggedIn === true)
513
+ add("login", "ok", t("ui.doc.login.ok"));
514
+ else if (loggedIn === false)
515
+ add("login", "warn", t("ui.doc.login.no"), t("ui.doc.login.fix", { command: claudeLoginCommand(env) }));
516
+ }
506
517
  }
507
518
  add("level", "ok", t(`ui.setup.level.${level}`));
508
519
  const model = ctx.settings.models(chosen, tree).lead;
@@ -23,7 +23,8 @@ import { makeNote } from "../core/actions.js";
23
23
  import { phrase } from "../core/phrases.js";
24
24
  import { verifyFast } from "../core/integrity.js";
25
25
  import { pool } from "./read.js";
26
- import { readers, refuseReadersInArchive } from "./readers.js";
26
+ import { readers, readersLang, refuseReadersInArchive } from "./readers.js";
27
+ import { ui } from "../cli/ui.js";
27
28
  import { namesIn } from "./clips.js";
28
29
  import { addReaders } from "../core/session.js";
29
30
  /** Entries per reader. */
@@ -181,7 +182,7 @@ register({
181
182
  const unread = read.filter((x) => x.result !== "read");
182
183
  const missed = todo.filter((s) => !passed.has(s.id));
183
184
  return {
184
- text: lines(`${passed.size} of ${counted(todo.length, "source")} got their words${r0.model ? ` · ${r0.model}` : ""}${r0.cost() ? ` · $${r0.cost().toFixed(2)}` : ""}`, verdicts.some((v) => v.verdict === "fixed") ? `the check corrected ${verdicts.filter((v) => v.verdict === "fixed").length} of them` : undefined, rejected.length ? `the check turned down: ${rejected.map((v) => `${v.source}${v.why ? ` (${truncate(v.why, 40)})` : ""}`).join(", ")}` : undefined, unread.length ? `not read (unreadable, or not this entry in the cut-out): ${unread.map((x) => `${x.source} ${x.result}`).slice(0, 20).join(", ")}` : undefined, missed.length ? `without words: ${missed.map((s) => s.id).slice(0, 20).join(", ")}${missed.length > 20 ? ` … (${missed.length})` : ""} — strom transcripts again, or strom source edit S… --transcript @<file>` : undefined, away.length ? `on images not on this computer: ${away.length}` : undefined, failed.length ? `readers that failed: ${failed.join(", ")}` : undefined, "the words go into the Strom app with the entry's image: strom app (output/tree-strom.ged)"),
185
+ text: lines(`${passed.size} of ${counted(todo.length, "source")} got their words${r0.model ? ` · ${r0.model}` : ""}${r0.cost() ? ` · $${r0.cost().toFixed(2)}` : ""}`, verdicts.some((v) => v.verdict === "fixed") ? `the check corrected ${verdicts.filter((v) => v.verdict === "fixed").length} of them` : undefined, rejected.length ? `the check turned down: ${rejected.map((v) => `${v.source}${v.why ? ` (${truncate(v.why, 40)})` : ""}`).join(", ")}` : undefined, unread.length ? `not read (unreadable, or not this entry in the cut-out): ${unread.map((x) => `${x.source} ${x.result}`).slice(0, 20).join(", ")}` : undefined, missed.length ? `without words: ${missed.map((s) => s.id).slice(0, 20).join(", ")}${missed.length > 20 ? ` … (${missed.length})` : ""} — strom transcripts again, or strom source edit S… --transcript @<file>` : undefined, away.length ? `on images not on this computer: ${away.length}` : undefined, failed.length ? ui(readersLang(ctx, tree), "ui.read.failed", { list: failed.join(", ") }) : undefined, "the words go into the Strom app with the entry's image: strom app (output/tree-strom.ged)"),
185
186
  data: {
186
187
  sources: todo.length,
187
188
  transcribed: [...passed.keys()],
@@ -8,6 +8,7 @@ import { StromError } from "./errors.js";
8
8
  import { AGENTS, findAgent } from "./which.js";
9
9
  import { DESKTOP_APPS, hasDesktopApp } from "./apps.js";
10
10
  import { PROFILES } from "../agents/profiles.js";
11
+ import { claudeLoggedIn, claudeLoginCommand } from "./claudedir.js";
11
12
  /** The code of the error (and the bridge's `why` for the readers). */
12
13
  export const CLI_MISSING = "agent.cli-missing";
13
14
  /** Is this agent's CLI missing here? (An agent strom does not start, or the script runner: never.) */
@@ -52,3 +53,30 @@ export function requireAgentCli(agent, env, command) {
52
53
  if (cliMissing(agent, env))
53
54
  throw agentCliMissing(agent, env, command);
54
55
  }
56
+ /** The code of the error: Claude Code in the terminal not logged in (the bridge's `why` for the readers too). */
57
+ export const LOGGED_OUT = "agent.logged-out";
58
+ /**
59
+ * The error of a command that starts Claude Code in the terminal by itself (strom read, the readers, strom run) where
60
+ * `claude auth status` says it is not logged in (K040: a conversation in the Claude app goes on with the app's own
61
+ * login, the CLI strom starts has its own) — thrown before any reader or session is started. English for an agent and
62
+ * a program; a person reads ui.error.agent.logged-out.
63
+ */
64
+ export function agentLoggedOut(env, command) {
65
+ const login = claudeLoginCommand(env);
66
+ return new StromError(`Claude Code in the terminal (claude) is not logged in — ${command} starts it itself (not the Claude app, which has its own login)`, {
67
+ hint: `the user logs in once in a terminal: ${login}, then /login (claude auth status says whether it is logged in)`,
68
+ code: LOGGED_OUT,
69
+ params: { command, login },
70
+ });
71
+ }
72
+ /**
73
+ * Throw agentLoggedOut when the agent is Claude Code and `claude auth status`, in the environment of what strom starts
74
+ * (`env`), says outright it is not logged in. Anything else (another agent, an older Claude Code, a stand-in, no answer)
75
+ * decides nothing.
76
+ */
77
+ export function requireClaudeLogin(agent, env, command) {
78
+ if (agent !== "claude" || cliMissing(agent, env))
79
+ return;
80
+ if (claudeLoggedIn(env) === false)
81
+ throw agentLoggedOut(env, command);
82
+ }
@@ -76,6 +76,8 @@ export function claudeLoginCommand(env, config) {
76
76
  export function isClaudeCommand(command) {
77
77
  return /^claude(?:\.(?:cmd|exe|bat))?$/iu.test(path.basename(command));
78
78
  }
79
+ /** How long `claude auth status` may take: it answers from its own files at once; one that hangs decides nothing. */
80
+ const AUTH_STATUS_MS = 5_000;
79
81
  /**
80
82
  * Is the `claude` strom starts logged in (`claude auth status`, in its environment: forClaude)? false only when it says
81
83
  * so; undefined when it cannot tell (an older Claude Code, a stand-in, no answer in time) — then nothing is decided by it.
@@ -84,7 +86,7 @@ export function claudeLoggedIn(env, command = "claude") {
84
86
  const program = findAgent(command, env) ?? command;
85
87
  const shell = process.platform === "win32" && /\.(cmd|bat)$/i.test(program);
86
88
  try {
87
- const r = spawnSync(shell ? `"${program}"` : program, ["auth", "status"], { env: forClaude(env), encoding: "utf8", timeout: 20_000, stdio: ["ignore", "pipe", "ignore"], windowsHide: true, shell });
89
+ const r = spawnSync(shell ? `"${program}"` : program, ["auth", "status"], { env: forClaude(env), encoding: "utf8", timeout: AUTH_STATUS_MS, stdio: ["ignore", "pipe", "ignore"], windowsHide: true, shell });
88
90
  const said = JSON.parse((r.stdout ?? "").trim());
89
91
  return typeof said?.loggedIn === "boolean" ? said.loggedIn : undefined;
90
92
  }
@@ -61,8 +61,6 @@ export function learnedReaderMinutes(views, earlier) {
61
61
  export const READER_STALL_MS = 150_000;
62
62
  /** What a reader resumed after its service went silent is told. */
63
63
  export const READER_STALL_PROMPT = "The connection to the model's service broke off and you are started again. Go on where you stopped: the images not yet in your report, each block added as before — never a block that is in it already. Then the done line.";
64
- /** How a reader that ended so is said (its images: read again later). */
65
- export const READER_STALLED = "its agent's service went silent after a retry, also when resumed — stopped";
66
64
  /** The watch of a reader's silence after a retry of its service (RunOptions.stalled). */
67
65
  export function readerStall(env) {
68
66
  const set = Number(env.STROM_READER_STALL_MS);
package/dist/core/sync.js CHANGED
@@ -192,18 +192,25 @@ function gedPlaces(records) {
192
192
  }
193
193
  /** The same point: the Strom app keeps six decimals. */
194
194
  const samePoint = (a, b) => Math.abs(a.lat - b.lat) < 5e-7 && Math.abs(a.lon - b.lon) < 5e-7;
195
- /** The Strom app's "Birth (alternative record)": a second birth or death of ours coming back as an event of its own. */
196
- const ALTERNATIVE = {
197
- "birth (alternative record)": "BIRT", "death (alternative record)": "DEAT",
198
- "narozeni (alternativni zaznam)": "BIRT", "umrti (alternativni zaznam)": "DEAT",
199
- "geburt (alternativer eintrag)": "BIRT", "tod (alternativer eintrag)": "DEAT",
195
+ /**
196
+ * The Strom app's words for what it adds of its own (its gedcomNotes in each language it runs in: en, cs, de, pl), as
197
+ * it writes them — the TYPE of an EVEN comes back in the language the app ran in when it read our file:
198
+ * - altBirth, altDeath ("Birth (alternative record)"): a second birth or death of ours as an event of its own;
199
+ * - birthRecord, deathRecord ("Birth record"): its entry of a birth, a death, carrying the people of the entry.
200
+ * A language the app adds goes here with all four.
201
+ */
202
+ const APP_WORDS = {
203
+ altBirth: ["Birth (alternative record)", "Narození (alternativní záznam)", "Geburt (alternativer Eintrag)", "Urodzenie (alternatywny zapis)"],
204
+ altDeath: ["Death (alternative record)", "Úmrtí (alternativní záznam)", "Tod (alternativer Eintrag)", "Zgon (alternatywny zapis)"],
205
+ birthRecord: ["Birth record", "Zápis o narození", "Geburtseintrag", "Akt urodzenia"],
206
+ deathRecord: ["Death record", "Zápis o úmrtí", "Sterbeeintrag", "Akt zgonu"],
200
207
  };
208
+ /** The app's words of each language, folded, → the fact they are of. */
209
+ const appWords = (birth, death) => new Map([...birth.map((w) => [fold(w), "BIRT"]), ...death.map((w) => [fold(w), "DEAT"])]);
210
+ /** The Strom app's "Birth (alternative record)": a second birth or death of ours coming back as an event of its own. */
211
+ const ALTERNATIVE = appWords(APP_WORDS.altBirth, APP_WORDS.altDeath);
201
212
  /** The Strom app's entry of a birth, a death (its gedcomNotes.birthRecord, deathRecord) → the fact it is of. */
202
- const ENTRY = {
203
- "birth record": "BIRT", "death record": "DEAT",
204
- "zapis o narozeni": "BIRT", "zapis o umrti": "DEAT",
205
- geburtseintrag: "BIRT", sterbeeintrag: "DEAT",
206
- };
213
+ const ENTRY = appWords(APP_WORDS.birthRecord, APP_WORDS.deathRecord);
207
214
  /** Facts there is one of: an edit of one is a change, not a second fact. */
208
215
  const ONE = new Set(["BIRT", "BAPM", "DEAT", "BURI", "CREM", "MARR", "DIV"]);
209
216
  function gedFacts(node, couple, read = {}) {
@@ -212,7 +219,7 @@ function gedFacts(node, couple, read = {}) {
212
219
  /** What the Strom app adds of its own: an alternative birth or death as an event, a "Birth record" beside a birth, every couple married. */
213
220
  function cleanFacts(facts) {
214
221
  for (const f of facts) {
215
- const alt = f.kind === "EVEN" && f.label ? ALTERNATIVE[fold(f.label)] : undefined;
222
+ const alt = f.kind === "EVEN" && f.label ? ALTERNATIVE.get(fold(f.label)) : undefined;
216
223
  if (alt) {
217
224
  f.kind = alt;
218
225
  if (f.value === f.label)
@@ -224,7 +231,7 @@ function cleanFacts(facts) {
224
231
  // baptism or burial): theirs are the birth's, the death's — or it is that birth, that death
225
232
  let out = facts;
226
233
  for (const f of facts) {
227
- const of = f.kind === "EVEN" && f.label ? ENTRY[fold(f.label)] : undefined;
234
+ const of = f.kind === "EVEN" && f.label ? ENTRY.get(fold(f.label)) : undefined;
228
235
  if (!of)
229
236
  continue;
230
237
  const host = facts.find((o) => o !== f && o.kind !== "EVEN" && (o.kind === of || kindOf(o.kind) === (of === "BIRT" ? "BAPM" : "BURI")));
package/dist/core/tree.js CHANGED
@@ -32,7 +32,7 @@ export const TREE_FILE = "strom.json";
32
32
  export const SEAL_FOREIGN = "seal.foreign";
33
33
  // between releases the candidate being made (a bridge run from the sources says what it is: the Strom app goes by it);
34
34
  // at a release the release's own (package.json)
35
- export const VERSION = "1.34.0-beta.1";
35
+ export const VERSION = "1.34.0-beta.3";
36
36
  /** What a new research is settled with from the start: nothing an older strom counted otherwise to set right in it. */
37
37
  export const NEW_TREE_SETTLED = ["readers-1", "proven-originals-1", "origins-1", "verify-originals-1", "origins-tree-1"];
38
38
  const GITIGNORE = `# Strom Research — local state and large files are not versioned
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strom-research",
3
- "version": "1.34.0-beta.1",
3
+ "version": "1.34.0-beta.3",
4
4
  "stromDoc": "6b1e28a81ac8d9cada09d015518150116cdca9cf",
5
5
  "description": "Genealogical research toolkit for AI coding agents",
6
6
  "type": "module",