(text: string, opts: { viaClipboard: boolean })
| 624 | }, |
| 625 | |
| 626 | async type(text: string, opts: { viaClipboard: boolean }): Promise<void> { |
| 627 | // Windows/Linux: route through platform which handles HWND binding |
| 628 | if (!isDarwin && platform) { |
| 629 | await platform.input.typeText(text) |
| 630 | return |
| 631 | } |
| 632 | const input = getInput() |
| 633 | if (opts.viaClipboard) { |
| 634 | await drainRunLoop(() => typeViaClipboard(input, text)) |
| 635 | return |
| 636 | } |
| 637 | await input.typeText(text) |
| 638 | }, |
| 639 | |
| 640 | readClipboard: readClipboardViaPbpaste, |
| 641 |
nothing calls this directly
no test coverage detected