推进 INI 面板运行结果摘要 helper

This commit is contained in:
2026-06-14 17:54:02 +08:00
parent 8137cce488
commit 4ac2f6fbf6
4 changed files with 97 additions and 6 deletions

View File

@@ -1,3 +1,10 @@
export function summarizeRunResult(resultText, snapshots = []) {
return {
canonicalEventCount: resultText.split("\n").filter((line) => line.startsWith("canon_event=")).length,
motionSnapshotCount: snapshots.length,
};
}
export function createRunSummary(program, runtime = {}, snapshot = null) {
const metadata = snapshot?.metadata ?? {};
return {