@deepseek-ai/dsh-web-search-perplexity 0.1.0-rc.8 → 0.1.1-rc.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
@@ -3,4 +3,4 @@
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-perplexity/README.md
5
5
  README.md: 8800609a05e99d3fa8a61e12b2360e633f0fd330
6
- README.zh.md: 488c1463d28b7d36c34625a3ddbab1aa3417d70c
6
+ README.zh.md: ddf2ef2ef767d7ac2e361e873cefade70ea78115
package/README.zh.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) | 中文
4
4
 
5
- 由 [Perplexity](https://perplexity.ai) 支持的 `WebSearchProvider`,用于 harness [web 能力 seam](../web/README.md)(`ctx.web`)。它调用 Perplexity 的 OpenAI 兼容 `POST /chat/completions` 端点,把生成答案与引用映射为 seam 规范化的 `WebSearchResult`。
5
+ 由 [Perplexity](https://perplexity.ai) 支持的 `WebSearchProvider`,用于 harness [web 能力 seam](../web/README.zh.md)(`ctx.web`)。它调用 Perplexity 的 OpenAI 兼容 `POST /chat/completions` 端点,把生成答案与引用映射为 seam 规范化的 `WebSearchResult`。
6
6
 
7
7
  这是一个**实现**包:它向 `ctx.web` 注册提供方,不拥有该键,也不注册面向模型的工具。与 `@deepseek-ai/dsh-llm-deepseek` 一样,它是函数/命名空间插件(`inject: ['web']`)。OpenAI 兼容协议格式(wire format)是提供方私有细节,并**不**使该提供方依赖 `ctx.llm`。
8
8
 
@@ -47,7 +47,7 @@
47
47
 
48
48
  #### 模型看到的内容
49
49
 
50
- 通过 [`dsh-tool-web`](../tool-web/README.md),会话模型会看到生成答案及结构化结果元数据,或只含 URL 的引用。该提供方确切的错误消息为 `Perplexity search aborted`、`Perplexity search request failed: <error>` 和 `Perplexity returned an unprocessable response body: <error>`;HTTP 失败保留提供方消息。错误包装层属于消费方。
50
+ 通过 [`dsh-tool-web`](../tool-web/README.zh.md),会话模型会看到生成答案及结构化结果元数据,或只含 URL 的引用。该提供方确切的错误消息为 `Perplexity search aborted`、`Perplexity search request failed: <error>` 和 `Perplexity returned an unprocessable response body: <error>`;HTTP 失败保留提供方消息。错误包装层属于消费方。
51
51
 
52
52
  #### Token 影响
53
53
 
@@ -61,5 +61,5 @@
61
61
 
62
62
  - **引用回退源只含 URL**:Perplexity 省略结构化 `search_results[]` 时,源不含 `title`/`snippet`/`publishedAt`,因此工具只渲染纯主机名标签。
63
63
  - **超量返回的来源仍会增加 token 消耗和延迟**:协议没有结果数量控制,`maxResults` 只能由 seam 在事后截断。
64
- - **只公开 `model`/`maxTokens`/`searchRecency`**:Perplexity 的其他搜索控制项(域名过滤条件、`web_search_options` 上下文大小、图片)有待提供方无关的 Service Definition 字段支持(见 [seam Agent Note](../../../.agents/notes/implemented/architecture/2026-06-24-web-capability-seam.md))。
64
+ - **只公开 `model`/`maxTokens`/`searchRecency`**:Perplexity 的其他搜索控制项(域名过滤条件、`web_search_options` 上下文大小、图片)有待提供方无关的 Service Definition 字段支持(见 [seam Agent Note](../../../.agents/notes/implemented/architecture/2026-06-24-web-capability-seam.zh.md))。
65
65
  - **按错误形状分类中止**:只有 `DOMException` 且名为 `AbortError` 时才映射为 `WEB_ABORTED`;携带自定义原因的中止(例如 `dsh-timeout` 的 `TimeoutReason`)会呈现为 `WEB_PROVIDER_ERROR`。
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-web-search-perplexity",
3
3
  "description": "Perplexity-backed search provider for the DeepSeek Harness web capability seam (ctx.web)",
4
- "version": "0.1.0-rc.8",
4
+ "version": "0.1.1-rc.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.0-rc.8",
36
- "@deepseek-ai/dsh-invariants": "^0.1.0-rc.8",
37
- "@deepseek-ai/dsh-web": "^0.1.0-rc.8",
35
+ "@deepseek-ai/dsh-launch-environment": "^0.1.1-rc.2",
36
+ "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
37
+ "@deepseek-ai/dsh-web": "^0.1.1-rc.2",
38
38
  "@deepseek-ai/cordis": "^4.0.1"
39
39
  },
40
40
  "dependencies": {
41
41
  "@deepseek-ai/schemastery": "^3.18.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@deepseek-ai/dsh-launch-environment": "^0.1.0-rc.8",
45
- "@deepseek-ai/dsh-invariants": "^0.1.0-rc.8",
46
- "@deepseek-ai/cordis": "^4.0.1",
47
- "@deepseek-ai/dsh-web": "^0.1.0-rc.8"
44
+ "@deepseek-ai/dsh-launch-environment": "^0.1.1-rc.2",
45
+ "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
46
+ "@deepseek-ai/dsh-web": "^0.1.1-rc.2",
47
+ "@deepseek-ai/cordis": "^4.0.1"
48
48
  }
49
49
  }