npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@unieai/uad-web-search-exa

v0.1.21

Published

Exa-backed search provider for the DeepSeek Harness web capability seam (ctx.web)

Readme

@unieai/uad-web-search-exa

English | 中文

由 Exa 支持的 WebSearchProvider,用于 harness web 能力 seam(ctx.web)。它调用 Exa 的 POST /search 端点并请求高亮摘要内容,把扁平 results[] 映射为 seam 规范化的 WebSearchResult。

这是一个实现包:它向 ctx.web 注册提供方,不拥有 ctx.web 键,也不注册面向模型的工具(后者属于 @unieai/uad-tool-web)。与 @unieai/uad-llm-deepseek 一样,它是函数/命名空间插件(inject: ['web']),负责注册后端,而非默认导出服务。

配置

| 配置键 | 默认值 | 含义 | |---|---|---| | apiKey | $EXA_API_KEY | Exa API 密钥。为空或缺失时提供方不可用。 | | baseURL | https://api.exa.ai | 端点基址;追加 /search。无法解析时提供方不可用。 | | searchType | auto | 以 Exa type 发送的检索模式:auto(由 Exa 决定)、keyword 或 neural。 | | numResults | (未设置) | 请求不含 maxResults 时使用的默认结果数。未设置时不发送默认值。必须是正整数。 | | highlightsPerResult | 1 | 每个结果请求的 highlight 句子数(Exa highlightsPerUrl)。必须是正整数。 |

- id: web-search-exa
  name: '@unieai/uad-web-search-exa'
  config:
    apiKey: !!js process.env.EXA_API_KEY

映射

Exa 返回扁平 results[],不返回生成答案,因此省略 content。每项结果映射为 WebSearchSource:url ← url、title ← title、snippet ← 第一个非空的 highlights[] 条目(没有高亮摘要的结果缺少可移植的 snippet,会被丢弃)、publishedAt ← publishedDate。请求的 maxResults 优先于已配置的默认 numResults,并作为 Exa numResults 发送,以优化成本和延迟;最终上限由 seam 强制执行。提供方失败(HTTP 错误、网络失败、响应体无法解析或结构不符)以 WebError WEB_PROVIDER_ERROR 呈现;中止请求以 WEB_ABORTED 呈现。HTTP 重定向会在访问 Location 指向的目标之前被拒绝,并以 WEB_PROVIDER_ERROR 呈现。

模型体验

通过 dsh-tool-web 间接影响;该工具保留此提供方经 maxResults 限制的 URL、标题、首条 highlight 与发布日期,或将确切的错误消息 Exa search aborted、Exa search request failed: <error> 和 Exa returned an unprocessable response body: <error> 置于消费方的错误包装层内;生成答案与提供方私有字段不进入上下文。

KV Cache 影响

不会直接导致 KV Cache 失效;请求前缀变更由上述消费方负责。

已知限制与暂缓事项

  • 没有非空白高亮摘要的结果会被整个丢弃:没有可映射的可移植 snippet,因此返回源可能少于请求数量。
  • 只公开 searchType/numResults/highlightsPerResult:Exa 的其他控制项(livecrawl、category、域名/日期过滤条件、全文内容)等待提供方无关的 Service Definition 字段(见 seam Agent Note)。
  • 按错误形状分类中止:只有 DOMException 且名为 AbortError 时才映射为 WEB_ABORTED;携带自定义原因的中止(例如 dsh-timeout 的 TimeoutReason)会呈现为 WEB_PROVIDER_ERROR。