Repository navigation
Prima: browser start/stop/clear, per-directory profile, workflow-ordered help - #316
Merged
Merged
Conversation
Add 'prima state', which takes a fresh capture of the open page and prints its url, title, state hash, the open overlay (or none) and the paths to the aria, html and screenshot files. It calls no AI model. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Merge the prima state branch so state can be listed. Bare prima and --help list commands in the order of a regular check. browser start prints the AI model in use. Drop the assert alias of verify. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
What
prima browser start [url]/prima browser stop— open and close the browser through playwright-cli. A bareprima browserstill behaves asstart.prima browser startkeeps one browser profile per directory (~/.explorbot/profiles, one per directory and--pw-session), so a login survivesbrowser stop.--incognitoopens a clean profile.prima browser clearcloses the session and removes the profile kept for this directory.prima browser startprints the AI model in use on anai:line.primawith no arguments prints its version, and lists commands in the order of a regular check:browser start,go,do,check,ux,video,browser stop, thenstate,verify,ask,research,pw. It names--purposeand--video.prima --helpfollows the same order.Breaking
assertalias ofprima verifyis removed.--sessionoption of prima is removed; it never took effect on a playwright-cli browser.Notes
browser stopcan be lost: Chrome writes cookies to disk on a delay. Plainplaywright-cli open --persistentbehaves the same.browser startattaches to it, andbrowser clearcloses it.Testing
bun test boat/prima/tests— 182 pass.bun test tests/unit— 1805 pass; the one failure (ApibotConfigParser ... LANGFUSE_* env vars) is local only, caused by realLANGFUSE_*keys exported on the machine.browser clearand with--incognito.🤖 Generated with Claude Code