fanlusky
|
e350a94509
|
feat(translation): 候选词翻译支持小牛翻译(NiuTrans)
在线翻译服务由「腾讯云 / 自定义 DeepLX」扩展为三选一,新增小牛翻译。
- 新增 NiuTrans provider(/v2/text/translate):按官方规则对参数加 apikey
排序拼接后取 MD5 作为 authStr(BCrypt 实现,无新增依赖),表单编码逐条
翻译,解析 tgtText,errorCode/errorMsg 视为失败
- cloud_translation 调度改为 Provider 枚举,优先级 niutrans > custom > tencent,
缓存 key 带 provider 区分
- 配置层新增 [niutrans](enabled/app_id/apikey)及读取与读写接口
- 设置界面新增「小牛翻译」下拉项与 APP ID / API Key 输入框,切换时保持
provider 互斥
- 新增 test_niutrans_translation(凭据校验、鉴权 MD5、响应解析)
|
2026-09-13 20:54:45 +08:00 |
|
fanlusky
|
a7779d2b05
|
refactor(engine): 将 engine 从 submodule 内嵌为仓内一等组件
`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 及各子目录
文档同步说明新的位置与边界。
|
2026-09-12 03:40:48 +08:00 |
|
Evan
|
42238a2af6
|
style: 用 .clang-format 重排 server / windows / ui / log
一次性重排,无任何行为改动。四个目录各自的 .clang-format 放在仓库里已久,但全组织只有
MSIME-Linux 在 CI 里执行 clang-format 检查,这边 149 个文件里有 149 个不符合自己声明的风格。
已逐文件核对语义等价:去掉空白、注释与相邻字符串字面量拆分之后,全部 149 个文件与重排前逐字节
相同。差异只有三类——缩进与换行、clang-format 补的 } // namespace 结尾注释、以及长字符串被拆成
相邻字面量(C++ 保证自动拼接)。
这个提交会写进 .git-blame-ignore-revs。
|
2026-09-06 12:13:47 +09:00 |
|
Evan
|
6341b4fffc
|
fix(server): 出厂配置的占位凭据不再被当作真凭据
IsPlaceholderToken 与 IsUsableSecret 都只识别 `<YOUR_OWN_` 前缀,而 config.default.toml 实际使用
`<YOUR_XXX>` 和 `FAKESECRET_` 两种写法,18 个占位符无一被识别。叠加 ai_assistant.enabled、
voice_input.voice_input、tencent_tmt.enabled 三项默认为 true,全新安装在用户未做任何配置的情况下
就会把输入串发往 api.deepseek.com、把候选文本发往 tmt.tencentcloudapi.com——请求虽然鉴权失败,
内容已经离开本机。
两处判定改为按占位符的形状判断,并新增 test_default_config_credentials:它直接读安装器实际打包的
config.default.toml,逐条校验没有任何凭据被当成可用值,因此换一种占位符写法也会被拦下。
|
2026-09-06 11:56:11 +09:00 |
|
fanlusky
|
2effb7c393
|
Add support for the DeepLX translation service.
|
2026-08-30 15:39:02 +08:00 |
|
fanlusky
|
1eef18401c
|
Fix the issue where long sentence translations are not fully displayed.
|
2026-08-25 20:01:48 +08:00 |
|
fanlusky
|
f85d77e6a1
|
Add multilingual candidate translation.
|
2026-08-25 12:40:55 +08:00 |
|
fanlusky
|
03b4dfeff4
|
Supplement: Tencent Cloud API translation from English to Chinese, and API invocation.
|
2026-08-22 19:44:06 +08:00 |
|
fanlusky
|
bade05e5aa
|
Provide an entry for setting the Tencent Cloud Translation API key.
|
2026-08-22 13:38:08 +08:00 |
|
fanlusky
|
7bc55dab39
|
Integrate the Tencent Cloud Machine Translation API.
|
2026-08-22 02:22:38 +08:00 |
|
fanlusky
|
27b0974be1
|
Add preliminary support for Japanese input.
|
2026-08-21 16:55:41 +08:00 |
|
fanlusky
|
e2af2c49d2
|
chore(logging): remove server debug logging
- remove OutputDebugString calls across the server
- remove spdlog calls and file logger initialization
- disable IPC and WebView debug output
- remove temporary database performance instrumentation
- update the MetasequoiaImeEngine submodule revision
|
2026-07-27 15:13:51 +08:00 |
|
fanlumaster
|
5e6ee87626
|
[feat]: add cloud api
|
2026-03-26 01:44:07 +08:00 |
|