Repository navigation
docs(contracts): Core 作为应用契约唯一真源,补回命令表与 AI 配置章节 - #24
Merged
xiaoyumuxi merged 1 commit intoNov 13, 2026
Merged
xiaoyumuxi merged 1 commit into
xiaoyumuxi merged 1 commit into
Conversation
- rust-core-api.md 补回 #19 误删的命令总表(375 条,每个 CoreCommand::parse 接受的命令一行) 和 AI configuration 章节;Build systems 表补上 build.resolveStoredOptions、build.editStoredOption。 - protocol::command 新增测试:命令表与解析器逐条比对,增删改命令必须同一次提交更新表格。 - 删除 rust/fixtures/i18n(归 Lithe-IDEA i18n 生成器所有,迁到 shared/i18n/fixtures) 和无人读取的 rust/fixtures/phpunit-project。 Refs 1lck/Lithe-IDEA#1853
xiaoyumuxi
marked this pull request as ready for review
November 13, 2026 16:23
xiaoyumuxi
merged commit Nov 13, 2026
ef02ab8
into
refactor/core-remove-java-special-cases
5 checks passed
18 of 21 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联
shared/contracts、shared/fixtures里的副本。本 PR 是 Core 这一侧的准备,桌面端的删除在配套 PR 里做。main。这个 PR 做什么
Lithe-IDEA 删除副本之后,
rust/contracts/就是唯一的一份。合入前先补齐 Core 这份里缺的内容,再删掉 Core 里本来就不属于 Core 的 fixture。补回 #19 误删的内容
#19 把契约迁进 Core 时,
rust-core-api.md少了两块,Lithe-IDEA 的副本里还在:## Commands下的命令总表CoreCommand::parse接受的每个命令一行,#23 删掉的命令不在表里### AI configuration章节### Declarative plugins前面。fixture 路径改成 Core 的rust/fixtures/ai/cli-configuration-v1.jsonbuild.resolveStoredOptions、build.editStoredOption两行ai.configuration.*的确定性解析防止命令表再次漂移
protocol/command.rs新增测试api_command_table_lists_exactly_the_parsed_commands:command.rs源码里读出CoreCommand::parse匹配的全部命令名;rust-core-api.md命令表第一列逐条比对;所以以后增加、改名或删除命令,必须在同一次提交里更新表格。我验证过故意删掉表里的
git.shelf一行,测试会失败。删除不属于 Core 的 fixture
rust/fixtures/i18n/(format-v1.json、native-abi-v1.json)shared/i18n/fixtures/,和生成器放在一起。application-boundary.md的链接改为指向那里rust/fixtures/phpunit-project/(5 个文件)不改动
验证
cargo fmt --all --check:通过。scripts/rust-core/verify-rust-core-comments.sh:通过。node shared/plugins/scripts/verify-docs.mjs:通过。cargo test --workspace:全部通过,其中lithe-core1744 passed / 0 failed,含新增的命令表测试。debug/、execution/、process-lifecycle/整个目录里实际读到的文件,在 Core 的rust/fixtures/中都存在,并且字节一致。不一致的只有 feat(core)!: 删除 Java/Maven/JDT 特判与契约专属死命令,run/start 临时文件支持 base64 #23 中性化或删除的 3 个 debug fixture 和 6 个 Java 运行发现 fixture,桌面端都不读取。后续
shared/contracts、shared/fixtures;rust/fixtures,新增环境变量LITHE_CORE_FIXTURE_DIR;PINNED_CORE_REVISION升到本 PR。