Repository navigation
fix: correct Pi's Ardia guide where a live test found it wrong - #33
Merged
Merged
Conversation
Ardi's agent tested every command class against Ardia and found guide text that doesn't match CLI 0.7.0. find's default action is click, so it no longer recommends find for locating a control. Site notes print when a command arrives on a site, not on snapshot. A confirm or prompt blocks the call until the next one starts by answering it. Script read() returns rows while page.read() returns text. Current Ardia takes input in background tabs, and --json does nothing in ardia_exec lines.
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
Ardi's own agent tested every command class in its instructions against Ardia with CLI 0.7.0 (example.com, a Selenium test form, HN, a JSON API, local test pages). This fixes the guide wherever the report held up. Every claim was checked against the 0.7.0 source or a live run first.
guide.tsfind role button --name Saveclicks, because click isfind's default action. To find a control without acting, the guide now usessnapshot find Save, orfind … text/find … is visible(all checked live: no click).open, or a navigation from another site).snapshotnever prints them. New or changed notes carry a "quarantined, unreviewed" label until they've been used in 3 sessions over 2 days or the user approves them. Saved flows print the same way.alertand "leave site?" dialogs are accepted automatically. Aconfirmorpromptfails the action withdialog_blocked, and every later line,dialog statusincluded, isnot rununtil it's answered. The next call must start withdialog accept [text]ordialog dismiss.read: the globalread()returns rows (url, finalUrl, title, status, text, pluserroron failure), whilepage.read()returns the tab's text.tab --show.--jsonon anardia_execline changes nothing.flow saverecords the steps after the lastopen, not theopenitself.references/browse.md:read --fastnames its method at the start of the answer.Left alone: commands the guide doesn't teach, and failures caused by the test machine's environment. Upstream CLI help mismatches, such as
wait --download <ms>andnotes --helpsaying "atop snapshot", are for the ardia CLI, not here.Testing
bun run lint,bun test --randomizeandbun run buildpass.openand on navigation between sites, never onsnapshot.confirmandpromptblock the call; a first-linedialog accept "Zed"answers a prompt.findforms leave the URL unchanged.read()returns rows andpage.read()returns a string.dialog statuswording that's included here.