decklight 0.10.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.
- package/NOTICE +2 -0
- package/PLATFORM.md +17 -0
- package/README.md +53 -25
- package/SPEC.md +1239 -67
- package/cli/agents.mjs +139 -15
- package/cli/bundle.mjs +68 -2
- package/cli/cast.mjs +45 -14
- package/cli/check-fixes.mjs +12 -4
- package/cli/check-watch.mjs +151 -0
- package/cli/check.mjs +460 -71
- package/cli/code-editor.mjs +287 -0
- package/cli/commands.mjs +13 -2
- package/cli/commit-message.mjs +34 -7
- package/cli/commit-split.mjs +123 -23
- package/cli/decklight.mjs +11 -1
- package/cli/design-system-edit.mjs +37 -1
- package/cli/edit-address.mjs +184 -0
- package/cli/edit-git.mjs +21 -4
- package/cli/edit-handover.mjs +136 -25
- package/cli/edit-look.mjs +45 -1
- package/cli/edit-open.mjs +143 -0
- package/cli/edit-slides.mjs +1043 -67
- package/cli/edit-translate.mjs +243 -0
- package/cli/edit.mjs +3182 -267
- package/cli/editor-support.mjs +286 -0
- package/cli/enhance.mjs +148 -20
- package/cli/find-replace.mjs +142 -0
- package/cli/fix-review.mjs +368 -0
- package/cli/init.mjs +93 -19
- package/cli/keep-awake.mjs +68 -0
- package/cli/migrate-writing.mjs +214 -0
- package/cli/narrate.mjs +51 -10
- package/cli/open.mjs +29 -9
- package/cli/outside-edit.mjs +257 -0
- package/cli/paste.mjs +92 -0
- package/cli/pdf.mjs +61 -2
- package/cli/pptx-export.mjs +3 -1
- package/cli/publish.mjs +24 -3
- package/cli/record.mjs +19 -8
- package/cli/rewrite.mjs +265 -0
- package/cli/runtime-link.mjs +218 -17
- package/cli/serve.mjs +7 -4
- package/cli/setup.mjs +2 -2
- package/cli/skill-content.mjs +212 -8
- package/cli/skills/slide-writing.md +333 -0
- package/cli/skills/voiceover.md +423 -0
- package/cli/skills.mjs +36 -13
- package/cli/starter-full.mjs +353 -0
- package/cli/supervise.mjs +14 -0
- package/cli/theme.mjs +3 -2
- package/cli/translate-core.mjs +466 -0
- package/cli/translate-files.mjs +149 -0
- package/cli/translate.mjs +458 -0
- package/cli/util.mjs +25 -0
- package/cli/vocabulary-docs.mjs +138 -0
- package/dist/decklight.css +2087 -91
- package/dist/decklight.js +367 -203
- package/dist/decklight.js.map +4 -4
- package/docs/GLOSSARY.md +9 -2
- package/docs/WRITING_RESEARCH.md +327 -0
- package/package.json +5 -3
- package/themes/coastal.css +3 -0
- package/themes/metropolis.css +2 -0
- package/themes/reveal-blood.css +3 -0
- package/themes/reveal-league.css +2 -0
- package/themes/reveal-moon.css +2 -0
- package/themes/reveal-serif.css +1 -0
- package/themes/reveal-sky.css +1 -0
- package/themes/reveal-solarized.css +4 -0
- package/tools/brand-palette.mjs +6 -1
- package/tools/build-groups.mjs +28 -8
- package/tools/cdp.mjs +176 -0
- package/tools/chart-spec.mjs +242 -0
- package/tools/click-match.mjs +70 -0
- package/tools/code-options.mjs +174 -0
- package/tools/conversation.mjs +49 -0
- package/tools/deck-family.mjs +101 -0
- package/tools/deck-html.mjs +212 -15
- package/tools/design-system-format.mjs +15 -1
- package/tools/diagram-shapes.mjs +221 -0
- package/tools/elevenlabs-tts.mjs +62 -53
- package/tools/face-clip.mjs +96 -0
- package/tools/face-layout.mjs +94 -0
- package/tools/gemini-tts.mjs +1 -1
- package/tools/invisible-in-print.mjs +27 -0
- package/tools/lipsync-auto.mjs +197 -0
- package/tools/lipsync-config.mjs +16 -0
- package/tools/lipsync-engines.mjs +22 -4
- package/tools/lipsync-server.mjs +8 -5
- package/tools/lipsync.mjs +122 -30
- package/tools/local-voice.mjs +1 -1
- package/tools/mouth-file.mjs +26 -0
- package/tools/mouth.mjs +320 -0
- package/tools/narration-manifest.mjs +24 -4
- package/tools/narration-synth.mjs +96 -76
- package/tools/recording-impact.mjs +16 -1
- package/tools/sentences.mjs +7 -1
- package/tools/starters.mjs +402 -0
- package/tools/steps.mjs +118 -0
- package/tools/take-check.mjs +146 -0
- package/tools/template-theme.mjs +3 -1
- package/tools/test-impact.mjs +36 -12
- package/tools/theme-check.mjs +196 -1
- package/tools/tone-cue.mjs +108 -0
- package/tools/tts-cache.mjs +9 -3
- package/tools/tts-engines.mjs +100 -11
- package/tools/video-cache.mjs +93 -0
- package/tools/video-live.mjs +349 -0
- package/tools/video-options.mjs +11 -0
- package/tools/video.mjs +772 -127
- package/tools/viseme-fit.mjs +27 -0
- package/tools/viseme-match.mjs +77 -0
- package/tools/vocabulary.mjs +397 -0
- package/tools/voice-renumber.mjs +605 -0
- package/tools/voiceover-server.mjs +42 -11
- package/tools/voiceover.mjs +48 -20
- package/dist/build-info.json +0 -1
package/NOTICE
ADDED
package/PLATFORM.md
CHANGED
|
@@ -632,6 +632,23 @@ extend it, but an agent unit is a **descriptor, never code**:
|
|
|
632
632
|
preference > the first detected agent. Choosing one in the `A` dialog
|
|
633
633
|
persists it (`POST /deck/edit/agent/prefer`); it is a fact about the machine, so
|
|
634
634
|
it is written beside the unit library and **never into the deck**.
|
|
635
|
+
- **So is the model it runs on, per agent, for decklight alone.** The same
|
|
636
|
+
file holds `models` (an edit's) and `askModels` (a question's: the commit
|
|
637
|
+
subject, the commit plan, enhance), e.g. `{ "preferred": "claude", "models":
|
|
638
|
+
{ "claude": "sonnet" } }`, set from the model field beside the `A` dialog's
|
|
639
|
+
agent picker (`POST /deck/edit/agent/model { agent, model, task? }`). It is
|
|
640
|
+
passed as that agent's own model flag (each roster entry says which:
|
|
641
|
+
`--model`, `-m`; a unit's descriptor may add `"model": ["--model",
|
|
642
|
+
"{model}"]`), so the user's own default (`"model"` in a Claude Code
|
|
643
|
+
settings file) is untouched and a plain `claude` in the same folder opens on
|
|
644
|
+
it as before. Precedence: this run (`--agent-model` / `DECKLIGHT_AGENT_MODEL`,
|
|
645
|
+
and `--agent-ask-model` / `DECKLIGHT_AGENT_ASK_MODEL` for questions) > the
|
|
646
|
+
remembered one, a question falling back to the edit's model > nothing at all,
|
|
647
|
+
when no flag is passed and the agent's own default applies. An agent whose CLI
|
|
648
|
+
takes no model flag (IBM Bob, Goose) shows the field disabled and is named at
|
|
649
|
+
startup if one is set for it, never handed a flag it would reject or a
|
|
650
|
+
setting it would ignore. A model the agent rejects fails the run with the
|
|
651
|
+
agent's own error; decklight never retries on another one.
|
|
635
652
|
- **A remembered agent that is missing is named, never substituted.** Which
|
|
636
653
|
agent edits your deck is not an interchangeable detail, so an unavailable
|
|
637
654
|
preference does not quietly fall back to another one: the edit server says
|
package/README.md
CHANGED
|
@@ -38,7 +38,12 @@ agent that reads `AGENTS.md`) has the real authoring contract on hand instead of
|
|
|
38
38
|
guessing from Reveal.js memory. Then it asks whether to open the deck in write
|
|
39
39
|
mode: live reload, edits from the browser, an AI agent on `A`, and git
|
|
40
40
|
underneath: your work snapshotted as you go, committed when you press `K`.
|
|
41
|
-
Say yes. Leave out `--dir` to start the deck in the current directory.
|
|
41
|
+
Say yes. Leave out `--dir` to start the deck in the current directory. Add
|
|
42
|
+
`--starter full` for a reference deck instead of the two-slide starter: one
|
|
43
|
+
slide per feature (builds, notes, two columns, a table, code, math, a picture,
|
|
44
|
+
a chart, a diagram with connectors, chapters, sources), each under a comment
|
|
45
|
+
naming the SPEC section to read, so there is always a working slide to copy
|
|
46
|
+
from. Keep the
|
|
42
47
|
`@latest`: npx resolves it against the registry on every run, so you always
|
|
43
48
|
get the current release, whereas a bare `npx decklight` runs any decklight
|
|
44
49
|
already installed in the project or globally, however old.
|
|
@@ -64,7 +69,9 @@ decklight doctor # what this machine can do, and how to get the rest
|
|
|
64
69
|
```
|
|
65
70
|
|
|
66
71
|
Type a command wrong and it tells you which one you meant. Or skip the scaffold
|
|
67
|
-
and write the HTML yourself
|
|
72
|
+
and write the HTML yourself: `decklight vscode` gives VS Code the completions and
|
|
73
|
+
snippets for it, and `decklight check` names a slip like `data-buld` with what
|
|
74
|
+
you meant. A deck you author is *data* (slides and a JSON
|
|
68
75
|
configuration block) and `decklight <deck>` adds the runtime as it serves it, in write mode and in `--no-trust`;
|
|
69
76
|
`bundle` embeds it when you hand the file over. This is the whole anatomy:
|
|
70
77
|
|
|
@@ -74,7 +81,7 @@ configuration block) and `decklight <deck>` adds the runtime as it serves it, in
|
|
|
74
81
|
<head>
|
|
75
82
|
<meta charset="utf-8">
|
|
76
83
|
<script type="application/json" data-decklight-config>
|
|
77
|
-
{ "decklight": "0.
|
|
84
|
+
{ "decklight": "0.11.0", "theme": "aurora", "transition": "fade" }
|
|
78
85
|
</script>
|
|
79
86
|
</head>
|
|
80
87
|
<body>
|
|
@@ -99,22 +106,34 @@ itself (`<script src="decklight/dist/decklight.js">` and a
|
|
|
99
106
|
|
|
100
107
|
## What's in the box
|
|
101
108
|
|
|
102
|
-
- **Editing in the browser.** In write mode
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
- **Editing in the browser.** In write mode the slide is the editor, and
|
|
110
|
+
small changes never need the HTML or an agent. Double-click any text to
|
|
111
|
+
change it (`⌘B`, `⌘I`, `⌘E` and `⌘K` for bold, italic, code and a link); in
|
|
112
|
+
a list `⏎` starts the next point, `⇥` nests it and `⌃⇧↑` / `⌃⇧↓` (Control-Shift
|
|
113
|
+
on every platform) moves it,
|
|
114
|
+
and in a table `⇥` walks the cells. The bar's **Add** puts a heading, text,
|
|
115
|
+
a list, a quote, a table, code, two columns, a diagram or a chart on the
|
|
116
|
+
slide, ready to type, and a new slide comes as a kind (title and bullets,
|
|
117
|
+
two columns, a section title…). Select an element to move it
|
|
118
|
+
(`⌃⇧↑` / `⌃⇧↓`, or drag its handle), duplicate it (`⌘D`) or remove it (`⌫`);
|
|
119
|
+
a right-click has the rest, with a row for a table, a picture or a wire
|
|
120
|
+
where one is selected. **Open in your editor** (the right-click menu, or
|
|
121
|
+
the palette for the slide) opens the deck file in VS Code, Cursor, Zed or a
|
|
122
|
+
command of your own at that element's or that slide's line, for the edit
|
|
123
|
+
the browser does not offer; it asks once which editor, and Settings changes
|
|
124
|
+
it. Drop a picture and drag its corners to size it, give
|
|
125
|
+
it alt text, a caption, or make it the slide's background. A chart's
|
|
126
|
+
numbers are a grid in the inspector's Data tab. In a diagram, drag a shape
|
|
127
|
+
to move it, its corners to resize it, and from a dot on its side to another
|
|
128
|
+
shape to connect them: the arrow stays attached when either moves, and
|
|
129
|
+
guides line shapes up as you drag. `I` opens the inspector on whatever is
|
|
130
|
+
selected, with Colors and Type tabs that save as you pick. Every edit lands
|
|
131
|
+
in the file at once, and `⌘Z` (`Ctrl+Z`) takes it back. `decklight check`
|
|
114
132
|
reports what an author or an agent would otherwise only see by looking:
|
|
115
133
|
clipped slides, crowded ones, missing images, notes whose [click] count
|
|
116
|
-
disagrees with the builds
|
|
117
|
-
|
|
134
|
+
disagrees with the builds, a wire that names a shape its diagram lacks. In
|
|
135
|
+
the deck, the palette's *Review: Check deck…* lists the same in one docked
|
|
136
|
+
panel, each finding with its quick fix.
|
|
118
137
|
- **Chapters.** `data-module` marks chapters, and `G` shows the outline.
|
|
119
138
|
- **Builds.** `data-build` on a container makes each child a step. The layout
|
|
120
139
|
never jumps.
|
|
@@ -128,7 +147,9 @@ itself (`<script src="decklight/dist/decklight.js">` and a
|
|
|
128
147
|
- **Code and math.** highlight.js styled through theme tokens, LaTeX rendered
|
|
129
148
|
to MathML with bundled Temml. No webfonts, no build step.
|
|
130
149
|
- **Charts.** `data-chart` plus a small JSON block gives you a theme-aware SVG
|
|
131
|
-
chart: bar, line, area, pie, donut, scatter.
|
|
150
|
+
chart: bar, line, area, pie, donut, scatter. A line can turn dashed at
|
|
151
|
+
"now" and carry a shaded band, so a forecast, a learned range, a marked
|
|
152
|
+
anomaly and a threshold are data too.
|
|
132
153
|
- **Terminals.** `decklight cast` records a real PTY session and the deck
|
|
133
154
|
replays it, typing and streaming. Never a video.
|
|
134
155
|
- **Narration.** Text-to-speech reads your notes in sync with the builds, or you
|
|
@@ -142,6 +163,9 @@ itself (`<script src="decklight/dist/decklight.js">` and a
|
|
|
142
163
|
ElevenLabs voices are listed by language, and the voice library finds a
|
|
143
164
|
native one for a translated deck. A synthesized recording tells you what it
|
|
144
165
|
cost: clips reused against clips sent to the engine.
|
|
166
|
+
- **Translation.** `decklight translate talk.html --to fr` generates a French
|
|
167
|
+
deck beside the source. Use **Languages…** in write mode to see what needs
|
|
168
|
+
updating and switch between versions. Each language has its own narration tracks.
|
|
145
169
|
- **A face for the voice.** `V` → Character: a 2D narrator whose lips follow
|
|
146
170
|
the voice, or a talking head made from your photo (or from a few seconds of
|
|
147
171
|
you filmed in the deck) lip-synced with Wav2Lip on your own machine, set up
|
|
@@ -185,23 +209,27 @@ narrate, template, library, gate) are defined once in
|
|
|
185
209
|
|
|
186
210
|
| Writing | |
|
|
187
211
|
|---|---|
|
|
188
|
-
| `init ["Title"]` | scaffold a deck and the agent skill, then open it in write mode (`--no-open` keeps the browser closed) |
|
|
189
|
-
| `
|
|
212
|
+
| `init ["Title"]` | scaffold a deck and the agent skill, then open it in write mode (`--no-open` keeps the browser closed; `--starter full` writes one slide per feature to copy from) |
|
|
213
|
+
| `vscode [deck.html]` | write `.vscode/` beside a deck so VS Code helps you type it: every `data-*` attribute Decklight reads completes with its values and a line on what it does, and `dl-slide`, `dl-build`, `dl-notes`, `dl-diagram`, `dl-chart`, `dl-compare`, `dl-figure` and `dl-conversation` expand to the markup. An existing `settings.json` gains one key and keeps the rest (`init --vscode` does it for a new deck) |
|
|
214
|
+
| `skills [agent…]` | install the authoring, slide-writing and voiceover skills for Claude, Codex, OpenCode or IBM Bob. Write mode reports when an installed skill needs an update |
|
|
190
215
|
| `<deck.html \| url>` | the deck is the command. Write mode: live reload plus every bridge this machine can run, under one Ctrl-C (`--open` for the browser; a git URL clones the repo and opens the deck inside). In the browser editing is on: double-click text to edit it (`⌘B`, `⌘I`, `⌘E` for bold, italic and code while you do), drop a picture onto a slide, the bar's Layout for a layout, `S` for notes, `O` to rearrange slides; `Lock deck` in the palette turns changes off until you unlock |
|
|
191
|
-
| `check deck.html` | lint it headlessly: clipped slides, missing assets, [click] beats out of step with the builds (`--json`) |
|
|
216
|
+
| `check deck.html` | lint it headlessly: clipped slides, missing assets, [click] beats out of step with the builds, a misspelled attribute, build effect or configuration key with what was meant (`--json`; `--watch` checks again on every save, in a terminal beside your editor, until Ctrl-C) |
|
|
192
217
|
| `narrate deck.html` | the narration into a folder beside the deck: an engine reads the notes, or you do with `--mic`, one [click] beat at a time (`--slides 7` for one slide); `--face` gives the recorded track its lip-sync, so the character plays it with nothing running |
|
|
218
|
+
| `translate deck.html --to fr` | translate the slide text and speaker notes into French. `--status` reports what needs updating, and `--slides` limits the run to specific slides |
|
|
193
219
|
| `cast script.term.yaml` | record a terminal session in a real PTY (`cast refresh` re-runs, `cast export` writes asciicast) |
|
|
194
220
|
|
|
195
221
|
| Sharing | |
|
|
196
222
|
|---|---|
|
|
197
223
|
| `<deck> --no-trust` | open a deck you didn't write in no-trust mode: every edit route refuses, it is served under a CSP, and what it will execute is listed first (`--audit` prints that label and exits; a repository URL clones it first, into the same clone write mode uses). Comments (`M`) work here too; a `.decklight` is without trust by nature |
|
|
198
224
|
| `bundle deck.html` | one self-contained HTML file (`--all` merges a playlist, `--module` takes one chapter with its narration, `--sign`, `--deck`) |
|
|
199
|
-
| `publish deck.html` | bundle and push to GitHub Pages, Netlify, Vercel or a folder |
|
|
225
|
+
| `publish deck.html` | bundle and push to GitHub Pages, Netlify, Vercel or a folder (`--audio` carries the narration inside the page) |
|
|
200
226
|
| `pdf deck.html` | one slide per page (`--notes`, `--handout`) |
|
|
201
227
|
| `pptx deck.html` | a PowerPoint file, every slide a picture, notes as notes |
|
|
202
|
-
| `video deck.html` | a narrated video
|
|
228
|
+
| `video deck.html` | a narrated video in MP4, MOV or WebM, with optional subtitles. Choose `--render exact` (the default) or `--render live`, in the CLI or **Export a video…** in the palette. Use `--slides 5-9` for part of the deck and `--voiceover` to synthesize narration first. |
|
|
203
229
|
| `enhance deck.html --slides 3` | add ElevenLabs v4 audio tags to the notes with the prompt ElevenLabs publishes: your agent drafts, decklight checks no word changed (`--all`, `--dry-run`) |
|
|
204
230
|
| `enhance deck.html --spoken --slides 3` | write terse notes for the ear, as sentences a person would say: your agent rewrites, decklight checks every `[click]` and `[pause]` survived |
|
|
231
|
+
| `enhance deck.html --match-slide --slides 3` | reword the notes to agree with what the slide shows, its terms, numbers and order: checked like `--spoken` |
|
|
232
|
+
| `enhance deck.html --rewrite --slides 3` | say the same thing more clearly, nothing added or dropped: checked like `--spoken` |
|
|
205
233
|
|
|
206
234
|
| Keeping track | |
|
|
207
235
|
|---|---|
|
|
@@ -245,10 +273,10 @@ the CLI only.
|
|
|
245
273
|
| `⎵` | play / pause the voice once one is chosen; otherwise it advances |
|
|
246
274
|
| `V` | everything about the voice: tracks, live voice, character, record, captions, speed |
|
|
247
275
|
| `M` | review comments: `⏎` jumps to the slide, `R` marks one done and again reopens it, `D` hides the done ones, `⌫` deletes one of yours; `⇧M` writes one |
|
|
248
|
-
| `K` | commit what you changed, with a message; `⌘Z` / `Ctrl+Z` undoes an edit; `⌘⏎` / `Ctrl+Enter` fullscreen, `⇧F` hides the arrows and slide number there |
|
|
276
|
+
| `K` | commit what you changed, with a message; `⌘Z` / `Ctrl+Z` undoes an edit; `⌘⏎` / `Ctrl+Enter` fullscreen, `⇧F` hides the arrows and slide number there and while the speaker view is open |
|
|
249
277
|
| `H` | the deck's history, every version previewed live, `⏎` restores one |
|
|
250
278
|
| `I` | the inspector: everything about this slide, or the selected shape's colours and type; its sources |
|
|
251
|
-
| `/` | command palette: every action at the root, named `Category: Action` (`Voice:
|
|
279
|
+
| `/` | command palette: every action at the root, named `Category: Action` (`Voice: AI voice…`), filtered by any words you type; *Preferences: Settings…* holds the knobs (clock, progress bar, captions, voice speed, the editing bar). `G` finds a slide, `O` rearranges them, `A` asks the agent |
|
|
252
280
|
| `?` | every key |
|
|
253
281
|
|
|
254
282
|
## Working from a checkout
|