strom-research 1.35.0-beta.4 → 1.35.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 +3 -1
- package/CHANGELOG.de.md +4 -1
- package/CHANGELOG.md +3 -1
- package/CHANGELOG.pl.md +3 -1
- package/dist/commands/material.js +1 -1
- package/dist/core/live.js +3 -2
- package/dist/core/sort.js +28 -0
- package/dist/core/tree.js +1 -1
- package/package.json +1 -1
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.35.0
|
|
9
9
|
|
|
10
|
-
*Připravuje se: bety do 1.35.0-beta.
|
|
10
|
+
*Připravuje se: bety do 1.35.0-beta.5. Oddíl bude úplný s vydáním.*
|
|
11
11
|
|
|
12
12
|
- **Knihy s nejvíc úkoly:** strom řekne, které knihy archivů potřebuje nejvíc úkolů výzkumu – otevřených, odložených
|
|
13
13
|
i čekajících –, aby jedno ruční stažení posloužilo mnoha z nich najednou: v nabídce stromu (Co čeká › knihy s nejvíc
|
|
@@ -90,6 +90,8 @@ Změny každé verze ve zkratce. Úplné poznámky a instalační řádky jsou n
|
|
|
90
90
|
titulek, datum, druh a místa s důvodem a jistotou, nic nezapíše, nikdy nepřepíše, co nastavil člověk, a počítá se do
|
|
91
91
|
limitů čtení z aplikace. Čtení jsou placená: třídění začne až po souhlasu člověka (v terminálu, v okně systému nebo
|
|
92
92
|
v dialogu aplikace), nikdy samo ani na pokyn agenta.
|
|
93
|
+
U souboru, který se rodiny zjevně netýká (snímek obrazovky, účtenka, omylem nahraný soubor), to čtenář řekne
|
|
94
|
+
i s důvodem, aby ho šlo v aplikaci Strom skrýt; samo se nic neskryje ani nesmaže.
|
|
93
95
|
Třídění materiálu se bez dotazu spustí jen tehdy, když ho přijal a podepsal most aplikace Strom; záznam zapsaný jinak
|
|
94
96
|
(nebo zařazený starší verzí) se nespustí a je potřeba ho zadat znovu v aplikaci.
|
|
95
97
|
|
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.35.0
|
|
9
9
|
|
|
10
|
-
*In Vorbereitung: die Betas bis 1.35.0-beta.
|
|
10
|
+
*In Vorbereitung: die Betas bis 1.35.0-beta.5. Der Abschnitt ist mit dem Release vollständig.*
|
|
11
11
|
|
|
12
12
|
- **Die Bücher mit den meisten Aufgaben:** strom sagt, welche Bücher der Archive die meisten Aufgaben der Forschung
|
|
13
13
|
brauchen – offene, zurückgestellte und wartende –, damit ein Herunterladen von Hand vielen davon auf einmal dient: im
|
|
@@ -110,6 +110,9 @@ Die Änderungen jeder Version in Kürze. Die vollständigen Hinweise und die Ins
|
|
|
110
110
|
Titel, Datum, Art und Stellen mit Grund und Sicherheit vor, schreibt nichts, überschreibt nie, was die Person
|
|
111
111
|
festlegte, und zählt zu den Lesegrenzen der App. Die Lesungen sind bezahlt: Ein Sortieren beginnt erst nach dem Ja
|
|
112
112
|
der Person (im Terminal, in einem Fenster des Systems oder im Dialog der App), nie von selbst oder durch einen Agenten.
|
|
113
|
+
Bei einer Datei, die offensichtlich nichts mit der Familie zu tun hat (ein Bildschirmfoto, ein Kassenbon, eine aus
|
|
114
|
+
Versehen hochgeladene Datei), sagt der Leser das mit seinem Grund, damit sie sich in der Strom-App ausblenden lässt;
|
|
115
|
+
von selbst wird nichts ausgeblendet oder gelöscht.
|
|
113
116
|
Eine Sortierung des Materials startet ohne Rückfrage nur, wenn die Brücke der Strom-App sie angenommen und signiert
|
|
114
117
|
hat; ein anders geschriebener (oder von einer älteren Version eingereihter) Eintrag startet nicht und wird in der App
|
|
115
118
|
erneut angefordert.
|
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.35.0
|
|
9
9
|
|
|
10
|
-
*In preparation: the betas up to 1.35.0-beta.
|
|
10
|
+
*In preparation: the betas up to 1.35.0-beta.5. The section is complete with the release.*
|
|
11
11
|
|
|
12
12
|
- **The books with the most tasks:** strom says which books of the archives most tasks of the research need — open,
|
|
13
13
|
put aside and waiting — so that one download by hand serves many of them at once: in strom's menu (What waits ›
|
|
@@ -95,6 +95,8 @@ The changes of each version in short. The full notes and the install lines are o
|
|
|
95
95
|
from the app): it proposes a title, date, kind and places with its reason and how sure it is, writes nothing, never
|
|
96
96
|
overrides what the person set, and counts as reading in the app's limits. The readings are paid: a sort starts only
|
|
97
97
|
after the person's yes (in their terminal, a window of the system, or the app's dialog), never by itself or by an agent.
|
|
98
|
+
A file plainly not about the family (a screenshot, a receipt, a file sent by mistake) the reader says so of, with
|
|
99
|
+
its reason, so that it can be hidden in the Strom app; nothing is hidden or deleted by itself.
|
|
98
100
|
A sort of the material starts without asking only when the Strom app's bridge took and signed it; a record written any
|
|
99
101
|
other way (or queued by an older version) is not started and is asked for again in the app.
|
|
100
102
|
|
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.35.0
|
|
9
9
|
|
|
10
|
-
*W przygotowaniu: bety do 1.35.0-beta.
|
|
10
|
+
*W przygotowaniu: bety do 1.35.0-beta.5. Sekcja będzie kompletna z wydaniem.*
|
|
11
11
|
|
|
12
12
|
- **Księgi z największą liczbą zadań:** strom mówi, których ksiąg archiwów potrzebuje najwięcej zadań badania –
|
|
13
13
|
otwartych, odłożonych i czekających –, aby jedno ręczne pobranie posłużyło wielu z nich naraz: w menu stroma (Co
|
|
@@ -100,6 +100,8 @@ Zmiany każdej wersji w skrócie. Pełne informacje o wydaniach i polecenia inst
|
|
|
100
100
|
zapisuje, nigdy nie nadpisuje tego, co ustawiła osoba, i liczy się do limitów czytania z aplikacji. Odczyty są
|
|
101
101
|
płatne: sortowanie zaczyna się dopiero po zgodzie osoby (w terminalu, w oknie systemu lub w oknie dialogowym
|
|
102
102
|
aplikacji), nigdy samo ani na polecenie agenta.
|
|
103
|
+
Przy pliku, który wyraźnie nie dotyczy rodziny (zrzut ekranu, paragon, plik wgrany przez pomyłkę), czytelnik mówi to
|
|
104
|
+
wraz z powodem, aby można go było ukryć w aplikacji Strom; samo nic się nie ukrywa ani nie usuwa.
|
|
103
105
|
Sortowanie materiałów uruchamia się bez pytania tylko wtedy, gdy przyjął je i podpisał most aplikacji Strom; wpis
|
|
104
106
|
zapisany inaczej (lub dodany do kolejki przez starszą wersję) się nie uruchomi i trzeba go zlecić ponownie w
|
|
105
107
|
aplikacji.
|
|
@@ -128,7 +128,7 @@ function said(tree, s) {
|
|
|
128
128
|
const head = `${now.id} · ${now.state} · ${counted(now.files.length, "file")}${now.reason ? ` · ${now.reason}` : ""}${now.error ? ` — ${now.error}` : ""}`;
|
|
129
129
|
const out = [head];
|
|
130
130
|
for (const p of proposals) {
|
|
131
|
-
out.push("", `${p.id} (${p.sure})${p.title ? ` · ${p.title}` : ""}${p.date ? ` · ${p.date}` : ""}${p.kind ? ` · ${p.kind}` : ""}`);
|
|
131
|
+
out.push("", `${p.id} (${p.sure})${p.title ? ` · ${p.title}` : ""}${p.date ? ` · ${p.date}` : ""}${p.kind ? ` · ${p.kind}` : ""}${p.unrelated ? " · unrelated (not of the family)" : ""}`);
|
|
132
132
|
for (const l of p.links ?? [])
|
|
133
133
|
out.push(` link ${l.type} ${l.ref}${l.event ? ` ${l.event}` : ""}`);
|
|
134
134
|
if (p.why)
|
package/dist/core/live.js
CHANGED
|
@@ -159,8 +159,9 @@
|
|
|
159
159
|
// never started (failed, reason "unsigned"; not the app's: 404, not in /status).
|
|
160
160
|
// GET <token>/material/sort/<id> {id, state: queued|working|done|failed|cancelled, files, at,
|
|
161
161
|
// proposals?: [{id, title?, date?, kind?, links?: [{type: person|family|event|source, ref,
|
|
162
|
-
// event?}], why, sure: high|medium|low}], reason?} — the proposals as the
|
|
163
|
-
// the person gave or took off, no ID it does not have
|
|
162
|
+
// event?}], unrelated?: true, why, sure: high|medium|low}], reason?} — the proposals as the
|
|
163
|
+
// research is now: none the person gave or took off, no ID it does not have; unrelated: the
|
|
164
|
+
// file plainly not of the family (only why and sure then; the person hides it, never strom). POST <token>/material/sort/<id>/cancel
|
|
164
165
|
// {id, state, cancelled}. Refused 404 sort.none (no agent here {why}, an unknown sort), 503
|
|
165
166
|
// sort.not-ready {why} (+ Retry-After), 429 sort.queue (one at work and 3 queued), 429 sort.limit
|
|
166
167
|
// {per, most, cost} (read.app: a sort is one reading for each ten files it begins), 400
|
package/dist/core/sort.js
CHANGED
|
@@ -371,6 +371,10 @@ WHAT TO PROPOSE, for each file
|
|
|
371
371
|
above; one line each; never one marked DONE or taken off.
|
|
372
372
|
- why: one or two sentences in ${o.langName}: what you saw on it, or in the person's words, that makes you say so.
|
|
373
373
|
- sure: high (it says so itself: a name, a date written on it; or the person said so) | medium (it fits well) | low.
|
|
374
|
+
- unrelated: yes — only when the file is plainly NOT about the family at all (a screenshot, a receipt, a ticket, a
|
|
375
|
+
stranger's holiday photo, a file sent by mistake). Then write only "unrelated: yes", "why" (what you saw) and
|
|
376
|
+
"sure" (how sure you are that it is not the family's); no title, date, kind or link. Never for a file you merely
|
|
377
|
+
cannot place.
|
|
374
378
|
A file you cannot say anything of: leave it out.
|
|
375
379
|
|
|
376
380
|
THE REPORT
|
|
@@ -389,11 +393,20 @@ link: event P0001 E0001
|
|
|
389
393
|
why: …
|
|
390
394
|
sure: medium
|
|
391
395
|
|
|
396
|
+
and of a file plainly not about the family:
|
|
397
|
+
|
|
398
|
+
## File I0002
|
|
399
|
+
unrelated: yes
|
|
400
|
+
why: …
|
|
401
|
+
sure: high
|
|
402
|
+
|
|
392
403
|
Leave out a line you have nothing for. When all files are done, finish with one line: "done: <n> files".`;
|
|
393
404
|
}
|
|
394
405
|
const BLOCK = /^#{2,3}\s*(?:[Ff][Ii][Ll][Ee]\s+)?([Ii]\d{1,9})(?![\p{L}\p{M}\p{N}])/u;
|
|
395
406
|
const KEY = /^\s*(?:[-*]\s+)?\**(\p{L}+)\**\s*:\**\s*(.*)$/u;
|
|
396
407
|
const ID = /[PpFfSsEe]\d{1,9}(?![\p{L}\p{M}\p{N}])/gu;
|
|
408
|
+
/** "unrelated: yes" as a reader may write it (the keys are English, a value now and then the research's language). */
|
|
409
|
+
const YES = ["yes", "true", "y", "ano", "ja", "tak", "oui", "si", "da", "да", "так"];
|
|
397
410
|
const pad = (id) => id[0].toUpperCase() + id.slice(1).padStart(4, "0");
|
|
398
411
|
/** A link as written: "person P1", "family F1", "event P1 E2", "source S1", or an ID alone. */
|
|
399
412
|
export function parseLink(v) {
|
|
@@ -446,6 +459,11 @@ export function parseSortReport(text) {
|
|
|
446
459
|
open.links = [...(open.links ?? []), l];
|
|
447
460
|
last = key;
|
|
448
461
|
}
|
|
462
|
+
else if (key === "unrelated") {
|
|
463
|
+
if (YES.includes(foldText(value.replace(/[.!]+$/u, "").trim())))
|
|
464
|
+
open.unrelated = true;
|
|
465
|
+
last = key;
|
|
466
|
+
}
|
|
449
467
|
else if (key === "why") {
|
|
450
468
|
open.why = value;
|
|
451
469
|
last = key;
|
|
@@ -500,6 +518,16 @@ export function keptProposals(tree, files, raw) {
|
|
|
500
518
|
}
|
|
501
519
|
const sure = SORT_SURE.includes(foldText(r.sure ?? "")) ? foldText(r.sure) : "low";
|
|
502
520
|
const p = { id: r.id, why: clean(r.why ?? "", 1000), sure };
|
|
521
|
+
// not the family's: only why and how sure — whatever else the reader wrote would contradict it
|
|
522
|
+
if (r.unrelated) {
|
|
523
|
+
for (const what of ["title", "date", "kind"])
|
|
524
|
+
if (r[what] !== undefined)
|
|
525
|
+
drop(r.id, what, "unrelated");
|
|
526
|
+
for (const l of r.links ?? [])
|
|
527
|
+
drop(r.id, `link ${l.type} ${l.ref}${l.event ? ` ${l.event}` : ""}`, "unrelated");
|
|
528
|
+
proposals.push({ ...p, unrelated: true });
|
|
529
|
+
continue;
|
|
530
|
+
}
|
|
503
531
|
if (r.title !== undefined) {
|
|
504
532
|
let title;
|
|
505
533
|
try {
|
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.35.0-beta.
|
|
35
|
+
export const VERSION = "1.35.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
|