Repository navigation
bdi 0.50.0
Minor release, 0.49.0 → 0.50.0.
Highlights
A bead's page in bdi web draws the A2UI surface an agent stored on the bead. Where [a2ui] surface_key in your config names the key, the page draws the surface in its own colours and type under the description, and leaves out the part of the description the surface replaces. On a writable page, a Button in the surface answers a bead that needs a human, as a response or as a dismissal, and elsewhere the surface's inputs and answering Buttons are greyed. Where the page cannot draw a surface, it shows the whole description under a line saying why. A browser that runs no script shows the whole description too.
You can answer a bead from its A2UI surface in the terminal. On an open bead labelled human, Tab moves through the surface's Buttons and inputs in the bead window, and Enter or a click presses a Button, ticks a box or opens an entry for a field. A press sends the same answer bdi web sends for it. A Button that opens a web link hands it to xdg-open, or to open on macOS. On any other bead, the inputs are greyed.
The bead window draws every A2UI component that bdi web draws. It now draws a Slider, Tabs, a Modal, a Video and an AudioPlayer, so a surface that uses one no longer falls back to the description. Cards and columns that the page sets side by side sit side by side in the window too. Where the window is too narrow to give each part twelve columns, the parts stack one under another.
The bead window draws the picture an A2UI Image names, where your terminal speaks kitty's graphics protocol, with the image's whole description and its link under it. Elsewhere it shows the description and the link alone. bdi fetches the picture from the surface's URL when you open the window on the bead, the way a browser fetches it for bdi web's page.
Both viewers say why a surface will not take what you gave it. The message of a failing check shows in red under the input it checks. A Button that a check disables shows the first failing message under it.
A surface that changes while you fill it in keeps what you typed. In both viewers, each value you gave carries into the new surface wherever it asks for the same thing, and the focus stays on the same control. Where the new surface has nowhere to put something you gave, the viewer says so.
A bead's window in the terminal names the writes the bead takes. The foot lists each one with its key, such as R respond and X dismiss on a bead waiting on your answer. A key for a write the bead cannot take, such as o on an open bead, does nothing.
A bead's window in the terminal lists the bead's comments. They come last, as bd show prints them, each with who wrote it and when, so a closed question shows the answer it was given.
A bead's page in bdi web says when a write from it lands. After a comment, a close or any other write the page offers, the top of the bead's panel says what was made, in the words the terminal's foot uses, such as arkham · ark-7 · commented on. A write that bd refuses leaves you on the bead's page, with bd's reason at the top and the words you typed still in the write's entry.
An A2UI Modal on bdi web works from the keyboard. You can open one with Enter whatever its trigger is. While it is open, Tab stays inside it, and closing it returns the focus to where you were.
Upgrading
The bead window now falls back to the description for a few surfaces it drew before. A surface falls back where it expands into more than ten thousand components, where an input could lengthen a list the surface repeats, where an Icon names an icon the catalog does not list, or where a component's id is empty. bdi web already refused each of these, and now both viewers refuse the same surfaces for the same reason.
Maintenance
A fix for bdi and bdi watch leaving a report waiting at their open-files limit, Sliders and Dividers drawn whole on bdi web, dependency bumps and tests.