MCPcopy
hub / github.com/Dimillian/CodexMonitor / getThreadTimestamp

Function getThreadTimestamp

src/utils/threadItems.listOps.ts:129–134  ·  view source on GitHub ↗
(thread: Record<string, unknown>)

Source from the content-addressed store, hash-verified

127}
128
129export function getThreadTimestamp(thread: Record<string, unknown>) {
130 const raw =
131 (thread.updatedAt ?? thread.updated_at ?? thread.createdAt ?? thread.created_at) ??
132 0;
133 return normalizeThreadTimestamp(raw);
134}
135
136export function getThreadCreatedTimestamp(thread: Record<string, unknown>) {
137 const raw = (thread.createdAt ?? thread.created_at) ?? 0;

Callers 6

buildResumeHydrationPlanFunction · 0.90
useThreadActionsFunction · 0.90
useThreadTurnEventsFunction · 0.90

Calls 1

normalizeThreadTimestampFunction · 0.90

Tested by

no test coverage detected