MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / readLineSpan

Function readLineSpan

graph-ui/src/agents/agent-event.ts:168–178  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

166 * aussieht, als sie ist.
167 */
168export function readLineSpan(value: unknown): readonly [number, number] | undefined {
169 if (!Array.isArray(value) || value.length !== 2) {
170 return undefined;
171 }
172 const from = numberOf(value[0]);
173 const to = numberOf(value[1]);
174 if (from === undefined || to === undefined || from < 1 || to < 1) {
175 return undefined;
176 }
177 return from <= to ? [from, to] : [to, from];
178}
179
180/**
181 * Eine Zeile der Bruecke als Ereignis, oder nichts.

Callers 2

readAgentEventFunction · 0.85

Calls 1

numberOfFunction · 0.70

Tested by

no test coverage detected