| 145 | page.evaluate(() => globalThis.__handshakeOrder ?? []); |
| 146 | |
| 147 | const readConsoleStyle = (page: Page): Promise<{ primary: string; buttonBg: string }> => |
| 148 | page.evaluate(() => { |
| 149 | const button = document.querySelector("button"); |
| 150 | return { |
| 151 | primary: getComputedStyle(document.documentElement).getPropertyValue("--primary").trim(), |
| 152 | buttonBg: button ? getComputedStyle(button).backgroundColor : "", |
| 153 | }; |
| 154 | }); |
| 155 | |
| 156 | // The shell's compiled stylesheet declares `--mcp-apps-shell-stylesheet: 1` |
| 157 | // on `:root` as a provenance marker (see the shell's globals.css): the shell's |