Files
cc-haha/src/utils/computerUse/escHotkey.ts
T
程序员阿江(Relakkes) e8f42840a2 feat: enable Computer Use with Python bridge replacing private native modules
Bypass all three gating layers (compile-time feature flag, subscription
check, GrowthBook remote config) and replace Anthropic's private native
modules (@ant/computer-use-swift, @ant/computer-use-input) with a Python
bridge using pyautogui + mss + pyobjc. Works on any macOS with any
Anthropic-protocol compatible model.
2026-04-03 18:33:31 +08:00

13 lines
398 B
TypeScript

/**
* No-op replacement. The Python bridge does not support global Escape hotkey
* via CGEventTap. The original implementation required native Swift module
* for CGEventTap-based system-wide key interception.
*/
export function registerEscHotkey(_onEscape: () => void): boolean {
return false
}
export function unregisterEscHotkey(): void {}
export function notifyExpectedEscape(): void {}