argo-search 2.15.0 → 2.16.0

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.
Files changed (134) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.es.md +27 -5
  3. package/README.ja.md +27 -5
  4. package/README.ko.md +27 -5
  5. package/README.md +68 -19
  6. package/README.zh.md +68 -19
  7. package/SKILL.md +7 -7
  8. package/assets/readme/counts.json +1 -1
  9. package/backends/domain_profiles.json +107 -6
  10. package/backends/engine_registry.yaml +15 -2
  11. package/backends/quota_profiles.json +13 -3
  12. package/bin/argo +3 -0
  13. package/config.yaml +16 -0
  14. package/docs/CHANGELOG.md +15 -0
  15. package/docs/ENGINE_CATALOG.md +11 -10
  16. package/docs/MCP_SETUP.md +9 -0
  17. package/docs/RELEASE_NOTES_v2.16.0.md +58 -0
  18. package/engines/specs/archive_org.yaml +1 -1
  19. package/engines/specs/carbon_intensity.yaml +1 -1
  20. package/engines/specs/crates.yaml +1 -1
  21. package/engines/specs/crossref.yaml +4 -2
  22. package/engines/specs/crt_sh.yaml +1 -1
  23. package/engines/specs/dblp.yaml +1 -1
  24. package/engines/specs/devto.yaml +1 -1
  25. package/engines/specs/docker_hub.yaml +1 -1
  26. package/engines/specs/europepmc.yaml +1 -1
  27. package/engines/specs/fxtwitter.yaml +1 -1
  28. package/engines/specs/gbfs_nyc.yaml +1 -1
  29. package/engines/specs/gleif.yaml +1 -1
  30. package/engines/specs/gov_regulations.yaml +1 -1
  31. package/engines/specs/hf_datasets.yaml +1 -1
  32. package/engines/specs/huggingface.yaml +1 -1
  33. package/engines/specs/keenable.yaml +7 -1
  34. package/engines/specs/linux_do.yaml +63 -0
  35. package/engines/specs/local_crossref.yaml +3 -1
  36. package/engines/specs/local_github.yaml +1 -1
  37. package/engines/specs/local_npm.yaml +6 -0
  38. package/engines/specs/local_openstreetmap.yaml +1 -1
  39. package/engines/specs/maven.yaml +1 -1
  40. package/engines/specs/mdn.yaml +1 -1
  41. package/engines/specs/musicbrainz.yaml +1 -1
  42. package/engines/specs/nasa_images.yaml +1 -1
  43. package/engines/specs/nhtsa_vpic.yaml +6 -3
  44. package/engines/specs/npm.yaml +1 -1
  45. package/engines/specs/nuget.yaml +1 -1
  46. package/engines/specs/nvd.yaml +1 -1
  47. package/engines/specs/openalex.yaml +4 -2
  48. package/engines/specs/openreview.yaml +1 -1
  49. package/engines/specs/polymarket.yaml +1 -1
  50. package/engines/specs/sec_edgar.yaml +1 -1
  51. package/engines/specs/steam.yaml +1 -1
  52. package/engines/specs/vam.yaml +1 -1
  53. package/engines/specs/wikidata.yaml +1 -1
  54. package/engines/specs/wikipedia.yaml +1 -1
  55. package/engines/specs/zhihu_hot_app.yaml +1 -1
  56. package/package.json +2 -1
  57. package/packages/dsh-plugin/dsh/client.js +14 -13
  58. package/packages/dsh-plugin/dsh/index.js +6 -0
  59. package/packages/dsh-plugin/dsh/runner.js +1 -1
  60. package/packages/dsh-plugin/dsh/workbench-client.js +796 -0
  61. package/packages/dsh-plugin/dsh/workbench-md.js +386 -0
  62. package/packages/dsh-plugin/dsh/workbench-suggestions.js +148 -0
  63. package/packages/dsh-plugin/dsh/workbench.js +966 -0
  64. package/packages/dsh-plugin/icon.svg +23 -0
  65. package/packages/dsh-plugin/package.json +3 -1
  66. package/packages/dsh-plugin/test/workbench.test.js +92 -0
  67. package/scripts/argo_paths.py +2 -2
  68. package/scripts/badcase_ledger.py +9 -0
  69. package/scripts/cache.py +1 -1
  70. package/scripts/circuit_breaker.py +16 -3
  71. package/scripts/config_cache.py +19 -7
  72. package/scripts/daemon.py +5 -0
  73. package/scripts/engine_dispatch.py +5 -2
  74. package/scripts/engine_env.py +13 -4
  75. package/scripts/engines_base.py +24 -3
  76. package/scripts/engines_builders_archive.py +4 -3
  77. package/scripts/engines_builders_batch11.py +2 -1
  78. package/scripts/engines_builders_batch13.py +4 -3
  79. package/scripts/engines_builders_batch14.py +2 -1
  80. package/scripts/engines_builders_batch15.py +2 -1
  81. package/scripts/engines_builders_batch9.py +2 -2
  82. package/scripts/engines_builders_cn.py +7 -7
  83. package/scripts/engines_builders_data.py +12 -11
  84. package/scripts/engines_builders_data_macro.py +5 -4
  85. package/scripts/engines_builders_dsh.py +2 -1
  86. package/scripts/engines_builders_feeds.py +34 -19
  87. package/scripts/engines_builders_finance.py +2 -1
  88. package/scripts/engines_builders_intl.py +3 -2
  89. package/scripts/engines_builders_media.py +59 -12
  90. package/scripts/engines_builders_science.py +8 -7
  91. package/scripts/engines_builders_skill.py +2 -1
  92. package/scripts/engines_builders_tech.py +3 -3
  93. package/scripts/engines_builders_weather.py +9 -4
  94. package/scripts/engines_http.py +50 -1
  95. package/scripts/engines_mcp.py +28 -6
  96. package/scripts/evidence_loop.py +15 -1
  97. package/scripts/extend_route_labels.py +6 -0
  98. package/scripts/fetch_jina.py +98 -0
  99. package/scripts/fetch_v3.py +52 -93
  100. package/scripts/image_vision/vision_probe +0 -0
  101. package/scripts/install.sh +2 -0
  102. package/scripts/matrix_search_eval.py +8 -10
  103. package/scripts/mcp_transport.py +10 -5
  104. package/scripts/numeric_verify.py +3 -2
  105. package/scripts/output_transparency.py +3 -0
  106. package/scripts/quota.py +30 -29
  107. package/scripts/recovery.py +19 -16
  108. package/scripts/recovery_runner.py +29 -10
  109. package/scripts/redskill/redskill_engine.py +2 -1
  110. package/scripts/route.py +8 -0
  111. package/scripts/route_combo.py +11 -2
  112. package/scripts/route_policy.py +1 -1
  113. package/scripts/search_attribution.py +20 -0
  114. package/scripts/search_entry.py +27 -0
  115. package/scripts/search_output.py +18 -7
  116. package/scripts/search_pipeline.py +3 -3
  117. package/scripts/semantic_evidence.py +20 -11
  118. package/scripts/serp_guard.py +13 -1
  119. package/scripts/settings_page.py +1 -0
  120. package/scripts/single_flight.py +1 -1
  121. package/scripts/social_engines/hackernews_engine.py +2 -1
  122. package/scripts/social_engines/reddit_engine.py +2 -1
  123. package/scripts/social_engines/zhihu_engine.py +2 -1
  124. package/scripts/source_audit.py +42 -7
  125. package/scripts/usage_log.py +24 -9
  126. package/scripts/watch.py +3 -3
  127. package/scripts/zhihu_quota.py +2 -1
  128. package/sub-skills/argo-wide-research/SKILL.md +7 -5
  129. package/sub-skills/ego-search/{SKILL.md → README.md} +15 -47
  130. package/sub-skills/ego-search/scripts/ego_search.py +13 -4
  131. package/sub-skills/js-run/{SKILL.md → README.md} +3 -20
  132. package/sub-skills/local-search/{SKILL.md → README.md} +3 -8
  133. package/sub-skills/local-search/engine_registry.py +32 -7
  134. package/sub-skills/local-seek/SKILL.md +20 -22
