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,353 @@
1
+ // Copyright 2026 Gilles Philippart
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ /**
5
+ * `decklight init --starter full`: the reference starter. One slide per thing
6
+ * a slide can hold, each preceded by a comment that names what it shows and
7
+ * the SPEC section to read, because an author working by hand copies from
8
+ * what is in front of them, and the two-slide basic starter shows a build and
9
+ * nothing else.
10
+ *
11
+ * Every slide here is held to what it teaches: `decklight check` finds
12
+ * nothing on it (no warning, no hint), every build has its [click] beat in
13
+ * the notes, nothing is crowded past SLIDE_DENSITY, every colour is a theme
14
+ * token (so the contrast gates every theme passes are the ones it is judged
15
+ * by), and nothing needs a file beside the deck, so the linked and the
16
+ * self-contained scaffold are the same slides. test/init-starter.test.mjs
17
+ * and test/starter-render.mjs hold it to that.
18
+ *
19
+ * No terminal slide: a terminal plays a recording `decklight cast` made in a
20
+ * real shell, and a cast written here by hand would be the one untruthful
21
+ * terminal in the deck.
22
+ */
23
+
24
+ /** The starters `init --starter` takes, the default first. */
25
+ export const STARTERS = ['basic', 'full'];
26
+
27
+ /** How a comment names the section to read: by mnemonic, never by number. */
28
+ const SPEC = (mnemonic) => `SPEC: ${mnemonic}`;
29
+
30
+ // A picture that needs no file beside the deck: a small SVG as a data: URI.
31
+ // Its own colours, like any photo; the slide says to swap in a real file.
32
+ const PICTURE = `data:image/svg+xml,${[
33
+ "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 300'>",
34
+ "<rect width='480' height='300' fill='#9cc5e3'/>",
35
+ "<circle cx='368' cy='84' r='40' fill='#ffd166'/>",
36
+ "<path d='M0 236 L120 126 L208 198 L304 104 L480 244 V300 H0Z' fill='#4f7591'/>",
37
+ "<path d='M0 262 Q150 206 300 252 T480 246 V300 H0Z' fill='#2f4858'/>",
38
+ '</svg>',
39
+ ].join('').replace(/#/g, '%23').replace(/</g, '%3C').replace(/>/g, '%3E')}`;
40
+
41
+ /** The slides after the title slide, at the deck's indentation. */
42
+ function featureSlides() {
43
+ return `
44
+ <!-- A module marker: data-module on a section starts a chapter, which lasts until the next marker. ${SPEC('DECK_ANATOMY')} -->
45
+ <section data-module="Words">
46
+ <h1>Words</h1>
47
+ <p>This slide starts a chapter: its name shows by the slide number, and G lists the chapters</p>
48
+ <aside class="notes">
49
+ <p>A long deck reads better in chapters. One attribute on the slide that starts one is all it takes, and every slide after it belongs to that chapter until the next.</p>
50
+ <p>This deck has three: words, pictures and data, and handing it over.</p>
51
+ </aside>
52
+ </section>
53
+
54
+ <!-- Bullets that build: data-build on the list makes each item one click; its value is the entrance. ${SPEC('BUILD_AUTHORING')} -->
55
+ <section>
56
+ <h2>Points, one click at a time</h2>
57
+ <ul data-build="fade-up">
58
+ <li><code>data-build</code> goes on the list, nothing on the items</li>
59
+ <li>Each item arrives on its own click, in order</li>
60
+ <li><code>fade-up</code> is the entrance; <code>zoom</code> and <code>pop</code> are others</li>
61
+ </ul>
62
+ <aside class="notes">
63
+ <p>A list that builds keeps the room with you: nobody reads ahead of what you are saying.</p>
64
+ <p>[click]</p>
65
+ <p>The attribute goes on the list, and every item in it becomes one step.</p>
66
+ <p>[click]</p>
67
+ <p>Each press of the arrow brings the next one, and the left arrow takes it back.</p>
68
+ <p>[click]</p>
69
+ <p>The value names the entrance. Leave it empty for a plain fade.</p>
70
+ </aside>
71
+ </section>
72
+
73
+ <!-- Speaker notes: the notes aside, cut into beats by [click] lines, one per build step, with [pause] for a held beat. ${SPEC('DECK_ANATOMY')} -->
74
+ <section>
75
+ <h2>What you say goes in the notes</h2>
76
+ <p>Press S for the speaker view: these notes, the next slide and a timer</p>
77
+ <p data-build>A <code>[click]</code> line in the notes starts the beat for the next build step</p>
78
+ <p data-build><code>[pause]</code> holds a moment where it stands; no voice ever says it</p>
79
+ <aside class="notes">
80
+ <p>The notes are for you, never for the audience. A voice can read them aloud too, so write them the way you would say them.</p>
81
+ <p>[click]</p>
82
+ <p>Each click marker starts the beat for the next build, so the words land with what appears.</p>
83
+ <p>[click]</p>
84
+ <p>And a pause marker holds a moment, [pause] like that, without a word said.</p>
85
+ </aside>
86
+ </section>
87
+
88
+ <!-- A comparison slide: data-layout="split" makes the first two blocks columns and a third a footer under both. ${SPEC('COMPARISON_SLIDES')} -->
89
+ <section data-layout="split">
90
+ <h2>Linked or self-contained?</h2>
91
+ <div>
92
+ <h3>Linked</h3>
93
+ <ul>
94
+ <li>Slides and settings only</li>
95
+ <li>Runs the installed decklight</li>
96
+ <li>Small git diffs</li>
97
+ </ul>
98
+ </div>
99
+ <div>
100
+ <h3>Self-contained</h3>
101
+ <ul>
102
+ <li>Runtime and themes inside</li>
103
+ <li>Opens from disk</li>
104
+ <li>Pinned to its version</li>
105
+ </ul>
106
+ </div>
107
+ <p><code>decklight bundle</code> makes a linked deck self-contained</p>
108
+ <aside class="notes">
109
+ <p>Two blocks become the two columns, and a third becomes a footer under both. Nothing else is needed: no flexbox of your own.</p>
110
+ <p>A linked deck is the one you write: small, and it always runs the version you have installed. The self-contained one is the one you send.</p>
111
+ </aside>
112
+ </section>
113
+
114
+ <!-- A table: a thead for the header row; data-build on the table brings its body rows in one click each. ${SPEC('BUILD_AUTHORING')} -->
115
+ <section>
116
+ <h2>Which attribute does what</h2>
117
+ <table data-build>
118
+ <thead>
119
+ <tr><th>To get</th><th>Write</th></tr>
120
+ </thead>
121
+ <tbody>
122
+ <tr><td>Points one at a time</td><td><code>data-build</code> on the list</td></tr>
123
+ <tr><td>Two columns</td><td><code>data-layout="split"</code> on the section</td></tr>
124
+ <tr><td>A new chapter</td><td><code>data-module="Name"</code> on the section</td></tr>
125
+ <tr><td>Code that fits its slide</td><td><code>data-fit</code> on the code block</td></tr>
126
+ </tbody>
127
+ </table>
128
+ <aside class="notes">
129
+ <p>A table is plain HTML: a header row, then a row per line. With a build on it, the rows arrive one at a time.</p>
130
+ <p>[click]</p>
131
+ <p>Builds, on any list.</p>
132
+ <p>[click]</p>
133
+ <p>Columns, for a comparison.</p>
134
+ <p>[click]</p>
135
+ <p>Chapters, for a long deck.</p>
136
+ <p>[click]</p>
137
+ <p>And code that sizes itself to the room it has.</p>
138
+ </aside>
139
+ </section>
140
+
141
+ <!-- Figures: one large value over its label; a row of them in div.figures, one a click with data-build, and data-count counts a value up as it arrives. ${SPEC('DECK_ANATOMY')} -->
142
+ <section>
143
+ <h2>When a number is the point</h2>
144
+ <div class="figures" data-build>
145
+ <div class="figure">
146
+ <p data-figure data-count>1</p>
147
+ <p>file to hand over</p>
148
+ </div>
149
+ <div class="figure">
150
+ <p data-figure data-count>100%</p>
151
+ <p>plain HTML</p>
152
+ </div>
153
+ <div class="figure">
154
+ <p data-figure>0</p>
155
+ <p>build steps</p>
156
+ </div>
157
+ </div>
158
+ <aside class="notes">
159
+ <p>When one number carries a slide, the number is the slide: a figure, set large by the theme.</p>
160
+ <p>[click]</p>
161
+ <p>One file to hand over.</p>
162
+ <p>[click]</p>
163
+ <p>All of it plain HTML.</p>
164
+ <p>[click]</p>
165
+ <p>And no build step at all.</p>
166
+ </aside>
167
+ </section>
168
+
169
+ <!-- A conversation: turns with data-role (user on the right), data-kind for a thought or a tool call, a turn a click with data-build; a call and JSON are coloured as code. ${SPEC('DECK_ANATOMY')} -->
170
+ <section>
171
+ <h2>An agent, one turn at a time</h2>
172
+ <div class="conversation" data-build>
173
+ <p data-role="user">Make me a deck about our cache.</p>
174
+ <p data-role="agent" data-kind="thought">One file, plain HTML: I can write that.</p>
175
+ <p data-role="agent" data-kind="tool-call">write_file("cache.html")</p>
176
+ <p data-role="tool" data-name="write_file">{ "ok": true, "slides": 6 }</p>
177
+ <p data-role="agent">Six slides in cache.html, ready to edit.</p>
178
+ </div>
179
+ <aside class="notes">
180
+ <p>An exchange with an agent is a conversation: written as turns, drawn as a transcript.</p>
181
+ <p>[click]</p>
182
+ <p>The user asks.</p>
183
+ <p>[click]</p>
184
+ <p>The agent thinks.</p>
185
+ <p>[click]</p>
186
+ <p>It calls a tool.</p>
187
+ <p>[click]</p>
188
+ <p>The tool answers.</p>
189
+ <p>[click]</p>
190
+ <p>And the agent replies.</p>
191
+ </aside>
192
+ </section>
193
+
194
+ <!-- A code block: a language class to highlight it, data-fit to size it, data-lines to step through its lines. ${SPEC('CODE_AND_MATH')} -->
195
+ <section>
196
+ <h2>Code, one part at a time</h2>
197
+ <pre data-fit data-lines="2|3-6|7|all"><code class="language-html">&lt;section>
198
+ &lt;h2>A slide&lt;/h2>
199
+ &lt;ul data-build>
200
+ &lt;li>One point&lt;/li>
201
+ &lt;li>Another&lt;/li>
202
+ &lt;/ul>
203
+ &lt;aside class="notes">What you say&lt;/aside>
204
+ &lt;/section></code></pre>
205
+ <p>Inside a code block, write <code>&amp;lt;</code> for every <code>&lt;</code></p>
206
+ <aside class="notes">
207
+ <p>This is a whole slide, written as code. Each click lights up the part being talked about.</p>
208
+ <p>[click]</p>
209
+ <p>A title.</p>
210
+ <p>[click]</p>
211
+ <p>A list that builds.</p>
212
+ <p>[click]</p>
213
+ <p>The notes: what you say, never shown to the room.</p>
214
+ <p>[click]</p>
215
+ <p>And all of it together is a slide. Copy any slide in this deck the same way.</p>
216
+ </aside>
217
+ </section>
218
+
219
+ <!-- Math: data-math on the section, then LaTeX between $$ and $$, or between \\( and \\) inside a sentence. ${SPEC('CODE_AND_MATH')} -->
220
+ <section data-math>
221
+ <h2>Math, written as LaTeX</h2>
222
+ <p>Between double dollar signs, on a slide marked for math</p>
223
+ <p>$$L = \\lambda W$$</p>
224
+ <p>Little's law: the queue \\(L\\) is the arrival rate \\(\\lambda\\) times the wait \\(W\\)</p>
225
+ <aside class="notes">
226
+ <p>Math is written as LaTeX and drawn by the browser, with nothing to fetch. Only a slide that asks for it is read for math, so a dollar sign anywhere else stays a dollar sign.</p>
227
+ </aside>
228
+ </section>
229
+
230
+ <!-- A picture: an img element with alt text; split sets it beside its words. This slide also starts the next chapter. ${SPEC('DECK_ANATOMY')} -->
231
+ <section data-module="Pictures and data" data-layout="split">
232
+ <h2>A picture</h2>
233
+ <ul>
234
+ <li>Drop one onto a slide in the browser, or keep the file beside the deck</li>
235
+ <li><code>alt</code> says what it shows</li>
236
+ <li><code>data-background-image</code> fills the whole slide</li>
237
+ </ul>
238
+ <img src="${PICTURE}" alt="Two blue hills under a yellow sun">
239
+ <aside class="notes">
240
+ <p>A picture is an image element with a file beside the deck, and its alt text says what it shows for anyone who cannot see it.</p>
241
+ <p>This one is written into the deck itself, so the starter needs no file. Swap in your own.</p>
242
+ </aside>
243
+ </section>
244
+
245
+ <!-- A chart: JSON in, a theme-coloured SVG out; data-build="draw" draws one series per click. ${SPEC('CHARTS')} -->
246
+ <section>
247
+ <h2>A chart, from numbers</h2>
248
+ <p>The numbers are JSON inside the chart; its colours are the theme's</p>
249
+ <div class="chart" data-chart="bar" data-title="Minutes per rehearsal" data-aspect="5:2" data-build="draw">
250
+ <script type="application/json">
251
+ { "labels": ["First run", "Second run", "Third run"],
252
+ "series": [ { "name": "Talk", "data": [34, 27, 22] },
253
+ { "name": "Questions", "data": [6, 8, 10] } ] }
254
+ </script>
255
+ </div>
256
+ <aside class="notes">
257
+ <p>A chart is data, not a picture of data: change a number and the chart follows, in every theme.</p>
258
+ <p>[click]</p>
259
+ <p>The talk got shorter with each rehearsal.</p>
260
+ <p>[click]</p>
261
+ <p>And the time left for questions grew.</p>
262
+ </aside>
263
+ </section>
264
+
265
+ <!-- A diagram: boxes named with data-node, wires that join them by name (data-from, data-to) and follow them when they move, drawn one group per click. ${SPEC('SVG_DIAGRAMS')} -->
266
+ <section>
267
+ <h2>A diagram that builds</h2>
268
+ <p>Each box names itself; each wire names the two boxes it joins</p>
269
+ <svg viewBox="0 0 800 250" width="800" data-build="draw" role="img" aria-label="deck.html is served by decklight to a browser">
270
+ <defs><marker id="starter-arrow" markerWidth="6" markerHeight="4" refX="5" refY="2" orient="auto"><polygon points="0 0, 6 2, 0 4" style="fill: var(--d-stroke)"/></marker></defs>
271
+ <g data-node="deck">
272
+ <rect x="20" y="20" width="200" height="80" rx="10" style="fill: var(--d-fill-1); stroke: var(--d-stroke)" stroke-width="2"/>
273
+ <text x="120" y="68" text-anchor="middle" font-size="22" style="font-family: var(--font-body); fill: var(--d-text)">deck.html</text>
274
+ </g>
275
+ <g>
276
+ <line data-from="deck" data-to="server" x1="224" y1="60" x2="296" y2="60" stroke-width="2" style="stroke: var(--d-stroke)" marker-end="url(#starter-arrow)"/>
277
+ <g data-node="server">
278
+ <rect x="300" y="20" width="200" height="80" rx="10" style="fill: var(--d-fill-2); stroke: var(--d-stroke)" stroke-width="2"/>
279
+ <text x="400" y="68" text-anchor="middle" font-size="22" style="font-family: var(--font-body); fill: var(--d-text)">decklight</text>
280
+ </g>
281
+ </g>
282
+ <g>
283
+ <path data-from="server" data-to="browser" data-route="elbow" d="M 400 104 V 190 H 576" fill="none" stroke-width="2" style="stroke: var(--d-stroke)" marker-end="url(#starter-arrow)"/>
284
+ <g data-node="browser">
285
+ <rect x="580" y="150" width="200" height="80" rx="10" style="fill: var(--d-fill-3); stroke: var(--d-stroke)" stroke-width="2"/>
286
+ <text x="680" y="198" text-anchor="middle" font-size="22" style="font-family: var(--font-body); fill: var(--d-text)">Browser</text>
287
+ </g>
288
+ </g>
289
+ </svg>
290
+ <aside class="notes">
291
+ <p>A diagram is SVG on the slide, coloured with the theme's diagram colours, so it changes with the theme.</p>
292
+ <p>[click]</p>
293
+ <p>You write the deck.</p>
294
+ <p>[click]</p>
295
+ <p>decklight serves it. The arrow is a connector: it names the two boxes it joins, so moving a box never leaves the arrow behind.</p>
296
+ <p>[click]</p>
297
+ <p>And the browser presents it. This wire bends at a right angle, because it says elbow.</p>
298
+ </aside>
299
+ </section>
300
+
301
+ <!-- Sources: where a slide's facts come from, a list of named facts and links, hidden on the slide and read with I. ${SPEC('DECK_ANATOMY')} -->
302
+ <section data-module="Handing it over">
303
+ <h2>Where this slide got its facts</h2>
304
+ <p>Press I to read them: hidden on the slide, they travel with the deck</p>
305
+ <p>Notes are for the person talking; sources are for the person listening</p>
306
+ <aside class="sources">
307
+ <dl><dt>owner</dt><dd>whoever presents this deck</dd></dl>
308
+ <ul>
309
+ <li><a href="https://github.com/decklight/decklight/blob/main/SPEC.md">Decklight's SPEC.md</a>: every section a comment in this deck names</li>
310
+ </ul>
311
+ </aside>
312
+ <aside class="notes">
313
+ <p>Notes are for the person talking. Sources are for the person listening: where to read more, and what a claim stands on.</p>
314
+ <p>They stay in the file when you hand the deck over, so a reader can check a number long after the talk.</p>
315
+ </aside>
316
+ </section>
317
+
318
+ <!-- A closing slide: plain bullets with no build; about four points is the most a slide should carry. ${SPEC('SLIDE_DENSITY')} -->
319
+ <section>
320
+ <h2>Make it yours</h2>
321
+ <ul>
322
+ <li>Delete the slides you do not need, copy the ones you do</li>
323
+ <li>One idea per slide, and about four points at most</li>
324
+ <li>Run <code>decklight check deck.html</code> before you present</li>
325
+ </ul>
326
+ <aside class="notes">
327
+ <p>Every slide in this deck is one you can copy: the comment above each one in the file says which part of the spec to read for more.</p>
328
+ <p>Keep slides short. If a title needs an "and", it is two slides. And let the check tell you what a browser would otherwise show you too late.</p>
329
+ </aside>
330
+ </section>
331
+ `;
332
+ }
333
+
334
+ /**
335
+ * The full starter's slides. `open` is the title section's opening (today's
336
+ * h1, or a design system's title template, `starterSlides` decides), already
337
+ * indented; the title slide's subtitle and notes follow it here.
338
+ */
339
+ export function fullStarterSlides(open, { templated = false } = {}) {
340
+ const subtitle = templated ? '' : '\n <p>A tour of what a slide can hold, each slide the markup to copy</p>';
341
+ const what = templated
342
+ ? `The title slide, on the design system's title template: its slots hold the words. ${SPEC('DESIGN_SYSTEMS')}`
343
+ : `The title slide: an h1, and the line under it becomes its subtitle. ${SPEC('DECK_ANATOMY')}`;
344
+ return `
345
+ <!-- ${what} -->
346
+ ${open}${subtitle}
347
+ <aside class="notes">
348
+ <p>Welcome. Every slide after this one shows one thing a Decklight slide can do, and in the file each is the markup that does it, under a comment naming the part of the spec to read.</p>
349
+ <p>Press the right arrow to advance, and the question mark for every key. Keep the slides you need and delete the rest.</p>
350
+ </aside>
351
+ </section>
352
+ ${featureSlides()}`;
353
+ }
package/cli/supervise.mjs CHANGED
@@ -32,6 +32,20 @@ export const onLeash = (env = process.env) => env[LEASH] === '1';
32
32
  /** The environment a supervising parent hands a child. */
33
33
  export const leashEnv = (env = process.env) => ({ ...env, [LEASH]: '1' });
34
34
 
35
+ /**
36
+ * The environment for a process that is NOT on `open`'s leash: an agent the
37
+ * edit server starts, or a tool it runs. Without this they inherit the
38
+ * server's own, and every `decklight` command an agent runs arms a leash on
39
+ * its shell's stdin, which is at EOF at once: `decklight pdf` exits 0 while
40
+ * Chrome is still launching, and DECKLIGHT_BANNER has hidden even the version
41
+ * line, so nothing at all is printed (#901). The leash never tracked the
42
+ * server from there anyway: that stdin is the agent's, not `open`'s pipe.
43
+ */
44
+ export function unleashedEnv(env = process.env) {
45
+ const { [LEASH]: _leash, DECKLIGHT_BANNER: _banner, ...rest } = env;
46
+ return rest;
47
+ }
48
+
35
49
  /**
36
50
  * Exit when the supervising parent goes away. A no-op when unsupervised, so
37
51
  * the dispatcher can call it unconditionally. Returns whether it armed.
@@ -117,6 +117,12 @@ export const markedShipped = (html) => markedEntries(html).filter((r) => r.shipp
117
117
  export function portableSource(source) {
118
118
  if (typeof source !== 'string' || !source) return null;
119
119
  const bare = source.replace(/^(https?:\/\/|ssh:\/\/|git:\/\/)[^/@]*@/i, '$1');
120
+ // GitHub over SSH is the same repo as over https: one identity, or a deck
121
+ // marked where the catalog was added by SSH URL is "a different catalog"
122
+ // wherever it was added as owner/repo. Here only: `classifySource` also picks
123
+ // the clone transport, and an SSH user keeps cloning over SSH.
124
+ const ssh = /^(?:ssh:\/\/github\.com(?::22)?\/|git@github\.com:)([\w.-]+)\/([\w.-]+?)(?:\.git)?\/?$/i.exec(bare);
125
+ if (ssh) return `${ssh[1]}/${ssh[2]}`;
120
126
  const src = classifySource(bare, { exists: () => false });
121
127
  if (src.kind === 'github') return `${src.owner}/${src.repo}`;
122
128
  if (src.kind === 'git' && !/^file:\/\//i.test(bare)) return bare.replace(/\.git\/?$/, '').replace(/\/$/, '');
@@ -171,7 +177,10 @@ export function resolveCatalogEntry(parsed, home = configHome(), { source = null
171
177
  const registry = loadRegistry(home).marketplaces ?? {};
172
178
  let marketplace = parsed.marketplace;
173
179
  if (source) {
174
- const same = Object.entries(registry).find(([, m]) => portableSource(m.source) === source)?.[0];
180
+ // both sides: a deck that recorded the SSH form before it was normalised
181
+ // still resolves without being re-marked
182
+ const wanted = portableSource(source) ?? source;
183
+ const same = Object.entries(registry).find(([, m]) => portableSource(m.source) === wanted)?.[0];
175
184
  if (same) marketplace = same;
176
185
  else if (registry[marketplace]) {
177
186
  return { ...parsed, missing: `"${marketplace}" here is a different catalog (${portableSource(registry[marketplace].source) ?? 'a local one'}) — the deck's comes from ${source}` };
@@ -465,7 +474,10 @@ export function withKey(inner, key, value) {
465
474
  * whatever each machine that marks from it happens to call it.
466
475
  */
