feat(selector): support linkTemplate to build detail URL from bare id #3574
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 196 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.316
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3574"
general
weight: 0.35
Him188
改动内容
给 Selector 三种条目格式(
a/indexed/json-path-indexed)加linkTemplate(占位符{value})。搜索 API 只返回裸 id 时(如 girigiriajax/suggest→{"list":[{"id":"5395"}]}),可用它声明式拼出详情页链接/GV5395/,无需为该站写专属 Kotlin 路由——这类源即可完全规则化。id/fullUrl/partialUrl的构造逻辑收敛到共享buildSubject,三种格式共用。girigiri 现在可纯规则表达(suggest +
json-path-indexed+linkTemplate),因此一并删除冗余的GirigiriSearchRoute与已无用户的SearchRoute机制(接口 +searchRoutes参数 +fetchPage回退循环)。验证码求解(CaptchaSolver、MacCms/Browser solver)不受影响。测试
app-datadesktopTest 全绿,含新增SelectorSearchApiLinkTemplateTest(Kotlin 构造 + 规则 JSON 反序列化两条路径)。SelectorSiteFixtureTest/SelectorSearchConfigSerializationTest不变(无模板路径行为完全一致)。DefaultSelectorMediaSourceEngineCaptchaTest、ImageCaptchaSolverTest、WebCaptchaDetectorTest、WebCaptchaSupportTest等 34 个验证码用例全绿。assembleDefaultDebug构建 + 运行通过。模拟器端到端验证:GET ani.girigirilove.com/index.php/ajax/suggest?mid=1&wd=...→verdict=Ok,产出/GV{id}/详情链接,剧集解析正常、可播放。配套 PR
creamycake-anime/animeko-subs#17 — girigiri 规则更新(suggest +
json-path-indexed+linkTemplate)。请一起合(规则依赖本引擎特性)。命名说明
linkTemplate是 web-selector 侧的链接合成(把 id 拼成详情页 URL),与通用json-api源的subjectUrl角色等价。两者因详情页格式不同而分属两套源——web-selector 解析 HTML 详情(如 girigiri 这种「JSON 搜索 + HTML 详情」的混合源),json-api解析 JSON 详情(如稀饭 Next 那种纯 JSON API 源)。命名随各自词汇(web-selector 的selectLinks/selectNamesvsjson-api的subjectUrl/episodeUrl),故不强求同名。详见selector-engine-docs.md。