Agent Harness
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
const { chromium } = require("playwright-core");
(async () => {
const b = await chromium.launch({ channel: "chrome" });
const p = await b.newPage({ viewport: { width: 1280, height: 720 } });
await p.goto("http://localhost:4173/arena/library.html", { waitUntil: "networkidle" });
await p.waitForTimeout(2500);
const grab = () => p.evaluate(() => { const c = document.querySelector(".tile canvas"); return c.toDataURL(); });
const still = [await grab(), (await p.waitForTimeout(400), await grab())];
await p.hover(".tile");
const a = await grab(); await p.waitForTimeout(280); const bb = await grab();
console.log("poster identical over 400ms:", still[0] === still[1]);
console.log("hovered animates over 280ms:", a !== bb);
await p.mouse.move(0, 700); await p.waitForTimeout(300);
const c1 = await grab(); await p.waitForTimeout(400); const c2 = await grab();
console.log("after leaving, back to a still poster:", c1 === c2);
await b.close();
})();