Several libraries on the server: one directory, store, notice stream, link index, pending links, reviewer and jobs each; /api/libraries and /api/l/<id>/…; the page holds one library, named by its address, and switches by a page load

The old single-library layout is not opened (the server says to run the migration, which comes
next); the per-document migration, /recover and the old replicas check are gone. A server lock
keeps two servers off one data directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
thalladaandClaude Opus 5.5 committed 2026-11-17 02:25:25 -05:00
1 parent 045a8459da
commit 79aa85e883
22 files changed
+1468 -759

No files matched your search

+9 -1
View File
@@ -1,6 +1,6 @@
/**
* Suggestions and what was decided about them. Derived data, so they live on the server under
* <IE_DATA>/links/pending.json and never in the library.
* <IE_DATA>/libraries/<id>/links/pending.json, one file per library, and never in the library.
*
* A scan replaces what was pending for its node, but what was decided is kept: the model
* reviewer's verdict (link or not, and why), a person's decision, and when an approved link was
@@ -176,6 +176,14 @@ export class PendingStore {
this.timer.unref?.();
}
/** Write what is waiting, then nothing more (the library is being moved aside). */
close() {
if (this.timer) clearTimeout(this.timer);
this.timer = null;
this.flush();
this.file = null;
}
flush() {
if (!this.file) return;
try {