Constants§
- DAEMON_
TOKEN_ ENV - DEFAULT_
PAIRING_ TTL_ DAYS - Default lifetime for a freshly minted pairing token. Tokens expire so a
leaked or forgotten token can’t be replayed indefinitely;
--ttl-days 0opts out for long-lived automation.
Functions§
- clamp_
pairing_ ttl_ days - Clamp a client-supplied pairing TTL so a daemon socket caller can’t mint a
never-expiring token by sending
ttl_days <= 0: non-positive input becomes the default TTL, positive values pass through. The localmermaid pairCLI deliberately does not call this — its--ttl-days 0“never expires” opt-out is an owner-only choice with no privilege boundary (#65). - daemon_
socket_ path - generate_
pairing_ token - hash_
pairing_ token - pairing_
expiry_ from_ now - RFC3339 expiry
ttl_daysfrom now, orNonewhenttl_days <= 0(never expires). Shared by the daemonpaircommand and the local CLI so both honor the same TTL semantics. - request_
daemon_ json - request_
daemon_ text - snapshot_
field_ from_ daemon