argo-search 2.14.1 → 2.15.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.
- package/AGENTS.md +8 -6
- package/README.es.md +54 -832
- package/README.ja.md +53 -833
- package/README.ko.md +53 -831
- package/README.md +126 -769
- package/README.zh.md +124 -893
- package/SKILL.md +17 -18
- package/assets/readme/counts.json +1 -1
- package/assets/readme/hero.svg +23 -23
- package/backends/concept_vectors.bin +0 -0
- package/backends/domain_profiles.json +42 -0
- package/backends/engine_concept_vectors.json +1525 -1525
- package/backends/engine_registry.yaml +124 -28
- package/backends/quota_profiles.json +70 -0
- package/bin/argo +30 -17
- package/config.yaml +173 -33
- package/docs/ADDING_NEW_ENGINE.md +10 -0
- package/docs/ARGO_INTRO.md +1 -1
- package/docs/CHANGELOG.md +23 -0
- package/docs/ENGINE_CATALOG.md +97 -85
- package/docs/MCP_SETUP.md +1 -1
- package/docs/RELEASE_NOTES_v2.14.1.md +4 -4
- package/docs/RELEASE_NOTES_v2.15.0.md +50 -0
- package/docs/RELEASING.md +1 -1
- package/engines/specs/ai_labs.yaml +89 -0
- package/engines/specs/bilibili_hot.yaml +11 -1
- package/engines/specs/brave.yaml +3 -3
- package/engines/specs/cisa_alerts.yaml +40 -0
- package/engines/specs/cn_ai_news.yaml +10 -8
- package/engines/specs/digup.yaml +11 -6
- package/engines/specs/douyin_hot.yaml +11 -1
- package/engines/specs/dw_news.yaml +4 -2
- package/engines/specs/eng_blogs.yaml +63 -0
- package/engines/specs/europeana.yaml +3 -4
- package/engines/specs/felo.yaml +3 -3
- package/engines/specs/firecrawl.yaml +3 -0
- package/engines/specs/fourget.yaml +5 -2
- package/engines/specs/france24.yaml +6 -4
- package/engines/specs/fxtwitter.yaml +29 -6
- package/engines/specs/grepapp_mcp.yaml +62 -0
- package/engines/specs/guardian_rss.yaml +6 -4
- package/engines/specs/itotii.yaml +13 -1
- package/engines/specs/lobsters.yaml +41 -0
- package/engines/specs/local_seek.yaml +6 -0
- package/engines/specs/open_meteo.yaml +1 -1
- package/engines/specs/redskill.yaml +2 -0
- package/engines/specs/searxng.yaml +4 -2
- package/engines/specs/sec_edgar.yaml +8 -3
- package/engines/specs/tinyfish.yaml +2 -0
- package/engines/specs/tinyfish_news.yaml +2 -0
- package/engines/specs/tinyfish_paper.yaml +2 -0
- package/engines/specs/toutiao_hot.yaml +11 -1
- package/engines/specs/train.yaml +3 -0
- package/engines/specs/twitter.yaml +4 -0
- package/engines/specs/unpaywall.yaml +6 -0
- package/engines/specs/vam.yaml +17 -3
- package/engines/specs/weibo_hot.yaml +11 -1
- package/engines/specs/wolframalpha.yaml +3 -3
- package/engines/specs/xiaohongshu.yaml +2 -0
- package/engines/specs/zhihu.yaml +3 -18
- package/engines/specs/zhihu_kb.yaml +18 -0
- package/engines/specs/zhihu_questions.yaml +19 -0
- package/package.json +3 -2
- package/packages/dsh-plugin/README.md +9 -14
- package/packages/dsh-plugin/dsh/client.js +467 -1024
- package/packages/dsh-plugin/dsh/diagnostics.js +71 -20
- package/packages/dsh-plugin/dsh/runner.js +2 -0
- package/packages/dsh-plugin/package.json +8 -3
- package/packages/dsh-plugin/scripts/sync-local.mjs +87 -0
- package/packages/dsh-plugin/scripts/sync-local.sh +13 -1
- package/packages/dsh-plugin/test/diagnostics.test.js +38 -1
- package/packages/dsh-plugin/test/size-gate.test.js +2 -9
- package/scripts/adaptive.py +7 -1
- package/scripts/archive_run.py +112 -53
- package/scripts/argo_paths.py +40 -3
- package/scripts/badcase_ledger.py +108 -9
- package/scripts/build_concept_table.py +112 -55
- package/scripts/cache.py +5 -1
- package/scripts/caliber_isolation.py +60 -23
- package/scripts/circuit_breaker.py +56 -8
- package/scripts/cli_io.py +20 -2
- package/scripts/config_cache.py +31 -0
- package/scripts/daemon.py +146 -51
- package/scripts/dormant_ledger.py +23 -9
- package/scripts/engine_dispatch.py +3 -3
- package/scripts/engine_env.py +182 -1
- package/scripts/engine_families.py +50 -7
- package/scripts/engine_states.py +3 -50
- package/scripts/engine_validate.py +13 -45
- package/scripts/engines.py +15 -31
- package/scripts/engines_base.py +42 -58
- package/scripts/engines_builders.py +0 -15
- package/scripts/engines_builders_batch10.py +346 -100
- package/scripts/engines_builders_batch11.py +2 -75
- package/scripts/engines_builders_batch9.py +15 -24
- package/scripts/engines_builders_cn.py +0 -194
- package/scripts/engines_builders_feeds.py +55 -5
- package/scripts/engines_builders_intl.py +15 -115
- package/scripts/engines_builders_pixiv.py +2 -16
- package/scripts/engines_builders_search.py +7 -14
- package/scripts/engines_builders_tech.py +5 -14
- package/scripts/engines_builders_weather.py +236 -0
- package/scripts/engines_fields.py +91 -0
- package/scripts/engines_http.py +135 -0
- package/scripts/engines_mcp.py +383 -0
- package/scripts/engines_parsers.py +13 -369
- package/scripts/engines_schema_drift.py +260 -0
- package/scripts/evidence.py +13 -0
- package/scripts/evidence_loop.py +4 -3
- package/scripts/fetch_jsrun.py +15 -11
- package/scripts/fetch_v3.py +28 -28
- package/scripts/fulltext_store.py +42 -1
- package/scripts/fxtwitter_api.py +8 -7
- package/scripts/gen_engine_catalog.py +2 -2
- package/scripts/general_pool.py +15 -4
- package/scripts/health_check.py +1 -1
- package/scripts/link_source.py +65 -24
- package/scripts/local_seek_adapter.py +57 -17
- package/scripts/mcp_handlers.py +53 -31
- package/scripts/mcp_handlers_surface.py +6 -18
- package/scripts/mcp_transport.py +1 -1
- package/scripts/min_version_scan.py +7 -3
- package/scripts/network_aware.py +7 -13
- package/scripts/pre-commit +45 -43
- package/scripts/query_understanding.py +30 -6
- package/scripts/quota.py +6 -1
- package/scripts/rank_signals.py +9 -0
- package/scripts/recompute.py +15 -5
- package/scripts/recovery.py +21 -15
- package/scripts/release.py +14 -26
- package/scripts/release_check.py +5 -25
- package/scripts/replay_eval.py +2 -2
- package/scripts/research_cli.py +40 -0
- package/scripts/research_notes.py +368 -0
- package/scripts/route.py +32 -70
- package/scripts/route_audit.py +259 -0
- package/scripts/route_combo.py +10 -4
- package/scripts/route_domains.py +150 -23
- package/scripts/route_lang.py +20 -7
- package/scripts/route_log.py +26 -9
- package/scripts/route_policy.py +85 -6
- package/scripts/route_telemetry_export.py +199 -0
- package/scripts/rrf_classic.py +5 -22
- package/scripts/search.py +2 -1
- package/scripts/search_attribution.py +33 -10
- package/scripts/search_entry.py +5 -1
- package/scripts/search_output.py +5 -4
- package/scripts/search_pipeline.py +12 -0
- package/scripts/search_rank.py +21 -11
- package/scripts/semantic_evidence.py +375 -168
- package/scripts/settings_page.py +3 -3
- package/scripts/social_engines/xiaohongshu_engine.py +2 -1
- package/scripts/social_engines/zhihu_engine.py +251 -43
- package/scripts/sogou_weixin_browser.py +5 -6
- package/scripts/source_audit.py +2 -2
- package/scripts/source_ledger.py +2 -15
- package/scripts/source_selection.py +45 -20
- package/scripts/straggler_policy.py +1 -2
- package/scripts/sync_backends.py +17 -0
- package/scripts/tfidf_router.py +23 -11
- package/scripts/time_utils.py +54 -1
- package/scripts/train.py +68 -2
- package/scripts/usage_log.py +26 -1
- package/sub-skills/argo-wide-research/SKILL.md +68 -0
- package/sub-skills/ego-search/SKILL.md +1 -1
- package/sub-skills/local-seek/scripts/seek_fts.py +58 -3
- package/scripts/caliber_dedupe.py +0 -66
- package/scripts/engines_builders_batch16.py +0 -13
- package/scripts/health_probe.py +0 -253
- package/scripts/social_engines/twitter_engine.py +0 -514
- package/scripts/sync_installs.py +0 -29
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
engine_id: searxng
|
|
2
|
-
enabled:
|
|
3
|
-
|
|
2
|
+
enabled: true
|
|
3
|
+
explicit_only: true
|
|
4
4
|
label: SearXNG
|
|
5
5
|
cost_tier: free
|
|
6
6
|
coverage:
|
|
@@ -16,3 +16,5 @@ type: http
|
|
|
16
16
|
# 走引擎 spec 既有的 {VAR} 占位符(engines_base._resolve 经 engine_env 解析,
|
|
17
17
|
# os.environ 优先 + env 文件保底):未配置时该源不可用,不会假装能用。
|
|
18
18
|
url: "{SEARXNG_URL}"
|
|
19
|
+
allowed_env:
|
|
20
|
+
- SEARXNG_URL
|
|
@@ -40,7 +40,12 @@ headers:
|
|
|
40
40
|
output_map:
|
|
41
41
|
items: hits.hits
|
|
42
42
|
item_title: _source.display_names.0
|
|
43
|
-
#
|
|
44
|
-
#
|
|
45
|
-
|
|
43
|
+
# 逐条目的申报列表页。占位符必须都取自 efts 响应条目本身:
|
|
44
|
+
# `_format_url_template` 只按点分路径从 item 取值,任一占位为空就把
|
|
45
|
+
# url 整个 pop 掉,下游按「无 URL 不可溯源」过滤,表现为「引擎有响应
|
|
46
|
+
# 但用户看到 0 条」。这里曾用 {forms}(spec 里的请求参数,非响应字段),
|
|
47
|
+
# 导致全部条目渲染为空串、0 条结果;2026-11-11 改用 _source.file_type。
|
|
48
|
+
# 不用 Archives 文档本体 URL 是因为它需要去前导零、去连字符等变换,
|
|
49
|
+
# 声明式模板做不了,需专门 builder;列表页同样可打开且随条目变化。
|
|
50
|
+
url_template: https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK={_source.ciks.0}&type={_source.file_type}&dateb=&owner=include&count=40
|
|
46
51
|
item_summary: _source.file_description
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
engine_id: toutiao_hot
|
|
2
|
-
type:
|
|
2
|
+
type: http
|
|
3
|
+
url: https://www.toutiao.com/hot-event/hot-board/?origin=toutiao_pc
|
|
4
|
+
query_param: ""
|
|
5
|
+
headers:
|
|
6
|
+
User-Agent: Mozilla/5.0
|
|
7
|
+
Referer: https://www.toutiao.com/
|
|
8
|
+
output_map:
|
|
9
|
+
items: data
|
|
10
|
+
item_title: Title
|
|
11
|
+
item_url: Url
|
|
12
|
+
item_summary_template: "热度 {HotValue}"
|
|
3
13
|
enabled: true
|
|
4
14
|
label: 今日头条热榜
|
|
5
15
|
cost_tier: free
|
package/engines/specs/train.yaml
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
# queryTrainInfo 查经停),免 Key,查询路径运行时解析跟随官方改版
|
|
4
4
|
# 能力: 自然语言查询车次时刻与余票("上海到北京 后天 G")、中转换乘方案
|
|
5
5
|
# ("北京到拉萨 中转",可「经西宁」指定换乘站)、全程经停("G2 经停")
|
|
6
|
+
# 余票行含官方票价(字段 39 解析,含二等/一等/优选一等/商务/无座)与
|
|
7
|
+
# 复兴号标记(字段 46 段 1),与携程 SSR 的 seatItemInfoList/isFuXingTrain
|
|
8
|
+
# 逐字段对拍一致(2026-11-11)
|
|
6
9
|
# 输出: 行 URL 带查询身份参数(train_code/first_train_no 等)——表格行不共享
|
|
7
10
|
# 裸 URL,避免被 URL 去重折叠成一条(fred/worldbank 时序引擎同款约定)
|
|
8
11
|
# 实现: scripts/train.py(纯标准库,站点表 station_name.js 解析 + 7 天缓存,输出结构化 YAML)
|
|
@@ -24,6 +24,10 @@ search_args:
|
|
|
24
24
|
- '{n}'
|
|
25
25
|
- --json
|
|
26
26
|
env: {}
|
|
27
|
+
allowed_env:
|
|
28
|
+
- TWITTER_AUTH_TOKEN
|
|
29
|
+
- TWITTER_CT0
|
|
30
|
+
- TWITTER_PROXY
|
|
27
31
|
# 通道变更(2026-10-21):旧脚本 twitter_engine.py 的三个通道当时全失效——
|
|
28
32
|
# FxTwitter /2/search 上游已停用、nitter 公共实例实测零结果、tw CLI 未装,
|
|
29
33
|
# 强制调用 6s 超时且结果为空。x_search.py 是仓库内既有的可用替代,
|
|
@@ -39,6 +39,12 @@ url: https://api.unpaywall.org/v2/{query}?email={UNPAYWALL_EMAIL}
|
|
|
39
39
|
query_param: ""
|
|
40
40
|
timeout: 12
|
|
41
41
|
format: json
|
|
42
|
+
# 授权读取 ARGO_UNPAYWALL_EMAIL(67edf08 起的占位符白名单要求显式声明;
|
|
43
|
+
# required_env_for 的自动推断不进授权集,漏声明会让邮箱被阻断成空串、
|
|
44
|
+
# 请求恒 422,而状态机仍报 ready——必须与推断口径对齐)
|
|
45
|
+
allowed_env:
|
|
46
|
+
- ARGO_UNPAYWALL_EMAIL
|
|
47
|
+
- UNPAYWALL_EMAIL
|
|
42
48
|
canary_query: "10.1038/nature12373"
|
|
43
49
|
coverage:
|
|
44
50
|
- academic
|
package/engines/specs/vam.yaml
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# 与 met/artic/cleveland 同面的第四家博物馆图源;伦敦 V&A 是装饰艺术与设计
|
|
4
4
|
# 藏品最全的机构(ukiyo-e、海报、时尚、工艺)。官方文档明确免 key:
|
|
5
5
|
# https://developers.vam.ac.uk/guide/v2
|
|
6
|
-
# `images_exist=1` 只回有图对象;
|
|
7
|
-
#
|
|
6
|
+
# `images_exist=1` 只回有图对象;800px IIIF 直链由声明式 `item_image_template`
|
|
7
|
+
# 组装,短链落地页由 `url_template` 组装。单跳 1.2-1.6s(2026-11-08
|
|
8
8
|
# 质量探针 6/6 出图,~/tmp/argo-img-bench/candidates.json)。
|
|
9
9
|
# 注意:正确路径是 /v2/objects/search(/v2/museumobject/search 404,勿改回)。
|
|
10
10
|
# 许可:上游不逐件给许可字段,商用判定照 ddgs_images 口径(未判定)。
|
|
@@ -12,7 +12,21 @@
|
|
|
12
12
|
# python3 scripts/engine_validate.py --engine vam --stage all --admit
|
|
13
13
|
|
|
14
14
|
engine_id: vam
|
|
15
|
-
type:
|
|
15
|
+
type: http
|
|
16
|
+
url: https://api.vam.ac.uk/v2/objects/search
|
|
17
|
+
query_param: q
|
|
18
|
+
extra_params:
|
|
19
|
+
images_exist: 1
|
|
20
|
+
page_size: "{n}"
|
|
21
|
+
headers:
|
|
22
|
+
User-Agent: "argo-search/1.0 (+vam)"
|
|
23
|
+
Accept: application/json
|
|
24
|
+
output_map:
|
|
25
|
+
items: records
|
|
26
|
+
item_title: _primaryTitle
|
|
27
|
+
url_template: "https://collections.vam.ac.uk/item/{systemNumber}/"
|
|
28
|
+
item_summary_template: "{_primaryMaker.name} · {_primaryDate} · {objectType}"
|
|
29
|
+
item_image_template: "{_images._iiif_image_base_url}full/!800,800/0/default.jpg"
|
|
16
30
|
enabled: true
|
|
17
31
|
cost_tier: free
|
|
18
32
|
label: V&A馆藏
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
engine_id: weibo_hot
|
|
2
|
-
type:
|
|
2
|
+
type: http
|
|
3
|
+
url: https://weibo.com/ajax/side/hotSearch
|
|
4
|
+
query_param: ""
|
|
5
|
+
headers:
|
|
6
|
+
User-Agent: Mozilla/5.0
|
|
7
|
+
Referer: https://weibo.com/
|
|
8
|
+
output_map:
|
|
9
|
+
items: data.realtime
|
|
10
|
+
item_title: word
|
|
11
|
+
url_template: "https://s.weibo.com/weibo?q=%23{word|url}%23"
|
|
12
|
+
item_summary_template: "微博热搜 · 热度 {num} · {label_name}"
|
|
3
13
|
family: hot_trending
|
|
4
14
|
enabled: true
|
|
5
15
|
label: 微博热搜
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
engine_id: wolframalpha
|
|
2
|
-
enabled:
|
|
3
|
-
|
|
2
|
+
enabled: true
|
|
3
|
+
explicit_only: true
|
|
4
4
|
label: WolframAlpha
|
|
5
5
|
cost_tier: free
|
|
6
6
|
coverage:
|
|
7
7
|
- factual
|
|
8
8
|
- math
|
|
9
|
-
desc: WolframAlpha
|
|
9
|
+
desc: WolframAlpha 计算知识引擎(需自备 APPID,显式指定 --engine wolframalpha 时生效)
|
|
10
10
|
extra_params:
|
|
11
11
|
appid: '{WOLFRAM_APPID}'
|
|
12
12
|
output: json
|
package/engines/specs/zhihu.yaml
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
engine_id: zhihu
|
|
2
|
+
type: zhihu
|
|
2
3
|
enabled: true
|
|
3
4
|
label: 知乎
|
|
4
5
|
cost_tier: free
|
|
@@ -8,26 +9,10 @@ limit: 5000
|
|
|
8
9
|
period: day
|
|
9
10
|
cost_per_call: 0.0
|
|
10
11
|
cost_unit: free
|
|
12
|
+
family: social
|
|
11
13
|
coverage:
|
|
12
14
|
- chinese
|
|
13
15
|
- review
|
|
14
16
|
- opinion
|
|
15
|
-
desc:
|
|
16
|
-
format: json
|
|
17
|
-
headers:
|
|
18
|
-
Authorization: Bearer {ZHIHU_ACCESS_SECRET}
|
|
19
|
-
Content-Type: application/json
|
|
20
|
-
X-Request-Timestamp: '{TIMESTAMP}'
|
|
21
|
-
method: GET
|
|
22
|
-
query_param: Query
|
|
23
|
-
extra_params:
|
|
24
|
-
Count: '{n}'
|
|
25
|
-
output_map:
|
|
26
|
-
items: Data.Items
|
|
27
|
-
item_title: Title
|
|
28
|
-
item_url: Url
|
|
29
|
-
item_summary: ContentText
|
|
30
|
-
item_source: AuthorName
|
|
17
|
+
desc: 知乎站内搜索(结构化 AuthorityLevel/赞同数/时间 + 纯问题自动下钻精选回答;需 ZHIHU_ACCESS_SECRET)
|
|
31
18
|
timeout: 10
|
|
32
|
-
type: http
|
|
33
|
-
url: https://developer.zhihu.com/api/v1/content/zhihu_search
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
engine_id: zhihu_kb
|
|
2
|
+
type: zhihu_kb
|
|
3
|
+
enabled: true
|
|
4
|
+
explicit_only: true
|
|
5
|
+
label: 知乎知识库只读检索
|
|
6
|
+
cost_tier: free
|
|
7
|
+
qps: 2
|
|
8
|
+
priority: 10
|
|
9
|
+
limit: 500
|
|
10
|
+
period: day
|
|
11
|
+
cost_per_call: 0.0
|
|
12
|
+
cost_unit: free
|
|
13
|
+
family: personal_data
|
|
14
|
+
coverage:
|
|
15
|
+
- chinese
|
|
16
|
+
- personal
|
|
17
|
+
desc: "知乎知识库只读 RAG 检索与列库(knowledge/search 与 knowledge/bases;支持 scope/kb 过滤与 bases 列库);显式按需调用(需 ZHIHU_ACCESS_SECRET)"
|
|
18
|
+
timeout: 10
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
engine_id: zhihu_questions
|
|
2
|
+
type: zhihu_questions
|
|
3
|
+
enabled: true
|
|
4
|
+
explicit_only: true
|
|
5
|
+
label: 知乎问题发现与回答摘要
|
|
6
|
+
cost_tier: free
|
|
7
|
+
qps: 2
|
|
8
|
+
priority: 15
|
|
9
|
+
limit: 100
|
|
10
|
+
period: day
|
|
11
|
+
cost_per_call: 0.0
|
|
12
|
+
cost_unit: free
|
|
13
|
+
family: social
|
|
14
|
+
coverage:
|
|
15
|
+
- chinese
|
|
16
|
+
- opinion
|
|
17
|
+
- review
|
|
18
|
+
desc: "知乎主题荐题(question_recommendations,按关键词)与问题下回答摘要(question_answers,传 q:<id> 或 answers <问题URL>);显式按需调用(需 ZHIHU_ACCESS_SECRET)"
|
|
19
|
+
timeout: 10
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "argo-search",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "Argo 阿尔戈 — 统一搜索与证据核验。推荐 npx -y argo-search(npm 发布版)或 install.sh 安装。多语言路由、数百个源(大部分免密钥)、影视/体育/金融等垂直源、19 个 MCP
|
|
3
|
+
"version": "2.15.0",
|
|
4
|
+
"description": "Argo 阿尔戈 — 统一搜索与证据核验。推荐 npx -y argo-search(npm 发布版)或 install.sh 安装。多语言路由、数百个源(大部分免密钥)、影视/体育/金融等垂直源、19 个 MCP 工具(默认注入 4 个核心,全量按需开启,与 CLI 能力面对齐)。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
7
7
|
"mcp-server",
|
|
@@ -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.15.0.md",
|
|
61
62
|
"docs/RELEASE_NOTES_v2.14.1.md",
|
|
62
63
|
"docs/RELEASE_NOTES_v2.14.0.md",
|
|
63
64
|
"docs/RELEASE_NOTES_v2.13.0.md",
|
|
@@ -13,25 +13,20 @@ dsh plugin --profile web add "github:taxueseek/argo#main&path:packages/dsh-plugi
|
|
|
13
13
|
|
|
14
14
|
`@taxueseek/argo-dsh` 是 DSH 插件包,`argo-search` 是 CLI 包,两者不能互换。安装由官方 plugin manager 应用;RC2 profile HMR 可同 PID 重组 bundle,默认保持同一个 DSH PID,不需要也不应默认重启 Host。本机 `dsh` CLI 只有 `dsh plugin --profile <name> add|remove`,没有 `restart` 子命令;`activation-plan` / `restart-supervised` 属于外部工作台 `dshx`(需单独安装,本机当前未装),不要把它们写成官方命令。激活证据要分开报:`ARTIFACT_SYNCED`、`HOST_TREE_ACTIVE`、`CLIENT_LOADED`、`VISUAL_BEHAVIOR_VERIFIED`;只看到安装成功、配置行、HTTP 200 或 boot manifest 都不算插件已生效。见 `dsh-external-plugin-devkit/knowledge/contracts/live-activation.md`。
|
|
15
15
|
|
|
16
|
-
###
|
|
16
|
+
### 本地开发:改完源码直接生效(推荐 `link:` 直连)
|
|
17
17
|
|
|
18
|
-
profile
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
面板仍显示旧版;2026-11-08 复核:web 与 desktop 两个 profile 均已漂移)。
|
|
18
|
+
若用 `dsh plugin --profile <name> add "link:<packages/dsh-plugin 的绝对目录>"` 安装,pnpm 会直接在 `node_modules/@taxueseek/argo-dsh` 建立直连源码的软链,改完源码立即生效,无需任何手动同步脚本(`web` 等 CLI 可管 profile 推荐优先用 `link:`)。
|
|
19
|
+
|
|
20
|
+
若部分 profile(例如由 Electron 应用独占管理的 `desktop`,或此前用 `file:` / `github:` 安装的旧环境)落成了目录副本,`dsh plugin add` 对同路径 `file:` 会打印 `Already up to date` 不重拷,见 `dsh-external-plugin-devkit/knowledge/pitfalls/file-copy-stale.md`。此时可用兜底脚本比对或同步:
|
|
22
21
|
|
|
23
22
|
```bash
|
|
24
|
-
packages/dsh-plugin/scripts/sync-local.sh --check # 1. 比对源码与已安装 bundle
|
|
25
|
-
packages/dsh-plugin/scripts/sync-local.sh # 2.
|
|
23
|
+
packages/dsh-plugin/scripts/sync-local.sh --check # 1. 比对源码与已安装 bundle(symlink 直连也会报 [ok])
|
|
24
|
+
packages/dsh-plugin/scripts/sync-local.sh # 2. 仅对目录副本做同步(到 ARTIFACT_SYNCED,symlink 自动跳过)
|
|
26
25
|
```
|
|
27
26
|
|
|
28
|
-
`sync-local.sh` 只同步产物,输出 `ARTIFACT_SYNCED; LIVE_ACTIVATION_UNPROVEN`,不是插件生效证明;它没有 `--restart`
|
|
29
|
-
|
|
30
|
-
**结构性修法**:把 web 与 desktop profile 的依赖改成 `link:`(`dsh plugin --profile <name> add "link:<packages/dsh-plugin 的绝对目录>"`),源码直接可见,本脚本及其备份逻辑即可整体删除;这一步改的是本机 profile,需在宿主空闲时做并单独验证。改之前不要用 `dsh plugin add "file:..."` 冒充同步,它不会重拷。
|
|
31
|
-
|
|
32
|
-
官方明确禁止手改 profile `node_modules` 后直接串重启。激活要核对同 PID 的 Host 行与页面功能;本机没有 `activation-plan`,装了 `dshx` 工作台才可用,且它是外部工具,不是 `dsh` 的一部分(本机当前未装)。
|
|
27
|
+
`sync-local.sh` 只同步产物,输出 `ARTIFACT_SYNCED; LIVE_ACTIVATION_UNPROVEN`,不是插件生效证明;它没有 `--restart` 参数,也不该有。官方明确禁止手改 profile `node_modules` 后直接串重启。激活要核对同 PID 的 Host 行与页面功能;本机没有 `activation-plan`,装了 `dshx` 工作台才可用,且它是外部工具,不是 `dsh` 的一部分(本机当前未装)。
|
|
33
28
|
|
|
34
|
-
|
|
29
|
+
**改完源码后,运行 `sync-local.sh --check` 确认全部相关 profile 输出 `[ok]` 即达标**(不适用 `--check` 的纯仓库文档改动可在交付说明里写明跳过)。目录副本模式下同步前会自动备份到 `~/.dsh/backups/argo-dsh-sync-<时间>-<profile>`;浏览器如仍显示旧面板,做一次硬刷新(Cmd+Shift+R)。
|
|
35
30
|
|
|
36
31
|
### 当前启用状态(web profile)
|
|
37
32
|
|
|
@@ -59,7 +54,7 @@ packages/dsh-plugin/scripts/sync-local.sh # 2. 同步 web/desktop(
|
|
|
59
54
|
六个分区:
|
|
60
55
|
|
|
61
56
|
- **接入**:`web_search` / `web_fetch` seam 开关;引擎入口命令与参数(npx 或本机 `mcp_server.py`);搜索/抓取超时、正文上限、连接空闲回收、并发连接数
|
|
62
|
-
- **工具**:18
|
|
57
|
+
- **工具**:18 个原生一等工具的勾选(即 MCP 全量 19 个剔除长耗时编排 `argo_research`,默认只开 `argo_search` / `argo_fetch`);单次调用超时与返回文本上限
|
|
63
58
|
- **引擎**:argo 本体的行为开关(原环境变量,curated 白名单 35 个,分八组:缓存与排序 / 抓取层 / 语义与自适应 / 引擎启停 / 网络出口 / 本机检索 / **额度与预算** / 其他)。「缓存与排序」组第一项是**测试模式(关闭结果缓存)**,默认关、日常结果缓存 1 小时;只有改进 Skill/插件、需要实时结果时才打开。「额度与预算」组把免费与付费源放在同一套 QuotaManager 下:金额计费的源设月度预算(DeepSeek 元 / Exa 美元),按次数限额的源设日/月次数上限(AnySearch / 知乎按日,元宝默认 2000/月、Tavily 按月);博查按量付费,不设固定次数上限,由服务商侧结算。额度或预算用尽后该源自动跳过并回落免费源。开关类即时生效,数字 / 文本 / 名单类分组保存;未配置行显示 argo 默认态并标注「默认」。授权类开关(可复算执行、内网 URL)刻意不进面板
|
|
64
59
|
- **密钥**:常用引擎 key 的填写、更新、清除;显示「已配置 / 未配置 + 来源层(凭证库 / 启动环境 / .env)+ 只读态」,明文不回显;每行可勾选「转发」,等价于把引用名加进 `keyRefs`
|
|
65
60
|
- **研究**:worker / 轨道 / 每轨信源 / token 上限与报告落盘目录
|