Skip to content

v0.71.0

Choose a tag to compare

@basmilius basmilius released this 24 Nov 10:24
· 1 commit to main since this release
Immutable release. Only release title and notes can be modified.
39a1112

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, uiGroupReference and the props of uiGroupDescription print value: number and tone?: tone where they printed value and tone?, 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 :.
  • Stat takes a number or a string as value, so UiProps<'Stat'>['value'] is number | string. A renderer of your own shows a string as written, with no change against previous.
  • Callout and Step no longer require tone and state. The compiler writes info and pending into 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, Summary and Callout changed in @adecore/agents-react; a snapshot of their markup needs updating.

✨ New components

  • Meter shows a value against a limit, with an optional mark for a target.
  • Parts and Part show how a whole divides, as one bar of up to six parts.
  • Changes and Change list the files a piece of work changed, with lines added and removed; a row opens the file's diff.
  • Alternatives, Alternative, Pro and Con compare two to four options side by side.
  • Columns and Pane put two or three panes next to each other, stacked where the block is narrow.
  • Tree, Branch and Leaf draw a hierarchy with folding branches; a leaf with a path opens as a file.
  • Radio picks one option from a list where each option has a line of explanation.
  • NumberField is a number a person types, within min and max.
  • Keys shows a keyboard shortcut in a sentence; mod is Command on a Mac and Control elsewhere.
  • Quote quotes 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} and rows='[...]'. A bare value=42 or primary=true reads as if in braces.
  • A quantity such as value="12 min" reads as the number with its unit on a Stat, a Meter, a Progress and the series of a Chart. A number that steers something, such as a Slider range or a Place, never reads a unit.
  • A synonym reads as what it stands for: of an enum value (tone="error", state="active"), of a prop (label on a Tab, lng on a Place) 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 a Stat becomes 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 Checklist that 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 component and prop, 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

  • Diff takes open, from, to and whitespace. With open the block shows the change of the file, which the host reads from git through the new ui.diff request (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.
  • Stat takes trend, a list of numbers drawn as a line under the value, and shows its unit apart and its change beside the value.
  • Table takes sort and sorts by its headers; Column takes the percent kind and tones, which color a tag by its text.
  • CodeBlock takes file, start and highlight: a chip that opens the file, line numbers and marked lines.
  • Section takes open, badge and tone; Tab takes badge.
  • Summary and Progress take detail; Progress takes tone.
  • Chart takes the area kind, a title and a tone per series.
  • EntityList takes layout, Entry takes as, Segmented takes label, Item and Option take detail, and TextField takes multiline.
  • A link resolution may carry status (running, needsYou or done), which a Node chip 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 partial mode reads nothing from the whole text. The diff views use it.

🎨 Styles

  • Steps is one tile with a rail through its marks, and says a state in words only where a step failed.
  • Summary carries its badge as a tag at the end of the row.
  • A warning or danger Callout takes 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 Chart written as text is drawn, where it used to be left out without a word.

Full Changelog: v0.70.1...v0.71.0