decklight 0.9.0 → 0.10.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/PLATFORM.md +44 -3
- package/README.md +7 -5
- package/SPEC.md +100 -31
- package/cli/agent-review.mjs +5 -4
- package/cli/agents.mjs +11 -5
- package/cli/bundle-audio.mjs +10 -3
- package/cli/bundle-module.mjs +95 -0
- package/cli/bundle.mjs +58 -6
- package/cli/cast.mjs +41 -5
- package/cli/check-fixes.mjs +186 -0
- package/cli/check.mjs +32 -5
- package/cli/commit-flow.mjs +7 -3
- package/cli/commit-message.mjs +1 -1
- package/cli/commit-split.mjs +2 -2
- package/cli/deck-refs.mjs +8 -3
- package/cli/design-system-refs.mjs +263 -6
- package/cli/design-system.mjs +82 -14
- package/cli/edit-git.mjs +2 -2
- package/cli/edit-handover.mjs +129 -23
- package/cli/edit-look.mjs +248 -5
- package/cli/edit.mjs +504 -58
- package/cli/enhance.mjs +12 -10
- package/cli/git.mjs +13 -0
- package/cli/init.mjs +8 -3
- package/cli/marketplace-autocheck.mjs +200 -0
- package/cli/marketplace.mjs +250 -13
- package/cli/narrate.mjs +78 -3
- package/cli/open.mjs +24 -6
- package/cli/pdf.mjs +27 -8
- package/cli/pptx-export.mjs +7 -4
- package/cli/record.mjs +73 -13
- package/cli/remote.mjs +32 -6
- package/cli/serve.mjs +2 -2
- package/cli/skill-content.mjs +40 -3
- package/cli/skills.mjs +247 -3
- package/cli/theme-refs.mjs +14 -2
- package/cli/units.mjs +75 -7
- package/dist/build-info.json +1 -1
- package/dist/decklight.css +429 -32
- package/dist/decklight.js +169 -123
- package/dist/decklight.js.map +4 -4
- package/package.json +1 -1
- package/tools/design-system-format.mjs +25 -0
- package/tools/design-system-migrations.mjs +207 -0
- package/tools/exec.mjs +10 -2
- package/tools/narration-manifest.mjs +77 -3
- package/tools/site-clip.mjs +114 -0
- package/tools/video.mjs +69 -6
package/PLATFORM.md
CHANGED
|
@@ -106,8 +106,10 @@ marketplace keeps no checkout: its own directory already is one. An entry whose
|
|
|
106
106
|
fetched as written.
|
|
107
107
|
|
|
108
108
|
**The invariant everything above serves: registering is not fetching.** The
|
|
109
|
-
network is touched only by an explicit `add` or `
|
|
110
|
-
|
|
109
|
+
network is touched only by an explicit `add`, `update` or `outdated` of a
|
|
110
|
+
remote source (and `outdated` only asks where a ref points; it fetches no
|
|
111
|
+
file; the auto-check the author turned on is that same `outdated`): never at
|
|
112
|
+
registration, never when a deck loads, never while presenting. The
|
|
111
113
|
first-party marketplace is registered on first CLI run as a pure filesystem
|
|
112
114
|
write; its first fetch happens at the first browse or `update`, so first run
|
|
113
115
|
offline is silent and instant, and a deck on conference wifi, on a plane, or
|
|
@@ -117,6 +119,32 @@ presenting path imports the marketplace module at all (pinned by
|
|
|
117
119
|
state: `list` reads only the cache, and a fetch failure is fast and names the
|
|
118
120
|
marketplace and the reason, no spinner, no hang.
|
|
119
121
|
|
|
122
|
+
**The in-deck door.** In write mode, `/` → **Marketplaces…** lists every
|
|
123
|
+
registered catalog, says which are behind their source, updates them and says
|
|
124
|
+
what's new, and registers a new one without leaving the deck (SPEC
|
|
125
|
+
`MARKETPLACES_SCREEN` has the flow). Checking, updating and adding each run the
|
|
126
|
+
`decklight marketplace` command (`outdated`, `update`, `add`) as a child
|
|
127
|
+
process. Checking is the one network act that fetches nothing: `outdated` asks
|
|
128
|
+
each remote where its ref points (`git ls-remote`) and compares a local
|
|
129
|
+
directory's manifest with the cached copy, and it runs only when asked: C on
|
|
130
|
+
the screen, or, once the author has turned on *Check for updates when decklight
|
|
131
|
+
starts* (off until then), an edit server as it starts, at most twice a day.
|
|
132
|
+
Either way it only ever offers; an update is still asked for. Adding takes the
|
|
133
|
+
same three forms and `--branch`, and the edit server runs **`decklight marketplace add`
|
|
134
|
+
itself**, as a child process: the same command, the caller's git credentials on
|
|
135
|
+
this machine, the same refusals, so `marketplace list` cannot tell which door a
|
|
136
|
+
marketplace came in by, and a failed add leaves nothing registered from either.
|
|
137
|
+
It is still an explicit act, and still the only fetch: the row says what it is
|
|
138
|
+
about to clone (or which directory it would read in place) and asks for a
|
|
139
|
+
second ⏎ before it does, as publish does, since a clone is network access as
|
|
140
|
+
the person. A relative path is the **deck's** folder's, registered as an
|
|
141
|
+
absolute one, because the registry keeps a source as given and a relative path
|
|
142
|
+
would mean something else to the next `update`. Nothing is fetched on a later
|
|
143
|
+
open. A deck opened `--no-trust` has neither the row nor the routes
|
|
144
|
+
(`GET /deck/edit/marketplaces`, `POST /deck/edit/marketplace/check`,
|
|
145
|
+
`/update` and `/add`), which sit behind the server's mode gate with every
|
|
146
|
+
other write.
|
|
147
|
+
|
|
120
148
|
**The unit library** (`UNITS#REST`) is where the installable kinds land:
|
|
121
149
|
`~/.decklight/skills/`, `.../importers/`, `.../voices/`,
|
|
122
150
|
beside the `plugins/` that `NO_TRUST#PLUGINS` writes. One seam installs all of
|
|
@@ -125,7 +153,20 @@ each is used by the command that needs it. A deck template, a whole deck install
|
|
|
125
153
|
|
|
126
154
|
A marketplace skill installs
|
|
127
155
|
into the library and therefore sits **alongside** the authoring skill
|
|
128
|
-
`decklight skills` writes into a project, never replacing it.
|
|
156
|
+
`decklight skills` writes into a project, never replacing it. Its consumer is
|
|
157
|
+
an agent, not a decklight command, and no agent reads `~/.decklight/skills/`,
|
|
158
|
+
so `library add skill` also **hands it on** to the agents `decklight skills`
|
|
159
|
+
writes for: a copy in `.claude/skills/<name>/` (the current directory's when
|
|
160
|
+
it already has a `.claude/` or a Decklight AGENTS.md, `--dir` for a named
|
|
161
|
+
project, `--global` for Claude's config home; run anywhere else, it copies
|
|
162
|
+
nothing and says how to), and a line naming it and its `SKILL.md` in every
|
|
163
|
+
AGENTS.md that carries the Decklight section. A copy
|
|
164
|
+
carries a `.decklight-library` mark, and only a marked directory is ever
|
|
165
|
+
replaced or removed, so a skill of the same name the author wrote is left
|
|
166
|
+
alone. `library remove skill` takes both away; `decklight skills` and `init`
|
|
167
|
+
copy the missing ones and keep the rest as they are. The authoring skill
|
|
168
|
+
itself says where installed skills live, so an agent with neither still finds
|
|
169
|
+
them. An import adapter
|
|
129
170
|
is **offered at the point of failure**: `decklight import talk.marp` names the
|
|
130
171
|
adapter that reads `.marp` and how to get it, which is the ENGINES pattern
|
|
131
172
|
(offer at the moment of need) rather than a setup step nobody performs in
|
package/README.md
CHANGED
|
@@ -7,7 +7,8 @@ and a theme, with no dependencies and no build step. It opens straight from
|
|
|
7
7
|
every byte of it.
|
|
8
8
|
|
|
9
9
|
It is live at [decklight.io](https://decklight.io). The two-minute version is
|
|
10
|
-
`demo/intro.html`, the
|
|
10
|
+
`demo/intro.html`, the whole journey (an empty folder to a published talk) is
|
|
11
|
+
`demo/showcase.html`, and the contract
|
|
11
12
|
everything is built against is [`SPEC.md`](SPEC.md), with the marketplace
|
|
12
13
|
and library half in [`PLATFORM.md`](PLATFORM.md).
|
|
13
14
|
|
|
@@ -73,7 +74,7 @@ configuration block) and `decklight <deck>` adds the runtime as it serves it, in
|
|
|
73
74
|
<head>
|
|
74
75
|
<meta charset="utf-8">
|
|
75
76
|
<script type="application/json" data-decklight-config>
|
|
76
|
-
{ "decklight": "0.
|
|
77
|
+
{ "decklight": "0.10.0", "theme": "aurora", "transition": "fade" }
|
|
77
78
|
</script>
|
|
78
79
|
</head>
|
|
79
80
|
<body>
|
|
@@ -113,7 +114,7 @@ itself (`<script src="decklight/dist/decklight.js">` and a
|
|
|
113
114
|
reports what an author or an agent would otherwise only see by looking:
|
|
114
115
|
clipped slides, crowded ones, missing images, notes whose [click] count
|
|
115
116
|
disagrees with the builds. In the deck, the palette's *Review: Check deck…* lists the
|
|
116
|
-
same,
|
|
117
|
+
same in one docked panel, the file's findings included, each with its quick fix.
|
|
117
118
|
- **Chapters.** `data-module` marks chapters, and `G` shows the outline.
|
|
118
119
|
- **Builds.** `data-build` on a container makes each child a step. The layout
|
|
119
120
|
never jumps.
|
|
@@ -194,7 +195,7 @@ narrate, template, library, gate) are defined once in
|
|
|
194
195
|
| Sharing | |
|
|
195
196
|
|---|---|
|
|
196
197
|
| `<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 |
|
|
197
|
-
| `bundle deck.html` | one self-contained HTML file (`--all` merges a playlist, `--sign`, `--deck`) |
|
|
198
|
+
| `bundle deck.html` | one self-contained HTML file (`--all` merges a playlist, `--module` takes one chapter with its narration, `--sign`, `--deck`) |
|
|
198
199
|
| `publish deck.html` | bundle and push to GitHub Pages, Netlify, Vercel or a folder |
|
|
199
200
|
| `pdf deck.html` | one slide per page (`--notes`, `--handout`) |
|
|
200
201
|
| `pptx deck.html` | a PowerPoint file, every slide a picture, notes as notes |
|
|
@@ -216,7 +217,8 @@ narrate, template, library, gate) are defined once in
|
|
|
216
217
|
| `marketplace add owner/repo` | register a catalog; it is cloned with your git credentials, then read from disk |
|
|
217
218
|
| `design-system add acme@acme-mkt talk.html` | reference a company's design system: its tokens, art and slide templates, served from the marketplace on this machine (`list`, `templates`, and `gate`, the gate a catalog runs) |
|
|
218
219
|
| `font add inter@type-mkt talk.html --use` | reference a typeface from a marketplace: its faces and licence travel with the deck and its bundle, offline; `--use` opens the deck in it (`list`, and `gate`, the gate a catalog runs) |
|
|
219
|
-
| `marketplace list` / `update <name>` | what each catalog offers, and what it now has newer than what you installed (`nord@acme 1.0.0 → 1.1.0`, and the command that takes it) |
|
|
220
|
+
| `marketplace list` / `outdated` / `update <name>` | what each catalog offers; which are behind their source (asked, nothing fetched); and an update, which says what's new in the catalog and what it now has newer than what you installed (`nord@acme 1.0.0 → 1.1.0`, and the command that takes it). In write mode, `/` → **Marketplaces…** does all of it, and adds one, from the deck |
|
|
221
|
+
| `marketplace auto-check on\|off` | off until you turn it on: an edit server that starts asks whether a marketplace is behind (at most twice a day, nothing fetched), and the deck offers the update. It never takes one by itself. **O** on **Marketplaces…** is the same switch |
|
|
220
222
|
| `library add <kind> <name>` | install into your own library: a `plugin` (presenter chrome over any deck you open, with or without trust; `bundle` never carries it), a `skill`, an `importer`, a `transform`, an `engine`, a `voice` or an `agent` (`remove`, `list [kind]`) |
|
|
221
223
|
| `library gate <kind> <path>` | the marketplace admission gate for a `transform` or a `plugin` |
|
|
222
224
|
|