AgentEvalTool/frontend/web/src/api
sinohqb eca7ccebe2 refactor(api): api.ts 拆分为 10 个域模块(Phase 4.22)
909 行的单文件 api.ts 按域拆为 10 个模块 + 共享 client;barrel
保持 import from '../api' 不变,调用点零改动。

- api/client.ts:axios 实例 + 拦截器 + authToken + setOnUnauthorized
  (唯一住处)。
- 10 个域模块:auth / targets / scenarios / modelConfigs / runs /
  reports / stats / campaigns / intelligentEvals / files,每个
  自包含类型声明与 API 方法。
- api/index.ts:barrel 再导出,调用点 import 路径全部不变。
- 原 api.ts 中的 Blob 导出仪式已在 Commit 4 下沉至
  utils/download.ts,本 commit 仅做拆分与搬运。
2026-08-24 05:53:45 +08:00
..
auth.ts refactor(api): api.ts 拆分为 10 个域模块(Phase 4.22) 2026-08-24 05:53:45 +08:00
campaigns.ts refactor(api): api.ts 拆分为 10 个域模块(Phase 4.22) 2026-08-24 05:53:45 +08:00
client.ts refactor(api): api.ts 拆分为 10 个域模块(Phase 4.22) 2026-08-24 05:53:45 +08:00
files.ts refactor(api): api.ts 拆分为 10 个域模块(Phase 4.22) 2026-08-24 05:53:45 +08:00
index.ts refactor(api): api.ts 拆分为 10 个域模块(Phase 4.22) 2026-08-24 05:53:45 +08:00
intelligentEvals.ts refactor(api): api.ts 拆分为 10 个域模块(Phase 4.22) 2026-08-24 05:53:45 +08:00
modelConfigs.ts refactor(api): api.ts 拆分为 10 个域模块(Phase 4.22) 2026-08-24 05:53:45 +08:00
reports.ts refactor(api): api.ts 拆分为 10 个域模块(Phase 4.22) 2026-08-24 05:53:45 +08:00
runs.ts refactor(api): api.ts 拆分为 10 个域模块(Phase 4.22) 2026-08-24 05:53:45 +08:00
scenarios.ts refactor(api): api.ts 拆分为 10 个域模块(Phase 4.22) 2026-08-24 05:53:45 +08:00
stats.ts refactor(api): api.ts 拆分为 10 个域模块(Phase 4.22) 2026-08-24 05:53:45 +08:00
targets.ts refactor(api): api.ts 拆分为 10 个域模块(Phase 4.22) 2026-08-24 05:53:45 +08:00