Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
There was a problem hiding this comment.
1 issue found across 15 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="browser-use-node/src/v3/client.ts">
<violation number="1" location="browser-use-node/src/v3/client.ts:64">
P2: The eagerly-started async IIFE can reject before any request awaits it, triggering an unhandled promise rejection in Node.js 15+ (default `--unhandled-rejections=throw`). Consider deferring execution to first use, or attaching a no-op `.catch()` and re-throwing on await.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.
| register_exact_evm_client(client, EthAccountSigner(Account.from_key(key))) | ||
| """ | ||
| try: | ||
| from eth_account import Account # pyright: ignore[reportMissingImports] |
Contributor
There was a problem hiding this comment.
why do we need to ignore missing imports here? And check if they are imported in the first place?
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 by cubic
Add native x402 (USDC pay‑per‑request) to the Python and TypeScript SDKs with accountless and top‑up modes. Also suppresses unhandled rejection warnings when an x402‑wrapped fetch is never used, and documents the $5 default top‑up per payment (with $1 fallback).
New Features
x402PrivateKeyandx402options; lazy x402 helpers; top‑up whenapiKeyis set; new x402 base URLs;HttpClientsupports custom or promisedfetchand omits the API key header in accountless mode; suppress unhandled‑rejection if the client is instantiated but unused.AsyncBrowserUsesupportsx402_private_keyandx402; sync clients disallow x402; automatic top‑up whenapi_keyis set; new x402 base URLs;AsyncHttpClientuses an x402‑aware transport.Migration
@x402/fetch,@x402/evm, andviem. Passx402PrivateKeyor a prebuiltx402; or setBROWSER_USE_X402_PRIVATE_KEY.browser-use-sdk[x402](Python 3.10+). UseAsyncBrowserUse; passx402_private_keyorx402, or setBROWSER_USE_X402_PRIVATE_KEY.https://x402.api.browser-use.com/api/v3and/api/v2when x402 is enabled.Written for commit 4b3b22b. Summary will update on new commits.