Repository navigation
flowfig 0.5.0
Long swimlane processes now fit in one figure, and decision boxes keep their text inside the diamond.
npx flowfig init # get the new agent instructionsNew
- Swimlanes wrap. When the steps of a
lanes: truefigure 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-blockcheck.checkwarns when an edge in a wrapped figure ends at a lane that no nearby block shows.stub-crosses-edgecheck.checkwarns when a stub line crosses another edge.--strictmakes 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.checknow tests the text against the diamond shape. --widthnow also sets where the lanes wrap, in the CLI and in the MCPrendertool.- 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