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

Function normCompare

src/cli/modes/final-dedupe.ts:33–33  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

31
32const cleanForDisplay = (s: string) => stripLeakedToolTags(extractThinking(s).visibleText);
33const normCompare = (s: string) => cleanForDisplay(s).replace(/\s+/g, ' ').trim();
34
35export function dedupeFinalAgainstStreamed(rawFinal: string, streamedThisTurn: string): FinalDedupeDecision {
36 const finalContent = cleanForDisplay(rawFinal ?? '');

Callers 2

isRedundantAssistantTextFunction · 0.85

Calls 1

cleanForDisplayFunction · 0.85

Tested by

no test coverage detected