MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / fetchStudioLint

Function fetchStudioLint

packages/cli/src/utils/studioSelectionClient.ts:148–158  ·  view source on GitHub ↗
(
  server: ActiveServer,
  fetchImpl: typeof fetch = fetch,
)

Source from the content-addressed store, hash-verified

146}
147
148export async function fetchStudioLint(
149 server: ActiveServer,
150 fetchImpl: typeof fetch = fetch,
151): Promise<StudioLintResponse> {
152 const url = studioApiUrl(server, "lint");
153 const response = await fetchImpl(url);
154 if (!response.ok) {
155 throw new Error(`lint endpoint returned ${response.status}`);
156 }
157 return (await response.json()) as StudioLintResponse;
158}

Callers 2

printCurrentContextFunction · 0.85

Calls 1

studioApiUrlFunction · 0.85

Tested by

no test coverage detected