confirm

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Action

func Action(reason string) string

Action is the allow-line verb. "Veil wants to fill a card" → "fill a card".

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 TouchID

func TouchID(reason string) error

func TouchIDHelper

func TouchIDHelper(reason string) error

func TouchIDServer

func TouchIDServer(reason string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL