decklight 0.9.0 → 0.11.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.
Files changed (133) hide show
  1. package/NOTICE +2 -0
  2. package/PLATFORM.md +61 -3
  3. package/README.md +58 -28
  4. package/SPEC.md +1326 -85
  5. package/cli/agent-review.mjs +5 -4
  6. package/cli/agents.mjs +148 -18
  7. package/cli/bundle-audio.mjs +10 -3
  8. package/cli/bundle-module.mjs +95 -0
  9. package/cli/bundle.mjs +125 -7
  10. package/cli/cast.mjs +86 -19
  11. package/cli/check-fixes.mjs +194 -0
  12. package/cli/check-watch.mjs +151 -0
  13. package/cli/check.mjs +491 -75
  14. package/cli/code-editor.mjs +287 -0
  15. package/cli/commands.mjs +13 -2
  16. package/cli/commit-flow.mjs +7 -3
  17. package/cli/commit-message.mjs +35 -8
  18. package/cli/commit-split.mjs +125 -25
  19. package/cli/deck-refs.mjs +8 -3
  20. package/cli/decklight.mjs +11 -1
  21. package/cli/design-system-edit.mjs +37 -1
  22. package/cli/design-system-refs.mjs +263 -6
  23. package/cli/design-system.mjs +82 -14
  24. package/cli/edit-address.mjs +184 -0
  25. package/cli/edit-git.mjs +23 -6
  26. package/cli/edit-handover.mjs +257 -40
  27. package/cli/edit-look.mjs +293 -6
  28. package/cli/edit-open.mjs +143 -0
  29. package/cli/edit-slides.mjs +1043 -67
  30. package/cli/edit-translate.mjs +243 -0
  31. package/cli/edit.mjs +3680 -319
  32. package/cli/editor-support.mjs +286 -0
  33. package/cli/enhance.mjs +157 -27
  34. package/cli/find-replace.mjs +142 -0
  35. package/cli/fix-review.mjs +368 -0
  36. package/cli/git.mjs +13 -0
  37. package/cli/init.mjs +101 -22
  38. package/cli/keep-awake.mjs +68 -0
  39. package/cli/marketplace-autocheck.mjs +200 -0
  40. package/cli/marketplace.mjs +250 -13
  41. package/cli/migrate-writing.mjs +214 -0
  42. package/cli/narrate.mjs +121 -5
  43. package/cli/open.mjs +53 -15
  44. package/cli/outside-edit.mjs +257 -0
  45. package/cli/paste.mjs +92 -0
  46. package/cli/pdf.mjs +88 -10
  47. package/cli/pptx-export.mjs +10 -5
  48. package/cli/publish.mjs +24 -3
  49. package/cli/record.mjs +86 -15
  50. package/cli/remote.mjs +32 -6
  51. package/cli/rewrite.mjs +265 -0
  52. package/cli/runtime-link.mjs +218 -17
  53. package/cli/serve.mjs +9 -6
  54. package/cli/setup.mjs +2 -2
  55. package/cli/skill-content.mjs +251 -10
  56. package/cli/skills/slide-writing.md +333 -0
  57. package/cli/skills/voiceover.md +423 -0
  58. package/cli/skills.mjs +282 -15
  59. package/cli/starter-full.mjs +353 -0
  60. package/cli/supervise.mjs +14 -0
  61. package/cli/theme-refs.mjs +14 -2
  62. package/cli/theme.mjs +3 -2
  63. package/cli/translate-core.mjs +466 -0
  64. package/cli/translate-files.mjs +149 -0
  65. package/cli/translate.mjs +458 -0
  66. package/cli/units.mjs +75 -7
  67. package/cli/util.mjs +25 -0
  68. package/cli/vocabulary-docs.mjs +138 -0
  69. package/dist/decklight.css +2506 -113
  70. package/dist/decklight.js +385 -175
  71. package/dist/decklight.js.map +4 -4
  72. package/docs/GLOSSARY.md +9 -2
  73. package/docs/WRITING_RESEARCH.md +327 -0
  74. package/package.json +5 -3
  75. package/themes/coastal.css +3 -0
  76. package/themes/metropolis.css +2 -0
  77. package/themes/reveal-blood.css +3 -0
  78. package/themes/reveal-league.css +2 -0
  79. package/themes/reveal-moon.css +2 -0
  80. package/themes/reveal-serif.css +1 -0
  81. package/themes/reveal-sky.css +1 -0
  82. package/themes/reveal-solarized.css +4 -0
  83. package/tools/brand-palette.mjs +6 -1
  84. package/tools/build-groups.mjs +28 -8
  85. package/tools/cdp.mjs +176 -0
  86. package/tools/chart-spec.mjs +242 -0
  87. package/tools/click-match.mjs +70 -0
  88. package/tools/code-options.mjs +174 -0
  89. package/tools/conversation.mjs +49 -0
  90. package/tools/deck-family.mjs +101 -0
  91. package/tools/deck-html.mjs +212 -15
  92. package/tools/design-system-format.mjs +40 -1
  93. package/tools/design-system-migrations.mjs +207 -0
  94. package/tools/diagram-shapes.mjs +221 -0
  95. package/tools/elevenlabs-tts.mjs +62 -53
  96. package/tools/exec.mjs +10 -2
  97. package/tools/face-clip.mjs +96 -0
  98. package/tools/face-layout.mjs +94 -0
  99. package/tools/gemini-tts.mjs +1 -1
  100. package/tools/invisible-in-print.mjs +27 -0
  101. package/tools/lipsync-auto.mjs +197 -0
  102. package/tools/lipsync-config.mjs +16 -0
  103. package/tools/lipsync-engines.mjs +22 -4
  104. package/tools/lipsync-server.mjs +8 -5
  105. package/tools/lipsync.mjs +122 -30
  106. package/tools/local-voice.mjs +1 -1
  107. package/tools/mouth-file.mjs +26 -0
  108. package/tools/mouth.mjs +320 -0
  109. package/tools/narration-manifest.mjs +100 -6
  110. package/tools/narration-synth.mjs +96 -76
  111. package/tools/recording-impact.mjs +16 -1
  112. package/tools/sentences.mjs +7 -1
  113. package/tools/site-clip.mjs +114 -0
  114. package/tools/starters.mjs +402 -0
  115. package/tools/steps.mjs +118 -0
  116. package/tools/take-check.mjs +146 -0
  117. package/tools/template-theme.mjs +3 -1
  118. package/tools/test-impact.mjs +36 -12
  119. package/tools/theme-check.mjs +196 -1
  120. package/tools/tone-cue.mjs +108 -0
  121. package/tools/tts-cache.mjs +9 -3
  122. package/tools/tts-engines.mjs +100 -11
  123. package/tools/video-cache.mjs +93 -0
  124. package/tools/video-live.mjs +349 -0
  125. package/tools/video-options.mjs +11 -0
  126. package/tools/video.mjs +825 -117
  127. package/tools/viseme-fit.mjs +27 -0
  128. package/tools/viseme-match.mjs +77 -0
  129. package/tools/vocabulary.mjs +397 -0
  130. package/tools/voice-renumber.mjs +605 -0
  131. package/tools/voiceover-server.mjs +42 -11
  132. package/tools/voiceover.mjs +48 -20
  133. package/dist/build-info.json +0 -1
@@ -0,0 +1,138 @@
1
+ // Copyright 2026 Gilles Philippart
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ /**
5
+ * What each word of tools/vocabulary.mjs means, for a person: where an
6
+ * attribute goes (when that matters) and one line on what it does, and the
7
+ * same line for each configuration key. Joined to the table by name when the
8
+ * editor support files are written (cli/editor-support.mjs).
9
+ *
10
+ * Here and not in the table because the table ships in the runtime, and so in
11
+ * every self-contained and published deck, while only the CLI ever says these
12
+ * words. test/editor-support.test.mjs fails when an attribute or a key in the
13
+ * table has no line here, or a line here names nothing in the table.
14
+ */
15
+
16
+ export const ATTRIBUTE_DOCS = {
17
+ 'data-layout': { on: 'section', desc: 'How the slide is laid out: auto, centered, a pinned title, top, or split into two sides (split-flip mirrors them).' },
18
+ 'data-template': { on: 'section', desc: 'The design-system slide template this slide is built on, as system/template.' },
19
+ 'data-pin': { on: 'section', desc: 'Pin the title: bare forces the pin, none opts out, a number is its Y in design px.' },
20
+ 'data-subtitle': { on: 'section', desc: 'none: the paragraph after the title is not made its subtitle.' },
21
+ 'data-transition': { on: 'section', desc: 'The transition into this slide, over the deck\'s own.' },
22
+ 'data-auto-animate': { on: 'section', desc: 'Magic Move from the slide before: elements sharing a data-id move, the rest fade.' },
23
+ 'data-hidden': { on: 'section', desc: 'A slide the audience does not see. It keeps its number.' },
24
+ 'data-module': { on: 'section', desc: 'Starts a chapter with this title; every slide after it belongs to it.' },
25
+ 'data-steps': { on: 'section', desc: 'Starts a run of slides that shows where it is, naming its groups: Foundation, Tools, The agent.' },
26
+ 'data-steps-count': { on: 'section that starts a run', desc: 'The strip also says which slide of the run this is: 3 of 7.' },
27
+ 'data-steps-end': { on: 'section', desc: 'The run before ends here: this slide is the first one after it.' },
28
+ 'data-background-image': { on: 'section', desc: 'An image behind the whole slide.' },
29
+ 'data-background-video': { on: 'section', desc: 'A muted, looping video behind the slide while it is on.' },
30
+ 'data-background-poster': { on: 'section', desc: 'The still that stands in for the background video (print needs it).' },
31
+ 'data-background-size': { on: 'section', desc: 'How the background image fills the slide (default cover).' },
32
+ 'data-background-position': { on: 'section', desc: 'Where the background image sits (default center).' },
33
+ 'data-background-dim': { on: 'section', desc: 'Dims the background media toward the canvas, 0 to 1, so text reads.' },
34
+ 'data-logo': { on: 'section', desc: 'A large copy of the deck\'s logo above the content; a number is its height in px.' },
35
+ 'data-math': { on: 'section', desc: 'Renders the LaTeX on this slide.' },
36
+ 'data-static-ok': { on: 'section or svg', desc: 'This diagram is meant to land all at once: no hint for it.' },
37
+ 'data-dense-ok': { on: 'section', desc: 'This slide is meant to be dense: no crowded warning for it.' },
38
+ 'data-timing': { on: 'section', desc: 'Planned seconds on this slide, for rehearsal.' },
39
+ 'data-face': { on: 'section', desc: 'Where the filmed face shows on this slide: a corner, hide, or full with a zoom.' },
40
+ 'data-face-keep': { on: 'slide content or section', desc: 'Keep this element over a full-screen narrator. Set to none on the section to hide all slide content, including template defaults.' },
41
+ 'data-narration': { on: 'section', desc: 'hold: narration never moves off this slide by itself.' },
42
+ 'data-narration-pause': { on: 'section', desc: 'Seconds the slide holds after its narration ends.' },
43
+ 'data-narration-beat-pause': { on: 'section', desc: 'Seconds between one build\'s narration and the next.' },
44
+ 'data-narration-sentence-pause': { on: 'section', desc: 'Seconds between two sentences of one beat.' },
45
+ 'data-video-hold': { on: 'section', desc: 'Seconds this slide holds in a video export.' },
46
+ 'data-build': { desc: 'Reveal in steps: on a container each child is a step, on a leaf the element is one. The value is the entrance.' },
47
+ 'data-build-order': { desc: 'The click this step comes on, over document order; equal numbers arrive together.' },
48
+ 'data-build-stay': { on: 'child of a data-build container', desc: 'This child is not a step: it is there from the start.' },
49
+ 'data-build-self': { desc: 'A container that is one step itself, not one per child.' },
50
+ 'data-build-with': { desc: 'This step arrives on the click of the step just before it.' },
51
+ 'data-draw-stops': { on: 'stroke in a draw build', desc: 'Draws one stroke in stages: path lengths, or fractions of it.' },
52
+ 'data-draw-speed': { on: 'stroke in a draw build', desc: 'Pace of a staged stroke, in path units per second (default 300).' },
53
+ 'data-along-wire': { on: 'svg g with data-build="travel"', desc: 'The data-wire a token travels along when this step plays, start to end.' },
54
+ 'data-label': { on: 'svg g with data-build="travel"', desc: 'Makes the travelling token a small chip with these words.' },
55
+ 'data-travel-ms': { on: 'svg g with data-build="travel"', desc: 'How long the token takes from start to end, in ms (default four build durations).' },
56
+ 'data-arrive': { on: 'svg g with data-build="travel"', desc: 'What the token does at the end: fade (default), stay, or pulse the node it reaches.' },
57
+ 'data-travel-repeat': { on: 'svg g with data-build="travel"', desc: 'The token keeps travelling while this step is the current one.' },
58
+ 'data-node': { on: 'svg shape or group', desc: 'Names this box so a connector can join it.' },
59
+ 'data-from': { on: 'svg line, path or polyline', desc: 'The data-node this wire starts at.' },
60
+ 'data-to': { on: 'svg line, path or polyline', desc: 'The data-node this wire ends at.' },
61
+ 'data-route': { on: 'svg line, path or polyline', desc: 'How the wire runs between its nodes (default straight).' },
62
+ 'data-wire': { on: 'svg line, path or polyline', desc: 'Names this wire so a label can ride on it, or a token travel along it.' },
63
+ 'data-on-wire': { on: 'svg text', desc: 'The data-wire this label rides on: it follows the wire when its ends move or its route changes.' },
64
+ 'data-along': { on: 'svg text with data-on-wire', desc: 'How far along its wire the label sits, 0 to 1 (default 0.5, the middle).' },
65
+ 'data-shape': { on: 'svg polygon or path', desc: 'Which shape it is, so write mode redraws it when it is resized and a wire stops at its outline.' },
66
+ 'data-group': { on: 'svg g', desc: 'A group of shapes: one click selects it whole, a second click a shape in it.' },
67
+ 'data-concept': { on: 'svg shape or group, or a turn of div.conversation', desc: 'Colours the shape by meaning: one concept, one colour, deck-wide.' },
68
+ 'data-nest': { on: 'svg shape or group', desc: 'off: keep the authored fill inside a filled panel; on: nest a shape the box test misses.' },
69
+ 'data-id': { desc: 'Matches this element across two auto-animate slides.' },
70
+ 'data-animate': { desc: 'A looping attention animation while the slide is on.' },
71
+ 'data-write': { desc: 'Reveal plain text letter by letter. Use out to fade after writing or off to opt out.' },
72
+ 'data-write-after': { desc: 'Reveal this element once the last animated character on the slide appears.' },
73
+ 'data-chart': { on: 'div.chart', desc: 'A chart drawn from the JSON inside it.' },
74
+ 'data-title': { on: 'chart or terminal', desc: 'The chart\'s title, or the terminal\'s window title.' },
75
+ 'data-aspect': { on: 'div.chart', desc: 'The chart\'s shape as w:h (default 16:9).' },
76
+ 'data-lines': { on: 'pre', desc: 'Steps through the code by lines, as segments: 1|3-5|all.' },
77
+ 'data-lines-numbers': { on: 'pre', desc: 'Shows line numbers.' },
78
+ 'data-lines-end': { on: 'pre', desc: 'all: the line walk ends with every line lit, with no extra click.' },
79
+ 'data-lines-print': { on: 'pre', desc: 'last: print and export the walk\'s last step, dimming and all (by default a stepped block prints whole).' },
80
+ 'data-callouts': { on: 'pre', desc: 'A callout a line step, shown beside its lines while it is the step: The model|The tools (\\| is a bar in one).' },
81
+ 'data-callouts-keep': { on: 'pre', desc: 'Earlier steps\' callouts stay on screen, muted, so the last step shows the whole block annotated.' },
82
+ 'data-for': { on: 'aside.callouts', desc: 'The id of the stepped code block these callouts label (by default, the slide\'s next one).' },
83
+ 'data-step': { on: 'section in a run, or an entry of aside.callouts', desc: 'In a run: the slide\'s group (default: the one before). On a callout: the line step it labels, from 1.' },
84
+ 'data-fit': { on: 'pre, or what holds several', desc: 'Sizes the code to the room the slide gives it: bare, it only shrinks long code; fill, it grows short code too, up to --code-max-size.' },
85
+ 'data-figure': { on: 'p in div.figure', desc: 'The figure\'s value, set large in the accent: a number and its sign or unit (94%, $1.2M, 3×), a few characters.' },
86
+ 'data-count': { on: '[data-figure]', desc: 'Counts the value up from 0 when its slide or build step arrives, its prefix, suffix, decimals and separators kept.' },
87
+ 'data-count-from': { on: '[data-figure]', desc: 'Where a count starts, a plain number (default 0).' },
88
+ 'data-role': { on: 'a turn of div.conversation', desc: 'Who speaks: user (on the right), agent, tool, system, or any word, shown as the turn\'s label.' },
89
+ 'data-kind': { on: 'a turn of div.conversation', desc: 'thought: muted and italic; tool-call: a call, in monospace, coloured as code; speech (the default): words.' },
90
+ 'data-name': { on: 'a tool\'s turn of div.conversation', desc: 'The tool\'s name, shown after its role in the turn\'s label.' },
91
+ 'data-cast': { on: 'div.terminal', desc: 'The recorded session to play, a .cast.json file.' },
92
+ 'data-cast-inline': { on: 'div.terminal', desc: 'The recorded session embedded in this page, as #id of its script block.' },
93
+ 'data-mode': { on: 'div.terminal', desc: 'step: one command per click; play: it plays through.' },
94
+ 'data-rows': { on: 'div.terminal', desc: 'The terminal\'s height in rows.' },
95
+ 'data-type-speed': { on: 'div.terminal', desc: 'Typing speed, 1 (slow) to 10 (fast).' },
96
+ 'data-max-step': { on: 'div.terminal', desc: 'The longest a step may play, in seconds.' },
97
+ 'data-speed': { on: 'div.terminal', desc: 'Initial playback speed.' },
98
+ 'data-type-sound': { on: 'div.terminal', desc: 'The keyboard\'s sound (default thocky).' },
99
+ 'data-scroll-ok': { desc: 'This element scrolls on purpose: not counted as clipped.' },
100
+ 'data-invisible-ok': { desc: 'This element is hidden on purpose: not reported as missing from print.' },
101
+ 'data-no-advance': { desc: 'A click on this element does not advance the deck.' },
102
+ 'data-slot': { desc: 'The template slot this element fills (on a slide) or is (in a template).' },
103
+ 'data-slot-hint': { on: 'template', desc: 'What an author is expected to put in this slot, e.g. h1,h2.' },
104
+ 'data-slot-required': { on: 'template', desc: 'This slot must be filled.' },
105
+ 'data-slot-default': { on: 'template', desc: 'Where content that names no slot lands.' },
106
+ 'data-ds-bleed': { on: 'template', desc: 'This element\'s background is the slide\'s art, painted to the screen\'s edges.' },
107
+ 'data-decklight-config': { on: 'script', desc: 'The deck\'s configuration block, as JSON.' },
108
+ 'data-theme': { on: 'style', desc: 'A theme carried in the page, by name.' },
109
+ };
110
+
111
+ export const CONFIG_DOCS = {
112
+ decklight: 'The Decklight version this deck was written for.',
113
+ theme: 'The theme the deck opens on (default aurora).',
114
+ transition: 'The slide transition (default fade).',
115
+ hash: 'Keep the slide and build step in the URL (default true).',
116
+ controls: 'Show the previous and next chevrons (default true).',
117
+ slideNumber: 'Show the slide number: false, \"n\" or \"n/N\" (default false).',
118
+ width: 'The design width in px (default 1280).',
119
+ height: 'The design height in px (default 720).',
120
+ pinTitles: 'Pin slide titles at one height: true, false, or a Y in px (default true).',
121
+ themes: 'The themes the picker offers, by name (default: every shipped theme).',
122
+ markedThemes: 'Marketplace themes the deck uses, as name@marketplace.',
123
+ themeSources: 'Where each marketplace the deck references comes from.',
124
+ brandThemesOnly: 'Hold a design-system deck to its brand\'s themes (default true).',
125
+ designSystems: 'The design systems the deck is built on, as name@marketplace.',
126
+ designSystemVersions: 'The version of each design system the deck was written for.',
127
+ fonts: 'Marketplace fonts the deck uses, as name@marketplace.',
128
+ font: 'The font the deck is set in.',
129
+ concepts: 'Diagram concepts pinned to a fill slot (1 to 6) or a colour.',
130
+ roleConcepts: 'A conversation\'s roles as concepts, { "agent": "agent" }: the role\'s turns painted as that concept\'s shapes are.',
131
+ logo: 'The brand mark: { onLight, onDark, src, height, position }.',
132
+ playlist: 'Decks that play one after another, as file paths.',
133
+ narration: 'The deck\'s voice: recorded tracks (files), the live bridge and its pauses.',
134
+ bleed: 'Paint a slide\'s background art to the screen\'s edges (default true).',
135
+ edit: 'Write mode: { url } of the edit server to use.',
136
+ languages: 'The languages this deck is translated into (BCP 47 tags: "fr", "pt-BR"); decklight translate writes each as talk.<lang>.html.',
137
+ translationOf: 'Written by decklight translate in a translation: the file it is a translation of. Nobody types it.',
138
+ };