feat(file-check): 新增文件检核相关 API 和工具,替换 RoHS 检核功能
This commit is contained in:
1 parent
fa0cdee8df
commit
24310b63b3
35 files changed
+3066
-659
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
|
||||
* 对话页:Agent tool_run_progress 能力轮询(RoHS 等异步任务进度卡片)。
|
||||
* 对话页:Agent tool_run_progress 能力轮询(文件检核等异步任务进度卡片)。
|
||||
|
||||
* 依赖:useToolRunProgress、toolRunProgressConfig、ChatMessage。
|
||||
|
||||
@@ -24,22 +24,14 @@ import {
|
||||
|
||||
assistantMessageHasError,
|
||||
|
||||
buildLogProgressUrl,
|
||||
|
||||
buildFileCheckDetailUrl,
|
||||
buildFileCheckLogProgressUrl,
|
||||
collectAssistantProgressTargets,
|
||||
|
||||
getChatLogIdFromMessage,
|
||||
|
||||
getRunIdFromMessage,
|
||||
|
||||
isRunningToolRunStatus,
|
||||
|
||||
resolveLogProgressBaseUrl,
|
||||
|
||||
resolveScheduleTaskId,
|
||||
|
||||
resolveMessageAnchorKey,
|
||||
|
||||
} from '../utils/toolRunProgressConfig';
|
||||
|
||||
|
||||
@@ -132,28 +124,12 @@ export function useChatPageToolRun(ctx: ChatPageToolRunContext) {
|
||||
|
||||
|
||||
|
||||
const resolveDetailUrl = (runId: number) => {
|
||||
|
||||
const template = String(rawToolRunConfig.value?.detail_url_template || '').trim();
|
||||
|
||||
if (!template) return '';
|
||||
|
||||
return template.replace('{run_id}', encodeURIComponent(String(runId)));
|
||||
|
||||
};
|
||||
|
||||
|
||||
const resolveDetailUrl = (runId: number) => buildFileCheckDetailUrl(runId);
|
||||
|
||||
const resolveForLogUrl = (chatLogId: number) => {
|
||||
|
||||
const taskId = boundScheduleTaskId.value;
|
||||
|
||||
if (!taskId) return '';
|
||||
|
||||
const base = resolveLogProgressBaseUrl(rawToolRunConfig.value || {});
|
||||
|
||||
return buildLogProgressUrl(base, taskId, chatLogId);
|
||||
|
||||
return buildFileCheckLogProgressUrl(taskId, chatLogId);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user