@240xu/dsh-websearch 2.13.4 → 2.13.5

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.
package/README.md CHANGED
@@ -269,7 +269,7 @@ tests/
269
269
  node --test tests/
270
270
  ```
271
271
 
272
- 当前 236/236 pass(`node --test tests/*.test.js`;`tests/up-health.test.mjs` 单独跑)。
272
+ 当前 237/237 pass(`node --test tests/*.test.js`;`tests/up-health.test.mjs` 单独跑)。
273
273
 
274
274
  ### Test-only dependencies
275
275
 
package/lib/history.js CHANGED
@@ -117,6 +117,7 @@ export function toBackendObservability(healthMap, nowMs = Date.now()) {
117
117
  cooledUntilMs: Number.isFinite(e?.cooledUntil) && e.cooledUntil > nowMs ? e.cooledUntil : null,
118
118
  rateLimited: e?.rateLimited === true,
119
119
  keylessRejected: e?.keylessRejected === true,
120
+ credentialMissing: e?.credentialMissing === true,
120
121
  });
121
122
  }
122
123
  }
package/lib/provider.js CHANGED
@@ -843,7 +843,7 @@ export function createUnifiedSearchProvider({ ctx, resolveOptions, backends, cac
843
843
  const header = resultHeader(typeof request?.query === "string" && /[\u4e00-\u9fff]/.test(request.query) ? "zh" : "en");
844
844
  emptyContent = header + "\n\n" + emptyContent;
845
845
  }
846
- if (opts.resultTelemetry !== false && allFailures.length > 0) {
846
+ if (opts.resultTelemetry !== false && (allFailures.length > 0 || facetNote !== "")) {
847
847
  const parts = foldedTelemetry.slice(0, 12).map((t) => {
848
848
  if (t.ok) return t.id + " ✓" + t.ms + "ms/" + t.count;
849
849
  const label = failureLabel(t.id, t.error) ?? (t.error ? String(t.error).slice(0, 40) : "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@240xu/dsh-websearch",
3
- "version": "2.13.4",
3
+ "version": "2.13.5",
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",