demo-reel 0.4.1 → 0.5.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 CHANGED
@@ -54,39 +54,42 @@ await generate(
54
54
  ],
55
55
 
56
56
  scenes: [
57
- { narration: "Welcome to our app. Let's create a new project.", stepIndex: 0, isIntro: true },
58
- { narration: "Fill in the details and click Create.", stepIndex: 2 },
59
- ],
60
-
61
- steps: [
62
- // Scene 1
63
- {
64
- action: "hover",
65
- selector: { strategy: "testId", value: "new-project" },
66
- delayAfterMs: 800,
67
- },
68
- {
69
- action: "click",
70
- selector: { strategy: "testId", value: "new-project" },
71
- delayAfterMs: 1500,
72
- },
73
-
74
- // Scene 2
75
- {
76
- action: "type",
77
- selector: { strategy: "id", value: "name" },
78
- text: "My Project",
79
- delayAfterMs: 500,
80
- },
81
57
  {
82
- action: "hover",
83
- selector: { strategy: "custom", value: "button[type='submit']" },
84
- delayAfterMs: 600,
58
+ narration: "Welcome to our app. Let's create a new project.",
59
+ isIntro: true,
60
+ steps: [
61
+ {
62
+ action: "hover",
63
+ selector: { strategy: "testId", value: "new-project" },
64
+ delayAfterMs: 800,
65
+ },
66
+ {
67
+ action: "click",
68
+ selector: { strategy: "testId", value: "new-project" },
69
+ delayAfterMs: 1500,
70
+ },
71
+ ],
85
72
  },
86
73
  {
87
- action: "click",
88
- selector: { strategy: "custom", value: "button[type='submit']" },
89
- delayAfterMs: 2000,
74
+ narration: "Fill in the details and click Create.",
75
+ steps: [
76
+ {
77
+ action: "type",
78
+ selector: { strategy: "id", value: "name" },
79
+ text: "My Project",
80
+ delayAfterMs: 500,
81
+ },
82
+ {
83
+ action: "hover",
84
+ selector: { strategy: "custom", value: "button[type='submit']" },
85
+ delayAfterMs: 600,
86
+ },
87
+ {
88
+ action: "click",
89
+ selector: { strategy: "custom", value: "button[type='submit']" },
90
+ delayAfterMs: 2000,
91
+ },
92
+ ],
90
93
  },
91
94
  ],
92
95
  },
@@ -189,7 +192,7 @@ Built-in voice values:
189
192
 
190
193
  - `piper`: `"nl_NL-mls-medium"`, `"en_US-amy-medium"`
191
194
  - `openai`: `"alloy"`, `"echo"`, `"fable"`, `"onyx"`, `"nova"`, `"shimmer"`
192
- - `elevenlabs`: `"21m00Tcm4TlvDq8ikWAM"`, `"5zhopMftSdRGaPYVcwKK"`, `CwhRBWXzGAHq8TQ4Fs17`
195
+ - `elevenlabs`: `"21m00Tcm4TlvDq8ikWAM"`, `"5zhopMftSdRGaPYVcwKK"`, `CwhRBWXzGAHq8TQ4Fs17`, `60CwgZt94Yf7yYIXMDDe`
193
196
 
194
197
  For a custom Piper `.onnx` model, use `voicePath` instead of `voice`:
195
198
 
@@ -225,17 +228,31 @@ Setup and cleanup run in tolerant mode — failed steps are skipped.
225
228
 
226
229
  ```typescript
227
230
  scenes: [
228
- { narration: "Welcome to our app.", stepIndex: 0, isIntro: true },
229
- { narration: "Let's create something.", stepIndex: 3 },
231
+ {
232
+ narration: "Welcome to our app.",
233
+ isIntro: true,
234
+ steps: [
235
+ { action: "goto", url: "https://myapp.com" },
236
+ { action: "wait", ms: 1500 },
237
+ ],
238
+ },
239
+ {
240
+ narration: "Let's create something.",
241
+ steps: [
242
+ { action: "click", selector: { strategy: "id", value: "create" } },
243
+ ],
244
+ },
230
245
  ],
231
246
  ```
232
247
 
233
248
  - `narration` — voiceover text (also used for subtitles)
234
- - `stepIndex` — which step starts this scene
249
+ - `steps` — steps that belong to this scene
235
250
  - `isIntro` — marks the intro scene (used by presentation systems to skip context)
236
251
 
237
252
  Generates `.srt`, `.vtt` (subtitles) and `.meta.json` (scene timestamps for interactive players).
238
253
 
254
+ > **Legacy compatibility:** You can also use the older format with a single top-level `steps` array and `scenes` referencing `stepIndex`. The two formats cannot be mixed.
255
+
239
256
  ### Steps
240
257
 
241
258
  | Action | Description |
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAuBzE,qBAAa,WAAY,YAAW,OAAO;IACzC,QAAQ,CAAC,IAAI,UAAU;IAEvB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAGhC;IAEK,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAK5F;CACF"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AA4BzE,qBAAa,WAAY,YAAW,OAAO;IACzC,QAAQ,CAAC,IAAI,UAAU;IAEvB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAGhC;IAEK,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAK5F;CACF"}
@@ -13,9 +13,14 @@ export default defineConfig({
13
13
  typing: 'humanlike',
14
14
  timing: 'normal',
15
15
 
16
- steps: [
17
- { action: 'goto', url: 'https://example.com' },
18
- { action: 'wait', ms: 1000 },
16
+ scenes: [
17
+ {
18
+ narration: "Welcome to our example demo.",
19
+ steps: [
20
+ { action: 'goto', url: 'https://example.com' },
21
+ { action: 'wait', ms: 1000 },
22
+ ],
23
+ },
19
24
  ],
20
25
  });
21
26
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;CAmBxB,CAAC;AAEF,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