pub(crate) async fn check_target(
state: &AppState,
block_id: &str,
grant: &Grant,
) -> Result<Value, Refusal>Expand description
Looks at the page, at the frame that holds the terminal, and at the last line the terminal shows, and says whether the grant lets the agent type there now. Run before the first key and again before every later line: a page can navigate, and a command can open a prompt, between two keys.