Skip to content

refactor(core): layer crates and close product assembly facade#1076

Merged
limityan merged 1 commit into
GCWing:mainfrom
limityan:yanzhn/core-decomposition-m5
Jun 5, 2026
Merged

refactor(core): layer crates and close product assembly facade#1076
limityan merged 1 commit into
GCWing:mainfrom
limityan:yanzhn/core-decomposition-m5

Conversation

@limityan
Copy link
Copy Markdown
Collaborator

@limityan limityan commented Jun 5, 2026

变更内容

  • src/crates 收敛为分层目录:surfacesfacadeintegrationsservicesproductexecutioncontracts
  • 将原 src/crates/runtime 物理层重命名为 src/crates/execution,保留现有 crate/package 名称与公开 API 语义。
  • 将 ACP 从低层 integration 路径移动到 src/crates/surfaces/acp,明确其作为产品协议入口的归属。
  • 同步 Cargo 路径、boundary check 规则、boundary self-test fixture、DeepReview 路径分类与跨 crate 风险统计,避免新分层下把 layer 当作 crate。
  • 精简并同步根目录与分层 AGENTS.md、README、架构与计划文档中的层级名称、依赖方向和路径说明。

风险与兼容性

  • 本次不改变产品功能逻辑、feature 名称、crate/package 名称或 bitfun://runtime/... 等逻辑 URI。
  • Desktop / CLI / ACP 仍显式选择完整 product runtime 能力集合;no-default core 与 product-full core 均已验证。
  • src/crates/integrations 保留为具体 provider/transport/platform adapter 的物理目录;产品协议入口移动到 surfaces

验证

  • cargo metadata --no-deps --format-version 1
  • node --test scripts/check-core-boundaries.test.mjs
  • node scripts/check-core-boundaries.mjs
  • pnpm run check:repo-hygiene
  • pnpm --dir src/web-ui run test:run src/shared/services/reviewTargetClassifier.test.ts src/shared/services/review-team/pathMetadata.test.ts src/shared/services/review-team/risk.test.ts
  • cargo check -p bitfun-core --no-default-features
  • cargo check -p bitfun-core --features product-full
  • cargo check -p bitfun-acp
  • cargo test -p bitfun-acp
  • cargo check -p bitfun-cli
  • cargo check -p bitfun-desktop
  • git diff --check

@limityan limityan force-pushed the yanzhn/core-decomposition-m5 branch 7 times, most recently from b154a8a to 1a178e8 Compare June 5, 2026 09:50
@limityan limityan force-pushed the yanzhn/core-decomposition-m5 branch from 1a178e8 to a979d25 Compare June 5, 2026 10:01
@limityan limityan merged commit ea5321d into GCWing:main Jun 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant