Metadata-Version: 2.1
Name: cua-bench-ui
Version: 0.5.0
Summary: Lightweight webUI window controller for CUA bench using pywebview
Author-Email: TryCua <gh@trycua.com>
Requires-Python: >=3.12
Requires-Dist: pywebview>=5.3
Requires-Dist: aiohttp>=3.9.0
Requires-Dist: psutil>=5.9
Description-Content-Type: text/markdown

# CUA Bench UI

Lightweight webUI window controller for CUA bench environments using pywebview

## Usage

```python
from bench_ui import launch_window, get_element_rect, execute_javascript

# Launch a window with inline HTML content
pid = launch_window(html="<html><body><h1>Hello</h1></body></html>")

# Get element rect in screen space
rect = get_element_rect(pid, "h1", space="screen")
print(rect)

# Execute arbitrary JavaScript
text = execute_javascript(pid, "document.querySelector('h1')?.textContent")
print(text)
```

## Installation

```bash
pip install cua-bench-ui
```
