mirror of
https://bitbucket.org/siakitem/my-pi.git
synced 2026-08-28 08:35:57 +00:00
1.4 KiB
1.4 KiB
Recipe runner spec
Future Node/Pi runner should:
- Read
manifest.json. - Probe environment capabilities (
trusted,clipboard,touch,dialogs,downloads,fileSystem,strictCspFallback). - For each entry:
- read
gate(core,conditional,quality) and score in that bucket - skip if
requiresis unsatisfied and expected isCONDITIONAL - navigate to challenge URL
- execute
recipein order - wait
verdictDelayMs || 500 - evaluate
JSON.stringify({v:window.__verdict,r:window.__reason,d:window.Challenge?.state?.details,e:window.__events?.slice(-20)}), except strict-CSP pages where eval is expected to fail; read persisted verdict from dashboard/localStorage after leaving the CSP page - compare to
expected[mode]
- read
- Output:
- Markdown summary
- JSON details
- JUnit XML for CI
Runner must adapt recipe intent:
- expand
${REPO_ROOT}path placeholders - adapt unsupported shadow/iframe selector notation to snapshot uids or evaluate fallback
- preserve hook install ordering for console/network capture tests
- substitute dynamic tab ids from
chrome_tab listrecipes - support screenshot/coordinate fallback for strict CSP pages where snapshot/evaluate are blocked
- record whether trusted/CDP path was used
Long-horizon task runner should read task-manifest.json, replace $RUN_ID, solve task, then evaluate task grader expression.