File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments