Vedha

v0.1.2
io.github.HMAKT99/vedha Checked 12 hours ago Published 21 days ago

Browser testing on Playwright that checks the server, not just the screen, before it reports a pass.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

vedha_act

Run a browser action (goto, click, fill, press, ...) and return its outcome, what Vedha observed, and the page. Optional `then` chains follow-up steps.

ParameterTypeDescription
intent *stringwhy
op *string
confirmsstringid of an unresolved step this one confirms
destructivebooleanirreversible; needs operator approval
enablingbooleanonly prepares a later step
expectobjectchecks Vedha runs after the action
mutatingbooleanchanges data; not repeated after an unknown outcome
reconcileobjectGET returning an item matching `matches` iff the effect happened
repeatbooleanrepeat a mutating action of unknown outcome
synchronousbooleanclient-side effect: unmet expect is a failure
targetobjectone of: role(+name), label, text, test_id, ref
thenarraysteps to run next; stops at the first that fails
toobjectdrag target
valuestringurl, text, option, key, path, direction or tab

vedha_observe

Read the current page without acting: an accessibility outline by default, `controls` for interactive elements only, or `region`/`detail` for one subtree by ref. Read-only.

ParameterTypeDescription
levelstring
refstringsubtree ref

vedha_probe

Read server state with a GET to a same-origin JSON path (such as /api/orders) without leaving the page. Use it to confirm whether a write took effect. Read-only.

ParameterTypeDescription
path *string

vedha_report

Overall verdict and each step's status (verified, failed, outcome_unknown, unverified, blocked) with errors and recoveries so far. Read-only.

vedha_promote

Generate a Playwright Test spec from the verified steps so far, with its assumptions listed. Pass `file` to save it under --out.

ParameterTypeDescription
goal *string
title *string
filestringfile under --out

vedha_bundle

Save a failure bundle under --out: goal, steps, verdicts, network summary and a screenshot, replayable with `vedha replay`.

ParameterTypeDescription
goal *string

vedha_close

Close the browser and end the session.