Skip to main content
Your library holds every flow and video you recorded on this machine (~/.demoman, or DEMOMAN_HOME). npx demoman studio shows it.

What a DemoScript looks like

A DemoScript is something your agent writes, not you. You will read one in a pull request, so this is what its parts mean. A shortened file from .demoman/flows/add-customer.json:
  • flow and name say which flow this is. The id is shared by every clone of the repo.
  • script is what a run plays: the page to open (target), the window size, and the steps. Each step does one thing (click, type, drag, press, hover, a wait or a pause) on a target the agent copied from the page, such as a stableId.
  • outputs are the exports a refresh writes, and deliver says whether they are committed (commit) or left for you to upload (files).
A step can also carry a zoom, the script a trim and a look (brand kit, background, cursor). Every field is on DemoScript.

How a flow changes

  • Your agent records it again. Asking for the same demo video again adds a new video to the flow. In a repo, the DemoScript follows the new script.
  • CI records it again. A refresh replays the DemoScript as it is and replaces the exports when the picture changed. It never rewrites the DemoScript. See Refresh.
  • You edit it in the Studio. A trim and a click’s zoom are written into the DemoScript when the flow is added, so a refresh keeps them. Other edits (a cut, a split, a mask) cannot be recorded again, so add refuses them (Add to your repo).