Skip to content

feat: sync Pi's Ardia guide with ardia CLI 0.7.0 - #32

Merged
YishenTu merged 1 commit into
mainfrom
feat/sync-ardia-cli-0.7.0
Nov 28, 2026
Merged

YishenTu merged 1 commit into
mainfrom
feat/sync-ardia-cli-0.7.0

Conversation

@YishenTu

Copy link
Copy Markdown
Owner

Summary

Ardia 0.2.49 runs the Command Line plugin at 0.7.0: a TypeScript rewrite whose skill moved to plugins/cli/ts/assets/skill/ in ardia-browser/plugins. This syncs Pi's guide, references and tools with it. The installed CLI's ardia --skill matches the cli-v0.7.0 tag.

Guide (guide.ts)

  • New commands: here (the user's tab and what to act on, in one call), form (fields, <select> options, submit refs), query (cards and tables as rows), read-urls (same-site pages in parallel from the tab), read --nav, links with | and *, plain labels as selectors, fill-otp.
  • Refs: a stale ref heals itself in a batch when its role and name are unique (↻ @e14→@e352). Refs from a navigated page fail with vocab_superseded, from a redraw with stale_ref, and a ref pointing at a different element with ref_drifted.
  • Failures end with (code) and a remedy: line. Page remedies run as ardia_exec lines on the failing tab; ardia methods, ardia browse --help and session list run in bash.
  • Page output is wrapped in UNTRUSTED_PAGE_CONTENT markers.
  • Scripts: evaluate(fn, ...args), $$eval, $eval, frames(), reads in Promise.all, and actions print no change report unless { receipt: true }.
  • Corrected:
    • The commands we said were refused work from Ardia 0.2.49; an older Ardia says to update.
    • A failed save stops the call.
    • Tab rules still apply (not_own_tab).
  • Tabs left open for the user get grouped.

Reference (references/browse.md, new): rarer commands, linked from ardia_exec's description:

  • the page's WebMCP tools and read --fast
  • page-action flows (record --save, flow save --actions, --replay --yes, flow heal)
  • saved logins (auth, which mostly runs in bash)
  • debugging (issues, styles, logpoint, perf)
  • sites the ad blocker blocks (sites.allowAds)

Tools (index.ts): errors from read_tab, view_image, list_tabs and open_tab now include the CLI's code and remedy, which its JSON output has carried since 0.7.0.

AGENTS.md points to the skill's new path.

Testing

  • bun run lint, bun test --randomize and bun run build pass. The new code/remedy tests failed before the change.
  • Against the installed CLI 0.7.0 and Ardia 0.2.49:
    • The tools' JSON contracts still hold: batch --bail --json (including failing steps), tab list, tab <id>, tab new [--show], get title, eval, a JPEG screenshot, script --out=, windows --json, and the AGENT_BROWSER_SESSION and ARDIA_STAR_PROMPT variables.
    • The new commands the guide teaches: here, links 'a|b', read --nav, read-urls, form, query, and a script using $$eval, $eval, frames(), Promise.all and { receipt: true }.
    • Confirmed auth list and fill-otp --profile fail as batch lines, and so does a line with the ardia browse prefix.
  • Reviewed by two agents against the 0.6.0 and 0.7.0 skills and source; every finding was checked against the 0.7.0 source or --help before it was fixed.

Notes

  • I couldn't confirm Ardia's pin in official-plugins.json; the copy on main still says 0.4.0.
  • Expanded "Ran in browser" cards in the panel now show the untrusted-content markers.

The CLI was rewritten in TypeScript and its skill moved to
plugins/cli/ts/assets/skill/. Teach Pi its new commands (here, form,
query, read-urls, read --nav), self-healing refs, failure codes with
remedies, and the script API's $$eval, $eval and frames(). Correct what
0.7.0 made false: refused commands work from Ardia 0.2.49, failed saves
stop the call, and moved refs fail with vocab_superseded. Rarer commands
go in a new references/browse.md, and the read-only tools' errors now
carry the CLI's code and remedy.
@YishenTu
YishenTu merged commit b83618b into main Nov 28, 2026
2 checks passed
@YishenTu
YishenTu deleted the feat/sync-ardia-cli-0.7.0 branch November 28, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant