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

Function dedupeStr

src/schedule/receipt.ts:105–109  ·  view source on GitHub ↗
(xs: string[])

Source from the content-addressed store, hash-verified

103}
104
105function dedupeStr(xs: string[]): string[] {
106 const seen = new Set<string>(); const out: string[] = [];
107 for (const x of xs) if (x && !seen.has(x)) { seen.add(x); out.push(x); }
108 return out;
109}
110
111/** Read a receipt JSON file QodeX wrote at end-of-run. Returns null if absent/unreadable. */
112export async function readReceiptFile(filePath: string): Promise<RunReceipt | null> {

Callers 1

buildGroundTruthReceiptFunction · 0.85

Calls 3

addMethod · 0.80
hasMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected