2026-04-15 02:57:53 +00:00
|
|
|
#!/usr/bin/env python3
|
2026-04-12 23:25:58 +00:00
|
|
|
import json
|
|
|
|
|
from hermes_tools import browser_navigate, browser_vision
|
|
|
|
|
|
|
|
|
|
def review_pr():
|
|
|
|
|
analysis = browser_vision(
|
|
|
|
|
question="Compare the two provided screenshots of the UI. Does the 'After' match the design spec? List all discrepancies. Provide a PASS/FAIL."
|
|
|
|
|
)
|
|
|
|
|
return {"status": "PASS" if "PASS" in analysis.upper() else "FAIL", "analysis": analysis}
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|
print(json.dumps(review_pr(), indent=2))
|