@240xu/dsh-websearch 2.13.7 → 2.13.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/provider.js +4 -0
  2. package/package.json +1 -1
package/lib/provider.js CHANGED
@@ -697,6 +697,10 @@ export function createUnifiedSearchProvider({ ctx, resolveOptions, backends, cac
697
697
  perVariant.push({ query: variantQuery, ordered, mergedContent: fold.mergedContent });
698
698
  }
699
699
 
700
+ if (variantsRun === 0) {
701
+ recordHistory(history, request?.query, 0, 0, candidates.length);
702
+ throw new WebError("unified search: search budget exhausted before any backend could run", "WEB_PROVIDER_ERROR");
703
+ }
700
704
  const variantsSkipped = variants.length - variantsRun;
701
705
  const facetNote = useMulti && variantsSkipped > 0
702
706
  ? ` · multiQuery: ${variantsSkipped}/${variants.length} facets not run (search budget)`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@240xu/dsh-websearch",
3
- "version": "2.13.7",
3
+ "version": "2.13.8",
4
4
  "description": "Unified web search provider for DeepSeek Harness (ctx.web): 13 backends — Exa + Parallel + DDG + SearXNG (keyless), DeepSeek + Anthropic + OpenAI + Brave + Tavily + Serper + Mojeek (key-gated via Settings credentials), Firecrawl + TinyFish (metered keyless, opt-in). Registers provider id \"unified\" for zero-config web_search. 统一网页搜索聚合:13 后端并发扇出、去重合并。See CHANGELOG.md for version history.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",