Repository navigation
v0.71.0
Intelligent UI reads what an agent meant, gains eleven components and a new look, and shows the change of a file from git in a block. Contains breaking changes (see below).
⚠️ Breaking changes
- Intelligent UI catalog text now says what each prop takes.
uiPropList,uiCatalogText,uiCompactCatalog,uiGroupReferenceand thepropsofuiGroupDescriptionprintvalue: numberandtone?: tonewhere they printedvalueandtone?, and the session note lists a required prop the way it is written (Stat label value={number}). A host that parses these strings reads the name up to the?or the:. Stattakes a number or a string asvalue, soUiProps<'Stat'>['value']isnumber | string. A renderer of your own shows a string as written, with no change againstprevious.CalloutandStepno longer requiretoneandstate. The compiler writesinfoandpendinginto the block, so a renderer still receives both.- The note after a reply changed its words. It now starts with "Your last block could not be drawn in full:" or "was drawn after these corrections, write it this way next time:", with one line per diagnostic. A host that matched the old sentence matches these.
- Looks of
Steps,Stat,SummaryandCalloutchanged in@adecore/agents-react; a snapshot of their markup needs updating.
✨ New components
Metershows a value against a limit, with an optional mark for a target.PartsandPartshow how a whole divides, as one bar of up to six parts.ChangesandChangelist the files a piece of work changed, with lines added and removed; a row opens the file's diff.Alternatives,Alternative,ProandConcompare two to four options side by side.ColumnsandPaneput two or three panes next to each other, stacked where the block is narrow.Tree,BranchandLeafdraw a hierarchy with folding branches; a leaf with apathopens as a file.Radiopicks one option from a list where each option has a line of explanation.NumberFieldis a number a person types, withinminandmax.Keysshows a keyboard shortcut in a sentence;modis Command on a Mac and Control elsewhere.Quotequotes a line from a log, a message or a source, with a tone and a source.
🚀 Features
Intelligent UI, reading what an agent meant
- A value written in another type is read as the type its schema asks for:
value="42",when="true",unit={5}androws='[...]'. A barevalue=42orprimary=truereads as if in braces. - A quantity such as
value="12 min"reads as the number with its unit on aStat, aMeter, aProgressand the series of aChart. A number that steers something, such as aSliderrange or aPlace, never reads a unit. - A synonym reads as what it stands for: of an enum value (
tone="error",state="active"), of a prop (labelon aTab,lngon aPlace) and of a component name (Badge). - The words of a component written as a prop become its words (
<Step label="Build"/>), and the text of aStatbecomes its value. - An optional prop of the wrong kind is left out and its component still draws. A value of the right kind that is out of range stays an error.
- A
Checklistthat binds no state gets state of its own. - Each of these draws and warns the agent with the form to write. The corrected value is written into the block, so a client draws it without knowing the rule, and the runtime ignores a prop its catalog does not know.
- A diagnostic names its component and its prop in
componentandprop, and its message says what the prop takes. An unknown component names the nearest one. - Every component that is no child of another carries an example, and a test compiles them all.
Intelligent UI, new props
Difftakesopen,from,toandwhitespace. Withopenthe block shows the change of the file, which the host reads from git through the newui.diffrequest (ChatHost.intelligentUi.diff,ChatUiHost.diff,ChatCore.diffUi). The request carries only the node id, so the path and revisions come from the stored block. A host without it leaves the Diff a chip.Stattakestrend, a list of numbers drawn as a line under the value, and shows its unit apart and its change beside the value.Tabletakessortand sorts by its headers;Columntakes thepercentkind andtones, which color a tag by its text.CodeBlocktakesfile,startandhighlight: a chip that opens the file, line numbers and marked lines.Sectiontakesopen,badgeandtone;Tabtakesbadge.SummaryandProgresstakedetail;Progresstakestone.Charttakes theareakind, atitleand a tone per series.EntityListtakeslayout,Entrytakesas,Segmentedtakeslabel,ItemandOptiontakedetail, andTextFieldtakesmultiline.- A link resolution may carry
status(running,needsYouordone), which aNodechip shows as a dot. - A catalog entry may name another component it links as, with the props its target reads (
link).
UI
- A person can select what an error, an empty state, a banner or a toast says.
Editor
- A
partialmode reads nothing from the whole text. The diff views use it.
🎨 Styles
Stepsis one tile with a rail through its marks, and says a state in words only where a step failed.Summarycarries its badge as a tag at the end of the row.- A
warningordangerCallouttakes the surface of its tone.
🐛 Fixes
- A part the compiler refused is reported once, in the words of the compiler, where it used to gain a second line that said only that the part was unsupported.
- A series of a
Chartwritten as text is drawn, where it used to be left out without a word.
Full Changelog: v0.70.1...v0.71.0