@@ -0,0 +1,63 @@
1
+ # linux.do 社区(Discourse)——热帖池 + 本地相关性过滤
2
+ #
3
+ # 补的盲区:**中文 Linux/自建/AI 应用社区的一手讨论**。定位同 V2EX
4
+ # (见 engines/specs/v2ex.yaml),差异在 linux.do 偏运维、自建与 AI 应用。
5
+ #
6
+ # 为什么走 RSS 而不是站内搜索:linux.do 全站有人机门(2026-11-17 实测
7
+ # /latest.json 与 /search.json 均 403「Just a moment...」),而 Discourse
8
+ # 的 /latest.rss 与 /top.rss 免门可用(实测 HTTP 200)。故形态=热帖池 +
9
+ # 本地相关性过滤,与 v2ex 同构;不引入外部 MCP,也不自打 Cloudflare。
10
+ #
11
+ # 实测(2026-11-17):latest.rss 30 条、top.rss 30 条,字段含
12
+ # title/link/description/pubDate/dc:creator/category。
13
+ #
14
+ # 验证:
15
+ # python3 scripts/engine_validate.py --engine linux_do --stage all --admit
16
+ # python3 scripts/search.py "Nginx 配置" --engine linux_do --json
17
+
18
+ engine_id: linux_do
19
+ type: rss_feed
20
+ enabled: true
21
+ cost_tier: free
22
+ label: linux.do 社区
23
+ family: social
24
+ feed_mode: filter
25
+ priority: 20
26
+ # top.rss 实测会 429(重试可救回),两份种子并发取,qps 收 1。
27
+ qps: 1
28
+ period: second
29
+ cost_per_call: 0.0
30
+ cost_unit: free
31
+ timeout: 14
32
+ langs:
33
+ - zh
34
+ match_min_ratio: 0.3
35
+ # linux.do 的 Cloudflare 按 TLS 指纹拦 Python 客户端(urllib 403、
36
+ # curl_cffi 200),故本源走 impersonate 通道。
37
+ tls_impersonate: true
38
+ feeds:
39
+ - url: https://linux.do/latest.rss
40
+ label: 最新
41
+ langs:
42
+ - zh
43
+ - url: https://linux.do/top.rss
44
+ label: 热门
45
+ langs:
46
+ - zh
47
+ canary_query: "人工智能"
48
+ coverage:
49
+ - chinese
50
+ - community
51
+ - tech
52
+ - discussion
53
+ quality_queries:
54
+ - id: linuxdo_ai
55
+ query: 人工智能
56
+ category: community
57
+ - id: linuxdo_selfhost
58
+ query: 自建 部署
59
+ category: community
60
+ - id: linuxdo_vibe
61
+ query: VIBE CODING
62
+ category: community
63
+ desc: linux.do 中文技术社区(Discourse 热帖池 + 本地相关性过滤,RSS 免人机门)
@@ -13,7 +13,9 @@ method: GET
13
13
  query_param: query
