fix(ai): 清理 aislop 扫描告警

- 拆分 SSE reducer 到 sseReducer.ts,provider.ts 降至 220 行
- artifact 合并工具抽到 uiArtifacts.ts,去除双重类型断言
- 业务上下文注册表改用 field/relation/entity 构建器收敛重复
- aislop 分数 71 → 81(Healthy),AI Slop 0 告警
This commit is contained in:
2026-08-06 15:35:12 +08:00
parent 24e0ecbdaf
commit c72ff2cb8a
7 changed files with 435 additions and 427 deletions

View File

@@ -9,7 +9,7 @@ import type {
AiReviewSchema,
AiToolRun,
} from './types';
import { mergeArtifactIntoMessage } from './provider';
import { mergeArtifactIntoMessage } from './uiArtifacts';
function mapStatus(record: AiMessageRecord): AiChatMessageStatus {
if (record.status === 'pending') return 'loading';