feat: verify owned DeepSeek engine connections and responsive task execution
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user