GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — claude-code-source-code/src/utils/computerUse/swiftLoader.ts at main · vipygt/claude-code-source-code Expand file tree/ Copy pathswiftLoader.tsMore file actions 23 lines (20 loc) · 925 Bytes / Copy pathswiftLoader.tsFile metadata and controls23 lines (20 loc) · 925 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 import type { ComputerUseAPI } from '@ant/computer-use-swift' let cached: ComputerUseAPI | undefined /** * Package's js/index.js reads COMPUTER_USE_SWIFT_NODE_PATH (baked by * build-with-plugins.ts on darwin targets, unset otherwise — falls through to * the node_modules prebuilds/ path). We cache the loaded native module. * * The four @MainActor methods (captureExcluding, captureRegion, * apps.listInstalled, resolvePrepareCapture) dispatch to DispatchQueue.main * and will hang under libuv unless CFRunLoop is pumped — call sites wrap * these in drainRunLoop(). */ export function requireComputerUseSwift(): ComputerUseAPI { if (process.platform !== 'darwin') { throw new Error('@ant/computer-use-swift is macOS-only') } // eslint-disable-next-line @typescript-eslint/no-require-imports return (cached ??= require('@ant/computer-use-swift') as ComputerUseAPI) } export type { ComputerUseAPI } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |