/** * Dev tool: renders every 증강 icon (big and small, light and dark background) to a PNG contact sheet. * cd apps/web && bun scripts/aug-icon-sheet.tsx [out.png] [ids,comma,separated] */ import { renderToStaticMarkup } from 'react-dom/server'; import { chromium } from 'playwright-core'; import { AUGS, AUG_IDS, type AugId } from '@bg/games/yut/augments'; import { AugIcon, GLYPHS } from '../src/games/yut/aug-icons'; const out = process.argv[2] ?? `${process.env.HOME}/.tmp/aug-icons.png`; const only = process.argv[3]?.split(',').filter(Boolean) as AugId[] | undefined; const ids = only?.length ? only : [...AUG_IDS]; const cell = (id: AugId) => (