feat: 恢复 mac 版本的 Computer Use

This commit is contained in:
claude-code-best
2026-04-04 11:36:43 +08:00
parent 419d1e8bcc
commit ad1f90a00e
6 changed files with 332 additions and 19 deletions

View File

@@ -80,6 +80,12 @@ export class ComputerUseAPI {
async captureRegion() { throw new Error('computer-use-swift: no backend for this platform') },
}
hotkey = (backend as any)?.hotkey ?? {
registerEscape(_cb: () => void): boolean { return false },
unregister() {},
notifyExpectedEscape() {},
}
async resolvePrepareCapture(
allowedBundleIds: string[],
_surrogateHost: string,