decklight 0.5.0 → 0.7.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 +20 -9
- package/SPEC.md +239 -17
- package/cli/agents.mjs +97 -2
- package/cli/banner.mjs +125 -0
- package/cli/bundle.mjs +14 -4
- 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 +475 -0
- package/cli/decklight.mjs +95 -25
- package/cli/dev.mjs +193 -25
- package/cli/edit.mjs +1055 -39
- package/cli/git-tree.mjs +87 -0
- package/cli/git.mjs +370 -0
- package/cli/history.mjs +145 -0
- package/cli/init.mjs +199 -7
- package/cli/marketplace.mjs +123 -17
- package/cli/port-conflict.mjs +228 -22
- package/cli/present.mjs +297 -12
- package/cli/publish.mjs +15 -40
- package/cli/record.mjs +154 -0
- package/cli/restore.mjs +120 -4
- 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 +60 -1
- package/cli/skill-content.mjs +12 -1
- package/cli/theme.mjs +78 -11
- package/cli/units.mjs +2 -2
- package/cli/upstream.mjs +256 -0
- package/cli/util.mjs +59 -0
- package/dist/build-info.json +1 -0
- package/dist/decklight.css +534 -3
- package/dist/decklight.js +102 -76
- package/dist/decklight.js.map +4 -4
- package/docs/architecture.svg +7 -0
- package/package.json +2 -1
- package/tools/args.mjs +20 -0
- package/tools/deck-html.mjs +84 -0
- package/tools/elevenlabs-tts.mjs +1 -1
- package/tools/lipsync-server.mjs +64 -2
- package/tools/lipsync.mjs +40 -24
- package/tools/local-voice.mjs +170 -16
- package/tools/publish-voices.mjs +78 -18
- package/tools/recording-impact.mjs +110 -0
- package/tools/review-anchor.mjs +180 -0
- package/tools/test-impact.mjs +259 -0
- package/tools/tts-engines.mjs +211 -12
- package/tools/tts-setup.mjs +2 -9
- package/tools/video.mjs +56 -12
- package/tools/voiceover-server.mjs +262 -11
- package/tools/voiceover.mjs +32 -13
package/README.md
CHANGED
|
@@ -82,7 +82,7 @@ The whole loop is agent-friendly and stays in one file end to end:
|
|
|
82
82
|
1. **`decklight init`** — scaffold a starter deck plus the agent skill above.
|
|
83
83
|
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
84
|
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
|
|
85
|
+
4. **`decklight cast script.term.yaml`** — record a truthful terminal cast in a real PTY.
|
|
86
86
|
5. **`decklight bundle deck.html --themes all`** — flatten runtime, themes, casts and narration into one offline HTML file to hand off.
|
|
87
87
|
|
|
88
88
|
## Features at a glance
|
|
@@ -95,10 +95,12 @@ The whole loop is agent-friendly and stays in one file end to end:
|
|
|
95
95
|
| **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
96
|
| **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
97
|
| **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
|
|
98
|
+
| **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
99
|
| **Presenting** | speaker view, rehearse cue cards, overview, command palette, slide finder — all on `file://` | [SPEC PRESENTING](SPEC.md#presenting--presenting--output) |
|
|
100
|
-
| **Narration** | TTS reads your notes in sync with builds; the voice is the clock, captions + auto-advance | [SPEC PRESENTING](SPEC.md#presenting--presenting--output) |
|
|
100
|
+
| **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) |
|
|
101
|
+
| **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
102
|
| **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) |
|
|
103
|
+
| **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) |
|
|
102
104
|
| **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) |
|
|
103
105
|
|
|
104
106
|
## CLI
|
|
@@ -108,14 +110,20 @@ The whole loop is agent-friendly and stays in one file end to end:
|
|
|
108
110
|
| `decklight init ["Title"]` | scaffold a self-contained starter deck + an agent skill (run bare in a terminal, it asks for the title and offers a git repo; `--open` launches the deck, `--from <template>` starts from a marketplace template) |
|
|
109
111
|
| `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) |
|
|
110
112
|
| `decklight author deck.html` | **the whole authoring loop in one command** — live reload + every bridge this machine can run |
|
|
111
|
-
| `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` |
|
|
113
|
+
| `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 |
|
|
112
114
|
| `decklight import talk.pptx` | bring a PowerPoint, Keynote or Google Slides deck across (`.key` needs macOS; a Slides URL must be link-shared) |
|
|
113
|
-
| `decklight
|
|
115
|
+
| `decklight cast script.term.yaml` | record a **terminal** cast in a real PTY (`refresh` re-runs them, `export` flattens to asciicast v2) |
|
|
116
|
+
| `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) |
|
|
117
|
+
| `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 |
|
|
118
|
+
| `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 |
|
|
119
|
+
| `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) |
|
|
120
|
+
| `decklight history deck.html` | what decklight committed, which commits exist only on this machine, and how to push them |
|
|
114
121
|
| `decklight restore deck.html` | list the commits that touched a deck, and put it back to any of them |
|
|
115
122
|
| `decklight upgrade deck.html` | bring a self-contained deck's inlined runtime + themes up to the installed version |
|
|
116
123
|
| `decklight bundle deck.html [--all]` | flatten to a self-contained single-file HTML (`--sign` attests it, `--deck` wraps it as `.decklight`) |
|
|
117
124
|
| `decklight publish deck.html` | bundle and push to GitHub Pages — signed by default; Netlify and Vercel install as targets |
|
|
118
125
|
| `decklight pdf deck.html` | one slide per page, at its own size, in its theme — no print dialog |
|
|
126
|
+
| `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…` |
|
|
119
127
|
| `decklight video deck.html` | render to one narrated mp4 — ⟨CLICK⟩ segments narrate the builds (`--voiceover` synthesizes the narration first) |
|
|
120
128
|
| `decklight theme check\|add` | validate a theme against the token contract, or install one into a deck |
|
|
121
129
|
| `decklight marketplace add owner/repo` | register a catalog — cloned once with **your** git credentials (so a private one works), then read from disk |
|
|
@@ -127,7 +135,7 @@ The whole loop is agent-friendly and stays in one file end to end:
|
|
|
127
135
|
| `decklight lipsync` | lip-sync bridge — visemes (rhubarb) + a talking head (your GPU); `--veo` animates the portrait |
|
|
128
136
|
| `decklight report-bug` | gather the version + environment facts a bug report needs, and print the issue URL |
|
|
129
137
|
|
|
130
|
-
`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).
|
|
138
|
+
`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.
|
|
131
139
|
|
|
132
140
|
## Keys
|
|
133
141
|
|
|
@@ -136,7 +144,10 @@ The whole loop is agent-friendly and stays in one file end to end:
|
|
|
136
144
|
| `→` `←` `Space` | next / previous build or slide |
|
|
137
145
|
| `S` | speaker view (again: rehearse cue cards) |
|
|
138
146
|
| `T` | theme picker (type to filter) · `⌃T` generate a theme |
|
|
139
|
-
|
|
|
147
|
+
| `⎵` | plays / pauses / resumes the voice once one is chosen — otherwise it advances, as always |
|
|
148
|
+
| `V` | everything about the voice: tracks · live voice · character · record this deck · captions · speed |
|
|
149
|
+
| `M` | review comments, grouped by who said them — `⏎` jumps to the slide, `R` marks one done · `⇧M` writes one |
|
|
150
|
+
| `H` | the deck's history — every version previewed live, `⏎` restores one |
|
|
140
151
|
| `/` | command palette · `G` find a slide |
|
|
141
152
|
| `?` | help overlay — every key |
|
|
142
153
|
|
|
@@ -163,10 +174,10 @@ Every one of those agents runs under the same rule: on a public repo, an automat
|
|
|
163
174
|
## Architecture
|
|
164
175
|
|
|
165
176
|
<p align="center">
|
|
166
|
-
<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);
|
|
177
|
+
<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.">
|
|
167
178
|
</p>
|
|
168
179
|
|
|
169
|
-
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 `
|
|
180
|
+
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.
|
|
170
181
|
|
|
171
182
|
## Development
|
|
172
183
|
|