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

Function fetchSteps

ui/src/lib/api.ts:170–176  ·  view source on GitHub ↗
(request: StepsRequest, signal?: AbortSignal)

Source from the content-addressed store, hash-verified

168 * an adapter that never offered it (see {@link canDrawSteps}).
169 */
170export function fetchSteps(request: StepsRequest, signal?: AbortSignal): Promise<WireStepsPayload> {
171 const adapter = getGraphAdapter();
172 if (typeof adapter.steps !== 'function') {
173 return Promise.reject(new ApiFailure(0, 'refused', 'This viewer cannot draw steps.', null));
174 }
175 return adapter.steps(request, signal);
176}
177
178/** Whether the installed adapter can answer {@link fetchSteps} at all. */
179export function canDrawSteps(): boolean {

Callers

nothing calls this directly

Calls 2

getGraphAdapterFunction · 0.90
stepsMethod · 0.80

Tested by

no test coverage detected