strom-research 1.36.0 → 1.37.0-beta.2

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.
Files changed (64) hide show
  1. package/CHANGELOG.cs.md +42 -0
  2. package/CHANGELOG.de.md +50 -0
  3. package/CHANGELOG.md +45 -0
  4. package/CHANGELOG.pl.md +46 -0
  5. package/assets/lang/cs.json +40 -4
  6. package/assets/lang/de.json +40 -4
  7. package/assets/lang/pl.json +40 -4
  8. package/assets/strom-doc/cs/R12-where-the-agent-works.md +2 -2
  9. package/assets/strom-doc/de/R12-where-the-agent-works.md +2 -2
  10. package/assets/strom-doc/en/R12-where-the-agent-works.md +2 -2
  11. package/assets/strom-doc/pl/R12-where-the-agent-works.md +1 -1
  12. package/dist/brief/brief.js +43 -5
  13. package/dist/cli/menu-links.js +3 -2
  14. package/dist/cli/menu-waiting.js +3 -1
  15. package/dist/cli/ui.js +36 -4
  16. package/dist/commands/archives.js +11 -3
  17. package/dist/commands/browse.js +5 -1
  18. package/dist/commands/fixchecks.js +21 -1
  19. package/dist/commands/fixes.js +38 -6
  20. package/dist/commands/intake.js +10 -2
  21. package/dist/commands/links.js +5 -4
  22. package/dist/commands/media.js +14 -4
  23. package/dist/commands/people.js +2 -0
  24. package/dist/commands/session.js +54 -1
  25. package/dist/commands/setup.js +1 -1
  26. package/dist/commands/sync.js +113 -54
  27. package/dist/commands/tasks.js +2 -2
  28. package/dist/core/actions.js +4 -0
  29. package/dist/core/appmedia.js +207 -7
  30. package/dist/core/changelog.js +7 -0
  31. package/dist/core/contact.js +220 -0
  32. package/dist/core/contactfix.js +260 -0
  33. package/dist/core/floor.js +13 -3
  34. package/dist/core/import.js +53 -5
  35. package/dist/core/inboxwait.js +93 -18
  36. package/dist/core/links.js +8 -2
  37. package/dist/core/lists.js +117 -0
  38. package/dist/core/live.js +273 -39
  39. package/dist/core/machine.js +28 -0
  40. package/dist/core/material.js +14 -1
  41. package/dist/core/mediaqueue.js +1 -1
  42. package/dist/core/metrics.js +32 -1
  43. package/dist/core/originals.js +28 -9
  44. package/dist/core/overview.js +1 -0
  45. package/dist/core/ownsave.js +43 -0
  46. package/dist/core/phrases.js +4 -0
  47. package/dist/core/queue.js +1 -1
  48. package/dist/core/receive.js +9 -3
  49. package/dist/core/runstate.js +2 -1
  50. package/dist/core/session.js +16 -0
  51. package/dist/core/shaindex.js +31 -5
  52. package/dist/core/shortcut.js +2 -1
  53. package/dist/core/stromapp.js +2 -3
  54. package/dist/core/sync.js +242 -27
  55. package/dist/core/terms.js +44 -8
  56. package/dist/core/text.js +11 -0
  57. package/dist/core/tree.js +1 -1
  58. package/dist/core/validate.js +21 -0
  59. package/dist/core/waiting.js +2 -1
  60. package/dist/core/web.js +49 -7
  61. package/dist/core/webfull.js +105 -0
  62. package/dist/gedcom/export.js +8 -0
  63. package/dist/gedcom/validate.js +2 -1
  64. package/package.json +4 -1
@@ -24,6 +24,7 @@
24
24
  "request.done": "prośba jest wysłana (strom task wait … --on \"<odpowiedź>\") albo użytkownik zdecyduje, że linia tu się kończy",
25
25
  "app.media.what": "Przeanalizować {count, plural, one {# plik przesłany} few {# pliki przesłane} many {# plików przesłanych} other {# plików przesłanych}} z aplikacji Strom – {who} ({first}–{last})",
26
26
  "app.media.nobody": "dla badania",
27
+ "app.media.list": "lista „{name}” ({count, plural, one {# osoba} few {# osoby} many {# osób} other {# osoby}})",
27
28
  "app.media.why": "Oryginały od użytkownika przesłane z aplikacji Strom (zapisane bez zmian): ustalić, czym jest każdy z nich, kogo dotyczy i czego może dowieść.",
28
29
  "app.scan.what": "Odczytać skan, który użytkownik przesłał do źródła {source} ({title})",
29
30
  "app.scan.why": "Użytkownik przesłał z aplikacji Strom sam zapis: badanie odczytuje go samodzielnie – ten odczyt potwierdzi transkrypcję użytkownika albo ujawni błąd.",
@@ -486,11 +487,12 @@
486
487
  "ui.wait.images": "skany {images} z {book}",
487
488
  "ui.wait.save": "zapisać je do {dir}",
488
489
  "ui.wait.how1": "skany trafiają do skrzynki (inbox), dla każdej księgi osobny folder, każdy nazwany numerem skanu tak, jak liczy go przeglądarka",
489
- "ui.wait.how2": "(9.jpg; przybliżona część: 9a.jpg; inaczej nazwane według kolejności, gdy jest ich tyle, ile trzeba) – strom przejmie je sam (od razu, gdy działa most, inaczej przy starcie następnej sesji), a zadanie wróci do kolejki, gdy zapisane będą wszystkie",
490
+ "ui.wait.how2": "(9.jpg; wystarczy numer skanu w nazwie, np. __0009.jpg; przybliżona część: 9a.jpg; inaczej nazwane według kolejności, gdy jest ich tyle, ile trzeba) – strom przejmie je sam (od razu, gdy działa most, inaczej przy starcie następnej sesji), a zadanie wróci do kolejki, gdy zapisane będą wszystkie",
490
491
  "ui.wait.saved": "zapisano {have} z {want}",
491
492
  "ui.wait.missing": "brakuje: {missing}",
492
- "ui.wait.inbox.count": "nie przejęto: nazwy plików nie podają numerów potrzebnych skanów ({files} plików na {n} skanów) – każdy nazwać numerem skanu, jak liczy go przeglądarka ({first}.jpg)",
493
- "ui.wait.inbox.unnamed": "nie przejęto: brak numeru skanu w nazwach plików – każdy nazwać numerem skanu, jak liczy go przeglądarka (40.jpg)",
493
+ "ui.wait.inbox.count": "nie przejęto: nazwy plików nie podają numerów potrzebnych skanów ({files} plików na {n} skanów) – każdy nazwać numerem skanu, jak liczy go przeglądarka ({first}.jpg); wystarczy numer skanu w nazwie, np. __0{first}.jpg",
494
+ "ui.wait.inbox.ambiguous": "nie przejęto: nazwa {file} podaje dwa z potrzebnych numerów skanów – nazwany numerem skanu, którym jest ({n}.jpg), zostanie przejęty",
495
+ "ui.wait.inbox.unnamed": "nie przejęto: brak numeru skanu w nazwach plików – każdy nazwać numerem skanu, jak liczy go przeglądarka (40.jpg); wystarczy numer skanu w nazwie, np. __0040.jpg",
494
496
  "ui.wait.save.web": "skany księgi {book} zapisane w {dir} same przywrócą zadanie (każdy nazwany numerem skanu, jak liczy go przeglądarka)",
495
497
  "ui.wait.todo.n": "do załatwienia {n}",
496
498
  "ui.wait.app.head": "Także w aplikacji Strom · {n}",
@@ -672,6 +674,7 @@
672
674
  "ui.run.stop.time": "limit czasu",
673
675
  "ui.run.stop.empty": "brak otwartych zadań",
674
676
  "ui.run.stop.asleep": "do {at} nie ma nic do zrobienia – pozostałe zadania potrzebują {host}, który teraz nie odpowiada",
677
+ "ui.run.stop.web": "do {at} nie ma nic do zrobienia – pozostałe zadania potrzebują stron {site}, których limit dla tego komputera jest wyczerpany",
675
678
  "ui.run.stop.archive": "nic więcej do zrobienia – pozostałe zadania potrzebują archiwum {site}, którego przez cały czas oczekiwania ({minutes} min) używała inna sesja",
676
679
  "ui.run.stop.problems": "dowody mają problem – strom check",
677
680
  "ui.run.stop.denied": "agent nie mógł uruchamiać strom – nie dopuściły go jego uprawnienia albo sandbox; nic więcej nie uruchomiono",
@@ -973,6 +976,9 @@
973
976
  "log.streetplace.unfix": "Miejsca i domy danych przywrócone do poprzedniego stanu: {n}",
974
977
  "log.tree.return": "Powrót do stanu z {when}",
975
978
  "log.streetplace.towns": "Ocenione numery po nazwie gminy (domy czy nie): {n}",
979
+ "fix.contact.retracted": "Kontakt, nie miejsce zamieszkania: jego e-mail jest kontaktem osoby (naprawa contact-residences).",
980
+ "log.contact.fix": "E-maile z miejsc zamieszkania przeniesione do kontaktów osób: {n}",
981
+ "log.contact.unfix": "Miejsca zamieszkania z kontaktem przywrócone do poprzedniej postaci: {n}",
976
982
  "fix.editdecision.note": "Rozstrzygnięte przez agenta przed strom {since}, choć decyzja należała do użytkownika: {decided}. Ponownie otwarte do decyzji użytkownika (poprawka edit-decisions).",
977
983
  "log.editdecision.fix": "Sprzeczności z własnymi zmianami użytkownika ponownie otwarte do jego decyzji: {n}",
978
984
  "log.editdecision.unfix": "Sprzeczności z własnymi zmianami użytkownika ponownie zamknięte tak, jak je rozstrzygnięto: {n}",
@@ -1355,12 +1361,14 @@
1355
1361
  "ui.card.unknown": "na razie nieznany",
1356
1362
  "ui.card.children": "Dzieci: {names}",
1357
1363
  "ui.card.story": "Opowieść:",
1364
+ "ui.card.email": "E-mail: {emails}",
1358
1365
  "ui.show.names": "imiona",
1359
1366
  "ui.show.facts": "dane",
1360
1367
  "ui.show.family": "rodzina",
1361
1368
  "ui.show.children": "dzieci",
1362
1369
  "ui.show.notes": "notatki",
1363
1370
  "ui.show.note": "notatka",
1371
+ "ui.show.contact": "kontakt",
1364
1372
  "ui.show.history": "historia",
1365
1373
  "ui.show.history.name": "imię {name} wycofane {at} ({by}): {reason}",
1366
1374
  "ui.show.history.note": "notatka wycofana {at} ({by}): {reason} – {text}",
@@ -1807,6 +1815,10 @@
1807
1815
  "ui.sync.name.changed": "{n}. {who}: zmienione imię lub nazwisko – {old} → {new}",
1808
1816
  "ui.sync.name.married": "{n}. {who}: nazwisko po ślubie – {text}",
1809
1817
  "ui.sync.name.gone": "{n}. {who}: nazwiska po ślubie już w nim nie ma – {text}",
1818
+ "ui.sync.contact.email": "{n}. {who}: e-mail – {text}",
1819
+ "ui.sync.do.contact.add": "zostanie dodany do kontaktu",
1820
+ "ui.sync.do.contact.remove": "zostanie usunięty z kontaktu (usunięty w aplikacji)",
1821
+ "ui.sync.do.contact.kept": "nie zapisano: e-mail z kontaktu usuwa tylko użytkownik",
1810
1822
  "ui.sync.do.name.gone": "zostanie usunięte (miały je tylko zmiany w aplikacji lub inne drzewa)",
1811
1823
  "ui.sync.do.name.kept": "zostaje: potwierdza je akt",
1812
1824
  "ui.sync.do.name.user": "obowiązuje zmiana z aplikacji: osoba jest pokazywana pod nowym imieniem, imię z aktu zostaje obok niego",
@@ -2406,6 +2418,7 @@
2406
2418
  "ui.run.skip": " · {task} pominięte: jest już gotowe albo anulowane",
2407
2419
  "ui.run.skip.held": " · {task} pominięte: pracuje nad nim inny agent",
2408
2420
  "ui.run.skip.archive": " · {task} pominięte: archiwum {site} ogranicza zautomatyzowany dostęp i używa go teraz inna sesja",
2421
+ "ui.run.skip.web": " · {task} na razie pominięte: strony {site} dla tego komputera są wyczerpane do {at}",
2409
2422
  "ui.run.tookOver": " · sesja {session} przejęta (bez oznak życia od {minutes, plural, one {# minuty} few {# minut} many {# minut} other {# minuty}}); jej zadanie {task} wróciło do kolejki",
2410
2423
  "ui.run.tookOver.dead": " · sesja {session} przejęta (jej proces się zakończył); jej zadanie {task} wróciło do kolejki",
2411
2424
  "ui.run.lost": " · sesję {session} przejęła sesja {by}; dalej następne wolne zadanie",
@@ -2432,6 +2445,8 @@
2432
2445
  "ui.run.gate.wait": "⏸ oczekiwanie do {at} – {reason} (Ctrl-C kończy przebieg)",
2433
2446
  "ui.run.asleep.wait": "⏸ oczekiwanie do {at} – pozostałe zadania potrzebują {host}, który teraz nie odpowiada (Ctrl-C kończy przebieg)",
2434
2447
  "ui.run.asleep.why": "{host} teraz nie odpowiada",
2448
+ "ui.run.web.wait": "⏸ oczekiwanie do {at} – pozostałe zadania potrzebują stron {site}, których limit dla tego komputera jest wyczerpany (Ctrl-C kończy przebieg)",
2449
+ "ui.run.web.why": "limit stron {site} dla tego komputera jest wyczerpany",
2435
2450
  "ui.run.archive.wait": "⏸ oczekiwanie na archiwum {site}: używa go inna sesja i zostały tylko jego zadania – najwyżej {minutes} min (Ctrl-C kończy przebieg)",
2436
2451
  "ui.run.archive.why": "czeka na archiwum {site}",
2437
2452
  "ui.run.stop.gate": "warunek „{name}” powiedział dość – {reason}",
@@ -3225,7 +3240,7 @@
3225
3240
  "ui.doc.archives": "ustawienia archiwów",
3226
3241
  "ui.doc.archives.broken": "nie można odczytać {file} – dopóki plik nie zostanie naprawiony, strom pyta ponownie o to, co w nim było (zgody, poziomy archiwów), i nic nie zostaje nad nim zapisane",
3227
3242
  "ui.doc.browser.ok": "rozszerzenie w {browsers} – podczas pracy agenta Chrome musi działać",
3228
- "ui.doc.browser.apponly": " · w rozmowie w aplikacji {app}: tak; praca samodzielna (strom run --chrome): tylko z {cli} w terminalu",
3243
+ "ui.doc.browser.apponly": " · w rozmowie w aplikacji {app}: tak; praca samodzielna (strom run): tylko z {cli} w terminalu",
3229
3244
  "ui.doc.browser.noext": "rozszerzenie nie jest zainstalowane (potrzebuje go {names})",
3230
3245
  "ui.doc.browser.agent": "{names} pobierają przez przeglądarkę – to potrafi tylko Claude Code (teraz: {agent})",
3231
3246
  "ui.doc.browser.archives.agent": "{names}: tylko przez przeglądarkę człowieka – z Claude Code i rozszerzeniem Claude in Chrome agent zapisałby skany sam; z {agent} zapisuje się je ręcznie",
@@ -3283,6 +3298,7 @@
3283
3298
  "ui.story.new.kept": "✓ Zatwierdzona opowieść zostaje, nowej wersji już nie ma (przechowuje ją historia badania).",
3284
3299
  "ui.waiting.story": "Nowa wersja opowieści o osobie {who} – do czasu decyzji obowiązuje wersja zatwierdzona",
3285
3300
  "ui.waiting.sent": "Aplikacja Strom wysłała drzewo ({day}, {time}): {n, plural, one {# zmiana} few {# zmiany} many {# zmian} other {# zmian}} do zapisania w badaniu lub do odrzucenia",
3301
+ "ui.waiting.sent.counting": "Aplikacja Strom wysłała drzewo ({day}, {time}): zmiany jeszcze niepoliczone – do zapisania w badaniu lub do odrzucenia",
3286
3302
  "ui.sent.discard": "Odrzuć: nic z tego nie zostanie zapisane",
3287
3303
  "ui.sent.later": "Pozostaw w oczekiwaniu",
3288
3304
  "ui.sent.why": "Dlaczego? Aplikacja Strom to pokaże (Enter: bez powodu, 0: wstecz):",
@@ -3754,6 +3770,7 @@
3754
3770
  "ui.archive.floor.holds": "Utrzymuje to jeszcze: {what} – najpierw zmienić tam.",
3755
3771
  "ui.archive.floor.hold.connector": "program pobierający {name} (strom connector show {name})",
3756
3772
  "ui.archive.floor.hold.tree": "wpis archiwum w badaniu {id} (strom repo show {id})",
3773
+ "ui.archive.floor.hold.treeSet": "wpis archiwum w badaniu {id} ({name}) przez jego księgę {set} na {site} (strom recordset show {set})",
3757
3774
  "ui.archive.floor.hold.host": "sama strona archiwum (jej odmowa lub robots.txt)",
3758
3775
  "ui.archive.floor.hold.other": "ustawienia w folderze domyślnym",
3759
3776
  "ui.archive.floor.decide": "Decyduje tylko człowiek: Co czeka, albo strom allow archive {host} --level {code} (według warunków) · --keep (jak utrzymuje strom).",
@@ -4454,6 +4471,25 @@
4454
4471
  "ui.fixes.name-status.undone": "Status usunięty: {n, plural, one {# imię} few {# imiona} many {# imion} other {# imion}}{left}",
4455
4472
  "ui.fixes.name-status.left": " · {n, plural, one {# zmieniło się w międzyczasie, pozostawione} few {# zmieniły się w międzyczasie, pozostawione} many {# zmieniło się w międzyczasie, pozostawione} other {# zmieniło się w międzyczasie, pozostawione}}",
4456
4473
  "ui.fixes.name-status.nothing": "Nie ma czego przywracać: żadne imię nie stało się prawdopodobne albo status jest już usunięty.",
4474
+ "ui.fixes.contact-residences.name": "Kontakty zapisane jako miejsca zamieszkania",
4475
+ "ui.fixes.contact-residences.what": "Przed strom {since} e-mail z przejętego drzewa mógł stać się miejscem zamieszkania: pustym, gdzie GEDCOM innego programu miał miejsce zamieszkania z samym e-mailem, z domem „Email” albo z notatką „E-mail: …” z aplikacji Strom. Od tej pory e-mail jest kontaktem osoby, nigdy miejscem zamieszkania.",
4476
+ "ui.fixes.contact-residences.found": "Znaleziono: {found, plural, one {# miejsce zamieszkania} few {# miejsca zamieszkania} many {# miejsc zamieszkania} other {# miejsc zamieszkania}} z kontaktem – {split} można naprawić według reguł, {unsplit} zostanie bez zmian",
4477
+ "ui.fixes.contact-residences.example": " {owner} · {event} → {result}",
4478
+ "ui.fixes.contact-residences.example.retract": "kontakt {emails}, miejsce zamieszkania wycofane",
4479
+ "ui.fixes.contact-residences.example.house": "etykieta „{house}” usunięta z domu",
4480
+ "ui.fixes.contact-residences.kept": " {owner} · {event}: {why} – zostaje bez zmian",
4481
+ "ui.fixes.contact-residences.kept.record": "cytowany zapis",
4482
+ "ui.fixes.contact-residences.kept.witness": "są przy nim ludzie",
4483
+ "ui.fixes.contact-residences.kept.note": "własna notatka obok e-maila",
4484
+ "ui.fixes.contact-residences.more": " … i {n} kolejnych: strom fixes show {id} --json",
4485
+ "ui.fixes.contact-residences.does": "Naprawa: e-maile przechodzą do kontaktu osoby (każdy raz), miejsce zamieszkania z samym kontaktem zostaje wycofane z podaniem powodu, etykieta „Email” znika z domu. Jeden krok historii, bezpłatnie, nic nie jest nigdzie wysyłane; strom fixes undo {id} przywraca miejsca zamieszkania i usuwa tylko e-maile dodane przez naprawę.",
4486
+ "ui.fixes.contact-residences.not": "Nic nie zostaje usunięte: miejsce zamieszkania z cytowanym zapisem, z ludźmi albo z własną notatką zostaje bez zmian, a żaden e-mail, który już jest w kontakcie, się nie zmienia.",
4487
+ "ui.fixes.contact-residences.ask": "Przenieść e-maile z miejsc zamieszkania do kontaktów?",
4488
+ "ui.fixes.contact-residences.all": "Tak: napraw {n, plural, one {# miejsce zamieszkania} few {# miejsca zamieszkania} many {# miejsc zamieszkania} other {# miejsc zamieszkania}}",
4489
+ "ui.fixes.contact-residences.done": "Naprawiono: {n, plural, one {# miejsce zamieszkania} few {# miejsca zamieszkania} many {# miejsc zamieszkania} other {# miejsc zamieszkania}} w {records, plural, one {# zapisie} few {# zapisach} many {# zapisach} other {# zapisach}}. Przywrócić poprzednią postać: strom fixes undo {id}",
4490
+ "ui.fixes.contact-residences.undone": "Przywrócono poprzednią postać: {n, plural, one {# miejsce zamieszkania} few {# miejsca zamieszkania} many {# miejsc zamieszkania} other {# miejsc zamieszkania}}{left}",
4491
+ "ui.fixes.contact-residences.left": " · {n, plural, one {# zmieniło się w międzyczasie, pozostawione} few {# zmieniły się w międzyczasie, pozostawione} many {# zmieniło się w międzyczasie, pozostawione} other {# zmieniło się w międzyczasie, pozostawione}}",
4492
+ "ui.fixes.contact-residences.nothing": "Nie ma czego przywracać: miejsc zamieszkania nie naprawiano albo mają już poprzednią postać.",
4457
4493
  "ui.report.where.q": "Gdzie wystąpił problem?",
4458
4494
  "ui.report.where.chat": "w rozmowie z agentem",
4459
4495
  "ui.report.where.terminal": "w terminalu, strom bez agenta",
@@ -69,8 +69,8 @@ hlídá stejně.
69
69
  - **Proč:** aplikace Claude spouští hooky výzkumu i před svým vestavěným prohlížečem, takže strom může každou adresu
70
70
  posoudit jako u Chromu.
71
71
  - **Ovládání:** aplikace Claude: nastavení **Preferred browser**. Terminál: `strom doctor`, řádek **prohlížeč
72
- desktopových aplikací** a u prohlížeče v Chromu **v rozhovoru v aplikaci Claude ano; samostatná práce (strom run
73
- --chrome) jen s Claude Code v terminálu**.
72
+ desktopových aplikací** a u prohlížeče v Chromu **v rozhovoru v aplikaci Claude ano; samostatná práce (strom run)
73
+ jen s Claude Code v terminálu**.
74
74
  - **Platí od:** výzkum 1.29.0
75
75
 
76
76
  <!-- zdroj: research:src/core/browser.ts (matcher mcp__(remote-devices__)?Claude_Browser__*) · src/core/chromehook.ts · src/core/webgate.ts browserGate · assets/lang/cs.json ui.doc.desktop.unwatched, ui.doc.browser.apponly · CHANGELOG.cs.md 1.29.0 · test/vysledek-062-u4-desktop.md kroky 1–3 (preview_start, navigate: deny; example.com allow) · test/vysledek-1106-vyzkum-062-desktop.md bod 3 (localhost, most, záložky app:) · test/vysledek-desktop-chrome.md bod 4 (Preferred browser), bod 6 -->
@@ -74,8 +74,8 @@ strom überwacht beide gleich.
74
74
  - **Warum:** die App Claude führt die Hooks der Forschung auch vor ihrem eingebauten Browser aus, also kann strom jede
75
75
  Adresse beurteilen wie bei Chrome.
76
76
  - **Bedienung:** App Claude: Einstellung **Preferred browser**. Terminal: `strom doctor`, Zeile **Browser der
77
- Desktop-Apps** und beim Browser in Chrome **im Gespräch in der App Claude: ja; selbstständiges Arbeiten (strom run
78
- --chrome): nur mit Claude Code im Terminal**.
77
+ Desktop-Apps** und beim Browser in Chrome **im Gespräch in der App Claude: ja; selbstständiges Arbeiten (strom run):
78
+ nur mit Claude Code im Terminal**.
79
79
  - **Gilt seit:** Forschung 1.29.0
80
80
 
81
81
  <!-- zdroj: research:src/core/browser.ts (matcher mcp__(remote-devices__)?Claude_Browser__*) · src/core/chromehook.ts · src/core/webgate.ts browserGate · assets/lang/de.json ui.doc.desktop.unwatched, ui.doc.browser.apponly · CHANGELOG.de.md 1.29.0 · test/vysledek-062-u4-desktop.md kroky 1–3 · test/vysledek-1106-vyzkum-062-desktop.md bod 3 · test/vysledek-desktop-chrome.md bod 4, bod 6 -->
@@ -72,8 +72,8 @@ watches both alike.
72
72
  - **Why:** the Claude app runs the research's hooks before its built-in browser too, so strom can judge every address
73
73
  as it does for Chrome.
74
74
  - **Controls:** the Claude app: the setting **Preferred browser**. Terminal: `strom doctor`, the row **desktop apps'
75
- browser** and, at the browser in Chrome, **in a conversation in the Claude app: yes; working alone (strom run
76
- --chrome): only with Claude Code in the terminal**.
75
+ browser** and, at the browser in Chrome, **in a conversation in the Claude app: yes; working alone (strom run):
76
+ only with Claude Code in the terminal**.
77
77
  - **Since:** research 1.29.0
78
78
 
79
79
  <!-- zdroj: research:src/core/browser.ts (matcher mcp__(remote-devices__)?Claude_Browser__*) · src/core/chromehook.ts · src/core/webgate.ts browserGate · src/cli/ui.ts ui.doc.desktop.unwatched, ui.doc.browser.apponly · CHANGELOG.md 1.29.0 · test/vysledek-062-u4-desktop.md kroky 1–3 · test/vysledek-1106-vyzkum-062-desktop.md bod 3 · test/vysledek-desktop-chrome.md bod 4, bod 6 -->
@@ -73,7 +73,7 @@ strom pilnuje obu tak samo.
73
73
  ocenić każdy adres jak przy Chrome.
74
74
  - **Obsługa:** aplikacja Claude: ustawienie **Preferred browser**. Terminal: `strom doctor`, wiersz **przeglądarka
75
75
  aplikacji desktopowych**, a przy przeglądarce w Chrome **w rozmowie w aplikacji Claude: tak; praca samodzielna
76
- (strom run --chrome): tylko z Claude Code w terminalu**.
76
+ (strom run): tylko z Claude Code w terminalu**.
77
77
  - **Obowiązuje od:** badanie 1.29.0
78
78
 
79
79
  <!-- zdroj: research:src/core/browser.ts (matcher mcp__(remote-devices__)?Claude_Browser__*) · src/core/chromehook.ts · src/core/webgate.ts browserGate · assets/lang/pl.json ui.doc.desktop.unwatched, ui.doc.browser.apponly · CHANGELOG.pl.md 1.29.0 · test/vysledek-062-u4-desktop.md kroky 1–3 · test/vysledek-1106-vyzkum-062-desktop.md bod 3 · test/vysledek-desktop-chrome.md bod 4, bod 6 -->
@@ -5,6 +5,7 @@
5
5
  // The brief has a hard token budget; sections come in priority order and
6
6
  // what does not fit is cut to a pointer: the command that shows the rest.
7
7
  import { noteWhole } from "../core/model.js";
8
+ import { LIST_PEOPLE } from "../core/lists.js";
8
9
  import { orderCitations } from "../core/citeorder.js";
9
10
  import fs from "node:fs";
10
11
  import path from "node:path";
@@ -59,6 +60,7 @@ import { WEB_SOFT } from "../core/metrics.js";
59
60
  import { indexBriefLines } from "../core/indexfirst.js";
60
61
  import { activeFetches, endedFetches, heavySaid, withRegistered } from "../core/fetching.js";
61
62
  import { needsBooks, sameBookLine } from "../core/books.js";
63
+ import { addressLabel, contactOnlyEvent } from "../core/contact.js";
62
64
  /** The hosts of a connector, as its manifest names them (a wildcard without its star). */
63
65
  function connectorHosts(shared, name) {
64
66
  try {
@@ -116,7 +118,7 @@ function eventLine(tree, e) {
116
118
  const cites = citesOf(orderCitations(e.citations, (id) => tree.get(id), { kind: e.kind, date: e.date }));
117
119
  // what the user removed from the fact: never cited there again without a reason (strom cite … --reason)
118
120
  const removed = (e.uncited ?? []).filter((u) => !u.cleared).map((u) => u.source);
119
- return ` ${e.id} ${e.kind}${e.label ? ` ${e.label}` : ""}${e.date ? ` ${e.date}` : ""}${e.place ? ` ${e.place}` : ""}${e.house ? `, house ${e.house}` : ""}${e.value ? ` "${e.value}"` : ""} [${e.status}]${cites ? ` ← ${cites}` : ""}${removed.length ? ` (removed by the user: ${[...new Set(removed)].join(", ")})` : ""}`;
121
+ return ` ${e.id} ${e.kind}${e.label ? ` ${e.label}` : ""}${e.date ? ` ${e.date}` : ""}${e.place ? ` ${e.place}` : ""}${e.house && !addressLabel(e.house) ? `, house ${e.house}` : ""}${e.value ? ` "${e.value}"` : ""} [${e.status}]${cites ? ` ← ${cites}` : ""}${removed.length ? ` (removed by the user: ${[...new Set(removed)].join(", ")})` : ""}`;
120
122
  }
121
123
  function citesOf(citations) {
122
124
  return (citations ?? []).map((c) => `${c.source}${c.locator ? ` ${c.locator}` : ""}${c.main ? " (main: the user's choice, never changed by an agent)" : ""}`).join(", ");
@@ -134,7 +136,8 @@ function personBlock(tree, p, depth, short = false) {
134
136
  // other names, and where any name comes from
135
137
  if (p.names.length > 1 || p.names.some((n) => n.citations?.length))
136
138
  out.push(` names: ${p.names.map((n) => `${formatName(n)}${n.kind ? ` (${n.kind})` : ""}${n.primary ? " (shown by it)" : ""}${n.citations?.length ? ` ← ${citesOf(n.citations)}` : ""}`).join("; ")}`);
137
- for (const e of p.events.filter((x) => !x.retracted))
139
+ // a residence of nothing but a contact is no fact to work on (spec 134 U11): never shown, its e-mail never in a brief
140
+ for (const e of p.events.filter((x) => !x.retracted && !contactOnlyEvent(x)))
138
141
  out.push(eventLine(tree, e));
139
142
  const parents = parentsOf(tree, p.id);
140
143
  const birthFamily = familiesAsChild(tree, p.id)[0];
@@ -160,7 +163,9 @@ const VITAL = new Set(VITAL_ORDER);
160
163
  const NOTE_SHOWN = 300;
161
164
  /** Where a person lived and what they did, the years with each: what tells namesakes apart. */
162
165
  function identifying(p, vitalToo) {
163
- const facts = p.events.filter((e) => !e.retracted && !VITAL.has(e.kind));
166
+ // a residence of nothing but a contact (spec 134 U11) is neither where they lived nor a fact more
167
+ const kept = p.events.filter((e) => !e.retracted && !contactOnlyEvent(e));
168
+ const facts = kept.filter((e) => !VITAL.has(e.kind));
164
169
  const grouped = (list) => {
165
170
  const by = new Map();
166
171
  for (const [what, date] of list) {
@@ -176,8 +181,10 @@ function identifying(p, vitalToo) {
176
181
  });
177
182
  };
178
183
  // where they lived: a house in a place, or the place of a residence
179
- const lived = (e) => !!e.house || (e.kind === "RESI" && !!e.place);
180
- const houses = grouped((vitalToo ? p.events.filter((e) => !e.retracted) : facts).filter(lived).map((e) => [[e.place, e.house].filter(Boolean).join(" "), e.date]));
184
+ // (a label of an address, "Email", is no house)
185
+ const house = (e) => (e.house && !addressLabel(e.house) ? e.house : undefined);
186
+ const lived = (e) => !!house(e) || (e.kind === "RESI" && !!e.place);
187
+ const houses = grouped((vitalToo ? kept : facts).filter(lived).map((e) => [[e.place, house(e)].filter(Boolean).join(" "), e.date]));
181
188
  const work = grouped(facts.filter((e) => e.kind === "OCCU" && e.value).map((e) => [e.value, e.date]));
182
189
  const more = facts.filter((e) => !lived(e) && !(e.kind === "OCCU" && e.value)).length;
183
190
  return { houses, work, more };
@@ -422,6 +429,31 @@ function lookAlike(a, b) {
422
429
  }
423
430
  return prev[y.length] <= max;
424
431
  }
432
+ /**
433
+ * The list of people the material was sent to (spec 137 K2.4): its name, kind and rule, how many of its people the
434
+ * research has (and has not), and its file — the IDs of all its people as they were sent, when the list is longer than
435
+ * the people it is of (those are in People concerned).
436
+ */
437
+ function listLine(tree, l, of) {
438
+ const kind = l.kind === "auto" ? `automatic${l.rule ? `, rule: ${l.rule}` : ""}` : l.kind === "work" ? "a working list" : l.kind === "fixed" ? "fixed" : l.rule ? `rule: ${l.rule}` : "";
439
+ const people = `${l.count} ${l.count === 1 ? "person" : "people"}${l.missing ? `, ${l.missing} more not in the research yet` : ""}`;
440
+ return `list: "${l.name}" (${[kind, people, `as sent ${l.at.slice(0, 10)}`].filter(Boolean).join("; ")})${l.count > of ? ` — the IDs of all its people: ${path.join(tree.root, ...l.file.split("/"))} (look them up yourself: strom person show P…)` : ""}`;
441
+ }
442
+ /**
443
+ * The list of people a scan of a source the task reads was sent to (spec 137, media.list.source): named, and whom the
444
+ * names read on it are matched to first — up to LIST_PEOPLE of its people are in about, a longer list in its file.
445
+ */
446
+ function scanLists(tree, task) {
447
+ const lists = task.where
448
+ .map((w) => (/^M\d{4,}$/.test(w) ? tree.get(w) : undefined))
449
+ .filter((m) => !!m && m.type === "media" && !!m.list);
450
+ if (!lists.length)
451
+ return [];
452
+ return [
453
+ ...lists.map((m) => `${m.id} ${listLine(tree, m.list, m.list.count <= LIST_PEOPLE ? m.list.count : 0)}`),
454
+ `(the user sent the scan for the list's people: match each name you read on it to them first — only a name none of them fits is looked for in the whole tree, strom find "<name>")`,
455
+ ];
456
+ }
425
457
  /** The largest file of the material read for its names alone (not shown). */
426
458
  const MATERIAL_READ = 5_000_000;
427
459
  function materialText(tree, inputs) {
@@ -1069,6 +1101,7 @@ export function buildBrief(tree, opts) {
1069
1101
  `why: ${task.why}`,
1070
1102
  `done: ${task.doneWhen}`,
1071
1103
  task.subject.length ? `about: ${task.subject.join(" ")}` : "",
1104
+ ...scanLists(tree, task),
1072
1105
  ...surnameFormLines(tree, task),
1073
1106
  ...task.notes.slice(-3).map((n) => `note: ${n.text}`),
1074
1107
  task.notes.length > 3 ? `(notes: the last 3 of ${task.notes.length} — all: strom task show ${task.id})` : "",
@@ -1129,12 +1162,17 @@ export function buildBrief(tree, opts) {
1129
1162
  read ? `read: ${read}` : "",
1130
1163
  i.batch ? `batch: ${i.batch}${i.path ? ` · ${i.path}` : ""}` : "",
1131
1164
  i.persons?.length ? `of: ${i.persons.join(", ")}` : "",
1165
+ i.list ? listLine(tree, i.list, (i.persons ?? []).length) : "",
1132
1166
  i.sorted ? `sorted: ${i.sorted.as}${i.sorted.source ? ` → ${i.sorted.source}` : ""}${i.sorted.reason ? ` (${i.sorted.reason})` : ""}` : "",
1133
1167
  i.imported ? `imported: ${i.imported.persons} persons, ${i.imported.families} families as leads, cited as ${i.source}` : "",
1134
1168
  ...i.notes.map((n) => `note: ${n.text}`),
1135
1169
  i.text ? `text:\n${i.text}` : small ? `text:\n${small}` : "",
1136
1170
  ].filter(Boolean).join("\n");
1137
1171
  }),
1172
+ // whom the names read on it are matched to first (spec 137 K2.2): the people it was sent for, its list's
1173
+ ...(inputs.some((i) => i.persons?.length || i.list)
1174
+ ? [`(the user sent it for these people${inputs.some((i) => i.list) ? " and the list's" : ""}: match each name you read on it to them first — only a name none of them fits is looked for in the whole tree, strom find "<name>")`]
1175
+ : []),
1138
1176
  ].join("\n"),
1139
1177
  });
1140
1178
  }
@@ -1339,8 +1339,9 @@ export async function newFromApp(ctx, runIn, token, openAt, forward, opts = {})
1339
1339
  }
1340
1340
  }
1341
1341
  const joined = Boolean(root);
1342
- // suggested: the app's tree's name (its line carries it), else the usual one — Enter never ends the handover
1343
- const suggested = (move?.mark.tree || undefined) ?? appTreeNameFromInstall(ctx.env) ?? t("ui.tree.default");
1342
+ // suggested: the name the app's link gives (a copy of a tree: its own name, never the original's research), else the
1343
+ // app's tree's name (its move, its line), else the usual one — Enter never ends the handover
1344
+ const suggested = opts.name || (move?.mark.tree || undefined) || appTreeNameFromInstall(ctx.env) || t("ui.tree.default");
1344
1345
  const ways = waysHere(agentsHere(ctx.env));
