MCPcopy Create free account
hub / github.com/oboard/claude-code-rev / requireComputerUseInput

Function requireComputerUseInput

src/utils/computerUse/inputLoader.ts:33–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 * calls these inside drainRunLoop().
32 */
33export function requireComputerUseInput(): ComputerUseInputAPI {
34 if (cached) return cached
35 // eslint-disable-next-line @typescript-eslint/no-require-imports
36 const input = unwrapDefaultExport(
37 require('@ant/computer-use-input') as ComputerUseInput | {
38 default: ComputerUseInput
39 },
40 )
41 if (!input.isSupported) {
42 throw new Error('@ant/computer-use-input is not supported on this platform')
43 }
44 return (cached = input)
45}

Callers 11

keyFunction · 0.85
holdKeyFunction · 0.85
typeFunction · 0.85
moveMouseFunction · 0.85
clickFunction · 0.85
mouseDownFunction · 0.85
mouseUpFunction · 0.85
getCursorPositionFunction · 0.85
dragFunction · 0.85
scrollFunction · 0.85
getFrontmostAppFunction · 0.85

Calls 1

unwrapDefaultExportFunction · 0.70

Tested by

no test coverage detected