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

Function fetchFileCode

ui/src/lib/api.ts:128–133  ·  view source on GitHub ↗
(
  path: string,
  signal?: AbortSignal
)

Source from the content-addressed store, hash-verified

126 * `fetchSource`, so the ports and arcs are complete before any text arrives.
127 */
128export function fetchFileCode(
129 path: string,
130 signal?: AbortSignal
131): Promise<WireFileCodePayload> {
132 return getGraphAdapter().fileCode(path, signal);
133}
134
135/**
136 * A slice of an indexed file.

Callers

nothing calls this directly

Calls 2

getGraphAdapterFunction · 0.90
fileCodeMethod · 0.80

Tested by

no test coverage detected