argo-search 1.0.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/config.yaml ADDED
@@ -0,0 +1,554 @@
1
+ cache:
2
+ db_path: ~/.cache/unified-search/cache.db
3
+ enabled: true
4
+ max_size_mb: 200
5
+ ttl: 3600
6
+
7
+ domains:
8
+ - desc: 基金筛选/基金数据
9
+ engines_combo:
10
+ - eastmoney
11
+ - anysearch
12
+ fallback: anysearch
13
+ name: fund_query
14
+ parallel: false
15
+ patterns:
16
+ - (?i)(基金|公募|私募|ETF|LOF|FOF|基金经理|基金净值|基金排行|选基)
17
+ primary: eastmoney
18
+ quote: true
19
+ - desc: 股票/行情查询
20
+ engines_combo:
21
+ - eastmoney
22
+ - anysearch
23
+ fallback: anysearch
24
+ name: stock_query
25
+ parallel: false
26
+ patterns:
27
+ - (?i)(股价|行情|涨跌|K线|大盘|指数|涨停|跌停|板块|概念股)
28
+ - (?i)(stock|quote|price|market\s+cap)
29
+ - A股|港股|美股|股票|ETF|板块
30
+ primary: eastmoney
31
+ quote: true
32
+ - desc: 财经资讯/研报/公告
33
+ engines_combo:
34
+ - byted
35
+ - eastmoney
36
+ - anysearch
37
+ fallback: eastmoney
38
+ name: financial_news
39
+ parallel: true
40
+ patterns:
41
+ - (?i)(研报|财报|公告|财经|宏观|央行政策|降息|加息|CPI|GDP|PMI)
42
+ - (?i)(financial|earnings|report|announcement)
43
+ primary: byted
44
+ - desc: 知乎/观点/经验/评测
45
+ engines_combo:
46
+ - zhihu
47
+ - anysearch
48
+ fallback: anysearch
49
+ name: zhihu_content
50
+ parallel: true
51
+ patterns:
52
+ - (?i)(知乎|怎么看待|如何评价|体验|评测|对比|推荐|哪个好|值得买|好不好|要不要|推荐吗|求推荐|有什么)
53
+ primary: zhihu
54
+ - desc: 学术论文搜索
55
+ engines_combo:
56
+ - arxiv
57
+ - openalex
58
+ - crossref
59
+ - semantic_scholar
60
+ fallback: semantic_scholar
61
+ name: academic
62
+ parallel: true
63
+ patterns:
64
+ - (?i)(论文|paper|arXiv|preprint|DOI|引用|citation|学术)
65
+ - \b\d{4}\.\d{4,5}\b
66
+ - (?i)(transformer|attention\s+mechanism|neural\s+network|deep\s+learning|machine\s+learning|BERT|GPT)
67
+ primary: arxiv
68
+ - desc: 购物评测/选购推荐
69
+ engines_combo:
70
+ - zhihu
71
+ - anysearch
72
+ fallback: anysearch
73
+ name: shopping
74
+ parallel: true
75
+ patterns:
76
+ - (?i)(评测|推荐|哪个好|值得买|选购|入手|踩坑|避雷|best|review|comparison)
77
+ primary: zhihu
78
+ - desc: 技术深度研究
79
+ engines_combo:
80
+ - semantic_scholar
81
+ - arxiv
82
+ - openalex
83
+ - github
84
+ fallback: arxiv
85
+ name: tech_deep
86
+ parallel: true
87
+ patterns:
88
+ - (?i)(research|deep dive|综述|survey|state of the art|SOTA)
89
+ - (?i)(原理|底层|实现|源码分析|架构设计|论文)
90
+ primary: semantic_scholar
91
+ - desc: 代码搜索/开源项目
92
+ engines_combo:
93
+ - github
94
+ - anysearch
95
+ fallback: anysearch
96
+ name: code_search
97
+ parallel: true
98
+ patterns:
99
+ - (?i)(github|source code|代码|源码|开源|函数|API|实现|用法|example|snippet)
100
+ - (?i)\b(repo|repository|library|package|npm|pip|cargo)\b
101
+ primary: github
102
+ - desc: 事实查询/快速问答
103
+ engines_combo:
104
+ - duckduckgo
105
+ - wikipedia
106
+ - wolframalpha
107
+ fallback: duckduckgo
108
+ name: fact_check
109
+ parallel: true
110
+ patterns:
111
+ - (?i)(what is|who is|when did|where is|how many|how much)
112
+ - (?i)(是什么|是谁|什么时候|在哪里|多少|多少钱)
113
+ primary: duckduckgo
114
+ - desc: 实时新闻/事件
115
+ engines_combo:
116
+ - byted
117
+ - duckduckgo
118
+ fallback: duckduckgo
119
+ name: news_realtime
120
+ parallel: true
121
+ patterns:
122
+ - (?i)(最新新闻|最新进展|今天发生|突发|breaking)
123
+ - (?i)\b(news|latest)\b
124
+ primary: byted
125
+ - desc: 中文通用搜索
126
+ engines_combo:
127
+ - bocha
128
+ - byted
129
+ fallback: bocha
130
+ name: chinese_general
131
+ parallel: true
132
+ patterns:
133
+ - '[一-鿿]'
134
+ primary: bocha
135
+ - desc: 本地中文搜索
136
+ engines_combo:
137
+ - local_search
138
+ - bocha
139
+ fallback: local_search
140
+ name: local_chinese
141
+ parallel: true
142
+ patterns:
143
+ - (?i)(百度|搜狗|site:baidu.com|site:sogou.com)
144
+ primary: local_search
145
+ - desc: 本地新闻搜索
146
+ engines_combo:
147
+ - local_search
148
+ - byted
149
+ fallback: byted
150
+ name: local_news
151
+ parallel: true
152
+ patterns:
153
+ - (?i)(本地新闻|bing news|google news|news rss)
154
+ primary: local_search
155
+ - desc: 本地代码搜索
156
+ engines_combo:
157
+ - local_search
158
+ - github
159
+ - anysearch
160
+ fallback: anysearch
161
+ name: local_code
162
+ parallel: true
163
+ patterns:
164
+ - (?i)(stackoverflow|npm package|gitlab repo|github repo|site:stackoverflow.com)
165
+ primary: local_search
166
+ - desc: 本地学术搜索
167
+ engines_combo:
168
+ - local_search
169
+ - arxiv
170
+ - semantic_scholar
171
+ fallback: arxiv
172
+ name: local_academic
173
+ parallel: true
174
+ patterns:
175
+ - (?i)(arxiv api|semantic scholar|crossref|pubmed|site:arxiv.org)
176
+ primary: local_search
177
+ - desc: 本地参考百科
178
+ engines_combo:
179
+ - local_search
180
+ - wikipedia
181
+ - duckduckgo
182
+ fallback: duckduckgo
183
+ name: local_reference
184
+ parallel: true
185
+ patterns:
186
+ - (?i)(wikipedia api|wiktionary|wikiquote|nominatim|openstreetmap)
187
+ primary: local_search
188
+ - desc: 本地通用搜索(兜底)
189
+ engines_combo:
190
+ - local_search
191
+ - anysearch
192
+ fallback: anysearch
193
+ name: local_general
194
+ parallel: true
195
+ patterns:
196
+ - (?i)(本地搜索|local search|零成本|free search)
197
+ primary: local_search
198
+ - desc: 通用搜索(兜底)
199
+ engines_combo:
200
+ - anysearch
201
+ - bocha
202
+ - brave
203
+ fallback: anysearch
204
+ name: general_search
205
+ parallel: true
206
+ patterns: []
207
+ primary: anysearch
208
+
209
+ engines:
210
+ local_search:
211
+ type: cli
212
+ enabled: true
213
+ cmd:
214
+ - python3
215
+ - sub-skills/local-search/search_v3.py
216
+ search_args:
217
+ - '{query}'
218
+ - --n
219
+ - '{n}'
220
+ - --mode
221
+ - '{mode}'
222
+ - --json
223
+ env: {}
224
+ anysearch:
225
+ cmd:
226
+ - python3
227
+ - ~/.agents/skills/anysearch-skill/scripts/anysearch_cli.py
228
+ domain_search:
229
+ - search
230
+ - '{query}'
231
+ - --domain
232
+ - '{domain}'
233
+ - --sub_domain
234
+ - '{sub_domain}'
235
+ - --max_results
236
+ - '{n}'
237
+ enabled: true
238
+ env: {}
239
+ search_args:
240
+ - search
241
+ - '{query}'
242
+ - --max_results
243
+ - '{n}'
244
+ type: cli
245
+ arxiv:
246
+ enabled: true
247
+ format: xml
248
+ method: GET
249
+ query_param: search_query
250
+ timeout: 15
251
+ type: http
252
+ url: http://export.arxiv.org/api/query
253
+ bocha:
254
+ body:
255
+ count: '{n}'
256
+ freshness: oneYear
257
+ query: '{query}'
258
+ summary: true
259
+ enabled: true
260
+ headers:
261
+ Authorization: Bearer {BOCHA_API_KEY}
262
+ Content-Type: application/json
263
+ method: POST
264
+ timeout: 8
265
+ type: http
266
+ url: https://api.bochaai.com/v1/web-search
267
+ brave:
268
+ enabled: false
269
+ extra_params:
270
+ count: '{n}'
271
+ format: json
272
+ headers:
273
+ Accept: application/json
274
+ Accept-Encoding: gzip
275
+ X-Subscription-Token: '{BRAVE_API_KEY}'
276
+ method: GET
277
+ query_param: q
278
+ timeout: 8
279
+ type: http
280
+ url: https://api.search.brave.com/res/v1/web/search
281
+ byted:
282
+ body:
283
+ Count: '{n}'
284
+ NeedSummary: true
285
+ Query: '{query}'
286
+ SearchType: web
287
+ enabled: true
288
+ headers:
289
+ Authorization: Bearer {WEB_SEARCH_API_KEY}
290
+ Content-Type: application/json
291
+ X-Traffic-Tag: skill_web_search
292
+ method: POST
293
+ output_map:
294
+ item_source: SiteName
295
+ item_summary: Summary
296
+ item_title: Title
297
+ item_url: Url
298
+ items: Result.WebResults
299
+ timeout: 8
300
+ type: http
301
+ url: https://open.feedcoopapi.com/search_api/web_search
302
+ crossref:
303
+ enabled: false
304
+ extra_params:
305
+ mailto: unified-search@local
306
+ rows: '{n}'
307
+ format: json
308
+ method: GET
309
+ query_param: query
310
+ timeout: 12
311
+ type: http
312
+ url: https://api.crossref.org/works
313
+ duckduckgo:
314
+ enabled: true
315
+ format: json
316
+ method: GET
317
+ query_param: q
318
+ timeout: 5
319
+ type: http
320
+ url: https://api.duckduckgo.com/
321
+ eastmoney:
322
+ cmd:
323
+ - python3
324
+ - ~/.agents/skills/eastmoney-financial-search/scripts/search.py
325
+ enabled: true
326
+ env: {}
327
+ search_args:
328
+ - search-news
329
+ - --query
330
+ - '{query}'
331
+ - --count
332
+ - '{n}'
333
+ type: cli
334
+ felo:
335
+ body:
336
+ query: '{query}'
337
+ enabled: false
338
+ headers:
339
+ Accept: application/json
340
+ Authorization: Bearer {FELO_API_KEY}
341
+ Content-Type: application/json
342
+ User-Agent: unified-search/1.0.1
343
+ method: POST
344
+ timeout: 15
345
+ type: http
346
+ url: https://openapi.felo.ai/v2/chat
347
+ github:
348
+ enabled: true
349
+ extra_params:
350
+ per_page: '{n}'
351
+ format: json
352
+ headers:
353
+ Accept: application/vnd.github.v3+json
354
+ Authorization: token {GITHUB_TOKEN}
355
+ User-Agent: unified-search
356
+ method: GET
357
+ query_param: q
358
+ timeout: 10
359
+ type: http
360
+ url: https://api.github.com/search/repositories
361
+ metaso:
362
+ body:
363
+ query: '{query}'
364
+ search_size: '{n}'
365
+ source: web
366
+ enabled: false
367
+ headers:
368
+ Authorization: Bearer {METASO_API_KEY}
369
+ Content-Type: application/json
370
+ method: POST
371
+ timeout: 10
372
+ type: http
373
+ url: https://metaso.cn/api/open/search
374
+ openalex:
375
+ enabled: false
376
+ extra_params:
377
+ mailto: unified-search@local
378
+ per_page: '{n}'
379
+ format: json
380
+ method: GET
381
+ query_param: search
382
+ timeout: 12
383
+ type: http
384
+ url: https://api.openalex.org/works
385
+ searxng:
386
+ enabled: false
387
+ format: json
388
+ method: GET
389
+ query_param: q
390
+ timeout: 10
391
+ type: http
392
+ url: http://127.0.0.1:8888/search
393
+ semantic_scholar:
394
+ enabled: true
395
+ format: json
396
+ method: GET
397
+ query_param: query
398
+ timeout: 10
399
+ type: http
400
+ url: https://api.semanticscholar.org/graph/v1/paper/search
401
+ tavily:
402
+ body:
403
+ api_key: '{TAVILY_API_KEY}'
404
+ max_results: '{n}'
405
+ query: '{query}'
406
+ search_depth: basic
407
+ topic: general
408
+ include_answer: basic
409
+ enabled: true
410
+ headers:
411
+ Content-Type: application/json
412
+ method: POST
413
+ timeout: 10
414
+ type: http
415
+ url: https://api.tavily.com/search
416
+ uapi:
417
+ body:
418
+ count: '{n}'
419
+ query: '{query}'
420
+ enabled: false
421
+ headers:
422
+ Content-Type: application/json
423
+ method: POST
424
+ timeout: 8
425
+ type: http
426
+ url: https://uapis.cn/api/v1/search/aggregate
427
+ wigolo:
428
+ body:
429
+ include_content: false
430
+ max_results: '{n}'
431
+ query: '{query}'
432
+ search_depth: fast
433
+ enabled: true
434
+ headers:
435
+ Content-Type: application/json
436
+ timeout: 8
437
+ type: http
438
+ url: http://127.0.0.1:3333/v1/search
439
+ wikipedia:
440
+ enabled: true
441
+ extra_params:
442
+ action: query
443
+ format: json
444
+ list: search
445
+ srlimit: '{n}'
446
+ format: json
447
+ method: GET
448
+ query_param: srsearch
449
+ timeout: 8
450
+ type: http
451
+ url: https://en.wikipedia.org/w/api.php
452
+ wolframalpha:
453
+ enabled: false
454
+ extra_params:
455
+ appid: '{WOLFRAM_APPID}'
456
+ output: json
457
+ format: json
458
+ method: GET
459
+ query_param: input
460
+ timeout: 10
461
+ type: http
462
+ url: https://api.wolframalpha.com/v2/query
463
+ zhihu:
464
+ enabled: true
465
+ extra_params:
466
+ count: '{n}'
467
+ format: json
468
+ headers:
469
+ Authorization: Bearer {ZHIHU_ACCESS_SECRET}
470
+ Content-Type: application/json
471
+ method: GET
472
+ query_param: query
473
+ timeout: 10
474
+ type: http
475
+ url: https://developer.zhihu.com/api/v1/content/global_search
476
+
477
+ # 成本分级(用于成本感知路由)
478
+ cost_tiers:
479
+ free:
480
+ - local_search
481
+ - local_arxiv
482
+ - local_wikipedia
483
+ - local_stackoverflow
484
+ - local_github
485
+ - local_bing
486
+ - local_google
487
+ - local_mojeek
488
+ - local_yandex
489
+ - local_startpage
490
+ - local_duckduckgo
491
+ - local_baidu
492
+ - local_sogou
493
+ - local_pubmed
494
+ - local_crossref
495
+ - local_semantic_scholar
496
+ - local_bing_news
497
+ - local_google_news
498
+ - local_duckduckgo_news
499
+ - local_gitlab
500
+ - local_npm
501
+ - local_wiktionary
502
+ - local_wikiquote
503
+ - local_imdb
504
+ - local_goodreads
505
+ - local_openstreetmap
506
+ - anysearch
507
+ - zhihu
508
+ - eastmoney
509
+ - arxiv
510
+ - wigolo
511
+ - duckduckgo
512
+ - uapi
513
+ - semantic_scholar
514
+ - openalex
515
+ - crossref
516
+ - github
517
+ - wikipedia
518
+ - searxng
519
+ - wolframalpha
520
+ low:
521
+ - bocha
522
+ - metaso
523
+ - byted
524
+ - brave
525
+ paid:
526
+ - tavily
527
+ - felo
528
+
529
+ execution:
530
+ default_timeout: 8
531
+ max_parallel_engines: 3
532
+ parallel_timeout: 6
533
+ retry_count: 1
534
+ retry_on_empty: true
535
+ budget:
536
+ fast:
537
+ max_cost_per_query: 0.0
538
+ allow_paid: false
539
+ auto:
540
+ max_cost_per_query: 0.01
541
+ allow_paid: true
542
+ deep:
543
+ max_cost_per_query: 1.0
544
+ allow_paid: true
545
+ budget:
546
+ max_cost_per_query: 0.005
547
+ allow_paid: false
548
+ quota_threshold: 0.2
549
+
550
+ output:
551
+ format: auto
552
+ include_routing_decision: true
553
+ include_scores: true
554
+ version: 1.0.1
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "argo-search",
3
+ "version": "1.0.1",
4
+ "description": "Argo — 47-engine unified search MCP server with TF-IDF routing, RRF fusion, and Bocha reranker. 6 tools: search, research, evidence, clarify, crawl, extract.",
5
+ "keywords": [
6
+ "mcp",
7
+ "mcp-server",
8
+ "search",
9
+ "web-search",
10
+ "research",
11
+ "ai-agent",
12
+ "claude",
13
+ "grok",
14
+ "kimi",
15
+ "codex",
16
+ "argo"
17
+ ],
18
+ "license": "MIT",
19
+ "author": "Argo Search",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/taxueseek/argo"
23
+ },
24
+ "bin": {
25
+ "argo-search": "./bin/argo.js"
26
+ },
27
+ "files": [
28
+ "bin/",
29
+ "scripts/",
30
+ "config.yaml",
31
+ "backends/",
32
+ "sub-skills/"
33
+ ],
34
+ "engines": {
35
+ "node": ">=18"
36
+ },
37
+ "os": [
38
+ "darwin",
39
+ "linux"
40
+ ],
41
+ "dependencies": {},
42
+ "devDependencies": {}
43
+ }