Skip to content

flowfig 0.5.0

Choose a tag to compare

@iamalvisng iamalvisng released this 03 Oct 12:41
· 258 commits to main since this release

Long swimlane processes now fit in one figure, and decision boxes keep their text inside the diamond.

npx flowfig init   # get the new agent instructions

New

  • Swimlanes wrap. When the steps of a lanes: true figure do not fit the page width, flowfig wraps the time columns into blocks, one under the other. Each block shows only the lanes that have a step in it. An edge between two blocks becomes two short labeled stubs, for example "→ Inspect" and "from Ship item". A process of 7 or more steps now stays readable in one figure.
  • lane-end-block check. check warns when an edge in a wrapped figure ends at a lane that no nearby block shows.
  • stub-crosses-edge check. check warns when a stub line crosses another edge. --strict makes it an error.

Improvements

  • A decision box (shape: 'decision') wraps its sub line inside the diamond outline and grows taller when it needs more room. check now tests the text against the diamond shape.
  • --width now also sets where the lanes wrap, in the CLI and in the MCP render tool.
  • Agents keep a long process in one figure. For a process document, agents now also show every deadline, every message to a person, every choice and every wait for a reply.

Requirements

  • Node 18 or later.
  • React 18 or later, only for the <Flow /> player.

Upgrade

No breaking change. A lanes figure that fits the width renders as before. Run npx flowfig init again in your repo to get the new agent instructions.

Full Changelog: v0.4.0...v0.5.0