14
14
  extra_params:
15
15
  rows: '{n}'
16
- mailto: unified-search@local
16
+ # mailto 运行时由 engines_http.contact_email() 注入(ARGO_CONTACT_EMAIL);
17
+ # 未配置则参数不发送,礼貌池降级为普通池。此键只声明礼貌池意图。
18
+ mailto: ''
17
19
  output_map:
18
20
  items: message.items
19
21
  item_title: title
@@ -16,7 +16,7 @@ extra_params:
16
16
  per_page: '{n}'
17
17
  headers:
18
18
  Accept: application/vnd.github.v3+json
19
- User-Agent: argo-search/2.1
19
+ User-Agent: argo-search
20
20
  output_map:
21
21
  items: items
22
22
  item_title: full_name
@@ -1,6 +1,12 @@
1
1
  engine_id: local_npm
2
2
  type: http
3
3
  enabled: true
4
+ # 与 npm 引擎同端点同参数(registry.npmjs.org/-/v1/search + text/size),
5
+ # output_map 字段也刻意保持一致——两条同时进自动池时,一次搜索可能对同一
6
+ # 上游打两次并占两个候选位,召回完全重复。保留本源是因为 local-search 子
7
+ # 技能的本地聚合通道按名字引用它,但自动路由只该留 npm(T1、coverage 更准)。
8
+ # 实测 1179 条生产查询里 local_npm 被调用 0 次。
9
+ explicit_only: true
4
10
  label: NPM本地
5
11
  cost_tier: free
6
12
  qps: 5
@@ -21,7 +21,7 @@ format: json
21
21
  method: GET
22
22
  query_param: q
23
23
  headers:
24
- User-Agent: argo-search/2.6 (unified-search@local)
24
+ User-Agent: argo-search
25
25
  Accept: application/json
26
26
  Accept-Language: zh-CN,zh;q=0.9,en;q=0.8
27
27
  extra_params:
@@ -50,7 +50,7 @@ output_map:
50
50
  timeout: 12
51
51
  url: https://search.maven.org/solrsearch/select
52
52
  headers:
53
- User-Agent: argo-search/2.5
53
+ User-Agent: argo-search
54
54
  canary_query: guava
55
55
  quality_queries:
56
56
  - id: maven_plain
@@ -29,4 +29,4 @@ output_map:
29
29
  timeout: 8
30
30
  url: https://developer.mozilla.org/api/v1/search
31
31
  headers:
32
- User-Agent: argo-search/2.5
32
+ User-Agent: argo-search
@@ -17,7 +17,7 @@ format: json
17
17
  method: GET
18
18
  query_param: query
19
19
  headers:
20
- User-Agent: argo-search/2.4 (unified-search@local)
20
+ User-Agent: argo-search
21
21
  extra_params:
22
22
  fmt: json
23
23
  limit: '{n}'
@@ -19,7 +19,7 @@ recommended: false
19
19
  latency_ms: 2000
20
20
 
21
21
  headers:
22
- User-Agent: argo-search/1.0 (+nasa_images)
22
+ User-Agent: argo-search
23
23
  Accept: application/json
24
24
 
25
25
  extra_params:
@@ -1,6 +1,9 @@
1
1
  # NHTSA vPIC 车辆厂商/车型本体(免认证)
2
- # 补 shopping 域:车辆厂商/车型标准命名(12361 个厂商),
3
- # 「某车型属于哪个厂商」类查询的权威答案源。
2
+ # 「某车型属于哪个厂商」类查询的权威答案源(12361 个厂商)。
3
+ # coverage 原先含 shopping 是错标:本源是车辆型式认证本体,不出商品与价格。
4
+ # 全仓只有它一个源声明 shopping,于是购物域「看起来有源、实际零覆盖」——
5
+ # 实测「买 空气净化器 推荐」「洗发水 哪个牌子好」都落到 chinese_general 的
6
+ # 通用源。engine_families 本就把 nhtsa_vpic 归 legal,两处真源不一致,此处对齐。
4
7
  # 验证:
5
8
  # python3 scripts/engine_validate.py --engine nhtsa_vpic --stage all --admit --write-doc
6
9
 
@@ -11,7 +14,7 @@ cost_tier: free
11
14
  timeout: 20
12
15
  canary_query: "tesla"
13
16
  desc: "车辆厂商/车型本体(NHTSA vPIC,免认证)"
14
- coverage: [shopping, vehicle, reference, official]
17
+ coverage: [vehicle, reference, official]
15
18
  recommended: false
16
19
  latency_ms: 2500
17
20
 
@@ -59,4 +59,4 @@ quality_queries:
59
59
  timeout: 8
60
60
  url: https://registry.npmjs.org/-/v1/search
61
61
  headers:
62
- User-Agent: argo-search/2.5
62
+ User-Agent: argo-search
@@ -46,7 +46,7 @@ output_map:
46
46
  timeout: 10
47
47
  url: https://azuresearch-usnc.nuget.org/query
48
48
  headers:
49
- User-Agent: argo-search/2.5
49
+ User-Agent: argo-search
50
50
  canary_query: Newtonsoft.Json
