strom-research 1.19.0-beta.2 → 1.19.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.cs.md CHANGED
@@ -7,7 +7,7 @@ Změny každé verze ve zkratce. Úplné poznámky a instalační řádky jsou n
7
7
 
8
8
  ## 1.19.0
9
9
 
10
- *Připravuje se: bety do 1.19.0-beta.2. Oddíl bude úplný s vydáním.*
10
+ *Připravuje se: bety do 1.19.0-beta.3. Oddíl bude úplný s vydáním.*
11
11
 
12
12
  - **Na archiv, který zmlkl, se čeká, místo opakovaných dotazů.** Když archiv přestane odpovídat, strom ho nechá na
13
13
  pokoji hodinu — a když týž den mlčí dál, dvě a pak čtyři hodiny — a agent se dozví, do kdy: mezitím dělá
@@ -22,6 +22,10 @@ Změny každé verze ve zkratce. Úplné poznámky a instalační řádky jsou n
22
22
  - **Ostřejší část snímku se opravdu čte.** Když z archivu přišla část snímku v lepším rozlišení, agent i jeho čtenáři
23
23
  se na to místo dívají v ní — i když vyznačené místo kousek přesahuje, zbytek se řekne —, ne na celý zmenšený snímek;
24
24
  ostřejší část, která místo pokrývá jen zčásti, se uvede i s tím, jak se na ni podívat.
25
+ - **Dokument se přečte spolehlivěji.** Čtenář zapisuje čtení do své zprávy průběžně, a čtení dvou čtenářů, kde četl
26
+ jen jeden, to tak řekne — nikdy, že se shodují.
27
+ - **Propojení s telefonem čeká na výzkum, neříká se jako chyba.** Než se po spuštění počítače spustí výzkum, `strom
28
+ phone` i nastavení řeknou, že propojení je zapnuté a jeho server se znovu spustí se spuštěním výzkumu.
25
29
 
26
30
  ## 1.18.0
27
31
 
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.19.0
9
9
 
10
- *In Vorbereitung: die Betas bis 1.19.0-beta.2. Der Abschnitt ist mit dem Release vollständig.*
10
+ *In Vorbereitung: die Betas bis 1.19.0-beta.3. Der Abschnitt ist mit dem Release vollständig.*
11
11
 
12
12
  - **Auf ein verstummtes Archiv wird gewartet, statt es immer wieder zu fragen.** Antwortet ein Archiv nicht mehr,
13
13
  lässt strom es eine Stunde in Ruhe — zwei, dann vier, wenn es am selben Tag still bleibt — und der Agent erfährt, bis
@@ -25,6 +25,11 @@ Die Änderungen jeder Version in Kürze. Die vollständigen Hinweise und die Ins
25
25
  sehen der Agent und seine Leser diese Stelle darin an — auch wenn die markierte Stelle etwas darüber hinausreicht,
26
26
  der Rest wird genannt — statt des ganzen, verkleinerten Scans; ein schärferer Teil, der die Stelle nur zum Teil
27
27
  zeigt, wird mit dem Weg genannt, ihn anzusehen.
28
+ - **Ein Dokument wird verlässlicher gelesen.** Ein Leser schreibt seine Lesung laufend in seinen Bericht, und eine
29
+ Lesung zweier Leser, bei der nur einer las, sagt das so — nie, dass sie übereinstimmen.
30
+ - **Die Verbindung mit dem Telefon wartet auf die Forschung, nicht als Fehler genannt.** Bevor die Forschung nach dem
31
+ Neustart des Computers startet, sagen `strom phone` und die Einstellungen, dass die Verbindung an ist und ihr Server
32
+ mit der Forschung wieder startet.
28
33
 
29
34
  ## 1.18.0
30
35
 
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.19.0
9
9
 
10
- *In preparation: the betas up to 1.19.0-beta.2. The section is complete with the release.*
10
+ *In preparation: the betas up to 1.19.0-beta.3. The section is complete with the release.*
11
11
 
12
12
  - **An archive that went silent is waited for, not asked again and again.** When an archive stops answering, strom
13
13
  leaves it alone for an hour — two, then four when it stays silent the same day — and the agent hears until when:
@@ -24,6 +24,10 @@ The changes of each version in short. The full notes and the install lines are o
24
24
  agent and its readers look at that place in it — also when the place they mark reaches a little past it, the rest
25
25
  said — instead of the whole scan, reduced; a sharper part that holds only some of the place is named with the way
26
26
  to look at it.
27
+ - **A document read more surely.** A reader writes its reading into its report as it goes, and a reading of two readers where
28
+ only one read says so, never that they agree.
29
+ - **The phone connection waits for the research, not said as an error.** Before the research starts after the computer
30
+ started again, `strom phone` and the settings say the connection is on and its server starts again with the research.
27
31
 
28
32
  ## 1.18.0
29
33
 
@@ -1298,6 +1298,7 @@
1298
1298
  "ui.phone.window.no": "Zrušit",
1299
1299
  "ui.phone.on": "propojení s telefonem: zapnuto, v místní síti na {urls}",
1300
1300
  "ui.phone.starting": "propojení s telefonem: zapnuto, jeho server se spouští",
1301
+ "ui.phone.waiting": "propojení s telefonem: zapnuto, jeho server se znovu spustí se spuštěním výzkumu",
1301
1302
  "ui.phone.error": "propojení s telefonem: zapnuto, ale telefon se k němu nedostane: {why}",
1302
1303
  "ui.phone.why.no-lan": "počítač není v žádné místní síti (Wi-Fi ani kabel)",
1303
1304
  "ui.phone.why.port-busy": "porty 47800–47819 mají obsazené jiné programy",
@@ -1298,6 +1298,7 @@
1298
1298
  "ui.phone.window.no": "Abbrechen",
1299
1299
  "ui.phone.on": "Verbindung mit dem Telefon: an, im lokalen Netz unter {urls}",
1300
1300
  "ui.phone.starting": "Verbindung mit dem Telefon: an, ihr Server startet",
1301
+ "ui.phone.waiting": "Verbindung mit dem Telefon: an, ihr Server startet wieder, sobald die Forschung startet",
1301
1302
  "ui.phone.error": "Verbindung mit dem Telefon: an, aber ein Telefon erreicht sie nicht: {why}",
1302
1303
  "ui.phone.why.no-lan": "der Computer ist in keinem lokalen Netz (weder WLAN noch Kabel)",
1303
1304
  "ui.phone.why.port-busy": "die Ports 47800–47819 belegen andere Programme",
@@ -180,7 +180,7 @@ async function phoneStep(ctx, run, lang) {
180
180
  await pause(ctx, lang);
181
181
  return;
182
182
  }
183
- const i = await ctx.choose(t(s.state === "on" ? "ui.phone.on" : "ui.phone.error", { urls: s.addresses.map((a) => a.url).join(", "), why: t(`ui.phone.why.${s.error?.code ?? "bind-failed"}`) }), [{ label: t("ui.phone.menu.off") }, ...s.phones.map((p) => ({ label: t("ui.phone.menu.remove", { name: p.name || p.id, date: p.pairedAt.slice(0, 10) }) }))], 0, { back: t("ui.browse.back") });
183
+ const i = await ctx.choose(t(s.state === "on" ? "ui.phone.on" : s.error?.waiting ? "ui.phone.waiting" : "ui.phone.error", { urls: s.addresses.map((a) => a.url).join(", "), why: t(`ui.phone.why.${s.error?.code ?? "bind-failed"}`) }), [{ label: t("ui.phone.menu.off") }, ...s.phones.map((p) => ({ label: t("ui.phone.menu.remove", { name: p.name || p.id, date: p.pairedAt.slice(0, 10) }) }))], 0, { back: t("ui.browse.back") });
184
184
  if (i === undefined)
185
185
  return;
186
186
  if (i === 0)
package/dist/cli/ui.js CHANGED
@@ -1198,6 +1198,7 @@ export const UI = {
1198
1198
  "ui.phone.window.no": "Cancel",
1199
1199
  "ui.phone.on": "phone connection: on, on the local network at {urls}",
1200
1200
  "ui.phone.starting": "phone connection: on, its server is starting",
1201
+ "ui.phone.waiting": "phone connection: on, its server starts again when the research starts",
1201
1202
  "ui.phone.error": "phone connection: on, but a phone cannot reach it: {why}",
1202
1203
  "ui.phone.why.no-lan": "this computer is on no local network (Wi-Fi or a cable)",
1203
1204
  "ui.phone.why.port-busy": "the ports 47800–47819 are taken by other programs",
@@ -13,7 +13,9 @@ function stateLines(lang, s) {
13
13
  ? ui(lang, "ui.phone.on", { urls: s.addresses.map((a) => a.url).join(", ") })
14
14
  : ui(lang, "ui.phone.starting")
15
15
  : s.state === "error"
16
- ? ui(lang, "ui.phone.error", { why: ui(lang, `ui.phone.why.${s.error?.code ?? "bind-failed"}`) })
16
+ ? s.error?.waiting
17
+ ? ui(lang, "ui.phone.waiting")
18
+ : ui(lang, "ui.phone.error", { why: ui(lang, `ui.phone.why.${s.error?.code ?? "bind-failed"}`) })
17
19
  : s.state === "confirm"
18
20
  ? ui(lang, "ui.phone.confirm")
19
21
  : s.state === "declined"
@@ -1219,19 +1219,27 @@ export function buildResult(tree, s) {
1219
1219
  return out;
1220
1220
  };
1221
1221
  let entries = entriesOf(firsts, false);
1222
+ const firstRead = entries.length > 0;
1222
1223
  const blindRan = blinds.some((r) => r);
1223
- // the first reader failed, the blind one read: its entries, untranslated
1224
+ // the first reader failed, the blind one read: its entries, untranslated — never held against themselves
1224
1225
  if (!entries.length && blindRan)
1225
1226
  entries = entriesOf(blinds, false);
1226
1227
  let agree = null;
1227
- if (blindRan && s.readers > 1 && entries.length) {
1228
+ if (blindRan && s.readers > 1 && firstRead) {
1228
1229
  const blindEntries = entriesOf(blinds, true);
1229
1230
  const c = compareReadings(entries, blindEntries);
1230
1231
  entries = c.entries;
1231
1232
  agree = c.agree;
1232
1233
  }
1233
1234
  entries = withTree(tree, entries);
1234
- const ran = (firsts.some((r) => r?.outcome === "ok") ? 1 : 0) + (blinds.some((r) => r?.outcome === "ok") ? 1 : 0);
1235
+ // a reader ran when it ended well and its report says something (an answer in prose only is no reading)
1236
+ const said = (r) => {
1237
+ if (r?.outcome !== "ok")
1238
+ return false;
1239
+ const rep = read(r);
1240
+ return !!rep && (rep.entries.length > 0 || rep.done || rep.doc.legible !== undefined);
1241
+ };
1242
+ const ran = (firsts.some(said) ? 1 : 0) + (blinds.some(said) ? 1 : 0);
1235
1243
  const usd = s.reports.reduce((n, r) => n + (r.usd ?? 0), 0);
1236
1244
  const partial = s.reports.some((r) => r.outcome !== undefined && (r.usd === undefined || r.partial));
1237
1245
  return {
@@ -511,7 +511,7 @@ export function phoneState(env) {
511
511
  // just turned on: its server on the way
512
512
  if (c.since && Date.now() - Date.parse(c.since) < 15_000)
513
513
  return { ...base, state: "on", since: c.since, phones };
514
- return { ...base, state: "error", since: c.since ?? null, error: { code: "bind-failed", detail: run?.ended ? `the server ended: ${run.ended.reason}` : "the server does not run" }, phones };
514
+ return { ...base, state: "error", since: c.since ?? null, error: { code: "bind-failed", detail: run?.ended ? `the server ended: ${run.ended.reason}` : "the server does not run", waiting: true }, phones };
515
515
  }
516
516
  const a = readAsk(env);
517
517
  if (asking(a))
@@ -226,11 +226,15 @@ export function parseReport(text) {
226
226
  }
227
227
  return out;
228
228
  }
229
- /** Claude Code settings for a reader: it may read these views and write its report — nothing else. */
229
+ /**
230
+ * Claude Code settings for a reader: it may read these views and read and write its report — nothing else. Its report
231
+ * read too: Claude Code edits no file it has not read (found live 2026-10-21: every edit refused, the report kept only
232
+ * from the answer, a reader that answered in prose lost).
233
+ */
230
234
  export function readerSettings(views, report, toPermission) {
231
235
  return {
232
236
  permissions: {
233
- allow: [...views.map((v) => `Read(${toPermission(v)})`), `Write(${toPermission(report)})`, `Edit(${toPermission(report)})`],
237
+ allow: [...views.map((v) => `Read(${toPermission(v)})`), `Read(${toPermission(report)})`, `Write(${toPermission(report)})`, `Edit(${toPermission(report)})`],
234
238
  deny: ["Bash", "WebFetch", "WebSearch"],
235
239
  },
236
240
  };
package/dist/core/tree.js CHANGED
@@ -27,7 +27,7 @@ import { lastBackup } from "./backup.js";
27
27
  export const TREE_FILE = "strom.json";
28
28
  // between releases the candidate being made (a bridge run from the sources says what it is: the Strom app goes by it);
29
29
  // at a release the release's own (package.json)
30
- export const VERSION = "1.19.0-beta.2";
30
+ export const VERSION = "1.19.0-beta.3";
31
31
  const GITIGNORE = `# Strom Research — local state and large files are not versioned
32
32
  .strom/
33
33
  /media/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strom-research",
3
- "version": "1.19.0-beta.2",
3
+ "version": "1.19.0-beta.3",
4
4
  "description": "Genealogical research toolkit for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {