strom-research 1.31.0 → 1.31.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.cs.md CHANGED
@@ -5,6 +5,21 @@
5
5
  Změny každé verze ve zkratce. Úplné poznámky a instalační řádky jsou na
6
6
  [GitHub Releases](https://github.com/ACiDekCZ/strom-research/releases) (anglicky).
7
7
 
8
+ ## 1.31.1
9
+
10
+ *Připravuje se: bety do 1.31.1-beta.2. Oddíl bude úplný s vydáním.*
11
+
12
+ - **Nastavení pro prohlížeče archivů, které prohlížeč vykresluje pomalu.** Kde prohlížeč vykreslí kartu jen zhruba
13
+ jednou za sekundu (kreslení bez grafické karty, vzdálená plocha), potřebuje prohlížeč snímků archivu (ACTA PUBLICA)
14
+ na jeden snímek minuty a ukládání vzdalo po 30 s se zprávou, že dlaždice nedorazily všechny. Ta zpráva teď jmenuje,
15
+ co pomůže: `strom config set browser.tileWait 180` (60–600 s) — skript pak čeká, dokud dlaždice ještě přicházejí,
16
+ a agentovi odpovídá „strom-wait“, dokud není hotovo. Bez nastavení se nemění nic.
17
+ - **Náhled `strom source split` na výzkumu zapečetěném na jiném počítači.** Dřív se odmítl, dokud výzkum nebyl
18
+ převzat (`strom seal adopt`), přestože jen čte. Teď náhled ukáže, co by rozdělení udělalo, jako každé čtení; zápis
19
+ (`--apply`) i jeho vrácení dál čekají na převzetí výzkumu.
20
+ - **`strom repair undo <razítko> --json` bez terminálu** teď odpovídá jako `strom repair`: `status: "needs-consent"`
21
+ s příkazem ke spuštění v terminálu, ne jen kódem 4.
22
+
8
23
  ## 1.31.0
9
24
 
10
25
  *12. 11. 2026 · patří k aplikaci Strom 3.27.0.*
package/CHANGELOG.de.md CHANGED
@@ -5,6 +5,23 @@
5
5
  Die Änderungen jeder Version in Kürze. Die vollständigen Hinweise und die Installationszeilen stehen bei
6
6
  [GitHub Releases](https://github.com/ACiDekCZ/strom-research/releases) (auf Englisch).
7
7
 
8
+ ## 1.31.1
9
+
10
+ *In Vorbereitung: die Betas bis 1.31.1-beta.2. Der Abschnitt ist mit dem Release vollständig.*
11
+
12
+ - **Eine Einstellung für Archiv-Viewer, die ein Browser langsam zeichnet.** Wo der Browser einen Tab nur etwa einmal
13
+ pro Sekunde zeichnet (Zeichnen ohne Grafikkarte, ein Remote-Desktop), braucht der Viewer des Archivs (ACTA PUBLICA)
14
+ für ein Bild Minuten, und das Speichern gab nach 30 s mit „die Kacheln des Viewers kamen nicht alle“ auf. Diese
15
+ Meldung nennt jetzt, was hilft: `strom config set browser.tileWait 180` (60–600 s) — das Skript wartet dann, solange
16
+ die Kacheln noch kommen, und antwortet dem Agenten „strom-wait“, bis es fertig ist. Ohne die Einstellung ändert sich
17
+ nichts.
18
+ - **Die Vorschau von `strom source split` bei einer auf einem anderen Computer versiegelten Forschung.** Sie wurde
19
+ abgelehnt, bis die Forschung übernommen war (`strom seal adopt`), obwohl sie nur liest. Jetzt zeigt die Vorschau wie
20
+ jedes Lesen, was die Aufteilung täte; das Schreiben (`--apply`) und sein Rückgängigmachen warten weiter auf die
21
+ Übernahme der Forschung.
22
+ - **`strom repair undo <Stempel> --json` ohne Terminal** antwortet jetzt wie `strom repair`: `status: "needs-consent"`
23
+ mit dem Befehl, der in einem Terminal auszuführen ist, nicht nur mit dem Exit-Code 4.
24
+
8
25
  ## 1.31.0
9
26
 
10
27
  *12.11.2026 · gehört zur Strom-App 3.27.0.*
package/CHANGELOG.md CHANGED
@@ -5,6 +5,21 @@ English · [Čeština](CHANGELOG.cs.md) · [Deutsch](CHANGELOG.de.md) · [Polski
5
5
  The changes of each version in short. The full notes and the install lines are on
6
6
  [GitHub Releases](https://github.com/ACiDekCZ/strom-research/releases).
7
7
 
8
+ ## 1.31.1
9
+
10
+ *In preparation: the betas up to 1.31.1-beta.2. The section is complete with the release.*
11
+
12
+ - **A setting for archive viewers a browser draws slowly.** Where the browser draws a tab only about once a second
13
+ (drawing without the graphics card, a remote desktop), the archive's viewer (ACTA PUBLICA) needs minutes for one
14
+ image and saving gave up after 30 s with "the viewer's tiles did not all come". That message now names what helps:
15
+ `strom config set browser.tileWait 180` (60–600 s) — the script then waits while the tiles still come and answers
16
+ the agent "strom-wait" until it is done. Without the setting nothing changes.
17
+ - **The preview of `strom source split` on a research sealed on another computer.** It was refused until the research
18
+ was taken over there (`strom seal adopt`), though it only reads. Now the preview shows what the split would do, as
19
+ any reading does; writing it (`--apply`) and its undo still wait for the research to be taken over.
20
+ - **`strom repair undo <stamp> --json` without a terminal** now answers as `strom repair` does: `status:
21
+ "needs-consent"` with the command to run in a terminal, not only exit code 4.
22
+
8
23
  ## 1.31.0
9
24
 
10
25
  *2026-11-12 · goes with the Strom app 3.27.0.*
package/CHANGELOG.pl.md CHANGED
@@ -5,6 +5,22 @@
5
5
  Zmiany każdej wersji w skrócie. Pełne informacje o wydaniach i polecenia instalacji są na
6
6
  [GitHub Releases](https://github.com/ACiDekCZ/strom-research/releases) (po angielsku).
7
7
 
8
+ ## 1.31.1
9
+
10
+ *W przygotowaniu: bety do 1.31.1-beta.2. Sekcja będzie kompletna z wydaniem.*
11
+
12
+ - **Ustawienie dla przeglądarek archiwów, które przeglądarka rysuje powoli.** Gdy przeglądarka rysuje kartę tylko mniej
13
+ więcej raz na sekundę (rysowanie bez karty graficznej, zdalny pulpit), przeglądarka skanów archiwum (ACTA PUBLICA)
14
+ potrzebuje na jeden skan kilku minut, a zapis poddawał się po 30 s z komunikatem, że nie dotarły wszystkie kafelki.
15
+ Ten komunikat podaje teraz, co pomaga: `strom config set browser.tileWait 180` (60–600 s) — skrypt czeka wtedy,
16
+ dopóki kafelki jeszcze przychodzą, i odpowiada agentowi „strom-wait”, aż skończy. Bez tego ustawienia nic się nie
17
+ zmienia.
18
+ - **Podgląd `strom source split` w badaniu zapieczętowanym na innym komputerze.** Był odrzucany, dopóki badanie nie
19
+ zostało przejęte (`strom seal adopt`), choć tylko czyta. Teraz podgląd pokazuje, co zrobiłby podział, jak każde
20
+ czytanie; zapis (`--apply`) i jego cofnięcie nadal czekają na przejęcie badania.
21
+ - **`strom repair undo <znacznik> --json` bez terminala** odpowiada teraz jak `strom repair`: `status: "needs-consent"`
22
+ z poleceniem do uruchomienia w terminalu, nie tylko kodem wyjścia 4.
23
+
8
24
  ## 1.31.0
9
25
 
10
26
  *12.11.2026 · współpracuje z aplikacją Strom 3.27.0.*
package/dist/cli/main.js CHANGED
@@ -284,6 +284,8 @@ async function mainOf(argv, io, env, cwd) {
284
284
  const { rest, passthrough } = def.passthrough ? splitPassthrough(resolved.rest) : { rest: resolved.rest, passthrough: [] };
285
285
  const parsed = parseOptions(def, rest, own);
286
286
  const v = parsed.values;
287
+ // what writes the tree: a command that writes only with some of its options reads as any read without them
288
+ const writes = !!def.writes && (!def.writesWith || def.writesWith({ args: parsed.positionals, opts: v }));
287
289
  // a hook's quick answer, strom error itself and a --dry-run (it writes nothing anywhere) never noted
288
290
  quiet = v.hook === true || def.path[0] === "error" || v["dry-run"] === true;
289
291
  if (v.help) {
@@ -401,7 +403,7 @@ async function mainOf(argv, io, env, cwd) {
401
403
  ctx.backupFailed = e;
402
404
  }
403
405
  }
404
- if (ctx.backupFailed && (def.writes || STARTS_WORK.has(def.path.join(" "))))
406
+ if (ctx.backupFailed && (writes || STARTS_WORK.has(def.path.join(" "))))
405
407
  throw ctx.backupFailed;
406
408
  const lastChannel = lastChannelOf(ctx.settings.config);
407
409
  const otherChannel = !!lastChannel && lastChannel !== channelNow;
@@ -563,14 +565,14 @@ async function mainOf(argv, io, env, cwd) {
563
565
  const work = async () => {
564
566
  // Never write on top of data that was changed outside strom.
565
567
  // (a command that locks only while it writes looks under the lock too: another strom may be in the middle of a write)
566
- if (def.writes && def.tree)
568
+ if (writes && def.tree)
567
569
  def.lock === "sections" ? ctx.tree().withTreeLock(() => assertIntact(ctx.tree())) : assertIntact(ctx.tree());
568
570
  let result;
569
571
  let blocked;
570
572
  // a write of the Strom app's (through the bridge, which holds the tree from its first read to its commit): the
571
573
  // research's head before it and after it, for the app to take its own write as its version only when nothing
572
574
  // came between (found: "the research has a newer version" after every file the app assigned)
573
- const forApp = def.writes && def.tree && def.lock !== "sections" && !ctx.dryRun && env.STROM_FOR_APP === "1";
575
+ const forApp = writes && def.tree && def.lock !== "sections" && !ctx.dryRun && env.STROM_FOR_APP === "1";
574
576
  const headNow = () => {
575
577
  const root = ctx.tree().root;
576
578
  resetCache(root);
@@ -592,14 +594,14 @@ async function mainOf(argv, io, env, cwd) {
592
594
  }
593
595
  // its commit is part of it: one that fails (found on Windows: _counters.json held by another program, its IDs
594
596
  // not written) takes back what the command wrote — a person or an agent running it again gets no second record
595
- if (def.writes)
597
+ if (writes)
596
598
  blocked = autoCommit(ctx, def);
597
599
  if (parent !== undefined && !blocked && result.data && typeof result.data === "object" && !Array.isArray(result.data))
598
600
  result.data = { ...result.data, commit: { head: headNow(), parent } };
599
601
  }
600
602
  catch (err) {
601
603
  // A writing command is a transaction: on failure nothing it wrote remains.
602
- const t = def.writes ? ctx.current() : undefined;
604
+ const t = writes ? ctx.current() : undefined;
603
605
  if (t)
604
606
  t.withTreeLock(() => t.rollback());
605
607
  throw err;
@@ -621,7 +623,7 @@ async function mainOf(argv, io, env, cwd) {
621
623
  };
622
624
  // Other strom processes may write to the same tree (other agents, a run): a writing
623
625
  // command has the tree to itself from its first read to its commit.
624
- const result = def.writes && def.tree && def.lock !== "sections" ? await ctx.tree().holdTreeLock(work) : await work();
626
+ const result = writes && def.tree && def.lock !== "sections" ? await ctx.tree().holdTreeLock(work) : await work();
625
627
  // a dry run says so, last, in the person's language — it reads as what would happen, never as done (found on
626
628
  // Windows: "taken back" of a dry run, nothing told it apart); an agent reads it in English, as the rest
627
629
  if (ctx.dryRun) {
@@ -255,13 +255,12 @@ register({
255
255
  const said = undoSaid(plan, lang);
256
256
  if (plan.back.length === 0)
257
257
  return { text: lines(said, ui(lang, "ui.repair.undo.nothing")), data: { ...data, undone: false, nothing: true } };
258
- if (!ctx.interactive)
259
- return { text: lines(said, "", ui(lang, "ui.repair.undo.person", { command: set })), data: { ...data, undone: false, run: set }, exitCode: 4 };
258
+ // a script, --json or no terminal: the consent it needs, as strom repair says it (status needs-consent, what to run)
259
+ ctx.requireHuman(`Put back what strom repair removed or replaced (${plan.back.length} file${plan.back.length === 1 ? "" : "s"}, a sealed change)?`, set, "repair", lines(said, "", ui(lang, "ui.repair.undo.person", { command: set })), { window: false });
260
260
  if (liveRunning(tree.root))
261
261
  throw new UsageError("the bridge to the Strom app runs on this research: nothing put back", { hint: `strom live stop, then ${set}`, code: "repair.undo-bridge" });
262
262
  if (liveWorkers(tree.root).length > 0 || runsAtWork(tree.root).length > 0)
263
263
  throw new UsageError("somebody is at work on this research: putting back only once they finished", { hint: `strom session finish, then ${set}`, code: "repair.undo-busy" });
264
- ctx.requireHuman("Put back what strom repair removed (a sealed change)?", set, "repair", ui(lang, "ui.repair.undo.person", { command: set }), { window: false });
265
264
  ctx.io.stdout(said + "\n");
266
265
  if (!(await ctx.confirm(ui(lang, "ui.repair.undo.ask"), false)))
267
266
  return { text: ui(lang, "ui.cancelled"), data: { ...data, undone: false } };
@@ -2958,7 +2958,9 @@ async function planBrowser(ctx, c, request, recordset, human = new Map(), levels
2958
2958
  removePlan(tree.root, old.id);
2959
2959
  }
2960
2960
  savePlan(tree.root, plan);
2961
- const script = viewer ? viewerScript(plan) : planScript(plan);
2961
+ // browser.tileWait: the viewer's tiles waited for while they come, the script run again while it answers strom-wait
2962
+ const tileWait = viewer ? ctx.settings.tileWaitMs() : undefined;
2963
+ const script = viewer ? viewerScript(plan, tileWait ? { tileWaitMs: tileWait } : {}) : planScript(plan);
2962
2964
  const rest = asked.filter((n) => !items.some((i) => i.n === n));
2963
2965
  const secs = Math.max(1, Math.round((items.at(-1).at - now) / 1000));
2964
2966
  const take = `strom fetch ${c.name} --take --result "<the line it returned>"`;
@@ -2966,12 +2968,18 @@ async function planBrowser(ctx, c, request, recordset, human = new Map(), levels
2966
2968
  return {
2967
2969
  text: lines(describeRun(r, "locate"), `browser plan: ${part ? `part ${regionText(request.region)} of image ${request.image}` : `${counted(items.length, "image")} (${runs(items.map((i) => i.n))})`} of book ${request.book} through your browser — about ${secs} s at the pace of ${first.hostname}`, viewer
2968
2970
  ? `1. Open the book's page in a new tab of your own: ${open} — once (a tab of yours on this book's page already: that one). The script pages through the archive's viewer itself and saves what it shows: never reload the tab or open another page of it while it runs.`
2969
- : `1. Open a new tab of your own at ${open}${open.endsWith("/robots.txt") ? " — a light page of the site: the script fetches the images from there" : ""}.`, ' The browser not connected, a login or a captcha on the way: stop and ask the user (strom task wait T… --on "…") — that is theirs to do.', " (Not connected: Chrome must be running with the Claude extension; after a change of network the extension may need a click on its icon, or Chrome a restart.)", `2. Run this in that tab with the JavaScript tool, exactly as it is — it waits between the images by itself${viewer ? " and for the viewer's tiles" : ""}:`, "", script, "", `3. Then: ${take}`, `The browser saves them into ${ctx.display(ctx.settings.downloads())} as ${shown} — strom takes them over; do not open, move or read them yourself.`, `The first time, Chrome asks whether ${first.hostname} may download several files: the user allows it once (at the right end of the address bar).`, rest.length ? `The rest (images ${runs(rest)}): the same strom fetch again, after the take.` : undefined, near),
2971
+ : `1. Open a new tab of your own at ${open}${open.endsWith("/robots.txt") ? " — a light page of the site: the script fetches the images from there" : ""}.`, ' The browser not connected, a login or a captcha on the way: stop and ask the user (strom task wait T… --on "…") — that is theirs to do.', " (Not connected: Chrome must be running with the Claude extension; after a change of network the extension may need a click on its icon, or Chrome a restart.)", `2. Run this in that tab with the JavaScript tool, exactly as it is — it waits between the images by itself${viewer ? " and for the viewer's tiles" : ""}:`, "", script, "", ...(tileWait ? [` It answers "strom-wait …" while the viewer's tiles still come (browser.tileWait): run the same script again in the same tab, as often as it says so — it goes on where it is.`] : []), `3. Then: ${take}`, `The browser saves them into ${ctx.display(ctx.settings.downloads())} as ${shown} — strom takes them over; do not open, move or read them yourself.`, `The first time, Chrome asks whether ${first.hostname} may download several files: the user allows it once (at the right end of the address bar).`, rest.length ? `The rest (images ${runs(rest)}): the same strom fetch again, after the take.` : undefined, near),
2970
2972
  data: { ...r, plan: { id: plan.id, open, host: plan.host, items: items.map((i) => ({ n: i.n, src: i.src, file: i.file, at: new Date(i.at).toISOString() })) }, script, take, rest },
2971
2973
  };
2972
2974
  }
2973
2975
  /** What the browser downloaded: taken over from the downloads folder, checked, registered (or put into the inbox). */
2974
2976
  async function takeOver(ctx, c, result) {
2977
+ // the script still waits for a viewer's tiles (browser.tileWait): nothing taken yet — it is run again first
2978
+ if (result !== undefined && /^\s*["']?\s*strom-wait\b/u.test(result))
2979
+ return {
2980
+ text: `the script has not ended: it still waits for the viewer's tiles (it answered strom-wait) — run the same script again in the same tab, as often as it answers so, then strom fetch ${c.name} --take --result "<its strom-result line>"`,
2981
+ data: { taken: [], waiting: true },
2982
+ };
2975
2983
  const tree = ctx.tree();
2976
2984
  const all = loadPlans(tree.root, c.name);
2977
2985
  const dir = ctx.settings.downloads();
@@ -1283,10 +1283,12 @@ register({
1283
1283
  if (wasHeld)
1284
1284
  storeSaves(tree.root, loadSaves(tree.root).map(({ held, ...r }) => (r.task === t.id || !held ? r : { ...r, held })));
1285
1285
  }
1286
- const script = saveScript({ url: u.href, file, n, until: Date.now() + PLAN_TTL_MS, other: phrase(lang, "browser.save.other", { n: String(n), url: u.href }) });
1286
+ // browser.tileWait: the viewer's tiles waited for while they come, the script run again while it answers strom-wait
1287
+ const tileWait = ctx.settings.tileWaitMs();
1288
+ const script = saveScript({ url: u.href, file, n, until: Date.now() + PLAN_TTL_MS, other: phrase(lang, "browser.save.other", { n: String(n), url: u.href }) }, tileWait ? { tileWaitMs: tileWait } : {});
1287
1289
  const then = "strom media add --inbox --waiting";
1288
1290
  return {
1289
- text: lines(...tree.written.map((o) => o.summary), `${t.id} · image ${n} of ${b.id} — saved from ${g.host} through your browser, this one image:`, `1. Open ${u.href} in a tab of your own (once; a tab of yours on it already: that one). Never another image or page of the book for it.`, `2. Run this script in that tab with your browser's JavaScript tool; it answers "strom-result ${n}:200:<bytes>" (the file ${file}.jpg in the downloads folder):`, script, `3. ${then} — moves it into the task's folder as image ${n} and takes it. Anything else the script answers: tell the user, never try another way.`, `Chrome saves one file of a page by itself; one more from the same page waits until the user allows ${u.hostname} to download several files (once, at the right end of the address bar) — the script said saved and nothing came: tell the user, never change Chrome's settings yourself.`),
1291
+ text: lines(...tree.written.map((o) => o.summary), `${t.id} · image ${n} of ${b.id} — saved from ${g.host} through your browser, this one image:`, `1. Open ${u.href} in a tab of your own (once; a tab of yours on it already: that one). Never another image or page of the book for it.`, `2. Run this script in that tab with your browser's JavaScript tool; it answers "strom-result ${n}:200:<bytes>" (the file ${file}.jpg in the downloads folder):`, script, ...(tileWait ? [` It answers "strom-wait …" while the viewer's tiles still come (browser.tileWait): run the same script again in the same tab, as often as it says so — it goes on where it is.`] : []), `3. ${then} — moves it into the task's folder as image ${n} and takes it. Anything else the script answers: tell the user, never try another way.`, `Chrome saves one file of a page by itself; one more from the same page waits until the user allows ${u.hostname} to download several files (once, at the right end of the address bar) — the script said saved and nothing came: tell the user, never change Chrome's settings yourself.`),
1290
1292
  data: { task: t.id, recordset: b.id, image: n, waits: images, url: u.href, file, script, then },
1291
1293
  };
1292
1294
  },
@@ -1682,9 +1682,12 @@ register({
1682
1682
  summary: "Show every setting, its value and where it comes from (flag, env, tree, config, default)",
1683
1683
  group: "setup",
1684
1684
  run(ctx) {
1685
- const rows = SETTINGS.map((def) => {
1685
+ // a setting not listed: only once it is set
1686
+ const rows = SETTINGS.flatMap((def) => {
1686
1687
  const r = effective(ctx, def);
1687
- return { key: def.key, value: r.value, source: r.source, env: def.env, tree: def.tree, description: settingDescription(def, ctx.env), ...(r.invalid ? { invalid: true } : {}) };
1688
+ if (def.hidden && r.value === undefined)
1689
+ return [];
1690
+ return [{ key: def.key, value: r.value, source: r.source, env: def.env, tree: def.tree, description: settingDescription(def, ctx.env), ...(r.invalid ? { invalid: true } : {}) }];
1688
1691
  });
1689
1692
  const invalid = rows.filter((r) => r.invalid).map((r) => r.key);
1690
1693
  const text = lines(table(rows.map((r) => [r.key, `${display(ctx, settingDef(r.key), r.value)}${r.invalid ? " (invalid)" : ""}`, r.source, r.env])), "", ...(invalid.length ? [APP_URL_INVALID_SETTING, ""] : []), "order: flag > env > tree (strom.json) > config > default", `change: strom config set <key> <value> [--for-tree] · strom config unset <key> [--for-tree]`, `other env: ${OTHER_ENV.map((e) => e.env).join(" ")} (strom help config where)`, `config file: ${ctx.display(configFile(ctx.env))}`);
@@ -1696,7 +1699,7 @@ register({
1696
1699
  path: ["config", "get"],
1697
1700
  summary: "Print one setting (as it applies here)",
1698
1701
  group: "setup",
1699
- args: [{ name: "key", description: `one of ${SETTINGS.map((s) => s.key).join(", ")}`, required: true }],
1702
+ args: [{ name: "key", description: `one of ${SETTINGS.filter((s) => !s.hidden).map((s) => s.key).join(", ")}`, required: true }],
1700
1703
  options: [{ name: "recordset", type: "string", value: "<B…>", description: "views.size of one book: bigger where strom tuned it (a book read worse than the others)" }],
1701
1704
  examples: ["strom config get lang", "strom config get views.size --recordset B0003", "strom config get reading.batch"],
1702
1705
  run(ctx, { args, opts }) {
@@ -1714,7 +1717,7 @@ register({
1714
1717
  summary: "Change a setting for you, or for the current tree only (--for-tree)",
1715
1718
  group: "setup",
1716
1719
  args: [
1717
- { name: "key", description: SETTINGS.map((s) => s.key).join(", "), required: true },
1720
+ { name: "key", description: SETTINGS.filter((s) => !s.hidden).map((s) => s.key).join(", "), required: true },
1718
1721
  { name: "value", description: "a folder, a language code, an agent, a model name or a number", required: true },
1719
1722
  ],
1720
1723
  description: [
@@ -1801,7 +1804,7 @@ register({
1801
1804
  path: ["config", "unset"],
1802
1805
  summary: "Remove a setting (back to the next source: the user config, then the default)",
1803
1806
  group: "setup",
1804
- args: [{ name: "key", description: SETTINGS.map((s) => s.key).join(", "), required: true }],
1807
+ args: [{ name: "key", description: SETTINGS.filter((s) => !s.hidden).map((s) => s.key).join(", "), required: true }],
1805
1808
  options: [{ name: "for-tree", type: "boolean", description: "remove the tree's own value" }],
1806
1809
  examples: ["strom config unset shared", "strom config unset agent --for-tree"],
1807
1810
  async run(ctx, { args, opts }) {
@@ -15,6 +15,8 @@ register({
15
15
  group: "sources",
16
16
  tree: true,
17
17
  writes: true,
18
+ // the preview reads only: anybody's, also on a research sealed on another computer (prod 1.31.0 N2)
19
+ writesWith: ({ opts }) => !!opts.apply || opts.undo !== undefined,
18
20
  person: PERSON,
19
21
  agentMay: { when: "without --apply and --undo (the preview)", check: (_ctx, { opts }) => !opts.apply && opts.undo === undefined },
20
22
  description: "The folio or page and the image each source's locator names (fol. 12v, pag. 112, S. 15, snímek 34, Bild 7, …) taken into\n" +
@@ -157,6 +157,22 @@ export const VIEWER_PART_PX = 2400;
157
157
  * waits count only the time frames come; no frame for this long in all is said.
158
158
  */
159
159
  export const VIEWER_HIDDEN_MS = 30_000;
160
+ /**
161
+ * browser.tileWait (a setting not listed, for a browser that draws a viewer's tab slowly — about a frame a second, in
162
+ * which OpenSeadragon asks about one tile a frame and a page's tiles take minutes): its seconds, a whole number from
163
+ * TILE_WAIT_MIN_S to TILE_WAIT_MAX_S. Unset, the viewer's tiles are waited for 30 s, as ever; set, the wait goes on past
164
+ * 30 s while tiles still come — until none came for TILE_QUIET_MS, at most this long —, over several calls of the
165
+ * browser's JavaScript tool (each answers "strom-wait …" after WAIT_CALL_MS; the same script again goes on).
166
+ */
167
+ export const TILE_WAIT_MIN_S = 60;
168
+ export const TILE_WAIT_MAX_S = 600;
169
+ export const TILE_WAIT_SUGGESTED_S = 180;
170
+ /** With browser.tileWait: the wait goes on past 30 s only when a tile came within this time (they still come). */
171
+ export const TILE_RECENT_MS = 10_000;
172
+ /** With browser.tileWait: no tile for this long, and the wait is over. */
173
+ export const TILE_QUIET_MS = 30_000;
174
+ /** With browser.tileWait: a call of the script that still waits answers "strom-wait" after this (a browser tool's call ends at about 45 s). */
175
+ export const WAIT_CALL_MS = 35_000;
160
176
  const safe = (s) => s.normalize("NFC").replace(/[^\p{L}\p{M}\p{N}._-]+/gu, "_").replace(/^[._]+/, "") || "x";
161
177
  /** The name a planned image is saved under: strom-<connector>-<book>-0009 (a part: …-0009-part). */
162
178
  export function fileBase(connector, book, n, part) {
@@ -388,7 +404,9 @@ export function pageScript(plan) {
388
404
  * whole or in part, at most as sharp as the image, waited for until every tile is there; what the browser drew of it
389
405
  * cut out and saved as a JPEG under a name. No request of its own: the tiles are the ones the viewer asks for.
390
406
  */
391
- const CAPTURE_JS = `const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
407
+ function captureJs(o = {}) {
408
+ const slow = o.tileWaitMs !== undefined;
409
+ return `const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
392
410
  // a tab the browser does not draw (another tab in front, its window covered or minimized — the page may still be
393
411
  // told it is visible) gets no frame, and the viewer, which counts its tiles only when it draws, never says they are
394
412
  // all there: a wait counts only the time frames come (one asked at each look), and gives up once none came for
@@ -410,7 +428,7 @@ const CAPTURE_JS = `const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
410
428
  if (drawing()) left -= now - t;
411
429
  else unseen += now - t;
412
430
  t = now;
413
- if (left <= 0 || notShown()) return false;
431
+ if (left <= 0 || notShown()${slow ? " || live.cancel" : ""}) return false;
414
432
  await sleep(200);
415
433
  }
416
434
  };
@@ -481,7 +499,11 @@ const CAPTURE_JS = `const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
481
499
  const style = el.getAttribute("style");
482
500
  let failed = 0;
483
501
  const onFail = () => failed++;
484
- v.addHandler("tile-load-failed", onFail);
502
+ v.addHandler("tile-load-failed", onFail);${slow ? `
503
+ // the tiles that come (browser.tileWait): a wait past 30 s goes on only while they come
504
+ let lastTile = 0;
505
+ const onTile = () => ((lastTile = Date.now()), (live.tiles = (live.tiles || 0) + 1));
506
+ v.addHandler("tile-loaded", onTile);` : ""}
485
507
  try {
486
508
  el.style.cssText = (style || "") + ";position:fixed;left:0;top:0;width:" + cw + "px;height:" + ch + "px;max-width:none;max-height:none;z-index:2147483646";
487
509
  await until(() => { const s = v.viewport.getContainerSize(); return Math.abs(s.x - cw) < 2 && Math.abs(s.y - ch) < 2; }, 5000);
@@ -492,9 +514,33 @@ const CAPTURE_JS = `const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
492
514
  await sleep(300);
493
515
  const loaded = () => (typeof item.getFullyLoaded === "function" ? item.getFullyLoaded() : true);
494
516
  const jobs = () => (v.imageLoader ? v.imageLoader.jobsInProgress : 0);
495
- const done = () => loaded() && jobs() === 0;
496
- if (!(await until(done, 30000))) {
497
- if (notShown()) return { why: NOT_SHOWN };
517
+ const done = () => loaded() && jobs() === 0;${slow ? `
518
+ const begun = Date.now();
519
+ let slowNow = false;
520
+ // 30 s over and a tile came within the last ${TILE_RECENT_MS / 1000} s: a browser that draws the tab slowly — waited on
521
+ // while tiles come (no tile for ${TILE_QUIET_MS / 1000} s: over), at most ${o.tileWaitMs / 1000} s; the call of the
522
+ // script answers "strom-wait" meanwhile, the same script again goes on
523
+ const slowTiles = async () => {
524
+ if (!lastTile || Date.now() - lastTile > ${TILE_RECENT_MS} || live.cancel) return false;
525
+ // tiles that come are no tab left undrawn: from here, that is a tab with no frame for ${VIEWER_HIDDEN_MS / 1000} s
526
+ slowNow = live.slow = true;
527
+ unseen = 0;
528
+ live.begun = live.begun || begun;
529
+ if (live.wake) live.wake();
530
+ for (;;) {
531
+ requestAnimationFrame(() => (lastFrame = Date.now()));
532
+ try {
533
+ if (done() || (typeof v.currentPage === "function" && v.currentPage() !== page)) return true;
534
+ } catch (e) {}
535
+ if (live.cancel || Date.now() - lastTile > ${TILE_QUIET_MS} || Date.now() - begun > ${o.tileWaitMs}) return false;
536
+ await sleep(200);
537
+ }
538
+ };` : ""}
539
+ if (!(await until(done, 30000))${slow ? " && !(await slowTiles())" : ""}) {${slow ? `
540
+ if (live.cancel) return { why: "another script of strom took this tab over" };
541
+ // waited on: the tab not drawn only when no frame came either
542
+ if (slowNow ? Date.now() - lastFrame > ${VIEWER_HIDDEN_MS} : notShown()) return { why: NOT_SHOWN };` : `
543
+ if (notShown()) return { why: NOT_SHOWN };`}
498
544
  // what the viewer said when the wait ended (no token of it a result could be taken for: no "n:nnn")
499
545
  const said = [];
500
546
  try {
@@ -504,7 +550,7 @@ const CAPTURE_JS = `const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
504
550
  const osd = window.OpenSeadragon && window.OpenSeadragon.version;
505
551
  if (osd && osd.versionStr) said.push("OpenSeadragon " + osd.versionStr);
506
552
  } catch (e) {}
507
- return { why: "the viewer's tiles did not all come in 30 s (" + said.join(", ") + ")" };
553
+ return { why: "the viewer's tiles did not all come in ${slow ? `" + (slowNow ? Math.round((Date.now() - begun) / 1000) : 30) + "` : "30"} s (" + said.join(", ") + ")${slow ? "" : ` — if they were still coming (a browser that draws the tab slowly, the last frame often a second ago or more): strom config set browser.tileWait ${TILE_WAIT_SUGGESTED_S}, then the same strom command again for a new script, which waits while they come`}" };
508
554
  }
509
555
  if (!(await frames()) && notShown()) return { why: NOT_SHOWN };
510
556
  if (failed) return { why: failed + " tile" + (failed === 1 ? "" : "s") + " of the image did not come — the archive may be busy", stop: true };
@@ -523,32 +569,69 @@ const CAPTURE_JS = `const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
523
569
  if (!blob) return { why: "the browser does not let this page save what its viewer drew (images of another site)" };
524
570
  return { blob };
525
571
  } finally {
526
- v.removeHandler("tile-load-failed", onFail);
572
+ v.removeHandler("tile-load-failed", onFail);${slow ? `
573
+ v.removeHandler("tile-loaded", onTile);` : ""}
527
574
  if (style === null) el.removeAttribute("style");
528
575
  else el.setAttribute("style", style);
529
576
  try { v.viewport.goHome(true); } catch (e) {}
530
577
  }
531
578
  };`;
579
+ }
580
+ /**
581
+ * With browser.tileWait, a script that saves from a viewer runs in the tab's own keeping (window.__stromCapture): a call
582
+ * of the browser's JavaScript tool must end in time (about 45 s), the tiles of a slowly drawn tab may take minutes. A
583
+ * call that still waits for them answers "strom-wait …" after WAIT_CALL_MS; the same script run again (the same plan)
584
+ * goes on with the wait at work — nothing shown, paged or asked anew — and answers its "strom-result …" once it is over.
585
+ * Another script of strom in the same tab stops the one at work first (the viewer as it was). Unset: none of this.
586
+ */
587
+ const RESUME_HEAD = `
588
+ // browser.tileWait: the run kept in the tab, so that a call ends in time while the viewer's tiles still come
589
+ const key = JSON.stringify(plan);
590
+ const attach = async (live) => {
591
+ const t0 = Date.now();
592
+ if (!live.slow && !live.done) await Promise.race([live.promise, new Promise((r) => (live.wake = r))]);
593
+ while (!live.done && Date.now() - t0 < ${WAIT_CALL_MS}) await new Promise((r) => setTimeout(r, 200));
594
+ if (!live.done) return "strom-wait — the viewer's tiles still come in (" + (live.tiles || 0) + " so far, " + Math.round((Date.now() - live.begun) / 1000) + " s waited): run this same script again in this tab — it goes on waiting where it is and asks nothing anew; only its last answer, strom-result …, counts";
595
+ if (window.__stromCapture === live) delete window.__stromCapture;
596
+ if (live.error) throw live.error;
597
+ return live.result;
598
+ };
599
+ const was = window.__stromCapture;
600
+ if (was && was.key === key) return attach(was);`;
601
+ const RESUME_TAKE = `
602
+ // another script of strom at work in this tab: it stops first, the viewer as it was
603
+ if (was && !was.done) {
604
+ was.cancel = true;
605
+ await was.promise;
606
+ }
607
+ const live = (window.__stromCapture = { key, slow: false, cancel: false, done: false, tiles: 0 });`;
608
+ const RESUME_RUN = `
609
+ live.promise = (async () => {`;
610
+ const RESUME_TAIL = `
611
+ })().then((r) => ((live.result = r), (live.done = true)), (e) => ((live.error = e), (live.done = true)));
612
+ return attach(live);`;
532
613
  /**
533
614
  * The script that saves the plan's images from the portal's own viewer in the tab (browser.viewer; top-level await):
534
615
  * the tab on the book's page, each image its page n of the viewer, shown and saved at its time, one after the other.
535
616
  * Never a reload, never a request of its own. It returns "strom-result 9:200:412918 10:failed".
536
617
  */
537
- export function viewerScript(plan) {
618
+ export function viewerScript(plan, o = {}) {
619
+ const slow = o.tileWaitMs !== undefined;
538
620
  const open = new URL(plan.open);
539
621
  const data = { origin: plan.origin, path: open.pathname, open: plan.open, until: plan.until, gap: plan.gap, items: plan.items.map((i) => ({ n: i.n, file: i.file, at: i.at, ...(i.region ? { region: i.region } : {}) })) };
540
622
  return `await (async () => {
541
- const plan = ${JSON.stringify(data)};
623
+ const plan = ${JSON.stringify(data)};${slow ? RESUME_HEAD : ""}
542
624
  if (location.origin !== plan.origin || location.pathname !== plan.path) return "strom: this tab is not on the book's page — open " + plan.open + " (once; then page through it, never reload it)";
543
- if (Date.now() > plan.until) return "strom: this plan is over — run strom fetch again for a new one";
544
- ${CAPTURE_JS}
625
+ if (Date.now() > plan.until) return "strom: this plan is over — run strom fetch again for a new one";${slow ? RESUME_TAKE : ""}
626
+ ${captureJs(o)}${slow ? RESUME_RUN : ""}
545
627
  const v = findViewer();
546
628
  if (!v) return "strom: no image viewer on this page yet — wait until it shows an image; a check whether a person is there is the user's to pass";
547
629
  const out = [];
548
630
  let last = 0;
549
631
  for (const it of plan.items) {
550
632
  const wait = Math.max(it.at, last + plan.gap) - Date.now();
551
- if (wait > 0) await sleep(wait);
633
+ if (wait > 0) await sleep(wait);${slow ? `
634
+ if (live.cancel) return "strom: another script of strom took this tab over";` : ""}
552
635
  last = Date.now();
553
636
  const got = await capture(v, it.n - 1, it.region, it.region ? ${VIEWER_PART_PX} : ${VIEWER_WHOLE_PX});
554
637
  if (!got.blob) {
@@ -558,7 +641,7 @@ export function viewerScript(plan) {
558
641
  save(got.blob, it.file + ".jpg");
559
642
  out.push(it.n + ":200:" + got.blob.size);
560
643
  }
561
- return "strom-result " + out.join(" ");
644
+ return "strom-result " + out.join(" ");${slow ? RESUME_TAIL : ""}
562
645
  })()`;
563
646
  }
564
647
  /** A file the browser has had this long to come before it counts as held back (the script runs after strom media save). */
@@ -596,19 +679,20 @@ export function waitFileBase(task, n) {
596
679
  * site, path, parameters and anchor, so a viewer paged to another image is refused, nothing saved (`other`: that
597
680
  * said for the person, in the research language). It returns "strom-result 40:200:412918", or why not.
598
681
  */
599
- export function saveScript(o) {
682
+ export function saveScript(o, c = {}) {
683
+ const slow = c.tileWaitMs !== undefined;
600
684
  const u = new URL(o.url);
601
685
  const data = { origin: u.origin, path: u.pathname, search: u.search, hash: u.hash, url: o.url, until: o.until, n: o.n, file: o.file, ...(o.other ? { other: o.other } : {}) };
602
686
  return `await (async () => {
603
- const plan = ${JSON.stringify(data)};
687
+ const plan = ${JSON.stringify(data)};${slow ? RESUME_HEAD : ""}
604
688
  if (location.origin !== plan.origin || location.pathname !== plan.path) return "strom: this tab is not on " + plan.url + " — that page was allowed, no other";
605
689
  // the page of image n, as the viewer keeps it in the address: the same parameters and anchor, or another image shown
606
690
  const params = (q) => [...new URLSearchParams(q)].map((kv) => kv.join("=")).sort().join("&");
607
691
  const anchor = (h) => (h === "#" ? "" : h);
608
692
  if (params(location.search || "") !== params(plan.search) || anchor(location.hash || "") !== anchor(plan.hash))
609
693
  return "strom: this tab shows " + location.href + ", not " + plan.url + " — another image than " + plan.n + " (the viewer was paged); nothing saved. Page the viewer back to image " + plan.n + " or open " + plan.url + " (once), then run the script again; else tell the user" + (plan.other ? ": " + plan.other : "");
610
- if (Date.now() > plan.until) return "strom: this script is over — run strom media save again";
611
- ${CAPTURE_JS}
694
+ if (Date.now() > plan.until) return "strom: this script is over — run strom media save again";${slow ? RESUME_TAKE : ""}
695
+ ${captureJs(c)}${slow ? RESUME_RUN : ""}
612
696
  const v = findViewer();
613
697
  if (v) {
614
698
  const got = await capture(v, -1, undefined, ${VIEWER_WHOLE_PX});
@@ -640,6 +724,6 @@ export function saveScript(o) {
640
724
  }
641
725
  const ext = { "image/jpeg": ".jpg", "image/png": ".png", "image/webp": ".webp", "image/gif": ".gif", "image/tiff": ".tif" }[(blob.type || "").split(";")[0].trim()] || ".jpg";
642
726
  save(blob, plan.file + ext);
643
- return "strom-result " + plan.n + ":200:" + blob.size;
727
+ return "strom-result " + plan.n + ":200:" + blob.size;${slow ? RESUME_TAIL : ""}
644
728
  })()`;
645
729
  }
@@ -12,7 +12,7 @@ import { UsageError } from "./errors.js";
12
12
  import { DEFAULT_AGENT, PROFILES, TIERS } from "../agents/profiles.js";
13
13
  import { ALL_EFFORTS, EFFORTS, hasEffort, RECOMMENDED_EFFORT } from "../agents/effort.js";
14
14
  import { EXCERPT_QUALITIES, EXCERPT_SCOPES, EXCERPTS_MAX_MB, OFF_LINE_CHOICES, STRATEGIES } from "./model.js";
15
- import { downloadsDir } from "./browser.js";
15
+ import { downloadsDir, TILE_WAIT_MAX_S, TILE_WAIT_MIN_S, TILE_WAIT_SUGGESTED_S } from "./browser.js";
16
16
  import { acquireLock } from "./lock.js";
17
17
  import { defaultAppUrl, isAppVersion, isStromAppOrigin, STROM_APP_BETA_URL, STROM_APP_URL } from "./stromapp.js";
18
18
  import { updateChannel } from "./update.js";
@@ -108,6 +108,7 @@ export const SETTINGS = [
108
108
  { key: "excerpts.mb", env: "STROM_EXCERPTS_MB", tree: true, kind: "number", description: `limit of all the images in one file for the Strom app, MB (default ${EXCERPTS_MAX_MB}): over it they are made smaller, then the farthest from the research left out; with excerpts.for all, the entries nobody cites only where there is room — strom says so` },
109
109
  { key: "strom.version", env: "STROM_APP_VERSION", tree: true, kind: "version", description: "version of the Strom app the Strom GEDCOM is for (set by the app)" },
110
110
  { key: "connectors.consent", env: "STROM_CONNECTORS_CONSENT", tree: false, kind: "choice", choices: ["off", "on"], description: "off (default): connectors run without asking — paced by strom, only to their hosts; on: each needs the user's yes, in their terminal, to it and to each archive host" },
111
+ { key: "browser.tileWait", env: "", tree: false, kind: "number", hidden: true, description: `seconds at most a script that saves from an archive's viewer (OpenSeadragon) through the browser waits for the viewer's tiles while they still come, ${TILE_WAIT_MIN_S} to ${TILE_WAIT_MAX_S} (${TILE_WAIT_SUGGESTED_S} suggested) — for a browser that draws the tab slowly (about a frame a second), whose images otherwise end "tiles did not all come in 30 s"; the script answers "strom-wait" meanwhile and is run again. Unset (default): 30 s` },
111
112
  { key: "browser.downloads", env: "STROM_BROWSER_DOWNLOADS", tree: false, kind: "path", description: "the folder your browser saves downloads into (default: the system's Downloads folder) — strom takes a connector's images over from there" },
112
113
  // Read from the config file only — no variable, no flag, no tree: nothing an agent can set.
113
114
  { key: "agent.permissions", env: "", tree: false, kind: "choice", choices: PERMISSION_LEVELS, description: "what the agent may do without asking you: ask (what the tree allows; anything else it asks), auto (default: what the tree allows; anything else the agent's own review decides, asking only when risky), full (everything but what the tree denies) — only you raise it" },
@@ -162,6 +163,7 @@ const FIELDS = {
162
163
  "queue.suggestPersons": "queueSuggestPersons",
163
164
  "connectors.consent": "connectorsConsent",
164
165
  "browser.downloads": "browserDownloads",
166
+ "browser.tileWait": "browserTileWait",
165
167
  "agent.permissions": "agentPermissions",
166
168
  "agent.where": "agentWhere",
167
169
  "agent.remote": "agentRemote",
@@ -205,7 +207,7 @@ export function settingDescription(def, env) {
205
207
  export function settingDef(key) {
206
208
  const def = SETTINGS.find((s) => s.key === key);
207
209
  if (!def)
208
- throw new UsageError(`unknown setting "${key}"`, { hint: `settings: ${SETTINGS.map((s) => s.key).join(", ")}` });
210
+ throw new UsageError(`unknown setting "${key}"`, { hint: `settings: ${SETTINGS.filter((s) => !s.hidden).map((s) => s.key).join(", ")}` });
209
211
  return def;
210
212
  }
211
213
  export function configFile(env) {
@@ -336,6 +338,8 @@ export function checkValue(def, raw, resolvePath, env = {}) {
336
338
  throw new UsageError(`${def.key} is a whole number from 2`, { hint: `one task off the lines in so many sessions — strom config set queue.offLineShare ${OFF_LINE_SHARE}` });
337
339
  if ((def.key === "queue.suggestTasks" || def.key === "queue.suggestPersons") && !Number.isInteger(n))
338
340
  throw new UsageError(`${def.key} is a whole number from 1`);
341
+ if (def.key === "browser.tileWait" && (!Number.isInteger(n) || n < TILE_WAIT_MIN_S || n > TILE_WAIT_MAX_S))
342
+ throw new UsageError(`${def.key} is a whole number of seconds from ${TILE_WAIT_MIN_S} to ${TILE_WAIT_MAX_S}`, { hint: `strom config set browser.tileWait ${TILE_WAIT_SUGGESTED_S} · back to 30 s: strom config unset browser.tileWait` });
339
343
  if (def.key === "read.parallel" && (!Number.isInteger(n) || n > READ_PARALLEL_MAX))
340
344
  throw new UsageError(`${def.key} is a whole number from 1 to ${READ_PARALLEL_MAX}`, { hint: `readers at the same time — strom config set read.parallel ${DEFAULT_READ_PARALLEL}` });
341
345
  return def.key === "brief.budget" || def.key === "web.perHost" ? Math.max(1, Math.round(n)) : n;
@@ -536,6 +540,12 @@ export class Settings {
536
540
  const n = typeof v === "number" ? v : typeof v === "string" && v.trim() ? Number(v) : NaN;
537
541
  return Number.isInteger(n) && n >= 0 ? n : DEFAULT_LIVE_IDLE_MINUTES;
538
542
  }
543
+ /** browser.tileWait in ms (a whole number of seconds in its range), else undefined: the viewer's tiles waited for 30 s. */
544
+ tileWaitMs() {
545
+ const v = readStored(this.config, "browser.tileWait", "");
546
+ const n = typeof v === "number" ? v : typeof v === "string" && v.trim() ? Number(v) : NaN;
547
+ return Number.isInteger(n) && n >= TILE_WAIT_MIN_S && n <= TILE_WAIT_MAX_S ? n * 1000 : undefined;
548
+ }
539
549
  /** Readers of strom read at the same time (read.parallel: tree > user, else DEFAULT_READ_PARALLEL); a stored value out of range is brought into it. */
540
550
  readParallel(tree) {
541
551
  const n = Math.round(this.number("read.parallel", tree, DEFAULT_READ_PARALLEL));
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.31.0";
35
+ export const VERSION = "1.31.1-beta.2";
36
36
  /** What a new research is settled with from the start: nothing an older strom counted otherwise to set right in it. */
37
37
  export const NEW_TREE_SETTLED = ["readers-1", "proven-originals-1", "origins-1", "verify-originals-1", "origins-tree-1"];
38
38
  const GITIGNORE = `# Strom Research — local state and large files are not versioned
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strom-research",
3
- "version": "1.31.0",
3
+ "version": "1.31.1-beta.2",
4
4
  "stromDoc": "f1f6a992bb9cafaa788ee51023070309bb452997",
5
5
  "description": "Genealogical research toolkit for AI coding agents",
6
6
  "type": "module",
@@ -61,5 +61,8 @@
61
61
  "devDependencies": {
62
62
  "@types/node": "^22.20.4",
63
63
  "typescript": "^7.0.2"
64
+ },
65
+ "publishConfig": {
66
+ "tag": "beta"
64
67
  }
65
68
  }