51
51
  quality_queries:
52
52
  - id: nuget_plain
@@ -19,7 +19,7 @@ recommended: false
19
19
  latency_ms: 2500
20
20
 
21
21
  headers:
22
- User-Agent: argo-search/1.0 (+nvd)
22
+ User-Agent: argo-search
23
23
  Accept: application/json
24
24
 
25
25
  extra_params:
@@ -11,7 +11,9 @@ coverage:
11
11
  - academic
12
12
  desc: OpenAlex 2.5亿+论文索引(免认证,礼貌池 mailto)
13
13
  extra_params:
14
- mailto: unified-search@local
14
+ # mailto 运行时由 engines_http.contact_email() 注入(ARGO_CONTACT_EMAIL);
15
+ # 未配置则参数不发送,礼貌池降级为普通池。此键只声明礼貌池意图。
16
+ mailto: ''
15
17
  per_page: '{n}'
16
18
  method: GET
17
19
  query_param: search
@@ -24,4 +26,4 @@ output_map:
24
26
  item_url: id
25
27
  item_summary: publication_year
26
28
  headers:
27
- User-Agent: argo-search/2.5 (mailto:unified-search@local)
29
+ User-Agent: argo-search
@@ -19,7 +19,7 @@ recommended: false
19
19
  latency_ms: 3000
20
20
 
21
21
  headers:
22
- User-Agent: argo-search/1.0 (+openreview)
22
+ User-Agent: argo-search
23
23
  Accept: application/json
24
24
 
25
25
  extra_params:
@@ -23,4 +23,4 @@ output_map:
23
23
  timeout: 10
24
24
  url: https://gamma-api.polymarket.com/public-search
25
25
  headers:
26
- User-Agent: argo-search/2.5
26
+ User-Agent: argo-search
@@ -34,7 +34,7 @@ family: finance_market
34
34
  recommended: false
35
35
 
36
36
  headers:
37
- User-Agent: argo-search/1.0 (research contact@example.com)
37
+ User-Agent: argo-search
38
38
  Accept: application/json
39
39
 
40
40
  output_map:
@@ -27,4 +27,4 @@ output_map:
27
27
  timeout: 10
28
28
  url: https://store.steampowered.com/api/storesearch/
29
29
  headers:
30
- User-Agent: argo-search/2.5
30
+ User-Agent: argo-search
@@ -19,7 +19,7 @@ extra_params:
19
19
  images_exist: 1
20
20
  page_size: "{n}"
21
21
  headers:
22
- User-Agent: "argo-search/1.0 (+vam)"
22
+ User-Agent: argo-search
23
23
  Accept: application/json
24
24
  output_map:
25
25
  items: records
@@ -17,7 +17,7 @@ format: json
17
17
  method: GET
18
18
  query_param: search
19
19
  headers:
20
- User-Agent: argo-search/2.4 (unified-search@local)
20
+ User-Agent: argo-search
21
21
  extra_params:
22
22
  action: wbsearchentities
23
23
  format: json
@@ -28,7 +28,7 @@ output_map:
28
28
  url_template: https://en.wikipedia.org/wiki/{title}
29
29
  format: json
30
30
  headers:
31
- User-Agent: argo-search/1.0
31
+ User-Agent: argo-search
32
32
  method: GET
33
33
  query_param: srsearch
34
34
  timeout: 8
@@ -20,7 +20,7 @@ recommended: false
20
20
  latency_ms: 800
21
21
 
22
22
  headers:
23
- User-Agent: argo-search/1.0 (+zhihu_hot_app)
23
+ User-Agent: argo-search
24
24
 
25
25
  extra_params:
26
26
  limit: "{n}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "argo-search",
3
- "version": "2.15.0",
3
+ "version": "2.16.0",
4
4
  "description": "Argo 阿尔戈 — 统一搜索与证据核验。推荐 npx -y argo-search(npm 发布版)或 install.sh 安装。多语言路由、数百个源(大部分免密钥)、影视/体育/金融等垂直源、19 个 MCP 工具(默认注入 4 个核心,全量按需开启,与 CLI 能力面对齐)。",
