MCPcopy Create free account
hub / github.com/HELPMEEADICE/doge-code / requireComputerUseSwift

Function requireComputerUseSwift

src/utils/computerUse/swiftLoader.ts:9–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 * Non-darwin platforms should use src/utils/computerUse/platforms/ instead.
8 */
9export function requireComputerUseSwift(): ComputerUseAPI {
10 if (process.platform !== 'darwin') {
11 throw new Error('@ant/computer-use-swift is macOS-only. Use platforms/ for cross-platform.')
12 }
13 if (cached) return cached
14 // eslint-disable-next-line @typescript-eslint/no-require-imports
15 const mod = require('@ant/computer-use-swift')
16 if (mod.ComputerUseAPI && typeof mod.ComputerUseAPI === 'function') {
17 cached = new mod.ComputerUseAPI() as ComputerUseAPI
18 } else {
19 cached = mod as ComputerUseAPI
20 }
21 return cached
22}
23
24export type { ComputerUseAPI }

Callers 14

retainFunction · 0.85
createCliExecutorFunction · 0.85
unhideComputerUseAppsFunction · 0.85
registerEscHotkeyFunction · 0.85
unregisterEscHotkeyFunction · 0.85
notifyExpectedEscapeFunction · 0.85
captureScreenFunction · 0.85
captureRegionFunction · 0.85
listAllFunction · 0.85
getSizeFunction · 0.85
listRunningFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected