- 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
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