Commit History
-
Return SearchResponse instead of bare list from search()
aistoyscoutlet's primary audience is agents, and an agent calling search() has been flying blind: it sees the result list but not what happened underneath. Which engines got CAPTCHA'd? Which were skipped because they're in cooldown? Did wave two fire? Without that signal the agent can't make informed retries — it just sees "0 results" and guesses. Introduce SearchResponse as the new return type of search() and search_sync(), carrying the minimal set an agent needs to adapt: - results: list[SearchResult] (the old return value, unchanged shape) - engines: list[EngineRunInfo] (per-engine outcome: name / status / elapsed_ms / error) - skipped: list[SkippedEngine] (name + reason, e.g. "cooldown" / "not_loaded") Deliberately omitted from this first cut: wave breakdown, coverage scores, total elapsed_ms, query echo. Each of those is easy to add once a concrete agent use case demands it; adding them now is YAGNI and bloats…64f21ed -
Remove CDP browser fallback from core search path
aistoybe541e9
-
Expose adapter-backend flag through the CLI
aistoy +1: Claude Opus 4.7The PrimpAdapter (TLS fingerprint impersonation via primp) was fully implemented and per-engine http_client was already wired through _run_engine, but no CLI surface exposed it. Add --adapter-backend {httpx,default,fingerprint} and thread search_adapter_backend through search()/search_sync(). Per-engine http_client still overrides the global flag. Required for engines like pixabay that now sit behind Cloudflare and need browser-grade TLS to reach their JSON bootstrap endpoint. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>76956dc -
Expose CDP browser fallback via CLI and harden managed browser state
aistoy +1: Claude Opus 4.7The CDP fallback path existed in browser.py but was unreachable from the CLI, and several cached-state bugs meant that even when wired in, headful mode silently reused a headless Chrome, endpoint changes were ignored, and BrowserRunner.close() would close every tab in the user's real Chrome session. 1. cli.py adds --fallback-to-browser, --auto-launch-browser, --cdp-endpoint, and --headful; these thread through search() and search_sync() as search_* overrides that OR-merge with per-engine config. --auto-launch-browser implies --fallback-to-browser. 2. browser.py scope-fixes: - ManagedBrowser user_data_dir is now port-scoped (scoutlet-chrome-profile-{port}) so launching on a second port doesn't collide with a profile locked by the first. - resolve_cdp_endpoint_for_launch() probes /json/version; when the user asked for headful but the endpoint is already occupied by HeadlessChrome, it picks a free port instead of silently reusing headless. - ge…f5578c3
-
Initial commit: scoutlet lightweight search aggregation library
aistoy500336a