strom-research 1.31.0-beta.6 → 1.31.0-beta.7

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.6. Oddíl bude úplný s vydáním.*
10
+ *Připravuje se: bety do 1.31.0-beta.7. 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
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.6. Der Abschnitt ist mit dem Release vollständig.*
10
+ *In Vorbereitung: die Betas bis 1.31.0-beta.7. 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
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.6. The section is complete with the release.*
10
+ *In preparation: the betas up to 1.31.0-beta.7. 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
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.6. Sekcja będzie kompletna z wydaniem.*
10
+ *W przygotowaniu: bety do 1.31.0-beta.7. 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`),
package/dist/core/sync.js CHANGED
@@ -757,6 +757,8 @@ function citedDetails(sources, facts) {
757
757
  // a location given field by field has its rest where the file says it (none: none), never a citation's
758
758
  if (!s.page && !s.structured && c.page)
759
759
  s.page = c.page;
760
+ else if (!s.page && s.structured && c.page && s.citedPage === undefined)
761
+ s.citedPage = c.page;
760
762
  if (!s.date && c.date)
761
763
  s.date = c.date;
762
764
  if (s.quay === undefined && c.quay !== undefined)
@@ -3255,7 +3257,9 @@ function planSources(tree, incoming, ours, base, push, readings, edits) {
3255
3257
  if (!incoming.sources?.size)
3256
3258
  return map;
3257
3259
  const live = tree.list("source").filter((s) => !s.retracted);
3258
- const pageOf = (s) => s.locator ?? ours.sources?.get(s.id)?.page;
3260
+ // where in the book the research gives the app a source: its locator, else its first citation's page (a source given
3261
+ // field by field with none of its own: an app before 3.27.0-beta.5 gave it that one, its own split of a source by it)
3262
+ const pageOf = (s) => s.locator ?? ours.sources?.get(s.id)?.page ?? ours.sources?.get(s.id)?.citedPage;
3259
3263
  for (const [key, inc] of incoming.sources) {
3260
3264
  let mine = key.startsWith("x:") ? undefined : tree.get(key);
3261
3265
  for (let hops = 0; mine?.mergedInto && hops < 10; hops++)
@@ -3293,7 +3297,7 @@ function planSources(tree, incoming, ours, base, push, readings, edits) {
3293
3297
  const set = mine.recordset ? tree.get(mine.recordset) : undefined;
3294
3298
  const was = {
3295
3299
  text: [b.text, o?.text, mine.transcript],
3296
- page: [b.page, b.pageLine, o?.page, o?.pageLine, mine.locator, composedPage(mine, tree.lang), ...cited],
3300
+ page: [b.page, b.pageLine, b.citedPage, o?.page, o?.pageLine, o?.citedPage, mine.locator, composedPage(mine, tree.lang), ...cited],
3297
3301
  folio: [b.folio, o?.folio, mine.folio],
3298
3302
  image: [b.image, o?.image, sourceImage(mine, (id) => tree.get(id))?.value],
3299
3303
  callNumber: [b.callNumber, o?.callNumber, sourceCallNumber(mine, set)],
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.6";
35
+ export const VERSION = "1.31.0-beta.7";
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-beta.6",
3
+ "version": "1.31.0-beta.7",
4
4
  "stromDoc": "f9ad9cd5851455e5bdf7b93b7d80907bedc20e79",
5
5
  "description": "Genealogical research toolkit for AI coding agents",
6
6
  "type": "module",