MCPcopy Index your code
hub / github.com/Dimillian/CodexMonitor / normalizeTurnStatus

Function normalizeTurnStatus

src/features/threads/utils/threadRpc.ts:214–219  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

212};
213
214function normalizeTurnStatus(value: unknown): string {
215 return String(value ?? "")
216 .trim()
217 .toLowerCase()
218 .replace(/[\s_-]/g, "");
219}
220
221function normalizeTimestampMs(value: unknown): number | null {
222 if (typeof value === "number" && Number.isFinite(value) && value > 0) {

Callers 1

getResumedTurnStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected