dsh-fleetseek 0.2.0 → 0.3.1

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/src/index.js CHANGED
@@ -6,12 +6,15 @@ import { createRequire } from "node:module";
6
6
  // Issue #61:代理出站 dispatcher 由 undici 承载(规格 config-network.md 运输段「插件自己的 undici dispatcher」,
7
7
  // 本版本交付可用代理:直连维持 globalThis.fetch,代理路由经 ProxyAgent 隧道;直连不另建 undici Agent 的
8
8
  // 口径出入在规格文中注明,决策来源 = Issue #61 用户指令)。
9
+ import { lookup as dnsLookupAll } from "node:dns/promises";
9
10
  import { fetch as undiciFetch, ProxyAgent } from "undici";
10
- import { CONFIG_CODES, ENTRY_CODES, OFFICIAL_ROUTE_ID, PROVIDER_ID, TOOL_TYPES } from "./constants.js";
11
- import { ConfigError, readConfig } from "./config.js";
11
+ import { CONFIG_CODES, ENTRY_CODES, FETCH_TOOL_TYPES, OFFICIAL_ROUTE_ID, PROVIDER_ID, PROXY_PIN_VALUES, TOOL_TYPES, markPostConnectPhase } from "./constants.js";
12
+ import { ConfigError, checkFetchWriteGate, readConfig } from "./config.js";
13
+ import { deriveHostLog } from "./host-log.js";
12
14
  import { createLazyHostOfficial } from "./official.js";
13
15
  import { createSearchChain } from "./search.js";
14
16
  import { createEntryTransport } from "./transport.js";
17
+ import { createFetchProvider } from "./fetch/provider.js";
15
18
  import { bingBackend } from "./backends/bing.js";
16
19
  import { braveBackend } from "./backends/brave.js";
17
20
  import { deepseekBackends } from "./backends/deepseek.js";
@@ -87,6 +90,29 @@ const ENTRY = z
87
90
  name: z.string(),
88
91
  enabled: z.boolean(),
89
92
  credentialRef: z.string().role("credential-ref"),
93
+ // #86 POOL:多 key 池引用数组(0–8 个凭据引用名;与 credentialRef 互斥归 normalizeConfig 深校验,
94
+ // schema 面只做形状/类型/上限)。role 不设(沿用 credentialRef 单节点 role 约定,旧节点零改动)。
95
+ // schemastery 数组节点内置 meta.default=[](缺键 parse 会凭空注入 []);.default(undefined)
96
+ // 显式撤销该缺省——schema 面不补默认值(SET-005/FB-003 分界不变,缺省归 normalizeConfig)。
97
+ credentialRefs: z.array(z.string()).max(8).default(undefined),
98
+ proxy: z.union([z.string(), z.object({ pac: z.string() })]),
99
+ // #120 PX-006:双态语义(开=省略键);proxyOnly 为存量读兼容值(新写停用)。description 零「升级」。
100
+ proxyPin: z
101
+ .union(PROXY_PIN_VALUES.map((p) => z.const(p)))
102
+ .description(
103
+ "条目级「自动全局代理」开关(#142):省略=开(建连失败自动经全局代理重试一次,含 PAC 形态条目);directOnly=关闭(仅当前路径)。proxyOnly 为存量兼容值,面板不再写入。",
104
+ ),
105
+ })
106
+ .required();
107
+
108
+ /** #87 fetch 面条目(FT-007 钉:type 封闭 tavily-extract;深校验归 config.js normalizeFetchEntry)。 */
109
+ const FETCH_ENTRY = z
110
+ .object({
111
+ id: z.string().required(),
112
+ type: z.union(FETCH_TOOL_TYPES.map((t) => z.const(t))).required(),
113
+ name: z.string(),
114
+ enabled: z.boolean(),
115
+ credentialRef: z.string().role("credential-ref"),
90
116
  proxy: z.union([z.string(), z.object({ pac: z.string() })]),
91
117
  })
92
118
  .required();
@@ -96,6 +122,27 @@ export const Config = z
96
122
  entries: z.array(ENTRY).volatile(),
97
123
  useOfficialDeepSeekSearch: z.boolean().volatile(),
98
124
  timeoutMs: z.number().step(1).min(1).max(Number.MAX_SAFE_INTEGER).volatile(),
