Add the Chrome fallback and the needs-human flow.

Bot checks escalate to headless Chrome with stealth, which claims the
same identity as tls-client and hands its cookies back to the jar. The
visit counts against the rate limits. If Chrome can't clear a check,
the URL is marked needs-human. Pressing Enter on it in the TUI, or
running 'dibs solve', opens a visible window; dibs carries on once the
page loads. Processes now merge the cookie file on save, with the
newest cookie winning.
This commit is contained in:
Overlord committed 2026-10-14 14:08:56 +02:00
1 parent f2ea1297e8
commit e2cbc1a55c
20 files changed
+905 -73

No files matched your search

+5
View File
@@ -21,6 +21,9 @@ const (
Blocked
// HTTPError is any other non-2xx status.
HTTPError
// NeedsHuman is a bot check that headless Chrome could not clear either,
// such as a captcha. classify never returns it.
NeedsHuman
)
func (v Verdict) String() string {
@@ -35,6 +38,8 @@ func (v Verdict) String() string {
return "blocked"
case HTTPError:
return "http-error"
case NeedsHuman:
return "needs-human"
default:
return "unknown"
}