fix: restore topology view and mapping progress state

This commit is contained in:
ji ruo committed 2026-10-28 21:10:43 +08:00
1 parent 495ab57ba7
commit 14ebf44362
4 files changed
+59 -3

No files matched your search

+2
View File
@@ -453,6 +453,8 @@ export const api = {
taskCoverageGraph: (id: string) => get<CoverageGraphData>(`/tasks/${id}/coverage-graph`),
startAssetMapping: (id: string) =>
post<{ status: string; agent_key: string; conversation_id: number }>(`/tasks/${id}/asset-mapping`, {}),
assetMappingStatus: (id: string) =>
get<{ running: boolean; conversation_id?: number }>(`/tasks/${id}/asset-mapping/status`),
// 全局 llm_usage 聚合(仪表盘新版 token 视图):按 profile 总量 + 按天分桶。
usageStats: (days = 365) => get<UsageStats>(`/tokens/usage?days=${days}`),
// ---- 目标管理(总览)----