Connect canvas editing to scoped external agent tasks
creative workspace review checks / verify (pull_request) Has been cancelled

This commit is contained in:
2026-10-30 17:50:26 +08:00
parent 7f7fc28e57
commit b1e6083996
15 changed files with 72 additions and 16 deletions
@@ -46,7 +46,7 @@ const fs=require('node:fs/promises');
await page.waitForFunction(()=>!!JSON.parse(localStorage.getItem('studio.infinite-canvas.v1')).cards.find(n=>n.id==='reference').image);
await node('reference').getByRole('button',{name:'图片高清 ↗',exact:true}).click();
const upscale=(await snapshot()).cards.find(n=>n.operation==='upscale');assert.ok(upscale);
const download=page.waitForEvent('download');await composer.getByRole('button',{name:'导出 Agent 任务',exact:true}).click();
const download=page.waitForEvent('download');await composer.getByRole('button',{name:'导出任务',exact:true}).click();
const task=JSON.parse(await fs.readFile(await (await download).path(),'utf8'));
assert.equal(task.target.id,upscale.id);assert.equal(task.references[0].id,'reference');assert.ok(task.references[0].image);