feat: add task-bound real browser checks and verified page delivery
This commit is contained in:
@@ -40,3 +40,9 @@ export async function downloadEngineReport(sessionId: string, jobId: string) {
|
||||
if (!response.ok) { const value = await response.json().catch(() => ({})); throw new Error(value.error || '引擎检查记录下载失败。'); }
|
||||
downloadBlob(await response.blob(), 'agent-workbench-engine-' + jobId + '.json');
|
||||
}
|
||||
|
||||
export async function browserImageBlob(sessionId: string, jobId: string, artifactId: string): Promise<Blob> {
|
||||
const response = await fetch('/api/sessions/' + sessionId + '/browser-jobs/' + jobId + '/images/' + artifactId, { headers: { 'X-Workbench-Token': accessToken } });
|
||||
if (!response.ok) { const value = await response.json().catch(() => ({})); throw new Error(value.error || '页面截图读取失败。'); }
|
||||
return response.blob();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user