@plaintake/scenario 1.23.0 → 1.30.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 +10 -0
- package/dist/index.js +819 -440
- package/dist/schema/baseline.d.ts +182 -0
- package/dist/schema/errors.d.ts +1 -0
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/manifest.d.ts +1 -0
- package/dist/schema/narration-index.d.ts +1 -1
- package/dist/schema/render-plan.d.ts +174 -17
- package/dist/schema/results.d.ts +118 -9
- package/dist/schema/scenario.d.ts +62 -0
- package/dist/types.d.ts +94 -36
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,6 +58,16 @@ The PlainTake CLI discovers and records files matching `*.demo.ts`. See the
|
|
|
58
58
|
assertions, masks, waits, and handoffs to a person for steps PlainTake cannot perform itself
|
|
59
59
|
(entering a one-time code, for example).
|
|
60
60
|
|
|
61
|
+
A scenario can also declare `terminal` to record a live command-line program (`run` is then
|
|
62
|
+
handed a `term` with `run`, `type`, `press`, `waitForText` and friends), and with
|
|
63
|
+
`terminal.browser: true` it can take turns between the terminal and a web app:
|
|
64
|
+
`demo.turn(term.actor)` and `demo.turn(web)` switch with a hard cut by default, and
|
|
65
|
+
`demo.turn(actor, { card })` or `{ card: false }` decides per turn. See the scenario guide.
|
|
66
|
+
|
|
67
|
+
For TikTok and YouTube Shorts, a scenario can declare a `hook` — `'3 PDFs → 1, free'` or
|
|
68
|
+
`{ text, durationMs }` — drawn above the picture for the video's first seconds when it is
|
|
69
|
+
recorded with `--for tiktok` or `--for shorts`. One or two lines; emoji are drawn as outlines.
|
|
70
|
+
|
|
61
71
|
## Licence
|
|
62
72
|
|
|
63
73
|
This package (`@plaintake/scenario`) is MIT licensed — see [LICENSE](./LICENSE).
|