@senseihq/emaki-cli 0.0.0-stage → 0.1.1

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.
Files changed (102) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +69 -2
  3. package/package.json +44 -4
  4. package/plugin/.claude-plugin/plugin.json +19 -0
  5. package/plugin/PLAYBOOK.md +137 -0
  6. package/plugin/README.md +51 -0
  7. package/plugin/agents/fact-checker.md +28 -0
  8. package/plugin/agents/localizer.md +34 -0
  9. package/plugin/agents/scene-builder.md +43 -0
  10. package/plugin/agents/story-planner.md +42 -0
  11. package/plugin/agents/story-writer.md +34 -0
  12. package/plugin/agents/visual-reviewer.md +33 -0
  13. package/plugin/modules/campaign/README.md +30 -0
  14. package/plugin/modules/campaign/calendar.csv +2 -0
  15. package/plugin/modules/campaign/day-script.template.md +42 -0
  16. package/plugin/modules/posting-desk/README.md +37 -0
  17. package/plugin/skills/emaki/SKILL.md +107 -0
  18. package/plugin/skills/emaki/references/01-interview.md +68 -0
  19. package/plugin/skills/emaki/references/02-architecture.md +69 -0
  20. package/plugin/skills/emaki/references/03-content-model.md +68 -0
  21. package/plugin/skills/emaki/references/04-scene-authoring.md +99 -0
  22. package/plugin/skills/emaki/references/05-voice-and-video.md +97 -0
  23. package/plugin/skills/emaki/references/06-i18n.md +37 -0
  24. package/plugin/skills/emaki/references/07-quality-gates.md +44 -0
  25. package/plugin/skills/emaki/references/08-feedback-loop.md +32 -0
  26. package/plugin/skills/emaki/references/09-publishing.md +14 -0
  27. package/plugin/skills/story-build/SKILL.md +37 -0
  28. package/plugin/skills/story-localize/SKILL.md +24 -0
  29. package/plugin/skills/story-media/SKILL.md +38 -0
  30. package/plugin/skills/story-publish/SKILL.md +36 -0
  31. package/plugin/skills/story-review/SKILL.md +29 -0
  32. package/plugin/templates/brief.md +32 -0
  33. package/plugin/templates/change-request.md +7 -0
  34. package/plugin/templates/changelog.md +4 -0
  35. package/plugin/templates/decisions.md +5 -0
  36. package/plugin/templates/glossary.md +4 -0
  37. package/plugin/templates/item-card.md +34 -0
  38. package/plugin/templates/outline.md +19 -0
  39. package/plugin/templates/review-sheet.md +12 -0
  40. package/plugin/templates/style-guide.md +21 -0
  41. package/plugin/templates/tracker.md +11 -0
  42. package/src/api.js +20 -0
  43. package/src/campaign.js +157 -0
  44. package/src/capture.js +205 -0
  45. package/src/carousel.js +91 -0
  46. package/src/config.js +32 -0
  47. package/src/day-script.js +66 -0
  48. package/src/desk-client.js +37 -0
  49. package/src/desk-plan.js +57 -0
  50. package/src/films.js +152 -0
  51. package/src/http.js +30 -0
  52. package/src/index.js +353 -0
  53. package/src/init.js +110 -0
  54. package/src/media.js +236 -0
  55. package/src/migrate.js +67 -0
  56. package/src/plugin.js +106 -0
  57. package/src/publish.js +118 -0
  58. package/src/stage.js +107 -0
  59. package/src/stories.js +66 -0
  60. package/src/tts.js +290 -0
  61. package/src/upload/instagram.js +34 -0
  62. package/src/upload/youtube.js +90 -0
  63. package/src/util.js +66 -0
  64. package/src/voice.js +295 -0
  65. package/src/youtube-text.js +58 -0
  66. package/templates/content/films/index.json +1 -0
  67. package/templates/content/films/measure-the-right-work/film.json +68 -0
  68. package/templates/content/films/measure-the-right-work/look.css +17 -0
  69. package/templates/content/films/measure-the-right-work/scene-close.json +153 -0
  70. package/templates/content/films/measure-the-right-work/scene-groups.json +99 -0
  71. package/templates/content/films/measure-the-right-work/scene-hook.json +96 -0
  72. package/templates/content/films/measure-the-right-work/scene-pair.json +190 -0
  73. package/templates/content/films/measure-the-right-work/scene-problem.json +162 -0
  74. package/templates/content/films/measure-the-right-work/score.js +19 -0
  75. package/templates/content/films/measure-the-right-work/strings/en.json +50 -0
  76. package/templates/content/films/measure-the-right-work/strings/es.json +50 -0
  77. package/templates/content/films/measure-the-right-work/timing.en.json +24 -0
  78. package/templates/content/films/measure-the-right-work/timing.es.json +24 -0
  79. package/templates/content/films/measure-the-right-work/voice/en/close.m4a +0 -0
  80. package/templates/content/films/measure-the-right-work/voice/en/groups.m4a +0 -0
  81. package/templates/content/films/measure-the-right-work/voice/en/hook.m4a +0 -0
  82. package/templates/content/films/measure-the-right-work/voice/en/pair.m4a +0 -0
  83. package/templates/content/films/measure-the-right-work/voice/en/problem.m4a +0 -0
  84. package/templates/content/films/measure-the-right-work/voice/en.json +7 -0
  85. package/templates/content/films/measure-the-right-work/voice/es/close.m4a +0 -0
  86. package/templates/content/films/measure-the-right-work/voice/es/groups.m4a +0 -0
  87. package/templates/content/films/measure-the-right-work/voice/es/hook.m4a +0 -0
  88. package/templates/content/films/measure-the-right-work/voice/es/pair.m4a +0 -0
  89. package/templates/content/films/measure-the-right-work/voice/es/problem.m4a +0 -0
  90. package/templates/content/films/measure-the-right-work/voice/es.json +7 -0
  91. package/templates/content/logos/brand.svg +1 -0
  92. package/templates/content/site.json +10 -0
  93. package/templates/content/stories/en/measure-the-right-work.json +13 -0
  94. package/templates/content/stories/es/measure-the-right-work.json +13 -0
  95. package/templates/content/stories/index.json +12 -0
  96. package/templates/content/ui/en.json +1 -0
  97. package/templates/content/ui/es.json +1 -0
  98. package/templates/emaki.config.json +67 -0
  99. package/templates/film/look.css +17 -0
  100. package/templates/film/scene-close.json +153 -0
  101. package/templates/film/scene-template.json +71 -0
  102. package/templates/film/score.js +12 -0
