@canvakit/showreel 0.0.0-stage → 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.
@@ -0,0 +1,78 @@
1
+ // showreel.config.example.jsonc — @canvakit/showreel
2
+ //
3
+ // Drives the naia live app into a pitch showreel. This is JSONC:
4
+ // `canvakit showreel` strips comments before JSON.parse, then hands the
5
+ // object to validateConfig(). Every field with a default may be omitted.
6
+ {
7
+ "$schema": "@canvakit/showreel/schema.json",
8
+
9
+ // The running app under test.
10
+ "target": {
11
+ "url": "http://localhost:5173",
12
+ "viewport": { "width": 1920, "height": 1080, "dpr": 2 },
13
+ "chromePath": "env:CHROME_PATH",
14
+ "readyFlag": "body[data-ready=true]"
15
+ },
16
+
17
+ // Design tokens injected into promo scenes (via @canvakit/designkit).
18
+ "brand": {
19
+ "preset": "naia",
20
+ "tokens": { "accent": "#5B8CFF" }
21
+ },
22
+
23
+ // Ordered montage. `scene | capture`, narration anchored by id.
24
+ "timeline": [
25
+ {
26
+ "kind": "scene",
27
+ "id": "intro",
28
+ "template": "hero-split",
29
+ "data": { "title": "Naia", "subtitle": "L'assistante qui cite ses sources" },
30
+ "duration": 3000,
31
+ "narration": "Voici Naia."
32
+ },
33
+ {
34
+ "kind": "capture",
35
+ "id": "demo-refus",
36
+ "record": { "fps": 30, "maxDuration": 12000 },
37
+ "steps": [
38
+ { "action": "navigate", "path": "/chat" },
39
+ { "action": "type", "selector": "[data-tid=input]", "text": "Puis-je refuser ce locataire ?", "delay": 20 },
40
+ { "action": "click", "selector": "[data-tid=send]" },
41
+ { "action": "waitFor", "selector": "[data-tid=answer-done]", "timeout": 15000 }
42
+ ],
43
+ "screenshot": { "at": ["answer-done"] },
44
+ "narration": "Naia refuse, et cite la source réglementaire."
45
+ },
46
+ {
47
+ "kind": "scene",
48
+ "id": "outro",
49
+ "template": "cta-card",
50
+ "data": { "title": "Naia", "cta": "naia.app" },
51
+ "duration": 4000,
52
+ "narration": "Essayez Naia dès aujourd'hui."
53
+ }
54
+ ],
55
+
56
+ // Narration voice (ElevenLabs TTS).
57
+ "voice": {
58
+ "provider": "elevenlabs",
59
+ "voiceId": "REPLACE_WITH_VOICE_ID",
60
+ "model": "eleven_multilingual_v2"
61
+ },
62
+
63
+ // Background music (ElevenLabs Music API), ducked under narration.
64
+ "music": {
65
+ "prompt": "calm corporate, 90bpm, no vocals",
66
+ "duckDb": -14,
67
+ "fade": 2000
68
+ },
69
+
70
+ // Artifacts.
71
+ "output": {
72
+ "dir": "./out",
73
+ "video": "showreel.mp4",
74
+ "deck": "deck.pdf",
75
+ "res": "1080p",
76
+ "seed": 42
77
+ }
78
+ }