stories
stories
The stories worker indexes CSF story files (*.stories.tsx) of every
project in a workspace and builds them with the project's own Vite. A
component is one story file (title, group, tags, source file); a
state is one named export of it (args, argTypes, inferred controls). A
line is a source tree: worktree (live), prev (the build before it),
a ref such as HEAD or main, a full sha, or turn:<session>/<turn>/before|after
when the ide worker keeps turn snapshots. Comparing two lines classifies each
component as direct (its story file or a direct import changed),
indirect (a deeper input changed), new, removed or unchanged, with
the files behind the change. stories::screenshot, stories::tree and
stories::diff render through the browser worker with time, randomness,
locale and motion frozen, so the same inputs give the same pixels.