@deepseek-ai/dsh-web-search-exa 0.1.1-rc.1 → 0.1.2-alpha.2

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.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/web/web-search-exa/README.md
5
- README.md: 5b1212c1fb210a3aca7836875cc295fad87e7437
6
- README.zh.md: 0d236cb1cb42ab3742d86872a2329060f8ceb09f
5
+ README.md: c1ce4db68314932d896e24163c0adca30c7ad3c6
6
+ README.zh.md: 2bc12ad8d45f67cac28ce1c95ea8a7f65e4cc2db
package/README.md CHANGED
@@ -1,35 +1,117 @@
1
+ ---
2
+ description: "The Exa-backed search provider for ctx.web: how deployments mount vendor-native web search with portable snippets and publication dates."
3
+ kind: "package-reference"
4
+ ---
5
+
1
6
  # @deepseek-ai/dsh-web-search-exa
2
7
 
3
8
  English | [中文](README.zh.md)
4
9
 
5
- An [Exa](https://exa.ai)-backed `WebSearchProvider` for the harness [web capability seam](../web/README.md) (`ctx.web`). It calls Exa's `POST /search` endpoint with highlight contents and maps the flat `results[]` into the seam's normalized `WebSearchResult`.
10
+ ## Summary
6
11
 
7
- This is an **implementation** package: it registers a provider into `ctx.web`, it does not own the `ctx.web` key and it does not register a model-facing tool (that is `@deepseek-ai/dsh-tool-web`). Like `@deepseek-ai/dsh-llm-deepseek`, it is a function/namespace plugin (`inject: ['web']`) that registers its backend, not a default-export service.
12
+ With `dsh-web-search-exa`, the harness searches the web through Exa and gets vendor-native results with portable snippets and publication dates. Choose it when a deployment has an Exa API key and wants Exa's keyword or neural search. Exa returns no generated answer, so results carry no `content` — only citeable sources. A result with no non-blank highlight is dropped, so a call can return fewer sources than requested. The model-facing `web_search` tool lives in `dsh-tool-web`.
8
13
 
9
- ## Config
14
+ ## Table of Contents
10
15
 
11
- | Key | Default | Meaning |
12
- |---|---|---|
13
- | `apiKey` | `$EXA_API_KEY` | Exa API key. Empty/absent makes the provider unavailable. |
14
- | `baseURL` | `https://api.exa.ai` | Endpoint base; `/search` is appended. An unparseable value makes the provider unavailable. |
15
- | `searchType` | `auto` | Retrieval mode sent as Exa's `type`: `auto` (Exa decides), `keyword`, or `neural`. |
16
- | `numResults` | (unset) | Default result count when a request carries no `maxResults`. Unset sends no default. Must be a positive integer. |
17
- | `highlightsPerResult` | `1` | Highlight sentences requested per result (Exa's `highlightsPerUrl`). Must be a positive integer. |
16
+ - [Use this package](#use-this-package)
17
+ - [Understand the implementation](#understand-the-implementation)
18
+ - [Further Exploration](#further-exploration)
19
+ - [Model Experience](#model-experience)
20
+ - [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
21
+ - [Dev Note](#dev-note)
22
+
23
+ -----
24
+
25
+ <a id="use-this-package"></a>
26
+ ## Use this package
27
+
28
+ Mount the provider in a composition that already loads the web service; it registers as the `exa` search provider, so `ctx.web.search()` resolves it automatically when it is the only usable search backend — or pin it with `searchProvider: exa`.
29
+
30
+ ### When to choose it
31
+
32
+ Choose this backend when a deployment holds an Exa API key and wants Exa's keyword or neural search with per-result highlight snippets and publication dates. The provider is unavailable — and every search call fails with a structured error — when the key is empty or the endpoint base does not parse.
33
+
34
+ ### Minimal configuration
35
+
36
+ Load the web service and the provider; the API key falls back to `$EXA_API_KEY` from the launch environment, and all other settings have safe defaults.
18
37
 
19
38
  ```yaml
20
- - id: web-search-exa
21
- name: '@deepseek-ai/dsh-web-search-exa'
39
+ - name: '@deepseek-ai/dsh-web'
40
+ - name: '@deepseek-ai/dsh-web-search-exa'
22
41
  config:
23
42
  apiKey: !!js process.env.EXA_API_KEY
24
43
  ```
25
44
 
26
- ## Mapping
45
+ | Field | Default | Meaning |
46
+ |---|---|---|
47
+ | `apiKey` | `$EXA_API_KEY` | Exa API key; empty or absent makes the provider unavailable |
48
+ | `baseURL` | `https://api.exa.ai` | Endpoint base; `/search` is appended. An unparseable value makes the provider unavailable |
49
+ | `searchType` | `auto` | Retrieval mode sent as Exa's `type`: `auto`, `keyword`, or `neural` |
50
+ | `numResults` | (unset) | Default result count when a request carries no `maxResults`; must be a positive integer |
51
+ | `highlightsPerResult` | `1` | Highlight sentences requested per result (Exa's `highlightsPerUrl`); must be a positive integer |
52
+
53
+ The generated [configuration catalog](../../../docs/config-catalog.md#deepseek-aidsh-web-search-exa) is the exhaustive source for every accepted field and its JSDoc.
54
+
55
+ ### What a search returns
56
+
57
+ Each Exa result maps to a `WebSearchSource`: `url`, `title`, the first non-blank highlight as `snippet`, and `publishedDate` as `publishedAt`; a result with no highlight has no portable snippet and is dropped. A request's `maxResults` wins over the configured `numResults` default and is sent to Exa as a cost and latency optimization — the final bound is enforced by the service, which truncates and flags. Exa returns no generated answer, so the result carries no `content`.
58
+
59
+ ### Failures and recovery
60
+
61
+ Provider failures — HTTP errors, network failures, unparseable or wrong-shape bodies — surface as `WebError` `WEB_PROVIDER_ERROR`; an aborted request surfaces as `WEB_ABORTED`. HTTP redirects are rejected before the `Location` target is contacted and surface as `WEB_PROVIDER_ERROR`. Callers route on the code; the model-facing `web_search` tool surfaces failures to the model under its own error wrapper.
62
+
63
+ -----
64
+
65
+ <a id="understand-the-implementation"></a>
66
+ ## Understand the implementation
67
+
68
+ <details>
69
+ <summary>Implementation internals — click to expand</summary>
70
+
71
+ This section explains the design decisions behind the provider; the observable behavior is fully covered in [Use this package](#use-this-package).
72
+
73
+ ### Design philosophy
27
74
 
28
- Exa returns a flat `results[]` and no generated answer, so `content` is omitted. Each result maps to a `WebSearchSource`: `url` ← `url`, `title` ← `title`, `snippet` ← the first non-empty `highlights[]` entry (a result with no highlight has no portable snippet and is dropped), `publishedAt` ← `publishedDate`. A request's `maxResults` wins over the configured `numResults` default and is sent as Exa's `numResults` for a cost/latency optimization; the final bound is enforced by the seam. Provider failures (HTTP errors, network failure, unparseable or wrong-shape bodies) surface as `WebError` `WEB_PROVIDER_ERROR`; an aborted request surfaces as `WEB_ABORTED`. HTTP redirects are rejected before the `Location` target is contacted and surface as `WEB_PROVIDER_ERROR`.
75
+ The provider is a thin adapter over Exa's API with two deliberate rules:
29
76
 
77
+ - **Portable snippets only.** A source gains a `snippet` only from a real highlight; inventing one from other fields would make the seam lie, so snippet-less results are dropped entirely.
78
+ - **No invented answers.** Exa returns no generated answer, so `content` is omitted rather than fabricating provider prose the model might trust.
79
+
80
+ ### Source map
81
+
82
+ | File | Role |
83
+ |---|---|
84
+ | [`src/index.ts`](src/index.ts) | Plugin entry: config schema, environment fallback, provider registration |
85
+ | [`src/provider.ts`](src/provider.ts) | The `ExaSearchProvider`: request dispatch, abort classification, result mapping |
86
+ | [`src/types.ts`](src/types.ts) | Exa wire types: `ExaSearchResponse`, `ExaResult`, `ExaError` |
87
+ | [`src/invariant.ts`](src/invariant.ts) | Invariant companion (no runtime invariant; contracts are enforced at the service) |
88
+
89
+ ### Request and mapping flow
90
+
91
+ `search()` posts the query, retrieval mode, highlight request, and optional result count to `{baseURL}/search` with `redirect: 'error'`, so a redirect fails the request without contacting the target. The parsed `results[]` are mapped one by one, snippet-less entries dropped, and the service applies the final `maxResults` bound on the way back. An abort — a `DOMException` named `AbortError` — becomes `WEB_ABORTED`; anything else becomes `WEB_PROVIDER_ERROR`.
92
+
93
+ </details>
94
+
95
+ -----
96
+
97
+ <a id="further-exploration"></a>
98
+ ## Further Exploration
99
+
100
+ Read these pages when the package-level contract is not enough. They move from the shared vocabulary to the service, the model-facing tools, and the design rationale.
101
+
102
+ - [Web subsystem](../../../docs/subsystems/web.md) — the exhaustive search request/result vocabulary and error codes.
103
+ - [Web package map](../README.md) — the six-package family and each role.
104
+ - [dsh-web](../web/README.md) — the web service this provider registers into.
105
+ - [dsh-tool-web](../tool-web/README.md) — the model-facing `web_search` tool that renders this provider's sources.
106
+ - [Generated configuration catalog](../../../docs/config-catalog.md#deepseek-aidsh-web-search-exa) — every accepted config field and its source declaration.
107
+ - [Web capability seam decision](../../../.agents/notes/implemented/architecture/2026-06-24-web-capability-seam.md) — why search and fetch share one provider-selection service.
108
+
109
+ -----
110
+
111
+ <a id="model-experience"></a>
30
112
  ## Model Experience
31
113
 
32
- Indirectly, through [`dsh-tool-web`](../tool-web/README.md), which retains this provider's `maxResults`-bounded URLs, titles, first highlights, and publication dates or its exact `Exa search aborted`, `Exa search request failed: <error>`, and `Exa returned an unprocessable response body: <error>` failures under the consumer's error wrapper while generated answers and provider-private fields remain outside context.
114
+ Indirectly, through `dsh-tool-web`, which retains this provider's `maxResults`-bounded URLs, titles, first highlights, and publication dates or its exact `Exa search aborted`, `Exa search request failed: <error>`, and `Exa returned an unprocessable response body: <error>` failures under the consumer's error wrapper.
33
115
 
34
116
  #### KV Cache effect
35
117
 
@@ -37,6 +119,25 @@ No direct invalidation; the named consumer owns any request-prefix changes.
37
119
 
38
120
  ## Known Limitations and Deferred Work
39
121
 
40
- - **A result with no non-blank highlight is dropped entirely** — no portable snippet to map, so fewer sources than the requested count can return.
41
- - **Only `searchType`/`numResults`/`highlightsPerResult` are exposed** — Exa's other controls (livecrawl, category, domain/date filters, full-text contents) wait on provider-neutral Service Definition fields ([seam Agent Note](../../../.agents/notes/implemented/architecture/2026-06-24-web-capability-seam.md)).
42
- - **Abort classification is error-shape-based** — only a `DOMException` named `AbortError` maps to `WEB_ABORTED`; an abort carrying a custom reason (e.g. `dsh-timeout`'s `TimeoutReason`) surfaces as `WEB_PROVIDER_ERROR`.
122
+ <a id="known-limitations-and-deferred-work"></a>
123
+
124
+
125
+ These limits define when the provider is a poor fit. They are current package constraints.
126
+
127
+ - **A result with no non-blank highlight is dropped entirely** — there is no portable snippet to map, so fewer sources than requested can return.
128
+ - **Only `searchType`/`numResults`/`highlightsPerResult` are exposed** — Exa's other controls (livecrawl, category, domain/date filters, full-text contents) wait on provider-neutral service fields ([seam Agent Note](../../../.agents/notes/implemented/architecture/2026-06-24-web-capability-seam.md)).
129
+ - **Abort classification is error-shape-based** — only a `DOMException` named `AbortError` maps to `WEB_ABORTED`; an abort carrying a custom reason (such as `dsh-timeout`'s `TimeoutReason`) surfaces as `WEB_PROVIDER_ERROR`.
130
+
131
+ <a id="dev-note"></a>
132
+ ### Dev Note
133
+
134
+ <details>
135
+ <summary>Working context for maintainers — click to expand</summary>
136
+
137
+ This Dev Note is working context for maintainers: open questions and undecided directions. It is explicitly non-authoritative — shipped behavior, limits, and rationale live in the sections above and the linked Agent Notes.
138
+
139
+ #### Future: wider Exa control surface
140
+
141
+ Exa's livecrawl, category, domain and date filters, and full-text contents stay unexposed. Exposing them needs provider-neutral service fields first, so the family adds one coordinated control rather than a vendor-specific argument.
142
+
143
+ </details>
package/README.zh.md CHANGED
@@ -1,42 +1,143 @@
1
+ ---
2
+ description: "ctx.web 的 Exa 搜索提供方:部署方如何挂载厂商原生 web 搜索,获得可移植 snippet 与发布日期。"
3
+ kind: "package-reference"
4
+ ---
5
+
1
6
  # @deepseek-ai/dsh-web-search-exa
2
7
 
3
8
  [English](README.md) | 中文
4
9
 
5
- 由 [Exa](https://exa.ai) 支持的 `WebSearchProvider`,用于 harness [web 能力 seam](../web/README.zh.md)(`ctx.web`)。它调用 Exa 的 `POST /search` 端点并请求高亮摘要内容,把扁平 `results[]` 映射为 seam 规范化的 `WebSearchResult`。
10
+ ## 概述
6
11
 
7
- 这是一个**实现**包:它向 `ctx.web` 注册提供方,不拥有 `ctx.web` 键,也不注册面向模型的工具(后者属于 `@deepseek-ai/dsh-tool-web`)。与 `@deepseek-ai/dsh-llm-deepseek` 一样,它是函数/命名空间插件(`inject: ['web']`),负责注册后端,而非默认导出服务。
12
+ 有了 `dsh-web-search-exa`,harness 可以通过 Exa 搜索 web,获得带可移植 snippet 与发布日期的厂商原生结果。当部署持有 Exa API 密钥、并希望使用 Exa 的关键词或神经搜索时选择它。Exa 不返回生成答案,因此结果不携带 `content`——只产出可引用的来源。没有非空白高亮的来源会被丢弃,因此一次调用返回的来源可能少于请求数量。面向模型的 `web_search` 工具位于 `dsh-tool-web`。
8
13
 
9
- ## 配置
14
+ ## 目录
10
15
 
11
- | 配置键 | 默认值 | 含义 |
12
- |---|---|---|
13
- | `apiKey` | `$EXA_API_KEY` | Exa API 密钥。为空或缺失时提供方不可用。 |
14
- | `baseURL` | `https://api.exa.ai` | 端点基址;追加 `/search`。无法解析时提供方不可用。 |
15
- | `searchType` | `auto` | 以 Exa `type` 发送的检索模式:`auto`(由 Exa 决定)、`keyword` 或 `neural`。 |
16
- | `numResults` | (未设置) | 请求不含 `maxResults` 时使用的默认结果数。未设置时不发送默认值。必须是正整数。 |
17
- | `highlightsPerResult` | `1` | 每个结果请求的 highlight 句子数(Exa `highlightsPerUrl`)。必须是正整数。 |
16
+ - [使用本包](#use-this-package)
17
+ - [理解实现](#understand-the-implementation)
18
+ - [进一步探索](#further-exploration)
19
+ - [模型体验](#model-experience)
20
+ - [已知限制与延期工作](#known-limitations-and-deferred-work)
21
+ - [开发备注](#dev-note)
22
+
23
+ -----
24
+
25
+ <a id="use-this-package"></a>
26
+ ## 使用本包
27
+
28
+ 在已加载 web 服务的组合中挂载本提供方;它以 `exa` 搜索提供方身份注册,因此当它是唯一可用的搜索后端时,`ctx.web.search()` 会自动解析到它——也可以用 `searchProvider: exa` 固定。
29
+
30
+ ### 何时选择
31
+
32
+ 当部署持有 Exa API 密钥、并希望使用 Exa 的关键词或神经搜索、获得带每结果高亮 snippet 与发布日期时选择此后端。密钥为空或端点基址无法解析时,提供方不可用——每次搜索调用都会以结构化错误失败。
33
+
34
+ ### 最小配置
35
+
36
+ 加载 web 服务与本提供方;API 密钥回退到启动环境中的 `$EXA_API_KEY`,其余设置都有安全默认值。
18
37
 
19
38
  ```yaml
20
- - id: web-search-exa
21
- name: '@deepseek-ai/dsh-web-search-exa'
39
+ - name: '@deepseek-ai/dsh-web'
40
+ - name: '@deepseek-ai/dsh-web-search-exa'
22
41
  config:
23
42
  apiKey: !!js process.env.EXA_API_KEY
24
43
  ```
25
44
 
26
- ## 映射
45
+ | 字段 | 默认值 | 含义 |
46
+ |---|---|---|
47
+ | `apiKey` | `$EXA_API_KEY` | Exa API 密钥;为空或缺失时提供方不可用 |
48
+ | `baseURL` | `https://api.exa.ai` | 端点基址;追加 `/search`。无法解析时提供方不可用 |
49
+ | `searchType` | `auto` | 以 Exa `type` 发送的检索模式:`auto`、`keyword` 或 `neural` |
50
+ | `numResults` | (未设置) | 请求不含 `maxResults` 时使用的默认结果数;必须是正整数 |
51
+ | `highlightsPerResult` | `1` | 每个结果请求的 highlight 句子数(Exa `highlightsPerUrl`);必须是正整数 |
52
+
53
+ 生成的[配置目录](../../../docs/config-catalog.zh.md#deepseek-aidsh-web-search-exa)是每个受支持字段及其 JSDoc 的穷尽式真源。
54
+
55
+ ### 搜索返回什么
56
+
57
+ 每项 Exa 结果映射为 `WebSearchSource`:`url`、`title`、以首个非空白高亮作为 `snippet`、`publishedDate` 作为 `publishedAt`;没有高亮的来源缺少可移植的 snippet,会被丢弃。请求的 `maxResults` 优先于已配置的默认 `numResults`,并作为成本与延迟优化发送给 Exa——最终上限由服务强制执行:截断并标记。Exa 不返回生成答案,因此结果不携带 `content`。
58
+
59
+ ### 失败与恢复
60
+
61
+ 提供方失败——HTTP 错误、网络失败、响应体无法解析或结构不符——以 `WebError` `WEB_PROVIDER_ERROR` 呈现;中止请求以 `WEB_ABORTED` 呈现。HTTP 重定向会在访问 `Location` 指向的目标之前被拒绝,并以 `WEB_PROVIDER_ERROR` 呈现。调用方按 code 路由;面向模型的 `web_search` 工具会在自己的错误包装层内把失败呈现给模型。
62
+
63
+ -----
64
+
65
+ <a id="understand-the-implementation"></a>
66
+ ## 理解实现
67
+
68
+ <details>
69
+ <summary>实现细节——点击展开</summary>
70
+
71
+ 本节解释提供方背后的设计决策;可观察行为已在[使用本包](#use-this-package)中完整说明。
72
+
73
+ ### 设计理念
27
74
 
28
- 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` 呈现。
75
+ 该提供方是 Exa API 之上的薄适配器,遵循两条刻意的规则:
29
76
 
77
+ - **只取可移植的 snippet。** 来源只有在真实高亮存在时才获得 `snippet`;用其他字段捏造会让 seam 说谎,因此没有 snippet 的结果被整个丢弃。
78
+ - **不虚构答案。** Exa 不返回生成答案,因此省略 `content`,而不是编造模型可能信任的提供方文本。
79
+
80
+ ### 源码地图
81
+
82
+ | 文件 | 职责 |
83
+ |---|---|
84
+ | [`src/index.ts`](src/index.ts) | 插件入口:配置 schema、环境变量回退、提供方注册 |
85
+ | [`src/provider.ts`](src/provider.ts) | `ExaSearchProvider`:请求分发、中止分类、结果映射 |
86
+ | [`src/types.ts`](src/types.ts) | Exa 协议类型:`ExaSearchResponse`、`ExaResult`、`ExaError` |
87
+ | [`src/invariant.ts`](src/invariant.ts) | 不变式伴生插件(无运行时不变式;约定在服务处强制执行) |
88
+
89
+ ### 请求与映射流程
90
+
91
+ `search()` 以 `redirect: 'error'` 把查询、检索模式、高亮请求与可选结果数 POST 到 `{baseURL}/search`,因此重定向会在不接触目标的情况下使请求失败。解析后的 `results[]` 逐项映射,没有 snippet 的条目被丢弃,服务在返回路径上应用最终的 `maxResults` 上限。中止——名为 `AbortError` 的 `DOMException`——变为 `WEB_ABORTED`;其余情况变为 `WEB_PROVIDER_ERROR`。
92
+
93
+ </details>
94
+
95
+ -----
96
+
97
+ <a id="further-exploration"></a>
98
+ ## 进一步探索
99
+
100
+ 当包级约定不够用时阅读以下页面。它们从共享词汇逐步进入服务、面向模型的工具与设计依据。
101
+
102
+ - [web 子系统](../../../docs/subsystems/web.zh.md)——穷尽式的搜索请求/结果词汇与错误码。
103
+ - [web 包映射](../README.zh.md)——六包家族与各角色。
104
+ - [dsh-web](../web/README.zh.md)——本提供方注册进入的 web 服务。
105
+ - [dsh-tool-web](../tool-web/README.zh.md)——渲染本提供方来源的面向模型 `web_search` 工具。
106
+ - [生成配置目录](../../../docs/config-catalog.zh.md#deepseek-aidsh-web-search-exa)——每个受支持配置字段及其源声明。
107
+ - [web 能力 seam 决策](../../../.agents/notes/implemented/architecture/2026-06-24-web-capability-seam.zh.md)——搜索与抓取为何共用一项提供方选择服务。
108
+
109
+ -----
110
+
111
+ <a id="model-experience"></a>
30
112
  ## 模型体验
31
113
 
32
- 通过 [`dsh-tool-web`](../tool-web/README.zh.md) 间接影响;该工具保留此提供方经 `maxResults` 限制的 URL、标题、首条 highlight 与发布日期,或将确切的错误消息 `Exa search aborted`、`Exa search request failed: <error>` 和 `Exa returned an unprocessable response body: <error>` 置于消费方的错误包装层内;生成答案与提供方私有字段不进入上下文。
114
+ 间接地,通过 `dsh-tool-web`:该工具把本提供方经 `maxResults` 限制的 URL、标题、首条高亮与发布日期,或将确切的错误消息 `Exa search aborted`、`Exa search request failed: <error>` 和 `Exa returned an unprocessable response body: <error>` 保留在消费方的错误包装层内。
33
115
 
34
116
  #### KV Cache 影响
35
117
 
36
118
  不会直接导致 KV Cache 失效;请求前缀变更由上述消费方负责。
37
119
 
38
- ## 已知限制与暂缓事项
120
+ ## 已知限制与延期工作
121
+
122
+ <a id="known-limitations-and-deferred-work"></a>
123
+
124
+
125
+ 这些限制说明提供方在哪些情况下不合适。它们是当前包约束。
126
+
127
+ - **没有非空白高亮的来源会被整个丢弃**——没有可映射的可移植 snippet,因此返回来源可能少于请求数量。
128
+ - **只公开 `searchType`/`numResults`/`highlightsPerResult`**——Exa 的其他控制项(livecrawl、category、域名/日期过滤条件、全文内容)等待提供方无关的服务字段(见 [seam Agent Note](../../../.agents/notes/implemented/architecture/2026-06-24-web-capability-seam.zh.md))。
129
+ - **按错误形状分类中止**——只有名为 `AbortError` 的 `DOMException` 才映射为 `WEB_ABORTED`;携带自定义原因的中止(例如 `dsh-timeout` 的 `TimeoutReason`)呈现为 `WEB_PROVIDER_ERROR`。
130
+
131
+ <a id="dev-note"></a>
132
+ ### 开发备注
133
+
134
+ <details>
135
+ <summary>维护者的工作上下文——点击展开</summary>
136
+
137
+ 本开发备注是维护者的工作上下文:开放问题与尚未决定的探索方向。它明确不具权威性——已交付的行为、限制与既定理由以上文和相关 Agent Note 为准。
138
+
139
+ #### 未来:更宽的 Exa 控制面
140
+
141
+ Exa 的 livecrawl、category、域名与日期过滤条件以及全文内容仍未公开。公开它们需要先有提供方无关的服务字段,让家族以一个协调一致的控制项、而非厂商专有参数的方式新增。
39
142
 
40
- - **没有非空白高亮摘要的结果会被整个丢弃**:没有可映射的可移植 snippet,因此返回源可能少于请求数量。
41
- - **只公开 `searchType`/`numResults`/`highlightsPerResult`**:Exa 的其他控制项(livecrawl、category、域名/日期过滤条件、全文内容)等待提供方无关的 Service Definition 字段(见 [seam Agent Note](../../../.agents/notes/implemented/architecture/2026-06-24-web-capability-seam.zh.md))。
42
- - **按错误形状分类中止**:只有 `DOMException` 且名为 `AbortError` 时才映射为 `WEB_ABORTED`;携带自定义原因的中止(例如 `dsh-timeout` 的 `TimeoutReason`)会呈现为 `WEB_PROVIDER_ERROR`。
143
+ </details>
package/lib/index.js CHANGED
@@ -120,11 +120,8 @@ function isAbortError(error) {
120
120
  //#endregion
121
121
  //#region lib/types/index.js
122
122
  /**
123
- * `@deepseek-ai/dsh-web-search-exa`: registers an Exa-backed `WebSearchProvider`
124
- * with `ctx.web`. A function/namespace plugin (NOT a default-export service):
125
- * a search provider does not own the `ctx.web` key — it registers INTO the
126
- * seam's provider registry, exactly as `@deepseek-ai/dsh-llm-deepseek`
127
- * registers an adapter into `ctx.llm`. The key is owned by `@deepseek-ai/dsh-web`.
123
+ * Exa-backed `WebSearchProvider` plugin. It contributes to the `ctx.web`
124
+ * registry without owning the service.
128
125
  *
129
126
  * @module @deepseek-ai/dsh-web-search-exa
130
127
  */
@@ -1,9 +1,6 @@
1
1
  /**
2
- * `@deepseek-ai/dsh-web-search-exa`: registers an Exa-backed `WebSearchProvider`
3
- * with `ctx.web`. A function/namespace plugin (NOT a default-export service):
4
- * a search provider does not own the `ctx.web` key — it registers INTO the
5
- * seam's provider registry, exactly as `@deepseek-ai/dsh-llm-deepseek`
6
- * registers an adapter into `ctx.llm`. The key is owned by `@deepseek-ai/dsh-web`.
2
+ * Exa-backed `WebSearchProvider` plugin. It contributes to the `ctx.web`
3
+ * registry without owning the service.
7
4
  *
8
5
  * @module @deepseek-ai/dsh-web-search-exa
9
6
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-web-search-exa",
3
3
  "description": "Exa-backed search provider for the DeepSeek Harness web capability seam (ctx.web)",
4
- "version": "0.1.1-rc.1",
4
+ "version": "0.1.2-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -32,18 +32,18 @@
32
32
  ],
33
33
  "license": "MIT",
34
34
  "peerDependencies": {
35
- "@deepseek-ai/dsh-launch-environment": "^0.1.1-rc.1",
36
- "@deepseek-ai/dsh-web": "^0.1.1-rc.1",
37
- "@deepseek-ai/dsh-invariants": "^0.1.1-rc.1",
38
- "@deepseek-ai/cordis": "^4.0.1"
35
+ "@deepseek-ai/dsh-web": "^0.1.2-alpha.2",
36
+ "@deepseek-ai/cordis": "^4.0.2",
37
+ "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
38
+ "@deepseek-ai/dsh-launch-environment": "^0.1.2-alpha.2"
39
39
  },
40
40
  "dependencies": {
41
- "@deepseek-ai/schemastery": "^3.18.1"
41
+ "@deepseek-ai/schemastery": "^3.18.2"
42
42
  },
43
43
  "devDependencies": {
44
- "@deepseek-ai/dsh-launch-environment": "^0.1.1-rc.1",
45
- "@deepseek-ai/dsh-invariants": "^0.1.1-rc.1",
46
- "@deepseek-ai/dsh-web": "^0.1.1-rc.1",
47
- "@deepseek-ai/cordis": "^4.0.1"
44
+ "@deepseek-ai/dsh-launch-environment": "^0.1.2-alpha.2",
45
+ "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
46
+ "@deepseek-ai/dsh-web": "^0.1.2-alpha.2",
47
+ "@deepseek-ai/cordis": "^4.0.2"
48
48
  }
49
49
  }