INNER CODE UNIT · TypeScript

getRuns

entropy-cloud/nop-entropy · tools/mission-driver/web/src/api/index.ts:89

export function getRuns(limit?: number, offset?: number): Promise<RunsPage> {
  return request<RunsPage>(`/api/runs${qs({ limit, offset })}`)
}

/** GET /api/runs/:runId → full run detail. */
export function getRun(runId: string): Promise<RunDetail> {
  return request<RunDetail>(`/api/runs/${encodeURIComponent(runId)}`)
}

/** GET /api/runs/:runId/logs/:step?tail=&offset=&file= → log content. */
export function getLog(
  runId: string,
  step: string,
  opts?: GetLogOptions,
): Promise<LogData> {
  const query = qs({
    tail: opts?.tail,
    offset: opts?.offset,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…