import {segmentHash} from './route.ts'; import {VERIFY_BLOCKS, VERIFY_COLORS, VERIFY_LABELS, evidenceURL, reviewSegmentId} from './verify.ts'; import type {VerifyReport, VerifySegment} from './verify.ts'; function Evidence({run, paths}: {run: string; paths: string[]}) { return ; } export function VerifyDetails({report, row}: {report: VerifyReport; row: VerifySegment}) { const id = reviewSegmentId(report, row); return
{id &&

审剧本 审题

} {VERIFY_BLOCKS.map(([key, label]) => { const block = row.checks[key]; return

{label} {VERIFY_LABELS[block.status]}

{block.summary}

{block.details !== null &&
详细记录(JSON)
{JSON.stringify(block.details, null, 2)}
} {block.log_tail &&
日志末 20 行
{block.log_tail}
}
; })}
; } export function VerifyTable({report, expanded, onSelect}: {report: VerifyReport; expanded: number | null; onSelect: (index: number | null) => void}) { return
{VERIFY_BLOCKS.map(([key, label]) => )} {report.segments.map(row => {VERIFY_BLOCKS.map(([key, label]) => )} {expanded === row.index && })}
段世界时长档 / 用时人数 / 机器人{label}
{row.state}{row.reason ? ' · ' + row.reason : ''}{row.world}{row.tier}{row.seconds === null ? '用时未知' : `${row.seconds.toFixed(2)} 秒`}{row.n} / {row.robots}{VERIFY_LABELS[row.checks[key].status]}
{!report.segments.length &&

这批没有登记段。

}
; }