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

Function requireComputerUseSwift

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

Source from the content-addressed store, hash-verified

24 * these in drainRunLoop().
25 */
26export function requireComputerUseSwift(): ComputerUseAPI {
27 if (process.platform !== 'darwin') {
28 throw new Error('@ant/computer-use-swift is macOS-only')
29 }
30 // eslint-disable-next-line @typescript-eslint/no-require-imports
31 return (cached ??=
32 unwrapDefaultExport(
33 require('@ant/computer-use-swift') as ComputerUseAPI | {
34 default: ComputerUseAPI
35 },
36 ))
37}
38
39export type { ComputerUseAPI }

Callers 7

retainFunction · 0.85
createCliExecutorFunction · 0.85
unhideComputerUseAppsFunction · 0.85
registerEscHotkeyFunction · 0.85
unregisterEscHotkeyFunction · 0.85
notifyExpectedEscapeFunction · 0.85

Calls 1

unwrapDefaultExportFunction · 0.70

Tested by

no test coverage detected