@fffangchenghao/dsh-web-search 0.16.0 → 0.16.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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.16.1
4
+
5
+ ### Fixed
6
+ - The Settings page never showed which engines exist: the allow-list field now
7
+ names all eight (four primary: `anysearch`, `exa`, `ddg-html`, `cn.bing`;
8
+ four fallback: `firecrawl`, `www.bing`, `ddg-lite`, `so`) and the group label
9
+ says "8 total". The page description now also lists the model-facing tools,
10
+ including `research`, which is a tool rather than a setting.
11
+
3
12
  ## 0.16.0
4
13
 
5
14
  ### Added
package/client.js CHANGED
@@ -47,14 +47,14 @@
47
47
  var ENTRY = 'web-search-bing';
48
48
  var PACKAGE_NAME = 'dsh-web-search-bing';
49
49
  /** Keep in step with package.json; compared with the npm registry. */
50
- var VERSION = '0.16.0';
50
+ var VERSION = '0.16.1';
51
51
  /** Snapshot used while no configuration service is reachable. */
52
52
  var EMPTY_STATE = { status: 'unavailable', value: undefined, base: undefined, user: undefined, revision: undefined, writable: false };
53
53
 
54
54
  // English copy. Every label the page renders lives here.
55
55
  var en = {
56
56
  title: 'Web search (Bing)',
57
- description: 'Edit the key-free search provider: engine allow-list, wait policy, proxy, result budget, ranking, cache, cooldowns and dedicated sources.',
57
+ description: 'Edit the key-free search provider: engine allow-list, wait policy, proxy, result budget, ranking, cache, cooldowns and dedicated sources. Model tools: web_search, research, domain_search, search_many, read_page.',
58
58
  jumpTo: 'Jump to',
59
59
  latest: 'Latest on npm',
60
60
  upToDate: 'up to date',
@@ -75,8 +75,8 @@
75
75
  discard: 'Discard changes',
76
76
  saved: 'Saved.',
77
77
  saveFailed: 'The deployment did not accept these values; they were kept for correction.',
78
- 'field.hosts': 'Only these engines',
79
- 'hint.hosts': 'Comma separated engine ids; empty means every engine',
78
+ 'field.hosts': 'Only these engines (8 total)',
79
+ 'hint.hosts': 'Four primary: anysearch, exa, ddg-html, cn.bing. Four fallback: firecrawl, www.bing, ddg-lite, so. Empty means all eight; a comma-separated list narrows the set.',
80
80
  'field.timeoutMs': 'Wait limit (ms)',
81
81
  'hint.timeoutMs': 'How long one engine may take; raise it on a slow network',
82
82
  'field.wait': 'How long to wait',
@@ -147,7 +147,7 @@
147
147
  latest: 'npm 最新版',
148
148
  upToDate: '已是最新',
149
149
  updateAvailable: '有新版本',
150
- description: '编辑免密钥搜索提供方:引擎白名单、等待策略、代理、结果上限、排序、缓存、冷却与专用检索源。',
150
+ description: '编辑免密钥搜索提供方:引擎白名单、等待策略、代理、结果上限、排序、缓存、冷却与专用检索源。模型工具:web_search、research、domain_search、search_many、read_page。',
151
151
  'group.engines': '引擎与传输',
152
152
  'group.ranking': '结果与排序',
153
153
  'group.cache': '缓存与冷却',
@@ -164,8 +164,8 @@
164
164
  discard: '放弃更改',
165
165
  saved: '已保存。',
166
166
  saveFailed: '本部署没有接受这些值,已保留供你修改。',
167
- 'field.hosts': '只查哪些引擎',
168
- 'hint.hosts': '只查列出的引擎,逗号分隔;留空表示全部',
167
+ 'field.hosts': '只查哪些引擎(共 8 个)',
168
+ 'hint.hosts': '主引擎 4 个:anysearch、exa、ddg-html、cn.bing;兜底 4 个:firecrawl、www.bing、ddg-lite、so。留空表示全部八个,逗号分隔可只留几个。',
169
169
  'field.timeoutMs': '等待上限(毫秒)',
170
170
  'hint.timeoutMs': '单个引擎最多等多久;网络慢可加到 20000',
171
171
  'field.wait': '等多久',
package/lib/config.js CHANGED
@@ -27,7 +27,7 @@ export const Config = z.object({
27
27
  hosts: z
28
28
  .array(z.string())
29
29
  .default([])
30
- .description('只启用列出的搜索引擎(如 anysearch、cn.bing),多个用逗号分隔;留空表示全部。不想限制就留空。')
30
+ .description('只启用列出的搜索引擎(如 anysearch、cn.bing),多个用逗号分隔;留空表示全部八个(主引擎 anysearch、exa、ddg-html、cn.bing;兜底 firecrawl、www.bing、ddg-lite、so)。不想限制就留空。')
31
31
  .volatile(),
32
32
  timeoutMs: z.natural().min(500).default(15000).description('每次向搜索引擎要结果,最多等它多久(毫秒,1000 = 1 秒)。网络慢可加到 20000;平时保持 15000 就行。').volatile(),
33
33
  fetchFormat: z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fffangchenghao/dsh-web-search",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "DSH bundle: a key-free web search provider. Leads with the anonymous AnySearch API and falls back to public result pages (DuckDuckGo, Bing, 360), merged by reciprocal-rank fusion with a bilingual region policy, an engine cooldown and a TTL cache.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",