Skip to main content

Module session_signals

Module session_signals 

Source
Expand description

Short session signals the node reads off its own PTY screens: a provider CLI hit a usage/rate limit, needs a login, or is ready again. Only state changes are sent to core (task.session_signal over the node-call channel); screens never leave the node for this. Detection is heuristic text matching on the rendered screen and is kept per provider-agnostic phrase lists so a CLI wording change degrades to “no signal”.

Structs§

Detector
Per-session change detector with a scan budget (at most one scan per every).
Outgoing
One outgoing signal.

Enums§

Signal

Functions§

classify
Classify one screen. Lines are scanned bottom-up: the newest state wins.
feed
Called from the frame publisher; cheap when no sink is installed.
set_sink
Install the sink (once, at startup). Without a sink, screens are not scanned.