feat: verify owned DeepSeek engine connections and responsive task execution

This commit is contained in:
Agent Workbench Dev
2026-10-30 07:25:09 +08:00
parent 1d8abaceab
commit 91981c1400
69 changed files with 4068 additions and 50 deletions
+6
View File
@@ -34,3 +34,9 @@ export function downloadBlob(blob: Blob, name: string) {
const link = document.createElement('a'); link.href = url; link.download = name; link.click();
setTimeout(() => URL.revokeObjectURL(url), 1000);
}
export async function downloadEngineReport(sessionId: string, jobId: string) {
const response = await fetch('/api/sessions/' + sessionId + '/engines/jobs/' + jobId + '/download', { headers: { 'X-Workbench-Token': accessToken } });
if (!response.ok) { const value = await response.json().catch(() => ({})); throw new Error(value.error || '引擎检查记录下载失败。'); }
downloadBlob(await response.blob(), 'agent-workbench-engine-' + jobId + '.json');
}