Skip to content

Add Jev browser CLI mode with saved OpenRouter settings - #700

Merged
Anton-Horn merged 2 commits into
mainfrom
feat/jev-browser-settings
Sep 22, 2026
Merged

Anton-Horn merged 2 commits into
mainfrom
feat/jev-browser-settings

Conversation

@Anton-Horn

@Anton-Horn Anton-Horn commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Adds cate browser jev "<prompt>" to control the selected browser tab using TypeSafe Jev through OpenRouter. Users save their key in Settings → CLI → OpenRouter API key; Cate makes provider requests in the main process, so local and remote terminal commands do not need an exported OpenRouter key.

Jev chooses browser actions, observed targets, explicit destination URLs, and one whitespace-separated prompt word for each field value. Runs support panel overrides, step limits, and JSON results, and stop on uncertainty or user takeover. Field validation tolerates unrelated page updates while preventing writes after the document or target changes. Large page observations are bounded before inference.

Updates both bundled and installed cate-cli skills. The key uses Cate's existing settings persistence and a masked input; clearing it disables provider requests. Browser Read and Control permissions gate inference. Multiword field values and novel text generation are not supported.

Validation:

  • Type checking and production build passed on the isolated PR branch.
  • 144 focused tests passed for CLI behavior, provider requests, settings persistence, permissions, browser routing, and user takeover.
  • Two deterministic Electron tests passed on the PR build through the settings UI, actual CLI, and browser, including clearing the key.
  • Three live OpenRouter workflows passed through the real CLI with an empty terminal OPENROUTER_API_KEY: save Hi, save Hello!, and search Wikipedia for Berlin.
  • Focused ESLint passed apart from an existing prefer-const finding on the unchanged timer declaration in cateApiHandlers.ts:85.

@Anton-Horn
Anton-Horn merged commit 87772ce into main Sep 22, 2026
3 checks passed
@Anton-Horn
Anton-Horn deleted the feat/jev-browser-settings branch September 22, 2026 15:58
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