mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 01:10:23 +08:00
refactor: 拆分 system.rs 大文件,将 email_templates/proxy_errors/system_config 下沉到 shared 层
- 删除 1666 行的 admin/system/shared/system.rs,按职责拆分到独立模块 - 新增 handlers/shared/email_templates.rs 和 system_config_values.rs 存放跨层共用的模板/配置工具函数 - 新增 admin/system/shared/email_templates.rs 存放 admin 专用的模板操作逻辑 - 新增 admin/shared/proxy_errors.rs 存放 build_proxy_error_response - 清理 public/system_modules_helpers 中不属于 public 层的导出 - 新增架构测试守护模块归属边界
This commit is contained in:
@@ -590,6 +590,9 @@
|
||||
- [x] 2026-04-07:M3 第十九轮已将 `handlers/admin/system/core/model_routes.rs` 的 model-owned catalog/external-cache 路由整体迁入 `handlers/admin/model/catalog_routes.rs`;旧 `system/core/model_routes.rs` 现退化为 thin wrapper,`system/core` 不再保留 model catalog data-unavailable helper。架构护栏同步要求该 route seam 归 `model` 子域拥有
|
||||
- [x] 2026-04-07:M3 第二十轮已将 `handlers/admin/system/core/{management_tokens_routes,modules_routes}.rs` 的 system-owned route owner 迁入 `handlers/admin/system/{management_tokens,modules}.rs`;旧 `system/core/*` 入口现退化为 thin wrapper,`handlers/admin/system/mod.rs` 直接暴露 `management_tokens/modules` seam,不再把这两条 route owner 藏在 `core` 内部
|
||||
- [x] 2026-04-07:M3 第二十一轮已将 admin module DTO / path parser / runtime / validation / status payload owner 从 `handlers/public/system_modules_helpers/modules.rs` 下沉到 `handlers/admin/system/shared/modules.rs`;`handlers/public/system_modules_helpers.rs` 与 `handlers/public/mod.rs` 不再 re-export 这批 admin helper,public 侧仅保留 public auth module 状态能力。架构护栏同步要求 admin module helper 不得回流到 `handlers/public/system_modules_helpers*`
|
||||
- [x] 2026-04-07:M3 第二十二轮已将 `handlers/admin/system/core/system_routes.rs` 对 system-owned settings / configs / export helper 的依赖切到 `handlers/admin/system/shared/{settings,configs}.rs`;`handlers/public/system_modules_helpers.rs` 与 `handlers/public/mod.rs` 不再对外暴露 `current_aether_version`、system settings/config CRUD、config export/users export 或 `serialize_admin_system_users_export_wallet`
|
||||
- [x] 2026-04-07:M3 第二十三轮已将 `system_config_*`、`module_available_from_env` 与 admin email template 底层读取/渲染原语上提到 `handlers/shared/{system_config_values,email_templates}.rs`,并将 admin 邮件模板 route helper 明确下沉到 `handlers/admin/system/shared/email_templates.rs`;`handlers/public/system_modules_helpers/system.rs` 现退化为 shared helper re-export,不再持有 ownership。架构护栏同步要求 shared owner 固定在 `handlers/shared/*`,且 `handlers/admin/system/shared/system.rs` 被 `email_templates.rs` 取代
|
||||
- [x] 2026-04-07:M3 第二十四轮已将 `build_proxy_error_response` 从 `handlers/admin/auth/oauth_config.rs` 上提到 `handlers/admin/shared/proxy_errors.rs`;`system/core/system_routes.rs`、`system/adaptive/routes.rs`、`features/video_tasks/routes.rs`、`provider/strategy/shared.rs` 与 `auth/oauth_routes.rs` 均改为直接依赖 `handlers/admin/shared`。架构护栏同步禁止该错误 builder 回流到 `auth` 或被 `provider/system` 根入口继续借用
|
||||
- [x] 2026-04-06:M4 第一轮已完成 `ai_pipeline/planner/gateway_facade.rs` 落地,统一承接 auth snapshot、provider transport、scheduler candidate 选择、request-candidate 持久化与 unused-candidate 标记
|
||||
- [x] 2026-04-06:M4 第一轮通过并行子代理完成 `planner/{candidate_affinity,standard/family/**,passthrough/provider/family/**,specialized/{files,video},standard/openai/{chat,cli}/**}` 对 `gateway_facade` 的首批切换
|
||||
- [x] 2026-04-06:M4 第二轮已补齐 `planner/{decision/control_plan,standard/{normalize,matrix},passthrough/provider/request}` 的 facade 类型边界;最终验证通过 `cargo check -p aether-gateway` 与 `cargo test -p aether-gateway --lib`,结果 `1228 passed; 0 failed`
|
||||
|
||||
Reference in New Issue
Block a user