dsh-union-search 0.10.13 → 0.10.15

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.md CHANGED
@@ -136,17 +136,17 @@ dsh 默认的搜索 provider 依赖 DeepSeek 官方 API key(`DEEPSEEK_API_KEY`
136
136
  ### 安装
137
137
 
138
138
  ```sh
139
- # npm(推荐,0.9.27+)
140
- dsh plugin --profile web add @drscrewdriver/dsh-union-search
139
+ # npm(推荐,0.10.15+ 统一裸名)
140
+ dsh plugin --profile web add dsh-union-search
141
141
 
142
142
  # 或从源码/本地 tgz 安装
143
143
  git clone https://github.com/drscrewdriver/dsh-union-search.git
144
144
  dsh plugin --profile web add /path/to/dsh-union-search
145
145
  ```
146
146
 
147
- 注意:不要用 npm 别名把 scoped 包装成裸名(例如 `"dsh-union-search": "npm:@drscrewdriver/dsh-union-search@..."`)。
147
+ 注意:包名统一为裸名 `dsh-union-search`(scoped `@drscrewdriver/dsh-union-search` 自 0.10.15 起停止维护)。
148
148
  DSH 以「bundle 行名 == 包内 `name`」判定客户端半(`dsh-client-modules`:`locatePkgJson -> nearestPackage`),
149
- 别名会让浏览器半被判为「非客户端包」,bundle 设置卡、家族 tab、`/union-search-engine` 命令会全部静默消失(0.9.26 实测事故)。
149
+ 历史 scoped 安装升级到新版请用裸名重装(`dsh plugin remove` 后按裸名 add);插件已持久化设置(API key/引擎开关)以条目 id 为键,改名重装会重置,需重新配置(0.10.15 维护决策,2026-10-24 确认)。
150
150
 
151
151
  然后重启:
152
152
 
@@ -529,18 +529,18 @@ Peak hours are 01:00–04:00 and 06:00–10:00 UTC Monday–Friday (excluding Ch
529
529
  ### Installation
530
530
 
531
531
  ```sh
532
- # npm (recommended, 0.9.27+)
533
- dsh plugin --profile web add @drscrewdriver/dsh-union-search
532
+ # npm (recommended, 0.10.15+ — unified unscoped name)
533
+ dsh plugin --profile web add dsh-union-search
534
534
 
535
535
  # or from source / a packed tgz
536
536
  git clone https://github.com/drscrewdriver/dsh-union-search.git
537
537
  dsh plugin --profile web add /path/to/dsh-union-search
538
538
  ```
539
539
 
540
- Note: never alias the scoped package back to the bare name (e.g. `"dsh-union-search": "npm:@drscrewdriver/dsh-union-search@..."`).
541
- DSH identifies a package's client half by "bundle row name == the manifest `name`" (`dsh-client-modules`: `locatePkgJson -> nearestPackage`);
542
- an alias files the browser half as "not a client row", so the bundle settings card, the family tab and `/union-search-engine`
543
- silently disappear (measured on 0.9.26).
540
+ Note: the canonical package name is now the unscoped `dsh-union-search`; the scoped `@drscrewdriver/dsh-union-search` is unmaintained as of 0.10.15.
541
+ DSH identifies a package's client half by "bundle row name == the manifest `name`" (`dsh-client-modules`: `locatePkgJson -> nearestPackage`),
542
+ so upgrading from a historic scoped install means removing it and re-adding by the bare name; settings persisted under the entry id
543
+ (API keys / engine toggles) reset on that swap and need re-configuring (maintenance decision confirmed 2026-10-24).
544
544
 
545
545
  Then restart:
546
546
 
@@ -834,5 +834,3 @@ MIT
834
834
  | lingdianshiren | 1 | SearXNG bearer token 鉴权 |
835
835
 
836
836
  感谢以上全部作者。上游完整提交历史仍可在 [DDDMUC/dsh-free-search](https://github.com/DDDMUC/dsh-free-search) 查阅。
837
-
838
- 原姊妹插件 [dsh-preset-workbench](https://github.com/DDDMUC/dsh-preset-workbench)(设置页里可视化编辑 Agent 预设,与本插件搭配使用)同样出自 DDDMUC,推荐一并安装。
package/cordis.patch.yml CHANGED
@@ -28,16 +28,17 @@
28
28
  # then failed with `configured web provider "ddg" is not registered`. Leaving the
29
29
  # base default (`deepseek-official`) in place means a disabled plugin degrades to
30
30
  # the official provider instead of breaking search outright.
31
- # NOTE (0.9.27): the row `name` must be BOTH the specifier the profile resolves AND
32
- # the package's own manifest name. dsh-client-modules matches the row specifier
33
- # against the nearest package.json `name` (locatePkgJson -> nearestPackage) and
34
- # then uses that manifest name as the boot-graph entry id. An npm alias
35
- # ("dsh-union-search": "npm:@drscrewdriver/dsh-union-search@...") breaks both: the
36
- # browser half is filed as "not a client row" and every client surface (bundle
37
- # settings card, family tab, /union-search-engine) silently disappears.
31
+ # NOTE (0.10.15 bare-name unification, supersedes the 0.9.27 scoped note): the row
32
+ # `name` must be BOTH the specifier the profile resolves AND the package's own
33
+ # manifest name (dsh-client-modules matches row specifier against the nearest
34
+ # package.json `name` via locatePkgJson -> nearestPackage, then uses that manifest
35
+ # name as the boot-graph entry id). The canonical identity is now the UNSCOPED
36
+ # `dsh-union-search`; historic scoped installs (@drscrewdriver/dsh-union-search)
37
+ # keep working but are unmaintained -- migrating = remove + add by bare name
38
+ # (persisted settings keyed by the entry id reset on that swap; accepted 2026-10-24).
38
39
  - insert:
39
40
  - id: web-search-free
40
- name: "@drscrewdriver/dsh-union-search"
41
+ name: "dsh-union-search"
41
42
  config:
42
43
  provider: bing
43
44
  disabledEngines: []
package/lib/client.js CHANGED
@@ -1,9 +1,9 @@
1
1
  // 宿主 boot 图条目 id = 包内 manifest name(dsh-client-modules: graphRow(packageName)),
2
2
  // 浏览器侧随后还会校验自注册 id 与之逐字相等(client/system.ts: "loaded without registering")。
3
3
  // 所以这里的 id 必须等于 package.json 的 "name",不能写 profile 键/别名——
4
- // 0.9.27 起包名为 scoped,此处同步为 scoped。
4
+ // 0.10.15 起包名统一为裸名 dsh-union-search(scoped 时代 0.9.27~0.10.14 结束)。
5
5
  window.__ModuleLoader__.load({
6
- id: "@drscrewdriver/dsh-union-search",
6
+ id: "dsh-union-search",
7
7
  factory: (require) => {
8
8
  var module = { exports: {} };
9
9
  var exports = module.exports;
@@ -2332,7 +2332,7 @@ react_jsx_runtime.jsx("div", {
2332
2332
  ctx.slots.register(
2333
2333
  {
2334
2334
  name: "plugins.row.config",
2335
- key: "@drscrewdriver/dsh-union-search#web-search-free",
2335
+ key: "dsh-union-search#web-search-free",
2336
2336
  },
2337
2337
  (slotProps) =>
2338
2338
  slotProps && slotProps.view === "summary"
@@ -2354,11 +2354,11 @@ react_jsx_runtime.jsx("div", {
2354
2354
  })
2355
2355
  );
2356
2356
  // bundle 详情页平铺(plugins.bundle.config page 面):整卡直接铺在
2357
- // 插件页 → 该 bundle 行详情,比行配置页少一层跳转;key=pkg.name(bundle 名,0.9.27 起为 scoped 名)。
2357
+ // 插件页 → 该 bundle 行详情,比行配置页少一层跳转;key=pkg.name(bundle 名,0.10.15 起为裸名)。
2358
2358
  safe("plugins.bundle.config", () =>
2359
2359
  ctx.slots.inject("plugins.bundle.config", () =>
2360
2360
  ctx.slots.register(
2361
- { name: "plugins.bundle.config", key: "@drscrewdriver/dsh-union-search" },
2361
+ { name: "plugins.bundle.config", key: "dsh-union-search" },
2362
2362
  () => react_jsx_runtime.jsx(UnionSearchCard, { page: true })
2363
2363
  )
2364
2364
  )
package/lib/index.js CHANGED
@@ -242,9 +242,9 @@ function routeEngines(query, { timeRange, disabledEngines = [], fallbackOrder =
242
242
 
243
243
  // 当前插件版本(发布时与 package.json 同步)
244
244
  const PLUGIN_VERSION = "0.10.10";
245
- // 检查更新的 npm registry 元数据地址(dsh-union-search 是 npmjs 上的公开包)
246
- const NPM_REGISTRY_URL = "https://registry.npmjs.org/@drscrewdriver%2Fdsh-union-search/latest";
247
- const PLUGIN_NPM_URL = "https://www.npmjs.com/package/@drscrewdriver/dsh-union-search";
245
+ // 检查更新的 npm registry 元数据地址(dsh-union-search 是 npmjs 上的公开包,0.10.15 起统一裸名)
246
+ const NPM_REGISTRY_URL = "https://registry.npmjs.org/dsh-union-search/latest";
247
+ const PLUGIN_NPM_URL = "https://www.npmjs.com/package/dsh-union-search";
248
248
  const PLUGIN_REPO_URL = "https://github.com/drscrewdriver/dsh-union-search";
249
249
 
250
250
  // 查询 npm registry 的最新版本;失败时返回 null(网络/代理问题不阻塞设置页)
@@ -287,7 +287,7 @@ function detectInstallMode() {
287
287
  let found = null;
288
288
  try {
289
289
  for (const name of fs.readdirSync(profilesDir)) {
290
- // 新名优先;旧名 @drscrewdriver/dsh-free-search 保留为兼容候选(改名前装出的 profile)
290
+ // 裸名优先(0.10.15+ 正统身份);scoped 与更早的 dsh-free-search 保留为兼容候选(历史安装)
291
291
  const pkgPath = [path.join(profilesDir, name, "node_modules", "dsh-union-search"), path.join(profilesDir, name, "node_modules", "@drscrewdriver", "dsh-union-search"), path.join(profilesDir, name, "node_modules", "@drscrewdriver", "dsh-free-search")].find((c) => fs.existsSync(c));
292
292
  if (pkgPath === undefined) continue;
293
293
  let isLink = false;
@@ -1220,7 +1220,7 @@ function extractBySelector(html, { selector, fields, mode, baseUrl } = {}) {
1220
1220
  .replace(/<br\s*\/?>/gi, "\n")
1221
1221
  .replace(/<\/(?:p|div|li|tr|td|th|section|article|blockquote|pre|h[1-6]|table|ul|ol|figcaption|dd|dt)>/gi, "\n\n");
1222
1222
  const tmp = cheerio.load(blocky);
1223
- return { markdown: tmp.text().replace(/[ \t]+/g, " ").replace(/\n{3,}/g, "\n\n").replace(/^\n+/, "").trim(), scope, note: note.join("; ") || undefined };
1223
+ return { markdown: tmp.text().replace(/[ \t]+/g, " ").replace(/\n{3,}/g, "\n\n").replace(/^\n+/, "").trim(), scope, note: note.join("; ") || undefined };
1224
1224
  }
1225
1225
  const md = htmlToMarkdownGfm(joined);
1226
1226
  return { markdown: baseUrl ? absolutizeRelativeLinks(md, baseUrl) : md, scope, note: note.join("; ") || undefined };
@@ -3609,7 +3609,7 @@ function makeBridgeRoutes(settings, search, testEngine, runEngineTests, getCrede
3609
3609
  async updatePlugin() {
3610
3610
  const mode = detectInstallMode();
3611
3611
  if (mode === null) {
3612
- return { ok: false, code: "install-not-found", message: "could not locate @drscrewdriver/dsh-union-search in any profile" };
3612
+ return { ok: false, code: "install-not-found", message: "could not locate dsh-union-search in any profile" };
3613
3613
  }
3614
3614
  if (mode.isLink) {
3615
3615
  return {
@@ -3620,9 +3620,10 @@ function makeBridgeRoutes(settings, search, testEngine, runEngineTests, getCrede
3620
3620
  }
3621
3621
  try {
3622
3622
  const result = await new Promise((resolve, reject) => {
3623
- // 0.9.27:身份端到端 scoped。旧写法 `dsh-union-search@npm:@drscrewdriver/dsh-union-search@latest`
3624
- // 会把依赖键写回裸名别名,而别名安装会让浏览器半被判「非客户端包」(卡/家族 tab 全丢)。
3625
- exec("pnpm add @drscrewdriver/dsh-union-search@latest", { cwd: mode.profileDir, timeout: 120000 }, (error, stdout, stderr) => {
3623
+ // 0.10.15:裸名统一,直接 `pnpm add dsh-union-search@latest`。
3624
+ // scoped 时代(0.9.27~0.10.14)的身份端到端为 @drscrewdriver/…,别名写回裸名会令
3625
+ // 浏览器半被判「非客户端包」(卡/家族 tab 全丢);裸名化后该风险消除,scoped 包停止维护。
3626
+ exec("pnpm add dsh-union-search@latest", { cwd: mode.profileDir, timeout: 120000 }, (error, stdout, stderr) => {
3626
3627
  if (error) reject(new Error(`upgrade failed: ${(stderr || stdout || error.message).trim().slice(0, 300)}`));
3627
3628
  else resolve(stdout);
3628
3629
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-union-search",
3
- "version": "0.10.13",
3
+ "version": "0.10.15",
4
4
  "description": "Union web search for DeepSeek Harness (renamed from dsh-free-search): free keyless engines + many professional paid search APIs — 28 engines (Bing/DuckDuckGo/AnySearch/SearXNG multi-instance union/Exa/Tavily/Keenable/Firecrawl/Parallel keyless; Zhihu global/site via MCP and Perplexity/SerpBase/Serply/DeepSeek official/You.com/Baidu/Kimi/Aliyun/Doubao/Zhipu/Bocha/Metaso with key; OpenAI/Gemini/Claude/Grok model built-in search, explicit-only) + auto smart routing + global engine enable/disable & fallback priority + multi mode (parallel top-3 merge) + multi_search cross-source tool + failure-aware fallback + block system built-in search toggle + experimental free advance_fetch (no API key, no billing; host-twin GitHub-Flavored Markdown conversion + CSS selector/fields structured extraction) + time filtering + platform search + web_fetch, with web settings UI.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "engines": {
68
68
  "node": ">=20",
69
- "dsh": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2"
69
+ "dsh": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3"
70
70
  },
71
71
  "dependencies": {
72
72
  "@deepseek-ai/schemastery": "^3.18.4",
@@ -76,11 +76,11 @@
76
76
  },
77
77
  "peerDependencies": {
78
78
  "@deepseek-ai/cordis": "^4.0.2",
79
- "@deepseek-ai/dsh-client-ui-commands": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
80
- "@deepseek-ai/dsh-client-ui-plugin-manager": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
81
- "@deepseek-ai/dsh-client-ui-renderer": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
82
- "@deepseek-ai/dsh-settings": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
83
- "@deepseek-ai/dsh-tools": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
79
+ "@deepseek-ai/dsh-client-ui-commands": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3",
80
+ "@deepseek-ai/dsh-client-ui-plugin-manager": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3",
81
+ "@deepseek-ai/dsh-client-ui-renderer": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3",
82
+ "@deepseek-ai/dsh-settings": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3",
83
+ "@deepseek-ai/dsh-tools": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3",
84
84
  "@deepseek-ai/schemastery": "^3.18.4",
85
85
  "react": "^18.2.0"
86
86
  },
@@ -112,8 +112,8 @@
112
112
  },
113
113
  "devDependencies": {
114
114
  "@deepseek-ai/cordis": "4.0.1",
115
- "@deepseek-ai/dsh-settings": "^0.1.7-rc.1",
116
- "@deepseek-ai/dsh-tools": "^0.1.7-rc.1"
115
+ "@deepseek-ai/dsh-settings": "0.2.1-rc.3",
116
+ "@deepseek-ai/dsh-tools": "0.2.1-rc.3"
117
117
  },
118
118
  "dsh": {
119
119
  "bundle": {