MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / serializeEdge

Function serializeEdge

src/context/formatter.ts:267–275  ·  view source on GitHub ↗

* Serialize an edge for JSON output

(edge: Edge)

Source from the content-addressed store, hash-verified

265 * Serialize an edge for JSON output
266 */
267function serializeEdge(edge: Edge): Record<string, unknown> {
268 return {
269 source: edge.source,
270 target: edge.target,
271 kind: edge.kind,
272 line: edge.line,
273 column: edge.column,
274 };
275}
276
277/**
278 * Truncate a string with ellipsis

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected