Repository navigation
feat: sync Pi's Ardia guide with ardia CLI 0.7.0 - #32
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/inardia-browser/plugins. This syncs Pi's guide, references and tools with it. The installed CLI'sardia --skillmatches thecli-v0.7.0tag.Guide (
guide.ts)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,linkswith|and*, plain labels as selectors,fill-otp.↻ @e14→@e352). Refs from a navigated page fail withvocab_superseded, from a redraw withstale_ref, and a ref pointing at a different element withref_drifted.(code)and aremedy:line. Page remedies run asardia_execlines on the failing tab;ardia methods,ardia browse --helpandsession listrun in bash.UNTRUSTED_PAGE_CONTENTmarkers.evaluate(fn, ...args),$$eval,$eval,frames(), reads inPromise.all, and actions print no change report unless{ receipt: true }.not_own_tab).Reference (
references/browse.md, new): rarer commands, linked fromardia_exec's description:read --fastrecord --save,flow save --actions,--replay --yes,flow heal)auth, which mostly runs in bash)issues,styles,logpoint,perf)sites.allowAds)Tools (
index.ts): errors fromread_tab,view_image,list_tabsandopen_tabnow include the CLI'scodeandremedy, 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 --randomizeandbun run buildpass. The newcode/remedytests failed before the change.batch --bail --json(including failing steps),tab list,tab <id>,tab new [--show],get title,eval, a JPEG screenshot,script --out=,windows --json, and theAGENT_BROWSER_SESSIONandARDIA_STAR_PROMPTvariables.here,links 'a|b',read --nav,read-urls,form,query, and a script using$$eval,$eval,frames(),Promise.alland{ receipt: true }.auth listandfill-otp --profilefail as batch lines, and so does a line with theardia browseprefix.--helpbefore it was fixed.Notes
official-plugins.json; the copy onmainstill says 0.4.0.