DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

Pahom-ka /

Pahom-ka/web-search-yandex

仅 Topic 仓库

这个插件还没有填写简介。

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@26186fe4

web-search-yandex

Improved web search for the DeepSeek Harness web capability seam (ctx.web) with Yandex support: a WebSearchProvider backed by the Yandex Search API v2 synchronous XML endpoint, plus a settings UI card.

What it does

  • POST /search/api/v2/search with an Api-Key header, FORMAT_XML responses.
  • Each <doc> maps to one source: url/title directly, the first <passage> (falling back to <headline>) as the snippet, <modtime> normalized to ISO-8601. Documents without a URL are dropped; duplicates are deduplicated by URL in document order.
  • API errors surface as structured WEB_PROVIDER_ERROR; aborts as WEB_ABORTED; a missing key as WEB_PROVIDER_CREDENTIAL_MISSING with an actionable message.

Credential handling (by design)

No secret ever enters configuration files, the settings document, or this repository:

  • The API key is a credential reference (YANDEX_SEARCH_API_KEY) resolved per search through the DSH credentials service, or the launching environment.
  • The settings card (client-ui/) learns only whether a key is configured; the literal value never rides a response. Writes go through the credentials domain.
  • apiKey in config exists for literal overrides and is marked z.string().role('secret').

Usage

- id: web-search-yandex
  name: '@deepseek-ai/dsh-web-search-yandex'
  # all fields optional; folder id falls back to $YANDEX_FOLDER_ID
  config:
    apiKeyEnv: YANDEX_SEARCH_API_KEY
    familyMode: MODERATE   # NONE | MODERATE | STRICT
    numResults: 10

Repository layout

  • src/ — provider plugin (Cordis plugin web-search-yandex)
  • tests/ — vitest unit tests (doc/response mapping, provider HTTP behavior)
  • client-ui/ — settings card (YandexSearchCard.tsx) and its staged-form controller for the DSH web UI
  • patches/ — diffs wiring the card into ui-settings-plugins and the agent preset rows

License

MIT

—/ 5

暂无评分

需要先验证清单

Commit 26186fe424e2

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于