Skip to content

Commit f2648a5

Browse files
author
SentienceDEV
committed
bump version to 0.99.1
1 parent 3b753af commit f2648a5

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sentienceapi",
3-
"version": "0.99.0",
3+
"version": "0.99.1",
44
"description": "TypeScript SDK for Sentience AI Agent Browser Automation",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/agent-runtime.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,16 @@ export class AgentRuntime {
787787
if (!captcha || !captcha.detected) {
788788
return false;
789789
}
790+
// Many pages load CAPTCHA libraries proactively. Only block when we have
791+
// evidence it's actually present/active (iframe/url/text hits), otherwise
792+
// interactive runs can "do nothing" and time out.
793+
const evidence = captcha.evidence;
794+
const iframeHits = evidence?.iframe_src_hits ?? [];
795+
const urlHits = evidence?.url_hits ?? [];
796+
const textHits = evidence?.text_hits ?? [];
797+
if (iframeHits.length === 0 && urlHits.length === 0 && textHits.length === 0) {
798+
return false;
799+
}
790800
const confidence = captcha.confidence ?? 0;
791801
const minConfidence = options.minConfidence ?? DEFAULT_CAPTCHA_OPTIONS.minConfidence;
792802
return confidence >= minConfidence;

0 commit comments

Comments
 (0)