467
476
  export function refForDeck(html, name, local, source) {
468
- const known = source ? Object.entries(markedSources(html)).find(([, v]) => v === source)?.[0] : null;
477
+ // by portable identity, as resolving does: a deck that recorded the SSH
478
+ // form still means the catalog this machine registered as owner/repo (#874)
479
+ const wanted = portableSource(source) ?? source;
480
+ const known = source ? Object.entries(markedSources(html)).find(([, v]) => (portableSource(v) ?? v) === wanted)?.[0] : null;
469
481
  return `${name}@${known ?? local}`;
470
482
  }
471
483
 
package/cli/theme.mjs CHANGED
@@ -126,11 +126,12 @@ export async function fetchTheme(source, { fetchImpl = fetch, read = readFileSyn
126
126
  /** The validation report, as the lines to print. */
127
127
  export function reportLines(name, result) {
128
128
  const out = [];
129
+ const warned = (result.warnings ?? []).map((w) => ` ⚠ ${w}`);
129
130
  if (result.ok) {
130
131
  out.push(`✔ ${name} — all ${REQUIRED.length} tokens present, contrast gates pass`);
131
132
  const ex = Object.entries(result.exceptions ?? {});
132
133
  for (const [rule, why] of ex) out.push(` ○ ${rule} waived — ${why}`);
133
- return out;
134
+ return [...out, ...warned];
134
135
  }
135
136
  out.push(`✘ ${name}`);
136
137
  for (const e of result.errors) out.push(` ${e}`);
@@ -138,7 +139,7 @@ export function reportLines(name, result) {
138
139
  out.push(` ${result.missing.length} of ${REQUIRED.length} tokens missing`
139
140
  + ' — a theme written against an older contract needs the new ones added (SPEC THEMING)');
140
141
  }
141
- return out;
142
+ return [...out, ...warned];
142
143
  }
143
144
 
144
145
  async function checkMain(args) {