Links: drop what the scanner computed or accepted for nobody
scan() also built a Related list that no caller reads (the page asks /links/related, which related() answers); the `within` option was never sent; near() was only ever given a vector, so its embed-the-text fallback and null answer could not happen. extract.ts and words.ts re-exported phraseKey and singular from src/core/links, where they now come from directly. The suggestions are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
1 parent
7f6b9d8e77
commit
9f8245e6d7
6 files changed
+20
-38
No files matched your search
@@ -8,17 +8,17 @@ import { createServer, type Server } from "node:http";
|
||||
import type { AddressInfo } from "node:net";
|
||||
import { UndoManager } from "loro-crdt";
|
||||
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
||||
import { applyLinks, linkIndex } from "../src/core/links";
|
||||
import { applyLinks, linkIndex, phraseKey, singular } from "../src/core/links";
|
||||
import { Doc, SYSTEM_ORIGIN, notesOf, type NodeId } from "../src/core/model";
|
||||
import { history, verifyHistory } from "../src/core/repo";
|
||||
import { Embedder, fakeLoader, type Loader } from "../server/embed";
|
||||
import { extract, phraseKey } from "../server/links/extract";
|
||||
import { extract } from "../server/links/extract";
|
||||
import { Jobs, type JobState } from "../server/links/jobs";
|
||||
import { NodeIndex } from "../server/links/nodeIndex";
|
||||
import { PendingStore } from "../server/links/pending";
|
||||
import { linkRoutes, scopeNodes } from "../server/links/routes";
|
||||
import { Linker, TUNING, judge, type ScanInput, type Tuning } from "../server/links/scan";
|
||||
import { rank, singular } from "../server/links/words";
|
||||
import { rank } from "../server/links/words";
|
||||
import { WikiClient } from "../server/wiki";
|
||||
import { makeMockWikiFetch } from "../server/wikiMock";
|
||||
|
||||
|
||||
Reference in new issue
Block a user