推进 INI 面板运行结果摘要 helper
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user