Skip to content

加 AGENTS.md 和英文 README,脚本报错中英都有 - #14

Merged
qiyinxi merged 3 commits into
ModAVD:mainfrom
qiyinxi:codex/issue-261-hostime
Nov 27, 2026
Merged

qiyinxi merged 3 commits into
ModAVD:mainfrom
qiyinxi:codex/issue-261-hostime

Conversation

@qiyinxi

@qiyinxi qiyinxi commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

改了什么 / What changed

ModAVD/ModAVD#261 第 2、3、5 条在这个仓库的部分(只读英文的开发者还会碰到的中文)。

  • 加 AGENTS.md(中文)和 AGENTS.en.md(英文),两份互相链接,README 里也链到它们;内容按仓库现状写:目录、构建(build.ps1,没有 Gradle)、CI 的几项检查、本地怎么测、语言约定。通用规矩指回 ModAVD 主仓库的 AGENTS.md。
  • build.ps1、scripts/release-local.ps1、scripts/verify_release_apk.py 的报错改成「中文 / English」双语,只动报错文字,逻辑不变。
  • HostLink.java、HostProtocol.java 的注释译成英文,只动注释,代码不变。
  • 已合并 main:main 已有 README.en.md,冲突按 main 的版本解决。

Item 2, 3 and 5 of ModAVD/ModAVD#261 for this repository: an AGENTS.md and AGENTS.en.md that link to each other (and from the READMEs), bilingual error messages in build.ps1, scripts/release-local.ps1 and scripts/verify_release_apk.py, and English comments in HostLink.java and HostProtocol.java (comments only). main is merged in; the conflict in README.en.md was resolved by taking main's version.

怎么验证的 / How it was verified

  • build.ps1、scripts/release-local.ps1:PowerShell 解析检查 0 个错误;scripts/verify_release_apk.py:py_compile 通过。
  • scripts/test_repo_checks.py 3 个用例通过;scripts/test_android_sdk_fallback.ps1 全部场景通过;scripts/test_verify_release_apk.py 没有可跑的用例(跳过)。
  • ProtocolTest:用 JDK 25 按 CI 的参数(--release 17 -Xlint:all -Werror)编译 HostProtocol.java 和测试,34 项检查通过。
  • scripts/privacy.py 0 个失败,scripts/repo_checks.py(作者检查)0 个失败。
  • 本地没有编译 HostLink.java(要 android.jar);CI 的 apk-build(完整构建两个 APK)、protocol-test、privacy、authors、zizmor 全绿。
  • 没有跑 release-local.ps1 和 build.ps1 本身,只做了解析检查。

还没做的 / Not done

  • ModAVD#261 第 1、4、6 条和其他仓库的部分不在这个 PR 里。
  • 其他 Java 文件(HostImeService.java、testapp/)和 ime/test/ProtocolTest.java 的注释仍是中文,没有译。
  • scripts/ 里 privacy.py、repo_checks.py 等 CI 脚本的报错仍是中文。

Refs ModAVD/ModAVD#261

@qiyinxi qiyinxi added the documentation Improvements or additions to documentation / 文档改进或新增 label Nov 27, 2026
@qiyinxi
qiyinxi marked this pull request as ready for review November 27, 2026 14:20
@qiyinxi
qiyinxi added this pull request to the merge queue Nov 27, 2026
Merged via the queue into ModAVD:main with commit d162dab Nov 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation / 文档改进或新增

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant