strom-research 1.31.0-beta.3 → 1.31.0-beta.4

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.31.0
9
9
 
10
- *Připravuje se: bety do 1.31.0-beta.3. Oddíl bude úplný s vydáním.*
10
+ *Připravuje se: bety do 1.31.0-beta.4. Oddíl bude úplný s vydáním.*
11
11
 
12
12
  - **`strom repair` už neodstraní práci, kterou poškozená historie skrývá.** Když se dá historie gitu výzkumu číst, ale
13
13
  je starší než jeho záznamy (cloudový disk vrátil starší `.git`, vedle něj kopie iCloudu jako `index 2`), `strom
@@ -52,7 +52,7 @@ Změny každé verze ve zkratce. Úplné poznámky a instalační řádky jsou n
52
52
  - **Hypotéza rozhodnutá v aplikaci Strom.** U hypotézy, jejíž varianty říkají, čí je kdo dítě nebo který je to pár, se
53
53
  varianta vybere v aplikaci (nebo „žádná neplatí“, „nechat otevřenou“, „vrátit rozhodnutí“). Terminál výzkumu ukáže
54
54
  otázku s variantami a co zapíše, jednou se zeptá – Enter je ano – a proč (Enter ponechá slova aplikace) a zapíše to
55
- jako rozhodnutí uživatele v aplikaci Strom. Stejně se přijme i víc návrhů agenta najednou. Zda jde o stejnou osobu
55
+ jako rozhodnutí uživatele v aplikaci Strom. Stejně se přijme i víc návrhů agenta najednou. Vybrat v aplikaci jde i hypotézu, jejíž varianty nikoho nespojují: zapíše se jen rozhodnutí, strom zůstane, jak je, a terminál to řekne před potvrzením. Zda jde o stejnou osobu
56
56
  nebo o sourozence, se dál rozhoduje v terminálu, na celé obrazovce hypotézy. Rozhodnutí je ve stromu hned: dítě nebo
57
57
  pár zvolené varianty se zapíše v témže uložení, s citací zdroje varianty, i v archivu – agent ho už znovu
58
58
  nezapisuje; co strom odmítne (dítě už má rodiče narozením), terminál řekne i proč a zapíše to agent. Při změně se
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.31.0
9
9
 
10
- *In Vorbereitung: die Betas bis 1.31.0-beta.3. Der Abschnitt ist mit dem Release vollständig.*
10
+ *In Vorbereitung: die Betas bis 1.31.0-beta.4. Der Abschnitt ist mit dem Release vollständig.*
11
11
 
12
12
  - **`strom repair` entfernt keine Arbeit mehr, die eine beschädigte Historie verbirgt.** Ist die Git-Historie einer
13
13
  Forschung lesbar, aber älter als ihre Datensätze (ein Cloud-Laufwerk hat ein älteres `.git` zurückgelegt, daneben
@@ -60,7 +60,7 @@ Die Änderungen jeder Version in Kürze. Die vollständigen Hinweise und die Ins
60
60
  oder welches Paar, wird in der App eine Variante gewählt (oder „keine trifft zu“, offen lassen, die Entscheidung
61
61
  zurücknehmen). Das Terminal der Forschung zeigt die Frage mit ihren Varianten und was geschrieben würde, fragt
62
62
  einmal – Enter ist ja – und nach dem Grund (Enter lässt die Worte der App) und schreibt es als Entscheidung der
63
- Person in der Strom-App. Mehrere Vorschläge des Agenten werden ebenso auf einmal übernommen. Ob zwei Einträge
63
+ Person in der Strom-App. Mehrere Vorschläge des Agenten werden ebenso auf einmal übernommen. Auch eine Hypothese, deren Varianten niemanden verbinden, wird dort gewählt: Nur die Entscheidung wird geschrieben, der Baum bleibt, wie er ist, und das Terminal sagt das vor der Bestätigung. Ob zwei Einträge
64
64
  dieselbe Person oder Geschwister sind, wird weiter im Terminal entschieden, auf dem ganzen Bildschirm der Hypothese.
65
65
  Die Entscheidung steht sofort im Baum: Kind oder Paar der gewählten Variante in derselben Speicherung geschrieben,
66
66
  mit der Quelle der Variante zitiert, auch in einem Archiv – der Agent schreibt es nicht noch einmal; was der Baum
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.31.0
9
9
 
10
- *In preparation: the betas up to 1.31.0-beta.3. The section is complete with the release.*
10
+ *In preparation: the betas up to 1.31.0-beta.4. The section is complete with the release.*
11
11
 
12
12
  - **`strom repair` no longer removes work a damaged history hides.** When a research's git history is readable but
13
13
  older than its records (a cloud drive put back an older `.git`, iCloud's copies such as `index 2` beside it), `strom
@@ -53,7 +53,7 @@ The changes of each version in short. The full notes and the install lines are o
53
53
  is or which couple, a variant is picked there (or none holds, left open, the decision taken back). The research's
54
54
  terminal shows the question with its variants and what would be written, asks once — Enter is yes — and why (Enter
55
55
  keeps the app's words), and writes it as the user's decision made in the Strom app. Several of the agent's proposals
56
- are taken at once the same way. Whether two records are the same person, or siblings, is still decided in the
56
+ are taken at once the same way. A hypothesis whose variants connect no one is picked there too: only the decision is written, the tree stays as it is, and the terminal says so before the yes. Whether two records are the same person, or siblings, is still decided in the
57
57
  terminal, on the hypothesis's whole screen. The decision is on the tree at once: the chosen variant's child or
58
58
  couple written in the same save, citing the variant's source, in an archive too — the agent does not record it
59
59
  again; what the tree refuses (a child with birth parents already) is said with why and left to the agent. Changed, what
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.31.0
9
9
 
10
- *W przygotowaniu: bety do 1.31.0-beta.3. Sekcja będzie kompletna z wydaniem.*
10
+ *W przygotowaniu: bety do 1.31.0-beta.4. Sekcja będzie kompletna z wydaniem.*
11
11
 
12
12
  - **`strom repair` nie usuwa już pracy ukrytej przez uszkodzoną historię.** Gdy historię gita badania da się odczytać,
13
13
  ale jest starsza niż jego rekordy (dysk w chmurze przywrócił starszy `.git`, obok kopie iCloud takie jak `index 2`),
@@ -55,7 +55,7 @@ Zmiany każdej wersji w skrócie. Pełne informacje o wydaniach i polecenia inst
55
55
  która to para, wariant wybiera się w aplikacji (albo „żaden nie jest prawdziwy”, pozostawienie otwartej, cofnięcie
56
56
  rozstrzygnięcia). Terminal badania pokazuje pytanie z wariantami i to, co zostanie zapisane, pyta raz – Enter to tak
57
57
  – i o powód (Enter zostawia słowa aplikacji), po czym zapisuje to jako rozstrzygnięcie użytkownika w aplikacji
58
- Strom. Tak samo przyjmuje się naraz kilka propozycji agenta. To, czy dwa zapisy to ta sama osoba, czy rodzeństwo,
58
+ Strom. Tak samo przyjmuje się naraz kilka propozycji agenta. W aplikacji wybiera się też hipotezę, której warianty nikogo nie łączą: zapisuje się tylko rozstrzygnięcie, drzewo zostaje bez zmian, a terminal mówi to przed potwierdzeniem. To, czy dwa zapisy to ta sama osoba, czy rodzeństwo,
59
59
  nadal rozstrzyga się w terminalu, na pełnym ekranie hipotezy. Rozstrzygnięcie jest w drzewie od razu: dziecko lub
60
60
  para wybranego wariantu zapisane w tym samym zapisie, z cytowaniem źródła wariantu, także w archiwum – agent nie
61
61
  zapisuje go ponownie; to, co drzewo odrzuci (dziecko ma już rodziców z urodzenia), terminal powie wraz z powodem
@@ -2316,6 +2316,7 @@
2316
2316
  "ui.link.what.hypothesis.pick": "rozhodnout hypotézu {id}: platí varianta {variant} – {claim}",
2317
2317
  "ui.link.what.hypothesis.repick": "změnit rozhodnutí hypotézy {id}: nově platí varianta {variant} – {claim}",
2318
2318
  "ui.link.hypothesis.joins": "Tím se ke stromu připojí {n, plural, one {# osoba} few {# osoby} other {# osob}}.",
2319
+ "ui.link.hypothesis.treeSame": "Strom se nezmění.",
2319
2320
  "ui.link.hypothesis.pick.default": "rozhodnuto v aplikaci Strom: varianta {variant}",
2320
2321
  "ui.link.hypothesis.repick.default": "změněno v aplikaci Strom: varianta {variant}",
2321
2322
  "ui.link.hypothesis.done": "✓ Hypotéza {id} je rozhodnutá.",
@@ -2316,6 +2316,7 @@
2316
2316
  "ui.link.what.hypothesis.pick": "die Hypothese {id} entscheiden: Variante {variant} trifft zu – {claim}",
2317
2317
  "ui.link.what.hypothesis.repick": "die Entscheidung der Hypothese {id} ändern: nun trifft Variante {variant} zu – {claim}",
2318
2318
  "ui.link.hypothesis.joins": "Damit {n, plural, one {kommt # Person} other {kommen # Personen}} zum Baum.",
2319
+ "ui.link.hypothesis.treeSame": "Der Stammbaum ändert sich nicht.",
2319
2320
  "ui.link.hypothesis.pick.default": "in der Strom-App entschieden: Variante {variant}",
2320
2321
  "ui.link.hypothesis.repick.default": "in der Strom-App geändert: Variante {variant}",
2321
2322
  "ui.link.hypothesis.done": "✓ Die Hypothese {id} ist entschieden.",
@@ -2316,6 +2316,7 @@
2316
2316
  "ui.link.what.hypothesis.pick": "rozstrzygnięcie hipotezy {id}: prawdziwy jest wariant {variant} – {claim}",
2317
2317
  "ui.link.what.hypothesis.repick": "zmiana rozstrzygnięcia hipotezy {id}: teraz prawdziwy jest wariant {variant} – {claim}",
2318
2318
  "ui.link.hypothesis.joins": "Tym samym do drzewa {n, plural, one {dołącza # osoba} few {dołączają # osoby} many {dołącza # osób} other {dołącza # osoby}}.",
2319
+ "ui.link.hypothesis.treeSame": "Drzewo się nie zmieni.",
2319
2320
  "ui.link.hypothesis.pick.default": "rozstrzygnięte w aplikacji Strom: wariant {variant}",
2320
2321
  "ui.link.hypothesis.repick.default": "zmienione w aplikacji Strom: wariant {variant}",
2321
2322
  "ui.link.hypothesis.done": "✓ Hipoteza {id} jest rozstrzygnięta.",
@@ -801,7 +801,10 @@ async function hypothesisPicked(ctx, run, lang, root, h, how, label) {
801
801
  const what = t(h.state === "open" ? "ui.link.what.hypothesis.pick" : "ui.link.what.hypothesis.repick", { id: h.id, variant: v.label, claim: truncate(v.claim, 110) });
802
802
  // the earlier link stays (other work stands on it) and the new one cannot be written: said first, cancel suggested
803
803
  const stays = changeWarning(lang, tree, h, v);
804
- if (!(await asks(ctx, lang, root, what, lines(n >= HYPOTHESIS_BIG_JOIN ? t("ui.link.hypothesis.joins", { n }) : undefined, stays) || undefined, !stays)))
804
+ // a variant that connects nothing, and nothing of an earlier decision on the tree to take off: only the decision is
805
+ // written — said, never a promise of a change (spec 074 K1.6)
806
+ const same = !v.links?.length && !(h.wrote ?? []).some((w) => stillOnTree(tree, w));
807
+ if (!(await asks(ctx, lang, root, what, lines(same ? t("ui.link.hypothesis.treeSame") : undefined, n >= HYPOTHESIS_BIG_JOIN ? t("ui.link.hypothesis.joins", { n }) : undefined, stays) || undefined, !stays)))
805
808
  return false;
806
809
  const reason = await why(t(h.state === "open" ? "ui.link.hypothesis.pick.default" : "ui.link.hypothesis.repick.default", { variant: v.label }));
807
810
  if (!reason)
package/dist/cli/ui.js CHANGED
@@ -2305,6 +2305,7 @@ export const UI = {
2305
2305
  "ui.link.what.hypothesis.pick": "decide hypothesis {id}: variant {variant} holds — {claim}",
2306
2306
  "ui.link.what.hypothesis.repick": "change the decision of hypothesis {id}: now variant {variant} holds — {claim}",
2307
2307
  "ui.link.hypothesis.joins": "This joins {n, plural, one {# person} other {# people}} to the tree.",
2308
+ "ui.link.hypothesis.treeSame": "The tree does not change.",
2308
2309
  "ui.link.hypothesis.pick.default": "decided in the Strom app: variant {variant}",
2309
2310
  "ui.link.hypothesis.repick.default": "changed in the Strom app: variant {variant}",
2310
2311
  "ui.link.hypothesis.done": "✓ Hypothesis {id} is decided.",
@@ -784,13 +784,13 @@ export function leftToAgent(tree, id) {
784
784
  // ── decided in the Strom app (spec 074) ────────────────────────────────────
785
785
  /**
786
786
  * Whether a hypothesis is one the Strom app may decide by its link with a variant (strom-research://hypothesis?…&
787
- * do=decide&variant=): a pick among closed choices — every link of every variant says whose child or which couple, and
788
- * one variant at least says what it would connect. Two records of one person (same) and siblings are decided in the
789
- * research (a merge of people follows them), and so is one whose variants say nothing they connect.
787
+ * do=decide&variant=): a pick among closed choices — every link of every variant says whose child or which couple. One
788
+ * whose variants connect nothing is a pick too (spec 074 K1.6): only the decision is written, the tree stays as it is.
789
+ * Two records of one person (same) and siblings are decided in the research (a merge of people follows them), and so is
790
+ * one where any variant says either.
790
791
  */
791
792
  export function pickableInApp(h) {
792
- const links = h.variants.flatMap((v) => v.links ?? []);
793
- return links.length > 0 && links.every((l) => l.kind === "child" || l.kind === "partners");
793
+ return h.variants.every((v) => (v.links ?? []).every((l) => l.kind === "child" || l.kind === "partners"));
794
794
  }
795
795
  /** The links of a decided hypothesis's variant the tree records now (by the decision itself or by other work). Of an abandoned or open one: none. */
796
796
  export function recordedOfDecision(tree, h) {
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-beta.3";
35
+ export const VERSION = "1.31.0-beta.4";
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
@@ -259,11 +259,12 @@ export function exportGedcom(tree, opts = {}) {
259
259
  conflicts: opts.research ? tree.list("conflict") : [],
260
260
  // with the people each is about: its subject's, and those its variants name (core/directions.ts hypothesisPeople);
261
261
  // for an app that shows what a hypothesis would connect, a decided or abandoned one too while a variant of it has
262
- // links — the app tells "decided for B" (its ghost now a real link) from "decided otherwise" (STAT, _CHOSEN)
262
+ // links — the app tells "decided for B" (its ghost now a real link) from "decided otherwise" (STAT, _CHOSEN); for an
263
+ // app that decides them by a pick, a decided one it may pick again too — also one whose variants connect nothing (K1.6)
263
264
  hypotheses: opts.research
264
265
  ? tree
265
266
  .list("hypothesis")
266
- .filter((h) => !h.retracted && (h.state === "open" || (opts.hypothesisLinks && h.variants.some((v) => v.links?.length)) || (opts.hypothesisDecider && agentDecided(h))))
267
+ .filter((h) => !h.retracted && (h.state === "open" || (opts.hypothesisLinks && h.variants.some((v) => v.links?.length)) || (opts.hypothesisDecider && agentDecided(h)) || (!!opts.hypothesisPick && pickableInApp(h))))
267
268
  .map((h) => ({ h, people: hypothesisPeople(tree, h) }))
268
269
  : [],
269
270
  // a search is of the people of the task it served
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strom-research",
3
- "version": "1.31.0-beta.3",
3
+ "version": "1.31.0-beta.4",
4
4
  "stromDoc": "f9ad9cd5851455e5bdf7b93b7d80907bedc20e79",
5
5
  "description": "Genealogical research toolkit for AI coding agents",
6
6
  "type": "module",