5
5
  "keywords": [
6
6
  "mcp",
@@ -58,6 +58,7 @@
58
58
  "docs/RELEASE_NOTES_v2.10.1.md",
59
59
  "docs/RELEASE_NOTES_v2.10.2.md",
60
60
  "docs/RELEASE_NOTES_v2.11.2.md",
61
+ "docs/RELEASE_NOTES_v2.16.0.md",
61
62
  "docs/RELEASE_NOTES_v2.15.0.md",
62
63
  "docs/RELEASE_NOTES_v2.14.1.md",
63
64
  "docs/RELEASE_NOTES_v2.14.0.md",
@@ -1,16 +1,6 @@
1
- /*
2
- * @taxueseek/argo-dsh — 浏览器端设置页(无需构建步骤)
3
- *
4
- * 由 DSH ModuleLoader 以 lazy-CJS 方式加载:工厂函数里只 require('react'),
5
- * 其余能力(slots / configForms / remote.credentials / locale)全部由宿主
6
- * 通过 cordis 服务注入。设置值走 configForms(settings namespace =
7
- * 'wide-research'),密钥走 credentials 域——两者都不经过插件配置文件,
8
- * 密钥更不会回显明文。
9
- *
10
- * 注册两个位置:
11
- * settings.section —— 设置弹窗左侧一级菜单(主入口)
12
- * plugins.item —— 设置 > 插件 页里的卡片(摘要 + 同一面板)
13
- */
1
+ /* @taxueseek/argo-dsh — 浏览器端设置页与工作台入口(无需构建步骤)
2
+ * 由 DSH ModuleLoader 以 lazy-CJS 加载,注册 settings.section / plugins.item,
3
+ * 并在浏览器环境按需挂载 /argo/workbench-client.js 搜索分析工作台。 */
14
4
  window.__ModuleLoader__.load({
15
5
  id: '@taxueseek/argo-dsh',
16
6
  factory: (require) => {
@@ -973,6 +963,17 @@ window.__ModuleLoader__.load({
973
963
  for (const off of offs) if (typeof off === 'function') off();
974
964
  };
975
965
  }), 'argo-dsh: settings page');
966
+
967
+ if (typeof window !== 'undefined' && typeof document !== 'undefined' && ctx.slots) {
968
+ ctx.effect(() => {
969
+ let disposed = false;
970
+ let unmount = null;
971
+ import('/argo/workbench-client.js').then((mod) => {
972
+ if (!disposed && typeof mod?.mountArgoWorkbench === 'function') unmount = mod.mountArgoWorkbench(ctx, react);
973
+ }).catch(() => {});
974
+ return () => { disposed = true; if (typeof unmount === 'function') unmount(); };
975
+ }, 'argo-dsh: workbench');
976
+ }
976
977
  }
977
978
 
978
979
  exports.apply = apply;
@@ -57,6 +57,10 @@ import {
57
57
  getRouteHealth,
58
58
  } from './diagnostics.js'
59
59
 
60
+ import {
61
+ registerArgoWorkbench,
62
+ } from './workbench.js'
63
+
60
64
  /**
61
65
  * Schemastery 是可选依赖:装进 DSH profile 后由宿主依赖树提供,仓内单测
62
66
  * 没有 node_modules。导入失败时 Config 保持 undefined,宿主按「无 schema」
@@ -396,5 +400,7 @@ export function apply(ctx, providedConfig = {}) {
396
400
  })
397
401
  } catch { /* ignore */ }
398
402
 
403
+ registerArgoWorkbench(ctx, config, () => readHostCredentials(ctx))
404
+
399
405
  return { childIds, syncNativeTools }
400
406
  }
@@ -240,7 +240,7 @@ export function createMcpConnection(options) {
240
240
  proc.stdin.write(JSON.stringify({ jsonrpc: '2.0', id, method, params }) + '\n')
241
241
  } catch (err) {
242
242
  pending.delete(id)
243
- rej(err)
243
+ entry.rej(err)
244
244
  }
245
245
  })
246
246
  const result = chain.then(run)