@@ -0,0 +1,99 @@
1
+ {
2
+ "components": [
3
+ {
4
+ "type": "board",
5
+ "id": "groups-bg"
6
+ },
7
+ {
8
+ "type": "raw",
9
+ "id": "cols",
10
+ "html": "<div class='groups-col' style='left:880px'><h4>{{groups.1}}</h4><div class='groups-m'>{{groups.2}}</div><div class='groups-m'>{{groups.3}}</div><div class='groups-m'>{{groups.4}}</div></div><div class='groups-col' style='left:1071px'><h4>{{groups.5}}</h4><div class='groups-m'>{{groups.6}}</div><div class='groups-m'>{{groups.7}}</div><div class='groups-m'>{{groups.8}}</div></div><div class='groups-col' style='left:1262px'><h4>{{groups.9}}</h4><div class='groups-m'>{{groups.10}}</div><div class='groups-m'>{{groups.11}}</div></div><div class='groups-col' style='left:1453px'><h4>{{groups.12}}</h4><div class='groups-m'>{{groups.13}}</div><div class='groups-m'>{{groups.14}}</div></div><div class='groups-col' style='left:1644px'><h4>{{groups.15}}</h4><div class='groups-m'>{{groups.16}}</div></div>"
11
+ },
12
+ {
13
+ "type": "svg",
14
+ "id": "link",
15
+ "body": "<path class='groups-link' pathLength='1' d='M968 290 C968 170, 1350 170, 1350 290' style='fill:none;stroke:var(--accent);stroke-width:5;stroke-dasharray:1 1;stroke-linecap:round'/>"
16
+ },
17
+ {
18
+ "type": "raw",
19
+ "id": "pair-tag",
20
+ "html": "<span class='tag hot groups-pair'>{{groups.17}}</span>"
21
+ },
22
+ {
23
+ "type": "head",
24
+ "id": "groups-head",
25
+ "at": "ground",
26
+ "eyebrow": "{{groups.eyebrow}}",
27
+ "line": "{{groups.line}}",
28
+ "sub": "{{groups.sub}}",
29
+ "style": "left:110px;top:300px;width:680px"
30
+ }
31
+ ],
32
+ "tracks": [
33
+ {
34
+ "kind": "effect",
35
+ "effect": "push",
36
+ "target": ".cam",
37
+ "t0": 0,
38
+ "dur": 9,
39
+ "from": 1,
40
+ "to": 1.02
41
+ },
42
+ {
43
+ "kind": "effect",
44
+ "effect": "showHead",
45
+ "target": ".groups-head",
46
+ "t0": -0.4
47
+ },
48
+ {
49
+ "kind": "effect",
50
+ "effect": "fade",
51
+ "target": ".groups-col",
52
+ "count": 5,
53
+ "t0": 0.8,
54
+ "stagger": 0.35
55
+ },
56
+ {
57
+ "kind": "effect",
58
+ "effect": "swap",
59
+ "target": ".groups-m",
60
+ "indices": [
61
+ 0,
62
+ 6
63
+ ],
64
+ "at": 3.6,
65
+ "addClass": "on"
66
+ },
67
+ {
68
+ "kind": "effect",
69
+ "effect": "draw",
70
+ "target": ".groups-link",
71
+ "t0": 3.8,
72
+ "t1": 4.8
73
+ },
74
+ {
75
+ "kind": "effect",
76
+ "effect": "pop",
77
+ "target": ".groups-pair",
78
+ "t0": 4.8,
79
+ "base": "translate(-50%,0)"
80
+ }
81
+ ],
82
+ "css": ".groups-col { position:absolute; top:300px; width:176px; display:flex; flex-direction:column; gap:12px }.groups-col h4 { margin:0 0 4px; font-size:22px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--mute); text-align:center }.groups-m { box-sizing:border-box; height:96px; padding:12px 14px; border-radius:14px; background:var(--tile); border:2px solid var(--hair); font-size:22px; line-height:1.25; font-weight:500; display:flex; align-items:center; box-shadow:0 8px 18px rgba(0,0,0,.05) }.groups-m.on { border-color:var(--accent); border-width:3px; background:color-mix(in srgb, var(--accent) 8%, var(--tile)) }.groups-pair { left:1159px; top:126px }",
83
+ "portrait": {
84
+ "hoist": [
85
+ ".groups-head"
86
+ ],
87
+ "frame": [
88
+ 640,
89
+ 1000
90
+ ],
91
+ "crop": [
92
+ 865,
93
+ 110,
94
+ 970,
95
+ 720
96
+ ],
97
+ "css": ".groups-head{left:70px!important;top:150px!important;width:940px!important}"
98
+ }
99
+ }
@@ -0,0 +1,96 @@
1
+ {
2
+ "components": [
3
+ {
4
+ "type": "board",
5
+ "id": "hook-bg"
6
+ },
7
+ {
8
+ "type": "raw",
9
+ "id": "counters",
10
+ "html": "<div class='card hook-ctr' style='top:230px'><h4>{{hook.1}}</h4><b>0</b><i>↑</i></div><div class='card hook-ctr' style='top:430px'><h4>{{hook.2}}</h4><b>0</b><i>↑</i></div><div class='card hook-ctr' style='top:630px'><h4>{{hook.3}}</h4><b>0</b><i>↑</i></div>"
11
+ },
12
+ {
13
+ "type": "raw",
14
+ "id": "q",
15
+ "html": "<div class='hook-q'>?</div>"
16
+ },
17
+ {
18
+ "type": "head",
19
+ "id": "hook-head",
20
+ "at": "ground",
21
+ "eyebrow": "{{hook.eyebrow}}",
22
+ "line": "{{hook.line}}",
23
+ "style": "left:110px;top:300px;width:720px"
24
+ }
25
+ ],
26
+ "tracks": [
27
+ {
28
+ "kind": "effect",
29
+ "effect": "push",
30
+ "target": ".cam",
31
+ "t0": 0,
32
+ "dur": 6.5,
33
+ "from": 1,
34
+ "to": 1.03
35
+ },
36
+ {
37
+ "kind": "effect",
38
+ "effect": "showHead",
39
+ "target": ".hook-head",
40
+ "t0": -0.4
41
+ },
42
+ {
43
+ "kind": "effect",
44
+ "effect": "fade",
45
+ "target": ".hook-ctr",
46
+ "count": 3,
47
+ "t0": 0.6,
48
+ "stagger": 0.3
49
+ },
50
+ {
51
+ "kind": "effect",
52
+ "effect": "counter",
53
+ "target": ".hook-ctr b",
54
+ "count": 3,
55
+ "values": [
56
+ 1240000,
57
+ 148,
58
+ 9412
59
+ ],
60
+ "prefixes": [
61
+ "",
62
+ "",
63
+ "+"
64
+ ],
65
+ "t0": 0.8,
66
+ "t1": 3.4,
67
+ "easing": "eio",
68
+ "stagger": 0.3,
69
+ "format": "locale"
70
+ },
71
+ {
72
+ "kind": "effect",
73
+ "effect": "pop",
74
+ "target": ".hook-q",
75
+ "t0": 3.8,
76
+ "base": "translate(-50%,-50%)"
77
+ }
78
+ ],
79
+ "css": ".hook-ctr { position:absolute; left:960px; width:600px; height:170px; box-sizing:border-box; padding:24px 34px; box-shadow:0 12px 26px rgba(0,0,0,.06) }.hook-ctr h4 { margin:0; font-size:24px; font-weight:600; letter-spacing:0.1em; color:var(--mute) } .hook-ctr b { display:block; margin-top:6px; font-family:var(--display); font-weight:400; font-size:78px; line-height:1; font-variant-numeric:tabular-nums }.hook-ctr i { position:absolute; right:34px; top:58px; font-style:normal; font-size:56px; color:var(--jade) }.hook-q { position:absolute; left:1660px; top:540px; transform:translate(-50%,-50%); font-family:var(--display); font-size:300px; line-height:1; color:var(--accent) }",
80
+ "portrait": {
81
+ "hoist": [
82
+ ".hook-head"
83
+ ],
84
+ "frame": [
85
+ 640,
86
+ 900
87
+ ],
88
+ "crop": [
89
+ 930,
90
+ 200,
91
+ 880,
92
+ 620
93
+ ],
94
+ "css": ".hook-head{left:70px!important;top:150px!important;width:940px!important}"
95
+ }
96
+ }
@@ -0,0 +1,190 @@
1
+ {
2
+ "components": [
3
+ {
4
+ "type": "board",
5
+ "id": "pair-bg"
6
+ },
7
+ {
8
+ "type": "raw",
9
+ "id": "card-a",
10
+ "html": "<div class='card pair-card pair-a' style='left:880px'><h4>{{pair.1}}</h4><p>{{pair.2}}</p><span class='pair-num' style='color:var(--jade)'><span class='pair-na'>0</span>%</span></div>"
11
+ },
12
+ {
13
+ "type": "raw",
14
+ "id": "card-b",
15
+ "html": "<div class='card pair-card pair-b' style='left:1360px'><h4>{{pair.3}}</h4><p>{{pair.4}}</p><span class='pair-num' style='color:var(--accent)'><span class='pair-nb'>0</span>%</span></div>"
16
+ },
17
+ {
18
+ "type": "raw",
19
+ "id": "warn",
20
+ "html": "<div class='card pair-warn'><span>{{pair.5}}</span></div>"
21
+ },
22
+ {
23
+ "type": "svg",
24
+ "id": "art",
25
+ "body": "<circle class='pair-dot' cx='940' cy='400' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1024' cy='400' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1108' cy='400' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1192' cy='400' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1276' cy='400' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='940' cy='460' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1024' cy='460' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1108' cy='460' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1192' cy='460' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1276' cy='460' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='940' cy='520' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1024' cy='520' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1108' cy='520' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1192' cy='520' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1276' cy='520' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='940' cy='580' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1024' cy='580' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1108' cy='580' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1192' cy='580' r='20' style='fill:var(--jade)'/><circle class='pair-dot' cx='1276' cy='580' r='20' style='fill:var(--jade)'/><g class='pair-bar'><rect x='1400' y='420' width='380' height='64' rx='14' style='fill:var(--main)'/><rect class='pair-rw' x='1400' y='420' width='0' height='64' rx='14' style='fill:var(--accent)'/><text class='pair-lab' x='1400' y='520' style='fill:var(--accent)'>{{pair.8}}</text><text class='pair-lab' x='1780' y='520' text-anchor='end' style='fill:var(--main)'>{{pair.9}}</text></g><g class='pair-spark'><path class='pair-sf' pathLength='1' d='M915 720 L960 714 L1005 718 L1050 712 L1095 710 L1140 712 L1185 708' style='fill:none;stroke:var(--jade);stroke-width:6;stroke-linecap:round'/><path class='pair-sr' pathLength='1' d='M915 800 L960 796 L1005 788 L1050 782 L1095 770 L1140 760 L1185 744' style='fill:none;stroke:var(--accent);stroke-width:6;stroke-linecap:round'/><text class='pair-lab' x='915' y='696' style='fill:var(--jade)'>{{pair.10}}</text><text class='pair-lab' x='915' y='822' style='fill:var(--accent)'>{{pair.11}}</text></g>"
26
+ },
27
+ {
28
+ "type": "head",
29
+ "id": "pair-head",
30
+ "at": "ground",
31
+ "eyebrow": "{{pair.eyebrow}}",
32
+ "line": "{{pair.line}}",
33
+ "sub": "{{pair.sub}}",
34
+ "style": "left:110px;top:320px;width:680px"
35
+ }
36
+ ],
37
+ "tracks": [
38
+ {
39
+ "kind": "effect",
40
+ "effect": "push",
41
+ "target": ".cam",
42
+ "t0": 0,
43
+ "dur": 17,
44
+ "from": 1,
45
+ "to": 1.015
46
+ },
47
+ {
48
+ "kind": "effect",
49
+ "effect": "showHead",
50
+ "target": ".pair-head",
51
+ "t0": -0.4
52
+ },
53
+ {
54
+ "kind": "effect",
55
+ "effect": "fade",
56
+ "target": ".pair-a",
57
+ "t0": 0.8
58
+ },
59
+ {
60
+ "kind": "tween",
61
+ "target": ".pair-dot",
62
+ "count": 20,
63
+ "prop": "opacity",
64
+ "from": 0,
65
+ "to": 1,
66
+ "t0": 1.2,
67
+ "t1": 1.5,
68
+ "easing": "eo",
69
+ "stagger": 0.06
70
+ },
71
+ {
72
+ "kind": "effect",
73
+ "effect": "swap",
74
+ "target": ".pair-dot",
75
+ "indices": [
76
+ 2,
77
+ 4,
78
+ 7,
79
+ 11,
80
+ 13,
81
+ 18
82
+ ],
83
+ "at": 2.9,
84
+ "style": {
85
+ "fill": "var(--accent)"
86
+ },
87
+ "base": {
88
+ "fill": "var(--jade)"
89
+ }
90
+ },
91
+ {
92
+ "kind": "effect",
93
+ "effect": "counter",
94
+ "target": ".pair-na",
95
+ "values": [
96
+ 70
97
+ ],
98
+ "t0": 3,
99
+ "t1": 3.9,
100
+ "easing": "eio",
101
+ "format": "int"
102
+ },
103
+ {
104
+ "kind": "effect",
105
+ "effect": "fade",
106
+ "target": ".pair-b",
107
+ "t0": 5.6
108
+ },
109
+ {
110
+ "kind": "tween",
111
+ "target": ".pair-rw",
112
+ "prop": "attr:width",
113
+ "from": 0,
114
+ "to": 91.2,
115
+ "t0": 6.2,
116
+ "t1": 7.6,
117
+ "easing": "eio",
118
+ "decimals": 1
119
+ },
120
+ {
121
+ "kind": "effect",
122
+ "effect": "counter",
123
+ "target": ".pair-nb",
124
+ "values": [
125
+ 24
126
+ ],
127
+ "t0": 6.2,
128
+ "t1": 7.6,
129
+ "easing": "eio",
130
+ "format": "int"
131
+ },
132
+ {
133
+ "kind": "tween",
134
+ "target": ".pair-bar",
135
+ "prop": "opacity",
136
+ "from": 0,
137
+ "to": 1,
138
+ "t0": 5.7,
139
+ "t1": 6.1,
140
+ "easing": "eo"
141
+ },
142
+ {
143
+ "kind": "effect",
144
+ "effect": "fade",
145
+ "target": ".pair-warn",
146
+ "t0": 10.4
147
+ },
148
+ {
149
+ "kind": "tween",
150
+ "target": ".pair-spark",
151
+ "prop": "opacity",
152
+ "from": 0,
153
+ "to": 1,
154
+ "t0": 10.4,
155
+ "t1": 10.8,
156
+ "easing": "eo"
157
+ },
158
+ {
159
+ "kind": "effect",
160
+ "effect": "draw",
161
+ "target": ".pair-sf",
162
+ "t0": 10.6,
163
+ "t1": 12
164
+ },
165
+ {
166
+ "kind": "effect",
167
+ "effect": "draw",
168
+ "target": ".pair-sr",
169
+ "t0": 10.8,
170
+ "t1": 12.2
171
+ }
172
+ ],
173
+ "css": ".pair-card { top:150px; width:460px; height:470px; box-sizing:border-box; padding:24px 28px; box-shadow:0 14px 30px rgba(0,0,0,.07) }.pair-card h4 { margin:0; width:270px; font-size:30px; line-height:1.2; font-weight:600 } .pair-card p { margin:6px 0 0; font-size:23px; line-height:1.3; color:var(--mute); width:300px }.pair-num { position:absolute; right:26px; top:18px; font-family:var(--display); font-size:64px; line-height:1 }.pair-warn { left:880px; top:650px; width:940px; height:180px; box-sizing:border-box; padding:24px 28px 24px 330px; border-color:var(--accent); box-shadow:0 14px 30px rgba(0,0,0,.08); display:flex; align-items:center; font-size:32px; line-height:1.3 }.pair-warn b { color:var(--accent); font-weight:600 } .pair-lab { font:600 20px var(--sans); letter-spacing:0.06em }",
174
+ "portrait": {
175
+ "hoist": [
176
+ ".pair-head"
177
+ ],
178
+ "frame": [
179
+ 600,
180
+ 1100
181
+ ],
182
+ "crop": [
183
+ 865,
184
+ 135,
185
+ 970,
186
+ 710
187
+ ],
188
+ "css": ".pair-head{left:70px!important;top:150px!important;width:940px!important}"
189
+ }
190
+ }
@@ -0,0 +1,162 @@
1
+ {
2
+ "components": [
3
+ {
4
+ "type": "board",
5
+ "id": "problem-bg"
6
+ },
7
+ {
8
+ "type": "raw",
9
+ "id": "chart",
10
+ "html": "<div class='card problem-chart'><h4>{{problem.1}}</h4><span class='problem-note'>{{problem.2}}</span></div>"
11
+ },
12
+ {
13
+ "type": "svg",
14
+ "id": "bars",
15
+ "body": "<line x1='940' x2='1770' y1='740' y2='740' style='stroke:var(--hair);stroke-width:3'/><rect class='problem-bar' x='960' width='54' rx='8' style='fill:var(--main)'/><rect class='problem-bar' x='1036' width='54' rx='8' style='fill:var(--main)'/><rect class='problem-bar' x='1112' width='54' rx='8' style='fill:var(--main)'/><rect class='problem-bar' x='1188' width='54' rx='8' style='fill:var(--main)'/><rect class='problem-bar' x='1264' width='54' rx='8' style='fill:var(--main)'/><rect class='problem-bar' x='1400' width='54' rx='8' style='fill:var(--main)'/><rect class='problem-bar' x='1400' width='54' rx='8' style='fill:var(--accent)'/><rect class='problem-bar' x='1476' width='54' rx='8' style='fill:var(--main)'/><rect class='problem-bar' x='1476' width='54' rx='8' style='fill:var(--accent)'/><rect class='problem-bar' x='1552' width='54' rx='8' style='fill:var(--main)'/><rect class='problem-bar' x='1552' width='54' rx='8' style='fill:var(--accent)'/><rect class='problem-bar' x='1628' width='54' rx='8' style='fill:var(--main)'/><rect class='problem-bar' x='1628' width='54' rx='8' style='fill:var(--accent)'/><rect class='problem-bar' x='1704' width='54' rx='8' style='fill:var(--main)'/><rect class='problem-bar' x='1704' width='54' rx='8' style='fill:var(--accent)'/>"
16
+ },
17
+ {
18
+ "type": "raw",
19
+ "id": "tags",
20
+ "html": "<span class='tag ok problem-ga' style='left:1139px;top:406px'>{{problem.3}}</span><span class='tag hot problem-ba' style='left:1579px;top:286px'>{{problem.4}}</span>"
21
+ },
22
+ {
23
+ "type": "raw",
24
+ "id": "key",
25
+ "html": "<div class='problem-key'><span><i style='background:var(--main)'></i>{{problem.5}}</span><span class='problem-kf'><i style='background:var(--accent)'></i>{{problem.6}}</span></div>"
26
+ },
27
+ {
28
+ "type": "head",
29
+ "id": "problem-head",
30
+ "at": "ground",
31
+ "eyebrow": "{{problem.eyebrow}}",
32
+ "line": "{{problem.line}}",
33
+ "sub": "{{problem.sub}}",
34
+ "style": "left:110px;top:300px;width:700px"
35
+ }
36
+ ],
37
+ "tracks": [
38
+ {
39
+ "kind": "effect",
40
+ "effect": "push",
41
+ "target": ".cam",
42
+ "t0": 0,
43
+ "dur": 8.5,
44
+ "from": 1,
45
+ "to": 1.02
46
+ },
47
+ {
48
+ "kind": "effect",
49
+ "effect": "showHead",
50
+ "target": ".problem-head",
51
+ "t0": -0.4
52
+ },
53
+ {
54
+ "kind": "tween",
55
+ "target": ".problem-chart",
56
+ "prop": "opacity",
57
+ "from": 0,
58
+ "to": 1,
59
+ "t0": 0.4,
60
+ "t1": 0.9,
61
+ "easing": "eo"
62
+ },
63
+ {
64
+ "kind": "effect",
65
+ "effect": "growBars",
66
+ "target": ".problem-bar",
67
+ "count": 15,
68
+ "t0s": [
69
+ 1,
70
+ 1.15,
71
+ 1.3,
72
+ 1.45,
73
+ 1.6,
74
+ 3,
75
+ 3.5,
76
+ 3.2,
77
+ 3.7,
78
+ 3.4,
79
+ 3.9,
80
+ 3.6,
81
+ 4.1,
82
+ 3.8,
83
+ 4.3
84
+ ],
85
+ "dur": 0.5,
86
+ "easing": "eob",
87
+ "o": 1.1,
88
+ "base": 740,
89
+ "hs": [
90
+ 201.6,
91
+ 240,
92
+ 220.8,
93
+ 264,
94
+ 230.39999999999998,
95
+ 144,
96
+ 172.79999999999998,
97
+ 124.80000000000001,
98
+ 211.2,
99
+ 153.6,
100
+ 192,
101
+ 134.4,
102
+ 240,
103
+ 144,
104
+ 220.8
105
+ ],
106
+ "bs": [
107
+ 0,
108
+ 0,
109
+ 0,
110
+ 0,
111
+ 0,
112
+ 0,
113
+ 144,
114
+ 0,
115
+ 124.80000000000001,
116
+ 0,
117
+ 153.6,
118
+ 0,
119
+ 134.4,
120
+ 0,
121
+ 144
122
+ ]
123
+ },
124
+ {
125
+ "kind": "effect",
126
+ "effect": "pop",
127
+ "target": ".problem-ga",
128
+ "t0": 2,
129
+ "base": "translate(-50%,0)"
130
+ },
131
+ {
132
+ "kind": "effect",
133
+ "effect": "pop",
134
+ "target": ".problem-ba",
135
+ "t0": 5,
136
+ "base": "translate(-50%,0)"
137
+ },
138
+ {
139
+ "kind": "effect",
140
+ "effect": "fade",
141
+ "target": ".problem-key",
142
+ "t0": 5.4
143
+ }
144
+ ],
145
+ "css": ".problem-chart { left:900px; top:170px; width:900px; height:640px; box-sizing:border-box; padding:26px 32px; box-shadow:0 14px 30px rgba(0,0,0,.07) }.problem-chart h4 { margin:0; font-size:24px; font-weight:600; letter-spacing:0.08em; color:var(--mute) } .problem-note { position:absolute; right:32px; top:28px; font-size:20px; color:var(--mute) }.problem-key { position:absolute; left:940px; top:840px; display:flex; gap:28px; font-size:24px; color:var(--mute) } .problem-key i { display:inline-block; width:18px; height:18px; border-radius:5px; margin-right:10px; vertical-align:-2px }",
146
+ "portrait": {
147
+ "hoist": [
148
+ ".problem-head"
149
+ ],
150
+ "frame": [
151
+ 640,
152
+ 1000
153
+ ],
154
+ "crop": [
155
+ 880,
156
+ 150,
157
+ 940,
158
+ 740
159
+ ],
160
+ "css": ".problem-head{left:70px!important;top:150px!important;width:940px!important}"
161
+ }
162
+ }
@@ -0,0 +1,19 @@
1
+ // @ts-nocheck: a scene module, run by the motion kit (src/lib/motion/films.ts), not imported.
2
+ kit.score(function (S, T) {
3
+ // Action tones only (no bed): a soft pitched note for each thing that happens.
4
+ S.tempo(70, { t0: 0 });
5
+ S.program('bell', 'vibes', { rev: 0.6, gain: -5 });
6
+ S.program('wood', 'marimba', { rev: 0.4, gain: -7, pan: 0.15 });
7
+ S.program('pl', 'pluck', { rev: 0.5, gain: -9, pan: -0.15 });
8
+ const P = (track, n, t, vel, dur) => S.note(track, n, { t, dur: dur || 0.8, vel });
9
+ S.ticks(Array.from({ length: 22 }, (_, i) => T.hook + 0.8 + i * 0.12), { vel: 10 });
10
+ P('bell', 'F5', T.hook + 3.8, 28, 1.4);
11
+ [0, 1, 2, 3, 4].forEach((i) => P('wood', ['C4', 'D4', 'E4', 'D4', 'E4'][i], T.problem + 1.0 + i * 0.15, 18, 0.3));
12
+ [0, 1, 2, 3, 4].forEach((i) => P('wood', ['F4', 'G4', 'A4', 'G4', 'A4'][i], T.problem + 3.0 + i * 0.2, 22, 0.3));
13
+ P('pl', 'C#5', T.problem + 5.0, 24, 0.6);
14
+ P('pl', 'A4', T.pair + 2.9, 22, 0.5); P('bell', 'E5', T.pair + 3.9, 24, 1.0);
15
+ P('pl', 'C5', T.pair + 6.3, 22, 0.5); S.chord('bell', ['A4', 'C5', 'E5'], { t: T.pair + 10.6, dur: 1.8, vel: 24 });
16
+ [0, 1, 2, 3, 4].forEach((i) => P('wood', ['D4', 'E4', 'F#4', 'A4', 'B4'][i], T.groups + 0.8 + i * 0.35, 20, 0.3));
17
+ S.chord('bell', ['D5', 'A5'], { t: T.groups + 4.8, dur: 1.6, vel: 26 });
18
+ S.chord('bell', ['D5', 'F#5', 'A5'], { t: T.close + 0.3, dur: 3.2, vel: 30 });
19
+ });
@@ -0,0 +1,50 @@
1
+ {
2
+ "hook.1": "TOKENS",
3
+ "hook.2": "COMMITS",
4
+ "hook.3": "LINES CHANGED",
5
+ "hook.eyebrow": "Developer productivity",
6
+ "hook.line": "More tokens. More commits. Is any of it right?",
7
+ "problem.1": "ACTIVITY PER DAY",
8
+ "problem.2": "Illustrative",
9
+ "problem.3": "Going well",
10
+ "problem.4": "Going badly",
11
+ "problem.5": "New work",
12
+ "problem.6": "Fixing",
13
+ "problem.eyebrow": "The problem",
14
+ "problem.line": "Volume is a vanity metric.",
15
+ "problem.sub": "It goes up when work goes badly too: fixing things is also activity.",
16
+ "pair.1": "First-turn resolution",
17
+ "pair.2": "Sessions done without a correction turn",
18
+ "pair.3": "Rework share",
19
+ "pair.4": "Effort that came from corrected sessions",
20
+ "pair.5": "High resolution and <b>rising rework</b>: work deferred, not done.",
21
+ "pair.8": "CORRECTED SESSIONS",
22
+ "pair.9": "THE REST",
23
+ "pair.10": "RESOLUTION",
24
+ "pair.11": "REWORK",
25
+ "pair.eyebrow": "The pair",
26
+ "pair.line": "Two numbers, read together.",
27
+ "pair.sub": "Never read a speed metric alone.",
28
+ "groups.1": "Outcome",
29
+ "groups.2": "Rework share",
30
+ "groups.3": "First-turn resolution",
31
+ "groups.4": "Spec deviation",
32
+ "groups.5": "Quality",
33
+ "groups.6": "Duplication",
34
+ "groups.7": "Edit before read",
35
+ "groups.8": "Churn",
36
+ "groups.9": "Velocity",
37
+ "groups.10": "Throughput",
38
+ "groups.11": "Time to useful result",
39
+ "groups.12": "Usage",
40
+ "groups.13": "Tokens per day",
41
+ "groups.14": "Cache reuse",
42
+ "groups.15": "Cost",
43
+ "groups.16": "Cost per result",
44
+ "groups.17": "Always shown together",
45
+ "groups.eyebrow": "In practice",
46
+ "groups.line": "Speed is never shown alone.",
47
+ "groups.sub": "Metrics grouped by what they answer, velocity next to its quality companion.",
48
+ "close.title": "Measure the right work, not more work.",
49
+ "close.sub": "Pair every speed metric with its quality companion."
50
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "hook.1": "TOKENS",
3
+ "hook.2": "COMMITS",
4
+ "hook.3": "LÍNEAS CAMBIADAS",
5
+ "hook.eyebrow": "Productividad del desarrollo",
6
+ "hook.line": "Más tokens. Más commits. ¿Algo de eso está bien?",
7
+ "problem.1": "ACTIVIDAD POR DÍA",
8
+ "problem.2": "Ilustrativo",
9
+ "problem.3": "Va bien",
10
+ "problem.4": "Va mal",
11
+ "problem.5": "Trabajo nuevo",
12
+ "problem.6": "Correcciones",
13
+ "problem.eyebrow": "El problema",
14
+ "problem.line": "El volumen es una métrica de vanidad.",
15
+ "problem.sub": "También sube cuando el trabajo va mal: corregir también es actividad.",
16
+ "pair.1": "Resolución al primer intento",
17
+ "pair.2": "Sesiones terminadas sin un turno de corrección",
18
+ "pair.3": "Cuota de retrabajo",
19
+ "pair.4": "Esfuerzo que vino de sesiones corregidas",
20
+ "pair.5": "Resolución alta y <b>retrabajo en aumento</b>: trabajo aplazado, no hecho.",
21
+ "pair.8": "SESIONES CORREGIDAS",
22
+ "pair.9": "EL RESTO",
23
+ "pair.10": "RESOLUCIÓN",
24
+ "pair.11": "RETRABAJO",
25
+ "pair.eyebrow": "El par",
26
+ "pair.line": "Dos números, leídos juntos.",
27
+ "pair.sub": "Nunca leas una métrica de velocidad sola.",
28
+ "groups.1": "Resultado",
29
+ "groups.2": "Cuota de retrabajo",
30
+ "groups.3": "Resolución al primer intento",
31
+ "groups.4": "Desvío de la especificación",
32
+ "groups.5": "Calidad",
33
+ "groups.6": "Duplicación",
34
+ "groups.7": "Editar antes de leer",
35
+ "groups.8": "Rotación",
36
+ "groups.9": "Velocidad",
37
+ "groups.10": "Rendimiento",
38
+ "groups.11": "Tiempo hasta un resultado útil",
39
+ "groups.12": "Uso",
40
+ "groups.13": "Tokens por día",
41
+ "groups.14": "Reutilización de caché",
42
+ "groups.15": "Coste",
43
+ "groups.16": "Coste por resultado",
44
+ "groups.17": "Siempre juntos",
45
+ "groups.eyebrow": "En la práctica",
46
+ "groups.line": "La velocidad nunca va sola.",
47
+ "groups.sub": "Métricas agrupadas por lo que responden, la velocidad junto a su compañera de calidad.",
48
+ "close.title": "Mide el trabajo correcto, no más trabajo.",
49
+ "close.sub": "Acompaña cada métrica de velocidad con su compañera de calidad."
50
+ }