MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / buildFtsMatch

Function buildFtsMatch

src/session/store.ts:24–28  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

22 * FTS operators like AND/OR/NEAR/"/*) and OR-joined so recall is broad. Returns '' when there's
23 * nothing searchable, so the caller can fall back. PURE — unit-tested. */
24export function buildFtsMatch(raw: string): string {
25 const toks = dedupe(factTokens(raw));
26 if (!toks.length) return '';
27 return toks.map(t => `"${t}"`).join(' OR ');
28}
29
30export interface Message {
31 role: 'system' | 'user' | 'assistant' | 'tool';

Callers 2

searchFactsMethod · 0.85

Calls 2

dedupeFunction · 0.85
factTokensFunction · 0.85

Tested by

no test coverage detected