MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / fetchIndexResult

Function fetchIndexResult

packages/cli/src/commands/dev.ts:325–339  ·  view source on GitHub ↗
({
  indexId,
  apiClient,
}: {
  indexId: string;
  apiClient: TriggerApi;
})

Source from the content-addressed store, hash-verified

323}
324
325async function fetchIndexResult({
326 indexId,
327 apiClient,
328}: {
329 indexId: string;
330 apiClient: TriggerApi;
331}) {
332 const result = await apiClient.getEndpointIndex(indexId);
333
334 if (result.status === "STARTED" || result.status === "PENDING") {
335 throw new Error("Indexing is still in progress");
336 }
337
338 return result;
339}
340
341async function resolveOptions(
342 framework: Framework | undefined,

Callers 1

refreshFunction · 0.85

Calls 1

getEndpointIndexMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…