MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / visitTimestamp

Function visitTimestamp

packages/sync/src/pull-engine.ts:108–113  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

106 try {
107 let maxTs: number | null = null
108 const visitTimestamp = (value: unknown) => {
109 const ts = typeof value === 'string' && value.trim() !== '' ? Number(value) : value
110 if (typeof ts === 'number' && Number.isFinite(ts)) {
111 maxTs = maxTs === null ? ts : Math.max(maxTs, ts)
112 }
113 }
114
115 if (filePath.endsWith('.jsonl')) {
116 const content = fs.readFileSync(filePath, 'utf-8')

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected