refactor(architecture): remove unused API and transport surfaces - #1583
Merged
limityan merged 1 commit intoJul 16, 2026
Merged
Conversation
Document interface admission and multi-product boundaries, then delete unconsumed API, transport, and event contracts. Keep current Tauri and peer delivery paths covered by focused boundary tests.
limityan
force-pushed
the
yanzhn/pr1-interface-transport-cleanup
branch
from
July 16, 2026 12:07
26f5041 to
b06509e
Compare
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.
目的
删除没有生产消费闭环、却容易被误认为已支持能力的 API 与 transport 接口,并把接口准入、多产品形态和 HarmonyOS PC 完整目标写清楚。此次以收缩为主,不新增产品能力或扩展运行时。
变更
public-api-rules.mjs当前只是插件与运行时公开接口的增量 allowlist,不是全仓pub符号扫描器;未登记接口仍须接受人工准入审查和最近的边界测试。api-layercrate。原 handler 仅返回合成 ID、空历史和固定健康状态,并绕过现有服务直接执行文件 I/O,不构成生产接口。event_name + payload,不代表版本化跨协议契约。扩展 Session 后续按真实协议消费链重新建立版本化清单。src/crates,避免 crate 迁移后错误复用旧二进制。接口与产品影响
TransportAdapter逐事件方法、无消费者 adapter/type、legacy flat projection 和公开 manifest。仓库内无生产调用方。范围外
验证
cargo check --workspacecargo test -p bitfun-events -p bitfun-transport --features bitfun-transport/tauri-adapter(12 个 events 测试通过)pnpm run lint:web(0 error;12 个既有 warning)pnpm run type-check:webpnpm --dir src/web-ui run test:run(256 files / 1580 tests)node --test scripts/check-core-boundaries.test.mjs(15/15)node scripts/check-core-boundaries.mjspnpm run check:repo-hygienegit diff --check本地
cargo test --workspace两次在 Desktop/CLI 链接阶段被执行环境中断,未出现失败用例,因此未列为通过项;上面的 workspace 编译、受影响 crate 测试和全量 Web 测试均已通过。Rust 验证使用 nightly,是因为本机 stable 的 Cargo/rustc 版本不匹配。AI-assisted;已完成两轮独立架构、产品与实现对抗性复审,第二轮发现的两处文档可执行性问题已修复,最终无 P0-P3。Testing level: fully tested for the changed paths.