Skip to content

chore: refresh packaged indexes and add the two new manuals - #16

Merged
Paka-418 merged 1 commit into
mainfrom
chore/prebuilt-refresh
Nov 18, 2026
Merged

Paka-418 merged 1 commit into
mainfrom
chore/prebuilt-refresh

Conversation

@Paka-418

@Paka-418 Paka-418 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

问题

mcp/prebuilt/ 是 npm run build:index 的产物、提交进仓库的,所以往 catalog 里加手册不会自动生成快照。0.4.1 加了 x5-cases 和 audio-kit,但没人重跑构建脚本,这两本一直没有 prebuilt/ 条目:

  • 线上索引取不到的时候(断网、OSS 抖动、站点故障),其他 17 本退回快照照常出结果,这两本直接报错;
  • npm run eval:offline 覆盖不到它们,离线回归里是盲区。

CI 的 rebuild-index job 每次 PR 都跑 build:index,但它只验证脚本能跑通、不回写产物,所以 CI 绿并不代表产物齐。

改动

对线上站点重跑 npm run build:index:

  • prebuilt/ 从 17 本变 19 本,新增 audio-kit.{json,bm25}.gz 和 x5-cases.{json,bm25}.gz,每本都有对应倒排表
  • 其余 17 本的快照一并按今天的线上内容刷新(含 RDK Ultra 的正文,expandBodies 的手册正文来自这里)
  • manifest.json 同步更新

验证

  • npm test:706 passed(39 files)
  • npm run eval:offline:hit@1 0.867 / hit@3 0.933 / MRR 0.900,全部走包内快照、无网络
  • 目录计数:prebuilt/*.json.gz 19 个,prebuilt/*.bm25.gz 19 个

发布

只有提交、不改版本号。快照是打进 npm 包的,用户要拿到这两本新快照需要下一次 npm publish,建议和下一个功能版本一起发,不单独占版本号。

🤖 Generated with Claude Code

`mcp/prebuilt/` is committed output of `npm run build:index`, so adding a
manual to the catalog does not give it a snapshot on its own. The 0.4.1
catalog change left `x5-cases` and `audio-kit` without one: when the live
index fails, those two returned an error while every other manual fell back
to its snapshot, and `eval:offline` could not cover them.

Re-run the builder against the live sites. The directory now holds 19 manuals
(17 + the two additions), all with a matching `.bm25.gz`, and the page text
captured for RDK Ultra is refreshed along with everything else.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@Paka-418
Paka-418 merged commit 8e1de73 into main Nov 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant