| 150 | page.evaluate(() => globalThis.__handshakeOrder ?? []); |
| 151 | |
| 152 | const readConsoleStyle = async (page: Page): Promise<{ primary: string; buttonBg: string }> => { |
| 153 | const button = page.getByRole("button", { name: "Rename", exact: true }); |
| 154 | await button.waitFor(); |
| 155 | return button.evaluate((element) => ({ |
| 156 | primary: getComputedStyle(document.documentElement).getPropertyValue("--primary").trim(), |
| 157 | buttonBg: getComputedStyle(element).backgroundColor, |
| 158 | })); |
| 159 | }; |
| 160 | |
| 161 | // The shell's compiled stylesheet declares `--mcp-apps-shell-stylesheet: 1` |
| 162 | // on `:root` as a provenance marker (see the shell's globals.css): the shell's |