Skip to content

Your team of AI agents, on your Mac, Windows or Linux. Agents that talk in channels, write code, review each other and use your tools, on the Claude Code, Codex, OpenCode or Pi you already have. Anything that touches the real world waits for your yes.

1.2 KB
Raw Blame
// Frames of the opening (splash) of the introduction, on a new install.
import { _electron as electron } from 'playwright'
import { mkdirSync, mkdtempSync } from 'node:fs'
import { tmpdir } from 'node:os'
import { join } from 'node:path'
const out = process.argv[2] ?? 'screens'
mkdirSync(out, { recursive: true })
const data = mkdtempSync(join(tmpdir(), 'tucano-'))
const app = await electron.launch({ args: ['.'], recordVideo: { dir: out, size: { width: 1280, height: 800 } }, env: { ...process.env, TUCANO_DATA: data, TUCANO_FAKE_ENGINES: '1', TUCANO_SEED: '0' } })
const win = await app.firstWindow()
await win.setViewportSize({ width: 1280, height: 800 })
await win.waitForSelector('.splash')
const start = Date.now()
console.log('áudio sem clique:', await win.evaluate(() => new AudioContext().state))
for (const ms of [300, 700, 1600, 2100, 3600, 4600, 5100, 5800, 6600, 7500, 8400, 9200, 9500, 10300, 11200, 12600]) {
  await win.waitForTimeout(Math.max(0, ms - (Date.now() - start)))
  await win.screenshot({ path: `${out}/f-${String(ms).padStart(4, '0')}.png` })
}
console.log('depois:', await win.locator('.onb').count() ? 'boas-vindas' : 'ainda na abertura')
await app.close()