Skip to main content

Module detect

Module detect 

Source
Expand description

Finding installed agent CLIs (design §6.3.1).

okbot usually runs on a VPS where CLIs live in user-level directories that a service’s PATH misses, so detection also looks in the usual install locations and records absolute paths.

Structs§

DetectedCli
One installed CLI.
SearchPaths
Where to look.

Enums§

Login
Whether a CLI is logged in.

Functions§

detect
Detects every known CLI, ready ones first, otherwise in PROVIDERS order.
detect_one
Detects one CLI.
detect_one_with_env
Detects one CLI, checking its login with extra environment (a bot’s separate agent home).
detect_path
Checks exactly this executable, including custom names and paths outside PATH.