@mereon/demo 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -3
- package/dist/demo.mjs +1990 -887
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Record a narrated demo of a change to your app, as a guide or a video, and file it in your Mereon organization so your colleagues see what changed.
|
|
4
4
|
|
|
5
|
+
The setup guide is at https://docs.mereon.ai/demo-recorder/.
|
|
6
|
+
|
|
5
7
|
It is built to be driven by a coding agent. You ask your agent for a demo, it writes a short script from the change it just made, and this tool records the script and uploads the result. You need a Mereon account, since every command signs in to your organization.
|
|
6
8
|
|
|
7
9
|
## Set up
|
|
@@ -49,9 +51,10 @@ When an upload updates a published guide, `--retraining` says whether people who
|
|
|
49
51
|
| `config set <key> <value>` | Changes a setting in `demo/config.json`. |
|
|
50
52
|
| `voices` | Lists the narration voices and says which one this project uses. Needs no login. |
|
|
51
53
|
| `audience` | Lists your organization's roles and teams, so your agent can check with you who a demo is for. |
|
|
54
|
+
| `tags` | Lists your organization's tags, so your agent can suggest what a demo is filed under. |
|
|
52
55
|
| `record <script-id> [--output guide\|video] [--draft] [--allow-remote]` | Records a script. |
|
|
53
|
-
| `upload [<script-id>] [--output guide\|video] [--stack] [--hold\|--publish-now] [--retraining <choice>] [--confirm-redacted]` | Files a recording in your organization
|
|
54
|
-
| `announce [<script-id>] --text-file <path> [--tell <who>] [--title <title>] [--visible-to everyone\|admins] [--pop-quiz\|--no-pop-quiz] [--publish-now] [--confirm-redacted] [--send]` | Files a video and announces it to the people you choose. Sends only with `--send`. See below. |
|
|
56
|
+
| `upload [<script-id>] [--output guide\|video] [--tag <name>]... [--stack] [--hold\|--publish-now] [--retraining <choice>] [--confirm-redacted]` | Files a recording in your organization, under the script's tags and any `--tag`. A recording that used secrets needs `--confirm-redacted`. |
|
|
57
|
+
| `announce [<script-id>] --text-file <path> [--tell <who>] [--title <title>] [--visible-to everyone\|admins] [--tag <name>]... [--pop-quiz\|--no-pop-quiz] [--publish-now] [--confirm-redacted] [--send]` | Files a video and announces it to the people you choose. Sends only with `--send`. See below. |
|
|
55
58
|
| `release [--dry-run] [--strict]` | In CI after a deploy, publishes the demos held for it. See below. |
|
|
56
59
|
| `reel <script-id>... [--title <text>] [--output <file>] [--confirm-redacted]` | Joins the latest videos of those scripts behind a card that lists them, for sharing what a release changed. Nothing is uploaded. A recording that used secrets needs `--confirm-redacted`, as for `upload`. |
|
|
57
60
|
|
|
@@ -81,6 +84,18 @@ audience: {
|
|
|
81
84
|
|
|
82
85
|
`visibleTo` is who can see the demo in your library. A role cannot limit that, but a team can. `tell` is who `announce` tells when you do not give it `--tell`. Both are requests: if you cannot publish to that audience, the upload goes to an administrator for review. If the script names a team you cannot see, because you see only the teams you belong to, your upload asks for administrators only and goes to review, and the reviewer chooses who sees it. Only a demo everyone can see can be announced to a role, a team or everyone: an announcement is readable by everyone or by administrators only, so a demo shared with some teams or with administrators is announced to named people, and only the administrators among them are told. They apply when an upload creates a demo, and an update keeps the audience the demo already has. The recording carries the audience, so to change it, change the script and record again.
|
|
83
86
|
|
|
87
|
+
## Tags
|
|
88
|
+
|
|
89
|
+
A demo can be filed under your organization's tags, the labels your library is filtered by. Your agent suggests some from `demo tags` when it asks who the demo is for, and records the ones you agree in the script:
|
|
90
|
+
|
|
91
|
+
```js
|
|
92
|
+
tags: ['billing', 'onboarding'],
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Write them as you like: `Fire Safety` is the tag `fire-safety`. `upload --tag <name>` adds a tag for that one upload, and can be given more than once. Each has to be a tag your organization already has. The tool cannot create one, so someone who can edit content creates a new tag in Mereon. `record` checks the script's tags before it records anything, and `upload` refuses a `--tag` your organization lacks before anything is sent. Both messages list the tags it has. A tag renamed or deleted after recording is left out of the upload with a warning, so the recording can still be filed.
|
|
96
|
+
|
|
97
|
+
A demo that goes to an administrator for review carries its tags too. An upload that updates a guide adds the tags it lacks and keeps the ones it has, so to take a tag off, do it in Mereon. An update that waits for a release or a reviewer adds them when it is applied. `announce` takes `--tag` only on the run that uploads the video.
|
|
98
|
+
|
|
84
99
|
## Secrets and personal data
|
|
85
100
|
|
|
86
101
|
Some demos need real values: an account to sign in with, an API key an integration checks before it saves, or a page that shows a person's email address or phone number. A script can use them without ever holding them. It names the values it uses and types them with `demo.typeSecret`:
|
|
@@ -206,7 +221,7 @@ The tool sends something only when you run a command, and there is no telemetry
|
|
|
206
221
|
- `login` opens Mereon in your browser and keeps the tokens Mereon issues for you. Logos and the brand's font files come from Mereon too, so a branded demo needs no font service of its own.
|
|
207
222
|
- An upload sends the screenshots and narration, or the video, to your organization. A guide's steps also carry each page's path and title and what identifies the element acted on (its id, `aria-label`, `name`, `title` and role), and every upload carries its source key (`repo#script-id`). An upload held for a release also sends the commit it was made from and a hash of its script.
|
|
208
223
|
- Narration text goes to Mereon, which turns it into speech with ElevenLabs. With your own ElevenLabs key, the text goes straight to ElevenLabs under your own account instead, and never through Mereon.
|
|
209
|
-
- `audience` reads your organization's role and team names, and `announce` sends the announcement's text and who it is for.
|
|
224
|
+
- `audience` reads your organization's role and team names, and `tags`, and a `record` or upload whose script names tags, read its tag names. `announce` sends the announcement's text and who it is for.
|
|
210
225
|
|
|
211
226
|
Two other places are contacted. The first `record` downloads Chromium with Playwright's own installer, from Playwright's download servers, and a recording opens the app you are demoing, which is one served from your own machine unless you say otherwise. Your coding agent reads what the tool prints, so the role and team names from `audience`, like the rest of its output, reach whichever model your agent uses.
|
|
212
227
|
|