hy-sde/dsh-web-search-public ↗★ 1

@hy-sde-org/dsh-web-search-public

Credential-free concurrent web search fan-out for DeepSeek Harness (Startpage, DuckDuckGo, Ecosia, Google, Mojeek, consensus-merged, soft/hard deadlines)

套件
@hy-sde-org/dsh-web-search-public
相容性
待驗證
Harness 依賴範圍
^0.2.2-rc.3
Cordis 依賴範圍
~4.1.0
版本
0.2.2-rc.3
授權
MIT
最近更新
2026年11月15日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add @hy-sde-org/dsh-web-search-public

Verify the composed configuration

dsh web --dump-config

The composed tree must show a web-search-public-npm row loading @hy-sde-org/dsh-web-search-public; on harnesses that ship the bundled provider, the bundled web-search-public row is disabled. The bundle preserves the profile's existing web.searchProvider and web.fetchProvider selection. Without a pinned search provider, ctx.web auto-selects this provider when it is the sole usable search provider.

Configuration

All options are optional; constants fill the defaults. Configure via the plugin row’s config: in your profile patch, or programmatically via ctx.plugin(...).

OptionDefaultPurpose
enginesstartpage, duckduckgo, ecosia, google, mojeekengine ids the fan-out races; this order is the tiebreak for consensus ties; unlisted engines stay disabled; an explicit empty array is rejected at activation — omit the key for the default set
timeoutMs30000per-engine transport timeout (ms): bounds one engine even if it ignores aggregate cancellation; browser-backed engines may spend it on fetch → browser escalation, so the default is 30 s
softDeadlineMs5000soft aggregate deadline — return as soon as all engines settled or this passes with ≥1 success
hardDeadlineMs30000hard aggregate deadline — the overall budget across retries and their backoff; past it the call returns whatever it has, even nothing; must be ≥ softDeadlineMs
maxRetries1retries for the all-engines-failed aggregate when at least one engine died from a retryable transport failure (HTTP 5xx, a timeout, or a network fetch failure). Each retry re-runs the whole fan-out after a backoff, so a short engine throttle that strips the first attempt still yields results. 0 disables retrying. Hard blocks (HTTP 4xx) are never retried — they open that engine’s circuit breaker — and a pure all-no results aggregate is query-level and never retried.
retryDelayMs2000base delay before retry #1 (ms); doubles on each subsequent attempt.
failureCooldownMs300000fast-fail window (ms) after an all-engines-down failure (retry exhausted, or every engine hard-blocked/tripped): searches in this window return a clear retry in about Ns error instead of re-blasting engines that just throttled us (which would deepen the block). 0 disables the window.
engineBackoffMs300000base per-engine circuit-breaker window (ms): an engine that hard-blocks (HTTP 4xx), answers with a challenge wall, or is still pending at the hard deadline is skipped for this long instead of being re-blasted on every search. Doubles per consecutive trip up to maxEngineBackoffMs; resets after a successful probe. 0 disables the per-engine breaker.
maxEngineBackoffMs3600000cap for the doubled per-engine circuit-breaker window (ms).
relaxPositiveConstraintsfalsewhether a positive constraint (site:, intitle:, …) that would erase every result is relaxed with a notice instead of returning []. false keeps positive filters strict — an over-narrow filter returns an empty result naming the filter — while explicit negative filters (-site:…) are never relaxed either way.
maxConcurrentPerEngine1cap on simultaneously in-flight operations per engine across all overlapping searches. Queued work neither contacts the engine nor consumes its per-engine timeout, queue waits respect caller aborts, and a queue wait that would outlive the aggregate hard deadline is denied without a network request. 0 disables the cap.
userAgentbrowser-shaped constantUser-Agent sent to the engines (deliberately not the product UA)
- id: web-search-public-npm
  name: '@hy-sde-org/dsh-web-search-public'
  config:
    engines: [startpage, duckduckgo, google, mojeek]   # drop Ecosia, reorder
    timeoutMs: 30000
    softDeadlineMs: 4000
    hardDeadlineMs: 25000
    maxRetries: 1
    retryDelayMs: 2000
    failureCooldownMs: 300000
    engineBackoffMs: 300000
    maxEngineBackoffMs: 3600000
    relaxPositiveConstraints: false
    maxConcurrentPerEngine: 1

PublicEngineId values are the exported engine ids; any id outside the known set is dropped at startup, and an engines: [] config is rejected at activation with a clear message — omit the key for the default set (a provider with no engines would be unusable).