MCPcopy Index your code
hub / github.com/getagentseal/codeburn / shouldSkipLine

Function shouldSkipLine

src/parser.ts:850–857  ·  view source on GitHub ↗
(line: string, threshold: string)

Source from the content-addressed store, hash-verified

848}
849
850export function shouldSkipLine(line: string, threshold: string): boolean {
851 const head = line.length > RAW_HEAD_BYTES ? line.slice(0, RAW_HEAD_BYTES) : line
852 const type = getTopLevelRawJsonStringField(head, 'type')
853 if (type !== 'user' && type !== 'assistant') return false
854 const ts = getTopLevelRawJsonStringField(head, 'timestamp')
855 if (!ts || ts.length < 10) return false
856 return ts < threshold
857}
858
859const USER_TEXT_CAP = 2000
860const BASH_COMMAND_CAP = 2000

Callers 3

parseSessionFileFunction · 0.85
scanJsonlFileFunction · 0.85

Calls 1

Tested by

no test coverage detected