strom-research 1.36.0-beta.3 → 1.36.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.cs.md CHANGED
@@ -7,7 +7,7 @@ Změny každé verze ve zkratce. Úplné poznámky a instalační řádky jsou n
7
7
 
8
8
  ## 1.36.0
9
9
 
10
- *Připravuje se: bety do 1.36.0-beta.3. Oddíl bude úplný s vydáním.*
10
+ *Připravuje se: bety do 1.36.0-beta.5. Oddíl bude úplný s vydáním.*
11
11
 
12
12
  - **Zkouška hromadného ověření hned:** úkoly zkoušky hromadného ověření (`strom verify bulk --try`) stojí na začátku
13
13
  fronty – vezme je příští sezení – a aplikace Strom je dá zpracovat hned, každý úkol jedno sezení, odkazem, který úkoly
@@ -50,14 +50,20 @@ Změny každé verze ve zkratce. Úplné poznámky a instalační řádky jsou n
50
50
  - **Soubor rodokmenu v materiálu:** aplikace Strom ukáže v Materiálech importované soubory rodokmenu (GEDCOM, JSON
51
51
  aplikace) a smaže je natrvalo jako každý soubor materiálu; ten, ze kterého vznikl pramen, jen spolu s tímto pramenem,
52
52
  v jednom kroku s jedním potvrzením (`strom input delete … --retract-sources`).
53
- - **Drobné opravy:** úkol oddělený příkazem `strom task audit --fix` jmenuje snímky knihy jejím názvem, bez ID a slovesa; `strom task wait --images` zadané znovu pro tutéž knihu snímky spojí (jiná kniha se odmítne:
54
- jedna kniha na úkol);
55
- dvě zkoušky hromadného ověření po sobě jdou v pořadí zadání, starší první; brána limitů předplatného je přečte
56
- za vteřinu či dvě, bez procházení uložených konverzací na počítači; v aplikaci Strom ukazuje každá citace rodokmenu
57
- znovu svůj vlastní řádek rodokmenu (ukazatel vytvořený importem zůstává stranou) a číslo snímku známé jen z evidovaných
58
- skenů je tak označené, aby ho aplikace k umístění přidala, aniž by z něj vystřihla číslo jiného snímku. `strom pack` a `strom trees remove`
59
- jmenují skeny z archivů jako skeny (které jdou s sebou, které se vynechají) a záloha před odstraněním řekne, že v ní
60
- jsou rodinné fotky a originály.
53
+ - **Drobné opravy:** archiv, který strom drží přísněji, než říká jeho vlastní seznam podmínek archivů (stahovač nebo
54
+ záznam ve výzkumu je tak jednou přečetl), už tam potichu nevypíná prohlížeč agenta: `strom doctor`, `strom run` i
55
+ `strom allow archive` řeknou, od kdy, proč a co říká seznam, Co čeká i aplikace Strom se člověka jednou zeptají, zda
56
+ úroveň ponechat, nebo vzít podmínky archivu (`strom allow archive <host> --keep` nebo `--level <úroveň>`), a pak se do
57
+ fronty vrátí jen úkoly, které nová úroveň otevře; kde člověk archiv svolil „přes prohlížeč“, kontrola stránky tam
58
+ agenta posílá do jeho prohlížeče místo ke svolení, které už platí; na stahovač či archiv zapsaný přísněji než seznam
59
+ se upozorní; úkol oddělený příkazem `strom task audit --fix` jmenuje snímky knihy jejím názvem, bez ID a slovesa;
60
+ `strom task wait --images` zadané znovu pro tutéž knihu snímky spojí (jiná kniha se odmítne: jedna kniha na úkol); dvě
61
+ zkoušky hromadného ověření po sobě jdou v pořadí zadání, starší první; brána limitů předplatného je přečte za vteřinu
62
+ či dvě, bez procházení uložených konverzací na počítači; v aplikaci Strom ukazuje každá citace rodokmenu znovu svůj
63
+ vlastní řádek rodokmenu (ukazatel vytvořený importem zůstává stranou) a číslo snímku známé jen z evidovaných skenů je
64
+ tak označené, aby ho aplikace k umístění přidala, aniž by z něj vystřihla číslo jiného snímku. `strom pack` a `strom
65
+ trees remove` jmenují skeny z archivů jako skeny (které jdou s sebou, které se vynechají) a záloha před odstraněním
66
+ řekne, že v ní jsou rodinné fotky a originály.
61
67
 
62
68
  ## 1.35.0
63
69
 
package/CHANGELOG.de.md CHANGED
@@ -7,7 +7,7 @@ Die Änderungen jeder Version in Kürze. Die vollständigen Hinweise und die Ins
7
7
 
8
8
  ## 1.36.0
9
9
 
10
- *In Vorbereitung: die Betas bis 1.36.0-beta.3. Der Abschnitt ist mit dem Release vollständig.*
10
+ *In Vorbereitung: die Betas bis 1.36.0-beta.5. Der Abschnitt ist mit dem Release vollständig.*
11
11
 
12
12
  - **Ein Versuch der Sammelprüfung sofort:** Die Aufgaben eines Versuchs der Sammelprüfung (`strom verify bulk --try`)
13
13
  stehen am Anfang der Warteschlange – die nächste Sitzung nimmt sie –, und die Strom-App lässt sie sofort bearbeiten,
@@ -57,16 +57,23 @@ Die Änderungen jeder Version in Kürze. Die vollständigen Hinweise und die Ins
57
57
  - **Die Datei eines Stammbaums im Material:** Die Strom-App zeigt die importierten Stammbaumdateien (GEDCOM, JSON der
58
58
  App) im Material und löscht sie endgültig wie jede Datei des Materials; eine, aus der eine Quelle entstand, nur
59
59
  zusammen mit dieser Quelle, in einem Schritt mit einer Bestätigung (`strom input delete … --retract-sources`).
60
- - **Kleinere Korrekturen:** Eine mit `strom task audit --fix` abgetrennte Aufgabe nennt die Bilder des Buchs mit dessen
61
- Titel, ohne ID und Verb; `strom task wait --images` erneut für dasselbe Buch angegeben, fügt dessen Bilder zusammen (ein
62
- anderes Buch wird abgelehnt: ein Buch je Aufgabe); zwei Versuche der Sammelprüfung nacheinander kommen in der Reihenfolge, in der sie
63
- angefordert wurden, der ältere zuerst; die Bedingung der Abo-Limits liest sie in ein, zwei Sekunden,
64
- ohne die auf dem Computer gespeicherten Unterhaltungen zu durchsuchen; in der Strom-App zeigt jede Quellenangabe eines
65
- Stammbaums wieder ihre eigene Zeile des Stammbaums (ein Verweis, den ein Import angelegt hat, bleibt außen vor), und eine
66
- nur aus den erfassten Scans bekannte Bildnummer ist als solche gekennzeichnet, sodass die App sie zur Fundstelle
67
- hinzufügt, ohne die Nummer eines anderen Bildes daraus zu entfernen. `strom pack` und `strom trees remove` nennen die
68
- Scans der Archive als Scans (welche mitgehen, welche weggelassen werden), und die Sicherung vor dem Entfernen sagt,
69
- dass sie die Fotos und Originale der Familie enthält.
60
+ - **Kleinere Korrekturen:** ein Archiv, das strom strenger hält, als seine eigene Liste der Archivbedingungen sagt (ein
61
+ Downloader oder ein Eintrag der Recherche hat sie einmal so gelesen), schaltet den Browser des Agenten dort nicht mehr
62
+ stillschweigend ab: `strom doctor`, `strom run` und `strom allow archive` sagen, seit wann, warum und was die Liste
63
+ sagt, Was wartet und die Strom-App fragen die Person einmal, ob die Stufe bleibt oder die Bedingungen des Archivs
64
+ gelten (`strom allow archive <host> --keep` oder `--level <Stufe>`), danach kehren nur die Aufgaben zurück, die die
65
+ neue Stufe öffnet; wo die Person ein Archiv „über den Browser“ erlaubt hat, verweist die Prüfung einer Seite dort den
66
+ Agenten auf seinen Browser statt auf die bereits erteilte Erlaubnis; vor einem Downloader oder Archiv, das strenger
67
+ als die Liste eingetragen ist, wird gewarnt; eine mit `strom task audit --fix` abgetrennte Aufgabe nennt die Bilder
68
+ des Buchs mit dessen Titel, ohne ID und Verb; `strom task wait --images` erneut für dasselbe Buch angegeben, fügt
69
+ dessen Bilder zusammen (ein anderes Buch wird abgelehnt: ein Buch je Aufgabe); zwei Versuche der Sammelprüfung
70
+ nacheinander kommen in der Reihenfolge, in der sie angefordert wurden, der ältere zuerst; die Bedingung der Abo-Limits
71
+ liest sie in ein, zwei Sekunden, ohne die auf dem Computer gespeicherten Unterhaltungen zu durchsuchen; in der
72
+ Strom-App zeigt jede Quellenangabe eines Stammbaums wieder ihre eigene Zeile des Stammbaums (ein Verweis, den ein
73
+ Import angelegt hat, bleibt außen vor), und eine nur aus den erfassten Scans bekannte Bildnummer ist als solche
74
+ gekennzeichnet, sodass die App sie zur Fundstelle hinzufügt, ohne die Nummer eines anderen Bildes daraus zu entfernen.
75
+ `strom pack` und `strom trees remove` nennen die Scans der Archive als Scans (welche mitgehen, welche weggelassen
76
+ werden), und die Sicherung vor dem Entfernen sagt, dass sie die Fotos und Originale der Familie enthält.
70
77
 
71
78
  ## 1.35.0
72
79
 
package/CHANGELOG.md CHANGED
@@ -7,7 +7,7 @@ The changes of each version in short. The full notes and the install lines are o
7
7
 
8
8
  ## 1.36.0
9
9
 
10
- *In preparation: the betas up to 1.36.0-beta.3. The section is complete with the release.*
10
+ *In preparation: the betas up to 1.36.0-beta.5. The section is complete with the release.*
11
11
 
12
12
  - **A try of the bulk verification at once:** the tasks of a try of the bulk verification (`strom verify bulk --try`)
13
13
  stand first in the queue — the next session takes them — and the Strom app can have them worked on at once, one
@@ -52,15 +52,21 @@ The changes of each version in short. The full notes and the install lines are o
52
52
  - **A family tree's file in the material:** the Strom app shows the imported family tree files (GEDCOM, the app's JSON)
53
53
  in Materials and deletes them for good as any file of the material; one a source was made of only together with that
54
54
  source, in one step with one confirmation (`strom input delete … --retract-sources`).
55
- - **Smaller fixes:** a task split off by `strom task audit --fix` names the book's images by the book's title, without
56
- its ID and a verb; `strom task wait --images` given again for the same book joins its images (another book's are
57
- refused: one book per task); two tries of the bulk verification in a row come in the order they were asked, the older first; the gate
58
- of the subscription's limits reads them in a second or two, without going through the conversations kept on the
59
- computer; in the Strom app each citation of a family tree shows its own line of the tree again (a pointer an import
60
- made stays out), and an image's number known only from the registered scans is marked as such, so that the app adds it
61
- to the location without cutting another image's number out of it. `strom pack` and `strom trees remove` name the
62
- archives' scans as scans (which go along, which are left out), and the backup before a removal says it holds the
63
- family's photos and originals.
55
+ - **Smaller fixes:** an archive strom keeps stricter than its own list of the archive's terms says (a downloader or a
56
+ research's record read them so once) no longer shuts the agent's browser there quietly: `strom doctor`, `strom run`
57
+ and `strom allow archive` say since when, why and what the list says, What waits and the Strom app ask the person once
58
+ whether to keep it or take the archive's terms (`strom allow archive <host> --keep` or `--level <level>`), after which
59
+ only the tasks the new level opens come back to the queue; where the person allowed an archive "through the browser",
60
+ the agent's check of a page there points to the agent's browser rather than to the permission given already; a
61
+ downloader or an archive recorded stricter than the list is warned of; a task split off by `strom task audit --fix`
62
+ names the book's images by the book's title, without its ID and a verb; `strom task wait --images` given again for the
63
+ same book joins its images (another book's are refused: one book per task); two tries of the bulk verification in a
64
+ row come in the order they were asked, the older first; the gate of the subscription's limits reads them in a second
65
+ or two, without going through the conversations kept on the computer; in the Strom app each citation of a family tree
66
+ shows its own line of the tree again (a pointer an import made stays out), and an image's number known only from the
67
+ registered scans is marked as such, so that the app adds it to the location without cutting another image's number out
68
+ of it. `strom pack` and `strom trees remove` name the archives' scans as scans (which go along, which are left out),
69
+ and the backup before a removal says it holds the family's photos and originals.
64
70
 
65
71
  ## 1.35.0
66
72
 
package/CHANGELOG.pl.md CHANGED
@@ -7,7 +7,7 @@ Zmiany każdej wersji w skrócie. Pełne informacje o wydaniach i polecenia inst
7
7
 
8
8
  ## 1.36.0
9
9
 
10
- *W przygotowaniu: bety do 1.36.0-beta.3. Sekcja będzie kompletna z wydaniem.*
10
+ *W przygotowaniu: bety do 1.36.0-beta.5. Sekcja będzie kompletna z wydaniem.*
11
11
 
12
12
  - **Próba zbiorczej weryfikacji od razu:** zadania próby zbiorczej weryfikacji (`strom verify bulk --try`) stoją na
13
13
  początku kolejki – weźmie je następna sesja – a aplikacja Strom pozwala przerobić je od razu, każde zadanie w jednej
@@ -52,14 +52,21 @@ Zmiany każdej wersji w skrócie. Pełne informacje o wydaniach i polecenia inst
52
52
  - **Plik drzewa genealogicznego w materiałach:** aplikacja Strom pokazuje w Materiałach zaimportowane pliki drzewa
53
53
  genealogicznego (GEDCOM, JSON aplikacji) i usuwa je na stałe jak każdy plik materiałów; ten, z którego powstało
54
54
  źródło, tylko razem z tym źródłem, w jednym kroku z jednym potwierdzeniem (`strom input delete … --retract-sources`).
55
- - **Drobne poprawki:** zadanie wydzielone przez `strom task audit --fix` nazywa skany księgi jej tytułem, bez ID i
56
- czasownika; `strom task wait --images` podane ponownie dla tej samej księgi łączy jej skany (inna księga jest
57
- odrzucana: jedna księga na zadanie); dwie próby zbiorczej weryfikacji po sobie idą w kolejności zlecenia, starsza pierwsza; warunek limitów subskrypcji
58
- odczytuje je w sekundę lub dwie, bez przeglądania rozmów zapisanych na komputerze; w aplikacji Strom każdy przypis
59
- drzewa genealogicznego znów pokazuje własny wiersz drzewa (odnośnik utworzony przez import pozostaje na boku), a numer
60
- skanu znany tylko z zarejestrowanych skanów jest tak oznaczony, by aplikacja dodała go do lokalizacji, nie wycinając z
61
- niej numeru innego skanu. `strom pack` i `strom trees remove` nazywają skany z archiwów skanami (które idą razem,
62
- które są pominięte), a kopia zapasowa przed usunięciem mówi, że zawiera rodzinne zdjęcia i oryginały.
55
+ - **Drobne poprawki:** archiwum, które strom trzyma surowiej, niż mówi jego własna lista warunków archiwów (konektor lub
56
+ wpis w badaniu raz tak je odczytał), nie wyłącza już tam po cichu przeglądarki agenta: `strom doctor`, `strom run` i
57
+ `strom allow archive` mówią, od kiedy, dlaczego i co mówi lista, Co czeka i aplikacja Strom pytają osobę raz, czy
58
+ zachować poziom, czy przyjąć warunki archiwum (`strom allow archive <host> --keep` lub `--level <poziom>`), po czym do
59
+ kolejki wracają tylko zadania, które nowy poziom otwiera; tam, gdzie osoba zezwoliła na archiwum „przez przeglądarkę”,
60
+ sprawdzenie strony kieruje agenta do jego przeglądarki zamiast do zgody, która już obowiązuje; przed konektorem lub
61
+ archiwum zapisanym surowiej niż lista strom ostrzega; zadanie wydzielone przez `strom task audit --fix` nazywa skany
62
+ księgi jej tytułem, bez ID i czasownika; `strom task wait --images` podane ponownie dla tej samej księgi łączy jej
63
+ skany (inna księga jest odrzucana: jedna księga na zadanie); dwie próby zbiorczej weryfikacji po sobie idą w
64
+ kolejności zlecenia, starsza pierwsza; warunek limitów subskrypcji odczytuje je w sekundę lub dwie, bez przeglądania
65
+ rozmów zapisanych na komputerze; w aplikacji Strom każdy przypis drzewa genealogicznego znów pokazuje własny wiersz
66
+ drzewa (odnośnik utworzony przez import pozostaje na boku), a numer skanu znany tylko z zarejestrowanych skanów jest
67
+ tak oznaczony, by aplikacja dodała go do lokalizacji, nie wycinając z niej numeru innego skanu. `strom pack` i `strom
68
+ trees remove` nazywają skany z archiwów skanami (które idą razem, które są pominięte), a kopia zapasowa przed
69
+ usunięciem mówi, że zawiera rodzinne zdjęcia i oryginały.
63
70
 
64
71
  ## 1.35.0
65
72
 
@@ -3152,6 +3152,9 @@
3152
3152
  "ui.browser.agent": "{names}: stahuje se přes prohlížeč – to umí jen Claude Code (rozšíření Claude in Chrome); výzkum teď dělá {agent}. Snímky z těchto archivů uložit ručně, nebo výzkum svěřit Claude Code (strom agents use claude).",
3153
3153
  "ui.browser.noext": "{names}: stahuje se přes prohlížeč – Chrome k tomu potřebuje rozšíření Claude in Chrome přihlášené ke stejnému účtu jako Claude Code; tady není v žádném prohlížeči: {url}",
3154
3154
  "ui.doc.browser": "prohlížeč (Claude in Chrome)",
3155
+ "ui.doc.floor": "archivy držené přísněji než jejich podmínky",
3156
+ "ui.doc.archives": "nastavení archivů",
3157
+ "ui.doc.archives.broken": "{file} nelze přečíst – dokud se neopraví, na to, co v něm bylo (svolení a úrovně archivů), se strom ptá znovu a nic se přes něj nepřepíše",
3155
3158
  "ui.doc.browser.ok": "rozšíření v {browsers} – při práci agenta musí Chrome běžet",
3156
3159
  "ui.doc.browser.apponly": " · v rozhovoru v aplikaci {app} ano; samostatná práce (strom run --chrome) jen s {cli} v terminálu",
3157
3160
  "ui.doc.browser.noext": "rozšíření není nainstalované (potřebuje ho {names})",
@@ -3668,6 +3671,25 @@
3668
3671
  "ui.archive.pace.service": "Tempo snímků: {pace} – změnit jde jen příkazem: strom allow host {host} --pace <s> --per-hour <n>",
3669
3672
  "ui.archive.closed": "{title}: {level}. Svolení to nezmění; úroveň zvedne jen příkaz: strom allow archive {host} --level restricted",
3670
3673
  "ui.archive.closed.hand": "{title}: {level}. Snímky jdou jen ručně: uložit je v prohlížeči do složky úkolu ve schránce (inbox).",
3674
+ "ui.archive.floor": "{title} ({host}): strom drží „{level}“ od {date} – {source}. Podmínky archivu podle seznamu stromu (ověřeno {checked}): {list}.",
3675
+ "ui.archive.floor.by.connector": "tak to přečetl stahovač {name}",
3676
+ "ui.archive.floor.by.record": "tak to tehdy uvedl záznam archivu ve výzkumu nebo stahovač",
3677
+ "ui.archive.floor.by.person": "tak to nastavil člověk",
3678
+ "ui.archive.floor.by.agent": "tak to nastavil agent",
3679
+ "ui.archive.floor.holds": "Drží to ještě: {what} – změnit nejdřív tam.",
3680
+ "ui.archive.floor.hold.connector": "stahovač {name} (strom connector show {name})",
3681
+ "ui.archive.floor.hold.tree": "záznam archivu ve výzkumu {id} (strom repo show {id})",
3682
+ "ui.archive.floor.hold.host": "web archivu sám (jeho odmítnutí nebo robots.txt)",
3683
+ "ui.archive.floor.hold.other": "nastavení ve výchozí složce",
3684
+ "ui.archive.floor.decide": "Rozhoduje jen člověk: Co čeká, nebo strom allow archive {host} --level {code} (podle podmínek) · --keep (jak to strom drží).",
3685
+ "ui.archive.floor.item": "{title} ({host}): strom drží „{level}“, podmínky archivu říkají: {list}",
3686
+ "ui.archive.floor.choose": "{title} – co platí?",
3687
+ "ui.archive.floor.keep": "Ponechat „{level}“ – už se neptat",
3688
+ "ui.archive.floor.terms": "Podle podmínek archivu: {list}",
3689
+ "ui.archive.floor.kept": "✓ {title}: „{level}“ zůstává – už se strom neptá.",
3690
+ "ui.archive.floor.taken": "✓ {title}: podle podmínek archivu – {list}.",
3691
+ "ui.archive.floor.confirm.keep": "Ponechat u archivu {title} „{level}“, jak to strom drží? Už se strom nezeptá; změnit to může člověk později (strom allow archive).",
3692
+ "ui.archive.floor.gone": "Už není co rozhodnout: co strom u tohoto archivu drží, se od jeho podmínek už neliší.",
3671
3693
  "ui.archive.gone": "K tomuto archivu tu už žádný stahovač nevede – není co rozhodnout.",
3672
3694
  "ui.archive.level.allowed": "podle podmínek dovoleno",
3673
3695
  "ui.archive.level.restricted": "podmínky automatické stahování omezují – snímky jen se svolením",
@@ -3152,6 +3152,9 @@
3152
3152
  "ui.browser.agent": "{names}: wird über den Browser geladen – das kann nur Claude Code (die Erweiterung Claude in Chrome); die Forschung macht jetzt {agent}. Diese Bilder von Hand speichern, oder die Forschung Claude Code überlassen (strom agents use claude).",
3153
3153
  "ui.browser.noext": "{names}: wird über den Browser geladen – Chrome braucht dafür die Erweiterung Claude in Chrome, angemeldet beim Konto von Claude Code; hier ist sie in keinem Browser: {url}",
3154
3154
  "ui.doc.browser": "Browser (Claude in Chrome)",
3155
+ "ui.doc.floor": "Archive strenger gehalten als ihre Bedingungen",
3156
+ "ui.doc.archives": "Einstellungen der Archive",
3157
+ "ui.doc.archives.broken": "{file} kann nicht gelesen werden – bis die Datei repariert ist, fragt strom nach dem, was darin stand (Erlaubnisse, Stufen der Archive), erneut, und nichts wird darüber geschrieben",
3155
3158
  "ui.doc.browser.ok": "die Erweiterung in {browsers} – Chrome muss laufen, während der Agent arbeitet",
3156
3159
  "ui.doc.browser.apponly": " · im Gespräch in der App {app}: ja; selbstständiges Arbeiten (strom run --chrome): nur mit {cli} im Terminal",
3157
3160
  "ui.doc.browser.noext": "die Erweiterung ist nicht installiert (gebraucht von {names})",
@@ -3668,6 +3671,25 @@
3668
3671
  "ui.archive.pace.service": "Tempo der Bilder: {pace} – nur per Befehl zu ändern: strom allow host {host} --pace <s> --per-hour <n>",
3669
3672
  "ui.archive.closed": "{title}: {level}. Eine Erlaubnis ändert daran nichts; die Stufe hebt nur ein Befehl: strom allow archive {host} --level restricted",
3670
3673
  "ui.archive.closed.hand": "{title}: {level}. Die Bilder gehen nur von Hand: im Browser in den Ordner der Aufgabe im Eingang (inbox) speichern.",
3674
+ "ui.archive.floor": "{title} ({host}): strom hält „{level}“ seit {date} – {source}. Die Bedingungen des Archivs laut strom-Liste (geprüft {checked}): {list}.",
3675
+ "ui.archive.floor.by.connector": "so hat es der Downloader {name} gelesen",
3676
+ "ui.archive.floor.by.record": "so gab es damals ein Archiveintrag einer Forschung oder ein Downloader an",
3677
+ "ui.archive.floor.by.person": "so hat es ein Mensch eingestellt",
3678
+ "ui.archive.floor.by.agent": "so hat es ein Agent eingestellt",
3679
+ "ui.archive.floor.holds": "Noch gehalten von: {what} – zuerst dort zu ändern.",
3680
+ "ui.archive.floor.hold.connector": "dem Downloader {name} (strom connector show {name})",
3681
+ "ui.archive.floor.hold.tree": "dem Archiveintrag der Forschung {id} (strom repo show {id})",
3682
+ "ui.archive.floor.hold.host": "der Website des Archivs selbst (ihre Ablehnung oder robots.txt)",
3683
+ "ui.archive.floor.hold.other": "den Einstellungen im Standardordner",
3684
+ "ui.archive.floor.decide": "Entscheidet nur ein Mensch: Was wartet, oder strom allow archive {host} --level {code} (laut Bedingungen) · --keep (wie strom es hält).",
3685
+ "ui.archive.floor.item": "{title} ({host}): strom hält „{level}“, die Bedingungen des Archivs sagen: {list}",
3686
+ "ui.archive.floor.choose": "{title} – was gilt?",
3687
+ "ui.archive.floor.keep": "„{level}“ beibehalten – nicht mehr fragen",
3688
+ "ui.archive.floor.terms": "Laut den Bedingungen des Archivs: {list}",
3689
+ "ui.archive.floor.kept": "✓ {title}: „{level}“ bleibt – strom fragt nicht mehr.",
3690
+ "ui.archive.floor.taken": "✓ {title}: laut den Bedingungen des Archivs – {list}.",
3691
+ "ui.archive.floor.confirm.keep": "Beim Archiv {title} „{level}“ beibehalten, wie strom es hält? strom fragt nicht mehr; ein Mensch kann es später ändern (strom allow archive).",
3692
+ "ui.archive.floor.gone": "Es gibt nichts mehr zu entscheiden: was strom bei diesem Archiv hält, weicht nicht mehr von seinen Bedingungen ab.",
3671
3693
  "ui.archive.gone": "Zu diesem Archiv führt hier kein Downloader mehr – es gibt nichts zu entscheiden.",
3672
3694
  "ui.archive.level.allowed": "nach den Bedingungen erlaubt",
3673
3695
  "ui.archive.level.restricted": "die Bedingungen schränken das automatische Herunterladen ein – Bilder nur mit Erlaubnis",
@@ -3152,6 +3152,9 @@
3152
3152
  "ui.browser.agent": "{names}: pobieranie przez przeglądarkę – to potrafi tylko Claude Code (rozszerzenie Claude in Chrome); badanie prowadzi teraz {agent}. Skany z tych archiwów zapisać ręcznie albo powierzyć badanie Claude Code (strom agents use claude).",
3153
3153
  "ui.browser.noext": "{names}: pobieranie przez przeglądarkę – Chrome potrzebuje do tego rozszerzenia Claude in Chrome zalogowanego na to samo konto co Claude Code; nie widać go tu w żadnej przeglądarce: {url}",
3154
3154
  "ui.doc.browser": "przeglądarka (Claude in Chrome)",
3155
+ "ui.doc.floor": "archiwa trzymane surowiej niż ich warunki",
3156
+ "ui.doc.archives": "ustawienia archiwów",
3157
+ "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",
3155
3158
  "ui.doc.browser.ok": "rozszerzenie w {browsers} – podczas pracy agenta Chrome musi działać",
3156
3159
  "ui.doc.browser.apponly": " · w rozmowie w aplikacji {app}: tak; praca samodzielna (strom run --chrome): tylko z {cli} w terminalu",
3157
3160
  "ui.doc.browser.noext": "rozszerzenie nie jest zainstalowane (potrzebuje go {names})",
@@ -3668,6 +3671,25 @@
3668
3671
  "ui.archive.pace.service": "Tempo skanów: {pace} – zmiana tylko poleceniem: strom allow host {host} --pace <s> --per-hour <n>",
3669
3672
  "ui.archive.closed": "{title}: {level}. Zgoda tego nie zmieni; poziom podniesie tylko polecenie: strom allow archive {host} --level restricted",
3670
3673
  "ui.archive.closed.hand": "{title}: {level}. Skany tylko ręcznie: zapisać je w przeglądarce do folderu zadania w skrzynce (inbox).",
3674
+ "ui.archive.floor": "{title} ({host}): strom utrzymuje „{level}” od {date} – {source}. Warunki archiwum według listy stroma (sprawdzone {checked}): {list}.",
3675
+ "ui.archive.floor.by.connector": "tak odczytał to program pobierający {name}",
3676
+ "ui.archive.floor.by.record": "tak podał to wtedy wpis archiwum w badaniu lub program pobierający",
3677
+ "ui.archive.floor.by.person": "tak ustawił to człowiek",
3678
+ "ui.archive.floor.by.agent": "tak ustawił to agent",
3679
+ "ui.archive.floor.holds": "Utrzymuje to jeszcze: {what} – najpierw zmienić tam.",
3680
+ "ui.archive.floor.hold.connector": "program pobierający {name} (strom connector show {name})",
3681
+ "ui.archive.floor.hold.tree": "wpis archiwum w badaniu {id} (strom repo show {id})",
3682
+ "ui.archive.floor.hold.host": "sama strona archiwum (jej odmowa lub robots.txt)",
3683
+ "ui.archive.floor.hold.other": "ustawienia w folderze domyślnym",
3684
+ "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).",
3685
+ "ui.archive.floor.item": "{title} ({host}): strom utrzymuje „{level}”, warunki archiwum mówią: {list}",
3686
+ "ui.archive.floor.choose": "{title} – co obowiązuje?",
3687
+ "ui.archive.floor.keep": "Zachować „{level}” – nie pytać więcej",
3688
+ "ui.archive.floor.terms": "Według warunków archiwum: {list}",
3689
+ "ui.archive.floor.kept": "✓ {title}: „{level}” zostaje – strom już nie pyta.",
3690
+ "ui.archive.floor.taken": "✓ {title}: według warunków archiwum – {list}.",
3691
+ "ui.archive.floor.confirm.keep": "Zachować dla archiwum {title} „{level}”, jak utrzymuje to strom? strom już nie zapyta; człowiek może to później zmienić (strom allow archive).",
3692
+ "ui.archive.floor.gone": "Nie ma już czego rozstrzygać: to, co strom utrzymuje dla tego archiwum, nie różni się już od jego warunków.",
3671
3693
  "ui.archive.gone": "Do tego archiwum nie prowadzi tu już żaden program pobierający – nie ma czego rozstrzygać.",
3672
3694
  "ui.archive.level.allowed": "pobieranie dozwolone przez warunki",
3673
3695
  "ui.archive.level.restricted": "warunki ograniczają automatyczne pobieranie – skany tylko za zgodą",
@@ -18,7 +18,15 @@ strom runs the connector; you never run it yourself, you test it with
18
18
  - `terms` (the URL), `termsSummary` (one to three sentences, quoted where it
19
19
  matters), `robots`, `officialExport`.
20
20
  - `automation`, one of (the strictest that fits; strom keeps to the
21
- strictest of yours, the family tree's archive and what it knows itself):
21
+ strictest of yours, the family tree's archive and what it knows itself).
22
+ For an archive strom's list knows (said at the top of this file when it
23
+ does, and by `strom connector test`), never write a level stricter
24
+ than the list's without a quote from the archive's terms that says so:
25
+ strom keeps the stricter level and remembers it — only the user makes it
26
+ milder again — and `"manual"` shuts your browser there, so the user saves
27
+ every image by hand. "Viewing online only" of an archive the list has as
28
+ `"restricted"` (only through a person's browser) is that, not `"manual"`.
29
+ The levels:
22
30
  - `"allowed"`: the terms allow it or say nothing against it, robots.txt
23
31
  does not forbid the paths, and nothing is got round.
24
32
  - `"restricted"`: the terms restrict automation without forbidding it —
@@ -988,7 +988,7 @@ export function browserRules(sites, alone, task) {
988
988
  "- strom watches it, and the built-in browser of Claude's desktop app the same way (the same hook before each page). That one, Codex's browser (in the terminal strom watches it by the addresses its code names, once the person confirmed strom's hooks in Codex; the ChatGPT app's runs through ChatGPT's cloud and strom does not watch it) and the desktop apps' computer use (strom does not watch it) strom does not recommend: never of your own accord (strom doc R12). Only when the person explicitly asks for them: the person's choice — say in one sentence whether strom watches that way and what the site's terms say; never a way round them, never a check whether a person is there.",
989
989
  "- Use it without asking where a connector (strom fetch), WebFetch and WebSearch lead nowhere — never where they led nowhere because the site refused strom (401/403/429) or its terms forbid or restrict automation; images only through strom fetch.",
990
990
  "- As gently as strom fetch: the site's terms and robots.txt, its pace and hourly cap (strom connector show; else a page at a time, 2 s apart at least), only the pages the task needs, nothing ahead. A site that forbids automated access: never through the browser, never a way round.",
991
- `- A site that forbids automation, refused strom, or restricts it without the person's permission "through the browser" (strom net web --check <url> says it): no connector, no browser — another way to the same records (another archive or fonds of the jurisdiction, the parish, an index, secondary sources), the search recorded (strom search add … --result inconclusive --note "<host>: …"); only if the source stays necessary: strom task wait ${task ?? "T…"} --check <url> --on "<what the person checks there>"${alone ? ", then close the session" : ""}.`,
991
+ `- A site that forbids automation, refused strom, or restricts it without the person's permission "through the browser" (strom net web --check <url> --browser says it): no connector, no browser — another way to the same records (another archive or fonds of the jurisdiction, the parish, an index, secondary sources), the search recorded (strom search add … --result inconclusive --note "<host>: …"); only if the source stays necessary: strom task wait ${task ?? "T…"} --check <url> --on "<what the person checks there>"${alone ? ", then close the session" : ""}.`,
992
992
  ...(alone
993
993
  ? [
994
994
  "- Nobody answers in a run: no AskUserQuestion, no switch_browser. Several browsers connected, none selected: list_connected_browsers, then select_browser — onThisComputer, else isLocal.",
package/dist/cli/human.js CHANGED
@@ -73,10 +73,13 @@ export function humanDate(date, lang) {
73
73
  }
74
74
  return simple(d, lang, false);
75
75
  }
76
+ /** What "this year" is measured by: a test sets a fixed day (its CLI runs in the same process), strom the clock. */
77
+ export const humanClock = {};
76
78
  /** A day of the research (an ISO time): "25. 9.", with the year when it is not this one. */
77
79
  export function humanDay(iso, lang) {
78
80
  const d = new Date(iso);
79
- return format(lang, d, d.getUTCFullYear() === new Date().getUTCFullYear() ? "daymonth" : "day");
81
+ const year = new Date((humanClock.now ?? Date.now)()).getUTCFullYear();
82
+ return format(lang, d, d.getUTCFullYear() === year ? "daymonth" : "day");
80
83
  }
81
84
  /** A moment of the research (an ISO time) on this computer's clock: "3. 10. 23:01" — which of a day's sends it was. */
82
85
  export function humanWhen(iso, lang) {
@@ -15,6 +15,7 @@ import { claimOf, loadArchives, pendingQuestions, questionHosts, rank } from "..
15
15
  import { connectorFor, levelWords, tasksStanding, tasksWaitingOn, termsText, waysOffered, wokenLines } from "../core/archiveasks.js";
16
16
  import { wakeForArchive } from "../core/archivewait.js";
17
17
  import { archivesOverview, bareArchive, capWords, levelsOf, paceFor } from "../commands/archives.js";
18
+ import { floorLine, floorQuestion, listWords } from "../core/floor.js";
18
19
  /** A pace in the person's words: "one image at most every 10 s, at most 120 requests … an hour" — or no hourly cap. */
19
20
  export function paceWords(lang, p) {
20
21
  return ui(lang, "ui.archive.pace", { seconds: secondsIn(lang, p.minIntervalMs), cap: capWords(lang, p.perHour, true) });
@@ -172,6 +173,43 @@ export async function decideTakeover(ctx, run, lang, q) {
172
173
  out(t("ui.archive.takeover.done", { names: `${c.manifest.title ?? c.name} (${levelWords(lang, level ?? claim)})` }));
173
174
  }
174
175
  }
176
+ /**
177
+ * A level strom keeps stricter than strom's list of the archive's terms (core/floor.ts): what strom keeps since when
178
+ * and why, what the list says; kept as it is (the person's then, not asked again) or as the terms say — each the
179
+ * ordinary command (strom allow archive <host> --keep | --level <the list's>), the person's alone. 0 goes back. True:
180
+ * decided. The tasks of this research that the decision brought back are said after it.
181
+ */
182
+ export async function decideFloor(ctx, run, lang, root, host) {
183
+ const t = translator(lang);
184
+ const out = (line = "") => ctx.io.stdout(line + "\n");
185
+ const tree = root ? Tree.open(root, ctx.env) : undefined;
186
+ const shared = ctx.settings.shared()?.value;
187
+ const n = floorQuestion(ctx.env, host, { ...(tree ? { tree } : {}), ...(shared ? { shared } : {}) });
188
+ if (!n) {
189
+ out(t("ui.archive.floor.gone"));
190
+ return false;
191
+ }
192
+ const level = levelWords(lang, n.floor, false, ["floor"]);
193
+ out("");
194
+ out(` ${floorLine(lang, n)}`);
195
+ const waiting = tree && !isArchive(tree) ? tasksWaitingOn(tree, host).map((x) => x.id) : [];
196
+ if (waiting.length)
197
+ out(` ${t("ui.archive.item.tasks", { ids: waiting.join(", ") })}`);
198
+ const i = await ctx.choose(t("ui.archive.floor.choose", { title: n.title }), [{ label: t("ui.archive.floor.keep", { level }) }, { label: t("ui.archive.floor.terms", { list: listWords(lang, n) }) }], 2, { back: t("ui.archive.way.back") });
199
+ if (i === undefined)
200
+ return false;
201
+ if ((await run(["allow", "archive", host, ...(i === 0 ? ["--keep"] : ["--level", n.list])], true)) !== 0)
202
+ return false;
203
+ out(i === 0 ? t("ui.archive.floor.kept", { title: n.title, level }) : t("ui.archive.floor.taken", { title: n.title, list: listWords(lang, n) }));
204
+ // what came back to the queue in this research (the command woke what the new level opens, in every research here)
205
+ if (i === 1 && root) {
206
+ const still = new Set(tasksWaitingOn(Tree.open(root, ctx.env), host).map((x) => x.id));
207
+ const woken = waiting.filter((id) => !still.has(id));
208
+ if (woken.length)
209
+ out(t("ui.archive.woken", { ids: woken.join(", ") }));
210
+ }
211
+ return true;
212
+ }
175
213
  /** A connector that says now an archive allows more than strom keeps: accepted, or kept as it is. */
176
214
  export async function decideMilder(ctx, run, lang, q, title) {
177
215
  const t = translator(lang);
@@ -51,7 +51,8 @@ import { forgetTree } from "../commands/trees.js";
51
51
  import { archiveQuestions } from "../core/archiveasks.js";
52
52
  import { questionHosts } from "../core/terms.js";
53
53
  import { bareHost, listConnectors } from "../core/connector.js";
54
- import { decideArchive } from "./menu-archives.js";
54
+ import { decideArchive, decideFloor } from "./menu-archives.js";
55
+ import { floorQuestion } from "../core/floor.js";
55
56
  import { bareArchive } from "../commands/archives.js";
56
57
  import { inboxOf, requestFile, sameGroup } from "../core/waiting.js";
57
58
  import { SENDABLE, waitGroupOf, waitKindOf } from "../core/waitkind.js";
@@ -281,6 +282,10 @@ export async function archiveAsked(ctx, run, lang, root, host) {
281
282
  if (isArchive(tree))
282
283
  return stop(ctx, t("ui.link.archive.none"));
283
284
  const q = archiveQuestions(tree).find((p) => p.kind === "permission" && questionHosts(p).includes(host));
285
+ // a level strom keeps stricter than strom's list of the archive's terms (the app shows it as the archive's item)
286
+ const shared = ctx.settings.shared()?.value;
287
+ if (!q && floorQuestion(ctx.env, host, { tree, ...(shared ? { shared } : {}) }))
288
+ return decideFloor(ctx, run, lang, root, host);
284
289
  // a question that waits, a downloader here, or an archive of strom's list only a person's browser goes to that the
285
290
  // agent's browser would help at (the app's Permission… at what waits for its images, no downloader needed)
286
291
  const known = q ? true : listConnectors(ctx.settings.shared()?.value, ctx.env).some((c) => c.manifest.hosts.map(bareHost).includes(host)) || !!bareArchive(ctx, host);
@@ -19,7 +19,7 @@ import fs from "node:fs";
19
19
  import path from "node:path";
20
20
  import { agentReady, claudeHere, guarded, outOfAnswers, pause, translator } from "./menu-parts.js";
21
21
  import { decideSent, startDirection } from "./menu-research.js";
22
- import { decideArchive, decideMilder, decideTakeover } from "./menu-archives.js";
22
+ import { decideArchive, decideFloor, decideMilder, decideTakeover } from "./menu-archives.js";
23
23
  import { askWhy, changeWarning, decisionOnTree, pickClaim, waitingDo } from "./menu-links.js";
24
24
  import { runs, truncate } from "./format.js";
25
25
  import { ui } from "./ui.js";
@@ -567,6 +567,9 @@ async function decide(ctx, run, lang, root, w) {
567
567
  if (w.story)
568
568
  return void (await decideStory(ctx, run, lang, root, w.story, storyOf(tree, w.story)));
569
569
  const q = w.question;
570
+ // a level strom keeps stricter than strom's list of the archive's terms (computed, no question kept): kept or as the terms
571
+ if (!q && w.item.kind === "permission" && w.item.id.startsWith("floor:") && typeof w.item.host === "string")
572
+ return void (await decideFloor(ctx, run, lang, root, w.item.host));
570
573
  if (q?.kind === "permission" && q.host)
571
574
  return void (await decideArchive(ctx, run, lang, root, q.host, q, q.archiveHosts));
572
575
  if (q?.kind === "takeover")
package/dist/cli/ui.js CHANGED
@@ -2948,6 +2948,9 @@ export const UI = {
2948
2948
  "ui.browser.agent": "{names}: through the browser — that only Claude Code can (the Claude in Chrome extension); this research is done by {agent}. Save those images by hand, or let Claude Code do the research (strom agents use claude).",
2949
2949
  "ui.browser.noext": "{names}: through the browser — Chrome needs the Claude in Chrome extension, signed in to the account Claude Code uses; it is not in a browser here: {url}",
2950
2950
  "ui.doc.browser": "browser (Claude in Chrome)",
2951
+ "ui.doc.floor": "archives kept stricter than their terms",
2952
+ "ui.doc.archives": "settings of archives",
2953
+ "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",
2951
2954
  "ui.doc.browser.ok": "the extension in {browsers} — Chrome must run while the agent works",
2952
2955
  "ui.doc.browser.apponly": " · in a conversation in the {app} app: yes; working alone (strom run --chrome): only with {cli} in the terminal",
2953
2956
  "ui.doc.browser.noext": "the extension is not installed (needed by {names})",
@@ -3461,6 +3464,25 @@ export const UI = {
3461
3464
  "ui.archive.pace.service": "Pace of its images: {pace} – changed only by a command: strom allow host {host} --pace <s> --per-hour <n>",
3462
3465
  "ui.archive.closed": "{title}: {level}. A permission does not change that; only a command lifts its level: strom allow archive {host} --level restricted",
3463
3466
  "ui.archive.closed.hand": "{title}: {level}. Its images go only by hand: saved in the browser into the task's folder in the inbox.",
3467
+ "ui.archive.floor": "{title} ({host}): strom keeps “{level}” since {date} – {source}. The archive's terms in strom's list (checked {checked}): {list}.",
3468
+ "ui.archive.floor.by.connector": "the downloader {name} read it so",
3469
+ "ui.archive.floor.by.record": "a research's record of the archive or a downloader read it so then",
3470
+ "ui.archive.floor.by.person": "a person set it so",
3471
+ "ui.archive.floor.by.agent": "an agent set it so",
3472
+ "ui.archive.floor.holds": "Still held by: {what} – to be changed there first.",
3473
+ "ui.archive.floor.hold.connector": "the downloader {name} (strom connector show {name})",
3474
+ "ui.archive.floor.hold.tree": "the research's record of the archive {id} (strom repo show {id})",
3475
+ "ui.archive.floor.hold.host": "the archive's own site (its refusal or robots.txt)",
3476
+ "ui.archive.floor.hold.other": "the settings in the default folder",
3477
+ "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).",
3478
+ "ui.archive.floor.item": "{title} ({host}): strom keeps “{level}”, the archive's terms say: {list}",
3479
+ "ui.archive.floor.choose": "{title} – what holds?",
3480
+ "ui.archive.floor.keep": "Keep “{level}” – not asked again",
3481
+ "ui.archive.floor.terms": "As the archive's terms say: {list}",
3482
+ "ui.archive.floor.kept": "✓ {title}: “{level}” stays – not asked again.",
3483
+ "ui.archive.floor.taken": "✓ {title}: as the archive's terms say – {list}.",
3484
+ "ui.archive.floor.confirm.keep": "Keep {title} “{level}” as strom keeps it? It is not asked about again; a person may change it later (strom allow archive).",
3485
+ "ui.archive.floor.gone": "Nothing to decide any more: what strom keeps of this archive no longer differs from its terms.",
3464
3486
  "ui.archive.gone": "No downloader here reaches this archive any more \u2013 nothing to decide.",
3465
3487
  "ui.archive.level.allowed": "downloading allowed by its terms",
3466
3488
  "ui.archive.level.restricted": "its terms restrict automated downloading \u2013 images only with permission",
@@ -3,7 +3,8 @@
3
3
  // they restrict it. The person decides: in their own terminal, in a window of the system when an agent asks
4
4
  // (the agent neither sees nor clicks it), and when nobody can be asked the question waits in strom's menu while the
5
5
  // work goes on with other sources. An agent may make an archive stricter; nothing milder is ever its to decide.
6
- import { browserAdviceFor, browserHelps, browserKept, treeBrowserArchives } from "../core/browserhelp.js";
6
+ import { browserAdviceFor, browserHelps, browserKept, browserState, treeBrowserArchives } from "../core/browserhelp.js";
7
+ import { floorNotes, floorSource, holdText } from "../core/floor.js";
7
8
  import { detectAgent } from "../core/which.js";
8
9
  import path from "node:path";
9
10
  import { register } from "../cli/registry.js";
@@ -198,6 +199,63 @@ export function wakeAfterDecision(ctx, hosts, way) {
198
199
  }
199
200
  return [...merged.values()];
200
201
  }
202
+ /**
203
+ * The person made an archive milder (strom allow archive --level, the question of a floor in What waits): the tasks
204
+ * that waited for it come back only in a research where the level now opens them — the archive allows images by its
205
+ * terms, or the person's permission "slowly" (an archive not only a person's browser's), or "through the browser" where
206
+ * the research's agent has a browser strom keeps, ready. Anything still by hand (a downloader's reading, the research's
207
+ * record, the host's refusal) wakes nothing; a check of a site waits for the person's answer still.
208
+ */
209
+ export function wakeOpened(ctx, hosts) {
210
+ if (ctx.dryRun)
211
+ return [];
212
+ const root = rootHere(ctx);
213
+ const roots = [...new Set([...(root ? [root] : []), ...ctx.knownTrees().map((k) => k.root)])];
214
+ const dir = shared(ctx);
215
+ const net = netHere(ctx);
216
+ const all = listConnectors(dir, ctx.env);
217
+ const merged = new Map();
218
+ for (const r of roots) {
219
+ let tree;
220
+ try {
221
+ tree = Tree.open(r, ctx.env);
222
+ }
223
+ catch {
224
+ continue;
225
+ }
226
+ for (const h of hosts) {
227
+ let way;
228
+ try {
229
+ const input = { tree, readOnly: true, ...(net ? { net } : {}) };
230
+ const levels = [archiveLevel(ctx.env, { ...input, url: `https://${h}/` }), ...all.filter((c) => c.manifest.hosts.map(bareHost).includes(h)).map((c) => archiveLevel(ctx.env, { ...input, connector: c, url: h }))];
231
+ const a = levels.reduce((x, y) => (rank(y.level) > rank(x.level) ? y : x));
232
+ if (a.refused || rank(a.level) >= rank("manual"))
233
+ continue;
234
+ const browserOnly = levels.some((x) => x.browserOnly);
235
+ if (a.level === "allowed" && !browserOnly)
236
+ way = undefined;
237
+ else if (a.permission === "slow" && !browserOnly)
238
+ way = "slow";
239
+ else if (a.permission === "browser" && browserState(ctx.env, ctx.settings.agent(tree.config).value, r).state === "ready")
240
+ way = "browser";
241
+ else
242
+ continue;
243
+ }
244
+ catch {
245
+ continue;
246
+ }
247
+ for (const w of wakeForArchive(ctx.env, [r], h, { ...(dir ? { shared: dir } : {}), ...(way ? { way } : {}) })) {
248
+ const m = merged.get(w.root);
249
+ if (!m)
250
+ merged.set(w.root, w);
251
+ else
252
+ for (const k of ["woken", "kept"])
253
+ m[k] = [...new Set([...m[k], ...w[k]])];
254
+ }
255
+ }
256
+ }
257
+ return [...merged.values()];
258
+ }
201
259
  /** The command for the user to save images by hand, as an agent records it. */
202
260
  function byHand(ctx, images) {
203
261
  return `strom task wait ${taskHere(ctx) ?? "T…"} --images B…:${images ?? "<from-to>"} --on "<the book, its link, which images — for the user, impersonal, in the research language>"`;
@@ -521,7 +579,7 @@ export function syncTrees(ctx) {
521
579
  * The hosts a name stands for: a connector's (its name), else the connector hosts on that host or site — never wider,
522
580
  * but for the other hosts of one archive whose question waits with it (one archive, one decision).
523
581
  */
524
- function targetHosts(ctx, target) {
582
+ function targetHosts(ctx, target, floorToo = false) {
525
583
  const all = listConnectors(shared(ctx), ctx.env);
526
584
  const byName = all.find((c) => c.name === target);
527
585
  if (byName)
@@ -540,6 +598,16 @@ function targetHosts(ctx, target) {
540
598
  const named = tree ? treeBrowserArchives(tree, shared(ctx)).map((a) => a.host).filter((h) => within(h, given)) : [];
541
599
  return { hosts: [...new Set([bare.host, ...named])], connectors: [], bare };
542
600
  }
601
+ // a level of an archive of strom's list no downloader here reaches (its floor stricter than the list: by hand
602
+ // only, the agent's browser shut): the hosts strom keeps a level for on it — the person's to make milder or keep
603
+ if (floorToo && shippedTerms().some((k) => within(given, k.host) || within(k.host, given))) {
604
+ const kept = Object.entries(loadArchives(ctx.env).archives).filter(([h, r]) => r.floor && (h === given || within(h, given))).map(([h]) => h);
605
+ const hs = kept.length ? kept : [given];
606
+ const tree = ctx.hasTree() ? ctx.tree() : undefined;
607
+ const net = netHere(ctx);
608
+ const levels = hs.map((h) => archiveLevel(ctx.env, { url: `https://${h}/`, ...(tree ? { tree } : {}), ...(net ? { net } : {}), readOnly: true }));
609
+ return { hosts: hs, connectors: [], bare: levels.reduce((x, y) => (rank(y.level) > rank(x.level) ? y : x)) };
610
+ }
543
611
  }
544
612
  if (!hosts.length)
545
613
  throw new UsageError(`no connector reaches ${given}`, { hint: all.length ? `connectors: ${all.map((c) => `${c.name} (${c.manifest.hosts.join(", ")})`).join(", ")}` : "none yet: strom connector list" });
@@ -566,15 +634,17 @@ register({
566
634
  "connector's own hosts on this computer, every tree; the person gives and takes it back (their terminal, a window\n" +
567
635
  "when an agent asks, exit 4 with none). --level makes an archive stricter — anybody, an agent too; milder only the\n" +
568
636
  "person. --accept takes connectors' readings as they are now (those taken over when this strom first ran, one that\n" +
569
- "says it may do more than before) — the person's; --keep keeps what strom kept instead (the person's too). Without a\n" +
570
- "target: the archives and what waits.",
637
+ "says it may do more than before) — the person's; --keep keeps what strom kept instead (the person's too), and so a\n" +
638
+ "level strom keeps stricter than its list of the archive's terms (a downloader or a research's record read it so once:\n" +
639
+ "asked in What waits — kept, or --level as the list says). After a milder level the tasks that waited come back where\n" +
640
+ "it opens them. Without a target: the archives, such levels with what holds them, and what waits.",
571
641
  args: [{ name: "archive", description: "a connector's name, or a host (www.example.org) or site (example.org) of its connectors" }],
572
642
  options: [
573
643
  { name: "way", type: "string", value: "<slow|browser|manual>", description: "the person's permission for its images" },
574
644
  { name: "revoke", type: "boolean", description: "forget the permission: asked again at the next need" },
575
645
  { name: "level", type: "string", value: "<allowed|restricted|manual|forbidden>", description: "the archive's level: stricter by anyone, milder by the person" },
576
646
  { name: "accept", type: "boolean", description: "accept the connectors' readings as they are now (without a target: those taken over)" },
577
- { name: "keep", type: "boolean", description: "keep what strom kept of a connector that says now the archive allows more: not asked again for that reading" },
647
+ { name: "keep", type: "boolean", description: "keep what strom kept of a connector that says now the archive allows more, or a level strom keeps stricter than its list: not asked again" },
578
648
  ],
579
649
  examples: ["strom allow archive www.example.org --way slow", "strom allow archive example-archive --way browser", "strom allow archive example.org --level restricted", "strom allow archive example.org --revoke", "strom allow archive --accept"],
580
650
  run: async (ctx, { args, opts }) => {
@@ -594,9 +664,11 @@ register({
594
664
  const all = listConnectors(shared(ctx), ctx.env);
595
665
  const claude = claudeHere(ctx, tree?.config);
596
666
  const ways = (p) => waysOffered(connectorFor(all, p.host, p.connector), claude, p.way, !!p.browserOnly).join("|");
667
+ // a level strom keeps stricter than strom's list of the archive's terms: whose, since when, what holds it, what to do
668
+ const floors = floorNotes(ctx.env, { ...(tree ? { tree } : {}), ...(shared(ctx) ? { shared: shared(ctx) } : {}), all: true });
597
669
  return {
598
- text: lines(rows.length ? table(rows.map(([h, r]) => [h, r.way ? WAY_TEXT[r.way] : "no permission", r.floor ? `level ≥ ${r.floor}` : "", Object.keys(r.seen ?? {}).join(", ")])) : "no archive decided yet", s.pending.length ? `waiting for the person: ${s.pending.map((p) => p.kind === "takeover" ? `confirm the connectors taken over (${p.connectors?.join(", ")}): strom allow archive --accept` : p.kind === "milder" ? `${p.connector} says ${p.host} allows ${p.to} (kept ${p.from}): strom allow archive ${p.connector} --accept` : `${p.title ?? p.host}: strom allow archive ${p.host} --way ${ways(p)}`).join(" · ")}` : undefined),
599
- data: { archives: s.archives, pending: s.pending },
670
+ text: lines(rows.length ? table(rows.map(([h, r]) => [h, r.way ? WAY_TEXT[r.way] : "no permission", r.floor ? `level ≥ ${r.floor}${r.floorBy ? ` (${r.floorBy}${r.floorAt ? ` ${r.floorAt.slice(0, 10)}` : ""})` : ""}` : "", Object.keys(r.seen ?? {}).join(", ")])) : "no archive decided yet", ...floors.map((n) => `${n.host}: strom keeps ${n.floor} since ${n.at?.slice(0, 10) ?? "?"} (${floorSource(n)}) — strom's list of its terms (checked ${n.checked ?? "?"}): ${n.list}${n.browserOnly ? ", only through a person's browser" : ""}; ${n.holds.length ? `still held by ${n.holds.map(holdText).join(", ")}` : n.ask ? `the person decides (What waits): strom allow archive ${n.host} --level ${n.list} (as its terms) or --keep` : `milder only by the person: strom allow archive ${n.host} --level ${n.list}`}`), s.pending.length ? `waiting for the person: ${s.pending.map((p) => p.kind === "takeover" ? `confirm the connectors taken over (${p.connectors?.join(", ")}): strom allow archive --accept` : p.kind === "milder" ? `${p.connector} says ${p.host} allows ${p.to} (kept ${p.from}): strom allow archive ${p.connector} --accept` : `${p.title ?? p.host}: strom allow archive ${p.host} --way ${ways(p)}`).join(" · ")}` : undefined),
671
+ data: { archives: s.archives, pending: s.pending, ...(floors.length ? { floors } : {}) },
600
672
  };
601
673
  }
602
674
  if (opts.accept && !target) {
@@ -608,15 +680,29 @@ register({
608
680
  acceptConnectors(ctx.env, all);
609
681
  return { text: `accepted as they say: ${all.map((c) => `${c.name} ${claimOf(c)}`).join(", ")}`, data: { accepted: all.map((c) => c.name) } };
610
682
  }
611
- const { hosts, connectors, bare } = targetHosts(ctx, target);
683
+ const { hosts, connectors, bare } = targetHosts(ctx, target, !!(opts.keep || level));
612
684
  const named = connectors.length === 1 ? connectors[0] : connectors.find((c) => c.name === target);
613
685
  const title = (named ?? connectors[0])?.manifest.title ?? bare?.title ?? hosts[0];
614
- if (bare && (opts.keep || opts.accept || level))
615
- throw new UsageError(`${title} has no connector here: only its way is the person's to decide (--way browser|manual, --revoke)`, { hint: `strom allow archive ${hosts[0]} --way browser` });
686
+ if (bare && opts.accept)
687
+ throw new UsageError(`${title} has no connector here: only its way and its level are the person's to decide (--way browser|manual, --revoke, --level)`, { hint: `strom allow archive ${hosts[0]} --way browser` });
688
+ // the floors strom keeps stricter than strom's list of the archive's terms, whose question waits for the person
689
+ const floors = () => floorNotes(ctx.env, { ...(ctx.hasTree() ? { tree: ctx.tree() } : {}), ...(shared(ctx) ? { shared: shared(ctx) } : {}) }).filter((n) => n.ask && hosts.includes(n.host));
616
690
  if (opts.keep) {
691
+ // nothing is known of what strom keeps while its settings cannot be read: never written whole over them
692
+ if (loadArchives(ctx.env).broken)
693
+ throw new UsageError("the settings of archives (archives.json) cannot be read — nothing changed", { hint: "strom doctor" });
617
694
  const milder = loadArchives(ctx.env).pending.filter((p) => p.kind === "milder" && connectors.some((c) => c.name === p.connector) && hosts.includes(p.host ?? ""));
695
+ const asked = floors();
696
+ if (!milder.length && asked.length) {
697
+ // the floor kept as the person's: the question goes (a person's floor is never asked about), the level stays
698
+ const level0 = asked[0].floor;
699
+ ctx.requireHuman(`Keep ${title} (${asked.map((n) => n.host).join(", ")}) ${level0} as strom keeps it — not ${asked[0].list} as strom's list of its terms says?`, `strom allow archive ${target} --keep`, `archive:keep:${hosts.join(",")}`, ui(lang, "ui.archive.floor.confirm.keep", { title: asked[0].title, level: levelWords(lang, level0, false, ["floor"]) }));
700
+ for (const n of asked)
701
+ setFloor(ctx.env, [n.host], n.floor, "person");
702
+ return { text: `${asked.map((n) => `${n.host}: ${n.floor}`).join(", ")} kept — the person's now, not asked again (milder only by the person: strom allow archive ${target} --level ${asked[0].list})`, data: { hosts, kept: [], floors: asked.map((n) => ({ host: n.host, level: n.floor })) } };
703
+ }
618
704
  if (!milder.length)
619
- return { text: `${hosts.join(", ")}: no connector says it may do more than strom keeps — nothing to keep`, data: { hosts, kept: [] } };
705
+ return { text: `${hosts.join(", ")}: no connector says it may do more than strom keeps, no level of strom's waits for the person — nothing to keep`, data: { hosts, kept: [] } };
620
706
  const kept = connectors.filter((c) => milder.some((p) => p.connector === c.name));
621
707
  ctx.requireHuman(`Keep ${hosts.join(", ")} as strom keeps it (${milder.map((p) => `${p.connector}: ${p.from}, not ${p.to}`).join(", ")})?`, `strom allow archive ${target} --keep`, `archive:keep:${hosts.join(",")}`, ui(lang, "ui.archive.keep", { names: kept.map((c) => c.manifest.title).join(", ") }));
622
708
  keepReadings(ctx.env, kept);
@@ -628,20 +714,40 @@ register({
628
714
  return { text: `${hosts.join(", ")}: the connectors' readings accepted — ${connectors.map((c) => `${c.name} ${claimOf(c)}`).join(", ")}`, data: { hosts, accepted: connectors.map((c) => c.name) } };
629
715
  }
630
716
  if (level) {
631
- // the level as it is now (the strictest of all that is known, the person's permission aside)
632
- const now = strictest(...connectors.flatMap((c) => levelsOf(ctx, c, true).filter((a) => hosts.includes(a.host)).map((a) => a.level)));
717
+ // the levels as they are now (the strictest of all that is known, the person's permission aside): each
718
+ // downloader's of the hosts, and the archive's without one (what strom run and the agent's browser take)
719
+ const tree = ctx.hasTree() ? ctx.tree() : undefined;
720
+ const net = netHere(ctx);
721
+ const levelsNow = () => [
722
+ ...connectors.flatMap((c) => levelsOf(ctx, c, true).filter((a) => hosts.includes(a.host)).map((a) => ({ a, c }))),
723
+ ...hosts.map((h) => ({ a: archiveLevel(ctx.env, { url: `https://${h}/`, ...(tree ? { tree } : {}), ...(net ? { net } : {}), readOnly: true }) })),
724
+ ];
725
+ const now = strictest(...levelsNow().map((x) => x.a.level));
633
726
  // as strict as now or stricter lowers nothing that is known: anybody's (an agent's too)
634
727
  const stricter = rank(level) >= rank(now);
728
+ // a store that cannot be read is never written whole over what it held (permissions, refusals, floors) — stricter
729
+ // neither: what it held is not known, so neither is what stricter means
730
+ if (loadArchives(ctx.env).broken)
731
+ throw new UsageError("the settings of archives (archives.json) cannot be read — nothing changed", { hint: "strom doctor" });
635
732
  if (!stricter)
636
733
  ctx.requireHuman(`Make ${title} (${hosts.join(", ")}) ${level} — milder than ${now} now?`, `strom allow archive ${target} --level ${level}`, `archive:level:${hosts.join(",")}`, ui(lang, "ui.archive.level.milder", { title, level: levelWords(lang, level), now: levelWords(lang, now) }));
637
734
  // milder by the person: the connectors' readings as they are taken with it (else the latch keeps the old one)
638
735
  if (!stricter)
639
736
  acceptConnectors(ctx.env, connectors);
640
737
  setFloor(ctx.env, hosts, level, stricter && isAgent(ctx.env) ? "agent" : "person");
641
- const after = strictest(...connectors.flatMap((c) => levelsOf(ctx, c, true).filter((a) => hosts.includes(a.host)).map((a) => a.level)));
738
+ const levels = levelsNow();
739
+ const after = strictest(...levels.map((x) => x.a.level));
740
+ // what still holds it stricter: its real sources, each with what to look at (the downloader, the research's archive)
741
+ const holding = levels.filter((x) => rank(x.a.level) > rank(level));
742
+ 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}`] : [])]))];
743
+ const said = [...new Set(holding.map((x) => `${x.c ? `${x.c.name}: ` : ""}${levelText(x.a)}`))];
744
+ // strom run and the agent's browser take the archive's level without a downloader: said where it differs
745
+ const plain = levels.filter((x) => !x.c);
746
+ const plainLevel = strictest(...plain.map((x) => x.a.level));
747
+ const woken = stricter ? [] : wakeOpened(ctx, hosts);
642
748
  return {
643
- text: lines(`${hosts.join(", ")}: level ${level}${stricter ? " (stricter — anybody may)" : " (the person's)"}`, rank(after) > rank(level) ? ` it stays ${after}: another source is stricter (strom's known terms of the archive, the tree's archive) — strom connector show <connector>` : undefined),
644
- data: { hosts, level, effective: after },
749
+ text: lines(`${hosts.join(", ")}: level ${level}${stricter ? " (stricter — anybody may)" : " (the person's)"}`, holding.length ? ` it stays ${after}: ${said.join("; ")}${look.length ? ` — ${look.join(" · ")}` : ""}` : undefined, connectors.length && rank(plainLevel) !== rank(after) ? ` strom run and the agent's browser take the archive's level without a downloader: ${plainLevel}` : undefined, ...wokenLines(lang, woken, rootHere(ctx))),
750
+ data: { hosts, level, effective: after, ...(holding.length ? { stricter: holding.map((x) => ({ ...(x.c ? { connector: x.c.name } : {}), level: x.a.level, from: x.a.from })) } : {}), woken: woken.map((r) => ({ tree: r.name, path: r.root, woken: r.woken, inbox: r.inbox, kept: r.kept })) },
645
751
  };
646
752
  }
647
753
  if (opts.revoke) {
@@ -7,6 +7,7 @@
7
7
  // their provenance. When the user asks to be asked (connectors.consent on), a
8
8
  // connector runs only with their consent, given on a terminal after a plain
9
9
  // warning — never by an agent; code that goes round strom needs it either way.
10
+ import { stricterThanList } from "../core/floor.js";
10
11
  import fs from "node:fs";
11
12
  import os from "node:os";
12
13
  import path from "node:path";
@@ -879,7 +880,7 @@ register({
879
880
  }
880
881
  const rel = ctx.display(dir);
881
882
  return {
882
- text: lines(`connector ${name} started in ${rel}`, "", "next:", ` 1. your agent reads ${path.join(rel, "DISCOVERY.md")} and the contract (README.md one folder up),`, " and finds out what the portal allows — before any code", " 2. it writes connector.json (policy) and connector.ts, and tests with a few requests:", ` strom connector test ${name} --find "<place>"`, consentRequired(ctx.env) ? ` 3. the first test needs your consent, in your terminal: strom allow connector ${name}` : undefined, known ? `\n${known.text}` : undefined, ofSite
883
+ text: lines(`connector ${name} started in ${rel}`, "", "next:", ` 1. your agent reads ${path.join(rel, "DISCOVERY.md")} and the contract (README.md one folder up),`, " and finds out what the portal allows — before any code", " 2. it writes connector.json (policy) and connector.ts, and tests with a few requests:", ` strom connector test ${name} --find "<place>"`, consentRequired(ctx.env) ? ` 3. the first test needs your consent, in your terminal: strom allow connector ${name}` : undefined, known ? `\n${known.text}` : undefined, known ? " policy.automation no stricter than that without a quote from the archive's terms that says so: strom keeps the stricter level and only the person makes it milder again (DISCOVERY.md, step 1)" : undefined, ofSite
883
884
  ? `\nnote: the connector ${ofSite} is here already for ${webDomain(url.hostname)} (its hosts: ${listConnectors(shared(ctx)).find((c) => c.name === ofSite)?.manifest.hosts.join(", ") ?? "?"}) — more pages of that site go through it (strom connector show ${ofSite}); keep this one only for another portal of the site, else take it away: ${discardable ? `strom connector discard ${name}` : `the user, in their terminal: strom connector remove ${name}`}`
884
885
  : undefined),
885
886
  data: { name, dir, ...(ofSite ? { site: { domain: webDomain(url.hostname), connector: ofSite } } : {}), ...(known ? { knownTerms: known.data } : {}) },
@@ -1719,7 +1720,17 @@ async function testWith(ctx, c, request, max) {
1719
1720
  return { text: "no login — nothing was sent", exitCode: 1 };
1720
1721
  // what the archive's terms let a test ask (core/terms.ts): images only where they may come, at their pace
1721
1722
  const images = request.cmd === "fetch" || request.cmd === "part";
1722
- const gate = await gateArchive(ctx, c, { activity: images ? "images" : "catalogue", ...(images ? { images: request.cmd === "part" ? String(request.image) : imagesArg(request.images) } : {}) });
1723
+ let gate;
1724
+ try {
1725
+ gate = await gateArchive(ctx, c, { activity: images ? "images" : "catalogue", ...(images ? { images: request.cmd === "part" ? String(request.image) : imagesArg(request.images) } : {}) });
1726
+ }
1727
+ catch (err) {
1728
+ // refused by its own level stricter than strom's list of the archive's terms: said beside the refusal
1729
+ const stricter = stricterThanList(c.manifest.hosts, c.manifest.policy.automation, "connector");
1730
+ if (stricter)
1731
+ ctx.io.stderr(`${stricter}\n`);
1732
+ throw err;
1733
+ }
1723
1734
  const workDir = path.join(c.dir, ".test");
1724
1735
  fs.mkdirSync(workDir, { recursive: true });
1725
1736
  for (const e of fs.readdirSync(workDir))
@@ -1738,7 +1749,7 @@ async function testWith(ctx, c, request, max) {
1738
1749
  // the archive's terms strom knows, while connector.json does not say them yet
1739
1750
  const known = c.manifest.policy.automation === "unknown" || !c.manifest.policy.terms ? knownTermsOf(ctx, c.manifest.hosts) : undefined;
1740
1751
  return {
1741
- text: lines(describeRun(r, `test ${request.cmd}`), r.refused ? refusalAdvice(ctx, c, r.refused, request.cmd === "find" ? request.place : undefined) : undefined, r.books.length ? `books (${r.books.length}):\n${bookLines(r, c, `strom connector test ${c.name} --list <id>`).join("\n")}` : undefined, r.images.length ? `images (${r.images.length}): ${r.images.map((i) => `${i.n ?? "?"}${i.region ? ` part ${regionText(i.region)}` : ""}=${path.basename(i.file)} ${fs.statSync(i.file).size} B${pixels(i.file)}`).join(", ")} in ${ctx.display(workDir)}` : undefined, r.located.length ? `located (${r.located.length}):\n${r.located.map((l) => ` ${l.n}${l.region ? ` part ${regionText(l.region)}` : ""} ${l.src}${l.url && l.url !== l.src ? `\n page ${l.url}` : ""}`).join("\n")}` : undefined, c.manifest.login ? (loginOf(ctx.env, c) ? "with the user's login" : `without a login${c.manifest.login.required ? "" : " (the user may save one: strom login " + c.name + ")"}`) : undefined, direct.length ? `⚠ the code reaches the network directly — strom cannot pace that:\n${direct.map((d) => ` ${d}`).join("\n")}` : undefined, heavy?.text, c.manifest.policy.automation === "unknown" ? "⚠ policy.automation is unknown — find out what the portal's terms say (DISCOVERY.md, step 1)" : undefined, known?.text, c.manifest.withheld?.length ? `⚠ can lists ${c.manifest.withheld.join(", ")}, but its terms are "${c.manifest.policy.automation}" — left out: take them out of connector.json` : undefined),
1752
+ text: lines(describeRun(r, `test ${request.cmd}`), r.refused ? refusalAdvice(ctx, c, r.refused, request.cmd === "find" ? request.place : undefined) : undefined, r.books.length ? `books (${r.books.length}):\n${bookLines(r, c, `strom connector test ${c.name} --list <id>`).join("\n")}` : undefined, r.images.length ? `images (${r.images.length}): ${r.images.map((i) => `${i.n ?? "?"}${i.region ? ` part ${regionText(i.region)}` : ""}=${path.basename(i.file)} ${fs.statSync(i.file).size} B${pixels(i.file)}`).join(", ")} in ${ctx.display(workDir)}` : undefined, r.located.length ? `located (${r.located.length}):\n${r.located.map((l) => ` ${l.n}${l.region ? ` part ${regionText(l.region)}` : ""} ${l.src}${l.url && l.url !== l.src ? `\n page ${l.url}` : ""}`).join("\n")}` : undefined, c.manifest.login ? (loginOf(ctx.env, c) ? "with the user's login" : `without a login${c.manifest.login.required ? "" : " (the user may save one: strom login " + c.name + ")"}`) : undefined, direct.length ? `⚠ the code reaches the network directly — strom cannot pace that:\n${direct.map((d) => ` ${d}`).join("\n")}` : undefined, heavy?.text, c.manifest.policy.automation === "unknown" ? "⚠ policy.automation is unknown — find out what the portal's terms say (DISCOVERY.md, step 1)" : undefined, known?.text, stricterThanList(c.manifest.hosts, c.manifest.policy.automation, "connector"), c.manifest.withheld?.length ? `⚠ can lists ${c.manifest.withheld.join(", ")}, but its terms are "${c.manifest.policy.automation}" — left out: take them out of connector.json` : undefined),
1742
1753
  data: { ...r, direct, ...(heavy ? { heavy: heavy.data } : {}), ...(known ? { knownTerms: known.data } : {}) },
1743
1754
  ...(later(r, "the same command").exitCode ? { exitCode: EXIT.later } : r.stopped && !r.books.length && !r.images.length && !r.located.length ? { exitCode: 1 } : {}),
1744
1755
  };
@@ -4,6 +4,7 @@
4
4
  // hands the brief to an agent CLI as a child process, waits for it to exit,
5
5
  // closes what the agent left open, exports the GEDCOM and commits. Between
6
6
  // sessions not a single token is spent.
7
+ import { floorLine, floorNotes, floorWhat, treeNames } from "../core/floor.js";
7
8
  import { RUN_TURNS } from "../core/queue.js";
8
9
  import { queueVerify } from "../core/verify.js";
9
10
  import { opsLogs, opsLogsOf } from "../core/opslog.js";
@@ -1092,6 +1093,11 @@ register(updatedDuringRun({
1092
1093
  const browserSays = browserNote(ctx, Tree.open(root, runEnv), runnerId);
1093
1094
  if (browserSays)
1094
1095
  out(browserSays);
1096
+ // An archive strom keeps stricter than strom's list of its terms (by hand only: no browser there, its images the
1097
+ // person's): said once, with what holds it and who decides — never changed here
1098
+ const floorTree = Tree.open(root, runEnv);
1099
+ for (const n of floorNotes(ctx.env, { tree: floorTree, ...(ctx.settings.shared()?.value ? { shared: ctx.settings.shared().value } : {}) }).filter((x) => treeNames(floorTree, x.host)))
1100
+ out(`· ${floorLine(lang, n)} ${floorWhat(lang, n)}`);
1095
1101
  if (permissions === "full")
1096
1102
  out(ui(lang, "ui.run.full"));
1097
1103
  const settingsLine = agentSettingsLine(lang, said, (p) => ctx.display(p));
@@ -1,7 +1,7 @@
1
1
  // setup · doctor · config — the environment around the trees.
2
2
  import { terminalHere } from "../core/terminal.js";
3
3
  import { terminalName, terminalState } from "../cli/terminals.js";
4
- import { refusedHosts } from "../core/terms.js";
4
+ import { archivesFile, loadArchives, refusedHosts } from "../core/terms.js";
5
5
  import { gitSize, lastCompacted } from "../core/history.js";
6
6
  import fs from "node:fs";
7
7
  import path from "node:path";
@@ -82,6 +82,7 @@ import { checkGate, ensureGatesDir } from "../core/gate.js";
82
82
  import { ensureHooksDir } from "../core/hooks.js";
83
83
  import { claudeInChrome, CLAUDE_IN_CHROME_URL, downloadsDir } from "../core/browser.js";
84
84
  import { browserState, treeBrowserArchives } from "../core/browserhelp.js";
85
+ import { floorLine, floorNotes, floorWhat } from "../core/floor.js";
85
86
  import { browserConnectors, fenceKeepsNetOff, listConnectors } from "../core/connector.js";
86
87
  import { appReadLimits } from "../core/live-read.js";
87
88
  import { markWidget } from "../core/widget.js";
@@ -258,7 +259,7 @@ function nodeOk(version) {
258
259
  const FIX = "strom doctor --fix";
259
260
  /** Everything strom needs and has on this computer, in the user's language. */
260
261
  /** The checks of the agents: what they are, know, may do, where the person talks with them, their model and browser. */
261
- const AGENT_CHECKS = new Set(["agent", "cli", "login", "knows", "where", "level", "model", "views", "codex", "chatgptapp", "codexhooks", "desktop", "browser", "remote", "fence", "tuneworse", "web", "shim"]);
262
+ const AGENT_CHECKS = new Set(["agent", "cli", "login", "knows", "where", "level", "model", "views", "codex", "chatgptapp", "codexhooks", "desktop", "browser", "remote", "fence", "tuneworse", "web", "shim", "floor"]);
262
263
  /** What doctor says of an isolated installation: its folder — a second one with a command of its own: the command and its links too. */
263
264
  function secondLine(ctx, t) {
264
265
  if (!isolated(ctx.env))
@@ -585,6 +586,20 @@ function diagnoseInto(ctx, checks, t, add, progress, pre = {}) {
585
586
  else
586
587
  add("browser", "ok", t("ui.doc.browser.archives.ok", { names }) + appOnly);
587
588
  }
589
+ // A level strom keeps stricter than strom's list of the archive's terms (its floor: a downloader or a research's record
590
+ // read it so once) shuts the agent's browser there and keeps its images by hand — said, with what holds it and who
591
+ // decides (spec K045 A); nothing changed
592
+ // The settings of archives that cannot be read: what they held is asked again and nothing is written over them —
593
+ // strom allow archive refuses and points here, so said with the file (K045)
594
+ if (loadArchives(ctx.env).broken) {
595
+ add("archives", "warn", t("ui.doc.archives.broken", { file: ctx.display(archivesFile(ctx.env)) }));
596
+ checks.at(-1).code = "archives.unreadable";
597
+ }
598
+ if (!ctx.archiveHere()) {
599
+ const floors = timed("doctor.floor", () => floorNotes(ctx.env, { ...(tree ? { tree: ctx.tree() } : {}), ...(shared ? { shared } : {}) }));
600
+ for (const n of floors)
601
+ add("floor", "warn", floorLine(lang, n), floorWhat(lang, n));
602
+ }
588
603
  // The desktop apps' own browser and computer use (Claude's, ChatGPT's/Codex's, OpenCode's): nothing switched off, never
589
604
  // recommended — what strom watches of each, said where those agents are here (strom doc R12.1; computer use R12.10)
590
605
  const apps = ["claude", "codex", "opencode"].filter((a) => found.includes(a));
@@ -1,4 +1,5 @@
1
1
  // source · cite · repo · recordset · place — where the evidence comes from.
2
+ import { stricterThanList } from "../core/floor.js";
2
3
  import { opLine } from "../core/proposals.js";
3
4
  import { browserOnlyAccess, browserOnlyArchive } from "../core/byhand.js";
4
5
  import { OFF_MAP_HOW, offMapLine, placesOffMap } from "../core/places.js";
@@ -430,7 +431,8 @@ register({
430
431
  automation: oneOf(opts.automation, AUTOMATION, "automation", "unknown"),
431
432
  note: str(opts.note),
432
433
  }, (id) => `+${id} repository "${args[0]}"`);
433
- return { text: written(tree), data: { repository: r } };
434
+ const stricter = r.url && URL.canParse(r.url) ? stricterThanList([new URL(r.url).hostname], r.automation, "repo") : undefined;
435
+ return { text: lines(written(tree), stricter), data: { repository: r } };
434
436
  },
435
437
  }, {
436
438
  path: ["repo", "list"],
@@ -957,7 +959,9 @@ register({
957
959
  terms: str(opts.terms),
958
960
  automation: optOneOf(opts.automation, AUTOMATION, "automation"),
959
961
  }, {}, opts);
960
- return { text: written(tree), data: { repository: r } };
962
+ // a level stricter than strom's list of the archive's terms, written now (its level or its address)
963
+ const stricter = (opts.automation !== undefined || opts.url !== undefined) && r.url && URL.canParse(r.url) ? stricterThanList([new URL(r.url).hostname], r.automation, "repo") : undefined;
964
+ return { text: lines(written(tree), stricter), data: { repository: r } };
961
965
  },
962
966
  }, {
963
967
  path: ["recordset", "edit"],
@@ -163,12 +163,13 @@ function checkUrl(ctx, url, browser = false) {
163
163
  const shared = ctx.settings.shared()?.value;
164
164
  const session = tree ? currentSession(tree, ctx.env, ctx.refs) : undefined;
165
165
  const gateOf = browser ? browserGate : webGate;
166
- let g = gateOf({ env: ctx.env, ...(tree ? { tree } : {}), url: u.href, shared, ...(session?.task ? { task: session.task } : {}) });
166
+ // the agent running it: the way on names its browser as it is here (a permission "through the browser" that stands)
167
+ const runner = detectAgent(ctx.env);
168
+ let g = gateOf({ env: ctx.env, ...(tree ? { tree } : {}), url: u.href, shared, ...(session?.task ? { task: session.task } : {}), ...(runner ? { runner } : {}) });
167
169
  // an agent whose browser strom does not keep (no hook of strom's before a page): an archive only a person's browser
168
170
  // goes to not through its browser or computer use on strom's word, whatever the person allowed — the person's hand
169
171
  // (Milan's decision, 4 November 2026); nothing is switched off: the person's explicit request is the person's choice
170
172
  // (5 November 2026, ON_REQUEST)
171
- const runner = detectAgent(ctx.env);
172
173
  if (runner && !browserKept(runner, tree?.root, ctx.env) && g.level?.browserOnly && (g.allow || g.why === "browser")) {
173
174
  const book = bookOn(tree, session?.task, g.host, u.href);
174
175
  const rest = { ...g };
@@ -11,6 +11,7 @@ import { claimOf, pendingQuestions, questionHosts, termsFor } from "./terms.js";
11
11
  import { bareHost, listConnectors, routesOf } from "./connector.js";
12
12
  import { ui } from "../cli/ui.js";
13
13
  import { humanDate, humanDay } from "../cli/human.js";
14
+ import { floorLine, floorNotes, listWords } from "./floor.js";
14
15
  const ORDER = { permission: 0, takeover: 1, milder: 2 };
15
16
  /** The questions shown with a research: the permissions first (they hold work up), then the takeover, then the rest. */
16
17
  export function archiveQuestions(tree) {
@@ -168,8 +169,9 @@ export function levelWords(lang, l, robots = false, from) {
168
169
  */
169
170
  export function archiveWaitingItems(tree, shared, claude) {
170
171
  const qs = archiveQuestions(tree).filter((q) => q.kind !== "milder");
172
+ const floors = floorItems(tree, shared, qs);
171
173
  if (!qs.length)
172
- return [];
174
+ return floors;
173
175
  const lang = tree.lang;
174
176
  const connectors = listConnectors(shared, tree.env);
175
177
  let isClaude;
@@ -214,5 +216,36 @@ export function archiveWaitingItems(tree, shared, claude) {
214
216
  ];
215
217
  }
216
218
  return [];
217
- });
219
+ }).concat(floors);
220
+ }
221
+ /**
222
+ * The floors strom keeps stricter than strom's list of the archive's terms, computed each time (core/floor.ts — nothing
223
+ * written, an older strom shows nothing of them): a question for the person as an archive's item the Strom app shows
224
+ * (kind permission with its host: "Answer" opens archive&host= in the person's terminal, where it is decided), one per
225
+ * host none of whose questions waits already. Never in an archive.
226
+ */
227
+ export function floorItems(tree, shared, qs = archiveQuestions(tree)) {
228
+ if (actsAsArchive(tree))
229
+ return [];
230
+ const lang = tree.lang;
231
+ const asked = new Set(qs.filter((q) => q.kind === "permission").flatMap((q) => questionHosts(q)));
232
+ let notes;
233
+ try {
234
+ notes = floorNotes(tree.env, { tree, ...(shared ? { shared } : {}) }).filter((n) => n.ask && !asked.has(n.host));
235
+ }
236
+ catch {
237
+ return [];
238
+ }
239
+ return notes.map((n) => ({
240
+ kind: "permission",
241
+ id: `floor:${n.host}`,
242
+ what: ui(lang, "ui.archive.floor.item", { title: n.title, host: n.host, level: levelWords(lang, n.floor, false, ["floor"]), list: listWords(lang, n) }),
243
+ on: floorLine(lang, n),
244
+ at: n.at ?? "",
245
+ ...(n.at ? { since: n.at } : {}),
246
+ host: n.host,
247
+ title: n.title,
248
+ tasks: tasksWaitingOn(tree, n.host).map((t) => t.id),
249
+ floor: { level: n.floor, list: n.list, ...(n.connector ? { connector: n.connector } : {}) },
250
+ }));
218
251
  }
@@ -127,7 +127,7 @@ export function agentBrowserAdvice(env, agent, a, task = "T…", book = "B…",
127
127
  if (s.state === "agent-without-browser")
128
128
  return `strom does not keep your browser or computer use (no hook of strom's before a page) and does not recommend them: not of your own accord for ${a.title ?? a.host} — the person saves the images by hand${wait}. ${ON_REQUEST} ${tellClaude}`;
129
129
  if (s.state === "no-extension")
130
- return `the Claude in Chrome extension is in no browser here — the person saves the images by hand${wait}. Tell the user once: with the extension (${s.url}) and the permission "through the browser" the agent would save them itself.`;
130
+ return `the Claude in Chrome extension is in no browser here — the person saves the images by hand${wait}. Tell the user once: with the extension (${s.url})${a.permitted ? "" : ' and the permission "through the browser"'} the agent would save them itself.`;
131
131
  if (!a.permitted)
132
132
  return `your browser goes there only with the person's permission "through the browser" (strom allow archive ${a.host} --way browser — the person's, never yours); until then the person saves the images by hand${wait}.`;
133
133
  const yours = agent === "claude" ? "Claude in Chrome" : `its address written out in your code, tab.goto("<the page>") — strom's hook sees only an address it can read`;
@@ -0,0 +1,149 @@
1
+ // An archive's floor stricter than strom's list: the strictest level strom ever saw for a host is kept (core/terms.ts
2
+ // archiveLevel) and only the person makes it milder — where strom's own list of archives' terms says the archive allows
3
+ // more (a connector, or a research's record of the archive, read it stricter once), that floor is said: by strom doctor,
4
+ // strom run, strom allow archive, and as a question in What waits (the person keeps it, or takes what the archive's
5
+ // terms say). Computed each time from what is kept — nothing new is written, an older strom reads the file as before.
6
+ // Never milder than the archive's terms: the answer is strom's list's level, the person's word alone (exit 4 for an
7
+ // agent), and only where nothing else here still holds the stricter level (else lowering the floor would change nothing,
8
+ // and strom run and the Chrome hook would disagree).
9
+ import path from "node:path";
10
+ import { archiveLevel, loadArchives, rank } from "./terms.js";
11
+ import { shippedTerms, strictestEntry, within, bare } from "./knownterms.js";
12
+ import { listConnectors } from "./connector.js";
13
+ import { settingsTrust } from "./trust.js";
14
+ import { levelWords } from "./archiveasks.js";
15
+ import { ui } from "../cli/ui.js";
16
+ import { humanDay } from "../cli/human.js";
17
+ /** strom's own list of the host (never a test's or a person's extra file: only the list shipped is the archive's word here). */
18
+ function listed(host) {
19
+ return strictestEntry(shippedTerms().filter((k) => within(host, k.host)));
20
+ }
21
+ /** Who holds a level, from a computed level's sources: the connector itself, the tree's record, the host. */
22
+ function holdsOf(a, c) {
23
+ const out = [];
24
+ for (const f of a.from) {
25
+ if (c && (f === "connector" || f === "new connector" || f === "kept" || f === "pages"))
26
+ out.push({ by: "connector", name: c.name });
27
+ else if (f === "tree")
28
+ out.push({ by: "tree", ...(a.repository ? { repository: a.repository } : {}) });
29
+ else if (f === "robots" || f === "refused")
30
+ out.push({ by: "host" });
31
+ }
32
+ return out;
33
+ }
34
+ /**
35
+ * Every host whose floor is stricter than strom's list says (the list's level known, not "unknown"): what strom keeps,
36
+ * whose, since when, what the list says and what still holds it — `tree` the research looked at (its records of the
37
+ * archives count). `all`: the person's and the agent's floors too (the listing of strom allow archive); else only
38
+ * strom's own (doctor, run, the question).
39
+ */
40
+ export function floorNotes(env, o = {}) {
41
+ const store = loadArchives(env);
42
+ const trust = settingsTrust(env);
43
+ const other = trust.restrictionsFrom ? loadArchives({ STROM_CONFIG_DIR: trust.restrictionsFrom }).archives : {};
44
+ const net = o.shared ? path.join(o.shared, "net") : undefined;
45
+ let connectors;
46
+ const out = [];
47
+ for (const [host, r] of Object.entries(store.archives).sort(([a], [b]) => a.localeCompare(b))) {
48
+ if (!r?.floor || (!o.all && r.floorBy !== "strom"))
49
+ continue;
50
+ const k = listed(host);
51
+ if (!k || k.level === "unknown" || rank(r.floor) <= rank(k.level))
52
+ continue;
53
+ connectors ??= listConnectors(o.shared, env);
54
+ const holds = [];
55
+ // another settings folder keeps it too (the person's default folder): lowering it here would not lower it there
56
+ const theirs = other[host]?.floor;
57
+ if (theirs && rank(theirs) >= rank(r.floor))
58
+ holds.push({ by: "other" });
59
+ const input = { ...(o.tree ? { tree: o.tree } : {}), ...(net ? { net } : {}), readOnly: true };
60
+ const levels = [];
61
+ try {
62
+ levels.push({ a: archiveLevel(env, { url: `https://${host}/`, ...input }) });
63
+ for (const c of connectors.filter((x) => x.manifest.hosts.map(bare).includes(host)))
64
+ levels.push({ a: archiveLevel(env, { ...input, connector: c, url: host }), c });
65
+ }
66
+ catch {
67
+ continue;
68
+ }
69
+ for (const { a, c } of levels)
70
+ if (rank(a.level) >= rank(r.floor))
71
+ for (const h of holdsOf(a, c))
72
+ if (!holds.some((x) => JSON.stringify(x) === JSON.stringify(h)))
73
+ holds.push(h);
74
+ out.push({
75
+ host,
76
+ title: k.name ?? host,
77
+ floor: r.floor,
78
+ by: r.floorBy ?? "strom",
79
+ ...(r.floorAt ? { at: r.floorAt } : {}),
80
+ ...(r.floorConnector ? { connector: r.floorConnector } : {}),
81
+ list: k.level,
82
+ browserOnly: !!k.browserOnly,
83
+ ...(k.checked ? { checked: k.checked } : {}),
84
+ holds,
85
+ ask: r.floorBy === "strom" && trust.verified && !store.broken && !holds.length,
86
+ });
87
+ }
88
+ return out;
89
+ }
90
+ /** The question of one host, if it waits (What waits, a link of the Strom app). */
91
+ export function floorQuestion(env, host, o = {}) {
92
+ return floorNotes(env, o).find((n) => n.ask && n.host === host);
93
+ }
94
+ /** What holds a floor, for the agent and in strom's own outputs (English): "connector example-archive", "the research's archive R0001". */
95
+ export function holdText(h) {
96
+ return h.by === "connector" ? `connector ${h.name}` : h.by === "tree" ? `the research's archive${h.repository ? ` ${h.repository}` : ""} (strom repo show${h.repository ? ` ${h.repository}` : ""})` : h.by === "host" ? "the host's own refusal or robots.txt" : "the person's default settings folder";
97
+ }
98
+ /** Whose reading raised a floor, for the agent and strom's outputs (English). */
99
+ export function floorSource(n) {
100
+ return n.by === "person" ? "the person" : n.by === "agent" ? "an agent" : n.connector ? `connector ${n.connector}'s reading` : "a research's record of the archive (strom repo) or the terms then";
101
+ }
102
+ /** strom's list's level of the archive in the person's words (only through a person's browser said so). */
103
+ export function listWords(lang, n) {
104
+ return n.browserOnly && n.list === "restricted" ? ui(lang, "ui.archive.level.browserOnly") : levelWords(lang, n.list);
105
+ }
106
+ /** One floor in the person's words: what strom keeps since when and why, what strom's list says. */
107
+ export function floorLine(lang, n) {
108
+ const source = n.by === "person" ? ui(lang, "ui.archive.floor.by.person") : n.by === "agent" ? ui(lang, "ui.archive.floor.by.agent") : n.connector ? ui(lang, "ui.archive.floor.by.connector", { name: n.connector }) : ui(lang, "ui.archive.floor.by.record");
109
+ return ui(lang, "ui.archive.floor", { title: n.title, host: n.host, level: levelWords(lang, n.floor, false, ["floor"]), date: n.at ? humanDay(n.at, lang) : "–", source, checked: n.checked ? humanDay(n.checked, lang) : "–", list: listWords(lang, n) });
110
+ }
111
+ /** What to do about it, in the person's words: what still holds it (to be changed there first), else who decides and how. */
112
+ export function floorWhat(lang, n) {
113
+ if (!n.holds.length)
114
+ return ui(lang, "ui.archive.floor.decide", { host: n.host, code: n.list });
115
+ const what = n.holds.map((h) => h.by === "connector" ? ui(lang, "ui.archive.floor.hold.connector", { name: h.name }) : h.by === "tree" ? ui(lang, "ui.archive.floor.hold.tree", { id: h.repository ?? "R…" }) : h.by === "host" ? ui(lang, "ui.archive.floor.hold.host") : ui(lang, "ui.archive.floor.hold.other"));
116
+ return ui(lang, "ui.archive.floor.holds", { what: what.join(", ") });
117
+ }
118
+ /**
119
+ * A level written stricter than strom's list says of the archive (a downloader's policy.automation, a research's record
120
+ * of the archive): said to the agent (English) — stricter stays allowed, but strom keeps it (and remembers it: only the
121
+ * person makes it milder again), and by hand shuts the agent's browser there. Nothing for an archive the list does not
122
+ * know, nor for a level the list's own or milder.
123
+ */
124
+ export function stricterThanList(hosts, level, what) {
125
+ if (!["allowed", "restricted", "manual", "forbidden", "unknown"].includes(level))
126
+ return undefined;
127
+ for (const h of hosts) {
128
+ const k = listed(bare(h));
129
+ if (!k || k.level === "unknown" || rank(level) <= rank(k.level))
130
+ continue;
131
+ const name = k.name ?? k.host;
132
+ const as = what === "connector" ? `"automation": "${k.level}"` : `--automation ${k.level === "restricted" ? "unknown (strom's list gives it: restricted)" : k.level}`;
133
+ return (`⚠ ${what === "connector" ? "policy.automation" : "automation"} "${level}" is stricter than strom's list of the archive's terms: ${name} ${k.level}${k.browserOnly ? ", only through a person's browser" : ""}${k.checked ? ` (checked ${k.checked}${k.terms ? `, ${k.terms}` : ""})` : ""}. ` +
134
+ `strom keeps the stricter one and remembers it (only the person makes it milder again)${rank(level) >= rank("manual") ? " — by hand only: no agent's browser there, the person saves every image" : ""}. ` +
135
+ `Keep it only with a quote from the archive's terms that says so (DISCOVERY.md, step 1); else ${as}.`);
136
+ }
137
+ return undefined;
138
+ }
139
+ /** Whether the research's records (record sets, archives, sources with an address) name the host or a host of its site. */
140
+ export function treeNames(tree, host) {
141
+ for (const r of [...tree.list("recordset"), ...tree.list("repository"), ...tree.list("source")]) {
142
+ if (!r.url || r.retracted || !URL.canParse(r.url))
143
+ continue;
144
+ const h = bare(new URL(r.url).hostname.toLowerCase());
145
+ if (within(h, host) || within(host, h))
146
+ return true;
147
+ }
148
+ return false;
149
+ }
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.36.0-beta.3";
35
+ export const VERSION = "1.36.0-beta.5";
36
36
  /** What a new research is settled with from the start: nothing an older strom counted otherwise to set right in it. */
37
37
  export const NEW_TREE_SETTLED = ["readers-1", "proven-originals-1", "origins-1", "verify-originals-1", "origins-tree-1"];
38
38
  const GITIGNORE = `# Strom Research — local state and large files are not versioned
@@ -23,6 +23,7 @@ import path from "node:path";
23
23
  import { allows, archiveLevel, keyHost, loadArchives, termsFor, termsOpen } from "./terms.js";
24
24
  import { AGENT_TOOL_TOKENS, clock, hostAllowed, hostState, REFUSED_FOREVER, robotsYields, toolRobotsVerdict } from "./net.js";
25
25
  import { knownDisallow } from "./knownterms.js";
26
+ import { agentBrowserAdvice, browserState } from "./browserhelp.js";
26
27
  import { listConnectors } from "./connector.js";
27
28
  import { metricsDir, termsPagesToday } from "./metrics.js";
28
29
  import { settingsTrust } from "./trust.js";
@@ -130,7 +131,8 @@ export function bookOn(tree, task, host, url) {
130
131
  }
131
132
  /**
132
133
  * What strom would let an agent's own web tool fetch now at an address, and why: read only. `agent`: whose tool (its
133
- * robots.txt token); none: every tool strom knows (the strictest).
134
+ * robots.txt token); none: every tool strom knows (the strictest). `runner`: the agent whose browser the way on names
135
+ * (strom net web --check run by it), else `agent`.
134
136
  */
135
137
  export function webGate(o) {
136
138
  let u;
@@ -204,6 +206,10 @@ export function webGate(o) {
204
206
  reason: `strom: ${name} lets automated tools in only through a person's browser — ${by} — and ${listed && a.level !== "manual" && a.permission !== "manual" ? `strom's list of archives keeps every automated tool off ${target}` : a.permission === "manual" && a.level !== "manual" ? "the person chose its images by hand" : "its terms keep it for a person's hand"}: no web fetch, not through your browser either. ` +
205
207
  `The person saves what is needed by hand: strom task wait ${o.task ?? "T…"} --images ${book}:<numbers> --on "<the book, its link, which images — impersonal, in the research language>" (strom makes the inbox folder they go into; saved there, they bring the task back by themselves). ${otherWay(host, o.url, o.task)}`,
206
208
  });
209
+ // the person allowed it "through the browser" already (or its level lets a browser in): the way on is the agent's
210
+ // browser as it is here, never a permission that already stands (found in the K045 simulation, 20 November 2026)
211
+ if (allows(a, imageUrl(o.url) ? "images" : "pages", "browser").ok)
212
+ return out({ allow: false, why: "browser", reason: `strom: ${name} lets automated tools in only through a person's browser — ${by}: no web fetch. ${throughBrowser(o, a, book)} ${otherWay(host, o.url, o.task)}` });
207
213
  return out({
208
214
  allow: false,
209
215
  why: "browser",
@@ -244,6 +250,25 @@ export function webGate(o) {
244
250
  const blocked = hostBlocked(dir, host, now);
245
251
  return out({ allow: true, ...(blocked ? { blocked } : {}) });
246
252
  }
253
+ /**
254
+ * The way on at an archive only a person's browser goes to that the person allowed "through the browser" (or whose
255
+ * level lets a browser in): the browser of the agent running this as it is here — Claude Code with Claude in Chrome,
256
+ * Codex with strom's hooks confirmed: through it, page by page at a person's pace; without the extension, or an agent
257
+ * whose browser strom does not keep: the person's hand (browserhelp.ts agentBrowserAdvice). No agent known: the
258
+ * browser of an agent strom keeps.
259
+ */
260
+ function throughBrowser(o, a, book) {
261
+ const said = a.permission === "browser" ? `The person allowed it "through the browser"` : `Its terms let a browser in`;
262
+ const check = `strom net web --check ${o.url} --browser`;
263
+ const agent = o.runner ?? o.agent;
264
+ if (!agent)
265
+ return `${said}: through the browser of an agent strom keeps (Claude Code with Claude in Chrome), one page at a time at a person's pace — ${check} says what opens.`;
266
+ const archive = { host: a.host, ...(a.title ? { title: a.title } : {}), permitted: true };
267
+ const advice = agentBrowserAdvice(o.env, agent, archive, o.task, book, true, o.tree?.root);
268
+ if (browserState(o.env, agent, o.tree?.root).state !== "ready")
269
+ return `${said}, but ${advice}`;
270
+ return `${said}: not your web fetch, but your browser — its pages one at a time at a person's pace (${check} says what opens); its images ${advice}`;
271
+ }
247
272
  /** The host left alone now (a refusal, its limit used up), as the limiter keeps it: until when, and why. */
248
273
  export function hostBlocked(dir, host, now) {
249
274
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strom-research",
3
- "version": "1.36.0-beta.3",
3
+ "version": "1.36.0-beta.5",
4
4
  "stromDoc": "eddd7e946752f146eeb8767c5d13ce3b8ab0e488",
5
5
  "description": "Genealogical research toolkit for AI coding agents",
6
6
  "type": "module",