MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / parseSince

Function parseSince

src/webui/workspaces-ws.ts:227–231  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

225}
226
227function parseSince(raw: string): number | undefined {
228 const n = Number.parseInt(raw, 10);
229 if (!Number.isFinite(n) || n < 0) return undefined;
230 return n;
231}
232
233function cleanToken(raw: string | null, max: number): string | undefined {
234 if (raw === null) return undefined;

Callers 1

attachWorkspacesWSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected