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:
flowandnamesay which flow this is. The id is shared by every clone of the repo.scriptis what a run plays: the page to open (target), the window size, and thesteps. Each step does one thing (click,type,drag,press,hover, a wait or apause) on a target the agent copied from the page, such as astableId.outputsare the exports a refresh writes, anddeliversays whether they are committed (commit) or left for you to upload (files).
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).