Commit Graph
3 Commits
Author SHA1 Message Date
thalladaandClaude Opus 5.5 52cb7c2065 Links, Wikipedia and the replica: duplicates merged, dead fields and caches out
- One failure(res) in api.ts for every fetch that can fail (session,
  remote and the libraries calls each had their own; the error's
  attached body was never read). Session's lost() and vanished() were
  the same but for the hook: stop("foreign" | "gone").
- linker: place() locates the words with locate() instead of a copy;
  the scan reply's type is written once; LinkRow.at was never read; the
  "import" origin is never passed.
- wiki.ts: cleanHtml's cache could never hit (its only caller,
  articleText, is cached on the same key and evicts the same way);
  known() returned an article nobody read.
- Gone: currentLibrary and idbKeys (no callers), useWikiSuggest's q,
  a node's link flag spelled out where isLink says it. Exports used only
  in their own file are not exported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 16:25:27 -05:00
thalladaandClaude Opus 5.5 f888525808 A library's size counts what is under its top-level nodes, the same in /api/libraries and the root's byline (a root alone is 0 nodes)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 02:53:58 -05:00
thalladaandClaude Opus 5.5 79aa85e883 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
2026-11-17 02:25:25 -05:00