feat(runtime): capture step evidence in console
Tests / Test passed: 862

This commit is contained in:
2026-07-15 10:12:09 +08:00
parent 8d5b02e37f
commit ccde30e378
20 changed files with 594 additions and 53 deletions
+6 -2
View File
@@ -47,7 +47,12 @@ def build_scene(
continue
merged.append(_with_id(ocr_element, f"ocr-{ocr_index:03d}"))
return Scene(width=screen_width, height=screen_height, elements=merged)
return Scene(
width=screen_width,
height=screen_height,
elements=merged,
ocr_elements=list(ocr_elements),
)
def bbox_iou(first: Bounds, second: Bounds) -> float:
@@ -88,4 +93,3 @@ def _best_confidence(first: float | None, second: float | None) -> float | None:
if not values:
return None
return max(values)