INNER CODE UNIT · TypeScript
getRun
entropy-cloud/nop-entropy · tools/mission-driver/web/src/api/index.ts:94
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,
file: opts?.file,
type: opts?.type,
})
return request<LogData>(
`/api/runs/${encodeURIComponent(runId)}/logs/${encodeURIComponent(step)}${query}`,