推进 INI 面板运行摘要 helper

This commit is contained in:
2026-06-14 17:44:20 +08:00
parent ccd6b67e35
commit 8137cce488
5 changed files with 165 additions and 13 deletions

View File

@@ -0,0 +1,14 @@
export function createRunSummary(program, runtime = {}, snapshot = null) {
const metadata = snapshot?.metadata ?? {};
return {
runStatus: runtime.runStatus ?? "ok",
programSource: program.source,
snapshotLabel: runtime.snapshotLabel ?? metadata.snapshotLabel ?? null,
workflow: metadata.workflow ?? null,
programOpfsPath: program.opfsPath,
programWasmPath: program.wasmPath,
iniWasmPath: runtime.iniWasmPath ?? null,
canonicalEventCount: runtime.canonicalEventCount ?? 0,
motionSnapshotCount: runtime.motionSnapshotCount ?? 0,
};
}