`vendor/MetasequoiaImeEngine` submodule 改为 `engine/` 目录,导入的是 product-lock.json 原本钉住的提交 c810d201,逐文件核对过 blob,因此这是一次 搬迁而不是引擎升级。引擎自己的嵌套 submodule(googlepinyinime-rev、utfcpp、 miniaudio)按各自 gitlink 一并展开,来源与提交见 engine/UPSTREAM.md。 Windows 专门化裁掉了不属于本产品的部分:whisper.cpp 与本地推理 provider、 macOS 示例宿主、整个 dictionary/ 建库流水线、上游 CI 与 release-please 配置。 词库仍按 product-lock.json 在构建时取发布产物。 引擎不再进 product-lock.json:没有 gitlink 就没有可比对的东西,锁里写一个上游 commit 等于宣称这棵树仍等于上游,而第一个 Windows 专门化改动落地时这句话就假了。 verify-contracts / verify-checkout 随之移除,verify-published 保留。 CI 与工具链:引擎源码并入根 scripts/format.sh(删掉引擎自己的那份,避免两套排除 列表分叉);引擎 voice.yml 里的 silero_vad.onnx 摘要校验移到本仓 lock job; engine-bump-triage 工作流与其测试删除;gitsubmodule 的 dependabot 频率由 daily 改为 monthly。 README、README.en、AGENTS.md、CONTRIBUTING、docs/product-release.md 及各子目录 文档同步说明新的位置与边界。
4.4 KiB
Upstream provenance
This directory was vendor/MetasequoiaImeEngine, a submodule of
https://github.com/metasequoiaime/MSIME-Engine. It is now a component of this repository, vendored
in-tree at engine/ alongside server/, ui/, windows/ and installer/.
| Upstream repository | metasequoiaime/MSIME-Engine |
| Imported commit | c810d201f549b337ae0c4a65a9d694103f1c1754 |
| Engine version at import | 0.9.0 (version.txt) |
That commit is the one product-lock.json pinned before the import, so this is a relocation and not
an engine upgrade: every source file here was verified against that commit's blob after the move.
The engine's own nested submodules were expanded in place at the commits it pinned:
| Path | Upstream | Commit |
|---|---|---|
googlepinyinime-rev/ |
metasequoiaime/Google-PinyinIME-Rev |
12db5237adfcecb79b8ac602d80f3576639ea219 |
utfcpp/ |
nemtrif/utfcpp |
2d8e20b22dcb3e9b3c4f52103182ebda949c6089 |
voice/third_party/miniaudio/ |
mackron/miniaudio |
9634bedb5b5a2ca38c1ee7108a9358a4e233f14d |
Two of those files, googlepinyinime-rev/src/{include/userdict.h,share/userdict.cpp}, are committed
upstream with CRLF and arrive here with LF. That is this repository's .gitattributes (* text=auto eol=lf) doing what it does to every other file; the content is unchanged.
Why this file and not product-lock.json
The engine used to be pinned by a gitlink, and product-lock.json recorded the commit so CI could
check that the checked-out submodule matched the reviewed one. There is no gitlink any more, so
there is nothing left for CI to compare against: the first Windows-specific fix to engine/ makes
"this tree is upstream commit X" false, and nothing would notice. Recording the provenance in prose
says what is true — where the code came from — without claiming an equality that no longer holds.
Treat engine/ as first-party code from here on. Changes to it are reviewed, formatted and tested
like any other directory of this repository (scripts/format.sh covers it), not merged from
upstream. Upstream is history, not a remote to track.
What was removed during the Windows specialization
Everything below was deleted from the imported tree. No engine source file was otherwise modified.
voice/CMakeLists.txt lost the option blocks belonging to the deleted sources; the rest of the
changes are documentation (README*.md, AGENTS.md, NOTICE.md, the contracts/ and docs/
prose) rewritten to describe a directory rather than a repository.
Non-Windows platform code
voice/third_party/whisper.cpp/and the whisper provider (worker, header, test) — roughly 36 MB of local-inference ASR. This product's voice input uses cloud ASR; nothing here built or shipped it.voice/examples/macos/— a standalone macOS host application.
Portable if(APPLE) / elseif(WIN32) / else() guards inside the surviving sources were left
alone. Stripping them would be a large, untested rewrite of working code for no build-output gain.
The dictionary build pipeline
dictionary/in full — about 228 MB of raw corpora (cn,en,source,makecikudb) and the scripts that turn them into a dictionary release. No CMake target in this repository consumes them, and the workflow that built them lived in the engine's own CI. The built dictionaries are still fetched at build time from their release, asproduct-lock.jsonrecords.build_assets.pyandbuild_profile.py, which importdictionary.build_profile.
contracts/assets/ was kept: assets.h is a generated header included by roughly twenty engine
translation units, and it is unrelated to the corpora despite the name.
Upstream governance and tooling
.github/(the engine's own CI),.vscode/,.gitmodules,.mailmap,.git-blame-ignore-revs,CHANGELOG.md,release-please-config.json,.release-please-manifest.json— all of these describe a standalone repository with its own release train, which this directory no longer is.scripts/format.sh— this repository formats the engine fromscripts/format.shat the root, so a second entry point with its own exclusion list would only be a way for the two to disagree. The exclusions it carried were folded into the root script.- Unused portions of the vendored
miniaudio,googlepinyinime-revandutfcppcopies. What remains of those three is still third-party and still under its own licence; seeNOTICE.md.