Skip to content

expose single action, deprecate aiAction in favor of perform() - #72

Merged
Dingway98 merged 1 commit into
mainfrom
expose-single-action
Dec 6, 2025
Merged

expose single action, deprecate aiAction in favor of perform()#72
Dingway98 merged 1 commit into
mainfrom
expose-single-action

Conversation

@Dingway98

@Dingway98 Dingway98 commented Dec 6, 2025

Copy link
Copy Markdown
Contributor

Note

Introduce page.perform for single a11y actions, deprecating aiAction (kept as alias), with types/docs updates, retry handling, and version bump.

  • API:
    • Add page.perform() for single, granular a11y actions; keep page.aiAction() as a deprecated alias in src/agent/index.ts.
    • Expose executeSingleAction as public and wire through a retry wrapper to handle tab/page switches.
  • Types:
    • Update HyperPage interface to include perform() and mark aiAction() as deprecated in src/types/agent/types.ts.
  • Docs:
    • Replace aiAction usage with perform across README examples and guidance; note deprecation.
  • Internals:
    • Add page-switch retry logic for single actions; improve error handling paths.
  • Version:
    • Bump package version to 1.0.8 in package.json.

Written by Cursor Bugbot for commit 416510d. This will update automatically on new commits. Configure here.

Comment thread package.json
{
"name": "@hyperbrowser/agent",
"version": "1.0.7",
"version": "1.0.8",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bump major version to 1.1.0?

@Dingway98
Dingway98 merged commit 2351670 into main Dec 6, 2025
4 checks passed
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.

2 participants