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

Function fetchSource

ui/src/lib/api.ts:146–154  ·  view source on GitHub ↗
(
  file: string,
  from: number,
  to: number,
  signal?: AbortSignal,
  ondrift?: 'current'
)

Source from the content-addressed store, hash-verified

144 * to be switched off over it.
145 */
146export function fetchSource(
147 file: string,
148 from: number,
149 to: number,
150 signal?: AbortSignal,
151 ondrift?: 'current'
152): Promise<WireSource> {
153 return getGraphAdapter().source({ file, from, to, ondrift }, signal);
154}
155
156/**
157 * The module map. `root` selects the subtree (a monorepo's package); `depth`

Callers

nothing calls this directly

Calls 2

getGraphAdapterFunction · 0.90
sourceMethod · 0.65

Tested by

no test coverage detected