decklight 0.6.0 → 0.8.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/README.md +23 -11
- package/SPEC.md +187 -23
- package/cli/agents.mjs +52 -2
- package/cli/associate.mjs +2 -2
- package/cli/banner.mjs +125 -0
- package/cli/bundle.mjs +15 -5
- package/cli/{rec.mjs → cast.mjs} +25 -8
- package/cli/comments.mjs +389 -0
- package/cli/commit-flow.mjs +157 -0
- package/cli/commit-message.mjs +125 -0
- package/cli/decklight.mjs +96 -25
- package/cli/dev.mjs +159 -13
- package/cli/edit.mjs +981 -40
- package/cli/git-tree.mjs +87 -0
- package/cli/git.mjs +22 -0
- package/cli/import.mjs +41 -11
- package/cli/init.mjs +37 -5
- package/cli/pdf.mjs +59 -14
- package/cli/port-conflict.mjs +187 -16
- package/cli/pptx-export.mjs +107 -0
- package/cli/present.mjs +8 -4
- package/cli/publish.mjs +25 -42
- package/cli/record.mjs +154 -0
- package/cli/review-remote.mjs +330 -0
- package/cli/review-store.mjs +107 -0
- package/cli/review-submit.mjs +292 -0
- package/cli/review.mjs +361 -0
- package/cli/serve.mjs +36 -1
- package/cli/skill-content.mjs +4 -1
- package/cli/units.mjs +2 -2
- package/cli/util.mjs +59 -0
- package/dist/build-info.json +1 -0
- package/dist/decklight.css +254 -1
- package/dist/decklight.js +153 -79
- package/dist/decklight.js.map +4 -4
- package/docs/architecture.svg +10 -3
- package/package.json +3 -1
- package/tools/args.mjs +20 -0
- package/tools/bridge.mjs +25 -2
- package/tools/deck-html.mjs +59 -0
- package/tools/elevenlabs-tts.mjs +3 -3
- package/tools/exec.mjs +54 -0
- package/tools/gemini-tts.mjs +4 -4
- package/tools/lipsync-server.mjs +70 -2
- package/tools/lipsync.mjs +46 -30
- package/tools/local-voice.mjs +243 -19
- package/tools/pptx-write.mjs +151 -0
- package/tools/pptx.mjs +82 -2
- package/tools/publish-site-voices.mjs +2 -2
- package/tools/publish-targets.mjs +39 -2
- package/tools/publish-voices.mjs +80 -20
- package/tools/recording-impact.mjs +110 -0
- package/tools/review-anchor.mjs +180 -0
- package/tools/template-theme.mjs +154 -0
- package/tools/test-impact.mjs +266 -0
- package/tools/tts-cache.mjs +191 -0
- package/tools/tts-engines.mjs +85 -8
- package/tools/tts-setup.mjs +4 -3
- package/tools/video.mjs +21 -6
- package/tools/voiceover-server.mjs +163 -17
- package/tools/voiceover.mjs +124 -16
package/README.md
CHANGED
|
@@ -25,6 +25,7 @@ But the real reason this project exists is the second half: I wanted a codebase
|
|
|
25
25
|
- **46 built-in themes** — every one passes WCAG contrast gates and codified palette rules; generate your own with a keystroke.
|
|
26
26
|
- **Truthful terminals** — real PTY recordings replayed truthfully, never a video.
|
|
27
27
|
- **Live narration** — text-to-speech presents the deck by itself, in sync, captions included.
|
|
28
|
+
- **Coming from PowerPoint** — `import` brings the deck across (charts as data, hidden slides still hidden, the template's own palette as a theme), and `pdf` / `pptx` hand a file back to whoever still asks for one.
|
|
28
29
|
- **Everything is text** — no binary formats, so decks diff cleanly in git and agents can read, review, and edit every byte.
|
|
29
30
|
- **Safe to receive** — `decklight present` plays a deck you did not author read-only under a CSP, prints what the file will execute, and strips what it cannot account for. `publish` signs; a `.decklight` container is verified before it renders.
|
|
30
31
|
- **Extensible without shipping code to the audience** — themes, templates, engines, importers and presenter chrome install from git-repo marketplaces anyone can host; build-time transforms run on your machine during `bundle`, so nothing executable travels with the deck.
|
|
@@ -82,7 +83,7 @@ The whole loop is agent-friendly and stays in one file end to end:
|
|
|
82
83
|
1. **`decklight init`** — scaffold a starter deck plus the agent skill above.
|
|
83
84
|
2. **Author** one HTML file: `<section>` slides, `data-build` reveals, inline SVG with theme tokens, `<aside class="notes">` split on `⟨CLICK⟩` (notes drive builds, captions, transcript **and** narration all at once).
|
|
84
85
|
3. **`decklight author deck.html`** — the whole live loop under one Ctrl-C: live-reload editing (from your editor or the browser), plus any narration/lip-sync bridges this machine can run (missing prerequisites are skipped with the fix printed, never a hard failure). In the browser: **`E`** edits notes back into the file, **`L`** cycles layouts, **`Z`/`⇧Z`** undo/redo, and **`A`** asks an installed coding agent — Claude Code, Codex, Gemini, Copilot, Aider and more, auto-detected from `$PATH` — to edit the deck headlessly; the page reloads when it saves. Edits auto-commit as you go.
|
|
85
|
-
4. **`decklight
|
|
86
|
+
4. **`decklight cast script.term.yaml`** — record a truthful terminal cast in a real PTY.
|
|
86
87
|
5. **`decklight bundle deck.html --themes all`** — flatten runtime, themes, casts and narration into one offline HTML file to hand off.
|
|
87
88
|
|
|
88
89
|
## Features at a glance
|
|
@@ -95,9 +96,12 @@ The whole loop is agent-friendly and stays in one file end to end:
|
|
|
95
96
|
| **Theming** | 46 themes in 2 packs on one token contract; `T` picker, `⌃T` generates a contract-complete theme | [SPEC THEMING](SPEC.md#theming--the-token-contract) |
|
|
96
97
|
| **Code** | highlight.js themed through `--hl-*` tokens; `data-lines` steps highlight ranges as builds | [SPEC CODE_AND_MATH](SPEC.md#code_and_math--code--math) |
|
|
97
98
|
| **Math** | `data-math` renders `$$…$$` / `\(…\)` LaTeX to native MathML via bundled Temml — no webfonts, no build step | [SPEC CODE_AND_MATH](SPEC.md#code_and_math--code--math) |
|
|
98
|
-
| **Terminals** | `decklight
|
|
99
|
+
| **Terminals** | `decklight cast` captures real PTY output; replayed by typing then streaming, never a video | [SPEC TERMINAL_RECORDINGS](SPEC.md#terminal_recordings--terminal-recordings) |
|
|
99
100
|
| **Presenting** | speaker view, rehearse cue cards, overview, command palette, slide finder — all on `file://` | [SPEC PRESENTING](SPEC.md#presenting--presenting--output) |
|
|
100
|
-
| **
|
|
101
|
+
| **Hidden slides** | `data-hidden` keeps a slide in the file and out of the talk — it keeps its number, `?all` presents it anyway | [SPEC DECK_ANATOMY](SPEC.md#deck_anatomy--deck-anatomy) |
|
|
102
|
+
| **Rehearsal timings** | the speaker view records how long each slide actually took and writes it onto the deck; the next run paces against it | [SPEC PRESENTING](SPEC.md#presenting--presenting--output) |
|
|
103
|
+
| **Narration** | TTS reads your notes in sync with builds — or **your own voice**, recorded beat by beat and pacing them the same way; the voice is the clock, captions + auto-advance | [SPEC PRESENTING](SPEC.md#presenting--presenting--output) |
|
|
104
|
+
| **Review** | reviewers comment on slides and submit the review as a branch; git carries it, a comment finds its slide again after the deck moves, and the author is told a review is waiting | [SPEC REVIEW](SPEC.md#review--reviewer-comments) |
|
|
101
105
|
| **Integrity** | read-only `present` under a real CSP header, an ingredients label of what a deck executes, Sigstore signing, the `.decklight` container | [SPEC PRESENTING](SPEC.md#presenting--presenting--output) |
|
|
102
106
|
| **The durable record** | decklight commits as you write; `H` reads it back — every version previewed live, what each changed, one keystroke to restore | [SPEC PRESENTING](SPEC.md#presenting--presenting--output) |
|
|
103
107
|
| **Marketplaces** | git-repo catalogs, registered not fetched; themes, templates, skills, voices, engines, importers, transforms and presenter plugins | [SPEC MARKETPLACE_REGISTRY](SPEC.md#marketplace_registry--marketplaces-registered-not-fetched) |
|
|
@@ -110,14 +114,20 @@ The whole loop is agent-friendly and stays in one file end to end:
|
|
|
110
114
|
| `decklight skills [agent…]` | install the authoring skill for Claude, Codex, OpenCode or IBM Bob (detected, named, or `--all`; `--global` for every project; `--pack` zips it for upload) |
|
|
111
115
|
| `decklight author deck.html` | **the whole authoring loop in one command** — live reload + every bridge this machine can run |
|
|
112
116
|
| `decklight present deck.html` | **play a deck you did not author** — read-only over localhost under a CSP header, with an ingredients label and `--strict`; a deck in a clone can see its upstream and (with `--upstream-pull`) offer to fast-forward |
|
|
113
|
-
| `decklight import talk.pptx` | bring a PowerPoint, Keynote or Google Slides deck across (`.key` needs macOS; a Slides URL must be link-shared) |
|
|
114
|
-
| `decklight
|
|
117
|
+
| `decklight import talk.pptx` | bring a PowerPoint, Keynote or Google Slides deck across — bullets, tables, images, **charts as data** and notes; `--theme template` derives the deck's theme from the file's own palette and fonts (`.key` needs macOS; a Slides URL must be link-shared) |
|
|
118
|
+
| `decklight cast script.term.yaml` | record a **terminal** cast in a real PTY (`refresh` re-runs them, `export` flattens to asciicast v2) |
|
|
119
|
+
| `decklight record deck.html` | record the narration in **your own voice** — the deck reads you its notes one ⟨CLICK⟩ at a time, and `→` ends a beat *and* reveals the next build, so your voice paces the deck (`cast` records a terminal, `record` records you) |
|
|
120
|
+
| `decklight review deck.html` | **leave comments on somebody's deck**, anchored to slides — a comment survives the slide moving, and says so when its slide changed or is gone |
|
|
121
|
+
| `decklight review submit deck.html` | **send the review back** — pushes the comments (one file, never your own commits) to a `review/<you>-<date>` branch; `--pr` opens the pull request |
|
|
122
|
+
| `decklight comments deck.html` | read what reviewers said, resolved against the deck as it is now (`--import` takes in a file from a reviewer with no clone; `--incoming` lists the reviews waiting on the remote — `M` in the deck reads and takes them in) |
|
|
115
123
|
| `decklight history deck.html` | what decklight committed, which commits exist only on this machine, and how to push them |
|
|
116
124
|
| `decklight restore deck.html` | list the commits that touched a deck, and put it back to any of them |
|
|
117
125
|
| `decklight upgrade deck.html` | bring a self-contained deck's inlined runtime + themes up to the installed version |
|
|
118
126
|
| `decklight bundle deck.html [--all]` | flatten to a self-contained single-file HTML (`--sign` attests it, `--deck` wraps it as `.decklight`) |
|
|
119
|
-
| `decklight publish deck.html` | bundle and push to GitHub Pages — signed by default; Netlify and Vercel install as targets |
|
|
120
|
-
| `decklight pdf deck.html` | one slide per page, at its own size, in its theme — no print dialog |
|
|
127
|
+
| `decklight publish deck.html` | bundle and push to GitHub Pages — signed by default; Netlify and Vercel install as targets, and `--target folder` writes the site into a directory for any host that serves files |
|
|
128
|
+
| `decklight pdf deck.html` | one slide per page, at its own size, in its theme — no print dialog (`--notes` is the presenter's copy, `--handout` three a page with ruled lines) |
|
|
129
|
+
| `decklight pptx deck.html` | a PowerPoint file for whoever still asks for one — every slide a picture, the notes real notes; lossy on purpose |
|
|
130
|
+
| `decklight voiceover deck.html` | batch-synthesize the narration into a folder with a live engine (piper/chirp/gemini/elevenlabs) — the headless counterpart of the deck's `V → Record this deck…` |
|
|
121
131
|
| `decklight video deck.html` | render to one narrated mp4 — ⟨CLICK⟩ segments narrate the builds (`--voiceover` synthesizes the narration first) |
|
|
122
132
|
| `decklight theme check\|add` | validate a theme against the token contract, or install one into a deck |
|
|
123
133
|
| `decklight marketplace add owner/repo` | register a catalog — cloned once with **your** git credentials (so a private one works), then read from disk |
|
|
@@ -129,7 +139,7 @@ The whole loop is agent-friendly and stays in one file end to end:
|
|
|
129
139
|
| `decklight lipsync` | lip-sync bridge — visemes (rhubarb) + a talking head (your GPU); `--veo` animates the portrait |
|
|
130
140
|
| `decklight report-bug` | gather the version + environment facts a bug report needs, and print the issue URL |
|
|
131
141
|
|
|
132
|
-
`decklight help` lists every command and flag — `refresh` and `export` are in [SPEC TERMINAL_RECORDINGS](SPEC.md#terminal_recordings--terminal-recordings), `present` and `lipsync` in [SPEC PRESENTING](SPEC.md#presenting--presenting--output).
|
|
142
|
+
`decklight help` lists every command and flag — `refresh` and `export` are in [SPEC TERMINAL_RECORDINGS](SPEC.md#terminal_recordings--terminal-recordings), `present` and `lipsync` in [SPEC PRESENTING](SPEC.md#presenting--presenting--output). Drive a deck programmatically with the [JS API](SPEC.md#js_api--public-js-api). The runtime has **zero dependencies** (highlight.js and temml are bundled at build time); `node-pty` and `js-yaml` are CLI-only.
|
|
133
143
|
|
|
134
144
|
## Keys
|
|
135
145
|
|
|
@@ -138,7 +148,9 @@ The whole loop is agent-friendly and stays in one file end to end:
|
|
|
138
148
|
| `→` `←` `Space` | next / previous build or slide |
|
|
139
149
|
| `S` | speaker view (again: rehearse cue cards) |
|
|
140
150
|
| `T` | theme picker (type to filter) · `⌃T` generate a theme |
|
|
141
|
-
|
|
|
151
|
+
| `⎵` | plays / pauses / resumes the voice once one is chosen — otherwise it advances, as always |
|
|
152
|
+
| `V` | everything about the voice: tracks · live voice · character · record this deck · captions · speed |
|
|
153
|
+
| `M` | review comments, grouped by who said them — `⏎` jumps to the slide, `R` marks one done · `⇧M` writes one |
|
|
142
154
|
| `H` | the deck's history — every version previewed live, `⏎` restores one |
|
|
143
155
|
| `/` | command palette · `G` find a slide |
|
|
144
156
|
| `?` | help overlay — every key |
|
|
@@ -166,10 +178,10 @@ Every one of those agents runs under the same rule: on a public repo, an automat
|
|
|
166
178
|
## Architecture
|
|
167
179
|
|
|
168
180
|
<p align="center">
|
|
169
|
-
<img src="docs/architecture.svg" width="860" alt="Decklight architecture: a single deck.html and a theme.css feed a zero-dependency browser runtime (engine, terminal player, svg/code/math, narration, overlays);
|
|
181
|
+
<img src="docs/architecture.svg" width="860" alt="Decklight architecture: a single deck.html and a theme.css feed a zero-dependency browser runtime (engine, terminal player, svg/code/math, narration, overlays); three localhost servers sit beside it — decklight author for live-reload note editing, decklight tts bridging to Vertex AI Gemini TTS, and decklight review, which writes reviewer comments to a deck.review.jsonl sidecar carried by git and registers no editing routes at all; a node CLI records, refreshes, exports and bundles; and a verification band (WCAG gates, palette rules, headless render assertions, property tests) gates everything against SPEC.md.">
|
|
170
182
|
</p>
|
|
171
183
|
|
|
172
|
-
One HTML file and one theme stylesheet feed a **zero-dependency browser runtime**; everything with native dependencies or credentials lives in **localhost tools** (the CLI, the `
|
|
184
|
+
One HTML file and one theme stylesheet feed a **zero-dependency browser runtime**; everything with native dependencies or credentials lives in **localhost tools** (the CLI, the `author` live-reload server, the `tts` bridge, and `review`, which can write one sidecar file and nothing else); and a **verification band** — contrast gates, palette rules, headless render assertions, property tests — holds all of it to the `SPEC.md` contract.
|
|
173
185
|
|
|
174
186
|
## Development
|
|
175
187
|
|