Server: remove members, parameters and a route alias nothing uses

Bundle.id, Libraries.flush, UsageTracker.now and the wiki cache's size getter had no callers;
upsert's `save` flag only ever skipped a save on an index with no file, text()'s `required` and
recordCall's default were never used, and wikiRoutes imported readJson for nothing. Renaming a
library answered POST as well as PATCH, which nothing sends. revertTo refused commits from before
the library existed, which no library's history holds any more; an export's file name fell back
to "untitled", which slugify already does.

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 16:07:04 -05:00
1 parent 714449fd54
commit 63593fdb22
9 files changed
+9 -27

No files matched your search

+1 -5
View File
@@ -87,10 +87,6 @@ export class Bundle {
this.handleLinks = linkRoutes({ main, linker: getLinker, index: this.nodeIndex, pending: this.pending, jobs: this.jobs, embedder: shared.embed, reviewer: this.reviewer, wrote: () => this.wrote("main") });
}
get id() {
return this.store.id;
}
/** A notice to every page open on this library. */
announce(message: Record<string, unknown>) {
const line = `data: ${JSON.stringify(message)}\n\n`;
@@ -253,7 +249,7 @@ export class Bundle {
const { text, skipped } = serializeDoc(snap, id);
res.writeHead(200, {
"content-type": "text/markdown; charset=utf-8",
"content-disposition": `attachment; filename="${slugify(snap.nodes[id].title) || "untitled"}${name === "main" ? "" : `-${encodeURIComponent(name)}`}.md"`,
"content-disposition": `attachment; filename="${slugify(snap.nodes[id].title)}${name === "main" ? "" : `-${encodeURIComponent(name)}`}.md"`,
"x-skipped": JSON.stringify(skipped),
});
return res.end(text);