1345
1346
  const mine = ctx.settings.agent().value;
1346
1347
  let agent = mine;
@@ -929,7 +929,9 @@ function browserWords(ctx, t, tree, url) {
929
929
  return [` ${t(note.key, note.key === "ui.waiting.browser.agent" ? { agent: PROFILES[agent]?.name ?? agent } : note.params)}`];
930
930
  }
931
931
  /** Why the files saved for a task are not taken, in the person's words. */
932
- function problemWords(t, st) {
932
+ export function problemWords(t, st) {
933
+ if (st.ambiguous)
934
+ return t("ui.wait.inbox.ambiguous", { file: st.ambiguous, n: st.ambiguousNumber ?? st.missing[0] ?? "40" });
933
935
  return st.problemCode === "inbox.unnamed" ? t("ui.wait.inbox.unnamed") : t("ui.wait.inbox.count", { files: st.lying, n: st.missing.length || st.want, first: st.missing[0] ?? "40" });
934
936
  }
935
937
  /** What to do for a task that waits: the images to save and where, or what it asks. */
package/dist/cli/ui.js CHANGED
@@ -464,11 +464,12 @@ export const UI = {
464
464
  "ui.wait.images": "images {images} of {book}",
465
465
  "ui.wait.save": "save them into {dir}",
466
466
  "ui.wait.how1": "scans go into the inbox, a folder per book, each named by its image number as the viewer counts it",
467
- "ui.wait.how2": "(9.jpg; a zoomed-in part of it: 9a.jpg; named otherwise, by their order when as many as asked for) — strom takes them by itself (at once while the bridge runs, else at the next session's start) and the task comes back once all of them are saved",
467
+ "ui.wait.how2": "(9.jpg; the number in the name is enough, e.g. __0009.jpg; a zoomed-in part of it: 9a.jpg; named otherwise, by their order when as many as asked for) — strom takes them by itself (at once while the bridge runs, else at the next session's start) and the task comes back once all of them are saved",
468
468
  "ui.wait.saved": "saved {have} of {want}",
469
469
  "ui.wait.missing": "missing: {missing}",
470
- "ui.wait.inbox.count": "not taken: the file names give no numbers of the images asked for ({files} files for {n} images) — each named by its image number as the viewer counts it ({first}.jpg)",
471
- "ui.wait.inbox.unnamed": "not taken: no image number in the file names — each named by its image number as the viewer counts it (40.jpg)",
470
+ "ui.wait.inbox.count": "not taken: the file names give no numbers of the images asked for ({files} files for {n} images) — each named by its image number as the viewer counts it ({first}.jpg); the number in the name is enough, e.g. __0{first}.jpg",
471
+ "ui.wait.inbox.ambiguous": "not taken: the name {file} gives two of the images asked for — named by the one it is ({n}.jpg), it is taken",
472
+ "ui.wait.inbox.unnamed": "not taken: no image number in the file names — each named by its image number as the viewer counts it (40.jpg); the number in the name is enough, e.g. __0040.jpg",
472
473
  "ui.wait.save.web": "images of {book} saved into {dir} bring the task back by themselves (each named by its image number as the viewer counts it)",
473
474
  "ui.wait.todo.n": "to do {n}",
474
475
  "ui.wait.only.head": "Only here in the terminal (not in the Strom app) · {n}",
@@ -650,6 +651,7 @@ export const UI = {
650
651
  "ui.run.stop.time": "time limit",
651
652
  "ui.run.stop.empty": "no open tasks",
652
653
  "ui.run.stop.asleep": "nothing to do until {at} — the tasks left need {host}, which is not answering now",
654
+ "ui.run.stop.web": "nothing to do until {at} — the tasks left need pages of {site}, whose limit for this computer is used up",
653
655
  "ui.run.stop.archive": "nothing else to do — the tasks left need the archive {site}, which another session used through the whole wait ({minutes} min)",
654
656
  "ui.run.stop.problems": "the evidence has problems — strom check",
655
657
  "ui.run.stop.denied": "the agent was not allowed to run strom — its permissions or its sandbox kept it away; nothing more was started",
@@ -1067,12 +1069,14 @@ export const UI = {
1067
1069
  "ui.card.unknown": "not known yet",
1068
1070
  "ui.card.children": "Children: {names}",
1069
1071
  "ui.card.story": "Story:",
1072
+ "ui.card.email": "E-mail: {emails}",
1070
1073
  "ui.show.names": "names",
1071
1074
  "ui.show.facts": "facts",
1072
1075
  "ui.show.family": "family",
1073
1076
  "ui.show.children": "children",
1074
1077
  "ui.show.notes": "notes",
1075
1078
  "ui.show.note": "note",
1079
+ "ui.show.contact": "contact",
1076
1080
  "ui.show.history": "history",
1077
1081
  "ui.show.history.name": "name {name} retracted {at} ({by}): {reason}",
1078
1082
  "ui.show.history.note": "note retracted {at} ({by}): {reason} — {text}",
@@ -1753,6 +1757,10 @@ export const UI = {
1753
1757
  "ui.sync.name.changed": "{n}. {who}: name changed — {old} → {new}",
1754
1758
  "ui.sync.name.married": "{n}. {who}: a name after the marriage — {text}",
1755
1759
  "ui.sync.name.gone": "{n}. {who}: a name after the marriage no longer in it — {text}",
1760
+ "ui.sync.contact.email": "{n}. {who}: e-mail — {text}",
1761
+ "ui.sync.do.contact.add": "added to the contact",
1762
+ "ui.sync.do.contact.remove": "taken off the contact (removed in the app)",
1763
+ "ui.sync.do.contact.kept": "not written: an e-mail of the contact only the user takes off",
1756
1764
  "ui.sync.do.name.gone": "taken off (only edits in the app or other family trees gave it)",
1757
1765
  "ui.sync.do.name.kept": "kept: a record gives it",
1758
1766
  "ui.sync.do.name.user": "the edit wins: shown by the new name, the record's kept beside it",
@@ -2354,6 +2362,7 @@ export const UI = {
2354
2362
  "ui.run.skip": " · {task} left out: it is done or dropped already",
2355
2363
  "ui.run.skip.held": " · {task} left out: another agent is working on it",
2356
2364
  "ui.run.skip.archive": " · {task} left out: the archive {site} restricts automated access and another session uses it now",
2365
+ "ui.run.skip.web": " · {task} left for now: the pages of {site} for this computer are used up until {at}",
2357
2366
  "ui.run.tookOver": " · session {session} taken over (no sign of life for {minutes, plural, one {# minute} other {# minutes}}); its task {task} is back in the queue",
2358
2367
  "ui.run.tookOver.dead": " · session {session} taken over (its process had ended); its task {task} is back in the queue",
2359
2368
  "ui.run.lost": " · session {session} was taken over by session {by}; on to the next free task",
@@ -2393,6 +2402,8 @@ export const UI = {
2393
2402
  "ui.run.gate.wait": "⏸ waiting until {at} — {reason} (Ctrl-C ends the run)",
2394
2403
  "ui.run.asleep.wait": "⏸ waiting until {at} — the tasks left need {host}, which is not answering now (Ctrl-C ends the run)",
2395
2404
  "ui.run.asleep.why": "{host} is not answering now",
2405
+ "ui.run.web.wait": "⏸ waiting until {at} — the tasks left need pages of {site}, whose limit for this computer is used up (Ctrl-C ends the run)",
2406
+ "ui.run.web.why": "the limit of pages of {site} for this computer is used up",
2396
2407
  "ui.run.archive.wait": "⏸ waiting for the archive {site}: another session uses it and only its tasks are left — at most {minutes} min (Ctrl-C ends the run)",
2397
2408
  "ui.run.archive.why": "waiting for the archive {site}",
2398
2409
  "ui.run.stop.gate": "the condition “{name}” said stop — {reason}",
@@ -3011,7 +3022,7 @@ export const UI = {
3011
3022
  "ui.doc.archives": "settings of archives",
3012
3023
  "ui.doc.archives.broken": "{file} cannot be read — until it is mended, what it held (permissions, levels of the archives) is asked again and nothing is written over it",
3013
3024
  "ui.doc.browser.ok": "the extension in {browsers} — Chrome must run while the agent works",
3014
- "ui.doc.browser.apponly": " · in a conversation in the {app} app: yes; working alone (strom run --chrome): only with {cli} in the terminal",
3025
+ "ui.doc.browser.apponly": " · in a conversation in the {app} app: yes; working alone (strom run): only with {cli} in the terminal",
3015
3026
  "ui.doc.browser.noext": "the extension is not installed (needed by {names})",
3016
3027
  "ui.doc.browser.agent": "{names} go through the browser — only Claude Code can (now: {agent})",
3017
3028
  "ui.doc.browser.archives.agent": "{names}: only through a person's browser – with Claude Code and the Claude in Chrome extension the agent would save the images itself; with {agent} they are saved by hand",
@@ -3069,6 +3080,7 @@ export const UI = {
3069
3080
  "ui.story.new.kept": "✓ The approved story stays; the new version is gone (the history of the research keeps it).",
3070
3081
  "ui.waiting.story": "A new version of the story of {who} — the approved one stays until a decision",
3071
3082
  "ui.waiting.sent": "The Strom app sent the tree ({day}, {time}): {n, plural, one {# change} other {# changes}} to write into the research or throw away",
3083
+ "ui.waiting.sent.counting": "The Strom app sent the tree ({day}, {time}): its changes not counted yet — to write into the research or throw away",
3072
3084
  "ui.sent.discard": "Throw it away: nothing of it is written",
3073
3085
  "ui.sent.later": "Leave it waiting",
3074
3086
  "ui.sent.why": "Why? The Strom app shows it (Enter: no reason, 0: back):",
@@ -3537,6 +3549,7 @@ export const UI = {
3537
3549
  "ui.archive.floor.holds": "Still held by: {what} – to be changed there first.",
3538
3550
  "ui.archive.floor.hold.connector": "the downloader {name} (strom connector show {name})",
3539
3551
  "ui.archive.floor.hold.tree": "the research's record of the archive {id} (strom repo show {id})",
3552
+ "ui.archive.floor.hold.treeSet": "the research's record of the archive {id} ({name}) through its book {set} on {site} (strom recordset show {set})",
3540
3553
  "ui.archive.floor.hold.host": "the archive's own site (its refusal or robots.txt)",
3541
3554
  "ui.archive.floor.hold.other": "the settings in the default folder",
3542
3555
  "ui.archive.floor.decide": "Decided only by a person: What waits, or strom allow archive {host} --level {code} (as the terms say) · --keep (as strom keeps it).",
@@ -3992,6 +4005,25 @@ export const UI = {
3992
4005
  "ui.fixes.name-status.undone": "Status taken off: {n, plural, one {# name} other {# names}}{left}",
3993
4006
  "ui.fixes.name-status.left": " · {n, plural, one {# changed since, left as it is} other {# changed since, left as they are}}",
3994
4007
  "ui.fixes.name-status.nothing": "Nothing to put back: no name was made probable, or the status is off already.",
4008
+ "ui.fixes.contact-residences.name": "Contacts kept as residences",
4009
+ "ui.fixes.contact-residences.what": "Before strom {since} an e-mail of a family tree taken in could become a residence: an empty one where the GEDCOM of another program had a residence of nothing but the e-mail, one with the house \"Email\", one noted \"E-mail: …\" by the Strom app. Since then an e-mail is the person's contact, never a residence.",
4010
+ "ui.fixes.contact-residences.found": "Found: {found, plural, one {# residence} other {# residences}} of a contact — {split} to be set right by rules, {unsplit} to stay as they are",
4011
+ "ui.fixes.contact-residences.example": " {owner} · {event} → {result}",
4012
+ "ui.fixes.contact-residences.example.retract": "contact {emails}, the residence withdrawn",
4013
+ "ui.fixes.contact-residences.example.house": "the label \"{house}\" taken off its house",
4014
+ "ui.fixes.contact-residences.kept": " {owner} · {event}: {why} — stays as it is",
4015
+ "ui.fixes.contact-residences.kept.record": "a record cited",
4016
+ "ui.fixes.contact-residences.kept.witness": "people at it",
4017
+ "ui.fixes.contact-residences.kept.note": "a note of its own beside the e-mail",
4018
+ "ui.fixes.contact-residences.more": " … {n} more: strom fixes show {id} --json",
4019
+ "ui.fixes.contact-residences.does": "Setting it right: the e-mails join the person's contact (each once), a residence of nothing but a contact is withdrawn with the reason, a label \"Email\" taken off a house. One step of the history, free, nothing sent anywhere; strom fixes undo {id} puts the residences back and takes off only the e-mails the fix added.",
4020
+ "ui.fixes.contact-residences.not": "Nothing is deleted: a residence with a record cited, people at it or a note of its own stays as it is, and no e-mail in a contact already changes.",
4021
+ "ui.fixes.contact-residences.ask": "Move the e-mails out of the residences into the contacts?",
4022
+ "ui.fixes.contact-residences.all": "Yes: set {n, plural, one {# residence} other {# residences}} right",
4023
+ "ui.fixes.contact-residences.done": "Set right: {n, plural, one {# residence} other {# residences}} in {records, plural, one {# record} other {# records}}. Put back as they were: strom fixes undo {id}",
4024
+ "ui.fixes.contact-residences.undone": "Put back as they were: {n, plural, one {# residence} other {# residences}}{left}",
4025
+ "ui.fixes.contact-residences.left": " · {n, plural, one {# changed since, left as it is} other {# changed since, left as they are}}",
4026
+ "ui.fixes.contact-residences.nothing": "Nothing to put back: no residence was set right, or they are back as they were already.",
3995
4027
  "ui.report.where.q": "Where did the problem happen?",
3996
4028
  "ui.report.where.chat": "in a conversation with an agent",
3997
4029
  "ui.report.where.terminal": "in a terminal, strom without an agent",
@@ -142,7 +142,7 @@ export function levelText(a) {
142
142
  ? `its robots.txt keeps automated tools off the whole site ("${a.browserOnly?.line ?? "Disallow: /"}"): only through a person's browser`
143
143
  : f === "terms" && a.browserOnly?.by === "terms"
144
144
  ? "strom's known terms of the archive: only through a person's browser"
145
- : f === "terms" ? `strom's known terms of the archive${a.scope ? ` — ${a.scope}` : ""}` : f === "tree" ? `the tree's archive ${a.repository ?? ""}`.trim() : f === "pages" ? "a bot check (browser.pages)" : f === "new connector" ? "a connector the user has not confirmed yet" : f === "kept" ? "the connector's earlier reading (it says now it may do more: the user decides)" : f === "floor" ? "the strictest level strom saw for it" : "the connector's reading")
145
+ : f === "terms" ? `strom's known terms of the archive${a.scope ? ` — ${a.scope}` : ""}` : f === "tree" ? treeArchive(a) : f === "pages" ? "a bot check (browser.pages)" : f === "new connector" ? "a connector the user has not confirmed yet" : f === "kept" ? "the connector's earlier reading (it says now it may do more: the user decides)" : f === "floor" ? "the strictest level strom saw for it" : "the connector's reading")
146
146
  .join(", ");
147
147
  return `${a.level}${why ? ` (${why})` : ""}`;
148
148
  }
@@ -150,9 +150,17 @@ export function levelText(a) {
150
150
  function browserWhy(a) {
151
151
  return a.browserOnly?.by === "robots" ? `its robots.txt keeps automated tools off the whole site ("${a.browserOnly.line ?? "Disallow: /"}")` : "strom's known terms of the archive";
152
152
  }
153
+ /** The family tree's archive that gives a level, and the record set of its through which it holds the host's site (K051). */
154
+ function treeArchive(a) {
155
+ return `the tree's archive${a.repository ? ` ${a.repository}` : ""}${a.repositoryName ? ` (${a.repositoryName})` : ""}${a.recordset ? ` through its record set ${a.recordset.id} on ${a.recordset.host}` : ""}`;
156
+ }
153
157
  /** A level the family tree's own archive gives, said as the tree records it ("R0001 … is marked automation manual in this tree"). */
154
158
  function treeSaid(a) {
155
- return a.from.includes("tree") && a.repository ? `${a.repository} ${a.title ?? a.host} is marked automation ${a.level} in this tree` : undefined;
159
+ if (!a.from.includes("tree") || !a.repository)
160
+ return undefined;
161
+ return a.recordset
162
+ ? `${a.repository} ${a.repositoryName ?? ""} is marked automation ${a.level} in this tree, and its record set ${a.recordset.id} is on ${a.recordset.host} (strom recordset show ${a.recordset.id})`.replace(/ {2,}/g, " ")
163
+ : `${a.repository} ${a.title ?? a.host} is marked automation ${a.level} in this tree`;
156
164
  }
157
165
  /** The sessions' task here, for the command an agent is given. */
158
166
  export function taskHere(ctx) {
@@ -743,7 +751,7 @@ register({
743
751
  const after = strictest(...levels.map((x) => x.a.level));
744
752
  // what still holds it stricter: its real sources, each with what to look at (the downloader, the research's archive)
745
753
  const holding = levels.filter((x) => rank(x.a.level) > rank(level));
746
- const look = [...new Set(holding.flatMap((x) => [...(x.c && x.a.from.some((f) => f === "connector" || f === "kept" || f === "pages" || f === "new connector") ? [`strom connector show ${x.c.name}`] : []), ...(x.a.from.includes("tree") && x.a.repository ? [`strom repo show ${x.a.repository}`] : [])]))];
754
+ const look = [...new Set(holding.flatMap((x) => [...(x.c && x.a.from.some((f) => f === "connector" || f === "kept" || f === "pages" || f === "new connector") ? [`strom connector show ${x.c.name}`] : []), ...(x.a.from.includes("tree") && x.a.repository ? [`strom repo show ${x.a.repository}`, ...(x.a.recordset ? [`strom recordset show ${x.a.recordset.id}`] : [])] : [])]))];
747
755
  const said = [...new Set(holding.map((x) => `${x.c ? `${x.c.name}: ` : ""}${levelText(x.a)}`))];
748
756
  // strom run and the agent's browser take the archive's level without a downloader: said where it differs
749
757
  const plain = levels.filter((x) => !x.c);
@@ -181,7 +181,11 @@ register({
181
181
  const out = [whoText(c.titled ? { ...c.person, name: c.titled } : c.person)];
182
182
  if (c.otherNames.length)
183
183
  out.push(` ${ui(lang, "ui.card.also", { names: c.otherNames.join(", ") })}`);
184
- out.push(c.facts.length ? factRows(c.facts, lang, " ", ctx.archiveHere()) : ` ${ui(lang, "ui.card.nofacts")}`, "");
184
+ out.push(c.facts.length ? factRows(c.facts, lang, " ", ctx.archiveHere()) : ` ${ui(lang, "ui.card.nofacts")}`);
185
+ // the contact apart from the facts (spec 134 U11)
186
+ if (c.contact)
187
+ out.push(` ${ui(lang, "ui.card.email", { emails: c.contact.emails.join(", ") })}`);
188
+ out.push("");
185
189
  out.push(c.parents.length ? ui(lang, "ui.card.parents", { names: c.parents.map(whoText).join(", ") }) : ui(lang, "ui.card.noparents"));
186
190
  for (const f of c.families) {
187
191
  const key = f.partner?.sex === "F" ? "ui.card.wife" : f.partner?.sex === "M" ? "ui.card.husband" : c.sex === "M" ? "ui.card.wife" : c.sex === "F" ? "ui.card.husband" : "ui.card.partner";
@@ -42,6 +42,7 @@ import { PROVEN_SINCE, provenDone, provenFixes } from "../core/provenfix.js";
42
42
  import { ORIGINS_SINCE, originFixes, originsDone } from "../core/originfix.js";
43
43
  import { VERIFY_SINCE, verifyDone, verifyFixes, verifyQueued } from "../core/verify.js";
44
44
  import { NAME_STATUS_SINCE, nameStatusDone, nameStatusFixes } from "../core/namestatusfix.js";
45
+ import { CONTACT_RESIDENCES_SINCE, contactResidenceFixes, contactResidencesDone } from "../core/contactfix.js";
45
46
  /** The agent and model of strom read's readers here now, and the shared folder. */
46
47
  export function fixEnv(ctx, tree) {
47
48
  return fixEnvOf(ctx.settings, ctx.env, tree);
@@ -902,8 +903,27 @@ export const NAME_STATUS = {
902
903
  },
903
904
  applied: (tree) => nameStatusDone(tree).length,
904
905
  };
906
+ /**
907
+ * Until 1.37.0 an e-mail of a family tree taken in could become a residence (spec 134 U11): an empty one of another
908
+ * program's "1 RESI / 2 EMAIL", one with the house "Email" (its label of the address), one the Strom app noted
909
+ * "E-mail: …". Since then it is the person's contact; those written before are set right by rules
910
+ * (core/contactfix.ts), on a person's word alone: the e-mails to the contact, the residence withdrawn — one with a record
911
+ * cited, people at it or a note of its own left and said why.
912
+ */
913
+ export const CONTACT_RESIDENCES = {
914
+ id: "contact-residences",
915
+ since: CONTACT_RESIDENCES_SINCE,
916
+ paid: false,
917
+ remedy: "rewrite",
918
+ unit: "fact",
919
+ detect: (tree) => {
920
+ const f = contactResidenceFixes(tree);
921
+ return { items: [], exact: 0, estimated: 0, unjudged: 0, readings: 0, rewrites: f.fixes, unsplit: f.left.length, left: f.left };
922
+ },
923
+ applied: (tree) => contactResidencesDone(tree).length,
924
+ };
905
925
  /** Every check strom knows, the oldest fix first. */
906
- export const FIX_CHECKS = [BLIND_REDUCED, NEW_MODEL, PARTICIPANT_NAMES, APP_SHAPES, STREET_PLACES, EDIT_DECISIONS, WOKEN_WAITS, READERS, PROVEN_ORIGINALS, ORIGINS, VERIFY_ORIGINALS, NAME_STATUS];
926
+ export const FIX_CHECKS = [BLIND_REDUCED, NEW_MODEL, PARTICIPANT_NAMES, APP_SHAPES, STREET_PLACES, EDIT_DECISIONS, WOKEN_WAITS, READERS, PROVEN_ORIGINALS, ORIGINS, VERIFY_ORIGINALS, NAME_STATUS, CONTACT_RESIDENCES];
907
927
  /**
908
928
  * A check offered where nobody researches (an archive, a research waiting for its agent): one that rewrites by rules and
909
929
  * says nothing of an agent's work.