feat(server): erp-ai 模块集成 — Config/State/路由注册

- 新增 AiConfig 到 AppConfig
- 新增 FromRef<AppState> for AiState
- 注册 AiModule 到 ModuleRegistry
- 合并 AI protected routes
- 修复 sync_module_permissions 只同步 health.% 的 bug

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
iven
2026-04-25 14:01:07 +08:00
parent fada33101c
commit 2e555ca72a
5 changed files with 64 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ erp-workflow.workspace = true
erp-message.workspace = true
erp-plugin.workspace = true
erp-health.workspace = true
erp-ai.workspace = true
anyhow.workspace = true
uuid.workspace = true
chrono.workspace = true