argo-search 2.14.0 → 2.14.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/AGENTS.md +1 -1
- package/README.es.md +18 -8
- package/README.ja.md +18 -8
- package/README.ko.md +18 -8
- package/README.md +511 -608
- package/README.zh.md +975 -0
- package/SKILL.md +1 -1
- package/assets/readme/counts.json +1 -1
- package/backends/domain_profiles.json +24 -0
- package/backends/engine_registry.yaml +69 -18
- package/backends/quota_profiles.json +40 -0
- package/config.yaml +23 -3
- package/docs/CHANGELOG.md +22 -0
- package/docs/ENGINE_CATALOG.md +41 -37
- package/docs/MCP_SETUP.md +1 -1
- package/docs/RELEASE_NOTES_v2.14.0.md +12 -1
- package/docs/RELEASE_NOTES_v2.14.1.md +80 -0
- package/docs/RELEASING.md +52 -0
- package/engines/specs/artic.yaml +11 -1
- package/engines/specs/cleveland.yaml +15 -1
- package/engines/specs/clinicaltrials.yaml +16 -1
- package/engines/specs/cnii.yaml +15 -4
- package/engines/specs/deezer.yaml +12 -1
- package/engines/specs/doaj.yaml +14 -1
- package/engines/specs/endoflife.yaml +16 -1
- package/engines/specs/eu_opendata.yaml +11 -1
- package/engines/specs/europeana.yaml +19 -1
- package/engines/specs/feed.yaml +62 -0
- package/engines/specs/figshare.yaml +12 -1
- package/engines/specs/hackernews.yaml +17 -2
- package/engines/specs/hal.yaml +19 -1
- package/engines/specs/hf_datasets.yaml +59 -0
- package/engines/specs/hf_papers.yaml +17 -1
- package/engines/specs/jikan.yaml +12 -10
- package/engines/specs/kaggle.yaml +5 -3
- package/engines/specs/maven.yaml +61 -0
- package/engines/specs/nasa_cmr.yaml +12 -1
- package/engines/specs/nuget.yaml +57 -0
- package/engines/specs/tatoeba.yaml +14 -1
- package/engines/specs/tvmaze.yaml +5 -1
- package/engines/specs/usda.yaml +14 -1
- package/package.json +2 -1
- package/packages/dsh-plugin/dsh/native-tools.mjs +61 -113
- package/packages/dsh-plugin/dsh/wide-research.js +1 -1
- package/packages/dsh-plugin/package.json +1 -1
- package/scripts/badcase_ledger.py +49 -5
- package/scripts/build_release_assets.sh +43 -15
- package/scripts/dormant_ledger.py +225 -0
- package/scripts/engine_states.py +6 -1
- package/scripts/engine_validate.py +182 -6
- package/scripts/engines.py +0 -36
- package/scripts/engines_base.py +27 -67
- package/scripts/engines_builders.py +0 -36
- package/scripts/engines_builders_batch16.py +6 -179
- package/scripts/engines_builders_batch9.py +0 -204
- package/scripts/engines_builders_feeds.py +148 -30
- package/scripts/engines_builders_intl.py +0 -328
- package/scripts/engines_builders_science.py +0 -85
- package/scripts/engines_builders_tech.py +0 -98
- package/scripts/engines_parsers.py +534 -9
- package/scripts/evidence_loop.py +91 -4
- package/scripts/gen_engine_catalog.py +2 -2
- package/scripts/gen_native_tools.py +2 -1
- package/scripts/local_intent.py +51 -15
- package/scripts/local_seek.py +37 -4
- package/scripts/mcp_handlers.py +124 -72
- package/scripts/mcp_server.py +1 -1
- package/scripts/mcp_tools.py +143 -61
- package/scripts/mcp_transport.py +42 -10
- package/scripts/pre-commit +25 -1
- package/scripts/release.py +20 -11
- package/scripts/release_check.py +1 -1
- package/scripts/route_policy.py +6 -1
- package/scripts/search_cli.py +44 -7
- package/scripts/secret_guard.py +106 -0
- package/scripts/semantic_evidence.py +230 -15
- package/scripts/settings_page.py +80 -8
- package/scripts/source_audit.py +77 -0
- package/scripts/sync_backends.py +7 -0
- package/sub-skills/local-seek/scripts/seek_fts.py +9 -1
- package/README.en.md +0 -826
- package/scripts/image_vision/vision_probe +0 -0
package/scripts/mcp_tools.py
CHANGED
|
@@ -5,15 +5,23 @@
|
|
|
5
5
|
extract/preflight/answer/watch/cite 补齐);mcp_transport 的 tools/list 与
|
|
6
6
|
mcp_server 的兼容导出均从本模块取。改 schema 只动这一个文件。
|
|
7
7
|
|
|
8
|
-
tools/list 默认只注入 CORE
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
tools/list 默认只注入 CORE 4 个正交集(search/fetch/research/screenshot,
|
|
9
|
+
约 5KB/轮);全量设 ARGO_MCP_TOOLS=all。execute_tool / --call / DSH 原生规格
|
|
10
|
+
仍吃全量 TOOLS,能力不删。未知名单不回退成全量(同类:过滤失败吐全量)。
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
CORE 集合的变更必须同步四处(少一处就有一处文案在骗人):本文件的
|
|
13
|
+
CORE_TOOL_NAMES、mcp_transport 的 initialize instructions、
|
|
14
|
+
references/operations.md 的工具清单节、docs/MCP_SETUP.md 的状态行。
|
|
15
|
+
机械对拍见 tests/test_mcp_consolidated_tools.py::test_instructions_matches_core。
|
|
16
|
+
|
|
17
|
+
schema 设计原则(质量第一,token 第二,严格兼容):
|
|
13
18
|
- 工具 description:第一句「做什么」,第二句「何时用 / 关键注意」。
|
|
14
19
|
删除内部实现机制(引擎数、TF-IDF/RRF、协议文件引用)——模型不靠这些决策。
|
|
15
|
-
- 参数 description:语义 +
|
|
16
|
-
|
|
20
|
+
- 参数 description:语义 + 何时用 + 默认值与范围(如需)。
|
|
21
|
+
第一性原理与奥卡姆剃刀(issue #46):MaaS / OpenAI 严格网关会拦截 JSON Schema
|
|
22
|
+
中的 default、minimum、maximum、minItems 等非标注解(报 400 The request is invalid)。
|
|
23
|
+
因此默认值与范围一律在 description 明确说明,schema 只保留最纯粹的
|
|
24
|
+
type / description / enum / properties / required / items。
|
|
17
25
|
- 调试/运行配置(pretty / skip_cache / timeout)不暴露给模型:
|
|
18
26
|
这些不是模型决策输入,由 server 层环境变量接管(见 mcp_handlers.execute_tool:
|
|
19
27
|
ARGO_MCP_PRETTY / ARGO_MCP_SKIP_CACHE / ARGO_MCP_TIMEOUT[_CRAWL|_FETCH])。
|
|
@@ -22,30 +30,104 @@ schema 设计原则(质量第一,token 第二):
|
|
|
22
30
|
|
|
23
31
|
from __future__ import annotations
|
|
24
32
|
|
|
33
|
+
import copy
|
|
25
34
|
import os
|
|
35
|
+
from typing import Any
|
|
36
|
+
|
|
37
|
+
# 日常高频与核心闭环工具(极简 3+1 正交集:Search 统一检索、Fetch 统一抓取/解析、Research 深度取证、Screenshot 视觉快照)
|
|
38
|
+
CORE_TOOL_NAMES = ("argo_search", "argo_fetch", "argo_research", "argo_screenshot")
|
|
39
|
+
|
|
40
|
+
# MaaS / OpenAI Function Calling 严格网关禁止的校验与注解键(见 issue #46:
|
|
41
|
+
# 火山引擎方舟/腾讯云 MaaS 等严格网关遇到即报 400 The request is invalid)。
|
|
42
|
+
FORBIDDEN_SCHEMA_KEYS = frozenset({
|
|
43
|
+
"default",
|
|
44
|
+
"minimum",
|
|
45
|
+
"maximum",
|
|
46
|
+
"exclusiveMinimum",
|
|
47
|
+
"exclusiveMaximum",
|
|
48
|
+
"minItems",
|
|
49
|
+
"maxItems",
|
|
50
|
+
"minLength",
|
|
51
|
+
"maxLength",
|
|
52
|
+
"pattern",
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def sanitize_schema(schema: dict[str, Any]) -> dict[str, Any]:
|
|
57
|
+
"""将 JSON Schema 净化为严格兼容 OpenAI / MaaS 网关的标准形式。
|
|
58
|
+
|
|
59
|
+
第一性原理与奥卡姆剃刀:
|
|
60
|
+
网关是白名单式语法解析器,非标注解(default/minimum/maximum/minItems 等)
|
|
61
|
+
会被严格网关直接判 400 阻断(issue #46)。模型阅读参数语义依赖
|
|
62
|
+
description 与 enum,默认值与范围已内嵌于 description 中,后端
|
|
63
|
+
执行层(mcp_handlers)自带默认值与 _clamp_int 兜底。
|
|
64
|
+
|
|
65
|
+
本函数做纯函数递归净化:
|
|
66
|
+
1. 剥离 FORBIDDEN_SCHEMA_KEYS 中所有非核心校验注解;
|
|
67
|
+
2. 若 type == 'object',确保 properties 为 dict、required 为 list
|
|
68
|
+
(无必填项时显式补齐 required: [],防止网关报缺少字段);
|
|
69
|
+
3. 递归清洗 properties 内每个字段及 items 结构。
|
|
70
|
+
|
|
71
|
+
**必须挂在 tools/list 出口**(mcp_transport.handle_rpc):只在源头写干净
|
|
72
|
+
schema 是「现在没问题」,挂上净化是「以后有人加回 default 也不会打到
|
|
73
|
+
严格网关」。本函数曾只被自己的测试调用——宣称修了 MaaS 兼容,实际是
|
|
74
|
+
一个没人调用的纯函数(2026-11-11 审计)。接线检查见
|
|
75
|
+
tests/test_mcp_schema_maas_compliance.py::test_sanitize_schema_is_wired。
|
|
76
|
+
"""
|
|
77
|
+
if not isinstance(schema, dict):
|
|
78
|
+
return schema
|
|
79
|
+
out: dict[str, Any] = {}
|
|
80
|
+
for k, v in schema.items():
|
|
81
|
+
if k in FORBIDDEN_SCHEMA_KEYS:
|
|
82
|
+
continue
|
|
83
|
+
if k == "properties" and isinstance(v, dict):
|
|
84
|
+
out[k] = {pk: sanitize_schema(pv) for pk, pv in v.items()}
|
|
85
|
+
elif k == "items" and isinstance(v, dict):
|
|
86
|
+
out[k] = sanitize_schema(v)
|
|
87
|
+
else:
|
|
88
|
+
out[k] = v
|
|
89
|
+
if out.get("type") == "object":
|
|
90
|
+
if "properties" not in out:
|
|
91
|
+
out["properties"] = {}
|
|
92
|
+
if "required" not in out:
|
|
93
|
+
out["required"] = []
|
|
94
|
+
return out
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def sanitize_tool(tool: dict[str, Any]) -> dict[str, Any]:
|
|
98
|
+
"""单个工具的净化出口:只动 inputSchema,其余键原样。
|
|
99
|
+
|
|
100
|
+
单独成函数是为了让「接线」在 tools/list 里是一行可读的调用,而不是一段
|
|
101
|
+
内联的字典推导——内联形态下「有没有真的净化」要靠读代码判断。
|
|
102
|
+
"""
|
|
103
|
+
if not isinstance(tool, dict):
|
|
104
|
+
return tool
|
|
105
|
+
schema = tool.get("inputSchema")
|
|
106
|
+
if not isinstance(schema, dict):
|
|
107
|
+
return tool
|
|
108
|
+
return {**tool, "inputSchema": sanitize_schema(schema)}
|
|
26
109
|
|
|
27
|
-
# 日常 90% 调用只需要这 3 个;顺序即 tools/list 默认顺序。
|
|
28
|
-
CORE_TOOL_NAMES = ("argo_search", "argo_fetch", "argo_local_search")
|
|
29
110
|
|
|
30
111
|
TOOLS = [
|
|
31
112
|
{
|
|
32
113
|
"name": "argo_search",
|
|
33
|
-
"description": "
|
|
114
|
+
"description": "统一搜索(网络/社交/招聘/本地):多引擎融合、支持时间过滤与域名过滤。默认网络搜索;按 domain 可切换社交 UGC、岗位招聘或本机文件。查资料、找答案、找人找帖的首选工具。",
|
|
34
115
|
"inputSchema": {
|
|
35
116
|
"type": "object",
|
|
36
117
|
"properties": {
|
|
37
118
|
"query": {"type": "string", "description": "搜索查询词"},
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
119
|
+
"domain": {"type": "string", "enum": ["web", "social", "job", "local"], "description": "搜索领域:web 统一网络搜索(默认),social 社交媒体/论坛讨论,job 招聘岗位聚合,local 本机文件搜索"},
|
|
120
|
+
"engine": {"type": "string", "description": "指定搜索引擎(auto 自动选择;可选 octen/anysearch/exa/zhihu/eastmoney/arxiv/byted/bocha/tavily/deepseek_search/github/wikipedia/semantic_scholar/local_search 等,默认 auto;deepseek_search 为按次计费的官方 DeepSeek 搜索,结果带权威分级与发布时间,新闻时事类查询优先考虑)"},
|
|
121
|
+
"max_results": {"type": "integer", "description": "返回结果条数(1-20,默认 5)"},
|
|
122
|
+
"depth": {"type": "string", "enum": ["fast", "balanced", "deep"], "description": "搜索深度:fast 快、deep 全(慢),默认 fast"},
|
|
123
|
+
"mode": {"type": "string", "enum": ["fast", "auto", "deep", "budget", "sentiment"], "description": "预算模式:fast=免费优先, auto=成本感知, deep=质量优先, budget=配额控制,默认 auto;仅 domain=social 时可写 sentiment(舆情聚合),其余 domain 不认"},
|
|
42
124
|
"since": {"type": "string", "description": "发布时间下限,如 7d / 2026-08-01"},
|
|
43
125
|
"until": {"type": "string", "description": "发布时间上限,如 7d / 2026-08-01"},
|
|
44
|
-
"sort": {"type": "string", "enum": ["relevance", "oldest", "newest"], "description": "排序:relevance=相关度, oldest=最早在前, newest
|
|
45
|
-
"include_domains": {"type": "array", "items": {"type": "string"}, "description": "仅保留这些域名(含子域),如 [\"github.com\"]"
|
|
46
|
-
"exclude_domains": {"type": "array", "items": {"type": "string"}, "description": "排除这些域名(含子域),如 [\"pinterest.com\"]"
|
|
47
|
-
"include_local": {"type": "boolean", "description": "并入本机文件命中(seek 结果尾部,source=local_files,不参与融合评分;默认开)"
|
|
48
|
-
"summary": {"type": "boolean", "description": "精简输出:截断摘要、去掉重字段,省 token"
|
|
126
|
+
"sort": {"type": "string", "enum": ["relevance", "oldest", "newest"], "description": "排序:relevance=相关度, oldest=最早在前, newest=最新在前,默认 relevance"},
|
|
127
|
+
"include_domains": {"type": "array", "items": {"type": "string"}, "description": "仅保留这些域名(含子域),如 [\"github.com\"]"},
|
|
128
|
+
"exclude_domains": {"type": "array", "items": {"type": "string"}, "description": "排除这些域名(含子域),如 [\"pinterest.com\"]"},
|
|
129
|
+
"include_local": {"type": "boolean", "description": "并入本机文件命中(seek 结果尾部,source=local_files,不参与融合评分;默认开)"},
|
|
130
|
+
"summary": {"type": "boolean", "description": "精简输出:截断摘要、去掉重字段,省 token(默认开)"},
|
|
49
131
|
},
|
|
50
132
|
"required": ["query"],
|
|
51
133
|
},
|
|
@@ -57,9 +139,9 @@ TOOLS = [
|
|
|
57
139
|
"type": "object",
|
|
58
140
|
"properties": {
|
|
59
141
|
"query": {"type": "string", "description": "搜索查询词(中文自动扩展召回)"},
|
|
60
|
-
"path": {"type": "string", "description": "
|
|
61
|
-
"max_results": {"type": "integer", "description": "
|
|
62
|
-
"exact": {"type": "boolean", "description": "
|
|
142
|
+
"path": {"type": "string", "description": "搜索目录;缩小范围更快更准(默认 \"~\")"},
|
|
143
|
+
"max_results": {"type": "integer", "description": "返回结果条数(1-20,默认 5)"},
|
|
144
|
+
"exact": {"type": "boolean", "description": "精确匹配,关闭中文扩展(默认关)"},
|
|
63
145
|
},
|
|
64
146
|
"required": ["query"],
|
|
65
147
|
},
|
|
@@ -71,8 +153,8 @@ TOOLS = [
|
|
|
71
153
|
"type": "object",
|
|
72
154
|
"properties": {
|
|
73
155
|
"path": {"type": "string", "description": "文件路径(必须位于白名单目录内)"},
|
|
74
|
-
"max_chars": {"type": "integer", "description": "
|
|
75
|
-
"line_start": {"type": "integer", "description": "起始行号(1 基,可选)"
|
|
156
|
+
"max_chars": {"type": "integer", "description": "预览字符数上限(200-20000,默认 4000)"},
|
|
157
|
+
"line_start": {"type": "integer", "description": "起始行号(1 基,可选)"},
|
|
76
158
|
"line_end": {"type": "integer", "description": "结束行号(可选)"},
|
|
77
159
|
},
|
|
78
160
|
"required": ["path"],
|
|
@@ -86,9 +168,9 @@ TOOLS = [
|
|
|
86
168
|
"properties": {
|
|
87
169
|
"script": {"type": "string", "description": "要运行的计算代码(Python)"},
|
|
88
170
|
"file_inputs": {"type": "string", "description": "白名单输入文件 JSON 数组:[{\"path\":\"...\",\"role\":\"原始数据\"}]"},
|
|
89
|
-
"timeout_s": {"type": "integer", "description": "
|
|
90
|
-
"max_mem_mb": {"type": "integer", "description": "内存上限 MB
|
|
91
|
-
"allow_exec": {"type": "boolean", "description": "是否授权运行(不授权就不执行;未授权时返回 skipped_reason
|
|
171
|
+
"timeout_s": {"type": "integer", "description": "超时秒数(1-120,默认 30)"},
|
|
172
|
+
"max_mem_mb": {"type": "integer", "description": "内存上限 MB(尽力而为,默认 512)"},
|
|
173
|
+
"allow_exec": {"type": "boolean", "description": "是否授权运行(不授权就不执行;未授权时返回 skipped_reason,默认关)"},
|
|
92
174
|
},
|
|
93
175
|
"required": ["script"],
|
|
94
176
|
},
|
|
@@ -101,15 +183,15 @@ TOOLS = [
|
|
|
101
183
|
"properties": {
|
|
102
184
|
"query": {"type": "string", "description": "研究问题(可以是复杂、多步骤的)"},
|
|
103
185
|
"topic": {"type": "string", "description": "选题 profile:ai/investment/finance/academic/tech/tool/internet/social;省略则自动推断"},
|
|
104
|
-
"auto_topic": {"type": "boolean", "description": "无 topic
|
|
105
|
-
"num_sub_queries": {"type": "integer", "description": "
|
|
106
|
-
"max_results": {"type": "integer", "description": "
|
|
107
|
-
"depth": {"type": "string", "enum": ["fast", "balanced", "deep"], "description": "
|
|
108
|
-
"mode": {"type": "string", "enum": ["fast", "auto", "deep", "budget", "social-sentiment"], "description": "预算/模式;社交舆情用 social-sentiment
|
|
186
|
+
"auto_topic": {"type": "boolean", "description": "无 topic 时是否自动推断(默认开)"},
|
|
187
|
+
"num_sub_queries": {"type": "integer", "description": "子查询数量(2-8;有 work_packages 时忽略)"},
|
|
188
|
+
"max_results": {"type": "integer", "description": "每个子查询的结果条数(默认 5)"},
|
|
189
|
+
"depth": {"type": "string", "enum": ["fast", "balanced", "deep"], "description": "搜索深度(默认 balanced)"},
|
|
190
|
+
"mode": {"type": "string", "enum": ["fast", "auto", "deep", "budget", "social-sentiment"], "description": "预算/模式;社交舆情用 social-sentiment,默认 auto"},
|
|
109
191
|
"work_packages": {"type": "string", "description": "工作包 JSON 数组:id, question, query?, file_inputs?(本地一手数据, 白名单制), recompute?({script,budget{timeout_s,max_mem_mb}}), depends_on?。有则跳过扩词,按依赖分阶段取证"},
|
|
110
|
-
"allow_recompute": {"type": "boolean", "description": "授权执行工作包 recompute 计算脚本(不授权就不执行;未授权时 recompute 跳过并触发 recompute_skipped
|
|
192
|
+
"allow_recompute": {"type": "boolean", "description": "授权执行工作包 recompute 计算脚本(不授权就不执行;未授权时 recompute 跳过并触发 recompute_skipped 门禁,默认关)"},
|
|
111
193
|
"platforms": {"type": "string", "description": "social-sentiment 平台列表,逗号分隔"},
|
|
112
|
-
"summary": {"type": "boolean", "description": "精简研究包,省 token"
|
|
194
|
+
"summary": {"type": "boolean", "description": "精简研究包,省 token(默认开)"},
|
|
113
195
|
},
|
|
114
196
|
"required": ["query"],
|
|
115
197
|
},
|
|
@@ -122,7 +204,7 @@ TOOLS = [
|
|
|
122
204
|
"properties": {
|
|
123
205
|
"query": {"type": "string", "description": "搜索查询词(用于交叉验证)"},
|
|
124
206
|
"results_json": {"type": "string", "description": "待评估的搜索结果 JSON(为空时自动搜索)。格式:{\"results\": [{\"title\":\"...\",\"url\":\"...\",\"snippet\":\"...\",\"source\":\"...\",\"score\":0.8}]}"},
|
|
125
|
-
"max_results": {"type": "integer", "description": "
|
|
207
|
+
"max_results": {"type": "integer", "description": "自动搜索时的结果条数(默认 10)"},
|
|
126
208
|
},
|
|
127
209
|
"required": ["query"],
|
|
128
210
|
},
|
|
@@ -145,26 +227,26 @@ TOOLS = [
|
|
|
145
227
|
"type": "object",
|
|
146
228
|
"properties": {
|
|
147
229
|
"url": {"type": "string", "description": "站点根 URL"},
|
|
148
|
-
"strategy": {"type": "string", "enum": ["sitemap", "bfs"], "description": "
|
|
149
|
-
"max_pages": {"type": "integer", "description": "
|
|
150
|
-
"max_depth": {"type": "integer", "description": "BFS
|
|
230
|
+
"strategy": {"type": "string", "enum": ["sitemap", "bfs"], "description": "爬取策略,默认 bfs"},
|
|
231
|
+
"max_pages": {"type": "integer", "description": "最大抓取页数(1-50,默认 10)"},
|
|
232
|
+
"max_depth": {"type": "integer", "description": "BFS 最大深度(1-5,默认 2)"},
|
|
151
233
|
},
|
|
152
234
|
"required": ["url"],
|
|
153
235
|
},
|
|
154
236
|
},
|
|
155
237
|
{
|
|
156
238
|
"name": "argo_fetch",
|
|
157
|
-
"description": "
|
|
239
|
+
"description": "智能页面/长文/PDF抓取:HTTP 优先,遇反爬自动升级反检测浏览器;微信公众号文章(mp.weixin.qq.com)与 PDF 自动感知适配解析;支持 BM25 聚焦提取(focus 省 80%+ token)与结构化提取(mode=extract 抽表格/元数据/JSON-LD)。通读正文与获取文档的首选工具。",
|
|
158
240
|
"inputSchema": {
|
|
159
241
|
"type": "object",
|
|
160
242
|
"properties": {
|
|
161
|
-
"url": {"type": "string", "description": "目标 URL"},
|
|
162
|
-
"mode": {"type": "string", "enum": ["text", "extract"
|
|
163
|
-
"extract_mode": {"type": "string", "enum": ["tables", "metadata", "jsonld", "all"], "description": "mode=extract
|
|
243
|
+
"url": {"type": "string", "description": "目标 URL 或本地 PDF 路径"},
|
|
244
|
+
"mode": {"type": "string", "enum": ["text", "extract", "article", "pdf"], "description": "抓取模式:text=正文/聚焦文本(默认 text), extract=结构化提取, article=公众号全文, pdf=PDF解析。微信与PDF链接自动识别"},
|
|
245
|
+
"extract_mode": {"type": "string", "enum": ["tables", "metadata", "jsonld", "all"], "description": "mode=extract 时的提取子模式,默认 all"},
|
|
164
246
|
"focus": {"type": "string", "description": "BM25 聚焦查询词:只返回相关段落,省 token(仅 mode=text)"},
|
|
165
|
-
"max_chars": {"type": "integer", "description": "
|
|
166
|
-
"use_browser": {"type": "boolean", "description": "强制用反检测浏览器(HTTP
|
|
167
|
-
"include_links": {"type": "boolean", "description": "附带正文内链接(最多 30 条;默认只回 links_count,省 token
|
|
247
|
+
"max_chars": {"type": "integer", "description": "返回正文最大字符数(500-50000,默认 8000)"},
|
|
248
|
+
"use_browser": {"type": "boolean", "description": "强制用反检测浏览器(HTTP 失败时已自动升级,默认关)"},
|
|
249
|
+
"include_links": {"type": "boolean", "description": "附带正文内链接(最多 30 条;默认只回 links_count,省 token,默认关)"},
|
|
168
250
|
},
|
|
169
251
|
"required": ["url"],
|
|
170
252
|
},
|
|
@@ -176,7 +258,7 @@ TOOLS = [
|
|
|
176
258
|
"type": "object",
|
|
177
259
|
"properties": {
|
|
178
260
|
"url": {"type": "string", "description": "目标 URL"},
|
|
179
|
-
"full_page": {"type": "boolean", "description": "
|
|
261
|
+
"full_page": {"type": "boolean", "description": "全页截图(默认仅当前视口,默认关)"},
|
|
180
262
|
"output_path": {"type": "string", "description": "输出路径(默认写入系统临时目录:<temp>/argo_screenshot_<timestamp>.png)"},
|
|
181
263
|
},
|
|
182
264
|
"required": ["url"],
|
|
@@ -202,9 +284,9 @@ TOOLS = [
|
|
|
202
284
|
"type": "object",
|
|
203
285
|
"properties": {
|
|
204
286
|
"query": {"type": "string", "description": "搜索查询词"},
|
|
205
|
-
"mode": {"type": "string", "enum": ["text", "sentiment"], "description": "text=帖子列表, sentiment
|
|
206
|
-
"platforms": {"type": "string", "description": "平台列表,逗号分隔;可选 hackernews,v2ex,zhihu,bilibili,twitter,reddit,xiaohongshu,weibo
|
|
207
|
-
"max_results": {"type": "integer", "description": "
|
|
287
|
+
"mode": {"type": "string", "enum": ["text", "sentiment"], "description": "text=帖子列表, sentiment=舆情聚合分析,默认 text"},
|
|
288
|
+
"platforms": {"type": "string", "description": "平台列表,逗号分隔;可选 hackernews,v2ex,zhihu,bilibili,twitter,reddit,xiaohongshu,weibo,默认 hackernews,zhihu,bilibili"},
|
|
289
|
+
"max_results": {"type": "integer", "description": "每个平台的结果条数(1-20,默认 5)"},
|
|
208
290
|
},
|
|
209
291
|
"required": ["query"],
|
|
210
292
|
},
|
|
@@ -216,7 +298,7 @@ TOOLS = [
|
|
|
216
298
|
"type": "object",
|
|
217
299
|
"properties": {
|
|
218
300
|
"url": {"type": "string", "description": "mp.weixin.qq.com 文章链接"},
|
|
219
|
-
"max_chars": {"type": "integer", "description": "
|
|
301
|
+
"max_chars": {"type": "integer", "description": "返回正文最大字符数(500-50000,默认 20000)"},
|
|
220
302
|
},
|
|
221
303
|
"required": ["url"],
|
|
222
304
|
},
|
|
@@ -229,10 +311,10 @@ TOOLS = [
|
|
|
229
311
|
"properties": {
|
|
230
312
|
"query": {"type": "string", "description": "职位关键词,如:工艺工程师、会计、电工"},
|
|
231
313
|
"city": {"type": "string", "description": "地区:省/市/县或海外城市(成都、昆山、新加坡…),空=不过滤地区"},
|
|
232
|
-
"num": {"type": "integer", "description": "
|
|
233
|
-
"platforms": {"type": "string", "description": "逗号分隔平台: zhipin,liepin,zhaopin,51job,597,jrzp;空=全部"
|
|
234
|
-
"loose": {"type": "boolean", "description": "
|
|
235
|
-
"fetch_detail": {"type": "integer", "description": "对前 N 条高命中结果抓详情页补全结构化字段(0=仅 snippet
|
|
314
|
+
"num": {"type": "integer", "description": "每后端条数(1-20,默认 5)"},
|
|
315
|
+
"platforms": {"type": "string", "description": "逗号分隔平台: zhipin,liepin,zhaopin,51job,597,jrzp;空=全部"},
|
|
316
|
+
"loose": {"type": "boolean", "description": "宽松:异地岗位也保留;默认严格地区过滤(默认关)"},
|
|
317
|
+
"fetch_detail": {"type": "integer", "description": "对前 N 条高命中结果抓详情页补全结构化字段(0=仅 snippet 提取,范围 0-10,默认 0)"},
|
|
236
318
|
},
|
|
237
319
|
"required": ["query"],
|
|
238
320
|
},
|
|
@@ -244,8 +326,8 @@ TOOLS = [
|
|
|
244
326
|
"type": "object",
|
|
245
327
|
"properties": {
|
|
246
328
|
"url": {"type": "string", "description": "目标网页链接"},
|
|
247
|
-
"mode": {"type": "string", "enum": ["tables", "metadata", "jsonld", "all"], "description": "提取内容:tables=HTML表格, metadata=Meta元数据, jsonld=JSON-LD, all
|
|
248
|
-
"max_chars": {"type": "integer", "description": "
|
|
329
|
+
"mode": {"type": "string", "enum": ["tables", "metadata", "jsonld", "all"], "description": "提取内容:tables=HTML表格, metadata=Meta元数据, jsonld=JSON-LD, all=全部,默认 all"},
|
|
330
|
+
"max_chars": {"type": "integer", "description": "抓取页面最大字符数(1000-200000,默认 50000)"},
|
|
249
331
|
},
|
|
250
332
|
"required": ["url"],
|
|
251
333
|
},
|
|
@@ -256,8 +338,8 @@ TOOLS = [
|
|
|
256
338
|
"inputSchema": {
|
|
257
339
|
"type": "object",
|
|
258
340
|
"properties": {
|
|
259
|
-
"urls": {"type": "array", "items": {"type": "string"}, "description": "待预检的 URL 列表"
|
|
260
|
-
"probe": {"type": "boolean", "description": "联网探测存活(404/410
|
|
341
|
+
"urls": {"type": "array", "items": {"type": "string"}, "description": "待预检的 URL 列表"},
|
|
342
|
+
"probe": {"type": "boolean", "description": "联网探测存活(404/410 判死;默认纯本地规则,默认关)"},
|
|
261
343
|
},
|
|
262
344
|
"required": ["urls"],
|
|
263
345
|
},
|
|
@@ -283,7 +365,7 @@ TOOLS = [
|
|
|
283
365
|
"properties": {
|
|
284
366
|
"action": {"type": "string", "enum": ["add", "check", "list", "remove"], "description": "add=登记快照, check=复查变化(可指定单个 url), list=看清单, remove=取消关注"},
|
|
285
367
|
"url": {"type": "string", "description": "目标页面(add/remove 必填;check 可选=只查这一条)"},
|
|
286
|
-
"note": {"type": "string", "description": "备注(add
|
|
368
|
+
"note": {"type": "string", "description": "备注(add 可选,默认空)"},
|
|
287
369
|
},
|
|
288
370
|
"required": ["action"],
|
|
289
371
|
},
|
|
@@ -294,8 +376,8 @@ TOOLS = [
|
|
|
294
376
|
"inputSchema": {
|
|
295
377
|
"type": "object",
|
|
296
378
|
"properties": {
|
|
297
|
-
"dois": {"type": "array", "items": {"type": "string"}, "description": "DOI 列表,如 [\"10.1038/s41586-024-0001-x\"]"
|
|
298
|
-
"style": {"type": "string", "enum": ["gbt7714", "numeric", "apa", "bibtex"], "description": "
|
|
379
|
+
"dois": {"type": "array", "items": {"type": "string"}, "description": "DOI 列表,如 [\"10.1038/s41586-024-0001-x\"]"},
|
|
380
|
+
"style": {"type": "string", "enum": ["gbt7714", "numeric", "apa", "bibtex"], "description": "引用格式,默认 gbt7714"},
|
|
299
381
|
},
|
|
300
382
|
"required": ["dois"],
|
|
301
383
|
},
|
|
@@ -304,7 +386,7 @@ TOOLS = [
|
|
|
304
386
|
|
|
305
387
|
|
|
306
388
|
def listed_tools(spec: str | None = None) -> list[dict]:
|
|
307
|
-
"""tools/list 返回集。默认 CORE
|
|
389
|
+
"""tools/list 返回集。默认 CORE 4 个正交集;all 全量;逗号名单按名取。
|
|
308
390
|
|
|
309
391
|
未知名字忽略,空结果也不回退成全量——曾经「过滤失败吐全量」把 12KB
|
|
310
392
|
schema 砸进每一轮。execute_tool 不受此限制。
|
package/scripts/mcp_transport.py
CHANGED
|
@@ -13,7 +13,24 @@ import sys
|
|
|
13
13
|
from typing import Any
|
|
14
14
|
|
|
15
15
|
from mcp_handlers import _warm_core_async, execute_tool
|
|
16
|
-
from mcp_tools import listed_tools
|
|
16
|
+
from mcp_tools import listed_tools, sanitize_tool
|
|
17
|
+
|
|
18
|
+
try:
|
|
19
|
+
from secret_guard import redact_data
|
|
20
|
+
except ImportError: # pragma: no cover - 脱敏模块不可用时不得静默放行
|
|
21
|
+
def redact_data(data):
|
|
22
|
+
raise RuntimeError("secret_guard 不可用:拒绝输出未经脱敏的工具结果")
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def _redact_response(response: dict[str, Any]) -> dict[str, Any]:
|
|
26
|
+
"""tools/call 出口统一脱敏:覆盖所有分支,而不只是 _ok 成功路径。
|
|
27
|
+
|
|
28
|
+
_ok 内部已有一层(成功结果),但错误信息、surface 工具与兜底 except
|
|
29
|
+
都是裸 return,异常里常带回上游响应体——那里恰恰最容易带凭据。
|
|
30
|
+
放在 RPC 边界是唯一能一次覆盖全部出口的位置;两层叠加的代价是
|
|
31
|
+
对已脱敏文本再跑一次正则,实测 <0.5ms。
|
|
32
|
+
"""
|
|
33
|
+
return redact_data(response)
|
|
17
34
|
|
|
18
35
|
try:
|
|
19
36
|
import hot_state # 代码/配置指纹自重启(失效则退化为旧行为:进程常驻)
|
|
@@ -22,7 +39,7 @@ except Exception: # pragma: no cover
|
|
|
22
39
|
|
|
23
40
|
# 版本来源:与 package.json / SKILL.md 保持一致(发布时统一升版;
|
|
24
41
|
# tests/test_consistency_gates.py 会四端对账,漂移即红)
|
|
25
|
-
ARGO_MCP_VERSION = "2.14.
|
|
42
|
+
ARGO_MCP_VERSION = "2.14.1"
|
|
26
43
|
|
|
27
44
|
_response_format = "content-length" # 根据客户端请求自动切换
|
|
28
45
|
|
|
@@ -31,6 +48,10 @@ def handle_rpc(method: str, params: dict[str, Any]) -> dict[str, Any]:
|
|
|
31
48
|
"""处理 JSON-RPC 请求。"""
|
|
32
49
|
if method == "initialize":
|
|
33
50
|
_warm_core_async()
|
|
51
|
+
# 工具面真源在 mcp_tools.CORE_TOOL_NAMES:文案在这里只写「CORE 指哪
|
|
52
|
+
# 几个」的语义,不逐个列名——列名就有了第二份真源,改一处忘另一处时
|
|
53
|
+
# 模型会按旧名单调工具。机械对拍见 test_mcp_consolidated_tools.py::
|
|
54
|
+
# test_instructions_matches_core。
|
|
34
55
|
return {
|
|
35
56
|
"protocolVersion": "2025-06-18",
|
|
36
57
|
"capabilities": {"tools": {"listChanged": False}},
|
|
@@ -40,19 +61,30 @@ def handle_rpc(method: str, params: dict[str, Any]) -> dict[str, Any]:
|
|
|
40
61
|
},
|
|
41
62
|
# 短指令:降 tools 上下文;细节在 tool schema。
|
|
42
63
|
# URL 在 results[].url(默认 envelope=False,不生成 sources)。
|
|
64
|
+
#
|
|
65
|
+
# 文案只写「CORE 指哪几个」的语义,不逐个列全名单——全名单在
|
|
66
|
+
# tools/list 里,抄一份到这里就有了第二真源。机械对拍见
|
|
67
|
+
# test_mcp_consolidated_tools.py::test_instructions_matches_core。
|
|
68
|
+
#
|
|
69
|
+
# 不点名 argo_local_search:它是真工具(domain=local 也能用),但
|
|
70
|
+
# 已不在默认注入面,写进「日常」文案会让模型去调一个没挂的工具。
|
|
43
71
|
"instructions": (
|
|
44
|
-
"Argo
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"local_read/recompute
|
|
72
|
+
"Argo:日常四件套见 tools/list(argo_search 统一检索,URL 在 "
|
|
73
|
+
"results[].url;argo_fetch 抓取;argo_research 深度取证,"
|
|
74
|
+
"内建 academic/finance 等 topic profile、不调外部 skill;"
|
|
75
|
+
"argo_screenshot 截图)。argo_search 用 domain 切社交/招聘/本机。"
|
|
76
|
+
"其余工具默认不注入 schema,ARGO_MCP_TOOLS=all 打开:"
|
|
77
|
+
"local_search/local_read/recompute/evidence/clarify/crawl/"
|
|
78
|
+
"extract/preflight/answer/watch/cite。"
|
|
50
79
|
),
|
|
51
80
|
}
|
|
52
81
|
|
|
53
82
|
elif method == "tools/list":
|
|
54
83
|
_warm_core_async()
|
|
55
|
-
|
|
84
|
+
# 出口净化(issue #46):严格网关(火山方舟/腾讯云 MaaS)会因 schema
|
|
85
|
+
# 里的 default/minimum/minItems 等非标注解直接 400。源头已写干净,
|
|
86
|
+
# 这里再兜一层——以后有人加回违规键时,拦住的是网关而不是用户。
|
|
87
|
+
return {"tools": [sanitize_tool(t) for t in listed_tools()]}
|
|
56
88
|
|
|
57
89
|
elif method == "tools/call":
|
|
58
90
|
tool_name = params.get("name", "")
|
|
@@ -63,7 +95,7 @@ def handle_rpc(method: str, params: dict[str, Any]) -> dict[str, Any]:
|
|
|
63
95
|
# 对账)。MCP 规范里 arguments 是 object,畸形一律按空对象走
|
|
64
96
|
# 正常缺参校验。
|
|
65
97
|
arguments = {}
|
|
66
|
-
return execute_tool(tool_name, arguments)
|
|
98
|
+
return _redact_response(execute_tool(tool_name, arguments))
|
|
67
99
|
|
|
68
100
|
elif method == "ping":
|
|
69
101
|
return {}
|
package/scripts/pre-commit
CHANGED
|
@@ -27,6 +27,18 @@
|
|
|
27
27
|
# 却在全量回归里红——正是「改完没跑到那条门」的同一个洞。全量回归 ~5 分钟
|
|
28
28
|
# 留给 CI 或手动(python3 -m pytest tests/ -q),不进 hook——hook 慢于 20s
|
|
29
29
|
# 就会被用户 --no-verify 绕过,那是更坏的结局。
|
|
30
|
+
# 2026-11-10 补的两道(test_intl_engines + test_image_sources):d532486 把
|
|
31
|
+
# 7 个国际源与 cleveland 的专用 builder 归一为声明式 Spec 后,这两份用例
|
|
32
|
+
# 仍直接调用已删除的 _build_xxx_engine,实测 9 项 AttributeError——而它们
|
|
33
|
+
# 不在 hook 覆盖内,于是「门禁全绿 + 归一后解析路径零覆盖」并存。归一的
|
|
34
|
+
# 风险不在新代码本身,而在「旧契约测试没跟着改」。两者合计 <1s。
|
|
35
|
+
# 2026-11-11 补的七道(mcp_schema_maas_compliance / mcp_consolidated_tools /
|
|
36
|
+
# redactor_guard / semantic_evidence_jev / schema_drift_diagnosis /
|
|
37
|
+
# smart_inference / local_intent / mcp_article_job):这七份是 11-10 至 11-11
|
|
38
|
+
# 那批「还债」提交新写的用例,覆盖了 MCP 工具面收敛、MaaS 兼容净化接线、
|
|
39
|
+
# 输出脱敏、JEV 语义层、解析器漂移诊断、智能推断与本地意图判据——全部不在
|
|
40
|
+
# hook 覆盖内,于是那批改动里「新增能力零门禁」与「修了正确性缺陷」并存。
|
|
41
|
+
# 八者合计 <2s(实测 0.6s),放进 hook 不触发 --no-verify 绕过。
|
|
30
42
|
#
|
|
31
43
|
# 安装:bash scripts/install.sh 自动装调度器 hooks/pre-commit(原有 hook 改名
|
|
32
44
|
# pre-commit.user 先跑,再直接执行本文件,不拷贝)。手动跑:sh scripts/pre-commit
|
|
@@ -106,7 +118,19 @@ printf "[pre-commit] argo 快门禁(~13s,解释器 %s;全量回归请手
|
|
|
106
118
|
tests/test_state_literal_drift.py \
|
|
107
119
|
tests/test_check_commit_report.py \
|
|
108
120
|
tests/test_badcase_ledger.py \
|
|
109
|
-
tests/test_agents_routing.py
|
|
121
|
+
tests/test_agents_routing.py \
|
|
122
|
+
tests/test_intl_engines.py \
|
|
123
|
+
tests/test_image_sources.py \
|
|
124
|
+
tests/test_mcp_schema_maas_compliance.py \
|
|
125
|
+
tests/test_mcp_consolidated_tools.py \
|
|
126
|
+
tests/test_redactor_guard.py \
|
|
127
|
+
tests/test_semantic_evidence_jev.py \
|
|
128
|
+
tests/test_schema_drift_diagnosis.py \
|
|
129
|
+
tests/test_smart_inference.py \
|
|
130
|
+
tests/test_local_intent.py \
|
|
131
|
+
tests/test_mcp_article_job.py \
|
|
132
|
+
tests/test_followup_fixes.py \
|
|
133
|
+
tests/test_p2_followup.py
|
|
110
134
|
|
|
111
135
|
# 派生件一致性门禁(P0-2):写完 spec 不跑 sync 就提交,派生件会过期。
|
|
112
136
|
# 实测 0.13s,进 pre-commit 不触发 --no-verify 绕过。
|
package/scripts/release.py
CHANGED
|
@@ -87,18 +87,18 @@ def rules(old: str, new: str) -> list[tuple[str, str, str, int]]:
|
|
|
87
87
|
return [
|
|
88
88
|
# 五语徽标
|
|
89
89
|
("README.md", f"badge/version-{o}-", f"badge/version-{n}-", 1),
|
|
90
|
-
("README.
|
|
90
|
+
("README.zh.md", f"badge/version-{o}-", f"badge/version-{n}-", 1),
|
|
91
91
|
("README.ja.md", f"badge/version-{o}-", f"badge/version-{n}-", 1),
|
|
92
92
|
("README.ko.md", f"badge/version-{o}-", f"badge/version-{n}-", 1),
|
|
93
93
|
("README.es.md", f"badge/version-{o}-", f"badge/version-{n}-", 1),
|
|
94
94
|
# 五语「当前版本」散文(安装段两处)
|
|
95
|
-
("README.md", f"(已支持,当前 {o};按 tag 发布,版本固定)",
|
|
95
|
+
("README.zh.md", f"(已支持,当前 {o};按 tag 发布,版本固定)",
|
|
96
96
|
f"(已支持,当前 {n};按 tag 发布,版本固定)", 1),
|
|
97
|
-
("README.md", f"**npm 安装已支持,当前版本 {o}**",
|
|
97
|
+
("README.zh.md", f"**npm 安装已支持,当前版本 {o}**",
|
|
98
98
|
f"**npm 安装已支持,当前版本 {n}**", 1),
|
|
99
|
-
("README.
|
|
99
|
+
("README.md", f"(supported, currently {o}; released per tag, version pinned)",
|
|
100
100
|
f"(supported, currently {n}; released per tag, version pinned)", 1),
|
|
101
|
-
("README.
|
|
101
|
+
("README.md", f"**npm install is supported, current version {o}**",
|
|
102
102
|
f"**npm install is supported, current version {n}**", 1),
|
|
103
103
|
("README.ja.md", f"現在 {o}。tag ごとに公開", f"現在 {n}。tag ごとに公開", 1),
|
|
104
104
|
("README.ja.md", f"**npm インストールに対応済みで、最新版は {o}**",
|
|
@@ -111,8 +111,8 @@ def rules(old: str, new: str) -> list[tuple[str, str, str, int]]:
|
|
|
111
111
|
("README.es.md", f"**La instalación por npm está soportada y la versión actual es {o}**",
|
|
112
112
|
f"**La instalación por npm está soportada y la versión actual es {n}**", 1),
|
|
113
113
|
# 五语「当前大致能力」标题
|
|
114
|
-
("README.md", f"### 当前大致能力(v{o})", f"### 当前大致能力(v{n})", 1),
|
|
115
|
-
("README.
|
|
114
|
+
("README.zh.md", f"### 当前大致能力(v{o})", f"### 当前大致能力(v{n})", 1),
|
|
115
|
+
("README.md", f"### Rough capability set (v{o})", f"### Rough capability set (v{n})", 1),
|
|
116
116
|
("README.ja.md", f"### 現時点の能力概要(v{o})", f"### 現時点の能力概要(v{n})", 1),
|
|
117
117
|
("README.ko.md", f"### 대략적인 능력 세트 (v{o})", f"### 대략적인 능力 세트 (v{n})", 1),
|
|
118
118
|
("README.es.md", f"### Conjunto aproximado de capacidades (v{o})",
|
|
@@ -175,7 +175,7 @@ def ensure_whitelist(root: Path, old: str, new: str, dry: bool) -> str:
|
|
|
175
175
|
|
|
176
176
|
|
|
177
177
|
def ensure_notes(root: Path, new: str, dry: bool) -> str:
|
|
178
|
-
"""发布说明不存在时生成带 TODO
|
|
178
|
+
"""发布说明不存在时生成带 TODO 标记的骨架,避免结构性预检红。支持中英双语规范。"""
|
|
179
179
|
rel = f"docs/RELEASE_NOTES_v{new}.md"
|
|
180
180
|
path = root / rel
|
|
181
181
|
if path.is_file():
|
|
@@ -183,11 +183,20 @@ def ensure_notes(root: Path, new: str, dry: bool) -> str:
|
|
|
183
183
|
if not dry:
|
|
184
184
|
path.parent.mkdir(parents=True, exist_ok=True)
|
|
185
185
|
path.write_text(
|
|
186
|
-
f"# Argo v{new}
|
|
186
|
+
f"# Argo v{new}\n\n{NOTES_TODO}\n\n"
|
|
187
|
+
"## Highlights (English / TL;DR)\n\n"
|
|
188
|
+
"- **What's New**:\n"
|
|
189
|
+
"- **Key Improvements**:\n"
|
|
190
|
+
"- **Breaking Changes**:\n\n"
|
|
191
|
+
"---\n\n"
|
|
192
|
+
f"# Argo v{new} 发布说明(中文)\n\n"
|
|
187
193
|
"**版本**:%s\n**定位**:\n\n---\n\n"
|
|
188
|
-
"## 这次更新有什么(通俗版)\n\n## 验证\n\n## 兼容性\n"
|
|
194
|
+
"## 这次更新有什么(通俗版)\n\n## 验证\n\n## 兼容性\n\n"
|
|
195
|
+
"## 社区广播模板(Broadcast Snippets)\n\n"
|
|
196
|
+
"**X / Twitter (280 chars)**:\n\n"
|
|
197
|
+
"**开发者群广播**:\n" % new,
|
|
189
198
|
encoding="utf-8", newline="\n")
|
|
190
|
-
return f"{rel}:
|
|
199
|
+
return f"{rel}: 生成双语骨架(记得去掉 {NOTES_TODO})"
|
|
191
200
|
|
|
192
201
|
|
|
193
202
|
# ── 内容清单:脚本不写文案,但缺一段就不让发 ────────────────────────────────
|
package/scripts/release_check.py
CHANGED
|
@@ -45,7 +45,7 @@ JSON_DECLS = (
|
|
|
45
45
|
"server.json",
|
|
46
46
|
"packages/argo-zcode/.zcode-plugin/plugin.json",
|
|
47
47
|
)
|
|
48
|
-
README_LANGS = ("README.md", "README.
|
|
48
|
+
README_LANGS = ("README.md", "README.zh.md", "README.ja.md", "README.ko.md", "README.es.md")
|
|
49
49
|
|
|
50
50
|
# 源码里的版本常量(正则取,避免 import 副作用;panel_server.mjs 已改为运行时读 plugin.json)
|
|
51
51
|
SRC_DECLS = (
|
package/scripts/route_policy.py
CHANGED
|
@@ -63,7 +63,12 @@ _VERTICAL_NEW_SOURCE: dict[str, tuple[str, ...]] = {
|
|
|
63
63
|
# kaggle 补社区数据集(DataCite/Zenodo 是机构仓储,Kaggle 是社区);
|
|
64
64
|
# hf_papers 补论文社交信号(upvotes/作者,arXiv/OpenAlex 无)。
|
|
65
65
|
"semantic_discovery": ("mwmbl",),
|
|
66
|
-
|
|
66
|
+
# 2026-11-11:hf_datasets 声明在 kaggle 之后(位次 4),与 kaggle 一并加槽。
|
|
67
|
+
# 两者口径互补(机构仓储 DOI / 竞赛社区 / ML 社区数据集),不是同质重复。
|
|
68
|
+
"dataset_search": ("kaggle", "hf_datasets"),
|
|
69
|
+
# 2026-11-11:maven/nuget 补 Java/JVM 与 .NET 两个生态的关键词发现,
|
|
70
|
+
# 声明在 crates 之后(位次 4/5)。本域基础预算 3,两源需加槽通电。
|
|
71
|
+
"package_search": ("maven", "nuget"),
|
|
67
72
|
}
|
|
68
73
|
|
|
69
74
|
|