strom-research 1.37.0 → 1.38.0-beta.1
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 +12 -0
- package/CHANGELOG.de.md +12 -0
- package/CHANGELOG.md +12 -0
- package/CHANGELOG.pl.md +12 -0
- package/assets/lang/cs.json +59 -0
- package/assets/lang/de.json +59 -0
- package/assets/lang/pl.json +59 -0
- package/dist/cli/execute.js +29 -4
- package/dist/commands/document.js +6 -2
- package/dist/commands/media.js +8 -2
- package/dist/commands/sources.js +11 -5
- package/dist/core/changelog.js +39 -4
- package/dist/core/deviceapp.js +5 -2
- package/dist/core/glance.js +1 -1
- package/dist/core/live.js +13 -7
- package/dist/core/media.js +2 -1
- package/dist/core/phrases.js +59 -0
- package/dist/core/tree.js +1 -1
- package/package.json +4 -1
package/CHANGELOG.cs.md
CHANGED
|
@@ -5,6 +5,18 @@
|
|
|
5
5
|
Změny každé verze ve zkratce. Úplné poznámky a instalační řádky jsou na
|
|
6
6
|
[GitHub Releases](https://github.com/ACiDekCZ/strom-research/releases) (anglicky).
|
|
7
7
|
|
|
8
|
+
## 1.38.0
|
|
9
|
+
|
|
10
|
+
*Připravuje se: bety do 1.38.0-beta.1. Oddíl bude úplný s vydáním.*
|
|
11
|
+
|
|
12
|
+
- **Nastavení výzkumu v historii slovy:** nastavení změněné z aplikace nebo z menu se v posledních změnách ukáže
|
|
13
|
+
názvem a hodnotou v jazyce výzkumu („Vypnuto ve výzkumu: Dotaz před tříděním materiálu“), už ne jako klíč
|
|
14
|
+
(`sort.confirm`).
|
|
15
|
+
- **Agent se zorientuje s méně pokusy:** `strom place find <jméno>` a `strom place <jméno>` navedou na
|
|
16
|
+
`strom place list <jméno>`; `strom source list --note <text>` vypíše jedním voláním prameny, jejichž poznámka něco
|
|
17
|
+
říká (třeba že adresu dal rejstřík); `strom media view` vysvětluje, jak si prohlédnout obrázek registrovaný jen po
|
|
18
|
+
částech a jeho výřez.
|
|
19
|
+
|
|
8
20
|
## 1.37.0
|
|
9
21
|
|
|
10
22
|
*25. 11. 2026 · patří k aplikaci Strom 3.32.0.*
|
package/CHANGELOG.de.md
CHANGED
|
@@ -5,6 +5,18 @@
|
|
|
5
5
|
Die Änderungen jeder Version in Kürze. Die vollständigen Hinweise und die Installationszeilen stehen bei
|
|
6
6
|
[GitHub Releases](https://github.com/ACiDekCZ/strom-research/releases) (auf Englisch).
|
|
7
7
|
|
|
8
|
+
## 1.38.0
|
|
9
|
+
|
|
10
|
+
*In Vorbereitung: die Betas bis 1.38.0-beta.1. Der Abschnitt ist mit dem Release vollständig.*
|
|
11
|
+
|
|
12
|
+
- **Einstellungen der Forschung im Verlauf in Worten:** eine in der App oder im Menü geänderte Einstellung erscheint
|
|
13
|
+
in den letzten Änderungen mit Namen und Wert in der Sprache der Forschung („In der Forschung ausgeschaltet: Rückfrage
|
|
14
|
+
vor dem Sortieren des Materials“), nicht mehr als Schlüssel (`sort.confirm`).
|
|
15
|
+
- **Der Agent findet sich mit weniger Versuchen zurecht:** `strom place find <Name>` und `strom place <Name>` führen zu
|
|
16
|
+
`strom place list <Name>`; `strom source list --note <Text>` listet mit einem Aufruf die Quellen, deren Notiz etwas
|
|
17
|
+
sagt (etwa dass ein Register die Adresse gab); `strom media view` erklärt, wie ein nur in Teilen registriertes Bild
|
|
18
|
+
und ein Ausschnitt davon anzusehen sind.
|
|
19
|
+
|
|
8
20
|
## 1.37.0
|
|
9
21
|
|
|
10
22
|
*25.11.2026 · gehört zur Strom-App 3.32.0.*
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ English · [Čeština](CHANGELOG.cs.md) · [Deutsch](CHANGELOG.de.md) · [Polski
|
|
|
5
5
|
The changes of each version in short. The full notes and the install lines are on
|
|
6
6
|
[GitHub Releases](https://github.com/ACiDekCZ/strom-research/releases).
|
|
7
7
|
|
|
8
|
+
## 1.38.0
|
|
9
|
+
|
|
10
|
+
*In preparation: the betas up to 1.38.0-beta.1. The section is complete with the release.*
|
|
11
|
+
|
|
12
|
+
- **A research's settings said in words in its history:** a setting changed from the app or the menu shows in the
|
|
13
|
+
recent changes by its name and value in the research's language ("Turned off in the research: Question before the
|
|
14
|
+
material is sorted"), no longer as its key (`sort.confirm`).
|
|
15
|
+
- **The agent finds its way with fewer tries:** `strom place find <name>` and `strom place <name>` point to
|
|
16
|
+
`strom place list <name>`; `strom source list --note <text>` lists in one call the sources whose note says something
|
|
17
|
+
(that a register gave the address, for one); `strom media view` says how to look at an image registered only in
|
|
18
|
+
parts, and at a crop of it.
|
|
19
|
+
|
|
8
20
|
## 1.37.0
|
|
9
21
|
|
|
10
22
|
*2026-11-25 · goes with the Strom app 3.32.0.*
|
package/CHANGELOG.pl.md
CHANGED
|
@@ -5,6 +5,18 @@
|
|
|
5
5
|
Zmiany każdej wersji w skrócie. Pełne informacje o wydaniach i polecenia instalacji są na
|
|
6
6
|
[GitHub Releases](https://github.com/ACiDekCZ/strom-research/releases) (po angielsku).
|
|
7
7
|
|
|
8
|
+
## 1.38.0
|
|
9
|
+
|
|
10
|
+
*W przygotowaniu: bety do 1.38.0-beta.1. Sekcja będzie kompletna z wydaniem.*
|
|
11
|
+
|
|
12
|
+
- **Ustawienia badania w historii słowami:** ustawienie zmienione w aplikacji lub w menu pokazuje się w ostatnich
|
|
13
|
+
zmianach nazwą i wartością w języku badania („Wyłączono w badaniu: Pytanie przed sortowaniem materiałów”), już nie
|
|
14
|
+
jako klucz (`sort.confirm`).
|
|
15
|
+
- **Agent odnajduje się przy mniejszej liczbie prób:** `strom place find <nazwa>` i `strom place <nazwa>` kierują do
|
|
16
|
+
`strom place list <nazwa>`; `strom source list --note <tekst>` wypisuje jednym wywołaniem źródła, których notatka coś
|
|
17
|
+
mówi (na przykład że adres dał rejestr); `strom media view` wyjaśnia, jak obejrzeć obraz zarejestrowany tylko w
|
|
18
|
+
częściach i jego wycinek.
|
|
19
|
+
|
|
8
20
|
## 1.37.0
|
|
9
21
|
|
|
10
22
|
*25.11.2026 · współpracuje z aplikacją Strom 3.32.0.*
|
package/assets/lang/cs.json
CHANGED
|
@@ -3143,6 +3143,65 @@
|
|
|
3143
3143
|
"log.chat.saved": "Uloženo po rozhovoru s agentem",
|
|
3144
3144
|
"log.migrate": "Data rodokmenu převedena pro novější strom",
|
|
3145
3145
|
"log.setting": "Změněno nastavení výzkumu: {key}",
|
|
3146
|
+
"log.setting.on": "Zapnuto ve výzkumu: {name}",
|
|
3147
|
+
"log.setting.off": "Vypnuto ve výzkumu: {name}",
|
|
3148
|
+
"log.setting.to": "Změněno nastavení výzkumu: {name} – {value}",
|
|
3149
|
+
"log.setting.default": "Nastavení výzkumu vráceno na výchozí: {name}",
|
|
3150
|
+
"log.setting.name.lang": "Jazyk výzkumu",
|
|
3151
|
+
"log.setting.name.agent": "Agent výzkumu",
|
|
3152
|
+
"log.setting.name.model.lead": "Model výzkumu",
|
|
3153
|
+
"log.setting.name.model.vision": "Model pro čtení snímků",
|
|
3154
|
+
"log.setting.name.model.text": "Model pro texty",
|
|
3155
|
+
"log.setting.name.model.cheap": "Model pro jednoduchou práci",
|
|
3156
|
+
"log.setting.name.model.effort": "Úsilí modelu agenta",
|
|
3157
|
+
"log.setting.name.brief.budget": "Rozsah podkladů pro agenta",
|
|
3158
|
+
"log.setting.name.run.minutes": "Minuty práce agenta na úkol",
|
|
3159
|
+
"log.setting.name.read.parallel": "Čtenáři najednou",
|
|
3160
|
+
"log.setting.name.web.perHost": "Stahování z jednoho webu najednou",
|
|
3161
|
+
"log.setting.name.queue.strategy": "Pořadí úkolů",
|
|
3162
|
+
"log.setting.name.queue.offLine": "Rodiny mimo strom",
|
|
3163
|
+
"log.setting.name.queue.offLineShare": "Podíl práce na rodinách mimo strom",
|
|
3164
|
+
"log.setting.name.queue.suggestLines": "Návrhy nových linií výzkumu",
|
|
3165
|
+
"log.setting.name.queue.suggestTasks": "Nejvýše navržených úkolů",
|
|
3166
|
+
"log.setting.name.queue.sameBook": "Úkoly jedné knihy za sebou",
|
|
3167
|
+
"log.setting.name.search.ageMargin": "Rezerva let při hledání",
|
|
3168
|
+
"log.setting.name.books.minTasks": "Úkoly, po kterých se kniha nabídne ke stažení",
|
|
3169
|
+
"log.setting.name.queue.suggestPersons": "Nejvýše navržených osob",
|
|
3170
|
+
"log.setting.name.gedcom.for": "Zapisované soubory GEDCOM",
|
|
3171
|
+
"log.setting.name.stories": "Příběhy",
|
|
3172
|
+
"log.setting.name.stories.sources": "Prameny mimo matriky před příběhem",
|
|
3173
|
+
"log.setting.name.stories.history": "Dějiny míst v příbězích",
|
|
3174
|
+
"log.setting.name.sync.edits": "Změny z aplikace Strom",
|
|
3175
|
+
"log.setting.name.sync.review": "Kontrola toho, co přijde z aplikace Strom",
|
|
3176
|
+
"log.setting.name.read.sourceTask": "Nové čtení, které se liší od přepisu",
|
|
3177
|
+
"log.setting.name.hypotheses.decide": "Kdo rozhoduje hypotézy",
|
|
3178
|
+
"log.setting.name.main.person": "Hlavní osoba stromu",
|
|
3179
|
+
"log.setting.name.excerpts.quality": "Kvalita výřezů pro aplikaci Strom",
|
|
3180
|
+
"log.setting.name.excerpts.for": "Čí zápisy mají výřez v aplikaci Strom",
|
|
3181
|
+
"log.setting.name.excerpts.mb": "Nejvyšší velikost souboru s výřezy",
|
|
3182
|
+
"log.setting.name.strom.version": "Verze aplikace Strom",
|
|
3183
|
+
"log.setting.name.agent.browser": "Prohlížeč agenta",
|
|
3184
|
+
"log.setting.name.agent.addons": "Vlastní doplňky agenta při samostatné práci",
|
|
3185
|
+
"log.setting.name.experiments.history": "Dějiny oblastí",
|
|
3186
|
+
"log.setting.name.experiments.placeHistory": "Dějiny místa na požádání",
|
|
3187
|
+
"log.setting.name.history.kinds": "Hledané druhy událostí v dějinách",
|
|
3188
|
+
"log.setting.name.experiments.historyPlaces": "Dějiny všech míst postupně",
|
|
3189
|
+
"log.setting.name.experiments.historyPace": "Jak často se hledají dějiny",
|
|
3190
|
+
"log.setting.name.intake.auto": "Soubory poslané do výzkumu projde agent sám",
|
|
3191
|
+
"log.setting.name.sort.confirm": "Dotaz před tříděním materiálu",
|
|
3192
|
+
"log.setting.name.census": "Sčítání lidu",
|
|
3193
|
+
"log.setting.value.read.sourceTask.ask": "nejdřív se zeptat",
|
|
3194
|
+
"log.setting.value.read.sourceTask.always": "hned úkol",
|
|
3195
|
+
"log.setting.value.read.sourceTask.never": "jen uložit",
|
|
3196
|
+
"log.setting.value.hypotheses.decide.person": "člověk",
|
|
3197
|
+
"log.setting.value.hypotheses.decide.agent": "agent",
|
|
3198
|
+
"log.setting.value.sync.edits.conflict": "jako rozpory",
|
|
3199
|
+
"log.setting.value.sync.edits.user": "přijmout jako vlastní",
|
|
3200
|
+
"log.setting.value.gedcom.for.both": "oba",
|
|
3201
|
+
"log.setting.value.gedcom.for.standard": "jen standardní",
|
|
3202
|
+
"log.setting.value.gedcom.for.strom": "jen pro aplikaci Strom",
|
|
3203
|
+
"log.setting.value.agent.browser.archives": "jen pro archivy přes prohlížeč",
|
|
3204
|
+
"log.setting.value.agent.browser.always": "vždy",
|
|
3146
3205
|
"log.image": "{name}, obr. {image}",
|
|
3147
3206
|
"log.media.edit": "Upravený snímek: {name}",
|
|
3148
3207
|
"log.media.retract": "Odvolaný snímek: {name}",
|
package/assets/lang/de.json
CHANGED
|
@@ -3143,6 +3143,65 @@
|
|
|
3143
3143
|
"log.chat.saved": "Nach einem Gespräch mit dem Agenten gespeichert",
|
|
3144
3144
|
"log.migrate": "Die Daten des Stammbaums für ein neueres strom aktualisiert",
|
|
3145
3145
|
"log.setting": "Einstellung der Forschung geändert: {key}",
|
|
3146
|
+
"log.setting.on": "In der Forschung eingeschaltet: {name}",
|
|
3147
|
+
"log.setting.off": "In der Forschung ausgeschaltet: {name}",
|
|
3148
|
+
"log.setting.to": "Einstellung der Forschung geändert: {name} – {value}",
|
|
3149
|
+
"log.setting.default": "Einstellung der Forschung auf den Standard zurückgesetzt: {name}",
|
|
3150
|
+
"log.setting.name.lang": "Sprache der Forschung",
|
|
3151
|
+
"log.setting.name.agent": "Agent der Forschung",
|
|
3152
|
+
"log.setting.name.model.lead": "Modell der Forschung",
|
|
3153
|
+
"log.setting.name.model.vision": "Modell zum Lesen der Scans",
|
|
3154
|
+
"log.setting.name.model.text": "Modell für Texte",
|
|
3155
|
+
"log.setting.name.model.cheap": "Modell für einfache Arbeit",
|
|
3156
|
+
"log.setting.name.model.effort": "Aufwand des Agentenmodells",
|
|
3157
|
+
"log.setting.name.brief.budget": "Umfang der Unterlagen für den Agenten",
|
|
3158
|
+
"log.setting.name.run.minutes": "Minuten der Arbeit des Agenten je Aufgabe",
|
|
3159
|
+
"log.setting.name.read.parallel": "Leser gleichzeitig",
|
|
3160
|
+
"log.setting.name.web.perHost": "Downloads von einer Website gleichzeitig",
|
|
3161
|
+
"log.setting.name.queue.strategy": "Reihenfolge der Aufgaben",
|
|
3162
|
+
"log.setting.name.queue.offLine": "Familien außerhalb des Stammbaums",
|
|
3163
|
+
"log.setting.name.queue.offLineShare": "Anteil der Arbeit an Familien außerhalb des Stammbaums",
|
|
3164
|
+
"log.setting.name.queue.suggestLines": "Vorschläge neuer Forschungslinien",
|
|
3165
|
+
"log.setting.name.queue.suggestTasks": "Höchstens vorgeschlagene Aufgaben",
|
|
3166
|
+
"log.setting.name.queue.sameBook": "Aufgaben eines Buches nacheinander",
|
|
3167
|
+
"log.setting.name.search.ageMargin": "Spielraum der Jahre bei der Suche",
|
|
3168
|
+
"log.setting.name.books.minTasks": "Aufgaben, ab denen ein Buch zum Herunterladen angeboten wird",
|
|
3169
|
+
"log.setting.name.queue.suggestPersons": "Höchstens vorgeschlagene Personen",
|
|
3170
|
+
"log.setting.name.gedcom.for": "Geschriebene GEDCOM-Dateien",
|
|
3171
|
+
"log.setting.name.stories": "Geschichten",
|
|
3172
|
+
"log.setting.name.stories.sources": "Quellen über die Kirchenbücher hinaus vor einer Geschichte",
|
|
3173
|
+
"log.setting.name.stories.history": "Geschichte der Orte in den Geschichten",
|
|
3174
|
+
"log.setting.name.sync.edits": "Änderungen aus der Strom-App",
|
|
3175
|
+
"log.setting.name.sync.review": "Prüfung dessen, was aus der Strom-App kommt",
|
|
3176
|
+
"log.setting.name.read.sourceTask": "Neue Lesung, die von der Abschrift abweicht",
|
|
3177
|
+
"log.setting.name.hypotheses.decide": "Wer die Hypothesen entscheidet",
|
|
3178
|
+
"log.setting.name.main.person": "Hauptperson des Stammbaums",
|
|
3179
|
+
"log.setting.name.excerpts.quality": "Qualität der Ausschnitte für die Strom-App",
|
|
3180
|
+
"log.setting.name.excerpts.for": "Wessen Einträge einen Ausschnitt in der Strom-App bekommen",
|
|
3181
|
+
"log.setting.name.excerpts.mb": "Höchstgröße der Datei mit Ausschnitten",
|
|
3182
|
+
"log.setting.name.strom.version": "Version der Strom-App",
|
|
3183
|
+
"log.setting.name.agent.browser": "Browser des Agenten",
|
|
3184
|
+
"log.setting.name.agent.addons": "Eigene Erweiterungen des Agenten bei selbständiger Arbeit",
|
|
3185
|
+
"log.setting.name.experiments.history": "Geschichte der Regionen",
|
|
3186
|
+
"log.setting.name.experiments.placeHistory": "Geschichte eines Ortes auf Anfrage",
|
|
3187
|
+
"log.setting.name.history.kinds": "Gesuchte Arten von Ereignissen in der Geschichte",
|
|
3188
|
+
"log.setting.name.experiments.historyPlaces": "Geschichte aller Orte nach und nach",
|
|
3189
|
+
"log.setting.name.experiments.historyPace": "Wie oft die Geschichte gesucht wird",
|
|
3190
|
+
"log.setting.name.intake.auto": "An die Forschung gesendete Dateien sieht der Agent selbst durch",
|
|
3191
|
+
"log.setting.name.sort.confirm": "Rückfrage vor dem Sortieren des Materials",
|
|
3192
|
+
"log.setting.name.census": "Volkszählungen",
|
|
3193
|
+
"log.setting.value.read.sourceTask.ask": "zuerst fragen",
|
|
3194
|
+
"log.setting.value.read.sourceTask.always": "sofort eine Aufgabe",
|
|
3195
|
+
"log.setting.value.read.sourceTask.never": "nur aufbewahren",
|
|
3196
|
+
"log.setting.value.hypotheses.decide.person": "der Mensch",
|
|
3197
|
+
"log.setting.value.hypotheses.decide.agent": "der Agent",
|
|
3198
|
+
"log.setting.value.sync.edits.conflict": "als Widersprüche",
|
|
3199
|
+
"log.setting.value.sync.edits.user": "als eigene übernehmen",
|
|
3200
|
+
"log.setting.value.gedcom.for.both": "beide",
|
|
3201
|
+
"log.setting.value.gedcom.for.standard": "nur Standard",
|
|
3202
|
+
"log.setting.value.gedcom.for.strom": "nur für die Strom-App",
|
|
3203
|
+
"log.setting.value.agent.browser.archives": "nur für Archive über den Browser",
|
|
3204
|
+
"log.setting.value.agent.browser.always": "immer",
|
|
3146
3205
|
"log.image": "{name}, Bild {image}",
|
|
3147
3206
|
"log.media.edit": "Bild geändert: {name}",
|
|
3148
3207
|
"log.media.retract": "Bild zurückgezogen: {name}",
|
package/assets/lang/pl.json
CHANGED
|
@@ -3143,6 +3143,65 @@
|
|
|
3143
3143
|
"log.chat.saved": "Zapisano po rozmowie z agentem",
|
|
3144
3144
|
"log.migrate": "Dane drzewa genealogicznego przeniesione do nowszej wersji strom",
|
|
3145
3145
|
"log.setting": "Zmieniono ustawienie badania: {key}",
|
|
3146
|
+
"log.setting.on": "Włączono w badaniu: {name}",
|
|
3147
|
+
"log.setting.off": "Wyłączono w badaniu: {name}",
|
|
3148
|
+
"log.setting.to": "Zmieniono ustawienie badania: {name} – {value}",
|
|
3149
|
+
"log.setting.default": "Przywrócono domyślne ustawienie badania: {name}",
|
|
3150
|
+
"log.setting.name.lang": "Język badania",
|
|
3151
|
+
"log.setting.name.agent": "Agent badania",
|
|
3152
|
+
"log.setting.name.model.lead": "Model badania",
|
|
3153
|
+
"log.setting.name.model.vision": "Model do odczytu skanów",
|
|
3154
|
+
"log.setting.name.model.text": "Model do tekstów",
|
|
3155
|
+
"log.setting.name.model.cheap": "Model do prostej pracy",
|
|
3156
|
+
"log.setting.name.model.effort": "Wysiłek modelu agenta",
|
|
3157
|
+
"log.setting.name.brief.budget": "Zakres materiałów dla agenta",
|
|
3158
|
+
"log.setting.name.run.minutes": "Minuty pracy agenta na zadanie",
|
|
3159
|
+
"log.setting.name.read.parallel": "Czytelnicy jednocześnie",
|
|
3160
|
+
"log.setting.name.web.perHost": "Pobierania z jednej witryny jednocześnie",
|
|
3161
|
+
"log.setting.name.queue.strategy": "Kolejność zadań",
|
|
3162
|
+
"log.setting.name.queue.offLine": "Rodziny poza drzewem",
|
|
3163
|
+
"log.setting.name.queue.offLineShare": "Udział pracy nad rodzinami poza drzewem",
|
|
3164
|
+
"log.setting.name.queue.suggestLines": "Propozycje nowych linii badania",
|
|
3165
|
+
"log.setting.name.queue.suggestTasks": "Najwyżej proponowanych zadań",
|
|
3166
|
+
"log.setting.name.queue.sameBook": "Zadania jednej księgi po kolei",
|
|
3167
|
+
"log.setting.name.search.ageMargin": "Margines lat przy wyszukiwaniu",
|
|
3168
|
+
"log.setting.name.books.minTasks": "Zadania, po których księga jest proponowana do pobrania",
|
|
3169
|
+
"log.setting.name.queue.suggestPersons": "Najwyżej proponowanych osób",
|
|
3170
|
+
"log.setting.name.gedcom.for": "Zapisywane pliki GEDCOM",
|
|
3171
|
+
"log.setting.name.stories": "Opowieści",
|
|
3172
|
+
"log.setting.name.stories.sources": "Źródła poza metrykami przed opowieścią",
|
|
3173
|
+
"log.setting.name.stories.history": "Historia miejsc w opowieściach",
|
|
3174
|
+
"log.setting.name.sync.edits": "Zmiany z aplikacji Strom",
|
|
3175
|
+
"log.setting.name.sync.review": "Przegląd tego, co przychodzi z aplikacji Strom",
|
|
3176
|
+
"log.setting.name.read.sourceTask": "Nowy odczyt różniący się od transkrypcji",
|
|
3177
|
+
"log.setting.name.hypotheses.decide": "Kto rozstrzyga hipotezy",
|
|
3178
|
+
"log.setting.name.main.person": "Główna osoba drzewa",
|
|
3179
|
+
"log.setting.name.excerpts.quality": "Jakość wycinków dla aplikacji Strom",
|
|
3180
|
+
"log.setting.name.excerpts.for": "Czyje wpisy mają wycinek w aplikacji Strom",
|
|
3181
|
+
"log.setting.name.excerpts.mb": "Największy rozmiar pliku z wycinkami",
|
|
3182
|
+
"log.setting.name.strom.version": "Wersja aplikacji Strom",
|
|
3183
|
+
"log.setting.name.agent.browser": "Przeglądarka agenta",
|
|
3184
|
+
"log.setting.name.agent.addons": "Własne dodatki agenta przy samodzielnej pracy",
|
|
3185
|
+
"log.setting.name.experiments.history": "Historia regionów",
|
|
3186
|
+
"log.setting.name.experiments.placeHistory": "Historia miejsca na życzenie",
|
|
3187
|
+
"log.setting.name.history.kinds": "Szukane rodzaje wydarzeń w historii",
|
|
3188
|
+
"log.setting.name.experiments.historyPlaces": "Historia wszystkich miejsc po kolei",
|
|
3189
|
+
"log.setting.name.experiments.historyPace": "Jak często szukana jest historia",
|
|
3190
|
+
"log.setting.name.intake.auto": "Pliki wysłane do badania agent przegląda sam",
|
|
3191
|
+
"log.setting.name.sort.confirm": "Pytanie przed sortowaniem materiałów",
|
|
3192
|
+
"log.setting.name.census": "Spisy ludności",
|
|
3193
|
+
"log.setting.value.read.sourceTask.ask": "najpierw zapytać",
|
|
3194
|
+
"log.setting.value.read.sourceTask.always": "od razu zadanie",
|
|
3195
|
+
"log.setting.value.read.sourceTask.never": "tylko zachować",
|
|
3196
|
+
"log.setting.value.hypotheses.decide.person": "człowiek",
|
|
3197
|
+
"log.setting.value.hypotheses.decide.agent": "agent",
|
|
3198
|
+
"log.setting.value.sync.edits.conflict": "jako sprzeczności",
|
|
3199
|
+
"log.setting.value.sync.edits.user": "przyjąć jako własne",
|
|
3200
|
+
"log.setting.value.gedcom.for.both": "oba",
|
|
3201
|
+
"log.setting.value.gedcom.for.standard": "tylko standardowy",
|
|
3202
|
+
"log.setting.value.gedcom.for.strom": "tylko dla aplikacji Strom",
|
|
3203
|
+
"log.setting.value.agent.browser.archives": "tylko dla archiwów przez przeglądarkę",
|
|
3204
|
+
"log.setting.value.agent.browser.always": "zawsze",
|
|
3146
3205
|
"log.image": "{name}, obr. {image}",
|
|
3147
3206
|
"log.media.edit": "Zmieniony skan: {name}",
|
|
3148
3207
|
"log.media.retract": "Wycofany skan: {name}",
|
package/dist/cli/execute.js
CHANGED
|
@@ -110,7 +110,7 @@ export function resolveCommand(argv) {
|
|
|
110
110
|
if (!extra.length)
|
|
111
111
|
throw new GroupOnly(group);
|
|
112
112
|
// said as typed (strom book B1, never "strom recordset B1"), looked up in the group it stands for
|
|
113
|
-
throw unknownCommand([...group, extra[0]], [...typedGroup, extra[0]]);
|
|
113
|
+
throw unknownCommand([...group, extra[0]], [...typedGroup, extra[0]], false, extra[1]);
|
|
114
114
|
}
|
|
115
115
|
throw unknownCommand([...words, ...extra].slice(0, Math.max(words.length + 1, 2)));
|
|
116
116
|
}
|
|
@@ -134,9 +134,11 @@ export class GroupOnly extends Error {
|
|
|
134
134
|
/**
|
|
135
135
|
* An unknown command, said as typed (`said`: another name of a group — strom book … — when `words` name the group it
|
|
136
136
|
* stands for) with the commands near it; a group's ID after it (strom book B1) offers the group's show; `hidden`: the
|
|
137
|
-
* group's commands behind a gate are near ones too (a group that is a command of its own: strom history read)
|
|
137
|
+
* group's commands behind a gate are near ones too (a group that is a command of its own: strom history read); `after`:
|
|
138
|
+
* the word typed after them, put into the command meant where it takes it (strom place find Lhota → strom place list
|
|
139
|
+
* Lhota); a word that is no command of a group that lists by a part of a name (strom place Lhota): that list.
|
|
138
140
|
*/
|
|
139
|
-
function unknownCommand(words, said = words, hidden = false) {
|
|
141
|
+
function unknownCommand(words, said = words, hidden = false, after) {
|
|
140
142
|
const typed = said.join(" ");
|
|
141
143
|
const all = commands().filter((c) => c.path.length > 0).map((c) => c.path.join(" "));
|
|
142
144
|
// A known group narrows the choice ("person ad" → "person add", not "lesson add"); `hidden`: a group that is a
|
|
@@ -148,7 +150,13 @@ function unknownCommand(words, said = words, hidden = false) {
|
|
|
148
150
|
// before the commands a few letters away (read is no redo)
|
|
149
151
|
const synonyms = words.length === 2 ? (SUBCOMMAND_WORDS[words[1].toLowerCase()] ?? []).map((w) => `${words[0]} ${w}`).filter((c) => inGroup.includes(c)) : [];
|
|
150
152
|
const show = !hits.length && words.length === 2 && /^\p{Lu}\p{N}+$/u.test(words[1]) && inGroup.includes(`${words[0]} show`) ? `${said[0]} show ${said[1]}` : undefined;
|
|
151
|
-
|
|
153
|
+
// a name where the command goes (strom place Lhota): the group's list by a part of a name, with it
|
|
154
|
+
const byName = !show && !synonyms.length && !hits.length && words.length === 2 && takesWord(`${words[0]} list`, true) ? [`${words[0]} list ${quoted(words[1])}`] : [];
|
|
155
|
+
// the word typed after another word for a command, put into the command meant where it fits: a record's ID into one that
|
|
156
|
+
// takes it (strom task view T0003 → task show T0003), a name into a list by a part of a name (strom place find Lhota)
|
|
157
|
+
const isId = after !== undefined && /^\p{Lu}+\p{N}+$/u.test(after);
|
|
158
|
+
const withAfter = (c) => (after !== undefined && (c.endsWith(" list") ? !isId && takesWord(c, true) : isId && takesWord(c)) ? `${c} ${quoted(after)}` : c);
|
|
159
|
+
const more = show ? [show] : synonyms.length ? synonyms.map(withAfter) : byName.length ? byName : hits.length ? hits : suggest(words[0] ?? "", [...new Set(all.map((c) => c.split(" ")[0]))]);
|
|
152
160
|
// in the words typed: the group's other name kept (strom book show, not strom recordset show)
|
|
153
161
|
const asTyped = (c) => (said[0] !== words[0] && c.split(" ")[0] === words[0] ? [said[0], ...c.split(" ").slice(1)].join(" ") : c);
|
|
154
162
|
const near = more.map((c) => `strom ${asTyped(c)}`).join(" · ");
|
|
@@ -157,6 +165,15 @@ function unknownCommand(words, said = words, hidden = false) {
|
|
|
157
165
|
...(more.length ? { code: "command.near", params: { cmd: typed, near } } : { code: "command.unknown", params: { cmd: typed } }),
|
|
158
166
|
});
|
|
159
167
|
}
|
|
168
|
+
/** The command takes a word after it (`filter`: its first argument a part of a name it lists by, not required). */
|
|
169
|
+
function takesWord(command, filter = false) {
|
|
170
|
+
const first = commands().find((c) => c.path.join(" ") === command)?.args?.[0];
|
|
171
|
+
return !!first && (!filter || (first.name === "filter" && !first.required));
|
|
172
|
+
}
|
|
173
|
+
/** A word as a shell takes it back: in quotes when it has a space or a quote. */
|
|
174
|
+
function quoted(word) {
|
|
175
|
+
return /[\s"'$`\\]/u.test(word) ? `"${word.replace(/["$`\\]/gu, (c) => `\\${c}`)}"` : word;
|
|
176
|
+
}
|
|
160
177
|
/** Other words agents type for a command of a group: the commands they mean, those the group has said. */
|
|
161
178
|
const SUBCOMMAND_WORDS = {
|
|
162
179
|
view: ["show", "list"],
|
|
@@ -170,6 +187,14 @@ const SUBCOMMAND_WORDS = {
|
|
|
170
187
|
details: ["show"],
|
|
171
188
|
ls: ["list"],
|
|
172
189
|
all: ["list"],
|
|
190
|
+
// looking a record up by a part of its name (strom place find Lhota): the group's list, which takes it
|
|
191
|
+
find: ["list"],
|
|
192
|
+
search: ["list"],
|
|
193
|
+
lookup: ["list"],
|
|
194
|
+
match: ["list"],
|
|
195
|
+
query: ["list"],
|
|
196
|
+
grep: ["list"],
|
|
197
|
+
filter: ["list"],
|
|
173
198
|
new: ["add"],
|
|
174
199
|
create: ["add"],
|
|
175
200
|
update: ["edit"],
|
|
@@ -20,6 +20,7 @@ import { byHandOnly, listConnectors, missingConsents } from "../core/connector.j
|
|
|
20
20
|
import { readableFile } from "../core/readable.js";
|
|
21
21
|
import { shownSize } from "../image/index.js";
|
|
22
22
|
import { verifyFast } from "../core/integrity.js";
|
|
23
|
+
import { writeFileAtomic } from "../core/json.js";
|
|
23
24
|
import { addReaders } from "../core/session.js";
|
|
24
25
|
import { READER_MINUTES_HELP } from "../core/reader.js";
|
|
25
26
|
import { stamp } from "../core/net.js";
|
|
@@ -510,9 +511,10 @@ function finish(ctx, tree, s, ran, spent, back = false) {
|
|
|
510
511
|
delete s.pid;
|
|
511
512
|
delete s.before;
|
|
512
513
|
let result = buildResult(tree, s);
|
|
514
|
+
// whole or not at all (written beside, then renamed): /status reads it (readAgain) while a reading ends
|
|
513
515
|
const write = () => {
|
|
514
516
|
fs.mkdirSync(path.dirname(resultPath(tree.root, s.id)), { recursive: true });
|
|
515
|
-
|
|
517
|
+
writeFileAtomic(resultPath(tree.root, s.id), JSON.stringify(result, null, 2) + "\n");
|
|
516
518
|
};
|
|
517
519
|
const verified = !tree.dryRun && verifyFast(tree).findings.every((f) => f.level !== "error");
|
|
518
520
|
// a source read again from its original: ended only once it is held against the transcript — the app takes the
|
|
@@ -530,9 +532,11 @@ function finish(ctx, tree, s, ran, spent, back = false) {
|
|
|
530
532
|
if (compares && !verified)
|
|
531
533
|
unwritten(tree.dryRun ? "a dry run: nothing written to the research" : "the research has errors (strom check): the reading not written to its source");
|
|
532
534
|
let persisted = false;
|
|
535
|
+
// the result first, then the state: the app takes a reading as ended when its state says done (GET /read/<id>), and
|
|
536
|
+
// what /status says of the source (readAgain) is read from the result — never a done whose result is not there yet
|
|
533
537
|
const persist = () => {
|
|
534
|
-
saveState(tree.root, s);
|
|
535
538
|
write();
|
|
539
|
+
saveState(tree.root, s);
|
|
536
540
|
persisted = true;
|
|
537
541
|
};
|
|
538
542
|
if (!keeps)
|
package/dist/commands/media.js
CHANGED
|
@@ -1746,7 +1746,8 @@ function imageGroups(args, seq) {
|
|
|
1746
1746
|
const bare = groups.find((g) => !g.parts.length);
|
|
1747
1747
|
if (bare)
|
|
1748
1748
|
throw new UsageError(`${groupLabel(bare)} has no --${kind} of its own: each --${kind} is of the image named before it`, {
|
|
1749
|
-
|
|
1749
|
+
// a whole view of one image and a part of another (a live run's try, 2026-11-25): two calls, --whole is of all
|
|
1750
|
+
hint: `${form} (the same parts of every image: all of them after the last image) — the image whole: a call of its own, strom media view ${groupLabel(bare)}`,
|
|
1750
1751
|
code: "view.crop-missing",
|
|
1751
1752
|
});
|
|
1752
1753
|
return groups;
|
|
@@ -2697,7 +2698,10 @@ register({
|
|
|
2697
2698
|
"--crop repeated; --split 2x3 = a grid of overlapping parts), each view with its image, page and --clip. A --crop,\n" +
|
|
2698
2699
|
"--half, --split or --grid typed after an image among others is of that image alone (B0001:2 --crop … B0001:7\n" +
|
|
2699
2700
|
"--half right; B0001 --image 2 --crop … B0001 --image 7 --crop …; B0001 2 --crop … 7 --crop …); parts after the\n" +
|
|
2700
|
-
"last image are of every image
|
|
2701
|
+
"last image are of every image; an image whole beside parts of another: two calls (--whole is of every image).\n" +
|
|
2702
|
+
"An image registered only in parts (its two halves, M0005 and M0006, of B0001:60): the parts whole by their IDs\n" +
|
|
2703
|
+
"(strom media view M0005 M0006); a --half or a --crop of B0001:60 is of the whole image, in its fractions, shown from\n" +
|
|
2704
|
+
"the part that covers it (B0001:60 alone names no view: which part?). At most\n" +
|
|
2701
2705
|
`${VIEW_MAX_IMAGES} images and ${VIEW_MAX_VIEWS} views in one call: every view stays in the context that opens it.`,
|
|
2702
2706
|
args: [{ name: "image", description: "M0012, B0001:57 (record set:image), a range B0001:57-60, B0001 with --page, an input I0002, or a page of an input document I0002:3 (a PDF; HEIC and PDF are converted for reading, the original kept); several = several images", required: true, variadic: true }],
|
|
2703
2707
|
options: [
|
|
@@ -2725,6 +2729,8 @@ register({
|
|
|
2725
2729
|
"strom media view B0001:2 --crop 0.05,0.10,0.45,0.30 B0001:3 --crop 0.50,0.60,0.45,0.20",
|
|
2726
2730
|
"strom media view B0001 --page 112 113 --split 2x2",
|
|
2727
2731
|
"strom media view I0005:2 --half top",
|
|
2732
|
+
"strom media view M0005 M0006",
|
|
2733
|
+
"strom media view B0001:60 --crop 0.55,0.30,0.40,0.20",
|
|
2728
2734
|
],
|
|
2729
2735
|
run(ctx, { args, opts, seq }) {
|
|
2730
2736
|
// the whole image is what a view is without a part of it (strom read --whole: each image in one view)
|
package/dist/commands/sources.js
CHANGED
|
@@ -245,12 +245,18 @@ register({
|
|
|
245
245
|
options: [
|
|
246
246
|
{ name: "kind", type: "string", value: "<kind>", description: "only this kind" },
|
|
247
247
|
{ name: "recordset", type: "string", value: "<B…>", description: "only from this recordset" },
|
|
248
|
+
{ name: "note", type: "string", value: "<text>", description: "only the sources a note of which says this (diacritics optional), each with that note — e.g. the sources whose address an index gave", mistaken: ["notes", "note-text", "remark"] },
|
|
248
249
|
{ name: "full", type: "boolean", description: "--json: whole records instead of one row each" },
|
|
249
250
|
{ name: "retracted", type: "boolean", description: "only the sources retracted: deleted by the person (when, how many citations kept in it — strom source restore puts it back), merged, taken back" },
|
|
250
251
|
],
|
|
252
|
+
examples: ["strom source list Lhota --kind baptism", 'strom source list --note "index"'],
|
|
251
253
|
run(ctx, { args, opts }) {
|
|
252
254
|
const tree = ctx.tree();
|
|
253
|
-
|
|
255
|
+
// --note: the note that says it (the first), said with the source — no strom source show of each
|
|
256
|
+
const said = typeof opts.note === "string" ? opts.note : undefined;
|
|
257
|
+
const noteOf = (s) => (said === undefined ? undefined : s.notes?.find((n) => matches(n.text, said))?.text);
|
|
258
|
+
const wanted = (s) => (said === undefined || noteOf(s) !== undefined) &&
|
|
259
|
+
(!args[0] || matches(s.title, args[0]) || matches(s.locator, args[0]) || matches(s.folio, args[0]) || matches(s.image, args[0]) || matches(s.transcript, args[0])) &&
|
|
254
260
|
(!opts.kind || s.kind === opts.kind) &&
|
|
255
261
|
(!opts.recordset || s.recordset === normId(opts.recordset));
|
|
256
262
|
const found = tree.list("source").filter(wanted);
|
|
@@ -259,9 +265,9 @@ register({
|
|
|
259
265
|
const text = all.length
|
|
260
266
|
? opts.retracted
|
|
261
267
|
? lines(table(page.items.map((s) => [s.id, s.kind, truncate(s.title, 60), retractedLine(s)])), moreLine(page, "strom source list --retracted"), page.items.some(deletedSource) ? "put back a deleted one (the person's alone): strom source restore <S…>" : undefined)
|
|
262
|
-
: lines(table(page.items.map((s) => [s.id, s.kind, truncate(s.title, 60), s.locator ?? "", s.form === "original" ? "" : s.form])), moreLine(page, "strom source list"))
|
|
268
|
+
: lines(table(page.items.map((s) => [s.id, s.kind, truncate(s.title, 60), s.locator ?? "", s.form === "original" ? "" : s.form, ...(said !== undefined ? [truncate(noteOf(s), 120)] : [])])), moreLine(page, "strom source list"))
|
|
263
269
|
: opts.retracted ? "no retracted sources match" : lines("no sources match", retractedHint(found));
|
|
264
|
-
const rows = opts.full ? page.items : page.items.map((s) => ({ id: s.id, kind: s.kind, title: s.title, locator: s.locator, form: s.form, information: s.information, ...(s.retracted ? retractedData(s) : {}) }));
|
|
270
|
+
const rows = opts.full ? page.items : page.items.map((s) => ({ id: s.id, kind: s.kind, title: s.title, locator: s.locator, form: s.form, information: s.information, ...(said !== undefined ? { note: noteOf(s) } : {}), ...(s.retracted ? retractedData(s) : {}) }));
|
|
265
271
|
return { text, data: { total: page.total, sources: rows } };
|
|
266
272
|
},
|
|
267
273
|
}, {
|
|
@@ -735,9 +741,9 @@ register({
|
|
|
735
741
|
summary: "Places known in this tree — or, with --off-map, the places of facts not on the Strom app's map yet",
|
|
736
742
|
group: "sources",
|
|
737
743
|
tree: true,
|
|
738
|
-
args: [{ name: "filter", description: "part of a name" }],
|
|
744
|
+
args: [{ name: "filter", description: "part of a name, any of the place's names (finds a place: there is no strom place find)", mistaken: ["match", "name", "search", "find", "query", "filter"] }],
|
|
739
745
|
options: [{ name: "off-map", type: "boolean", description: "places of facts without coordinates (no place record yet, or one without them), the most facts first" }],
|
|
740
|
-
examples: ["strom place list", "strom place list --off-map"],
|
|
746
|
+
examples: ["strom place list", 'strom place list "Týnec"', "strom place list --off-map"],
|
|
741
747
|
run(ctx, { args, opts }) {
|
|
742
748
|
const tree = ctx.tree();
|
|
743
749
|
if (opts["off-map"]) {
|
package/dist/core/changelog.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { agentDecided } from "./hypolinks.js";
|
|
11
11
|
import { conflictTitle, displayName, lifespan } from "./people.js";
|
|
12
12
|
import { ownerName, cardFact } from "./overview.js";
|
|
13
|
-
import { phrase } from "./phrases.js";
|
|
13
|
+
import { phrase, PHRASES } from "./phrases.js";
|
|
14
14
|
import { clock } from "./net.js";
|
|
15
15
|
import { eventName, humanDate, humanPlace, humanTask, humanWhen } from "../cli/human.js";
|
|
16
16
|
import { UI, ui } from "../cli/ui.js";
|
|
@@ -20,6 +20,41 @@ const QUIET = new Set(["session.metrics", "session.readers", "task.start", "task
|
|
|
20
20
|
/** The one-line form of an operation, by its kind: {who} a person or family, {name} the record. */
|
|
21
21
|
/** What strom mode logs (core/mode.ts), as the history says it. */
|
|
22
22
|
const MODE_SAID = { "the research is an archive": "log.mode.archive", "the research works with an agent again": "log.mode.research" };
|
|
23
|
+
/** The settings of a research said turned on or off (strom config set): each value, which of the two it is. */
|
|
24
|
+
const SETTING_ON_OFF = {
|
|
25
|
+
...Object.fromEntries(["stories", "stories.sources", "stories.history", "queue.suggestLines", "queue.sameBook"].map((k) => [k, { yes: "on", no: "off" }])),
|
|
26
|
+
...Object.fromEntries(["sync.review", "agent.addons", "experiments.history", "experiments.placeHistory", "experiments.historyPlaces", "intake.auto", "census"].map((k) => [k, { on: "on", off: "off" }])),
|
|
27
|
+
// the question before a sort: ask — the question on
|
|
28
|
+
"sort.confirm": { ask: "on", no: "off" },
|
|
29
|
+
};
|
|
30
|
+
/** The settings of a research said with their number. */
|
|
31
|
+
const SETTING_NUMBERS = new Set(["brief.budget", "run.minutes", "read.parallel", "web.perHost", "queue.offLineShare", "queue.suggestTasks", "search.ageMargin", "books.minTasks", "queue.suggestPersons", "excerpts.mb"]);
|
|
32
|
+
/**
|
|
33
|
+
* A setting of the research changed (the summary strom config set writes: "tree setting <key> = <value>", "tree setting
|
|
34
|
+
* <key> removed") in the research's language: its name, and what it is now where it can be said in words.
|
|
35
|
+
*/
|
|
36
|
+
export function settingSaid(summary, lang) {
|
|
37
|
+
const m = /^tree setting (\S+)(?: = (.*)| removed)?$/u.exec(summary);
|
|
38
|
+
if (!m)
|
|
39
|
+
return "";
|
|
40
|
+
const key = m[1];
|
|
41
|
+
const value = m[2]?.trim();
|
|
42
|
+
const nameKey = `log.setting.name.${key}`;
|
|
43
|
+
if (!(nameKey in PHRASES))
|
|
44
|
+
return phrase(lang, "log.setting", { key });
|
|
45
|
+
const name = phrase(lang, nameKey);
|
|
46
|
+
if (value === undefined)
|
|
47
|
+
return phrase(lang, summary.endsWith(" removed") ? "log.setting.default" : "log.setting", summary.endsWith(" removed") ? { name } : { key: name });
|
|
48
|
+
const turned = SETTING_ON_OFF[key]?.[value];
|
|
49
|
+
if (turned)
|
|
50
|
+
return phrase(lang, turned === "on" ? "log.setting.on" : "log.setting.off", { name });
|
|
51
|
+
if (SETTING_NUMBERS.has(key) && /^\d+(?:\.\d+)?$/u.test(value))
|
|
52
|
+
return phrase(lang, "log.setting.to", { name, value });
|
|
53
|
+
const valueKey = `log.setting.value.${key}.${value}`;
|
|
54
|
+
if (valueKey in PHRASES)
|
|
55
|
+
return phrase(lang, "log.setting.to", { name, value: phrase(lang, valueKey) });
|
|
56
|
+
return phrase(lang, "log.setting", { key: name });
|
|
57
|
+
}
|
|
23
58
|
const SAID = {
|
|
24
59
|
"person.add": "log.person.add",
|
|
25
60
|
"person.name": "log.person.name",
|
|
@@ -460,10 +495,10 @@ export function changeLines(tree, ops, subject, lang, was, tasks) {
|
|
|
460
495
|
say(phrase(lang, MODE_SAID[o.summary]));
|
|
461
496
|
continue;
|
|
462
497
|
}
|
|
463
|
-
// a setting of the research (strom config set):
|
|
498
|
+
// a setting of the research (strom config set): said in words — what was turned on or off, a number, a choice — never
|
|
499
|
+
// its key nor the English summary (a key strom does not name: the key, as before)
|
|
464
500
|
if (o.op === "config.set") {
|
|
465
|
-
|
|
466
|
-
say(m ? phrase(lang, "log.setting", { key: m[1] }) : "");
|
|
501
|
+
say(settingSaid(o.summary, lang));
|
|
467
502
|
continue;
|
|
468
503
|
}
|
|
469
504
|
// the forms of a surname the person made one family (quality/surnames.json): the forms, never the English summary
|
package/dist/core/deviceapp.js
CHANGED
|
@@ -171,9 +171,12 @@ export function servableDeviceApp(env) {
|
|
|
171
171
|
export function deviceAppFailed(env) {
|
|
172
172
|
return !!readNote(env).failedAt;
|
|
173
173
|
}
|
|
174
|
-
/**
|
|
174
|
+
/**
|
|
175
|
+
* For /phone: a copy ready (its version), one being downloaded, or none. Ready only as the gateway serves it: a copy
|
|
176
|
+
* under the gate of the app's version is none — the devices get the page that the computer prepares the app.
|
|
177
|
+
*/
|
|
175
178
|
export function deviceAppState(env) {
|
|
176
|
-
const ready =
|
|
179
|
+
const ready = servableDeviceApp(env);
|
|
177
180
|
if (liveHolder(file(env, "device-app.fetch.lock"), 30 * 60_000))
|
|
178
181
|
return ready ? { app: "fetching", appVersion: ready.version } : { app: "fetching" };
|
|
179
182
|
return ready ? { app: "ready", appVersion: ready.version } : { app: "none" };
|
package/dist/core/glance.js
CHANGED
|
@@ -158,7 +158,7 @@ export function glanceOf(tree, from) {
|
|
|
158
158
|
...(person ? { person } : {}),
|
|
159
159
|
...(line ? { line } : {}),
|
|
160
160
|
...(str(w.branch) ? { branch: str(w.branch) } : {}),
|
|
161
|
-
...(retry && typeof retry.can === "boolean" ? { retry: { can: retry.can, ...(str(retry.until) ? { until: str(retry.until) } : {}), says: forPhone(str(retry.says) ?? "") } } : {}),
|
|
161
|
+
...(retry && typeof retry.can === "boolean" ? { retry: { can: retry.can, ...(str(retry.until) ? { until: str(retry.until) } : {}), says: forPhone(str(retry.says) ?? ""), ...(Number.isInteger(retry.images) && retry.images > 0 ? { n: retry.images } : {}) } } : {}),
|
|
162
162
|
...(hyp?.type === "hypothesis"
|
|
163
163
|
? {
|
|
164
164
|
hypothesis: {
|
package/dist/core/live.js
CHANGED
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
// {id, text}, person?, family?, run?}], runs: [{id, line, way, since, state, paused?, task?}],
|
|
178
178
|
// lastWorked?, lines: [{id, n, name, direction, way, state, tasks, waiting, working, since, focus?,
|
|
179
179
|
// reason?}], waiting {n, items: [{id, kind, section, phase, what, on?, at, sentAt?, group, person?,
|
|
180
|
-
// line?, branch?, retry?, hypothesis?, do: [answer|sent|unsent|retry|line|keep|never|decide]}]},
|
|
180
|
+
// line?, branch?, retry? {can, until?, says, n?}, hypothesis?, do: [answer|sent|unsent|retry|line|keep|never|decide]}]},
|
|
181
181
|
// people {P…: {name, span?}}} — made of /status for the state now and the app's version (kept
|
|
182
182
|
// for both, as /status is), the runs read
|
|
183
183
|
// at each ask; texts as the phone's page says them, nothing of an agent, a model, a folder or a
|
|
@@ -911,7 +911,7 @@ import { handoffsNow } from "./handoffs.js";
|
|
|
911
911
|
import { autoTidy } from "./tidy.js";
|
|
912
912
|
import { askPhoneOn, endPhoneLater, pairCode, pairUrl, phoneConfig, phoneProbe, phoneRunning, phoneState, phoneSummary, phoneTestPortRefused, phoneTestYesHint, removePhone, restorePhone, revivePhone, stopPhone } from "./phone.js";
|
|
913
913
|
import { qrSvg } from "./qr.js";
|
|
914
|
-
import { clientOfDevice, deviceEvents, deviceName, devicePairCode, devicePairShown, devicePairUrl, deviceRows, devicesList, devicesOn, hostOf, removeDevice, renameDevice, restoreDevice } from "./devices.js";
|
|
914
|
+
import { clientOfDevice, deviceEvents, deviceName, devicePairCode, devicePairNow, devicePairShown, devicePairUrl, deviceRows, devicesList, devicesOn, hostOf, removeDevice, renameDevice, restoreDevice } from "./devices.js";
|
|
915
915
|
import { deviceAppState, ensureDeviceApp, noteDeviceAppSource } from "./deviceapp.js";
|
|
916
916
|
import { localName } from "./device-gateway.js";
|
|
917
917
|
import { diskVersion, lastingLauncher, stromLauncher } from "./self.js";
|
|
@@ -8332,10 +8332,11 @@ export function serveLive(root, env) {
|
|
|
8332
8332
|
// screens): put back within PHONE_RESTORE_MS
|
|
8333
8333
|
const devicesTakenOff = new Map();
|
|
8334
8334
|
/**
|
|
8335
|
-
* GET phone with the gateway of the devices on: the app for them
|
|
8336
|
-
*
|
|
8337
|
-
*
|
|
8338
|
-
* minute); stale: a device asking at
|
|
8335
|
+
* GET phone with the gateway of the devices on: the app for them (ready only as the gateway serves it — a copy under
|
|
8336
|
+
* the gate of the app's version is none), the computer's name a device may find it by (<name>.local, null: at an IP
|
|
8337
|
+
* address alone), the devices paired — a row each, the icons of their home screens folded in — and which of them are
|
|
8338
|
+
* here now (seen within a minute and a half: lastSeenAt is written at most once a minute); stale: a device asking at
|
|
8339
|
+
* none of the gateway's addresses now. Its pair: how long the device's code shown holds (qr.svg), none without one.
|
|
8339
8340
|
*/
|
|
8340
8341
|
const devicesNow = () => {
|
|
8341
8342
|
const name = localName(env);
|
|
@@ -8370,7 +8371,12 @@ export function serveLive(root, env) {
|
|
|
8370
8371
|
noteDeviceAppSource(env, req.headers.origin, appVersionOf(req, new Settings(env, {})));
|
|
8371
8372
|
void ensureDeviceApp(env);
|
|
8372
8373
|
}
|
|
8373
|
-
|
|
8374
|
+
// the gateway on: the code that pairs is the device's (qr.svg shows it), never the phone page's code of before
|
|
8375
|
+
const paired = (s) => {
|
|
8376
|
+
const p = s.state === "on" ? devicePairNow(env) : undefined;
|
|
8377
|
+
return { ...s, pair: p ? { expiresAt: p.expiresAt } : null };
|
|
8378
|
+
};
|
|
8379
|
+
return void phoneNow().then((s) => phoneJson(res, 200, devices ? { ...paired(s), devices: devicesNow() } : s), (e) => failed(req, res, e));
|
|
8374
8380
|
}
|
|
8375
8381
|
if (sub === "qr.svg" && !act) {
|
|
8376
8382
|
const s = phoneState(env);
|
package/dist/core/media.js
CHANGED
|
@@ -415,7 +415,8 @@ export function imageOfRef(all, recordset, image) {
|
|
|
415
415
|
if (parts.length < 2)
|
|
416
416
|
return m;
|
|
417
417
|
throw new UsageError(`image ${image} of ${recordset} is registered only in parts: ${parts.map((p) => `${p.id} (part ${regionText(p.part)})`).join(", ")}`, {
|
|
418
|
-
|
|
418
|
+
// to look at it: the parts whole, or a half or a crop of the whole image (shown from the part that covers it)
|
|
419
|
+
hint: `name the part the record is on: ${parts.map((p) => p.id).join(" or ")} — to look at them: strom media view ${parts.map((p) => p.id).join(" ")}; a half or a crop of the whole image: strom media view ${recordset}:${image} --half left`,
|
|
419
420
|
});
|
|
420
421
|
}
|
|
421
422
|
/** Image n of a record set registered only in parts (no whole image of it): those parts; else none. */
|
package/dist/core/phrases.js
CHANGED
|
@@ -401,6 +401,65 @@ export const PHRASES = {
|
|
|
401
401
|
"log.chat.saved": "Saved after a conversation with the agent",
|
|
402
402
|
"log.migrate": "The family tree's data brought up to date for a newer strom",
|
|
403
403
|
"log.setting": "Setting of the research changed: {key}",
|
|
404
|
+
"log.setting.on": "Turned on in the research: {name}",
|
|
405
|
+
"log.setting.off": "Turned off in the research: {name}",
|
|
406
|
+
"log.setting.to": "Setting of the research changed: {name} – {value}",
|
|
407
|
+
"log.setting.default": "Setting of the research back to its default: {name}",
|
|
408
|
+
"log.setting.name.lang": "Language of the research",
|
|
409
|
+
"log.setting.name.agent": "Agent of the research",
|
|
410
|
+
"log.setting.name.model.lead": "Model of the research",
|
|
411
|
+
"log.setting.name.model.vision": "Model for reading the scans",
|
|
412
|
+
"log.setting.name.model.text": "Model for texts",
|
|
413
|
+
"log.setting.name.model.cheap": "Model for simple work",
|
|
414
|
+
"log.setting.name.model.effort": "Effort of the agent's model",
|
|
415
|
+
"log.setting.name.brief.budget": "Size of the agent's brief",
|
|
416
|
+
"log.setting.name.run.minutes": "Minutes of the agent's work per task",
|
|
417
|
+
"log.setting.name.read.parallel": "Readers at the same time",
|
|
418
|
+
"log.setting.name.web.perHost": "Downloads from one website at the same time",
|
|
419
|
+
"log.setting.name.queue.strategy": "Order of the tasks",
|
|
420
|
+
"log.setting.name.queue.offLine": "Families off the tree",
|
|
421
|
+
"log.setting.name.queue.offLineShare": "Share of the work on families off the tree",
|
|
422
|
+
"log.setting.name.queue.suggestLines": "Suggestions of new lines of the research",
|
|
423
|
+
"log.setting.name.queue.suggestTasks": "Tasks suggested at most",
|
|
424
|
+
"log.setting.name.queue.sameBook": "Tasks of one book one after another",
|
|
425
|
+
"log.setting.name.search.ageMargin": "Margin of years in a search",
|
|
426
|
+
"log.setting.name.books.minTasks": "Tasks a book needs to be offered to download",
|
|
427
|
+
"log.setting.name.queue.suggestPersons": "People suggested at most",
|
|
428
|
+
"log.setting.name.gedcom.for": "GEDCOM files written",
|
|
429
|
+
"log.setting.name.stories": "Stories",
|
|
430
|
+
"log.setting.name.stories.sources": "Sources beyond the registers before a story",
|
|
431
|
+
"log.setting.name.stories.history": "History of the places in the stories",
|
|
432
|
+
"log.setting.name.sync.edits": "Changes from the Strom app",
|
|
433
|
+
"log.setting.name.sync.review": "Review of what comes from the Strom app",
|
|
434
|
+
"log.setting.name.read.sourceTask": "A new reading that differs from the transcript",
|
|
435
|
+
"log.setting.name.hypotheses.decide": "Who decides the hypotheses",
|
|
436
|
+
"log.setting.name.main.person": "Main person of the tree",
|
|
437
|
+
"log.setting.name.excerpts.quality": "Quality of the cut-outs for the Strom app",
|
|
438
|
+
"log.setting.name.excerpts.for": "Whose entries get their cut-out in the Strom app",
|
|
439
|
+
"log.setting.name.excerpts.mb": "Size of the file with cut-outs at most",
|
|
440
|
+
"log.setting.name.strom.version": "Version of the Strom app",
|
|
441
|
+
"log.setting.name.agent.browser": "The agent's browser",
|
|
442
|
+
"log.setting.name.agent.addons": "The agent's own add-ons in work alone",
|
|
443
|
+
"log.setting.name.experiments.history": "History of the regions",
|
|
444
|
+
"log.setting.name.experiments.placeHistory": "History of a place when asked for",
|
|
445
|
+
"log.setting.name.history.kinds": "Kinds of events looked for in the history",
|
|
446
|
+
"log.setting.name.experiments.historyPlaces": "History of every place, one at a time",
|
|
447
|
+
"log.setting.name.experiments.historyPace": "How often the history is looked for",
|
|
448
|
+
"log.setting.name.intake.auto": "Files sent to the research gone through by the agent",
|
|
449
|
+
"log.setting.name.sort.confirm": "Question before the material is sorted",
|
|
450
|
+
"log.setting.name.census": "Census records",
|
|
451
|
+
"log.setting.value.read.sourceTask.ask": "ask first",
|
|
452
|
+
"log.setting.value.read.sourceTask.always": "a task at once",
|
|
453
|
+
"log.setting.value.read.sourceTask.never": "only kept",
|
|
454
|
+
"log.setting.value.hypotheses.decide.person": "the person",
|
|
455
|
+
"log.setting.value.hypotheses.decide.agent": "the agent",
|
|
456
|
+
"log.setting.value.sync.edits.conflict": "as conflicts",
|
|
457
|
+
"log.setting.value.sync.edits.user": "taken as the person's own",
|
|
458
|
+
"log.setting.value.gedcom.for.both": "both",
|
|
459
|
+
"log.setting.value.gedcom.for.standard": "standard only",
|
|
460
|
+
"log.setting.value.gedcom.for.strom": "for the Strom app only",
|
|
461
|
+
"log.setting.value.agent.browser.archives": "only for archives through the browser",
|
|
462
|
+
"log.setting.value.agent.browser.always": "always",
|
|
404
463
|
"log.image": "{name}, image {image}",
|
|
405
464
|
"log.media.edit": "Image changed: {name}",
|
|
406
465
|
"log.media.retract": "Image withdrawn: {name}",
|
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.
|
|
35
|
+
export const VERSION = "1.38.0-beta.1";
|
|
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", "name-status-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.
|
|
3
|
+
"version": "1.38.0-beta.1",
|
|
4
4
|
"stromDoc": "eafa9851e80b366627b5c3f238d82f882dcd070d",
|
|
5
5
|
"description": "Genealogical research toolkit for AI coding agents",
|
|
6
6
|
"type": "module",
|
|
@@ -61,5 +61,8 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/node": "^22.20.4",
|
|
63
63
|
"typescript": "^7.0.2"
|
|
64
|
+
},
|
|
65
|
+
"publishConfig": {
|
|
66
|
+
"tag": "beta"
|
|
64
67
|
}
|
|
65
68
|
}
|