Skip to content

v0.2.0 - per-provider visibility + site-scoping

Choose a tag to compare

@CerebroCanibalus CerebroCanibalus released this 25 Sep 05:07
· 17 commits to main since this release

What changed from v0.1.0

SearchOutcome (breaking tool shape)

The search tool now returns { results, providers, warnings } instead of a flat array.
Every entry of providers exposes the per-engine state so failures never disappear silently:

{
  "results": [ { "url": "...", "source": "kvrforums.com", "title": "...", "snippet": "...", "engine": "bing" } ],
  "providers": [
    { "name": "duckduckgo", "status": { "kind": "rate_limited", "status": 202 } },
    { "name": "bing",       "status": { "kind": "ok", "count": 5 } },
    { "name": "brave",      "status": { "kind": "rate_limited", "status": 429 } }
  ],
  "warnings": [
    "duckduckgo: rate-limited; back off or rotate ARGOS_PROVIDERS",
    "brave: rate-limited; back off or rotate ARGOS_PROVIDERS"
  ]
}

When every configured provider is rate-limited, search returns the new typed error
AllProvidersRateLimited with the per-engine list - so the agent can tell
"no hits for this query" apart from "your IP is being throttled".

SearchResult.source

New source field (compact hostname, no scheme/www/path) populated by every provider.
Helps the agent eyeball credibility without parsing URLs.

search.domains (new optional parameter)

domains: ["kvrforums.com", "reddit.com"] appends
(site:kvrforums.com OR site:reddit.com) to the query. Critical for niche research
where keyless Bing/DDG/Brave misinterpret ambiguous tokens ("free", "best", "download").

Implementation notes

  • SearchProvider trait unchanged; only Fanout returns the richer shape via a new run method.
  • Vec<ProviderEntry> chosen over BTreeMap to side-step a schemars version conflict
    (rmcp pulls 1.x; flojo_mcp uses 0.8).

Quality

40/40 unit tests, fmt + clippy -D warnings green, smoke test exercises the new
providers + warnings surface and the domains scoping end-to-end.