Skip to content

Add SDK API parity methods#84

Open
shrisukhani wants to merge 6 commits into
mainfrom
cursor/sdk-api-parity-b9e9
Open

Add SDK API parity methods#84
shrisukhani wants to merge 6 commits into
mainfrom
cursor/sdk-api-parity-b9e9

Conversation

@shrisukhani
Copy link
Copy Markdown
Contributor

@shrisukhani shrisukhani commented May 14, 2026

Summary

  • Add sync and async SDK wrappers for profile update/batch delete, task listing and generic tasks, session utility endpoints, volume pagination, sandbox runtime browser auth, and image build APIs.
  • Export missing public models for volumes, profiles, sessions, generic tasks, and sandbox image/build APIs.
  • Address Bugbot feedback by keeping sandbox runtime auth/image build helpers on the sandbox manager, aligning TaskLlm with browser-use model coverage, parsing task summary created_at as datetime, adding list() to generic sync/async task managers, allowing integer network status filters, and relaxing task list pagination fields.

Validation

  • poetry run python -m compileall hyperbrowser
  • git diff --name-only HEAD~1 HEAD HEAD | xargs poetry run ruff check
  • poetry run pytest tests/test_sandbox_wire_contract.py tests/test_volume_wire_contract.py tests/integration/test_client_http.py
  • poetry run pytest currently reaches environment-dependent sandbox e2e calls and fails with connection refused because no local API is running; contract/integration tests pass.
  • Full poetry run ruff check . still reports pre-existing unused import/bare except warnings outside this change.
Open in Web Open in Cursor 

Co-authored-by: shri <shri@metlo.com>
@shrisukhani
Copy link
Copy Markdown
Contributor Author

@claude thoroughly review this PR and find any issues / oversights. This is critical.

@shrisukhani
Copy link
Copy Markdown
Contributor Author

bugbot review

Comment thread hyperbrowser/client/managers/async_manager/sandbox.py Outdated
@shrisukhani shrisukhani marked this pull request as ready for review May 14, 2026 02:22
Co-authored-by: shri <shri@metlo.com>
Comment thread hyperbrowser/models/consts.py Outdated
Comment thread hyperbrowser/models/agents/task.py Outdated
Co-authored-by: shri <shri@metlo.com>
@shrisukhani
Copy link
Copy Markdown
Contributor Author

bugbot review

Comment thread hyperbrowser/client/managers/async_manager/agents/task.py
Co-authored-by: shri <shri@metlo.com>
Comment thread hyperbrowser/models/session.py
status_codes was typed as List[str], forcing callers to use string literals
for numeric HTTP codes. Use List[Union[str, int]] so values like [200, 404]
are valid while string patterns remain supported.

Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 83b11f9. Configure here.

Comment thread hyperbrowser/models/agents/task.py Outdated
Co-authored-by: shri <shri@metlo.com>
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