@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
17 lines (16 loc) • 1.03 kB
TypeScript
/**
* The native helpers, compiled once per Hook version with swiftc, which any
* Mac has. simtap (native/simtap.swift) finds the Simulator window through the
* Accessibility API and posts touches and keys with CGEvent. AppleScript would
* need Automation consent, which a launchd agent can never be prompted for; the
* helper needs one Accessibility grant. simcast (native/simcast.swift) streams
* a simulator's framebuffer for simulator-stream.ts and needs no grant.
* wincap (native/wincap.swift) lists Mac windows and captures one picture,
* wininput (native/wininput.swift) taps, types and keys into one, and winbadge
* (native/winbadge.swift) is the visible "your phone is controlling this Mac"
* indicator. Their commands and exit codes are in docs/phren-hook.md ("Mac
* windows on a Mac").
*/
export type NativeHelper = "simtap" | "simcast" | "wincap" | "wininput" | "winbadge";
/** A helper, hashed again right before it runs. */
export declare function verifiedHelper(name?: NativeHelper): Promise<string>;