()
| 20 | * calls these inside drainRunLoop(). |
| 21 | */ |
| 22 | export function requireComputerUseInput(): ComputerUseInputAPI { |
| 23 | if (cached) return cached |
| 24 | // eslint-disable-next-line @typescript-eslint/no-require-imports |
| 25 | const input = require('@ant/computer-use-input') as ComputerUseInput |
| 26 | if (!input.isSupported) { |
| 27 | throw new Error('@ant/computer-use-input is not supported on this platform') |
| 28 | } |
| 29 | return (cached = input) |
| 30 | } |
| 31 |
no outgoing calls
no test coverage detected