125
+ // #120 PX-001:形状零变化(volatile),description 按 #117 口径同步——「全局代理」「失败自动重试」表述,
126
+ // 零「升级」字眼;无自建面板形态下本 description 是宿主可渲染的唯一开关旁面(#87 同款逻辑)。
127
+ proxyEscalation: z.boolean().volatile().description(
128
+ "全局代理重试(默认开;#142 起为存量兼容键):直连或自有代理(含 PAC)条目建连失败后自动经全局代理重试一次,实际生效由各条目「自动全局代理」开关决定;面板不再提供本键开关、保存零写入。显式 false 仍全局生效:全池不再自动经全局代理重试。地址在设置「全局代理」区块配置(只写不回显)。",
129
+ ),
130
+ globalProxy: z.string().volatile(),
131
+
132
+ // #87 fetch 接管三键(Refs #87):volatile,与既有面同口径(默认归 normalizeConfig,不在此补值)。
133
+ // meta.description = 无自建面板形态下唯一宿主可渲染的「开关旁」面(FT-004 披露,sol 终评口径):
134
+ // 四要素摘要 + 文档指引 + 钉死依赖一句话;文案纪律 NAM-003(口径见 naming-copy.md)。
135
+ fetchTakeover: z
136
+ .boolean()
137
+ .volatile()
138
+ .description(
139
+ "开启后 web_fetch 经提取商出网(首期仅 Tavily Extract,需 key,按次计费):URL 随该条目鉴权头与选定网络路径(直连/代理/PAC)发送,宿主凭据与 Cookie 不携带;重定向逐 hop 过闸,localhost/私网拒绝;失败时回落宿主官方抓取。总预算复用 timeoutMs(默认 25s,宿主官方直连默认 30s)。须同时将宿主 web.fetchProvider 钉为 search-chain,未钉死将报 WEB_PROVIDER_AMBIGUOUS;回退须关本开关且撤钉死两步都做。详见 docs/user/fetch-takeover.md。",
140
+ ),
141
+ fetchEntries: z.array(FETCH_ENTRY).volatile(),
142
+ fetchOfficialFallback: z
143
+ .boolean()
144
+ .volatile()
145
+ .description("提取路径失败时回落宿主官方匿名抓取(默认开;官方闸不含 localhost/私网限制,与官方「可访问内网和本机」语义一致)。"),
99
146
  })
100
147
  .required();
101
148
 
@@ -105,7 +152,19 @@ export const Config = z
105
152
  * 此处只保留输入中已存在的键,缺键不进入 value。仅改 validate 的输出对象,schema 节点本身不变。
106
153
  * 实现为节点上的不可枚举自有 ~standard(toJSON 的 refs 序列化不受影响)。
107
154
  */
108
- const CONFIG_OWN_KEYS = ["entries", "useOfficialDeepSeekSearch", "timeoutMs"];
155
+ const CONFIG_OWN_KEYS = [
156
+ "entries",
157
+ "useOfficialDeepSeekSearch",
158
+ "timeoutMs",
159
+ // #88(Refs #88):全局代理自适应两键。
160
+ "proxyEscalation",
161
+ "globalProxy",
162
+ // #87(Refs #87):fetch 三键同受「缺键不进 value / null 拒绝」写闸约束,
163
+ // 否则 dsh-config-schema 缺键回显断言(deepEqual plainValue(result.value), before)被 volatile 注入破坏。
164
+ "fetchTakeover",
165
+ "fetchEntries",
166
+ "fetchOfficialFallback",
167
+ ];
109
168
  const baseStandard = Config["~standard"];
110
169
  Object.defineProperty(Config, "~standard", {
111
170
  configurable: true,
@@ -124,6 +183,18 @@ Object.defineProperty(Config, "~standard", {
124
183
  return { issues: [{ message: `${key} 不得为 null(缺省请省略该键)`, path: [key] }] };
125
184
  }
126
185
  }
186
+ // P0-3(sol-87 实锤):fetch 专属校验织入**真实 schema validate 缝**(写闸=读闸)。原仅 writeConfig
187
+ // 跑 checkFetchWriteGate,宿主真实编辑路径 Config['~standard'].validate 不跑:明文 apiKey 字段经松散
188
+ // schema 过闸落盘、credentialRef="" 的免 key 形态亦过(role≠gate)。现与 writeConfig 同一判据源
189
+ // (SECRET_FIELD key 名 / 免 key 非法 / 深检),零漂移;明文/免 key 反例在此必须被拒。
190
+ try {
191
+ checkFetchWriteGate(input);
192
+ } catch (err) {
193
+ if (err instanceof ConfigError) {
194
+ return { issues: [{ message: err.message, path: ["fetchEntries"] }] };
195
+ }
196
+ throw err;
197
+ }
127
198
  return result;
128
199
  },
129
200
  }),
@@ -137,14 +208,15 @@ function webError(code, message) {
137
208
  return err;
138
209
  }
139
210
 
140
- /** 生产时钟(A8):链与适配器只用 now/setTimeout/clearTimeout;测试经 testDeps.clock 注入受控时钟。 */
211
+ /** 生产时钟(A8):编排与适配器只用 now/setTimeout/clearTimeout;测试经 testDeps.clock 注入受控时钟。 */
141
212
  const SYSTEM_CLOCK = Object.freeze({
142
213
  now: () => Date.now(),
143
214
  setTimeout: (cb, ms) => setTimeout(cb, ms),
144
215
  clearTimeout: (id) => clearTimeout(id),
145
216
  });
146
217
 
147
- const NOOP_LOG = () => {};
218
+ // 生产日志通道(DSH-006,Refs #114):NOOP_LOG 回落面与 ctx.logger 派生适配归 src/host-log.js
219
+ //(分级映射 + 宿主通道前脱敏闸)。装配点单点接线(见 apply),禁止第二处派生。
148
220
 
149
221
  /**
150
222
  * 创建生产出站 fetch(Issue #61:装配面代理出站落地,PROXY_UNSUPPORTED 退役)。
@@ -158,7 +230,7 @@ const NOOP_LOG = () => {};
158
230
  * ProxyAgent 自动以 Proxy-Authorization: Basic 用于 CONNECT 控制面(凭据不进入日志/错误文本,
159
231
  * endpointOf 脱敏)。
160
232
  * 代理连接故障不经本函数归因:undici 的原始错误交回 transport.mapFetchError,按 ENTRY_PROXY 阶段码
161
- * 落定(FB-005 区分代理/直连),链按 FB-001 降级下一条。
233
+ * 落定(FB-005 区分代理/直连),编排按 FB-001 降级下一条。
162
234
  * 生命周期:closeAll 释放全部代理连接池(CFG-004 卸载不残留连接),幂等、单 agent 失败不阻塞其余。
163
235
  * closeAll 与在途搜索协调(PR #62 P2,codex 复审 discussion_r4709786331):closeAll 只关闭当时已
164
236
  * 存在的 ProxyAgent;若在途搜索(await 凭据/准备降级条目)其后到达 fetchFn,agentFor 会在已清空/
@@ -193,8 +265,11 @@ export function createProductionFetch() {
193
265
  // 不得在已清空/已关闭的池上再造新 agent 逃逸于管理之外。CFG-001 红线:绝不静默改走直连。
194
266
  if (closed) {
195
267
  const err = new Error("插件已卸载,代理出站不可用");
268
+ // #120 P1-1:池已释放——请求确未写出,但改道重试走同一已关闭的 agent 池无意义且
269
+ // 逃逸于卸载清理,标记剥夺改道资格(fail-closed,不新增公开码)。
270
+ markPostConnectPhase(err);
196
271
  // 复用既有 ENTRY_PROXY 阶段码(不新增公开码):mapFetchError 经 carriesPassthroughCode
197
- // 原样透传,链按 FB-005 归代理阶段(attempts 原码 ENTRY_PROXY)。
272
+ // 原样透传,编排按 FB-005 归代理阶段(attempts 原码 ENTRY_PROXY)。
198
273
  err.code = ENTRY_CODES.PROXY;
199
274
  return Promise.reject(err);
200
275
  }
@@ -250,12 +325,12 @@ function productionBackends() {
250
325
  return new Map(list.map((b) => [b.type, b]));
251
326
  }
252
327
 
253
- /** 生产搜索链(search.js createSearchChain):每条目经 transport 路由、凭据经宿主服务解析。 */
328
+ /** 生产搜索编排(search.js createSearchChain):每条目经 transport 路由、凭据经宿主服务解析。 */
254
329
  function createProductionChain(ctx, { getConfig, fetchFn, clock, log }) {
255
330
  return createSearchChain({
256
331
  getConfig,
257
332
  backends: productionBackends(),
258
- transport: { open: (entry) => createEntryTransport(entry, { fetch: fetchFn, clock, log }) },
333
+ transport: { open: (entry, routeOpts) => createEntryTransport(entry, { fetch: fetchFn, clock, log, routeOverride: routeOpts }) },
259
334
  credentials: hostCredentials(ctx),
260
335
  env: globalThis.process?.env ?? {},
261
336
  clock,
@@ -263,6 +338,16 @@ function createProductionChain(ctx, { getConfig, fetchFn, clock, log }) {
263
338
  });
264
339
  }
265
340
 
341
+ /** 生产 DNS 预解析面(FT-005 R4):best-effort,ENOTFOUND 等错误由闸内吞掉放行(S-42 口径)。 */
342
+ function productionDns() {
343
+ return {
344
+ lookup: async (host) => {
345
+ const res = await dnsLookupAll(host, { all: true });
346
+ return (Array.isArray(res) ? res : [res]).map((r) => r?.address).filter(Boolean);
347
+ },
348
+ };
349
+ }
350
+
266
351
  /** B1′ 装配映射:配置端口的行不可用(ConfigError ROW_UNAVAILABLE)上抛为 WebError 终态,code 保留。 */
267
352
  function mapRowUnavailable(err) {
268
353
  if (err instanceof ConfigError && err.code === CONFIG_CODES.ROW_UNAVAILABLE) {
@@ -277,7 +362,7 @@ function mapRowUnavailable(err) {
277
362
  * - getConfig:链路径的规范化快照(readConfig),非法条目在此抛 CONFIG_INVALID,仅作链终态。
278
363
  * - getRouteConfig:路由判定的浅读活配置(不经 normalizeConfig),缺省回落 getConfig(测试替身)。
279
364
  * - official:宿主 DeepSeek 官方搜索 provider(须暴露 search(request, signal)),或返回它的惰性函数;
280
- * 为 null 时官方路由回落自定义链(测试替身语义)。
365
+ * 为 null 时官方路由回落自定义搜索路径(测试替身语义)。
281
366
  * - routeOf:从请求取路由 id,默认 request.llmProvider。
282
367
  */
283
368
  export function createSearchProvider(deps) {
@@ -290,8 +375,8 @@ export function createSearchProvider(deps) {
290
375
  officialRouteId = OFFICIAL_ROUTE_ID,
291
376
  } = deps;
292
377
 
293
- // 每次查询的路由与链路径选择(CFG-004 / #12 每操作契约):活配置在入口只读一次(raw),
294
- // 路由判定与链快照由同一份 raw 派生,一次查询 configuration() 行读恰为 1,路由与链不跨保存撕裂。
378
+ // 每次查询的路由与搜索路径选择(CFG-004 / #12 每操作契约):活配置在入口只读一次(raw),
379
+ // 路由判定与搜索快照由同一份 raw 派生,一次查询 configuration() 行读恰为 1,路由与搜索路径不跨保存撕裂。
295
380
  async function dispatchSearch(request, signal) {
296
381
  const raw = getRouteConfig(); // 装配层快照:本操作唯一一次活配置读取
297
382
  const useOfficial = raw?.useOfficialDeepSeekSearch !== false;
@@ -300,20 +385,20 @@ export function createSearchProvider(deps) {
300
385
  const target = typeof official === "function" ? await official() : official;
301
386
  if (target) return target.search(request, signal);
302
387
  }
303
- // 链路径:由同一份 raw 派生规范化快照(非法条目在此以 CONFIG_INVALID 终态止步,零条目执行)。
304
- // 装配层快照注入(#12 每操作契约):快照经链入口参数传入,链不再自读。
388
+ // 搜索路径:由同一份 raw 派生规范化快照(非法条目在此以 CONFIG_INVALID 终态止步,零条目执行)。
389
+ // 装配层快照注入(#12 每操作契约):快照经编排入口参数传入,编排不再自读。
305
390
  const snapshot = getConfig(raw);
306
391
  return chain.search(request, signal, snapshot);
307
392
  }
308
393
 
309
394
  return {
310
395
  id: PROVIDER_ID,
311
- // DSH-002:同步布尔,无网络。初始化完成即接受搜索;空配置由链以 FB-004 终态报告。
396
+ // DSH-002:同步布尔,无网络。初始化完成即接受搜索;空配置由编排以 FB-004 终态报告。
312
397
  available() {
313
398
  return true;
314
399
  },
315
400
  // DSH-002/DSH-005:每次调用一个查询;官方分支仅在「开关开 + 官方路由 + 官方可用」时选择。
316
- // 每次查询重读活配置(CFG-004);路由判定先于规范化,链路径才进 readConfig/normalizeConfig。
401
+ // 每次查询重读活配置(CFG-004);路由判定先于规范化,搜索路径才进 readConfig/normalizeConfig。
317
402
  async search(request, signal) {
318
403
  try {
319
404
  return await dispatchSearch(request, signal);
@@ -329,9 +414,9 @@ export function createSearchProvider(deps) {
329
414
  }
330
415
 
331
416
  /**
332
- * bundle 入口。在 ctx.effect 内注册 provider;cleanup 反注册并释放链与代理出站连接池(DSH-001/CFG-004)。
417
+ * bundle 入口。在 ctx.effect 内注册 provider;cleanup 反注册并释放搜索编排与代理出站连接池(DSH-001/CFG-004)。
333
418
  * testDeps 仅供测试注入(A4/A8):{ chain, official, officialRouteId, routeOf, clock, fetch, log }。
334
- * 生产调用只有两参:链为 createSearchChain 生产接线,clock 为系统时钟,fetch 为 createProductionFetch
419
+ * 生产调用只有两参:编排为 createSearchChain 生产接线,clock 为系统时钟,fetch 为 createProductionFetch
335
420
  * 的生产出站(直连 globalThis.fetch + 代理 undici ProxyAgent,Issue #61)。
336
421
  */
337
422
  /**
@@ -352,9 +437,17 @@ export function apply(ctx, _loadSnapshot, testDeps = {}) {
352
437
  const clock = testDeps.clock ?? SYSTEM_CLOCK;
353
438
  // 每装载实例一份生产出站(代理连接池随本实例释放,不跨实例共享,CFG-004)。
354
439
  const fetchFn = testDeps.fetch ?? createProductionFetch();
355
- const log = testDeps.log ?? NOOP_LOG;
440
+ // 生产日志通道(DSH-006,Refs #114;lead 裁决 = 此前 P1-2「待另裁」项的落地):
441
+ // 装配点单点从 cordis ctx.logger 派生 log(debug/info/warn/error 同名分级映射,结构化字段
442
+ // 随消息透传),进宿主通道前过 host-log.js 脱敏闸(代理 URL userinfo / 带查询原始 URL 禁现,
443
+ // 沿用 endpointOf/pacSourceOf 语义)。ctx.logger 缺席或形态不含分级方法(降级宿主形状)
444
+ // 回落 NOOP_LOG——装载与搜索路径不抛。此前「插件 ctx 无日志服务」的 checkout 实证针对
445
+ // ctx.log 面;cordis 根上下文内置 ctx.logger(子上下文原型继承可达,不经 inject 名单),
446
+ // #88 warn 事件面与 POOL-006 轮替事件、FT-006c 兜底诊断事件自本包起真实送达宿主。
447
+ // 注入日志面(testDeps.log / fetchDeps.log)优先级不变,仍为可观测/测试面(FT-006#3 先例)。
448
+ const log = testDeps.log ?? deriveHostLog(ctx);
356
449
  const settings = createSettingsPort(ctx);
357
- // getConfig(raw):raw 缺省时自读(链独立使用的默认行为);传入 raw 时只从该份活配置规范化,不再读宿主。
450
+ // getConfig(raw):raw 缺省时自读(编排独立使用的默认行为);传入 raw 时只从该份活配置规范化,不再读宿主。
358
451
  const getConfig = (raw) => readConfig(raw === undefined ? settings : { current: () => raw });
359
452
  const chain = testDeps.chain ?? createProductionChain(ctx, { getConfig, fetchFn, clock, log });
360
453
  const official = "official" in testDeps ? testDeps.official : createLazyHostOfficial(ctx);
@@ -367,14 +460,60 @@ export function apply(ctx, _loadSnapshot, testDeps = {}) {
367
460
  officialRouteId: testDeps.officialRouteId,
368
461
  });
369
462
 
463
+ // #87(Refs #87):fetch provider 装配(D1 注入面 testDeps.fetchDeps;生产缺省全生产实现)。
464
+ // dns 语义:显式注入优先;fetchDeps 整体缺省(生产)= 生产 DNS 预解析(FT-005 R4);
465
+ // fetchDeps 在场而 dns 省略(测试面)= 无预解析能力 —— CI 零真实 DNS 红线(G 闸口径)。
466
+ const fd = testDeps.fetchDeps;
467
+ const fetchDeps = {
468
+ transport: fd?.transport ?? { open: (entry, opts) => ({ opts, fetch: fetchFn, close() {} }) },
469
+ clock: fd?.clock ?? clock,
470
+ credentials: fd?.credentials ?? hostCredentials(ctx),
471
+ env: fd?.env ?? (globalThis.process?.env ?? {}),
472
+ log: fd?.log ?? log,
473
+ dns: fd?.dns ?? (fd ? undefined : productionDns()),
474
+ officialFetchProvider: fd?.officialFetchProvider,
475
+ };
476
+ const fetchRef = createFetchProvider({
477
+ getSwitch: () => liveOwnConfig(ctx).fetchTakeover,
478
+ getConfig,
479
+ fetchDeps,
480
+ });
481
+
482
+ // #119(Refs #119):前向合规声明——详情页「页面策略」子级注入(宿主官方样板形态)。
483
+ // 宿主 0.2.2-rc.5 实证:详情页不通用投影 Config schema(三槽注册制,本插件零注册),
484
+ // 故此声明现状零画面变化;configure({ auto: false }) 声明「本插件不自配自动生成」,
485
+ // 宿主消费该声明的将来版本落地前即为合规占位。约束:configure 对同 fiber 重复注册抛
486
+ // → 子级恰一次;经 child.effect 挂 disposer 随卸载释放。能力探测:child.settings 缺席
487
+ // (旧宿主/无该面)静默跳过,零副作用。顶层 export const inject 为装载包列表([M4]),
488
+ // 与本声明无关,原样零动。
489
+ if (typeof ctx.inject === "function") {
490
+ ctx.inject(["settings"], (child) => {
491
+ if (child.settings?.configure === undefined) return;
492
+ child.effect(() => child.settings.configure({ auto: false }, ctx.fiber));
493
+ });
494
+ }
495
+
370
496
  return ctx.effect(() => {
371
- const unregister = ctx.web.registerSearchProvider(provider);
497
+ const unregisters = [ctx.web.registerSearchProvider(provider)];
498
+ // 能力探测注册:宿主 fetch 缝(registerFetchProvider)在场才注册 fetch provider;
499
+ // 旧宿主静默跳过(search 侧不受影响)。重复 id 由宿主抛 WEB_DUPLICATE_PROVIDER(FT-001 钉)。
500
+ if (typeof ctx.web.registerFetchProvider === "function") {
501
+ unregisters.push(ctx.web.registerFetchProvider(fetchRef.provider));
502
+ }
372
503
  return () => {
504
+ for (const u of unregisters) {
505
+ try {
506
+ u();
507
+ } catch {
508
+ // 单个反注册失败不阻塞其余释放
509
+ }
510
+ }
373
511
  try {
374
- unregister();
375
- } finally {
376
512
  provider.release();
377
- }
513
+ } catch {}
514
+ try {
515
+ fetchRef.chain.release();
516
+ } catch {}
378
517
  // CFG-004:卸载随释放代理出站连接池(closeAll 幂等;测试替身 fetch 无 closeAll 时安全跳过)。
379
518
  return fetchFn.closeAll?.();
380
519
  };
package/src/official.js CHANGED
@@ -37,7 +37,7 @@ function unavailableOfficial(cause) {
37
37
  async search() {
38
38
  throw webError(
39
39
  "WEB_PROVIDER_UNAVAILABLE",
40
- "官方 DeepSeek 搜索组件无法加载(宿主需提供 dsh-web-search-deepseek 等依赖包),未回退自定义链",
40
+ "官方 DeepSeek 搜索组件无法加载(宿主需提供 dsh-web-search-deepseek 等依赖包),未回退自定义搜索",
41
41
  cause,
42
42
  );
43
43
  },