Documentation
¶
Overview ¶
Package confirm is Touch ID at fill time. The native host prompts before a secret goes to the extension. Host.Confirm nil fails closed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CLIAccess ¶
func CLIAccess() error
CLIAccess is the consent sheet: Allow {app} to run `veil <verb>`. Fill uses TouchID. Agents, tests, and VEIL_FILL_TOUCHID=0 skip.
func Enabled ¶
func Enabled() bool
Enabled is Mac + VEIL_FILL_TOUCHID not "0". Linux/Windows wait for 35–36.
func PrewarmServer ¶
func PrewarmServer()
PrewarmServer spawns the child in the background so the first real prompt is already warm. Called once at bridge boot.
func ServeStdio ¶
func ServeStdio()
ServeStdio is the --confirm-server child loop: one JSON line in {"reason":...} → a sheet + LA eval → one JSON line out {"ok":bool}. It must run on the main thread: veil_access drives AppKit and pumps the runloop itself while an eval is in flight; between requests the main thread just blocks on stdin. Stdin EOF (daemon exit) ends the process.
func TouchIDHelper ¶
func TouchIDServer ¶
TouchIDServer keeps one --confirm-server child warm so a prompt costs a pipe round trip + the LA eval (~1.5s + the human) instead of a full process boot — measured 6-7s of spawn/AppKit/LS per prompt otherwise. Requests serialize through the mutex; a wedged or dead child is killed and the next call respawns. Same 75s deadline as TouchIDHelper.
Types ¶
This section is empty.