MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / readJsonl

Function readJsonl

packages/telemetry/src/transport.ts:288–297  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

286}
287
288function readJsonl(path: string): EnrichedTelemetryEvent[] {
289 const text = readFileSync(path, 'utf-8');
290 const events: EnrichedTelemetryEvent[] = [];
291 for (const line of text.split('\n')) {
292 const trimmed = line.trim();
293 if (trimmed.length === 0) continue;
294 events.push(JSON.parse(trimmed) as EnrichedTelemetryEvent);
295 }
296 return events;
297}
298
299async function fetchWithTimeout(
300 fetchImpl: typeof fetch,

Callers 1

retryDiskEventsMethod · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected