@nuanu-ai/agentbrowse 0.2.36 → 0.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/close.d.ts.map +1 -1
- package/dist/commands/close.js +11 -4
- package/dist/commands/observe-accessibility.d.ts.map +1 -1
- package/dist/commands/observe-accessibility.js +64 -2
- package/dist/commands/observe-inventory.d.ts.map +1 -1
- package/dist/commands/observe-inventory.js +91 -15
- package/dist/commands/observe-surfaces.d.ts.map +1 -1
- package/dist/commands/observe-surfaces.js +14 -28
- package/dist/commands/semantic-observe-lexical.d.ts +31 -0
- package/dist/commands/semantic-observe-lexical.d.ts.map +1 -0
- package/dist/commands/semantic-observe-lexical.js +188 -0
- package/dist/commands/semantic-observe.d.ts +1 -0
- package/dist/commands/semantic-observe.d.ts.map +1 -1
- package/dist/commands/semantic-observe.js +183 -97
- package/dist/control-semantics.d.ts.map +1 -1
- package/dist/control-semantics.js +74 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/owned-process.d.ts +3 -0
- package/dist/owned-process.d.ts.map +1 -1
- package/dist/owned-process.js +3 -0
- package/dist/solver/browser-launcher.d.ts +1 -0
- package/dist/solver/browser-launcher.d.ts.map +1 -1
- package/dist/solver/browser-launcher.js +32 -2
- package/dist/solver/captcha-runtime.d.ts.map +1 -1
- package/dist/solver/captcha-runtime.js +4 -1
- package/package.json +2 -1
|
@@ -12,7 +12,10 @@ export async function solveCaptchasByCdp(cdpUrl, apiKey, opts) {
|
|
|
12
12
|
const onProgress = opts?.onProgress;
|
|
13
13
|
const sharedTransport = opts?.sharedTransport ?? Boolean(opts?.proxy);
|
|
14
14
|
onProgress?.('[captcha] connecting to browser...');
|
|
15
|
-
const browser = await withTimeout(puppeteer.connect(
|
|
15
|
+
const browser = await withTimeout(puppeteer.connect({
|
|
16
|
+
...buildConnectOptions(cdpUrl),
|
|
17
|
+
defaultViewport: null,
|
|
18
|
+
}), connectTimeoutMs, `Failed to connect to browser within ${Math.ceil(connectTimeoutMs / 1000)}s`);
|
|
16
19
|
try {
|
|
17
20
|
const solver = new CaptchaSolver({
|
|
18
21
|
apiKey,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuanu-ai/agentbrowse",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.38",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Browser automation CLI for AI agents: control a CDP browser, observe UI surfaces, act on refs, extract data, capture screenshots, complete protected fills, and solve captchas",
|
|
6
6
|
"keywords": [
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"puppeteer": "^23.11.1",
|
|
58
58
|
"puppeteer-extra": "^3.3.6",
|
|
59
59
|
"puppeteer-extra-plugin-stealth": "^2.11.2",
|
|
60
|
+
"snowball-stemmers": "^0.6.0",
|
|
60
61
|
"zod": "^3.24.0"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|