Adapts a plain in-memory tree to the TreeModel atom-family contract the Tree consumes.
Tree's only entry point is five atom families, which is the right shape for a store that is
already reactive per node (ECHO, a live app graph) but roughly a hundred lines of plumbing for a
caller that just holds an array — the cost that kept ObjectsTree, ProcessTree and the stories
on hand-rolled renderers instead. Open/current state is owned here, keyed by path, so the same
node appearing at two paths stays independent.
Adapts a plain in-memory tree to the TreeModel atom-family contract the
Treeconsumes.Tree's only entry point is five atom families, which is the right shape for a store that is already reactive per node (ECHO, a live app graph) but roughly a hundred lines of plumbing for a caller that just holds an array — the cost that keptObjectsTree,ProcessTreeand the stories on hand-rolled renderers instead. Open/current state is owned here, keyed by path, so the same node appearing at two paths stays independent.