@deepseek-ai/dsh-web-search-perplexity 0.1.5-rc.2 → 0.1.6-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
@@ -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: 21754cea3aeb7e288a8fa085bc5561a25144d6c7
6
- README.zh.md: 8c078345a341d5fc394f86b57bc7369d9c999bfc
6
+ README.zh.md: 03ee456cc1d5288c0f5b45a7da03cd6e7c098107
package/README.zh.md CHANGED
@@ -58,7 +58,7 @@ kind: "package-reference"
58
58
 
59
59
  ### 失败与恢复
60
60
 
61
- 提供方失败——HTTP 错误、网络失败、响应体无法解析或结构不符——以 `WebError` `WEB_PROVIDER_ERROR` 呈现;中止请求以 `WEB_ABORTED` 呈现。HTTP 重定向会在访问 `Location` 指向的目标之前被拒绝,并以 `WEB_PROVIDER_ERROR` 呈现。调用方按 code 路由;面向模型的 `web_search` 工具会在自己的错误包装层内把失败呈现给模型。
61
+ 提供方失败——HTTP 错误、网络失败、响应体无法解析或结构不符——以 `WebError` `WEB_PROVIDER_ERROR` 呈现;中止请求以 `WEB_ABORTED` 呈现。HTTP 重定向会在访问 `Location` 指向的目标之前被拒绝,并以 `WEB_PROVIDER_ERROR` 呈现。调用方根据错误码进行路由;面向模型的 `web_search` 工具会在自己的错误包装层内把失败呈现给模型。
62
62
 
63
63
  -----
64
64
 
@@ -74,7 +74,7 @@ kind: "package-reference"
74
74
 
75
75
  该提供方是 Perplexity chat-completions 端点之上的薄适配器,遵循两条刻意的规则:
76
76
 
77
- - **生成答案作为 `content` 受到信任。** 与其他搜索后端不同,Perplexity 返回模型生成的答案,本提供方将其作为规范化 `content` 字段透传。
77
+ - **生成答案直接用作 `content`。** 与其他搜索后端不同,Perplexity 返回模型生成的答案,本提供方将其作为规范化 `content` 字段透传。
78
78
  - **结构化来源优先;只含 URL 的引用是回退。** `search_results[]` 携带可移植字段;`citations[]` 只携带 URL,服务词汇把这些字段设为可选,正是为了这种情况。
79
79
 
80
80
  ### 源码地图
@@ -84,7 +84,7 @@ kind: "package-reference"
84
84
  | [`src/index.ts`](src/index.ts) | 插件入口:配置 schema、环境变量回退、提供方注册 |
85
85
  | [`src/provider.ts`](src/provider.ts) | `PerplexitySearchProvider`:请求分发、中止分类、答案与来源映射 |
86
86
  | [`src/types.ts`](src/types.ts) | chat-completions 响应的 Perplexity 协议类型 |
87
- | — | 不发布运行时不变式伴生入口;约定在服务处强制执行。 |
87
+ | — | 不发布运行时不变量配套入口;除所属 seam 强制执行的约定外,本包不公开独立的事件序列或可变数据关系。 |
88
88
 
89
89
  ### 请求与映射流程
90
90
 
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.5-rc.2",
4
+ "version": "0.1.6-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,17 +27,17 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "peerDependencies": {
30
- "@deepseek-ai/dsh-web": "^0.1.5-rc.2",
31
- "@deepseek-ai/cordis": "^4.0.2",
32
- "@deepseek-ai/dsh-launch-environment": "^0.1.5-rc.2"
30
+ "@deepseek-ai/dsh-web": "^0.1.6-alpha.2",
31
+ "@deepseek-ai/dsh-launch-environment": "^0.1.6-alpha.2",
32
+ "@deepseek-ai/cordis": "^4.0.2"
33
33
  },
34
34
  "dependencies": {
35
35
  "@deepseek-ai/schemastery": "^3.18.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@deepseek-ai/dsh-launch-environment": "^0.1.5-rc.2",
39
- "@deepseek-ai/dsh-web": "^0.1.5-rc.2",
38
+ "@deepseek-ai/dsh-launch-environment": "^0.1.6-alpha.2",
40
39
  "@deepseek-ai/cordis": "^4.0.2",
41
- "@deepseek-ai/dsh-http-proxy": "^0.1.5-rc.2"
40
+ "@deepseek-ai/dsh-web": "^0.1.6-alpha.2",
41
+ "@deepseek-ai/dsh-http-proxy": "^0.1.6-alpha.2"
42
42
  }
43
43
  }