Skip to main content

Module browser_attached

Module browser_attached 

Source
Expand description

Which files the person attached while a pane was handed to them, for the agent’s answer.

The person picks the file in the browser’s own dialog; the agent never sees the file or where it is. What it is told is the names of the files that are in the pane’s file inputs now and were not when the hand-off began (file_inputs, read by the host from the page’s own inputs: names only). When the hand-off ends with Done, the agent reads “the person attached: a.pdf” or “no file was attached”, or that nothing could be checked. A page that empties its input once it has taken the file, a drop zone and a closed shadow root are not seen.

Structs§

Watch 🔒
What the pane’s file inputs held when a hand-off began, to tell what the person added.

Constants§

BASELINE_WITHIN 🔒
And for the baseline, taken before the person’s card goes up: short, so the card is not held back (a read that does not come in time leaves the agent told that nothing could be checked).
READ_WITHIN 🔒
How long the host gets to read a pane’s inputs when Done was clicked: the agent is waiting on the answer.
SHOWN 🔒
The most names put in a sentence; the rest are counted.

Functions§

added 🔒
The names in now that before did not have, counting repeats (the same name twice is two files).
names_in 🔒
The file names in a pane’s file inputs, and how many of its frames could not be read.
sentence 🔒
The agent’s sentence from what the inputs held before and now.
shown 🔒
One name as the agent reads it: no control characters, masked as short text is, in quotes.